/* ==========================================================================
   Kabilan Senthil, portfolio
   1 Tokens · 2 Base · 3 Type · 4 Components · 5 Sections · 6 States
   7 Motion layer (.motion) · 8 Responsive · 9 Reduced motion / static
   The base styles produce a complete static page. `.motion` (added in <head>
   when motion is allowed) layers the cinematic behaviour on top.
   ========================================================================== */

/* 1 · TOKENS ------------------------------------------------------------- */
:root {
  --navy: #080F1F;
  --abyss: #050A15;
  --ocean: #123B59;
  --cyan: #00D9FF;
  --ice: #E7F7FF;
  --mist: #9DBCD0;
  --line: rgba(231, 247, 255, 0.12);
  --line-strong: rgba(231, 247, 255, 0.24);
  --amber: #FFB547;

  --f-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-serif: "STIX Two Text", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --t-mega: clamp(48px, min(15.5vw, 26svh), 300px);
  --t-display: clamp(40px, 6.4vw, 124px);
  --t-section: clamp(38px, 5.2vw, 96px);
  --t-h2: clamp(30px, 3.6vw, 60px);
  --t-h3: clamp(21px, 2vw, 30px);
  --t-lead: clamp(19px, 1.55vw, 25px);
  --t-body: clamp(17px, 1.1vw, 19px);
  --t-ui: 15px;
  --t-small: 13px;

  --margin: clamp(20px, 5vw, 96px);
  --maxw: 1680px;
  --gutter: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 14vw, 220px);
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 2 · BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ice);
  font-family: var(--f-sans);
  font-size: var(--t-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, picture { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--navy); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
sub, sup { font-size: 0.62em; line-height: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 10001;
  padding: 12px 18px; background: var(--ice); color: var(--navy); border-radius: 999px;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

/* 3 · TYPE ---------------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
.readout {
  font-family: var(--f-sans);
  font-stretch: 75%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.eq { font-family: var(--f-serif); font-style: normal; white-space: nowrap; }
.eq i { font-style: italic; }

/* 4 · COMPONENTS ---------------------------------------------------------- */
/* Buttons: ice pill; cyan current sweeps in, label rolls */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; font-stretch: 100%; letter-spacing: 0.005em; white-space: nowrap;
  will-change: transform;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--primary { background: var(--ice); color: var(--navy); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cyan);
  clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease-out);
}
.btn__label { display: block; overflow: hidden; line-height: 1.25; height: 1.25em; }
.btn__text { display: block; position: relative; transition: transform .55s var(--ease-out); }
.btn__text::after { content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%; }
@media (hover: hover) {
  .btn--primary:hover::before { clip-path: inset(0 0 0 0); }
  .btn:hover .btn__text { transform: translateY(-100%); }
}

/* Links: faint rule, ice underline draws on hover */
.link {
  position: relative; display: inline-block;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line-strong), var(--line-strong));
  background-size: 0% 1px, 100% 1px; background-position: 0 100%, 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px; transition: background-size .5s var(--ease-out), color .3s;
}
.link:hover { background-size: 100% 1px, 100% 1px; }
.link:focus-visible { color: var(--cyan); }
.link--lg { font-size: 16px; font-weight: 500; }

/* 5 · SECTIONS ------------------------------------------------------------ */

/* Grain */
.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none;
  background: url("assets/img/grain.png") repeat; background-size: 192px;
  opacity: .11; mix-blend-mode: overlay;
}

/* Cursor (pointer: fine only, enabled by JS) */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0 auto auto 0; z-index: 10000; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--cyan); }
.cursor__ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(231, 247, 255, .45);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor__label { font-size: 12px; font-weight: 600; color: var(--navy); opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--cyan); }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ice); border-color: var(--ice); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot, .cursor.is-hidden .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
/* The project panel sits in the browser's top layer, above the custom cursor: use the native pointer there */
html.is-dialog-open .cursor { display: none; }
.has-cursor .project, .has-cursor .project * { cursor: auto; }
.has-cursor .project a, .has-cursor .project button { cursor: pointer; }

/* Preloader (motion only) */
.preloader { display: none; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--margin);
  transition: transform .6s var(--ease-out), background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(8, 15, 31, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; font-stretch: 100%; }
.nav__logo svg { width: 28px; height: 28px; flex: none; }
.nav__logo svg rect { fill: var(--ice); }
.nav__logo .nav__logo-can { fill: none; stroke: var(--ice); stroke-width: 1.6; }
.nav__logo .nav__logo-fill { fill: var(--cyan); transform-origin: 50% 100%; transform-box: fill-box; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a { position: relative; color: var(--mist); transition: color .3s; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ice); }
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.nav__cv { font-size: 14px; color: var(--mist); }
.nav__cv:hover { color: var(--ice); }

/* State-of-charge indicator */
.soc { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--mist); font-size: 13px; }
.soc__glyph {
  position: relative; width: 26px; height: 13px; border: 1.3px solid var(--mist); border-radius: 3px; padding: 1.5px;
}
.soc__glyph::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 5px; border-radius: 0 1px 1px 0; background: var(--mist); }
.soc__fill { display: block; height: 100%; width: 100%; background: var(--cyan); border-radius: 1px; transform-origin: left; transform: scaleX(var(--soc, 0)); }
.soc__value { min-width: 4ch; }
.soc__tip {
  position: absolute; right: 0; top: calc(100% + 12px); white-space: nowrap; font-size: 12px;
  padding: 8px 12px; background: var(--ocean); color: var(--ice); border-radius: 4px;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.soc:hover .soc__tip, .soc:focus-visible .soc__tip { opacity: 1; transform: none; }
.soc.is-full .soc__glyph { border-color: var(--cyan); box-shadow: 0 0 14px rgba(0, 217, 255, .35); }
.nav__menu { display: none; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; height: 40px; }
.nav__menu-icon { position: relative; width: 22px; height: 10px; }
.nav__menu-icon::before, .nav__menu-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav__menu-icon::before { top: 0; }
.nav__menu-icon::after { top: 8px; }
.nav__menu[aria-expanded="true"] .nav__menu-icon::before { top: 4px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-icon::after { top: 4px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--navy);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 6svh) var(--margin) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a { font-size: clamp(44px, 13vw, 84px); font-weight: 700; font-stretch: 112%; line-height: 1.02; text-transform: uppercase; letter-spacing: -0.01em; }
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* HERO ---------------------------------------------------------------- */
.hero { position: relative; background: var(--abyss); }
.hero__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__poster, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img { width: 100%; height: 100%; object-fit: cover; }
.hero__canvas { opacity: 0; }
.hero__canvas.is-ready { opacity: 1; }
.hero__stage::after { /* legibility pool behind the copy */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 10, 21, .55) 0%, rgba(5, 10, 21, 0) 22%),
    linear-gradient(0deg, rgba(5, 10, 21, .78) 0%, rgba(5, 10, 21, 0) 52%);
}
.hero__content { position: absolute; left: var(--margin); right: var(--margin); bottom: clamp(28px, 6svh, 64px); z-index: 3; }
.hero__name {
  font-size: var(--t-mega); line-height: .82; letter-spacing: -0.025em; text-transform: uppercase;
  font-weight: 800; font-stretch: 125%;
  margin-left: -0.05em;
}
.hero__line { display: block; white-space: nowrap; }
.hero__intro {
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; align-items: end; gap: 20px clamp(24px, 4vw, 64px);
  margin-top: clamp(20px, 3.4svh, 44px);
}
.hero__value { font-family: var(--f-serif); font-size: var(--t-lead); line-height: 1.32; max-width: 28ch; }
.hero__sub { color: var(--mist); max-width: 46ch; font-size: 15px; }
.hero__ctas { display: flex; align-items: center; gap: 28px; }

.hud { position: absolute; z-index: 3; left: var(--margin); top: 40%; width: min(380px, 34vw); }
.hud__item { padding: 4px 0 6px 20px; border-left: 1px solid var(--cyan); }
.hud__title { font-size: clamp(20px, 1.7vw, 26px); font-weight: 600; font-stretch: 100%; line-height: 1.1; }
.hud__meta { margin-top: 8px; color: var(--cyan); font-size: 13px; }
.hud__text { margin-top: 12px; font-family: var(--f-serif); font-size: 17px; line-height: 1.5; color: rgba(231, 247, 255, .86); }
.hud-line, .hud-progress, .hero__readout, .hero__cue { display: none; }

/* DATASHEET ------------------------------------------------------------ */
.datasheet { position: relative; z-index: 2; background: var(--navy); padding: var(--section) 0 clamp(64px, 8vw, 120px); }
.datasheet__sleeve {
  position: relative; margin: 0 var(--margin);
  padding: clamp(20px, 2.4vw, 36px) clamp(20px, 2.6vw, 44px) clamp(28px, 3vw, 48px);
  background: linear-gradient(180deg, #071223 0%, #0E2A42 20%, #14405E 46%, #1E5579 50%, #14405E 54%, #0E2A42 80%, #071223 100%);
  border-top: 1px solid rgba(231, 247, 255, .16); border-bottom: 1px solid rgba(231, 247, 255, .08);
  overflow: hidden;
}
.datasheet__sleeve::before { /* specular line of a cylinder */
  content: ""; position: absolute; left: 0; right: 0; top: 49.5%; height: 1px; background: rgba(231, 247, 255, .18); pointer-events: none;
}
.datasheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(231, 247, 255, .16); }
.datasheet__title { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.datasheet__model { font-size: 13px; color: rgba(231, 247, 255, .72); }
.datasheet__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(24px, 3vw, 44px); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 14px; padding: 0 clamp(14px, 1.6vw, 28px); border-left: 1px solid rgba(231, 247, 255, .16); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-size: clamp(52px, 6.6vw, 124px); line-height: .9; font-stretch: 75%; font-weight: 700; letter-spacing: -0.01em; color: var(--ice); }
.stat__label { font-size: 14px; line-height: 1.45; color: rgba(231, 247, 255, .82); max-width: 26ch; }
.odo { display: inline-flex; overflow: hidden; height: 0.95em; line-height: .95; vertical-align: top; }
.odo__col { display: inline-block; height: .95em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; will-change: transform; }
.odo__strip span { height: .95em; }

.marquee { margin-top: clamp(40px, 5vw, 72px); overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: inline-flex; gap: 0; will-change: transform; }
.marquee__track span {
  display: inline-flex; align-items: center; padding: 0 .9em;
  font-size: clamp(26px, 3.4vw, 56px); font-weight: 600; font-stretch: 112%; color: rgba(231, 247, 255, .2); letter-spacing: -0.01em;
}
.marquee__track span::after { content: ""; width: .18em; height: .18em; margin-left: 1.8em; border-radius: 50%; background: var(--cyan); opacity: .7; }

/* MISSION -------------------------------------------------------------- */
.mission { position: relative; background: var(--navy); overflow: hidden; }
.mission__pin { position: relative; min-height: 100svh; display: flex; align-items: center; padding: var(--section) var(--margin); }
.mission__eq { position: absolute; right: var(--margin); top: 14%; font-size: clamp(26px, 4.6vw, 84px); opacity: .07; pointer-events: none; }
.mission__inner { position: relative; max-width: 1500px; padding-left: clamp(22px, 3vw, 52px); }
.mission__bar { position: absolute; left: 0; top: .5em; bottom: 0; width: 2px; background: var(--line); }
.mission__bar span { display: block; height: 100%; background: var(--cyan); transform-origin: top; transform: scaleY(var(--charge, 1)); box-shadow: 0 0 12px rgba(0, 217, 255, .5); }
.mission__statement { font-size: var(--t-display); line-height: .96; font-weight: 700; font-stretch: 108%; letter-spacing: -0.025em; max-width: 17ch; }
.mission__body { margin-top: clamp(28px, 4vw, 56px); font-family: var(--f-serif); font-size: var(--t-lead); line-height: 1.5; color: rgba(231, 247, 255, .82); max-width: 52ch; }

/* PILLARS -------------------------------------------------------------- */
.pillars { position: relative; background: var(--abyss); }
.pillars__pin { position: relative; padding: var(--section) 0; }
.pillars__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; padding: 0 var(--margin); }
.pillars__title { font-size: var(--t-section); font-weight: 700; font-stretch: 108%; letter-spacing: -0.02em; line-height: .98; max-width: 14ch; }
.pillars__intro { font-family: var(--f-serif); font-style: italic; font-size: 19px; color: var(--mist); max-width: 34ch; }
.pillars__track { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 140px); margin-top: clamp(56px, 7vw, 96px); }
.pillar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center; padding: 0 var(--margin); }
.pillar__visual { position: relative; width: 100%; max-width: min(640px, 64svh); aspect-ratio: 1; justify-self: center; }
.pillar__canvas, .pillar__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.pillar__fallback { object-fit: cover; }
.pillar__canvas { opacity: 0; transition: opacity .6s; }
.pillar__canvas.is-ready { opacity: 1; }
.pillar__canvas.is-ready + .pillar__fallback { opacity: 0; }
.pillar__visual::before { /* hairline crop marks */
  content: ""; position: absolute; inset: -10px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 14px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 100% 100% / 1px 14px no-repeat;
}
.pillar__caption { position: absolute; z-index: 2; left: 16px; right: 16px; top: 14px; font-size: 13px; line-height: 1.4; color: var(--mist); display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; text-shadow: 0 1px 8px #050A15; }
.pillar__caption .readout { color: var(--cyan); font-size: 14px; min-width: 4ch; }
.heat-legend { display: inline-flex; align-items: center; gap: 8px; }
.heat-legend__bar { width: 72px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #123B59, #00D9FF 45%, var(--amber)); }
.pillar__scale { display: flex; align-items: baseline; gap: 14px; font-size: 14px; color: var(--mist); }
.pillar__scale .readout { color: var(--cyan); font-size: 20px; }
.pillar__title { margin-top: 18px; font-size: var(--t-h2); font-weight: 650; font-stretch: 100%; letter-spacing: -0.015em; line-height: 1.02; max-width: 15ch; }
.pillar__lead { margin-top: 20px; font-family: var(--f-serif); font-size: var(--t-lead); line-height: 1.45; color: rgba(231, 247, 255, .86); max-width: 44ch; }
.pillar__list { margin-top: 28px; max-width: 520px; border-top: 1px solid var(--line); }
.pillar__list li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pillar__list li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--cyan); transform: translateY(-2px); }
.pillar__eq { margin-top: 24px; font-size: clamp(20px, 1.8vw, 28px); color: rgba(157, 188, 208, .6); }
.scalebar { display: none; }

/* STORY ---------------------------------------------------------------- */
.story { position: relative; background: var(--navy); padding: var(--section) 0; }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); padding: 0 var(--margin); max-width: calc(var(--maxw) + 2 * var(--margin)); margin: 0 auto; }
.story__aside { position: sticky; top: calc(var(--nav-h) + 4svh); align-self: start; }
.portrait { width: 100%; max-width: min(100%, calc(78svh * .75)); }
.portrait__frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 62%, rgba(18, 59, 89, .95) 0%, rgba(8, 15, 31, 0) 72%); }
.portrait__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait__nat { opacity: 0; transition: opacity .7s var(--ease-out); }
@media (hover: hover) { .portrait:hover .portrait__nat { opacity: 1; } }
.portrait__frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(0deg, var(--navy), rgba(8, 15, 31, 0)); pointer-events: none; }
.portrait__caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mist); }
.portrait__caption span:first-child { color: var(--ice); font-weight: 600; }
.story__title { font-size: var(--t-section); font-weight: 700; font-stretch: 108%; letter-spacing: -0.02em; line-height: .98; }
.story__quote { margin-top: clamp(28px, 3.4vw, 48px); }
.story__quote p { max-width: 24ch; font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.28; }
.timeline { position: relative; margin-top: clamp(56px, 7vw, 104px); padding-left: 56px; }
.timeline__trace { position: absolute; left: 0; top: 0; width: 40px; height: 100%; overflow: visible; }
.timeline__path { fill: none; stroke-width: 1.5; stroke-linejoin: round; }
.timeline__path--base { stroke: var(--line-strong); }
.timeline__path--live { stroke: var(--cyan); filter: drop-shadow(0 0 4px rgba(0, 217, 255, .6)); }
.chapter { position: relative; padding-bottom: clamp(44px, 6svh, 76px); }
.chapter:last-child { padding-bottom: 0; }
.chapter__pad {
  position: absolute; left: -55px; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy); border: 1.5px solid var(--line-strong); transition: border-color .4s, box-shadow .4s;
}
.chapter__pad::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--cyan); transform: scale(0); transition: transform .45s var(--ease-out); }
.chapter.is-lit .chapter__pad { border-color: var(--cyan); box-shadow: 0 0 16px rgba(0, 217, 255, .45); }
.chapter.is-lit .chapter__pad::after { transform: scale(1); }
.chapter__meta { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--mist); }
.chapter__meta .readout { color: var(--cyan); font-size: 14px; }
.chapter__title { margin-top: 10px; font-size: clamp(24px, 2.3vw, 36px); font-weight: 650; letter-spacing: -0.01em; }
.chapter__text { margin-top: 14px; font-family: var(--f-serif); font-size: var(--t-body); line-height: 1.62; color: rgba(231, 247, 255, .82); max-width: 60ch; }
.principles { margin-top: clamp(80px, 10vw, 140px); }
.principles__title { font-size: var(--t-h3); font-weight: 600; }
.principles__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin-top: 24px; }
.principles__grid li { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.principles__grid h4 { font-size: 18px; font-weight: 600; }
.principles__grid p { margin-top: 8px; font-family: var(--f-serif); font-size: 17px; line-height: 1.5; color: var(--mist); }

/* TOOLKIT -------------------------------------------------------------- */
.toolkit { position: relative; background: var(--navy); padding: 0 var(--margin) var(--section); max-width: calc(var(--maxw) + 2 * var(--margin)); margin: 0 auto; }
.toolkit__title { font-size: var(--t-section); font-weight: 700; font-stretch: 108%; letter-spacing: -0.02em; line-height: .98; padding-top: clamp(40px, 5vw, 80px); border-top: 1px solid var(--line); }
.toolkit__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); margin-top: clamp(48px, 6vw, 88px); }
.toolkit__sub { font-size: 15px; font-weight: 600; color: var(--mist); margin-bottom: 18px; }
.toolkit__sub:not(:first-child) { margin-top: clamp(40px, 5vw, 64px); }
.elements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.element {
  position: relative; display: flex; flex-direction: column; min-height: clamp(150px, 13vw, 200px);
  padding: 14px 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: rgba(18, 59, 89, .18);
  transition: transform .45s var(--ease-out), border-color .35s, background-color .35s;
}
.element__sym { font-size: clamp(40px, 4vw, 64px); font-weight: 700; font-stretch: 100%; line-height: 1; letter-spacing: -0.02em; }
.element--sim .element__sym { color: var(--cyan); }
.element__name { margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.25; }
.element__use { margin-top: auto; padding-top: 10px; font-size: 12.5px; line-height: 1.4; color: var(--mist); }
@media (hover: hover) {
  .element:hover { transform: translateY(-4px); border-color: var(--cyan); background: rgba(18, 59, 89, .38); }
}
.elements__legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--mist); }
.elements__key { width: 10px; height: 10px; border-radius: 2px; }
.elements__key--sim { background: var(--cyan); }
.elements__key--code { background: var(--ice); margin-left: 12px; }
.elements__note { margin-top: 10px; font-family: var(--f-serif); font-style: italic; font-size: 15px; line-height: 1.5; color: var(--mist); max-width: 62ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; }
.roles { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.role__title { font-weight: 600; font-size: 16px; }
.role__org { grid-column: 1; color: var(--mist); font-size: 14px; line-height: 1.4; }
.role__when { grid-column: 2; grid-row: 1; color: var(--mist); font-size: 13px; }
.langs { display: grid; gap: 14px; }
.lang { display: grid; grid-template-columns: 9ch 64px auto; align-items: center; gap: 16px; font-size: 15px; }
.lang__name { font-weight: 600; }
.lang__glyph { position: relative; height: 18px; border: 1.3px solid var(--mist); border-radius: 3px; padding: 2px; }
.lang__glyph::after { content: ""; position: absolute; right: -5px; top: 5px; width: 3px; height: 6px; border-radius: 0 1px 1px 0; background: var(--mist); }
.lang__glyph span { display: block; height: 100%; background: var(--cyan); border-radius: 1px; transform-origin: left; transform: scaleX(var(--level)); }
.lang__level { color: var(--mist); font-size: 14px; }
.lang--charging .lang__glyph span { animation: charging 1.8s ease-in-out infinite; }
@keyframes charging { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* WORK ----------------------------------------------------------------- */
.work { position: relative; background: var(--navy); padding: 0 var(--margin) var(--section); max-width: calc(var(--maxw) + 2 * var(--margin)); margin: 0 auto; }
.work__title { font-size: var(--t-section); font-weight: 700; font-stretch: 108%; letter-spacing: -0.02em; line-height: .98; padding-top: clamp(40px, 5vw, 80px); border-top: 1px solid var(--line); max-width: 16ch; }
.work__list { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-strong); }
.work-row { position: relative; border-bottom: 1px solid var(--line-strong); }
.work-row__btn {
  display: grid; grid-template-columns: 9ch minmax(0, 1fr) minmax(0, 15rem) minmax(0, 11rem); gap: 12px clamp(16px, 2vw, 32px);
  align-items: baseline; width: 100%; padding: clamp(22px, 2.4vw, 38px) 0; text-align: left;
}
.work-row__year { font-size: 15px; color: var(--mist); transition: color .3s; }
.work-row__title { font-size: clamp(20px, 2vw, 32px); font-weight: 560; font-stretch: 100%; line-height: 1.15; letter-spacing: -0.01em; transition: transform .6s var(--ease-out), color .3s; }
.work-row__context, .work-row__tag { font-size: 14px; color: var(--mist); line-height: 1.4; }
.work-row__tag { text-align: right; }
@media (hover: hover) {
  .work-row__btn:hover .work-row__title { transform: translateX(12px); }
  .work-row__btn:hover .work-row__year { color: var(--cyan); }
}
.work-row__thumb { display: none; }
.work-row__detail { padding: 0 0 28px; max-width: 70ch; font-family: var(--f-serif); font-size: 17px; line-height: 1.55; color: rgba(231, 247, 255, .82); }
.work-row__detail p + p { margin-top: 10px; }
.js .work-row__detail { display: none; }
.detail__meta { font-family: var(--f-sans); font-size: 13px; color: var(--cyan); }
.detail__doi { display: block; margin-top: 6px; font-size: 13px; color: var(--mist); }
.work__preview { display: none; }

.project {
  position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(720px, 100vw); height: 100dvh; max-height: none; max-width: none;
  padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--navy); color: var(--ice); overflow: auto;
  overscroll-behavior: contain;
}
.project::backdrop { background: rgba(5, 10, 21, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.project__inner { position: relative; min-height: 100%; }
.project__close {
  position: fixed; right: 20px; top: 20px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(8, 15, 31, .7); border: 1px solid var(--line-strong); display: grid; place-items: center;
  transition: border-color .3s, transform .5s var(--ease-out);
}
.project__close span { position: relative; width: 18px; height: 18px; }
.project__close span::before, .project__close span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ice); }
.project__close span::before { transform: rotate(45deg); }
.project__close span::after { transform: rotate(-45deg); }
.project__close:hover { border-color: var(--cyan); transform: rotate(90deg); }
.project__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--abyss); }
.project__body { padding: clamp(24px, 4vw, 48px); }
.project__title { font-size: clamp(26px, 2.6vw, 40px); font-weight: 650; letter-spacing: -0.015em; line-height: 1.08; }
.project__content { margin-top: 20px; font-family: var(--f-serif); font-size: 18px; line-height: 1.6; color: rgba(231, 247, 255, .86); }
.project__content p + p { margin-top: 12px; }
.project__content .detail__meta { margin-bottom: 18px; font-size: 14px; }

/* CTA ------------------------------------------------------------------ */
.cta { position: relative; background: var(--abyss); padding: var(--section) 0; overflow: hidden; }
.cta__field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta__inner { position: relative; z-index: 1; padding: 0 var(--margin); max-width: calc(var(--maxw) + 2 * var(--margin)); margin: 0 auto; }
.cta__lead { font-size: 15px; font-weight: 600; color: var(--cyan); display: inline-flex; align-items: center; gap: 10px; }
.cta__lead::before { content: ""; width: 22px; height: 11px; border: 1.3px solid var(--cyan); border-radius: 2px; background: linear-gradient(var(--cyan), var(--cyan)) 1.5px 1.5px / calc(100% - 3px) calc(100% - 3px) no-repeat; }
.cta__title {
  margin-top: 18px; font-size: var(--t-mega); line-height: .84; letter-spacing: -0.025em; text-transform: uppercase;
  font-weight: 800; font-stretch: 125%; margin-left: -0.05em;
}
.cta__line { display: block; white-space: nowrap; }
.cta__sub { margin-top: clamp(28px, 3.4vw, 48px); font-family: var(--f-serif); font-size: var(--t-lead); line-height: 1.45; max-width: 50ch; color: rgba(231, 247, 255, .86); }
.contact { margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-strong); }
.contact__row { display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; padding: clamp(14px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--line-strong); }
.contact__label { font-size: 14px; color: var(--mist); }
.contact__main {
  justify-self: start; display: inline-flex; align-items: baseline; gap: 16px; text-align: left; min-height: 44px; align-items: center;
  font-size: clamp(20px, 2.4vw, 38px); font-weight: 560; font-stretch: 100%; letter-spacing: -0.01em; line-height: 1.15;
  transition: color .3s, transform .6s var(--ease-out); overflow-wrap: anywhere;
}
@media (hover: hover) { .contact__main:hover { color: var(--cyan); transform: translateX(10px); } }
.contact__state { font-size: 13px; font-weight: 600; color: var(--cyan); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.contact__main:hover .contact__state, .contact__main:focus-visible .contact__state, .contact__main.is-copied .contact__state { opacity: 1; }
.contact__aside { font-size: 14px; color: var(--mist); justify-self: end; }
.contact__note { color: rgba(157, 188, 208, .7); }
.contact__address { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.composer { margin-top: 32px; padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(8, 15, 31, .6); }
.composer[hidden] { display: none; }
.composer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field--topics, .field--wide { grid-column: 1 / -1; }
.field--topics { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.field--topics legend { width: 100%; margin-bottom: 8px; }
.field__label { font-size: 13px; color: var(--mist); }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 10px 0; font-size: 18px; color: var(--ice); outline: none; transition: border-color .3s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--cyan); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #FF8A8A; }
.field__error { min-height: 1.2em; font-size: 13px; color: #FFB4B4; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; transition: background-color .3s, color .3s, border-color .3s; }
.chip input:checked + span { background: var(--ice); color: var(--navy); border-color: var(--ice); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.composer__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.composer__hint { font-size: 13px; color: var(--mist); max-width: 46ch; }

/* FOOTER --------------------------------------------------------------- */
.footer { position: relative; background: var(--abyss); padding: clamp(64px, 8vw, 120px) var(--margin) 24px; overflow: hidden; border-top: 1px solid var(--line); }
.footer__top, .footer__mid { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer__nav, .footer__social { display: flex; gap: 12px 28px; flex-wrap: wrap; font-size: 15px; }
.footer__mid { margin-top: 32px; font-size: 14px; color: var(--mist); }
.footer__top-link { color: var(--ice); margin-left: auto; }
.footer__wordmark {
  margin: clamp(48px, 7vw, 120px) 0 0 -0.04em; font-size: clamp(40px, 7.7vw, 180px); line-height: .8; letter-spacing: -0.025em;
  font-weight: 800; font-stretch: 125%; text-transform: uppercase; white-space: nowrap; color: var(--ice);
}
.footer__wordmark span { display: block; }
.footer__legal { margin-top: 28px; font-size: 13px; color: var(--mist); }

/* 7 · MOTION LAYER ------------------------------------------------------- */
.motion .grain { animation: grain .9s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-3%, 2%); } 33% { transform: translate(2%, -4%); }
  50% { transform: translate(-4%, -1%); } 67% { transform: translate(3%, 3%); } 83% { transform: translate(-1%, 4%); } 100% { transform: translate(1%, -2%); }
}
.motion .preloader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 9500; background: var(--abyss);
  clip-path: inset(0 0 0 0);
}
.motion.is-loaded .preloader { pointer-events: none; }
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader__cell { position: relative; width: 44px; display: grid; justify-items: center; }
.preloader__cap { width: 16px; height: 5px; border-radius: 1.5px 1.5px 0 0; background: var(--ice); }
.preloader__body { position: relative; width: 44px; height: 84px; border: 1.5px solid var(--ice); border-radius: 7px; padding: 4px; }
.preloader__fill { display: block; width: 100%; height: 100%; border-radius: 3px; background: var(--cyan); transform-origin: bottom; transform: scaleY(var(--load, 0)); box-shadow: 0 0 22px rgba(0, 217, 255, .45); }
.preloader__count { font-size: 15px; color: var(--ice); min-width: 5ch; text-align: center; }
.preloader__label { font-size: 13px; color: var(--mist); margin-top: -12px; }
.motion:not(.is-loaded) { overflow: hidden; }

/* Hero, motion */
.motion .hero__name { font-variation-settings: "wdth" var(--wdth, 125), "wght" var(--wght, 800); }
.motion .hero__name .char { display: inline-block; font-variation-settings: "wdth" var(--cw, var(--wdth, 125)), "wght" var(--cg, var(--wght, 800)); }
.motion .hud { top: 38%; }
.motion .hud__item {
  position: absolute; left: 0; top: 0; width: 100%; opacity: 0; visibility: hidden;
  padding: 16px 20px 18px; background: linear-gradient(90deg, rgba(5, 10, 21, .84), rgba(5, 10, 21, .45));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.motion .hud-line { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; opacity: 0; }
.hud-line line { stroke: var(--cyan); stroke-width: 1; stroke-opacity: .65; }
.hud-line circle { fill: none; stroke: var(--cyan); stroke-width: 1; }
.hud-line .hud-line__dot { fill: var(--cyan); stroke: none; }
.motion .hud-progress { display: flex; flex-direction: column; gap: 8px; position: absolute; z-index: 3; right: var(--margin); top: 50%; transform: translateY(-50%); }
.hud-progress span { width: 2px; height: 22px; background: var(--line-strong); transition: background-color .3s, box-shadow .3s; }
.hud-progress span.is-active { background: var(--cyan); box-shadow: 0 0 10px rgba(0, 217, 255, .6); }
.motion .hero__readout { display: flex; gap: 10px; align-items: baseline; position: absolute; z-index: 3; right: var(--margin); top: calc(var(--nav-h) + 20px); font-size: 13px; color: var(--mist); opacity: 0; }
.hero__readout .readout { color: var(--ice); font-size: 15px; min-width: 7ch; text-align: right; }
.motion .hero__cue { display: flex; align-items: center; gap: 14px; position: absolute; z-index: 3; right: calc(var(--margin) - 4px); top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 13px; color: var(--mist); }
.hero__cue-line { position: relative; width: 1px; height: 64px; background: var(--line-strong); overflow: hidden; }
.hero__cue-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--cyan); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(260%); } 100% { transform: translateY(-110%); } }

/* Mission, motion */
.motion .mission__statement .word { display: inline-block; opacity: .16; will-change: opacity; }
.motion .mission__bar span { transform: scaleY(0); }

/* Line-mask reveals */
.motion [data-reveal] .rl { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.motion [data-reveal] .rl > span { display: block; }

/* Pillars horizontal (desktop) */
@media (min-width: 1024px) and (min-height: 600px) {
  .motion .pillars__pin { height: 100svh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
  .motion .pillars__head { padding-top: calc(var(--nav-h) + 2svh); align-items: baseline; }
  .motion .pillars__title { font-size: clamp(30px, 3.2vw, 54px); max-width: none; }
  .motion .pillars__intro { font-size: 17px; }
  .motion .pillars__track { flex: 1; flex-direction: row; gap: 0; width: max-content; margin-top: 0; align-items: center; will-change: transform; }
  .motion .pillar { width: 100vw; padding-bottom: 10svh; }
  .motion .pillar__visual { max-width: min(560px, 50svh); }
  .motion .pillar__title { margin-top: 12px; font-size: clamp(28px, 2.7vw, 46px); max-width: 22ch; }
  .motion .pillar__lead { margin-top: 14px; font-size: clamp(17px, 1.3vw, 21px); }
  .motion .pillar__list { margin-top: 18px; }
  .motion .pillar__list li { padding: 7px 0; font-size: 14px; }
  .motion .pillar__eq { margin-top: 14px; font-size: 20px; }
  .motion .scalebar {
    display: flex; align-items: center; gap: 18px; position: absolute; left: var(--margin); right: var(--margin); bottom: 4svh;
    font-size: 13px; color: var(--mist);
  }
  .scalebar__rail { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
  .scalebar__fill { position: absolute; inset: 0; background: var(--cyan); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .scalebar__ticks { position: absolute; left: 0; right: 0; top: -4px; height: 9px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px calc(100% / 12)); -webkit-mask-image: linear-gradient(90deg, #000, #000); }
  .scalebar__marker { position: absolute; top: -5px; left: calc(var(--p, 0) * 100%); width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px rgba(0, 217, 255, .7); }
  .scalebar__now { position: absolute; bottom: 16px; left: calc(var(--p, 0) * (100% - 0px)); transform: translateX(-50%); color: var(--ice); font-size: 15px; white-space: nowrap; pointer-events: none; }
  .scalebar__end { flex: none; }
}

/* Work preview follows the cursor (desktop) */
.has-cursor .work__preview {
  display: block; position: fixed; left: 0; top: 0; z-index: 50; width: clamp(280px, 24vw, 420px); aspect-ratio: 3 / 2;
  pointer-events: none; overflow: hidden; border-radius: 4px; opacity: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); border: 1px solid var(--line-strong);
}
.work__preview img { width: 100%; height: 100%; object-fit: cover; }

/* CTA proximity type */
.motion .cta__title .char { display: inline-block; font-variation-settings: "wdth" var(--cw, 112), "wght" var(--cg, 760); transition: font-variation-settings .25s linear; }

/* 8 · RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1180px) {
  .datasheet__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 0; }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .work-row__btn { grid-template-columns: 8ch minmax(0, 1fr) minmax(0, 12rem); }
  .work-row__tag { display: none; }
}
@media (max-width: 1023px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cv, .nav__actions > .btn { display: none; }
  .nav__menu { display: inline-flex; }
  .hud { width: min(420px, 60vw); }
  .pillar { grid-template-columns: 1fr; }
  .pillar__visual { max-width: 560px; justify-self: start; margin-bottom: 40px; }
  .story__grid { grid-template-columns: 1fr; }
  .story__aside { position: relative; top: 0; }
  .portrait { max-width: 420px; }
  .toolkit__grid { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 7rem minmax(0, 1fr); }
  .contact__aside { grid-column: 2; justify-self: start; }
}
@media (max-width: 1180px) {
  .hero__intro { grid-template-columns: minmax(0, 1fr) auto; }
  .hero__sub { grid-column: 1; grid-row: 2; }
  .hero__ctas { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 767px) {
  .hero__intro { grid-template-columns: 1fr; gap: 16px; }
  .hero__sub, .hero__ctas { grid-column: 1; grid-row: auto; }
  .hero__ctas { margin-top: 6px; }
  .hero__sub { font-size: 14px; }
  .hero__ctas { gap: 22px; }
  .motion .hud { left: var(--margin); right: var(--margin); top: auto; bottom: 28px; width: auto; }
  .motion .hud__item { top: auto; bottom: 0; background: rgba(5, 10, 21, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 14px 16px 16px 18px; }
  .hud__text { font-size: 16px; }
  .motion .hud-progress { right: 12px; }
  .motion .hero__cue { display: none; }
  .motion .hero__readout { top: calc(var(--nav-h) + 8px); }
  .datasheet__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 0 0 0 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(4) { border-left: 1px solid rgba(231, 247, 255, .16); padding-left: 16px; }
  .stat:last-child { grid-column: 1 / -1; }
  .stat__label { font-size: 13px; }
  .mission__eq { top: 6%; }
  .elements { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principles__grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 44px; }
  .chapter__pad { left: -43px; }
  .work-row__btn { grid-template-columns: 1fr; gap: 6px; padding-bottom: 14px; }
  .work-row__context { order: 3; }
  .work-row__thumb { display: block; width: 100%; max-width: 440px; aspect-ratio: 3 / 2; object-fit: cover; margin: 6px 0 24px; border-radius: 4px; }
  .contact__row { grid-template-columns: 1fr; gap: 2px; }
  .contact__main { font-size: clamp(18px, 5.2vw, 26px); }
  .contact__aside { grid-column: 1; }
  .composer__grid { grid-template-columns: 1fr; }
  .footer__wordmark { font-size: 11.4vw; white-space: normal; }
  .lang { grid-template-columns: 8ch 56px auto; }
}
@media (max-width: 420px) {
  .elements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__ctas { flex-wrap: wrap; }
}
@media (max-height: 700px) and (min-width: 768px) {
  .hud__text { font-size: 15px; }
  .motion .hud { top: 30%; }
  .hero__sub { display: none; }
}
@media (min-width: 2200px) {
  .hero__content, .hud { left: calc((100vw - var(--maxw)) / 2); }
  .hero__content { right: calc((100vw - var(--maxw)) / 2); }
}

/* 9 · REDUCED MOTION / STATIC ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Static hero: list the four callouts under the intro instead of over the sequence */
html:not(.motion) .hero__stage { height: auto; min-height: 100svh; padding-bottom: 0; }
html:not(.motion) .hero__content { position: relative; left: auto; right: auto; bottom: auto; padding: calc(var(--nav-h) + 38svh) var(--margin) 48px; }
html:not(.motion) .hud {
  position: relative; left: auto; top: auto; width: auto; z-index: 3;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 0 var(--margin) 72px;
}
@media (max-width: 1023px) { html:not(.motion) .hud { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { html:not(.motion) .hud { grid-template-columns: 1fr; } }
html:not(.motion) .hero__poster { position: absolute; inset: 0; height: 100svh; }
html:not(.motion) .hero__poster img { height: 100svh; }
html:not(.motion) .hero__stage::after { height: 100svh; }
