/* ==========================================================================
   N.I.D CLUB
   Built from the brand's own material: a black monoline mark with round
   terminals, a boxed lockup with a label band, a plain grotesk wordmark.
   So: one grotesk (Archivo), black on paper, pill shapes from the stroke ends,
   the label band as a caption device. Nothing borrowed from event branding.
   ========================================================================== */

/* Archivo, self-hosted (same files and axes Google Fonts served: wght 100–900, wdth 62–125) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../assets/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../assets/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4f4f1;
  --ink: #0b0b0b;
  --mute: #6d6d69;
  --rule: rgba(11, 11, 11, .14);
  --paper-mute: rgba(244, 244, 241, .62);
  --paper-rule: rgba(244, 244, 241, .18);

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  /* landscape iPhones: keep content clear of the notch / Dynamic Island (0 everywhere else) */
  --pad: max(clamp(20px, 3.4vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));
  --toolbar: 0px;
  --gap: clamp(16px, 2vw, 28px);
  --header: 72px;
  --ease: cubic-bezier(.2, .7, 0, 1);
}

/* height of the mobile browser toolbars while they show (100vh is the large viewport on iOS) */
@supports (height: 100svh) { :root { --toolbar: calc(100vh - 100svh); } }

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

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: transparent; /* the world canvas sits behind at z-index -1 */
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- Type -------------------------------------------------------------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(46px, 5.8vw, 96px); }
h2 { font-size: clamp(38px, 4.6vw, 76px); }
h3 { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.025em; line-height: 1.05; }
.lead { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.38; letter-spacing: -.012em; }
.label {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  color: var(--mute);
  margin-bottom: 22px;
}
.label__n {
  font-stretch: 125%; font-weight: 700; font-size: 12px;
  color: var(--ink);
}
[data-theme="dark"] .label, .is-dark .label { color: var(--paper-mute); }
[data-theme="dark"] .label__n { color: var(--paper); }

/* ----- Buttons: pill = the mark's rounded terminals ----------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 16px; font-weight: 500; letter-spacing: -.01em;
  border: 1px solid var(--ink);
  transition: background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
@media (hover: hover) { .btn:hover { background: #2a2a2a; border-color: #2a2a2a; } }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
@media (hover: hover) { .btn--ghost:hover { background: transparent; border-color: var(--ink); } }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (hover: hover) { .btn--light:hover { background: #fff; border-color: #fff; } }

/* ----- Layers ------------------------------------------------------------ */
/* sized to the large viewport so mobile toolbars never stretch or reallocate them */
#world { position: fixed; top: 0; left: 0; z-index: -1; width: 100%; height: 100vh; height: 100lvh; }
#mark { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; }

/* ----- Header ------------------------------------------------------------ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad);
  color: var(--ink);
  transition: color .35s, background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(244, 244, 241, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.site-header.is-dark { color: var(--paper); }
.site-header.is-dark.is-scrolled { background: rgba(11, 11, 11, .78); border-bottom-color: var(--paper-rule); }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; padding-block: 7px; margin-block: -7px; }
.brand__mark { width: 30px; height: 30px; opacity: 0; transition: opacity .2s; }
.brand__mark svg { width: 100%; height: 100%; fill: currentColor; }
.brand__name { font-weight: 600; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.site-nav { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 15px; font-weight: 500; }
/* 44 px hit areas: the padding is offset by negative margins, so the text stays put */
.site-nav a { position: relative; padding: 10.5px 11px; margin: -4.5px -11px; opacity: .72; transition: opacity .2s; }
.site-nav a:hover, .site-nav a.is-current { opacity: 1; }
.site-nav a.is-current::after { content: ''; position: absolute; left: 50%; bottom: .5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.site-header__cta { display: flex; gap: 10px; justify-self: end; align-items: center; }
.site-header.is-dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-header.is-dark .btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper-rule); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); place-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: var(--header) 0 0; z-index: 49;
  display: flex; flex-direction: column; padding: 24px var(--pad);
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-size: 36px; font-weight: 600; letter-spacing: -.03em; padding: 12px 0; border-bottom: 1px solid var(--rule); }

/* ----- Sections ---------------------------------------------------------- */
.section { position: relative; padding: clamp(110px, 16vh, 180px) var(--pad); }
[data-theme="light"]:not([data-world]) { background: var(--paper); }
[data-theme="dark"]:not([data-world]) { background: var(--ink); color: var(--paper); }
[data-world][data-theme="dark"] { color: var(--paper); }

/* ----- Hero -------------------------------------------------------------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: var(--header) var(--pad) 0;
}
.hero__body {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--gap);
  padding: clamp(24px, 5vh, 60px) 0;
}
.hero__copy { max-width: 640px; }
.hero__copy h1 { margin-bottom: 14px; }
.hero__second { text-wrap: balance; font-size: clamp(26px, 2.7vw, 44px); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; color: var(--mute); }
.hero__lead { margin-top: 30px; max-width: 30em; font-size: 18px; color: var(--mute); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__mark {
  justify-self: center;
  width: min(54vh, 34vw);
  aspect-ratio: 1;
}
.hero__mark svg { width: 100%; height: 100%; fill: var(--ink); transition: opacity .6s; }
.hero__mark.is-3d svg { opacity: 0; }

.divisions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.division {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto auto;
  column-gap: 18px;
  padding: 22px 0 26px;
  transition: background .3s;
}
.division + .division { border-left: 1px solid var(--rule); padding-left: var(--gap); }
.division__icon { grid-row: 1 / 4; width: 40px; }
.division__icon svg, .segmented svg { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; }
.division__name { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.division__what { font-weight: 500; margin-top: 6px; }
.division__facts { color: var(--mute); font-size: 15px; }
.division__go {
  grid-column: 3; grid-row: 1 / 4; align-self: center;
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: var(--gap);
  border: 1px solid var(--rule); border-radius: 50%;
  transition: background .25s, color .25s, transform .4s var(--ease);
}
@media (hover: hover) { .division:hover .division__go { background: var(--ink); color: var(--paper); transform: translateY(4px); } }

/* ----- Club + diagram ---------------------------------------------------- */
.club__grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--gap) * 2); align-items: center; }
.club__text h2 { margin-bottom: 34px; }
.club__text p + p { margin-top: 18px; color: var(--mute); max-width: 36em; }
.diagram { position: relative; width: min(100%, 560px); justify-self: center; }
.diagram svg { width: 100%; overflow: visible; }
.diagram path { fill: none; stroke-width: 124; stroke-linecap: round; stroke-linejoin: round; }
.diagram__ghost { stroke: var(--ink); opacity: .07; }
.diagram__a, .diagram__b { stroke: var(--ink); stroke-dasharray: 1 1.02; stroke-dashoffset: 1; }
.diagram__note {
  position: absolute; display: grid; gap: 2px;
  font-size: 14px; color: var(--mute);
  opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .8s var(--ease);
}
.diagram__note b { font-size: 13px; font-weight: 700; font-stretch: 125%; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.diagram__note--a { left: 0; top: -2%; }
.diagram__note--b { right: 0; bottom: -2%; text-align: right; }
.diagram.is-a .diagram__note--a, .diagram.is-b .diagram__note--b { opacity: 1; transform: none; }

/* ----- Ski intro (open to the landscape) ---------------------------------- */
.ski-intro { min-height: 115vh; padding-top: clamp(140px, 22vh, 240px); }
.ski-intro__title { max-width: 13em; margin-bottom: 40px; }
.ski-intro__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); max-width: 980px; }
.ski-intro__cols p:last-child { color: var(--mute); }

/* ----- Face: the start list over the mountain ----------------------------- */
.face { height: 460vh; position: relative; }
.face__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.face__panel {
  position: absolute; left: var(--pad); top: calc(var(--header) + 4vh); bottom: calc(6vh + var(--toolbar));
  width: min(380px, 34vw);
  display: flex; flex-direction: column;
}
.face__panel h3 { font-size: clamp(30px, 2.8vw, 44px); margin-bottom: 28px; }
.startlist { list-style: none; border-top: 1px solid var(--rule); }
.startlist li { border-bottom: 1px solid var(--rule); }
.startlist button {
  width: 100%;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 11px 0; text-align: left;
  background: rgba(244, 244, 241, .7);
}
.bib {
  display: grid; place-items: center;
  width: 46px; height: 32px; border-radius: 999px;
  border: 1px solid var(--ink);
  font-stretch: 125%; font-weight: 800; font-size: 13px;
  transition: background .25s, color .25s;
}
.startlist__name { font-weight: 600; font-size: 18px; letter-spacing: -.015em; }
.startlist__meta { font-size: 14px; color: var(--mute); }
.startlist button.is-active .bib { background: var(--ink); color: var(--paper); }
.startlist button:not(.is-active) .startlist__name { color: var(--mute); }
.face__note { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--mute); }
.face__bibs span {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  height: 22px; padding: 0 8px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--ink);
  font-stretch: 125%; font-weight: 800; font-size: 10px;
  transform: translate(-50%, -150%);
  opacity: 0;
  transition: background .25s, color .25s;
  will-change: transform;
}
.face__bibs span.is-active { background: var(--ink); color: var(--paper); }

/* ----- Program ----------------------------------------------------------- */
.program__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: clamp(60px, 9vh, 100px); }
.seasons { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding-top: 150px; }
.seasons__rise { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.seasons__rise path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1.02; stroke-dashoffset: 1; }
.season { border-top: 1px solid var(--ink); padding-top: 18px; }
.season__n { font-stretch: 125%; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 26px; }
.season h3 { margin-bottom: 12px; }
.season p:last-child { color: var(--mute); max-width: 26em; }

.staff { margin-top: clamp(90px, 14vh, 150px); }
.staff__rows { border-top: 1px solid var(--ink); }
.staff__row {
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: var(--gap); align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.staff__role { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.025em; }
.staff__who { color: var(--mute); }
.staff__focus { justify-self: end; font-size: 14px; font-weight: 500; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; }
.staff__note { margin-top: 26px; max-width: 40em; color: var(--mute); }

/* ----- Event ------------------------------------------------------------- */
.event { display: grid; grid-template-columns: 1.6fr 1fr; gap: calc(var(--gap) * 2); align-items: end; }
.event__img { overflow: hidden; aspect-ratio: 16 / 11; background: var(--ink); }
.event__img img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.band {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 12px 16px;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 500;
}
.band__mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.band__mark svg { width: 16px; height: 16px; fill: currentColor; }
.event__text h3 { font-size: clamp(34px, 3.4vw, 56px); margin-bottom: 18px; }
.event__text p:last-child { color: var(--mute); }

/* ----- Surf intro (open, dark) ------------------------------------------- */
.surf-intro { height: 260vh; position: relative; }
.surf-intro__sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) calc(16vh + var(--toolbar));
}
.surf-intro__sticky > * { opacity: 0; transform: translateY(24px); }
.surf-intro h2 { font-size: clamp(44px, 6vw, 100px); margin-bottom: 28px; }
.surf-intro .lead { max-width: 30em; color: var(--paper-mute); }

/* ----- Results ----------------------------------------------------------- */
.results__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: end; }
.results__head .label { grid-column: 1 / -1; margin-bottom: 0; }
.results__head .lead { color: var(--paper-mute); max-width: 28em; }
.podiums { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--gap) * 2); margin: clamp(70px, 10vh, 110px) 0; }
.podium svg { width: 100%; max-width: 480px; overflow: visible; }
.podium__step { fill: none; stroke: var(--paper-rule); stroke-width: 1.5; }
.podium__step--us { fill: var(--paper); stroke: var(--paper); }
.podium text { fill: var(--paper-mute); font: 800 22px var(--font); font-stretch: 125%; text-anchor: middle; }
.podium text.podium__us { fill: var(--ink); font-size: 30px; }
.podium figcaption { display: flex; justify-content: space-between; max-width: 480px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--paper-rule); font-weight: 500; }
.podium figcaption span:last-child { color: var(--paper-mute); }
.sheet { width: 100%; border-collapse: collapse; font-size: 15px; }
.sheet th { text-align: left; font-weight: 500; color: var(--paper-mute); padding: 0 0 12px; border-bottom: 1px solid var(--paper); }
.sheet td { padding: 16px 0; border-bottom: 1px solid var(--paper-rule); }
.sheet th:last-child, .sheet td:last-child { text-align: right; }
.sheet td:last-child { font-stretch: 125%; font-weight: 800; }

/* ----- Partners ---------------------------------------------------------- */
.partners__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: calc(var(--gap) * 3); align-items: start; }
.partners__text h2 { margin-bottom: 26px; }
.partners__text .lead { max-width: 30em; }
.ways { list-style: none; margin: 50px 0 40px; border-top: 1px solid var(--ink); }
.ways li { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--gap); padding: 22px 0; border-bottom: 1px solid var(--rule); }
.ways h3 { font-size: 22px; }
.ways p { color: var(--mute); }
.bib-mock { position: sticky; top: calc(var(--header) + 40px); }
.bib-mock svg { width: 100%; max-width: 420px; margin: 0 auto; overflow: visible; }
.bib-mock__vest { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.bib-mock__mark { fill: var(--ink); }
.bib-mock__num { font: 800 120px var(--font); font-stretch: 125%; text-anchor: middle; letter-spacing: -.02em; fill: var(--ink); }
.bib-mock__slot { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 6; }
.bib-mock__slot-text { font: 500 15px var(--font); text-anchor: middle; fill: var(--mute); }
.bib-mock figcaption { margin: 22px auto 0; max-width: 340px; text-align: center; font-size: 14px; color: var(--mute); }

/* ----- Apply ------------------------------------------------------------- */
.apply__grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--gap) * 3); align-items: start; }
.apply__text h2 { margin-bottom: 26px; }
.apply__text .lead { color: var(--paper-mute); max-width: 26em; }
.apply__alt { margin-top: 26px; font-size: 15px; color: var(--paper-mute); }
.apply__form { display: grid; gap: 22px; }
.segmented { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.segmented legend { width: 100%; font-size: 14px; color: var(--paper-mute); margin-bottom: 10px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--paper-rule);
  font-weight: 500; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.segmented svg { width: 18px; stroke-width: 5; }
.segmented input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.segmented input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 140px; gap: 22px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; color: var(--paper-mute); }
.field input, .field textarea {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--paper-rule);
  padding: 8px 0 10px; font-size: 20px; letter-spacing: -.01em; outline: none; resize: none;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 244, 241, .28); }
.field.is-invalid input { border-bottom-color: #ff8a7a; }
.apply__submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.apply__status { font-size: 15px; color: var(--paper-mute); }

/* ----- Footer ------------------------------------------------------------ */
.site-footer { background: var(--paper); padding: clamp(80px, 12vh, 130px) var(--pad) 28px; }
.site-footer__top { display: grid; grid-template-columns: auto 1fr; gap: calc(var(--gap) * 3); align-items: start; }
.lockup { width: 168px; border: 2px solid var(--ink); }
.lockup__box { background: var(--ink); padding: 26px; }
.lockup__box svg { fill: var(--paper); }
.lockup__band { padding: 8px 0 7px; text-align: center; font-weight: 600; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.site-footer__cols > div { display: grid; gap: 8px; align-content: start; }
.site-footer__cols a { font-size: 18px; font-weight: 500; width: fit-content; padding: 8.5px 9px; margin: -8.5px -9px; }
.site-footer__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__base { display: flex; justify-content: space-between; gap: 20px; margin-top: 80px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--mute); }
.site-footer__base a { padding-block: 11.5px; margin-block: -11.5px; }

/* ----- Reveal (set by JS) ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); } /* played by ui.js (WAAPI) */
.reveal.is-in { opacity: 1; transform: none; }

/* ----- Fallback without WebGL -------------------------------------------- */
.no-webgl [data-world][data-theme="light"] { background: var(--paper); }
.no-webgl [data-world][data-theme="dark"] { background: var(--ink); }
.no-webgl .surf-intro__sticky > * { opacity: 1; transform: none; }
.no-webgl .brand__mark { opacity: 1; }

/* ----- Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .hide-md { display: none; }
}
@media (max-width: 900px) {
  :root { --header: 64px; }
  body { font-size: 16px; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .menu-toggle { display: grid; }
  .site-header.is-dark .menu-toggle { border-color: var(--paper-rule); }
  .hero__body { grid-template-columns: 1fr; padding-top: 28px; }
  .hero__mark { order: -1; justify-self: start; width: min(34vh, 52vw); }
  .hero__second { font-size: 24px; }
  .divisions { grid-template-columns: 1fr; }
  .division + .division { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .club__grid, .ski-intro__cols, .program__head, .event, .results__head, .podiums, .partners__grid, .apply__grid { grid-template-columns: 1fr; }
  .diagram { width: 80%; margin-top: 30px; }
  .face__panel { width: auto; right: var(--pad); }
  .seasons { grid-template-columns: 1fr; padding-top: 0; gap: 34px; }
  .seasons__rise { display: none; }
  .staff__row { grid-template-columns: 1fr; gap: 6px; }
  .staff__focus { justify-self: start; }
  .sheet th:nth-child(3), .sheet td:nth-child(3) { display: none; }
  .ways li { grid-template-columns: 1fr; gap: 6px; }
  .bib-mock { position: static; max-width: 300px; }
  .field-row { grid-template-columns: 1fr 100px; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__base { flex-direction: column; gap: 6px; }
}
/* Short desktop/tablet viewports: the full start list (514 px) needs ~650 px of height,
   so the rows tighten a little; below ~570 px it folds into the row of bibs below. */
@media (min-width: 901px) and (max-height: 660px) {
  .face__panel h3 { margin-bottom: 16px; }
  .startlist button { padding: 6px 0; }
}
/* Phones, and any viewport too short for the list (landscape phones): a row of bibs */
@media (max-width: 900px), (max-height: 570px) {
  .face__panel { top: auto; bottom: calc(3vh + var(--toolbar)); }
  .face__panel h3 { display: none; }
  .face__panel .label { margin-bottom: 10px; }
  .startlist { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 0; gap: 6px; margin-block: -4px; }
  .startlist li { border: 0; }
  /* one track sized to the bib (the desktop row's three tracks and gaps made the columns
     overflow); the button around it is a 44 px hit area, offset so the bib doesn't move */
  .startlist button {
    grid-template-columns: max-content; justify-content: start; place-items: center;
    width: calc(100% + 4px); margin-inline: -2px; padding: 4px 2px; background: none;
  }
  .startlist__meta, .startlist__name { display: none; }
  .bib { width: 100%; height: 36px; font-size: 12px; background: var(--paper); }
  .face__note { padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
