/* The landing page — what `/` serves a visitor (ADR-058). Product
   intelligence first, infrastructure second.

   `lv2-` is the class namespace this page shipped with as the /landing-v2
   preview (PR #122), kept on promotion: it is a scope, not a version claim,
   and what got renamed is the page's identity — the file names and the body
   class. `.landing-page` on <body> is what re-themes base.html's nav here. */
.landing-page {
  --lv2-ink: #142019;
  --lv2-night: #f4f5ef;
  --lv2-night-2: #ffffff;
  --lv2-night-3: #e9eee8;
  --lv2-line: rgba(20, 32, 25, 0.13);
  --lv2-muted: #66736b;
  background: var(--lv2-night);
}

.landing-page .app { background: var(--lv2-night); color: var(--lv2-ink); }
.landing-page .topnav {
  position: relative;
  color: var(--lv2-ink);
  background: rgba(244, 245, 239, 0.9);
  border-color: var(--lv2-line);
}
.landing-page .topnav .brand,
.landing-page .topnav .btn-ghost { color: var(--lv2-ink); }
.landing-page .topnav .btn-ghost { border-color: var(--lv2-line); }
.landing-page .topnav .btn-primary { background: var(--accent); color: #fff; }
.landing-page .topnav .brand-mark { filter: none; }
.landing-page .topnav .brand-dot { color: var(--accent); }

.lv2 { overflow: hidden; background: var(--lv2-night); color: var(--lv2-ink); }
.lv2 em { color: var(--accent); font-family: inherit; font-style: normal; font-weight: inherit; }
.lv2 h1, .lv2 h2, .lv2 h3, .lv2 p { margin: 0; }

.lv2-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, .95fr);
  align-items: center;
  gap: clamp(44px, 6vw, 96px);
  width: min(1500px, 100%);
  min-height: 790px;
  margin: auto;
  padding: 90px 42px 96px;
}
.lv2-hero-copy { position: relative; z-index: 2; }
.lv2-kicker, .lv2-index, .lv2-feature-tag, .lv2-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 12px;
}
.lv2-kicker { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.lv2-kicker > span:empty { width: 32px; height: 1px; background: currentColor; }
.lv2-hero h1 {
  max-width: 650px;
  margin-top: 24px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 500;
}
.lv2-hero h1 em { display: inline-block; letter-spacing: inherit; }
.lv2-lede {
  max-width: 580px;
  margin-top: 30px !important;
  color: #536158;
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -.015em;
}
.lv2-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.lv2-btn:hover { transform: translateY(-2px); }
.lv2-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lv2-btn svg .fill { fill: currentColor; stroke: none; }
.lv2-btn-primary { background: var(--accent); color: var(--accent-ink); }
.lv2-btn-primary:hover { filter: brightness(1.05); }
.lv2-btn-secondary { color: var(--lv2-ink); border-color: var(--lv2-line); background: rgba(255,255,255,.7); }
.lv2-btn-secondary:hover { border-color: rgba(20,32,25,.3); }
.lv2-product {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  justify-self: end;
  border: 1px solid var(--lv2-line);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 40px 90px rgba(37,54,43,.16), 0 0 0 1px rgba(255,255,255,.7) inset;
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}
.lv2-product::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: 0 0 80px rgba(77,129,46,.04) inset;
}
.lv2-windowbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--lv2-line);
  color: var(--lv2-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lv2-window-title { display: flex; align-items: center; gap: 8px; color: #3b4940; }
.lv2-live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lv2-stage {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 15%, rgba(61,122,85,.22), transparent 28%),
    linear-gradient(145deg, #142e38 0 48%, #222f69 49% 100%);
}
.lv2-stage::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 72%;
  left: 11%;
  bottom: -30%;
  border: 1px solid rgba(255,255,255,.5);
  transform: perspective(600px) rotateX(62deg);
  box-shadow: 0 -85px 0 -84px rgba(255,255,255,.5), 0 -170px 0 -169px rgba(255,255,255,.5);
}
.lv2-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 45%;
  background: rgba(255,255,255,.42);
}
.lv2-stage video { position: relative; z-index: 1; width: 100%; height: 300px; display: block; object-fit: cover; opacity: .72; mix-blend-mode: screen; }
.lv2-stage-shade { position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4,8,6,.85)); }
.lv2-now {
  position: absolute;
  z-index: 3;
  left: 20px;
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f3f5ef;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
}
.lv2-now strong { padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #0e1311; font-size: 11px; }
.lv2-now > span:last-child { color: #c3cec7; }
.lv2-timeline { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.lv2-timeline span { flex: 1; height: calc(var(--activity) * 1px); min-height: 3px; border-radius: 1px; background: rgba(255,255,255,.28); }
.lv2-timeline span.hot { background: #fff; }
.lv2-dashboard { padding: 18px 20px 20px; color: var(--lv2-ink); }
.lv2-dashboard .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(260px, 1.4fr); grid-template-rows: repeat(2, 1fr); }
.lv2-dashboard .hist { grid-column: 3; grid-row: 1 / 3; }
.lv2-dashboard .stat .label, .lv2-dashboard .stat .sub, .lv2-dashboard .hbar .pct { font-size: 12px; }
.lv2-dashboard .hist-labels span { font-size: 11.5px; }

.lv2-trustline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  min-height: 70px;
  padding: 16px 28px;
  border-top: 1px solid var(--lv2-line);
  border-bottom: 1px solid var(--lv2-line);
  color: #627067;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lv2-trustline i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

.lv2-section { width: min(1400px, 100%); margin: auto; padding: 70px 42px; }
.lv2-section-intro { display: grid; grid-template-columns: 180px minmax(340px, .95fr) minmax(260px, .55fr); gap: 34px; align-items: end; margin-bottom: 36px; }
.lv2-story .lv2-section-intro, .lv2-flow .lv2-section-intro, .lv2-pricing .lv2-section-intro { max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lv2-index { color: var(--accent); }
.lv2-section-intro h2 { font-size: 36px; line-height: 1.05; letter-spacing: -.025em; font-weight: 500; }
.lv2-section-intro p { max-width: 440px; color: var(--lv2-muted); font-size: 16px; line-height: 1.6; }
.lv2-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lv2-feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--lv2-line);
  border-radius: 18px;
  background: var(--lv2-night-2);
}
.lv2-feature-copy { max-width: 520px; }
.lv2-feature-tag { color: var(--accent); }
.lv2-feature h3 { margin-top: 16px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.lv2-feature p { margin-top: 18px; color: var(--lv2-muted); font-size: 15px; line-height: 1.6; }
.lv2-pa-sample { width: min(100%, 370px); margin-top: 28px; justify-self: center; }
.lv2-pa-sample .pl-card { container-type: inline-size; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); color: var(--text); }
.lv2-pa-sample .pl-head { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lv2-pa-sample .pl-photo { width: 30px; height: 56px; object-fit: cover; border: 1px solid var(--border-2); border-radius: 6px; background: var(--surface-3); }
.lv2-pa-sample .pl-name { font-size: 14.5px; font-weight: 600; }
.lv2-pa-sample .pl-sub { margin-top: 2px; color: var(--muted); font-size: 12px; }
.lv2-pa-sample .pl-nums, .lv2-pa-sample .pl-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lv2-pa-sample .pl-nums { margin-top: 12px; }
.lv2-pa-sample .pl-outcomes { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--border); }
.lv2-pa-sample .pl-num { text-align: center; }
.lv2-pa-sample .pl-num .lbl { color: var(--muted-2); font-size: 11px; line-height: 13px; letter-spacing: .07em; text-transform: uppercase; }
.lv2-pa-sample .pl-num .val { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; }
.lv2-pa-sample .pl-num .val small { margin-left: 3px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 400; }
.lv2-pa-sample .pl-lbl-narrow { display: none; }
.lv2-pa-sample .pl-zones { margin-top: 12px; }
.lv2-pa-sample .zbar { display: flex; gap: 2px; height: 20px; overflow: hidden; border-radius: 5px; }
.lv2-pa-sample .zbar span { display: flex; align-items: center; justify-content: center; min-width: 0; height: 100%; overflow: hidden; color: #0e1311; font-size: 12.5px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.lv2-pa-sample .zbar span[data-ink="white"] { color: #fff; }
@container (max-width: 220px) {
  .lv2-pa-sample .pl-lbl-wide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lv2-pa-sample .pl-lbl-narrow { display: inline-block; height: 12px; line-height: 12px; }
}
.lv2-rally-list { margin-top: 28px; border: 1px solid var(--lv2-line); border-radius: 12px; overflow: hidden; }
.lv2-rally-row { display: grid; grid-template-columns: 28px 1fr auto 70px; gap: 8px; align-items: center; min-height: 52px; padding: 0 14px; border-bottom: 1px solid var(--lv2-line); color: var(--lv2-muted); font-size: 12.5px; }
.lv2-rally-row:last-child { border: 0; }
.lv2-rally-row strong { color: #26342b; font-weight: 500; }
.lv2-rally-row b { padding: 6px 8px; border-radius: 999px; background: #edf1ea; color: #526158; text-align: center; font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.lv2-rally-row.selected { background: var(--accent-soft); }
.lv2-rally-row.selected .lv2-rally-play, .lv2-rally-row.favourite .lv2-rally-play { color: var(--accent); }
.lv2-output-options { margin-top: 28px; padding: 0; }
.lv2-output-options .ex-mode-opt { cursor: default; }
.lv2-output-options .ex-mode-icon { background: var(--accent); color: var(--accent-ink); }

.lv2-flow { border-top: 1px solid var(--lv2-line); }
.lv2-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--lv2-line); }
.lv2-steps article { position: relative; padding: 24px 28px 28px 0; border-right: 1px solid var(--lv2-line); }
.lv2-steps article + article { padding-left: 28px; }
.lv2-steps article:last-child { border-right: 0; }
.lv2-step-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 16px; font-weight: 600; }
.lv2-steps h3 { margin-top: 20px; font-size: 22px; letter-spacing: -.025em; font-weight: 500; }
.lv2-steps p { max-width: 330px; margin-top: 12px; color: var(--lv2-muted); font-size: 14px; line-height: 1.6; }

.lv2-pricing { border-top: 1px solid var(--lv2-line); }
/* Pricing: landing-v2.css's two phases on one rail (.lh-phases), on this page's
   tokens. The free start in accent, the packs on a grey rail as ruled rows. */
.lv2-phases { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.lv2-phase-now { padding-right: 40px; }
.lv2-phase-then { padding-left: 40px; border-left: 1px solid var(--lv2-line); }
.lv2-rail { height: 8px; background: var(--accent); border-radius: 4px 0 0 4px; }
.lv2-phase-then .lv2-rail { margin-left: -40px; background: var(--lv2-night-3); border-radius: 0 4px 4px 0; }
.lv2-phase .lv2-label { display: block; margin-top: 12px; color: var(--lv2-muted); }
.lv2-fig { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1; }
.lv2-free { margin-top: 24px; font-size: clamp(44px, 5vw, 64px); }
.lv2-phase-now p { margin-top: 14px; color: var(--lv2-muted); font-size: 18px; line-height: 1.5; }
.lv2-phase-now .btn { margin-top: 28px; }
.lv2-packs { margin-top: 22px; border-top: 1px solid var(--lv2-ink); }
.lv2-pack { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--lv2-line); }
.lv2-hours { font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
.lv2-price { font-size: 44px; white-space: nowrap; }
.lv2-pack-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.lv2-entry { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .11em; font-size: 12px; color: var(--accent); white-space: nowrap; }
.lv2-entry strong { font-weight: 600; font-variant-numeric: tabular-nums; }

.lv2-cta { padding: 16px 28px 32px; }
.lv2-cta .cta-card { gap: 32px; padding: 36px 40px; }
.lv2-final-copy .lv2-index { color: var(--accent); }
.lv2-final-copy h2 { margin-top: 8px; }
.lv2-final-copy p { max-width: 480px; margin-top: 12px; color: var(--lv2-muted); font-size: 15px; }
.lv2-final-action { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lv2-final-action > span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.lv2-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; width: min(1400px, 100%); margin: auto; padding: 28px 42px 42px; color: var(--lv2-muted); }
.lv2-footer .brand { color: var(--lv2-ink); }
.lv2-footer .brand-mark { filter: none; }
.lv2-footer p { font-size: 12px; }
.lv2-footer > div { display: flex; justify-content: flex-end; gap: 22px; font-size: 12px; }
.lv2-footer a:hover { color: var(--accent); }

@media (max-width: 1120px) {
  .lv2-hero { grid-template-columns: 1fr; padding-top: 70px; }
  .lv2-hero-copy { max-width: 800px; }
  .lv2-product { max-width: 760px; justify-self: start; transform: none; }
  .lv2-section-intro { grid-template-columns: 140px 1fr; }
  .lv2-section-intro p { grid-column: 2; }
  .lv2-cta .cta-card { gap: 20px; padding: 32px; }
  .lv2-final-action { align-items: flex-start; }
}

@media (max-width: 760px) {
  .landing-page .topnav { position: relative; }
  .lv2-hero { min-height: 0; padding: 58px 18px 64px; gap: 48px; }
  .lv2-hero h1 { font-size: clamp(36px, 8vw, 56px); }
  .lv2-lede { font-size: 17px; }
  .lv2-actions { align-items: stretch; }
  .lv2-btn { width: 100%; }
  .lv2-product { margin: 0 -5px; }
  .lv2-windowbar > span:last-child { display: none; }
  .lv2-stage, .lv2-stage video { min-height: 220px; height: 220px; }
  .lv2-dashboard { padding: 13px; }
  .lv2-dashboard .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .lv2-dashboard .hist { grid-column: 1 / -1; grid-row: auto; }
  .lv2-trustline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; min-height: 92px; overflow: visible; white-space: normal; text-align: center; }
  .lv2-trustline i { display: none; }
  .lv2-section { padding: 53px 18px; }
  .lv2-section-intro, .lv2-flow .lv2-section-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .lv2-section-intro p { grid-column: auto; }
  .lv2-section-intro h2 { font-size: 28px; }
  .lv2-flow .lv2-section-intro h2 em { display: block; }
  .lv2-feature-grid { grid-template-columns: 1fr; }
  .lv2-feature { grid-column: auto; padding: 24px; }
  .lv2-rally-row { grid-template-columns: 24px 1fr auto; }
  .lv2-rally-row > span:nth-child(3) { display: none; }
  .lv2-steps { grid-template-columns: 1fr; }
  .lv2-steps article, .lv2-steps article + article { display: flex; flex-direction: column; align-items: center; padding: 24px 0 28px; border-right: 0; border-bottom: 1px solid var(--lv2-line); text-align: center; }
  .lv2-steps article:last-child { border-bottom: 0; }
  .lv2-phases { grid-template-columns: 1fr; gap: 48px; }
  .lv2-phase-now { padding-right: 0; }
  .lv2-phase-then { padding-left: 0; border-left: 0; }
  .lv2-rail, .lv2-phase-then .lv2-rail { margin-left: 0; border-radius: 4px; }
  .lv2-phase-now .btn { width: 100%; }
  .lv2-hours { font-size: 18px; }
  .lv2-price { font-size: 32px; }
  .lv2-cta { padding: 16px 18px 32px; }
  .lv2-cta .cta-card { padding: 24px; text-align: center; }
  .lv2-final-copy p { margin-inline: auto; }
  .lv2-final-action { align-items: center; }
  .lv2-footer { grid-template-columns: 1fr; padding: 28px 18px 42px; }
  .lv2-footer > div { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .lv2-btn { transition: none; }
}

.lv2-footer .legal-links { grid-column: 1 / -1; justify-content: flex-start; padding: 0; }

/* ===== The not-found page (frrx.15; spec prototypes/not-found-page): "Serve is out".
   The ball, shadow and trail key frames are generated from a projected 3D serve;
   keep them as they are rather than hand-editing the percentages. ===== */
/* ===== the background: the app's (--bg, #f6f7f5), not the landing's paper ===== */
.landing-page.not-found-page { --lv2-night: var(--bg); }
.landing-page.not-found-page .topnav { background: rgba(246, 247, 245, 0.9); }

/* ===== the block: centred between the nav and the legal links ===== */
.nf-page .nf { display: grid; align-content: center; min-height: calc(100vh - 220px); max-width: 1120px; margin: auto; padding: 72px 42px 96px; }
.nf-page .nf h1 { max-width: 760px; font-size: clamp(38px, 5.5vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; }
.nf-page .nf .lv2-lede { margin-top: 20px; color: #536158; font-size: 18px; line-height: 1.6; }
.nf-page .nf .lv2-actions { margin-top: 34px; }
@media (max-width: 720px) {
  .nf-page .nf { padding: 48px 18px 72px; min-height: calc(100vh - 260px); }
  .nf-page .nf .lv2-lede { font-size: 16px; }
  .nf-page .nf .lv2-btn { width: 100%; justify-content: center; }
}

/* ===== the replay: one serve, the mark, the zoom; played once ===== */
.nf-page .nf-sv { display: block; width: 100%; height: 100%; }
.nf-page .sv-glass { fill: rgba(244, 245, 239, 0.10); }
.nf-page .sv-frame { fill: none; stroke: rgba(244, 245, 239, 0.22); stroke-width: 2; }
.nf-page .sv-paint { fill: var(--lv2-night); }
.nf-page .sv-mark { fill: rgba(244, 245, 239, 0.30); stroke: var(--lv2-night); stroke-width: 2; }
.nf-page .sv-shadow ellipse { fill: rgba(20, 32, 25, 0.38); }
.nf-page .sv-ballshape { fill: var(--lv2-night); }
.nf-page .sv-seam { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .55; }
.nf-page .sv-trail { fill: none; stroke: rgba(244, 245, 239, 0.5); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.nf-page .sv-mesh { fill: none; stroke: rgba(20, 32, 25, 0.55); stroke-width: 28; stroke-dasharray: 1.5 12; }
.nf-page .sv-mesh-h { fill: none; stroke: rgba(20, 32, 25, 0.45); stroke-width: 1.5; }
.nf-page .sv-cable { fill: none; stroke: var(--lv2-night); stroke-width: 5; }
/* 2630 ms: 1.75× the spec's 4600, after feedback that the review ran too long.
   Every key frame is a percentage, so the whole timeline scales with it. */
.nf-page :is(.sv-scene, .sv-ball, .sv-shadow, .sv-markg, .sv-trail, .nf-dots, .nf-out-word) {
  animation-duration: 2630ms; animation-delay: 300ms; animation-fill-mode: both; animation-iteration-count: 1; animation-timing-function: linear;
}
.nf-page :is(.sv-scene, .sv-ball, .sv-shadow, .sv-markg) { transform-box: view-box; }
.nf-page .sv-scene { --z: 2; transform-origin: 560px 212px; animation-name: sv-zoom; }
.nf-page .sv-ball { transform-origin: 560px 185px; animation-name: sv-ball; }
.nf-page .sv-shadow { transform-origin: 560px 200px; animation-name: sv-shadow; }
.nf-page .sv-markg { transform-origin: 560px 200px; animation-name: sv-mark; }
.nf-page .sv-trail { animation-name: sv-trail; }
@keyframes sv-ball {
  0.000% { transform: translate(-370.0px, 122.1px) scale(2.381); opacity: 1.00; }
  0.906% { transform: translate(-346.4px, 103.0px) scale(2.293); opacity: 1.00; }
  1.812% { transform: translate(-324.5px, 85.8px) scale(2.211); opacity: 1.00; }
  2.717% { transform: translate(-304.2px, 70.4px) scale(2.135); opacity: 1.00; }
  3.623% { transform: translate(-285.1px, 56.6px) scale(2.064); opacity: 1.00; }
  4.529% { transform: translate(-267.3px, 44.3px) scale(1.998); opacity: 1.00; }
  5.435% { transform: translate(-250.6px, 33.3px) scale(1.935); opacity: 1.00; }
  6.341% { transform: translate(-235.0px, 23.5px) scale(1.877); opacity: 1.00; }
  7.246% { transform: translate(-220.2px, 14.8px) scale(1.822); opacity: 1.00; }
  8.152% { transform: translate(-206.3px, 7.0px) scale(1.770); opacity: 1.00; }
  9.058% { transform: translate(-193.1px, 0.2px) scale(1.721); opacity: 1.00; }
  9.964% { transform: translate(-180.7px, -5.7px) scale(1.674); opacity: 1.00; }
  10.870% { transform: translate(-168.9px, -10.9px) scale(1.630); opacity: 1.00; }
  11.775% { transform: translate(-157.7px, -15.4px) scale(1.589); opacity: 1.00; }
  12.681% { transform: translate(-147.1px, -19.2px) scale(1.549); opacity: 1.00; }
  13.587% { transform: translate(-137.0px, -22.4px) scale(1.511); opacity: 1.00; }
  14.493% { transform: translate(-127.4px, -25.0px) scale(1.475); opacity: 1.00; }
  15.399% { transform: translate(-118.2px, -27.1px) scale(1.441); opacity: 1.00; }
  16.304% { transform: translate(-109.4px, -28.7px) scale(1.408); opacity: 1.00; }
  17.210% { transform: translate(-101.1px, -29.8px) scale(1.377); opacity: 1.00; }
  18.116% { transform: translate(-93.1px, -30.5px) scale(1.347); opacity: 1.00; }
  19.022% { transform: translate(-85.4px, -30.8px) scale(1.319); opacity: 1.00; }
  19.928% { transform: translate(-78.0px, -30.7px) scale(1.291); opacity: 1.00; }
  20.833% { transform: translate(-71.0px, -30.3px) scale(1.265); opacity: 1.00; }
  21.739% { transform: translate(-64.2px, -29.5px) scale(1.240); opacity: 1.00; }
  22.645% { transform: translate(-57.7px, -28.4px) scale(1.215); opacity: 1.00; }
  23.551% { transform: translate(-51.5px, -27.0px) scale(1.192); opacity: 1.00; }
  24.457% { transform: translate(-45.4px, -25.4px) scale(1.170); opacity: 1.00; }
  25.362% { transform: translate(-39.6px, -23.4px) scale(1.148); opacity: 1.00; }
  26.268% { transform: translate(-34.1px, -21.2px) scale(1.127); opacity: 1.00; }
  27.174% { transform: translate(-28.7px, -18.8px) scale(1.107); opacity: 1.00; }
  28.080% { transform: translate(-23.5px, -16.2px) scale(1.088); opacity: 1.00; }
  28.986% { transform: translate(-18.5px, -13.3px) scale(1.069); opacity: 1.00; }
  29.891% { transform: translate(-13.6px, -10.3px) scale(1.051); opacity: 1.00; }
  30.797% { transform: translate(-8.9px, -7.0px) scale(1.033); opacity: 1.00; }
  31.703% { transform: translate(-4.4px, -3.6px) scale(1.016); opacity: 1.00; }
  32.609% { transform: translate(0.0px, 0.0px) scale(1.000); opacity: 1.00; }
  33.618% { transform: translate(5.4px, -9.4px) scale(0.980); opacity: 1.00; }
  34.627% { transform: translate(10.7px, -17.4px) scale(0.960); opacity: 1.00; }
  35.637% { transform: translate(15.7px, -24.1px) scale(0.941); opacity: 1.00; }
  36.646% { transform: translate(20.5px, -29.5px) scale(0.923); opacity: 1.00; }
  37.655% { transform: translate(25.1px, -33.8px) scale(0.906); opacity: 1.00; }
  38.665% { transform: translate(29.6px, -37.0px) scale(0.889); opacity: 0.93; }
  39.674% { transform: translate(33.9px, -39.1px) scale(0.873); opacity: 0.81; }
  40.683% { transform: translate(38.1px, -40.3px) scale(0.858); opacity: 0.70; }
  41.693% { transform: translate(42.1px, -40.5px) scale(0.843); opacity: 0.58; }
  42.702% { transform: translate(46.0px, -39.9px) scale(0.828); opacity: 0.46; }
  43.711% { transform: translate(49.7px, -38.4px) scale(0.814); opacity: 0.35; }
  44.720% { transform: translate(53.3px, -36.0px) scale(0.801); opacity: 0.23; }
  45.730% { transform: translate(56.8px, -33.0px) scale(0.788); opacity: 0.12; }
  46.739% { transform: translate(60.2px, -29.2px) scale(0.775); opacity: 0.00; }
  100% { transform: translate(0px, 0px) scale(1); opacity: 0; }
}
@keyframes sv-shadow {
  0.000% { transform: translate(-370.0px, 200.0px) scale(2.381); opacity: 0.00; }
  0.906% { transform: translate(-346.4px, 187.3px) scale(2.293); opacity: 0.00; }
  1.812% { transform: translate(-324.5px, 175.4px) scale(2.211); opacity: 0.00; }
  2.717% { transform: translate(-304.2px, 164.4px) scale(2.135); opacity: 0.12; }
  3.623% { transform: translate(-285.1px, 154.1px) scale(2.064); opacity: 0.46; }
  4.529% { transform: translate(-267.3px, 144.5px) scale(1.998); opacity: 0.78; }
  5.435% { transform: translate(-250.6px, 135.5px) scale(1.935); opacity: 1.00; }
  6.341% { transform: translate(-235.0px, 127.0px) scale(1.877); opacity: 1.00; }
  7.246% { transform: translate(-220.2px, 119.0px) scale(1.822); opacity: 1.00; }
  8.152% { transform: translate(-206.3px, 111.5px) scale(1.770); opacity: 1.00; }
  9.058% { transform: translate(-193.1px, 104.4px) scale(1.721); opacity: 1.00; }
  9.964% { transform: translate(-180.7px, 97.7px) scale(1.674); opacity: 1.00; }
  10.870% { transform: translate(-168.9px, 91.3px) scale(1.630); opacity: 1.00; }
  11.775% { transform: translate(-157.7px, 85.3px) scale(1.589); opacity: 1.00; }
  12.681% { transform: translate(-147.1px, 79.5px) scale(1.549); opacity: 1.00; }
  13.587% { transform: translate(-137.0px, 74.1px) scale(1.511); opacity: 1.00; }
  14.493% { transform: translate(-127.4px, 68.9px) scale(1.475); opacity: 1.00; }
  15.399% { transform: translate(-118.2px, 63.9px) scale(1.441); opacity: 1.00; }
  16.304% { transform: translate(-109.4px, 59.2px) scale(1.408); opacity: 1.00; }
  17.210% { transform: translate(-101.1px, 54.6px) scale(1.377); opacity: 1.00; }
  18.116% { transform: translate(-93.1px, 50.3px) scale(1.347); opacity: 1.00; }
  19.022% { transform: translate(-85.4px, 46.2px) scale(1.319); opacity: 1.00; }
  19.928% { transform: translate(-78.0px, 42.2px) scale(1.291); opacity: 1.00; }
  20.833% { transform: translate(-71.0px, 38.4px) scale(1.265); opacity: 1.00; }
  21.739% { transform: translate(-64.2px, 34.7px) scale(1.240); opacity: 1.00; }
  22.645% { transform: translate(-57.7px, 31.2px) scale(1.215); opacity: 1.00; }
  23.551% { transform: translate(-51.5px, 27.8px) scale(1.192); opacity: 1.00; }
  24.457% { transform: translate(-45.4px, 24.6px) scale(1.170); opacity: 1.00; }
  25.362% { transform: translate(-39.6px, 21.4px) scale(1.148); opacity: 1.00; }
  26.268% { transform: translate(-34.1px, 18.4px) scale(1.127); opacity: 1.00; }
  27.174% { transform: translate(-28.7px, 15.5px) scale(1.107); opacity: 1.00; }
  28.080% { transform: translate(-23.5px, 12.7px) scale(1.088); opacity: 1.00; }
  28.986% { transform: translate(-18.5px, 10.0px) scale(1.069); opacity: 1.00; }
  29.891% { transform: translate(-13.6px, 7.4px) scale(1.051); opacity: 1.00; }
  30.797% { transform: translate(-8.9px, 4.8px) scale(1.033); opacity: 1.00; }
  31.703% { transform: translate(-4.4px, 2.4px) scale(1.016); opacity: 1.00; }
  32.609% { transform: translate(0.0px, 0.0px) scale(1.000); opacity: 1.00; }
  33.618% { transform: translate(5.4px, -2.9px) scale(0.980); opacity: 1.00; }
  34.627% { transform: translate(10.7px, -5.8px) scale(0.960); opacity: 1.00; }
  35.637% { transform: translate(15.7px, -8.5px) scale(0.941); opacity: 1.00; }
  36.646% { transform: translate(20.5px, -11.1px) scale(0.923); opacity: 1.00; }
  37.655% { transform: translate(25.1px, -13.6px) scale(0.906); opacity: 1.00; }
  38.665% { transform: translate(29.6px, -16.0px) scale(0.889); opacity: 0.93; }
  39.674% { transform: translate(33.9px, -18.3px) scale(0.873); opacity: 0.81; }
  40.683% { transform: translate(38.1px, -20.6px) scale(0.858); opacity: 0.70; }
  41.693% { transform: translate(42.1px, -22.8px) scale(0.843); opacity: 0.58; }
  42.702% { transform: translate(46.0px, -24.9px) scale(0.828); opacity: 0.46; }
  43.711% { transform: translate(49.7px, -26.9px) scale(0.814); opacity: 0.35; }
  44.720% { transform: translate(53.3px, -28.8px) scale(0.801); opacity: 0.23; }
  45.730% { transform: translate(56.8px, -30.7px) scale(0.788); opacity: 0.12; }
  46.739% { transform: translate(60.2px, -32.6px) scale(0.775); opacity: 0.00; }
  100% { opacity: 0; }
}
@keyframes sv-trail {
  0% { stroke-dashoffset: 1; opacity: 1; }
  0.906% { stroke-dashoffset: 0.9279; }
  1.812% { stroke-dashoffset: 0.8618; }
  2.717% { stroke-dashoffset: 0.8012; }
  3.623% { stroke-dashoffset: 0.7454; }
  4.529% { stroke-dashoffset: 0.6940; }
  5.435% { stroke-dashoffset: 0.6465; }
  6.341% { stroke-dashoffset: 0.6026; }
  7.246% { stroke-dashoffset: 0.5619; }
  8.152% { stroke-dashoffset: 0.5241; }
  9.058% { stroke-dashoffset: 0.4889; }
  9.964% { stroke-dashoffset: 0.4562; }
  10.870% { stroke-dashoffset: 0.4256; }
  11.775% { stroke-dashoffset: 0.3970; }
  12.681% { stroke-dashoffset: 0.3702; }
  13.587% { stroke-dashoffset: 0.3451; }
  14.493% { stroke-dashoffset: 0.3214; }
  15.399% { stroke-dashoffset: 0.2990; }
  16.304% { stroke-dashoffset: 0.2779; }
  17.210% { stroke-dashoffset: 0.2578; }
  18.116% { stroke-dashoffset: 0.2387; }
  19.022% { stroke-dashoffset: 0.2205; }
  19.928% { stroke-dashoffset: 0.2031; }
  20.833% { stroke-dashoffset: 0.1863; }
  21.739% { stroke-dashoffset: 0.1701; }
  22.645% { stroke-dashoffset: 0.1545; }
  23.551% { stroke-dashoffset: 0.1392; }
  24.457% { stroke-dashoffset: 0.1244; }
  25.362% { stroke-dashoffset: 0.1099; }
  26.268% { stroke-dashoffset: 0.0957; }
  27.174% { stroke-dashoffset: 0.0817; }
  28.080% { stroke-dashoffset: 0.0678; }
  28.986% { stroke-dashoffset: 0.0541; }
  29.891% { stroke-dashoffset: 0.0405; }
  30.797% { stroke-dashoffset: 0.0270; }
  31.703% { stroke-dashoffset: 0.0135; }
  32.609% { stroke-dashoffset: 0.0000; }
  51.087% { stroke-dashoffset: 0; opacity: 1; }
  70.652% { stroke-dashoffset: 0; opacity: .35; }
  100% { stroke-dashoffset: 0; opacity: .35; }
}
@keyframes sv-mark {
  0%, 32.391% { opacity: 0; transform: scale(.2); }
  37.391% { opacity: 1; transform: scale(1.12); animation-timing-function: ease-out; }
  40.870%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes sv-zoom {
  0%, 51.087% { transform: scale(1); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  70.652%, 100% { transform: scale(var(--z)); }
}
/* the call: "Serve is…" waits, then "out." is written in */
@keyframes nf-dots {
  0%, 70.217% { opacity: 1; font-size: 1em; }
  72.826%, 100% { opacity: 0; font-size: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-page :is(.sv-scene, .sv-ball, .sv-shadow, .sv-markg, .sv-trail, .nf-dots, .nf-out-word) { animation: none; }
  .nf-page .sv-scene { transform: scale(var(--z)); }
  .nf-page :is(.sv-ball, .sv-shadow) { opacity: 0; }
  .nf-page .nf-dots { display: none; }
  .nf-page .sv-trail { stroke-dashoffset: 0; opacity: .35; }
}

/* ===== the layout: 404 and the call on the left, the replay on the right ===== */
.nf-page .nf-rv { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.nf-page .nf-rv .nf-big {
  display: block; margin-bottom: 12px;
  font-size: clamp(72px, 10vw, 96px); line-height: .9; letter-spacing: -.04em; font-weight: 500;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.nf-page .nf-rv h1 { margin-top: 0; }
/* the dots take no room in the line, so the heading breaks the same before and after the call */
.nf-page .nf-dots { position: absolute; animation-name: nf-dots; }
.nf-page .nf-rv .lv2-lede { max-width: 40ch; }
.nf-page .nf-rv .nf-screen {
  aspect-ratio: 5 / 4; overflow: hidden; border-radius: 20px;
  background: var(--accent); box-shadow: 0 24px 50px -28px rgba(20, 32, 25, 0.55);
}
.nf-page .nf-rv ::selection { background: var(--accent-soft); color: var(--lv2-ink); }
.nf-page .nf-rv .lv2-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 860px) {
  .nf-page .nf-rv { grid-template-columns: 1fr; gap: 28px; }
  .nf-page .nf-rv .nf-screen { order: -1; aspect-ratio: 4 / 3; border-radius: 16px; }
}

/* ===== the call: "out." arrives in the accent ===== */
.nf-page .nf-out-word { display: inline-block; color: var(--accent); transform-origin: 0 80%; animation-name: nf-callin; }
@keyframes nf-callin {
  0%, 72.826% { opacity: 0; transform: scale(1.5); filter: blur(8px); animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  85.870%, 100% { opacity: 1; transform: none; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nf-page .nf-out-word { animation: none !important; clip-path: none; opacity: 1; transform: none; filter: none; }
}
