@font-face {
  font-family: "Outfit";
  src: url("./assets/fonts/outfit.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/open-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070c12;
  --surface: #0d141c;
  --surface-2: #121b25;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.2);
  --text: #f4efe6;
  --muted: #b5afa4;
  --gold: #e2b34a;
  --gold-strong: #f0c35a;
  --blue: #2f5fd0;
  --win: #e2b34a;
  --loss: #b5afa4;

  --font-display: "Outfit", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --text-hero: clamp(3rem, 1.6rem + 6.2vw, 6rem);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 60px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 180ms;
  --t-section: 450ms;
  --t-hero: 600ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  text-wrap: balance;
  font-weight: 700;
}

p,
li,
dd {
  text-wrap: pretty;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgb(226 179 74 / 0.35);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.tnum,
.stat-value,
.reel-time,
.rank,
.rank-value {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.fine {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--muted);
}

.eyebrow,
.label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--gold);
}

.label {
  color: var(--muted);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(7 12 18 / 0.88);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgb(7 12 18 / 0.72);
    backdrop-filter: blur(12px);
  }
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  text-decoration: none;
}

.brand-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 800;
}

.nav ul {
  display: flex;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast);
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--text);
}

.nav a[aria-current="true"] {
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast);
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -5px;
}

.menu-bars::after {
  top: 5px;
}

.menu-toggle[aria-expanded="true"] .menu-bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 719px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .js .nav.open {
    display: block;
  }

  .js .nav ul {
    flex-direction: column;
  }

  .js .nav a {
    width: 100%;
    font-size: var(--text-base);
  }

  /* Without JS, the links stay visible and wrap. */
  html:not(.js) .header-row {
    flex-wrap: wrap;
    padding-block: 6px;
  }

  html:not(.js) .nav ul {
    flex-wrap: wrap;
  }
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gold);
  color: #12100a;
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgb(255 255 255 / 0.04);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
}

.btn-small {
  min-height: 44px;
  padding: 0 14px;
  font-size: var(--text-sm);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--gold-strong);
  }

  .btn-secondary:hover,
  .btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
  }

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

  .btn:active {
    transform: scale(0.97);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(28px, 5vw, 64px) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  /* field markings: faint yard lines fading in toward the athlete */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 45%, rgb(47 95 208 / 0.26), transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgb(255 255 255 / 0.045) calc(10% - 1px) 10%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(16px, 4vw, 56px);
}

.hero h1 {
  margin-top: 10px;
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.hero-role {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 600;
}

.hero-school {
  margin-top: 4px;
  color: var(--muted);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px clamp(20px, 3vw, 36px);
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-size: var(--text-xs);
  color: var(--muted);
}

.hero-facts dd {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  white-space: nowrap;
}

.hero-facts + .fine {
  margin-top: 6px;
}

.hero-highlight {
  margin-top: 22px;
  padding: 14px 0 0 16px;
  border-left: 3px solid var(--gold);
}

.hl-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
}

.hl-value span {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold);
  margin-right: 4px;
}

.hl-split {
  margin-top: 2px;
  font-weight: 600;
}

.hero-highlight .fine {
  margin-top: 4px;
}

.hero .actions {
  margin-top: 26px;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: end center;
  height: clamp(420px, 62vh, 600px);
}

.hero-stage {
  position: absolute;
  inset: 4% 0 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-stage::after {
  /* ground shadow */
  content: "";
  position: absolute;
  bottom: 0;
  left: 18%;
  right: 18%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.7), transparent);
}

.hero-numeral {
  font-family: var(--font-display);
  font-size: clamp(16rem, 32vw, 30rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgb(226 179 74 / 0.16);
  user-select: none;
}

.hero-photo {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.55));
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 10px;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.scroll-cue span {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  rotate: 45deg;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stage {
    animation: stage-in var(--t-hero) var(--ease-out) both;
  }

  .hero-photo {
    animation: photo-in var(--t-hero) var(--ease-out) 80ms both;
  }

  .scroll-cue span {
    animation: cue 2.4s ease-in-out 1.2s 3;
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes photo-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes cue {
  50% {
    translate: 0 5px;
  }
}

/* phone + small tablet hero: single column, actions next to identity */
@media (max-width: 759px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-media {
    height: auto;
    height: clamp(280px, 78vw, 360px);
    margin-top: 8px;
    border-radius: var(--radius-lg);
    background:
      radial-gradient(70% 80% at 50% 55%, rgb(47 95 208 / 0.28), transparent 70%),
      var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
  }

  .hero-photo {
    position: absolute;
    top: 6%;
    left: 50%;
    translate: -50% 0;
    height: 150%;
    max-width: none;
    object-position: top center;
  }

  .hero-numeral {
    font-size: 15rem;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, auto));
    gap: 6px 18px;
  }

  .hero-facts dd {
    font-size: 1.0625rem;
  }

  .hero .actions .btn {
    flex: 1 1 0;
    padding-inline: 12px;
  }

  .hero .actions .btn-primary {
    flex-basis: 100%;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 359px) {
  .hero-facts {
    grid-template-columns: 1fr 1fr;
  }

  .hero .actions .btn {
    flex-basis: 100%;
  }
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.section-head h2 {
  margin-top: 6px;
  font-size: var(--text-xl);
}

.lede {
  margin-top: 10px;
  max-width: 64ch;
  color: var(--muted);
}

.lede a {
  color: var(--gold);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 26px);
}

/* reveal: content is visible unless JS has opted in */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--t-section) var(--ease-out) var(--delay, 0ms),
    transform var(--t-section) var(--ease-out) var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- film ---------- */

.film-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.player-card {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.player-loading {
  opacity: 0;
  transition: opacity var(--t-fast);
}

.player-frame[data-state="loading"] .player-loading {
  opacity: 1;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgb(255 255 255 / 0.25);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.player-error {
  pointer-events: auto;
  background: rgb(7 12 18 / 0.92);
  padding: 20px;
  text-align: center;
  align-content: center;
  gap: 14px;
}

.player-error[hidden] {
  display: none;
}

.player-error .actions {
  justify-content: center;
}

.player-info {
  padding: 16px 10px 8px;
}

.player-info h3 {
  margin-top: 4px;
  font-size: 1.5rem;
}

.player-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.player-info .actions {
  margin-top: 14px;
}

.film-library {
  display: grid;
  gap: 18px;
}

.reel-group .label {
  margin-bottom: 8px;
}

.reel-list {
  display: grid;
  gap: 6px;
}

.reel {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 6px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}

.reel-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-time {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgb(0 0 0 / 0.8);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.reel-text {
  display: grid;
  gap: 2px;
}

.reel-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

.reel-detail {
  font-size: var(--text-xs);
  color: var(--muted);
}

.reel[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgb(226 179 74 / 0.1);
  box-shadow: inset 3px 0 0 var(--gold);
}

.reel[aria-pressed="true"] .reel-title {
  color: var(--gold);
}

@media (hover: hover) {
  .reel:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
  }
}

.archive {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.archive summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  list-style: none;
}

.archive summary::-webkit-details-marker {
  display: none;
}

.archive summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  rotate: 45deg;
  transition: rotate var(--t-fast);
}

.archive[open] summary::after {
  rotate: 225deg;
}

.archive > :not(summary) {
  margin: 0 18px 16px;
}

.archive-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
}

.archive-links a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.archive-links .tnum {
  color: var(--muted);
  min-width: 2.6rem;
}

@media (hover: hover) {
  .archive-links a:hover {
    color: var(--gold);
  }
}

@media (max-width: 899px) {
  .film-layout {
    grid-template-columns: 1fr;
  }

  .film-library {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
  }
}

/* ---------- profile ---------- */

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.profile-list > div:first-child {
  padding-top: 0;
}

.profile-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-list dt {
  color: var(--muted);
  font-size: var(--text-sm);
}

.profile-list dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-list dd .muted {
  font-weight: 400;
}

.note-card p {
  margin-top: 10px;
  font-size: var(--text-sm);
}

@media (max-width: 759px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-list > div {
    grid-template-columns: 8rem minmax(0, 1fr);
  }
}

@media (max-width: 359px) {
  .profile-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- stats ---------- */

.stat-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  margin-top: 16px;
}

.stat-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stat dd {
  display: contents;
}

.stat-value {
  order: 1;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat dt {
  order: 2;
  margin-top: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
}

.stat-note {
  order: 3;
  font-size: var(--text-xs);
  color: var(--muted);
}

.rank-list {
  margin-top: 14px;
  display: grid;
}

.rank-list li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}

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

.rank-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.rank-list + .fine {
  margin-top: 10px;
}

.label-gap {
  margin-top: 26px;
}

.results {
  display: grid;
}

.results li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.results li > :first-child {
  color: var(--muted);
}

.wl {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.wl.win {
  color: var(--win);
}

.wl.loss,
.wl.later {
  color: var(--loss);
}

.results + .fine {
  margin-top: 10px;
}

@media (max-width: 899px) {
  .stat-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 559px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- coverage ---------- */

.coverage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.coverage-meta {
  font-size: var(--text-xs);
  color: var(--muted);
}

.coverage-card h3 {
  margin-top: 8px;
  font-size: 1.1875rem;
  line-height: 1.25;
}

.coverage-card h3 a {
  color: var(--text);
  text-decoration: none;
}

@media (hover: hover) {
  .coverage-card h3 a:hover {
    color: var(--gold);
    text-decoration: underline;
  }
}

.coverage-card p:not(.coverage-meta) {
  margin-top: 8px;
  font-size: var(--text-sm);
}

.coverage-list + .fine {
  margin-top: 14px;
}

/* ---------- baseball ---------- */

/* showcase: one cutout at a time, no card box; flies in from the side, holds, flies out */
.showcase {
  position: relative;
  --sc-h: clamp(300px, 46vh, 440px);
}

.sc-stage {
  position: relative;
  height: var(--sc-h);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.sc-floor {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: min(70%, 480px);
  height: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(47 95 208 / 0.42), rgb(47 95 208 / 0.12) 55%, transparent 72%);
  pointer-events: none;
}

.sc-floor::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(226 179 74 / 0.55), transparent);
}

.sc-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.sc-track::-webkit-scrollbar { display: none; }

.sc-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: calc(var(--sc-h) * 0.12);
}

.sc-slide img {
  display: block;
  width: auto;
  height: auto;
  /* never blow a small cutout up past ~1.15× its native pixels */
  max-height: min(100%, calc(var(--nh, 600) * 1.15px));
  max-width: min(92%, 560px);
  object-fit: contain;
  filter: drop-shadow(0 26px 28px rgb(0 0 0 / 0.6)) drop-shadow(0 0 36px rgb(47 95 208 / 0.18));
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity;
}

.sc-slide.is-wide { padding-bottom: calc(var(--sc-h) * 0.17); }

.sc-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  padding: 0 72px;
  text-shadow: 0 1px 10px #000;
}

.sc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgb(7 12 18 / 0.7);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease-out);
}

.sc-nav:hover { border-color: var(--gold); background: var(--surface-2); }
.sc-nav:active { transform: translateY(-50%) scale(0.94); }
.sc-prev { left: 10px; }
.sc-next { right: 10px; }

.sc-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  min-height: 32px;
}

.sc-dots { display: flex; gap: 8px; align-items: center; }

.sc-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 350ms var(--ease-out), background var(--t-fast);
}

.sc-dots button[aria-selected="true"] { width: 26px; background: var(--gold); }

.sc-count {
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.sc-count b { color: var(--text); font-weight: 700; }

.sc-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sc-play:hover { border-color: var(--gold); color: var(--text); }
.sc-play[aria-pressed="false"] svg { display: none; }
.sc-play[aria-pressed="false"]::before {
  content: "";
  margin-left: 3px;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

html:not(.js) .sc-nav,
html:not(.js) .sc-bar { display: none; }

@media (max-width: 559px) {
  .showcase { --sc-h: clamp(280px, 42vh, 400px); }
  .sc-nav { width: 40px; height: 40px; }
  .sc-prev { left: 4px; }
  .sc-next { right: 4px; }
  .sc-slide figcaption { font-size: var(--text-xs); padding: 0 52px; }
  .sc-slide img { max-width: 84%; }
  .sc-slide.is-wide img { max-width: 80%; }
}

/* JS mode: stacked slides, fly in / fly out */
.js .sc-track { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; }
.js .sc-slide { position: absolute; inset: 0; flex: none; visibility: hidden; pointer-events: none; }
.js .sc-slide.is-active { visibility: visible; pointer-events: auto; }
.js .sc-slide.is-leaving { visibility: visible; }
.js .sc-slide img,
.js .sc-slide figcaption { opacity: 0; }
.js .sc-slide img { transform: translateX(var(--from, 70%)) scale(0.96); }
.js .sc-slide figcaption { transform: translateY(10px); }
.js .sc-slide.is-active img { opacity: 1; transform: none; transition: transform 850ms var(--ease-out), opacity 600ms ease; }
.js .sc-slide.is-active figcaption { opacity: 1; transform: none; transition: opacity 500ms ease 350ms, transform 600ms var(--ease-out) 350ms; }
.js .sc-slide.is-leaving img { opacity: 0; transform: translateX(var(--to, -70%)) scale(0.96); transition: transform 700ms var(--ease-out), opacity 450ms ease 100ms; }
.js .sc-slide.is-leaving figcaption { opacity: 0; transition: opacity 250ms ease; }
.js .sc-floor { transition: transform 850ms var(--ease-out), opacity 600ms ease; }
.js .showcase.is-switching .sc-floor { transform: translateX(-50%) scaleX(0.6); opacity: 0.4; }

@media (prefers-reduced-motion: reduce) {
  .js .sc-slide img,
  .js .sc-slide.is-leaving img { transform: none; }
  .js .sc-slide.is-active img,
  .js .sc-slide.is-leaving img { transition: opacity 400ms ease; }
  .js .sc-slide figcaption { transform: none; }
  .js .sc-floor { transition: none; }
}

.results-baseball li {
  grid-template-columns: 4rem minmax(0, 1fr) 1.5rem;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.contact-card h3 {
  margin-top: 6px;
  font-size: 1.5rem;
}

.contact-email {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-card .actions {
  margin-top: 16px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
}

.profile-links svg {
  width: 15px;
  height: 15px;
}

@media (hover: hover) {
  .profile-links a:hover {
    text-decoration: underline;
  }
}

.section-sources {
  padding-block: 32px;
}

.section-sources .archive {
  margin-top: 0;
}

.source-list {
  display: grid;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: 28px 40px;
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-row a {
  display: inline-block;
  padding-block: 10px;
}

.copy-status {
  color: var(--gold);
}
