/* ============================================================
   CUBIQ — El frío, computado.
   Token system adapted from the ORYZO teardown (fluid --screen-unit,
   16-col grid, single 768px breakpoint) with the CUBIQ ice palette.
   ============================================================ */

@font-face {
  font-family: "Hanken";
  src: url("../fonts/hankengrotesk.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dmmono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* ---- Palette: glacial ---- */
  --white: #e8f4ff;
  --black: #04080d;
  --panel: #0a1620;
  --panel-2: #0d1f2b;
  --silver: #c8d4dc;
  --muted: #6d8496;
  --blue: #7ab8d9;
  --accent: #00e0ff;
  --pale: #dbe9f2;
  --pale-ink: #06121b;

  /* ---- Type ---- */
  --display: "Hanken", system-ui, sans-serif;
  --text: "Hanken", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;

  /* ---- Fluid unit: min(width-based, height-based) ---- */
  --vh: 1vh;
  --site-padding-x: 3.125vw;
  --inner-width: calc(100vw - var(--site-padding-x) * 2);
  --screen-unit: min(var(--inner-width) / 1800, calc(var(--vh) * 100) / 1024 * 1.25);

  --h1: calc(164 * var(--screen-unit));
  --h2: calc(68 * var(--screen-unit));
  --h3: calc(45 * var(--screen-unit));
  --h4: calc(32 * var(--screen-unit));
  --h5: calc(20 * var(--screen-unit));
  --body1: calc(38 * var(--screen-unit));
  --body2: calc(24 * var(--screen-unit));
  --body3: calc(18 * var(--screen-unit));
  --sub1: calc(24 * var(--screen-unit));
  --sub2: calc(16 * var(--screen-unit));
  --quote: calc(30 * var(--screen-unit));
  --btn: calc(16 * var(--screen-unit));

  --grid-columns: 16;
  --gap: calc(20 * var(--screen-unit));
  --section-y: calc(160 * var(--screen-unit));
}

@media (max-width: 767.98px) {
  :root {
    --site-padding-x: 4.267vw;
    --screen-unit: min(var(--inner-width) / 343, calc(var(--vh) * 100) / 844 * 1.1);
    /* 62, not the reference's 96: "computado." is a longer word than ORYZO's and
       overflows 390px at 96. */
    --h1: calc(62 * var(--screen-unit));
    --h2: calc(38 * var(--screen-unit));
    --h3: calc(26 * var(--screen-unit));
    --h4: calc(16 * var(--screen-unit));
    --h5: calc(14 * var(--screen-unit));
    --body1: calc(18 * var(--screen-unit));
    --body2: calc(16 * var(--screen-unit));
    --body3: calc(14 * var(--screen-unit));
    --sub1: calc(16 * var(--screen-unit));
    --sub2: calc(12 * var(--screen-unit));
    --quote: calc(28 * var(--screen-unit));
    --btn: calc(12 * var(--screen-unit));
    --grid-columns: 4;
    --section-y: calc(90 * var(--screen-unit));
  }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--text);
  font-size: var(--body2);
  line-height: 1.45;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; height: 100vh; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--black); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 0.95; letter-spacing: -0.02em; }

/* ---- Layout helpers ---- */
.wrap { padding-inline: var(--site-padding-x); }
.section { position: relative; padding-block: var(--section-y); }
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--gap);
}
.eyebrow {
  font-family: var(--mono);
  font-size: var(--sub2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.rule { height: 1px; background: rgba(200, 212, 220, 0.16); border: 0; }

/* ============================================================
   0 · Preloader
   ============================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--black);
  display: grid; place-items: center;
}
#preloader-canvas { width: min(70vw, 620px); height: calc(180 * var(--screen-unit)); }
#preloader.is-done { pointer-events: none; }

/* ============================================================
   1 · Global grain canvas
   ============================================================ */
#canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
}
#page { position: relative; z-index: 1; }

/* ============================================================
   Persistent chrome — pill nav, mobile menu, scroll indicator
   ============================================================ */
#header {
  position: fixed; top: calc(20 * var(--screen-unit)); left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--site-padding-x);
  pointer-events: none;
}
#header > * { pointer-events: auto; }
/* Chip keeps the wordmark legible over the pale paper/sustainability sections too. */
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(22 * var(--screen-unit));
  letter-spacing: 0.14em;
  background: rgba(10, 22, 32, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(122, 184, 217, 0.22);
  border-radius: 999px;
  padding: calc(10 * var(--screen-unit)) calc(20 * var(--screen-unit));
  color: var(--white);
}
.brand span { color: var(--accent); }
.pill-nav {
  display: flex; align-items: center; gap: calc(26 * var(--screen-unit));
  background: rgba(10, 22, 32, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(122, 184, 217, 0.22);
  border-radius: 999px;
  padding: calc(10 * var(--screen-unit)) calc(26 * var(--screen-unit));
}
.pill-nav a { font-size: var(--btn); letter-spacing: 0.1em; text-transform: uppercase; }
.nav-cta {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: calc(11 * var(--screen-unit)) calc(24 * var(--screen-unit));
  font-size: var(--btn); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 224, 255, 0.06);
}
.menu-btn { display: none; }

@media (max-width: 767.98px) {
  .pill-nav, .nav-cta { display: none; }
  .menu-btn {
    display: block;
    border: 1px solid rgba(122, 184, 217, 0.35);
    border-radius: 999px;
    padding: calc(9 * var(--screen-unit)) calc(18 * var(--screen-unit));
    font-size: var(--btn); text-transform: uppercase; letter-spacing: 0.1em;
    background: rgba(10, 22, 32, 0.7);
  }
}

#mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--black);
  display: none;
  flex-direction: column; justify-content: center; gap: calc(18 * var(--screen-unit));
  padding: var(--site-padding-x);
}
#mobile-menu.is-open { display: flex; }
#mobile-menu a { font-family: var(--display); font-size: var(--h3); }
#mobile-menu .close {
  position: absolute; top: calc(24 * var(--screen-unit)); right: var(--site-padding-x);
  font-size: var(--h4);
}

#scroll-indicator {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  height: 2px; background: rgba(200, 212, 220, 0.12);
}
#scroll-indicator__bar-inner {
  height: 100%; width: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px 3px rgba(0, 224, 255, 0.45);
}
#scroll-indicator__dot {
  position: absolute; top: 50%; left: 0;
  width: calc(9 * var(--screen-unit)); height: calc(9 * var(--screen-unit));
  min-width: 6px; min-height: 6px;
  border-radius: 50%; background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 1em var(--accent);
}

/* ---- Letter flipper (.is-flipper) ----
   The mask is the char itself; the inner span is what translates, carrying its
   clone up from below. Masking on the button instead would let the clone show
   inside the button's padding. */
.is-flipper .flip-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
}
.is-flipper .flip-inner {
  display: inline-block;
  position: relative;
  will-change: transform;
}
.is-flipper .flip-clone {
  position: absolute; left: 0; top: 100%;
  display: block;
}

/* ---- Split reveal masks ---- */
.split-line { overflow: hidden; }

/* ============================================================
   2 · Hero
   ============================================================ */
#hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: calc(60 * var(--screen-unit)); }
.hero-tagline {
  font-family: var(--mono); font-size: var(--sub2);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue);
  margin-bottom: calc(24 * var(--screen-unit));
}
.hero-title {
  font-size: var(--h1);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.86;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap);
  margin-top: calc(46 * var(--screen-unit));
}
.hero-lede { max-width: calc(560 * var(--screen-unit)); font-size: var(--body2); color: var(--silver); }
.hero-cards { display: flex; align-items: flex-end; gap: calc(20 * var(--screen-unit)); }
.cred-card {
  background: rgba(13, 31, 43, 0.72);
  border: 1px solid rgba(122, 184, 217, 0.2);
  border-radius: calc(14 * var(--screen-unit));
  padding: calc(20 * var(--screen-unit));
  width: calc(300 * var(--screen-unit));
  min-width: 200px;
}
.cred-card__head {
  display: flex; align-items: center; gap: calc(9 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--sub2);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue);
  margin-bottom: calc(12 * var(--screen-unit));
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: dot-blink 2.4s ease-in-out infinite;
}
@keyframes dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.cred-card p { font-size: var(--body3); color: var(--silver); }
.video-thumb {
  position: relative; width: calc(300 * var(--screen-unit)); min-width: 180px;
  border-radius: calc(14 * var(--screen-unit)); overflow: hidden;
  border: 1px solid rgba(122, 184, 217, 0.2);
  cursor: pointer;
}
.video-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.video-thumb__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: var(--sub2); letter-spacing: 0.14em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(4, 8, 13, 0.75), rgba(4, 8, 13, 0.05));
}
#hero-media {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
}
#hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
#hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--black) 6%, rgba(4, 8, 13, 0.35) 55%, var(--black) 100%);
}

@media (max-width: 767.98px) {
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .hero-cards { flex-direction: column; align-items: stretch; }
  .cred-card, .video-thumb { width: 100%; }
}

/* ============================================================
   3 · AI pitch
   ============================================================ */
#ai { text-align: center; }
.ai-title { font-size: var(--h1); line-height: 0.9; }
.ai-title sup { font-size: 0.3em; color: var(--accent); vertical-align: super; }
.ai-instruction {
  display: inline-flex; align-items: center; gap: calc(10 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--sub2); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-top: calc(32 * var(--screen-unit));
}
.ai-hand { width: calc(22 * var(--screen-unit)); min-width: 16px; fill: var(--accent); }
.ai-footnote {
  margin-top: calc(70 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--body3); color: var(--muted);
}
.ai-reveal {
  display: block; margin: calc(30 * var(--screen-unit)) auto 0;
  max-width: calc(640 * var(--screen-unit));
  font-size: var(--body2); color: var(--silver);
}

/* ============================================================
   4 · Gallery (scroll-scrubbed horizontal)
   ============================================================ */
#gallery { padding: 0; }
#gallery-pin { height: 100svh; overflow: hidden; position: relative; display: flex; align-items: center; }
#gallery-track { display: flex; align-items: center; will-change: transform; }
/* Height-driven so the stage fills the pinned viewport; width follows the ratio. */
.g-item {
  position: relative;
  flex: 0 0 auto;
  height: min(70svh, 660px);
  margin-inline: calc(28 * var(--screen-unit));
  border-radius: calc(16 * var(--screen-unit));
  overflow: hidden;
  border: 1px solid rgba(122, 184, 217, 0.16);
}
.g-item img, .g-item video { height: 100%; width: auto; aspect-ratio: 4/3; object-fit: cover; }
.g-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: calc(20 * var(--screen-unit));
  background: linear-gradient(to top, rgba(4, 8, 13, 0.9), transparent);
  font-family: var(--mono); font-size: var(--sub2);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.g-item__idx { color: var(--accent); margin-right: 0.8em; }

/* overlay: warning (yoga) */
.g-warning {
  position: absolute; top: calc(20 * var(--screen-unit)); left: calc(20 * var(--screen-unit));
  right: calc(20 * var(--screen-unit));
  border: 1px solid var(--accent);
  background: rgba(4, 8, 13, 0.72);
  padding: calc(12 * var(--screen-unit)) calc(16 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--sub2); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
}
/* overlay: fake chat (swim) */
.g-chat {
  position: absolute; left: calc(24 * var(--screen-unit)); bottom: calc(90 * var(--screen-unit));
  width: calc(420 * var(--screen-unit)); min-width: 210px;
  background: rgba(10, 22, 32, 0.9);
  border: 1px solid rgba(122, 184, 217, 0.28);
  border-radius: calc(14 * var(--screen-unit));
  padding: calc(16 * var(--screen-unit));
  font-size: var(--body3);
}
.g-chat__row { display: flex; gap: calc(10 * var(--screen-unit)); margin-bottom: calc(10 * var(--screen-unit)); }
.g-chat__who { font-family: var(--mono); font-size: var(--sub2); color: var(--accent); min-width: 5.5em; text-transform: uppercase; }
.g-chat__row:last-child { margin-bottom: 0; }
.g-chat__row.is-bot .g-chat__who { color: var(--blue); }

/* magazine finale */
.g-item--mag img { aspect-ratio: 3/4; }
.mag-overlay { position: absolute; inset: 0; padding: calc(28 * var(--screen-unit)); display: flex; flex-direction: column; justify-content: space-between; }
.mag-masthead {
  font-family: var(--display); font-weight: 700;
  font-size: calc(96 * var(--screen-unit));
  letter-spacing: 0.02em; line-height: 0.8;
  text-align: center; color: var(--white);
  mix-blend-mode: difference;
}
.mag-lines { display: flex; flex-direction: column; gap: calc(8 * var(--screen-unit)); }
.mag-line { font-family: var(--display); font-size: var(--h4); text-transform: uppercase; letter-spacing: 0.01em; }
.mag-line em { font-style: normal; color: var(--accent); }
.mag-foot { display: flex; align-items: flex-end; justify-content: space-between; font-family: var(--mono); font-size: var(--sub2); }
.mag-barcode { display: flex; gap: 2px; align-items: flex-end; height: calc(34 * var(--screen-unit)); }
.mag-barcode i { display: block; width: 2px; background: var(--white); height: 100%; }

/* rails */
.g-rail {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  display: flex; flex-direction: column; gap: calc(10 * var(--screen-unit));
  pointer-events: none;
  /* backdrop so the rail reads as chrome over the full-bleed stage, not stray thumbnails */
  padding: calc(10 * var(--screen-unit));
  border-radius: calc(10 * var(--screen-unit));
  background: rgba(4, 8, 13, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(122, 184, 217, 0.14);
}
.g-rail--l { left: calc(18 * var(--screen-unit)); }
.g-rail--r { right: calc(18 * var(--screen-unit)); }
.g-rail img {
  width: calc(56 * var(--screen-unit)); min-width: 34px;
  aspect-ratio: 1; object-fit: cover;
  border-radius: calc(6 * var(--screen-unit));
  opacity: 0.28;
  border: 1px solid transparent;
  transition: opacity 0.35s ease, border-color 0.35s ease;
}
.g-rail img.is-active { opacity: 1; border-color: var(--accent); }
.g-progress {
  position: absolute; bottom: calc(28 * var(--screen-unit)); left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: var(--sub2); letter-spacing: 0.16em; z-index: 5;
}
.g-progress b { color: var(--accent); font-weight: 400; }

@media (max-width: 767.98px) {
  /* Width-driven on mobile: height-driven 4:3 items end up wider than the viewport. */
  .g-item { height: auto; width: 86vw; margin-inline: calc(12 * var(--screen-unit)); }
  .g-item img, .g-item video { width: 100%; height: auto; }
  .g-rail { display: none; }
  .g-chat { width: 70%; bottom: calc(70 * var(--screen-unit)); }
  .mag-masthead { font-size: calc(46 * var(--screen-unit)); }
}

/* ============================================================
   5 · Features
   ============================================================ */
.section-head { margin-bottom: calc(60 * var(--screen-unit)); }
.section-head h2 { font-size: var(--h2); margin-top: calc(14 * var(--screen-unit)); max-width: 18ch; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.feature-card {
  border: 1px solid rgba(122, 184, 217, 0.18);
  border-radius: calc(16 * var(--screen-unit));
  padding: calc(28 * var(--screen-unit));
  background: linear-gradient(160deg, rgba(13, 31, 43, 0.7), rgba(4, 8, 13, 0.2));
}
.feature-card h3 { font-size: var(--h4); margin-bottom: calc(12 * var(--screen-unit)); }
.feature-card p { font-size: var(--body3); color: var(--silver); }
.feature-card__no { font-family: var(--mono); font-size: var(--sub2); color: var(--accent); margin-bottom: calc(22 * var(--screen-unit)); }
.feature-card__eq {
  margin-top: calc(22 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--sub2); color: var(--muted);
  border-top: 1px solid rgba(200, 212, 220, 0.12);
  padding-top: calc(12 * var(--screen-unit));
}

#features-curve {
  margin-top: calc(70 * var(--screen-unit));
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(50 * var(--screen-unit)); align-items: center;
}
#features-curve-canvas { width: 100%; height: calc(320 * var(--screen-unit)); min-height: 200px; }

/* temperature slider */
.temp { margin-top: calc(30 * var(--screen-unit)); }
.temp__label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: var(--sub2); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: calc(14 * var(--screen-unit)); }
.temp__label b { color: var(--accent); font-weight: 400; }
#temp-bar {
  position: relative; height: calc(46 * var(--screen-unit)); min-height: 34px;
  border: 1px solid rgba(122, 184, 217, 0.3);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 224, 255, 0.05), rgba(0, 224, 255, 0.22));
  cursor: grab;
  touch-action: none;
}
#temp-bar.is-drag { cursor: grabbing; }
#temp-knob {
  position: absolute; top: 50%; left: 50%;
  width: calc(38 * var(--screen-unit)); height: calc(38 * var(--screen-unit));
  min-width: 26px; min-height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 1em var(--accent);
  pointer-events: none;
}
.temp__ticks { display: flex; justify-content: space-between; margin-top: calc(12 * var(--screen-unit)); font-family: var(--mono); font-size: var(--sub2); color: var(--muted); }
.temp__ticks span.is-on { color: var(--accent); }
.temp__read { margin-top: calc(16 * var(--screen-unit)); font-size: var(--body3); color: var(--silver); min-height: 3em; }

@media (max-width: 767.98px) {
  .feature-grid { grid-template-columns: 1fr; }
  #features-curve { grid-template-columns: 1fr; }
}

/* ============================================================
   6 · Encode / decode
   ============================================================ */
#encode { text-align: center; }
.encode-field {
  position: relative;
  max-width: calc(760 * var(--screen-unit));
  margin: calc(40 * var(--screen-unit)) auto 0;
}
.encode-field input {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(122, 184, 217, 0.4);
  text-align: center;
  font-family: var(--display);
  font-size: var(--h3);
  padding: calc(14 * var(--screen-unit)) 0;
  outline: none;
}
.encode-field input:focus { border-bottom-color: var(--accent); }
.encode-lines { display: flex; justify-content: center; gap: calc(6 * var(--screen-unit)); margin-top: calc(18 * var(--screen-unit)); }
.encode-lines i { display: block; width: calc(26 * var(--screen-unit)); height: 1px; background: rgba(122, 184, 217, 0.4); }
#encode-btn {
  margin-top: calc(34 * var(--screen-unit));
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 999px;
  padding: calc(14 * var(--screen-unit)) calc(34 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--btn); text-transform: uppercase; letter-spacing: 0.14em;
}
#encode-out {
  margin-top: calc(26 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--body3); color: var(--muted);
  word-break: break-all; min-height: 2em;
  max-width: calc(760 * var(--screen-unit)); margin-inline: auto;
}

/* ============================================================
   7 · Grip / zoom lens
   ============================================================ */
#grip-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: calc(50 * var(--screen-unit)); align-items: center; }
#grip-zoom-box {
  position: relative; overflow: hidden;
  border-radius: calc(16 * var(--screen-unit));
  border: 1px solid rgba(122, 184, 217, 0.2);
  aspect-ratio: 16/10;
  cursor: none;
}
#grip-zoom-box img { width: 100%; height: 100%; object-fit: cover; }
#grip-lens {
  position: absolute; width: calc(210 * var(--screen-unit)); height: calc(210 * var(--screen-unit));
  min-width: 120px; min-height: 120px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 0.75em rgba(0, 224, 255, 0.5), 0 0 24px rgba(0, 224, 255, 0.25);
  background-repeat: no-repeat;
  background-size: 280% 280%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#grip-zoom-box:hover #grip-lens { opacity: 1; }
.grip-read {
  position: absolute; right: calc(18 * var(--screen-unit)); bottom: calc(18 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--sub2);
  background: rgba(4, 8, 13, 0.78);
  border: 1px solid rgba(122, 184, 217, 0.25);
  padding: calc(10 * var(--screen-unit)) calc(14 * var(--screen-unit));
  border-radius: calc(8 * var(--screen-unit));
  letter-spacing: 0.08em;
}
.grip-read b { color: var(--accent); font-weight: 400; }
.grip-instruction {
  display: inline-flex; align-items: center; gap: calc(10 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--sub2); color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-top: calc(26 * var(--screen-unit));
}
.grip-wheel { width: 16px; height: 22px; border: 1px solid var(--blue); border-radius: 999px; position: relative; }
.grip-wheel::after {
  content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 5px;
  background: var(--accent); transform: translateX(-50%);
  animation: wheel-dash 1.8s ease-in-out infinite;
}
@keyframes wheel-dash { 0%, 100% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; transform: translate(-50%, 6px); } }

@media (max-width: 767.98px) { #grip-stage { grid-template-columns: 1fr; } }

/* ============================================================
   8 · Sustainability
   ============================================================ */
#sustain { background: var(--pale); color: var(--pale-ink); }
#sustain .eyebrow { color: #3d6b85; }
#sustain .rule { background: rgba(6, 18, 27, 0.15); }
.sustain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: calc(50 * var(--screen-unit)); }
.stat { border-top: 1px solid rgba(6, 18, 27, 0.2); padding-top: calc(20 * var(--screen-unit)); }
.stat__n { font-family: var(--display); font-size: var(--h2); line-height: 1; }
.stat__u { font-family: var(--mono); font-size: var(--sub2); text-transform: uppercase; letter-spacing: 0.12em; color: #3d6b85; margin-top: calc(8 * var(--screen-unit)); }
.stat__d { font-size: var(--body3); color: #33505f; margin-top: calc(12 * var(--screen-unit)); }
.stat__svg { width: 100%; height: calc(90 * var(--screen-unit)); min-height: 56px; margin-top: calc(16 * var(--screen-unit)); }
.stat__svg .s-line { fill: none; stroke: #1d4a60; stroke-width: 1.5; stroke-dasharray: 240; stroke-dashoffset: 240; }
.stat.is-in .s-line { animation: s-draw 1.6s ease forwards; }
@keyframes s-draw { to { stroke-dashoffset: 0; } }
.stat__svg .s-pulse { fill: #0f8fb0; transform-origin: center; }
.stat.is-in .s-pulse { animation: s-pulse 2.4s ease-in-out infinite; }
@keyframes s-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.stat__svg .s-rot { transform-origin: center; }
.stat.is-in .s-rot { animation: s-rot 9s linear infinite; }
@keyframes s-rot { to { transform: rotate(360deg); } }
.sustain-aside { margin-top: calc(40 * var(--screen-unit)); font-family: var(--mono); font-size: var(--body3); color: #33505f; }

@media (max-width: 767.98px) { .sustain-grid { grid-template-columns: 1fr; } }

/* ============================================================
   9 · Testimonies
   ============================================================ */
.voice-row {
  display: grid; grid-template-columns: calc(170 * var(--screen-unit)) minmax(0, 1fr) auto;
  gap: calc(34 * var(--screen-unit)); align-items: center;
  padding-block: calc(26 * var(--screen-unit));
  border-top: 1px solid rgba(200, 212, 220, 0.14);
}
.voice-row:last-child { border-bottom: 1px solid rgba(200, 212, 220, 0.14); }
.voice-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(10 * var(--screen-unit)); }
.voice-who { font-family: var(--display); font-size: var(--h4); }
.voice-role { font-family: var(--mono); font-size: var(--sub2); color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em; margin-top: calc(6 * var(--screen-unit)); }
.voice-quote { font-size: var(--body3); color: var(--silver); margin-top: calc(10 * var(--screen-unit)); }
.stars { font-size: var(--body3); color: var(--accent); letter-spacing: 0.2em; }

@media (max-width: 767.98px) {
  .voice-row { grid-template-columns: calc(70 * var(--screen-unit)) 1fr; }
  .stars { grid-column: 2; }
}

/* ============================================================
   10 · Social moodboard
   ============================================================ */
.social-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
  align-items: start;
}
.tile { position: relative; border-radius: calc(12 * var(--screen-unit)); overflow: hidden; will-change: transform; }
.tile img { width: 100%; object-fit: cover; }
.tile--wide { grid-column: span 4; }
.tile--tall { grid-column: span 2; }
.tile--wide img { aspect-ratio: 16/9; }
.tile--tall img { aspect-ratio: 3/4; }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: calc(18 * var(--screen-unit));
  background: linear-gradient(to top, rgba(4, 8, 13, 0.88), transparent);
  font-family: var(--display); font-size: var(--h4);
}
.tile__cap small { display: block; font-family: var(--mono); font-size: var(--sub2); color: var(--blue); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: calc(6 * var(--screen-unit)); }
#social-content-progress { display: none; }

@media (max-width: 767.98px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; }
  .tile--tall { grid-column: span 1; }
  #social-content-progress { display: flex; gap: 6px; justify-content: center; margin-top: calc(20 * var(--screen-unit)); }
  #social-content-progress i { width: 5px; height: 5px; border-radius: 50%; background: rgba(200, 212, 220, 0.3); }
  #social-content-progress i.is-on { background: var(--accent); }
}

/* ============================================================
   11 · Product tiers + spec table
   ============================================================ */
.sku-picker { display: flex; gap: calc(12 * var(--screen-unit)); flex-wrap: wrap; }
.sku-btn {
  border: 1px solid rgba(122, 184, 217, 0.3);
  border-radius: 999px;
  padding: calc(12 * var(--screen-unit)) calc(28 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--btn); text-transform: uppercase; letter-spacing: 0.12em;
}
.sku-btn.is-on { border-color: var(--accent); color: var(--accent); background: rgba(0, 224, 255, 0.08); }
#product-details {
  margin-top: calc(36 * var(--screen-unit));
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(40 * var(--screen-unit)); align-items: center;
}
#product-details h3 { font-size: var(--h2); }
#product-details .p-sub { font-family: var(--mono); font-size: var(--sub2); color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: calc(14 * var(--screen-unit)); }
#product-details p { font-size: var(--body3); color: var(--silver); margin-top: calc(16 * var(--screen-unit)); }
#product-details img { border-radius: calc(14 * var(--screen-unit)); aspect-ratio: 4/3; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: calc(70 * var(--screen-unit)); font-size: var(--body3); }
.spec-table th, .spec-table td { text-align: left; padding: calc(16 * var(--screen-unit)) calc(12 * var(--screen-unit)); border-bottom: 1px solid rgba(200, 212, 220, 0.14); }
.spec-table thead th { font-family: var(--mono); font-size: var(--sub2); text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); }
.spec-table tbody th { font-weight: 400; color: var(--silver); }
.spec-table td { color: var(--white); }
.spec-wrap { overflow-x: auto; }

@media (max-width: 767.98px) {
  #product-details { grid-template-columns: 1fr; }
  .spec-table { min-width: 520px; }
}

/* ============================================================
   12 · Fake paper
   ============================================================ */
#paper { background: var(--pale); color: var(--pale-ink); font-family: var(--serif); }
#paper .eyebrow { color: #3d6b85; font-family: var(--mono); }
.paper-title { font-family: var(--serif); font-weight: 600; font-size: var(--h3); max-width: 28ch; line-height: 1.15; margin-top: calc(16 * var(--screen-unit)); letter-spacing: -0.01em; }
.paper-authors { font-size: var(--body3); color: #33505f; margin-top: calc(16 * var(--screen-unit)); font-style: italic; }
.paper-arxiv { font-family: var(--mono); font-size: var(--sub2); color: #3d6b85; margin-top: calc(8 * var(--screen-unit)); }
.paper-body { display: grid; grid-template-columns: 1fr 1fr; gap: calc(50 * var(--screen-unit)); margin-top: calc(50 * var(--screen-unit)); }
.paper-body h4 { font-family: var(--serif); font-size: var(--body1); margin-bottom: calc(10 * var(--screen-unit)); font-weight: 600; }
.paper-body p { font-size: var(--body3); line-height: 1.6; margin-bottom: calc(22 * var(--screen-unit)); }
.paper-body pre {
  font-family: var(--mono); font-size: var(--sub2); line-height: 1.7;
  background: rgba(6, 18, 27, 0.06);
  border-left: 2px solid #0f8fb0;
  padding: calc(18 * var(--screen-unit));
  overflow-x: auto;
}
.paper-links { display: flex; gap: calc(20 * var(--screen-unit)); margin-top: calc(30 * var(--screen-unit)); font-family: var(--mono); font-size: var(--sub2); text-transform: uppercase; letter-spacing: 0.12em; flex-wrap: wrap; }
.paper-links a { border-bottom: 1px solid #0f8fb0; color: #0d5f78; }

@media (max-width: 767.98px) { .paper-body { grid-template-columns: 1fr; } }

/* ============================================================
   13 · Footer
   ============================================================ */
#footer { padding-block: var(--section-y) calc(70 * var(--screen-unit)); text-align: center; }
.footer-punch { font-size: var(--h2); max-width: 20ch; margin-inline: auto; line-height: 1.02; }
.footer-punch em { font-style: normal; color: var(--accent); }
.footer-sub { font-size: var(--body2); color: var(--silver); max-width: calc(640 * var(--screen-unit)); margin: calc(26 * var(--screen-unit)) auto 0; }
.footer-cta {
  display: inline-block; margin-top: calc(36 * var(--screen-unit));
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 999px;
  padding: calc(15 * var(--screen-unit)) calc(38 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--btn); text-transform: uppercase; letter-spacing: 0.14em;
}
.footer-meta {
  margin-top: calc(70 * var(--screen-unit));
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: calc(14 * var(--screen-unit));
  font-family: var(--mono); font-size: var(--sub2); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-meta a { color: var(--blue); }

/* ---- Video lightbox ---- */
#video-overlay {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(4, 8, 13, 0.94);
  display: none; place-items: center;
  padding: var(--site-padding-x);
}
#video-overlay.is-open { display: grid; }
#video-overlay video { width: min(100%, 1100px); border-radius: calc(12 * var(--screen-unit)); }
#video-overlay .close {
  position: absolute; top: calc(24 * var(--screen-unit)); right: var(--site-padding-x);
  font-family: var(--mono); font-size: var(--body3); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent);
}

/* ============================================================
   Reduced motion — kill hijack + parallax, static layout
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #canvas { display: none; }
  #gallery-pin { height: auto; overflow-x: auto; padding-block: calc(40 * var(--screen-unit)); }
  #gallery-track { transform: none !important; }
  .g-rail { display: none; }
  .tile { transform: none !important; }
}
