/* TidyAnswer design system: white/soft-green surfaces, charcoal ink, lime calls
   to action, restrained coral accent from the approved V4 icon. No purple, no gradients, no shadows: depth
   comes from hairlines and the soft-green desk plate.

   Dark is designed, not inverted: warm near-black paper, the same lime for
   action, and a deeper desk plate so product scenes keep their figure/ground. */

:root {
  color-scheme: light dark;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f2;
  --ink: #171713;
  --on-lime: #171713;
  --muted: #666760;
  --hairline: #dddcd5;
  --soft-green: #f4f8e8;
  --lime: #d7ff59;
  --lime-hover: #c8ee4f;
  --lime-ink: #3f5a00;
  --coral: #ff715b;
  --coral-ink: #b43a26;
  --tint-coral: #ffe6e0;
  --tint-lime: #ecffb8;
  --tint-green: #e3f1d8;
  --tint-neutral: #eeeee8;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-settle: cubic-bezier(0.34, 1.32, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --max: 1280px;
  --legal: 720px;
  --gutter: 24px;
  --header: 76px;
  --section: 88px;
  --app-font-native-sans: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif;
  --app-font-native-mono: "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace;
  --app-font-text: "proxima-nova", var(--app-font-native-sans);
  --font-sans: var(--app-font-text);
  --font-mono: var(--app-font-native-mono);
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-synthesis-weight: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #11120e;
    --surface: #191a15;
    --surface-2: #20211b;
    --ink: #f1f1e8;
    --muted: #a8a99e;
    --hairline: #31322b;
    --soft-green: #1b2114;
    --lime-hover: #e4ff8f;
    --lime-ink: #d7ff59;
    --coral: #ff8a75;
    --coral-ink: #ff9d8a;
    --tint-coral: #3a211b;
    --tint-lime: #2c3712;
    --tint-green: #1f2c19;
    --tint-neutral: #282922;
  }
}

html.wf-inactive {
  --font-sans: var(--app-font-native-sans);
  --font-mono: var(--app-font-native-mono);
}

html.wf-loading [data-font-gated] {
  visibility: hidden;
}

html.wf-active [data-font-gated],
html.wf-inactive [data-font-gated] {
  visibility: visible;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 40;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- typography ---------- */

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

h1 {
  font-size: 56px;
  line-height: 63px;
  font-weight: 500;
  letter-spacing: -0.022em;
}

h2 {
  font-size: 36px;
  line-height: 43px;
  font-weight: 500;
  letter-spacing: -0.018em;
}

h3 {
  font-size: 24px;
  line-height: 31px;
  font-weight: 500;
  letter-spacing: -0.012em;
}

p {
  text-wrap: pretty;
}

.short-heading,
.hero h1,
.closing-band h2 {
  text-wrap: balance;
}

.lead {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 30px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  max-width: 760px;
}

.section-head > p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 20px;
  color: var(--muted);
}

.section-head + * {
  margin-top: 40px;
}

.text-link-row,
.status-links {
  margin-top: 28px;
}

.text-link {
  font-weight: 500;
  color: var(--ink);
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
}

.text-link:hover {
  color: var(--muted);
}

.honesty-note {
  max-width: var(--legal);
  margin-top: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--coral);
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}

/* ---------- layout ---------- */

.hero,
.intro,
.outcomes,
.section,
.closing-inner,
.header-inner,
.footer-inner,
.direct-layout,
.legal-layout,
.status-page {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  padding-block: 72px 64px;
}

.intro {
  padding-block: 64px 8px;
}

.outcomes {
  padding-block: 0 8px;
}

.section {
  padding-block: var(--section);
}

.section + .section {
  padding-top: 0;
}

.narrow {
  max-width: 860px;
}

.closing-band {
  background: var(--soft-green);
  margin-top: var(--section);
}

.closing-inner {
  padding-block: var(--section);
}

.closing-inner p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-mark {
  display: block;
  width: 60px;
  height: 60px;
  flex: none;
}

.footer-brand .wordmark-mark {
  width: 48px;
  height: 48px;
}

.wordmark-text {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.wordmark-text strong {
  font-weight: 600;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 16px;
  font-weight: 500;
}

.primary-nav a,
.nav-group-button {
  text-decoration: none;
}

.primary-nav a:hover,
.nav-group-button:hover {
  color: var(--muted);
}

.nav-group {
  position: relative;
}

.nav-group-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-group-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  min-width: 220px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--canvas);
  display: grid;
  gap: 2px;
}

.nav-group-panel a {
  padding: 10px 14px;
  border-radius: 10px;
}

.nav-group-panel a:hover {
  background: var(--soft-green);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--canvas);
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

.mobile-nav {
  display: none;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.button-primary {
  background: var(--lime);
  color: var(--on-lime);
}

.button-primary:hover {
  background: var(--lime-hover);
}

.button-secondary {
  border-color: var(--hairline);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--muted);
}

.button-compact {
  min-height: 44px;
  padding: 0 20px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- hero figure ---------- */

.hero-figure,
.hero-figure .figure-art {
  display: block;
  width: 100%;
}

.hero-figure figcaption,
figure figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

/* ---------- outcomes (unboxed) ---------- */

.outcome-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.outcome-list li {
  padding-top: 28px;
}

.outcome-list h3 {
  font-size: 22px;
  line-height: 29px;
}

.outcome-list p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}

/* ---------- worked example ---------- */

.example-request {
  margin-top: 28px;
  color: var(--muted);
}

.example-request strong {
  color: var(--ink);
  font-weight: 500;
}

.step-list {
  list-style: none;
  padding: 0;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  counter-reset: none;
}

.step-list li {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.step-number {
  color: var(--coral);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.step-list h3 {
  margin-top: 12px;
  font-size: 20px;
  line-height: 27px;
}

.step-list p + h3,
.step-list h3 + p {
  margin-top: 10px;
}

.step-list li > p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}

/* ---------- handoff fields / sheets ---------- */

.handoff-fields,
.sheet-fields {
  display: grid;
  margin-top: 32px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
}

.handoff-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sheet-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 0;
  border-radius: 0;
  margin-top: 20px;
}

.handoff-fields > div,
.sheet-fields > div {
  padding: 18px 20px;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.handoff-fields > div:first-child,
.sheet-fields > div:first-child {
  border-left: 0;
}

.sheet-fields > div:nth-child(odd) {
  border-left: 0;
}

.handoff-fields dt,
.sheet-fields dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.handoff-fields dd,
.sheet-fields dd {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 26px;
}

.sheet-figure {
  max-width: 760px;
  margin-top: 40px;
  padding: 28px 32px 32px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--canvas);
}

.sheet-title {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.handoff-figure {
  margin-top: 32px;
}

/* ---------- information rows ---------- */

.info-rows {
  border-top: 1px solid var(--hairline);
}

.info-row {
  display: grid;
  grid-template-columns: minmax(150px, 280px) minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}

.info-row h3 {
  font-size: 20px;
  line-height: 27px;
}

.info-row p {
  color: var(--muted);
  font-size: 17px;
  line-height: 27px;
  overflow-wrap: anywhere;
}

.info-note {
  margin-top: 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 24px;
}

.prose p + p {
  margin-top: 18px;
}

.prose p {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.prose {
  margin-top: 24px;
}

/* ---------- reference table ---------- */

.table-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--hairline);
}

.reference-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 26px;
}

.reference-table caption {
  caption-side: top;
  padding: 24px 0 20px;
  max-width: 860px;
  color: var(--muted);
  text-align: left;
  font-size: 15px;
  line-height: 24px;
}

.reference-table th,
.reference-table td {
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.reference-table thead th {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-table tbody th {
  font-weight: 500;
  white-space: nowrap;
}

.reference-table td {
  color: var(--muted);
}

.reference-table tbody td:nth-child(2) {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- direct (contact / company) ---------- */

.direct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  padding-block: 72px 8px;
}

.direct-panel h2 {
  font-size: 22px;
  line-height: 29px;
}

.direct-panel .info-rows {
  margin-top: 24px;
}

.disclosure {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}

.disclosure summary {
  cursor: pointer;
  font-weight: 500;
}

.disclosure ul {
  margin-top: 14px;
  padding-left: 20px;
  color: var(--muted);
}

.disclosure li + li {
  margin-top: 8px;
}

/* ---------- legal ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--legal));
  gap: 64px;
  padding-block: 64px 0;
}

.legal-toc {
  align-self: start;
  position: sticky;
  top: calc(var(--header) + 24px);
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.toc-heading {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin-top: 16px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 23px;
}

.legal-toc a {
  color: var(--muted);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.legal-document {
  max-width: var(--legal);
  padding-bottom: var(--section);
}

.legal-document h1 {
  font-size: 44px;
  line-height: 52px;
}

.legal-effective {
  margin-top: 12px;
  color: var(--coral);
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

.legal-document .lead {
  font-size: 19px;
  line-height: 29px;
}

.legal-document section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.legal-document h2 {
  font-size: 22px;
  line-height: 29px;
}

.legal-document section p {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px;
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.footer-brand p {
  max-width: 320px;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
  font-size: 15px;
  line-height: 24px;
}

.footer-heading {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--muted);
  text-decoration: underline;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

/* ---------- 404 ---------- */

.status-page {
  min-height: 52vh;
  padding-block: 96px var(--section);
}

.status-page h1 {
  max-width: 760px;
}

.status-page .eyebrow {
  color: var(--coral);
}

.status-links a {
  color: var(--muted);
}

/* ---------- restored long-form pages ---------- */

.legacy-section {
  border-top: 1px solid var(--hairline);
}

.legacy-prologue {
  padding-block: 22px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.legacy-prologue p {
  max-width: 920px;
  color: var(--muted);
  font-size: 16px;
}

.legacy-flow {
  max-width: 920px;
}

.legacy-flow > .eyebrow {
  margin-bottom: 14px;
}

.legacy-flow h2 {
  max-width: 780px;
  margin-bottom: 24px;
}

.legacy-flow h3 {
  max-width: 720px;
  margin-top: 34px;
  margin-bottom: 8px;
}

.legacy-flow > p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
}

.legacy-flow h3 + p {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}

.legacy-quote {
  max-width: 820px;
  margin: 48px 0 20px;
  padding-left: 24px;
  border-left: 5px solid var(--coral);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.legacy-detail {
  max-width: 760px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.legacy-detail summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
}

.legacy-detail p {
  margin-top: 12px;
  color: var(--muted);
}

.legacy-list-item {
  position: relative;
  padding-left: 22px;
}

.legacy-list-item::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  :root {
    --header: 70px;
    --section: 64px;
  }

  body {
    font-size: 17px;
    line-height: 27px;
  }

  h1 {
    font-size: 48px;
    line-height: 54px;
  }

  h2 {
    font-size: 32px;
    line-height: 39px;
  }

  .lead {
    font-size: 19px;
    line-height: 29px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 56px 48px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-figure {
    order: 2;
  }

  .outcome-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .outcome-list li {
    padding: 24px 0;
    border-bottom: 1px solid var(--hairline);
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .step-list li {
    padding: 22px 0;
  }

  .handoff-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .handoff-fields > div:nth-child(odd) {
    border-left: 0;
  }

  .direct-layout,
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-block: 56px 0;
  }

  .legal-toc {
    position: static;
  }

  .info-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .primary-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .direct-layout {
    gap: 40px;
  }

  .mobile-nav:not([hidden]) {
    display: block;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--hairline);
    background: var(--canvas);
    animation: menu-in 160ms ease-out;
  }

  .mobile-group-label {
    padding: 12px 0 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
  }

  .mobile-contact {
    justify-content: center;
    margin-top: 20px;
    border: 0 !important;
    border-radius: 999px;
    background: var(--lime);
  }

  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (max-width: 599px) {
  :root {
    --gutter: 20px;
    --section: 48px;
  }

  body {
    font-size: 16px;
    line-height: 26px;
  }

  h1 {
    font-size: 38px;
    line-height: 43px;
  }

  h2 {
    font-size: 28px;
    line-height: 34px;
  }

  h3 {
    font-size: 22px;
    line-height: 29px;
  }

  .lead {
    font-size: 18px;
    line-height: 27px;
  }

  .wordmark-mark {
    width: 52px;
    height: 52px;
  }

  .wordmark-text {
    font-size: 19px;
  }

  /* The lime call to action lives in the opened mobile navigation at this width,
     which keeps the header (wordmark + 44x44 menu button) inside the gutter. */
  .header-actions .button-compact {
    display: none;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .action-row {
    gap: 10px;
  }

  .handoff-fields,
  .sheet-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .handoff-fields > div:not(:first-child),
  .sheet-fields > div:not(:first-child) {
    border-left: 0;
  }

  .sheet-figure {
    padding: 22px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .reference-table {
    min-width: 640px;
  }
}

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

  .mobile-nav:not([hidden]) {
    animation: none;
  }
}

/* =========================================================================
   Homepage and product scenes
   ========================================================================= */

::selection {
  background: var(--lime);
  color: var(--on-lime);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.home-hero,
.channel-band,
.chapters,
.promises,
.teams,
.home-closing {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- hero ---------- */

.home-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
  padding-block: clamp(40px, 7vw, 104px) clamp(32px, 5vw, 72px);
}

.home-hero-copy {
  grid-column: 1 / span 5;
}

.home-hero-copy h1 {
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.home-hero-copy .lead {
  max-width: 34ch;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
}

.home-hero-copy .action-row {
  margin-top: 36px;
}

.home-hero-scene {
  grid-column: 6 / span 7;
  min-width: 0;
}

/* ---------- channel band ---------- */

.channel-band {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px;
  align-items: center;
  padding-block: 28px;
  border-block: 1px solid var(--hairline);
}

.channel-band-title {
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0;
}

.channel-band-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 0;
  list-style: none;
}

.channel-band-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}

.channel-status {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tint-neutral);
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

.channel-band-note {
  grid-column: 2;
  font-size: 15px;
  line-height: 22px;
}

/* ---------- chapters ---------- */

.chapters {
  padding-block: clamp(72px, 9vw, 128px) 0;
}

.chapters-head {
  max-width: 760px;
}

.chapters-head h2,
.promises h2,
.teams-head h2,
.home-closing h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.chapter {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
  padding-block: clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--hairline);
}

.chapter:last-child {
  border-bottom: 0;
}

.chapter-copy {
  grid-column: 1 / span 5;
}

.chapter-scene {
  grid-column: 7 / span 6;
  min-width: 0;
}

.chapter:nth-child(odd of .chapter) .chapter-copy {
  grid-column: 8 / span 5;
  grid-row: 1;
}

.chapter:nth-child(odd of .chapter) .chapter-scene {
  grid-column: 1 / span 6;
  grid-row: 1;
}

.chapter-index {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-index span {
  color: var(--coral-ink);
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.chapter h3 {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.chapter-copy > p {
  max-width: 46ch;
  margin-top: 18px;
  color: var(--muted);
}

.chapter-points {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.chapter-points li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 16px;
  line-height: 24px;
}

.chapter-points .icon {
  position: relative;
  top: 3px;
  color: var(--lime-ink);
  stroke-width: 2.4;
}

/* ---------- promises, teams, closing ---------- */

.promises {
  padding-block: clamp(72px, 9vw, 128px);
}

.promise-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
  counter-reset: promise;
}

.promise-list li {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
  counter-increment: promise;
}

.promise-list li::before {
  content: counter(promise, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--coral-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
}

.promise-list h3 {
  font-size: 22px;
  line-height: 1.25;
  text-wrap: balance;
}

.promise-list p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 25px;
}

.teams {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  padding-block: 0 clamp(72px, 9vw, 128px);
}

.teams-head {
  grid-column: 1 / span 5;
}

.teams-head > p:not(.eyebrow) {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--muted);
}

.team-list {
  grid-column: 7 / span 6;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.team-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}

.team-title {
  font-size: 19px;
  line-height: 26px;
  font-weight: 500;
}

.team-body {
  grid-row: 2;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

.team-arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 20px;
  transition: transform 220ms var(--ease-out);
}

.team-list a:hover {
  background: var(--soft-green);
}

.team-list a:hover .team-arrow {
  transform: translateX(4px);
}

.home-closing {
  max-width: none;
  margin-top: 0;
  padding-block: clamp(72px, 10vw, 140px);
  background: var(--lime);
  color: var(--on-lime);
  text-align: center;
}

.home-closing h2 {
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(36px, 4.6vw, 68px);
}

.home-closing p {
  max-width: 52ch;
  margin: 22px auto 0;
}

.home-closing .action-row {
  justify-content: center;
  margin-top: 36px;
}

.home-closing .button-primary {
  background: var(--on-lime);
  color: var(--lime);
}

.home-closing .button-primary:hover {
  background: #34352c;
}

.home-closing .button-secondary {
  border-color: var(--on-lime);
  color: var(--on-lime);
}

.home-closing .button-secondary:hover {
  background: var(--lime-hover);
}

.home-closing a:focus-visible {
  outline-color: var(--on-lime);
}

/* ---------- scene frame ---------- */

.scene {
  margin: 0;
}

.scene-stage {
  container-type: inline-size;
  transition: opacity 380ms var(--ease-in-out);
}

.scene.is-resetting .scene-stage {
  opacity: 0;
}

.scene-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.scene-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.scene-toggle:hover {
  border-color: var(--ink);
}

.scene-toggle:active {
  transform: scale(0.97);
}

.scene-toggle-play,
.scene-toggle-replay,
[data-scene-state="paused"] .scene-toggle-pause,
[data-scene-state="finished"] .scene-toggle-pause {
  display: none;
}

[data-scene-state="paused"] .scene-toggle-play,
[data-scene-state="finished"] .scene-toggle-replay {
  display: block;
}

.desk {
  padding: clamp(14px, 3cqi, 34px);
  border-radius: 28px;
  background: var(--soft-green);
}

.window {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
}

.window-title {
  font-weight: 600;
}

.window-sub {
  color: var(--muted);
}

.window-count {
  display: grid;
  margin-left: auto;
}

.count-open {
  grid-area: 1 / 1;
  justify-self: end;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--tint-neutral);
  font-size: 12px;
  font-weight: 600;
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-settle);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--tint-coral);
  color: var(--coral-ink);
  font-size: 11px;
  font-weight: 600;
}

.avatar-ana {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  background: var(--lime);
  color: var(--on-lime);
}

.q-channel {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: var(--tint-neutral);
  font-size: 15px;
}

.q-channel-phone {
  background: var(--tint-coral);
  color: var(--coral-ink);
}

.q-channel-sms {
  background: var(--tint-lime);
  color: var(--lime-ink);
}

.q-channel-chat {
  background: var(--tint-green);
  color: var(--lime-ink);
}

.bubble {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}

.bubble-out {
  justify-self: end;
  border-radius: 14px 14px 4px 14px;
  border-color: transparent;
  background: var(--ink);
  color: var(--canvas);
}

.receipt {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  opacity: 0.72;
  font-size: 11px;
}

.typed {
  display: inline-grid;
}

.typed-ghost,
.typed-live {
  grid-area: 1 / 1;
}

.typed-ghost {
  visibility: hidden;
}

/* every animated part eases on transform and opacity only */
.q-row,
.convo-head,
.bubble,
.draft,
.draft > *,
.next-step,
.q-done,
.tl-item,
.tl-facts,
.source,
.checks li,
.routed,
.hs-row,
.hs-notice,
.avatar-ana {
  transition:
    opacity 320ms var(--ease-out),
    transform 620ms var(--ease-settle),
    background-color 200ms ease,
    outline-color 200ms ease;
}

/* ---------- hero scene: the tidy-up ---------- */

.hero-window {
  min-height: 420px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  min-height: 374px;
}

.q-list {
  margin: 0;
  padding: 8px;
  list-style: none;
  border-right: 1px solid var(--hairline);
}

.q-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  outline: 1px solid transparent;
  outline-offset: -1px;
  background: var(--surface);
}

.q-body,
.tl-body {
  display: grid;
  min-width: 0;
}

.q-who {
  font-weight: 600;
}

.q-line {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.q-meta {
  display: grid;
  justify-items: end;
  color: var(--muted);
  font-size: 11px;
}

.q-tag {
  font-weight: 600;
}

.q-row-focus {
  background: var(--soft-green);
}

.s12 .q-row-focus {
  background: var(--surface);
}

.s12 .q-row-focus .q-channel {
  opacity: 0.5;
}

.s12 .q-row-focus .q-who {
  color: var(--muted);
}

.q-done {
  position: absolute;
  right: 8px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 11px;
  font-weight: 600;
  transform: translateY(-50%);
}

.q-row-1 { --sx: 112%; --sy: 18%; --sr: -6deg; }
.q-row-2 { --sx: 150%; --sy: 170%; --sr: 4deg; }
.q-row-3 { --sx: 34%; --sy: 210%; --sr: -3deg; }
.q-row-4 { --sx: 96%; --sy: -118%; --sr: 5deg; }

.is-live:not(.s5) .q-row {
  z-index: 1;
  outline-color: var(--hairline);
  transform: translate(var(--sx), var(--sy)) rotate(var(--sr));
}

.is-live:not(.s1) .q-row-1,
.is-live:not(.s2) .q-row-2,
.is-live:not(.s3) .q-row-3,
.is-live:not(.s4) .q-row-4 {
  opacity: 0;
  transform: translate(var(--sx), calc(var(--sy) - 40%)) rotate(var(--sr)) scale(0.92);
}

.is-live:not(.s6) .q-row-focus {
  background: var(--surface);
}

.convo {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.convo-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.convo-head > span:last-child {
  display: grid;
}

.convo-sub {
  color: var(--muted);
  font-size: 12px;
}

.convo-stack {
  display: grid;
}

.convo-stack > * {
  grid-area: 1 / 1;
  align-self: start;
}

.draft {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
}

.draft-label,
.draft-source,
.draft-guard,
.next-step,
.routed,
.hs-notice {
  display: flex;
  gap: 8px;
  align-items: center;
}

.draft-label {
  color: var(--lime-ink);
  font-weight: 600;
}

.draft-source,
.draft-guard {
  color: var(--muted);
  font-size: 12px;
}

.draft-guard .icon {
  color: var(--coral-ink);
}

.draft-actions {
  display: flex;
  gap: 8px;
}

.fake-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}

.fake-approve {
  border-color: transparent;
  background: var(--lime);
  color: var(--on-lime);
}

.is-live.s10:not(.s11) .fake-approve {
  background: var(--lime-hover);
  transform: scale(0.94);
}

.next-step {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft-green);
}

.is-live:not(.s6) .convo-head,
.is-live:not(.s6) .bubble-in,
.is-live:not(.s7) .draft,
.is-live:not(.s8) .draft-source,
.is-live:not(.s9) .draft-guard,
.is-live:not(.s9) .draft-actions,
.is-live:not(.s11) .bubble-out,
.is-live:not(.s12) .next-step {
  opacity: 0;
  transform: translateY(10px);
}

.s11 .draft {
  opacity: 0;
  transform: scale(0.96);
}

.is-live:not(.s12) .q-done {
  opacity: 0;
  transform: translateY(-50%) scale(0.6);
}

.count-three,
.is-live:not(.s12) .count-three {
  opacity: 0;
  transform: translateY(8px);
}

.s12 .count-three {
  opacity: 1;
  transform: none;
}

.s12 .count-four {
  opacity: 0;
  transform: translateY(-8px);
}

.is-live:not(.s12) .count-four {
  opacity: 1;
  transform: none;
}

/* ---------- chapter 1: timeline ---------- */

.timeline-window {
  min-height: 330px;
}

.tl-list {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 18px 6px;
  list-style: none;
}

.tl-list::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 30px;
  left: 31px;
  width: 2px;
  background: var(--hairline);
  transform-origin: top;
  transition: transform 700ms var(--ease-in-out);
}

.is-live:not(.s4) .tl-list::before {
  transform: scaleY(0);
}

.tl-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  outline: 1px solid transparent;
  outline-offset: -1px;
  background: var(--surface);
}

.tl-when {
  color: var(--muted);
  font-size: 12px;
}

.tl-item-1 { --sx: 18%; --sy: 40%; --sr: -4deg; }
.tl-item-2 { --sx: 34%; --sy: -10%; --sr: 3deg; }
.tl-item-3 { --sx: 8%; --sy: -50%; --sr: -2deg; }

.is-live:not(.s2) .tl-item-1,
.is-live:not(.s3) .tl-item-2,
.is-live:not(.s4) .tl-item-3 {
  outline-color: var(--hairline);
  transform: translate(var(--sx), var(--sy)) rotate(var(--sr));
}

.is-live:not(.s1) .tl-item {
  opacity: 0;
}

.tl-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 10px 18px 18px 60px;
}

.tl-facts span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soft-green);
  font-size: 12px;
}

.is-live:not(.s5) .tl-facts {
  opacity: 0;
  transform: translateY(8px);
}

.tl-count-one,
.s5 .tl-count-many {
  opacity: 0;
}

.s5 .tl-count-one,
.is-live:not(.s5) .tl-count-many {
  opacity: 1;
}

.is-live:not(.s5) .tl-count-one {
  opacity: 0;
}

/* ---------- chapter 2: cited draft ---------- */

.draft-grid {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
}

.draft-main {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.checks {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 10px 0 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.checks li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
}

.checks .icon {
  margin-top: 2px;
}

.check-ok .icon {
  color: var(--lime-ink);
}

.check-ask .icon {
  color: var(--coral-ink);
}

.routed {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft-green);
}

.sources {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 16px;
  list-style: none;
  border-left: 1px solid var(--hairline);
  background: var(--surface-2);
}

.sources::before {
  content: "Reviewed knowledge";
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px;
  border-radius: 10px;
  outline: 1px solid var(--hairline);
  outline-offset: -1px;
  background: var(--surface);
}

.source .icon {
  margin-top: 2px;
  color: var(--muted);
}

.source > span {
  display: grid;
}

.source-name {
  font-weight: 600;
}

.source-meta {
  color: var(--muted);
  font-size: 11px;
}

.source-hit {
  outline: 2px solid var(--lime-ink);
}

.source-hit .icon {
  color: var(--lime-ink);
}

.is-live:not(.s2) .source {
  opacity: 0;
  transform: translateX(12px);
}

.source-2 { transition-delay: 80ms; }
.source-3 { transition-delay: 160ms; }

.is-live:not(.s2) .source-hit {
  outline-color: var(--hairline);
}

.is-live:not(.s1) .draft-main > .bubble-in,
.is-live:not(.s3) .draft-solo,
.is-live:not(.s4) .check-ok,
.is-live:not(.s5) .check-ask,
.is-live:not(.s6) .routed {
  opacity: 0;
  transform: translateY(10px);
}

/* ---------- chapter 3: handoff sheet ---------- */

.hs-fields {
  margin: 0;
  padding: 6px 18px;
}

.hs-row {
  display: grid;
  grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.hs-row dt {
  color: var(--muted);
}

.hs-row dd {
  display: flex;
  align-items: center;
  margin: 0;
  font-weight: 500;
}

.hs-row-2 dd {
  color: var(--lime-ink);
  font-weight: 600;
}

.hs-notice {
  margin: 12px 18px 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft-green);
}

.hs-reply {
  margin: 14px 18px 0;
}

.hs-reply .icon {
  vertical-align: -2px;
  color: var(--lime-ink);
}

.is-live:not(.s1) .hs-row-1,
.is-live:not(.s2) .hs-row-2,
.is-live:not(.s3) .hs-row-3,
.is-live:not(.s5) .hs-reply,
.is-live:not(.s6) .hs-notice {
  opacity: 0;
  transform: translateY(8px);
}

.is-live:not(.s1) .avatar-ana {
  opacity: 0;
  transform: scale(0.4);
}

/* status: unassigned → snoozed (s4) → needs reply (s6) */
.hs-new,
.hs-owned {
  opacity: 0;
  transform: translateY(6px);
}

.hs-new {
  background: var(--tint-neutral);
}

.hs-owned {
  background: var(--lime);
  color: var(--on-lime);
}

.s6 .hs-owned,
.is-live.s4:not(.s6) .hs-new {
  opacity: 1;
  transform: none;
}

/* ---------- scene layouts at narrow container widths ---------- */

@container (max-width: 540px) {
  .hero-grid,
  .draft-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .q-list {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .q-row-1 { --sx: 4%; --sy: 30%; --sr: -4deg; }
  .q-row-2 { --sx: -3%; --sy: 120%; --sr: 3deg; }
  .q-row-3 { --sx: 5%; --sy: -40%; --sr: -2deg; }
  .q-row-4 { --sx: -4%; --sy: -150%; --sr: 3deg; }

  .sources {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .tl-item-1 { --sx: 6%; --sy: 40%; }
  .tl-item-2 { --sx: 10%; }
  .tl-item-3 { --sx: 4%; }

  .hs-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ---------- homepage responsive composition ---------- */

@media (max-width: 1100px) {
  .home-hero-copy,
  .home-hero-scene {
    grid-column: 1 / -1;
  }

  .home-hero-copy {
    max-width: 720px;
    margin-bottom: 40px;
  }

  .home-hero-copy .lead {
    max-width: 52ch;
  }

  .chapter-copy,
  .chapter-scene,
  .chapter:nth-child(odd of .chapter) .chapter-copy,
  .chapter:nth-child(odd of .chapter) .chapter-scene,
  .teams-head,
  .team-list {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .chapter-copy {
    max-width: 640px;
    margin-bottom: 36px;
  }

  .team-list {
    margin-top: 36px;
  }
}

@media (max-width: 760px) {
  .channel-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .channel-band-note {
    grid-column: 1;
  }

  .promise-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .desk {
    border-radius: 20px;
  }

  .hero-window,
  .hero-grid {
    min-height: 0;
  }

  .home-closing .action-row .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene *,
  .scene-stage,
  .team-arrow {
    transition: none !important;
  }
}

/* The approved V4 mark is a byte-identical PNG on white; in dark mode it is
   presented as an app-icon tile rather than a hard white square. */
@media (prefers-color-scheme: dark) {
  .wordmark-mark {
    border-radius: 22%;
  }
}

.q-meta {
  transition: opacity 200ms ease;
}

.s12 .q-row-focus .q-meta {
  opacity: 0;
}
