/* aihelps.cloud. Reference: Runway (design/reference-runway.md). Plan: design/PLAN.md (round 6). */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-var.woff2?v=2026.09.10") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geistmono-var.woff2?v=2026.09.10") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --canvas: #070708;
  --surface: #121213;
  --hairline: #262628;
  --ink: #f3f3f1;
  --ink-2: #9e9e9c;
  --ink-3: #80807e;
  --danger: #e5484d;
  --on-ink: #070708;
  --sheet-filter: invert(1) contrast(1.5) brightness(0.95);
  --sheet-blend: screen;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-display: clamp(3.25rem, 8vw, 8rem);
  --fs-section: clamp(2.125rem, 3.6vw, 3.5rem);
  --fs-statement: clamp(1.5rem, 2.5vw, 2.25rem);
  --fs-outcome: clamp(1.5rem, 2.5vw, 2.25rem);
  --fs-item: clamp(1.5rem, 2vw, 2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-meta: 0.8125rem;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --col-gap: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 11vw, 9.5rem);
  --r-control: 6px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --canvas: #f3f3f2; --surface: #fbfbfa; --hairline: #d8d8d5;
    --ink: #0c0c0d; --ink-2: #545452; --ink-3: #676765;
    --danger: #cd2b31; --on-ink: #f3f3f2;
    --sheet-filter: brightness(1.18) contrast(1.12);
    --sheet-blend: multiply;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --canvas: #f3f3f2; --surface: #fbfbfa; --hairline: #d8d8d5;
  --ink: #0c0c0d; --ink-2: #545452; --ink-3: #676765;
  --danger: #cd2b31; --on-ink: #f3f3f2;
  --sheet-filter: brightness(1.18) contrast(1.12);
  --sheet-blend: multiply;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 40px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a, button, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ink); color: var(--on-ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.125em; height: 1.125em; fill: currentColor; flex: none; }
.container {
  width: 100%; max-width: 1440px; margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--col-gap); }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* Every image on the page is the same sheet, printed (light) or as a negative (dark). */
.sheet-img { filter: var(--sheet-filter); }
/* Paper disappears into the page by blending (multiply in light, screen in dark); the blend sits on the
   masked container so it composites against the page, not inside an isolated group. */
/* .stage is sticky (its own stacking context), so it carries the blend for the loupe inside it. */
.bleed, .loupe, .assembly, .steps li::before, .stage { mix-blend-mode: var(--sheet-blend); }
/* Edges dissolve into the page so the print never reads as a pasted rectangle. */
.bleed {
  -webkit-mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 72%, transparent 100%);
}

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 100; transform: translateY(-160%);
  background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--r-control);
  transition: transform 200ms var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */
.display { font-size: var(--fs-display); line-height: 0.92; letter-spacing: -0.05em; font-weight: 400; }
.section-title { font-size: var(--fs-section); line-height: 1; letter-spacing: -0.035em; font-weight: 400; }
.item-title { font-size: var(--fs-item); line-height: 1.1; letter-spacing: -0.02em; font-weight: 450; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1000px) { .section-head .section-title { grid-column: 1 / span 6; } }
.caption { font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: var(--r-control);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform 320ms var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: 0.875rem; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--ink) 86%, var(--canvas)); }
.btn-ghost { color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-control);
  background: transparent; border: 1px solid transparent; cursor: pointer; color: inherit;
  transition: border-color 240ms var(--ease);
}
.icon-btn:hover { border-color: var(--hairline); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: var(--canvas); color: var(--ink);
  border-bottom: 1px solid transparent; transition: border-color 240ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.wordmark { font-size: 1.3125rem; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
a.wordmark:hover { opacity: 0.75; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2rem; }
.nav-list a { font-size: 0.9375rem; color: var(--ink-2); transition: color 200ms var(--ease); }
.nav-list a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}
.menu-toggle { display: none; }
@media (max-width: 899px) {
  .nav, .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--canvas); color: var(--ink);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom); animation: sheet-in 360ms var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-top { height: var(--header-h); flex: none; display: flex; align-items: center; justify-content: space-between; }
.mobile-nav { display: flex; flex-direction: column; gap: 0.25rem; padding-block: 2rem; }
.mobile-nav a:not(.btn) { font-size: 2.25rem; letter-spacing: -0.03em; line-height: 1.2; padding: 0.25rem 0; }
.mobile-nav .btn { margin-top: 2rem; align-self: flex-start; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-head { position: relative; z-index: 2; padding-top: clamp(2rem, 5vw, 4rem); row-gap: 1.75rem; }
.hero .display { grid-column: 1 / -1; }
.hero .display .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.06em; }
.hero .display .line > span { display: block; }
.hero .display .line:nth-child(2) { color: var(--ink-2); }
.hero-lede { display: grid; gap: 1.75rem; }
.hero-sub { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 1000px) {
  .hero .display { grid-column: 1 / span 9; }
  .hero-lede { grid-column: 7 / span 5; align-self: end; margin-top: calc(var(--fs-display) * -1.02); }
}
.hero-plate { position: relative; z-index: 1; margin-top: clamp(0.5rem, 1.5vw, 1rem); aspect-ratio: 3200 / 2099; max-height: 88svh; width: 100%; }
.hero-plate picture, .hero-plate img { width: 100%; height: 100%; }
.hero-plate img { object-fit: cover; object-position: 50% 50%; }
@media (max-width: 999px) {
  .hero-plate { aspect-ratio: 4 / 5; margin-top: 0; }
  .hero-plate img { object-position: 46% 45%; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero .display .line > span { transform: translateY(105%); transition: transform 1100ms var(--ease); animation: reveal-failsafe 1ms linear 2.5s forwards; }
  .js .hero .display .line:nth-child(2) > span { transition-delay: 150ms; }
  .js .hero-lede { opacity: 0; transform: translateY(14px); transition: opacity 900ms var(--ease) 520ms, transform 900ms var(--ease) 520ms; animation: reveal-failsafe 1ms linear 2.5s forwards; }
  .js .hero-plate img { opacity: 0; transform: scale(1.05); transition: opacity 1400ms var(--ease) 200ms, transform 2200ms var(--ease) 200ms; animation: reveal-failsafe 1ms linear 2.5s forwards; }
  .is-ready .hero .display .line > span, .is-ready .hero-lede { transform: none; opacity: 1; }
  .is-ready .hero-plate img { opacity: 1; transform: none; }
  .js.site-ok .hero .display .line > span, .js.site-ok .hero-lede, .js.site-ok .hero-plate img { animation: none; }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); animation: reveal-failsafe 1ms linear 2.5s forwards; }
  .js.site-ok .reveal { animation: none; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
.statement .grid { row-gap: 2rem; }
.statement-text { font-size: var(--fs-statement); line-height: 1.14; letter-spacing: -0.026em; }
.statement-follow { color: var(--ink-2); max-width: 38ch; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.45; }
@media (min-width: 1000px) {
  .statement-text { grid-column: 1 / span 9; max-width: 34ch; }
  .statement-follow { grid-column: 7 / span 5; }
}

/* ---------- Loupe: the sheet, magnified and centred on one part, with a soft light around it ---------- */
.loupe { position: relative; overflow: hidden; aspect-ratio: 3200 / 2099; }
.loupe img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: var(--x, 50%) var(--y, 50%);
  transform: translate(calc(50% - var(--x, 50%)), calc(50% - var(--y, 50%))) scale(var(--s, 1));
}
/* The lens edge is a mask on the frame itself, so the sheet's own edges can never show as a hard cut. */
.loupe {
  -webkit-mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 55%, rgb(0 0 0 / 0.35) 82%, transparent 100%);
  mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 55%, rgb(0 0 0 / 0.35) 82%, transparent 100%);
}
.loupe-caption { margin-top: 0.875rem; }

/* ---------- Services ---------- */
.services { padding-bottom: var(--section); }
.services-grid { align-items: start; }
.stage-col { display: none; }
.svc { display: grid; gap: 1.25rem; padding-block: 2.75rem; }
.svc + .svc { border-top: 1px solid var(--hairline); }
.svc > p { color: var(--ink-2); max-width: 48ch; }
.svc .loupe { margin-bottom: 0.5rem; aspect-ratio: 4 / 3; }
.deliverables { display: grid; gap: 0.75rem 2rem; margin-top: 0.25rem; }
.deliverables li { position: relative; padding-left: 1.5rem; line-height: 1.45; }
.deliverables li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.625rem; height: 1px; background: var(--ink-2); }
@media (min-width: 700px) { .deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .stage-col { display: block; grid-column: 1 / span 6; align-self: stretch; }
  .svc-list { grid-column: 7 / span 6; }
  .svc .loupe { display: none; }
  .stage { position: sticky; top: calc(var(--header-h) + 3rem); }
  .stage .loupe { aspect-ratio: 5 / 4; }
  .stage .loupe img { transition: transform 1300ms var(--ease), transform-origin 1300ms var(--ease); }
  .svc { min-height: 50svh; align-content: center; padding-block: 2.5rem; }
  .svc + .svc { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .stage .loupe img { transition: none !important; } }

/* ---------- Process: the strip of type bars, cut into one piece per step ---------- */
.process { padding-bottom: var(--section); }
.assembly { width: 100%; aspect-ratio: 3700 / 492; min-height: 6rem; overflow: hidden; -webkit-mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 70%, transparent 100%); }
.assembly picture, .assembly img { width: 100%; height: 100%; }
.assembly img { object-fit: cover; }
.steps { row-gap: 2.5rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { display: grid; gap: 0.875rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.steps p { color: var(--ink-2); max-width: 32ch; }
@media (min-width: 640px) and (max-width: 999px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .assembly { display: none; }
  .steps { margin-top: 0; }
  .steps li { grid-column: span 3; border-top: 0; padding-top: 0; }
  .steps li::before {
    content: ""; display: block; aspect-ratio: 925 / 492; margin-bottom: 1.25rem;
    background-image: url("/assets/img/band-typebars-3200.webp");
    background-image: image-set(url("/assets/img/band-typebars-3200.avif") type("image/avif"), url("/assets/img/band-typebars-3200.webp") type("image/webp"));
    background-size: 400% 100%; background-repeat: no-repeat;
    filter: var(--sheet-filter);
    -webkit-mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 70%, transparent 100%);
    mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 70%, transparent 100%);
  }
  .steps li h3 { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
  .steps li:nth-child(1)::before { background-position: 0% 50%; }
  .steps li:nth-child(2)::before { background-position: 33.333% 50%; }
  .steps li:nth-child(3)::before { background-position: 66.667% 50%; }
  .steps li:nth-child(4)::before { background-position: 100% 50%; }
}

/* ---------- Work ---------- */
.work { padding-bottom: var(--section); }
.case { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--hairline); }
.case:last-child { border-bottom: 1px solid var(--hairline); }
.case-top { row-gap: 1.25rem; align-items: start; }
.case-side { display: grid; gap: 1rem; align-content: start; }
.case-label { font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
.case-side .loupe { aspect-ratio: 4 / 3; }

.case-outcome { font-size: var(--fs-outcome); line-height: 1.16; letter-spacing: -0.024em; max-width: 30ch; }
.spec { margin-top: clamp(2rem, 4vw, 3rem); row-gap: 1.25rem; }
.spec > div { display: grid; gap: 0.35rem; align-content: start; padding-top: 0.875rem; border-top: 1px solid var(--hairline); }
.spec dt { font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { font-size: var(--fs-small); line-height: 1.4; }
@media (min-width: 640px) and (max-width: 999px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .case-side { grid-column: 1 / span 5; }
  .case-body { grid-column: 7 / span 6; }
  .spec { margin-top: 2.5rem; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .spec > div { grid-column: span 2; }
}

/* ---------- About ---------- */
.about { padding-bottom: var(--section); }
.about .grid { row-gap: 2.5rem; }
.about-side { display: grid; gap: 2rem; align-content: start; }
.about-side .loupe { aspect-ratio: 16 / 9; }
.about-copy { display: grid; gap: 1.25rem; align-content: start; }
.about-copy p { color: var(--ink-2); max-width: 52ch; }
.about-lead { font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.35; letter-spacing: -0.015em; color: var(--ink) !important; }
.facts { margin-top: 1.25rem; border-top: 1px solid var(--hairline); }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--col-gap); padding-block: 0.875rem; border-bottom: 1px solid var(--hairline); }
.facts dt { font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.25em; }
@media (min-width: 1000px) {
  .about-side { grid-column: 1 / span 5; }
  .about-copy { grid-column: 7 / span 6; }
  .facts > div { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .facts dt { grid-column: span 2; }
  .facts dd { grid-column: span 4; }
}

/* ---------- FAQ ---------- */
.faq { padding-bottom: var(--section); }
.faq .grid { row-gap: 2.5rem; }
.faq-head { display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.faq-head p { color: var(--ink-2); max-width: 30ch; }
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; font-size: 1.1875rem; letter-spacing: -0.012em; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.faq-sign { position: relative; width: 14px; height: 14px; flex: none; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; background: currentColor; transition: transform 300ms var(--ease); }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-item p { color: var(--ink-2); padding-bottom: 1.75rem; max-width: 60ch; }
@media (min-width: 1000px) {
  .faq-head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
  .faq-list { grid-column: 7 / span 6; }
}

/* ---------- Contact: a typed form, label and rule on one line ---------- */
.contact { padding-bottom: clamp(5rem, 9vw, 7.5rem); }
.contact .grid { row-gap: 3rem; }
.contact-intro { display: grid; gap: 1.5rem; align-content: start; }
.contact-intro .section-title { max-width: 16ch; }
.contact-intro > p { color: var(--ink-2); max-width: 36ch; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; }
@media (min-width: 1000px) {
  .contact-intro { grid-column: 1 / span 5; }
  .contact-form { grid-column: 7 / span 6; }
}
.contact-form { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--ink); }
.field { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--hairline); padding-block: 0.25rem; }
.field:focus-within { border-bottom-color: var(--ink); }
.field label { font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); padding-top: 1.05rem; align-self: start; }
.field .optional { display: none; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-radius: 0; color: var(--ink);
  padding: 0.875rem 0; font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.012em;
}
.field textarea { resize: none; min-height: 7.5rem; field-sizing: content; max-height: 20rem; }
.field select {
  appearance: none; cursor: pointer; padding-right: 2rem; font-size: 1.1875rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 11px) 55%, calc(100% - 6px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { background: var(--canvas); color: var(--ink); }
.field select:has(option[value=""]:checked) { color: var(--ink-3); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field:has([aria-invalid="true"]) { border-bottom-color: var(--danger); }
.field-error { grid-column: 2; font-size: var(--fs-small); color: var(--danger); padding-bottom: 0.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: 1.75rem; }
.form-status { font-size: var(--fs-small); color: var(--ink-2); }
.form-status.is-success { color: var(--ink); }
.form-status.is-error { color: var(--danger); }
@media (max-width: 519px) { .field { grid-template-columns: 5.5rem minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding-bottom: env(safe-area-inset-bottom); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 2rem; }
.footer-meta { font-family: var(--mono); font-size: var(--fs-meta); color: var(--ink-3); margin-left: auto; }
.footer-link { font-size: var(--fs-small); color: var(--ink-2); }
.footer-link:hover { color: var(--ink); }

/* ---------- Plain pages (privacy, 404) ---------- */
.page { padding-block: clamp(4rem, 10vw, 8rem) var(--section); }
.page .title { font-size: var(--fs-section); line-height: 1; letter-spacing: -0.035em; max-width: 16ch; }
.prose { margin-top: 3rem; max-width: 62ch; display: grid; gap: 1.25rem; color: var(--ink-2); }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.012em; line-height: 1.2; color: var(--ink); margin-top: 1.5rem; font-weight: 450; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); transition: text-decoration-color 200ms var(--ease); }
.prose a:hover { text-decoration-color: var(--ink); }
.page-actions { margin-top: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { animation: none; }
  .btn .icon, .faq-sign::before, .faq-sign::after { transition: none; }
  .btn:hover .icon { transform: none; }
}

/* =====================================================================
   Scroll motion (owner request 2026-09-14: "scrolling needs visible motion").
   Scroll-driven CSS animations run on the compositor with no scroll listeners.
   Everything is skipped for prefers-reduced-motion; browsers without
   scroll timelines keep the IntersectionObserver reveals above.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Staggered reveals for lists (work everywhere, JS reveal classes). */
  .js .reveal .deliverables li, .js .reveal.spec > div, .js .reveal .spec > div, .js .steps li.reveal, .js .faq-item.reveal {
    transition-duration: 800ms;
  }
  .js .reveal .deliverables li { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  .js .reveal.is-in .deliverables li { opacity: 1; transform: none; }
  .js .reveal .deliverables li:nth-child(2) { transition-delay: 90ms; }
  .js .reveal .deliverables li:nth-child(3) { transition-delay: 180ms; }
  .js .reveal .deliverables li:nth-child(4) { transition-delay: 270ms; }
  .js .reveal .spec > div { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  .js .reveal.is-in .spec > div { opacity: 1; transform: none; }
  .js .reveal .spec > div:nth-child(2) { transition-delay: 80ms; }
  .js .reveal .spec > div:nth-child(3) { transition-delay: 160ms; }
  .js .reveal .spec > div:nth-child(4) { transition-delay: 240ms; }
  .js .reveal .spec > div:nth-child(5) { transition-delay: 320ms; }
  .js .steps li.reveal:nth-child(2) { transition-delay: 100ms; }
  .js .steps li.reveal:nth-child(3) { transition-delay: 200ms; }
  .js .steps li.reveal:nth-child(4) { transition-delay: 300ms; }
  .js .faq-item.reveal:nth-child(2) { transition-delay: 70ms; }
  .js .faq-item.reveal:nth-child(3) { transition-delay: 140ms; }
  .js .faq-item.reveal:nth-child(4) { transition-delay: 210ms; }
  .js .faq-item.reveal:nth-child(5) { transition-delay: 280ms; }

  /* Services: the loupe's refocus reads as a deliberate camera move. */
  .stage .loupe-caption { transition: opacity 500ms var(--ease); }

  @supports (animation-timeline: view()) {
    /* Reading progress under the header. */
    .site-header::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
      background: var(--ink); transform-origin: 0 50%; transform: scaleX(0);
      animation: progress-grow linear both; animation-timeline: scroll(root);
    }

    /* Hero: the sheet pushes in and drifts; the two lines of the thesis part. */
    .hero-plate picture { animation: sheet-push linear both; animation-timeline: scroll(root); animation-range: 0 110vh; }
    .hero .display .line:nth-child(1) { animation: line-left linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero .display .line:nth-child(2) { animation: line-right linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero-lede { animation: lede-fade linear both; animation-timeline: scroll(root); animation-range: 10vh 80vh; }

    /* Statement: the sentence lights up as you read down to it. */
    .statement-text {
      color: transparent;
      background-image: linear-gradient(90deg, var(--ink) 0 50%, color-mix(in oklab, var(--ink) 22%, var(--canvas)) 50% 100%);
      background-size: 200% 100%; background-position: 100% 0;
      -webkit-background-clip: text; background-clip: text;
      animation: ink-in linear both; animation-timeline: view(); animation-range: entry 30% cover 55%;
    }
    /* Beat the `.js.site-ok .reveal { animation: none }` reset: this element carries .reveal too. */
    html.js.site-ok .statement-text.reveal { opacity: 1; transform: none; transition: none; animation: ink-in linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }

    /* Section titles wipe in from the left as they enter. */
    .section-title, html.js.site-ok .section-title.reveal { opacity: 1; transition: none; animation: title-wipe linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }

    /* Part images drift against the scroll. */
    .case-side .loupe, .about-side .loupe, .svc .loupe { animation: loupe-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }

    /* The four type-bar pieces slide along like a moving line. */
    .steps li::before { animation: bars-slide linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .assembly picture { animation: bars-slide-wide linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }

    /* Outcome lines rise slightly slower than the page. */
    .case-outcome { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }
@keyframes sheet-push { from { transform: scale(1) translateY(0); } to { transform: scale(1.16) translateY(-4%); } }
@keyframes line-left { to { transform: translateX(-9%); opacity: 0.35; } }
@keyframes line-right { to { transform: translateX(12%); opacity: 0.35; } }
@keyframes lede-fade { to { opacity: 0; transform: translateY(-2.5rem); } }
@keyframes ink-in { to { background-position: 0 0; } }
@keyframes title-wipe { from { clip-path: inset(0 100% 0 0); transform: translateX(-1.5rem); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes loupe-drift { from { transform: translateY(8%) scale(0.96); } to { transform: translateY(-8%) scale(1.04); } }
@keyframes bars-slide { from { transform: translateX(-10%); } to { transform: translateX(10%); } }
@keyframes bars-slide-wide { from { transform: translateX(-6%) scale(1.12); } to { transform: translateX(6%) scale(1.12); } }
@keyframes rise { from { transform: translateY(2.5rem); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Idle life: a typing caret after the thesis, and a slow camera drift on the pinned sheet. */
.hero .display .line:nth-child(2) > span::after {
  content: ""; display: inline-block; width: 0.06em; height: 0.78em; margin-left: 0.08em;
  background: currentColor; vertical-align: -0.02em;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .display .line:nth-child(2) > span::after { animation: caret-blink 1.05s steps(1, end) infinite; }
  .stage .loupe picture { display: block; width: 100%; height: 100%; animation: camera-drift 16s ease-in-out infinite alternate; }
}
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes camera-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.04) translate(-1.2%, 0.8%); } }
