/* ==========================================================================
   CLEARFORM — site styles
   Colourway (mk1): black, white, warm greys + Clearform purple.
   Change colours here only; every page uses these variables.
   ========================================================================== */

:root {
    --galaxy: #0A0A0A;        /* ink: type, dark bands */
    --galaxy-2: #161616;      /* raised surface on dark */
    --seal: #5C5C5C;          /* secondary text (6.7:1 on white) */
    --silver: #D9D9D9;        /* hairlines, borders */
    --silver-2: #E4E4E4;      /* placeholder and panel fill */
    --surface: #F2F2F2;       /* page background (light grey) */
    --white: #FFFFFF;
    --purple: #613394;        /* the Clearform full stop */
    --purple-light: #B08BE0;  /* purple text on dark */
    --purple-tint: #DCCBEF;   /* light purple highlight */
    --purple-deep: #4A2673;   /* hover state for purple buttons */
    --error: #B42318;

    --ink: var(--galaxy);
    --ink-muted: var(--seal);
    --line: var(--silver);

    --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

    --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
    --space-5: 40px; --space-6: 64px; --space-7: 104px;

    --page-x: clamp(20px, 4vw, 40px);
    --max: 1440px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans); font-size: 15px; line-height: 24px;
    color: var(--ink); background: var(--surface);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--page-x); padding-right: var(--page-x); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display-xl, .display-l, .heading, .label, .model-name { font-family: var(--font-display); text-transform: uppercase; }
.display-xl { font-weight: 800; font-size: clamp(40px, 6.4vw, 96px); line-height: .9; letter-spacing: -0.02em; }
.display-m  { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; font-size: clamp(40px, 5.6vw, 84px); line-height: .92; letter-spacing: -0.02em; }
.display-l  { font-weight: 800; font-size: clamp(34px, 5vw, 64px); line-height: .95; letter-spacing: -0.015em; }
.heading    { font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.05; letter-spacing: -0.01em; }
.model-name { font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: 0.02em; }
.label      { font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: 0.14em; }
.muted      { color: var(--ink-muted); }
.body-l     { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; }
.nowrap     { white-space: nowrap; }

/* Square purple full stop, like the logo. The "." stays for copy/paste and screen readers. */
.stop {
    display: inline-block; width: .19em; height: .19em; margin-left: .06em;
    background: var(--purple); color: transparent; overflow: hidden;
    vertical-align: baseline; line-height: 0;
}

/* ---------- Links & buttons ---------- */
.text-link {
    font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-2);
    padding-bottom: 4px; border-bottom: 1px solid currentColor; transition: color .2s ease;
}
.text-link:hover { color: var(--purple); }
.text-link { text-decoration-color: var(--purple); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
    text-decoration: none; padding: 18px 32px;
    background: var(--galaxy); color: var(--white); border: 1px solid var(--galaxy);
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--purple); border-color: var(--purple); }
.btn-purple { background: var(--purple); border-color: var(--purple); }
.btn-purple:hover { background: var(--purple-deep); border-color: var(--purple-deep); color: var(--white); }
.band .btn-purple:hover { background: var(--white); border-color: var(--white); color: var(--galaxy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--silver); }
.btn-ghost:hover { background: var(--galaxy); border-color: var(--galaxy); color: var(--white); }
.btn:disabled { opacity: .5; cursor: wait; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(242,242,242,.95); backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 20px; width: auto; }
.nav ul { list-style: none; display: flex; gap: clamp(20px, 3vw, 44px); align-items: center; }
.nav a {
    font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s ease;
}
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--purple); }

.menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: flex-end; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .25s ease, background .25s ease; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 820px) {
    .menu-toggle { display: inline-flex; }
    .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface); padding: var(--space-5) var(--page-x); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
    .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
    .nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
    .nav a { font-weight: 800; font-size: 36px; letter-spacing: -0.01em; line-height: 1; }
    .menu-open { overflow: hidden; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--galaxy); color: #A3A3A3; margin-top: var(--space-7); }
.site-footer .wrap { padding-top: var(--space-5); padding-bottom: var(--space-4); }
.footer-top { display: grid; grid-template-columns: 1fr auto auto auto; gap: var(--space-5); align-items: end; padding-bottom: var(--space-5); }
.footer-top .label { color: #8A8A8A; display: block; margin-bottom: 6px; }
.footer-top a, .footer-top span.v { color: var(--white); text-decoration: none; }
.footer-top a:hover { color: var(--purple-light); }
.site-footer img { height: 28px; width: auto; }
.footer-legal { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding-top: var(--space-4); border-top: 1px solid #2A2A2A; font-size: 13px; color: #A3A3A3; }
.footer-legal nav { display: flex; gap: var(--space-4); }
.footer-legal a { color: #A3A3A3; text-decoration: none; }
.footer-legal a:hover { color: var(--white); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; align-items: start; } .footer-top .footer-mark { grid-column: 1 / -1; } }
main:has(> .band:last-child) + .site-footer { margin-top: 0; border-top: 1px solid #2A2A2A; }

/* ---------- Home ---------- */
.hero { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.hero-home p.body-l { font-size: clamp(17px, 1.55vw, 21px); max-width: 520px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-5); align-items: end; }
.hero p.body-l { max-width: 460px; color: var(--ink-muted); margin-bottom: var(--space-4); }
.hero-links { display: flex; gap: var(--space-4); flex-wrap: wrap; }
@media (max-width: 900px) { .hero { padding-top: var(--space-5); padding-bottom: var(--space-4); } .hero-grid { grid-template-columns: 1fr; gap: var(--space-3); } }

/* Auto-scrolling roster carousel */
.marquee { position: relative; overflow: hidden; padding: var(--space-2) 0 var(--space-3); }
.marquee-track { display: flex; gap: var(--space-3); width: max-content; animation: marquee var(--marquee-duration, 60s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee .card { width: clamp(200px, 19vw, 290px); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee { overflow-x: auto; }
    .marquee-track { animation: none; }
}
.marquee-foot { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-3); }

.boards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-6); }
.board {
    display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3);
    min-height: 200px; padding: var(--space-4); text-decoration: none;
    background: var(--white); border: 1px solid var(--line); transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.board:hover { background: var(--galaxy); color: var(--white); border-color: var(--galaxy); }
.board:hover .muted { color: #A3A3A3; }
.board .arrow { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; }
@media (max-width: 700px) { .boards { grid-template-columns: 1fr; } .board { min-height: 140px; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); padding: var(--space-6) 0 0; }
.pillar { border-top: 2px solid var(--ink); padding-top: var(--space-4); }
.pillar .label { display: block; margin-bottom: var(--space-3); }
.pillar p { color: var(--ink-muted); max-width: 380px; font-size: 16px; line-height: 1.6; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.band { background: var(--galaxy); color: var(--white); margin-top: var(--space-7); }
.band .wrap { padding-top: var(--space-7); padding-bottom: var(--space-7); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-5); align-items: end; }
.band p { color: #A7A9AD; max-width: 420px; margin-bottom: var(--space-4); }
@media (max-width: 900px) { .band .wrap { grid-template-columns: 1fr; padding-top: var(--space-6); padding-bottom: var(--space-6); } }

/* ---------- Cards ---------- */
.card { position: relative; }
.card-link { text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--silver-2); margin-bottom: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card-img img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.card:hover .card-img img { transform: scale(1.025); }
.card:hover .card-img img.alt { opacity: 1; }
.card-meta { display: flex; justify-content: space-between; gap: var(--space-2); align-items: baseline; }
.card .label { display: block; margin-top: 2px; }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-3); color: var(--seal); }
.placeholder .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4.5vw, 64px); line-height: .9; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Roster ---------- */
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5) var(--space-4); }
@media (max-width: 1100px) { .roster { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .roster { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-3); } }
.page-head { padding: var(--space-6) 0 var(--space-4); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.filterbar { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: flex-end; padding: var(--space-3) 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: var(--space-5); }
.filterbar .field { min-width: 170px; }
.filterbar .reset { margin-left: auto; align-self: center; }
.empty { grid-column: 1 / -1; padding: var(--space-6) 0; }
.empty p { color: var(--ink-muted); max-width: 440px; margin: var(--space-3) 0 var(--space-4); }

/* ---------- Athlete page ---------- */
.athlete-sports { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); background: var(--white); }
.tag b { color: var(--purple); font-weight: 700; }
.unit-toggle { display: inline-flex; border: 1px solid var(--line); }
.unit-toggle button { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 14px; }
.unit-toggle button[aria-pressed="true"] { background: var(--galaxy); color: var(--white); }

.tabs { display: flex; gap: var(--space-4); }
.tab { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; color: var(--ink-muted); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--purple); }

.book { position: relative; margin: 0 calc(var(--page-x) * -1); }
.book-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--page-x); scrollbar-width: none; cursor: grab; }
.book-strip::-webkit-scrollbar { display: none; }
.book-strip figure { flex: none; height: clamp(420px, calc(100vh - 250px), 820px); aspect-ratio: 4 / 5; background: var(--silver-2); scroll-snap-align: start; scroll-margin-left: var(--page-x); }
.book-strip figure.portrait { aspect-ratio: 3 / 4; }
.book-strip img { width: 100%; height: 100%; object-fit: cover; }
.book-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); font-size: 18px; transition: background .2s ease, color .2s ease; }
.book-nav:hover { background: var(--galaxy); color: var(--white); }
.book-nav.prev { left: calc(var(--page-x) + 8px); }
.book-nav.next { right: calc(var(--page-x) + 8px); }
.book-count { padding-top: 12px; }
@media (max-width: 700px) { .book-strip figure { height: 64vh; } .book-nav { display: none; } }

.athlete-about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); padding-top: var(--space-6); }
.athlete-about .body-l { max-width: 560px; }
@media (max-width: 900px) { .athlete-about { grid-template-columns: 1fr; gap: var(--space-5); } }
.athlete-nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.athlete-nav a { text-decoration: none; }
.athlete-nav a:hover .model-name { color: var(--purple); }

/* ---------- Split pages (apply, contact, about, legal) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-7); padding-top: var(--space-6); }
.split-aside .display-l { margin-bottom: var(--space-4); }
.split-aside .body-l { color: var(--ink-muted); max-width: 460px; margin-bottom: var(--space-5); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: var(--space-6); } }
.sticky-aside { position: sticky; top: calc(var(--header-h) + var(--space-4)); align-self: start; }
@media (max-width: 960px) { .sticky-aside { position: static; } }

.block { border-top: 2px solid var(--ink); padding-top: var(--space-3); margin-bottom: var(--space-5); }
.block .label { display: block; margin-bottom: var(--space-3); }
.list { list-style: none; display: grid; gap: 10px; }
.list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; }
.list li::before { content: ""; width: 7px; height: 7px; background: var(--purple); transform: translateY(-1px); }
.list.no li::before { background: transparent; border: 1.5px solid var(--seal); width: 7px; height: 7px; }
.steps { list-style: none; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px 1fr; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; color: var(--purple); }
.free { display: inline-block; background: var(--purple); color: var(--white); padding: 2px 8px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* About page: bigger points */
.about-hero h1 { max-width: 14ch; text-wrap: balance; }
.about-hero p { margin-top: var(--space-4); max-width: 520px; color: var(--ink-muted); }
.about-hero { padding-bottom: var(--space-5); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-6); padding-top: 0; }
.about-points .block { margin-bottom: 0; }
.about-points .block p, .about-points .block li { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }
.about-points .block .label { font-size: 13px; margin-bottom: var(--space-4); }
.about-points .list { gap: 14px; }
.about-points .list li { grid-template-columns: 18px 1fr; }
.about-points .list li::before { width: 9px; height: 9px; }
@media (max-width: 900px) { .about-points { grid-template-columns: 1fr; } }
.highlight { margin-top: var(--space-3); font-weight: 500; }
.highlight mark { background: linear-gradient(transparent 58%, var(--purple-tint) 58%); color: var(--ink); padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Forms ---------- */
.form-section { margin-bottom: var(--space-6); }
.form-section > .label { display: block; padding-bottom: var(--space-3); margin-bottom: var(--space-4); border-bottom: 2px solid var(--ink); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field.full { grid-column: 1 / -1; }
.field label, .field .field-label { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea {
    font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
    border: 1px solid var(--line); border-radius: 2px; padding: 14px; width: 100%;
    transition: border-color .2s ease; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--seal); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.hint { font-size: 13px; color: var(--ink-muted); }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }

/* Repeatable sport rows */
.sport-row { position: relative; display: grid; grid-template-columns: 1.1fr 1fr 1fr 40px; gap: var(--space-3); align-items: end; padding: var(--space-3); background: var(--white); border: 1px solid var(--line); margin-bottom: var(--space-3); }
.sport-row .remove { width: 40px; height: 50px; font-size: 20px; color: var(--seal); }
.sport-row .remove:hover { color: var(--error); }
.sport-row:only-of-type .remove { visibility: hidden; }
.sport-row .num { position: absolute; top: -9px; left: 12px; background: var(--surface); padding: 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .14em; color: var(--purple); }
@media (max-width: 760px) { .sport-row { grid-template-columns: 1fr; } .sport-row .remove { position: absolute; top: 6px; right: 6px; height: 40px; } }

/* Photo guide */
.photo-guide { background: var(--white); border: 1px solid var(--line); padding: var(--space-4); margin-bottom: var(--space-4); }
.photo-guide .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-4); }
.photo-guide figure { text-align: center; }
.photo-guide svg { width: 100%; height: auto; display: block; background: var(--surface); border: 1px solid var(--line); }
.photo-guide figcaption { margin-top: 8px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.dos .label { display: block; margin-bottom: 12px; }
.dos li { font-size: 15px; }
@media (max-width: 560px) { .dos { grid-template-columns: 1fr; } }

.dropzone { position: relative; border: 1px dashed var(--seal); background: var(--white); padding: var(--space-5) var(--space-4); text-align: center; transition: border-color .2s ease, background .2s ease; }
.dropzone:hover, .dropzone.drag { border-color: var(--ink); background: #F1ECF7; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .model-name { margin-bottom: var(--space-2); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.thumbs img { aspect-ratio: 3/4; object-fit: cover; width: 100%; background: var(--white); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--ink-muted); }
.check input { width: 18px; height: 18px; accent-color: var(--purple); margin-top: 3px; }
.form-error { color: var(--error); font-size: 14px; margin-top: var(--space-3); min-height: 1em; }
.form-success { border-top: 1px solid var(--ink); padding-top: var(--space-5); }
.form-success .display-l { margin-bottom: var(--space-3); }
.form-success p { color: var(--ink-muted); max-width: 440px; }

/* Contact */
.people { display: grid; gap: var(--space-5); margin-bottom: var(--space-5); }
.person .heading { margin: 0 0 var(--space-1); }
.person .label { display: block; color: var(--purple); margin-bottom: var(--space-3); }
.person a { display: block; text-decoration: none; font-size: 17px; line-height: 1.7; }
.person a:hover { color: var(--purple); }
.languages { font-size: 15px; color: var(--ink-muted); max-width: 460px; border-top: 1px solid var(--line); padding-top: var(--space-3); }

/* Legal pages */
.legal { max-width: 760px; padding-top: var(--space-6); }
.legal h1 { margin-bottom: var(--space-3); }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; margin: var(--space-5) 0 var(--space-2); }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: #2B2C30; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin-top: 8px; }
.legal .todo { background: #F1ECF7; padding: 0 4px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }


/* ---------- Athlete page: info panel beside the photos ---------- */
.athlete-b { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 12px; margin-top: var(--space-3); }
.info-panel { background: var(--galaxy); color: var(--white); padding: var(--space-4); display: flex; flex-direction: column; gap: 14px; min-height: clamp(460px, calc(100vh - 170px), 860px); }
.info-panel .text-link { color: #A3A3A3; align-self: flex-start; }
.info-panel .text-link:hover { color: var(--white); }
.info-panel .num { color: #8A8A8A; }
.info-panel h1 { font-size: clamp(32px, 3.2vw, 48px); margin-top: 4px; }
.info-panel .athlete-sports .tag { padding: 5px 9px; font-size: 10px; }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.info-panel .tag { background: transparent; color: var(--white); border-color: #3A3A3A; }
.info-panel .tag b { color: var(--purple-light); }
.info-panel .bio-short { color: #C9C9C9; font-size: 14px; line-height: 1.55; }
.stats-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #2E2E2E; }
.stats-list div { padding: 10px 0; border-bottom: 1px solid #2E2E2E; }
.stats-list div { padding-right: 10px; }
.stats-list dt { font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8A8A8A; }
.stats-list dd { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.info-panel .unit-toggle { border-color: #3A3A3A; align-self: flex-start; }
.info-panel .unit-toggle button { color: #A3A3A3; }
.info-panel .unit-toggle button[aria-pressed="true"] { background: var(--white); color: var(--galaxy); }
.info-panel .panel-actions { display: grid; gap: 8px; }
/* Z card: clear and easy to spot, but plain */
.btn-zcard { background: var(--white); color: var(--galaxy); border-color: var(--white); justify-content: space-between; }
.btn-zcard svg { flex: none; }
.btn-zcard .file-type { margin-left: auto; font-size: 10px; letter-spacing: .14em; color: var(--ink-muted); border: 1px solid var(--line); padding: 2px 6px; }
.btn-zcard:hover { background: #E8E8E8; border-color: #E8E8E8; color: var(--galaxy); }
.info-panel .tabs .tab { color: #8A8A8A; }
.info-panel .tabs .tab[aria-selected="true"] { color: var(--white); }
.athlete-b .book { margin: 0; min-width: 0; }
.athlete-b .book-strip { padding: 0; }
.athlete-b .book-strip figure { height: clamp(460px, calc(100vh - 170px), 860px); scroll-margin-left: 0; }
.athlete-b .book-nav.prev { left: 12px; }
.athlete-b .book-nav.next { right: 12px; }
@media (max-width: 900px) {
    .athlete-b { grid-template-columns: 1fr; }
    .info-panel { min-height: 0; padding: var(--space-3); }
    .info-panel .bio-short, .info-panel > .text-link { display: none; }
    .athlete-b .book { margin: 0 calc(var(--page-x) * -1); }
    .athlete-b .book-strip { padding: 0 var(--page-x); }
    .athlete-b .book-strip figure { height: 62vh; }
}

/* Info panel: compact so everything fits on a laptop screen */
.info-panel { gap: 12px; }
.info-panel h1 { font-size: clamp(30px, 2.9vw, 42px); }
.info-panel .tabs { gap: 16px; }
.info-panel .unit-toggle button { padding: 7px 10px; }
.info-panel .panel-row { flex-wrap: nowrap; }
.info-panel .panel-actions .btn { padding: 15px 20px; }
.stats-list div { padding-top: 8px; padding-bottom: 8px; }

/* ---------- Athlete info panel: clean version (black + white only) ---------- */
.info-panel { gap: 0; justify-content: flex-start; padding: var(--space-4); }
.panel-back { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8A8A8A; text-decoration: none; align-self: flex-start; }
.panel-back:hover { color: var(--white); }
.panel-name { margin-top: var(--space-4); }
.panel-num { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .14em; color: #8A8A8A; }
.panel-name h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 3vw, 44px); line-height: .95; letter-spacing: -0.015em; margin: 6px 0 14px; }
.panel-sports { list-style: none; display: grid; gap: 4px; font-size: 14px; color: var(--white); }
.panel-sports span { color: #8A8A8A; }
.panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid #262626; }
.panel-stats dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8A8A8A; }
.panel-stats dd { font-size: 15px; font-weight: 500; color: var(--white); margin-top: 2px; }
.panel-switches { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-4); }
.info-panel .tabs { gap: 18px; }
.info-panel .tabs .tab { font-size: 11px; padding: 4px 0; border-bottom-width: 1px; }
.info-panel .tabs .tab[aria-selected="true"] { border-bottom-color: var(--white); }
.info-panel .unit-toggle { border: 0; gap: 10px; }
.info-panel .unit-toggle button { padding: 4px 0; font-size: 11px; color: #6E6E6E; background: none; }
.info-panel .unit-toggle button[aria-pressed="true"] { color: var(--white); background: none; }
.info-panel .panel-actions { margin-top: var(--space-4); display: grid; gap: 10px; }
.btn-zcard { justify-content: center; }
.panel-request { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); text-decoration: none; text-align: center; padding: 6px 0; }
.panel-request:hover { color: var(--purple-light); }
@media (max-width: 900px) {
    .info-panel { padding: var(--space-4) var(--space-3); }
    .panel-name { margin-top: var(--space-3); }
    .panel-stats { grid-template-columns: repeat(3, 1fr); margin-top: var(--space-4); }
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

.nav-num, .nav-extra, .mobile-title { display: none; }

@media (max-width: 820px) {
    /* The blur on the header traps the menu inside it, so turn it off on phones */
    .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
    .menu-open .site-header { border-bottom-color: var(--line); }

    /* Full-screen menu */
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--header-h));
        background: var(--surface); z-index: 60;
        display: flex; flex-direction: column; justify-content: space-between;
        padding: var(--space-4) var(--page-x) var(--space-5);
        overflow-y: auto;
    }
    .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .nav li { border-bottom: 1px solid var(--line); }
    .nav a {
        display: flex; align-items: baseline; gap: 16px;
        font-weight: 800; font-size: 34px; letter-spacing: -0.01em; line-height: 1;
        padding: 22px 0; border-bottom: 0;
    }
    .nav a[aria-current="page"] { color: var(--purple); border-bottom: 0; }
    .nav a:hover { border-bottom-color: transparent; }
    .nav-num { display: inline; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink-muted); min-width: 22px; }
    .nav-extra { display: grid; gap: 10px; padding-top: var(--space-5); }
    .nav-extra a { font-family: var(--font-sans); font-weight: 500; font-size: 15px; letter-spacing: 0; text-transform: none; padding: 0; color: var(--ink-muted); }

    /* Home carousel: swipe by finger instead of auto-scrolling */
    /* Home carousel: moves by itself, and you can swipe it (driven by script in index.html) */
    .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
    .marquee::-webkit-scrollbar { display: none; }
    .marquee-track { animation: none; gap: 12px; }
    .marquee .card { width: 44vw; }
}

@media (max-width: 900px) {
    /* Athlete page: photos first, details underneath */
    .athlete-b { margin-top: 0; gap: 0; }
    .mobile-title { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; order: -2; padding: 14px 0; }
    .mobile-title > a { font-size: 20px; text-decoration: none; padding: 4px 8px 4px 0; }
    .mobile-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; margin-top: 3px; }
    .mobile-sport { font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); text-align: right; }
    .athlete-b .book { order: -1; }
    .athlete-b .book-strip { gap: 8px; }
    .athlete-b .book-strip figure { height: auto; width: 86vw; aspect-ratio: 4 / 5; }
    .athlete-b .book-strip figure.portrait { aspect-ratio: 3 / 4; }
    .info-panel { margin-top: 12px; }
    .info-panel .panel-back, .info-panel .panel-name .panel-num, .info-panel .panel-name h1 { display: none; }
    .panel-name { margin-top: 0; }
    .info-panel .panel-sports { font-size: 14px; }
}
