/* =====================================================
   Edward Brand - Coaching Dossier
   Palette: ink, bone, electric blue
   Type:    Fraunces (display) · Inter (body) · JetBrains Mono (data)
   ===================================================== */

:root {
  --ink:        #0B0B0F;
  --ink-2:      #111217;
  --ink-3:      #15171D;
  --line:       rgba(239, 233, 221, 0.12);
  --line-2:     rgba(239, 233, 221, 0.06);
  --bone:       #EFE9DD;
  --bone-mute:  rgba(239, 233, 221, 0.62);
  --bone-soft:  rgba(239, 233, 221, 0.42);
  --accent:     #3B66FF;            /* electric blue */
  --accent-2:   #5C82FF;
  --accent-dim: rgba(59, 102, 255, 0.18);
  --grain:      0.05;
  --rail-bg:    linear-gradient(180deg, rgba(11,11,15,0.92), rgba(11,11,15,0.0));
  --halo:       rgba(59,102,255,0.10);
  --photo-tint: linear-gradient(180deg, rgba(59,102,255,0.18) 0%, rgba(11,11,15,0.0) 30%, rgba(11,11,15,0.55) 100%);
  --pitch-bg:   #0d0f13;
  --pitch-line: rgba(239,233,221,0.18);
  --player-circle-stroke: var(--ink);
  --on-accent:  #EFE9DD;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 72px);
}

/* ---------- LIGHT MODE ---------- */
:root[data-theme="light"] {
  --ink:        #F4EFE3;       /* paper */
  --ink-2:      #ECE5D2;
  --ink-3:      #E0D7BD;
  --line:       rgba(20, 18, 15, 0.14);
  --line-2:     rgba(20, 18, 15, 0.06);
  --bone:       #14161B;       /* near-black ink */
  --bone-mute:  rgba(20, 18, 15, 0.66);
  --bone-soft:  rgba(20, 18, 15, 0.42);
  --accent:     #2547D6;
  --accent-2:   #1B36AE;
  --accent-dim: rgba(37, 71, 214, 0.20);
  --grain:      0.04;
  --rail-bg:    linear-gradient(180deg, rgba(244,239,227,0.92), rgba(244,239,227,0.0));
  --halo:       rgba(37, 71, 214, 0.06);
  --photo-tint: linear-gradient(180deg, rgba(37,71,214,0.10) 0%, rgba(244,239,227,0.0) 30%, rgba(244,239,227,0.35) 100%);
  --pitch-bg:   #ECE5D2;
  --pitch-line: rgba(20,18,15,0.22);
  --player-circle-stroke: #F4EFE3;
  --on-accent:  #EFE9DD;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--bone); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  font-feature-settings: "ss01", "ss02", "cv11";
  background:
    radial-gradient(80% 60% at 50% -10%, var(--halo), transparent 60%),
    var(--ink);
  transition: background-color .35s ease, color .35s ease;
}

/* Subtle film grain across the page - gives the "printed dossier" feel */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 880px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin: 0 0 24px;
}
.muted { color: var(--bone-mute); }
.muted.small { font-size: 13px; }
.ital { font-style: italic; font-variation-settings: "SOFT" 100; color: var(--bone); }

.section-head { margin-bottom: clamp(40px, 6vw, 96px); max-width: 980px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  overflow-wrap: anywhere;
}
.section-lede {
  margin-top: 28px;
  max-width: 720px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--bone-mute);
}
.section-title--two { font-size: clamp(32px, 4.4vw, 62px); }
.section-title--two .st-line { display: block; }

/* =====================================================
   TOP RAIL
   ===================================================== */
.rail {
  position: fixed; top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-mute);
  background: var(--rail-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 80;
}
.rail__l { justify-self: start; }
.rail__c { justify-self: center; display: inline-flex; align-items: center; gap: 8px; color: var(--bone); }
.rail__r { justify-self: end; display: inline-flex; align-items: center; gap: 18px; }
.rail__r a { transition: color .2s; }
.rail__r a:hover { color: var(--accent-2); }

/* Theme toggle */
.theme {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--bone-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .25s ease, color .25s ease;
}
.theme:hover { border-color: var(--bone-soft); }
.theme__opt { color: var(--bone-mute); transition: color .25s ease; }
.theme__opt.is-active { color: var(--bone); }
.theme__opt.is-active::before {
  content: "●";
  margin-right: 5px;
  color: var(--accent);
  font-size: 9px;
  vertical-align: 1px;
}
.theme__sep { color: var(--bone-soft); }
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #38d27f;
  box-shadow: 0 0 0 0 rgba(56, 210, 127, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 210, 127, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(56, 210, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 210, 127, 0); }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 88px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero::before {
  /* Pitch line grid overlay, very faint */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 80%);
  opacity: 0.6;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 360px;
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  flex: 1;
  padding-top: 4vh;
}
.hero__title { min-width: 0; }

/* meta rail */
.hero__meta {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  margin-bottom: 18px;
}
.hero__meta ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.hero__meta li { display: grid; gap: 4px; }
.hero__meta .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-soft);
}
.hero__meta .v {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--bone);
}

/* title */
.hero__title { max-width: 720px; }
.display {
  font-family: var(--font-display);
  font-weight: 280;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 18px 0 28px;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  overflow-wrap: anywhere;
}
.display__line { display: block; }
.display__line--italic {
  margin-left: clamp(20px, 4vw, 64px);
  color: var(--bone);
}
.hero__sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--bone-mute);
  max-width: 540px;
  line-height: 1.5;
  margin: 0;
}

/* hero photo */
.hero__photo {
  margin: 0;
  position: relative;
  align-self: end;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-height: 70vh;
  background: var(--ink-2);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 28%;
  filter: grayscale(15%) contrast(1.05);
  transform: scale(1.02);
}
.hero__photo::after {
  /* Chelsea-blue duotone wash */
  content: "";
  position: absolute; inset: 0;
  background: var(--photo-tint);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero__photo figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex; align-items: center; gap: 10px;
  z-index: 2;
}
.hero__photo figcaption span {
  background: var(--accent);
  color: var(--on-accent);
  padding: 4px 7px;
  font-weight: 600;
}

/* KPI strip */
.kpi {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 56px;
}
.kpi__cell {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.kpi__cell:last-child { border-right: none; }
.kpi__n {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bone);
  font-variation-settings: "opsz" 144;
}
.kpi__n sup { font-size: 0.4em; vertical-align: top; color: var(--accent-2); margin-left: 4px; }
.kpi__l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-mute);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-mute);
  display: flex; align-items: center; gap: 12px;
  z-index: 5;
}
.hero__scroll .line {
  width: 60px; height: 1px; background: var(--bone-soft); position: relative; overflow: hidden;
}
.hero__scroll .line::after {
  content: ""; position: absolute; inset: 0; width: 30%; background: var(--accent);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line { 0% { transform: translateX(-100%); } 100% { transform: translateX(330%); } }

/* =====================================================
   PROFILE
   ===================================================== */
.profile {
  padding: clamp(120px, 14vw, 200px) 0 clamp(80px, 10vw, 140px);
  position: relative;
}
.pull {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 56px;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  color: var(--bone);
}
.profile__body p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 22px;
  color: var(--bone-mute);
}
.profile__body p:first-child { color: var(--bone); }
.profile__body em { font-style: italic; color: var(--bone); }
.profile__cta {
  margin-top: 32px !important;
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: rgba(59,102,255,0.05);
  color: var(--bone) !important;
  font-size: 16px !important;
}

/* =====================================================
   PHILOSOPHY
   ===================================================== */
.philosophy {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.philo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.philo > * { min-width: 0; }
.philo__principles ol {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.philo__principles li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--bone);
  font-variation-settings: "opsz" 36, "SOFT" 40;
}
.philo__principles li:last-child { border-bottom: 1px solid var(--line); }
.philo__principles li span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  align-self: center;
}

.philo__formations { margin-top: 40px; }
.philo__formations .muted { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.tabs { display: flex; gap: 8px; }
.tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone-mute);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  cursor: pointer;
  transition: all .2s ease;
}
.tab:hover { color: var(--bone); border-color: var(--bone-soft); }
.tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.formation-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--bone-mute);
  max-width: 460px;
  line-height: 1.55;
}

/* pitch */
.pitch-wrap {
  margin: 0;
  position: sticky; top: 80px;
}
.pitch {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 600 / 900;
  display: block;
  border: 1px solid var(--line);
  background: var(--pitch-bg);
}
.pitch .pitch-bg { fill: var(--pitch-bg); }
.pitch .pitch-lines { stroke: var(--pitch-line); }
.pitch .spot { fill: var(--bone-soft); }
.player text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--bone);
  text-anchor: middle;
  dominant-baseline: middle;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.player circle {
  fill: var(--bone);
  stroke: var(--player-circle-stroke);
  stroke-width: 3;
  transition: transform .25s ease, fill .25s ease;
}
.player text { fill: var(--player-circle-stroke); }
.player--accent circle { fill: var(--accent); }
.player--accent text { fill: var(--on-accent); }
.player {
  transform-origin: 0 0;
  animation: pop .5s cubic-bezier(.2,.7,.2,1.3) both;
}
.arrows path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw 1.4s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pitch__cap {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: start;
  font-size: 13px;
  color: var(--bone-mute);
  line-height: 1.5;
}
.pitch__cap .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  padding-top: 2px;
}

/* =====================================================
   TIMELINE
   ===================================================== */
.timeline { padding: clamp(120px, 14vw, 200px) 0 clamp(120px, 14vw, 200px); }

.tl {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.tl::before {
  content: "";
  position: absolute;
  left: 220px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.tl__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 60px;
  padding: 32px 0;
  position: relative;
}
.tl__row::before {
  content: "";
  position: absolute;
  left: 215px;
  top: 50px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bone-soft);
  border: 2px solid var(--ink);
}
.tl__row--coach::before { background: var(--bone); }
.tl__row--senior::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(59,102,255,0.18); }
.tl__row--play::before { background: var(--bone-soft); }
.tl__row--now::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(59,102,255,0.18), 0 0 0 8px rgba(59,102,255,0.0);
  animation: live 2s ease-in-out infinite;
}
@keyframes live {
  0%, 100% { box-shadow: 0 0 0 4px rgba(59,102,255,0.18), 0 0 0 0 rgba(59,102,255,0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(59,102,255,0.18), 0 0 0 14px rgba(59,102,255,0); }
}
.tl__year {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--bone-mute);
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.4;
}
.tl__year span:first-child { color: var(--bone); font-weight: 500; }
.tl__year span:last-child { color: var(--bone); font-weight: 500; }
.tl__body { padding-left: 36px; }
.tl__tag {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.tl__row--play .tl__tag { color: var(--bone-soft); }
.tl__body h3 {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72, "SOFT" 50;
}
.tl__detail {
  margin: 0;
  color: var(--bone-mute);
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
}
.tl__chips {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tl__chips li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--bone);
  background: var(--ink-3);
}

/* =====================================================
   PLAYERS
   ===================================================== */
.players {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.players__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}
.players__col .muted {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.player-list { list-style: none; margin: 0; padding: 0; }
.player-list li {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, padding .25s ease;
}
.player-list li:hover {
  background: linear-gradient(90deg, rgba(59,102,255,0.06), transparent 80%);
  padding-left: 12px;
}
.player-list li:hover .name em { color: var(--accent-2); }
.player-list .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bone-mute);
  letter-spacing: 0.1em;
}
.player-list .name {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(22px, 2.3vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-variation-settings: "opsz" 72, "SOFT" 60;
}
.player-list .name em {
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
  transition: color .25s ease;
}
.player-list .pos-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  border: 1px solid var(--line);
  padding: 3px 7px;
}

/* =====================================================
   HONOURS
   ===================================================== */
.honours { padding: clamp(120px, 14vw, 200px) 0; }
.trophies {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.trophy {
  padding: 32px 24px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 260px;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .35s ease, border-color .35s ease;
}
.trophy:hover {
  transform: translateY(-6px);
  background: var(--ink-3);
  border-color: var(--accent-dim);
}
.trophy__n {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.trophy--alt .trophy__n {
  font-style: italic;
  color: var(--bone);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.trophy__t {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--bone);
  margin-top: auto;
  font-variation-settings: "opsz" 36;
}
.trophy__y {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-mute);
}

/* =====================================================
   STRENGTHS
   ===================================================== */
.strengths {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.grid-6 {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-6 li {
  background: var(--ink-2);
  padding: 36px 28px;
  display: grid;
  gap: 16px;
  transition: background .25s ease;
}
.grid-6 li:hover { background: var(--ink-3); }
.grid-6__n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
}
.grid-6 h3 {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(20px, 1.8vw, 26px);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-variation-settings: "opsz" 36, "SOFT" 40;
}
.grid-6 p {
  margin: 0;
  font-size: 15px;
  color: var(--bone-mute);
  line-height: 1.5;
  max-width: 280px;
}

/* =====================================================
   QUALIFICATIONS
   ===================================================== */
.quals { padding: clamp(120px, 14vw, 200px) 0; }
.quals__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.qual {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  transition: border-color .3s ease, background .3s ease;
}
.qual:hover { border-color: var(--accent-dim); background: var(--ink-3); }
.qual:nth-child(1) { grid-column: span 2; grid-row: span 2; background: linear-gradient(180deg, rgba(59,102,255,0.06), transparent 60%), var(--ink-2); border-color: var(--accent-dim); }
.qual:nth-child(1) h3 { font-size: clamp(32px, 3vw, 56px); }
.qual:nth-child(2) { grid-row: span 1; }
.qual:nth-child(3) { grid-row: span 1; }
.qual--now { grid-column: span 1; }
.qual--soft { grid-column: span 1; }
.qual__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.qual h3 {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(22px, 2vw, 30px);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-variation-settings: "opsz" 72, "SOFT" 50;
}
.qual p {
  margin: 0;
  font-size: 15px;
  color: var(--bone-mute);
  line-height: 1.5;
  margin-top: auto;
}
.qual h3 .learning {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-left: 6px;
  font-weight: 400;
  text-transform: lowercase;
}

/* =====================================================
   FOOTER
   ===================================================== */
.foot {
  padding: clamp(80px, 10vw, 140px) 0 32px;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  position: relative;
}
.foot::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.foot__name {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 16px 0 24px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  overflow-wrap: anywhere;
}
.foot__name .ital {
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  margin-left: 24px;
}
.foot__line { color: var(--bone-mute); margin: 0; }

.foot__contact ul, .foot__media ul {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; gap: 14px;
}
.foot__contact .muted, .foot__media .muted {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.foot__contact li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.foot__contact li a { overflow-wrap: anywhere; }
.foot__contact li span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-mute);
}
.foot__contact a, .foot__media a {
  color: var(--bone);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.foot__contact a:hover, .foot__media a:hover { color: var(--accent-2); border-color: var(--accent-2); }
.foot__contact .muted.small { margin-top: 24px; padding-top: 0; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.foot__media li { padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.foot__rail {
  display: flex; gap: 12px; align-items: center;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-mute);
}

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr 360px; }
  .hero__meta { display: none; }
  .philo { grid-template-columns: 1fr; }
  .pitch-wrap { position: relative; top: 0; max-width: 480px; margin: 0 auto; }
  .quals__grid { grid-template-columns: 1fr 1fr; }
  .qual:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .trophies { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .rail { font-size: 10px; padding: 10px var(--gutter); grid-template-columns: 1fr auto; gap: 8px; }
  .rail__l { display: none; }
  .rail__c { justify-self: start; font-size: 9px; letter-spacing: 0.12em; }
  .rail__c span:first-child + * { display: inline; }
  .rail__r { gap: 10px; }
  .rail__r a { display: none; }
  .theme { padding: 4px 8px; }
  .theme__opt { font-size: 9px; letter-spacing: 0.14em; }
  .hero { padding-top: 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__photo { max-height: 60vh; aspect-ratio: 3/4; order: -1; }
  .display { font-size: clamp(58px, 18vw, 100px); }
  .kpi { grid-template-columns: repeat(2, 1fr); }
  .kpi__cell:nth-child(1), .kpi__cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .kpi__cell:nth-child(2) { border-right: none; }
  .kpi__cell:nth-child(4) { border-right: none; }
  .hero__scroll { display: none; }

  .tl::before { left: 8px; }
  .tl__row { grid-template-columns: 1fr; gap: 16px; padding-left: 32px; }
  .tl__row::before { left: 3px; top: 8px; }
  .tl__body { padding-left: 0; }
  .tl__year { flex-direction: row; gap: 8px; }

  .players__cols { grid-template-columns: 1fr; }
  .trophies { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: 1fr; }
  .quals__grid { grid-template-columns: 1fr; }
  .qual:nth-child(1) { grid-column: span 1; }
  .player-list li { grid-template-columns: 36px 1fr auto; }
}
