/* ============================================================
   SKYLA BLIGNAUT — TRACK & FIELD
   Awwwards-grade athlete portfolio
   Dark grey stage · white outline display type · track red
   ============================================================ */

:root {
  /* dark-only composition — tell the UA so scrollbars, form chrome and the
     iOS rubber-band overscroll area paint dark instead of flashing white */
  color-scheme: dark;
  --bg: #131316;
  --bg-deep: #0c0c0e;
  --bg-lift: #1a1a1e;
  --ink: #f2f0ec;
  --ink-dim: #9b968f;
  --red: #e8362d;
  --red-deep: #b3211a;
  --gold: #d9a441;
  --silver: #c9ccd4;
  --bronze: #c07a4a;
  --line: rgba(242, 240, 236, 0.14);
  --line-soft: rgba(242, 240, 236, 0.07);
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --pad: clamp(20px, 4vw, 64px);
}

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

html { background: var(--bg); scrollbar-width: thin; scrollbar-color: #3a3a40 var(--bg-deep); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

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

::selection { background: var(--red); color: #fff; }
img { display: block; max-width: 100%; }
/* <picture> is a pure format-negotiation wrapper — keep it out of the box tree
   so every existing `... img` rule and layout behaves exactly as before */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---- keyboard focus ---------------------------------------
   `a { text-decoration: none }` strips the only default affordance, so every
   interactive element needs a designed ring. Mouse users see no change. */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
/* full-bleed rows: inset the ring so it never overflows the section padding */
.honour-row:focus-visible,
.pb-row:focus-visible,
.acc-head:focus-visible,
.contact-link:focus-visible,
.pb-big:focus-visible { outline-offset: -3px; }
/* keep the ring readable where red is already the fill or the backdrop is blended */
.btn:focus-visible,
.t-arrow:focus-visible,
.contact-cta a:focus-visible,
.nav-brand:focus-visible,
.nav-links a:focus-visible { outline-color: var(--ink); }

/* ---- nav legibility substrate ------------------------------
   .nav uses mix-blend-mode:difference over mid-grey hero photography, which
   collapses it to ~1.2:1. This fixed scrim sits *below* the nav (z 99 vs 100)
   so it becomes part of the blend backdrop — the difference effect is fully
   preserved, the substrate is just guaranteed dark enough to clear 4.5:1. */
body::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0; height: 132px; z-index: 99;
  background: linear-gradient(180deg,
    rgba(8, 8, 10, 0.78) 0%,
    rgba(8, 8, 10, 0.66) 44%,
    rgba(8, 8, 10, 0.30) 76%,
    rgba(8, 8, 10, 0) 100%);
  pointer-events: none;
}

/* ---- film grain + vignette ------------------------------- */
.grain {
  position: fixed; inset: -100px; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.055; animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-38px, 24px); }
  50% { transform: translate(22px, -30px); } 75% { transform: translate(-14px, -18px); }
  100% { transform: translate(0, 0); }
}

/* ---- preloader curtain ------------------------------------ */
.curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
}
.curtain-mark {
  font-family: var(--font-display); font-size: clamp(15px, 2vw, 22px);
  letter-spacing: 0.55em; text-transform: uppercase; color: var(--ink);
  opacity: 0;
}
.curtain-mark em { color: var(--red); font-style: normal; }

/* ---- shared chrome ---------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  mix-blend-mode: difference;
}
.nav-brand {
  font-family: var(--font-display); font-size: 15px; letter-spacing: 0.34em;
  text-transform: uppercase; color: #fff;
  /* below 1020px this is the only nav control — grow the hit area to 44px
     without moving a pixel of the layout */
  padding: 14px 0; margin: -14px 0;
}
.nav-brand em { color: #fff; font-style: normal; opacity: 0.45; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: #fff;
  position: relative; opacity: 0.75; transition: opacity 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 100%;
  background: #fff; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--red); font-weight: 600;
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--red); }
.eyebrow .idx { color: var(--ink-dim); letter-spacing: 0.2em; }

.section { position: relative; padding: clamp(90px, 12vh, 160px) var(--pad); }
.section-head { margin-bottom: clamp(40px, 6vh, 80px); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 108px);
  line-height: 0.94; text-transform: uppercase; letter-spacing: -0.02em;
  margin-top: 18px;
}
.section-title .ghost {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 240, 236, 0.55);
}

/* ============================================================
   HERO — three vertical panels, fade to dark grey (per sketch)
   ============================================================ */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg-deep); }
.hero-panels {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1.42fr 1fr;
  gap: clamp(8px, 1.2vw, 18px);
  padding: 0 clamp(8px, 1.2vw, 18px);
}
.panel { position: relative; overflow: hidden; clip-path: inset(0 0 100% 0); }
.panel-side { align-self: center; height: 76vh; height: 76svh; }
.panel-main { height: 100vh; height: 100svh; }
.panel img {
  position: absolute; inset: -12% 0; width: 100%; height: 124%;
  object-fit: cover; filter: grayscale(0.12) contrast(1.06) brightness(0.92);
  /* no permanent will-change: GSAP promotes these transiently (force3D) during
     the parallax tween and drops the layer afterwards */
}
.panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,14,0.24) 0%, rgba(12,12,14,0) 30%, rgba(12,12,14,0) 55%, rgba(12,12,14,0.55) 100%);
}
.panel-tag {
  position: absolute; z-index: 2; bottom: 18px; left: 18px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(242,240,236,0.85);
  display: flex; gap: 10px; align-items: center;
}
.panel-tag b { color: var(--red); font-weight: 700; }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; z-index: 3;
  background: linear-gradient(180deg, rgba(19,19,22,0) 0%, rgba(19,19,22,0.62) 55%, var(--bg) 100%);
  pointer-events: none;
}
.hero-meta {
  position: absolute; z-index: 4; top: 84px; left: var(--pad);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim);
}
.hero-meta-r { left: auto; right: var(--pad); text-align: right; }
.scroll-hint {
  position: absolute; z-index: 5; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--ink-dim);
  transition: opacity 0.5s;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--red), transparent);
  animation: drop 1.8s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   IDENTITY — SKYLA BLIGNAUT white / TRACK & FIELD red
   ============================================================ */
.identity {
  position: relative; padding: clamp(70px, 10vh, 140px) var(--pad) clamp(50px, 8vh, 110px);
  text-align: center; background: var(--bg);
}
.identity-name {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(52px, 12.5vw, 190px); line-height: 0.9; letter-spacing: -0.02em;
  position: relative;
}
.identity-name .row { display: block; position: relative; }
.identity-name .stroke {
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  display: block;
}
.identity-name .fill {
  position: absolute; inset: 0; color: var(--ink); display: block;
  clip-path: inset(100% 0 0 0); will-change: clip-path;
}
.identity-sub {
  margin-top: clamp(22px, 3.5vh, 44px);
  font-family: var(--font-display); color: var(--red); text-transform: uppercase;
  font-size: clamp(20px, 3.2vw, 46px); letter-spacing: 0.22em; text-indent: 0.22em;
}
.identity-meta {
  margin-top: clamp(28px, 4.5vh, 52px);
  display: flex; justify-content: center; gap: clamp(18px, 4vw, 64px); flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-dim);
}
.identity-meta span b { color: var(--ink); font-weight: 600; }

/* marquee */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 16px 0; background: var(--bg);
}
.marquee-track { display: flex; width: max-content; will-change: transform; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); text-transform: uppercase; white-space: nowrap;
  font-size: clamp(20px, 2.6vw, 36px); letter-spacing: 0.12em;
  color: transparent; -webkit-text-stroke: 1px rgba(242,240,236,0.4);
  padding-right: 48px;
}
.marquee-track span em { font-style: normal; color: var(--red); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT — sticky portrait + journey essay
   ============================================================ */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 90px); align-items: start; }
.about-fig { position: sticky; top: 12vh; }
.about-fig-frame { position: relative; overflow: hidden; }
.about-fig-frame img { width: 100%; height: auto; filter: grayscale(0.15) contrast(1.05) brightness(0.94); }
.about-fig-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(12,12,14,0.5));
}
.about-fig-cap {
  display: flex; justify-content: space-between; margin-top: 14px;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-dim);
}
.about-copy p {
  font-size: clamp(16px, 1.45vw, 21px); line-height: 1.75; color: #cfccc6;
  margin-bottom: 1.6em; max-width: 62ch;
}
.about-copy p b { color: var(--ink); font-weight: 600; }
.about-lede {
  font-size: clamp(20px, 2vw, 28px) !important; line-height: 1.5 !important; color: var(--ink) !important;
}
.pull-quote {
  margin: clamp(40px, 6vh, 70px) 0;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 52px); line-height: 1.18; color: var(--ink);
}
.pull-quote em { color: var(--red); font-style: italic; }
.pull-quote .w { display: inline-block; }

/* ============================================================
   MOTION — scroll-scrubbed cinematic canvas
   ============================================================ */
/* svh so the scrub track length does not shift as the mobile URL bar collapses
   (the sticky stage already uses svh — this keeps the two in step) */
.motion { position: relative; height: 480vh; height: 480svh; background: var(--bg-deep); }
.motion-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion-sticky canvas, .motion-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the poster is the loading substrate: visible until the first real frame is
   painted, then crossfaded out. Prevents the full-viewport black rectangle. */
.motion-poster { object-fit: cover; transition: opacity 0.45s ease-out; }
.motion.frames-live .motion-poster { opacity: 0; pointer-events: none; }
.motion.no-frames canvas { display: none; }
.motion.no-frames .motion-poster { opacity: 1; }
.motion-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(115% 90% at 50% 45%, transparent 48%, rgba(5,5,7,0.75) 100%);
}
.motion-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
}
.motion-line {
  position: absolute; opacity: 0; white-space: nowrap;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(34px, 6.5vw, 104px); line-height: 1; letter-spacing: -0.02em; color: var(--ink);
  text-shadow: 0 8px 60px rgba(0,0,0,0.55);
}
.motion-line sup {
  font-size: 0.22em; color: var(--red); letter-spacing: 0.3em; vertical-align: 2.4em;
}
.motion-hud {
  position: absolute; z-index: 3; font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(242,240,236,0.6);
}
.motion-hud.tl { top: 76px; left: var(--pad); }
.motion-hud.tr { top: 76px; right: var(--pad); text-align: right; }
.motion-hud.bl { bottom: 30px; left: var(--pad); }
.motion-hud.br { bottom: 30px; right: var(--pad); color: var(--red); }
.motion-progress {
  position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: min(320px, 40vw); height: 2px; background: rgba(242,240,236,0.18);
}
.motion-progress i { display: block; height: 100%; width: 0; background: var(--red); }

/* ============================================================
   MEDAL COUNT
   ============================================================ */
.count { background: var(--bg); border-top: 1px solid var(--line-soft); }
.count-band { position: relative; height: clamp(240px, 44vh, 460px); overflow: hidden; margin-bottom: clamp(50px, 8vh, 90px); }
.count-band img {
  position: absolute; inset: -18% 0; width: 100%; height: 136%; object-fit: cover;
  filter: brightness(0.8) contrast(1.05);
}
.count-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 70%, var(--bg) 100%); }
.count-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px);
  text-align: center;
}
.count-cell { padding: clamp(24px, 4vh, 48px) 12px; border: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.count-cell::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--medal, var(--red));
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1) 0.2s;
}
.count-cell.is-in::before { transform: scaleX(1); }
.count-num {
  font-family: var(--font-display); font-size: clamp(72px, 11vw, 170px); line-height: 1;
  color: var(--ink);
}
.count-label {
  margin-top: 10px; font-size: 11px; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--medal, var(--ink-dim)); font-weight: 700;
}
.count-total {
  margin-top: clamp(36px, 6vh, 64px); text-align: center;
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-dim);
}
.count-total b { color: var(--ink); font-size: 15px; letter-spacing: 0.34em; }
.count-note { margin-top: 14px; text-align: center; font-size: 12px; color: #8a8680; letter-spacing: 0.06em; }

/* ============================================================
   HONOURS — achievement rows
   ============================================================ */
.honours { background: var(--bg-deep); }
.honour-row {
  display: grid; grid-template-columns: 64px 1fr auto auto; gap: clamp(14px, 2.5vw, 40px);
  align-items: center; padding: clamp(22px, 3.4vh, 36px) 6px;
  border-top: 1px solid var(--line-soft); position: relative; overflow: hidden;
}
/* the old `padding-left` hover reflowed a 4-column grid on every pointer move.
   Only the two left-hand columns actually moved (the right edge is fixed), so
   translating those two is pixel-identical — and composites on the GPU. */
.honour-row .honour-idx,
.honour-row .honour-name { transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1); }
.honour-row:hover .honour-idx,
.honour-row:hover .honour-name,
.honour-row:focus-visible .honour-idx,
.honour-row:focus-visible .honour-name { transform: translateX(22px); }
.honour-row:last-of-type { border-bottom: 1px solid var(--line-soft); }
.honour-row::before {
  content: ""; position: absolute; inset: 0; background: rgba(232, 54, 45, 0.06);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}
.honour-row:hover::before,
.honour-row:focus-visible::before { transform: scaleY(1); }
.honour-idx { font-size: 11px; letter-spacing: 0.24em; color: var(--ink-dim); }
.honour-name {
  font-family: var(--font-display); text-transform: uppercase; line-height: 1;
  font-size: clamp(22px, 3.2vw, 44px); position: relative; z-index: 1;
}
.honour-name small {
  display: block; margin-top: 8px; font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.3em; color: var(--ink-dim); font-weight: 400;
}
.medal-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.chip {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
}
.chip.g { color: var(--gold); border-color: rgba(217, 164, 65, 0.5); }
.chip.s { color: var(--silver); border-color: rgba(201, 204, 212, 0.45); }
.chip.b { color: var(--bronze); border-color: rgba(192, 122, 74, 0.5); }
.chip.n { color: var(--ink-dim); }
.honour-arrow { font-size: 22px; color: var(--red); transform: translateX(-8px); opacity: 0; transition: transform 0.4s, opacity 0.4s; position: relative; z-index: 1; }
.honour-row:hover .honour-arrow,
.honour-row:focus-visible .honour-arrow { transform: translateX(0); opacity: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: clamp(36px, 6vh, 60px);
  padding: 20px 38px; border: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; font-weight: 600;
  position: relative; overflow: hidden; transition: color 0.4s, border-color 0.4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--red);
  transform: translateY(101%); transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.btn:hover { color: #fff; border-color: var(--red); }
.btn:hover::before { transform: translateY(0); }
.btn span, .btn i { position: relative; z-index: 1; font-style: normal; }
.btn i { transition: transform 0.4s; }
.btn:hover i { transform: translateX(6px); }

/* ============================================================
   PERSONAL BESTS
   ============================================================ */
.pbs { background: var(--bg); }
.pb-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: clamp(26px, 4.5vh, 44px) 6px; border-top: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.pb-row:last-of-type { border-bottom: 1px solid var(--line-soft); }
.pb-event {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(28px, 5vw, 72px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 240, 236, 0.6);
  transition: color 0.45s, -webkit-text-stroke-color 0.45s;
}
.pb-row:hover .pb-event { color: var(--ink); -webkit-text-stroke-color: transparent; }
.pb-mark {
  font-family: var(--font-display); font-size: clamp(34px, 6vw, 88px); line-height: 1;
  color: var(--red);
}
.pb-mark small { font-size: 0.32em; letter-spacing: 0.2em; color: var(--ink-dim); margin-left: 10px; }
.pb-note { margin-top: 18px; font-size: 12px; color: #8a8680; letter-spacing: 0.07em; }

/* ============================================================
   TRAINING — horizontal pinned strip
   ============================================================ */
.training { background: var(--bg-deep); overflow: hidden; }
.training .section-head { padding-right: var(--pad); }
.training-viewport { overflow: hidden; }
.training-nav { display: flex; gap: 12px; margin-top: 24px; }
.t-arrow {
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-size: 19px; color: var(--ink);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.t-arrow:hover, .t-arrow:active { border-color: var(--red); color: var(--red); background: rgba(232, 54, 45, 0.08); }
.training-track { display: flex; gap: clamp(16px, 2vw, 30px); width: max-content; padding-right: var(--pad); will-change: transform; }
.t-card {
  width: clamp(280px, 34vw, 460px); flex-shrink: 0;
  border: 1px solid var(--line-soft); padding: clamp(26px, 3.4vw, 44px);
  display: flex; flex-direction: column; min-height: clamp(380px, 56vh, 540px);
  background: rgba(26, 26, 30, 0.55); position: relative; overflow: hidden;
}
.t-card-num { font-size: 11px; letter-spacing: 0.34em; color: var(--red); font-weight: 700; }
.t-card-day { margin-top: 8px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim); }
.t-card-title {
  margin-top: 20px; font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 38px); line-height: 1.02;
}
.t-card ul { margin-top: auto; padding-top: 30px; list-style: none; }
.t-card li {
  font-size: 13px; color: #b9b5ae; padding: 9px 0; border-top: 1px solid var(--line-soft);
  letter-spacing: 0.04em;
}
.t-card li::before { content: "— "; color: var(--red); }
.t-card.t-img { padding: 0; border: 0; }
.t-card.t-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) brightness(0.85) contrast(1.06); }
.t-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0; filter: grayscale(0.18) brightness(0.5) contrast(1.05);
}
.t-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,12,14,0.55) 0%, rgba(12,12,14,0.12) 38%, rgba(12,12,14,0.9) 100%);
}
.t-card > *:not(.t-bg) { position: relative; z-index: 1; }
.t-card li { border-top-color: rgba(242, 240, 236, 0.18); }

/* ============================================================
   EVENTS — the circuit timeline
   ============================================================ */
.events { background: var(--bg); }
.events-band { position: relative; height: clamp(260px, 52vh, 520px); overflow: hidden; margin-bottom: clamp(50px, 9vh, 100px); }
.events-band img {
  position: absolute; inset: -18% 0; width: 100%; height: 136%; object-fit: cover;
  object-position: center 72%;
  filter: brightness(0.82) contrast(1.08);
}
.events-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 65%, var(--bg) 100%); }
.events-band-cap {
  position: absolute; z-index: 2; bottom: 24px; left: var(--pad);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(242,240,236,0.8);
}
.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, var(--red), rgba(232,54,45,0.15));
}
.tl-year {
  position: relative; padding-left: 44px; margin: clamp(36px, 6vh, 60px) 0 18px;
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 40px);
  color: transparent; -webkit-text-stroke: 1.2px rgba(242,240,236,0.55);
}
.tl-year b { -webkit-text-stroke: 0; color: var(--red); font-weight: 400; font-size: 0.5em; letter-spacing: 0.3em; margin-left: 14px; vertical-align: 0.35em; }
.tl-year::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--red); background: var(--bg);
}
.tl-item {
  position: relative; padding: 16px 6px 16px 44px; border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap;
}
.tl-item::before {
  content: ""; position: absolute; left: 5px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-dim);
}
.tl-name { font-size: clamp(15px, 1.6vw, 19px); font-weight: 600; letter-spacing: 0.03em; }
.tl-meta { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-dim); }
.tl-meta em { color: var(--red); font-style: normal; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-deep); border-top: 1px solid var(--line-soft); }
.contact-cta {
  display: block; text-align: center; margin: clamp(30px, 5vh, 60px) 0 clamp(50px, 8vh, 90px);
}
.contact-cta a {
  font-family: var(--font-display); text-transform: uppercase; line-height: 0.95;
  font-size: clamp(44px, 9vw, 140px); letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  transition: color 0.5s, -webkit-text-stroke-color 0.5s;
}
.contact-cta a:hover { color: var(--red); -webkit-text-stroke-color: transparent; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); max-width: 1200px; margin: 0 auto; }
.contact-col h3 { font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; font-weight: 700; }
.contact-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 17px 4px; border-top: 1px solid var(--line-soft);
  font-size: 14px; letter-spacing: 0.06em; transition: color 0.35s;
}
/* transform instead of padding-left — same 14px travel, no reflow across 7 links */
.contact-link > span:first-child { transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1); }
.contact-link:hover > span:first-child,
.contact-link:focus-visible > span:first-child { transform: translateX(14px); }
.contact-link:hover,
.contact-link:focus-visible { color: var(--red); }
.contact-link span:last-child { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim); }

/* QR / install share card */
.share {
  display: flex; align-items: center; gap: clamp(22px, 4vw, 46px); flex-wrap: wrap;
  max-width: 1100px; margin: clamp(44px, 7vh, 84px) auto 0;
  padding-top: clamp(30px, 5vh, 52px); border-top: 1px solid var(--line-soft);
}
.share-qr {
  width: clamp(132px, 20vw, 176px); height: auto; flex-shrink: 0;
  background: #fff; padding: 12px; border-radius: 12px;
}
.share-copy { flex: 1; min-width: 240px; }
.share-copy h3 {
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 14px;
}
.share-copy p { color: #cfccc6; font-size: 15px; line-height: 1.65; max-width: 46ch; }
.share-copy p b { color: var(--ink); font-weight: 600; }
.share-copy .btn { margin-top: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-deep); padding: clamp(50px, 8vh, 90px) 0 34px; overflow: hidden; }
.footer .marquee { border-color: var(--line-soft); }
.footer .marquee-track span { font-size: clamp(48px, 8vw, 120px); -webkit-text-stroke-color: rgba(242,240,236,0.22); }
.footer-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding: 34px var(--pad) 0;
  font-size: 11px; letter-spacing: 0.21em; text-transform: uppercase; color: #8a8680;
}
/* grow the hit area past 44px without shifting the bar (11px text at 1.6
   line-height is 17.6px, so 14px of vertical padding lands at 45.6px) */
.footer-bar a { padding: 14px 8px; margin: -14px -8px; }
.footer-bar a:hover { color: var(--red); }

/* ============================================================
   SUB-PAGES (achievements / personal bests)
   ============================================================ */
.subpage-hero {
  position: relative; padding: clamp(150px, 24vh, 260px) var(--pad) clamp(60px, 9vh, 110px);
  background: var(--bg-deep); overflow: hidden;
}
.subpage-hero-bg {
  position: absolute; inset: 0; opacity: 0.28;
}
.subpage-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) brightness(0.6); }
.subpage-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,14,0.35), var(--bg-deep) 92%); }
.subpage-hero .inner { position: relative; z-index: 1; }
.subpage-title {
  font-family: var(--font-display); text-transform: uppercase; line-height: 0.92;
  font-size: clamp(44px, 9vw, 138px); letter-spacing: -0.02em; margin-top: 20px;
}
.subpage-title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.back-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--ink-dim);
  transition: color 0.3s;
  /* primary back control on both sub-pages — was ~13px tall. Padding grows the
     hit area past 44px; the negative margin keeps the layout identical. */
  padding: 14px 4px; margin: -14px -4px 12px;
}
.back-link:hover { color: var(--red); }

/* accordions */
.acc { border-top: 1px solid var(--line-soft); }
.acc:last-of-type { border-bottom: 1px solid var(--line-soft); }
.acc-head {
  width: 100%; display: grid; grid-template-columns: 56px 1fr auto 40px; gap: clamp(12px, 2vw, 30px);
  align-items: center; text-align: left; padding: clamp(22px, 3.4vh, 34px) 4px;
}
.acc-head .honour-name { font-size: clamp(20px, 2.8vw, 38px); }
.acc-toggle {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-size: 16px; color: var(--red);
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1), background 0.3s;
}
.acc.open .acc-toggle { transform: rotate(45deg); background: rgba(232,54,45,0.12); }
.acc-body { height: 0; overflow: hidden; }
.acc-body-inner { padding: 4px 4px clamp(28px, 4vh, 44px) clamp(56px, 6vw, 86px); }
.grade-table { width: 100%; border-collapse: collapse; }
.grade-table th {
  text-align: left; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-dim); font-weight: 600; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line);
}
.grade-table td { padding: 15px 14px 15px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.grade-table td.gr { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.06em; white-space: nowrap; }
.grade-table td.gr small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-dim); margin-top: 4px; }
.acc-note { margin-top: 16px; font-size: 12px; color: var(--ink-dim); letter-spacing: 0.06em; }

/* PB page blocks */
.pb-big {
  border-top: 1px solid var(--line-soft); padding: clamp(34px, 6vh, 64px) 4px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
.pb-big:last-of-type { border-bottom: 1px solid var(--line-soft); }
.pb-big-event { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(34px, 6vw, 90px); line-height: 0.95; }
.pb-big-event small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.34em; color: var(--ink-dim); margin-top: 12px; font-weight: 400; }
.pb-big-mark { font-family: var(--font-display); font-size: clamp(52px, 9vw, 140px); line-height: 1; color: var(--red); text-align: right; }
.pb-big-mark small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.3em; color: var(--ink-dim); margin-top: 10px; text-align: right; }

.season-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.season-table th, .season-table td { padding: 13px 10px 13px 0; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.season-table th { font-size: 11px; letter-spacing: 0.21em; text-transform: uppercase; color: var(--ink-dim); border-bottom-color: var(--line); }
.season-table td.dash { color: #85817b; }

/* ---- reveal initial states (JS-driven) --------------------- */
html.js [data-reveal] { opacity: 0; transform: translateY(44px); }
html.js [data-reveal-line] .fill { clip-path: inset(100% 0 0 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-fig { position: relative; top: 0; max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1021px) and (max-width: 1280px) {
  .contact-grid { grid-template-columns: 1fr; max-width: 560px; }
}
/* mobile hero carousel dots */
.hero-dots {
  display: none; position: absolute; z-index: 6; bottom: 30px; right: 20px; gap: 8px;
}
.hero-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(242, 240, 236, 0.35);
  transition: background 0.3s, transform 0.3s;
}
.hero-dots i.on { background: var(--red); transform: scale(1.25); }

@media (max-width: 620px) {
  /* both hero labels sit at top:84px on opposite edges and collided on narrow
     phones (they overlapped by 33px before the type pass, 28px after). Capping
     the widths lets the longer one wrap instead of colliding — same words,
     both fully legible. */
  .hero-meta { max-width: 44vw; }
  .hero-meta-r { max-width: 42vw; }
  /* same collision between the two top HUD labels over the frame sequence */
  .motion-hud.tl, .motion-hud.tr { max-width: 42vw; }
}

@media (max-width: 760px) {
  .hero-panels { display: block; gap: 0; padding: 0; }
  .panel, .panel-side, .panel-main {
    display: block; position: absolute; inset: 0;
    height: 100vh; height: 100svh; align-self: auto;
    opacity: 0; transition: opacity 1.1s ease;
  }
  .panel.is-active { opacity: 1; }
  .hero-dots { display: flex; }
  .honour-row { grid-template-columns: 40px 1fr; }
  .medal-chips { grid-column: 2; justify-content: flex-start; }
  .honour-arrow { display: none; }
  .count-grid { grid-template-columns: 1fr; }
  .acc-head { grid-template-columns: 40px 1fr 40px; }
  .acc-head .medal-chips { display: none; }
  .acc-body-inner { padding-left: 44px; }
  .pb-big { grid-template-columns: 1fr; }
  .pb-big-mark, .pb-big-mark small { text-align: left; }
  .grade-table td.medals-cell .medal-chips { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint::after { animation: none; }
  /* stop it outright rather than slowing it to 120s — continuously auto-moving
     content with no pause control is exactly what the preference asks to end.
     The text stays fully visible in its static position. */
  .marquee-track { animation: none; }
  /* JS also clears these, but belt-and-braces if a tween never runs */
  html.js [data-reveal] { opacity: 1; transform: none; }
  .motion-poster { transition: none; }
  .honour-row .honour-idx,
  .honour-row .honour-name,
  .contact-link > span:first-child,
  .honour-arrow { transition-duration: 0.01ms; }
}
