/* gunnarsson.fo — design tokens and page styles. The plan behind these values is in DESIGN.md. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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;
}

:root {
  /* Colour: North Atlantic ink, Faroese fog, and the red and blue of Merkið used sparingly. */
  --ink: #0f2230;
  --ink-2: #1a3242;
  --basalt: #4a5761;
  --fog: #eef1f0;
  --paper: #ffffff;
  --line: #d3dade;
  --signal: #2e5d8c;        /* the denim blue of his VELO CC jersey */
  --signal-press: #234a71;
  --danger: #b3261e;        /* form errors only */
  --sea: #1d5c8c;
  --on-ink: #f4f6f6;
  --on-ink-muted: #a9b6bf;

  /* Spacing: the only values used (landing-page-design B2). */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* Radius: Tailwind steps; nested shapes subtract the gap. */
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
  --gutter: var(--s-300);
  --section: var(--s-700);
  --nav-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: var(--s-500); --section: var(--s-900); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s-400)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 16px; line-height: 24px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: var(--r-sm); }
.band-ink :focus-visible, .tier--featured :focus-visible { outline-color: #8cc3ef; }
::selection { background: var(--ink); color: var(--paper); }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p, li, dd { text-wrap: pretty; }

.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; }
.skip { position: fixed; left: var(--s-200); top: var(--s-200); z-index: 100; padding: var(--s-75) var(--s-100); background: var(--ink); color: var(--paper); border-radius: var(--r-lg); transform: translateY(-200%); transition: transform 300ms var(--ease); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--basalt); }
.band-ink .muted, .tier--featured .muted { color: var(--on-ink-muted); }
mark.todo { background: #fff2a8; color: var(--ink); border-radius: var(--r-sm); padding: 0 var(--s-25); box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Text styles (landing-page-design B1; Display adds the condensed race-number cut) ---------- */
.display-1 { font-size: 48px; line-height: 1; font-weight: 700; font-stretch: 72%; letter-spacing: -0.01em; }
.display-2 { font-size: 36px; line-height: 40px; font-weight: 650; font-stretch: 78%; letter-spacing: -0.005em; }
@media (min-width: 768px) {
  .display-1 { font-size: 72px; }
  .display-2 { font-size: 60px; line-height: 1; }
}
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; }
.heading-2 { font-size: 36px; line-height: 40px; font-weight: 650; font-stretch: 84%; letter-spacing: -0.005em; }
@media (min-width: 768px) { .heading-2 { font-size: 48px; line-height: 1; } }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; font-stretch: 88%; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; font-stretch: 88%; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; font-stretch: 90%; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.display-3 { font-size: 36px; line-height: 40px; font-weight: 650; font-stretch: 80%; }
.body-lg { font-size: 18px; line-height: 28px; font-weight: 400; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  min-height: 44px; padding: var(--s-75) var(--s-200);
  border-radius: var(--r-lg); border: 1px solid transparent;
  font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), transform 500ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--sm { min-height: 40px; padding: var(--s-75) var(--s-100); font-size: 14px; line-height: 20px; }
.btn--lg { min-height: 52px; padding: var(--s-100) var(--s-300); font-size: 18px; line-height: 28px; }
.btn--signal { background: var(--signal); color: #fff; }
.btn--signal:hover { background: var(--signal-press); }
.btn--outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band-ink .btn--outline { color: var(--on-ink); }
.band-ink .btn--outline:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn--quiet { color: var(--ink); background: transparent; border-color: var(--line); }
.btn--quiet:hover { border-color: var(--ink); }
.link {
  display: inline-flex; align-items: center; gap: var(--s-50);
  color: var(--sea); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  background: none; border: 0; padding: 0; cursor: pointer;
  transition: text-decoration-color 300ms var(--ease), color 300ms var(--ease);
}
.link:hover { text-decoration-thickness: 2px; }
.band-ink .link { color: var(--on-ink); }

/* ---------- Navigation: a compact bar floating off the top edge ---------- */
.nav { position: fixed; inset: var(--s-200) var(--s-200) auto; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-300);
  height: var(--nav-h); padding: 0 var(--s-75) 0 var(--s-200);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(15, 34, 48, 0.08);
  border-radius: var(--r-2xl);
  box-shadow: 0 8px 32px rgba(15, 34, 48, 0.08);
  max-width: 100%;
}
.nav__brand { display: inline-flex; align-items: center; gap: var(--s-100); text-decoration: none; white-space: nowrap; }
.nav__mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-lg);
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; font-stretch: 75%; letter-spacing: 0.02em;
}
.nav__name { font-stretch: 88%; }
.nav__links { display: none; gap: var(--s-50); }
.nav__links a {
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; color: var(--basalt);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(15, 34, 48, 0.05); }
.nav__links a[aria-current="true"] { color: var(--ink); background: rgba(15, 34, 48, 0.07); }
.nav__bar .lang { display: none; }
.nav__toggle[hidden] { display: none; }
.nav__cta { display: none; }
.lang { display: flex; gap: var(--s-25); }
.lang a {
  display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 var(--s-75);
  border-radius: var(--r-lg); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; color: var(--basalt);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: var(--ink); background: rgba(15, 34, 48, 0.07); }
.nav__toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; border-radius: var(--r-lg); cursor: pointer; margin-left: auto; }
.burger { position: relative; width: 22px; height: 12px; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 500ms var(--ease), top 500ms var(--ease); }
.burger span:first-child { top: 0; }
.burger span:last-child { top: 10px; }
.nav__toggle[aria-expanded="true"] .burger span:first-child { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .burger span:last-child { transform: translateY(-5px) rotate(-45deg); }
.nav__panel {
  pointer-events: auto; position: fixed; inset: 0; z-index: -1;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-500);
  padding: calc(var(--nav-h) + var(--s-600)) var(--s-300) var(--s-600);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.nav__panel[hidden] { display: none; }
.nav__panel nav ul { display: grid; gap: var(--s-75); }
.nav__panel .lang { flex-wrap: wrap; }
.nav__panel ul a { text-decoration: none; }
.lang--long a { min-width: auto; padding: 0 var(--s-100); }
/* Without script there is no menu button: the bar shows its links in a row that scrolls sideways. */
html:not(.js) .nav__links { display: flex; overflow-x: auto; }
@media (min-width: 1100px) {
  .nav__links, .nav__bar .lang, .nav__cta { display: flex; }
  .nav__toggle, .nav__panel { display: none !important; }
}
@media (max-width: 1099px) { .nav__bar { width: 100%; justify-content: space-between; } }

/* ---------- Photos ---------- */
.photo { position: relative; display: block; overflow: hidden; background: var(--fog) var(--lqip, none) center / cover no-repeat; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
.frame { position: relative; display: block; overflow: hidden; border-radius: var(--r-xl); }
.frame .photo { height: 100%; }
.frame img { transition: transform 700ms var(--ease); }
a.frame:hover img, .post__media:hover img { transform: scale(1.025); }

/* ---------- Hero: a full-bleed race photo, the headline on a race bib ---------- */
/* Phones and tablets: the photo on top, the bib pinned over its lower edge so Jónas stays visible. */
.hero { position: relative; display: flex; flex-direction: column; color: var(--ink); overflow: hidden; background: var(--fog); padding-top: calc(var(--nav-h) + var(--s-400)); }
.hero__photo { position: relative; height: 46svh; min-height: 300px; }
.hero__photo img { will-change: transform; }
.hero__inner { position: relative; display: flex; justify-content: center; margin-top: calc(-1 * var(--s-700)); padding-bottom: var(--s-600); }
@media (min-width: 1200px) {
  /* Wide screens: the full-bleed photo with the bib on the side the photo leaves free. */
  .hero { min-height: 100svh; justify-content: flex-end; background: var(--ink); padding-top: 0; }
  .hero__photo { position: absolute; inset: 0; height: auto; }
  .hero__inner { justify-content: flex-end; margin-top: 0; padding-top: calc(var(--nav-h) + var(--s-600)); padding-bottom: var(--s-800); }
  /* hero.bibSide "left": for a photo with Jónas in its right half. */
  .hero--bib-left .hero__inner { justify-content: flex-start; }
}
.bib {
  position: relative; width: 100%; max-width: 600px;
  padding: var(--s-400) var(--s-300) var(--s-300);
  background: var(--paper); border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(6, 18, 26, 0.35);
}
@media (min-width: 768px) { .bib { padding: var(--s-500) var(--s-500) var(--s-400); } }
.bib__pin { position: absolute; width: 12px; height: 12px; border-radius: var(--r-full); background: #c9d1d6; box-shadow: inset 0 0 0 3px #e9edef, 0 1px 1px rgba(0,0,0,0.25); }
.bib__pin--tl { top: var(--s-100); left: var(--s-100); }
.bib__pin--tr { top: var(--s-100); right: var(--s-100); }
.bib__pin--bl { bottom: var(--s-100); left: var(--s-100); }
.bib__pin--br { bottom: var(--s-100); right: var(--s-100); }
.bib__proof { display: inline-flex; align-items: center; gap: var(--s-75); margin-bottom: var(--s-200); padding: var(--s-50) var(--s-100); border-radius: var(--r-md); background: var(--signal); color: #fff; }
.bib__title { max-width: 680px; }
.bib__sub { margin-top: var(--s-200); max-width: 680px; color: var(--basalt); }
.bib__actions { display: flex; flex-wrap: wrap; gap: var(--s-100); margin-top: var(--s-300); }
.bib__number { font-size: 96px; line-height: 1; font-weight: 700; font-stretch: 62%; color: var(--ink); margin-bottom: var(--s-200); }
.bib__sponsor {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-100) var(--s-200);
  margin: var(--s-300) calc(-1 * var(--s-300)) calc(-1 * var(--s-300)); padding: var(--s-200) var(--s-300);
  border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--fog);
}
@media (min-width: 768px) { .bib__sponsor { margin: var(--s-400) calc(-1 * var(--s-500)) calc(-1 * var(--s-400)); padding: var(--s-200) var(--s-500); } }
.bib__sponsor-label { color: var(--basalt); }
.bib__sponsor-logo img { height: 40px; width: auto; }
.bib__sponsor-open {
  padding: var(--s-75) var(--s-200); border: 1px dashed #9aa7af; border-radius: var(--r-md);
  color: var(--ink); text-decoration: none; transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.bib__sponsor-open:hover { border-color: var(--ink); background: var(--paper); }
/* Laptops: a narrower bib so the rider stays in view. */
@media (min-width: 1200px) and (max-width: 1439px) {
  .bib { max-width: 500px; }
  .bib .display-1 { font-size: 60px; }
}
/* Phones: the two actions share the width. */
@media (max-width: 479px) { .bib__actions { display: grid; grid-template-columns: 1fr; } }
/* The entrance (site.js) reveals these; a failsafe shows them anyway if the script never runs. */
.js-motion .hero [data-enter] { opacity: 0; animation: failsafe 0s 1.5s forwards; }
@keyframes failsafe { to { opacity: 1; } }

/* ---------- Partners band ---------- */
.partners { background: var(--fog); padding-block: var(--s-600); }
.partners__inner { display: grid; gap: var(--s-300); align-items: center; }
@media (min-width: 1024px) { .partners__inner { grid-template-columns: 300px 1fr; gap: var(--s-600); } }
.partners__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-200); }
@media (min-width: 768px) { .partners__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.partners__open {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-200) var(--s-400);
  padding: var(--s-300); border: 1px dashed #aab5bc; border-radius: var(--r-xl); text-decoration: none;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.partners__open:hover { border-color: var(--ink); background: var(--paper); }
.partners__places { display: flex; flex-wrap: wrap; gap: var(--s-100) var(--s-400); }
.partners__place { display: inline-flex; align-items: baseline; gap: var(--s-75); }
.logo-frame a { display: grid; place-items: center; gap: var(--s-50); height: 88px; padding: var(--s-200); border-radius: var(--r-xl); background: var(--paper); text-decoration: none; transition: transform 500ms var(--ease), border-color 300ms var(--ease); }
.logo-frame a:hover { transform: translateY(-2px); }
.logo-frame img { max-height: 48px; width: auto; }
.logo-frame--open a { background: transparent; border: 1px dashed #aab5bc; color: var(--basalt); grid-auto-flow: column; }
.logo-frame--open a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section__head { display: grid; gap: var(--s-200); max-width: 720px; margin-bottom: var(--s-600); }
.section__head--row { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 768px) { .section__head--row { grid-template-columns: 1fr auto; gap: var(--s-400); } .section__head--row > div { display: grid; gap: var(--s-200); max-width: 720px; } }
.band-ink { background: var(--ink); color: var(--on-ink); }

/* Story */
.story__grid { display: grid; gap: var(--s-600); align-items: start; }
@media (min-width: 1024px) { .story__grid { grid-template-columns: 1fr 1fr; gap: var(--s-800); } }
.story__text { display: grid; gap: var(--s-400); }
.prose { display: grid; gap: var(--s-200); max-width: 64ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-300) var(--s-400); padding-top: var(--s-300); border-top: 1px solid var(--line); }
.facts__row { display: grid; gap: var(--s-25); }
.facts dt { color: var(--basalt); }
.story__photos { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.story__photo--1 { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.story__photo--2 { grid-column: 3 / 7; margin-top: -30%; aspect-ratio: 1; box-shadow: 0 0 0 8px var(--paper); }
.story__photo--1 .photo, .story__photo--2 .photo { height: 100%; }

/* Tagline: large type, words light up in reading order */
.tagline { padding-block: var(--s-900); background: var(--fog); }
.tagline__text { max-width: 900px; }
.js-motion .tagline__text .w { opacity: 0.28; }

/* Season */
.season__grid { display: grid; gap: var(--s-600); }
.season__media { display: none; }
@media (min-width: 1024px) {
  .season__grid { grid-template-columns: 5fr 6fr; gap: var(--s-800); align-items: start; }
  .season__media { display: block; position: sticky; top: calc(var(--nav-h) + var(--s-600)); }
  .race__photo { display: none; }
}
.season__stage { aspect-ratio: 4 / 5; background: var(--fog); }
.season__shot { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms var(--ease); }
.season__shot.is-active { opacity: 1; }
.season__shot .photo { height: 100%; }
.season__list { display: grid; counter-reset: race; }
.race { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-75) var(--s-300); padding-block: var(--s-300); border-top: 1px solid var(--line); }
.race:last-child { border-bottom: 1px solid var(--line); }
.race__date { color: var(--basalt); padding-top: var(--s-50); }
.race__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-50); min-width: 0; }
.race__body > * { overflow-wrap: anywhere; }
.race__result { display: inline-flex; align-items: center; gap: var(--s-75); margin-top: var(--s-75); color: var(--ink); }
.race--highlight .race__result { color: var(--signal); }
.race__photo { grid-column: 1 / -1; aspect-ratio: 3 / 2; margin-top: var(--s-100); }
.race { position: relative; }
@media (min-width: 1024px) {
  .race::before { content: ""; position: absolute; left: -16px; top: var(--s-300); bottom: var(--s-300); width: 2px; border-radius: 2px; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform 500ms var(--ease); }
  .race.is-active::before { transform: scaleY(1); }
  .race.is-active .race__date { color: var(--ink); }
}

/* Why: reach in numbers, the reasons beside them */
.why__grid { display: grid; gap: var(--s-600); align-items: start; }
@media (min-width: 1024px) { .why__grid { grid-template-columns: 5fr 6fr; gap: var(--s-800); } }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-400) var(--s-300); }
.stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-75); padding-top: var(--s-200); border-top: 2px solid var(--ink); }
.why__list { display: grid; gap: var(--s-300); }
.why__item { display: grid; gap: var(--s-75); padding-bottom: var(--s-300); border-bottom: 1px solid var(--line); }
.why__item:last-child { border-bottom: 0; }

/* Visibility */
.vis__grid { display: grid; gap: var(--s-500); align-items: start; }
@media (min-width: 1024px) { .vis__grid { grid-template-columns: 7fr 5fr; gap: var(--s-600); } }
/* No photo to mark up: the placements alone, two columns from tablets. */
@media (min-width: 768px) { .vis__grid--list .vis__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-100) var(--s-400); } }
@media (min-width: 1024px) { .vis__grid--list { grid-template-columns: minmax(0, 1fr); } .vis__grid--list .vis__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vis__stage { aspect-ratio: 3 / 2; }
.vis__stage .photo { height: 100%; }
.spot {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--signal); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 500ms var(--ease), background-color 300ms var(--ease);
}
.spot::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(255, 255, 255, 0.85); opacity: 0; }
.js-motion .spot.is-pulsing::after { animation: pulse 2.6s var(--ease) 3; }
.spot::before { content: ""; position: absolute; inset: -8px; border-radius: inherit; }
@media (max-width: 767px) { .spot { left: var(--xm, var(--x)); top: var(--ym, var(--y)); width: 28px; height: 28px; font-size: 12px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(0, 0, 0, 0.35); } }
.spot:hover, .spot.is-active { transform: translate(-50%, -50%) scale(1.15); background: var(--signal-press); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 70%, 100% { transform: scale(1.8); opacity: 0; } }
.vis__list { display: grid; gap: var(--s-50); }
.vis__item { display: grid; grid-template-columns: 36px 1fr; gap: var(--s-200); padding: var(--s-200); border-radius: var(--r-xl); transition: background-color 300ms var(--ease); }
.vis__item.is-active, .vis__item:target { background: var(--ink-2); }
.vis__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-full); border: 1px solid rgba(244, 246, 246, 0.35); font-size: 14px; font-weight: 700; }
.vis__item div { display: grid; gap: var(--s-50); }
.vis__tiers { color: var(--on-ink); margin-top: var(--s-50); }

/* Packages */
.tiers { display: grid; gap: var(--s-300); align-items: stretch; }
@media (min-width: 1024px) { .tiers { grid-template-columns: 1.1fr 1fr 1fr; } }
.tier { display: flex; flex-direction: column; gap: var(--s-200); padding: var(--s-400); border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--paper); }
.tier--featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tier__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-100) var(--s-200); }
.tier__slots { padding: var(--s-25) var(--s-75); border-radius: var(--r-full); background: var(--fog); color: var(--ink); white-space: nowrap; }
.tier--featured .tier__slots { background: var(--signal); color: #fff; }
/* The jersey blue is too close to the navy card: there the main button turns white. */
.tier--featured .btn--signal { background: var(--paper); color: var(--ink); }
.tier--featured .btn--signal:hover { background: var(--fog); }
.tier__benefits { display: grid; align-content: start; gap: var(--s-100); padding-top: var(--s-200); border-top: 1px solid var(--line); flex: 1; }
.tier--featured .tier__benefits { border-color: rgba(244, 246, 246, 0.18); }
.tier__benefits li { display: grid; grid-template-columns: 18px 1fr; gap: var(--s-100); align-items: start; }
.tier__benefits .icon { margin-top: 3px; color: var(--signal); }
.tier--featured .tier__benefits .icon { color: #8cc3ef; } /* light jersey blue on the navy card */
.tier--featured .btn--outline { color: var(--on-ink); }
.tier__cta { margin-top: var(--s-200); align-self: flex-start; }
.packages__note { margin-top: var(--s-400); max-width: 720px; }

/* Instagram */
.insta { background: var(--fog); }
.insta__grid { display: grid; gap: var(--s-300); }
@media (min-width: 768px) { .insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post { display: grid; align-content: start; gap: var(--s-200); padding: var(--s-100); border-radius: var(--r-2xl); background: var(--paper); }
.post__media { aspect-ratio: 4 / 5; border-radius: var(--r-sm); }
.post__media .photo { height: 100%; }
.post__embed { position: absolute; inset: 0; overflow: auto; background: var(--paper); }
.post__embed iframe { margin: 0 auto !important; }
.post__body { display: grid; gap: var(--s-75); padding: 0 var(--s-100) var(--s-100); }
.post__actions { display: flex; flex-wrap: wrap; gap: var(--s-200); margin-top: var(--s-50); }
.insta__note { margin-top: var(--s-300); }

/* Gallery */
.gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; grid-auto-flow: dense; gap: var(--s-100); }
@media (min-width: 768px) { .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: var(--s-200); } }
.gallery__item .frame { height: 100%; }
.gallery__item:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery__item--tall { grid-row: span 2; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 18, 26, 0.88); }
.lightbox img { width: auto; height: auto; max-width: min(calc(100vw - 160px), 1600px); max-height: calc(100vh - 128px); border-radius: var(--r-lg); }
@media (max-width: 767px) { .lightbox img { max-width: calc(100vw - 32px); } }
.lightbox__nav { position: fixed; top: 50%; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: var(--r-full); background: rgba(15, 34, 48, 0.72); color: #fff; cursor: pointer; }
.lightbox__nav--prev { left: var(--s-200); }
.lightbox__nav--prev .icon { transform: rotate(90deg); }
.lightbox__nav--next { right: var(--s-200); }
.lightbox__nav--next .icon { transform: rotate(-90deg); }
.lightbox__close { position: fixed; top: var(--s-200); right: var(--s-200); z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-full); background: rgba(15, 34, 48, 0.72); color: #fff; cursor: pointer; }

/* FAQ */
.faq__grid { display: grid; gap: var(--s-500); }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: 4fr 7fr; gap: var(--s-800); } }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-300); padding-block: var(--s-300); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; transition: transform 500ms var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { display: grid; gap: var(--s-100); padding-bottom: var(--s-300); max-width: 64ch; color: var(--basalt); }

/* Contact */
.contact { background: var(--fog); }
.contact__grid { display: grid; gap: var(--s-600); }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 5fr 6fr; gap: var(--s-800); } }
.contact__intro { display: grid; align-content: start; gap: var(--s-300); }
.person { display: grid; grid-template-columns: 72px 1fr; gap: var(--s-200); align-items: start; padding-top: var(--s-300); border-top: 1px solid var(--line); }
.person--text { grid-template-columns: 1fr; }
.person__photo { width: 72px; height: 72px; border-radius: var(--r-full); overflow: hidden; }
.person__photo .photo { height: 100%; }
.person > div { display: grid; gap: var(--s-50); }
.contact__form { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--paper); }
@media (min-width: 768px) { .contact__form { padding: var(--s-500); } }
.form { display: grid; gap: var(--s-300); }
.field { display: grid; gap: var(--s-75); }
.field-row { display: grid; gap: var(--s-300); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s-100) var(--s-200);
  border: 1px solid #b9c3c9; border-radius: var(--r-lg); background: var(--paper);
  font: inherit; font-size: 16px; line-height: 24px; color: var(--ink);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--basalt); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(29, 92, 140, 0.25); }
.field .invalid, .field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: var(--s-200); align-items: flex-start; padding: var(--s-200); border-radius: var(--r-xl); }
.notice--ok { background: #e6f2ea; color: #1c4d2c; }
.notice--error { background: #fbe9ec; color: #7d0a1d; }
.form .btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* Footer */
.footer { padding-block: var(--s-700) var(--s-400); }
.footer__backers { display: grid; gap: var(--s-100); padding-bottom: var(--s-500); margin-bottom: var(--s-500); border-bottom: 1px solid rgba(244, 246, 246, 0.14); }
.footer__backer-list { display: flex; flex-wrap: wrap; gap: var(--s-100) var(--s-400); }
.footer__grid { display: grid; gap: var(--s-400); }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1fr auto auto; align-items: start; gap: var(--s-600); } }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-200) var(--s-300); }
.footer .lang a { color: var(--on-ink-muted); }
.footer .lang a[aria-current="true"], .footer .lang a:hover { color: var(--on-ink); background: var(--ink-2); }
.footer__base { margin-top: var(--s-600); padding-top: var(--s-300); border-top: 1px solid rgba(244, 246, 246, 0.14); }

/* Simple pages: privacy, error */
.page { padding-top: calc(var(--nav-h) + var(--s-800)); padding-bottom: var(--section); }
.page__inner { display: grid; gap: var(--s-300); max-width: 760px; }
.page__back { margin-bottom: var(--s-200); }

/* 404 */
.lost { position: relative; min-height: 100svh; display: grid; align-items: center; background: var(--ink); }
.lost__photo { position: absolute; inset: 0; opacity: 0.55; }
.lost__inner { position: relative; display: flex; justify-content: center; padding-block: var(--s-800); }
.lost .bib { max-width: 480px; display: grid; gap: var(--s-200); justify-items: start; }

/* Motion is added by site.js; without script or with reduced motion everything is simply visible. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}

@media (min-width: 640px) { .form .btn { justify-self: start; } }
@media (min-width: 560px) and (max-width: 1099px) { .nav__cta { display: inline-flex; margin-left: auto; } .nav__toggle { margin-left: 0; } }

/* Phones: a compact hero so the main button and the sponsor strip are on the first screen (390x844). */
@media (max-width: 767px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s-200)); }
  .hero__photo { height: clamp(200px, 30svh, 280px); min-height: 0; }
  .hero__inner { margin-top: calc(-1 * var(--s-500)); }
  .bib { padding-top: var(--s-300); }
  .bib__proof { margin-bottom: var(--s-100); font-size: 12px; line-height: 16px; }
  .bib__sub { margin-top: var(--s-100); font-size: 16px; line-height: 24px; }
  .bib__actions { margin-top: var(--s-200); }
  .bib__sponsor { margin-top: var(--s-200); padding-block: var(--s-100); }
  .display-1 { font-size: 36px; line-height: 40px; }
  /* Six of the gallery's photos are enough on a phone; the pattern still closes without holes. */
  .gallery__item:nth-child(n + 7) { display: none; }
}
/* An action is always in reach: from 360px the bar shows the sponsor button, the name gives way below 480px. */
@media (max-width: 559px) {
  .nav__cta { display: inline-flex; margin-left: auto; }
  .nav__toggle { margin-left: 0; }
  .nav__bar { gap: var(--s-100); }
}
@media (max-width: 479px) { .nav__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Tablets (768-1199): the same compact hero, so the bib's button is on the first screen at 1024x768. */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s-300)); }
  .hero__photo { height: clamp(240px, 36svh, 360px); min-height: 0; }
  .hero__inner { margin-top: calc(-1 * var(--s-600)); }
  .bib { padding-top: var(--s-400); }
  .bib .display-1 { font-size: 60px; line-height: 60px; }
}
/* Phones may get their own photo (hero.mobilePhoto) through <picture>; it brings its own focal point. */
@media (max-width: 767px) { .photo img { object-position: var(--focal-m, var(--focal, 50% 50%)); } }
