/* ============ Tokens ============ */
:root {
  --ink: #0a0b0d;
  --ink-2: #111317;
  --ink-3: #1a1d22;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);
  --text: #f4f2ee;
  --muted: #b9bdc2;
  --paper: #f3f1ec;
  --paper-2: #e8e5dd;
  --paper-ink: #0e0f12;
  --paper-muted: #575b61;
  --paper-line: rgba(14, 15, 18, 0.14);
  --or1: #ff3d00;
  --or2: #ff6b00;
  --or3: #ffae3a;
  --grad: linear-gradient(115deg, #ff3d00 0%, #ff6b00 45%, #ffae3a 100%);
  --grad-wide: linear-gradient(115deg, #ff3d00 0%, #ff6b00 25%, #ffae3a 50%, #ff6b00 75%, #ff3d00 100%);
  --acc-rgb: 255, 107, 0;
  --rim-rgb: 255, 170, 110;
  --bar-h: 40px;
  --nav-h: 64px;
  --radius: 16px;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--or2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--or2); color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 78%; line-height: .95; letter-spacing: -0.01em; }
h2 { font-size: clamp(40px, 6vw, 88px); text-transform: uppercase; }
h3 { font-size: clamp(21px, 2vw, 26px); font-stretch: 88%; line-height: 1.1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 13px/1 var(--display); font-stretch: 100%; letter-spacing: .16em; text-transform: uppercase; color: var(--or2); }
.paper .eyebrow { color: var(--paper-ink); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t, .countdown b, [data-count] { font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); display: inline-block; flex: none; box-shadow: 0 0 0 0 rgba(var(--acc-rgb), .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(var(--acc-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), 0); } }


/* ============ Two colours: orange = running, blue = research ============ */
.theme-run {
  --or1: #ff3d00; --or2: #ff6b00; --or3: #ffae3a; --acc-rgb: 255, 107, 0; --rim-rgb: 255, 170, 110;
  --grad: linear-gradient(115deg, #ff3d00 0%, #ff6b00 45%, #ffae3a 100%);
  --grad-wide: linear-gradient(115deg, #ff3d00 0%, #ff6b00 25%, #ffae3a 50%, #ff6b00 75%, #ff3d00 100%);
}
.theme-research {
  --or1: #2b4dff; --or2: #3b82ff; --or3: #6cc6ff; --acc-rgb: 59, 130, 255; --rim-rgb: 140, 200, 255;
  --grad: linear-gradient(115deg, #2b4dff 0%, #3b82ff 45%, #4fd1ff 100%);
  --grad-wide: linear-gradient(115deg, #2b4dff 0%, #3b82ff 25%, #4fd1ff 50%, #3b82ff 75%, #2b4dff 100%);
}
.theme-research .paper, .paper.theme-research { --grad: linear-gradient(115deg, #1d3fd6 0%, #2463ff 55%, #0a86cf 100%); --or2: #2463ff; }
.theme-research .blobs i:nth-child(1) { background: radial-gradient(circle at 40% 40%, #2f6bff 0%, rgba(47, 107, 255, 0) 66%); }
.theme-research .blobs i:nth-child(2) { background: radial-gradient(circle at 60% 50%, #4fd1ff 0%, rgba(79, 209, 255, 0) 64%); }
.theme-research .blobs i:nth-child(3) { background: radial-gradient(circle, #5b3dff 0%, rgba(91, 61, 255, 0) 62%); }
.race-bar { --grad-wide: linear-gradient(115deg, #ff3d00 0%, #ff6b00 25%, #ffae3a 50%, #ff6b00 75%, #ff3d00 100%); }
.has-sub.theme-research .sub a:hover, .has-sub.theme-research .sub a.active { color: #6cc6ff; }

/* ============ Buttons ============ */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; white-space: nowrap;
  font: 700 14px/1 var(--display); font-stretch: 100%; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .35s var(--ease), background-position .6s var(--ease), border-color .25s, color .25s, box-shadow .35s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(.96); }
.btn-grad { background: var(--grad-wide); background-size: 250% 100%; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(var(--acc-rgb), .7); }
.btn-grad:hover { background-position: 100% 0; box-shadow: 0 14px 40px -10px rgba(var(--acc-rgb), .9); }
.btn-grad::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.btn-grad:hover::after { left: 130%; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--or2); color: #fff; }
.btn-ink { background: var(--paper-ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: rgba(255, 255, 255, .04); font-size: 18px; transition: border-color .25s, color .25s, transform .3s var(--ease); }
.round:hover { border-color: var(--or2); color: var(--or2); transform: scale(1.06); }

/* ============ Race bar ============ */
.race-bar { position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto 0; height: var(--bar-h); z-index: 60; background: var(--grad-wide); background-size: 200% 100%; animation: barflow 12s linear infinite; color: var(--ink); }
@keyframes barflow { to { background-position: 200% 0; } }
.race-bar-inner { height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); text-decoration: none; white-space: nowrap; overflow: hidden; font: 700 13px/1 var(--display); font-stretch: 100%; letter-spacing: .1em; text-transform: uppercase; }
.rb-tag { display: inline-flex; align-items: center; gap: 8px; }
.rb-tag .dot { background: var(--ink); animation: none; box-shadow: none; }
.race-bar.is-live .rb-tag .dot { background: #fff; animation: pulse 1.4s infinite; }
.rb-name { font-weight: 900; font-stretch: 85%; font-size: 15px; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; }
.rb-date { opacity: .8; }
.rb-count { margin-left: auto; font-variant-numeric: tabular-nums; background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 6px; }
.rb-cta { display: inline-flex; gap: 6px; }
.race-bar-inner:hover .rb-cta { text-decoration: underline; }

/* ============ Nav (always solid enough to read) ============ */
.nav {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h)); left: 0; right: 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: rgba(10, 11, 13, .93); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: var(--ink); display: grid; place-items: center; font: 900 14px/1 var(--display); font-stretch: 90%; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.08); }
.brand-name { font: 800 17px/1 var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; display: inline-block; padding: 8px 0; text-decoration: none; font: 700 13.5px/1 var(--display); font-stretch: 100%; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: .86; transition: opacity .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-social { display: flex; gap: 4px; }
.nav-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; opacity: .86; transition: background .25s, color .25s, transform .3s var(--ease); }
.nav-social a:hover { opacity: 1; color: var(--ink); background: var(--grad); transform: translateY(-2px); }
.nav-social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-social svg .fill { fill: currentColor; stroke: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--grad); }


/* nav groups (Running / Research) */
.has-sub { position: relative; }
.nav-group { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; border: 0; background: none; font: 700 13.5px/1 var(--display); font-stretch: 100%; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: .86; transition: opacity .2s; }
.nav-group:hover, .has-sub.open .nav-group, .has-sub.is-current .nav-group { opacity: 1; }
.has-sub.is-current .nav-group { color: var(--or3); }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--ease); }
.has-sub:hover .chev, .has-sub.open .chev { transform: translateY(1px) rotate(225deg); }
.sub { position: absolute; top: calc(100% + 16px); left: -14px; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: rgba(17, 19, 23, .97); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--ease), visibility .25s; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 11px 12px; border-radius: 10px; letter-spacing: .08em; opacity: .9; }
.sub a::after { display: none; }
.sub a:hover, .sub a.active { background: rgba(255, 255, 255, .07); opacity: 1; color: var(--or3); }

/* ============ Floating shoe canvas ============ */
#shoe-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .4s; }

/* ============ Glow blobs (give the glass something to refract) ============ */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.blobs i { position: absolute; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; border-radius: 50%; filter: blur(70px); opacity: .42; background: radial-gradient(circle at 40% 40%, #ff5a00 0%, rgba(255, 90, 0, 0) 66%); animation: drift 22s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { left: -10%; top: 10%; }
.blobs i:nth-child(2) { right: -12%; top: 35%; background: radial-gradient(circle at 60% 50%, #ffae3a 0%, rgba(255, 174, 58, 0) 64%); opacity: .3; animation-duration: 28s; animation-delay: -6s; }
.blobs i:nth-child(3) { left: 30%; bottom: -30%; background: radial-gradient(circle, #ff2e00 0%, rgba(255, 46, 0, 0) 62%); opacity: .28; animation-duration: 25s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, -4vh) scale(1.12); } 100% { transform: translate(-4vw, 6vh) scale(.94); } }

/* ============ Hero: kinetic type ============ */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--bar-h) + var(--nav-h) + clamp(28px, 6vh, 72px)) 0 clamp(28px, 4vh, 44px); }
.kinetic { display: flex; flex-direction: column; gap: .06em; margin: 0; font-family: var(--display); font-size: clamp(40px, 6.5vw, 112px); line-height: 1.02; font-stretch: 92%; letter-spacing: -.025em; text-transform: none; }
.kl { display: flex; flex-wrap: wrap; align-items: center; column-gap: .2em; row-gap: .04em; }
.w { display: inline-block; font-weight: 300; transition: font-weight .45s var(--ease), letter-spacing .45s var(--ease); cursor: default; }
.w.b { font-weight: 800; }
.w.l:hover { font-weight: 800; }
.w.b:hover { font-weight: 250; }
.w.grad { padding-right: .04em; }
.ic { display: inline-flex; align-items: center; justify-content: center; width: .95em; height: .95em; flex: none; }
.ic svg { width: 100%; height: 100%; overflow: visible; transition: transform .6s var(--ease); }
.ic:hover svg { transform: scale(1.18) rotate(-14deg); }
.ic-pills { width: 1.45em; height: .88em; }
.ic-dots { width: 1.15em; height: .58em; }
.ic-photo { width: 1.9em; height: .8em; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); }
.ic-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%; transform-origin: 32% 45%; animation: kb 9s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.shoe-slot { position: relative; display: inline-block; width: 3.2em; height: 1.22em; flex: none; margin: -.1em 0; }
.slot-fallback { display: none; width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.no-webgl .slot-fallback { display: block; }


/* home hero: Noah on the right, fading into black and orange on the left */
.hero-home { min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: center; }
.hero-home .kinetic { font-size: clamp(38px, 4.9vw, 66px); }
.hero-home .hero-foot { max-width: 60%; }
.hero-photo { position: absolute; top: calc(var(--bar-h) + var(--nav-h)); right: 0; bottom: 0; width: min(54%, 960px); z-index: -1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 22%, #000 44%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 22%, #000 44%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; animation: heroZoom 20s ease-in-out infinite alternate; transform-origin: 60% 30%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(255, 80, 0, .45) 0%, rgba(255, 80, 0, .16) 30%, rgba(255, 80, 0, 0) 55%),
  linear-gradient(0deg, var(--ink) 0%, rgba(10, 11, 13, 0) 28%); mix-blend-mode: normal; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }

/* loops */
.ic-star .spin { transform-box: fill-box; transform-origin: center; animation: spin 10s linear infinite; }
.ic-mill .blades { transform-box: fill-box; transform-origin: center; animation: spin 5s linear infinite; }
.ic-watch .hand { transform-box: view-box; transform-origin: 50px 57px; animation: spin 6s steps(12) infinite; }
.ic-pills rect { animation: lane 2.6s ease-in-out infinite alternate; }
.ic-pills .p2 { animation-delay: -.9s; } .ic-pills .p3 { animation-delay: -1.7s; }
.ic-dots circle { animation: hop .55s ease-in-out infinite alternate; }
.ic-dots .d2 { animation-delay: -.55s; }
.ic-nodes circle { transform-box: fill-box; transform-origin: center; animation: node 2.4s ease-in-out infinite; }
.ic-nodes .n2 { animation-delay: -.8s; } .ic-nodes .n3 { animation-delay: -1.6s; }
.ic-nodes .edge { stroke-dasharray: 14 9; animation: flow 1.6s linear infinite; }
@keyframes node { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes flow { to { stroke-dashoffset: -46; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lane { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes hop { from { transform: translateY(10px); } to { transform: translateY(-10px); } }

/* entrance */
.js .kl > * { opacity: 0; transform: translateY(45%) rotate(3deg); }
.js .kl > .ic { transform: scale(0) rotate(-90deg); }
.js .kinetic.run .kl > * { animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 65ms + 150ms); }
.js .kinetic.run .kl > .ic { animation-name: pop; animation-duration: 1.1s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0) rotate(-90deg); } 60% { opacity: 1; transform: scale(1.15) rotate(8deg); } 100% { opacity: 1; transform: none; } }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: clamp(22px, 4vh, 44px); }
.hero-sub { max-width: 460px; margin: 0; color: var(--muted); font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.js .hero-foot { opacity: 0; transform: translateY(20px); transition: opacity .9s .9s, transform 1s .9s var(--ease); }
.js .kinetic.run ~ .hero-foot { opacity: 1; transform: none; }

/* ============ Glass ============ */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(140deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 45%, rgba(255, 255, 255, .08) 100%);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 26px; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(255, 255, 255, .06), 0 30px 60px -28px rgba(0, 0, 0, .75);
  overflow: hidden;
}
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(480px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, .22), transparent 42%); opacity: 0; transition: opacity .35s; }
.glass:hover::before { opacity: 1; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 68%, rgba(var(--rim-rgb), .45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.js .fly { opacity: 0; transform: perspective(1100px) translate3d(0, 110px, -80px) rotateX(18deg) scale(.93); transition: opacity .9s ease, transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.js .fly.in { opacity: 1; transform: none; }
.js .fly.in.tilting { transition: transform .15s linear, opacity .9s ease; transition-delay: 0ms; }

/* ============ Latest videos ============ */
.latest { position: relative; isolation: isolate; padding: 0 0 clamp(56px, 7vw, 96px); }
.latest::before { content: ""; position: absolute; inset: -30% 0 0; z-index: -1; background: radial-gradient(38% 55% at 18% 45%, rgba(255, 80, 0, .32), transparent 70%), radial-gradient(34% 50% at 82% 55%, rgba(255, 170, 60, .24), transparent 70%); pointer-events: none; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.row-head .eyebrow { margin: 0; }
.more { font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: #fff; opacity: .85; }
.more:hover { opacity: 1; color: var(--or3); }
.latest-grid { display: grid; grid-template-columns: 1.15fr 1.15fr .85fr; gap: 18px; }
.vcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; margin: 8px 8px 0; border-radius: 19px; background: var(--ink-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vcard:hover .thumb img { transform: scale(1.06); }
.play { position: absolute; left: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; /* corner, so it never covers Noah's face */ display: grid; place-items: center; background: rgba(255, 255, 255, .18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .4); transition: transform .45s var(--ease), background .3s; }
.play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.vcard:hover .play, .yt:hover .play { transform: scale(1.12); background: var(--grad); }
.vcard:hover .play svg, .yt:hover .play svg { fill: var(--ink); }
.badge { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: var(--grad); color: var(--ink); font: 800 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.vmeta { display: flex; flex-direction: column; gap: 4px; padding: 14px 20px 18px; }
.vmeta b { font: 800 20px/1.15 var(--display); font-stretch: 88%; }
.vmeta small { color: var(--muted); font-size: 13.5px; }
.profile { margin: 0; display: flex; flex-direction: column; }
.profile img { margin: 8px 8px 0; border-radius: 19px; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 26%; width: calc(100% - 16px); }
.profile figcaption { padding: 14px 20px 18px; }
.profile p { margin: 0 0 6px; font-size: 15.5px; line-height: 1.45; }
.profile small { color: var(--or3); font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; }

/* ============ Ticker ============ */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: rgba(10, 11, 13, .6); }
.ticker-track { display: flex; align-items: center; gap: 30px; width: max-content; will-change: transform; }
.ticker span { font: 600 clamp(22px, 2.4vw, 32px)/1 var(--display); font-stretch: 88%; text-transform: uppercase; letter-spacing: .01em; color: var(--muted); white-space: nowrap; }
.ticker b { font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticker i { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); flex: none; }

/* ============ Rail (next race + road to 2:09, shoe on the side) ============ */
.rail { position: relative; isolation: isolate; padding: clamp(72px, 9vw, 130px) 0 clamp(40px, 6vw, 90px); scroll-margin-top: calc(var(--bar-h) + var(--nav-h)); }
.blobs-rail i:nth-child(1) { left: auto; right: -8%; top: 4%; }
.blobs-rail i:nth-child(2) { right: auto; left: -14%; top: 55%; }
.rail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); }
.rail-side { position: relative; }
.dock { position: sticky; top: calc(var(--bar-h) + var(--nav-h) + 3vh); height: calc(100vh - var(--bar-h) - var(--nav-h) - 6vh); height: calc(100svh - var(--bar-h) - var(--nav-h) - 6vh); }
.dock::before { content: ""; position: absolute; left: 10%; right: 10%; top: 18%; bottom: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--acc-rgb), .32), rgba(var(--acc-rgb), 0)); filter: blur(10px); }
.dock::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 20%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); }
.dock-hint { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.dock-hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 10px auto 0; background: linear-gradient(var(--or2), transparent); animation: scrollcue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.nr { padding: clamp(24px, 3vw, 40px); scroll-margin-top: calc(var(--bar-h) + var(--nav-h) + 20px); }
.nr-title { font-size: clamp(42px, 5.2vw, 80px); font-weight: 900; font-stretch: 70%; line-height: .88; text-transform: uppercase; max-width: 10ch; }
.nr-meta { margin: 16px 0 26px; color: var(--muted); font-size: 16.5px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.countdown div { border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px 12px; background: rgba(0, 0, 0, .28); overflow: hidden; }
.countdown b { display: block; font: 900 clamp(38px, 4.4vw, 62px)/1 var(--display); font-stretch: 72%; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown b.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(-55%); opacity: 0; } to { transform: none; opacity: 1; } }
.countdown span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nr-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0 0 26px; }
.nr-facts > div { padding: 14px 0; border-top: 1px solid var(--line); }
.nr-facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nr-facts dd { margin: 4px 0 2px; font: 800 clamp(22px, 2.2vw, 30px)/1.05 var(--display); font-stretch: 80%; }
.nr-facts small { color: var(--muted); font-size: 13.5px; }
.nr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.race-done .countdown, .race-done .add-cal { display: none; }

.road-head { margin: clamp(90px, 12vw, 160px) 0 10px; }
.steps { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 11px; top: 8vh; bottom: 8vh; width: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: var(--grad); bottom: auto; height: calc(var(--fill, 0) * (100% - 16vh)); box-shadow: 0 0 16px rgba(var(--acc-rgb), .6); }
.step { position: relative; min-height: 64vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transform: translateX(-10px); transition: opacity .6s ease, transform .8s var(--ease); }
.step.is-on { opacity: 1; transform: none; }
.step::before { content: ""; position: absolute; left: -44px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--line-strong); transition: all .5s var(--ease); z-index: 1; }
.step.is-on::before { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(var(--acc-rgb), .18), 0 0 24px rgba(var(--acc-rgb), .7); }
.step-when { margin: 0 0 8px; font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--or2); }
.step-time { display: block; font: 900 clamp(64px, 8.4vw, 132px)/.9 var(--display); font-stretch: 68%; letter-spacing: -.01em; margin-bottom: 12px; }
.step h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 17px; max-width: 460px; margin: 0 0 18px; }
.step .btn { align-self: flex-start; }


/* ============ Two tracks ============ */
.tracks { position: relative; isolation: isolate; padding: clamp(56px, 7vw, 96px) 0 0; }
.tracks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.track { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 40px); text-decoration: none; color: inherit; min-height: 300px; }
.track-ic { width: 64px; height: 64px; margin-bottom: 8px; }
.track-ic svg { width: 100%; height: 100%; overflow: visible; }
.track-num { font: 900 clamp(56px, 6vw, 92px)/.9 var(--display); font-stretch: 70%; }
.track p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 440px; }
.track-cta { margin-top: auto; padding-top: 14px; font: 700 13.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.track-cta .arr { display: inline-block; transition: transform .35s var(--ease); }
.track:hover .track-cta .arr { transform: translateX(6px); }
.track:hover .track-ic svg { transform: rotate(-10deg) scale(1.08); transition: transform .6s var(--ease); }

/* ============ Research page ============ */
.r-hero .kinetic { font-size: clamp(40px, 7vw, 120px); }
.r-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(22px, 3vh, 36px) 0 0; padding: 0; list-style: none; }
.r-meta li { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); font-size: 14px; }
.r-meta li b { color: var(--or3); font-weight: 600; }
.plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.plain .card { min-height: 0; padding: 26px; }
.plain .card b.n { font: 900 44px/1 var(--display); font-stretch: 70%; }
.plain .card h3 { margin-top: 4px; }
.r-lead { max-width: 760px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--text); margin: 0 0 36px; }
.r-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.pub-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--paper-line); background: #fff; color: var(--paper-ink); border-radius: 999px; padding: 10px 16px; min-height: 42px; font: 700 12.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; transition: background .25s, color .25s, transform .3s var(--ease); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--paper-ink); color: var(--paper); border-color: transparent; }
.pub-count { color: var(--paper-muted); font-size: 14px; }
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pub { display: grid; grid-template-columns: 110px 1fr; gap: 20px; background: #fff; border: 1px solid var(--paper-line); border-radius: 22px; padding: clamp(20px, 2.6vw, 30px); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pub:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -28px rgba(14, 15, 18, .5); }
.js .pub { opacity: 0; transform: translateY(18px); }
.js .pub.in { opacity: 1; transform: none; transition: opacity .7s ease var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms), box-shadow .5s; }
.pub-year { font: 900 44px/1 var(--display); font-stretch: 70%; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-type { display: inline-block; margin-top: 8px; font: 700 11px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); }
.pub h3 { font-size: clamp(22px, 2.2vw, 30px); font-stretch: 82%; margin-bottom: 8px; }
.pub h3 a { text-decoration: none; background: linear-gradient(var(--or2), var(--or2)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.pub h3 a:hover { background-size: 100% 2px; }
.pub .authors { margin: 0 0 4px; color: var(--paper-ink); font-size: 15px; }
.pub .authors b { font-weight: 700; }
.pub .venue { margin: 0 0 14px; color: var(--paper-muted); font-size: 14.5px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pub-links a, .pub-links summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--paper-line); font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--paper-ink); cursor: pointer; transition: background .2s, color .2s; list-style: none; }
.pub-links summary::-webkit-details-marker { display: none; }
.pub-links a:hover, .pub-links summary:hover { background: var(--paper-ink); color: var(--paper); }
.pub-links details { flex-basis: 100%; }
.pub-links details[open] summary { background: var(--paper-ink); color: var(--paper); }
.bib { position: relative; margin-top: 10px; }
.bib pre { margin: 0; padding: 16px 18px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 14px; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.bib button { position: absolute; top: 10px; right: 10px; border: 0; border-radius: 999px; padding: 7px 12px; background: var(--paper-ink); color: var(--paper); font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.people .card { min-height: 0; }
.r-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.crossover { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(24px, 3vw, 36px); }
.crossover b { font: 900 clamp(44px, 5vw, 72px)/.9 var(--display); font-stretch: 70%; }
.crossover p { margin: 6px 0 0; color: var(--muted); }


/* ============ Road to 2:09 (horizontal) ============ */
.road { padding-top: clamp(70px, 9vw, 120px); }
.road-head { margin: 0 0 clamp(28px, 4vw, 48px); }
.hsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.hstep { position: relative; padding-top: 48px; opacity: .32; transform: translateY(12px); transition: opacity .6s ease, transform .8s var(--ease); }
.hstep.is-on { opacity: 1; transform: none; }
/* each milestone has its own colour, cool to hot as the times drop: teal, violet, pink, then gold for the next race */
.hstep { --a: #19d3c5; --b: #3b82ff; --n: #8b5cf6; --t: #4fe3d6; --rgb: 25, 211, 197; }
.hstep:nth-child(2) { --a: #8b5cf6; --b: #c14dff; --n: #ff3d6e; --t: #b39bff; --rgb: 139, 92, 246; }
.hstep:nth-child(3) { --a: #ff3d6e; --b: #ff8a00; --n: #ffc53d; --t: #ff7a98; --rgb: 255, 70, 100; }
.hstep:nth-child(4) { --a: #ffc53d; --b: #fff07a; --n: #ffc53d; --t: #ffd35c; --rgb: 255, 197, 61; }
.hstep::before { content: ""; position: absolute; top: 11px; left: 0; right: -28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--a), var(--n)) 0 0 / 0% 100% no-repeat, var(--line); transition: background-size .9s var(--ease) .15s; }
.hstep.is-on::before { background-size: 100% 100%, auto; }
.hstep:last-child::before { right: 0; background: repeating-linear-gradient(90deg, rgba(var(--rgb), .55) 0 8px, transparent 8px 15px); }
.hdot { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 2px solid var(--line-strong); z-index: 1; transition: all .5s var(--ease); }
.hstep.is-on .hdot { background: linear-gradient(135deg, var(--a), var(--b)); border-color: transparent; box-shadow: 0 0 0 6px rgba(var(--rgb), .16), 0 0 24px rgba(var(--rgb), .6); }
.hstep-next .hdot { border-style: dashed; }
.hstep .step-when { margin: 0 0 10px; font: 700 12.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--t); }
.hstep .step-time.grad { background: linear-gradient(100deg, #ff3d6e 0%, #ff8a00 55%, #ffc53d 100%); -webkit-background-clip: text; background-clip: text; }
.hstep-next .btn-grad { --grad-wide: linear-gradient(115deg, #ffb52e 0%, #ffd84a 25%, #fff07a 50%, #ffd84a 75%, #ffb52e 100%); --acc-rgb: 255, 197, 61; }
.road-head .eyebrow { background: linear-gradient(90deg, #4fe3d6, #b39bff 45%, #ff7a98 80%, #ffc53d); -webkit-background-clip: text; background-clip: text; color: transparent; }
#road .blobs-rail i:nth-child(2) { background: radial-gradient(circle at 60% 50%, #7c5cff 0%, rgba(124, 92, 255, 0) 64%); opacity: .26; }
.hstep .step-time { display: block; font: 900 clamp(46px, 4.8vw, 80px)/.9 var(--display); font-stretch: 68%; margin-bottom: 10px; }
.hstep h3 { font-size: clamp(20px, 1.8vw, 26px); margin-bottom: 6px; }
.hstep p { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; max-width: 30ch; }

/* ============ Paper sections ============ */
.paper { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.stats, .media, .contact, .about { position: relative; isolation: isolate; padding: clamp(88px, 11vw, 150px) 0; scroll-margin-top: calc(var(--bar-h) + var(--nav-h) - 1px); }
.stats-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; }
.chart-card { margin: 0; background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--paper-line); }
.chart-card figcaption p { margin: 6px 0 0; color: var(--paper-muted); font-size: 14px; }
.chart { position: relative; margin-top: 18px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--paper-line); stroke-width: 1; }
.chart .axis text { fill: var(--paper-muted); font: 500 12px var(--body); }
.chart .line { fill: none; stroke: var(--paper-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { fill: url(#chart-fill); }
.chart .pt { fill: var(--paper-ink); stroke: #fff; stroke-width: 2; }
.chart .pt.pb { fill: var(--or2); stroke: var(--paper-ink); }
.chart .pt.next { fill: #fff; stroke: var(--paper-ink); stroke-dasharray: 3 3; }
.chart .lbl { font: 800 17px var(--display); font-stretch: 80%; fill: var(--paper-ink); }
.chart .sub { font: 500 12px var(--body); fill: var(--paper-muted); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .future { stroke: var(--paper-ink); stroke-dasharray: 4 5; stroke-width: 1.5; fill: none; opacity: .5; }
.chart.draw .line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.8s var(--ease) .2s forwards; }
.chart.draw .area { opacity: 0; animation: fadein 1s ease 1.2s forwards; }
.chart.draw .pt, .chart.draw .lbl, .chart.draw .sub { opacity: 0; animation: fadein .6s ease forwards; animation-delay: calc(.5s + var(--k, 0) * .45s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.tip { position: absolute; pointer-events: none; background: var(--paper-ink); color: var(--paper); padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.4; transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.tip b { font: 800 18px var(--display); font-stretch: 80%; display: block; }
.tip.on { opacity: 1; }
.tiles { display: grid; gap: 20px; }
.tile { background: rgba(255, 255, 255, .7); border: 1px solid var(--paper-line); border-radius: 24px; padding: 24px 26px; display: flex; flex-direction: column; justify-content: space-between; min-height: 120px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 20px 40px -24px rgba(14, 15, 18, .45); }
.tile-dark { background: var(--paper-ink); color: var(--paper); border-color: transparent; }
.tile b { font: 900 clamp(44px, 4.6vw, 68px)/1 var(--display); font-stretch: 72%; }
.tile span { font-size: 14px; opacity: .75; }
.pb-block, .results { background: #fff; border: 1px solid var(--paper-line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; }
.pb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs { position: relative; display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; }
.tab-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 999px; background: var(--paper-ink); transition: left .45s var(--ease), width .45s var(--ease); }
.tabs button { position: relative; z-index: 1; border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-muted); min-height: 40px; transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--paper); }
html:not(.js) .tabs button[aria-selected="true"] { background: var(--paper-ink); }
.pb-table { width: 100%; border-collapse: collapse; }
.pb-table th { text-align: left; font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-muted); padding: 12px 8px; border-bottom: 1px solid var(--paper-line); }
.pb-table td { padding: 16px 8px; border-bottom: 1px solid var(--paper-line); font-size: 15px; }
.pb-table tbody tr { transition: background .2s; }
.pb-table tbody tr:hover { background: rgba(var(--acc-rgb), .07); }
.pb-table tr:last-child td { border-bottom: 0; }
.pb-table td.t { font: 800 24px/1 var(--display); font-stretch: 80%; }
.pb-table td:nth-child(3), .pb-table td:nth-child(4) { color: var(--paper-muted); }
.source { margin: 14px 0 0; font-size: 12.5px; color: var(--paper-muted); }
.result-list { list-style: none; margin: 14px 0 0; padding: 0; }
.result-list li { display: grid; grid-template-columns: 130px 1fr auto 150px; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--paper-line); }
.result-list time { color: var(--paper-muted); font-size: 14px; }
.result-list .ev { font-weight: 600; }
.result-list .t { font: 800 22px/1 var(--display); font-stretch: 80%; }
.result-list .pl { text-align: right; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-muted); }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo { margin: 0; position: sticky; top: calc(var(--bar-h) + var(--nav-h) + 24px); border-radius: 26px; overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p { color: rgba(244, 242, 238, .84); max-width: 640px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 36px 0; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 700 19px var(--display); font-stretch: 85%; }
.facts-dark { border-top-color: var(--paper-line); }
.facts-dark div { border-bottom-color: var(--paper-line); }
.facts-dark dt { color: var(--paper-muted); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 34px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 10px 0; align-items: baseline; }
.timeline b { position: relative; font: 900 22px/1 var(--display); font-stretch: 78%; color: var(--or2); background: var(--ink); z-index: 1; padding: 4px 0; text-align: center; }
.timeline span { color: rgba(244, 242, 238, .88); }

/* ============ Gallery ============ */
.gallery { padding: 0 0 clamp(64px, 8vw, 110px); }
.gallery .row-head { margin-bottom: 24px; }
.gallery-nav { display: flex; gap: 10px; }
.gallery-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 6px; scrollbar-width: none; cursor: grab; }
.gallery-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.g-item { flex: none; height: min(70vh, 620px); padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--ink-3); scroll-snap-align: start; }
.g-item.tall { aspect-ratio: 3 / 4; }
.g-item.wide { aspect-ratio: 3 / 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); pointer-events: none; }
.g-item:hover img { transform: scale(1.05); }

/* ============ Media (glass bento) ============ */
.media { overflow: hidden; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; text-decoration: none; color: inherit; min-height: 150px; }
.card h3 { font-size: clamp(20px, 1.7vw, 24px); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.kind { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--or3); }
.kind svg { width: 18px; height: 18px; }
.go { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 15px; transition: transform .5s var(--ease), background .3s, color .3s; }
a.card:hover .go { transform: rotate(45deg); background: var(--grad); color: var(--ink); border-color: transparent; }
.card-press h3, .card-social h3 { padding-right: 40px; margin-top: auto; }
.card-press .kind, .card-social .kind { padding-right: 44px; line-height: 1.35; }
.card-pod { grid-column: span 2; grid-row: span 2; padding: clamp(24px, 3vw, 36px); justify-content: flex-end; min-height: 380px; background: linear-gradient(140deg, rgba(var(--acc-rgb), .32), rgba(255, 255, 255, .05) 55%, rgba(255, 174, 58, .16)); }
.card-pod h3 { font-size: clamp(28px, 3vw, 42px); font-stretch: 78%; text-transform: uppercase; max-width: 16ch; }
.pod-embed { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.pod-embed iframe { width: 100%; height: 152px; border: 0; border-radius: 14px; }
.card-video { grid-row: span 2; padding: 8px 8px 20px; }
.card-video .kind, .card-video h3 { padding: 0 14px; }
.card-video .kind { margin-top: 8px; }
.card-wide { grid-column: span 2; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 19px; overflow: hidden; background: #000 center / cover no-repeat; cursor: pointer; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.yt:hover .yt-thumb { transform: scale(1.05); }
.thumb .yt-thumb { position: static; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact h2 { margin-bottom: 24px; }
.contact-form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--paper-line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--paper-muted); }
.contact-form input, .contact-form select, .contact-form textarea { font: 400 16px/1.4 var(--body); color: var(--paper-ink); background: var(--paper); border: 1px solid var(--paper-line); border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--or2); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .18); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 14px; min-height: 1.4em; }

/* ============ Footer ============ */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-name { font: 900 clamp(56px, 9vw, 120px)/.84 var(--display); font-stretch: 68%; text-transform: uppercase; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols h4 { font: 700 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--or2); margin-bottom: 14px; }
.footer-cols a { display: block; text-decoration: none; color: var(--muted); padding: 4px 0; transition: color .2s, transform .3s var(--ease); }
.footer-cols a:hover { color: #fff; transform: translateX(4px); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; font-size: 13px; color: var(--muted); }
.footer-base p { margin: 0; }


/* ============ Kip ============ */
.kip-cheer { position: absolute; right: clamp(14px, 2.4vw, 32px); top: clamp(14px, 2.4vw, 30px); width: clamp(86px, 9vw, 128px); pointer-events: auto; z-index: 2; }
.kip-bird { width: 100%; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); transform-origin: 50% 100%; animation: kiphop 1.1s cubic-bezier(.3, 0, .3, 1) infinite; }
.kip-go { position: absolute; right: 78%; top: -4%; width: 150%; max-width: none; transform: rotate(-9deg); animation: kipgo 2.2s ease-in-out infinite; }
.kip-cheer:hover .kip-bird { animation-duration: .45s; }
@keyframes kiphop { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(0) scale(1.06, .92); } 60% { transform: translateY(-14px) scale(.96, 1.05); } }
@keyframes kipgo { 0%, 100% { transform: rotate(-9deg) scale(1); } 50% { transform: rotate(-5deg) scale(1.06); } }
.nr .nr-title { padding-right: clamp(80px, 11vw, 150px); }
.footer { position: relative; overflow: hidden; }
/* Easter egg: click the shoe */
html.shoe-hot, html.shoe-hot * { cursor: pointer !important; }
.egg-layer { position: fixed; inset: 0; z-index: 41; pointer-events: none; overflow: hidden; }
.egg-layer > i { position: absolute; width: 36px; height: 6px; margin: -3px 0 0 0; border-radius: 4px; transform-origin: 0 50%; box-shadow: 0 0 12px currentColor; }
.egg-tag { position: absolute; padding: 10px 16px; border-radius: 999px; white-space: nowrap; background: rgba(14, 15, 18, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .7); color: #fff; font: 800 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.egg-kip { position: absolute; left: 0; bottom: 6vh; width: 150px; }
.egg-kip-bird { display: block; width: 110px; margin-left: 20px; transform-origin: 50% 100%; animation: kipstride .3s cubic-bezier(.3, 0, .3, 1) infinite; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.egg-kip-go { display: block; width: 200px; max-width: none; margin: 0 0 4px -10px; transform: rotate(-8deg); animation: kipgo .5s ease-in-out infinite; }
.dock-hint small { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .16em; opacity: .7; }

/* Kip runs across the top of the footer, right to left (he faces left) */
.kip-run { position: absolute; top: 12px; left: 0; width: 46px; animation: runacross 14s linear infinite; pointer-events: none; }
.kip-run img { display: block; width: 100%; transform-origin: 50% 100%; animation: kipstride .36s cubic-bezier(.3, 0, .3, 1) infinite; }
.kip-run::after { content: ""; position: absolute; left: 70%; bottom: 2px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); animation: kipdust .72s ease-out infinite; }
@keyframes runacross { from { left: calc(100% + 60px); } to { left: -60px; } }
@keyframes kipstride { 0%, 100% { transform: translateY(0) rotate(-7deg) scale(1.04, .95); } 50% { transform: translateY(-9px) rotate(-3deg) scale(.97, 1.04); } }
@keyframes kipdust { 0% { transform: translate(0, 0) scale(.4); opacity: .9; } 100% { transform: translate(26px, -6px) scale(1.6); opacity: 0; } }
.footer { padding-top: 88px; }
.footer-brand { display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; }
.kip-badge { margin: 0; display: flex; align-items: flex-end; gap: 10px; }
.kip-badge img:first-child { width: 72px; transition: transform .6s var(--ease); }
.kip-badge:hover img:first-child { transform: rotate(-12deg) translateY(-6px); }
.kip-word { width: 110px; }
@media (prefers-reduced-motion: reduce) { .kip-run { display: none; } }

/* partner strip (footer) */
.partners { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; padding-bottom: 34px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.partners-label { font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.partner-logo { display: inline-flex; align-items: center; height: 26px; color: #fff; opacity: .82; text-decoration: none; transition: opacity .25s; }
.partner-logo:hover { opacity: 1; }
.partner-logo img { height: 100%; width: auto; filter: brightness(0) invert(1); }
.partner-logo img + .partner-text { display: none; }
.partner-text { font: 800 17px/1 var(--display); font-stretch: 112%; letter-spacing: .06em; }

/* HOKA in the hero: a linked mention in the intro and a small "Team HOKA" pill */
.hoka-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .28); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .3s; }
.hoka-link:hover { text-decoration-color: currentColor; }
.hero-intro { max-width: 460px; }
.hero-partner { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 9px 15px 9px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: rgba(255, 255, 255, .7); font: 700 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: border-color .3s, background .3s, color .3s; }
.hero-partner .partner-logo { height: 16px; opacity: 1; }
.hero-partner .partner-text { font-size: 14px; letter-spacing: .05em; text-transform: none; }
.hero-partner .arr { transition: transform .35s var(--ease); }
.hero-partner:hover { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); }
.hero-partner:hover .arr { transform: translate(2px, -2px); }
.partners-note { color: var(--muted); font-size: 13.5px; }
.theme-run .blobs i:nth-child(1) { background: radial-gradient(circle at 40% 40%, #ff5a00 0%, rgba(255, 90, 0, 0) 66%); }
.theme-run .blobs i:nth-child(2) { background: radial-gradient(circle at 60% 50%, #ffae3a 0%, rgba(255, 174, 58, 0) 64%); }

/* ============ Modals ============ */
.modal { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; color: var(--text); overflow: visible; }
.modal[open] { animation: modalin .5s var(--ease); }
@keyframes modalin { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal::backdrop { background: rgba(5, 6, 8, .88); backdrop-filter: blur(8px); }
.modal-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close { position: absolute; right: 0; top: -56px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); font-size: 24px; line-height: 1; transition: transform .4s var(--ease); }
.modal-close:hover { transform: rotate(90deg); }
.lightbox { max-width: min(1100px, 94vw); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 14px; }
.lightbox figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ============ Reveal ============ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-social { display: none; }
  .latest-grid { grid-template-columns: 1fr 1fr; }
  .profile { display: none; }
  .stats-grid, .contact-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-video { grid-row: auto; }
}
@media (max-width: 860px) {
  :root { --nav-h: 58px; --bar-h: 38px; }
  .has-sub { border-bottom: 1px solid var(--line); padding: 10px 0 6px; }
  .nav-group { pointer-events: none; font-size: 11.5px; color: var(--or3); opacity: 1; padding: 6px 0; }
  .chev { display: none; }
  .sub { position: static; opacity: 1; visibility: inherit; transform: none; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .sub::before { display: none; }
  .nav-links .sub a { padding: 12px 0; border-bottom: 0; font-size: 15px; }
  .tracks-grid, .plain, .people, .r-stats { grid-template-columns: 1fr; }
  .track { min-height: 0; }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .pub-year { font-size: 34px; }
  .rb-date, .rb-cta { display: none; }
  .nav-toggle { display: block; }
  .nav nav { position: fixed; inset: calc(var(--bar-h) + var(--nav-h)) 0 auto 0; background: rgba(10, 11, 13, .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
  .nav.open nav { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav-links a { display: block; padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links a::after { display: none; }

  .kinetic { font-size: clamp(34px, 10.5vw, 64px); }
  .hero-home { min-height: 0; display: block; }
  .hero-home .kinetic { font-size: clamp(30px, 8.8vw, 56px); }
  .hero-home .ic-photo, .hero-home .ic-pills { display: none; }
  .hero-home .hero-foot { max-width: none; }
  .hero-photo { position: relative; top: 0; width: 100%; height: 54vh; margin-bottom: -16vh; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
  .hero-photo img { object-position: 50% 12%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(10, 11, 13, 0) 50%, rgba(255, 80, 0, .18) 80%, rgba(255, 80, 0, 0) 100%); }
  .hero-home { padding-top: calc(var(--bar-h) + var(--nav-h)); }
  .kl-name .w { order: 1; }
  .shoe-slot { width: 100%; height: 2.1em; order: 2; margin: .05em 0 .1em; }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { flex: 1 1 auto; }

  .latest-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .latest-grid::-webkit-scrollbar { display: none; }
  .latest-grid > * { flex: 0 0 82%; scroll-snap-align: center; }
  .profile { display: flex; }

  .rail-grid { grid-template-columns: 1fr; gap: 0; }
  .rail-side { order: -1; position: relative; z-index: 2; height: 22vh; min-height: 150px; margin: 0 calc(var(--gutter) * -1); pointer-events: none; }
  .dock { position: relative; top: 0; height: 100%; }
  .dock::after { bottom: 10%; }
  .dock-hint { display: none; }
  .nr { margin-top: 12px; }
  .nr-facts { gap: 0 16px; }
  .hsteps { grid-template-columns: 1fr; gap: 0; }
  .hstep { padding: 0 0 30px 40px; transform: translateX(-8px); }
  .hstep.is-on { transform: none; }
  .hstep::before { top: 28px; left: 11px; right: auto; bottom: 2px; width: 2px; height: auto; background: linear-gradient(180deg, var(--a), var(--n)) 0 0 / 100% 0% no-repeat, var(--line); }
  .hstep.is-on::before { background-size: 100% 100%, auto; }
  .hstep:last-child { padding-bottom: 0; }
  .hstep:last-child::before { display: none; }
  .hstep .step-when { margin-bottom: 8px; }
  .hstep .step-time { font-size: 46px; margin-bottom: 8px; }
  .hstep h3 { font-size: 21px; }
  .hstep p { font-size: 15px; margin-bottom: 12px; }
  .steps { padding-left: 34px; }
  .step { min-height: 48vh; }
  .step::before { left: -34px; width: 20px; height: 20px; margin-top: -10px; }
  .steps::before, .steps::after { left: 9px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: relative; top: 0; max-width: 520px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .result-list li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .result-list time { grid-column: 1 / -1; font-size: 13px; }
  .result-list .pl { grid-column: 1 / -1; text-align: left; }
  .result-list .t { grid-row: 2; grid-column: 2; }
  .pb-table th:nth-child(4), .pb-table td:nth-child(4) { display: none; }
  .g-item { height: 60vh; }
  .bento { grid-template-columns: 1fr; }
  .card-pod, .card-wide { grid-column: auto; grid-row: auto; min-height: 320px; }
  .card-wide { min-height: 150px; }
}
@media (max-width: 520px) {
  .rb-tag > span { display: none; }
  .rb-name { font-size: 13px; }
  .brand-name { display: none; }
  .countdown { gap: 6px; }
  .countdown div { padding: 12px 8px 8px; border-radius: 12px; }
  .countdown span { font-size: 10px; letter-spacing: .06em; }
  .footer-cols { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .kl > *, .js .fly, .js .reveal, .js .hero-foot { opacity: 1 !important; transform: none !important; }
}

/* ============ Research: arc timeline + richer paper cards ============ */
.arc { padding-top: 0; }
.arc .road-head { margin-bottom: 18px; }
.arc-steps { margin-top: clamp(20px, 3vw, 36px); }
.arc-steps .hstep { --a: #2b4dff; --b: #3b82ff; --n: #4fd1ff; --t: #8fb0ff; --rgb: 59, 130, 255; }
.arc-steps .hstep:nth-child(2) { --a: #4fd1ff; --b: #19d3c5; --n: #7c5cff; --t: #7fe0ff; --rgb: 79, 209, 255; }
.arc-steps .hstep:nth-child(3) { --a: #7c5cff; --b: #a86bff; --n: #b14dff; --t: #b39bff; --rgb: 124, 92, 255; }
.arc-steps .hstep:nth-child(4) { --a: #b14dff; --b: #4fd1ff; --n: #b14dff; --t: #d19bff; --rgb: 177, 77, 255; }
.arc-steps .step-time { font-size: clamp(40px, 4vw, 64px); background: linear-gradient(100deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-plain { margin: 0 0 12px; max-width: 72ch; color: var(--paper-ink); font-size: 16.5px; line-height: 1.6; }
.pub-run { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 12px; color: var(--paper-muted); font-size: 15px; font-style: italic; }
.pub-run span { font: 800 11px/1 var(--display); font-style: normal; letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: linear-gradient(115deg, #ff3d00, #ffae3a); color: #111; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; }
.pub-tags li { padding: 6px 10px; border-radius: 999px; background: rgba(36, 99, 255, .08); color: #1d3fd6; font: 700 11.5px/1 var(--display); letter-spacing: .06em; }

/* ============ Home: latest papers under "Two tracks" ============ */
.papers-row { margin-top: clamp(28px, 3.5vw, 44px); }
.papers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.paper-card { position: relative; min-height: 220px; }
.paper-card .kind { color: #7fb4ff; padding-right: 44px; }
.paper-card h3 { padding-right: 8px; line-height: 1.15; }
.paper-card p { margin-top: auto; }
.papers-row .more:hover { color: #7fb4ff; }
@media (max-width: 860px) {
  .papers-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .papers-grid::-webkit-scrollbar { display: none; }
  .paper-card { scroll-snap-align: start; }
  .arc-steps .hstep { scroll-snap-align: start; }
}
.arc .road-head .eyebrow { background: linear-gradient(90deg, #8fb0ff, #7fe0ff 50%, #b39bff); -webkit-background-clip: text; background-clip: text; }

/* ============ Full-screen photo divider (before the stats) ============ */
.divider { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #050506; isolation: isolate; display: flex; align-items: flex-end; }
.divider-media { position: absolute; inset: 0; z-index: -2; }
.divider-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% calc(30% + var(--dp, .5) * 55%); transform: scale(calc(1.16 - var(--dp, .5) * .14)); transform-origin: 50% 40%; will-change: transform; }
.divider::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 11, 13, 0) 16%, rgba(10, 11, 13, 0) 52%, rgba(10, 11, 13, .82) 100%); }
.divider-copy { width: 100%; padding-bottom: clamp(40px, 8vh, 90px); text-align: right; }
.divider-copy .eyebrow { display: flex; justify-content: flex-end; color: rgba(255, 255, 255, .82); }
.divider-times { margin: 0; display: inline-flex; align-items: baseline; gap: clamp(10px, 1.6vw, 26px); font: 900 clamp(48px, 8.4vw, 150px)/.9 var(--display); font-stretch: 68%; color: #fff; }
.divider-times s { position: relative; text-decoration: none; color: rgba(255, 255, 255, .6); transition: color .8s ease .5s; }
.divider-times s::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .07em; border-radius: 99px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .4s; }
.divider-times i { font-style: normal; font-size: .5em; opacity: 0; transform: translateX(-20px); transition: opacity .6s ease .9s, transform .8s var(--ease) .9s; }
.divider-times b { opacity: 0; transform: translateY(20px); transition: opacity .7s ease 1.1s, transform .9s var(--ease) 1.1s; }
.divider-copy.in .divider-times s::after { transform: scaleX(1); }
.divider-copy.in .divider-times s { color: rgba(255, 255, 255, .36); }
.divider-copy.in .divider-times i, .divider-copy.in .divider-times b { opacity: 1; transform: none; }
.card-video-wide { grid-column: span 2; }
@media (max-width: 860px) {
  .divider { min-height: 520px; height: 88svh; }
  .divider-media img { object-position: 38% calc(30% + var(--dp, .5) * 55%); }
  .divider::before { background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 11, 13, 0) 14%, rgba(10, 11, 13, 0) 40%, rgba(10, 11, 13, .9) 100%); }
  .card-video-wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .divider-media img { transform: none; object-position: 45% 58%; }
  .divider-times s::after { transform: scaleX(1); transition: none; }
  .divider-times i, .divider-times b { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   2026-10 restructure: Running / Research switch, live feeds,
   research news, partner strip. Same tokens, glass and motion.
   ========================================================== */
:root.no-bar { --bar-h: 0px; }

/* ---- Running / Research switch ---- */
.nav .brand { margin-right: 0; }
.track-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-right: auto; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); isolation: isolate; }
.track-switch a { position: relative; z-index: 1; display: grid; place-items: center; min-height: 36px; padding: 0 18px; border-radius: 999px; text-decoration: none; font: 800 13px/1 var(--display); font-stretch: 100%; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); transition: color .35s var(--ease); }
.track-switch a:hover { color: #fff; }
.track-switch a[aria-current="page"] { color: var(--ink); }
.ts-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; transition: transform .45s var(--ease), background .45s ease, box-shadow .45s ease; }
.track-switch.is-run .ts-pill { background: linear-gradient(115deg, #ff3d00, #ff6b00 45%, #ffae3a); box-shadow: 0 6px 20px -6px rgba(255, 107, 0, .8); }
.track-switch.is-research .ts-pill { transform: translateX(100%); background: linear-gradient(115deg, #2b4dff, #3b82ff 45%, #4fd1ff); box-shadow: 0 6px 20px -6px rgba(59, 130, 255, .8); }
.track-switch.is-run .ts-research:hover { color: #8fc0ff; }
.track-switch.is-research .ts-run:hover { color: #ffae3a; }
/* clicking the other side: the pill slides over, then the page fades and changes */
.track-switch.is-run.switching .ts-pill { transform: translateX(100%); background: linear-gradient(115deg, #2b4dff, #3b82ff 45%, #4fd1ff); box-shadow: 0 6px 20px -6px rgba(59, 130, 255, .8); }
.track-switch.is-research.switching .ts-pill { transform: none; background: linear-gradient(115deg, #ff3d00, #ff6b00 45%, #ffae3a); box-shadow: 0 6px 20px -6px rgba(255, 107, 0, .8); }
.track-switch.switching a[aria-current="page"] { color: rgba(255, 255, 255, .72); }
.track-switch.is-run.switching .ts-research, .track-switch.is-research.switching .ts-run { color: var(--ink); }
main, .footer, .race-bar { transition: opacity .35s ease .08s, transform .45s var(--ease) .08s; }
html.leaving main, html.leaving .footer, html.leaving .race-bar { opacity: 0; transform: translateY(14px); }
.menu-only { display: none !important; }

/* ---- social icon buttons in the hero ---- */
.social-row { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; margin-bottom: 4px; }
.social-row a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-decoration: none; font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #fff; transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease); }
.social-row a:hover { background: var(--grad); color: var(--ink); border-color: transparent; transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-row svg .fill { fill: currentColor; stroke: none; }

/* ---- videos: three equal cards ---- */
.latest-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.latest { padding-top: clamp(56px, 7vw, 96px); }

/* ---- feed sections (Strava, Instagram) ---- */
.feed { position: relative; isolation: isolate; padding: clamp(64px, 8vw, 110px) 0 0; scroll-margin-top: calc(var(--bar-h) + var(--nav-h) - 1px); }
.feed.insta { padding-bottom: clamp(80px, 10vw, 140px); }
.training::before { content: ""; position: absolute; inset: 10% 0 -20%; z-index: -1; pointer-events: none; background: radial-gradient(34% 50% at 12% 40%, rgba(255, 80, 0, .26), transparent 70%), radial-gradient(30% 45% at 88% 70%, rgba(255, 170, 60, .18), transparent 70%); }
.feed-source { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.feed-source a { color: var(--muted); }
.training-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.training.has-data .training-grid { grid-template-columns: minmax(280px, .9fr) minmax(0, 2.1fr); }
.wk { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 32px); }
.wk .eyebrow { margin: 0; }
.wk p { margin: 0; color: var(--muted); max-width: 46ch; }
.wk .btn { align-self: flex-start; }
.wk .btn svg { fill: currentColor; }
.wk-km { display: flex; align-items: baseline; gap: 10px; font: 900 clamp(64px, 7vw, 108px)/.9 var(--display); font-stretch: 68%; }
.wk-km small { font: 800 22px/1 var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wk-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.wk-facts div { padding: 12px 0 0; }
.wk-facts dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wk-facts dd { margin: 4px 0 0; font: 800 22px/1 var(--display); font-stretch: 82%; }
.wk-bars { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 150px; }
.wk-bars li { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 4px; height: 100%; }
.wk-bars .bar { position: relative; width: 100%; height: 100%; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.wk-bars .bar i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--h) * 100%); border-radius: 8px; background: linear-gradient(0deg, #ff3d00, #ff6b00 45%, #ffae3a); transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease); transition-delay: calc(var(--k) * 70ms); }
.wk.grow .bar i { transform: none; }
.wk-bars b { font: 800 13px/1 var(--display); min-height: 13px; }
.wk-bars small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.act-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.act-grid:empty { display: none; }
.act { position: relative; min-height: 0; gap: 8px; }
.act .kind { padding-right: 44px; line-height: 1.3; }
.act .kind svg { width: 15px; height: 15px; flex: none; }
.act time { font-size: 13px; color: var(--muted); }
.act h3 { font-size: clamp(18px, 1.5vw, 22px); padding-right: 6px; overflow-wrap: anywhere; }
.act-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.act-stats dt { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.act-stats dd { margin: 3px 0 0; font: 800 21px/1 var(--display); font-stretch: 80%; white-space: nowrap; }
.act-stats small { margin-left: 3px; font: 600 12px var(--body); color: var(--muted); }

.insta-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ig-cta { grid-column: 1 / -1; min-height: 190px; background: linear-gradient(130deg, rgba(var(--acc-rgb), .3), rgba(255, 255, 255, .05) 55%, rgba(255, 174, 58, .16)); }
.ig-cta h3 { font-size: clamp(30px, 3.4vw, 48px); font-stretch: 78%; text-transform: uppercase; margin-top: auto; }
.ig-cta .kind svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.ig-cta .kind svg .fill { fill: currentColor; stroke: none; }
.ig { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; text-decoration: none; color: #fff; }
.ig img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; border-radius: 17px; transition: transform .8s var(--ease); }
.ig:hover img { transform: scale(1.05); }
.ig-cap { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; flex-direction: column; gap: 4px; padding: 40px 12px 12px; border-radius: 0 0 17px 17px; background: linear-gradient(180deg, transparent, rgba(10, 11, 13, .85)); font-size: 13px; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease); }
.ig-cap span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ig-cap small { color: var(--or3); font: 700 11px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.ig:hover .ig-cap, .ig:focus-visible .ig-cap { opacity: 1; transform: none; }
.ig-video { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); }
.ig-video svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }

/* ---- results from World Athletics ---- */
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.results-wa { font: 700 12.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--paper-muted); }
.results-wa:hover { color: var(--paper-ink); }
.result-list .ev small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--paper-muted); }
.results-more { margin-top: 16px; }

/* ---- small about on the running page ---- */
.about-small { padding: clamp(72px, 9vw, 120px) 0; }
.about-small .about-photo img { aspect-ratio: 4 / 5; }

/* ---- partners strip ---- */
.partner-list { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; list-style: none; margin: 0; padding: 0; }
.partner-list li { display: flex; flex-direction: column; gap: 8px; }
.partner-list small { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.partner-list .partner-logo { height: 30px; }

/* ---- research: news ---- */
.news { position: relative; isolation: isolate; padding: clamp(64px, 8vw, 110px) 0 clamp(88px, 11vw, 150px); scroll-margin-top: calc(var(--bar-h) + var(--nav-h) - 1px); }
.news .road-head .eyebrow { background: linear-gradient(90deg, #8fb0ff, #7fe0ff 50%, #b39bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 980px; }
.news-item { display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: start; padding: 20px 24px; }
.news-item time { display: flex; flex-direction: column; gap: 4px; font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.news-item time b { font: 900 46px/.9 var(--display); font-stretch: 70%; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.news-item .kind { margin-bottom: 8px; color: #8fc0ff; }
.news-item h3 { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; }
.news-item h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease); }
.news-item h3 a:hover { background-size: 100% 1.5px; }
.news-item p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.news-item > div:only-child { grid-column: 1 / -1; }
.footer-research { padding-top: 72px; }

/* ---- responsive ---- */
@media (max-width: 1280px) {
  .nav .brand-name { display: none; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav nav { position: fixed; inset: calc(env(safe-area-inset-top, 0px) + var(--bar-h) + var(--nav-h)) 0 auto 0; background: rgba(10, 11, 13, .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
  .nav.open nav { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav-links a { display: block; padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links a::after { display: none; }
  .menu-only { display: block !important; }
  .training.has-data .training-grid { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .track-switch a { padding: 0 13px; font-size: 12px; min-height: 34px; }
  .social-row { justify-content: flex-start; flex-wrap: wrap; }
  .social-row a { flex: 1 1 auto; justify-content: center; }
  .act-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .act-grid::-webkit-scrollbar { display: none; }
  .act-grid > * { flex: 0 0 78%; scroll-snap-align: center; }
  .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ig-cap { opacity: 1; transform: none; }
  .news-item { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .news-item time { flex-direction: row; align-items: baseline; gap: 8px; }
  .news-item time b { font-size: 30px; }
  .partner-list { gap: 18px 28px; }
}
@media (max-width: 380px) {
  .track-switch a { padding: 0 10px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  html.leaving main, html.leaving .footer { opacity: 1; transform: none; }
  .wk-bars .bar i { transform: none; }
}

/* ---- results tabs, medals, distance chips (2026-10, round 2) ---- */
.results-head { align-items: center; margin-bottom: 4px; }
.rtabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.rtabs::-webkit-scrollbar { display: none; }
.rtabs button { white-space: nowrap; padding: 10px 16px; }
.result-list .pl { display: inline-flex; justify-content: flex-end; align-items: center; gap: 6px; }
.result-list .flag, .result-list .medal { font-size: 20px; line-height: 1; letter-spacing: 0; }
.result-list .empty { display: block; color: var(--paper-muted); padding: 22px 0; }
.result-list.swap li { animation: rowin .5s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rowin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chart-distances { margin-top: 16px; gap: 6px; }
.chart-distances .chip { min-height: 36px; padding: 8px 13px; font-size: 11.5px; }
.chart-distances:empty { display: none; }
.partner-logo.with-text { gap: 10px; }
.partner-logo.with-text img + .partner-text { display: inline; }
.act-gear { font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) {
  .result-list .pl { justify-content: flex-start; }
  .results-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .result-list.swap li { animation: none; } }
.result-list .pl { text-transform: none; font-size: 14px; letter-spacing: .02em; }
#results .sec-head { margin-bottom: 24px; }

/* ---- research hero photo (portrait, blue grade) ---- */
.r-hero.hero-home .kinetic { font-size: clamp(38px, 4.9vw, 70px); }
.r-hero .hero-photo img { object-position: 50% 22%; filter: brightness(.78) contrast(1.05) saturate(.85); }
.r-hero .hero-photo::after { background:
  linear-gradient(90deg, rgba(43, 77, 255, .5) 0%, rgba(59, 130, 255, .2) 30%, rgba(59, 130, 255, 0) 55%),
  linear-gradient(0deg, var(--ink) 0%, rgba(10, 11, 13, 0) 30%); }
@media (max-width: 860px) {
  .r-hero.hero-home { padding-top: calc(var(--bar-h) + var(--nav-h)); }
  .r-hero .hero-photo img { object-position: 50% 30%; }
  .r-hero .hero-photo::after { background: linear-gradient(180deg, rgba(10, 11, 13, 0) 50%, rgba(43, 77, 255, .2) 80%, rgba(43, 77, 255, 0) 100%); }
  .r-hero .ic-pills { display: none; }
}

/* ---- partner logos: same height, PF&H in its own colours ---- */
.partner-list { gap: 18px 48px; }
.partner-list .partner-logo { height: 46px; }
.partner-list .partner-logo img.color { filter: none; border-radius: 6px; }
.partner-list .partner-logo:has(img.color) { height: 60px; opacity: 1; }

@media (max-width: 860px) {
  .r-hero.hero-home .kinetic { font-size: clamp(26px, 7.6vw, 48px); }
}

.tiles-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
@media (max-width: 520px) { .tiles-row { grid-template-columns: 1fr; } }

/* ---- results: separate Finish and NK columns ---- */
.result-list li { grid-template-columns: 112px minmax(0, 1fr) 96px 104px 76px; gap: 14px; }
.result-list .t { text-align: right; }
.result-list .fin { font-size: 14px; color: var(--paper-ink); }
.result-list .fin small { display: block; font-size: 12px; color: var(--paper-muted); }
.result-list .pl { justify-content: flex-start; }
.result-list li.head { padding: 10px 0 8px; border-top: 0; font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); }
.result-list li.head span:nth-child(3) { text-align: right; }
.result-list.swap li.head { animation: none; }
@media (max-width: 860px) {
  .result-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .result-list li.head { display: none; }
  .result-list time { grid-column: 1 / -1; }
  .result-list .ev { grid-column: 1; grid-row: 2; }
  .result-list .t { grid-column: 2; grid-row: 2; }
  .result-list .fin { grid-column: 1; grid-row: 3; text-align: left; }
  .result-list .fin small { display: inline; margin-left: 6px; }
  .result-list .pl { grid-column: 2; grid-row: 3; justify-content: flex-end; }
}
.tiles-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .tiles-row { grid-template-columns: 1fr 1fr; } .tiles-row .tile:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .tiles-row { grid-template-columns: 1fr; } .tiles-row .tile:last-child { grid-column: auto; } }

/* ---- results: year slider + race-type slider ---- */
.results-filters { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 14px 0 6px; }
.results-filters .rtabs { max-width: 100%; overflow-x: auto; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.rtabs-years { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 28px; }
.rtabs-years button { padding: 10px 14px; font-variant-numeric: tabular-nums; }
/* results: no header row; time, finish and NK grouped tightly on the right */
@media (min-width: 861px) {
  .result-list li { grid-template-columns: 112px minmax(0, 1fr) auto 58px 58px; column-gap: 0; }
  .result-list time { padding-right: 14px; }
  .result-list .ev { padding-right: 18px; }
  .result-list .fin { padding-left: 14px; }
}

/* ---- research: "latest work" bar (blue version of the race bar) ---- */
.race-bar.work-bar { --grad-wide: linear-gradient(115deg, #2b4dff 0%, #3b82ff 25%, #4fd1ff 50%, #3b82ff 75%, #2b4dff 100%); }
.work-bar .rb-cta { margin-left: auto; }
.work-bar .rb-name { min-width: 0; }

/* ---- NL | EN language switch, next to the Running | Research switch ---- */
.nav .track-switch { margin-right: 0; }
.lang-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin: 0 auto 0 8px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); isolation: isolate; }
.lang-switch a { position: relative; z-index: 1; display: grid; place-items: center; min-height: 36px; min-width: 38px; padding: 0 10px; border-radius: 999px; text-decoration: none; font: 800 12px/1 var(--display); letter-spacing: .12em; color: rgba(255, 255, 255, .72); transition: color .35s var(--ease); }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="page"] { color: var(--ink); }
.lang-switch .ts-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #f4f2ee; transition: transform .45s var(--ease); }
.lang-switch.is-en .ts-pill { transform: translateX(100%); }
.lang-switch.is-en.switching .ts-pill { transform: none; }
.lang-switch.is-nl.switching .ts-pill { transform: translateX(100%); }
.lang-switch.switching a[aria-current="page"] { color: rgba(255, 255, 255, .72); }
.lang-switch.is-en.switching a:first-of-type, .lang-switch.is-nl.switching a:last-of-type { color: var(--ink); }
@media (max-width: 860px) {
  .lang-switch { margin-left: 6px; }
  .lang-switch a { min-height: 34px; min-width: 30px; padding: 0 7px; font-size: 11px; }
}
@media (max-width: 420px) {
  .nav .brand { display: none; }
}
/* room for the language switch in the menu bar */
.nav-links a, .brand-name { white-space: nowrap; }
@media (max-width: 1560px) { .nav .brand-name { display: none; } }
@media (max-width: 1240px) and (min-width: 1101px) { .nav-links { gap: 18px; } .nav-social a { width: 34px; } }
@media (max-width: 440px) {
  .nav { gap: 10px; }
  .track-switch a { padding: 0 9px; font-size: 11px; letter-spacing: .06em; }
  .lang-switch { margin-left: 2px; }
  .lang-switch a { min-width: 26px; padding: 0 5px; }
}
@media (max-width: 1400px) and (min-width: 1101px) { .nav { gap: 16px; } .nav-links { gap: 20px; } .nav-links a { letter-spacing: .1em; } }
@media (max-width: 1240px) { .nav-social { display: none; } }
/* publication buttons: "Cite (BibTeX)" on the same line as PDF / arXiv / DOI; the BibTeX opens below */
.pub-links details { flex-basis: auto; }
.pub-links details[open] { flex-basis: 100%; }

/* ---- Strava: the run's outline, just the orange line (no map, no coordinates) ---- */
.act-route { position: absolute; right: 16px; top: 64px; width: 84px; height: 84px; overflow: visible; pointer-events: none; }
.act-route path { fill: none; stroke: var(--or2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(var(--acc-rgb), .55)); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .35s; }
.act.in .act-route path, html:not(.js) .act-route path { stroke-dashoffset: 0; }
.act.has-route h3, .act.has-route time { padding-right: 96px; }
.act.has-route { min-height: 196px; }
@media (prefers-reduced-motion: reduce) { .act-route path { stroke-dashoffset: 0; transition: none; } }

/* ============ v3 (Isaac, Oct 2026): research portrait, results filters ============ */
/* Results: year dropdown in the header (replaces the 16-stop year slider) */
.results-head { align-items: center; gap: 12px; }
.select-pill { position: relative; display: inline-flex; align-items: center; height: 40px; border-radius: 999px; background: var(--paper-2); color: var(--paper-ink); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.select-pill select { appearance: none; -webkit-appearance: none; height: 100%; margin: 0; padding: 0 40px 0 18px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; font-variant-numeric: tabular-nums; }
.select-pill select:focus-visible { outline: none; }
.select-pill:focus-within { box-shadow: 0 0 0 3px rgba(255, 107, 0, .35); }
.select-pill svg { position: absolute; right: 14px; width: 16px; height: 16px; pointer-events: none; transition: transform .3s var(--ease); }
.select-pill:hover { background: #e4e2db; }
.select-pill.is-set { background: var(--paper-ink); color: var(--paper); }
.select-pill select option { font: 500 15px var(--body); letter-spacing: 0; text-transform: none; color: #111; background: #fff; }
/* race-type tabs: full labels on wide screens, short ones in a wrapping row on phones */
.rtabs button .s { display: none; }
@media (max-width: 640px) {
  .results-filters .rtabs { display: flex; flex-wrap: wrap; gap: 8px; background: none; padding: 0; overflow: visible; }
  .results-filters .rtabs .tab-pill { display: none; }
  .results-filters .rtabs button { padding: 10px 14px; border: 1px solid var(--paper-line); background: #fff; min-height: 38px; }
  .results-filters .rtabs button[aria-selected="true"] { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
  .rtabs button .l { display: none; }
  .rtabs button .s { display: inline; }
}
@media (max-width: 860px) {
  .results-head { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Running -> Research: the shoe becomes the research icon */
html.morphing #shoe-canvas { opacity: 1 !important; z-index: 70; transition: none; }
html.morphing main, html.morphing .footer, html.morphing .race-bar { transition-duration: .6s; }
.morph-icon { position: fixed; left: 50%; top: 46vh; width: min(220px, 30vw); aspect-ratio: 1; z-index: 71; pointer-events: none; transform: translate(-50%, -50%) scale(.15) rotate(-60deg); opacity: 0; filter: drop-shadow(0 0 40px rgba(59, 130, 255, .55)); transition: transform .5s cubic-bezier(.2, .9, .3, 1.25) .62s, opacity .3s ease .62s; }
.morph-icon.in { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
.morph-icon svg { width: 100%; height: 100%; display: block; }
/* research page: the icon lands in the headline */
html.morph-land .r-hero .ic-nodes { animation: morphLand 1.1s cubic-bezier(.2, .9, .3, 1.1) both; }
html.morph-land .r-hero .kinetic { animation: none; }
@keyframes morphLand { 0% { transform: translate(calc(50vw - 100% - 48vw), 28vh) scale(2.6); opacity: 0; } 25% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .morph-icon { display: none; } html.morph-land .r-hero .ic-nodes { animation: none; } }

/* ---- research hero: same behaviour as the running hero (photo column on the right, black + blue fade on the left) ---- */
.r-hero .hero-photo img { object-position: 66% 20%; transform-origin: 50% 30%; filter: brightness(.86) contrast(1.05) saturate(.9); }
.r-hero .hero-photo::after { background:
  linear-gradient(90deg, rgba(43, 77, 255, .45) 0%, rgba(59, 130, 255, .16) 30%, rgba(59, 130, 255, 0) 55%),
  linear-gradient(0deg, var(--ink) 0%, rgba(10, 11, 13, 0) 28%); }
@media (max-width: 860px) {
  .r-hero .hero-photo img { object-position: 66% 16%; }
  .r-hero .hero-photo::after { background: linear-gradient(180deg, rgba(10, 11, 13, 0) 50%, rgba(43, 77, 255, .18) 80%, rgba(43, 77, 255, 0) 100%); }
}
.footer-base a { text-underline-offset: 3px; transition: color .2s; }
.footer-base a:hover { color: #fff; }
