:root {
  --bg: #0a1412;
  --panel: #111f1a;
  --card: #16261f;
  --card-hov: #1c332a;
  --gold: #c9a84c;
  --emerald: #2d8a6e;
  --chalk: #f0ede8;
  --chalk-dim: rgba(240, 237, 232, 0.55);
  --blue: #7baac4;
  --line: rgba(240, 237, 232, 0.14);
  --max: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--chalk);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 168, 76, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(45, 138, 110, 0.14), transparent 50%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ——— Nav ——— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(10, 20, 18, 0.92), rgba(10, 20, 18, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.nav-brand img {
  width: 118px;
  height: auto;
  border-radius: 4px;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 450;
  color: var(--chalk-dim);
}

.nav-links a:hover {
  color: var(--chalk);
}

.nav-cta {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--bg);
  background: var(--gold);
  padding: 0.55rem 1rem;
  border-radius: 8px;
}

@media (min-width: 800px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    margin-left: 0;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #123226;
}

.hero-pitch {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.04);
  animation: pitch-drift 18s ease-in-out infinite alternate;
}

.pitch-lines {
  stroke: rgba(240, 237, 232, 0.55);
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: fade-lines 1.2s ease forwards 0.15s;
}

.event-marks .mark {
  opacity: 0;
  animation: mark-in 0.7s ease forwards;
}

.mark-a { animation-delay: 1.1s; }
.mark-b { animation-delay: 1.35s; }
.mark-c { animation-delay: 1.6s; }

.mark-path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-lines 1.4s ease forwards 1.2s;
}

.mark-path.delay {
  animation-delay: 1.45s;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 20, 18, 0.2) 0%, rgba(10, 20, 18, 0.05) 40%, rgba(10, 20, 18, 0.72) 82%, var(--bg) 100%),
    linear-gradient(95deg, rgba(10, 20, 18, 0.55) 0%, rgba(10, 20, 18, 0.12) 42%, rgba(10, 20, 18, 0.35) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6.5rem, 14vh, 8rem) clamp(1.2rem, 4vw, 2.5rem) clamp(3rem, 8vh, 4.5rem);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-copy.is-in {
  opacity: 1;
  transform: none;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--gold);
}

.brand-sm {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.6rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--chalk);
  max-width: 14ch;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 350;
  color: var(--chalk-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 560;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: #d4b45c;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--chalk);
  background: rgba(22, 38, 31, 0.45);
}

.btn-ghost:hover {
  border-color: rgba(240, 237, 232, 0.28);
  background: rgba(28, 51, 42, 0.7);
}

/* ——— Sections ——— */
.section {
  padding: clamp(4.5rem, 10vh, 7rem) 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.section.is-in {
  opacity: 1;
  transform: none;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 730;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--chalk);
}

.section-lede {
  margin: 0;
  max-width: 42ch;
  font-size: 1.12rem;
  font-weight: 350;
  color: var(--chalk-dim);
}

/* Notation */
.section-notation {
  background:
    linear-gradient(180deg, transparent, rgba(17, 31, 26, 0.65) 20%, rgba(17, 31, 26, 0.9) 100%);
}

.notation-stage {
  margin-top: 2.75rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .notation-stage {
    grid-template-columns: 1.4fr 0.7fr;
    align-items: end;
  }
}

.notation-pitch {
  position: relative;
  min-height: 280px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, #143528, #0d241b 55%, #0a1a14),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 48px,
      rgba(240, 237, 232, 0.03) 48px,
      rgba(240, 237, 232, 0.03) 49px
    );
  border: 1px solid var(--line);
  overflow: hidden;
}

.notation-pitch::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border: 1.5px solid rgba(240, 237, 232, 0.28);
  border-radius: 2px;
}

.notation-pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 1.5px;
  background: rgba(240, 237, 232, 0.28);
  transform: translateX(-50%);
}

.dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  z-index: 2;
}

.d1 {
  left: 28%;
  top: 38%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.15);
}

.d2 {
  left: 52%;
  top: 58%;
  background: var(--emerald);
}

.d3 {
  left: 72%;
  top: 32%;
  background: var(--blue);
}

.trail {
  position: absolute;
  z-index: 1;
  left: 29%;
  top: 40%;
  width: 26%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left center;
  transform: rotate(28deg);
  animation: pulse-trail 2.8s ease-in-out infinite;
}

.notation-types {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.notation-types li {
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--chalk-dim);
  font-size: 0.95rem;
  background: rgba(22, 38, 31, 0.5);
}

.notation-types li.is-active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

/* Players — interaction panel allowed as card-like */
.section-players {
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
  }
}

.player-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}

.player-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.note {
  display: grid;
  place-items: center;
  width: 52px;
  height: 42px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 740;
  font-size: 1.2rem;
  color: var(--gold);
  background: var(--bg);
  border: 1px solid rgba(201, 168, 76, 0.45);
}

.player-name {
  margin: 0;
  font-weight: 600;
  font-size: 1.15rem;
}

.player-meta {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--chalk-dim);
}

.player-rows {
  display: grid;
  gap: 0.15rem;
}

.player-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--chalk-dim);
  font-size: 0.95rem;
}

.player-rows strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Reports */
.section-reports {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 90% 20%, rgba(123, 170, 196, 0.1), transparent 60%),
    transparent;
}

.report-strip {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  font-family: var(--font-display);
  font-weight: 760;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(240, 237, 232, 0.35);
}

.report-strip span:nth-child(2) {
  -webkit-text-stroke-color: rgba(201, 168, 76, 0.55);
}

/* CTA */
.section-cta {
  border-top: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(600px 280px at 50% 0%, rgba(201, 168, 76, 0.16), transparent 65%),
    var(--panel);
}

.section-cta .section-lede {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
}

.section-cta .btn {
  min-width: 240px;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem clamp(1.2rem, 4vw, 2.5rem) 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--chalk-dim);
  font-size: 0.9rem;
}

.site-footer img {
  width: 96px;
  border-radius: 4px;
  opacity: 0.9;
}

/* Motion */
@keyframes fade-lines {
  to { opacity: 1; }
}

@keyframes draw-lines {
  to { stroke-dashoffset: 0; }
}

@keyframes mark-in {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pitch-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, 0.8%, 0); }
}

@keyframes pulse-trail {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-copy,
  .section {
    opacity: 1;
    transform: none;
  }
}
