/* buzzer.fit/next — the page is a WOD (2026-11-01). Dark, sporty, the brand violet as stage
   light, chalk yellow only where the TV uses it. Barlow Condensed for display, Inter for text. */
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 800;
  font-display: swap;
  src: url(/site/fonts/BarlowCondensed-ExtraBold.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-display: swap;
  src: url(/site/fonts/Inter-Medium.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url(/site/fonts/Inter-SemiBold.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 700;
  font-display: swap;
  src: url(/site/fonts/Inter-Bold.woff2) format('woff2');
}

:root {
  --bg: #07060b;
  --bg-2: #0e0c14;
  --card: #14111b;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f6f4f9;
  --muted: #a39fae;
  --violet: #9625ef;
  --violet-2: #b963fd;
  --violet-deep: #3d0a66;
  --chalk: #ffd60a;
  --gutter: clamp(16px, 4vw, 48px);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
  /* `clip` keeps the layout viewport at the screen's width on phones; `hidden` does not. */
  overflow-x: clip;
  /* Phones must not scale the text on their own (Chrome's "font boosting"): the sizes are ours. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    500 16px/1.6 Inter,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
}
.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}
/* Romanian capitals carry marks above (Î, Â, Ă) and below (Ș, Ț); give them room. */
:root[lang='ro'] .display {
  line-height: 1.04;
}
.eyebrow {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-2);
}
.sub,
.lead {
  color: var(--muted);
  max-width: 38em;
}
.small {
  font-size: 13px;
  color: var(--muted);
}

/* Chalk-dust grain over everything, never in the way. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Intro: 3, 2, 1, GO -------------------------------------------------------------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 50%, #1a0b2a 0%, var(--bg) 70%);
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}
#intro.done {
  opacity: 0;
  visibility: hidden;
}
#intro .count {
  grid-area: 1 / 1;
  font-family: var(--display);
  font-weight: 800;
  font-size: min(48vw, 60vh);
  line-height: 1;
  color: var(--ink);
  opacity: 0;
  transform: scale(1.4);
  text-shadow: 0 0 80px rgba(150, 37, 239, 0.7);
}
#intro .count.show {
  animation: count 0.48s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
#intro .go {
  color: var(--violet-2);
  font-size: min(36vw, 50vh);
}
#intro .skip {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: var(--gutter);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--muted);
  cursor: pointer;
}
@keyframes count {
  0% {
    opacity: 0;
    transform: scale(1.5);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* ---- Bar --------------------------------------------------------------------------- */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(7, 6, 11, 0.85), rgba(7, 6, 11, 0));
  backdrop-filter: blur(6px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}
.mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--violet);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(150, 37, 239, 0.5);
}
nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
nav .opt {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
}
nav .opt:hover {
  color: var(--ink);
}
.lang {
  display: inline-grid;
  place-items: center;
  height: 36px;
  min-width: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.lang:hover {
  color: var(--ink);
  border-color: var(--violet);
}
.sound {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.sound .waves {
  opacity: 0.25;
}
.sound[aria-pressed='true'] {
  color: var(--ink);
  border-color: var(--violet);
  background: rgba(150, 37, 239, 0.18);
}
.sound[aria-pressed='true'] .waves {
  opacity: 1;
}
.clock {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  align-items: center;
}
.clock-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--violet-2);
}
.clock b {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  min-width: 3.1em;
  text-align: right;
}
.clock.last b {
  color: #ff5a5f;
}
.wodbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.wodbar i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--violet), var(--violet-2));
  box-shadow: 0 0 12px rgba(185, 99, 253, 0.8);
}
@media (max-width: 640px) {
  nav .opt,
  .sound .label,
  .clock-label {
    display: none;
  }
}

/* ---- Pills ------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.pill:active {
  transform: scale(0.97);
}
.pill.primary {
  color: #fff;
  background: linear-gradient(180deg, #a63bff, #8a14e6);
  box-shadow:
    0 8px 28px rgba(150, 37, 239, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pill.primary:hover {
  box-shadow:
    0 10px 40px rgba(150, 37, 239, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pill.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Hero -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  min-height: var(--vh, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 64px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-glow {
  position: absolute;
  top: -10%;
  right: 0;
  transform: translateX(35%);
  width: 80vw;
  height: 80vw;
  max-width: 1000px;
  max-height: 1000px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 37, 239, 0.35), rgba(150, 37, 239, 0) 70%);
  pointer-events: none;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    opacity: 0.6;
    transform: translateX(35%) scale(0.94);
  }
}
.hero-clock {
  position: absolute;
  right: var(--gutter);
  bottom: 7%;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(120px, 15vw, 260px);
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 2px rgba(185, 99, 253, 0.45);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-clock::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 0.04em;
  background: linear-gradient(90deg, var(--violet), var(--violet-2));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  box-shadow: 0 0 20px rgba(185, 99, 253, 0.8);
}
.hero > :not(.hero-glow):not(.hero-clock) {
  position: relative;
  z-index: 1;
}
@media (max-width: 1100px) {
  .hero-clock {
    opacity: 0.35;
  }
}
@media (max-width: 700px) {
  .hero-clock {
    display: none;
  }
}
.hero h1 {
  font-size: clamp(58px, 11vw, 168px);
  margin-bottom: 28px;
}
.hero h1 .line {
  display: block;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(180deg, #d9a6ff, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero .lead {
  font-size: clamp(17px, 1.6vw, 21px);
  margin: 0 0 32px;
}
.cue {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cue span {
  width: 54px;
  height: 2px;
  background: var(--violet);
  transform-origin: left;
  animation: tick 1.2s ease-in-out infinite;
}
@keyframes tick {
  0% {
    transform: scaleX(0);
  }
  60% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

/* ---- Story: pinned stage ------------------------------------------------------------ */
.story {
  position: relative;
  /* Eight steps of one screen each, plus the screen that stays pinned. */
  height: calc(9 * 100svh);
  height: calc(9 * var(--vh, 100svh));
}
.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  height: var(--vh, 100svh);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
  align-items: center;
  padding: 80px var(--gutter) 40px;
  max-width: 1440px;
  margin: 0 auto;
}
.stage-glow {
  position: absolute;
  right: 0;
  transform: translateX(15%);
  top: 10%;
  width: 70vw;
  height: 70vw;
  max-width: 1100px;
  max-height: 1100px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 37, 239, var(--glow, 0.28)), transparent 70%);
  pointer-events: none;
  transition: background 0.4s;
}
.pulse-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 120px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.35;
}
.pulse-line svg {
  width: 100%;
  height: 100%;
}
.pulse-line path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 2;
  stroke-dasharray: 1600;
  stroke-dashoffset: calc(1600 - 1600 * var(--line, 0));
  filter: drop-shadow(0 0 6px rgba(185, 99, 253, 0.9));
}
.captions {
  position: relative;
  z-index: 2;
  height: 360px;
}
.captions article {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.45s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.captions article.on {
  opacity: 1;
  transform: none;
}
.captions h2 {
  font-size: clamp(40px, 5.2vw, 84px);
  margin-bottom: 18px;
}
.captions p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 28em;
  margin: 0;
}
.devices {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 420px;
}
.tv {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 860px);
  transform: translate(-50%, -50%) scale(var(--ts, 0.3));
  opacity: var(--to, 0);
  will-change: transform, opacity;
}
.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 10px solid #121016;
  background: #000;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 120px rgba(150, 37, 239, 0.25);
}
.tv-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tv-stand {
  width: 24%;
  height: 26px;
  margin: 0 auto;
  background: linear-gradient(180deg, #19161e, #0d0b10);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
.week {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4%;
  padding: 2.2%;
  background: #0a0a0a;
  opacity: var(--wk, 0);
  transition: opacity 0.3s;
}
.mini {
  background: #1a1a1a;
  border-radius: 6px;
  border-top: 4px solid #ff9fdc;
  padding: 6% 7%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(7px, 0.9vw, 13px);
  line-height: 1.35;
  transform: translateY(calc((1 - var(--wk, 0)) * 20px));
}
.mini b {
  font-family: var(--display);
  font-size: 1.8em;
  text-transform: uppercase;
}
.mini i {
  font-style: normal;
  color: var(--chalk);
  font-weight: 700;
}
.mini span {
  color: #e9e6ee;
}
.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(190px, 19vw, 290px);
  aspect-ratio: 585 / 1266;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(145deg, #2a2632, #0f0d13);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 30px 80px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(150, 37, 239, 0.25);
  transform: translate(-50%, -50%) translate(var(--px, 0), var(--py, 0)) scale(var(--ps, 1));
  will-change: transform;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  background: #000;
}
.ripple {
  position: absolute;
  left: var(--rx, 50%);
  top: var(--ry, 50%);
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  border-radius: 50%;
  border: 3px solid var(--violet-2);
  background: rgba(150, 37, 239, 0.3);
  opacity: 0;
  pointer-events: none;
}
.ripple.go {
  animation: ripple 0.7s ease-out;
}
@keyframes ripple {
  0% {
    opacity: 1;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}
.rail {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 3;
}
.rail li {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.3s;
}
.rail li.on {
  background: var(--violet-2);
}

@media (max-width: 860px) {
  .stage {
    grid-template-columns: 1fr;
    /* A fixed box for the devices and a fixed box for the text: nothing shifts between steps. */
    grid-template-rows: 58svh 1fr;
    grid-template-rows: calc(0.58 * var(--vh, 100svh)) 1fr;
    gap: 16px;
    padding: 68px var(--gutter) max(20px, env(safe-area-inset-bottom));
  }
  .devices {
    grid-row: 1;
    min-height: 0;
    height: 100%;
  }
  .captions {
    grid-row: 2;
    height: auto;
    min-height: 150px;
    align-self: start;
  }
  .captions article {
    justify-content: flex-start;
    transform: translateY(16px);
  }
  .captions .eyebrow {
    margin-bottom: 8px;
  }
  .captions h2 {
    font-size: clamp(30px, 9.2vw, 40px);
    margin-bottom: 8px;
  }
  .captions p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.5;
  }
  .phone {
    width: auto;
    height: 86%;
  }
  .tv {
    width: 100%;
    top: 40%;
  }
  .rail {
    left: auto;
    right: var(--gutter);
    top: 76px;
    bottom: auto;
    flex-direction: column;
    gap: 6px;
  }
  .rail li {
    width: 3px;
    height: 16px;
  }
  .pulse-line {
    display: none;
  }
  .stage-glow {
    top: 0;
    right: -20%;
    width: 120vw;
    height: 120vw;
    transform: none;
  }
}

/* ---- Film: the video with the clock burned in (pinned, scroll-driven) ------------- */
.film {
  position: relative;
  height: calc(4 * 100svh);
  height: calc(4 * var(--vh, 100svh));
}
.film-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  height: var(--vh, 100svh);
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.film-copy h2 {
  font-size: clamp(40px, 6vw, 88px);
  margin-bottom: 18px;
}
.film-copy .sub {
  max-width: 46ch;
}
.film-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.film-steps li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.film-steps li.on {
  color: var(--ink);
  border-color: var(--violet);
  background: rgba(150, 37, 239, 0.18);
}
.film-dev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.film-phone {
  height: min(68vh, 640px);
  height: min(calc(0.68 * var(--vh, 100svh)), 640px);
  aspect-ratio: 9 / 19;
  max-width: 100%;
  border-radius: 38px;
  padding: 10px;
  background: #050407;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(150, 37, 239, 0.28);
}
.vf {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  background: radial-gradient(90% 60% at 50% 30%, #2a2235 0%, #141019 60%, #0b0910 100%);
  container-type: size;
}
.vf::before {
  /* rule-of-thirds grid of a camera viewfinder */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent calc(33.3% - 0.5px),
      rgba(255, 255, 255, 0.06) 33.3%,
      transparent calc(33.3% + 0.5px),
      transparent calc(66.6% - 0.5px),
      rgba(255, 255, 255, 0.06) 66.6%,
      transparent calc(66.6% + 0.5px)
    ),
    linear-gradient(
      0deg,
      transparent calc(33.3% - 0.5px),
      rgba(255, 255, 255, 0.06) 33.3%,
      transparent calc(33.3% + 0.5px),
      transparent calc(66.6% - 0.5px),
      rgba(255, 255, 255, 0.06) 66.6%,
      transparent calc(66.6% + 0.5px)
    );
}
.vf-c {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.vf-c.tl {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
}
.vf-c.tr {
  top: 12px;
  right: 12px;
  border-left: 0;
  border-bottom: 0;
}
.vf-c.bl {
  bottom: 12px;
  left: 12px;
  border-right: 0;
  border-top: 0;
}
.vf-c.br {
  bottom: 12px;
  right: 12px;
  border-left: 0;
  border-top: 0;
}
.vf-rec {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.4s;
}
.vf-rec b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  animation: recblink 1.2s steps(1) infinite;
}
.vf-rec em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
@keyframes recblink {
  50% {
    opacity: 0;
  }
}
.vf-fig {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 13%;
  width: 92%;
  height: auto;
}
.vf-fig line {
  stroke: #e9e2f5;
  stroke-width: 9;
  stroke-linecap: round;
}
.vf-fig line[data-b='hip-knee2'],
.vf-fig line[data-b='knee2-foot2'] {
  stroke: #8f84a3;
}
.vf-fig .vf-floor {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
}
.vf-head {
  fill: #e9e2f5;
}
/* Overlay, as the app burns it in: clock top-centre on a dark plate with a phase band,
   format under it in yellow, round + split bottom-left, name bottom-right, watermark. */
.ov {
  position: absolute;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ov.on {
  opacity: 1;
  transform: none;
}
.ov-clock {
  top: 9%;
  left: 50%;
  transform: translate(-50%, 6px);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  padding: 2px 14px 4px 18px;
  text-align: center;
  line-height: 1;
}
.ov-clock.on {
  transform: translate(-50%, 0);
}
.ov-clock i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 4px 0 0 4px;
  background: var(--chalk);
}
.ov-time {
  display: block;
  font-size: 12cqh;
  font-variant-numeric: tabular-nums;
}
.ov-clock span {
  display: block;
  font-size: 3.6cqh;
  color: var(--chalk);
  margin-top: 2px;
}
.ov-mark {
  top: 2.2%;
  right: 6%;
  font-size: 3cqh;
  opacity: 0;
}
.ov-mark.on {
  opacity: 0.6;
}
.ov-rd,
.ov-name {
  bottom: 4%;
  font-size: 4.2cqh;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  padding: 2px 8px;
}
.ov-rd {
  left: 5%;
  bottom: 10.5%;
}
.ov-rd b {
  color: var(--chalk);
}
.ov-rd em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.ov-rd.flash {
  background: rgba(255, 214, 10, 0.55);
}
.ov-name {
  right: 5%;
  font-size: 3.2cqh;
}
.ov-end {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  background: rgba(9, 6, 14, 0.86);
  opacity: 0;
  transition: opacity 0.5s;
  font-family: var(--display);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}
.ov-end.on {
  opacity: 1;
}
.ov-end-k {
  font-size: 3.6cqh;
  color: var(--chalk);
}
.ov-end-score {
  font-size: 11cqh;
  line-height: 1;
}
.ov-end-d {
  font-size: 3cqh;
  opacity: 0.6;
  margin-top: 8px;
}
.vf-saved {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translate(-50%, 10px);
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.vf-saved.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.film-share {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 340px;
}
.film-share li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.film-share.on li {
  opacity: 1;
  transform: none;
}
.film-share.on li:nth-child(2) {
  transition-delay: 0.08s;
}
.film-share.on li:nth-child(3) {
  transition-delay: 0.16s;
}
.film-share.on li:nth-child(4) {
  transition-delay: 0.24s;
}
@media (max-width: 860px) {
  .film-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 12px;
    padding-top: 68px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .film-copy h2 {
    font-size: clamp(30px, 8.5vw, 44px);
    margin-bottom: 8px;
  }
  .film-copy .sub {
    font-size: 14px;
    line-height: 1.45;
  }
  .film-steps {
    display: none;
  }
  .film-phone {
    height: min(calc(0.5 * var(--vh, 100svh)), 440px);
    border-radius: 30px;
    padding: 8px;
  }
  .vf {
    border-radius: 23px;
  }
}

/* ---- Sections ---------------------------------------------------------------------- */
main > section:not(.hero):not(.story):not(.film) {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.section-head {
  margin-bottom: 48px;
}
.section-head h2,
.tv-now h2,
.faq h2 {
  font-size: clamp(44px, 7vw, 104px);
  margin-bottom: 18px;
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Playground */
.pg {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.chips button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
}
.chips button.on {
  border-color: var(--violet);
  color: var(--ink);
  background: rgba(150, 37, 239, 0.18);
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 220px;
  background: #0c0a11;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  font:
    500 15px/1.6 ui-monospace,
    'SF Mono',
    Menlo,
    Consolas,
    monospace;
  outline: none;
}
textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(150, 37, 239, 0.18);
}
.pg-marks {
  font-size: 13px;
  color: var(--muted);
  min-height: 1.6em;
}
.board {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 10px solid #121016;
  background: #0b0b0b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(150, 37, 239, 0.22);
  container-type: inline-size;
}
.board-band {
  background: #ff9fdc;
  color: #0b0b0b;
  display: flex;
  align-items: baseline;
  gap: 2.5cqw;
  padding: 1.6cqw 3cqw;
}
.board-title {
  font-family: var(--display);
  font-size: 5.4cqw;
  line-height: 1;
  text-transform: uppercase;
}
.board-format {
  font-family: var(--display);
  font-size: 2.6cqw;
  text-transform: uppercase;
}
.board-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 2cqw 3cqw;
  gap: 2cqw;
}
.board-clock {
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
  border-radius: 1cqw;
  padding: 1.5cqw 2cqw;
  transition: background 0.2s;
}
.board-clock.rest {
  background: #102a4c;
}
.board-clock.last {
  background: #8f1d1d;
}
.phase {
  font-family: var(--display);
  font-size: 2.8cqw;
  color: #fff;
}
.digits {
  font-family: var(--display);
  font-size: 15cqw;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: #f4f1e8;
}
.sub-count {
  font-family: var(--display);
  font-size: 4.4cqw;
  color: var(--chalk);
  min-height: 1em;
}
.board-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1cqw;
}
.board-lines li {
  font-size: 3.4cqw;
  font-weight: 600;
  line-height: 1.2;
  color: #f4f1e8;
  padding: 0.6cqw 1.2cqw;
  border-left: 0.6cqw solid transparent;
  border-radius: 0.6cqw;
  transition: background 0.2s;
}
.board-lines li b {
  color: var(--chalk);
  margin-right: 0.6em;
}
.board-lines li small {
  display: block;
  font-size: 0.6em;
  color: #9b97a3;
  font-weight: 500;
}
.board-lines li.now {
  background: #1d1d1d;
  border-left-color: var(--chalk);
}
.board-lines li.check {
  color: #c9b8ff;
}
.board-lines li.empty {
  color: #6b6772;
  font-style: italic;
}
.pg-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* TV now */
.tvnow-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.steps {
  margin: 24px 0 32px;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 18px;
}
.steps li {
  margin: 8px 0;
}
.steps b {
  color: var(--ink);
}
.qr-card {
  justify-self: center;
  background: #fff;
  color: #111;
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 80px rgba(150, 37, 239, 0.45);
  max-width: 280px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* 3 m test */
.dist-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dist-dev {
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: 24px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  position: relative;
}
.dist-name {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.dist-digits {
  font-family: var(--display);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #f4f1e8;
  transition:
    font-size 0.15s,
    filter 0.15s;
}
.dist-ok {
  position: absolute;
  bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dist-ok.yes {
  color: #57d18a;
}
.dist-ok.no {
  color: #ff6b6b;
}
.dist-slider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 12px;
  font-size: 18px;
  color: var(--muted);
}
.dist-slider b {
  font-family: var(--display);
  font-size: 40px;
  color: var(--ink);
}
.dist-slider span {
  min-width: 8.5em;
}
input[type='range'] {
  flex: 1;
  accent-color: var(--violet);
  height: 28px;
}

/* Benchmark wall: one short row that scrolls sideways */
main > section.bench {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.bench .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 24px;
  margin-bottom: 20px;
}
.bench .section-head h2 {
  font-size: clamp(32px, 4.6vw, 60px);
  margin-bottom: 8px;
}
.bench .section-head .eyebrow,
.bench .section-head h2,
.bench .section-head .sub {
  grid-column: 1;
}
.wall-nav {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  display: flex;
  gap: 8px;
}
.wall-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}
.wall-btn:hover {
  border-color: var(--violet);
}
@media (hover: none), (max-width: 640px) {
  .wall-nav {
    display: none;
  }
}

.wall {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--violet) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.tile {
  position: relative;
  flex: 0 0 184px;
  scroll-snap-align: start;
  min-height: 128px;
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #1c2421, #141a18);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.tile:hover,
.tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(150, 37, 239, 0.3);
  outline: none;
}
.tile .name,
.tile .fmt,
.tile .moves span {
  display: block;
}
.tile .name {
  font-family: var(--display);
  font-size: 40px;
  line-height: 0.9;
  text-transform: uppercase;
  color: #f2efe6;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}
.tile .fmt {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--chalk);
  text-transform: uppercase;
}
.tile .moves {
  position: absolute;
  inset: 0;
  padding: 18px;
  background: #0f0d14;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.tile .moves b {
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tile.open .moves,
.tile:hover .moves {
  opacity: 1;
  transform: none;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 19px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::after {
  content: '+';
  color: var(--violet-2);
  font-family: var(--display);
  font-size: 28px;
  line-height: 0.8;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  color: var(--muted);
  max-width: 46em;
  margin: 12px 0 0;
}

/* Finale */
.finale {
  text-align: center;
  position: relative;
}
.finale .time-call {
  font-size: clamp(120px, 26vw, 380px);
  color: transparent;
  -webkit-text-stroke: 2px rgba(185, 99, 253, 0.6);
  line-height: 0.8;
  margin-bottom: 24px;
  transition:
    color 0.4s,
    text-shadow 0.4s;
}
.finale.hit .time-call {
  color: var(--violet-2);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 80px rgba(150, 37, 239, 0.8);
  animation: hit 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes hit {
  0% {
    transform: scale(1.25);
  }
  100% {
    transform: none;
  }
}
.finale h2 {
  font-size: clamp(40px, 6vw, 80px);
  margin-bottom: 18px;
}
.finale .sub {
  margin: 0 auto 32px;
}
.finale .ctas {
  justify-content: center;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 32px var(--gutter) max(48px, env(safe-area-inset-bottom));
  max-width: 1280px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
footer a {
  text-decoration: none;
  margin-right: 16px;
}
footer a:hover {
  color: var(--ink);
}

@media (max-width: 860px) {
  .pg,
  .tvnow-grid,
  .dist-view {
    grid-template-columns: 1fr;
  }
  .dist-dev {
    height: 220px;
  }
  .tile {
    flex-basis: 150px;
    min-height: 120px;
    padding: 14px;
  }
  .tile .name {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
