/* Holler: a redesign built with elayadesign/ai-design-skills.
   Values follow the skills' scales (Tailwind type steps, 2–96px spacing, Tailwind radii, custom easing),
   with Holler's own palette in place of the skills' defaults: paper, ink, and red that only ever means "you". */

:root {
  --paper: #EDE3CF;
  --slip: #F7F1E4;
  --white: #FBF8F1;
  --ink: #131209;
  --ink-2: #2E2724;
  --ink-3: #5E5249;
  --ink-4: #8A7D70;
  --on-ink: #DDD2BD;
  --on-ink-2: #A99D8B;
  --rule: rgba(19, 18, 9, .12);
  --rule-2: rgba(19, 18, 9, .22);
  --wash: rgba(19, 18, 9, .06);
  --red: #AA0D1D;
  --red-2: #8E0A18;
  --red-tint: rgba(170, 13, 29, .08);

  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --e: cubic-bezier(.16, 1, .3, 1);
  --e2: cubic-bezier(.33, 1, .68, 1);
  --io: cubic-bezier(.65, 0, .35, 1);

  --shadow: 0 24px 48px -24px rgba(74, 52, 30, .35);
  --pad: 40px;

  --z-menu: 30;
  --z-nav: 40;
  --z-grain: 50;
  --z-skip: 60;
}
@media (max-width: 768px) { :root { --pad: 24px; } }
@media (max-width: 480px) { :root { --pad: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p, dl, dd, figure, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 16px; height: 16px; flex: none; fill: currentColor; }
.i--sm { width: 12px; height: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
section[id] { scroll-margin-top: 96px; }

/* Paper grain: texture without a gradient */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: var(--z-skip);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--slip);
  font: 600 14px/20px var(--font);
  text-decoration: none;
  transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }

/* ── Type ── */
.h1 { font-size: 72px; line-height: 1; letter-spacing: -.05em; }
.h2 { font-size: 48px; line-height: 1; letter-spacing: -.04em; max-width: 880px; }
.h2 .mute { color: var(--ink-4); }
.lead { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.02em; color: var(--ink-2); }
.you { color: var(--red); }
@media (max-width: 1024px) { .h1 { font-size: 60px; } .h2 { font-size: 36px; line-height: 40px; letter-spacing: -.035em; } }
@media (max-width: 768px) { .h1 { font-size: 48px; } }
@media (max-width: 480px) { .h1 { font-size: 36px; line-height: 40px; letter-spacing: -.04em; } .h2 { font-size: 30px; line-height: 36px; } .lead { font-size: 20px; line-height: 28px; } }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9999px;
  background: var(--red);
  color: var(--white);
  font: 600 16px/24px var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s var(--ease), transform .5s var(--ease);
}
.btn:hover { background: var(--red-2); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn .i { transition: transform .5s var(--ease); }
.btn:hover .i { transform: translateX(2px); }
.btn--sm { font-size: 14px; line-height: 20px; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .7; }
.link {
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
  text-underline-offset: 4px;
  transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
.link:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ── Floating island nav ── */
.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 9999px;
  background: rgba(247, 241, 228, .8);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}
.nav__logo img { height: 16px; width: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a, .nav__signin {
  padding: 4px 12px;
  border-radius: 9999px;
  color: var(--ink-3);
  font: 500 14px/20px var(--font);
  text-decoration: none;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav__links a:hover, .nav__signin:hover { color: var(--ink); }
.nav__links a[aria-current] { color: var(--ink); background: var(--wash); }
.nav__end { display: flex; align-items: center; gap: 4px; }
.burger {
  position: relative;
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9999px;
  background: var(--wash);
}
.burger span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .6s var(--ease);
}
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 96px var(--pad);
  background: rgba(237, 227, 207, .8);
  -webkit-backdrop-filter: blur(64px);
  backdrop-filter: blur(64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.menu a {
  color: var(--ink);
  font: 600 36px/40px var(--font);
  letter-spacing: -.035em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(1) { transition-delay: 100ms; }
.menu.is-open a:nth-child(2) { transition-delay: 150ms; }
.menu.is-open a:nth-child(3) { transition-delay: 200ms; }
.menu.is-open a:nth-child(4) { transition-delay: 250ms; }
.menu.is-open a:nth-child(5) { transition-delay: 300ms; }
.menu .menu__muted { color: var(--ink-3); }
@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav__links, .nav__signin { display: none; }
  .burger { display: block; }
}

/* ── Reveal on scroll ── */
html.js:not(.rm) [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js:not(.rm) [data-reveal].is-in { opacity: 1; filter: none; transform: none; }

/* ── Sections ── */
.sec { padding: 64px 0; }
.sec__head { display: grid; gap: 24px; }

/* ── Hero ── */
.hero { padding-top: calc(96px + 32px); padding-bottom: 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero__copy { display: grid; gap: 24px; }
.hero .h1 { font-size: 60px; }
.hero__act { display: grid; gap: 8px; }
.hero__shot { position: relative; min-width: 0; }

.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--ink-3); font-size: 14px; line-height: 20px; }
.hero__proof b { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font: 500 12px/16px var(--mono); }
@media (max-width: 1100px) { .hero__grid { grid-template-columns: 1fr; } .hero__copy { max-width: 680px; } .hero__act { max-width: 480px; } }
@media (max-width: 480px) { .hero .h1 { font-size: 36px; line-height: 40px; } }

/* Waitlist form */
.wl { display: grid; gap: 8px; }
.wl__pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--rule-2);
  border-radius: 9999px;
  background: var(--white);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.wl__pill:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--wash); }
.wl__pill input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
}
.wl__pill input:focus { outline: none; }
.wl__pill input::placeholder { color: var(--ink-4); }
.wl[data-state="error"] .wl__pill { border-color: var(--red); }
.wl__msg { min-height: 20px; padding-left: 16px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.wl[data-state="error"] .wl__msg { color: var(--red); }
.wl[data-state="done"] .wl__pill { display: none; }
.wl[data-state="done"] .wl__msg { padding: 12px 16px; border-radius: 16px; background: var(--white); border: 1px solid var(--rule); color: var(--ink); font-weight: 500; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 480px) {
  .wl__pill { flex-direction: column; align-items: stretch; border-radius: 24px; padding: 8px; }
  .wl__pill .btn { justify-content: center; }
  .wl__pill input { padding: 8px; }
}

/* ── App window (hero): Holler for Mac, drawn from the desktop app (rail, Needs you above the rooms, queue, conversation) ── */
.win {
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr);
  height: 560px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
}
.win__bar { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--rule-2); background: var(--paper); }
.win__bar i { width: 12px; height: 12px; border: 1.5px solid var(--ink-3); border-radius: 9999px; }
.app { display: grid; grid-template-columns: 64px 184px minmax(0, 1fr); min-height: 0; }
.ava { width: 24px; height: 24px; flex: none; overflow: hidden; border-radius: 6px; background: var(--slip); box-shadow: inset 0 0 0 1px var(--rule); }
.ava img { width: 100%; height: 100%; }
.stack { display: flex; margin-left: auto; }
.stack .ava { margin-left: -4px; box-shadow: 0 0 0 2px var(--slip); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(170, 13, 29, .45); } 100% { box-shadow: 0 0 0 10px rgba(170, 13, 29, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
@keyframes pop { from { opacity: 0; transform: scale(.85); filter: blur(2px); } }

/* Icon rail */
.app__rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: var(--paper); border-right: 1px solid var(--rule); }
.app__icon { width: 32px; height: 32px; margin-bottom: 12px; border-radius: 8px; }
.rail__item { display: grid; justify-items: center; gap: 4px; width: 48px; padding: 8px 0; border-radius: 12px; color: var(--ink-3); font: 500 12px/16px var(--font); }
.rail__item.is-active { background: var(--wash); color: var(--ink); }
.rail__ico { position: relative; }
.rail__ico .i { width: 20px; height: 20px; }
.rail__badge {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 9999px;
  background: var(--red);
  color: var(--white);
  font: 600 12px/16px var(--font);
  text-align: center;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .4s var(--e2), transform .6s var(--e);
}
.app.has-ask .rail__badge { opacity: 1; transform: none; }

/* Work sidebar: Needs you sits above the rooms */
.app__side { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px 12px; background: var(--slip); border-right: 1px solid var(--rule); }
.app__title { padding: 0 8px 12px; font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -.015em; }
.needs { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; color: var(--ink-3); font-size: 14px; line-height: 20px; font-weight: 500; transition: background-color .5s var(--ease), color .5s var(--ease); }
.needs__dot { position: relative; width: 6px; height: 6px; flex: none; border-radius: 9999px; background: var(--ink-4); transition: background-color .5s var(--ease); }
.needs__n { margin-left: auto; min-width: 20px; padding: 0 4px; border-radius: 9999px; background: var(--white); color: var(--red); font: 600 12px/20px var(--font); text-align: center; opacity: 0; transform: scale(.85); transition: opacity .4s var(--e2), transform .6s var(--e); }
.app.has-ask .needs { background: var(--red-tint); color: var(--red); }
.app.has-ask .needs__dot { background: var(--red); }
.app.has-ask .needs__dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: ring 2s var(--e2) infinite; }
.app.has-ask .needs__n { opacity: 1; transform: none; }
.app__label { margin-top: 12px; padding: 12px 8px 4px; border-top: 1px solid var(--rule); color: var(--ink-4); font: 500 12px/16px var(--mono); }
.room { overflow: hidden; padding: 8px; border-radius: 8px; color: var(--ink-2); font-size: 14px; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }

/* Queue: "N waiting for you", the decision card, then Will send… Undo */
.app__main { display: grid; min-width: 0; min-height: 0; overflow: hidden; background: var(--white); }
.view { display: grid; grid-area: 1 / 1; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; transition: opacity .5s var(--e2), transform .8s var(--e); }
.view--room { background: var(--slip); }
.view--queue { opacity: 0; transform: translateX(16px); }
.app.show-queue .view--queue { opacity: 1; transform: none; }
.app.show-queue .view--room { opacity: 0; transform: translateX(-16px); }
.view__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 61px; padding: 16px 20px; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 20px; font-weight: 600; }
.view__head .i { color: var(--ink-4); }
.view__head--queue { justify-content: space-between; font-weight: 400; }
.room--here { background: var(--wash); color: var(--ink); font-weight: 500; transition: background-color .5s var(--ease), color .5s var(--ease); }
.app.show-queue .room--here { background: transparent; color: var(--ink-2); font-weight: 400; }
.app.show-queue .needs { box-shadow: inset 0 0 0 1px var(--red); }
.app.show-queue:not(.has-ask) .needs { background: var(--wash); color: var(--ink); box-shadow: none; }
.queue__title { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
.keys { display: flex; align-items: center; gap: 4px; color: var(--ink-4); font-size: 12px; line-height: 16px; }
.keys kbd { padding: 0 4px; border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 4px; background: var(--slip); color: var(--ink-2); font: 500 12px/16px var(--mono); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.keys kbd:not(:first-child) { margin-left: 8px; }
.keys kbd.is-hot { border-color: var(--ink); background: var(--ink); color: var(--white); }
.queue__body { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; padding: 16px; overflow: hidden; }
.queue__body > * { grid-area: 1 / 1; }
.queue__empty { display: flex; align-items: center; gap: 8px; align-self: center; justify-self: center; color: var(--ink-4); font-size: 14px; line-height: 20px; transition: opacity .5s var(--e2); }
.app.has-ask .queue__empty, .app.is-sending .queue__empty { opacity: 0; }
.qcard {
  display: grid;
  gap: 8px;
  align-self: start;
  padding: 16px;
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(74, 52, 30, .08), 0 16px 32px -24px rgba(74, 52, 30, .45);
  opacity: 0;
  transform: translateY(16px) scale(.985);
  filter: blur(6px);
  transition: opacity .6s var(--e2), transform .9s var(--e), filter .6s var(--e2);
}
.app.has-ask .qcard { opacity: 1; transform: none; filter: none; }
.qcard__head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); color: var(--ink-3); font-size: 14px; line-height: 20px; }
.qcard__head b { color: var(--ink); font-weight: 600; }
.qcard__head > span:not(.ava)::before { content: "·"; margin-right: 8px; color: var(--ink-4); }
.qcard__head .ava { width: 20px; height: 20px; border-radius: 4px; }
.qcard__kind { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--red); font: 600 12px/16px var(--font); }
.qcard__kind i { width: 6px; height: 6px; border-radius: 9999px; background: var(--red); }
.qcard__q { font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.qcard__ctx { color: var(--ink-3); font-size: 14px; line-height: 20px; }
.qcard__opts { display: grid; gap: 8px; margin-top: 4px; }
.radio { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--rule-2); border-radius: 8px; font-size: 14px; line-height: 20px; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.radio > i { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--ink-4); border-radius: 9999px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.radio .i { margin-left: auto; }
.radio.is-pick { border-color: var(--ink); }
.radio.is-chosen { background: var(--ink); color: var(--white); transform: scale(.98); }
.radio.is-chosen > i { border-color: var(--white); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 8px var(--white); }
.qcard__why { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink-3); font-size: 14px; line-height: 20px; }
.qcard__why .ava { width: 16px; height: 16px; border-radius: 4px; }
.qcard__why b { color: var(--ink); font-weight: 600; }
.sendbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  overflow: hidden;
  padding: 8px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--slip);
  font-size: 14px;
  line-height: 20px;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition: opacity .5s var(--e2), transform .8s var(--e), filter .5s var(--e2);
}
.sendbar > span:first-child { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sendbar__undo { font-weight: 600; }
.sendbar kbd { padding: 0 4px; border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 4px; background: var(--white); font: 500 12px/16px var(--mono); }
.sendbar__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.app.is-sending .sendbar { opacity: 1; transform: none; filter: none; }
.app.is-sending .sendbar__bar { transform: scaleX(1); transition: transform 2s linear; }

/* Conversation pane */
.convo__list {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 48px);
  mask-image: linear-gradient(to bottom, transparent, #000 48px);
}
.msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: start; transition: opacity .4s var(--e2); }
.msg .ava { width: 28px; height: 28px; border-radius: 8px; }
.bub { padding: 8px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--white); transition: border-color .5s var(--ease); }
.msg__meta { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.msg__meta time { color: var(--ink-4); font: 400 12px/16px var(--mono); }
.msg__text { color: var(--ink-2); font-size: 14px; line-height: 20px; }
.at { padding: 0 4px; border-radius: 4px; background: var(--wash); color: var(--ink); font-weight: 600; }
.ok { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); }
.msg--ask .bub { border-color: var(--red); }
.ask-state { margin-top: 8px; font-size: 12px; line-height: 16px; font-weight: 600; }
.ask-state__open { display: inline-flex; align-items: center; gap: 4px; color: var(--red); }
.ask-state__open i { width: 6px; height: 6px; border-radius: 9999px; background: var(--red); }
.ask-state__done { display: none; align-items: center; gap: 4px; color: var(--ink-3); }
.ask-state__done .i { width: 12px; height: 12px; }
.msg--ask.is-answered .bub { border-color: var(--rule); }
.msg--ask.is-answered .ask-state__open { display: none; }
.msg--ask.is-answered .ask-state__done { display: inline-flex; animation: pop .5s var(--e) both; }
.win.rewind .msg--ask, .win.rewind .msg--end { opacity: 0; }
html.js .win .msg { display: none; }
html.js .win .msg.on { display: grid; animation: rise .8s var(--e) both; }
html.js.rm .win .msg.on { animation: none; }
.typing { display: none; grid-template-columns: 28px auto; gap: 8px; align-items: center; }
.typing.on { display: grid; animation: rise .5s var(--e) both; }
.typing .ava { width: 28px; height: 28px; border-radius: 8px; }
.dots { display: inline-flex; gap: 4px; padding: 8px 12px; border-radius: 12px; background: var(--wash); }
.dots i { width: 6px; height: 6px; border-radius: 9999px; background: var(--ink-3); animation: bob 1.2s var(--io) infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
html.js:not(.rm) .win .app__rail, html.js:not(.rm) .win .app__side { opacity: 0; transform: translateX(-12px); filter: blur(4px); transition: opacity .7s var(--e2), transform 1s var(--e), filter .7s var(--e2); }
.win.in .app__rail, .win.in .app__side { opacity: 1 !important; transform: none !important; filter: none !important; }
.win.in .app__side { transition-delay: 90ms; }

@media (max-width: 1100px) { .win { height: 600px; } }
@media (max-width: 860px) {
  .win { height: 560px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app__rail, .app__side { display: none; }
}

/* Decision card (shared by hero and wall) */
.ask {
  display: grid;
  gap: 12px;
  max-width: 560px;
  padding: 16px;
  border: 1.5px solid var(--red);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 32px -24px rgba(110, 20, 20, .5);
}
.ask__head { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.ask__head .ava { width: 24px; height: 24px; }
.tag { padding: 2px 8px; border-radius: 9999px; background: var(--wash); color: var(--ink-3); font: 500 12px/16px var(--mono); white-space: nowrap; }
.tag--red { background: var(--red-tint); color: var(--red); }
.ask__head .tag:last-child { margin-left: auto; }
.ask__q { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -.015em; }
.ask__ctx { color: var(--ink-3); font-size: 14px; line-height: 20px; }
.ask__body { display: grid; }
.ask__body > * { grid-area: 1 / 1; transition: opacity .5s var(--e2), transform .7s var(--e), filter .5s var(--e2); }
.receipt { display: flex; align-items: center; gap: 8px; align-self: center; opacity: 0; transform: translateY(8px); filter: blur(4px); pointer-events: none; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.receipt b { color: var(--ink); font-weight: 600; }
.receipt .done { display: none; align-items: center; gap: 8px; }
.receipt .wait { display: inline; }
.receipt .dots { margin-left: 8px; padding: 4px 8px; vertical-align: middle; }
.receipt[data-state="done"] .wait { display: none; }
.receipt[data-state="done"] .done { display: inline-flex; }
.ask.is-answered .opts, .ask.is-answered .acts, .ask.is-answered .field { opacity: 0; transform: translateY(-8px); filter: blur(4px); pointer-events: none; }
.ask.is-answered .receipt { opacity: 1; transform: none; filter: none; }
.opts { display: grid; gap: 8px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--slip);
  font: 500 14px/20px var(--font);
  text-align: left;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}
.opt:hover { border-color: var(--ink); }
.opt:active, .opt.is-pressed { transform: scale(.98); }
.opt.is-pressed { background: var(--ink); border-color: var(--ink); color: var(--slip); }
.opt kbd {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink-2);
  font: 500 12px/16px var(--mono);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.opt kbd.is-hot { background: var(--ink); color: var(--white); box-shadow: 0 0 0 4px var(--wash); }
.opt.is-pressed kbd { background: var(--slip); color: var(--ink); }
.opt .why { color: var(--ink-3); font-weight: 400; }
.opt.is-pressed .why { color: var(--on-ink-2); }
.opt .i { margin-left: auto; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.act {
  padding: 8px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--white);
  font: 600 14px/20px var(--font);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}
.act:hover { border-color: var(--ink); }
.act:active, .act.is-pressed { transform: scale(.98); }
.act--go, .act.is-pressed { background: var(--ink); border-color: var(--ink); color: var(--slip); }
.act--go:hover { background: var(--ink-2); }



/* ── Before / after diagram ── */
.flip__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.flip .h2 span { transition: color .7s var(--ease); }
.flip[data-mode="without"] .h2 .l2, .flip[data-mode="with"] .h2 .l1 { color: var(--ink-4); }
.flip[data-mode="with"] .h2 .l2 .you { color: var(--red); }
.flip[data-mode="without"] .h2 .l2 .you { color: inherit; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 9999px; background: var(--wash); }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 9999px; background: var(--white); box-shadow: 0 1px 2px rgba(74, 52, 30, .25); transition: transform .6s var(--ease), width .6s var(--ease); }
.seg button { position: relative; padding: 8px 16px; border: 0; border-radius: 9999px; background: transparent; color: var(--ink-3); font: 600 14px/20px var(--font); transition: color .3s var(--ease); }
.seg button[aria-checked="true"] { color: var(--ink); }
.board { margin-top: 48px; padding: 16px 24px 24px; border: 1px solid var(--rule); border-radius: 24px; background: var(--slip); }
.board svg { width: 100%; height: auto; overflow: visible; }
.board text { font-family: var(--font); }
.board__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 48px; margin-bottom: 8px; }
.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.stat { display: flex; align-items: baseline; gap: 8px; transition: opacity .6s var(--ease); }
.stat b { min-width: 2ch; text-align: right; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.03em; }
.stat span { color: var(--ink-3); font: 500 12px/16px var(--mono); }
.stat--you b { color: var(--red); }
.flip[data-mode="without"] .stat--you, .flip[data-mode="with"] .stat--relay { opacity: .35; }

/* ── Team bento ── */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.card { display: flex; flex-direction: column; gap: 24px; padding: 24px; border: 1px solid var(--rule); border-radius: 24px; background: var(--slip); }
.card--ada { grid-column: span 7; }
.card--athena { grid-column: span 5; }
.card--sherlock { grid-column: span 5; }
.card--leo { grid-column: span 7; }
.card--own { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.card--own .card__text { display: flex; flex-direction: column; gap: 24px; }
.card__head { display: flex; align-items: center; gap: 16px; }
.face { width: 48px; height: 48px; flex: none; overflow: hidden; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.face img { width: 100%; height: 100%; }
.face--term { display: grid; place-items: center; background: var(--ink); color: var(--on-ink); box-shadow: none; }
.face--term .i { width: 24px; height: 24px; }
.card__name { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
.card__role { color: var(--ink-3); font: 500 12px/16px var(--mono); }
.card__line { max-width: 46ch; color: var(--ink-2); font-size: 16px; line-height: 24px; }
.viz { flex: 1; min-height: 224px; padding: 16px; border-radius: 12px; background: var(--paper); }
@media (max-width: 1024px) {
  .card--ada, .card--athena, .card--sherlock, .card--leo { grid-column: span 6; }
}
@media (max-width: 768px) {
  .bento { grid-template-columns: 1fr; }
  .card--ada, .card--athena, .card--sherlock, .card--leo, .card--own { grid-column: auto; }
  .card--own { grid-template-columns: 1fr; }
}

/* shared enter state for story pieces */
.pc { opacity: 0; transform: translateY(8px); filter: blur(4px); transition: opacity .6s var(--e2), transform .9s var(--e), filter .6s var(--e2); }
.pc.on { opacity: 1; transform: none; filter: none; }
.viz.out .pc { opacity: 0; filter: blur(4px); transition-duration: .4s; }
html:not(.js) .pc, html.rm .pc { opacity: 1; transform: none; filter: none; }

/* Ada: terminal */
.viz--term { display: flex; flex-direction: column; gap: 4px; background: var(--ink); color: var(--on-ink); font: 400 12px/16px var(--mono); }
.term__cmd { color: var(--white); margin-bottom: 8px; }
.term__cmd::before { content: "$ "; color: var(--on-ink-2); }
.caret { display: inline-block; width: 6px; height: 12px; margin-left: 2px; vertical-align: -1px; background: var(--on-ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tl { display: flex; align-items: center; gap: 8px; }
.tl .i { color: var(--white); }
.tsum { margin-top: 8px; color: var(--white); font-weight: 500; }
.tchip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding: 4px 8px 4px 4px; border-radius: 8px; background: rgba(221, 210, 189, .1); color: var(--on-ink); font: 500 12px/16px var(--font); }
.tchip .ava { width: 20px; height: 20px; border-radius: 4px; }

/* Sherlock: review */
.viz--review { display: flex; flex-direction: column; gap: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); }
.rv__file { display: flex; justify-content: space-between; color: var(--ink-3); font: 500 12px/16px var(--mono); }
.find { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; font-size: 14px; line-height: 20px; }
.find kbd { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--rule-2); border-radius: 4px; font: 500 12px/16px var(--mono); }
.find code { color: var(--ink-4); font: 400 12px/20px var(--mono); }
.find.is-fixed span { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.verdict { display: flex; gap: 8px; margin-top: auto; }
.verdict span { padding: 4px 12px; border-radius: 9999px; border: 1px solid var(--rule-2); color: var(--ink-3); font: 600 12px/16px var(--font); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--e); }
.verdict span.on { background: var(--ink); border-color: var(--ink); color: var(--slip); animation: stamp .5s var(--e) both; }
@keyframes stamp { from { transform: scale(1.18); filter: blur(2px); } }

/* Athena: funnel */
.viz--funnel { display: flex; flex-direction: column; gap: 12px; }
.fn { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: 14px; line-height: 20px; }
.fn b { font: 500 12px/16px var(--mono); text-align: right; }
.fn__track { position: relative; height: 8px; border-radius: 9999px; background: var(--wash); }
.fn__fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--ink-2); clip-path: inset(0 100% 0 0 round 9999px); transition: clip-path .9s var(--io); }
.fn.on .fn__fill { clip-path: inset(0 0 0 0 round 9999px); }
.fn--hot .fn__fill { background: var(--ink); }
.fn .tag { justify-self: start; }
.fn__note { display: flex; justify-content: flex-end; margin-top: -4px; }
.pick { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px 12px; border-radius: 8px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); font-size: 14px; line-height: 20px; }
.pick .i { color: var(--ink); }
html.js:not(.rm) .fn .fn__fill { will-change: clip-path; }
html:not(.js) .fn__fill, html.rm .fn__fill { clip-path: none; }

/* Leo: directions */
.viz--dirs { display: flex; flex-direction: column; gap: 12px; }
.dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dir { position: relative; display: grid; gap: 8px; }
.dir__art { position: relative; display: grid; gap: 4px; align-content: start; aspect-ratio: 4 / 3; padding: 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .5s var(--ease); }
.dir__art i { display: block; height: 6px; border-radius: 2px; background: currentColor; }
.dir--a .dir__art { background: var(--white); color: var(--ink); }
.dir--a .dir__art i:first-child { height: 16px; width: 80%; }
.dir--a .dir__art i:nth-child(2) { height: 16px; width: 56%; }
.dir--a .dir__art i:nth-child(3) { width: 64%; margin-top: 8px; opacity: .4; }
.dir--b .dir__art { background: var(--ink); color: var(--on-ink); }
.dir--b .dir__art i:first-child { height: 12px; width: 72%; }
.dir--b .dir__art i:nth-child(2) { width: 48%; opacity: .5; }
.dir--b .dir__art i:nth-child(3) { width: 32px; height: 12px; margin-top: 8px; border-radius: 9999px; background: var(--red); }
.dir--c .dir__art { grid-template-columns: 1fr 1fr; background: var(--slip); color: var(--ink-3); }
.dir--c .dir__art i { height: 24px; border-radius: 4px; opacity: .35; }
.dir__label { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font: 500 12px/16px var(--mono); }
.dir.is-pick .dir__art { box-shadow: 0 0 0 2px var(--ink); }
.dir__check { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; background: var(--white); color: var(--ink); font: 600 12px/16px var(--font); box-shadow: 0 2px 8px rgba(19, 18, 9, .2); }
.dir__check .ava { width: 16px; height: 16px; border-radius: 4px; }
.leo__note { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 14px; line-height: 20px; color: var(--ink-2); }

/* Your own: room */
.viz--room { display: flex; flex-direction: column; gap: 8px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); }
.room__head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.room__head .i { color: var(--ink-4); }
.mem { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }
.mem .ava { width: 24px; height: 24px; }
.mem__term { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: var(--on-ink); }
.mem__term .i { width: 12px; height: 12px; }
.mem code { font: 500 12px/16px var(--mono); }
.mem .tag { margin-left: auto; }
.room__msg { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 20px; }
.room__msg b { display: block; font: 500 12px/16px var(--mono); color: var(--ink-3); }


/* ── Needs-you wall ── */
.wall { columns: 3 320px; column-gap: 16px; margin-top: 48px; }
.wall .ask { max-width: none; margin-bottom: 16px; break-inside: avoid; border-color: var(--rule-2); border-width: 1px; box-shadow: none; transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .7s var(--e); }
.wall .ask.is-live { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 24px 48px -24px rgba(110, 20, 20, .45); transform: translateY(-4px); }
.wall .ask__head time { margin-left: auto; color: var(--ink-4); font: 400 12px/16px var(--mono); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duo blockquote { margin: 0; padding: 12px; border-radius: 8px; background: var(--slip); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.duo blockquote b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--ink); }
.duo .ava { width: 20px; height: 20px; border-radius: 4px; }
.list { display: grid; gap: 4px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.list li { display: flex; gap: 8px; align-items: baseline; }
.list .i { position: relative; top: 2px; color: var(--ink-3); }
.field { display: flex; gap: 8px; }
.field input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--white); font-size: 14px; line-height: 20px; transition: border-color .3s var(--ease); }
.field input:focus { outline: none; border-color: var(--ink); }

/* ── How it works ── */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.split > .h2 { position: sticky; top: 128px; }
.steps { display: grid; gap: 48px; }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; }
.step__n { color: var(--ink-4); font-size: 48px; line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.step h3 { font-size: 24px; line-height: 32px; letter-spacing: -.02em; }
.step p { margin-top: 8px; color: var(--ink-3); font-size: 18px; line-height: 28px; max-width: 52ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > .h2 { position: static; } }

/* ── FAQ ── */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.faq dt { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -.015em; }
.faq dd { margin-top: 8px; color: var(--ink-3); font-size: 16px; line-height: 24px; }
@media (max-width: 1024px) { .faq { grid-template-columns: 1fr; } }

/* ── Final CTA ── */
.cta { padding: 64px 0 96px; }
.cta__inner { display: grid; gap: 32px; max-width: 680px; }
.cta .h2 { font-size: 60px; letter-spacing: -.045em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 12px; color: var(--ink-3); font-size: 14px; line-height: 20px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; padding: 4px 12px; border: 1px solid var(--rule-2); border-radius: 9999px; background: var(--white); color: var(--ink-2); font: 500 14px/20px var(--font); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease); }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--slip); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip:active span { transform: scale(.98); }
.cta__alt { color: var(--ink-3); font-size: 14px; line-height: 20px; }
@media (max-width: 1024px) { .cta .h2 { font-size: 48px; } }
@media (max-width: 480px) { .cta .h2 { font-size: 36px; line-height: 40px; } }

/* ── Footer ── */
.foot { padding: 48px 0; border-top: 1px solid var(--rule); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; color: var(--ink-3); font-size: 14px; line-height: 20px; }
.foot img { height: 16px; width: auto; }
.foot nav { display: flex; gap: 24px; margin-left: auto; }
.foot a { text-decoration: none; transition: color .3s var(--ease); }
.foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.ask__head .stack { margin-left: 0; }
.you-glow { transform-box: fill-box; transform-origin: center; }
html.rm .stats { display: none; }

/* Crew colours fill the corners of each portrait */
.face:has(img[src*="ada-"]), .ava:has(img[src*="ada-"]) { background: #C3D8EF; }
.face:has(img[src*="athena-"]), .ava:has(img[src*="athena-"]) { background: #CFC6F3; }
.face:has(img[src*="sherlock-"]), .ava:has(img[src*="sherlock-"]) { background: #C0DBCD; }
.face:has(img[src*="leo-"]), .ava:has(img[src*="leo-"]) { background: #ECDEB1; }

.rv__note { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.lineup { display: flex; gap: 8px; }
.lineup .face { width: 48px; height: 48px; }
.face--you { display: grid; place-items: center; background: var(--red); color: var(--white); box-shadow: none; font-size: 14px; line-height: 20px; font-weight: 600; }
@media (max-width: 860px) { .board__bar { justify-content: flex-start; } }
code, kbd { font-family: var(--mono); }

/* ── Team row on the homepage ── */
.sec__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.more { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.more .i { transition: transform .5s var(--ease); }
.more:hover .i { transform: translateX(4px); }
.crew { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.mate {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--slip);
  color: var(--ink);
  text-decoration: none;
  transition: transform .6s var(--ease), border-color .4s var(--ease), box-shadow .6s var(--ease);
}
.mate:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.mate:active { transform: scale(.98); }
.face--lg { width: 64px; height: 64px; margin-bottom: 12px; border-radius: 16px; }
.mate__name { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
.mate__role { color: var(--ink-3); font: 500 12px/16px var(--mono); }
.mate__line { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 20px; }
@media (max-width: 1024px) { .crew { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mate { padding: 16px; }
  .mate--own { grid-column: span 2; }
}

/* ── Team page ── */
.team-hero { padding-top: calc(96px + 64px); padding-bottom: 96px; }
.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.tab {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--rule-2);
  border-radius: 16px;
  background: var(--slip);
  color: var(--ink-2);
  font: 600 16px/24px var(--font);
  text-align: left;
  white-space: nowrap;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.tab .face { width: 40px; height: 40px; border-radius: 8px; }
.tab .face--term .i { width: 20px; height: 20px; }
.tab:hover { border-color: var(--ink); }
.tab:active { transform: scale(.98); }
.tab[aria-selected="true"] { border-color: var(--ink); background: var(--hue); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--slip);
  box-shadow: 8px 8px 0 var(--ink);
}
.panel:not([hidden]) { animation: rise .8s var(--e) both; }
.panel__art { display: grid; place-items: start center; padding: 40px 24px 24px; }
.panel__art img { width: 100%; max-width: 440px; height: auto; }
.panel__body { display: flex; flex-direction: column; gap: 24px; padding: 40px 40px 40px 16px; }
.panel__name { font-size: 60px; line-height: 1; letter-spacing: -.045em; }
.panel__role { margin-top: 8px; color: var(--ink-3); font: 500 14px/20px var(--mono); }
.panel__lead { max-width: 46ch; color: var(--ink-2); font-size: 20px; line-height: 28px; }
.panel__quote { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
.panel__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel__cols--one { grid-template-columns: 1fr; }
.panel__h { margin-bottom: 12px; color: var(--ink-3); font: 500 12px/16px var(--mono); }
.checks { display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.checks li { display: flex; gap: 8px; }
.checks .i { position: relative; top: 2px; }
.moods { display: grid; gap: 8px; }
.moods li { display: grid; padding: 8px 12px; border-radius: 8px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); font-size: 14px; line-height: 20px; }
.moods b { color: var(--ink); font-weight: 600; }
@media (max-width: 1024px) {
  .panel { grid-template-columns: 1fr; }
  .panel__art { padding: 24px 24px 0; }
  .panel__art img { max-width: 320px; }
  .panel__body { padding: 24px 40px 40px; }
}
@media (max-width: 768px) {
  .tabs { display: flex; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 8px; scrollbar-width: none; }
  .tab { flex: none; }
  .panel__cols { grid-template-columns: 1fr; }
  .panel__body { padding: 24px; }
  .panel__name { font-size: 48px; }
}
.panel[hidden] { display: none; }
.typing .dots { justify-self: start; }

/* Pieces only the brand version shows (brand.css) */
.brand-only { display: none; }

/* Cosmetic pass */
.sec__row .h2 { flex: 1 1 0; min-width: 0; max-width: none; }
.more { flex: none; white-space: nowrap; }
@media (max-width: 600px) { .sec__row .h2 { flex: 1 1 100%; } }
.wall .ask__head { flex-wrap: wrap; }
.wl .chips { margin-bottom: 8px; }
.wl__msg:empty { min-height: 0; }
.ask__kind { display: flex; align-items: center; gap: 8px; margin-bottom: -4px; color: var(--red); font: 600 12px/16px var(--font); }
.ask__kind i { width: 6px; height: 6px; border-radius: 9999px; background: var(--red); }
.wall .ask__head .stack { margin-left: 0; }

/* 404 */
.lost { display: grid; justify-items: start; gap: 24px; }
