/* ============================================================
   1. DESIGN TOKENS
   Every color and gradient lives here. Change one, the site follows.
   ============================================================ */
:root {
  --blue: #004d98;
  --blue-bright: #1565d8;
  --garnet: #a50044;
  --garnet-bright: #db0a5b;
  --gold: #edbb00;
  --win: #16a34a;
  --draw: #8a8f98;
  --loss: #dc2638;

  /* The signature gradients */
  --grad: linear-gradient(120deg, var(--blue) 0%, #3a2a8c 50%, var(--garnet) 100%);
  --grad-bright: linear-gradient(120deg, var(--blue-bright), var(--garnet-bright));
  --grad-text: linear-gradient(90deg, var(--blue-bright), var(--garnet-bright));
  --stripes: repeating-linear-gradient(90deg, var(--blue) 0 48px, var(--garnet) 48px 96px);

  --bg: #f3f5fb;
  --surface: #ffffff;
  --surface-2: #eceff8;
  --text: #0c1430;
  --text-muted: #56607b;
  --border: #dde2ee;
  --shadow: 0 1px 2px rgba(12,20,48,.06), 0 10px 30px rgba(12,20,48,.08);
  --glow-blue: 0 14px 40px rgba(21,101,216,.35);
  --glow-garnet: 0 14px 40px rgba(219,10,91,.35);

  --radius: 18px;
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060a18;
    --surface: #0e162e;
    --surface-2: #17213f;
    --text: #eef2fb;
    --text-muted: #9ca7c4;
    --border: #233160;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.3);
  }
}

/* ============================================================
   2. BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 110% 0%, rgba(165,0,68,.10), transparent 60%),
    radial-gradient(800px 500px at -10% 40%, rgba(0,77,152,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; line-height: 1; margin: 0; }
h2 {
  font-size: 2.3rem; margin-bottom: 16px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  width: fit-content;
}
h3 { font-size: 1.5rem; }
section { padding: 36px 0 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.more { font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--blue-bright); white-space: nowrap; }
.more:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { .more { color: #79a8ff; } }

/* ============================================================
   3. TOP BAR + DROPDOWN MENU
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,14,36,.82);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar::after { content: ""; position: absolute; inset: auto 0 -3px 0; height: 3px; background: var(--grad-bright); }
.topbar .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; padding-top: env(safe-area-inset-top); }
.brand { font: 400 1.35rem/1 var(--font-display); text-decoration: none; letter-spacing: .03em; margin-right: auto; white-space: nowrap; }
@media (min-width: 480px) { .brand { font-size: 1.6rem; } }
.brand span { color: var(--gold); }

.lang { display: inline-flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 3px; }
.lang button {
  appearance: none; border: 0; background: transparent; color: #fff; cursor: pointer;
  font: 700 .75rem var(--font-body); letter-spacing: .06em;
  min-width: 36px; min-height: 34px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: #fff; color: #0b1530; }

.menu { position: relative; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  appearance: none; border: 0; cursor: pointer; color: #fff;
  background: var(--grad-bright);
  font: 700 .9rem var(--font-body); min-height: 40px; padding: 0 14px; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(219,10,91,.3);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.menu-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(219,10,91,.4); }
.menu-btn svg { transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(270px, calc(100vw - 32px));
  background: #0c1534; color: #fff;
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  padding: 8px; list-style: none; margin: 0;
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right;
  pointer-events: none; visibility: hidden;
  transition: opacity .18s ease, transform .2s var(--ease), visibility 0s .2s;
}
.menu-panel.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .18s ease, transform .2s var(--ease); }
.menu-panel a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 10px; text-decoration: none; font-weight: 600;
  transition: background .15s;
}
.menu-panel a:hover { background: rgba(255,255,255,.08); }
.menu-panel a[aria-current="page"] { background: var(--grad); }
.menu-panel .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.1); flex: none; }
.menu-panel small { display: block; font-weight: 400; opacity: .7; font-size: .78rem; }

/* ============================================================
   4. HERO (home) + PAGE HEADER (inner pages)
   ============================================================ */
.hero, .page-head {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad);
}
.hero::before, .page-head::before {
  content: ""; position: absolute; inset: -60% -30% auto auto;
  width: 130%; height: 220%;
  background: var(--stripes);
  transform: rotate(20deg); opacity: .35;
  mask-image: linear-gradient(200deg, #000 10%, transparent 60%);
  -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 60%);
}
.hero::after, .page-head::after { /* gold glow */
  content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -200px;
  background: radial-gradient(circle, rgba(237,187,0,.35), transparent 65%);
}
.hero > *, .page-head > * { position: relative; z-index: 1; }
.hero { padding: 34px 0 110px; }
.hero .kicker, .page-head .kicker { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font-size: clamp(3.6rem, 17vw, 6.4rem); margin-top: 10px; text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.hero h1 span { display: block; color: var(--gold); }
.hero p.lead { font-size: 1.15rem; color: #e3e8fb; max-width: 32ch; margin: 10px 0 0; }
.page-head { padding: 30px 0 34px; }
.page-head h1 { font-size: clamp(3rem, 14vw, 4.8rem); margin-top: 8px; }
.page-head p { margin: 6px 0 0; color: #e3e8fb; max-width: 40ch; }

/* ============================================================
   5. NEXT MATCH (big card)
   ============================================================ */
.next { margin-top: -84px; position: relative; padding: 22px 20px 20px; overflow: hidden; }
.next::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad-bright); }
.next-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip.ucl { background: #0d1a52; color: #fff; }
.chip.liga { background: #ffefc4; color: #6b4a00; }
@media (prefers-color-scheme: dark) { .chip.liga { background: #3a2c05; color: #ffd866; } .chip.ucl { background: #283a8f; } }

.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 18px 0 14px; text-align: center; }
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.team-name { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.05; overflow-wrap: anywhere; }
.badge { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font: 400 1.45rem var(--font-display); color: #fff; background: #5b6276; }
.badge.barca { background: linear-gradient(90deg, var(--blue) 50%, var(--garnet) 50%); box-shadow: 0 0 0 4px rgba(237,187,0,.35); }
.vs { font: 400 1.6rem var(--font-display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.when { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; text-align: center; font-weight: 700; font-size: 1.05rem; }
.when .tz { width: 100%; font-weight: 400; font-size: .85rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.countdown div { background: var(--grad); color: #fff; border-radius: 14px; padding: 10px 4px; text-align: center; }
.countdown strong { display: block; font: 400 2.1rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.live-pill { display: none; margin-top: 16px; text-align: center; font-weight: 700; color: var(--loss); }

/* ============================================================
   6. MATCH CARDS (results + fixtures) with hover animation
   ============================================================ */
.match-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.match-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, color .25s;
}
/* gradient layer that slides in on hover */
.match-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad);
  transform: translateX(-101%);
  transition: transform .4s var(--ease);
}
/* diagonal light sweep */
.match-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); opacity: 0; pointer-events: none;
}
.match-card:hover, .match-card:focus-within {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--glow-garnet);
  border-color: transparent; color: #fff;
}
.match-card:hover::before, .match-card:focus-within::before { transform: none; }
.match-card:hover::after { opacity: 1; animation: sweep .8s var(--ease) forwards; }
.match-card:hover .muted, .match-card:hover .meta { color: rgba(255,255,255,.8); }
.match-card:hover .score strong { transform: scale(1.12); }
.match-card:active { transform: scale(.985); }
@keyframes sweep { to { left: 130%; } }

/* left colour rail: W/D/L for results, comp colour for fixtures */
.rail { width: 6px; align-self: stretch; border-radius: 6px; background: var(--grad-bright); }
.rail.W { background: var(--win); } .rail.D { background: var(--draw); } .rail.L { background: var(--loss); }
.match-card .opp { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.match-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .85rem; color: var(--text-muted); margin-top: 3px; }
.score { display: flex; align-items: center; gap: 10px; }
.score strong { font: 400 1.9rem/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: .04em; transition: transform .25s var(--ease); }
.date-box { text-align: center; min-width: 50px; background: var(--surface-2); border-radius: 12px; padding: 6px 4px; transition: background .25s; }
.match-card:hover .date-box { background: rgba(255,255,255,.15); }
.date-box strong { display: block; font: 400 1.7rem/1 var(--font-display); }
.date-box span { font-size: .68rem; font-weight: 700; text-transform: uppercase; opacity: .75; }

.pip { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 400 1.15rem var(--font-display); color: #fff; flex: none; }
.pip.W { background: var(--win); } .pip.D { background: var(--draw); } .pip.L { background: var(--loss); }
.score .pip { width: 30px; height: 30px; font-size: 1rem; }
.form { display: flex; gap: 6px; margin-bottom: 14px; }

/* filters on the Fixtures page */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button {
  appearance: none; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: 700 .85rem var(--font-body); min-height: 40px; padding: 0 16px; border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.filters button:hover { transform: translateY(-1px); }
.filters button[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }

/* ============================================================
   7. PLAYER / LEGEND CARDS
   ============================================================ */
.rail-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 4px 16px 16px; margin: 0 -16px; scrollbar-width: none; }
.rail-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .rail-scroll { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 4px 0 0; margin: 0; } }

.star {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3 / 4; scroll-snap-align: start; text-decoration: none; color: #fff;
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.star img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.star::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,10,40,.9)), linear-gradient(140deg, rgba(0,77,152,.35), rgba(165,0,68,.35)); }
.star .label { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.star .label strong { display: block; font: 400 1.9rem/1 var(--font-display); }
.star .label span { font-size: .8rem; color: var(--gold); font-weight: 700; letter-spacing: .06em; }
.star:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--glow-blue); }
.star:hover img { transform: scale(1.08); }

.legends { display: grid; gap: 16px; }
@media (min-width: 640px) { .legends { grid-template-columns: 1fr 1fr; } }
.legend {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff;
  min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.legend img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.legend::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(5,8,30,.95) 92%); }
.legend:nth-child(odd)::after, .legend:nth-child(even)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: soft-light; opacity: .9;
}
.legend:nth-child(odd)::after { background: linear-gradient(160deg, var(--blue-bright), transparent 60%); }
.legend:nth-child(even)::after { background: linear-gradient(160deg, var(--garnet-bright), transparent 60%); }
.legend .body { position: relative; z-index: 2; padding: 20px; }
.legend .years { font-weight: 700; letter-spacing: .08em; font-size: .8rem; color: var(--gold); }
.legend h3 { font-size: 2.8rem; margin: 4px 0 6px; }
.legend p { margin: 0; color: #dde3f7; }
.legend .big { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.legend .big strong { font: 400 3rem/1 var(--font-display); background: linear-gradient(90deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legend .big span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.legend .now { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--gold); color: #1d1600; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.legend:hover { transform: translateY(-6px); box-shadow: var(--glow-garnet); }
.legend:hover img { transform: scale(1.06); }

/* ============================================================
   8. STATS
   ============================================================ */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 16px; position: relative; overflow: hidden; color: #fff; border: 0; transition: transform .25s var(--ease); }
.tile:nth-child(1) { background: linear-gradient(140deg, #0b1d4f, var(--blue)); }
.tile:nth-child(2) { background: linear-gradient(140deg, var(--blue), var(--blue-bright)); }
.tile:nth-child(3) { background: linear-gradient(140deg, var(--garnet), var(--garnet-bright)); }
.tile:nth-child(4) { background: linear-gradient(140deg, #6b0030, var(--garnet)); }
.tile:hover { transform: translateY(-3px); }
.tile strong { display: block; font: 400 2.8rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.tile span { font-size: .85rem; opacity: .9; }

.season-strip { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; padding: 14px; }
.season-strip .pip { flex: 1 0 14px; max-width: 28px; width: auto; height: auto; aspect-ratio: 1; border-radius: 5px; font-size: .7rem; }
.split { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 560px) { .split { grid-template-columns: 1fr 1fr; } }
.split .card { padding: 16px; }
.split h3 { font-size: 1.4rem; margin-bottom: 10px; }
.split dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.split dt { color: var(--text-muted); } .split dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.big-win { margin-top: 10px; padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--grad); color: #fff; border: 0; }
.big-win .display { font-size: 3rem; }

/* goals per match chart */
.goals-chart { padding: 16px; margin-top: 10px; }
.goals-chart .bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.goals-chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; }
.goals-chart .for { background: var(--grad-bright); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow .7s var(--ease) both; }
.goals-chart .against { background: var(--draw); opacity: .55; border-radius: 0 0 4px 4px; }
.goals-chart .legend-row { display: flex; gap: 14px; font-size: .8rem; color: var(--text-muted); margin-top: 10px; }
.goals-chart .legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
@keyframes grow { from { transform: scaleY(0); } }

.players { display: grid; gap: 12px; }
@media (min-width: 560px) { .players { grid-template-columns: 1fr 1fr; } }
.player { overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.player:hover { transform: translateY(-4px); box-shadow: var(--glow-blue); }
.player figure { margin: 0; position: relative; aspect-ratio: 4 / 3; }
.player img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.player figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6,10,40,.85)), linear-gradient(140deg, rgba(0,77,152,.4), rgba(165,0,68,.35)); }
.player figcaption { position: absolute; left: 14px; bottom: 10px; z-index: 1; color: #fff; font: 400 2.4rem/1 var(--font-display); }
.player .stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 6px; text-align: center; }
.player .stats strong { display: block; font: 400 2rem/1 var(--font-display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.player .stats span { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

.assists { padding: 16px; margin-top: 12px; }
.assists h3 { margin: 0 0 12px; font-size: 1.4rem; }
.bar-row { display: grid; grid-template-columns: 7.5rem 1fr 2rem; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .95rem; }
.bar { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad-bright); width: 0; transition: width .9s var(--ease); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   9. TIMELINE + PHOTOS (Legends page)
   ============================================================ */
.pano { border-radius: var(--radius); overflow: hidden; margin: 0; }
.pano img { width: 100%; height: 150px; object-fit: cover; }
@media (min-width: 560px) { .pano img { height: 210px; } }
.timeline { list-style: none; margin: 20px 0 0; padding: 0 0 0 24px; border-left: 3px solid; border-image: var(--grad-bright) 1; }
.timeline li { position: relative; padding: 0 0 24px; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.timeline .year { font: 400 1.1rem var(--font-display); color: var(--gold); letter-spacing: .08em; }
.timeline .line { font: 400 1.8rem/1.05 var(--font-display); }
.timeline p { margin: 4px 0 0; }
.timeline figure { margin: 10px 0 0; border-radius: 14px; overflow: hidden; }
.timeline figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo { margin: 0; }
.photo img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
figcaption.cap { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }

/* ============================================================
   10. FOOTER
   ============================================================ */
.site-footer { margin-top: 48px; padding: 28px 0 max(28px, env(safe-area-inset-bottom)); background: #070c1f; color: #a9b3cf; font-size: .85rem; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-bright); }
.site-footer strong { color: #fff; }
.site-footer p { margin: 0 0 10px; }
.site-footer ul { margin: 0; padding-left: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
.site-footer nav a { color: #fff; font-weight: 700; text-decoration: none; }

/* ============================================================
   11. MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (hover: none) { /* phones: no hover, so skip the colour flip but keep the press feedback */
  .match-card:hover, .match-card:focus-within { transform: none; color: inherit; box-shadow: var(--shadow); border-color: var(--border); }
  .match-card:hover::before { transform: translateX(-101%); }
  .match-card:hover .muted, .match-card:hover .meta { color: var(--text-muted); }
  .match-card:active { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
