/* ==========================================================================
   Anriwial: styles.css
   Sections: 1 tokens, 2 reset, 3 base, 4 layout, 5 components, 6 header/menu,
   7 hero, 8 services, 9 approach, 10 principles, 11 about, 12 faq,
   13 contact + footer, 14 reveal, 15 animations, 16 motion-off, 17 print
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
/* Fonts: Fraunces / Geist Sans / Geist Mono are NOT bundled. These adjusted
   local fallbacks keep metrics close so layout holds with or without files.
   To bundle, add @font-face rules pointing at assets/fonts/*.woff2. */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 97%; ascent-override: 94%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback"; src: local("Helvetica Neue"), local("Segoe UI"), local("Arial"); size-adjust: 100%; ascent-override: 95%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Geist Mono Fallback"; src: local("Menlo"), local("Consolas"), local("Courier New"); size-adjust: 96%; ascent-override: 92%; descent-override: 25%; line-gap-override: 0%; }

:root {
  color-scheme: dark;

  --bg: #070d1a;
  --bg-2: #0a1324;
  --surface: #0d1627;
  --line: #1d2a42;
  --line-2: #2f4263;
  --ui: #6a7ea1;
  --text: #e8eef7;
  --muted: #9fb0c8;
  --faint: #8596b1;
  --teal: #2dd4bf;
  --gold: #f2c46d;
  --blue: #4a9ed6;
  --danger: #ff8b8b;
  --grad: linear-gradient(100deg, var(--teal), var(--gold));

  --font-display: "Fraunces", "Fraunces Fallback", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Geist Sans", "Geist Fallback", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step-label: 0.75rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3rem);
  --step-h3: clamp(1.35rem, 1.15rem + 0.8vw, 1.9rem);
  --step-h2: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  --step-hero: clamp(2.6rem, 1.3rem + 5.4vw, 6rem);

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --col-gap: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 12vw, 160px);
  --header-h: 72px;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
summary { cursor: pointer; }

/* ---------- 3. Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.menu-open { overflow: hidden; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); letter-spacing: -0.015em; }
p { max-width: 62ch; }
::selection { background: var(--teal); color: #04101a; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.mono, .eyebrow { font-family: var(--font-mono); font-size: var(--step-label); letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow { color: var(--teal); margin-bottom: 1.25rem; }
.lead { font-size: var(--step-lead); color: var(--muted); line-height: 1.55; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px;
  background: var(--text); color: #07101e; border-radius: 8px; font-weight: 500; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 90; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.section { position: relative; padding-block: var(--section); scroll-margin-top: var(--header-h); }
.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head h2 { max-width: 16ch; }
.section-head .lead { margin-top: 1.5rem; }

/* ---------- 5. Components ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  min-height: 48px; padding: 0 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.95rem; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: transform 0.25s var(--ease), border-color 0.3s, background-color 0.3s, color 0.3s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 0 1.25rem; }

.btn-primary { background: var(--text); color: #07101e; }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity 0.4s; }
.btn-primary:hover::before, .btn-primary:focus-visible::before { opacity: 1; }

.btn-secondary { border-color: var(--ui); color: var(--text); }
.btn-secondary:hover { border-color: var(--muted); background: rgba(232, 238, 247, 0.05); }

.link { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size 0.4s var(--ease), color 0.3s; padding-bottom: 2px; }
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link-line { color: var(--text); background-size: 100% 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; line-height: 1.2; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 6. Header + menu ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 70; height: var(--header-h);
  transition: transform 0.5s var(--ease), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 13, 26, 0.72); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; margin-right: auto; border-radius: 6px; }
.logo svg { height: 28px; width: auto; overflow: visible; }
.logo text { font-family: var(--font-body); font-weight: 600; fill: var(--text); }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 2rem; }
.nav-desktop a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 0.95rem; color: var(--muted); transition: color 0.3s; }
.nav-desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.4s var(--ease); }
.nav-desktop a:hover, .nav-desktop a[aria-current] { color: var(--text); }
.nav-desktop a[aria-current]::after, .nav-desktop a:hover::after { transform: scaleX(1); }
.header-cta { display: none; }

.menu-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  visibility: hidden; opacity: 0; transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease), visibility 0s; }
.menu nav a { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3.4rem); letter-spacing: -0.02em; padding: 0.35rem 0; }
.menu li, .menu-foot { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.menu.is-open li, .menu.is-open .menu-foot { opacity: 1; transform: none; }
.menu.is-open li:nth-child(1) { transition-delay: 0.08s; }
.menu.is-open li:nth-child(2) { transition-delay: 0.16s; }
.menu.is-open li:nth-child(3) { transition-delay: 0.24s; }
.menu.is-open li:nth-child(4) { transition-delay: 0.32s; }
.menu.is-open .menu-foot { transition-delay: 0.4s; }
.menu a[aria-current] { color: var(--teal); }
.menu-foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }

@media (min-width: 640px) { .header-cta { display: inline-flex; } .menu-btn { margin-left: 0; } }
@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .menu-btn, .menu { display: none; }
}
/* No-JS: keep navigation usable without the overlay */
html:not(.js) .menu, html:not(.js) .menu-btn { display: none; }
html:not(.js) .nav-desktop { display: block; }
html:not(.js) .nav-desktop ul { gap: 1rem; }
html:not(.js) .site-header { position: absolute; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; }
.js .hero { height: 300vh; height: 300svh; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(60% 70% at 72% 50%, rgba(74, 158, 214, 0.1), transparent 70%);
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: min(44vw, 500px); opacity: 0.95; }
.hero.has-canvas .hero-fallback { display: none; }
.hero-in { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero-copy, .hero-caption > * { max-width: 40rem; }
.hero-copy .lead { margin-top: 1.75rem; max-width: 34rem; }
.hero h1 { font-size: var(--step-hero); letter-spacing: -0.035em; line-height: 1.02; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.25rem; }

.js .hero-copy { opacity: calc(1 - var(--fade, 0)); transform: translateY(calc(var(--fade, 0) * -28px)); }
.hero-copy.is-gone { visibility: hidden; pointer-events: none; }
.hero-caption { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center; padding-top: var(--header-h); pointer-events: none; }
.js .hero-caption { display: flex; opacity: var(--capin, 0); }
.cap-k { color: var(--teal); margin-bottom: 1rem; }
.cap-t { font-family: var(--font-display); font-size: clamp(1.8rem, 1rem + 3.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; }
.hero-caption[data-stage="3"] .cap-k { color: var(--gold); }

.js .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js .hero h1 .w > span { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease) calc(var(--i, 0) * 80ms + 150ms); }
.js .hero h1.is-in .w > span { transform: none; }
.hero h1 .grad { background-size: 220% 100%; animation: shift 9s ease-in-out infinite alternate; padding-right: 0.04em; }

.hero-foot { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.hero-stages { display: flex; gap: clamp(14px, 3vw, 40px); }
.hero-stages li { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding-top: 12px; position: relative; transition: color 0.5s; }
.hero-stages li::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--line-2); transition: background-color 0.5s; }
.hero-stages li.is-on { color: var(--text); }
.hero-stages li.is-on::before { background: var(--teal); }
.hero-stages li:last-child.is-on::before { background: var(--gold); }
.scroll-cue { display: none; align-items: center; gap: 12px; color: var(--faint); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; min-height: 44px; }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--muted), transparent); transform-origin: 50% 0; animation: cue 2.2s var(--ease) infinite; }

@media (max-width: 767px) {
  .hero-fallback { top: auto; bottom: 84px; right: 50%; transform: translateX(50%); width: min(72vw, 340px); }
  .hero-copy .lead { font-size: 1rem; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
}
@media (min-width: 768px) { .scroll-cue { display: inline-flex; } }

/* ---------- 8. Services ---------- */
.services { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.svc { display: block; }
.tablist { display: none; }
.is-tabbed .tablist { display: flex; flex-direction: column; margin-bottom: 2rem; border-top: 1px solid var(--line); }
.tab { display: grid; grid-template-columns: 2.5rem 1fr; align-items: baseline; text-align: left; padding: 1.1rem 0 1.1rem 1rem; min-height: 44px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; color: var(--faint); transition: color 0.35s, border-color 0.35s, padding 0.45s var(--ease); }
.tab .mono { color: inherit; }
.tab-title { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-left-color: var(--teal); padding-left: 1.5rem; }

.panel { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.panel:first-of-type { border-top: 0; padding-top: 0; }
.is-tabbed .panel { border-top: 0; padding-block: 0; }
.panel[hidden] { display: none; }
.panel-top { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.25rem; }
.panel-icon { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.panel h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.panel-lead { font-size: var(--step-lead); color: var(--text); line-height: 1.45; }
.panel-desc { margin-top: 0.9rem; color: var(--muted); }
.panel .chips { margin-top: 1.75rem; }
.outcomes { margin-top: 2rem; display: grid; gap: 0.85rem; }
.outcomes h4 { margin: 0 0 0.25rem; font-family: var(--font-mono); font-size: var(--step-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 400; }
.outcomes li { position: relative; padding-left: 1.5rem; color: var(--text); }
.outcomes li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--teal); }
.diagram { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.diagram-scroll { overflow-x: auto; padding-bottom: 10px; border-radius: 6px; }
.diagram svg { width: 100%; min-width: 560px; height: auto; overflow: visible; }
.diagram-cap { font-family: var(--font-mono); font-size: var(--step-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.25rem; }
.node rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; }
.node text { fill: var(--text); font-family: var(--font-mono); font-size: 10px; text-anchor: middle; dominant-baseline: central; }
.flow { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 3 4; marker-end: url(#arrow); }
.arrow-head { fill: var(--teal); }
.todo-note { display: none; }

@media (min-width: 900px) {
  .svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .tablist { grid-column: 1 / 5; }
  .is-tabbed .tablist { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .panel-wrap { grid-column: 5 / 13; }
  .is-tabbed .panel-wrap { padding-left: clamp(0px, 2vw, 32px); }
  html:not(.js) .panel-wrap { grid-column: 1 / 13; }
}

/* ---------- 9. Approach ---------- */
.approach { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: var(--section); }
.approach.is-pinned { height: 420vh; height: 420svh; padding-block: 0; }
.approach-pin { position: relative; }
.approach.is-pinned .approach-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.approach-head { margin-bottom: clamp(32px, 5vw, 64px); }
.approach.is-pinned .approach-head { margin-bottom: 2.5vh; }
.approach-head h2 { max-width: 14ch; }

.stage-body { display: block; }
.rail { display: none; }
.stages { position: relative; display: grid; gap: clamp(56px, 9vw, 96px); padding-left: 28px; }
.stages::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.stage { position: relative; display: grid; gap: 1.75rem; }
.stage::before { content: ""; position: absolute; left: -28px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--faint); transition: background-color 0.5s, border-color 0.5s; }
.stage.is-in::before { background: var(--teal); border-color: var(--teal); }
.stage:last-child.is-in::before { background: var(--gold); border-color: var(--gold); }
.stage-n { color: var(--faint); margin-bottom: 0.75rem; }
.stage h3 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); letter-spacing: -0.03em; }
.stage-verb { margin-top: 0.75rem; color: var(--text); font-size: var(--step-lead); }
.stage-out { margin-top: 0.75rem; color: var(--muted); }
.stage-visual { width: 100%; max-width: 360px; height: auto; overflow: visible; }
.sv-dim { fill: var(--faint); }
.sv-blue { fill: var(--blue); }
.sv-teal { fill: var(--teal); }
.sv-line { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.sv-lineb { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-opacity: 0.7; }
.sv-linet { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-opacity: 0.8; }
.sv-gold { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.stage:last-child .stage-n { color: var(--gold); }

.engage { margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); padding-top: 2rem; }
.engage h3 { font-family: var(--font-mono); font-size: var(--step-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.5rem; font-weight: 400; }
.engage ol { display: grid; gap: 1.25rem; counter-reset: e; }
.engage li { counter-increment: e; padding-left: 2.5rem; position: relative; }
.engage li::before { content: counter(e, decimal-leading-zero); position: absolute; left: 0; top: 0.25rem; font-family: var(--font-mono); font-size: var(--step-label); color: var(--faint); }
.engage strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.01em; }
.engage span { color: var(--muted); font-size: 0.95rem; }
.approach.is-pinned .engage { margin-top: 3vh; padding-top: 1.25rem; }
.approach.is-pinned .engage li:nth-child(n) span { font-size: 0.9rem; }

@media (min-width: 768px) {
  .stage { grid-template-columns: 1.1fr 0.9fr; align-items: center; column-gap: clamp(32px, 6vw, 96px); }
  .engage ol { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
@media (min-width: 1024px) and (min-height: 720px) {
  .approach.is-pinned .stage-body { display: grid; grid-template-columns: 150px 1fr; gap: 24px; }
  .approach.is-pinned .rail { display: block; position: relative; height: clamp(220px, 40vh, 340px); align-self: center; }
  .approach.is-pinned .stages { display: grid; padding-left: 0; gap: 0; }
  .approach.is-pinned .stages::before, .approach.is-pinned .stage::before { display: none; }
  .approach.is-pinned .stages .stage { grid-area: 1 / 1; opacity: 0; transform: none; pointer-events: none; transition: opacity 0.7s var(--ease); }
  .approach.is-pinned .stages .stage.is-active { opacity: 1; pointer-events: auto; }
  .rail-line { position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
  .rail-fill { position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--teal); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .rail-dot { position: absolute; left: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--faint); transition: background-color 0.4s, border-color 0.4s; }
  .rail-dot:nth-of-type(1) { top: 0; }
  .rail-dot:nth-of-type(2) { top: calc(33.33% - 5px); }
  .rail-dot:nth-of-type(3) { top: calc(66.66% - 5px); }
  .rail-dot:nth-of-type(4) { top: calc(100% - 11px); }
  .rail-dot.is-on { background: var(--teal); border-color: var(--teal); }
  .rail-dot:nth-of-type(4).is-on { background: var(--gold); border-color: var(--gold); }
  .rail-dot::after { content: attr(data-l); position: absolute; left: 26px; top: -3px; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; color: var(--faint); transition: color 0.4s; }
  .rail-dot.is-on::after { color: var(--text); }
}
.approach .stage .wis { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- 10. Principles + quote ---------- */
.principles-list { counter-reset: p; border-bottom: 1px solid var(--line); }
.principles-list li { counter-increment: p; display: grid; gap: 0.75rem; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.principles-list li::before { content: counter(p, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--step-label); color: var(--faint); letter-spacing: 0.14em; }
.principles-list p { color: var(--muted); }
@media (min-width: 768px) {
  .principles-list li { grid-template-columns: 5rem 1fr 1.1fr; align-items: baseline; column-gap: var(--col-gap); }
}

.quote { position: relative; overflow: hidden; text-align: center; background: var(--bg-2); border-block: 1px solid var(--line); padding-block: clamp(110px, 16vw, 220px); }
.quote .wrap { position: relative; z-index: 1; }
.quote p { max-width: none; font-family: var(--font-display); font-size: clamp(2.3rem, 1.2rem + 5.2vw, 5.8rem); line-height: 1.04; letter-spacing: -0.035em; }
.quote p span { display: block; }
.drift { position: absolute; inset: 0; width: 100%; height: 100%; }
.drift circle { fill: var(--blue); opacity: 0.5; animation: drift 16s ease-in-out infinite alternate; }
.drift circle:nth-of-type(2n) { fill: var(--teal); animation-duration: 21s; animation-delay: -6s; }
.drift circle:nth-of-type(3n) { animation-duration: 25s; animation-delay: -12s; }
.drift circle:nth-of-type(5n) { fill: var(--gold); opacity: 0.45; }
.drift line { stroke: var(--line-2); stroke-width: 1; opacity: 0.6; }

/* ---------- 11. About ---------- */
.about .grid { row-gap: 3rem; }
.about-title { grid-column: 1 / -1; }
.statement { grid-column: 1 / -1; max-width: none; font-family: var(--font-display); font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem); line-height: 1.22; letter-spacing: -0.02em; }
.hl-word { transition: opacity 0.4s var(--ease); }
.js .statement:not(.hl-static) .hl-word { opacity: 0.2; }
.js .statement .hl-word.is-lit { opacity: 1; }
.mission { grid-column: 1 / -1; color: var(--muted); font-size: var(--step-lead); }
.values { grid-column: 1 / -1; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 1rem; }
.values li { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.values h3 { margin-bottom: 0.5rem; }
.values p { color: var(--muted); }
@media (min-width: 900px) {
  .about-title { grid-column: 1 / 4; }
  .statement { grid-column: 4 / 13; }
  .mission { grid-column: 4 / 11; }
  .values { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); column-gap: var(--col-gap); }
  .values li { border-bottom: 0; padding-right: 1rem; }
}

/* ---------- 12. FAQ ---------- */
.faq { background: var(--bg-2); border-top: 1px solid var(--line); }
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 44px; padding-block: 1.35rem; font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem); letter-spacing: -0.015em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--teal), var(--teal)) center / 100% 1.5px no-repeat, linear-gradient(var(--teal), var(--teal)) center / 1.5px 100% no-repeat; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding-bottom: 1.5rem; color: var(--muted); }
.faq-body a { color: var(--text); }

/* ---------- 13. Contact + footer ---------- */
.contact { padding-bottom: clamp(72px, 9vw, 120px); }
.contact .grid { row-gap: 3rem; align-items: start; }
.contact-copy { grid-column: 1 / -1; }
.contact-copy h2 { max-width: 12ch; }
.contact-copy .cta-row { margin-top: 2rem; }
.contact-copy .mail { margin-top: 1.5rem; color: var(--muted); }
.contact-form { grid-column: 1 / -1; display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font-size: 0.9rem; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.95rem; background: var(--surface); border: 1px solid var(--ui);
  border-radius: 8px; color: var(--text); transition: border-color 0.3s, background-color 0.3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: var(--faint); }
.field input:not([type="checkbox"]):focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { min-height: 1.2em; color: var(--danger); font-size: 0.85rem; }
.field-row { display: grid; gap: 1.25rem; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 0.75rem; align-items: start; font-size: 0.9rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { min-height: 1.5em; font-size: 0.95rem; }
.form-note.ok { color: var(--teal); }
.form-note.bad { color: var(--danger); }
.contact-form .btn { justify-self: start; }
@media (min-width: 768px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .contact-copy { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 24px); }
  .contact-form { grid-column: 7 / 13; }
}

.site-footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.foot-grid { display: grid; gap: 2.5rem; }
.foot-brand p { margin-top: 1rem; color: var(--muted); max-width: 30ch; font-size: 0.95rem; }
.foot-col h2 { font-family: var(--font-mono); font-size: var(--step-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-bottom: 1rem; }
.foot-col li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); transition: color 0.3s; }
.foot-col li a:hover { color: var(--text); }
.foot-meta { margin-top: clamp(40px, 6vw, 72px); padding-block: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: 0.875rem; color: var(--faint); }
.foot-meta .tools { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.foot-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 1rem; border: 1px solid var(--ui); border-radius: 999px; color: var(--muted); font-size: 0.85rem; transition: color 0.3s, border-color 0.3s; }
.foot-btn:hover { color: var(--text); border-color: var(--muted); }
.mega {
  display: block; text-align: center; font-family: var(--font-display); font-size: clamp(3rem, 15.5vw, 14rem); line-height: 0.95; letter-spacing: -0.02em; padding-bottom: 0.06em; user-select: none;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  background: var(--grad) no-repeat 0 0 / 0% 100%; -webkit-background-clip: text; background-clip: text;
  transition: background-size 1.8s var(--ease);
}
.mega.is-in { background-size: 100% 100%; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- 14. Reveal ---------- */
.js [data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms); }
.js [data-reveal="up"] { transform: translateY(32px); }
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .mega[data-reveal] { opacity: 1; transform: none; }

/* ---------- 15. Draw + keyframes ---------- */
.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .panel-wrap.is-in .panel.is-active .draw,
.js .approach:not(.is-pinned) .stage.is-in .draw,
.js .approach.is-pinned .stage.is-active .draw { animation: draw 1.6s var(--ease) forwards; }
.js .panel-wrap.is-in .panel.is-active .draw:nth-child(2) { animation-delay: 0.15s; }
.js .panel-wrap.is-in .panel.is-active .draw:nth-child(3) { animation-delay: 0.3s; }
.js .stage .draw:nth-child(n+4) { animation-delay: 0.2s; }
.js .stage .pop { opacity: 0; }
.js .approach:not(.is-pinned) .stage.is-in .pop,
.js .approach.is-pinned .stage.is-active .pop { animation: pop 0.8s var(--ease) 0.5s forwards; }
.js .panel .node, .js .panel .flow { opacity: 0; }
.js .panel-wrap.is-in .panel.is-active .node { animation: pop 0.7s var(--ease) forwards; }
.js .panel-wrap.is-in .panel.is-active .flow { animation: pop 0.6s var(--ease) 0.7s forwards, flow 1.2s linear 1.3s infinite; }
.js .panel-wrap.is-in .panel.is-active .node:nth-of-type(1) { animation-delay: 0.05s; }
.js .panel-wrap.is-in .panel.is-active .node:nth-of-type(2) { animation-delay: 0.15s; }
.js .panel-wrap.is-in .panel.is-active .node:nth-of-type(3) { animation-delay: 0.25s; }
.js .panel-wrap.is-in .panel.is-active .node:nth-of-type(4) { animation-delay: 0.35s; }
.js .panel-wrap.is-in .panel.is-active .node:nth-of-type(5) { animation-delay: 0.45s; }
.js .panel-wrap.is-in .panel.is-active .node:nth-of-type(6) { animation-delay: 0.55s; }
.flow { animation: flow 1.2s linear infinite; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes flow { to { stroke-dashoffset: -14; } }
@keyframes shift { to { background-position: 100% 0; } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(28px, -22px); } }

/* ---------- 16. Reduced / paused motion ---------- */
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.motion-off .draw { stroke-dashoffset: 0; }
html.motion-off .pop, html.motion-off .panel .node, html.motion-off .panel .flow { opacity: 1; }
html.motion-off [data-reveal] { opacity: 1; transform: none; }
html.motion-off .hero h1 .w > span { transform: none; }
html.motion-off .hero { height: auto; }
html.motion-off .hero-copy { opacity: 1; transform: none; }
html.motion-off .hero-caption, html.motion-off .scroll-cue i { display: none; }
html.motion-off .hero-stages li { color: var(--muted); }
html.motion-off .mega { background-size: 100% 100%; }
html.motion-off .statement .hl-word { opacity: 1; }
html.motion-off .site-header { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw { stroke-dashoffset: 0; }
}

/* ---------- 404 page ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.25rem; width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.nf h1 { font-size: clamp(2.2rem, 1.2rem + 4.5vw, 4.5rem); }
.nf-glyph { width: 96px; height: 96px; margin-bottom: 0.5rem; }
.nf-cta { margin-top: 0.75rem; }

/* ---------- 17. Print ---------- */
@media print {
  html, body { background: #fff; color: #000; }
  .site-header, .menu, .progress, #field, .hero-fallback, .hero-foot, .skip-link, .contact-form, .foot-meta .tools, .mega, .drift { display: none !important; }
  .hero, .approach, .approach.is-pinned { height: auto !important; }
  .hero-sticky, .approach-pin { position: static !important; height: auto !important; }
  [data-reveal], .stage, .hl-word { opacity: 1 !important; transform: none !important; }
  .grad, .wis { color: #000; -webkit-text-fill-color: #000; background: none; }
  .section, .quote, .faq, .approach { background: #fff !important; padding-block: 24px; }
  .lead, p, .muted, li { color: #000 !important; }
  a[href^="mailto:"]::after { content: " (" attr(href) ")"; }
}
