:root {
  --bg: #0b1410;
  --surface: #14231b;
  --accent: #c6ff3d;
  --gold: #d4a83a;
  --text: #f2f1ea;
  --muted: #7e8c84;
  --gutter: clamp(1rem, 4vw, 5rem);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 clamp(1rem, 1.2vw, 1.125rem) / 1.6 Archivo,
    sans-serif;
  overflow-x: clip;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.topbar {
  position: fixed;
  z-index: 15;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--gutter);
  transition: transform 0.35s ease;
  background: linear-gradient(var(--bg), transparent);
}
.topbar.down {
  transform: translateY(-110%);
}
.wordmark,
.nav-dots {
  font:
    500 0.7rem Archivo,
    sans-serif;
  letter-spacing: 0.2em;
}
.wordmark {
  color: var(--accent);
}
.nav-dots {
  display: flex;
  gap: 0.7rem;
}
.nav-dots a {
  color: var(--muted);
}
.nav-dots a:hover {
  color: var(--accent);
}
.section {
  position: relative;
  padding: clamp(5rem, 12vw, 11rem) var(--gutter);
}
.kicker {
  font:
    500 0.75rem Archivo,
    sans-serif;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.display {
  font-family: Anton, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}
.section-title {
  font-size: clamp(3rem, 9vw, 8rem);
}
.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;
}
.hero {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(
    ellipse 45% 30% at 50% 0%,
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent 70%
  );
}
.hero-name {
  position: relative;
  font-size: clamp(6rem, 22vw, 22rem);
  isolation: isolate;
}
.hero-name .line {
  display: inline-block;
  overflow: hidden;
  padding: 0.08em 0.03em;
}
.beam {
  position: absolute;
  inset: 15% -35%;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 20%, transparent),
    transparent
  );
  filter: blur(18px);
  transform: skewX(-24deg) translateX(-100%);
  mix-blend-mode: screen;
}
.tagline {
  margin: 1.2rem auto 0;
  max-width: 45ch;
  color: var(--muted);
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50%;
  font:
    500 0.65rem Archivo,
    sans-serif;
  letter-spacing: 0.18em;
  white-space: nowrap;
  color: var(--muted);
}
.scroll-cue:after {
  content: "";
  display: block;
  width: 1px;
  height: 2.4rem;
  background: var(--accent);
  margin: 0.7rem auto 0;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  50% {
    transform: translateY(10px);
    opacity: 0.2;
  }
}
.ticker {
  border-block: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5rem 0;
}
.ticker-track {
  display: inline-flex;
  gap: 2rem;
  font:
    400 clamp(2.5rem, 5vw, 5rem) / 1 Anton,
    sans-serif;
  color: var(--accent);
  will-change: transform;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  margin-top: 3rem;
}
.stat {
  padding: 1.25rem;
  border-right: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
}
.stat-value,
.live-number {
  font:
    500 clamp(2rem, 4vw, 4.5rem) / 1 Archivo,
    sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.stat-label,
.macro {
  font:
    500 0.68rem Archivo,
    sans-serif;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.pitch-wrap {
  max-width: 1100px;
  margin: 3rem auto 0;
  position: relative;
}
/* Hero atmosphere */
.hero-photo,
.hero-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-photo {
  z-index: 0;
  width: auto;
  height: 100%;
  left: 0;
  right: 0;
  margin-inline: auto;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent), linear-gradient(to bottom, #000 70%, transparent);
  mask-composite: intersect;
  filter: grayscale(1) contrast(1.1) brightness(0.8);
}
.hero-tint {
  z-index: 1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--surface) 35%, transparent), color-mix(in srgb, var(--bg) 85%, transparent));
  mix-blend-mode: multiply;
}
.hero-content,
.scroll-cue {
  z-index: 3;
}
.beam {
  z-index: 2;
}
.hero-name {
  text-shadow: 0 2px 20px color-mix(in srgb, var(--bg) 80%, transparent);
}
/* Goal replay */
.replay-hud {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  gap: 0.2rem;
  text-align: right;
  font: 500 0.65rem Archivo, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.pitch-lines path,
.pitch-lines circle,
.goal-mouth,
.teammate {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}
.net path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 0.75;
}
.trail {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 40%, transparent);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}
.striker circle {
  fill: var(--accent);
  filter: url(#striker-glow);
}
.striker text {
  fill: var(--bg);
  font: 500 10px Archivo, sans-serif;
}
.ball circle {
  fill: var(--text) !important;
  stroke: var(--bg) !important;
  stroke-width: 1 !important;
}
.ball path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 0.8;
}
.ball-shadow {
  fill: color-mix(in srgb, var(--bg) 55%, transparent);
}
.streaks {
  opacity: 0;
}
.streaks circle {
  fill: var(--text);
  opacity: 0.25;
}
.streaks circle:nth-child(1) { transform: translate(795px, 255px); }
.streaks circle:nth-child(2) { transform: translate(780px, 255px); }
.streaks circle:nth-child(3) { transform: translate(765px, 255px); }
.goal-text {
  fill: var(--accent);
  font: 400 120px Anton, sans-serif;
  opacity: 0;
}
.goal-flash {
  fill: var(--accent);
  opacity: 0;
  pointer-events: none;
}
/* Day timeline */
.day {
  min-height: 100svh;
  overflow: hidden;
}
.day-sky {
  height: min(40vh, 330px);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 15%, var(--bg)), var(--surface) 55%, var(--bg));
}
.day-sky svg { width: 100%; height: 100%; }
.day-arc { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 8 10; }
.sun { fill: var(--accent); opacity: 0.55; filter: drop-shadow(0 0 10px var(--accent)); }
.moon { opacity: 0; }
.moon circle { fill: var(--text); }
.moon .moon-cut { fill: var(--bg); }
.day-scene { position: absolute; z-index: 3; inset: 0; padding: clamp(1.5rem, 4vw, 4rem); display: grid; align-content: center; pointer-events: none; }
.day-scene-stop { grid-area: 1 / 1; max-width: 28rem; opacity: 0; transition: opacity 0.25s ease; }
.day-scene-stop.is-active { opacity: 1; }
.day-scene-stop .display { font-size: clamp(4rem, 11vw, 9rem); color: var(--text); }
.day-scene-stop p:last-child { margin: 0.7rem 0 0; color: var(--text); }
.day-clock {
  position: absolute;
  top: clamp(8rem, 20vh, 15rem);
  right: var(--gutter);
  font: 400 clamp(3rem, 8vw, 7rem) / 1 Anton, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.day-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid color-mix(in srgb, var(--muted) 60%, transparent);
  margin-top: 4rem;
}
.day-progress {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.day-stop { position: relative; padding: 1.25rem 0.65rem 0; }
.day-node { position: absolute; top: -7px; left: 0.65rem; width: 13px; height: 13px; border: 1px solid var(--muted); border-radius: 50%; background: var(--bg); transition: 0.25s ease; }
.day-time, .day-label { margin: 0; font: 500 0.67rem Archivo, sans-serif; letter-spacing: 0.13em; color: var(--muted); }
.day-label { margin-top: 0.3rem; color: var(--text); }
.day-caption { display: none; }
.day-stop.is-active .day-node { background: var(--accent); border-color: var(--accent); scale: 1.4; }
.day-stop.is-active .day-label { color: var(--accent); }
.day-stop.is-active .day-caption { opacity: 1; transform: translateY(0); }
.day-stop:last-child.is-active .day-node { background: var(--gold); border-color: var(--gold); }
.credits { border-top: 1px solid color-mix(in srgb, var(--muted) 25%, transparent); padding: 1.5rem; text-align: center; color: var(--muted); font: 400 12px Archivo, sans-serif; }
.credits a:hover { color: var(--accent); }
.pitch {
  display: block;
  width: auto;
  height: min(78svh, 61.6vw);
  max-width: 100%;
  max-height: 78svh;
  margin: auto;
  overflow: visible;
}
.pitch .motion-guide { fill: none; stroke: none; }
.football-cards {
  display: grid;
  gap: 1px;
  background: color-mix(in srgb, var(--muted) 30%, transparent);
  margin-top: 2rem;
}
.info-card,
.pr-card {
  background: var(--surface);
  padding: 1.5rem;
  min-height: 7rem;
}
.info-card strong,
.pr-card strong {
  font:
    400 clamp(1.5rem, 3vw, 3rem) / 1 Anton,
    sans-serif;
  color: var(--text);
}
.card-label {
  font:
    500 0.65rem Archivo,
    sans-serif;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
  margin-bottom: 1rem;
}
.iron {
  overflow: hidden;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.iron-stage {
  min-height: min(64svh, 680px);
  display: grid;
  align-content: center;
}
.barbell {
  display: block;
  width: min(90vw, 1000px);
  max-width: 100%;
  margin: 2rem auto 1rem;
}
.bar {
  stroke: var(--text);
  stroke-width: 9;
}
.sleeve {
  stroke: var(--muted);
  stroke-width: 5;
}
.plate {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 3;
}
.collar {
  fill: var(--surface);
  stroke: var(--muted);
  stroke-width: 2;
}
.plate-label {
  fill: var(--accent);
  font: 500 10px Archivo;
  font-variant-numeric: tabular-nums;
}
.total {
  text-align: center;
}
.pr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: color-mix(in srgb, var(--muted) 30%, transparent);
  margin-top: 4rem;
}
.pr-card {
  min-height: 8rem;
}
.road-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.road {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.route {
  width: 100%;
  max-height: 450px;
}
.route-path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 3;
}
.runner {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent));
}
.live-stats {
  border-left: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  padding-left: 1.2rem;
}
.live-label {
  font:
    500 0.7rem Archivo,
    sans-serif;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 1.3rem 0 0.25rem;
}
.run-copy {
  max-width: 30ch;
  color: var(--text);
}
.quran {
  background: color-mix(in srgb, var(--bg) 92%, var(--gold));
  text-align: center;
  min-height: 85svh;
  display: grid;
  place-content: center;
}
.quran .kicker,
.quran .reference,
.quran .section-title {
  color: var(--gold);
}
.ayah {
  font:
    400 clamp(2.5rem, 5vw, 5.6rem) / 1.9 Amiri,
    serif;
  max-width: 18ch;
  margin: 3rem auto 1.2rem;
  color: var(--text);
}
.ayah-word {
  display: inline-block;
  margin-inline: 0.12em;
}
.meaning {
  font-style: italic;
  color: var(--muted);
  max-width: 50ch;
  margin: 1rem auto;
}
.reference {
  font:
    500 0.7rem Archivo,
    sans-serif;
  letter-spacing: 0.16em;
}
.quran-copy {
  margin: 3rem auto 0;
  max-width: 40ch;
  color: var(--text);
}
.footer {
  text-align: center;
  padding-bottom: 3rem;
}
.footer-title {
  font-size: clamp(4rem, 15vw, 15rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
  transition: color 0.6s ease;
}
.footer-title:hover,
.footer-title.lit {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.footer-links a {
  font:
    500 0.68rem Archivo,
    sans-serif;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--accent);
}
.note {
  color: var(--muted);
  font-size: 0.85rem;
}
.whistle {
  width: 28px;
  stroke: var(--muted);
  fill: none;
  vertical-align: middle;
  margin-left: 0.5rem;
}
.cursor-dot,
.cursor-ring {
  display: none;
  position: fixed;
  z-index: 30;
  pointer-events: none;
  border-radius: 50%;
  translate: -50% -50%;
  opacity: 0;
}
.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
}
@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .football-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .road-layout {
    grid-template-columns: 1.3fr 0.7fr;
  }
  .cursor-dot,
  .cursor-ring {
    display: block;
  }
}
@media (max-width: 767px) {
  .nav-dots {
    display: none;
  }
  .hero-name {
    font-size: clamp(6rem, 27vw, 22rem);
  }
  .iron-stage {
    min-height: 48svh;
  }
  .hero-photo {
    width: 100%;
    height: 100%;
    left: 0;
    translate: 0;
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  .replay-hud { font-size: 0.58rem; }
  .pitch-wrap { margin-top: 2rem; }
  .goal-text { font-size: 88px; }
  .day { min-height: auto; padding-bottom: 5rem; }
  .day-sky { height: 130px; margin-top: 1.5rem; }
  .day-clock { position: relative; top: auto; right: auto; margin: 1.25rem 0 2.5rem; text-align: right; font-size: clamp(3rem, 17vw, 5rem); }
  .day-scene { padding: 1rem 1.25rem; }
  .day-scene-stop .display { font-size: clamp(3.5rem, 18vw, 5rem); }
  .day-timeline { display: block; border-top: 0; border-left: 1px solid color-mix(in srgb, var(--muted) 60%, transparent); margin: 0 0 0 0.75rem; }
  .day-progress { top: 0; left: -1px; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .day-stop { min-height: 8rem; padding: 0 0 1.7rem 1.8rem; opacity: 0; transform: translateY(20px); }
  .day-node { top: 0; left: -7px; }
  .day-caption { position: static; width: auto; margin-top: 0.7rem; opacity: 1; transform: none; color: var(--muted); }
  .day-stop.is-active .day-caption { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .day {
    min-height: auto;
  }
  .day-timeline {
    display: block;
    border-top: 0;
    border-left: 1px solid color-mix(in srgb, var(--muted) 60%, transparent);
    margin: 2rem 0 0 0.75rem;
  }
  .day-progress {
    top: 0;
    left: -1px;
    width: 2px;
    height: 100%;
    transform: scaleY(1);
  }
  .day-stop {
    min-height: 7rem;
    padding: 0 0 1.5rem 1.8rem;
    opacity: 1;
    transform: none;
  }
  .day-node {
    top: 0;
    left: -7px;
  }
  .day-caption {
    display: block;
    margin-top: 0.6rem;
    color: var(--muted);
  }
}

/* Invisible guides the replay markers follow (MotionPath align targets). */
.motion-guide {
  fill: none;
  stroke: none;
}

/* Round 3 — hero photo full height on the right (desktop), visible; name shifts left. */
@media (min-width: 768px) {
  .hero {
    justify-content: start;
    text-align: left;
    padding-inline: clamp(1.5rem, 6vw, 7rem);
  }
  .hero-photo {
    left: auto;
    right: 0;
    margin-inline: 0;
    width: 60%;
    object-fit: cover;
    object-position: center 18%;
    filter: grayscale(1) contrast(1.1) brightness(0.95);
    mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(to bottom, #000 75%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(to bottom, #000 75%, transparent);
  }
  .hero-tint {
    background: linear-gradient(to right, var(--bg) 25%, color-mix(in srgb, var(--bg) 20%, transparent) 65%);
    mix-blend-mode: normal;
  }
  /* Day section: keep title, sky and timeline inside one screen while pinned. */
  .day {
    padding-top: clamp(2rem, 6svh, 4rem);
  }
  .day-sky {
    height: min(32svh, 330px);
    margin-top: 1rem;
  }
}

/* GSAP pinning moves the wrapper's margins onto its pin-spacer, so the wrapper
   spans the full width and the pitch centres itself inside it. The HUD tracks
   the pitch's right edge: pitch width = min(78svh, 61.6vw) * 1000/560. */
.pitch-wrap {
  max-width: none;
  margin-inline: 0;
}
.replay-hud {
  right: max(0.75rem, calc(50% - min(69.64svh, 55vw) + 0.75rem));
}
