/* MODE3 v2 · css
   The synthesis (see REFERENCES.md):
   - Linear grondtoon: a LADDER of dark levels and text levels, hairlines as
     inset shadows, grain via overlay blend, brightness hover, medium-weight
     monumental type.
   - Authkit diepte: one hue family per moment of the day. The accent tints
     every hairline, the light cone, the floor glows and the glass. Depth by
     layering, blur kept small (6-8px).
   - Hyperstudio textuur: obsidian restraint, dot-matrix instrument readouts,
     status chips, metallic bevels, schematic annotations.
   The page is ALWAYS a dark instrument. The day moves through the clock, the
   accent hue and the cathedral light, all engine-driven from one scroll time. */

/* ---------- font ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* brand constants */
  --base: #0b0d10;
  --paper: #ede9e3;
  --prime: #9fe6d3;
  --perform: #ffd400;
  --unwind: #b07acd;

  /* the ladder (Linear): page < panel < raised */
  --bg: #0b0d10;            /* engine-tinted per day-hour */
  --bg-panel: rgba(237, 233, 227, 0.025);
  --bg-raised: rgba(237, 233, 227, 0.05);

  /* text ladder */
  --ink: #ede9e3;
  --ink-2: #b6bac1;
  --ink-3: #848a93;
  --ink-rgb: 237, 233, 227;

  /* lines: neutral hairline + accent-tinted glow (engine drives accent) */
  --line: rgba(237, 233, 227, 0.09);
  --accent: rgb(159, 230, 211);
  --accent-rgb: 159, 230, 211;

  /* type scale */
  --t-hero: clamp(2.1rem, 6.6vw, 5rem);
  --t-mono: clamp(1.8rem, 5.2vw, 3.7rem);
  --t-h2: clamp(1.5rem, 3.8vw, 2.7rem);
  --t-clock: clamp(4.5rem, 19vw, 15rem);
  --t-lead: clamp(1rem, 1.4vw, 1.13rem);
  --t-micro: 0.7rem;

  /* motion */
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-move: 450ms;
  --e-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --e-drama: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.has-lenis { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, canvas, svg { max-width: 100%; display: block; }
a { color: inherit; }
sup { font-size: 0.55em; vertical-align: super; letter-spacing: 0; }
::selection { background: var(--accent); color: var(--base); }

/* grain: tiled svg noise, overlay blend (Linear's recipe) */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

/* the blueprint layer: vertical hairlines across the whole page, accent-tinted */
.blueprint {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(90deg, rgba(var(--accent-rgb), 0.05) 0 1px, transparent 1px);
  background-size: 160px 100%;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
/* node dots on the grid, drifting slowly with scroll (engine writes --drift) */
.blueprint::after {
  content: "";
  position: absolute; inset: -120px 0;
  background-image: radial-gradient(rgba(var(--accent-rgb), 0.16) 1px, transparent 1.6px);
  background-size: 160px 160px;
  background-position: center;
  transform: translate3d(0, calc(var(--drift, 0) * -90px), 0);
  will-change: transform;
}

/* the atmosphere: one big day-light, engine-positioned by the shared clock */
.atmosphere { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: clip; }
.atmo-sun {
  position: absolute; left: 50%; top: 0;
  width: min(74vw, 1050px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.13), rgba(var(--accent-rgb), 0.045) 34%, transparent 62%);
  transform: translate3d(-50%, -30%, 0);
  will-change: transform, opacity;
}

/* vignette: the obsidian is a material, never a dead flat */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 61;
  background: radial-gradient(120% 105% at 50% 42%, transparent 58%, rgba(0, 0, 0, 0.38) 100%);
}
main, footer { position: relative; z-index: 1; }

/* ---------- shared ---------- */
.wrap { max-width: 68rem; margin-inline: auto; padding-inline: clamp(1.4rem, 6vw, 3.5rem); }
.micro {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.accent { color: var(--accent); }
.accent-ink { font-style: normal; color: var(--accent); }
.tabnum { font-variant-numeric: tabular-nums; }
.dot-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin-inline: 0.65em; opacity: 0.55; }
.skip-link {
  position: fixed; top: -3rem; left: 1rem; z-index: 200;
  background: var(--paper); color: var(--base);
  padding: 0.5rem 1rem; font-size: 0.85rem; transition: top var(--t-base) var(--e-out);
}
.skip-link:focus { top: 1rem; }

/* type: monumental at MEDIUM weight (Linear 510 / Hyperstudio 400), never bold-shouting */
.h2 {
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.018em;
  max-width: 26ch;
  margin-top: 1.1rem;
  color: var(--ink);
}
.t-mono {
  font-size: var(--t-mono);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  max-width: 18ch;
  margin-top: 1.1rem;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.65;
  letter-spacing: -0.005em;
  max-width: 54ch;
  margin-top: 1.6rem;
  color: var(--ink-2);
}
.lead--strong { font-weight: 600; color: var(--ink); }

/* glass: Authkit recipe, deepened. one hairline color, small blur, a lit top
   edge, an inner floor shade and a drop into the page: three depth cues, not
   one flat blur. */
.glass {
  position: relative;
  background: linear-gradient(rgba(var(--accent-rgb), 0.032), rgba(var(--accent-rgb), 0.012) 55%), var(--bg-panel);
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 0 0 1px rgba(var(--accent-rgb), 0.05),
    inset 0 1px 0 rgba(var(--ink-rgb), 0.07),
    inset 0 -34px 56px -34px rgba(0, 0, 0, 0.55),
    0 30px 70px -30px rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}
@supports (backdrop-filter: blur(6px)) {
  .glass { backdrop-filter: blur(7px); }
}

/* status chip (Hyperstudio readout) */
.chip {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8); animation: chipPulse 2.6s ease-in-out infinite; }
@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.7); }
  50% { box-shadow: 0 0 16px rgba(var(--accent-rgb), 1); }
}

/* ---------- hud ---------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.05rem clamp(1.4rem, 4vw, 2.2rem);
  pointer-events: none;
  background: linear-gradient(rgba(11, 13, 16, 0.75), rgba(11, 13, 16, 0));
}
@supports (backdrop-filter: blur(8px)) {
  .hud { background: rgba(11, 13, 16, 0.35); backdrop-filter: blur(8px);
         -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
         mask-image: linear-gradient(to bottom, #000 60%, transparent); }
}
.hud-brand { pointer-events: auto; font-weight: 800; font-size: 1rem; letter-spacing: 0.08em; text-decoration: none; transition: filter var(--t-fast); }
.hud-brand:hover { filter: brightness(1.3); }
.hud-clock { font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.18em; color: var(--ink-2); }
.hud-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin-inline: 0.7em; opacity: 0.5; }
#hudState { color: var(--accent); }

/* ---------- sticky cta: metallic bevel (Hyperstudio) ---------- */
.enter-cta {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 100;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.3rem;
  background: linear-gradient(#1a1f26, #10141a);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(var(--ink-rgb), 0.07), 0 4px 18px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  border-radius: 3px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--t-move) var(--e-out), transform var(--t-move) var(--e-out), filter var(--t-fast);
}
.enter-cta.on { opacity: 1; transform: none; pointer-events: auto; }
.enter-cta:hover, .enter-cta:focus-visible { filter: brightness(1.35); }
html.no-js .enter-cta { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- blocks ---------- */
.block { position: relative; padding-block: clamp(6.5rem, 20vh, 12rem); }
.block--tall, .state, .close { min-height: 86vh; display: flex; align-items: center; }
.state .wrap, .block--tall .wrap, .close .wrap { width: 100%; }
/* floor glow: light leaking up from under the section (Authkit) */
.block--tall::before, .check::before, .offer::before {
  content: "";
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(70rem, 96vw); height: 40%;
  background: radial-gradient(45% 70% at 50% 115%, rgba(var(--accent-rgb), 0.07), transparent 100%);
  pointer-events: none;
}

/* recognition wave, with the live time cursor riding the shared clock */
.wave { position: relative; max-width: 68rem; margin: 3.4rem auto 0; padding-inline: clamp(1.4rem, 6vw, 3.5rem); }
.wave svg { opacity: 0.9; }
.wave-scale { display: flex; justify-content: space-between; margin-top: 0.9rem; color: var(--ink-3); letter-spacing: 0.18em; }
.wave-cursor {
  position: absolute; top: 0; bottom: 2.3rem; left: 0; width: 1px;
  background: linear-gradient(rgba(var(--accent-rgb), 0), rgba(var(--accent-rgb), 0.55) 35%, rgba(var(--accent-rgb), 0));
  will-change: transform;
  pointer-events: none;
}
.wave-cursor-dot {
  position: absolute; top: -2px; left: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9);
}
.wave-cursor-time {
  position: absolute; top: -1.55rem; left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent);
  white-space: nowrap;
}

/* moments */
.moments { margin-top: 3.2rem; display: grid; }
.moment {
  display: grid; gap: 0.35rem 2.5rem;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}
.moment:last-child { border-bottom: 1px solid var(--line); }
.moment-time { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 200; letter-spacing: 0.02em; grid-row: span 2; color: var(--ink); }
.moment-line { font-size: var(--t-lead); max-width: 46ch; color: var(--ink-2); }
.moment-tag { font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }
@media (hover: hover) {
  .moment-time, .moment-line { transition: color var(--t-base) var(--e-out), transform var(--t-move) var(--e-out); }
  .moment:hover .moment-time { color: var(--accent); }
  .moment:hover .moment-line { transform: translateX(8px); color: var(--ink); }
}

/* ---------- state panels: glass instruments with schematic corners ---------- */
.state-panel {
  padding: clamp(1.8rem, 5vw, 3.2rem);
  max-width: 46rem;
}
.state-panel::before, .state-panel::after {
  /* schematic corner ticks */
  content: "";
  position: absolute; width: 14px; height: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  pointer-events: none;
}
.state-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.state-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.state-time { font-size: clamp(2.8rem, 8vw, 5.6rem); font-weight: 200; line-height: 1; letter-spacing: 0.01em; }
.state-name { margin-top: 0.9rem; }
.state-name--prime { color: var(--prime); }
.state-name--perform { color: var(--perform); }
.state-name--unwind { color: var(--unwind); }

/* ---------- hero scene ---------- */
.scene { position: relative; }
.scene-sticky { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; }
html.scrub .scene-sticky { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: clip; }
html.scrub .scene--hero { height: 240svh; }

.hero-sticky { flex-direction: column; text-align: center; }
/* the cathedral cone: conic spotlight from above centre (Authkit), accent-tinted */
.hero-cone {
  position: absolute; inset: -10% -20%;
  background:
    conic-gradient(from 180deg at 50% -8%, transparent 41%, rgba(var(--accent-rgb), 0.06) 47%, rgba(var(--accent-rgb), 0.12) 50%, rgba(var(--accent-rgb), 0.06) 53%, transparent 59%),
    radial-gradient(42% 30% at 50% 108%, rgba(var(--accent-rgb), 0.07), transparent 70%);
  pointer-events: none;
  will-change: opacity;
}
/* blueprint x-marks (Authkit grid nodes) */
.hero-marks span {
  position: absolute; width: 10px; height: 10px; opacity: 0.35;
  background:
    linear-gradient(45deg, transparent calc(50% - 0.5px), rgba(var(--ink-rgb), 0.7) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(-45deg, transparent calc(50% - 0.5px), rgba(var(--ink-rgb), 0.7) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.hero-marks span:nth-child(1) { top: 18%; left: 12%; }
.hero-marks span:nth-child(2) { top: 22%; right: 14%; }
.hero-marks span:nth-child(3) { bottom: 24%; left: 18%; }
.hero-marks span:nth-child(4) { bottom: 18%; right: 11%; }
.hero-center { position: relative; padding-inline: clamp(1.4rem, 6vw, 3rem); max-width: 62rem; }
.hero-h1 {
  margin-top: 2rem;
  font-size: var(--t-hero);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
}
.hero-line { display: block; }
/* display gradient fill (Authkit): light above, cooler below. Applied to the
   whole line without js, and per word-span under scrub: background-clip on a
   parent stops painting once its children carry transforms. */
.hero-line--2, html.scrub .hero-line--2 .hw {
  background: linear-gradient(rgba(var(--ink-rgb), 0.95), rgba(var(--ink-rgb), 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.scrub .hero-line--2 { background: none; color: var(--ink); }
.hw { display: inline-block; will-change: transform, opacity; }
.hero-sub { margin-top: 2.2rem; font-size: var(--t-lead); color: var(--ink-2); }
.hero-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.7rem; opacity: 0.7;
}
.hero-cue-line { width: 1px; height: 3.2rem; background: currentColor; transform-origin: top; animation: cue 2.2s var(--e-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- day turn bands ---------- */
.turn { position: relative; }
html.scrub .turn { height: 300svh; }
.turn-sticky { flex-direction: column; gap: 1rem; text-align: center; }
html:not(.scrub) .turn .turn-sticky { display: none; }
html.scrub .turn .turn-static { display: none; }
.turn-static { text-align: center; padding-block: 3rem; color: var(--ink-3); }
.turn-cone {
  position: absolute; inset: -10% -20%;
  background: conic-gradient(from 180deg at 50% -8%, transparent 40%, rgba(var(--accent-rgb), 0.05) 47%, rgba(var(--accent-rgb), 0.11) 50%, rgba(var(--accent-rgb), 0.05) 53%, transparent 60%);
  pointer-events: none;
  will-change: transform, opacity;
}
.turn-clock {
  font-size: var(--t-clock);
  font-weight: 100;
  line-height: 1;
  letter-spacing: 0.02em;
  will-change: transform;
}
.turn-states {
  display: flex; justify-content: space-between; align-items: baseline;
  width: min(80vw, 40rem);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.3em;
}
.turn-a, .turn-b { will-change: opacity; opacity: 0; }
.turn-caption { position: absolute; bottom: 2.4rem; left: 0; right: 0; color: var(--ink-3); }
.turn-orb {
  position: absolute; top: 50%; left: 50%;
  width: clamp(10rem, 30vw, 20rem); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0) 70%);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  pointer-events: none;
}

/* ---------- check ---------- */
/* the check is an INSTRUMENT: bezel, recessed screen, live glow. */
.check-stage {
  margin-top: 3rem;
  height: min(60vh, 460px);
  overflow: clip;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 0 0 9px rgba(7, 8, 11, 0.85),
    inset 0 0 0 10px var(--line),
    inset 0 1px 0 rgba(var(--ink-rgb), 0.08),
    inset 0 0 90px rgba(0, 0, 0, 0.55),
    0 34px 90px -34px rgba(0, 0, 0, 0.65);
}
/* recessed screen backdrop: faint schematic grid + accent breath */
.ck-grid {
  position: absolute; inset: 10px;
  border-radius: 8px;
  background-image:
    radial-gradient(70% 80% at 50% 45%, rgba(var(--accent-rgb), 0.06), transparent 75%),
    repeating-linear-gradient(0deg, rgba(var(--ink-rgb), 0.045) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(var(--ink-rgb), 0.045) 0 1px, transparent 1px 44px);
  pointer-events: none;
}
/* soft accent glow behind the dot, breathing while the run is armed/live */
.ck-glow {
  position: absolute; left: 50%; top: 50%;
  width: clamp(14rem, 34vw, 22rem); aspect-ratio: 1;
  transform: translate(-50%, -54%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 65%);
  opacity: 0.4;
  pointer-events: none;
  will-change: opacity;
}
.check-stage.live .ck-glow { animation: ckBreath 1.9s ease-in-out infinite; }
@keyframes ckBreath { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }
/* tap ripple: an expanding hairline ring at the touch point */
.ck-ripple {
  position: absolute;
  width: 16px; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(var(--ink-rgb), 0.85);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.ck-ripple.run {
  transition: transform 550ms var(--e-out), opacity 550ms linear;
  transform: translate(-50%, -50%) scale(16);
  opacity: 0;
}
.ck-ripple.arm { opacity: 0.85; transition: none; }
/* the flash burst: a hot core that blooms out of the centre over the flat wash */
.ck-burst {
  position: absolute; left: 50%; top: 50%;
  width: clamp(16rem, 50vw, 30rem); aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.ck-burst--go { background: radial-gradient(circle, #eafff7 0%, rgba(159, 230, 211, 0.9) 26%, rgba(159, 230, 211, 0) 68%); }
.ck-burst--nogo { background: radial-gradient(circle, #f6e4ff 0%, rgba(186, 64, 238, 0.9) 26%, rgba(186, 64, 238, 0) 68%); }
.ck-burst.run {
  transition: transform 420ms var(--e-out), opacity 420ms linear;
  transform: translate(-50%, -50%) scale(1.25);
  opacity: 0;
}
.ck-burst.arm { opacity: 0.95; transition: none; }
.check-nojs { padding: clamp(1.5rem, 5vw, 3rem); max-width: 56ch; }
html.js .check-nojs { display: none; }
html.js.reduced .check-nojs { display: block; }
.check-after { margin-top: 2.4rem; }

.ck-layer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: clamp(1.2rem, 4vw, 2.5rem); }
.ck-flash { position: absolute; inset: 0; opacity: 0; will-change: opacity; border-radius: inherit; }
.ck-flash--go { background: radial-gradient(circle at 50% 46%, #d9fff3 0%, var(--prime) 42%, #6fbfa8 100%); }
.ck-flash--nogo { background: radial-gradient(circle at 50% 46%, #efd2ff 0%, #ba40ee 42%, #7e2ba2 100%); }
/* the dot is a target reticle: two concentric hairline rings around it */
.ck-dot {
  position: relative;
  width: clamp(5.5rem, 14vw, 8rem); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(var(--ink-rgb), 0.45);
  background: radial-gradient(circle at 50% 38%, rgba(var(--ink-rgb), 0.06), rgba(0, 0, 0, 0.25));
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), 0.1), 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  display: grid; place-items: center;
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.2em;
}
.ck-dot::before, .ck-dot::after {
  content: "";
  position: absolute; inset: -18%;
  border-radius: 50%;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
}
.ck-dot::after { inset: -36%; border-color: rgba(var(--ink-rgb), 0.08); }
.ck-count { font-size: var(--t-micro); letter-spacing: 0.3em; color: var(--ink-3); min-height: 1.2em; }
.ck-noise { position: absolute; font-size: var(--t-micro); letter-spacing: 0.25em; opacity: 0; will-change: opacity; pointer-events: none; }
.ck-noise--1 { top: 12%; left: 8%; } .ck-noise--2 { bottom: 14%; right: 9%; }
.ck-noise--3 { top: 16%; right: 12%; } .ck-noise--4 { bottom: 12%; left: 11%; }
.ck-begin {
  font: inherit; color: inherit; cursor: pointer;
  background: linear-gradient(#1a1f26, #10141a);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 3px;
  padding: 0.9rem 1.6rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  transition: filter var(--t-fast);
}
.ck-begin:hover, .ck-begin:focus-visible { filter: brightness(1.35); }
.ck-skip {
  position: absolute; bottom: 0.9rem; right: 1.1rem;
  font: inherit; background: none; border: 0; cursor: pointer; color: inherit;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; transition: opacity 600ms var(--e-out);
  pointer-events: none;
}
.ck-skip.on { opacity: 0.4; pointer-events: auto; }
.ck-skip:hover { opacity: 0.8; }
.ck-real {
  font-size: clamp(1.5rem, 4.4vw, 3rem); font-weight: 600; line-height: 1.1;
  letter-spacing: 0.02em; max-width: 18ch;
  opacity: 0; transform: translateY(12px);
  transition: opacity 900ms var(--e-out), transform 900ms var(--e-drama), letter-spacing 1100ms var(--e-drama);
}
.ck-real.show { opacity: 1; transform: none; letter-spacing: -0.018em; }
.ck-real-sub { font-size: var(--t-micro); letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-3); }
.ck-again {
  font: inherit; background: none; border: 0; cursor: pointer; color: inherit;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.55; text-decoration: underline; text-underline-offset: 4px;
}
.ck-again:hover { opacity: 1; }

/* ---------- kit / showcase: blueprint plate ---------- */
.showcase { padding-bottom: clamp(5rem, 14vh, 9rem); }
.kit {
  position: relative;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 68rem; margin-inline: auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1.4rem, 6vw, 3.5rem);
  /* schematic grid behind the objects */
  background-image:
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 56px);
  -webkit-mask-image: radial-gradient(85% 90% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(85% 90% at 50% 45%, #000 55%, transparent 100%);
}
.kit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.kit-cell { display: grid; gap: 0.9rem; align-content: start; }
.kit-phase { text-align: center; color: var(--ink-3); letter-spacing: 0.3em; }
/* the plate: a recessed photo slot (3:4). a real product photo on dark drops
   straight in as a background/img; the 3d render is the premium placeholder. */
.kit-view {
  aspect-ratio: 3 / 4; position: relative;
  border-radius: 8px;
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(var(--accent-rgb), 0.05), transparent 60%),
    linear-gradient(rgba(8, 9, 12, 0.55), rgba(8, 9, 12, 0.75));
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 1px 0 rgba(var(--ink-rgb), 0.06),
    inset 0 -44px 60px -44px rgba(0, 0, 0, 0.65);
}
.kit-view::after {
  content: "";
  position: absolute; inset: auto 12% 6% 12%; height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), calc(0.22 * (1 - var(--pr, 1)) + 0.07)), transparent 70%);
}
.kit-spec { float: right; color: var(--ink-3); font-weight: 600; letter-spacing: 0.18em; }
.kit-cell figcaption { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.kit-line { font-size: 0.85rem; color: var(--ink-3); max-width: 30ch; margin-top: 0.5rem; }
.kit-bracelet { margin-top: 2.6rem; }
@media (max-width: 720px) {
  .kit { grid-template-columns: 1fr; gap: 3rem; }
  .kit-view { aspect-ratio: 16 / 10; }
}

/* ---------- app: three instruments ---------- */
.phones {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
}
.phone-fig { display: grid; gap: 1.4rem; margin: 0; will-change: transform; }
/* the frame: milled bezel, floating, staged. .ph-screen is the 9:19.5 slot a
   real app screenshot drops into (1179x2556 or any 9:19.5 dark png). */
.phone {
  position: relative;
  width: 100%;
  max-width: 250px;
  margin-inline: auto;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(160deg, #232933, #0b0e13 55%, #161b22);
  box-shadow:
    inset 0 0 0 1px rgba(var(--ink-rgb), 0.14),
    inset 0 0 0 3px rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(var(--ink-rgb), 0.1),
    0 40px 80px -24px rgba(0, 0, 0, 0.7),
    0 12px 28px -12px rgba(0, 0, 0, 0.6);
}
.phone-fig--l .phone { transform: rotate(-2.4deg) translateY(12px); }
.phone-fig--c .phone { transform: translateY(-10px) scale(1.04); }
.phone-fig--r .phone { transform: rotate(2.4deg) translateY(12px); }
.ph-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  overflow: clip;
  display: flex; flex-direction: column; align-items: center;
  padding: 0.9rem 1rem;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(var(--accent-rgb), 0.08), transparent 55%),
    linear-gradient(#0c0f14, #08090c);
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), 0.07), inset 0 0 60px rgba(0, 0, 0, 0.5);
}
/* glass reflection: one diagonal sweep across the screen */
.ph-glare {
  position: absolute; inset: 9px;
  border-radius: 22px;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.1) 4%, rgba(255, 255, 255, 0.025) 20%, transparent 34%);
}
.ph-head { display: flex; justify-content: space-between; width: 100%; padding: 0.5rem 0.25rem 0; color: var(--ink-3); }
.ph-label { margin-top: 2.2rem; color: var(--ink-3); }
.ph-big { font-size: clamp(3.4rem, 8vw, 5rem); font-weight: 100; line-height: 1; margin-top: 0.6rem; }
.ph-bars { display: flex; gap: 6px; align-items: flex-end; height: 62px; margin-top: 1.6rem; }
.ph-bars i { width: 9px; height: var(--h, 40%); background: linear-gradient(rgba(var(--accent-rgb), 0.9), rgba(var(--accent-rgb), 0.25)); border-radius: 2px; }
.ph-foot { margin-top: auto; padding-bottom: 0.6rem; color: var(--ink-3); }
.ph-ring {
  width: clamp(6rem, 11vw, 8rem); aspect-ratio: 1; border-radius: 50%;
  margin-top: 1.4rem;
  display: grid; place-items: center;
  font-weight: 200; font-size: 1.3rem;
  background:
    radial-gradient(closest-side, var(--bg) 79%, transparent 80% 100%),
    conic-gradient(rgba(var(--accent-rgb), 0.9) 0 78%, rgba(var(--ink-rgb), 0.12) 78% 100%);
}
.ph-cycle { display: flex; align-items: center; gap: 0.8em; margin-top: 1.3rem; letter-spacing: 0.18em; font-size: var(--t-micro); font-weight: 700; }
.ph-arrow { width: 26px; height: 1px; background: var(--ink-3); position: relative; }
.ph-arrow::after { content: ""; position: absolute; right: 0; top: -2.5px; border-left: 5px solid var(--ink-3); border-block: 3px solid transparent; }
.ph-insight { font-size: 0.92rem; font-weight: 600; line-height: 1.5; margin-top: 1.2rem; max-width: 18ch; text-align: center; }
.ph-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-top: 1.5rem; }
.ph-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--ink-rgb), 0.14); }
.ph-dots i.on { background: rgba(var(--accent-rgb), 0.85); }
.ph-cap { text-align: center; font-size: 0.95rem; font-weight: 600; color: var(--ink-2); }
@media (max-width: 820px) {
  .phones { grid-template-columns: 1fr; max-width: 22rem; }
  .phone-fig--l .phone, .phone-fig--c .phone, .phone-fig--r .phone { transform: none; }
}

/* ---------- protocol ---------- */
.proto-list { margin-top: 2.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; border-top: 1px solid var(--line); }
.proto-list li {
  list-style: none;
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
  font-size: 0.94rem; color: var(--ink-2);
}
.proto-n { color: var(--ink-3); font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.15em; margin-right: 1.1em; }
.proto-k { font-weight: 700; color: var(--ink); }
@media (max-width: 720px) { .proto-list { grid-template-columns: 1fr; } }

/* ---------- offer: the one shine card ---------- */
.offer-card {
  margin-top: 2.6rem;
  padding: clamp(1.8rem, 5vw, 3.2rem);
  max-width: 46rem;
  border-radius: 14px;
}
/* Linear's pointer-tracked border shine: a brighter 1px ring revealed by a
   radial mask at the cursor. js/engine.js drives --mx/--my on fine pointers. */
.offer-shine {
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.55);
  -webkit-mask-image: radial-gradient(220px 220px at var(--mx, -300px) var(--my, -300px), #000 0%, rgba(0, 0, 0, 0.4) 45%, transparent 75%);
  mask-image: radial-gradient(220px 220px at var(--mx, -300px) var(--my, -300px), #000 0%, rgba(0, 0, 0, 0.4) 45%, transparent 75%);
  pointer-events: none;
}
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2rem; }
.price { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 200; line-height: 1; }
.price-note { font-size: 0.92rem; color: var(--ink-2); max-width: 34ch; }
.offer-list { margin-top: 2.2rem; display: grid; gap: 0; }
.offer-list li {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-block: 0.95rem;
  font-size: 0.95rem; color: var(--ink-2);
}
.offer-k { font-weight: 700; color: var(--ink); }
.btn-claim {
  display: inline-block; margin-top: 2.4rem;
  background: var(--ink); color: var(--base);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.2rem 2.5rem;
  border-radius: 3px;
  transition: filter var(--t-fast);
  will-change: transform;
}
.btn-claim:hover, .btn-claim:focus-visible { filter: brightness(1.12); }
.offer-recap { margin-top: 1.6rem; color: var(--ink-3); }
.offer-fine { margin-top: 2rem; color: var(--ink-3); }

/* ---------- close + footer ---------- */
.footer { padding: 3rem 0 2.4rem; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.footer .micro { color: var(--ink-3); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- reveals ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--e-out), transform 700ms var(--e-drama);
}
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-cue-line { animation: none; transform: none; }
  .hero-line .hw { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
