/* ------------------------------------------------------------------
   Colours. Change --accent to restyle the whole site.
------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #f8f5ef;          /* warm ivory */
  --band: #f0eadf;        /* slightly deeper ivory for alternating sections */
  --warm: #e9dcc5;        /* sand, for the contact section */
  --surface: #fdfcf9;
  --ink: #1b1d21;
  --muted: #666b74;
  --line: #ddd5c6;
  --accent: #96723a;      /* brass */
  --accent-soft: rgba(150, 114, 58, 0.13);
  --green: #2f5d4a;       /* field green, used sparingly */
  --on-accent: #fdfbf7;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body {
  margin: 0; color: var(--ink); overflow-x: clip;
  background:
    radial-gradient(900px 520px at 88% -80px, rgba(150, 114, 58, 0.10), transparent 70%),
    radial-gradient(700px 480px at -10% 420px, rgba(47, 93, 74, 0.06), transparent 70%),
    var(--bg);
  font: 400 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2, .statement { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.06; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.9rem); }
h1 em { color: var(--accent); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font: 600 1.08rem/1.3 var(--sans); letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---- reading progress line ---- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---- top bar ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  padding: 16px max(24px, calc((100vw - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.brand { font: 400 1.5rem/1 var(--serif); text-decoration: none; white-space: nowrap; margin-right: auto; }
.top nav { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a {
  position: relative; text-decoration: none; color: var(--muted); white-space: nowrap;
  font-size: 0.86rem; font-weight: 500; padding: 6px 0; transition: color .25s;
}
.top nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease);
}
.top nav a:hover, .top nav a[aria-current="true"] { color: var(--ink); }
.top nav a:hover::after, .top nav a[aria-current="true"]::after { transform: scaleX(1); }
.social { display: flex; gap: 8px; flex: none; }
.social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  transition: border-color .25s, color .25s, transform .3s var(--ease), background-color .25s;
}
.social a:hover { border-color: var(--accent); color: var(--on-accent); background: var(--accent); transform: translateY(-2px); }
.social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- layout ---- */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 104px 0; }
/* a section with class "band" gets a full-width tinted background */
.band { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.band.warm { background: var(--warm); box-shadow: 0 0 0 100vmax var(--warm); }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; font-weight: 600; color: var(--muted);
}
.section-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 22px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.num { font: 500 0.78rem/1 var(--sans); letter-spacing: 0.14em; color: var(--accent); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.statement { font-size: clamp(1.55rem, 2.7vw, 2.15rem); line-height: 1.22; margin: 0; }
.section-note { color: var(--muted); max-width: 60ch; margin: -22px 0 36px; }

/* ---- hero ---- */
.hero {
  min-height: calc(100vh - 190px); padding: 72px 0 64px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
.pulse { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(150, 114, 58, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(150, 114, 58, 0); } }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 50ch; margin: 28px 0 36px; }
.now { display: inline-flex; align-items: center; gap: 12px; margin: -12px 0 30px; padding: 7px 16px 7px 7px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); font-size: 0.88rem; font-weight: 500; }
.now b { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 3px 11px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 0.9rem; font-weight: 600; padding: 14px 26px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: transform .3s var(--ease), border-color .3s, background-color .3s, color .3s;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn:hover span { transform: translate(3px, 0); }
.btn[href$=".pdf"]:hover span { transform: translate(0, 3px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* the playing surfaces: each draws itself, then gives way to the next */
.fields { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px 26px 18px; box-shadow: 0 30px 60px -40px rgba(60, 45, 20, .35); }
.stage { position: relative; aspect-ratio: 440 / 300; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .7s var(--ease); }
.field.on { opacity: 1; }
.field .draw { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.field .edge { stroke: var(--muted); }
.field .main { stroke: var(--green); stroke-width: 1.8; }
.field .accent { stroke: var(--accent); stroke-width: 2; }
.field .route { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 3 5; stroke-linecap: round; }
.field .marks circle { fill: var(--accent); opacity: .85; transform-box: fill-box; transform-origin: center; }
.js .field .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .field .route { opacity: 0; }
.js .field .marks circle { transform: scale(0); }
.js .field.on .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.7s var(--ease); }
.js .field.on .main { transition-delay: .25s; }
.js .field.on .accent { transition-delay: .4s; }
.js .field.on .thin { transition-delay: .55s; }
.js .field.on .route { opacity: .9; transition: opacity .8s 1.5s; }
.js .field.on .marks circle { transform: scale(1); transition: transform .55s var(--ease); transition-delay: calc(1.6s + var(--i, 0) * 80ms); }
.fields figcaption { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field-name { transition: opacity .35s; }
.ticks { display: flex; gap: 6px; }
.ticks i { width: 18px; height: 2px; background: var(--line); transition: background-color .4s, width .4s var(--ease); }
.ticks i.on { background: var(--accent); width: 30px; }

/* ---- moving band of focus areas ---- */
.marquee { overflow: hidden; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 calc(50% - 50vw); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; width: max-content; animation: slide 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { font: 400 1.5rem/1 var(--serif); color: var(--ink); white-space: nowrap; padding: 0 26px; position: relative; }
.track span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- about ---- */
.split > div > p:not(.statement) { color: var(--muted); }
.facts { margin: 30px 0 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt, .mini { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; font-weight: 600; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 500; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 72px; }
.pillar { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 30px 28px 26px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.pillar:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 22px 44px -30px rgba(60, 45, 20, .4); }
.pillar-num { display: block; font: italic 400 1.5rem/1 var(--serif); color: var(--accent); margin-bottom: 26px; }
.pillar h3 { font: 400 1.7rem/1.1 var(--serif); margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---- photos: each spot only shows once its image file exists ---- */
.portrait { margin: 36px 0 0; max-width: 340px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(60, 45, 20, .45); }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.portrait:hover img { transform: scale(1.04); }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 20px; margin-top: 20px; }
.gallery:not(:has(figure)) { display: none; }
.gallery figure { position: relative; margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--surface); border-radius: 999px; padding: 5px 14px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.credit { margin: 10px 0 0; text-align: right; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.gallery:not(:has(figure)) + .credit { display: none; }
.job-logo { float: right; width: 92px; margin: -6px 0 8px 20px; mix-blend-mode: multiply; }
.job-logo.tile { width: 60px; height: 60px; object-fit: cover; border-radius: 12px; margin-top: -4px; mix-blend-mode: normal; border: 1px solid var(--line); }
.job-logo.tile.contain { object-fit: contain; background: #fff; padding: 5px; }

/* ---- scouting report list ---- */
.reports { border-top: 1px solid var(--line); }
.report { display: grid; grid-template-columns: 130px 1fr auto 28px; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .4s var(--ease), background-color .4s; }
.report:hover { padding-left: 14px; padding-right: 14px; background: var(--accent-soft); }
.report-sport, .report-date { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.report-date { color: var(--muted); }
.report-name { font: 400 1.6rem/1.15 var(--serif); }
.report-name small { display: block; font: 400 0.9rem/1.4 var(--sans); color: var(--muted); margin-top: 4px; }
.report-arrow { color: var(--accent); transition: transform .4s var(--ease); }
.report:hover .report-arrow { transform: translateX(6px); }

/* ---- a single report or article page ---- */
.page { max-width: 780px; margin: 0 auto; padding: 64px 24px 96px; }
.page .back { display: inline-block; margin-bottom: 44px; font-size: 0.86rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.page .back:hover { color: var(--accent); }
.page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 10px; }
.page .sub { color: var(--muted); margin-bottom: 36px; }
.page h2 { font-size: 1.8rem; margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.page p, .page li { color: #3d4148; }
.page ul.list { list-style: disc; padding-left: 22px; }
.page ul.list li { margin-bottom: 8px; }
.snapshot { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0; }
.snapshot div { background: var(--surface); padding: 16px 18px; }
.snapshot dt { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.snapshot dd { margin: 0; font: 400 1.35rem/1.2 var(--serif); }
.page img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }

/* ---- stat strip ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { padding: 34px 24px 30px 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { display: block; font: 400 clamp(2.5rem, 4.6vw, 3.6rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.88rem; max-width: 22ch; }

/* ---- experience timeline ---- */
.job { position: relative; display: grid; grid-template-columns: 210px 1fr; gap: 40px; padding: 0 0 52px 34px; }
.job::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: -12px; width: 1px; background: var(--line); }
.job:last-child { padding-bottom: 0; }
.job:last-child::before { display: none; }
.job::after {
  content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--accent); transition: background-color .4s, box-shadow .4s;
}
.job:hover::after { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.when { margin: 0; padding-top: 2px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.org { color: var(--accent); font-size: 0.92rem; font-weight: 500; margin: 6px 0 14px; }
.job li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--muted); max-width: 68ch; }
.job li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 8px; height: 1px; background: var(--muted); }

/* ---- cards ---- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 32px;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.card::before {                       /* soft light that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 65%);
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 22px 44px -30px rgba(60, 45, 20, .45); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card > * { position: relative; }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; letter-spacing: 0.1em; }
.card h3 { font: 400 1.6rem/1.15 var(--serif); margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.tags span { font-size: 0.78rem; font-weight: 500; color: var(--ink); }
.card .links { margin: 16px 0 0; }
.card .links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.empty { border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 8px; padding: 56px 32px; text-align: center; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty p:last-child { color: var(--muted); margin: 12px 0 0; }

/* ---- clubs ---- */
.clubs { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.club { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); transition: background-color .4s, padding-left .4s var(--ease); }
.club:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.club:hover { background: var(--accent-soft); padding-left: 16px; }
.club:nth-child(even):hover { padding-left: 36px; }
.club-mark { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; font: 400 1.1rem/1 var(--serif); color: var(--accent); transition: background-color .4s, color .4s; }
.club:hover .club-mark { background: var(--accent); color: var(--on-accent); }
.club-mark.photo { object-fit: cover; padding: 0; border-color: var(--line); }
.club h3 { font: 400 1.5rem/1.15 var(--serif); margin-bottom: 4px; }
.club .role { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.club p:last-child { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---- skills ---- */
.mini { margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 0.86rem; font-weight: 500; transition: border-color .3s, color .3s, transform .3s var(--ease); }
.chips li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.school { padding: 16px 0; border-top: 1px solid var(--line); }
.school h4 { font: 400 1.35rem/1.2 var(--serif); margin-bottom: 6px; }
.school p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.school:has(.school-logo) { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; }
.school-logo { grid-row: 1 / span 2; width: 54px; height: 54px; object-fit: cover; border-radius: 10px; margin-top: 2px; }
.school-logo.blend { object-fit: contain; mix-blend-mode: multiply; border-radius: 0; }

/* ---- awards ---- */
.awards li { display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease); }
.awards li:hover { padding-left: 10px; }
.awards span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); padding-top: 5px; }
.awards div { color: var(--muted); font-size: 0.95rem; }
.awards strong { display: block; font: 400 1.35rem/1.25 var(--serif); color: var(--ink); margin-bottom: 4px; }
.award-photo { width: 84px; height: 104px; object-fit: cover; object-position: 50% 22%; border-radius: 8px; border: 1px solid var(--line); margin: -4px 0; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.award-photo.wide { width: 130px; object-position: 50% 50%; }
.award-photo.full { width: auto; object-fit: contain; }
.award-photo { cursor: zoom-in; }

/* enlarged photo, shown when an award photo is clicked */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(248, 245, 239, .94); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); cursor: zoom-out; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 900px); max-height: 88vh; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(60, 45, 20, .6); transform: scale(.96); transition: transform .45s var(--ease); }
.lightbox.open img { transform: none; }
.awards li:hover .award-photo { transform: scale(1.06) rotate(-1.5deg); box-shadow: 0 16px 30px -18px rgba(60, 45, 20, .5); }

/* ---- contact / footer ---- */
.contact { text-align: center; padding: 120px 0; }
.contact .eyebrow { justify-content: center; }
.contact h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: 40px; }
.contact .actions { justify-content: center; }
.contact .btn.ghost { background: color-mix(in srgb, var(--surface) 55%, transparent); border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
footer {
  max-width: 1120px; margin: 0 auto; padding: 26px 24px 40px;
  display: flex; justify-content: space-between; color: var(--muted); font-size: 0.82rem;
}
footer a { text-decoration: none; transition: color .25s; }
footer a:hover { color: var(--accent); }

/* ---- reveal on scroll (only when scripts run) ---- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- small screens ---- */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .top { gap: 14px; padding: 12px 16px; }
  .top nav { gap: 18px; }
  .social { display: none; }
  main { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 48px 0 48px; gap: 40px; }
  .fields { padding: 18px 18px 14px; }
  .split, .split.even { grid-template-columns: 1fr; gap: 30px; }
  .pillars { grid-template-columns: 1fr; margin-top: 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li, .stats li + li { padding: 24px 16px 24px 0; border-left: 0; }
  .stats li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .job { grid-template-columns: 1fr; gap: 8px; padding-left: 28px; padding-bottom: 40px; }
  .cards, .clubs { grid-template-columns: 1fr; }
  .gallery { grid-auto-flow: row; }
  .portrait { max-width: 100%; }
  .report { grid-template-columns: 1fr 24px; gap: 6px 12px; }
  .report-sport, .report-date { grid-column: 1; }
  .report-arrow { grid-column: 2; grid-row: 1 / span 3; }
  .club, .club:nth-child(even) { padding: 26px 0; border-left: 0; grid-template-columns: 52px 1fr; gap: 18px; }
  .club:hover, .club:nth-child(even):hover { padding-left: 8px; }
  .club-mark { width: 52px; height: 52px; font-size: 0.95rem; }
  .card { padding: 26px; }
  .awards li { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .awards li > span, .awards li > div { grid-column: 1; }
  .award-photo { grid-column: 2; grid-row: 1 / span 2; width: 72px; height: 90px; margin: 0; }
  .award-photo.wide { width: 104px; height: 84px; }
  .award-photo.full { width: auto; height: 90px; }
  .job-logo { width: 72px; }
  .job-logo.tile { width: 48px; height: 48px; }
  .contact { padding: 84px 0; }
  .section-head { margin-bottom: 32px; }
  .track span { font-size: 1.25rem; padding: 0 20px; }
  footer { padding: 22px 16px 32px; }
}

/* ---- for visitors who ask their device for less motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==================================================================
   Motion details
================================================================== */
/* headline: each word slides up from behind a mask */
.js h1.words { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .1em .1em .18em 0; margin: -.1em -.1em -.18em 0; }
.w > span { display: inline-block; transform: translateY(115%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--wi, 0) * 70ms + 120ms); }
h1.words.in .w > span { transform: none; }

/* playing-surface card: tilts toward the pointer */
.js .fields.reveal.in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .9s var(--ease), transform .5s var(--ease); }

/* a ball travels the dotted route, then the target marker pulses */
.field .ball { fill: var(--ink); opacity: 0; transition: opacity .3s; }
.field.live .ball { opacity: 1; }
.field.hit .ball { opacity: 0; }
.field.hit .marks circle:first-child { animation: hit .8s var(--ease); }
@keyframes hit { 0% { transform: scale(1); } 35% { transform: scale(1.8); } 100% { transform: scale(1); } }

/* section headings: the rule draws across */
.section-head { position: relative; border-bottom: 0; }
.section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.js .section-head.reveal::after { transform: scaleX(0); transition: transform 1.3s var(--ease) .15s; }
.js .section-head.reveal.in::after { transform: none; }

/* experience: a brass line fills down the timeline as you scroll */
.timeline { position: relative; }
.timeline::after { content: ""; position: absolute; left: 4px; top: 12px; width: 1px; height: calc(var(--fill, 0) * (100% - 24px)); background: var(--accent); transition: height .25s linear; }
.job::after { z-index: 1; }

/* photos: wipe in from the top */
.js .gallery figure.reveal img { clip-path: inset(0 0 100% 0); transform: scale(1.12); }
.js .gallery figure.reveal.in img { clip-path: inset(0); transform: none; transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease); transition-delay: var(--d, 0ms); }
.js .gallery figure.reveal.in:hover img { transform: scale(1.05); transition-delay: 0ms; }
.js .reveal .portrait img { transition: clip-path 1.2s var(--ease) .25s, transform 1.2s var(--ease); }
.js .reveal:not(.in) .portrait img { clip-path: inset(0 0 100% 0); }
.js .reveal.in .portrait img { clip-path: inset(0); }

@media (prefers-reduced-motion: reduce) {
  .w > span, .js .section-head.reveal::after { transform: none !important; }
  .js img { clip-path: none !important; transform: none !important; }
  .timeline::after { display: none; }
}
