/* ==========================================================================
   Codenca — "One organism, six states"
   All color via themes.css tokens (var(--canvas/ink/muted/accent/surface/border)).
   Motion: transform / opacity only, vanilla JS + CSS, hard-gated behind
   prefers-reduced-motion. No-JS and reduced-motion both resolve to a fully
   readable, fully static composition.
   Radius budget (exactly 3 uses): 10 — Nordic Roast plate. 6 — mailto CTA,
   noscript banner. Everything else is unframed (radius 0).
   ========================================================================== */

html, body { background: var(--canvas); }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  max-width: 100%;
}
* { -webkit-font-smoothing: antialiased; }
section[id] { scroll-margin-top: 24px; }
a:visited { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.font-mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }

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

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: 20px; position: relative; z-index: 10; }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 500;
  background: var(--canvas); color: var(--ink);
  padding: 12px 20px; border: 1px solid var(--accent);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

/* ---------- noscript fallback banner (radius 6, 1 of 3 uses) ---------- */
.noscript-banner {
  position: relative; z-index: 200; max-width: 640px; margin: 16px auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 16px 20px; font-size: 12px; letter-spacing: 0.06em; line-height: 1.6; color: var(--muted);
}

/* ---------- Focus ring (accent, load-bearing) ----------
   Radius 0 by default so the ring matches the anti-square language; only
   the mailto CTA (radius 6) overrides to match its own corner radius. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Particle canvas (fixed world, decorative) ----------
   Stacking order (back to front): hero backdrop (0) < canvas (1) <
   section backdrops (2) < all content (10) < chrome (100). The hero
   is the one place imagery sits BEHIND the canvas, per spec. */
#monolith-canvas {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  width: 100%; height: 100%; display: block;
  transition: opacity 400ms ease-out;
}
html.reduced #monolith-canvas { transition: none; }
main { position: relative; }

/* ---------- Chrome ---------- */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px;
}
@media (min-width: 1024px) { .chrome { padding: 28px 32px; } }
.chrome .wordmark { color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; }
.chrome .chrome-email {
  color: var(--ink); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}
@media (prefers-reduced-motion: reduce) { .chrome .chrome-email { transition: none; } }
.chrome .chrome-email:hover, .chrome .chrome-email:focus-visible { color: var(--accent); border-color: var(--accent); }

/* ---------- Underline-on-hover links (generic) ---------- */
.ink-link {
  color: var(--ink); text-decoration: none; position: relative;
  padding-bottom: 2px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  transition: color 120ms ease-out, border-width 120ms ease-out;
}
.ink-link:hover, .ink-link:focus-visible { color: var(--accent); border-bottom-width: 2px; }

.mono-link {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  padding-bottom: 6px; min-height: 44px;
  transition: color 120ms ease-out, border-width 120ms ease-out;
}
.mono-link:hover, .mono-link:focus-visible { color: var(--accent); border-bottom-width: 2px; }
@media (prefers-reduced-motion: reduce) { .ink-link, .mono-link { transition: none; } }

/* ---------- Backdrops / scrims ---------- */
.backdrop { position: absolute; inset: 0; overflow: hidden; z-index: 2; max-width: 100%; }
.backdrop-move { position: absolute; inset: -8% -8%; will-change: transform; }
.backdrop img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.42;
}
.backdrop::before {
  content: ''; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
}
.backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--canvas) 0%, transparent 65%);
}
/* Hero only: imagery sits BEHIND the canvas, so the particles read as
   floating in front of the slab photo rather than covering it. */
.backdrop--hero { z-index: 0; }
.backdrop--hero img { opacity: 0.08; }

/* ================= [00] GENESIS ================= */
#genesis { min-height: 100vh; position: relative; overflow: hidden; max-width: 100%; }
.genesis-content {
  position: absolute; bottom: 16vh; left: 24px; right: 24px; z-index: 10; /* bottom-anchored: cue zone is structurally reserved, line 4 can never reach it */
}
@media (min-width: 1024px) { .genesis-content { left: 64px; right: 64px; } }
.manifesto { margin: 0; }
.mask-line { display: block; overflow: hidden; }
.mask-line-inner {
  display: block; margin-block: 0;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: clamp(2.75rem, min(12vw, 18svh), 11rem);
  letter-spacing: -0.03em; line-height: 0.92; color: var(--ink);
  padding-bottom: 0.14em; margin-bottom: -0.14em; /* descender room: mask must not shave y/g/j */
}
/* Compositional constants — static x-offsets, never centered, never parallaxed. */
.mask-line:nth-child(1) .mask-line-inner { margin-left: 0; }
.mask-line:nth-child(2) .mask-line-inner { margin-left: 6vw; }
.mask-line:nth-child(3) .mask-line-inner { margin-left: 12vw; }
.mask-line:nth-child(4) .mask-line-inner { margin-left: 4vw; }
@media (max-width: 768px) {
  .mask-line:nth-child(2) .mask-line-inner { margin-left: 4vw; }
  .mask-line:nth-child(3) .mask-line-inner { margin-left: 8vw; }
  .mask-line:nth-child(4) .mask-line-inner { margin-left: 2vw; }
}
.genesis-numeral { margin: 0 0 24px; }

.scroll-cue {
  position: absolute; left: 24px; bottom: 40px; z-index: 10;
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 12px; text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); min-height: 44px;
}
@media (min-width: 1024px) { .scroll-cue { left: 64px; } }
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--ink); }
.scroll-cue .tick { width: 1px; height: 24px; background: var(--accent); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.reduced) .scroll-cue .tick { animation: cuetick 1800ms ease-in-out infinite; transform-origin: top; }
}
@keyframes cuetick { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
@media (max-height: 760px) {
  .scroll-cue { bottom: 14px; min-height: 0; gap: 0; }
  .scroll-cue .tick { display: none; }
}

/* ---------- Numerals / submarks ---------- */
.numeral-row { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.numeral {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.submark {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

/* ================= INTERSTITIALS ================= */
.interstitial { position: relative; min-height: 60vh; display: flex; align-items: center; max-width: 100%; padding-block: 160px; }
@media (max-width: 768px) { .interstitial { min-height: 40vh; padding-block: 96px; } }
.interstitial-inner { padding-block: 0; }
.interstitial-numeral { margin: 0 0 24px; }
.interstitial-line {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--ink);
  font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em;
  max-width: 20ch; margin: 0;
}

/* ================= [01] WHAT WE BUILD ================= */
#build { position: relative; padding-block: 96px; overflow: hidden; max-width: 100%; }
@media (min-width: 1024px) { #build { padding-block: 160px 96px; } }
.build-heading { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-inline: 20px; margin: 0 0 32px; position: relative; z-index: 10; font-weight: 400; }
@media (min-width: 1024px) { .build-heading { padding-inline: 32px; } }
.mono-h2 { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0; font-weight: 400; }
.chapter { min-height: 80vh; display: flex; align-items: center; position: relative; z-index: 10; padding-block: 48px; padding-inline: 20px; max-width: 100%; }
@media (min-width: 1024px) { .chapter { padding-inline: 0; } }
.chapter-inner { width: min(640px, 92vw); }
@media (min-width: 1024px) {
  .chapter--a .chapter-inner { margin-left: 8.3333%; }
  .chapter--b .chapter-inner { margin-left: 41.6666%; }
  .chapter--c .chapter-inner { margin-left: 16.6666%; }
}
#build .chapter + .chapter { margin-top: 32px; }
@media (min-width: 1024px) { #build .chapter + .chapter { margin-top: 128px; } }

.chapter-headline {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--ink);
  font-size: clamp(1.75rem, 4.5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em;
  margin: 24px 0 0;
}
.chapter-copy { font-size: 17px; line-height: 1.55; color: var(--ink); max-width: 58ch; margin: 32px 0 0; }
.deliverables { list-style: none; margin: 48px 0 0; padding: 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); max-width: 58ch; }
.deliverables li { padding: 6px 0; }
.deliverables li + li { margin-top: 4px; }
.chapter-cta-wrap { padding: 48px 20px 0; position: relative; z-index: 10; }
@media (min-width: 1024px) { .chapter-cta-wrap { padding-inline: 32px; margin-top: 32px; } }

/* ================= [02] SELECTED WORK ================= */
#work { position: relative; padding-block: 160px 96px; overflow: hidden; max-width: 100%; }
.work-grid { display: flex; flex-direction: column-reverse; gap: 64px; align-items: center; }
@media (min-width: 900px) { .work-grid { flex-direction: row; align-items: center; gap: 0; } }
.work-copy { width: 100%; }
@media (min-width: 900px) { .work-copy { width: 46%; padding-right: 5%; } }
.work-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: flex; gap: 12px; align-items: baseline; margin: 0; }
.work-eyebrow span:first-child { color: var(--accent); }
.work-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--ink);
  font-size: clamp(2.25rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; margin: 24px 0 0;
}
.work-copy-text { font-size: 17px; line-height: 1.55; color: var(--ink); max-width: 56ch; margin: 32px 0 0; }
.work-spec { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 24px 0 0; }
.work-finished-line {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--ink);
  font-size: 2.25rem; line-height: 1.15; letter-spacing: -0.01em; margin: 40px 0 0; max-width: 16ch;
}
.work-links { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; }
@media (min-width: 480px) { .work-links { flex-direction: row; gap: 32px; } }
.work-link-primary { font-size: 16px; }
.work-shot-wrap { width: 100%; display: flex; justify-content: center; }
@media (min-width: 900px) { .work-shot-wrap { width: 54%; justify-content: flex-end; } }
.work-shot {
  width: min(560px, 100%);
  border-radius: 10px; /* 2 of 3 radius uses */
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px color-mix(in srgb, var(--canvas) 70%, transparent);
  transform: rotate(-4deg);
  display: block;
}

/* ================= [03] HOW WE WORK ================= */
#process { position: relative; max-width: 100%; padding-top: 96px; }
@media (min-width: 1024px) { #process { padding-top: 160px; } }
.process-heading-row { padding-inline: 20px; position: relative; z-index: 10; }
@media (min-width: 1024px) { .process-heading-row { padding-inline: 32px; } }
.process-pin-wrap { position: relative; }
html.js:not(.reduced) .process-pin-wrap { height: 260vh; }
.process-pin { position: relative; }
html.js:not(.reduced) .process-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.process-track { position: relative; z-index: 10; width: 100%; max-width: 760px; margin-inline: auto; padding: 48px 20px; display: flex; gap: 32px; }
@media (min-width: 1024px) { .process-track { padding-inline: 96px; } }
.process-line-rail { position: relative; width: 1px; flex: none; background: var(--border); display: none; }
html.js:not(.reduced) .process-line-rail { display: block; }
.process-line-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top center; transform: scaleY(0); }
.process-steps { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 64px; max-width: 640px; }
@media (min-width: 1024px) { .process-steps { gap: 96px; } }
.process-step { position: relative; }
.process-step::before {
  content: ''; position: absolute; left: -33.5px; top: 6px; width: 6px; height: 6px; background: var(--canvas);
  border: 1.5px solid var(--accent);
}
.process-step--lock::before { background: var(--accent); }
html.js:not(.reduced) .process-step::before { transition: background-color 160ms ease-out; }
html.js:not(.reduced) .process-step.is-active::before { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .process-step::before { transition: none; } }

.step-state { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0; }
.step-name { font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--ink); font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.05; margin: 12px 0 0; }
.step-duration { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 0; }
.step-copy { font-size: 16px; line-height: 1.5; color: var(--ink); margin: 16px 0 0; max-width: 52ch; }

/* ================= [04] TEAM (breath section — nothing enters, nothing animates) ================= */
#team { position: relative; padding-block: 160px 96px; overflow: hidden; max-width: 100%; }
.team-heading-row { padding-inline: 20px; margin-bottom: 120px; position: relative; z-index: 10; }
@media (min-width: 1024px) { .team-heading-row { padding-inline: 32px; } }
.team-display-line {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--ink);
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; margin: 24px 0 0;
}
.team-subtitle { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 16px 0 0; }

.team-grid {
  list-style: none; margin: 0; padding: 0 20px 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 24px;
  position: relative; z-index: 10;
}
@media (min-width: 1024px) { .team-grid { padding: 0 32px 24px; grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.team-member { flex: none; }
@media (min-width: 1024px) {
  .team-offset-a { margin-top: 0; }
  .team-offset-b { margin-top: 32px; }
  .team-offset-c { margin-top: 16px; }
  .team-offset-d { margin-top: 48px; }
}
.portrait-frame { position: relative; display: block; overflow: hidden; width: 100%; }
.portrait-frame img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.98);
  transition: filter 600ms ease-out, transform 600ms ease-out;
}
.team-member:hover .portrait-frame img,
.team-member:focus-within .portrait-frame img {
  filter: none;
  transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
  .portrait-frame img { transition: none; }
}
.team-meta { margin-top: 16px; }
.team-name { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 18px; color: var(--ink); margin: 0; }
.team-role { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 6px 0 0; }
.team-skills { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14px; line-height: 1.45; color: var(--muted); margin: 8px 0 0; max-width: 44ch; }

/* ================= FACTS STRIP ================= */
#facts {
  padding-block: 48px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  max-width: 100%;
}
.facts-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px;
}
@media (min-width: 900px) { .facts-list { grid-template-columns: repeat(4, 1fr); } }
.fact-num { font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--ink); font-size: 3rem; line-height: 1; letter-spacing: -0.02em; margin: 0; }
.fact-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 12px 0 0; }

/* ================= FAQ ================= */
#faq { padding-block: 96px; max-width: 100%; }
.faq-heading-row { margin-bottom: 32px; }
.faq-list { margin: 0; max-width: 680px; }
.faq-row { border-top: 1px solid var(--border); padding-block: 28px; }
.faq-row:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 18px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  cursor: pointer; list-style: none; min-height: 44px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 12px; height: 12px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--accent); }
.faq-icon::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-icon::after { top: 0; left: 50%; width: 1.5px; height: 100%; transform: translateX(-50%); transition: transform 180ms ease-out; }
.faq-row[open] .faq-icon::after { transform: translateX(-50%) rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .faq-icon::after { transition: none; } }
.faq-a { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.55; color: var(--muted); margin: 16px 0 0; max-width: 60ch; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes faq-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .faq-row[open] .faq-a { animation: faq-reveal 180ms ease-out; }
}

/* ================= [05] FINALE + CONTACT ================= */
#contact { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; max-width: 100%; padding: 96px 20px; }
@media (min-width: 1024px) { #contact { padding: 0 32px; } }
.contact-inner { width: 100%; position: relative; }
.contact-numeral { margin: 0 0 24px; }

.wordmark-wrap { width: min(68vw, 900px); margin: 0 auto 24px; }
@media (max-width: 640px) { .wordmark-wrap { width: 88vw; } }
.wordmark-svg { display: block; width: 100%; height: auto; }
.wordmark-glyph {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 148px; letter-spacing: -0.03em;
  fill: var(--ink); stroke: var(--accent); stroke-width: 1.5px; paint-order: stroke fill;
  opacity: 1;
}
/* No-JS and reduced-motion both render the completed wordmark immediately.
   Only the full-motion path hides it until the particle snap settles. */
html.js:not(.reduced) .wordmark-glyph { opacity: 0; transition: opacity 400ms ease-out; }
html.js:not(.reduced) .wordmark-wrap.is-settled .wordmark-glyph { opacity: 1; }

.contact-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--ink); text-align: center;
  font-size: clamp(1.75rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 auto; max-width: 20ch;
}
.email-cta {
  display: inline-block; margin: 48px auto 0; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 16px;
  padding: 16px 32px; border-radius: 6px; /* 3 of 3 radius uses */
  text-decoration: none;
  transition: background-color 140ms ease-out, transform 100ms ease-out;
}
.contact-inner { text-align: center; }
.email-cta:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink) 12%); }
.email-cta:active { transform: scale(0.98); }
.email-cta:focus-visible { border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .email-cta { transition: none; } }
.contact-note { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 24px; }

/* ================= FOOTER ================= */
.site-footer { padding: 48px 20px; }
@media (min-width: 1024px) { .site-footer { padding: 48px 32px 64px; } }
.footer-text { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.footer-text a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-text a:hover, .footer-text a:focus-visible { color: var(--accent); }

/* ================= [01 & 02] SECTION TEXT ENTER (spec #5 — not used 03+) ================= */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.reduced) .reveal-words { opacity: 0; transform: translateY(16px); transition: opacity 240ms ease-out, transform 240ms ease-out; }
  html.js:not(.reduced) .reveal-words.is-in { opacity: 1; transform: none; }
}

/* ================= HERO MASKED LINE REVEAL (spec #2, runs once, no IO) ================= */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.reduced) .mask-line-inner { transform: translateY(0.9em); opacity: 0; transition: transform 280ms cubic-bezier(0.16,1,0.3,1), opacity 280ms cubic-bezier(0.16,1,0.3,1); }
  html.js:not(.reduced) .mask-line-inner.is-in { transform: translateY(0); opacity: 1; }
}

/* ================= REDUCED MOTION HARD GATE ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
