/* Number Geniuses marketing site. Tokens come from apps/legal-crm/src/app/globals.css. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/fraunces-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 500; font-display: swap; src: url(fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter-normal.woff2) format("woff2"); }

:root {
  --ink: #13241c;
  --ink-soft: #1c2a23;
  --green: #1a7f5a;
  --green-deep: #146548;
  --green-mid: #2f8f6b;
  --gold: #c9a25e;
  --paper: #f7f6f1;
  --sand: #e7e1d3;
  --rule: #d8d2c4;
  --body: #3a463f;
  --muted: #5d6259;
  --on-ink: #e9ece4;
  --on-ink-muted: #b4c2b9;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(16px, 4.5vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-feature-settings: "ss01", "cv11"; margin: 0; background: var(--paper); color: var(--body); font: 400 1.0625rem/1.62 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
::selection { background: #d7e8dc; color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }
.band-ink :focus-visible { outline-color: var(--gold); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 8vw, 7.2rem); line-height: 1.02; letter-spacing: -0.018em; word-spacing: 0.04em; font-weight: 450; }
h2 { font-size: clamp(1.85rem, 3.9vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.02em; }
p { text-wrap: pretty; max-width: 62ch; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 12px 20px; border-radius: 6px; }
.skip:focus-visible { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 7px; border: 1px solid transparent; font: 600 0.9375rem/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--green); color: #fff; }
.btn-line { background: transparent; border-color: #b9b39f; color: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.link { font-weight: 600; font-size: 0.9375rem; text-decoration: none; color: var(--ink); padding: 12px 4px; }
.band-ink .btn-line { border-color: #5b6f63; color: var(--on-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--green-deep); }
  .btn-line:hover { border-color: var(--ink); background: #efede4; }
  .link:hover { text-decoration: underline; text-underline-offset: 4px; }
  .nav a:hover { color: var(--green-deep); }
  .foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 600 1.2rem/1 var(--serif); letter-spacing: -0.03em; color: var(--ink); min-height: 44px; }
.brand i { font-style: normal; color: #a07c36; }
.nav { display: none; gap: 28px; font-size: 0.9rem; font-weight: 500; }
.nav a { position: relative; text-decoration: none; padding: 12px 0; color: var(--body); transition: color 0.16s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease); }
.nav a[aria-current] { color: var(--green-deep); }
.nav a[aria-current]::after { transform: none; }
.top-cta { display: flex; align-items: center; gap: 10px; }
.top-cta .btn { min-height: 42px; padding: 0 16px; font-size: 0.875rem; }
@media (min-width: 980px) { .nav { display: flex; } }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--green-deep); }
.hero-side { display: grid; gap: 4px; align-items: end; margin-top: clamp(28px, 3.4vw, 44px); }
.lede { max-width: 66ch; font-size: 1.125rem; line-height: 1.6; color: var(--body); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 980px) {
  .hero-side { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; }
  .hero-side .actions { margin-top: 0; justify-content: flex-start; padding-bottom: 4px; }
}

/* The lead path: one gold square walks the five stages once, then rests on Signed.
   The resting state is the default, so no motion means no loss. */
.path { position: relative; margin-top: clamp(24px, 3.2vw, 40px); }
.path ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.path ol::before, .path ol::after { content: ""; position: absolute; left: 0; top: 11px; height: 2px; border-radius: 1px; }
.path ol::before { right: 0; background: var(--rule); }
.path ol::after { left: 0; width: 80%; background: var(--green); transform-origin: left; }
.path li { position: relative; padding-top: 34px; padding-right: 6px; font-size: clamp(0.6875rem, 1.5vw, 0.9375rem); font-weight: 500; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.path li i { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 5px; background: var(--green); }
.path li:nth-child(2) i { background: var(--green-mid); }
.path li:nth-child(3) i { background: var(--ink); }
.path li:nth-child(4) i { background: var(--green-deep); }
.path li:nth-child(5) i { background: var(--gold); }
.path .lead { position: absolute; left: 0; top: 0; width: 20%; transform: translateX(400%); }
.path .lead b { display: block; width: 24px; height: 24px; border-radius: 7px; background: var(--gold); box-shadow: 0 0 0 5px var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .path ol::after { animation: rail 3.9s cubic-bezier(0.45, 0, 0.25, 1) 0.5s both; }
  .path .lead { animation: walk 3.9s linear 0.5s both; }
  .path li i { animation: lit 0.5s var(--ease) both; }
  .path li:nth-child(1) i { animation-delay: 0.3s; } .path li:nth-child(2) i { animation-delay: 1.45s; } .path li:nth-child(3) i { animation-delay: 2.45s; } .path li:nth-child(4) i { animation-delay: 3.45s; } .path li:nth-child(5) i { animation-delay: 4.45s; }
  .path li { animation: say 0.6s var(--ease) both; }
  .path li:nth-child(1) { animation-delay: 0.2s; } .path li:nth-child(2) { animation-delay: 1.35s; } .path li:nth-child(3) { animation-delay: 2.35s; } .path li:nth-child(4) { animation-delay: 3.35s; } .path li:nth-child(5) { animation-delay: 4.35s; }
  @keyframes rail { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes walk { 0%, 6% { transform: translateX(0); animation-timing-function: var(--ease); } 22%, 31% { transform: translateX(100%); animation-timing-function: var(--ease); } 47%, 56% { transform: translateX(200%); animation-timing-function: var(--ease); } 72%, 81% { transform: translateX(300%); animation-timing-function: var(--ease); } 100% { transform: translateX(400%); } }
  @keyframes lit { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
  @keyframes say { from { opacity: 0.35; } to { opacity: 1; } }
}
.shot { margin: 0; }
.shot img { border: 1px solid var(--rule); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(19, 36, 28, 0.05), 0 24px 48px -24px rgba(19, 36, 28, 0.28); }
.shot figcaption { margin-top: 14px; font-size: 0.875rem; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.hero-shot { margin-top: clamp(40px, 5vw, 72px); }
.hero-shot img { width: 100%; }
/* The crop is deliberate: the screen fades out instead of ending mid-row. */
.hero-shot picture { display: block; -webkit-mask-image: linear-gradient(#000 74%, transparent 99%); mask-image: linear-gradient(#000 74%, transparent 99%); }
.hero-shot picture img { box-shadow: none; }
.hero-shot figcaption { margin-top: 18px; }

/* Hero overlays: the loop's last two steps sit over the first screen. */
.frame { position: relative; }
.float { display: none; }
@media (min-width: 900px) {
  .float { display: block; position: absolute; }
  .f-ret { right: -20px; bottom: 36px; width: min(380px, 34%); }
  .f-ret img { border: 1px solid var(--rule); border-radius: 10px; width: 100%; box-shadow: 0 2px 4px rgba(19, 36, 28, 0.08), 0 30px 50px -20px rgba(19, 36, 28, 0.45); }
  .f-chip { right: 28px; bottom: -14px; display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #f6f4ea; font: 600 0.8125rem/1 var(--sans); padding: 11px 16px; border-radius: 999px; max-width: none; }
  .f-chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--gold); }
}

/* Section heads */
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head p { color: var(--muted); font-size: 1.0625rem; }
@media (min-width: 900px) { .sec-head { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: end; } }

section { scroll-margin-top: 80px; }
.loop, .roles, .review, .report, .integ { padding-block: clamp(56px, 9vw, 128px); }

/* Loop: the waterfall from the logo, steps cascade down and to the right. */
.stairs { --step: 0px; display: grid; }
.stairs li { display: grid; grid-template-columns: auto minmax(0, 36rem); gap: 20px; justify-content: start; align-items: start; padding: 26px 0; border-top: 1px solid var(--rule); }
.stairs li:last-child { border-bottom: 1px solid var(--rule); }
.stairs h3 { margin-bottom: 8px; }
.stairs p { color: var(--body); font-size: 1rem; }
.sq { width: 18px; height: 18px; border-radius: 5px; margin-top: 6px; background: var(--green); }
.s2 .sq { background: var(--green-mid); }
.s3 .sq, .s4 .sq { background: var(--ink); }
.s5 .sq { background: var(--green-deep); width: 20px; height: 20px; }
.s6 .sq { background: var(--gold); width: 24px; height: 24px; border-radius: 7px; margin-top: 4px; }
@media (min-width: 760px) {
  .stairs li { padding-left: var(--step); }
  .s1 { --step: 0px; } .s2 { --step: clamp(20px, 4vw, 64px); } .s3 { --step: clamp(40px, 8vw, 128px); } .s4 { --step: clamp(60px, 12vw, 192px); } .s5 { --step: clamp(80px, 16vw, 256px); } .s6 { --step: clamp(100px, 20vw, 320px); }
  .stairs li { grid-template-columns: auto minmax(0, 34rem); }
}
/* One reveal: the steps draw in once as the list scrolls into view. */
.js .stairs li { opacity: 0; transform: translateX(-14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .stairs.in li { opacity: 1; transform: none; }
.js .stairs.in li:nth-child(2) { transition-delay: 70ms; } .js .stairs.in li:nth-child(3) { transition-delay: 140ms; } .js .stairs.in li:nth-child(4) { transition-delay: 210ms; } .js .stairs.in li:nth-child(5) { transition-delay: 280ms; } .js .stairs.in li:nth-child(6) { transition-delay: 350ms; }

/* Section hinge: the logo's three squares straddle the edge where a band begins. */
.band, .band-ink { position: relative; }
.band::before, .band-ink::before { content: ""; position: absolute; top: -9px; left: max(var(--gutter), calc((100% - 1240px) / 2)); width: 18px; height: 18px; border-radius: 5px; background: var(--green); box-shadow: 24px 14px 0 -1px var(--green-mid), 48px 28px 0 -2px var(--gold); }
.band::before { background: var(--ink); }

/* SMS */
.band { background: var(--sand); padding-block: clamp(56px, 9vw, 120px); }
.sms-grid { display: grid; gap: 48px; align-items: start; }
.sms-copy h2 { margin-bottom: 22px; }
.sms-copy > p { margin-bottom: 26px; }
.rules { display: grid; gap: 0; max-width: 34rem; }
.rules li { padding: 14px 0 14px 28px; border-top: 1px solid #cbc3b0; position: relative; font-size: 1rem; }
.rules li::before { content: ""; position: absolute; left: 0; top: 22px; width: 10px; height: 10px; border-radius: 3px; background: var(--green); }
.phone-wrap { justify-self: center; width: 100%; max-width: 340px; }
.phone { background: var(--ink); border-radius: 38px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(19, 36, 28, 0.6); }
.phone-bar { background: #fbfaf6; border-radius: 28px 28px 0 0; padding: 16px 18px 12px; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.phone-bar b { font: 600 0.9rem/1.2 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.phone-bar span { font-size: 0.75rem; color: var(--muted); }
.thread { position: relative; background: #fbfaf6; border-radius: 0 0 28px 28px; padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 0.875rem; line-height: 1.42; }
.msg.a { align-self: flex-start; background: #ecebe3; color: var(--ink); border-bottom-left-radius: 5px; }
.msg.l { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 5px; }
.note { align-self: center; font-size: 0.75rem; color: var(--muted); padding: 2px 0; }
.note.done { background: #e1efe6; color: #0f5a3e; font-weight: 600; padding: 6px 12px; border-radius: 6px; }
.js .thread > * { opacity: 0; transform: translateY(8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.js .thread > .in { opacity: 1; transform: none; }
.thread > .typing { display: none; }
.js .thread > .typing { display: flex; gap: 5px; align-items: center; position: absolute; left: 14px; height: 38px; padding: 0 14px; border-radius: 16px 16px 16px 5px; background: #ecebe3; opacity: 0; transform: none; transition: opacity 0.15s ease; }
.js .thread > .typing.on { opacity: 1; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #7d857b; animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.phone-cap { margin-top: 16px; font-size: 0.875rem; color: var(--muted); text-align: center; }
.replay { display: block; margin: 8px auto 0; background: none; border: 1px solid #a79f88; color: var(--ink); font: 600 0.875rem/1 var(--sans); min-height: 44px; padding: 0 16px; border-radius: 7px; cursor: pointer; transition: transform 0.16s var(--ease), background-color 0.16s ease; }
.replay:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .replay:hover { background: #ded8c7; } }
@media (min-width: 900px) { .sms-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 80px; } }

/* Case review */
.review { display: grid; gap: 40px; align-items: start; }
.tall { background: var(--sand); border-radius: 14px; padding: 22px 22px 0; max-width: 363px; overflow: hidden; position: relative; }
.tall img { width: 100%; max-width: 315px; box-shadow: none; border-bottom: 0; border-radius: 10px 10px 0 0; }
.tall figcaption { margin: 0 -22px; padding: 14px 22px 18px; background: var(--sand); position: relative; }
.tall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 56px; height: 90px; background: linear-gradient(transparent, var(--sand)); pointer-events: none; }
.review .tall { order: 2; }
.review-copy h2 { margin-bottom: 22px; }
.review-copy p { margin-bottom: 16px; }
.facts { margin-top: 32px; display: grid; gap: 0; max-width: 34rem; }
.facts > div { padding: 16px 0; border-top: 1px solid var(--rule); }
.facts dt { font: 500 1.15rem/1.3 var(--serif); color: var(--ink); margin-bottom: 4px; }
.facts dd { font-size: 0.9688rem; }
@media (min-width: 900px) { .review { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 88px; } .review .tall { order: 0; justify-self: center; } }

/* Retainer */
.band-ink { background: var(--ink); color: var(--on-ink); padding-block: clamp(56px, 9vw, 120px); }
.band-ink h2, .band-ink h3 { color: #f6f4ea; }
.ret-grid { display: grid; gap: 44px; align-items: center; }
.retainer p { margin-top: 18px; color: var(--on-ink); }
.states { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.states li { border: 1px solid #4d6155; border-radius: 6px; padding: 7px 13px; font-size: 0.875rem; font-weight: 500; color: var(--on-ink); }
.states li.ok { border-color: var(--gold); color: #ecd7a8; }
.shot.dark figcaption { color: var(--on-ink-muted); }
.shot.dark img { border-color: #3a4c41; box-shadow: none; }
@media (min-width: 900px) { .ret-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; } }

/* Roles */
.role-list { display: grid; }
.role-list > div { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--rule); }
.role-list > div:last-child { border-bottom: 1px solid var(--rule); }
.role-list dt { font: 500 1.7rem/1.1 var(--serif); color: var(--ink); letter-spacing: -0.025em; }
.role-list dd { max-width: 44rem; }
@media (min-width: 760px) { .role-list > div { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 48px; align-items: baseline; padding: 26px 0; } .role-list dt { font-size: 2.1rem; } }

/* Reporting */
.report { display: grid; gap: 36px; background: transparent; }
.report-copy p { margin-top: 18px; }
.report-copy h2 { max-width: 14em; }
.report-a img, .report-b img { width: 100%; }
@media (min-width: 900px) {
  .report { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; }
  .report-copy { grid-column: 1 / span 5; align-self: start; }
  .report-a { grid-column: 6 / span 7; }
  .report-b { grid-column: 3 / span 8; margin-top: -72px; position: relative; }
  .report-b img { box-shadow: 0 2px 4px rgba(19, 36, 28, 0.08), 0 36px 60px -24px rgba(19, 36, 28, 0.42); }
}

/* Integrations */
.integ { display: grid; gap: 44px; align-items: start; border-top: 1px solid var(--rule); }
.int-list { margin-top: 32px; display: grid; }
.int-list > div { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
.int-list dt { font: 500 1.3rem/1.2 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.int-list dd { font-size: 0.9688rem; max-width: 40rem; }
.clio-shot img { width: 100%; max-width: 512px; }
@media (min-width: 900px) { .integ { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; } .clio-shot { position: sticky; top: 100px; } }

/* Security */
.security h2 { max-width: 20em; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-list { display: grid; gap: 0; }
.sec-list > div { padding: 22px 0; border-top: 1px solid #3a4c41; display: grid; gap: 6px; }
.sec-list dt { font: 500 1.35rem/1.2 var(--serif); color: #f6f4ea; letter-spacing: -0.02em; }
.sec-list dd { color: var(--on-ink); font-size: 0.9688rem; max-width: 34rem; }
.sec-list > div:last-child { border-bottom: 1px solid #3a4c41; }
@media (min-width: 760px) { .sec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; } .sec-list > div:nth-last-child(2) { border-bottom: 1px solid #3a4c41; } }

/* Final */
.final { position: relative; }
.cascade { display: none; }
@media (min-width: 900px) {
  .cascade { display: block; position: absolute; right: 0; top: clamp(40px, 8vw, 110px); width: 260px; height: 260px; }
  .cascade i { position: absolute; border-radius: 28px; }
  .cascade i:nth-child(1) { left: 0; top: 0; width: 120px; height: 120px; background: var(--green); }
  .cascade i:nth-child(2) { left: 52px; top: 52px; width: 120px; height: 120px; background: var(--ink); }
  .cascade i:nth-child(3) { left: 112px; top: 112px; width: 148px; height: 148px; background: var(--gold); border-radius: 34px; }
}
.final { padding-block: clamp(72px, 11vw, 150px); }
.final h2 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); max-width: 13em; margin-bottom: 20px; letter-spacing: -0.035em; }
.final p { font-size: 1.1875rem; }

/* Footer */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--rule); padding-top: 56px; background: #efede3; }
.foot-in { display: grid; gap: 36px; padding-bottom: 28px; }
.foot-brand p { margin: 12px 0 20px; font-size: 0.9375rem; color: var(--muted); max-width: 30ch; }
.foot-col { display: flex; flex-direction: column; }
.foot-col h2 { font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0; color: var(--muted); margin-bottom: 6px; }
.foot-col a { padding: 8px 0; min-height: 44px; display: flex; align-items: center; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.9375rem; width: fit-content; }
.copy { font-size: 0.8125rem; color: var(--muted); max-width: none; border-top: 1px solid var(--rule); padding-top: 20px; }
.copy a { color: var(--ink); text-underline-offset: 3px; margin-left: 8px; display: inline-block; padding: 8px 4px; }
.mark::before { content: "Number Geniuses." / ""; }
.mark { font: 500 clamp(3.2rem, 13.4vw, 12.5rem)/0.8 var(--serif); letter-spacing: -0.045em; color: #e3dece; white-space: nowrap; margin: 0; max-width: none; padding-top: 12px; user-select: none; text-align: center; transform: translateY(0.07em); }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; } .copy { grid-column: 1 / -1; } }

@media (max-width: 420px) {
  .top-cta .link { display: none; }
  .brand { font-size: 1.05rem; }
}

/* Scroll-linked staircase: each step lights as it crosses the viewport. Chromium and Safari; others keep the one-time reveal. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes lit-row { from { transform: translateY(16px); } to { transform: none; } }
    @keyframes lit-sq { from { transform: scale(0.55); } to { transform: scale(1); } }
    .js .stairs li { opacity: 1; transform: none; transition: none; transition-delay: 0s !important; animation: lit-row linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }
    .js .stairs .sq { animation: lit-sq linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .stairs li, .js .thread > * { opacity: 1; transform: none; }
  .thread > .typing { display: none !important; }
}
