/* MODE3 · awwwards build · css
   Typography is the primary instrument: Montserrat, tabular numerals,
   monumental scale, generous negative space, high contrast.
   The page light (--bg / --ink / --accent) is written every frame by
   js/engine.js from the ONE scroll-derived day time. Everything below
   only consumes those variables. */

/* ---------- 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; /* ba40ee, dimmed for use on dark */

  /* the day (engine-driven; these are the pre-js / night defaults) */
  --bg: #0b0d10;
  --ink: #ede9e3;
  --ink-rgb: 237, 233, 227;
  --accent: #9fe6d3;
  --accent-rgb: 159, 230, 211;

  /* type scale */
  --t-hero: clamp(2.35rem, 8.2vw, 6.6rem);
  --t-mono: clamp(2rem, 6.4vw, 5rem);
  --t-h2: clamp(1.55rem, 4.2vw, 3.1rem);
  --t-clock: clamp(4.5rem, 19vw, 15rem);
  --t-lead: clamp(1.02rem, 1.5vw, 1.2rem);
  --t-micro: 0.72rem;

  /* motion (mirrored in js) */
  --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 { 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); }

/* film grain, one cheap tiled svg, no blend recomposite */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  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.6'/%3E%3C/svg%3E");
}

/* ---------- shared ---------- */
.wrap { max-width: 66rem; 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;
  opacity: 0.85;
}
.accent { color: var(--accent); }
.accent-ink { font-style: normal; color: var(--accent); }
.tabnum { font-variant-numeric: tabular-nums; }
.dot-sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; vertical-align: middle; margin-inline: 0.65em; opacity: 0.6; }
.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; }

.h2 {
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 24ch;
  margin-top: 1.1rem;
}
.t-mono {
  font-size: var(--t-mono);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-top: 1.1rem;
}
.lead {
  font-size: var(--t-lead);
  max-width: 54ch;
  margin-top: 1.6rem;
  opacity: 0.92;
}
.lead--strong { font-weight: 600; opacity: 1; }

/* ---------- hud ---------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.1rem clamp(1.4rem, 4vw, 2.2rem);
  pointer-events: none;
}
.hud-brand {
  pointer-events: auto;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.08em;
  text-decoration: none;
}
.hud-clock { font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.18em; }
.hud-sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; vertical-align: middle; margin-inline: 0.7em; opacity: 0.5; }
#hudState { color: var(--accent); }

/* ---------- sticky cta ---------- */
.enter-cta {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 100;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(var(--ink-rgb), 0.35);
  background: rgba(var(--ink-rgb), 0.04);
  color: var(--ink);
  border-radius: 2px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--t-move) var(--e-out), transform var(--t-move) var(--e-out),
              border-color var(--t-base), color var(--t-base), background var(--t-base);
}
.enter-cta.on { opacity: 1; transform: none; pointer-events: auto; }
.enter-cta:hover, .enter-cta:focus-visible { border-color: var(--accent); color: var(--accent); }
html.no-js .enter-cta { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- blocks ---------- */
.block { position: relative; padding-block: clamp(7rem, 22vh, 13rem); }
.block--shift, .state, .close { min-height: 88vh; display: flex; align-items: center; }
.state .wrap, .block--shift .wrap, .close .wrap { width: 100%; }

/* recognition moments */
.moments { margin-top: 3.5rem; display: grid; gap: 2.6rem; }
.moment {
  display: grid; gap: 0.4rem 2.5rem;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  align-items: baseline;
  border-top: 1px solid rgba(var(--ink-rgb), 0.18);
  padding-top: 1.6rem;
}
.moment-time {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 300; letter-spacing: 0.02em;
  grid-row: span 2;
}
.moment-line { font-size: var(--t-lead); max-width: 46ch; }
.moment-tag { font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.5; }
/* micro: rows answer the cursor, quietly */
@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); }
}

/* state sections */
.state-time {
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 200; line-height: 1; letter-spacing: 0.01em;
  opacity: 0.9;
}
.state-name { margin-top: 0.9rem; }
.state-name--prime { color: var(--prime); }
.state-name--perform { color: var(--perform); }
.state-name--unwind { color: var(--unwind); }
/* on light midday pages the pure brand hexes lose contrast; engine flips this class */
html.day-light .state-name--prime { color: #1f7a63; }
html.day-light .state-name--perform { color: #8a6d00; }
html.day-light .state-name--unwind { color: #7a3d99; }
html.day-light .accent, html.day-light .accent-ink, html.day-light #hudState { filter: none; }

/* ---------- 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; }
.hero-center { padding-inline: clamp(1.4rem, 6vw, 3rem); }
.hero-kicker { opacity: 0.6; }
.hero-h1 {
  margin-top: 1.4rem;
  font-size: var(--t-hero);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-line { display: block; }
.hero-line--2 { opacity: 0.55; }
.hw { display: inline-block; will-change: transform, opacity; }
.hero-sub { margin-top: 2rem; font-size: var(--t-lead); opacity: 0.8; }
.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.4rem; 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; opacity: 0.55; }
.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;
}
/* labels rest invisible (engine breathes them in while the band is live),
   so the dimmed waiting-state never exists as low-contrast static text */
.turn-a, .turn-b { will-change: opacity; opacity: 0; }
.turn-caption { position: absolute; bottom: 2.4rem; left: 0; right: 0; opacity: 0.55; }
.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.32), rgba(var(--accent-rgb), 0) 70%);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  pointer-events: none;
}

/* ---------- check ---------- */
.check-stage {
  margin-top: 3rem;
  height: min(60vh, 460px);
  border: 1px solid rgba(var(--ink-rgb), 0.22);
  border-radius: 4px;
  position: relative;
  overflow: clip;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.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; }
.ck-flash--go { background: var(--prime); }
.ck-flash--nogo { background: #ba40ee; }
.ck-dot {
  width: clamp(5.5rem, 14vw, 8rem); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(var(--ink-rgb), 0.35);
  display: grid; place-items: center;
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.2em;
  will-change: transform;
}
.ck-count { font-size: var(--t-micro); letter-spacing: 0.3em; opacity: 0.6; 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: none;
  border: 1px solid rgba(var(--ink-rgb), 0.4);
  border-radius: 2px;
  padding: 0.9rem 1.6rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  transition: border-color var(--t-base), color var(--t-base);
}
.ck-begin:hover, .ck-begin:focus-visible { border-color: var(--accent); color: var(--accent); }
.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: 800; line-height: 1.1; letter-spacing: -0.015em;
  max-width: 18ch;
}
.ck-real-sub { font-size: var(--t-micro); letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.55; }
.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 ---------- */
.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: 66rem; margin-inline: auto;
  padding-inline: clamp(1.4rem, 6vw, 3.5rem);
}
.kit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.kit-cell { display: grid; gap: 1rem; }
.kit-view { aspect-ratio: 3 / 4; position: relative; }
/* accent pool under each object, condenses as it resolves (--pr 0..1, engine-set) */
.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.24 * (1 - var(--pr, 1)) + 0.08)), transparent 70%);
}
.kit-line { font-size: 0.86rem; opacity: 0.75; max-width: 30ch; }
@media (max-width: 720px) {
  .kit { grid-template-columns: 1fr; gap: 3rem; }
  .kit-view { aspect-ratio: 16 / 10; }
}

/* ---------- offer ---------- */
.price-row { margin-top: 2.6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2rem; }
.price { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 200; line-height: 1; }
.price-note { font-size: 0.95rem; opacity: 0.75; max-width: 34ch; }
.offer-list { margin-top: 2.6rem; display: grid; gap: 1.1rem; max-width: 46rem; }
.offer-list li {
  list-style: none;
  border-top: 1px solid rgba(var(--ink-rgb), 0.16);
  padding-top: 1.05rem;
  font-size: 0.98rem; opacity: 0.9;
}
.offer-k { font-weight: 700; }
.btn-claim {
  display: inline-block; margin-top: 3rem;
  background: var(--ink); color: var(--bg);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.2em;
  padding: 1.25rem 2.6rem;
  border-radius: 2px;
  transition: transform var(--t-base) var(--e-out), background var(--t-base);
  will-change: transform;
}
.btn-claim:hover, .btn-claim:focus-visible { background: var(--accent); color: var(--base); }
.offer-fine { margin-top: 2.2rem; opacity: 0.5; }

/* ---------- close + footer ---------- */
.close { text-align: left; }
.footer { padding: 3rem 0 2.4rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; opacity: 0.6; }
.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; }
}
