/*
 * Trova landing page. Competition-day paper: a bib pinned on the athlete, a
 * results board for the twelve days, an entry slip for the form.
 *
 * Fonts: Changa (Arabic and the Latin words inside it) and Big Shoulders
 * Display (numerals and the bib strips). Both from Google Fonts, both OFL.
 * DIN Next LT Arabic is the brand face for the ad captions and is a licensed
 * commercial font; it is deliberately not used on this public page.
 */

:root {
  --navy: #0c1a33;
  --navy-2: #13264a;
  --navy-3: #1b325e;
  --ink: #0b0b0b;
  --ink-2: #2a2f3a;
  --ink-3: #4e5563;
  --paper: #ffffff;
  --paper-2: #f2f0ea;
  --line: #d9d6cf;
  --orange: #f26b1d;
  --orange-2: #d4540f;
  --gold: #e2b13c;
  --star: #b7791f;
  --teal: #178f8a;
  --teal-2: #0f6b67;
  --red: #c8102e;
  --on-navy: #ffffff;
  --on-navy-2: #b9c4da;

  --font: "Changa", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-num: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --narrow: 38rem;
  --pad: 1.25rem;
  --radius: 6px;
  --bar-h: 4.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--navy);
  overflow-x: hidden;
}

[hidden] { display: none !important; }

[dir="rtl"] { text-align: right; }

img, video { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; }

h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.6em;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: var(--narrow); }

.section { padding-block: 3.5rem; }
.section--white { background: var(--paper); }
.section--paper { background: var(--paper-2); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section__lead { max-width: 40rem; color: var(--ink-2); margin-bottom: 1.75rem; }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.6rem 1.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms, box-shadow 160ms;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
  box-shadow: 0 6px 18px -6px rgba(242, 107, 29, 0.55);
}
.btn--primary:hover { background: var(--orange-2); border-color: var(--orange-2); }
.btn--ghost {
  background: transparent;
  color: var(--on-navy);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--block { width: 100%; }
.btn--stack { flex-direction: column; gap: 0.05rem; line-height: 1.15; padding-block: 0.5rem; }
.btn--stack small { font-size: 0.8rem; font-weight: 600; opacity: 0.85; }
.btn--stack span { font-size: 1.125rem; font-weight: 800; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.link {
  display: inline-block;
  font-weight: 600;
  color: var(--on-navy);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--orange);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------- guard */

.guard {
  position: relative;
  z-index: 60;
  padding: 0.85rem var(--pad);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  background:
    repeating-linear-gradient(-45deg, var(--gold) 0 14px, #f7d77a 14px 28px);
  border-bottom: 3px solid var(--ink);
}

/* ------------------------------------------------------------ top bar */

.top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  padding-top: calc(0.9rem + env(safe-area-inset-top));
}
#guard:not([hidden]) ~ header.top { position: relative; background: var(--navy); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand__mark { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.4); }

.top__cta {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  background: rgba(12, 26, 51, 0.45);
  backdrop-filter: blur(6px);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  color: var(--on-navy);
  background: var(--navy);
}

.hero__media {
  position: relative;
  height: min(66svh, 36rem);
  min-height: 27rem;
  background: var(--navy-2) url("/img/hero-sled.webp") center 18% / cover no-repeat;
  overflow: hidden;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(12,26,51,0.55) 0%, rgba(12,26,51,0) 28%, rgba(12,26,51,0) 55%, var(--navy) 100%);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) 2.5rem;
  margin-top: -5rem;
}
.hero__copy h1 {
  font-size: clamp(1.9rem, 1.2rem + 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.hero__copy p {
  max-width: 34rem;
  font-size: 1.0625rem;
  color: var(--on-navy-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero__actions .btn { flex: 1 1 12rem; }

/* The bib. One pinned object; nothing else on the page borrows it. */
.bib {
  position: absolute;
  z-index: 3;
  bottom: 6.25rem;
  left: 0.9rem;
  width: 11rem;
  padding: 0.55rem 0.9rem 0.85rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 12px 12px, var(--navy) 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 12px) 12px, var(--navy) 3px, transparent 4px),
    radial-gradient(circle at 12px calc(100% - 12px), var(--navy) 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), var(--navy) 3px, transparent 4px),
    var(--paper);
  border-radius: 3px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35);
  transform: rotate(-3deg);
  animation: bib-pin 900ms var(--ease-out) both;
}
.bib__strip {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0.35rem 0.1rem;
  padding: 0.15rem 0.5rem;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: #fff;
  background: var(--orange);
  text-align: left;
}
.bib__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  line-height: 0.9;
}
.bib__digits {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(4.25rem, 18vw, 7.5rem);
  letter-spacing: -0.02em;
  line-height: 0.9;
}
.bib__unit {
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
}
.bib__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.4rem;
  padding-top: 0.45rem;
  border-top: 2px dashed var(--line);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: center;
}
.bib__meta span:last-child { color: var(--ink-3); font-weight: 600; font-size: 0.78rem; }

@keyframes bib-pin {
  from { opacity: 0; transform: translateY(-28px) rotate(-9deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-3deg); }
}

/* -------------------------------------------------------------- ticker */

.ticker {
  overflow: hidden;
  background: var(--orange);
  color: var(--ink);
  border-block: 3px solid var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  gap: 0;
  padding-block: 0.55rem;
  animation: ticker 40s linear infinite;
}
.ticker__track span { padding-inline: 1.25rem; }
.ticker__track span + span::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-inline-end: 1.25rem;
  background: var(--ink);
  border-radius: 50%;
  vertical-align: middle;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* --------------------------------------------------------------- board */

.board {
  padding-block: 3rem;
  color: var(--on-navy);
  background: var(--navy);
}
.board__grid { display: grid; gap: 1.75rem; }

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.6rem;
  line-height: 1;
}
.price__lead { font-size: 1.25rem; font-weight: 600; color: var(--on-navy-2); }
.price__lead:first-child { flex-basis: 100%; margin-bottom: 0.35rem; }
.price__num {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(4.5rem, 3rem + 7vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: #fff;
  unicode-bidi: isolate;
}
.price small {
  flex-basis: 100%;
  display: block;
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--on-navy-2);
}
.price small:empty { display: none; }

.board__side { display: grid; gap: 0.9rem; align-content: start; }
.board__seats { font-size: 1.1rem; line-height: 1.5; }
.board__seats strong { color: var(--gold); }
.board__note { color: var(--on-navy-2); line-height: 1.5; }
.board__side .btn { justify-self: start; min-width: 14rem; }

/* Seat counter. Numbers from config, the bar is taken / total. */
.seats { display: grid; gap: 0.5rem; }
.seats__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.seats__label { font-weight: 700; color: var(--on-navy-2); }
.seats__num {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}
.seats__num b { color: var(--gold); font-weight: 900; }
.seats__of { margin-inline: 0.15rem; color: var(--on-navy-2); font-weight: 700; }
.seats__track {
  height: 0.7rem;
  background: var(--navy-3);
  border-radius: 999px;
  overflow: hidden;
}
.seats__fill {
  display: block;
  height: 100%;
  width: 100%;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 8px, #f0c75e 8px 16px);
  border-radius: 999px;
  transform: scaleX(var(--fill, 0));
  transform-origin: right center;
  transition: transform 900ms var(--ease-out);
}
.seats .board__seats { margin-top: 0.25rem; }

/* --------------------------------------------------------------- split */

.split { display: grid; gap: 2rem; align-items: center; }

.photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 9; }

.check li {
  position: relative;
  padding-inline-start: 2rem;
  padding-block: 0.4rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.check li + li { border-top: 1px solid var(--line); }
.check li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.1rem;
  top: 0.95rem;
  width: 0.85rem;
  height: 0.5rem;
  border-inline-start: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg) scaleX(-1);
}

/* ------------------------------------------------------------ the days */

.phase { margin-top: 2rem; }
.phase + .phase { margin-top: 3rem; }

.phase__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--ink);
}
.phase__where { font-size: 1.6rem; font-weight: 800; }
.phase__what { font-size: 0.95rem; font-weight: 600; color: var(--ink-3); }
.phase--sea .phase__title { border-color: var(--teal); }
.phase--sea .phase__where { color: var(--teal-2); }

.days { display: grid; gap: 0.5rem; }

.day {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 0.9rem;
  padding: 0.85rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.day__num {
  align-self: start;
  text-align: center;
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  padding: 0.35rem 0 0.25rem;
  color: var(--ink);
  background: var(--paper-2);
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--ink);
}
.phase--sea .day__num { box-shadow: inset 0 0 0 2px var(--teal); color: var(--teal-2); }
.day__dow {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.day__body p { font-weight: 600; line-height: 1.5; }

.slots {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  line-height: 1.5;
}
.slots dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange-2);
  padding-top: 0.1rem;
}
.phase--sea .slots dt { color: var(--teal-2); }
.slots dd { font-weight: 600; }

/* ------------------------------------------------------------- places */

.tiers { display: grid; gap: 2.25rem; }
.tier__name {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.1rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.6;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
}
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.place h4 { font-size: 1rem; font-weight: 800; line-height: 1.3; margin-top: 0.6rem; }
.place p { color: var(--ink-2); line-height: 1.6; }
.place__meta { font-weight: 700; font-size: 0.875rem; color: var(--ink-3) !important; margin-top: 0.1rem; }
.place .photo { aspect-ratio: 4 / 3; }

/* ----------------------------------------------------------- included */

.incl { counter-reset: incl; display: grid; gap: 0; border-top: 3px solid var(--ink); }
.incl li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.incl__k { font-weight: 800; }
.incl__note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  font-weight: 600;
  line-height: 1.55;
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------- posts */

.posts { padding-bottom: 3rem; }
.section__lead--light { color: var(--on-navy-2); margin-bottom: 1.25rem; }
.posts__strip {
  display: flex;
  gap: 0.75rem;
  padding-inline: var(--pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.posts__strip::-webkit-scrollbar { display: none; }
.posts__strip img {
  flex: none;
  width: min(76vw, 20rem);
  min-width: 0;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  scroll-snap-align: start;
  background: var(--navy-2);
}

/* ------------------------------------------------------------ packages */

/* The package pick is the form's last field. What every package shares is said
   once, above the cards; each card carries only what differs: price, room, and
   the two hotels. */

.pkg-all {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem 0.8rem;
  background: var(--paper-2);
  border-radius: var(--radius);
}
.pkg-all__title { font-weight: 800; font-size: 0.9rem; color: var(--ink-2); margin: 0 0 0.3rem; }
.pkg-all ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem 1rem; }
.pkg-all li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.55;
}
.pkg-all li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.32rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--teal) no-repeat center / 0.6rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E");
}

.pkgs { display: grid; gap: 0.75rem; }

.pkg {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem 0.75rem;
  padding: 0.9rem 1rem 0.85rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 140ms, box-shadow 140ms;
}
.pkg:hover { border-color: var(--ink-3); }
.pkg input {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1rem;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}
.pkg:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink), 0 14px 28px -16px rgba(0,0,0,.35);
}
.pkg:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }

.pkg__dot {
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  border: 2px solid var(--ink-3);
  transition: border-color 140ms, background-color 140ms;
}
.pkg:has(input:checked) .pkg__dot {
  border-color: var(--orange);
  background: radial-gradient(circle, var(--orange) 42%, transparent 47%);
}

.pkg__id { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.55rem; }
.pkg__name { font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.pkg__room {
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.pkg--deluxe .pkg__room { background: var(--navy); color: #fff; }

.pkg__price { display: grid; justify-items: end; line-height: 1; }
.pkg__price bdi {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 2.15rem;
  letter-spacing: -0.02em;
  unicode-bidi: isolate;
}
.pkg__price small { font-weight: 600; color: var(--ink-3); font-size: 0.8rem; margin-top: 0.2rem; }

.pkg__stays {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.1rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
/* City, hotel, stars: three columns so the stars line up down the card even
   when a long hotel name wraps. */
.pkg__stay {
  display: grid;
  grid-template-columns: 2.9rem 1fr auto;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.93rem;
  line-height: 1.45;
}
.pkg__hotel { display: contents; }
.pkg__city { color: var(--ink-3); font-weight: 600; }
.pkg__hotel bdi { font-weight: 700; }

.nowrap { white-space: nowrap; }
.stars { color: var(--star); font-size: 0.85em; letter-spacing: 0.04em; white-space: nowrap; }

[data-invalid="true"] .pkg { border-color: var(--red); }
#packages .error { margin-top: 0.6rem; }
.pkg__note { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-3); line-height: 1.5; }

/* ------------------------------------------------------------- gallery */

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--paper-2);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------- band */

.band {
  position: relative;
  min-height: 24rem;
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.band__media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 100%;
}
.band__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 62%;
}
.band__img--second { display: none; }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,26,51,0.05) 20%, rgba(12,26,51,0.92) 100%);
}
.band__quote {
  position: relative;
  z-index: 1;
  padding: 6rem var(--pad) 2.5rem;
  max-width: 30rem;
  font-size: clamp(1.4rem, 1rem + 2vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}

/* ------------------------------------------------------------- previous */

.previous { padding-top: 0; }
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-2);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.7);
}
.yt iframe, .yt__play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.yt__play img { object-fit: cover; transition: transform 600ms var(--ease-out); }
.yt__play:hover img { transform: scale(1.03); }
.yt__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.6);
  transition: transform 160ms var(--ease-out), background-color 160ms;
}
.yt__btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.8rem 0 0.8rem 1.35rem;
  border-color: transparent transparent transparent var(--ink);
  transform: translate(-40%, -50%);
}
.yt__play:hover .yt__btn { background: var(--orange-2); transform: translate(-50%, -50%) scale(1.06); }
.yt__play:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* --------------------------------------------------------------- slip */

.slip {
  position: relative;
  padding: 1.5rem 1.25rem 1.75rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 12px 12px, var(--navy) 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 12px) 12px, var(--navy) 3px, transparent 4px),
    var(--paper);
  border-radius: 4px;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.7);
}
.slip__strip {
  display: flex;
  justify-content: space-between;
  margin: 0 0.5rem 1.25rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--ink);
  text-align: left;
}
.slip h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
.slip__lead { color: var(--ink-2); margin-bottom: 1.5rem; line-height: 1.6; }
/* Trip dates and the registration deadline: two big numerals on an ink panel,
   the same black as the slip strip above, the deadline in orange. */
.slip__facts {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  row-gap: 0.25rem;
  margin: -0.25rem 0 1.5rem;
  padding: 0.85rem 1rem 0.8rem;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}
/* Each column borrows the panel's two rows (subgrid), so the numerals share a
   row even when the deadline label wraps on a narrow phone. */
.slip__facts > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; }
.slip__facts > div + div {
  padding-inline-start: 1rem;
  margin-inline-start: 1rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.22);
}
.slip__facts dt { font-weight: 700; font-size: 0.85rem; line-height: 1.3; color: var(--on-navy-2); align-self: end; }
.slip__facts dd { margin: 0; display: grid; justify-items: start; }
.fact__num {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  unicode-bidi: isolate;
}
.fact__sub { margin-top: 0.3rem; font-weight: 600; font-size: 0.85rem; line-height: 1.3; color: var(--on-navy-2); }
.slip__facts .is-deadline .fact__num { color: var(--orange); }
/* Phones narrower than 360px (iPhone SE first generation and similar). */
@media (max-width: 22rem) {
  .slip__facts { padding-inline: 0.8rem; }
  .slip__facts > div + div { padding-inline-start: 0.7rem; margin-inline-start: 0.7rem; }
  .fact__num { font-size: 1.7rem; }
}

.slip__foot { margin-top: 0.9rem; font-size: 0.9rem; color: var(--ink-3); text-align: center; }

.field { margin-bottom: 1.25rem; }
.field > label { display: block; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.4; }
.hint { display: block; font-weight: 500; font-size: 0.9rem; color: var(--ink-3); }
.opt { font-weight: 500; font-size: 0.85rem; color: var(--ink-3); }

input[type="text"],
input[type="tel"],
select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  border: 2px solid var(--ink-2);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 120ms, box-shadow 120ms;
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(0% + 1.1rem) 55%, calc(0% + 1.5rem) 55%;
  background-size: 0.4rem 0.4rem;
  background-repeat: no-repeat;
  padding-inline-start: 2.4rem;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 107, 29, 0.25);
}

/* 16px minimum stops iOS Safari zooming the whole page on focus. */
input, select, button { font-size: max(1rem, 16px); }

.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choices label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1rem 0.5rem 0.9rem;
  font-weight: 600;
  border: 2px solid var(--ink-2);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  transition: background-color 120ms, border-color 120ms;
}
.choices input {
  margin: 0;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--orange-2);
  flex: none;
}
.choices label:has(input:checked) {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.choices label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.error { color: var(--red); font-size: 0.925rem; font-weight: 600; margin-top: 0.4rem; line-height: 1.4; }
.error:empty { display: none; }

[data-invalid="true"] input,
[data-invalid="true"] select,
[data-invalid="true"] .choices label { border-color: var(--red); }
[data-invalid="true"] > label { color: var(--red); }

/* Honeypot. Clipped rather than display:none, which some bots skip.
   Never push it off-screen with a negative left: in RTL the left side is the
   scrollable end, and -9999px becomes ten thousand pixels of horizontal scroll. */
.hp {
  position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; clip: rect(0 0 0 0); pointer-events: none;
}

/* ----------------------------------------------------------------- faq */

.qa { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.3rem; }
.qa p { color: var(--ink-2); line-height: 1.6; }

/* -------------------------------------------------------------- footer */

.foot {
  padding: 3rem 0 calc(1.5rem + var(--bar-h) + env(safe-area-inset-bottom));
  color: var(--on-navy-2);
  background: var(--navy);
  border-top: 3px solid var(--orange);
}
.foot__grid { display: grid; gap: 1.75rem; }
.foot__brand { display: flex; align-items: center; gap: 0.9rem; color: #fff; line-height: 1.4; }
.foot__brand img { border-radius: 50%; }
.foot__contact p { line-height: 1.8; }
.foot__contact a { color: #fff; text-decoration: none; font-weight: 600; }
.foot__contact a:hover { text-decoration: underline; }

details { border-top: 1px solid rgba(255,255,255,.15); }
details:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
summary {
  cursor: pointer;
  padding: 0.75rem 0;
  font-weight: 700;
  color: #fff;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  float: left;
  font-family: var(--font-num);
  font-size: 1.4rem;
  line-height: 1;
}
details[open] summary::after { content: "\2212"; }
.legal { padding: 0 0 1rem; font-size: 0.95rem; line-height: 1.7; }
.legal h4 { color: #fff; font-size: 1rem; margin: 0.75rem 0 0.15rem; }

.foot__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.foot__copy { font-size: 0.85rem; }
.foot__bottom .nabu-badge { flex: none; }

@media (min-width: 48rem) {
  .foot__bottom { flex-direction: row; justify-content: space-between; }
}

/* ----------------------------------------------------------- sticky bar */

.bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--bar-h);
  padding: 0.6rem var(--pad) calc(0.6rem + env(safe-area-inset-bottom));
  color: #fff;
  background: rgba(12, 26, 51, 0.92);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--orange);
  transform: translateY(0);
  transition: transform 320ms var(--ease-out), visibility 0s;
}
.bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform 320ms var(--ease-out), visibility 0s 320ms; }
.bar__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; line-height: 1.1; font-size: 0.85rem; color: var(--on-navy-2); }
.bar__price bdi { font-family: var(--font-num); font-weight: 900; font-size: 1.8rem; color: #fff; letter-spacing: -0.01em; }
.bar .btn { flex: none; min-height: 2.9rem; padding-inline: 1.25rem; }
.bar .btn--stack small { font-size: 0.7rem; }
.bar .btn--stack span { font-size: 1rem; }

/* ------------------------------------------------------------- desktop */

@media (min-width: 48rem) {
  :root { --pad: 2rem; }
  .section { padding-block: 5rem; }

  .top { padding: 1.25rem var(--pad); }
  .top__cta { font-size: 1rem; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    min-height: min(92vh, 52rem);
    padding: 5.5rem var(--pad) 3rem;
    gap: 3rem;
  }
  .hero__media {
    order: 2;
    width: min(100%, 30rem);
    height: min(76vh, 40rem);
    min-height: 28rem;
    justify-self: start;
    border-radius: 8px;
    overflow: visible;
    background-position: center 20%;
  }
  .hero__media::after { border-radius: 8px; background: linear-gradient(to bottom, rgba(12,26,51,0.25), rgba(12,26,51,0) 40%, rgba(12,26,51,0.55) 100%); }
  .hero__video { border-radius: 8px; }
  .hero__copy { order: 1; padding: 0; margin: 0; max-width: 34rem; }
  .hero__copy h1 { font-size: clamp(2.6rem, 1.6rem + 2.6vw, 3.6rem); }
  .hero__copy p { font-size: 1.15rem; }
  .hero__actions .btn { flex: 0 1 auto; min-width: 12rem; }
  .bib {
    bottom: -1.25rem;
    left: -1.5rem;
    width: 16.5rem;
    transform: rotate(-4deg);
  }
  .bib__strip { font-size: 0.8rem; letter-spacing: 0.08em; }
  .bib__meta { font-size: 0.95rem; }
  .bib__meta span:last-child { font-size: 0.9rem; }
  @keyframes bib-pin {
    from { opacity: 0; transform: translateY(-28px) rotate(-10deg); }
    to   { opacity: 1; transform: translateY(0) rotate(-4deg); }
  }

  .board { padding-block: 4rem; }
  .board__grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; }
  .board__side { padding-inline-start: 3rem; border-inline-start: 1px solid var(--navy-3); }

  .split { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .split--reverse .split__media { order: -1; }
  .photo--tall { aspect-ratio: 4 / 5; max-height: 34rem; }

  .phase__title { gap: 0.5rem 1.5rem; }
  .days { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .day { padding: 1.1rem 1.1rem; grid-template-columns: 4.75rem 1fr; }
  .day__num { font-size: 3rem; }

  .tiers { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .places { gap: 1.25rem; }
  .place h4 { font-size: 1.1rem; }

  .posts__strip { gap: 1rem; padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); scroll-padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
  .posts__strip img { width: 17.5rem; }


  .incl li { grid-template-columns: 9rem 1fr; padding: 1rem 0; }

  .gallery { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }

  .band { min-height: 36rem; }
  .band__media { grid-template-columns: 1fr 1fr; }
  .band__media img { object-position: center 58%; }
  .band__media .band__img--second { object-position: center 48%; }
  .band__img--second { display: block; }
  .band__quote { padding: 8rem var(--pad) 3.5rem; max-width: var(--wrap); margin-inline: auto; width: 100%; font-size: 2.25rem; }

  .slip { padding: 2.25rem 2.5rem 2.5rem; }

  .foot__grid { grid-template-columns: 1fr 1fr 1.4fr; align-items: start; }

  .bar { justify-content: center; gap: 2rem; }
  .bar__price { font-size: 0.95rem; }
}

@media (min-width: 64rem) {
  .hero { gap: 5rem; }
}

/* ---------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bib { animation: none; }
  .ticker__track { animation: none; }
  .bar { transition: none; }
  .btn { transition: none; }
}

.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;
}
