/* Layout: a single-column match report — condensed scoreboard type, a season-by-season career ledger, wide rules between sections. */
:root {
  --bg: #0e1015;
  --surface: #171a21;
  --ink: #eef0f4;
  --muted: #9aa1ad;
  --line: #2a2f39;
  --accent: #ff3b5c;
  --accent-ink: #12151b;
  --brand: #e3123b;
  color-scheme: dark;

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 5vw, 3.25rem);
  --step-4: clamp(3.25rem, 9vw, 6.5rem);

  --wrap: 72rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

/* Section tones break up the dark page: "alt" is a light band, "red" uses the JD brand red. */
.tone-alt {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #12151b;
  --muted: #5a606b;
  --line: #dcdfe5;
  --accent: #e0123a;
  --accent-ink: #ffffff;
  color-scheme: light;
}
.tone-red {
  --bg: var(--brand);
  --surface: #c40e31;
  --ink: #ffffff;
  --muted: rgb(255 255 255 / 0.82);
  --line: rgb(255 255 255 / 0.28);
  --accent: #ffffff;
  --accent-ink: var(--brand);
  color-scheme: dark;
}
/* Always dark (used for the career map and contact scene). */
.tone-dark {
  --bg: #0e1015;
  --surface: #171a21;
  --ink: #eef0f4;
  --muted: #9aa1ad;
  --line: #2a2f39;
  --accent: #ff3b5c;
  --accent-ink: #12151b;
  color-scheme: dark;
}
.tone-alt, .tone-red, .tone-dark { background: var(--bg); color: var(--ink); }
/* No rule line where the tone already marks the change of section. */
.tone-alt .wrap, .tone-red .wrap, .tone-alt + .section .wrap, .tone-red + .section .wrap { border-top: 0 !important; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .clubs-track { width: auto; }
  .clubs-list { flex-wrap: wrap; row-gap: 0.5rem; }
  .clubs-list[aria-hidden] { display: none; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.label {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Intro: the JD mark draws itself, then the page shows ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  pointer-events: none;
  animation: intro-out 0.45s ease 1s forwards;
}
.intro svg { width: min(34vw, 170px); overflow: visible; }
.intro-mark {
  fill: var(--accent);
  fill-opacity: 0;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: intro-draw 0.65s cubic-bezier(.6,.05,.3,1) forwards, intro-fill 0.3s ease 0.55s forwards;
}
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fill { to { fill-opacity: 1; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.no-intro .intro { display: none; }

/* ---------- Reveal on scroll (only for content below the first screen) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.75rem;
  /* Logo stays aligned with the page content; language, CV and menu sit at the
     right edge of the screen, lined up with the floating Contact button. */
  max-width: none;
  padding-left: max(var(--gutter-l), calc((100% - var(--wrap)) / 2 + var(--gutter-l)));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand img { width: 32px; height: 32px; border-radius: 6px; }
/* Header order: brand · · · language | sections | CV (far right). */
.site-header .lang-menu { margin-left: auto; }
.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  padding-block: 0.25rem;
}
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--ink); }
.nav a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

.skip-link {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -100px;
  z-index: 50;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-weight: 700;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.site-header { transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgb(0 0 0 / 0.35); }
.scroll-progress { position: absolute; inset: auto 0 -1px; height: 2px; pointer-events: none; }
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.header-tools { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.lang-menu, .cv-menu { position: relative; }
.lang-options a { text-decoration: none; }
.cv-options .label { color: var(--accent); }
/* The CV is the one solid red call to action in the header. */
.lang-btn.cv-btn { margin-left: 0.25rem; height: 38px; padding: 0 0.7rem 0 0.8rem; gap: 0.45rem; background: var(--brand); border-color: var(--brand); color: #fff; font-family: var(--font-body); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.01em; box-shadow: 0 8px 20px -10px var(--brand); }
.cv-btn .cv-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn.cv-btn:hover, .lang-btn.cv-btn[aria-expanded="true"] { background: #c40e31; border-color: #c40e31; color: #fff; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 36px;
  padding: 0 0.5rem 0 0.6rem;
  font: inherit;
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn[aria-expanded="true"] .btn-caret { transform: rotate(180deg); }
.lang-options {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 9.5rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.45);
}
.lang-options button, .lang-options a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.lang-options button:hover, .lang-options button:focus-visible, .lang-options a:hover, .lang-options a:focus-visible { background: var(--bg); color: var(--accent); }
.lang-options button[aria-current="true"] .label { color: var(--accent); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-btn { display: none; }
.menu-btn path { transition: transform 0.2s, opacity 0.2s; transform-origin: center; }
.menu-open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn .l2 { opacity: 0; }
.menu-open .menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav { border-left: 0; }
  .nav {
    position: fixed;
    inset: calc(env(safe-area-inset-top, 0px) + 65px) 0 0 0;
    z-index: 19;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding-block: 1rem 2rem;
    padding-left: var(--gutter-l);
    padding-right: var(--gutter-r);
    background: var(--bg);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav a {
    font-family: var(--font-display);
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--ink);
    padding-block: 0.6rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a.is-active { box-shadow: none; color: var(--accent); }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; }
  .menu-open { overflow: hidden; }
}

/* ---------- Clean header: logo left; language, CV and ☰ right. Sections open full screen. ---------- */
html.nav-burger .site-header .wrap { gap: 0.6rem; }
html.nav-burger .site-header .lang-menu { margin-left: auto; }
html.nav-burger .header-tools { gap: 0.6rem; }
html.nav-burger .lang-btn.cv-btn { margin-left: 0; }
html.nav-burger .menu-btn { display: inline-grid; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; }
html.nav-burger .nav {
  position: fixed;
  inset: calc(env(safe-area-inset-top, 0px) + 65px) 0 0 0;
  z-index: 19;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 0;
  margin: 0;
  padding: 2rem max(var(--gutter-r), calc((100vw - 44rem) / 2)) 2rem max(var(--gutter-l), calc((100vw - 44rem) / 2));
  border: 0;
  background: rgb(14 16 21 / 0.97); /* fallback for Safari < 16.2 */
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  counter-reset: navi;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
html.nav-burger .nav > a {
  counter-increment: navi;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: none;
  transition: color 0.2s, padding-left 0.25s;
}
html.nav-burger .nav > a:hover { color: var(--accent); padding-left: 0.5rem; }
html.nav-burger .nav > a.is-active { color: var(--accent); }
html.nav-burger .nav-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
html.nav-burger .nav-foot .social-icons a { width: 42px; height: 42px; }
.nav-foot { display: none; }
html.nav-burger .nav-foot { display: flex; }
html.nav-burger .menu-open .nav { visibility: visible; opacity: 1; transform: none; }
html.nav-burger .menu-open { overflow: hidden; }
html.nav-burger .menu-open .fab { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  html.nav-burger .nav > a { opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s, color 0.2s, padding-left 0.25s; }
  html.nav-burger .menu-open .nav > a { opacity: 1; transform: none; }
  html.nav-burger .menu-open .nav > a:nth-of-type(2) { transition-delay: 0.03s; }
  html.nav-burger .menu-open .nav > a:nth-of-type(3) { transition-delay: 0.06s; }
  html.nav-burger .menu-open .nav > a:nth-of-type(4) { transition-delay: 0.09s; }
  html.nav-burger .menu-open .nav > a:nth-of-type(5) { transition-delay: 0.12s; }
  html.nav-burger .menu-open .nav > a:nth-of-type(6) { transition-delay: 0.15s; }
  html.nav-burger .menu-open .nav > a:nth-of-type(7) { transition-delay: 0.18s; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  overflow-x: clip;
  isolation: isolate;
  min-height: min(86vh, 54rem);
  display: grid;
  align-items: center;
}
.hero > .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 2rem;
  padding-block: clamp(3rem, 8vw, 6rem) 2rem;
}
.hero-copy { max-width: 36rem; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero-copy { max-width: 40rem; }
.motto {
  position: relative;
  margin: 0;
  display: grid;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 10vw, 7rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding-bottom: 1.1rem;
}
.m-beyond { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.m-perf { color: var(--accent); }
/* "Beyond": the line runs past the words and off the edge of the column. */
.motto::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + clamp(1rem, 6vw, 5rem));
  height: 5px;
  background: linear-gradient(90deg, var(--accent) 70%, transparent);
  transform-origin: left;
  animation: motto-line 1.1s 0.2s cubic-bezier(.2,.7,.2,1) both;
}
/* The JD mark as a faint watermark behind the headline. */
.hero-mark {
  position: absolute;
  z-index: 0;
  left: max(var(--gutter-l), calc((100% - var(--wrap)) / 2 + var(--gutter-l) - 2rem));
  top: 50%;
  height: min(70%, 30rem);
  aspect-ratio: 447 / 326;
  max-width: 90%;
  transform: translateY(-50%);
  background: var(--ink);
  opacity: 0.06;
  -webkit-mask: url(../img/jd-mark.svg) left center / contain no-repeat;
  mask: url(../img/jd-mark.svg) left center / contain no-repeat;
  pointer-events: none;
}
@keyframes motto-line { from { transform: scaleX(0.15); } }
@supports not (-webkit-text-stroke: 1px black) { .m-beyond { color: var(--ink); } }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero .role {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero .lede { display: grid; gap: 0.75rem; color: var(--muted); max-width: 34rem; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-icon { width: 18px; height: 18px; fill: currentColor; }
.btn-caret { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
/* Photos fill the right of the hero and dissolve into the page on the left and bottom. */
.hero-bg { position: absolute; inset: 0 0 0 auto; width: 68%; z-index: -1; overflow: hidden; }
.slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--surface); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; z-index: 0; }
.slide.is-prev { opacity: 1; z-index: 1; }
.slide.is-active { opacity: 1; z-index: 2; transition: opacity 1.2s ease; }
.slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 30%);
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.slide.is-active > img, .slide.is-prev > img { transform: scale(1); }
/* As the hero scrolls away (--p from main.js), the photos ease in and the copy lifts and fades. */
.hero .slides { transform: scale(calc(1 + var(--p, 0) * 0.1)); transform-origin: 60% 40%; }
.hero > .wrap { transform: translateY(calc(var(--p, 0) * -70px)); opacity: calc(1 - var(--p, 0) * 1.3); }
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: /* fallback for Safari < 16.2 */
    linear-gradient(90deg, rgb(14 16 21) 0%, rgb(14 16 21 / 0.82) 18%, rgb(14 16 21 / 0.25) 45%, transparent 70%),
    linear-gradient(0deg, rgb(14 16 21) 0%, transparent 28%),
    linear-gradient(180deg, rgb(14 16 21 / 0.55) 0%, transparent 18%);
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 18%, color-mix(in srgb, var(--bg) 25%, transparent) 45%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 18%);
}



/* ---------- Clubs ticker ---------- */
.clubs { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 1.25rem; }
.clubs-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.clubs:hover .clubs-track { animation-play-state: paused; }
.clubs-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.clubs-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding-inline: clamp(1.5rem, 3vw, 2.5rem);
}
/* Crests keep their own colours, softened a touch; full strength on hover. */
.clubs-list img {
  height: 100%;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  filter: saturate(0.8);
  opacity: 0.72;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}
.clubs-list li:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.club-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s;
}
.club-word:hover { color: var(--ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Stat strip with career map ---------- */

/* Dotted world (equirectangular, 76°N to 46°S); pins, routes and figures share its box. */
.stats-map {
  position: relative;
  width: min(100% - 2rem, 66rem);
  aspect-ratio: 360 / 122;
  margin-inline: auto;
}
.map-layer { position: absolute; inset: 0; }
.map-dots {
  position: absolute;
  inset: 0;
  background: var(--muted);
  opacity: 0.32;
  -webkit-mask: url(../img/world-dots.svg) center / 100% 100% no-repeat;
  mask: url(../img/world-dots.svg) center / 100% 100% no-repeat;
}
.map-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-routes path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 4 4;
  opacity: 0.7;
  animation: route-flow 1.2s linear infinite;
}
/* The dashes travel along each route, in career order. */
@keyframes route-flow { to { stroke-dashoffset: -8; } }
.pin {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.pin::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pin-pulse 2.4s ease-out infinite;
}
@keyframes pin-pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
.pin-label {
  position: absolute;
  left: 50%;
  white-space: nowrap;
  transform: translateX(-50%);
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: rgb(23 26 33 / 0.85);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}
.pin-label em { font-style: normal; color: var(--accent); }
/* Club crests beside each country's pin. */
.map-crests {
  position: absolute;
  z-index: 1;
  display: flex;
  gap: 4px;
  padding: 4px 5px;
  border-radius: 6px;
  background: rgb(23 26 33 / 0.7);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  pointer-events: auto;
}
.map-crests img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform 0.2s;
}
.map-crests img:hover { transform: scale(1.35); }
.crests-nw { transform: translate(calc(-100% - 6px), calc(-100% - 6px)); }
.crests-n { transform: translate(-50%, calc(-100% - 30px)); }
.crests-s { transform: translate(-50%, 34px); }
.crests-ne { transform: translate(10px, calc(-100% - 10px)); }
.pin-b .pin-label { top: 12px; }
.pin-t .pin-label { bottom: 12px; }
.pin-r .pin-label { left: 14px; top: 50%; transform: translateY(-50%); }

.stat {
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem 0.6rem 0.4rem;
  border-left: 2px solid var(--accent);
  background: rgb(14 16 21 / 0.8);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .label { font-size: 0.62rem; max-width: 9.5rem; }
/* The four figures stacked in the open Pacific, at the map's left edge. */
.stats-figures {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  gap: 0.45rem;
}
@media (min-width: 1150px) { .stats-figures { left: -2.5rem; } }

/* ---------- Sections ---------- */
.section .wrap { padding-block: clamp(3rem, 8vw, 5.5rem); display: grid; gap: 2.5rem; }
.section + .section .wrap { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.75rem; max-width: 44rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); }

.about-text { display: grid; gap: 1rem; max-width: 42rem; font-size: 1.15rem; }
.about-lead { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 600; color: var(--ink); }
/* About: story on top, career map underneath, one band. */
.about { border-bottom: 1px solid var(--line); }
.about-intro {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(0.75rem, 2vw, 1.5rem);
}
/* Row 1: title and passion tile side by side. Row 2: the story in two columns. */
.about-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: end;
  min-width: 0;
}
.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.25rem clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
  min-width: 0;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.about-left { grid-row: span 2; display: grid; gap: 1.25rem; align-content: start; }
.about-sign { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; text-transform: uppercase; color: var(--accent); }
/* Who I am: three words, one line each. */
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.pillars li {
  position: relative;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: 1.1rem 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.pillars li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brand);
}
.pillars h3 { font-size: 1.6rem; text-transform: uppercase; }
.pillars p { color: var(--muted); }
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.langs .chips li { padding: 0.35rem 0.85rem; font-size: 0.9rem; }
.about .stats-map { margin-block: 0; }
.about-map { margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-block: clamp(2rem, 5vw, 3.5rem); }
/* The passion line sits in a red tile styled like the JD logo. */
.passion {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 1.1rem 1.4rem;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 24px 50px -28px var(--brand);
}
.passion p {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.passion-mark { position: absolute; right: -6%; bottom: -30%; width: 42%; fill: #fff; opacity: 0.12; }

/* ---------- Experience with locator map ---------- */
.exp-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.exp-list { display: grid; gap: 1rem; min-width: 0; }
.exp-map {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 6rem);
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.exp-map-box { position: relative; aspect-ratio: 360 / 122; }
.exp-map-box .map-dots { opacity: 0.4; }
.xpin {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.6;
  transition: background-color 0.3s, opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}
.xpin.is-on {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.6);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 18px var(--accent);
}
.exp-map-now { display: grid; gap: 0.15rem; min-height: 4.5rem; }
.exp-now-years { font-family: var(--font-data); font-size: 0.8rem; color: var(--accent); }
.exp-now-club { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; line-height: 1.05; }
.exp-now-league { font-family: var(--font-data); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.exp-map-now.is-swapping { animation: now-swap 0.35s ease; }
@keyframes now-swap { from { opacity: 0; transform: translateY(6px); } }
.ledger li { transition: background-color 0.3s; }
.ledger li.is-current { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%); }
.ledger li.is-current .years { color: var(--accent); }

/* ---------- Experience ledger ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.chip span { font-family: var(--font-data); font-size: 0.78rem; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] span { color: inherit; opacity: 0.7; }
.ledger li.is-hidden { display: none; }
.ledger li.is-entering { animation: rise 0.35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.filter-status { color: var(--muted); font-size: 0.9rem; margin-top: -1.5rem; }
.filter-status:empty { display: none; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; }
.ledger li {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.ledger { border-bottom: 1px solid var(--line); }
.ledger-body { padding-right: clamp(4rem, 9vw, 7rem); }
/* Each club's crest sits faintly at the right of its row and comes forward on hover. */
.ledger-logo {
  position: absolute;
  right: 0;
  top: 50%;
  width: clamp(3rem, 7vw, 5.5rem);
  height: clamp(3rem, 7vw, 5.5rem);
  object-fit: contain;
  transform: translateY(-50%);
  opacity: 0.16;
  filter: saturate(0.6);
  transition: opacity 0.3s, filter 0.3s;
  pointer-events: none;
}
.ledger li:hover .ledger-logo { opacity: 0.85; filter: none; }
@media (hover: none) { .ledger-logo { opacity: 0.3; } }
.ledger .years {
  font-family: var(--font-data);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.3rem;
}
.ledger .current, .edu-year.current { color: var(--accent); font-weight: 600; }
.ledger-body { display: grid; gap: 0.4rem; min-width: 0; }
.ledger h3 { font-size: var(--step-2); }
.ledger .club { font-weight: 700; }
.ledger .club .label { margin-left: 0.4rem; }
.ledger p.desc { color: var(--muted); max-width: 46rem; }

/* ---------- Education ---------- */
.edu-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.edu-col { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.edu-col-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: var(--step-2);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}
.edu-count { font-family: var(--font-data); font-size: 0.9rem; color: var(--accent); }
.edu-list { list-style: none; margin: 0; padding: 0; display: grid; }
.edu {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.edu-year { font-family: var(--font-data); font-size: 0.85rem; color: var(--muted); padding-top: 0.2rem; font-variant-numeric: tabular-nums; }
.edu-body { display: grid; gap: 0.2rem; min-width: 0; }
.edu h3 { font-size: 1.3rem; }
.edu .issuer { font-weight: 600; }
.edu p.detail { color: var(--muted); font-size: 0.95rem; }

/* ---------- Honours ---------- */
.honours { list-style: none; margin: 0.15rem 0 0.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.honours li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.honours li::before { content: "★"; color: var(--accent); }

/* ---------- Toolkit ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}


/* ---------- Skills: a horizontal gallery of photo cards ---------- */
.skills-gallery { display: grid; gap: 1.25rem; min-width: 0; }
.skills {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(270px, 29vw, 370px);
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Bleed off the right edge of the page, like a product gallery. */
  margin-right: calc((100vw - 100%) / -2);
  padding-right: max(var(--gutter-r), calc((100vw - var(--wrap)) / 2));
  padding-bottom: 0.25rem;
}
.skills::-webkit-scrollbar { display: none; }
.skills:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 22px; }
/* Every title ends on the card's centre line and the text starts just below it,
   so titles line up across cards even when one wraps to two lines. */
.skill {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr 1fr;
  justify-items: center;
  text-align: center;
  row-gap: 0.7rem;
  min-width: 0;
  min-height: clamp(26rem, 58vh, 32rem);
  padding: 1.5rem;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0d12;
  color: #fff;
  scroll-snap-align: start;
}
/* The original icons are white line art; a mask lets them take the theme's accent. */
.skill .icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.skill-photo { position: absolute; inset: 0; z-index: -1; margin: 0; }
.skill-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.skill-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 55%, rgb(8 9 12 / 0.72) 0%, rgb(8 9 12 / 0.5) 55%, rgb(8 9 12 / 0.3) 100%),
    linear-gradient(0deg, rgb(8 9 12 / 0.5) 0%, transparent 40%);
  pointer-events: none;
}
.skill:hover .skill-photo img { transform: scale(1.1); }
.skill-badge {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgb(11 13 18 / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.skill-badge .icon { width: 30px; height: 30px; background: #ff3b5c; }
.skill h3 { grid-row: 1; align-self: end; font-size: 1.9rem; line-height: 1; text-wrap: balance; }
.skill p { grid-row: 2; align-self: start; max-width: 28ch; color: rgb(255 255 255 / 0.88); font-size: 0.98rem; line-height: 1.5; text-wrap: pretty; }
.gallery-nav { display: flex; align-items: center; gap: 1rem; }
.gallery-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gallery-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--g, 0.3)); transition: transform 0.2s linear; }
.gallery-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.gallery-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.gallery-btn:disabled { opacity: 0.35; cursor: default; }
.gallery-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Photo band: a pinned, scroll-driven moment ----------
   The section is taller than the screen; its stage sticks while --p (0 → 1, set
   in main.js) opens the photo from a framed card to full bleed, then fills the
   headline line by line. Without JS the defaults show the finished state. */
.photo-band {
  --e: clamp(0, calc(var(--p, 1) * 2.3), 1);
  --t: clamp(0, calc((var(--p, 1) - 0.42) * 3.6), 1);
  position: relative;
  height: 190vh;
  background: var(--bg);
  color: #fff;
}
.photo-band-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
}
.photo-band-stage > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  clip-path: inset(calc((1 - var(--e)) * 12%) calc((1 - var(--e)) * 9%) round calc((1 - var(--e)) * 28px));
  transform: scale(calc(1.18 - var(--e) * 0.18));
  will-change: transform, clip-path;
}
.photo-band-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: calc(0.35 + var(--t) * 0.65);
  background:
    linear-gradient(0deg, rgb(11 13 18 / 0.92) 0%, rgb(11 13 18 / 0.35) 55%, rgb(11 13 18 / 0.2) 100%),
    linear-gradient(90deg, rgb(11 13 18 / 0.7) 0%, transparent 65%);
}
.photo-band-copy { width: 100%; padding-block: clamp(3rem, 9vh, 6rem); display: grid; gap: 0.75rem; }
.photo-band-title {
  --t1: clamp(0, calc(var(--t) * 2), 1);
  --t2: clamp(0, calc(var(--t) * 2 - 1), 1);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 14ch;
  text-wrap: balance;
  color: transparent;
  background: linear-gradient(180deg, #fff calc(var(--t1) * 100%), rgb(255 255 255 / 0.16) calc(var(--t1) * 100% + 0.35em));
  -webkit-background-clip: text;
  background-clip: text;
}
.photo-band-title span {
  display: block;
  background: linear-gradient(180deg, var(--brand) calc(var(--t2) * 100%), rgb(227 18 59 / 0.2) calc(var(--t2) * 100% + 0.35em));
  -webkit-background-clip: text;
  background-clip: text;
}
@media (prefers-reduced-motion: reduce) {
  .photo-band { height: auto; }
  .photo-band-stage { position: relative; height: 80vh; }
}

/* ---------- Insights ---------- */
/* Insights: a compact reading list; each row opens to show the takeaway. */
.insights { display: grid; border-top: 1px solid var(--line); }
.insight { border-bottom: 1px solid var(--line); min-width: 0; }
.insight.is-hidden { display: none; }
.insight.is-entering { animation: rise 0.35s ease-out; }
.insight summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem) 2rem;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem 0.5rem;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s;
}
.insight summary::-webkit-details-marker { display: none; }
.insight summary:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.insight summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* One category is shown at a time, so the row tag would only repeat the active filter. */
.insight summary .insight-topic { display: none; }
.insight-topic {
  justify-self: start;
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
}
.insight-title { font-weight: 700; font-size: 1rem; line-height: 1.35; }
.insight-source { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.insight-source em { font-style: normal; color: var(--ink); }
.insight-toggle { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); justify-self: end; transition: transform 0.3s, background-color 0.2s, border-color 0.2s; }
.insight-toggle::before, .insight-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; background: var(--ink); border-radius: 2px; }
.insight-toggle::after { transform: rotate(90deg); transition: transform 0.3s; }
.insight[open] .insight-toggle { background: var(--accent); border-color: var(--accent); }
.insight[open] .insight-toggle::before, .insight[open] .insight-toggle::after { background: var(--accent-ink); }
.insight[open] .insight-toggle::after { transform: rotate(0deg); }
.insight-body { display: grid; gap: 0.75rem; padding: 0 0.5rem 1.4rem; max-width: 58rem; animation: rise 0.3s ease-out; }
.insight-take { display: grid; gap: 0.3rem; padding: 0.85rem 1rem; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 0 6px 6px 0; }
.insight-take p:last-child { font-size: 0.97rem; }
.insight-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.insight .more { font-weight: 700; color: var(--accent); text-decoration: none; }
.insight .more:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .insight summary { grid-template-columns: minmax(0, 1fr) 2rem; gap: 0.45rem 0.75rem; padding: 1rem 0.25rem; }
  .insight-title { grid-column: 1; grid-row: 1; }
  .insight-source { grid-column: 1; grid-row: 2; }
  .insight-toggle { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .insight-body { padding: 0 0.25rem 1.2rem; }
}

/* ---------- Testimonials carousel ---------- */
.t-carousel { display: grid; gap: 1.5rem; min-width: 0; }
.t-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  border-radius: 8px;
}
.t-track::-webkit-scrollbar { display: none; }
.t-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.t-slide {
  margin: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.t-photo { position: relative; min-height: 100%; }
.t-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.t-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--surface));
}
.t-body {
  display: grid;
  align-content: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  min-width: 0;
}
.t-body blockquote { margin: 0; position: relative; }
.t-body blockquote::before {
  content: "“";
  position: absolute;
  top: -0.55em;
  left: -0.05em;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
}
.t-body blockquote p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; position: relative; }
.t-body figcaption { display: grid; gap: 0.1rem; border-left: 3px solid var(--accent); padding-left: 0.85rem; }
.t-body figcaption strong { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.02em; }
.t-body figcaption span { color: var(--muted); font-size: 0.95rem; }

/* Arrows flank the thumbnails as one centred group. */
.t-nav { display: flex; align-items: center; justify-content: center; gap: 0.75rem; min-width: 0; }
.t-nav .t-thumbs { flex: 0 1 auto; justify-content: flex-start; }
/* Centred when they fit, but still scrollable from the first photo when they don't. */
.t-thumbs > .t-thumb:first-child { margin-left: auto; }
.t-thumbs > .t-thumb:last-child { margin-right: auto; }
.car-btn {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.car-btn:hover { border-color: var(--ink); }
.car-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-thumbs {
  display: flex;
  gap: 0.6rem;
  flex: 1;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  min-width: 0;
}
.t-thumbs::-webkit-scrollbar { display: none; }
.t-thumb {
  flex-shrink: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  opacity: 0.5;
  filter: grayscale(0.6);
  transition: opacity 0.2s, filter 0.2s, border-color 0.2s, transform 0.2s;
}
.t-thumb img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.t-thumb:hover { opacity: 0.85; filter: none; }
.t-thumb[aria-current="true"] { opacity: 1; filter: none; border-color: var(--accent); transform: scale(1.08); }

/* ---------- Contact ---------- */
/* ---------- Contact: the closing scene ----------
   Match-night photo full bleed, slowly settling as you arrive (--p from main.js),
   a red glow that follows the pointer, and the headline rising word by word. */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: #0b0d12;
  color: var(--ink);
}
.contact-bg { position: absolute; inset: 0; z-index: -3; }
.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
  transform: scale(calc(1.25 - var(--p, 1) * 0.25));
  filter: saturate(calc(0.4 + var(--p, 1) * 0.6));
  will-change: transform;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgb(11 13 18 / 0.55) 0%, rgb(11 13 18 / 0.86) 70%, #0b0d12 100%),
    linear-gradient(180deg, #0b0d12 0%, transparent 18%, transparent 82%, #0b0d12 100%);
}
.contact-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 40%), rgb(227 18 59 / 0.28), transparent 65%);
  transition: opacity 0.4s;
}
.contact-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  padding-block: clamp(3rem, 7vh, 4.5rem) clamp(2rem, 5vh, 3rem);
}
.contact-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}
.contact-title .w { display: inline-block; }
.contact-title .accent { color: var(--brand); text-shadow: 0 0 40px rgb(227 18 59 / 0.45); }
.contact-title::after {
  content: "";
  display: block;
  width: min(14rem, 50%);
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  background-size: 200% 100%;
  animation: shimmer 3.2s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.contact-lede { color: rgb(238 240 244 / 0.82); font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 34rem; }
.contact-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.contact-cta .btn { min-height: 52px; padding-inline: 1.6rem; font-size: 1.02rem; }
.contact-cta .btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 18px 40px -16px var(--brand); }
.contact-cta .btn-primary:hover { background: #c40e31; color: #fff; }
.btn-glass { color: #fff; border: 1px solid rgb(255 255 255 / 0.3); background: rgb(255 255 255 / 0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgb(255 255 255 / 0.16); border-color: rgb(255 255 255 / 0.55); }
.contact-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: center;
  gap: 0.75rem;
}
.contact-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(255 255 255 / 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, background-color 0.3s;
}
.contact-list li:hover { transform: translateY(-3px); border-color: rgb(227 18 59 / 0.6); background: rgb(227 18 59 / 0.1); }
.contact-list .label { color: rgb(238 240 244 / 0.6); }
.contact-list a, .contact-list li > span:last-child { font-weight: 600; font-size: 1rem; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: #ff3b5c; }
/* Headline words rise in one after another once the section is in view. */
@media (prefers-reduced-motion: no-preference) {
  .contact .w { opacity: 0; transform: translateY(0.4em); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
  .contact .w:nth-child(2) { transition-delay: 0.12s; }
  .contact .w:nth-child(3) { transition-delay: 0.24s; }
  .contact.is-live .w { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}
@media (max-width: 520px) {
  .contact-list li { padding: 0.6rem 0.7rem; }
  .contact-list li:first-child, .contact-list li:last-child { grid-column: 1 / -1; }
  .contact-list a, .contact-list li > span:last-child { font-size: 0.9rem; }
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.field { display: grid; gap: 0.4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  width: 100%;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--accent); }
.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.92rem;
}
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-actions .btn { font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.form-error { color: var(--accent); font-weight: 600; }
.form-note { color: var(--muted); font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding-block: 1.75rem 1.25rem;
  gap: 1.25rem;
}
.footer-brand { display: grid; gap: 0.4rem; align-content: start; }
.footer-motto { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.footer-motto .m-beyond { -webkit-text-stroke-width: 1.2px; }
.footer-role { color: var(--muted); }
.footer-social { display: grid; gap: 0.6rem; justify-items: end; }
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-icons a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.social-icons a:hover, .social-icons a:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }
.social-icons svg { width: 19px; height: 19px; fill: currentColor; }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom a { color: inherit; }
.to-top { text-decoration: none; font-weight: 600; }
.to-top:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .exp-layout { grid-template-columns: 1fr; }
  .exp-map { display: none; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; align-items: end; }
  .hero-bg { width: 100%; height: min(78vh, 40rem); bottom: auto; }
  .slide > img { object-position: var(--pos-m, var(--pos, 50% 30%)); }
  .hero-mark { top: auto; bottom: 3rem; height: 15rem; transform: none; }
  .hero > .wrap { padding-top: min(46vh, 22rem); }
  .hero-fade {
    background: /* fallback for Safari < 16.2 */
      linear-gradient(0deg, rgb(14 16 21) 0%, rgb(14 16 21) 6%, rgb(14 16 21 / 0.7) 30%, transparent 62%),
      linear-gradient(180deg, rgb(14 16 21 / 0.45) 0%, transparent 20%);
    background:
      linear-gradient(0deg, var(--bg) 0%, var(--bg) 6%, color-mix(in srgb, var(--bg) 70%, transparent) 30%, transparent 62%),
      linear-gradient(180deg, color-mix(in srgb, var(--bg) 45%, transparent) 0%, transparent 20%);
  }
}
@media (max-width: 960px) {
}
@media (max-width: 760px) {
  .about-head, .about-body { grid-template-columns: 1fr; }
  .about-left { grid-row: auto; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-social { justify-items: start; }
  .pin-label, .map-crests { display: none; }
  .pin { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
  .stats-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; aspect-ratio: auto; }
  .map-layer { position: relative; grid-column: 1 / -1; aspect-ratio: 360 / 122; }
  .stats-figures { position: static; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .ledger li { grid-template-columns: 1fr; gap: 0.5rem; }
  .edu-cols { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; gap: 0.25rem; }
  .ledger-logo { top: 1.5rem; transform: none; width: 2.75rem; height: 2.75rem; }
  .ledger-body { padding-right: 0; }
  .ledger .years { padding-right: 3.5rem; }
  .skills { grid-auto-columns: 82vw; }
  .t-slide { grid-template-columns: 1fr; }
  .t-photo img { aspect-ratio: 4 / 3; object-position: 50% 25%; }
  .t-photo::after { background: linear-gradient(180deg, transparent 55%, var(--surface)); }
  .t-thumbs { justify-content: flex-start; }
  .t-thumb img { width: 44px; height: 44px; }
  .site-header .wrap { gap: 1rem; }
}

/* On the red Experience band, crests need a little more presence to read. */
.tone-red .ledger-logo { filter: none; opacity: 0.4; }
.tone-red .ledger li:hover .ledger-logo { opacity: 1; }
@media (hover: none) { .tone-red .ledger-logo { opacity: 0.5; } }
@media (max-width: 420px) {
  .lang-btn.cv-btn { margin-left: 0.25rem; padding: 0 0.5rem 0 0.6rem; }
  /* Phones: the JD logo alone keeps room for the CV button and the menu. */
  .brand span { display: none; }
}

/* Experience: the row being read stays bright, the rest step back (desktop, where the map follows along). */
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .ledger > li > :not(.ledger-logo) { transition: opacity 0.45s ease; }
  .ledger > li:not(.is-current):not(:hover) > :not(.ledger-logo) { opacity: 0.38; }
}

/* Floating contact: the site's one contact button, always one tap away. */
.fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 52px;
  padding: 0 1.25rem 0 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgb(227 18 59 / 0.75), 0 4px 12px rgb(0 0 0 / 0.25);
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2,.7,.2,1), background-color 0.2s;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: #c40e31; }
.fab.on-red { background: #fff; color: var(--brand); box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.45); }
.fab.on-red::after { animation: none; }
.fab svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgb(227 18 59 / 0.55);
  animation: fab-ring 2.6s 1s infinite;
}
@keyframes fab-ring { 70%, 100% { box-shadow: 0 0 0 14px rgb(227 18 59 / 0); } }
@media (max-width: 520px) {
  .fab { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .fab span { display: none; }
}
html.nav-burger .nav-foot a { padding: 0; font-size: inherit; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
html.nav-burger .nav-foot a:hover { color: #fff; }

/* Header controls, each with its own look: language = globe + code, no frame;
   CV = outlined pill; menu = solid red square. */
html.nav-burger .lang-btn:not(.cv-btn) { border-color: transparent; padding: 0 0.45rem; gap: 0.35rem; color: var(--muted); }
html.nav-burger .lang-btn:not(.cv-btn):hover, html.nav-burger .lang-btn:not(.cv-btn)[aria-expanded="true"] { color: var(--ink); border-color: transparent; background: rgb(255 255 255 / 0.06); }
.lang-globe { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
html.nav-burger .lang-btn.cv-btn {
  background: transparent;
  border: 1.5px solid rgb(255 255 255 / 0.55);
  border-radius: 999px;
  color: var(--ink);
  box-shadow: none;
  height: 40px;
  padding: 0 0.85rem 0 0.95rem;
  letter-spacing: 0.04em;
}
html.nav-burger .lang-btn.cv-btn:hover, html.nav-burger .lang-btn.cv-btn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
html.nav-burger .menu-btn { width: 48px; height: 48px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px var(--brand); }
html.nav-burger .menu-btn:hover { background: #c40e31; }
html.nav-burger .menu-btn svg { width: 26px; height: 26px; stroke-width: 2.4; }
@media (max-width: 420px) {
  html.nav-burger .menu-btn { width: 44px; height: 44px; }
  html.nav-burger .lang-btn.cv-btn { height: 38px; padding: 0 0.7rem; }
}

/* Bigger tap areas on touch screens for the small text links (layout unchanged). */
.insight .more,
.site-footer a[href="legal.html"],
.site-footer .to-top { display: inline-block; padding-block: 10px; margin-block: -10px; }
