/* Hallmark · genre: atmospheric · macrostructure: Centred Artefact (the loop as focal object) · theme: custom
 * vibe: "one gold ring in a dark room" · paper oklch(11% 0.006 70) · accent oklch(86% 0.15 88) gold (#F6CA52 brand)
 * display: Instrument Serif roman, sentence case (kept deliberately: approved hero) · body: Hanken Grotesk · mono: JetBrains Mono
 * axes: dark / classical-serif / warm · nav: none (hero-led) · footer: Ft2 inline single line
 * direction: B "The Loop", picked by Urban 2026-09-26 · pre-emit critique: P5 H5 E4 S4 R5 V5 */

:root {
  --ink: oklch(11% 0.006 70);
  --ink-2: oklch(16% 0.008 70);
  --ink-3: oklch(20% 0.01 70);
  --rule: oklch(28% 0.012 70);
  --cream: oklch(95% 0.01 85);
  --cream-dim: oklch(80% 0.012 85);
  --muted: oklch(64% 0.012 85);
  --gold: oklch(86% 0.15 88);
  --gold-hover: oklch(90% 0.14 90);
  --gold-line: oklch(86% 0.15 88 / .45);
  --bloom: oklch(86% 0.15 88 / .09);
  --shadow: oklch(0% 0 0 / .6);

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --text-sm: 15px; --text-md: 18px; --text-lg: 21px;
  --space-xs: 8px; --space-sm: 16px; --space-md: 24px; --space-lg: 40px; --space-xl: 64px; --space-2xl: 128px;
  --radius: 18px; --radius-pill: 999px;
  --wrap: 1080px;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--cream); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  background-color: var(--ink); background-image: radial-gradient(55% 45% at 50% 30%, var(--bloom), transparent 70%); background-repeat: no-repeat; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
a { color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font: 500 12px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-md); }
.kicker { color: var(--gold); font-size: var(--text-sm); margin-bottom: var(--space-sm); }

.block { padding: var(--space-2xl) 0; }
.block h2 { font: 400 clamp(40px, 4.8vw, 66px)/1.02 var(--font-display); letter-spacing: -.01em; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: var(--space-md); padding: var(--space-lg) var(--space-md); text-align: center; }
/* countdown: serif numerals, mono labels, hairline dividers. Two instances (hero + final), one ticker. */
.countdown { display: grid; justify-items: center; gap: 12px; }
.countdown__label { color: var(--gold); }
.countdown__units { display: flex; align-items: stretch; }
.countdown__unit { display: grid; justify-items: center; gap: 6px; min-width: 88px; padding: 0 var(--space-sm); }
.countdown__unit + .countdown__unit { border-left: 1px solid var(--rule); }
.countdown__num { font: 400 clamp(40px, 4.2vw, 58px)/.9 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--cream); min-width: 2ch; text-align: center; }
.countdown__lbl { color: var(--muted); font-size: 11px; }
.countdown.is-live .countdown__units { display: none; }
.countdown.is-live .countdown__label { font-size: 14px; }
.countdown--final { margin-top: var(--space-sm); }
.countdown--final .countdown__num { font-size: clamp(34px, 3.4vw, 46px); }

/* the ring: headline lives dead-centre inside it, nothing else crosses it */
.ring { position: relative; width: min(480px, 86vw, 48svh); aspect-ratio: 1; display: grid; place-items: center; container-type: inline-size; }
.ring > .loop { position: absolute; inset: 0; --size: 100%; --w: 2px; --loop-speed: 14s; }
.ring > .loop.inner { inset: 8%; width: 84%; height: 84%; --w: 1px; --loop-speed: 22s; opacity: .35; animation-direction: reverse; }
.ring h1 { position: relative; font: 400 13.8cqi/.95 var(--font-display); letter-spacing: -.02em; max-width: 80%; }
.ring h1 .accent { color: var(--gold); }

.hero__lower { display: grid; justify-items: center; gap: 20px; width: 100%; }
.lede { max-width: 52ch; color: var(--cream-dim); font-size: var(--text-md); }

/* ---------- opt-in ---------- */
.optin { display: flex; gap: 6px; padding: 6px; width: 100%; max-width: 640px; border: 1px solid var(--rule); border-radius: var(--radius-pill); background: var(--ink-2); }
.optin input { flex: 1; min-width: 0; height: 54px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--cream); font: 400 17px var(--font-body); }
.optin input ~ input { border-left: 1px solid var(--rule); border-radius: 0; }
.optin input:first-of-type { flex: .7; }
.optin__msg { margin-top: 10px; color: oklch(78% 0.13 40); font-size: 15px; }
.optin button:disabled { opacity: .7; cursor: wait; }
.optin input::placeholder { color: var(--muted); }
.optin input:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.optin button { height: 54px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--gold); color: var(--ink); font: 600 16px/1 var(--font-body); cursor: pointer; white-space: nowrap; transition: background .2s var(--ease-out), transform .2s var(--ease-out); }
.optin button:hover { background: var(--gold-hover); }
.optin button:active { transform: translateY(1px); }
.optin button:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.when { display: grid; gap: 4px; color: var(--muted); }
.when .mono { color: var(--cream-dim); }
.when__local { font-size: 14px; }
.tz { white-space: nowrap; }

/* ---------- problem ---------- */
.problem .wrap { max-width: 880px; }
.problem h2 { max-width: 21ch; }
.pains { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; gap: 10px; }
.pains li { display: flex; gap: var(--space-md); align-items: center; padding: var(--space-md) var(--space-lg); border-radius: var(--radius); background: var(--ink-2); font-size: var(--text-md); color: var(--cream-dim); }
.pains .loop { --size: 22px; --w: 2px; }
.pains li:nth-child(2) .loop { animation-delay: -.5s; }
.pains li:nth-child(3) .loop { animation-delay: -1s; }
.pains li:nth-child(4) .loop { animation-delay: -1.5s; }
.pains li:nth-child(5) .loop { animation-delay: -2s; }

/* ---------- big idea ---------- */
.idea { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--ink-2); }
.idea__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-xl); align-items: center; }
.idea__mark { display: grid; place-items: center; }
.idea__mark .loop { --size: 200px; --w: 3px; --loop-speed: 10s; }
.idea__line { font: 400 clamp(40px, 5vw, 72px)/1 var(--font-display); letter-spacing: -.015em; max-width: 17ch; }
.idea__line .accent { color: var(--gold); }
.idea__body { margin-top: var(--space-md); max-width: 54ch; font-size: var(--text-md); color: var(--cream-dim); }

/* ---------- agenda ---------- */
.steps { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.steps li { padding: var(--space-lg); border-radius: var(--radius); background: var(--ink-2); border: 1px solid transparent; transition: border-color .25s var(--ease-out); }
.steps li:hover { border-color: var(--rule); }
.steps__n { color: var(--gold); }
.steps h3 { margin-top: var(--space-md); font: 400 32px/1.05 var(--font-display); max-width: 22ch; }
.steps p { margin-top: 12px; color: var(--cream-dim); max-width: 40ch; }

/* ---------- host ---------- */
.host__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--space-xl); align-items: center; }
.host__photo { position: relative; }
.host__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); box-shadow: 0 40px 80px -40px var(--shadow); }
.host h2 { max-width: 15ch; margin-bottom: var(--space-md); }
.host__copy p { color: var(--cream-dim); max-width: 54ch; }
.host__copy p + p { margin-top: var(--space-sm); }



/* ---------- final ---------- */
.final { display: grid; justify-items: center; gap: var(--space-lg); text-align: center; padding: 0 var(--space-md) var(--space-2xl); }
.final .ring { width: min(420px, 78vw); }
.final .ring h2 { position: relative; font: 400 12.4cqi/.98 var(--font-display); letter-spacing: -.015em; max-width: 76%; }
.final .ring .accent { color: var(--gold); }

.foot { padding: var(--space-lg) var(--space-md) 120px; border-top: 1px solid var(--rule); text-align: center; color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }

.sticky { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 var(--space-sm); }
  .block { padding: var(--space-xl) 0; }
  .hero { min-height: 0; padding: var(--space-lg) var(--space-sm) var(--space-xl); gap: var(--space-md); }
  .ring { width: min(400px, 88vw); }
  .final { padding: 0 var(--space-sm) var(--space-xl); }
  .countdown__unit { min-width: 0; flex: 1; padding: 0 12px; }
  .countdown__num { font-size: 40px; }
  .countdown--final .countdown__num { font-size: 34px; }
  .lede { font-size: 16px; }
  .optin { flex-direction: column; border-radius: 22px; }
  .optin input { flex: none; height: 54px; border-radius: 16px; background: var(--ink-3); }
  .optin input ~ input { border-left: 0; border-radius: 16px; }
  .optin input:first-of-type { flex: none; }
  .optin button { border-radius: 16px; }
  .pains li { padding: var(--space-md); gap: var(--space-sm); font-size: 16px; }
  .idea__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .idea__mark { justify-items: start; }
  .idea__mark .loop { --size: 96px; }
  .idea__body { font-size: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: var(--space-md); }
  .steps h3 { font-size: 28px; }
  .host__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .host__photo { max-width: 320px; }
        
  .sticky { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
    padding: 8px 8px 8px 18px; border-radius: var(--radius-pill); background: oklch(16% 0.008 70 / .85); backdrop-filter: blur(12px);
    color: var(--cream-dim); text-decoration: none; box-shadow: 0 8px 18px -8px var(--shadow); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
  .sticky__when { display: grid; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.25; white-space: nowrap; }
  .sticky__when .mono { font-size: 11px; color: var(--gold); }
  .sticky strong { padding: 12px 18px; border-radius: var(--radius-pill); background: var(--gold); color: var(--ink); font: 600 15px/1 var(--font-body); white-space: nowrap; }
  .sticky.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
