/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V5
 * Hallmark · genre: atmospheric (playful voice) · macrostructure: Marquee Hero · H1 Marquee knobs: size=xl, alignment=left-bias, underlay=rule-below, no eyebrow
 * theme: custom · vibe: "playful precision, after-dark glow, solid and moving" · paper: oklch(13% 0.022 285) · accent: oklch(74% 0.16 55)
 * display: Bricolage Grotesque · body: Geist · outlier: Geist Mono (footer meta only) · axes: dark / display-heavy / warm
 * enrichment: E7-adjacent abstract background — two radial blooms (Tier A CSS art), scroll-driven drift at user request, static under reduced-motion and below 40rem
 * nav: N5 Floating pill (width=content, backdrop=blur+saturate, anchor=top-centred) · footer: Ft5 Statement (38ch, wordmark under, hairline)
 * sections: S2 hanging heads · F4 step sequence (1.0 numbering, horizontal, line connector) · F3 spec sheet (3 col, every-row rules) · C2 inline form · C3 typographic links
 * modes: dark default by system preference, light variant, manual toggle persisted · studied: no · context: user-provided · v1.1.0
 * slop test: 58/58 · contrast: pass (40–41) · nav/footer/hero: pass (42–45) · honest: pass (46, placeholders labelled) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57)
 * noted deviation: gate 29 says blooms are static; scroll-driven drift is an explicit user request, transform-only, off under reduced-motion and below 40rem
 */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.55;
  font-feature-settings: "kern" 1;
  transition: background-color var(--dur-short) var(--ease-in-out), color var(--dur-short) var(--ease-in-out);
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
}
:root[data-theme="dark"] body, :root:not([data-theme="light"]) body { font-weight: 350; }
:root[data-theme="light"] body { font-weight: 400; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-style: normal; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; overflow-wrap: anywhere; min-width: 0; }
a { color: inherit; text-decoration: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in oklch, var(--color-accent) 35%, transparent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset: var(--space-sm) auto auto var(--space-sm); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-sm); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

.mono { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.wrap { padding-inline: var(--page-gutter); }

/* ---------- blooms (Tier A CSS art) ---------- */
.blooms { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: clip; opacity: var(--bloom-opacity); }
.bloom { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.bloom--a { left: -30vmax; bottom: -35vmax; background: radial-gradient(closest-side, var(--bloom-a), transparent 70%); }
.bloom--b { right: -32vmax; top: -34vmax; background: radial-gradient(closest-side, var(--bloom-b), transparent 70%); }
@supports (animation-timeline: scroll()) {
  @media (min-width: 40rem) and (prefers-reduced-motion: no-preference) {
    .bloom--a { animation: drift-a linear both; animation-timeline: scroll(root); }
    .bloom--b { animation: drift-b linear both; animation-timeline: scroll(root); }
  }
}
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } 50% { transform: translate(38vw, -30vh) scale(1.15); } to { transform: translate(70vw, -70vh) scale(0.9); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30vw, 40vh) scale(1.2); } to { transform: translate(-65vw, 75vh) scale(1); } }

main, .foot-stmt { position: relative; z-index: var(--z-base); }

/* ---------- nav · N5 floating pill ---------- */
.nav-pill {
  position: fixed; top: max(var(--space-md), env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  z-index: var(--z-sticky);
  display: inline-flex; align-items: center; gap: var(--space-md);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  max-width: calc(100% - 2 * var(--space-md));
  background: color-mix(in oklch, var(--color-paper) 72%, transparent);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px -14px var(--color-shadow);
}
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark img { height: 38px; width: auto; display: block; }
:root[data-theme="dark"] .wordmark__light, :root:not([data-theme="light"]) .wordmark__light { display: none; }
:root[data-theme="light"] .wordmark__dark { display: none; }
.nav-pill__links { display: none; list-style: none; padding: 0; margin: 0; gap: var(--space-xs); }
.nav-pill__links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap; border-radius: var(--radius-pill); transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.nav-pill__links a { line-height: 1; }
.nav-pill__links a:hover { color: var(--color-ink); background: color-mix(in oklch, var(--color-ink) 8%, transparent); }
.nav-pill__links a:active { background: color-mix(in oklch, var(--color-ink) 14%, transparent); }
@media (min-width: 60rem) { .nav-pill__links { display: inline-flex; } .nav-pill { gap: var(--space-lg); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5ch;
  min-height: 44px; padding-inline: var(--space-md); line-height: 1;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; white-space: nowrap;
  background: var(--color-cta); color: var(--color-cta-ink);
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1.5px); } }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 3px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[data-state="loading"] { color: transparent; position: relative; }
.btn[data-state="loading"]::after { content: ""; position: absolute; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--color-cta-ink); border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.theme-toggle {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  background: transparent; color: var(--color-ink-2); border: 0; border-radius: 50%; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.theme-toggle:hover { color: var(--color-ink); background: color-mix(in oklch, var(--color-ink) 8%, transparent); }
.theme-toggle:active { transform: translateY(1px); }
.theme-toggle svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .theme-toggle__sun, :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
:root[data-theme="light"] .theme-toggle__moon { display: none; }

/* ---------- hero · H1 marquee ---------- */
.hero {
  min-height: clamp(24rem, 62dvh, 38rem);
  display: grid; align-content: end;
  padding-block: calc(44px + var(--space-2xl)) var(--space-3xl);
}
.hero__display {
  margin-inline-start: -0.04em;
  font-size: var(--text-marquee); font-weight: 700; line-height: 0.94; letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
  max-width: 12ch;
}
.hero__display span { display: block; }
.hero__display span + span { color: var(--color-ink-2); }
.rule-thick { height: var(--rule-thick); border: 0; margin: 0; background: var(--color-ink); opacity: 0.9; }

/* reveal — the one orchestrated entrance */
.reveal { opacity: 0; transform: translateY(10px); animation: reveal var(--dur-long) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- lede + meta ---------- */
.lede { display: grid; gap: var(--space-xl); padding-block: var(--space-2xl) var(--space-3xl); }
.lede__text { font-size: var(--text-md); line-height: 1.45; max-width: 52ch; color: var(--color-ink); }
.lede__text strong { font-weight: 600; }
.meta { display: grid; gap: var(--space-lg); list-style: none; padding: 0; margin: 0; }
.label { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.meta dt { color: var(--color-muted); margin-bottom: var(--space-2xs); }
.meta dd { font-size: var(--text-base); color: var(--color-ink); }
@media (min-width: 40rem) { .meta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .lede { grid-template-columns: 1.2fr 1fr; align-items: start; } .meta { grid-template-columns: 1fr; gap: var(--space-md); } }

/* honest placeholder — a labelled slot, not a fabricated fact */
.tbd { display: inline-block; padding: var(--space-2xs) var(--space-xs); line-height: 1.3; border: 1px dashed var(--color-neutral); border-radius: var(--radius-sm); color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- section heads · S2 hanging ---------- */
.section { padding-block: var(--space-3xl) var(--space-2xl); }
.section + .section { padding-block-start: var(--space-2xl); }
.head-hang { margin-bottom: var(--space-xl); }
.head-hang h2 { font-size: var(--text-display-s); font-weight: 600; max-width: 14ch; }
.head-hang h2::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: var(--space-md); background: var(--color-accent); border-radius: 2px; }

/* ---------- two doors ---------- */
.doors { display: grid; gap: var(--space-md); }
.door { padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-md); background: var(--color-paper-2); display: grid; gap: var(--space-md); align-content: start; }
.door--wide { background: var(--color-paper-2); }
.door--narrow { background: transparent; border: var(--rule-hair) solid var(--color-rule); }
.door h3 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.025em; }
.door p { color: var(--color-ink-2); max-width: 46ch; }
@media (min-width: 60rem) { .doors { grid-template-columns: 7fr 5fr; gap: var(--space-lg); } .door { padding: var(--space-2xl) var(--space-xl); } .door--narrow { margin-top: var(--space-2xl); } }

.link { display: inline-flex; align-items: center; gap: 0.5ch; min-height: 44px; font-weight: 600; color: var(--color-ink); white-space: nowrap; border-bottom: 1px solid var(--color-accent); }
.link span { display: inline-block; transition: transform var(--dur-micro) var(--ease-out); }
.link:hover span { transform: translateX(0.25ch); }
.link:active span { transform: translateX(0.1ch); }

/* ---------- steps · F4 ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xl); counter-reset: none; }
.steps li { position: relative; display: grid; gap: var(--space-xs); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.stage { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.02em; color: var(--color-accent); font-variant-numeric: tabular-nums; }
:root[data-theme="light"] .stage { color: var(--color-ink); }
.steps h3 { font-size: var(--text-md); font-weight: 600; }
.steps p { color: var(--color-ink-2); }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); } .steps li:nth-child(even) { margin-top: var(--space-xl); } }

/* ---------- spec sheet · F3 ---------- */
.spec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: var(--space-md) var(--space-md) var(--space-md) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: var(--rule-hair) solid var(--color-rule); }
.spec th { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); letter-spacing: -0.02em; width: 34%; }
.spec td { color: var(--color-ink-2); }
.spec td.note { color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 40rem) {
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec th { border-top: var(--rule-hair) solid var(--color-rule); padding-bottom: var(--space-2xs); }
  .spec td { border-top: 0; padding-top: 0; }
  .spec tr:last-child th { border-bottom: 0; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 64ch; }
.faq > div { padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); display: grid; gap: var(--space-xs); }
.faq > div:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq dt { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.faq dd { color: var(--color-ink-2); max-width: 56ch; }
@media (min-width: 60rem) { .faq > div { grid-template-columns: 1fr 1.2fr; gap: var(--space-xl); } }

/* ---------- contact · C2 inline form ---------- */
.contact { padding-block: var(--space-3xl) var(--space-4xl); display: grid; gap: var(--space-xl); }
.contact > div { display: grid; gap: var(--space-lg); }
.contact h2 { font-size: var(--text-display-s); max-width: 18ch; }
.contact__aside { color: var(--color-ink-2); max-width: 45ch; display: grid; gap: var(--space-md); align-content: start; }
.cta-form { display: grid; gap: var(--space-sm); max-width: 34rem; }
.cta-form label { font-size: var(--text-sm); color: var(--color-ink-2); }
.cta-form__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs); }
.input {
  min-height: 44px; padding-inline: var(--space-md); width: 100%;
  font: inherit; color: var(--color-ink);
  background: var(--color-paper-2); border: 1px solid var(--color-rule); border-radius: var(--radius-pill);
  outline: 2px solid transparent; outline-offset: 1px;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.input::placeholder { color: var(--color-muted); }
@media (hover: hover) { .input:hover { background: var(--color-paper-3); } }
.input:focus-visible { outline-color: var(--color-focus); border-color: var(--color-ink-2); }
.input[aria-invalid="true"] { border-color: var(--color-error); }
.input:disabled { opacity: 0.55; cursor: not-allowed; }
.helper { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }
.helper[data-tone="error"] { color: var(--color-error); }
.helper[data-tone="success"] { color: var(--color-success); }
@media (min-width: 60rem) { .contact { grid-template-columns: 1.1fr 0.9fr; align-items: start; } .contact__aside { padding-top: var(--space-xs); } }
@media (max-width: 26rem) { .cta-form__row { grid-template-columns: 1fr; } }

/* ---------- footer · Ft5 statement ---------- */
.foot-stmt { padding: var(--space-2xl) var(--page-gutter) max(var(--space-xl), env(safe-area-inset-bottom)); display: grid; gap: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); background: color-mix(in oklch, var(--color-paper) 80%, transparent); }
.foot-stmt__line { font-family: var(--font-display); font-size: clamp(1.75rem, 4.5vw, 3.25rem); font-weight: 600; line-height: 1.0; letter-spacing: -0.03em; max-width: 38ch; }
.foot-stmt__meta { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); justify-content: space-between; align-items: center; padding-block-start: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); }
.foot-stmt__meta .wordmark img { height: 30px; }
.foot-stmt__meta a { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.foot-stmt__meta a:hover { color: var(--color-ink); }
.foot-stmt__meta .mono { text-transform: none; letter-spacing: 0.02em; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 150ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; }
  .reveal { animation: reveal-reduced 150ms linear forwards; }
  @keyframes reveal-reduced { to { opacity: 1; transform: none; } }
  .bloom { animation: none !important; }
  .btn[data-state="loading"]::after { animation: none; border-right-color: var(--color-cta-ink); opacity: 0.5; }
}

/* ---------- narrow phones ---------- */
@media (max-width: 26rem) {
  .nav-pill { gap: var(--space-xs); padding-inline-start: var(--space-sm); }
  .wordmark img { height: 30px; }
  .btn { padding-inline: var(--space-sm); }
}
