/* ═══════════════════════════════════════════════════════════
   DAMIR KRZNAR — HEAD COACH
   Dark cinematic sports-poster editorial.
   Anton (display) · Instrument Serif (accents) · Archivo (body)
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #06090f;
  --bg-2: #0a101c;
  --ink: #f4f1e8;
  --muted: #97a1b4;
  --blue: #2b59ff;
  --blue-soft: #4f7cff;
  --blue-deep: #101d3f;
  --gold: #e6c068;
  --red: #d93a2b;
  --line: rgba(244, 241, 232, 0.12);
  --club: var(--blue);

  --font-display: "Anton", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --pad: clamp(20px, 4vw, 64px);
}

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

html { scroll-behavior: auto; }
html.has-lenis { height: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: var(--ink); }

img { max-width: 100%; user-select: none; }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.section { position: relative; padding: clamp(90px, 12vh, 160px) 0; }

/* ── shared type ─────────────────────────────── */
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 14px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.sec-title em, .sec-title-sm em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--gold);
  letter-spacing: 0;
}
.sec-title-sm {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1;
  text-transform: uppercase;
}
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); }

/* reveal-on-scroll base state (JS adds .revealed) */
.js [data-reveal] { opacity: 0; transform: translateY(42px); }
.js [data-reveal="pop"] { transform: translateY(24px) scale(0.9); }
.js [data-reveal="left"] { transform: translateX(-46px); }
.js [data-reveal].revealed {
  opacity: 1; transform: none;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* the custom cursor replaces the native one on fine pointers */
html.custom-cursor, html.custom-cursor * { cursor: none !important; }

/* ═══════════════ GRAIN + CURSOR ═══════════════ */
.grain {
  /* -12% bleed is plenty for the ±3% jitter; the old -50% made the GPU
     composite a layer 4× the viewport on every shift */
  position: fixed; inset: -12%;
  pointer-events: none; z-index: 300;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(3) infinite;
  will-change: transform;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; /* base MUST be 0,0 — transforms carry the real position */
  pointer-events: none; z-index: 400;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0; /* invisible until the first real mousemove */
}
html.cursor-on .cursor, html.cursor-on .cursor-ring { opacity: 1; }
.cursor { width: 8px; height: 8px; background: var(--gold); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(230, 192, 104, 0.5);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}
.cursor-ring.is-hover { width: 62px; height: 62px; background: rgba(43, 89, 255, 0.14); }
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ═══════════════ PRELOADER ═══════════════ */
.loader {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.loader-inner { text-align: center; }
.loader-kicker {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.4em; color: var(--muted);
}
.loader-name {
  display: flex; gap: 0.3em; justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 90px);
  line-height: 1; margin: 18px 0 26px;
}
.loader-name span { display: inline-block; }
.loader-bar {
  width: min(280px, 60vw); height: 2px; margin: 0 auto;
  background: var(--line); overflow: hidden;
}
.loader-bar i { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(6, 9, 15, 0.78);
  backdrop-filter: blur(14px);
  padding: 12px var(--pad);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 26px; letter-spacing: 0.04em;
}
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 10px 18px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.nav-right { display: flex; align-items: center; gap: clamp(10px, 2vw, 18px); }

/* ═══════════════ MOBILE NAV (≤900px) ═══════════════ */
.nav-burger { display: none; }
.mnav { display: none; }

@media (max-width: 900px) {
  .nav-burger {
    display: block; position: relative;
    width: 40px; height: 34px; flex: 0 0 40px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-burger span {
    position: absolute; left: 8px; right: 8px; height: 2px;
    background: var(--ink);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
  }
  .nav-burger span:nth-child(1) { top: 13px; }
  .nav-burger span:nth-child(2) { bottom: 13px; }
  html.mnav-open .nav-burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); background: var(--gold); }
  html.mnav-open .nav-burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); background: var(--gold); }

  /* full-screen overlay that wipes out of the burger as a growing circle */
  .mnav {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: fixed; inset: 0; z-index: 190; /* under the nav bar so DK. and the X stay up top */
    background: radial-gradient(120% 90% at 50% 0%, #0d1832 0%, var(--bg) 62%);
    clip-path: circle(0px at calc(100% - 44px) 36px);
    visibility: hidden;
    transition: clip-path 0.55s cubic-bezier(0.6, 0.05, 0.28, 1), visibility 0s linear 0.55s;
  }
  html.mnav-open .mnav {
    clip-path: circle(150vmax at calc(100% - 44px) 36px);
    visibility: visible;
    transition: clip-path 0.75s cubic-bezier(0.6, 0.05, 0.28, 1), visibility 0s;
  }
  /* the hero's red-check corner and halftone floor, echoed */
  .mnav::before {
    content: ""; position: absolute; top: 0; right: 0;
    width: min(62vw, 340px); height: min(62vw, 340px);
    background: repeating-conic-gradient(var(--red) 0% 25%, transparent 0% 50%) 0 0 / 44px 44px;
    opacity: 0.1;
    -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 10%, transparent 72%);
            mask-image: radial-gradient(circle at 100% 0%, #000 10%, transparent 72%);
  }
  .mnav::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(244, 241, 232, 0.5) 1px, transparent 1.4px);
    background-size: 26px 26px;
    opacity: 0.05;
    -webkit-mask-image: radial-gradient(90% 60% at 50% 100%, #000, transparent 75%);
            mask-image: radial-gradient(90% 60% at 50% 100%, #000, transparent 75%);
  }
  .mnav-links { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 2.2vh, 20px); }
  .mnav-links a {
    position: relative; z-index: 1;
    display: flex; align-items: baseline; gap: 16px;
    font-family: var(--font-display);
    font-size: clamp(34px, 9.5vw, 54px);
    line-height: 1; text-transform: uppercase;
    opacity: 0; transform: translateY(36px) skewY(3deg);
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
  }
  .mnav-links a i {
    font-family: var(--font-mono); font-style: normal;
    font-size: 11px; letter-spacing: 0.2em; color: var(--gold);
  }
  .mnav-links a:active { color: var(--gold); }
  html.mnav-open .mnav-links a { opacity: 1; transform: none; }
  html.mnav-open .mnav-links a:nth-child(1) { transition-delay: 0.16s; }
  html.mnav-open .mnav-links a:nth-child(2) { transition-delay: 0.22s; }
  html.mnav-open .mnav-links a:nth-child(3) { transition-delay: 0.28s; }
  html.mnav-open .mnav-links a:nth-child(4) { transition-delay: 0.34s; }
  html.mnav-open .mnav-links a:nth-child(5) { transition-delay: 0.4s; }
  html.mnav-open .mnav-links a:nth-child(6) { transition-delay: 0.46s; }
  .mnav-script {
    position: absolute; bottom: 6vh; z-index: 1;
    font-family: var(--font-serif); font-style: italic;
    font-size: clamp(22px, 6vw, 30px); color: var(--gold);
    rotate: -5deg;
    opacity: 0; transform: scale(0.6);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  html.mnav-open .mnav-script { opacity: 1; transform: none; transition-delay: 0.5s; }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 210; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--gold)); transform: scaleX(0); transform-origin: left; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #0d1832 0%, var(--bg) 62%);
}

/* atmosphere */
.hero-atmo { position: absolute; inset: 0; pointer-events: none; }
/* soft light beams: softness is baked into the gradients — no blur filter,
   which was the biggest per-frame GPU cost in the hero */
.beam {
  position: absolute; width: 130vw; height: 30vh;
  mix-blend-mode: screen; opacity: 0.55;
  will-change: transform;
}
.beam-a {
  top: 2%; left: -20%; transform: rotate(-18deg);
  background: radial-gradient(48% 46% at 42% 50%, rgba(43, 89, 255, 0.4), rgba(160, 60, 255, 0.12) 60%, transparent 78%);
  animation: beam-drift 11s ease-in-out infinite alternate;
}
.beam-b {
  top: 30%; right: -30%; transform: rotate(14deg);
  background: radial-gradient(46% 44% at 55% 50%, rgba(217, 58, 43, 0.24), rgba(230, 192, 104, 0.14) 58%, transparent 78%);
  animation: beam-drift 14s ease-in-out infinite alternate-reverse;
}
.beam-c {
  bottom: 0%; left: -10%; transform: rotate(-8deg);
  background: radial-gradient(50% 46% at 50% 50%, rgba(24, 160, 251, 0.18), transparent 76%);
  animation: beam-drift 17s ease-in-out infinite alternate;
}
@keyframes beam-drift {
  from { translate: 0 0; }
  to { translate: 6vw 3vh; }
}

.hero-check {
  position: absolute; top: 0; right: 0;
  width: min(38vw, 460px); height: min(38vw, 460px);
  background: repeating-conic-gradient(var(--red) 0% 25%, transparent 0% 50%) 0 0 / 56px 56px;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 10%, transparent 72%);
          mask-image: radial-gradient(circle at 100% 0%, #000 10%, transparent 72%);
}
.hero-halftone {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244, 241, 232, 0.5) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.05;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 60%, #000, transparent 78%);
          mask-image: radial-gradient(80% 70% at 50% 60%, #000, transparent 78%);
}
.hero-floor {
  position: absolute; left: 50%; bottom: -6%;
  width: 90vw; height: 26vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(43, 89, 255, 0.28), transparent 70%);
  filter: blur(30px);
}

/* stage & layers */
.hero-stage {
  position: absolute; inset: 0;
}
.hero-layer {
  position: absolute;
  will-change: transform;
}
.hero-layer img {
  display: block; height: 100%; width: auto;
  max-width: none; /* the global img clamp squashed the figure at narrow viewports */
  filter: saturate(0.88) contrast(1.06);
}

/* back profile — behind the name */
.hl-1 {
  left: clamp(-140px, -6vw, -30px); bottom: 0;
  height: min(96vh, 100%); z-index: 1;
  opacity: 0.42; /* reads as depth-of-field without a per-frame blur cost */
}
.hl-1 img {
  filter: saturate(0.4) brightness(0.62) contrast(1.1);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
}

/* title block — sandwiched between layers */
.hero-title {
  position: absolute; z-index: 2;
  left: 50%; top: 16%;
  transform: translateX(-50%);
  text-align: center; width: 100%;
  will-change: transform;
}
.hero-kicker {
  display: block;
  font-family: var(--font-mono); font-size: clamp(9px, 1vw, 12px);
  letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.4vh;
}
.hero-title h1 {
  font-family: var(--font-display);
  font-size: clamp(84px, 17.5vw, 250px);
  line-height: 0.86;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.ht-line { display: block; }
.ht-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(244, 241, 232, 0.85);
}
.hero-script {
  position: absolute; z-index: 5;
  right: clamp(6%, 13vw, 20%); top: 56%;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(26px, 4vw, 58px);
  color: var(--gold);
  rotate: -6deg;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  will-change: transform;
}

/* figures — tightly grouped, front figure overlapping both wingmen */
.hl-4 {
  left: 50%; bottom: 0; height: 78vh; z-index: 4;
  transform: translateX(-50%);
}
.hl-4 img { filter: saturate(0.92) contrast(1.08) drop-shadow(-14px 26px 44px rgba(0, 0, 0, 0.7)); }
.hl-2 {
  right: clamp(30px, 12vw, 260px); bottom: 0; height: 66vh; z-index: 3;
}
.hl-2 img { filter: saturate(0.8) contrast(1.05) brightness(0.88) drop-shadow(0 24px 50px rgba(0, 0, 0, 0.6)); }
.hl-3 {
  left: clamp(110px, 21vw, 430px); bottom: 0; height: 60vh; z-index: 3;
}
.hl-3 img {
  transform: scaleX(-1); /* mirrored so he tucks behind the main figure's shoulder */
  filter: saturate(0.75) contrast(1.05) brightness(0.82) drop-shadow(0 24px 50px rgba(0, 0, 0, 0.6));
}

/* grounding gradient so the foot content reads over the figures */
.hero-vignette {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 38vh; z-index: 5; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 9, 15, 0.62) 55%, rgba(6, 9, 15, 0.94));
}

/* idle float (on the img so it doesn't fight the parallax transform) */
.float-a { animation: floaty 9s ease-in-out infinite alternate; }
.float-b { animation: floaty 7s ease-in-out infinite alternate-reverse; }
.float-c { animation: floaty 8s ease-in-out infinite alternate; }
.float-d { animation: floaty 10s ease-in-out infinite alternate-reverse; }
@keyframes floaty { from { translate: 0 0; } to { translate: 0 -10px; } }

/* the ambient loops keep the GPU busy even once the hero is scrolled away —
   JS parks them while the section is out of view (no visual change) */
.hero.is-parked .beam,
.hero.is-parked .float-a, .hero.is-parked .float-b,
.hero.is-parked .float-c, .hero.is-parked .float-d,
.hero.is-parked .hero-scrollcue i { animation-play-state: paused; }

/* hero foot */
.hero-foot {
  position: relative; z-index: 6;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  padding: 0 var(--pad) clamp(28px, 5vh, 56px);
}
.hero-desc {
  max-width: 460px;
  font-size: clamp(13px, 1.15vw, 15px);
  color: #c9cfdb;
  border-left: 2px solid var(--gold);
  padding: 18px 22px;
  /* solid-ish panel: backdrop blur over animated layers re-renders every
     frame and was a major lag source */
  background: rgba(8, 12, 20, 0.82);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-wrap: pretty;
}
.hero-desc b { color: var(--ink); }
.hero-meta {
  display: flex; gap: clamp(18px, 2.6vw, 40px); text-align: left;
  padding: 16px 24px;
  background: rgba(8, 12, 20, 0.82);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--gold);
}
.hero-meta div {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.hero-meta span {
  display: block;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}

.hero-scrollcue {
  position: absolute; z-index: 6;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.4em; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scrollcue i {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* mobile-only tagline strip — only shown on small screens (≤580px) */
.hero-mobiletag { display: none; }

/* ═══════════════ MARQUEE ═══════════════ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
}
/* runs reversed: a slow, seamless left → right drift */
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite reverse; }
.marquee-set { display: flex; align-items: center; }
.marquee-set span {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 28px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0 28px;
}
.marquee-set span:nth-child(odd) { color: var(--ink); }
.marquee-set em { color: var(--gold); font-style: normal; font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════════ PROFILE ═══════════════ */
.profile { background: var(--bg); overflow: hidden; }
.profile-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.lead {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3; color: var(--ink);
  margin-bottom: 34px;
}
.profile-copy p:not(.lead) { color: var(--muted); margin-bottom: 22px; max-width: 60ch; }
.profile-facts {
  border: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.6);
  padding: 8px 26px;
  backdrop-filter: blur(6px);
}
.fact {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.fact:last-child { border-bottom: 0; }
.fact span {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
}
.fact b { font-weight: 500; font-size: 15px; }
.profile-ghost {
  position: absolute; right: 4%; bottom: -12%;
  height: 110%; opacity: 0.05; pointer-events: none;
  filter: grayscale(1);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
          mask-image: linear-gradient(180deg, #000 60%, transparent);
}

/* ═══════════════ CAREER (PINNED TIMELINE) ═══════════════ */
.career { position: relative; background: var(--bg-2); }
.career-pin {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: clamp(84px, 10vh, 120px) var(--pad) 60px;
}

/* dimmed pitch background */
.pitch {
  position: absolute; inset: 0;
  color: rgba(244, 241, 232, 0.4);
}
.pitch svg { width: 100%; height: 100%; opacity: 0.13; }
.pitch::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(48, 92, 62, 0.16) 0 120px, rgba(38, 76, 50, 0.16) 120px 240px);
}
.pitch-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 90% at 50% 50%, transparent 30%, rgba(6, 9, 15, 0.88) 100%),
    linear-gradient(180deg, rgba(6, 9, 15, 0.9), rgba(6, 9, 15, 0.55) 30%, rgba(6, 9, 15, 0.55) 70%, rgba(6, 9, 15, 0.92));
}

.career-head { position: relative; z-index: 2; margin-bottom: clamp(24px, 4vh, 48px); }

.career-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  flex: 1; min-height: 0;
  align-items: stretch;
}

/* left rail */
.career-rail {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.rail-line {
  position: absolute; top: 0; bottom: 0; left: 36px;
  width: 2px; background: rgba(244, 241, 232, 0.22);
}
.rail-line i {
  position: absolute; top: 0; left: -1px; width: 4px; height: 0%;
  background: var(--club);
  box-shadow: 0 0 14px var(--club);
  transition: height 0.4s ease, background 0.6s ease, box-shadow 0.6s ease;
}
.rail-track {
  position: absolute; left: 0; right: 0; top: 50%;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.rail-item {
  height: 132px;
  display: flex; align-items: center; gap: 18px;
  opacity: 0.38;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform-origin: left center;
}
.rail-item.is-active { opacity: 1; transform: scale(1); }
.rail-crest {
  flex: 0 0 74px;
  width: 74px; height: 84px;
  display: grid; place-items: center;
  padding: 9px 9px 15px;
  background: rgba(244, 241, 232, 0.07);
  border: 1px solid rgba(244, 241, 232, 0.3);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
  transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}
.rail-crest img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}
.rail-item.is-active .rail-crest {
  border-color: var(--club);
  background: rgba(244, 241, 232, 0.12);
  box-shadow: 0 0 22px color-mix(in srgb, var(--club) 45%, transparent);
}
.rail-year {
  font-family: var(--font-mono); font-size: 15px; font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted); transition: color 0.5s ease;
}
.rail-item.is-active .rail-year { color: var(--ink); text-shadow: 0 0 18px rgba(244, 241, 232, 0.35); }

/* slides */
.career-slides { position: relative; min-height: min(560px, 62vh); }
.career-slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  opacity: 0; visibility: hidden;
  transform: translateY(46px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.6s;
  pointer-events: none;
}
.career-slide.is-active {
  opacity: 1; visibility: visible;
  transform: none;
  transition: opacity 0.7s ease 0.15s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, visibility 0s;
  pointer-events: auto;
}

.cs-years {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--club);
  transition: color 0.6s ease;
}
.cs-club {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 0.98; text-transform: uppercase;
  margin: 12px 0 6px;
}
.cs-role {
  display: block;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--gold);
  margin-bottom: 20px;
}
.cs-text p { color: var(--muted); max-width: 54ch; margin-bottom: 20px; }
.cs-feats { list-style: none; }
.cs-feats li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.cs-feats li::before {
  content: "◆";
  position: absolute; left: 2px; top: 10px;
  font-size: 9px; color: var(--club);
  transition: color 0.6s ease;
}

.cs-photo {
  position: relative;
  height: min(500px, 56vh);
  display: flex; align-items: flex-end; justify-content: center;
}
.cs-photo::before {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 88%;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--club) 20%, transparent), rgba(6, 9, 15, 0.5) 55%);
  transition: background 0.6s ease;
}
.cs-photo img {
  position: relative;
  height: 100%; width: auto; max-width: 100%;
  object-fit: contain;
  object-position: bottom center; /* feet always planted on the frame's bottom edge */
  translate: clamp(-64px, -5vw, -24px) 0; /* off-centre poster look — figure breaks the frame's left edge */
  filter: saturate(0.85) contrast(1.06) drop-shadow(0 24px 44px rgba(0, 0, 0, 0.5));
}
/* responsive art-direction wrappers must not add a layout box */
.cs-photo picture { display: contents; }
/* per-slide nudges: 01 & 07 read better tucked fully inside the frame,
   04 (Maribor) & 05 (Celje) only break the edge slightly,
   06 (Újpest) sits further left on wide screens */
.career-slide:nth-child(1) .cs-photo img,
.career-slide:nth-child(7) .cs-photo img { translate: 0 0; }
.career-slide:nth-child(4) .cs-photo img,
.career-slide:nth-child(5) .cs-photo img { translate: clamp(-40px, -3vw, -16px) 0; }
.career-slide:nth-child(6) .cs-photo img { translate: clamp(25px, -7vw, -44px) 0; }

.cs-photo figcaption {
  position: absolute; top: 12%; right: 0; z-index: 2;
  transform: translateY(-100%);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink);
  /* chip background so it stays readable over any photo */
  background: rgba(6, 9, 15, 0.78);
  border: 1px solid var(--line);
  padding: 6px 10px;
  margin-bottom: 6px;
}

/* carousel chrome lives in the markup but only shows ≤900px */
.car-chrome, .car-dots { display: none; }

.career-hint {
  position: relative; z-index: 2;
  margin-top: 26px;
  text-align: center;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(151, 161, 180, 0.6);
}

/* ═══════════════ MAKSIMIR ═══════════════ */
.maksimir {
  position: relative;
  padding: clamp(110px, 16vh, 200px) var(--pad) 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(43, 89, 255, 0.16), transparent 70%),
    var(--bg);
}
/* the two managers stare each other down across the scoreline; the club
   crests live in the scoreboard lockup (.mk-teams) instead of the background */
.mk-badges { position: absolute; inset: 0; pointer-events: none; }
.mk-face {
  position: absolute;
  width: clamp(300px, 35vw, 660px);
  opacity: 0.13;
  filter: grayscale(0.55) contrast(1.05) brightness(0.9);
  will-change: transform;
  /* transforms are scroll-driven from main.js */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
}
.mk-face-l { left: clamp(-60px, -1.5vw, 0px); top: 22%; }
/* Mourinho's photo is cropped with his face at its LEFT edge (Krznar's nose
   sits at ~76% of his), so his offset is much larger to keep both noses the
   same distance from the section's centre */
.mk-face-r { right: clamp(-160px, -10vw, -85px); top: 17%; }

/* tablets & phones: the faces grow and slide off-screen so only the profiles
   peek in, framing the score from both sides */
@media (max-width: 900px) {
  .mk-face { width: 105vw; opacity: 0.12; }
  .mk-face-l { left: -58vw; top: 17%; }
  .mk-face-r { right: -82vw; top: 15%; }
}

/* phones: crests off so the club names keep fitting on a single row */
@media (max-width: 470px) {
  .mk-team-crest { display: none; }
}

.mk-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.mk-score {
  font-family: var(--font-display);
  font-size: clamp(120px, 26vw, 380px);
  line-height: 0.9;
  background: linear-gradient(180deg, var(--ink) 30%, rgba(244, 241, 232, 0.25));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin: 10px 0 24px;
  will-change: transform;
}
.mk-teams {
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.6vw, 18px);
  font-family: var(--font-display);
  font-size: clamp(16px, 2.4vw, 30px);
  text-transform: uppercase; letter-spacing: 0.06em;
}
/* broadcast-scoreboard lockup: each club's crest flanks its name.
   Sized by height — the Spurs cockerel is tall and narrow, Dinamo square */
.mk-team-crest {
  height: clamp(32px, 3.6vw, 50px); width: auto; flex: 0 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}
.mk-teams span { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 0.7em; text-transform: none; }
.mk-copy { color: var(--muted); max-width: 62ch; margin: 26px auto 0; }
.mk-marquee {
  margin-top: clamp(60px, 9vh, 110px);
  border-top: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
}
.mk-marquee-track {
  display: flex; width: max-content;
  animation: marquee 36s linear infinite reverse;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(20px, 3vw, 34px);
  color: rgba(230, 192, 104, 0.7);
  white-space: nowrap;
}
/* two identical sets, each wider than any viewport → no gap at the seam */
.mk-set { display: flex; white-space: nowrap; }

/* ═══════════════ STATS ═══════════════ */
.stats { background: var(--bg-2); }
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  background: rgba(6, 9, 15, 0.5);
  margin-bottom: clamp(40px, 6vw, 70px);
}
.stat-tile {
  padding: clamp(20px, 2.6vw, 38px) clamp(14px, 1.6vw, 26px);
  border-right: 1px solid var(--line);
  transition: background 0.4s ease;
}
.stat-tile:last-child { border-right: 0; }
.stat-tile:hover { background: rgba(43, 89, 255, 0.07); }
.stat-tile b {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1;
}
.stat-tile span:not(.count) {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}
.stat-tile b .count,
.stat-tile b { color: var(--ink); }
.stat-tile.is-accent b { color: var(--blue-soft); }
.stat-tile.is-gold b { color: var(--gold); }

/* table */
.stat-table { border-top: 1px solid var(--line); }
.stat-row {
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 0.5fr 0.5fr 0.5fr 0.5fr 2.4fr;
  gap: 12px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.stat-row i { font-style: normal; }
.stat-row > span:first-child { font-weight: 600; }
.stat-row > span:first-child i { color: var(--muted); font-weight: 400; font-size: 12px; }
.stat-row > span:nth-child(2) { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.stat-row-head {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
}
.stat-row-head span { font-weight: 400 !important; }
.sr-bar {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 100%;
}
.stat-row:not(.stat-row-head) .sr-bar::before {
  content: ""; position: absolute; left: 0; right: 52px; height: 4px;
  background: var(--line);
}
.sr-bar i {
  position: relative;
  display: block; height: 4px;
  width: calc((100% - 52px) * var(--w, 0) / 100);
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-row-total .sr-bar i { background: linear-gradient(90deg, var(--gold), #f5daa0); }
.sr-bar b { font-family: var(--font-mono); font-size: 12px; margin-left: auto; }
.stat-row-total { border-bottom: 2px solid var(--gold); }
.stat-row-total > span:first-child { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase; }
.stat-note {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(151, 161, 180, 0.7);
}

/* ═══════════════ HONOURS ═══════════════ */
.honours {
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(230, 192, 104, 0.07), transparent 70%),
    var(--bg);
}
.honour-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
}
.honour-role {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--gold);
  margin-bottom: 26px;
}
.honour-role small { font-family: var(--font-mono); font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.honour-card {
  display: flex; align-items: center; gap: 20px;
  border: 1px solid var(--line);
  padding: 22px 24px;
  margin-bottom: 14px;
  background: rgba(10, 16, 28, 0.55);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, background 0.35s ease;
}
.honour-card:hover {
  transform: translateX(8px);
  border-color: rgba(230, 192, 104, 0.5);
  background: rgba(230, 192, 104, 0.05);
}
.trophy { width: 34px; height: 34px; color: var(--gold); flex: 0 0 34px; }
.honour-x {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 700;
  color: var(--gold);
  -webkit-text-stroke: 1px var(--gold); /* Anton has one weight — stroke fakes the bold */
  flex: 0 0 56px; text-align: center;
  line-height: 1;
}
.honour-card b { display: block; font-size: 16px; }
.honour-card div span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

/* ═══════════════ METHOD ═══════════════ */
.method { background: var(--bg-2); }
.skills { max-width: 860px; margin-bottom: clamp(56px, 8vw, 90px); }
.skill { padding: 22px 0; border-bottom: 1px solid var(--line); }
.skill-top {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.skill-top b {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.skill-val { font-family: var(--font-mono); font-size: 13px; color: var(--gold); }
.skill-bar { height: 3px; background: var(--line); overflow: hidden; }
.skill-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill p { margin-top: 10px; font-size: 13px; color: var(--muted); }

.principles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.principle {
  border: 1px solid var(--line);
  padding: 30px 26px;
  background: rgba(6, 9, 15, 0.5);
  position: relative; overflow: hidden;
  transition: border-color 0.4s ease;
}
.principle:hover { border-color: rgba(43, 89, 255, 0.6); }
.principle::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 120%, rgba(43, 89, 255, 0.12), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.principle:hover::after { opacity: 1; }
.principle span {
  font-family: var(--font-serif); font-style: italic;
  font-size: 30px; color: var(--gold);
  display: block; margin-bottom: 14px;
}
.principle b {
  font-family: var(--font-display); font-weight: 400;
  font-size: 19px; text-transform: uppercase; letter-spacing: 0.04em;
  display: block; margin-bottom: 10px;
}
.principle p { font-size: 13px; color: var(--muted); position: relative; z-index: 1; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  position: relative;
  padding: clamp(100px, 14vh, 170px) 0 40px;
  background:
    radial-gradient(80% 70% at 50% 110%, rgba(43, 89, 255, 0.2), transparent 65%),
    var(--bg);
  overflow: hidden;
  text-align: center;
}
/* ── newspaper jump-cut backdrop ── */
.footer-press {
  position: absolute; inset: 0;
  overflow: hidden;
  opacity: 0.15;
  /* fade only top and bottom — a radial mask left the side edges empty
     on narrow screens */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.footer-press img {
  /* generous bleed so the jitter transforms can never expose an edge */
  position: absolute; inset: -8%;
  width: 116%; height: 116%;
  max-width: none; /* the global img{max-width:100%} clamp left a bare strip on the right */
  object-fit: cover;
  opacity: 0; /* hard cuts — no transition, that IS the trend */
  filter: grayscale(0.3) contrast(1.08) brightness(0.92);
  will-change: transform;
}
.footer-press img.on { opacity: 1; }
.footer .wrap { position: relative; z-index: 2; }

.footer-check {
  position: absolute; left: 0; bottom: 0;
  width: min(30vw, 340px); height: min(30vw, 340px);
  background: repeating-conic-gradient(var(--red) 0% 25%, transparent 0% 50%) 0 0 / 44px 44px;
  opacity: 0.08;
  -webkit-mask-image: radial-gradient(circle at 0% 100%, #000 10%, transparent 70%);
          mask-image: radial-gradient(circle at 0% 100%, #000 10%, transparent 70%);
}
.footer-big {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 230px);
  line-height: 0.88;
  text-transform: uppercase;
  margin: 8px 0 26px;
}
.footer-dot { color: var(--gold); }
.footer-sub { color: var(--muted); max-width: 46ch; margin: 0 auto 34px; }
.footer-cta {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--gold);
  padding: 18px 44px;
  transition: background 0.35s ease, color 0.35s ease, letter-spacing 0.35s ease;
}
.footer-cta:hover { background: var(--gold); color: var(--bg); letter-spacing: 0.4em; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: clamp(70px, 10vh, 120px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(151, 161, 180, 0.7);
}
.footer-base a:hover { color: var(--ink); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1550px) {
  /* the pointing figure drifts too far left as the viewport narrows and
     disappears behind the main figure — keep him nearer the right edge */
  .hl-2 { right: clamp(24px, 7vw, 130px); }
}

@media (max-width: 1400px) {
  /* tighter frame: keep every figure centred inside it, no edge-breaking */
  .career-slides .career-slide .cs-photo img { translate: 0 0; }
}

/* the wider shots shrink with the column below here, but less than a hard
   100% clamp — they stay a size up and the frame trims the modest overhang */
@media (max-width: 1090px) {
  /* widest shot gets more room, biased right where the figure stands */
  .career-slide:nth-child(2) .cs-photo { overflow: hidden; justify-content: flex-end; }
  .career-slide:nth-child(2) .cs-photo img { max-width: 165%; }
}
@media (max-width: 990px) {
  .career-slide:nth-child(1) .cs-photo,
  .career-slide:nth-child(6) .cs-photo,
  .career-slide:nth-child(7) .cs-photo { overflow: hidden; }
  .career-slide:nth-child(1) .cs-photo img,
  .career-slide:nth-child(6) .cs-photo img,
  .career-slide:nth-child(7) .cs-photo img { max-width: 140%; }
}

@media (max-width: 1024px) {
  /* hero: just the main figure — the two wingmen crowd the poster here */
  .hl-2, .hl-3 { display: none; }

  .stat-tiles { grid-template-columns: repeat(3, 1fr); }
  .stat-tile { border-bottom: 1px solid var(--line); }
  .stat-row { grid-template-columns: 1.8fr 1.2fr 0.4fr 0.4fr 0.4fr 0.4fr 1.6fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }

  .hl-1 { opacity: 0.3; height: 80vh; left: -30vw; }
  .hl-4 { height: 62vh; }
  .hero-title { top: 14%; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-meta { text-align: left; flex-wrap: wrap; }
  .hero-scrollcue { display: none; }

  .profile-grid { grid-template-columns: 1fr; }
  .profile-ghost { display: none; }

  /* ── career: swipe carousel — crest on the progress line, dots below ── */
  .career-pin { min-height: 0; padding-top: 90px; }
  .career-grid { grid-template-columns: 1fr; }
  .career-rail { display: none; }

  .car-chrome {
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 2;
    margin-bottom: clamp(22px, 4vh, 40px);
  }
  .car-line {
    position: absolute; left: 0; right: 0; top: 50%;
    height: 2px; background: rgba(244, 241, 232, 0.16);
  }
  .car-line i {
    display: block; height: 100%; width: 0%;
    background: var(--club);
    box-shadow: 0 0 12px var(--club);
    transition: width 0.3s ease, background 0.6s ease, box-shadow 0.6s ease;
  }
  .car-crest {
    position: relative;
    width: 74px; height: 86px;
    display: grid; place-items: center;
    padding: 10px 10px 16px;
    background: var(--bg-2); /* solid so the line reads as passing behind it */
    border: 1px solid var(--club);
    box-shadow: 0 0 22px color-mix(in srgb, var(--club) 40%, transparent);
    clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
    transition: border-color 0.6s ease, box-shadow 0.6s ease;
  }
  .car-crest img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }
  .car-crest.swap img { transform: scale(0.2) rotate(-14deg); opacity: 0; }

  .career-slides {
    min-height: 0;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .career-slides::-webkit-scrollbar { display: none; }
  .career-slide {
    position: relative; inset: auto;
    display: block;
    flex: 0 0 100%; min-width: 100%;
    scroll-snap-align: start;
    opacity: 1; visibility: visible; transform: none;
    transition: none;
    pointer-events: auto;
    padding: 4px 4px 0;
  }
  .cs-photo { display: none; } /* no room for the framed figures — the carousel is text-first */
  .cs-text { text-align: center; max-width: 560px; margin: 0 auto; }
  .cs-club { font-size: clamp(30px, 8vw, 44px); }
  .cs-text p { margin-left: auto; margin-right: auto; }
  .cs-feats { max-width: 440px; margin: 0 auto; text-align: left; }

  .car-dots {
    display: flex; justify-content: center; gap: 10px;
    position: relative; z-index: 2;
    margin-top: clamp(20px, 4vh, 36px);
  }
  .car-dots button {
    width: 9px; height: 9px; border-radius: 50%;
    padding: 0; border: 1px solid rgba(244, 241, 232, 0.45);
    background: transparent; cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }
  .car-dots button.is-on {
    background: var(--club); border-color: var(--club);
    box-shadow: 0 0 10px var(--club);
    transform: scale(1.25);
  }
  .career-hint { display: none; }

  .honour-cols { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }

  .stat-row { grid-template-columns: 1.6fr 0.4fr 0.4fr 0.4fr 0.4fr; }
  .stat-row > span:nth-child(2), .stat-row .sr-bar { display: none; }
}

@media (max-width: 700px) {
  .hero-title { top: 22%; }
}

@media (max-width: 640px) {
  .hl-4 { height: 54vh; }
  .hero-foot {
    background: linear-gradient(180deg, transparent, rgba(6, 9, 15, 0.92) 36%);
    padding-top: 70px;
  }
}

@media (max-width: 580px) {
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-base { flex-direction: column; }

  /* poster mode: title near the centre, single figure in front, no info panels */
  .hero-foot { display: none; }
  .nav-cta { display: none; }
  .hero-title { top: 30%; }
  .hero-kicker { position: relative; top: -2.5vh; } /* a touch more air between clubs line and name */
  .hero-script { display: none; }
  .hl-4 { height: 58vh; }

  /* the animated scroll cue comes back on phones so people know to keep going */
  .hero-scrollcue { display: flex; }

  /* tagline strip fills the band between the nav and the name */
  .hero-mobiletag {
    display: block;
    position: absolute; z-index: 2;
    left: 0; right: 0; top: 13%;
    text-align: center;
    font-family: var(--font-mono);
    text-transform: uppercase;
  }
  .hero-mobiletag .hmt-row {
    display: block;
    font-size: 10px; letter-spacing: 0.32em;
    color: var(--muted);
  }
  .hero-mobiletag .hmt-row em { font-style: normal; color: var(--gold); font-size: 8px; padding: 0 10px; }
  .hero-mobiletag .hmt-sub {
    display: block; margin-top: 9px;
    font-size: 10px; letter-spacing: 0.22em;
    color: var(--gold);
  }
}
