/* ==========================================================================
   Impactonia. Applied research and innovation.
   Identity kept: white, warm stone, ink. Outfit for headings, Inter for body.
   DM Mono added for figure labels and instrument readouts.
   ========================================================================== */

@font-face { font-family: 'Outfit'; src: url('fonts/outfit-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-var.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('fonts/dm-mono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('fonts/dm-mono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit Fallback'; src: local('Arial'); size-adjust: 97%; ascent-override: 100%; descent-override: 26%; line-gap-override: 0%; }

:root {
  --white: #FFFFFF;
  --stone: #F6F2EE;
  --stone-deep: #EFE9E3;
  --stone-edge: #E8E3DD;
  --ink: #0A0A0A;
  --ink-soft: #191919;
  --muted: #6A6762;
  --accent: #E3805F;
  --accent-deep: #9A4630;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.28);
  --page-bg: #FFFFFF;

  --font-head: 'Outfit', 'Outfit Fallback', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1440px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --section-y: clamp(64px, 8.4vw, 124px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--page-bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.9s ease;
}
body.menu-open { overflow: hidden; }

h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
img, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--white); }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.7vw, 4.25rem); line-height: 1.02; }
h3 { font-weight: 500; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; }
.mono { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.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; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; font-size: 0.9rem; transition: top 0.3s var(--ease); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[data-nav="dark"] :focus-visible { outline-color: var(--white); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; border: 1px solid transparent; transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease; will-change: transform; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #2B2926; }
.btn-line { border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); background: rgba(10, 10, 10, 0.04); }
.btn-light { background: var(--stone); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-small { height: 42px; padding: 0 20px; font-size: 0.875rem; }

.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 0.95rem; font-weight: 500; color: var(--ink); padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.5s var(--ease); }
.text-link svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.text-link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Section furniture ---------- */
.label { display: flex; align-items: center; gap: 14px; color: var(--muted); margin-bottom: clamp(22px, 3vw, 36px); }
.label span { color: var(--ink); font-weight: 500; }
.label::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--line-strong); }
.section-head { margin-bottom: clamp(30px, 4vw, 56px); }
@media (min-width: 1000px) {
  .section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: clamp(40px, 6vw, 110px); align-items: end; }
  .section-head .label { grid-column: 1 / -1; }
  .section-head .section-lede { margin-top: 0; padding-bottom: 0.5em; justify-self: end; }
}
.section-head h2 { max-width: 15ch; }
.section-lede { max-width: 54ch; margin-top: clamp(20px, 2.4vw, 30px); font-size: clamp(1.05rem, 1.25vw, 1.2rem); color: var(--muted); }
[data-section] { padding-block: var(--section-y); position: relative; }

/* ---------- Reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-split] { visibility: hidden; }
.js [data-split].split-ready { visibility: visible; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.wi { display: inline-block; transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms)); }
.in .wi { transform: none; }
.js.no-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
.js.no-motion [data-split] { visibility: visible; }
.js.no-motion .wi { transform: none; transition: none; }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.top-dark .progress span { background: var(--stone); }
.progress span { display: block; height: 100%; background: var(--ink); transition: background-color 0.4s ease; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); color: var(--ink); transition: background-color 0.5s ease, color 0.4s ease, border-color 0.5s ease, transform 0.6s var(--ease); border-bottom: 1px solid transparent; }
.nav-inner { height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 32px; }
.nav.scrolled { background: color-mix(in srgb, var(--page-bg) 84%, transparent); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); border-bottom-color: var(--line); }
.no-js .nav { background: var(--page-bg); border-bottom-color: var(--line); }
.nav.on-dark { color: var(--stone); }
.nav.on-dark.scrolled { background: rgba(10, 10, 10, 0.72); border-bottom-color: rgba(255, 255, 255, 0.1); }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand-logo { height: 28px; width: auto; aspect-ratio: 5804 / 1214; fill: currentColor; }
.nav-links { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav-links a { position: relative; font-size: 0.9rem; font-weight: 500; padding: 8px 0; opacity: 0.72; transition: opacity 0.3s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s var(--ease); }
.nav-links a:hover, .nav-links a.is-current { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav.on-dark .btn-ink { background: var(--stone); color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 12px; height: 44px; padding: 0 4px 0 12px; }
.menu-btn-label { font-size: 0.9rem; font-weight: 500; }
.menu-btn-icon { position: relative; width: 26px; height: 26px; }
.menu-btn-icon i { position: absolute; left: 3px; right: 3px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-btn-icon i:first-child { top: 9px; }
.menu-btn-icon i:last-child { top: 16px; }
.menu-open .menu-btn-icon i:first-child { top: 12.5px; transform: rotate(45deg); }
.menu-open .menu-btn-icon i:last-child { top: 12.5px; transform: rotate(-45deg); }
.menu-open .nav { background: transparent; color: var(--ink); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--stone); padding: calc(var(--nav-h) + 28px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; visibility: hidden; opacity: 0; transition: opacity 0.45s ease, visibility 0s linear 0.45s; overflow-y: auto; }
.menu-open .mobile-menu { visibility: visible; opacity: 1; transition-delay: 0s; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { display: flex; align-items: baseline; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.mobile-menu a .mono { color: var(--muted); min-width: 26px; }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.06s; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.1s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.14s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.18s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.22s; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.26s; }
.menu-open .mobile-menu a:nth-child(7) { transition-delay: 0.3s; }
.menu-open .mobile-menu a:nth-child(8) { transition-delay: 0.34s; }
.mobile-menu-foot { color: var(--muted); padding-top: 28px; text-transform: none; letter-spacing: 0.02em; font-size: 0.8rem; }

/* Floating call to action, small screens only */
.pill-cta { position: fixed; z-index: 70; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: none; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 0.86rem; font-weight: 500; white-space: nowrap; box-shadow: 0 12px 34px -12px rgba(10, 10, 10, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14); transform: translateY(90px); opacity: 0; pointer-events: none; transition: transform 0.7s var(--ease), opacity 0.4s ease; }
.pill-cta svg { width: 15px; height: 15px; }
.pill-cta.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.menu-open .pill-cta { opacity: 0; pointer-events: none; }
@media (max-width: 1100px) { .pill-cta { display: inline-flex; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 120px; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-fallback { position: absolute; z-index: 0; right: 12%; top: 50%; width: min(22vw, 300px); transform: translateY(-50%); opacity: 0; pointer-events: none; }
.hero-fallback svg { width: 100%; height: auto; aspect-ratio: 432 / 1000; fill: var(--ink); }
.no-js .hero-fallback, .js.no-canvas .hero-fallback { opacity: 0.08; }
.hero-inner { position: relative; z-index: 2; }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); margin-bottom: clamp(22px, 2.6vw, 36px); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
.hero-title { font-size: clamp(2.7rem, 6.4vw, 6.3rem); line-height: 0.98; letter-spacing: -0.038em; max-width: 11.6ch; }
.hero-sub { max-width: 46ch; margin-top: clamp(24px, 2.8vw, 38px); font-size: clamp(1.05rem, 1.3vw, 1.22rem); color: var(--muted); --d: 0.5s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(30px, 3.4vw, 46px); --d: 0.65s; }
.hero-meta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); }
.hero-meta::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: -16px; height: 7px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 12px); -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.25)); mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.25)); }
.hero-fig em { font-style: normal; margin-left: 14px; color: var(--ink); }
.hero-signal b { font-weight: 500; color: var(--ink); margin-left: 6px; font-variant-numeric: tabular-nums; }
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero-scroll i { width: 1px; height: 26px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ==========================================================================
   01 POSITION
   ========================================================================== */
.position { padding-top: clamp(56px, 7vw, 104px); }
.thesis { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.75rem, 4.7vw, 4.4rem); line-height: 1.08; letter-spacing: -0.032em; color: var(--ink); max-width: 17.5em; }
.tw { opacity: 0.13; transition: opacity 0.45s ease; }
.tw.on { opacity: 1; }
.tenets { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(44px, 5.6vw, 84px); }
.tenet { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.tenet:nth-child(2) { --d: 0.1s; }
.tenet:nth-child(3) { --d: 0.2s; }
.tenet-no { display: block; color: var(--accent-deep); margin-bottom: 26px; }
.tenet h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.15; margin-bottom: 12px; }
.tenet p { color: var(--muted); font-size: 1rem; }

/* ==========================================================================
   02 METHOD
   ========================================================================== */
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.method-stage { position: sticky; top: calc(50vh - min(36vh, 310px)); }
.stage-frame { position: relative; height: min(72vh, 620px); border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, 0.5); overflow: hidden; }
.stage-frame::before, .stage-frame::after { content: ""; position: absolute; width: 14px; height: 14px; border: solid var(--line-strong); z-index: 2; }
.stage-frame::before { left: 16px; top: 16px; border-width: 1px 0 0 1px; }
.stage-frame::after { right: 16px; top: 16px; border-width: 1px 1px 0 0; }
.stage-canvas { position: absolute; inset: 0 0 46px 0; width: 100%; height: calc(100% - 46px); }
.stage-caption { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-top: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.6); }
.stage-name { color: var(--ink); font-weight: 500; }
.method-steps { counter-reset: none; }
.step { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; padding-block: 32px; opacity: 0.26; transition: opacity 0.6s ease; }
.step.is-active { opacity: 1; }
.no-js .step { opacity: 1; min-height: 0; }
.no-js .method-stage { display: none; }
.no-js .method-grid { grid-template-columns: 1fr; }
.step-no { color: var(--accent-deep); margin-bottom: 18px; }
.step h3 { font-size: clamp(2rem, 3.8vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 18px; }
.step p { max-width: 40ch; color: var(--ink-soft); }
.step-settles { margin-top: 24px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.step-settles b { font-weight: 500; color: var(--ink); padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }

/* ---------- Dot glyph, the five by five signature of a research file ---------- */
.glyph { display: block; flex: none; color: var(--ink); }
.glyph svg { display: block; width: 100%; height: 100%; overflow: visible; }
.glyph circle { fill: currentColor; opacity: 0.13; transform: scale(0.5); transform-box: fill-box; transform-origin: center; transition: transform 0.7s var(--ease), opacity 0.45s ease, fill 0.4s ease; }
.glyph circle.on { opacity: 1; transform: scale(1); }
.glyph circle.accent { fill: var(--accent); }

/* ==========================================================================
   03 APPLICATIONS. Each row carries its illustrative files inside it.
   ========================================================================== */
.acc { border-bottom: 1px solid var(--line-strong); }
.acc-item { border-top: 1px solid var(--line-strong); position: relative; }
.acc-item h3 { font: inherit; letter-spacing: 0; }
.acc-head { width: 100%; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 44px; align-items: center; gap: 20px; padding: clamp(18px, 2.1vw, 28px) 0; text-align: left; color: var(--ink); }
.acc-no { color: var(--muted); transition: color 0.3s ease; }
.acc-title { font-family: var(--font-head); font-size: clamp(1.3rem, 2.5vw, 2.15rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; transition: transform 0.6s var(--ease); }
.acc-tag { color: var(--muted); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; transition: border-color 0.3s ease, color 0.3s ease; }
.acc-icon { width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 50%; justify-self: end; transition: background-color 0.35s ease, color 0.35s ease, transform 0.6s var(--ease); }
.acc-icon .plus-v { transform-origin: 50% 50%; transition: transform 0.5s var(--ease); }
.acc-head:hover .acc-title { transform: translateX(10px); }
.acc-head:hover .acc-no, .acc-item.is-open .acc-no { color: var(--accent-deep); }
.acc-head:hover .acc-icon { background: var(--ink); color: var(--white); }
.acc-item.is-open .acc-icon { background: var(--ink); color: var(--white); transform: rotate(180deg); }
.acc-item.is-open .acc-icon .plus-v { transform: scaleY(0); }
.acc-item.is-open .acc-tag { border-color: var(--line-strong); color: var(--ink); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease); }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.no-js .acc-body { grid-template-rows: 1fr; }
.acc-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear 0.7s; }
.acc-item.is-open .acc-inner, .no-js .acc-inner { visibility: visible; transition-delay: 0s; }
.views { padding: 2px 0 clamp(28px, 3.4vw, 44px) 92px; opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.8s var(--ease); }
.acc-item.is-open .views, .no-js .views { opacity: 1; transform: none; }
.view-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; border: 1px solid var(--line-strong); border-radius: 999px; }
.view-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color 0.35s ease, color 0.35s ease; }
.view-tabs button .mono { font-size: 0.64rem; color: inherit; opacity: 0.75; }
.view-tabs button:hover { color: var(--ink); }
.view-tabs button.is-on { background: var(--ink); color: var(--white); }
.no-js .view-tabs { display: none; }
.view { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.js .view:not(.is-on) { display: none; }
.js .view.is-on { animation: viewIn 0.7s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.no-js .view + .view { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.acc-lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink); max-width: 38ch; }
.acc-col h4 { color: var(--muted); font-weight: 400; margin-bottom: 12px; }
.acc-col li { position: relative; padding: 9px 0 9px 18px; border-top: 1px solid var(--line); font-size: 0.97rem; line-height: 1.45; }
.acc-col li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 1px; background: var(--ink); }
.file-flag { color: var(--accent-deep); margin-bottom: 12px; }
.file-q { font-family: var(--font-head); font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-weight: 500; line-height: 1.14; letter-spacing: -0.02em; color: var(--ink); max-width: 15em; }
.file-about { margin-top: 18px; font-size: 0.97rem; color: var(--ink); }
.file-about .mono { display: block; color: var(--muted); margin-bottom: 6px; }
.file-dl > div { border-top: 1px solid var(--line); padding: 11px 0 15px; }
.file-dl dt { color: var(--muted); margin-bottom: 6px; }
.file-dl dd { font-size: 0.97rem; line-height: 1.5; }
.apps-note { margin-top: 20px; color: var(--muted); text-transform: none; letter-spacing: 0.02em; font-size: 0.78rem; }

/* ==========================================================================
   04 INSTRUMENT
   ========================================================================== */
.instrument { padding-block: clamp(12px, 2vw, 28px); }
.instrument-panel { position: relative; margin-inline: clamp(8px, 1.2vw, 20px); border-radius: clamp(22px, 3vw, 44px); background-color: var(--ink); background-image: radial-gradient(rgba(255, 255, 255, 0.085) 1px, transparent 1.4px); background-size: 24px 24px; color: var(--stone); padding-block: clamp(60px, 7.6vw, 112px); overflow: hidden; }
.instrument-panel h2 { color: var(--white); max-width: 12ch; }
.instrument-panel .label { color: rgba(246, 242, 238, 0.6); }
.instrument-panel .label span { color: var(--white); }
.instrument-panel .label::after { background: rgba(255, 255, 255, 0.3); }
.instrument-panel .section-lede { color: rgba(246, 242, 238, 0.66); }
.inst-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.inst-form label { display: block; color: rgba(246, 242, 238, 0.6); margin-bottom: 10px; }
.inst-field { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 14px; transition: border-color 0.4s ease; }
.inst-field:focus-within { border-bottom-color: var(--accent); }
.inst-field input { flex: 1 1 auto; min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; padding: 4px 0; font-family: var(--font-head); font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -0.025em; color: var(--white); caret-color: var(--accent); }
.inst-field input::placeholder { color: rgba(255, 255, 255, 0.26); }
.inst-field.shake { animation: shake 0.45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.inst-hint { margin-top: 26px; color: rgba(246, 242, 238, 0.5); }
.inst-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.inst-chips button { height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; font-size: 0.9rem; color: var(--stone); transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.inst-chips button:hover, .inst-chips button.is-on { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.inst-chips button[data-random] { border-style: dashed; color: var(--accent); }
.inst-chips button[data-random]:hover { color: var(--ink); border-style: solid; }
.inst-note { margin-top: 30px; max-width: 44ch; font-size: 0.86rem; line-height: 1.55; color: rgba(246, 242, 238, 0.5); }

.file-card { position: relative; background: var(--stone); color: var(--ink-soft); border-radius: clamp(18px, 2vw, 26px); padding: clamp(22px, 3vw, 40px); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); }
.file-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(201, 169, 110, 0.22), transparent); transform: translateY(-120px); pointer-events: none; }
.file-card.is-scanning::after { animation: scan 0.95s var(--ease-io) both; }
@keyframes scan { from { transform: translateY(-120px); } to { transform: translateY(820px); } }
.file-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: clamp(18px, 2.4vw, 28px); }
.file-id { color: var(--muted); margin-bottom: 12px; }
.file-id span { color: var(--ink); font-weight: 500; }
.file-subject { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.file-situ { margin-top: 14px; display: flex; gap: 12px; align-items: baseline; font-size: 0.95rem; color: var(--ink-soft); }
.file-situ .mono { color: var(--muted); flex: none; }
.file-glyph { flex: none; width: 66px; height: 66px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--white); }
.file-glyph .glyph { width: 100%; height: 100%; }
.file-lines li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-top: 1px solid var(--line-strong); align-items: baseline; }
.file-lines .mono { color: var(--accent-deep); }
.file-lines p { font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.42; color: var(--ink); min-height: 2.84em; }
.file-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.file-moves { flex: 1 1 280px; }
.file-moves > .mono { color: var(--muted); margin-bottom: 10px; }
.file-moves ol { counter-reset: mv; }
.file-moves li { counter-increment: mv; position: relative; padding: 4px 0 4px 30px; font-size: 0.92rem; line-height: 1.45; }
.file-moves li::before { content: counter(mv, decimal-leading-zero); position: absolute; left: 0; top: 6px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }

/* ==========================================================================
   Lower half. One layout for every section: title on the left, content on the right.
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.split-head { position: sticky; top: 108px; }
.split-head h2 { max-width: 9.5ch; }
.split-head .section-lede { margin-top: clamp(18px, 2vw, 26px); max-width: 38ch; }

/* ---------- 05 OUTPUTS ---------- */
.docs { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); border: 1px solid var(--line-strong); border-radius: clamp(18px, 2vw, 26px); overflow: hidden; background: var(--white); }
.docs-list { display: flex; flex-direction: column; }
.docs-list button { position: relative; flex: 1 1 0; display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 64px; padding: 14px 22px; text-align: left; color: var(--muted); border-bottom: 1px solid var(--line); transition: color 0.35s ease, background-color 0.35s ease; }
.docs-list button:last-child { border-bottom: 0; }
.docs-list button .doc-name { font-family: var(--font-head); font-size: clamp(1rem, 1.35vw, 1.2rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.docs-list button:hover { color: var(--ink); }
.docs-list button.is-on { color: var(--ink); background: var(--stone); }
.docs-list button.is-on .mono { color: var(--accent-deep); }
.docs-list button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.docs.is-auto .docs-list button.is-on::after { animation: docTimer var(--doc-ms, 5200ms) linear forwards; }
@keyframes docTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.docs-panels { display: grid; background: var(--stone); padding: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line-strong); }
.doc-panel { grid-area: 1 / 1; min-width: 0; }
.js .doc-panel:not(.is-on) { visibility: hidden; opacity: 0; pointer-events: none; }
.js .doc-panel.is-on { animation: viewIn 0.7s var(--ease) both; }
.no-js .docs { display: block; }
.no-js .docs-list { display: none; }
.no-js .docs-panels { border-left: 0; gap: 34px; }
.no-js .doc-panel { grid-area: auto; }
.doc-no { color: var(--accent-deep); margin-bottom: 14px; }
.doc-panel h3 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; }
.doc-desc { margin-top: 14px; font-size: 0.97rem; line-height: 1.55; color: var(--ink-soft); max-width: 42ch; }
.doc-inside { color: var(--muted); margin: 22px 0 6px; }
.doc-list { counter-reset: sec; }
.doc-list li { counter-increment: sec; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line-strong); font-size: 0.95rem; color: var(--ink); }
.doc-list li::before { content: counter(sec, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }

/* ---------- 06 IMPACT ---------- */
.impact-lead { margin-top: clamp(18px, 2vw, 26px); font-family: var(--font-head); font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.02em; color: var(--ink); max-width: 14em; }
.impact-note { columns: 2; column-gap: clamp(24px, 3vw, 48px); }
.impact-note p { break-inside: avoid; font-size: 1rem; line-height: 1.62; color: var(--ink-soft); margin-bottom: 1em; }
.impact-note .impact-sign { margin: 0; color: var(--muted); font-size: 0.72rem; }
.rules { margin-top: clamp(26px, 3vw, 44px); }
.rules-title { color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.rules ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 48px); }
.rules li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 8px; align-content: start; padding: 18px 0 20px; border-bottom: 1px solid var(--line-strong); }
.rules li > .mono { color: var(--accent-deep); padding-top: 4px; }
.rules li h3 { font-size: clamp(1.08rem, 1.35vw, 1.22rem); line-height: 1.2; }
.rules li p { grid-column: 2; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.not { margin-top: 20px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; font-size: 0.97rem; line-height: 1.55; color: var(--ink-soft); }
.not::before { content: ""; width: 14px; height: 1px; background: var(--ink); margin-top: 0.8em; }
.not s { text-decoration: none; color: var(--muted); white-space: nowrap; background: linear-gradient(var(--ink), var(--ink)) 0 56% / 0% 1.5px no-repeat; transition: background-size 1s var(--ease-io); }
.not.in s, .no-js .not s, .no-motion .not s { background-size: 100% 1.5px; }
.not s:nth-of-type(1) { transition-delay: 0.3s; }
.not s:nth-of-type(2) { transition-delay: 0.5s; }
.not s:nth-of-type(3) { transition-delay: 0.7s; }

/* ---------- 07 CONTACT ---------- */
.contact-lines { margin-top: clamp(26px, 3vw, 40px); }
.contact-lines > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-strong); align-items: baseline; }
.contact-lines > div:last-child { border-bottom: 1px solid var(--line-strong); }
.contact-lines dt { color: var(--muted); }
.contact-lines a { font-family: var(--font-head); font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500; color: var(--ink); letter-spacing: -0.015em; background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; transition: background-size 0.5s var(--ease); padding-bottom: 2px; }
.contact-lines a:hover { background-size: 100% 1px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(20px, 2.4vw, 36px); background: var(--stone); border-radius: clamp(18px, 2vw, 26px); padding: clamp(24px, 3vw, 44px); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.optional { color: var(--muted); text-transform: none; letter-spacing: 0.01em; margin-left: 8px; font-family: var(--font-body); font-size: 0.8rem; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 10px 0 12px; font-size: 1.05rem; color: var(--ink); outline: 0; transition: border-color 0.3s ease, box-shadow 0.3s ease; -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; background-size: 20px; padding-right: 30px; text-overflow: ellipsis; }
.field select:invalid { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field.has-error input, .field.has-error select { border-bottom-color: #A3341F; box-shadow: 0 1px 0 0 #A3341F; }
.field.attach { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 14px; }
.attach-glyph { width: 34px; height: 34px; flex: none; }
.attach-glyph .glyph { width: 100%; height: 100%; }
.attach-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.attach-text .mono { color: var(--muted); }
.attach-text b { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; line-height: 1.2; }
.attach-remove { font-size: 0.85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.attach-remove:hover { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form-note { font-size: 0.86rem; color: var(--muted); max-width: 30ch; line-height: 1.45; }
.form-status { font-size: 0.95rem; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #A3341F; }
.contact-form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }
.form-success { grid-column: 1 / -1; padding: clamp(10px, 2vw, 24px) 0; }
.form-success h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 14px; }
.form-success p { color: var(--ink-soft); max-width: 44ch; }
.form-success button { margin-top: 26px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--stone); padding: clamp(28px, 4vw, 56px) 0 26px; position: relative; }
.footer-field { position: relative; width: 100%; aspect-ratio: 1000 / 250; display: flex; align-items: center; }
.footer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.footer-field.is-live .footer-canvas { display: block; }
.footer-field.is-live .footer-logo { display: none; }
.footer-logo { width: min(520px, 78vw); height: auto; aspect-ratio: 5804 / 1214; fill: var(--white); }
.footer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px clamp(32px, 5vw, 80px); align-items: center; padding: clamp(20px, 2.4vw, 30px) 0; border-top: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.footer-line { font-family: var(--font-head); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -0.015em; color: var(--white); line-height: 1.2; }
.footer-links, .footer-contact { display: flex; flex-wrap: wrap; gap: 8px clamp(16px, 2vw, 28px); }
.footer-links a, .footer-contact a { font-size: 0.92rem; color: rgba(246, 242, 238, 0.78); transition: color 0.3s ease; }
.footer-links a:hover, .footer-contact a:hover, .footer-base a:hover { color: var(--white); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; color: rgba(246, 242, 238, 0.55); text-transform: none; letter-spacing: 0.02em; font-size: 0.76rem; }

/* ---------- Plates. Every dot figure sits in the same frame, with the same caption bar. ---------- */
.plate { position: relative; margin: clamp(22px, 2.6vw, 34px) 0 0; height: clamp(170px, 16vw, 232px); border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(255, 255, 255, 0.55); overflow: hidden; }
.plate::before, .plate::after { content: ""; position: absolute; top: 14px; width: 12px; height: 12px; border: solid var(--line-strong); z-index: 2; pointer-events: none; }
.plate::before { left: 14px; border-width: 1px 0 0 1px; }
.plate::after { right: 14px; border-width: 1px 1px 0 0; }
.plate canvas { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 40px); }
.plate figcaption { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-top: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.plate figcaption .plate-name { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.inst-controls .plate { max-width: 520px; height: clamp(210px, 21vw, 290px); }
.no-js .plate { display: none; }
@media (max-width: 900px) {
  .plate { height: 176px; border-radius: 18px; }
  .plate-wide { height: 190px; }
  .inst-controls .plate { max-width: none; height: 200px; }
  .plate figcaption { font-size: 0.64rem; letter-spacing: 0.06em; }
  .plate figcaption [data-plate-state] { display: none; }
}

/* ---------- Cursor. The dot from the top of the mark. Fine pointers only. ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; width: 14px; height: 14px; margin: -7px 0 0 -7px; pointer-events: none; opacity: 0; will-change: transform; transition: opacity 0.25s ease; }
.cursor::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9); transition: transform 0.4s var(--ease), background-color 0.3s ease, box-shadow 0.3s ease; }
.cursor.is-dark::before { background: var(--stone); box-shadow: 0 0 0 1.5px rgba(10, 10, 10, 0.55); }
.cursor.is-on { opacity: 1; }
.cursor.is-hot::before { transform: scale(2.9); background: rgba(10, 10, 10, 0.1); box-shadow: inset 0 0 0 0.55px var(--ink), 0 0 0 0.5px rgba(255, 255, 255, 0.75); }
.cursor.is-dark.is-hot::before { background: rgba(246, 242, 238, 0.16); box-shadow: inset 0 0 0 0.55px var(--stone), 0 0 0 0.5px rgba(10, 10, 10, 0.5); }
.cursor.is-down::before { transform: scale(0.72); }
.cursor.is-hot.is-down::before { transform: scale(2.3); }
.cursor.is-text { opacity: 0; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
html.has-cursor select { cursor: pointer !important; }

@media (max-height: 780px) and (min-width: 901px) {
  .hero { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 104px; }
  .hero-title { font-size: clamp(2.6rem, 5.1vw, 4.5rem); }
  .hero-sub { margin-top: 20px; }
  .hero-actions { margin-top: 26px; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .acc-head { grid-template-columns: 56px minmax(0, 1fr) 44px; }
  .acc-tag { grid-column: 2; grid-row: 2; justify-self: start; margin-top: -6px; }
  .acc-icon { grid-column: 3; grid-row: 1 / span 2; }
  .views { padding-left: 76px; }
  .footer-row { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  body { font-size: 1rem; }
  .hero { align-items: flex-end; padding: calc(var(--nav-h) + clamp(170px, 30vh, 300px)) 0 92px; }
  .hero-title { max-width: 100%; font-size: clamp(2.5rem, 10.6vw, 4.4rem); }
  .hero-fallback { right: 50%; top: 26%; transform: translate(50%, -50%); width: 26vw; }
  .hero-meta { bottom: 20px; }
  .hero-fig em { display: none; }
  .tenets { grid-template-columns: 1fr; gap: 0; }
  .tenet { padding: 20px 0 24px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; }
  .tenet-no { grid-row: 1 / span 2; margin: 5px 0 0; }
  .tenet h3, .tenet p { grid-column: 2; }
  .tenet h3 { margin-bottom: 2px; }

  .method-grid { grid-template-columns: 1fr; gap: 0; }
  .method-stage { top: var(--nav-h); z-index: 5; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter) 14px; background: var(--page-bg); transition: background-color 0.9s ease; }
  .method-stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; background: linear-gradient(var(--page-bg), transparent); pointer-events: none; }
  .stage-frame { height: 36vh; height: 36svh; min-height: 220px; border-radius: 18px; background: rgba(255, 255, 255, 0.72); }
  .stage-canvas { inset: 0 0 38px 0; height: calc(100% - 38px); }
  .stage-caption { height: 38px; padding: 0 16px; }
  .step { min-height: 40vh; min-height: 40svh; padding-block: 24px; }
  .step:last-child { min-height: 34svh; }

  .views { padding-left: 0; }
  .view { grid-template-columns: 1fr; gap: 22px; }
  .inst-grid { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 44px); }
  .split-head { position: static; }
  .split-head h2 { max-width: 12ch; }
  .docs { grid-template-columns: 1fr; }
  .docs-list { flex-direction: row; border-bottom: 1px solid var(--line-strong); }
  .docs-list button { display: flex; justify-content: center; min-height: 52px; padding: 0 4px; border-bottom: 0; border-right: 1px solid var(--line); }
  .docs-list button:last-child { border-right: 0; }
  .docs-list button .doc-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .docs-list button.is-on { background: var(--ink); color: var(--white); }
  .docs-list button.is-on .mono { color: var(--white); }
  .docs-list button::after { bottom: 0; background: var(--accent); }
  .docs-panels { border-left: 0; }
  .impact-note { columns: 1; }
  .rules ol { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .btn { height: 52px; padding: 0 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-scroll { display: none; }
  .acc-head { grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 12px; }
  .acc-icon { width: 40px; height: 40px; padding: 9px; }
  .acc-tag { font-size: 0.64rem; padding: 6px 10px; }
  .view-tabs { display: flex; }
  .view-tabs button { flex: 1 1 0; justify-content: center; padding: 0 10px; }
  .inst-field { flex-direction: column; align-items: stretch; border-bottom: 0; padding-bottom: 0; gap: 16px; }
  .inst-field input { border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 12px; }
  .inst-field input:focus { border-bottom-color: var(--accent); }
  .file-card-head { gap: 14px; }
  .file-glyph { width: 54px; height: 54px; padding: 7px; border-radius: 13px; }
  .file-situ { flex-direction: column; gap: 4px; }
  .file-lines li { grid-template-columns: 1fr; gap: 6px; }
  .file-lines p { min-height: 0; }
  .file-card-foot .btn { width: 100%; }
  .contact-form { grid-template-columns: 1fr; }
  .field.attach { flex-wrap: wrap; }
  .form-foot .btn { width: 100%; }
  .form-note { max-width: none; }
}

@media (hover: none) {
  .acc-head:hover .acc-title { transform: none; }
  .acc-head:hover .acc-icon { background: transparent; color: inherit; }
  .acc-item.is-open .acc-head .acc-icon { background: var(--ink); color: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-split] { visibility: visible; }
  .wi { transform: none; }
  .tw { opacity: 1; }
  .step { opacity: 1; }
  .cursor::before { transition: none; }
}

@media print {
  .nav, .progress, .mobile-menu, .hero-canvas, .hero-meta, .cursor { display: none !important; }
  .js [data-reveal], .wi { opacity: 1 !important; transform: none !important; }
  .js [data-split] { visibility: visible !important; }
  .acc-body { grid-template-rows: 1fr !important; }
  .acc-inner, .views, .view, .doc-panel { visibility: visible !important; opacity: 1 !important; transform: none !important; display: grid !important; }
}

/* ==========================================================================
   NIGHT. Dots live on a black sky. The pages between stay light.
   The page is a light sheet with rounded ends, resting on the night.
   ========================================================================== */
:root {
  --night: #070708;
  --on-night: rgba(246, 242, 238, 0.66);
  --line-night: rgba(255, 255, 255, 0.16);
  /* the one gradient every figure is drawn in */
  --g1: #FFEEE0;
  --g2: #F8BE84;
  --g3: #E3805F;
  --g4: #8B3A2B;
  --g5: #C8654C;
}
html { background: var(--night); }
body { background-color: var(--night); }
.sheet { position: relative; z-index: 1; background-color: var(--page-bg); border-radius: clamp(22px, 3vw, 44px); transition: background-color 0.9s ease; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- the opening ---------- */
.hero { background: var(--night); color: var(--stone); }
.hero .kicker { color: var(--on-night); }
.hero-title { color: var(--white); }
.wi.grad { background-image: linear-gradient(100deg, var(--g1), var(--g2) 50%, var(--g3)); background-size: calc(var(--gn, 1) * 100%) 100%; background-position: var(--gp, 0%) 0; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--on-night); }
.hero-meta { color: var(--on-night); }
.hero-meta::before { background: repeating-linear-gradient(90deg, var(--line-night) 0 1px, transparent 1px 12px); }
.hero-fig em { color: var(--stone); }
.hero-signal b { color: var(--g2); }
.hero-scroll i { background: var(--line-night); }
.hero-scroll i::after { background: var(--stone); }
.hero-fallback svg { fill: var(--stone); }
.btn-ghost { color: var(--stone); border: 1px solid transparent; background: linear-gradient(var(--night), var(--night)) padding-box, linear-gradient(100deg, color-mix(in srgb, var(--g1) 72%, transparent), color-mix(in srgb, var(--g3) 86%, transparent)) border-box; }
.btn-ghost:hover { background: linear-gradient(#1B1512, #1B1512) padding-box, linear-gradient(100deg, var(--g1), var(--g3)) border-box; }
.no-js .nav { position: absolute; background: transparent; color: var(--stone); border-bottom-color: transparent; }

/* ---------- Fig. 02, a night band across the page ---------- */
.position { padding-bottom: clamp(36px, 4.6vw, 68px); }
.band { padding: 0; }
.band-panel { position: relative; margin: 0 clamp(8px, 1.2vw, 20px); height: clamp(320px, 54vh, 540px); border-radius: clamp(22px, 3vw, 44px); background: var(--night); overflow: hidden; }
.band-panel figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(20px, 3.4vw, 52px) clamp(18px, 2vw, 26px); color: var(--on-night); }
.band-panel .plate-name { color: var(--white); font-weight: 500; }

/* ---------- plates become windows onto the same sky ---------- */
.plate { border: 0; background: var(--night); }
.plate::before, .plate::after { border-color: rgba(255, 255, 255, 0.3); }
.plate canvas { height: 100%; }
.plate figcaption { border-top: 1px solid var(--line-night); background: rgba(7, 7, 8, 0.6); color: var(--on-night); }
.plate figcaption .plate-name { color: var(--white); }

/* ---------- the method stage ---------- */
.stage-frame { border-color: transparent; background: var(--night); }
.stage-frame::before, .stage-frame::after { border-color: rgba(255, 255, 255, 0.3); }
.stage-frame .sky { z-index: 0; }
.stage-canvas { z-index: 1; }
.stage-caption { z-index: 2; border-top-color: var(--line-night); background: rgba(7, 7, 8, 0.6); color: var(--on-night); }
.stage-name { color: var(--white); }

/* ---------- the instrument and the close share the sky ---------- */
.instrument-panel { background-color: var(--night); background-image: none; }
.instrument-panel > .container { position: relative; z-index: 1; }
.footer { background: var(--night); }

@media (max-width: 900px) {
  .band-panel { height: clamp(250px, 42vh, 360px); }
  .band-panel figcaption span:first-child { display: none; }
  .stage-frame { background: var(--night); }
}

/* ==========================================================================
   POSITION, PINNED. One fixed screen that changes as the visitor scrolls.
   ========================================================================== */
.scene { position: relative; height: calc(100vh + 92vh); }
.scene-pin { position: sticky; top: 0; height: 100vh; padding: calc(var(--nav-h) + 6px) clamp(8px, 1.2vw, 20px) clamp(8px, 1.2vw, 20px); }
.scene-panel { position: relative; height: 100%; margin: 0; border-radius: clamp(22px, 3vw, 44px); background: var(--night); color: var(--stone); overflow: hidden; }
.scene-head { position: absolute; z-index: 2; left: clamp(22px, 4vw, 64px); right: clamp(22px, 4vw, 64px); top: clamp(22px, 3.2vw, 46px); display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; pointer-events: none; }
.scene-head .label { margin: 0; color: var(--on-night); }
.scene-head .label span { color: var(--white); }
.scene-head .label::after { background: rgba(255, 255, 255, 0.3); }
.scene-lead { max-width: 30ch; text-align: right; font-family: var(--font-head); font-size: clamp(1.05rem, 1.55vw, 1.4rem); font-weight: 500; line-height: 1.26; letter-spacing: -0.015em; color: var(--stone); }
.scene-steps { position: absolute; z-index: 2; left: clamp(22px, 4vw, 64px); right: clamp(22px, 4vw, 64px); bottom: clamp(62px, 9vh, 104px); display: grid; pointer-events: none; }
.scene-steps li { grid-area: 1 / 1; align-self: end; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; max-width: min(100%, 760px); opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.8s var(--ease); }
.scene-steps li.is-on { opacity: 1; transform: none; }
.scene-steps li .mono { color: var(--g2); padding-top: 0.75em; }
.scene-steps h3 { font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; color: var(--white); }
.scene-steps p { grid-column: 2; max-width: 44ch; font-size: clamp(0.98rem, 1.2vw, 1.12rem); color: var(--on-night); }
.scene-foot { position: absolute; z-index: 2; left: clamp(22px, 4vw, 64px); right: clamp(22px, 4vw, 64px); bottom: clamp(18px, 2.2vw, 28px); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--on-night); pointer-events: none; }
.scene-ticks { display: inline-flex; gap: 8px; }
.scene-ticks i { width: clamp(22px, 3vw, 40px); height: 2px; background: var(--line-night); transition: background-color 0.45s ease; }
.scene-ticks i.is-on { background: var(--g2); }
.no-js .scene { height: auto; }
.no-js .scene-pin { position: static; height: auto; }
.no-js .scene-panel { height: auto; padding: clamp(28px, 4vw, 56px); }
.no-js .scene-panel > * { position: static; }
.no-js .scene-panel canvas { display: none; }
.no-js .scene-head { margin-bottom: 36px; }
.no-js .scene-steps { display: block; margin-bottom: 28px; }
.no-js .scene-steps li { opacity: 1; transform: none; margin-bottom: 20px; }

/* a word in the headline lights up under the pointer */
@media (hover: hover) {
  .hero-title .w:hover .wi:not(.grad) { background-image: linear-gradient(100deg, var(--g1), var(--g2) 50%, var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
}

@media (max-width: 900px) {
  .scene { height: calc(100vh + 84vh); height: calc(100svh + 84svh); }
  .scene-pin { height: 100vh; height: 100svh; padding: calc(var(--nav-h) + 4px) 8px 8px; }
  .scene-head { flex-direction: column; gap: 14px; }
  .scene-lead { text-align: left; max-width: 26ch; }
  .scene-steps li { grid-template-columns: 34px minmax(0, 1fr); }
  .scene-steps { bottom: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-steps li { transition: none; }
}

/* the impact statement is now a single short paragraph */
.impact-note { columns: 1; }
.impact-note p { max-width: 46ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; }
.impact-note .impact-sign { font-size: 0.72rem; }
