/* ============================================================
   TURMZWEI LABS — Design System v2 · "Tinte & Papier"
   Light-first, minimal, editorial. Ink on paper, one blue accent.
   ============================================================ */

/* ---------- Fonts (self-hosted, OFL, GDPR-safe) ---------- */
@font-face {
  font-family: "Aspekta";
  src: url("../fonts/aspekta-vf.woff2") format("woff2-variations");
  font-weight: 100 950;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #f7f8fa;
  --paper-2: #ffffff;
  --paper-sunk: #eef0f4;
  --ink: #0f1218;
  --ink-2: #2c313b;
  --muted: #59606c;
  --faint: #676d79;
  --line: #e5e8ee;
  --line-2: #d7dbe4;
  --accent: #2440c0;
  --accent-ink: #1c33a0;
  --accent-wash: rgba(36, 64, 192, 0.06);
  --accent-line: rgba(36, 64, 192, 0.22);

  --font: "Aspekta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --fs-display: clamp(2.5rem, 5.6vw, 4.9rem);
  --fs-h1: clamp(2.2rem, 4.4vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 3.2vw, 2.5rem);
  --fs-h3: 1.24rem;
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8rem;

  --lh-tight: 1.05;
  --lh-body: 1.62;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --container: 1140px;
  --measure: 62ch;
  --pad-x: clamp(1.25rem, 4vw, 2.75rem);
  --space: clamp(4.5rem, 8vw, 7rem);

  --ease: cubic-bezier(0.22, 0.75, 0.28, 1);
  --shadow: 0 1px 2px rgba(15, 18, 24, 0.04), 0 12px 32px -18px rgba(15, 18, 24, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0c0e13;
    --paper-2: #12151c;
    --paper-sunk: #090b0f;
    --ink: #f2f4f8;
    --ink-2: #d3d8e1;
    --muted: #9aa2b0;
    --faint: #7e8795;
    --line: #1e232d;
    --line-2: #2a303c;
    --accent: #6e86ff;
    --accent-ink: #899cff;
    --accent-wash: rgba(110, 134, 255, 0.1);
    --accent-line: rgba(110, 134, 255, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f7f8fa; --paper-2: #ffffff; --paper-sunk: #eef0f4;
  --ink: #0f1218; --ink-2: #2c313b; --muted: #59606c; --faint: #676d79;
  --line: #e5e8ee; --line-2: #d7dbe4;
  --accent: #2440c0; --accent-ink: #1c33a0; --accent-wash: rgba(36, 64, 192, 0.06); --accent-line: rgba(36, 64, 192, 0.22);
  --shadow: 0 1px 2px rgba(15, 18, 24, 0.04), 0 12px 32px -18px rgba(15, 18, 24, 0.18);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0c0e13; --paper-2: #12151c; --paper-sunk: #090b0f;
  --ink: #f2f4f8; --ink-2: #d3d8e1; --muted: #9aa2b0; --faint: #7e8795;
  --line: #1e232d; --line-2: #2a303c;
  --accent: #6e86ff; --accent-ink: #899cff; --accent-wash: rgba(110, 134, 255, 0.1); --accent-line: rgba(110, 134, 255, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
}

/* Registered so it can be transitioned — a plain custom property can't animate,
   which is why the hover pool used to snap instead of fade. */
@property --spot {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
strong { font-weight: 640; color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 640; letter-spacing: -0.021em; line-height: var(--lh-tight); text-wrap: balance; }
.display {
  font-size: var(--fs-display);
  font-weight: 660;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h1 { font-size: var(--fs-h1); letter-spacing: -0.028em; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.026em; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.accent-text { color: var(--accent); }

.lede { font-size: clamp(1.12rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: var(--measure); letter-spacing: -0.012em; }
.body { color: var(--muted); max-width: var(--measure); }
.body + .body { margin-top: 1rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}

/* Section label (no numbers — labels encode meaning, not decoration) */
.label {
  font-size: var(--fs-xs);
  font-weight: 560;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 560;
  letter-spacing: -0.006em;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline { border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }

.link {
  color: var(--accent);
  font-weight: 540;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s var(--ease);
}
.link:hover { gap: 0.65rem; }
.link .arr { transition: transform 0.3s var(--ease); }
.link:hover .arr { transform: translateX(2px); }

/* ---------- Skip link (keyboard / screen reader) ---------- */
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink);
  color: var(--paper); padding: .6rem 1rem; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 72px;
  /* 1fr auto 1fr — the link row is centred on the bar, not on whatever
     is left over between two clusters of different width. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.nav-left { justify-self: start; }

/* scroll progress — quiet feedback that the page is moving */
.nav-progress { height: 1.5px; background: transparent; }
.nav-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.1s linear;
}

/* Wordmark: monogram + name */
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; }
.wordmark .mono {
  width: 30px; height: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}
.wordmark .wm-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark .wm-name b { font-weight: 600; }
.wordmark .wm-name span { color: var(--faint); }

.nav-links { display: flex; align-items: center; justify-content: center; gap: 2.25rem; }
.nav-links a { font-size: var(--fs-sm); font-weight: 480; color: var(--muted); transition: color 0.25s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 540; }

.nav-right { display: flex; align-items: center; justify-self: end; gap: 0.9rem; }
.icon-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 17px; height: 17px; }
.lang { font-size: var(--fs-xs); font-weight: 560; letter-spacing: 0.08em; color: var(--muted); padding: 0 0.35rem; }
.lang:hover { color: var(--ink); }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun, .theme-moon { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}
.nav-cta { padding: 0.5rem 1.05rem; font-size: var(--fs-sm); }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 130; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.3s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: clamp(2rem, 8vw, 3rem); font-weight: 620; letter-spacing: -0.03em; padding: 0.5rem 0; color: var(--ink-2); transition: color 0.25s; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .mm-foot { margin-top: 2.5rem; display: flex; gap: 1rem; align-items: center; }

/* ---------- Section rhythm ---------- */
.section { padding: var(--space) 0; }
.section.sunk { background: var(--paper-sunk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .label { display: block; margin-bottom: 1.1rem; }
.section-head .h2 { margin-bottom: 0; }

/* ============================================================
   CHIP LAYER — under the paper lies silicon.
   The canvas holds a generated circuit; a cursor-tracked mask
   is the only thing that lets it show through.
   ============================================================ */
/* Two layers: 0 = the circuit + tower field (masked), 2 = the words above it. */
[data-chip-host] { position: relative; isolation: isolate; }
[data-chip-host] > *:not(.chip-layer) { position: relative; z-index: 2; }

/* No CSS mask here: the board is revealed by SEVERAL travelling points at once
   (cursor + the tower's orbiting point + roaming data points), and a CSS mask
   composites its layers by intersection where we need their union. That union is
   built per frame in the canvas instead — see main.js. */
.chip-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Hero — owns the whole first screen ---------- */
.hero {
  position: relative;
  padding-top: 72px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
/* the stage takes whatever the band and strip leave over, and centres the copy in it */
.hero-stage {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 0;
}
.hero-stage > .container { width: 100%; }
/* vh-based, not vw: this padding competes with the band and strip for the
   viewport's height, so it has to scale with height. */
.hero-copy { padding: clamp(1.25rem, 4vh, 3rem) 0; }
.hero-copy .eyebrow { margin-bottom: 1.7rem; }
.hero-copy .display { max-width: 21ch; margin-bottom: 1.9rem; }
.hero-copy .lede { max-width: 50ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* full-bleed band, straight after the hero: the drawn tower becomes the real one */
.photo-band {
  position: relative;
  height: clamp(220px, 34svh, 360px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.photo-band img { width: 100%; height: 100%; object-fit: cover; }

/* Honest photo placeholder: brand monogram watermark, no faked illustration */
.photo-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 120% at 50% 100%, var(--accent-wash), transparent 62%),
    var(--paper-2);
}
.photo-slot::before {
  content: "2";
  font-weight: 700;
  font-size: clamp(9rem, 26vh, 20rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--ink);
  opacity: 0.028;
}
.figure-cap {
  position: absolute;
  left: 1.5rem; bottom: 1.5rem;
  z-index: 2;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* strip of studio facts under hero */
.hero-strip { flex: 0 0 auto; border-top: 1px solid var(--line); }
.hero-strip .container { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4rem); padding-top: 1.05rem; padding-bottom: 1.05rem; }
.hero-strip .fact { font-size: var(--fs-sm); color: var(--faint); }
.hero-strip .fact b { display: block; color: var(--ink-2); font-weight: 560; }

/* ---------- Page header (subpages) ---------- */
.page-head { padding: calc(72px + clamp(3.5rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: 1.4rem; }
.page-head .display { max-width: 15ch; margin-bottom: 1.4rem; }
.page-head .lede { margin-top: 0.5rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split.lean { grid-template-columns: 1.1fr 0.9fr; }
.split .h2 { margin-bottom: 1.4rem; }
.split .media { order: 1; }

/* Feature list — no ticks-in-boxes cliché; hairline rows.
   .bare drops the marker column where the items are attributes, not a sequence. */
.rows { list-style: none; display: grid; }
.rows li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.rows.bare li { grid-template-columns: 1fr; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .k { color: var(--accent); font-weight: 600; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; padding-top: 0.05rem; }
.rows .v { color: var(--muted); }
.rows .v b { display: block; color: var(--ink); font-weight: 560; margin-bottom: 0.15rem; }

/* Plain fact card */
.factcard {
  --spot: 0;
  background-color: var(--paper-2);
  background-image: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) calc(var(--spot) * 9%), transparent), transparent 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: border-color 0.35s var(--ease), --spot 0.4s var(--ease);
}
.factcard:hover { border-color: var(--line-2); --spot: 1; }
.factcard h3 { margin-bottom: 1.3rem; }

/* ---------- Editorial figure (tower) ---------- */
.figure {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure .figure-cap { left: 1.1rem; bottom: 1.1rem; }

/* ---------- Values (type-driven, no emoji) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value {
  --spot: 0;
  min-height: 190px;
  background-color: var(--paper);
  /* the cursor lifts a pool of accent out of the surface; --spot fades it */
  background-image: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) calc(var(--spot) * 9%), transparent), transparent 70%);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  transition: background-color 0.35s var(--ease), --spot 0.4s var(--ease);
}
.value:hover { background-color: var(--paper-2); --spot: 1; }
.value .vk { font-size: var(--fs-xs); font-weight: 560; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 1.4rem; }
.value h3 { margin-bottom: 0.55rem; }
.value p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Product block ---------- */
.product {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 4.5vw, 3.4rem);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.product .p-name { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.03em; margin-bottom: 0.9rem; }
.product .p-desc { color: var(--muted); margin-bottom: 1.6rem; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip { font-size: var(--fs-sm); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius-pill); padding: 0.35rem 0.85rem; }

/* device mock — minimal ink lines */
.device-wrap { display: flex; justify-content: center; }
.device {
  width: min(272px, 74vw);
  aspect-ratio: 9 / 17;
  border: 1px solid var(--line-2);
  border-radius: 34px;
  background: var(--paper);
  padding: 14px;
  box-shadow: var(--shadow);
}
.device .screen {
  height: 100%;
  border-radius: 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 1.5rem 1.05rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.device .s-next {
  align-self: stretch;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 560;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0;
  margin-top: 0.15rem;
}
.device .s-label { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.device .s-l { height: 8px; border-radius: 4px; background: var(--paper-sunk); }
.device .s-l.w70 { width: 70%; }
.device .s-l.w50 { width: 50%; }
.device .s-word {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 7px;
  color: var(--accent);
  background: var(--accent-wash);
  text-decoration: underline wavy var(--accent-line) 1.5px;
  text-underline-offset: 4px;
}
.device .s-hint { font-size: 0.8rem; line-height: 1.5; color: var(--muted); border-left: 2px solid var(--accent-line); padding: 0.15rem 0 0.15rem 0.7rem; }
.device .s-bar { margin-top: auto; }
.device .s-bar .track { height: 6px; border-radius: 4px; background: var(--paper-sunk); overflow: hidden; }
.device .s-bar .track i { display: block; height: 100%; width: 72%; background: var(--accent); border-radius: 4px; }
.device .s-bar span { font-size: var(--fs-xs); color: var(--faint); display: block; margin-top: 0.4rem; }

/* ---------- Steps (real sequence → numbers allowed) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.step {
  --spot: 0;
  padding: 1.4rem 1.2rem 1.4rem 0;
  border-top: 1.5px solid var(--ink);
  background-image: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) calc(var(--spot) * 9%), transparent), transparent 70%);
  transition: --spot 0.4s var(--ease);
}
.step:hover { --spot: 1; }
.step .sn { font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); display: block; margin-bottom: 1rem; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Timeline ---------- */
.timeline { border-top: 1px solid var(--line); }
.tl {
  --spot: 0;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) calc(var(--spot) * 9%), transparent), transparent 70%);
  transition: --spot 0.4s var(--ease);
}
.tl:hover { --spot: 1; }
.tl .st { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); display: inline-flex; align-items: center; gap: 0.5rem; }
.tl.live .st { color: var(--accent); }
.tl.live .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tl h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.tl p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
/* --spot is registered with inherits:false, so it must be set on the very element
   that draws the gradient — not on the parent. */
.member .ph {
  --spot: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--paper-2);
  background-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, 40%),
    color-mix(in srgb, var(--accent) calc(var(--spot) * 10%), transparent), transparent 70%);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--faint);
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease), --spot 0.4s var(--ease);
}
.member:hover .ph { border-color: var(--line-2); transform: translateY(-3px); --spot: 1; }
.member h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.member .role { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Quote ---------- */
.pullquote { max-width: 24ch; }
.pullquote .q { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
.pullquote .cite { margin-top: 1.4rem; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- CTA band ---------- */
.cta { text-align: center; padding: var(--space) 0; }
.cta .h2 { max-width: 20ch; margin: 0 auto 1.2rem; }
.cta p { color: var(--muted); max-width: 46ch; margin: 0 auto 2rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.formcard { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.15rem; display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: var(--fs-sm); font-weight: 540; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2359606c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.4rem; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); margin: 0.3rem 0 1.5rem; }
.check input { width: 17px; height: 17px; margin-top: 0.15rem; accent-color: var(--accent); flex: none; }
.form-note { font-size: var(--fs-xs); color: var(--faint); margin-top: 1rem; }
.form-ok { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-ok .ok-mark { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; margin: 0 auto 1.1rem; }
.formcard.sent form { display: none; }
.formcard.sent .form-ok { display: block; }

.infocard { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3.5vw, 2.4rem); background: var(--paper-2); }
.info-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-item:first-child { padding-top: 0; }
.info-item:last-child { border-bottom: 0; padding-bottom: 0; }
.info-item .il { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.4rem; }
.info-item .iv { color: var(--ink); font-weight: 500; }
.info-item .iv a:hover { color: var(--accent); }

/* ---------- FAQ (native <details> — interactive without a line of JS) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-weight: 560;
  font-size: 1.05rem;
  letter-spacing: -0.012em;
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .sign { position: relative; width: 13px; height: 13px; flex: none; color: var(--accent); }
.faq summary .sign::before,
.faq summary .sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.faq summary .sign::after { transform: rotate(90deg); }
.faq details[open] summary .sign::after { transform: rotate(0deg); }
.faq .answer { padding: 0 0.75rem 1.5rem; color: var(--muted); font-size: var(--fs-sm); max-width: 68ch; }

/* ---------- Map (two-click: nothing reaches Google until asked) ---------- */
.map-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: clamp(300px, 42vh, 440px);
  background-color: var(--paper-2);
  background-image:
    radial-gradient(90% 120% at 50% 100%, var(--accent-wash), transparent 60%),
    /* faint street-grid hint, so the unloaded state still reads as a map */
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 44px);
  display: grid;
  place-items: center;
}
.map-ph { text-align: center; padding: 1.5rem; max-width: 42ch; }
.map-ph .pin {
  width: 42px; height: 42px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--paper);
}
.map-ph h3 { margin-bottom: 0.4rem; }
.map-ph p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1.2rem; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card.loaded .map-ph { display: none; }
.map-meta { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; margin-top: 1.25rem; }

/* ---------- Legal ---------- */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 0.85rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.legal ul { padding-left: 1.2rem; margin: 0.6rem 0; }
.legal p { margin-bottom: 0.6rem; }
.notice { border: 1px solid var(--accent-line); background: var(--accent-wash); border-radius: var(--radius); padding: 1.15rem 1.4rem; color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: 2.5rem; }
.notice strong { color: var(--accent); }

/* ---------- Footer ---------- */
/* No margin-top: the preceding section already carries var(--space) bottom padding, and
   on the chip-host CTA that padding is INSIDE the canvas (interactive). A footer margin
   here added a second, dead (canvas-less) dark strip below the CTA — the reveal appeared
   to stop short of the footer. */
.footer { background: var(--paper-sunk); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0 3rem; }
.footer h4 { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; font-weight: 560; }
.footer ul { list-style: none; display: grid; gap: 0.65rem; }
.footer a { color: var(--muted); font-size: var(--fs-sm); transition: color 0.25s; }
.footer a:hover { color: var(--ink); }
.footer-brand p { color: var(--muted); font-size: var(--fs-sm); margin-top: 1rem; max-width: 32ch; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--fs-xs); color: var(--faint); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero { min-height: 0; }
  .hero-stage { min-height: 82svh; }
  /* The tower isn't built below 940px (initChip skips it) — the real photo band
     right below carries the visual on small screens. */
  .hero-copy { padding: clamp(3rem, 9vw, 5rem) 0 clamp(2.5rem, 6vw, 3.5rem); }
  .hero-copy .display { max-width: 16ch; }
  .photo-band { height: clamp(240px, 40svh, 360px); }
  /* .split.lean (0,2,0) outranks a bare .split rule, so it must be named here or
     the "lean" sections stay a cramped two columns on phones. */
  .split, .split.lean, .product, .contact { grid-template-columns: 1fr; }
  .split .media { order: -1; }
  /* a pullquote reads better after the text it punctuates; image figures stay above */
  .split .media:has(.pullquote) { order: 1; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tl { grid-template-columns: 120px 1fr; }
  .tl .tl-cta { grid-column: 2; justify-self: start; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .frow { grid-template-columns: 1fr; }
  /* the 1fr auto 1fr grid squeezes the wordmark once the links are gone */
  .nav-inner { display: flex; justify-content: space-between; }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .team { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-strip .container { flex-direction: column; gap: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  /* the chip reveal stays (it is user-driven), but nothing moves on its own */
}
