/* VantageCam — Mythic Sports & Events, LLC
   Canvas #050A14 · navy #0B1C3D · cyan #4FC3F7 (active) · gold #C9A84C (premium)
   Type: Cinzel + Raleway only.
   DRAFT 2026-10-08: shorter home page (hero signup, 3-step strip, real screen, gear row, closer). */

:root {
  --bg: #050A14;
  --bg-2: #081226;
  --navy: #0B1C3D;
  --cyan: #4FC3F7;
  --cyan-dim: rgba(79, 195, 247, 0.16);
  --gold: #C9A84C;
  --gold-2: #e4c97a;
  --ink: #E8EEF8;
  --muted: #b7c4d8;
  --whisper: #8fa0b8;
  --line: rgba(232, 238, 248, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header: 68px;
  --max: 1160px;
  --radius: 18px;
  color-scheme: dark;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  background:
    radial-gradient(1200px 560px at 82% -10%, rgba(79, 195, 247, 0.11), transparent 55%),
    radial-gradient(900px 480px at -8% 20%, rgba(201, 168, 76, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: "Raleway", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 30;
  background: var(--gold); color: #0b1220; padding: 8px 12px; font-weight: 700;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

h1, h2, h3 {
  font-family: Cinzel, serif; font-weight: 600;
  letter-spacing: 0.02em; line-height: 1.1; margin: 0;
}
.gold { color: var(--gold); }
.eyebrow {
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); font-size: 0.75rem; margin: 0 0 12px;
}
.lede { color: var(--ink); max-width: 40rem; margin: 0; }
.whisper { color: var(--whisper); font-size: 0.92rem; }
.rule {
  width: 88px; height: 2px; margin: 16px 0 18px; border: 0;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 10, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  min-height: var(--header);
  display: flex; align-items: center; gap: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; flex: 0 0 auto; margin-right: auto;
}
.brand img { height: 38px; width: 38px; border-radius: 9px; }
.wordmark {
  font-family: Cinzel, serif; font-weight: 700;
  font-size: 1.12rem; letter-spacing: 0.08em; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: #041018; background: var(--cyan); }
.menu-btn {
  display: none; width: 44px; height: 44px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 12px;
  background: transparent; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.bars, .bars::before, .bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-family: Cinzel, serif; font-weight: 700; letter-spacing: 0.04em; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #0b1220; box-shadow: 0 8px 28px rgba(201, 168, 76, 0.28);
}
.btn-gold:hover { filter: brightness(1.06); color: #0b1220; }
.btn-ghost { background: transparent; color: var(--cyan); border-color: rgba(79, 195, 247, 0.55); }
.btn-ghost:hover { background: var(--cyan-dim); color: var(--cyan); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.8rem; }
.head-cta { gap: 0; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
main > section + section { border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.brandline {
  font-family: Cinzel, serif; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.08em; color: var(--muted); margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.2rem); max-width: 11ch;
  text-shadow: 0 0 60px rgba(79, 195, 247, 0.14);
}
.hero-sub {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink);
  max-width: 34rem; margin: 18px 0 0;
}

/* Signup (hero + closer) */
.signup { margin-top: 26px; max-width: 34rem; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-form input[type="email"] { flex: 1 1 220px; }
.signup-form .btn { flex: 0 0 auto; }
.signup .micro { color: var(--whisper); font-size: 0.9rem; margin: 10px 0 0; }
.signup .thanks {
  display: none; padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.5); background: rgba(11, 28, 61, 0.7);
}
.thanks-title { font-family: Cinzel, serif; font-size: 1.3rem; color: var(--gold-2); margin: 0 0 4px; }
.signup .thanks p:last-child { margin: 0; color: var(--muted); }
html.is-thanks .signup .thanks { display: block; }
html.is-thanks .signup-form, html.is-thanks .signup .micro { display: none; }
.form-error { color: #ffb4a8; font-size: 0.88rem; margin: 8px 0 0; min-height: 0; }
.form-error:empty { display: none; }

/* Hero visual: illustrated scored frame + real Control screenshot */
.hero-visual { position: relative; padding-bottom: 8%; }
.film {
  margin: 0; position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(232, 238, 248, 0.18);
  box-shadow: var(--shadow), 0 0 80px rgba(79, 195, 247, 0.1);
  width: 82%;
}
.film-clip { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #07101f; }
.film-art {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(60% 70% at 50% 55%, rgba(79, 195, 247, 0.16), transparent 70%),
    linear-gradient(180deg, #0a1730 0%, #07101f 55%, #050b16 100%);
}
.court-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.court-floor { fill: rgba(201, 168, 76, 0.13); }
.cl { stroke: #E8EEF8; stroke-width: 6; opacity: 0.92; }
.cl-attack { stroke: #4FC3F7; stroke-width: 5; }
.cl-center { stroke: #E8EEF8; stroke-width: 6; }
.net-mesh { stroke: rgba(184, 231, 251, 0.45); stroke-width: 2; }
.net-band { stroke: #B8E7FB; stroke-width: 4; }
.net-top { stroke: #E8EEF8; stroke-width: 8; }
.net-post { stroke: #7FD4FA; stroke-width: 7; }
.film-tag {
  position: absolute; left: 10px; bottom: 8px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--whisper); background: rgba(5, 10, 20, 0.6); padding: 3px 8px; border-radius: 999px;
}
.vb {
  position: absolute; left: 40%; top: 62%; width: 3.2%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d4, #C9A84C 45%, #6e5416 80%);
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.8);
  transform: translate(-50%, -50%);
}

/* Score bug */
.bug {
  position: absolute; left: 3%; top: 5%;
  display: grid; grid-template-columns: auto auto; column-gap: 10px; row-gap: 1px; align-items: center;
  padding: 7px 12px 6px; border-radius: 9px;
  background: rgba(5, 10, 20, 0.86); border: 1px solid rgba(201, 168, 76, 0.75);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  font-size: clamp(0.62rem, 1.05vw, 0.82rem); line-height: 1.25;
}
.bug-team { font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
.bug-pts {
  font-family: Cinzel, serif; font-weight: 700; font-size: 1.3em; color: var(--ink);
  text-align: right; position: relative; min-width: 1.4em;
}
.bug-home i { font-style: normal; }
.bug-home i + i { position: absolute; right: 0; top: 0; opacity: 0; color: var(--gold-2); }
.bug-set {
  grid-column: 1 / -1; margin-top: 3px; padding-top: 3px; border-top: 1px solid var(--line);
  font-size: 0.82em; font-weight: 700; letter-spacing: 0.16em; color: var(--cyan);
}
.bug-sm { grid-template-columns: auto auto auto auto; column-gap: 6px; padding: 4px 8px; font-size: 0.62rem; }

.hero-phone {
  margin: 0; position: absolute; right: 0; bottom: 0; width: 28%; max-width: 210px;
}
.bezel {
  position: relative; background: #010308; border-radius: 30px; padding: 8px;
  border: 1px solid rgba(232, 238, 248, 0.22);
  box-shadow: 0 0 0 1px rgba(79, 195, 247, 0.35), 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 90px rgba(79, 195, 247, 0.16);
}
.bezel img { width: 100%; border-radius: 23px; }
.tap {
  position: absolute; left: 30%; top: 38.5%; width: 26%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.3); opacity: 0;
  border: 2px solid var(--gold-2); background: rgba(228, 201, 122, 0.18);
  pointer-events: none;
}

/* ---------- How it works ---------- */
.how { padding: 80px 0; }
.how-grid { display: grid; gap: 36px; align-items: center; }
.steps3 { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.steps3 li {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(165deg, rgba(11, 28, 61, 0.8), rgba(5, 10, 20, 0.5));
  border: 1px solid var(--line);
  transition: border-color 0.4s ease, background 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}
.steps3 .n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: Cinzel, serif; font-weight: 700; font-size: 1.2rem; color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.55);
}
.steps3 h3 { font-size: 1.15rem; }
.steps3 p { margin: 2px 0 0; color: var(--muted); font-size: 0.98rem; }
.send {
  font-family: Cinzel, serif; font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 26px 0 0;
}
.rules { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.rules li {
  border: 1px solid rgba(201, 168, 76, 0.45); color: var(--gold-2); border-radius: 999px;
  padding: 5px 12px; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
}
.how-visual { position: relative; }
.pane { display: none; }
.pane-3 { display: block; }
.pane-1 img {
  border-radius: 18px; border: 1px solid rgba(232, 238, 248, 0.16);
  box-shadow: var(--shadow), 0 0 60px rgba(79, 195, 247, 0.1);
}
.film-art-sm { border-radius: 14px; border: 1px solid rgba(232, 238, 248, 0.16); box-shadow: var(--shadow); }
.rec {
  position: absolute; right: 4%; top: 6%; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--ink);
  background: rgba(5, 10, 20, 0.7); padding: 4px 10px; border-radius: 999px;
}
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
/* Stop splits into two files: scored footage is the hero (first, larger, gold); raw footage is secondary (smaller, muted) */
.files { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; align-items: end; }
.file p { margin: 8px 0 0; text-align: center; }
.file-label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.file-note { font-size: 0.86rem; color: var(--ink); margin-top: 2px !important; }
.file-scored .film-art-sm { border: 2px solid var(--gold); box-shadow: var(--shadow), 0 0 48px rgba(201, 168, 76, 0.28); }
.file-scored .file-label { color: var(--gold-2); font-size: 0.86rem; }
.file-raw { opacity: 0.6; }
.file-raw .film-art-sm { filter: saturate(0.5); }
.file-raw .file-label { font-size: 0.66rem; }


/* ---------- Real screen ---------- */
.shots { display: grid; gap: 16px; margin-top: 28px; }
.shot {
  margin: 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #010308;
}
.shot img {
  width: 100%; border-bottom: 1px solid var(--line);
  aspect-ratio: 1320 / 580; object-fit: cover; object-position: 50% 0;
}
.shot figcaption { padding: 12px 16px 14px; color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.aside { color: var(--muted); margin: 18px 0 0; }
.shot-record img { aspect-ratio: 1320 / 580; object-fit: cover; object-position: 100% 100%; }

/* ---------- Gear ---------- */
.gear { padding: 72px 0; }
.gear-row {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.gear-row li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 20px 12px 18px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(11, 28, 61, 0.45);
  font-weight: 600;
}
.gear-row svg {
  width: 46px; height: 46px; fill: none; stroke: var(--cyan); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.tag {
  display: block; margin-top: 4px; font-style: normal;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2);
}
.coming { margin: 24px 0 0; color: var(--muted); }
.coming .gold { font-weight: 700; letter-spacing: 0.04em; }
.faq-link { margin: 8px 0 0; }

/* ---------- Closer ---------- */
.close {
  text-align: center; padding: 96px 0;
  background:
    radial-gradient(720px 280px at 50% 0%, rgba(201, 168, 76, 0.16), transparent 70%),
    radial-gradient(480px 200px at 50% 100%, rgba(79, 195, 247, 0.08), transparent 65%),
    var(--bg-2);
}
.close h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.close .signup { margin-inline: auto; }
.close .signup-form { justify-content: center; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 64px 0 88px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 16ch; }
.split { display: grid; gap: 28px; align-items: start; }
.panel {
  margin-top: 28px; max-width: 560px; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 28, 61, 0.75), rgba(8, 16, 32, 0.92));
  box-shadow: var(--shadow);
}
form.netlify-form.panel { display: grid; gap: 12px; }
label { font-size: 0.85rem; color: var(--muted); display: grid; gap: 6px; }
input[type="email"], input[type="text"], textarea {
  width: 100%; min-height: 50px; border-radius: 999px;
  border: 1px solid rgba(232, 238, 248, 0.2); background: #070e1a; color: var(--ink);
  padding: 12px 18px; font: inherit;
}
.panel input[type="email"], .panel input[type="text"], textarea { border-radius: 12px; }
input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px var(--cyan-dim); }
textarea { min-height: 150px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.page-hero .thanks { display: none; }
html.is-thanks .page-hero .thanks { display: block; }
html.is-thanks .page-hero form.netlify-form { display: none; }
.thanks h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; }
.page-hero .thanks p { margin: 0; color: var(--muted); }
.mailto-line { margin-top: 18px; }

/* FAQ */
.faq { margin-top: 28px; max-width: 46rem; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 28, 61, 0.45);
  padding: 0 18px;
}
.faq details[open] { border-color: rgba(79, 195, 247, 0.45); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: Cinzel, serif; font-size: 1.3rem; color: var(--gold);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.legal-page { padding: 64px 0 4rem; }
.legal-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.5rem; }
.legal-page h2 { font-size: 1.15rem; margin: 2rem 0 0.6rem; color: var(--gold); }
.legal-page p, .legal-page li { color: var(--muted); max-width: 42rem; }
.legal-page ul { padding-left: 1.2rem; }
.legal-meta { color: var(--whisper); font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; background: #040812; }
.foot { display: grid; gap: 18px; align-items: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.foot-brand img { height: 42px; width: 42px; border-radius: 10px; }
.foot img.mythic { height: 92px; width: auto; }
.foot .whisper { margin: 0; font-family: Cinzel, serif; color: var(--gold-2); letter-spacing: 0.04em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--cyan); }
.legal { color: var(--whisper); font-size: 0.85rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .hero { padding: 48px 0 64px; min-height: min(calc(100vh - var(--header) - 72px), 760px); display: flex; align-items: center; }
  .hero > .wrap { width: min(var(--max), calc(100% - 40px)); }
  .hero-grid { grid-template-columns: 0.95fr 1.1fr; gap: 48px; }
  .how-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .shots { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .gear-row { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .foot { grid-template-columns: auto 1fr auto; gap: 28px; }
}

@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 10px 20px 16px;
    background: #050A14; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.55);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 0.82rem; border-radius: 12px; }
  .site-header .wrap { position: static; }
  .site-header { position: sticky; }
  .hero { padding: 36px 0 56px; }
  section { padding: 64px 0; }
  .how { padding: 64px 0; }
  .how-visual { max-width: 520px; }
  .close { padding: 72px 0; }
}

@media (max-width: 899px) {
  .head-cta { min-height: 36px; padding: 0 12px; font-size: 0.72rem; box-shadow: none; }
  .head-cta .long { display: none; }
  .brand img { height: 34px; width: 34px; }
  .wordmark { font-size: 0.98rem; letter-spacing: 0.06em; }
  .site-header .wrap { gap: 8px; width: calc(100% - 28px); }
}
@media (max-width: 340px) {
  .head-cta { display: none; }
}

/* ---------- Motion (respects reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .film-art .cl { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw-line 1.4s ease forwards; }
  .film-art .cl:nth-child(2) { animation-delay: 0.25s; }
  .film-art .cl:nth-child(3) { animation-delay: 0.4s; }
  .film-art .cl:nth-child(4) { animation-delay: 0.55s; }
  .hero .court-net { animation: fade-in 0.8s ease 0.8s both; }
  .hero .bug { animation: bug-in 0.7s cubic-bezier(0.16, 0.84, 0.3, 1) 1s both; }
  .hero-phone { animation: phone-in 1.1s cubic-bezier(0.16, 0.84, 0.3, 1) 0.2s both; }
  .hero .vb { animation: rally 6s ease-in-out 1.2s infinite; }
  .hero .tap { animation: tap 6s ease-out 1.2s infinite; }
  html.has-clip .hero .tap { animation: none; }
  html.has-clip .hero .tap.is-tap { animation: tap-once 0.85s ease-out both; }
  .hero .bug-home i:first-child { animation: pt-old 6s step-end 1.2s infinite; }
  .hero .bug-home i + i { animation: pt-new 6s ease 1.2s infinite; }
    .rec::before { animation: blink 1.4s ease-in-out infinite; }
  html.js-motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
  html.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
  html.js-motion .gear-row li:nth-child(2) { transition-delay: 0.08s; }
  html.js-motion .gear-row li:nth-child(3) { transition-delay: 0.16s; }
  html.js-motion .gear-row li:nth-child(4) { transition-delay: 0.24s; }
  html.js-motion .shots .shot:nth-child(2) { transition-delay: 0.1s; }
  html.js-motion .shots .shot:nth-child(3) { transition-delay: 0.2s; }
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bug-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
/* 6s loop: scorer taps Home (≈1.6s), bug ticks 10 → 11, holds, resets */
@keyframes tap {
  0%, 22% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  26% { opacity: 1; transform: translate(-50%, -50%) scale(0.8); }
  36%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
}
@keyframes tap-once {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
}
@keyframes pt-old { 0% { opacity: 1; } 28% { opacity: 0; } 94% { opacity: 1; } }
@keyframes pt-new {
  0%, 27% { opacity: 0; transform: translateY(6px); }
  31% { opacity: 1; transform: none; text-shadow: 0 0 14px rgba(228, 201, 122, 0.9); }
  40%, 92% { opacity: 1; transform: none; text-shadow: none; }
  96%, 100% { opacity: 0; }
}
@keyframes rally {
  0% { left: 40%; top: 66%; opacity: 0; }
  6% { opacity: 1; }
  30% { left: 52%; top: 10%; }
  55% { left: 62%; top: 30%; }
  75% { left: 50%; top: 8%; }
  94% { left: 38%; top: 64%; opacity: 1; }
  100% { left: 40%; top: 66%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bug-home i + i { display: none; }
}

/* about.html: replaces an inline style attribute so the CSP needs no unsafe-inline styles */
.split.split-gap { margin-top: 28px; }
/* Netlify injects a "Powered by Netlify" badge iframe; the CSP blocks its inline content, so hide the empty frame. Turning the badge off in Netlify settings is the real fix. */
#nl-badge-frame { display: none !important; }
