/* Boring Game: site stylesheet.
   Tokens first, then layout, then each section. Dark only, by design. */

:root {
  --bg: #08080C;
  --bg-2: #0E0E14;
  --surface: #14141B;
  --surface-2: #1B1B24;
  --line: rgba(243, 240, 234, .08);
  --line-2: rgba(243, 240, 234, .16);
  --text: #F3F0EA;
  --muted: #8C8C99;
  --dim: #55555F;
  --tang: #FF7A45;
  --iris: #7C6CFF;
  --mint: #5EE7C0;
  --grad: linear-gradient(100deg, var(--tang) 0%, #FF5C8A 45%, var(--iris) 100%);
  --display: "Unbounded", "Arial Black", Impact, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 64px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100svh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul[role="list"], .tags, .nav-links, .footer-links { list-style: none; padding: 0; margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--tang); color: #0B0B10; }

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--text); color: var(--bg);
  font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* ---------- progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 8, 12, .62);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 44px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: .92rem; letter-spacing: -.02em;
}
.mark { border-radius: 10px; }
.mark .lid { transition: height .3s var(--ease); }
.mark .mouth { transition: d .35s var(--ease); }
.brand:hover .mark .lid { height: 2px; }
.brand:hover .mark .mouth { d: path("M24 42 C27 48 37 48 40 42"); }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; color: color-mix(in srgb, var(--text) 82%, transparent); font-weight: 500; font-size: .95rem;
  border-radius: 999px; transition: color .25s, background-color .25s;
}
.nav-links a:hover { color: var(--text); background: rgba(243, 240, 234, .08); }
@media (min-width: 760px) { .nav-links { display: flex; } }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .3s;
  will-change: transform;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: var(--grad); filter: blur(14px); opacity: 0; transition: opacity .35s;
}
.btn-primary:hover { color: var(--bg); }
.btn-primary:hover::after { opacity: .75; }
.btn-ghost { background: rgba(243, 240, 234, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(243, 240, 234, .09); border-color: rgba(243, 240, 234, .3); }
.btn-nav { min-height: 42px; padding: 0 18px; font-size: .92rem; background: var(--text); color: var(--bg); }
.btn-nav:hover { background: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 45%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 20%, transparent 100%);
}
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(70vw, 620px); aspect-ratio: 1; border-radius: 50%;
  right: max(-10vw, calc(50% - 720px)); top: 50%; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(255, 122, 69, .45), rgba(124, 108, 255, .25) 55%, transparent 100%);
  filter: blur(40px);
  opacity: 0;
}
.hero-inner {
  width: 100%; max-width: var(--max);
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 24px; } }
.hero-copy { text-align: center; }
@media (min-width: 900px) { .hero-copy { text-align: left; } }
.hero-eyebrow { margin-bottom: clamp(18px, 3vh, 32px); opacity: 0; }
@media (max-width: 480px) { .hero-eyebrow { font-size: .68rem; letter-spacing: .08em; } }
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 8.6rem);
  line-height: .95;
  letter-spacing: -.035em;
  display: grid; justify-items: center;
}
@media (min-width: 900px) { .hero-title { justify-items: start; } }
.hero-line { display: block; overflow: hidden; padding: .04em 0; }
.hero-word { display: inline-block; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hero-word.is-stuck { white-space: nowrap; }
.hero-word-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.hero-sub {
  max-width: 36ch; margin: clamp(22px, 3vh, 36px) auto 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.5; color: var(--muted);
  text-wrap: pretty;
}
@media (min-width: 900px) { .hero-sub { margin-left: 0; } }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
@media (min-width: 900px) { .hero-cta { justify-content: flex-start; } }
.hero-sub, .hero-cta { opacity: 0; }

.hero-face {
  justify-self: center;
  width: min(44vw, 210px);
  order: -1;
  display: grid; justify-items: center; gap: 14px;
  cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
  touch-action: manipulation;
}
@media (min-width: 900px) { .hero-face { width: min(34vw, 420px); order: 0; } }
.face-body { width: 100%; touch-action: pan-y; will-change: transform; cursor: grab; }
.face-body.is-held { cursor: grabbing; }
.hero-face .face { position: relative; width: 100%; filter: drop-shadow(0 40px 80px rgba(0, 0, 0, .6)); transform-origin: 50% 60%; }
.face-svg { display: block; width: 100%; height: auto; }
/* late night: the nightcap and the snoring, until the first tap */
/* the cap is its own SVG box over the top of the head (76 units wide, from 26 above the face to 20 into it), so it never relies on SVG overflow */
.face-cap { position: absolute; left: 0; top: calc(-26 / 64 * 100%); width: calc(76 / 64 * 100%); max-width: none; height: auto; pointer-events: none; opacity: 0; transition: opacity .6s; }
/* closed eyes are drawn, not just hidden: on while asleep or after it has given up */
.face .shut { opacity: 0; transition: opacity .25s; }
.face .pupil { transition: opacity .2s; }
.is-asleep .face .shut, .is-fedup .face .shut { opacity: 1; }
.is-asleep .face .pupil, .is-fedup .face .pupil { opacity: 0; }
.is-night .face-cap { opacity: 1; }
/* on phones the face sits right under the nav: leave room for the cap */
@media (max-width: 899px) { .is-night .face-body { padding-top: 34%; } }
.face-body { position: relative; }
.face-zzz { position: absolute; left: 97%; top: 26%; font-size: clamp(1rem, 3vw, 1.6rem); color: var(--muted); pointer-events: none; }
.face-zzz i { position: absolute; left: 0; top: 0; font-style: normal; opacity: 0; }
.is-asleep .face-zzz i { animation: zzz 2.6s ease-out infinite; }
.is-asleep .face-zzz i:nth-child(2) { animation-delay: .85s; }
.is-asleep .face-zzz i:nth-child(3) { animation-delay: 1.7s; }
.face-bg { transition: fill .3s; }
.face-caption {
  width: max-content; max-width: min(92vw, 560px); min-height: 2.6em; text-align: center; text-wrap: balance;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); opacity: 0;
}
.scroll-cue {
  position: absolute; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 13px;
  border: 1.5px solid var(--line-2); opacity: 0;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--text);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; padding: 14px 0; display: grid; gap: 10px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  font-family: var(--display); font-weight: 700; font-size: clamp(.9rem, 2vw, 1.2rem);
  letter-spacing: -.01em; color: var(--muted);
  animation: marquee 32s linear infinite;
}
.marquee-track span { white-space: nowrap; }
.marquee-track i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.marquee-alt { color: var(--dim); animation-direction: reverse; animation-duration: 40s; }
.marquee-alt i { opacity: .5; }
.js.has-momentum .marquee-track { animation: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em;
  text-wrap: balance;
}
.section-lede { margin-top: 20px; max-width: 52ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); text-wrap: pretty; }

/* ---------- catalog: stacked by default, one sideways strip when JS pins it ---------- */
.catalog { position: relative; }
.track {
  position: relative;
  display: grid; gap: 22px;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
}
.panel-head { max-width: 760px; padding-top: clamp(24px, 4vw, 48px); }
.panel-head:first-child { padding-top: 0; }
.panel-head .eyebrow { margin-bottom: 18px; }
.panel-cue { display: none; margin-top: 28px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.panel-cue span { display: inline-block; animation: cue-x 1.6s var(--ease) infinite; }
@keyframes cue-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.catalog-rail { display: none; }

.is-horizontal .catalog { height: 100svh; }
.is-horizontal .catalog-pin { height: 100svh; display: grid; align-items: center; overflow: hidden; padding-top: var(--nav-h); }
.is-horizontal .track {
  display: flex; align-items: center; gap: 22px;
  width: max-content; max-width: none; margin: 0; padding: 0 var(--gutter);
  will-change: transform;
}
.is-horizontal .panel { flex: none; }
.is-horizontal .panel-head { width: min(440px, 36vw); padding-top: 0; }
.is-horizontal .panel-cue { display: block; }
.is-horizontal .stage.panel { width: min(1100px, calc(100vw - 2 * var(--gutter))); }
.is-horizontal .next.panel { width: min(520px, 42vw); }
.is-horizontal .catalog-rail {
  display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 2px;
  background: var(--line); pointer-events: none;
}
.is-horizontal .catalog-rail span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- game stages ---------- */
.stage {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--g1), var(--g2));
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s, box-shadow .5s var(--ease), transform .5s var(--ease);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 80% at var(--sx, 30%) 50%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
@media (hover: hover) {
  .stage:hover { border-color: rgba(243, 240, 234, .32); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); transform: translateY(-3px); }
  .stage:hover::before { opacity: 1; }
}
@media (max-width: 859px) {
  /* stacked card: the gradient runs top to bottom so the art's own dark ground melts into the copy */
  .stage { border-radius: 22px; background: linear-gradient(180deg, var(--g1) 0%, var(--g1) 45%, var(--g2) 100%); }
  .stage::before { opacity: 1; }
}
/* phones: art bleeds to the card edge, copy sits under it; wide screens: side by side */
.stage-link {
  display: grid; gap: 0; padding: 0;
  text-decoration: none; color: var(--text); border-radius: inherit;
}
.stage-link:focus-visible { outline: 2px solid var(--mint); outline-offset: -6px; }
.stage-art { position: relative; overflow: hidden; }
.stage-art img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; transform-origin: 50% 50%; transition: transform .7s var(--ease); }
/* the art fades into the card's own gradient so the copy reads as one piece with it */
.stage-art::after {
  content: ""; position: absolute; inset: 55% 0 -1px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--g1) 88%, var(--g2)));
}
.stage-copy { display: grid; gap: 12px; align-content: center; padding: 8px 22px 24px; }
@media (min-width: 860px) {
  .stage-link { grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(28px, 4vw, 56px); min-height: 440px; padding: clamp(24px, 3vw, 40px); }
  .stage:nth-of-type(even) .stage-art { order: 2; }
  .stage:nth-of-type(even) { --sx: 70%; }
  .stage-art { border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); transition: box-shadow .7s var(--ease); }
  .stage-art::after { display: none; }
  .stage-copy { gap: 14px; padding: 0; }
}
.stage-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px; }
.stage-meta img { width: 22px; height: 22px; border-radius: 6px; flex: none; }
@media (max-width: 480px) { .stage-meta { font-size: .68rem; letter-spacing: .08em; } .stage-meta img { width: 18px; height: 18px; } }
/* the last tag has a second opinion on hover (only where hovering is a thing; on phones it would stick after a tap) */
.tag-flip { display: inline-grid; grid-template-areas: "t"; justify-items: start; }
.tag-flip span { grid-area: t; white-space: nowrap; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.tag-flip span + span { opacity: 0; transform: translateY(6px); color: var(--text); }
@media (hover: none) { .tag-flip span + span { display: none; } }
.stage-link:focus-visible .tag-flip span:first-child { opacity: 0; transform: translateY(-6px); }
.stage-link:focus-visible .tag-flip span + span { opacity: 1; transform: none; }
.stage h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.85rem, 3.6vw, 2.8rem); letter-spacing: -.03em; line-height: 1.05; }
.stage-copy > p:not(.eyebrow) { color: color-mix(in srgb, var(--text) 72%, transparent); font-size: clamp(.98rem, 1.5vw, 1.1rem); line-height: 1.5; max-width: 44ch; text-wrap: pretty; }
.stage-cta {
  display: inline-flex; align-items: center; gap: 12px; justify-self: start; margin-top: 8px;
  min-height: 52px; padding: 0 22px 0 24px; border-radius: 999px;
  border: 1.5px solid rgba(243, 240, 234, .35); color: var(--text);
  font-weight: 600; font-size: 1rem;
  /* no transform transition here: the GSAP reveal animates transform and a CSS transition on it leaves the button parked low */
  transition: background-color .35s, color .35s, border-color .35s, margin-left .35s var(--ease), filter .2s;
}
.stage-cta svg { transition: transform .35s var(--ease); }
@media (max-width: 859px) {
  /* on phones the button is the whole width: a thumb target, not a mouse target */
  .stage-cta { justify-self: stretch; justify-content: center; margin-top: 10px; min-height: 54px; background: var(--text); color: var(--bg); border-color: var(--text); }
  .stage-link:active .stage-cta { filter: brightness(.88); }
}
@media (hover: hover) {
  .stage:hover .stage-art { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
  .stage:hover .stage-art img { transform: scale(1.06) rotate(-1deg); }
  .stage:nth-of-type(even):hover .stage-art img { transform: scale(1.06) rotate(1deg); }
  .stage:hover .tag-flip span:first-child { opacity: 0; transform: translateY(-6px); }
  .stage:hover .tag-flip span + span { opacity: 1; transform: none; }
  .stage:hover .stage-cta { background: var(--text); color: var(--bg); border-color: var(--text); margin-left: 4px; }
  .stage:hover .stage-cta svg { transform: translateX(4px); }
}

.next {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px; border: 1px dashed var(--line-2);
  display: grid; gap: 18px; align-items: center;
}
@media (min-width: 860px) { .next { grid-template-columns: 1fr auto; } }
.is-horizontal .next { grid-template-columns: 1fr; }
.next-text { display: grid; gap: 8px; }
.next-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -.02em; }
.next-body { color: var(--muted); max-width: 60ch; text-wrap: pretty; }

/* ---------- why: rolling moment + the clock ---------- */
.why-grid { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1.15fr .85fr; } }
.why-copy .eyebrow { margin-bottom: 18px; }
.why-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em;
  display: grid; gap: .1em;
}
.why-lead { display: block; }
.roll { display: block; height: 1.15em; overflow: hidden; font-size: .94em; }
.roll-track { display: block; will-change: transform; }
.roll-track span {
  display: block; height: 1.15em; line-height: 1.15em; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .05em;
}
.why-text {
  margin-top: 26px; max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.55; color: var(--muted);
  text-wrap: pretty;
}
.clock { justify-self: center; display: grid; justify-items: center; gap: 14px; text-align: center; }
.ring-wrap { position: relative; width: min(72vw, 320px); }
.ring-svg { width: 100%; height: auto; display: block; }
.ring-track { stroke: rgba(243, 240, 234, .09); }
.ring-fill { stroke: url(#ring-grad); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring-fill.is-wrapping { transition: none; }
.ring-inner { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; }
.clock-face { position: relative; display: inline-block; width: 36px; height: 36px; margin-bottom: 4px; }
.clock-face svg { width: 36px; height: 36px; border-radius: 10px; }
.clock-face .lid { transition: height .6s var(--ease); }
.clock-face.is-sleepy .lid { height: 9.5px; }
.clock-face.is-asleep .lid { height: 14px; }
.clock-face.is-awake .lid { height: 1.5px; }
.zzz { position: absolute; left: 100%; top: -4px; margin-left: 2px; font-size: .7rem; color: var(--muted); pointer-events: none; }
.zzz i { position: absolute; left: 0; top: 0; font-style: normal; opacity: 0; }
.clock-face.is-asleep .zzz i { animation: zzz 2.4s ease-out infinite; }
.clock-face.is-asleep .zzz i:nth-child(2) { animation-delay: .8s; }
.clock-face.is-asleep .zzz i:nth-child(3) { animation-delay: 1.6s; }
@keyframes zzz { 0% { transform: translate(0, 0) scale(.7); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(10px, -22px) scale(1.15); opacity: 0; } }
.clock-label { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clock-time {
  font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 500; line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; color: var(--muted);
}
.clock-conv { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.clock-conv .num, #conv-tail { display: inline-block; }
.clock-note { color: var(--muted); font-size: .95rem; max-width: 32ch; min-height: 1.6em; transition: opacity .3s; }
.clock-note.is-swapping { opacity: 0; }
.clock-reset {
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: none; color: var(--muted);
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: color .25s, border-color .25s, background-color .25s;
}
.clock-reset:hover { color: var(--text); border-color: rgba(243, 240, 234, .35); background: rgba(243, 240, 234, .05); }

/* ---------- zeros ---------- */
.zeros { text-align: center; }
.zeros.section { padding-bottom: clamp(60px, 9vw, 120px); }
.zero-grid { display: grid; gap: 28px 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .zero-grid { grid-template-columns: repeat(4, 1fr); } }
.zero {
  display: block;
  font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 500; line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  /* the gradient is always underneath; the solid fill fades out to reveal it */
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: var(--text);
  transition: -webkit-text-fill-color 1.2s ease .1s;
}
.zero.is-zero { -webkit-text-fill-color: transparent; }
.zero { position: relative; transition: opacity .5s; }
.zero.is-particles { -webkit-text-fill-color: transparent; background-image: none; transition: none; }
.zeros { position: relative; }
.zeros-canvas { position: absolute; left: calc(50% - 50vw); top: -30%; width: 100vw; height: 160%; pointer-events: none; transition: opacity .5s; }
.zero-label { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; }
.zero-note { margin-top: 44px; color: var(--muted); font-size: 1.02rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; margin-left: -10px;
  text-decoration: none; color: var(--muted); font-size: .95rem; border-radius: 8px;
  transition: color .25s;
}
.footer-links a + a { margin-left: 0; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--dim); font-size: .88rem; }
.egg {
  /* both strings sit in one grid cell as hidden bold copies, so the hit-box is always the widest
     of them and never shrinks out from under the pointer mid-swap */
  position: relative; display: inline-grid; grid-template-areas: "t"; justify-items: start;
  padding-right: 12px; text-align: left; cursor: help;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; border-radius: 4px;
}
.egg-text, .egg-size { grid-area: t; white-space: nowrap; }
.egg-size { visibility: hidden; font-weight: 600; pointer-events: none; }
.egg-text { transition: color .25s; }
.egg.is-on .egg-text { color: var(--tang); font-weight: 600; }
.egg-tag {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 6px) scale(.9);
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  background: var(--text); color: var(--bg); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.egg.is-on .egg-tag { opacity: 1; transform: translate(-50%, 0) scale(1); }
.footer.is-egg .mark .lid { height: 2px; }
.footer.is-egg .mark .mouth { d: path("M24 42 C27 48 37 48 40 42"); }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .footer-note { grid-column: 1 / -1; }
}

/* ---------- the cursor: a dot that has opinions (fine pointers only) ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--text); translate: -50% -50%;
  box-shadow: 0 0 0 1.5px rgba(8, 8, 12, .55); opacity: 0;
  display: grid; place-items: center; overflow: hidden; white-space: nowrap;
  font: 500 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bg);
  transition: width .35s var(--ease), height .35s var(--ease), background-color .3s, color .3s, opacity .3s;
}
.cursor span { opacity: 0; transition: opacity .2s; }
.cursor.is-ring { width: 40px; height: 40px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--text), 0 0 0 1px rgba(8, 8, 12, .4); }
.cursor.is-pill { width: 88px; height: 40px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6); }
.cursor.is-pill span { opacity: 1; transition-delay: .12s; }
.cursor.is-pill.is-inverse { background: var(--bg); color: var(--text); }
.cursor.is-hidden { opacity: 0; }

/* ---------- the hidden game: don't blink ---------- */
.blink {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 24px;
  background: rgba(8, 8, 12, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.blink.is-open { opacity: 1; pointer-events: auto; }
.blink-card {
  width: min(100%, 460px); padding: 28px 28px 24px; border-radius: 24px;
  border: 1px solid var(--line-2); background: var(--surface);
  display: grid; gap: 16px; justify-items: center; text-align: center;
  transform: translateY(12px) scale(.98); transition: transform .4s var(--ease);
  user-select: none; -webkit-user-select: none;
}
.blink.is-open .blink-card { transform: none; }
.blink-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.2rem); letter-spacing: -.03em; line-height: 1; }
.blink-lede { color: var(--muted); font-size: .95rem; max-width: 34ch; text-wrap: pretty; min-height: 2.9em; }
.blink-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.blink-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--text); box-shadow: 0 0 24px rgba(243, 240, 234, .35); transition: transform .12s, opacity .06s; }
.blink-stage.is-shut .blink-dot { transform: scaleY(.08); opacity: .4; }
.blink-stage.is-over .blink-dot { background: var(--tang); box-shadow: none; }
.blink-time { position: absolute; right: 14px; top: 10px; font-family: var(--mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.blink-best { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.blink-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.blink .btn { min-height: 44px; padding: 0 18px; font-size: .92rem; }

/* ---------- reveals (JS sets the final state; without JS everything is visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .hero-eyebrow, .js .hero-sub, .js .hero-cta, .js .scroll-cue, .js .hero-glow, .js .face-caption { opacity: 0; }
html:not(.js) .hero-eyebrow, html:not(.js) .hero-sub, html:not(.js) .hero-cta, html:not(.js) .scroll-cue, html:not(.js) .hero-glow, html:not(.js) .face-caption { opacity: 1; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .scroll-cue span, .zzz i { animation: none !important; }
  .card-art img, .btn, .play svg { transition: none; }
  .js .reveal { opacity: 1; transform: none; }
}
