/* ==========================================================================
   Home — bento wall
   ========================================================================== */
.page--home { background-color: var(--paper); }
.home { padding-top: clamp(28px, 4vw, 52px); padding-bottom: 48px; display: grid; gap: 30px; }

.home__head { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: 28px; align-items: end; }
.home__hello { display: grid; gap: 14px; }
.home__title { font-size: clamp(54px, 7vw, 108px); line-height: .86; }
.home__name {
  display: inline-block;
  background: var(--lime);
  padding: .02em .12em 0;
  margin: 0 -.04em;
  border-radius: .1em;
  box-shadow: .05em .05em 0 var(--ink);
  border: var(--bw) solid var(--ink);
  white-space: nowrap;
}
@media (max-width: 700px) { .home__name { white-space: normal; overflow-wrap: anywhere; } }

.checkin {
  display: grid; gap: 12px;
  padding: 20px;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.checkin__q { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.checkin__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.checkin__chips .chip { height: 32px; padding: 0 13px; font-size: 12.5px; }
.checkin__tip:empty { display: none; }
.checkin__tip { display: grid; gap: 8px; justify-items: start; padding-top: 4px; border-top: 1.5px dashed var(--line-strong); padding-top: 12px; font-size: 14.5px; }
.checkin__tip .link-arrow { font-size: 14px; }

/* Bento ------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(196px, auto);
  gap: 18px;
}
.tile {
  position: relative;
  display: grid; align-content: space-between; gap: 18px;
  padding: 24px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
a.tile:hover { transform: translate(-4px, -4px); box-shadow: 9px 9px 0 var(--ink); }
a.tile:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); transition-duration: .08s; }
.tile.on-ink { background-color: var(--ink); color: var(--paper); }
.tile.on-lime { background-color: var(--lime); }
.tile.on-ink { box-shadow: 4px 4px 0 var(--lime), 4px 4px 0 2px var(--ink); }
a.tile.on-ink:hover { box-shadow: 9px 9px 0 var(--lime), 9px 9px 0 2px var(--ink); }
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile__icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  border: var(--bw) solid currentColor;
  transition: transform .6s var(--ease-spring);
}
a.tile:hover .tile__icon { transform: rotate(-10deg) scale(1.06); }
.tile__body { display: grid; gap: 10px; align-content: end; }
.tile__k { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.tile h2 { font-size: clamp(42px, 4.4vw, 68px); }
.tile p { max-width: 44ch; font-size: 15.5px; }
.tile__go {
  position: absolute; right: 20px; bottom: 20px;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  border: var(--bw) solid currentColor;
  transition: transform .5s var(--ease-spring), background-color .25s, color .25s;
}
a.tile:hover .tile__go { transform: rotate(45deg) scale(1.08); }

.tile--chat { grid-column: 1 / span 7; grid-row: span 2; background-image: var(--bricks-ink); padding: 28px; }
.tile--chat p { color: var(--on-ink-2); }
.tile--chat .tile__icon { color: var(--lime); }
.tile--chat h2 { font-size: clamp(46px, 5.2vw, 86px); }
.tile--chat .tile__go { color: var(--lime); position: static; flex: none; }
.tile--chat:hover .tile__go { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ticker {
  min-width: 0; flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-ink-strong);
  font-size: 14px; color: var(--on-ink-2);
}
.ticker__label { flex: none; padding: 3px 8px; border-radius: var(--r-pill); background: var(--lime); color: var(--ink); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ticker__roll { min-width: 0; flex: 1; }
.ticker__roll .roll__item { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile__deco--chat { position: absolute; right: 26px; top: 92px; display: grid; grid-template-columns: repeat(2, auto); gap: 12px; z-index: -1; opacity: .95; }
.tile__deco--chat span { animation: deco-float 5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 1s); }
.tile__deco--chat span:nth-child(2) { --d: .6; transform: translateY(18px); }
.tile__deco--chat span:nth-child(3) { --d: 1.2; }
.tile__deco--chat span:nth-child(4) { --d: 1.8; transform: translateY(18px); }
.tile__deco--chat .avatar { --s: 54px; border-color: var(--paper); }
@keyframes deco-float { 50% { translate: 0 -8px; } }

.tile--ai { grid-column: 8 / span 5; background-image: var(--bricks-lime); padding-right: 90px; }
.tile--ai .tile__icon { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.tile--ai:hover .tile__go { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.mini-chat { display: grid; gap: 6px; justify-items: start; font-size: 13.5px; }
.mini-chat__me { justify-self: end; padding: 7px 12px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: var(--paper); }
.mini-chat__ai { position: relative; padding: 7px 12px; border-radius: 14px 14px 14px 4px; background: var(--paper); border: 1.5px solid var(--ink); min-width: 64px; min-height: 33px; }
.mini-chat__ai .typing-dots { position: absolute; left: 14px; top: 12px; animation: mini-dots 6s infinite; }
.mini-chat__text { opacity: 0; animation: mini-text 6s infinite; }
@keyframes mini-dots { 0%, 40% { opacity: 1; } 45%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes mini-text { 0%, 42% { opacity: 0; } 48%, 92% { opacity: 1; } 100% { opacity: 0; } }

.tile--guides { grid-column: 8 / span 5; }
.tile--guides .tile__icon { background: var(--lime); border-color: var(--ink); }
.tile--guides:hover .tile__go, .tile--notes:hover .tile__go { background: var(--lime); }
.tile__chips { gap: 6px; padding-right: 64px; }

.tile--notes {
  grid-column: 1 / span 5;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(11, 11, 11, .07) 31px 32px);
}
.tile--notes::before { content: ""; position: absolute; left: 70px; top: 0; bottom: 0; width: 2px; background: var(--lime); z-index: -1; opacity: .9; }
.tile--notes .tile__icon { background: var(--paper); }
.tile__note { display: grid; gap: 4px; padding: 14px 16px; margin-right: 64px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1deg); transition: transform .5s var(--ease-spring); }
a.tile:hover .tile__note { transform: rotate(1deg) translateY(-2px); }
.tile__note b { font-size: 15.5px; }
.tile__note span { font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__note small { font-size: 11px; color: var(--text-2); }

.tile--quick { grid-column: 6 / span 7; align-content: start; gap: 14px; box-shadow: none; background: var(--paper-2); border-style: dashed; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick__btn {
  display: grid; justify-items: start; align-content: space-between; gap: 18px;
  min-height: 112px; padding: 16px;
  border-radius: var(--r-md);
  border: var(--bw) solid var(--ink);
  background: var(--paper);
  font-weight: 800; font-size: 15px; text-align: left;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.quick__btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--lime); }
.quick__btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.quick__btn .i { transition: transform .5s var(--ease-spring); }
.quick__btn:hover .i { transform: rotate(-12deg) scale(1.15); }
.quick__btn--ink { background: var(--ink); color: var(--lime); box-shadow: 3px 3px 0 var(--lime), 3px 3px 0 2px var(--ink); }
.quick__btn--ink:hover { background: var(--ink); box-shadow: 5px 5px 0 var(--lime), 5px 5px 0 2px var(--ink); }

.home__foot { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.home__foot .i { flex: none; }

@media (max-width: 1100px) {
  .home__head { grid-template-columns: 1fr; }
  .checkin { max-width: 560px; }
  .tile--chat { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
  .tile--ai, .tile--guides { grid-column: span 6; }
  .tile--notes { grid-column: span 6; }
  .tile--quick { grid-column: span 6; }
  .quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .tile--ai, .tile--guides, .tile--notes, .tile--quick { grid-column: 1 / -1; }
  .tile__deco--chat { display: none; }
  .tile--chat h2 { font-size: 46px; }
  .quick__btn { min-height: 92px; }
}
