/*
  Solstice '27: music festival landing (Screenery template 05)
  1. Tokens, base and browser surfaces. Black ground, chrome silver, acid green, ultraviolet.
  2. Blob layer (fixed, behind everything), header, hero, lineup wall, schedule grid.
  3. Tickets drawn with CSS masks, receipt, ferry board, FAQ, footer.
  4. Components: the themed kit (select, toast, confirm dialog, form surfaces), then motion and breakpoints.
*/

/* ---------- 1. Tokens ---------- */
:root {
  --black: #050505;
  --ink: #0c0c0e;
  --ink-2: #16161a;
  --line: #2b2c31;
  --chrome-hi: #f4f6f8;
  --chrome: #c9ced6;
  --chrome-mid: #9aa0a9;
  --chrome-lo: #565a62;
  --acid: #c6ff00;
  --uv: #6a00ff;
  --uv-lite: #b79aff;
  --paper: #ecefe6;
  --paper-ink: #101012;
  --error: #b00024;
  --chrome-grad: linear-gradient(115deg, #f6f7f9 0%, #c3c8d0 28%, #f1f3f5 47%, #a6acb5 70%, #e1e4e8 100%);

  --font: "Syne", ui-sans-serif, system-ui, sans-serif;
  --mono: "Syne Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --section: clamp(7rem, 11vw, 10rem);
  --gutter: clamp(1rem, 4vw, 4rem);
  --top-h: 4.5rem;

  --r-pill: 999px;
  --r-lg: 1.5rem;
  --r-md: 0.875rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Blob geometry, shared by the WebGL blob, the CSS blob and the hero ring.
     --hero-cy is where the blob rests before script.js takes over: the middle of the hero title. */
  --blob-unit: min(120vw, 100svh);
  --blob-d: calc(var(--blob-unit) * 0.66);
  --hero-cy: calc(50svh - 1rem);
}

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

html {
  background: var(--black);
  color-scheme: dark;
  scrollbar-color: var(--chrome-lo) var(--black);
  scroll-padding-top: calc(var(--top-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--chrome);
  accent-color: var(--acid);
  caret-color: var(--acid);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--acid); color: var(--black); }
[hidden] { display: none !important; }

/* Scrollbars: a chrome thumb in a black gutter (Firefox takes scrollbar-color on html). */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--chrome-lo); border: 3px solid var(--black); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--acid); }

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, p, ul, ol, figure, fieldset, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }

h2 {
  font-weight: 800;
  font-size: clamp(2.5rem, 5.8vw, 5.25rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--chrome-hi);
  text-wrap: balance;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; }
.sprite symbol { overflow: visible; }

.wrap {
  width: min(100% - 2 * var(--gutter), 84rem);
  margin-inline: auto;
}

.skip {
  position: fixed;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--acid);
  color: var(--black);
  font-weight: 800;
  border-radius: var(--r-pill);
  translate: 0 -300%;
}
.skip:focus-visible { translate: 0 0; outline-color: var(--chrome-hi); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 0 1.75rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: translate 0.4s var(--ease), background-color 0.25s, color 0.25s, box-shadow 0.4s var(--ease);
}
.btn .icon { transition: translate 0.4s var(--ease); }
.btn:hover .icon { translate: 4px 0; }
.btn:active { translate: 0 1px; }

/* The gel pill: flat acid with a bevel, the one glossy object on the page. */
.btn--acid {
  background: var(--acid);
  color: var(--black);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.65),
    inset 0 -8px 14px rgb(0 0 0 / 0.16),
    0 10px 18px -8px rgb(0 0 0 / 0.8);
}
.btn--acid:hover {
  translate: 0 -2px;
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.85),
    inset 0 -8px 14px rgb(0 0 0 / 0.1),
    0 16px 22px -10px rgb(0 0 0 / 0.8);
}
.btn--line { border-color: var(--chrome); color: var(--chrome-hi); }
.btn--line:hover { background: var(--chrome-hi); color: var(--black); }
.btn--sm { min-height: 2.75rem; padding: 0 1.25rem; font-size: 0.8125rem; }

/* ---------- Segmented day filter ---------- */
.seg {
  display: inline-flex;
  padding: 4px;
  border: 1.5px solid var(--chrome-lo);
  border-radius: var(--r-pill);
  background: var(--black);
}
.seg label { position: relative; cursor: pointer; }
.seg input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.seg span {
  display: grid;
  place-items: center;
  min-width: 3.5rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--chrome);
  transition: background-color 0.25s, color 0.25s;
}
.seg label:hover span { color: var(--chrome-hi); background: var(--ink-2); }
.seg input:checked + span { background: var(--acid); color: var(--black); }
.seg input:focus-visible + span { outline: 2px solid var(--acid); outline-offset: 3px; }

/* ---------- 2. Blob layer ---------- */
/* One layer the size of the page. The box inside it is 1.6 blob diameters wide, so the chrome has
   room to bulge; script.js moves it from perch to perch with translate and scale. */
.blob {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: clip;
  pointer-events: none;
}
.blob__box {
  position: absolute;
  left: 50%;
  top: var(--hero-cy);
  width: calc(var(--blob-d) * 1.6);
  aspect-ratio: 1;
  translate: -50% -50%;
  will-change: translate, scale;
}

/* Stacking: the hero title, the footer sign-off and the two photos sit under the blob, everything
   else above it. .ghost repeats the big letters as an outline on top, so the chrome never eats a word. */
.hero__meta, .hero__pitch, .count, .tape, .lineup, .inter__text, .sched, .tix,
.ferry h2, .lead, .facts, .board, .faq, .foot__grid, .foot__legal {
  position: relative;
  z-index: 2;
}
.ghost {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--chrome-hi);
  pointer-events: none;
}

.blob__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.gl .blob__gl { opacity: 1; }
.gl .blob__css { display: none; }

/* CSS fallback: the same chrome without WebGL. Hard bands of reflected light (horizon, strips,
   an ultraviolet and an acid panel) curve around the ball, and an SVG displacement filter melts
   the bands and the outline together. */
.blob__css {
  position: absolute;
  inset: 22.5%;
  filter: url(#liquid);
}
.blob__css i {
  position: absolute;
  inset: 0;
  border-radius: 58% 42% 47% 53% / 45% 56% 44% 55%;
  background:
    radial-gradient(130% 105% at 34% 4%,
      #f4f6f8 0 9%, #0c0c0e 9.5% 19%, #fff 19.5% 24%, #141418 24.5% 37%,
      #6a00ff 37.5% 46%, #050505 46.5% 51%, #fff 51.5% 56%, #9aa0a9 60%, #16161a 68%,
      #c6ff00 68.5% 77%, #0c0c0e 77.5% 86%, #c9ced6 86.5% 100%);
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 0.6),
    inset -24px -34px 60px rgb(0 0 0 / 0.5);
}

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-5);
  height: var(--top-h);
  padding-inline: var(--gutter);
  background: var(--black);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s, border-color 0.4s;
}
.js .top:not(.is-stuck) { background: transparent; border-color: transparent; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  justify-self: start;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chrome-hi);
}
.brand b { color: var(--acid); font-weight: 800; }
.brand__star { fill: var(--acid); transition: rotate 0.8s var(--ease); }
.brand:hover .brand__star { rotate: 180deg; }

.top__nav { display: flex; gap: 0.25rem; }
.top__nav a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chrome);
  transition: color 0.2s, background-color 0.2s;
}
.top__nav a:hover { color: var(--black); background: var(--chrome-hi); }
.top__cta { justify-self: end; }

.top__menu {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  justify-self: end;
  border: 1.5px solid var(--chrome-lo);
  border-radius: 50%;
  background: var(--black);
  color: var(--chrome-hi);
}

/* Mobile menu (native dialog: Escape and focus trapping come for free) */
.menu {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0 var(--gutter) var(--s-6);
  border: 0;
  background: var(--acid);
  color: var(--black);
}
.menu[open] { display: flex; flex-direction: column; }
.menu::backdrop { background: var(--black); }
.menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--top-h);
  flex: none;
}
.menu .brand { color: var(--black); }
.menu .brand b { color: var(--uv); }
.menu .brand__star { fill: var(--black); }
.menu .top__menu { display: grid; background: var(--black); border-color: var(--black); color: var(--acid); }
.menu :focus-visible { outline-color: var(--black); }
.menu__nav { display: grid; align-content: center; flex: 1; }
.menu__nav a {
  padding: 0.35rem 0;
  font-weight: 800;
  font-size: clamp(1.875rem, 9vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
}
.menu__nav a:hover { color: var(--uv); }
.menu__foot { font-family: var(--mono); font-size: 0.875rem; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin-top: calc(-1 * var(--top-h));
  padding: calc(var(--top-h) + var(--s-4)) var(--gutter) var(--s-6);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--chrome);
}

.hero__stage {
  position: relative;
  flex: 1;
  display: grid;
  align-content: center;
  /* Room for the bottom line of the poster: countdown on the left, the pitch on the right. */
  padding-bottom: clamp(6rem, 15svh, 9rem);
}

/* The title is the poster: SOL / STICE set on a diagonal with the chrome blob caught between the lines. */
.hero__title { --title: min(19vw, 31svh); }
.hero__sol,
.hero__stice {
  position: relative;
  display: block;
  width: fit-content;
  font-weight: 800;
  font-size: var(--title);
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--chrome-hi);
}
.hero__sol { margin-left: -0.04em; }
.hero__stice { margin-left: auto; }
.hero__stice sup {
  position: absolute;
  right: 0.04em;
  bottom: 100%;
  z-index: 2;
  font-size: 0.25em;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--acid);
}

.hero__pitch {
  position: absolute;
  right: 0;
  bottom: 1rem;
  display: flex;
  align-items: flex-end;
  gap: var(--s-5);
  width: min(39rem, 48vw);
}
.hero__pitch p { flex: 1; color: var(--chrome-hi); text-wrap: pretty; }
.hero__pitch .mono { color: var(--acid); }
.hero__actions { display: grid; gap: var(--s-3); flex: none; }
.hero__actions .btn--line { display: none; }

.count { position: absolute; left: 0; bottom: 1rem; }
.count__label {
  margin-bottom: var(--s-2);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--acid);
}
.count__digits { display: flex; gap: 1.1rem; }
.count__unit { display: grid; }
.count__unit b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--chrome-hi);
}
.count__unit small {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome-mid);
}
.count__unit + .count__unit { padding-left: 1.1rem; border-left: 1px solid var(--chrome-lo); }

/* ---------- Tape ---------- */
.tape { overflow: clip; padding-block: 1.75rem; margin-top: -0.5rem; }
.tape__track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: max-content;
  margin-left: -2rem;
  padding: 0.7rem 0.875rem;
  rotate: -1.4deg;
  background: var(--acid);
  color: var(--black);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tape__track svg { width: 0.9rem; height: 0.9rem; flex: none; fill: var(--uv); }

/* ---------- Section heads ---------- */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-5) var(--s-7);
  margin-bottom: var(--s-6);
}
.sec-head__side { max-width: 26rem; color: var(--chrome); text-wrap: pretty; }

/* ---------- Lineup wall ---------- */
.lineup { padding-block: var(--section) calc(var(--section) * 0.7); }
.lineup__count {
  margin-bottom: var(--s-6);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--uv-lite);
}

.wall {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 1.6rem;
}
.act { max-width: 100%; font-size: 0.75rem; line-height: 1; }
.act__name {
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--chrome-hi);
  overflow-wrap: break-word;
  transition: color 0.25s, -webkit-text-stroke-color 0.25s;
}
/* The day sits like a superscript after the last word, wherever the name wraps. */
.act__meta {
  display: inline-block;
  vertical-align: top;
  margin: 0.3em 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--uv-lite);
}
.act--t1 { flex-basis: 100%; }
.act--t1 .act__name { font-size: clamp(2.5rem, 7.4vw, 8rem); line-height: 0.84; color: var(--acid); }
.act--t1 .act__meta { display: block; margin: 0.55em 0 0.7em; font-size: 0.875rem; color: var(--chrome); }
.act--t2 .act__name { font-size: clamp(1.75rem, 4.1vw, 4.25rem); }
.act--t2:nth-child(even) .act__name { color: transparent; -webkit-text-stroke: 1.5px var(--chrome-hi); }
.act--t2:nth-child(even):hover .act__name { -webkit-text-stroke-color: var(--acid); }
.act--t3 .act__name { font-size: clamp(1.3rem, 2.5vw, 2.5rem); line-height: 1; color: var(--chrome); }
.act:hover .act__name { color: var(--acid); }
.act--t1:hover .act__name { color: var(--chrome-hi); }

/* Day filter: works with :has() alone; script.js only adds the count and the transition. */
.lineup:has(input[value="fri"]:checked) .act:not([data-day="fri"]),
.lineup:has(input[value="sat"]:checked) .act:not([data-day="sat"]),
.lineup:has(input[value="sun"]:checked) .act:not([data-day="sun"]) { display: none; }

/* ---------- Interlude ---------- */
.inter { padding-block: calc(var(--section) * 0.3) var(--section); overflow: clip; }
.inter__photo {
  width: min(100% - 2 * var(--gutter), 84rem);
  margin-inline: auto;
  aspect-ratio: 16 / 6.4;
  border-radius: var(--r-pill);
  overflow: hidden;
  rotate: -2.5deg;
  background: var(--uv);
}
.duo img { width: 100%; height: 100%; object-fit: cover; filter: url(#duo); }
.inter__text {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.inter__line {
  grid-column: 1 / 9;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.7vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--chrome-hi);
  text-wrap: balance;
}
.inter__note { grid-column: 9 / 13; max-width: 22rem; padding-bottom: 0.4rem; text-wrap: pretty; }
.inter__note .mono { color: var(--acid); }

/* ---------- Schedule ---------- */
.sched { padding-bottom: var(--section); }
.sched__grid { --label: clamp(9rem, 12vw, 11rem); --cols: 24; }

.sched:has(input[value="fri"]:checked) .sched__day:not([data-day="fri"]),
.sched:has(input[value="sat"]:checked) .sched__day:not([data-day="sat"]),
.sched:has(input[value="sun"]:checked) .sched__day:not([data-day="sun"]) { display: none; }

.sched__day { display: grid; grid-template-columns: var(--label) 1fr; }
.sched__date {
  align-self: center;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--acid);
}
.sched__hours {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding-block: var(--s-3);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--chrome-mid);
}
.sched__hours span { padding-left: 0.4rem; }

.stage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  border-top: 1px solid var(--line);
}
.stage:last-child { border-bottom: 1px solid var(--line); }
.stage__name {
  align-self: center;
  padding-right: var(--s-4);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--chrome-hi);
}
.stage__name small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--chrome-mid);
}
.stage__sets {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 12));
}
.set {
  grid-column: var(--s) / var(--e);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  min-height: 6rem;
  margin: 0.625rem 3px;
  padding: 0.7rem 0.75rem;
  border: 1.5px solid transparent;
  border-radius: 1.25rem;
  transition: translate 0.4s var(--ease);
}
.set:hover { translate: 0 -3px; }
.set__time { font-family: var(--mono); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.set__to { display: none; }
.set__name {
  font-weight: 800;
  font-size: clamp(0.8125rem, 1vw, 1rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.stage--dome .set { background: var(--chrome-grad); color: var(--black); }
.stage--dome .set--head { background: var(--acid); }
.stage--uv .set { background: var(--uv); color: #fff; }
.stage--tide .set { background: var(--ink); border-color: var(--chrome-mid); color: var(--chrome-hi); }

.sched__foot { max-width: 58ch; margin-top: var(--s-5); font-size: 0.9375rem; color: var(--chrome-mid); }
.sched__foot .mono { color: var(--chrome-hi); }

/* ---------- 3. Tickets ---------- */
.tix { padding-bottom: var(--section); }
.tix__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21.5rem;
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.tix__list { display: grid; gap: var(--s-5); }

.ticket-wrap {
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 18px 22px rgb(0 0 0 / 0.7));
  transition: rotate 0.6s var(--ease), translate 0.6s var(--ease);
}
.ticket-wrap:hover,
.ticket-wrap:focus-within { rotate: 0deg; translate: 0 -4px; }

/* A real ticket: scalloped ends, a perforated tear line and two punched notches, all CSS masks. */
.ticket {
  --stub: 13.5rem;
  --notch: 15px;
  --tooth: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  color: var(--black);
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 calc(100% - 1px), #000),
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 calc(100% - 1px), #000),
    radial-gradient(circle var(--tooth) at 0 50%, #0000 calc(100% - 1px), #000) 0 0 / 100% 22px,
    radial-gradient(circle var(--tooth) at 100% 50%, #0000 calc(100% - 1px), #000) 0 0 / 100% 22px;
  -webkit-mask-repeat: no-repeat, no-repeat, no-repeat round, no-repeat round;
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 calc(100% - 1px), #000),
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 calc(100% - 1px), #000),
    radial-gradient(circle var(--tooth) at 0 50%, #0000 calc(100% - 1px), #000) 0 0 / 100% 22px,
    radial-gradient(circle var(--tooth) at 100% 50%, #0000 calc(100% - 1px), #000) 0 0 / 100% 22px;
  mask-repeat: no-repeat, no-repeat, no-repeat round, no-repeat round;
  mask-composite: intersect;
}
.ticket--chrome { background: var(--chrome-grad); }
.ticket--acid { background: var(--acid); }
.ticket--uv { background: var(--uv); color: #fff; }

.ticket__main {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: 1.6rem 1.75rem 1.4rem 2.1rem;
}
.ticket__name {
  padding-right: 6.5rem;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.875rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.ticket__desc { max-width: 34ch; font-size: 1rem; line-height: 1.35; text-wrap: pretty; }
.ticket__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: var(--s-2);
}
.ticket__perks li {
  padding: 0.3rem 0.7rem;
  border: 1.5px solid currentColor;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  line-height: 1.2;
}
.ticket__print {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  margin-top: var(--s-4);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ticket__code {
  position: absolute;
  right: 1.5rem;
  top: 1.6rem;
  width: 5rem;
  height: 2.4rem;
  background:
    repeating-linear-gradient(90deg, currentColor 0 2px, #0000 2px 5px, currentColor 5px 6px, #0000 6px 8px, currentColor 8px 11px, #0000 11px 13px, currentColor 13px 14px, #0000 14px 18px);
}

.ticket__stub {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--s-3);
  padding: 1.4rem 1.25rem;
  border-left: 2px dashed color-mix(in srgb, currentColor 55%, transparent);
}
.ticket__price { font-size: 2.5rem; line-height: 1; }
.stepper { display: inline-flex; align-items: center; gap: 0.25rem; }
.stepper__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.75px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.2s, color 0.2s, scale 0.3s var(--ease);
}
.stepper__btn:hover:not(:disabled) { background: var(--black); color: var(--acid); border-color: var(--black); }
.stepper__btn:active:not(:disabled) { scale: 0.92; }
.stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper__qty { min-width: 2.25rem; font-size: 1.5rem; line-height: 1; text-align: center; }
.stepper__hint { min-height: 1em; font-size: 0.75rem; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; }
.ticket :focus-visible { outline-color: currentColor; }

/* ---------- Receipt ---------- */
.receipt {
  position: sticky;
  top: calc(var(--top-h) + 1.25rem);
  padding: 1.6rem 1.35rem 2.4rem;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: 0.875rem;
  line-height: 1.4;
  rotate: 1.2deg;
  -webkit-mask:
    conic-gradient(from -45deg at 50% 100%, #0000 0, #000 1deg 89deg, #0000 90deg) 0 100% / 14px 8px repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 7.5px) no-repeat;
  mask:
    conic-gradient(from -45deg at 50% 100%, #0000 0, #000 1deg 89deg, #0000 90deg) 0 100% / 14px 8px repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 7.5px) no-repeat;
}
.receipt__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}
.receipt__sub {
  margin: 0.15rem 0 var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1.5px dashed var(--paper-ink);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}
.receipt__lines { display: grid; gap: 0.45rem; }
.receipt__lines li,
.receipt__total { display: flex; justify-content: space-between; gap: var(--s-4); }
.receipt__lines li span:last-child { flex: none; }
.receipt__empty { padding-block: var(--s-3); }
.receipt__total {
  align-items: baseline;
  margin-top: var(--s-4);
  padding-block: var(--s-3);
  border-block: 1.5px dashed var(--paper-ink);
  text-transform: uppercase;
}
.receipt__total output { font-size: 1.625rem; line-height: 1; }

.receipt__clear {
  display: block;
  min-height: 2.75rem;
  margin: 0.25rem 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  color: var(--paper-ink);
}
.receipt__clear:hover { color: var(--error); }
.receipt__clear + .receipt__form { margin-top: var(--s-2); }
.receipt__form { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.receipt__form label { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.receipt__form input {
  width: 100%;
  min-height: 2.875rem;
  padding: 0 0.75rem;
  border: 1.5px solid var(--paper-ink);
  border-radius: 0;
  background: #fff;
  color: var(--paper-ink);
  caret-color: var(--uv);
  font-family: var(--mono);
  font-size: 1rem;
}
.receipt__form input::placeholder { color: #5d6066; opacity: 1; }
.receipt__form input::selection { background: var(--uv); color: #fff; }
/* Autofill keeps the paper: the browser's yellow or blue wash is painted over from inside. */
.receipt__form input:-webkit-autofill,
.receipt__form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--paper-ink);
  box-shadow: inset 0 0 0 100px #fff;
  caret-color: var(--uv);
}
.receipt__form input[aria-invalid="true"] { border-color: var(--error); background: #fff3f3; }
.receipt__msg { min-height: 1.25rem; font-size: 0.8125rem; line-height: 1.3; color: var(--error); }
.receipt__fine { font-size: 0.75rem; color: #3c3e44; }
.receipt :focus-visible { outline-color: var(--uv); border-radius: 0; }

.btn--ink,
.btn--ink-line {
  width: 100%;
  min-height: 3.25rem;
  border-radius: 0;
  font-family: var(--font);
}
.btn--ink { background: var(--paper-ink); color: var(--acid); border-color: var(--paper-ink); }
.btn--ink:hover:not(:disabled) { background: var(--uv); border-color: var(--uv); color: #fff; }
.btn--ink:disabled { background: #b9bcb4; border-color: #b9bcb4; color: #3c3e44; cursor: not-allowed; }
.btn--ink-pill { margin-bottom: var(--s-5); background: var(--black); color: var(--acid); }
.btn--ink-line { background: transparent; border-color: var(--paper-ink); color: var(--paper-ink); }
.btn--ink-line:hover { background: var(--paper-ink); color: var(--paper); }
.btn__spin {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.is-loading .btn__spin { display: block; }

.receipt__done { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin-top: var(--s-5); }
.receipt__done .btn { padding-inline: 0.75rem; font-size: 0.8125rem; }
.receipt__done[hidden], .receipt__form[hidden] { display: none; }
.receipt__ok {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.0625rem;
  text-transform: uppercase;
}
.receipt__ok .icon { padding: 2px; border-radius: 50%; background: var(--paper-ink); color: var(--acid); width: 1.5rem; height: 1.5rem; }
.receipt__done b { font-weight: 400; background: var(--acid); padding: 0 0.2em; overflow-wrap: anywhere; }

/* ---------- Getting there ---------- */
.ferry {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: var(--section);
}
.ferry h2 { grid-column: 1 / -1; margin-bottom: calc(var(--s-6) - clamp(2rem, 6vw, 6rem) + var(--s-4)); }
.lead { max-width: 34rem; font-size: 1.125rem; color: var(--chrome-hi); text-wrap: pretty; }
/* Three figures you need at the pier, ruled like a timetable. */
.facts { margin-top: var(--s-6); max-width: 32rem; border-bottom: 1px solid var(--line); }
.facts li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  align-items: baseline;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--line);
}
.facts b { font-weight: 400; font-size: 1.75rem; line-height: 1; color: var(--acid); white-space: nowrap; }
.facts span { text-wrap: pretty; }

.ferry__photo {
  width: min(100%, 26rem);
  aspect-ratio: 4 / 3;
  margin-top: var(--s-7);
  border-radius: 50%;
  overflow: hidden;
  rotate: -7deg;
  background: var(--uv);
}
.duo--island img { filter: contrast(1.5) brightness(1.02) url(#duo); }

.board {
  padding: clamp(1rem, 2.4vw, 2rem);
  border: 1.5px solid var(--chrome-lo);
  border-radius: var(--r-lg);
  background: var(--ink);
}
.board__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-4);
}
.board__none {
  margin-top: var(--s-5);
  padding: var(--s-6) var(--s-5);
  border: 1.5px dashed var(--chrome-lo);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--chrome-hi);
  text-wrap: pretty;
}
.board__tabs {
  display: inline-flex;
  padding: 4px;
  border: 1.5px solid var(--chrome-lo);
  border-radius: var(--r-pill);
  background: var(--black);
}
.board__tabs button {
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--chrome);
  transition: background-color 0.25s, color 0.25s;
}
.board__tabs button:hover { color: var(--chrome-hi); background: var(--ink-2); }
.board__tabs button[aria-selected="true"] { background: var(--acid); color: var(--black); }
.board__panel[hidden] { display: none; }
.board__panel + .board__panel { margin-top: var(--s-6); }
html:not(.js) .board__tabs, html:not(.js) .pick { display: none; }

.board__table {
  width: 100%;
  margin-top: var(--s-5);
  border-collapse: collapse;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  text-align: left;
}
.board__table caption {
  padding-bottom: var(--s-4);
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: left;
  color: var(--chrome-hi);
}
.board__table caption .icon { display: inline-block; vertical-align: -0.2em; margin-inline: 0.2em; color: var(--acid); }
.board__table th {
  padding: 0 0.75rem 0.6rem 0;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome-mid);
}
.board__table td {
  padding: 0.8rem 0.75rem 0.8rem 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
  color: var(--chrome-hi);
}
.board__table td:last-child { width: 46%; padding-right: 0; white-space: normal; color: var(--chrome); }
.board__table small {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  color: var(--chrome-mid);
}
.board__table tbody tr { transition: background-color 0.2s; }
.board__table tbody tr:hover { background: var(--ink-2); }
.is-flag td, .board__table .is-flag td:last-child, .board__table .is-flag small { color: var(--acid); }
.board__foot {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--chrome-mid);
}
.board__foot .icon { margin-top: 0.1rem; color: var(--chrome); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: var(--section);
}
/* The heading follows the questions down, then stops short of the blob perched under it. */
.faq h2 {
  position: sticky;
  top: calc(var(--top-h) + 1.5rem);
  margin-bottom: calc(var(--blob-d) * 0.68);
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
}
.faq__list { border-bottom: 1px solid var(--chrome-lo); }
.faq details { border-top: 1px solid var(--chrome-lo); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 4.5rem;
  padding-block: var(--s-4);
  font-weight: 800;
  font-size: clamp(1.125rem, 1.7vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--chrome-hi);
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--acid); }
.faq summary .icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  border: 1.5px solid var(--chrome-lo);
  border-radius: 50%;
  transition: rotate 0.5s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.faq details[open] summary .icon { rotate: 45deg; background: var(--acid); border-color: var(--acid); color: var(--black); }
.faq__a { padding: 0 4rem var(--s-5) 0; }
.faq__a p { max-width: 62ch; text-wrap: pretty; }

/* ---------- Footer ---------- */
.foot { padding-bottom: var(--s-6); overflow: clip; }
.foot__big {
  display: grid;
  justify-items: center;
  padding-block: clamp(3rem, 9vw, 8rem);
  font-weight: 800;
  font-size: 9.4vw;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--chrome-hi);
}
.foot__big > span { position: relative; display: block; }
.foot__big > span:last-child { color: var(--acid); }
.foot__big > span:last-child .ghost { -webkit-text-stroke-color: var(--acid); }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto;
  gap: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--chrome-lo);
}
.foot__about { display: grid; gap: var(--s-4); justify-items: start; }
.foot__about p { color: var(--chrome); }
.foot nav { display: grid; align-content: start; gap: 0.15rem; }
.foot__h {
  margin-bottom: var(--s-2);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--chrome-mid);
}
.foot nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  width: fit-content;
  text-decoration: none;
  color: var(--chrome-hi);
  overflow-wrap: anywhere;
}
.foot nav a:hover { color: var(--acid); text-decoration: underline; }
.foot__legal { margin-top: var(--s-7); padding-right: 6.5rem; font-size: 0.8125rem; color: var(--chrome-mid); }
.foot__legal a { display: inline-block; margin-left: 0.75rem; padding-block: 0.75rem; color: var(--chrome); }
.foot__legal a:hover { color: var(--acid); }

/* ---------- 4. Components ----------
   The themed kit. Everything here runs on the tokens at the top of the file, so it can be lifted
   into another page of the same world: a select (.pick), notices (.toasts, .toast) and a
   confirmation dialog (.confirm). script.js has the matching initSelect(), toast() and confirmDialog(). */

/* Select: a pill that opens a departure list. Mono caps, a count on the right, acid on the live row. */
.pick { position: relative; display: flex; align-items: center; gap: var(--s-3); }
.pick__label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome-mid);
}
.pick__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-width: 12.5rem;
  min-height: calc(2.75rem + 11px);
  padding: 0 0.9rem 0 1.25rem;
  border: 1.5px solid var(--chrome-lo);
  border-radius: var(--r-pill);
  background: var(--black);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--chrome-hi);
  transition: border-color 0.25s, background-color 0.25s;
}
.pick__btn:hover { border-color: var(--chrome); background: var(--ink-2); }
.pick__btn .icon { color: var(--acid); transition: rotate 0.5s var(--ease); }
.pick__btn[aria-expanded="true"] { border-color: var(--acid); }
.pick__btn[aria-expanded="true"] .icon { rotate: 180deg; }
.pick__btn:disabled { opacity: 0.4; cursor: not-allowed; }

.pick__list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 30;
  width: max(100%, 17rem);
  max-width: calc(100vw - 2 * var(--gutter));
  max-height: min(22rem, 60svh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.4rem;
  border: 1.5px solid var(--chrome);
  border-radius: 1.25rem;
  background: var(--black);
  box-shadow: 0 24px 40px -12px rgb(0 0 0 / 0.9), 0 6px 0 -2px var(--uv);
  scrollbar-color: var(--chrome-lo) var(--black);
  transform-origin: 50% 0;
}
.pick--up .pick__list { top: auto; bottom: calc(100% + 0.5rem); transform-origin: 50% 100%; }
.pick__list [role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--chrome-hi);
  cursor: pointer;
}
.pick__list small { font-size: 0.75rem; color: var(--chrome-mid); }
.pick__list [aria-selected="true"] span::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--acid);
  vertical-align: 0.05em;
}
.pick__list .is-active { background: var(--acid); color: var(--black); }
.pick__list .is-active small { color: var(--black); }
.pick__list .is-active span::before { background: var(--black); }

/* Notices: strips of the same acid tape that crosses the page, stuck on at a slight angle. */
.toasts {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  width: min(100% - 2rem, 34rem);
  translate: -50% 0;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  rotate: var(--tilt, -1deg);
  background: var(--acid);
  color: var(--black);
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1.5px solid var(--black);
  box-shadow: 0 14px 22px -8px rgb(0 0 0 / 0.85);
  pointer-events: auto;
  transition: opacity 0.3s, translate 0.35s var(--ease), clip-path 0.35s var(--ease);
}
.toast p { padding-block: 0.5rem; text-wrap: balance; }
.toast__star { width: 0.9rem; height: 0.9rem; flex: none; fill: var(--uv); }
.toast__close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  transition: background-color 0.2s, color 0.2s;
}
.toast__close:hover { background: var(--black); color: var(--acid); }
.toast :focus-visible { outline-color: var(--black); }
.toast--chrome { background: var(--chrome-grad); }
.toast--uv { background: var(--uv); color: #fff; }
.toast--uv .toast__star { fill: var(--acid); }
.toast--uv :focus-visible { outline-color: #fff; }
.toast.is-leaving { opacity: 0; translate: 0 0.75rem; clip-path: inset(0 0 0 100%); }

/* Confirmation: a chrome ticket slapped on the counter. The question on the body, the answers on the stub. */
.confirm {
  width: min(100% - 2rem, 40rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  background: none;
  color: var(--black);
  overflow: visible;
  rotate: -1.2deg;
  filter: drop-shadow(0 30px 34px rgb(0 0 0 / 0.8));
}
.confirm::backdrop {
  background:
    repeating-linear-gradient(-45deg, rgb(198 255 0 / 0.07) 0 2px, transparent 2px 14px),
    rgb(5 5 5 / 0.86);
}
.confirm__ticket {
  --stub: 13.5rem;
  --notch: 15px;
  --tooth: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  background: var(--chrome-grad);
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 calc(100% - 1px), #000),
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 calc(100% - 1px), #000),
    radial-gradient(circle var(--tooth) at 0 50%, #0000 calc(100% - 1px), #000) 0 0 / 100% 22px,
    radial-gradient(circle var(--tooth) at 100% 50%, #0000 calc(100% - 1px), #000) 0 0 / 100% 22px;
  -webkit-mask-repeat: no-repeat, no-repeat, no-repeat round, no-repeat round;
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 calc(100% - 1px), #000),
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 calc(100% - 1px), #000),
    radial-gradient(circle var(--tooth) at 0 50%, #0000 calc(100% - 1px), #000) 0 0 / 100% 22px,
    radial-gradient(circle var(--tooth) at 100% 50%, #0000 calc(100% - 1px), #000) 0 0 / 100% 22px;
  mask-repeat: no-repeat, no-repeat, no-repeat round, no-repeat round;
  mask-composite: intersect;
}
.confirm__main { display: grid; align-content: start; gap: var(--s-3); padding: 2rem 1.75rem 1.5rem 2.1rem; }
.confirm__title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 0.92;
  color: var(--black);
}
.confirm__text { max-width: 36ch; font-size: 1rem; line-height: 1.4; text-wrap: pretty; }
.confirm__print {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  margin-top: var(--s-3);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.confirm__stub {
  display: grid;
  align-content: center;
  gap: var(--s-3);
  padding: 1.5rem 1.25rem 1.5rem 1.4rem;
  border-left: 2px dashed rgb(5 5 5 / 0.55);
}
.confirm .btn { min-height: 3.25rem; padding: 0 0.75rem; font-size: 0.8125rem; white-space: normal; text-align: center; line-height: 1.1; }
.confirm .btn--ink-line { border-color: var(--black); color: var(--black); }
.confirm .btn--ink-line:hover { background: var(--black); color: var(--chrome-hi); }
.confirm .btn--ink:hover { background: var(--error); border-color: var(--error); color: #fff; }
.confirm :focus-visible { outline-color: var(--uv); outline-offset: 2px; border-radius: 0; }

/* ---------- Motion ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes tape { to { translate: -50% 0; } }
@keyframes morph {
  0% { border-radius: 58% 42% 47% 53% / 45% 56% 44% 55%; }
  50% { border-radius: 44% 56% 60% 40% / 58% 42% 58% 42%; }
  100% { border-radius: 52% 48% 40% 60% / 40% 60% 46% 54%; }
}
@keyframes act-in { from { opacity: 0; translate: 0 0.3em; filter: blur(8px); } }
@keyframes pick-in { from { opacity: 0; scale: 1 0.9; translate: 0 -0.4rem; } }
@keyframes toast-in { from { opacity: 0; translate: 0 1.5rem; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes confirm-in { from { opacity: 0; translate: 0 2.5rem; rotate: -7deg; scale: 0.94; } }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes tick { from { translate: 0 -0.25em; opacity: 0.4; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .tape__track { animation: tape 38s linear infinite; }
  .blob__css i { animation: morph 11s ease-in-out infinite alternate; }
  .count__unit b.is-tick { animation: tick 0.5s var(--ease); }

  /* Lineup filter: the names that stay or arrive resolve out of a blur, in billing order. */
  .wall.is-shuffling .act {
    animation: act-in 0.6s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 16ms);
  }

  /* Kit motion: the list unrolls, tape slaps on, the ticket lands, the menu wipes down. */
  .pick__list:not([hidden]) { animation: pick-in 0.35s var(--ease); }
  .toast { animation: toast-in 0.5s var(--ease); }
  .confirm[open] { animation: confirm-in 0.55s var(--ease); }
  .confirm[open]::backdrop, .menu[open]::backdrop { animation: fade-in 0.3s ease-out; }
  .menu[open] { animation: menu-in 0.55s var(--ease); }
  .menu[open] .menu__nav a { animation: act-in 0.6s var(--ease) backwards; }
  .menu[open] .menu__nav a:nth-child(2) { animation-delay: 40ms; }
  .menu[open] .menu__nav a:nth-child(3) { animation-delay: 80ms; }
  .menu[open] .menu__nav a:nth-child(4) { animation-delay: 120ms; }
  .menu[open] .menu__nav a:nth-child(5) { animation-delay: 160ms; }

  /* Accordion height, where the platform can interpolate to auto. */
  @supports (interpolate-size: allow-keywords) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }

  /* Scroll-driven accents. Everything starts from its visible resting state. */
  @supports (animation-timeline: view()) {
    .inter__photo {
      animation: photo-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    @keyframes photo-in {
      from { rotate: 3deg; scale: 0.92; border-radius: 3rem; }
      to { rotate: -2.5deg; scale: 1; border-radius: 999px; }
    }
    /* Letter-spacing only: a transform here would trap the .ghost outlines under the blob. */
    .foot__big {
      animation: big-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    @keyframes big-in { from { letter-spacing: 0.03em; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1100px) {
  .tix__layout { grid-template-columns: minmax(0, 1fr); }
  .receipt { position: static; width: min(100%, 24rem); justify-self: center; }
}

/* Schedule turns from a time grid into per-stage running orders. */
@media (max-width: 1280px) {
  .sched__day { display: block; }
  .sched__hours { display: none; }
  .sched__date { margin-bottom: var(--s-4); }
  .stage { display: block; padding-block: var(--s-5) var(--s-3); }
  .stage:last-child { border-bottom: 0; }
  .stage__name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.9rem; font-size: 1.5rem; }
  .stage__name small { margin: 0; }
  .stage__sets { display: block; margin-top: var(--s-3); background: none; }
  .set {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    align-items: baseline;
    gap: var(--s-3);
    min-height: 3rem;
    margin: 0;
    padding: 0.7rem 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .set:hover { translate: none; }
  .set__to { display: inline; }
  .set__time { font-size: 0.875rem; color: var(--chrome-mid); }
  .set__name { font-size: 1.0625rem; }
  .stage--dome .set, .stage--uv .set, .stage--tide .set { background: none; color: var(--chrome-hi); }
  .stage--dome .set--head { background: none; color: var(--acid); }
  .stage--uv .stage__name { color: var(--uv-lite); }
  .stage--tide .stage__name { color: var(--chrome); }
}

/* Between tablet and desktop the three running orders stand side by side. */
@media (min-width: 900px) and (max-width: 1280px) {
  .sched__day { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s-6); }
  .sched__date { grid-column: 1 / -1; }
  .stage { grid-column: auto; }
  .stage__name { display: block; font-size: 1.25rem; }
  .stage__name small { margin-top: 0.35rem; }
  .set { grid-template-columns: 3.75rem 1fr; }
  .set__to { display: none; }
}

@media (max-width: 1000px) {
  .ferry, .faq { grid-template-columns: minmax(0, 1fr); }
  .ferry h2 { margin-bottom: 0; }
  .faq h2 { position: static; margin-bottom: 0; font-size: clamp(1.75rem, 9.4vw, 3.25rem); }
  .ferry__photo { display: none; }
}

/* Narrow desktop frames: the pitch stacks so the countdown keeps its air. */
@media (max-width: 1150px) {
  .hero__pitch { display: grid; width: min(22rem, 40vw); gap: var(--s-4); }
  .hero__actions { justify-self: start; }
}

@media (max-width: 860px) {
  :root { --blob-unit: min(120vw, 100svh, 47.5rem); --hero-cy: calc(var(--top-h) + 11rem); }

  .top { grid-template-columns: 1fr auto auto; gap: var(--s-3); }
  .top__nav { display: none; }
  .top__menu { display: grid; }

  .hero { min-height: 0; padding-bottom: var(--s-7); }
  .hero__meta { font-size: 0.8125rem; }
  .hero__far { display: none; }
  .hero__stage { display: flex; flex-direction: column; }
  /* The blob takes the top right of the first screen; the title starts in its lower half. */
  .hero__stage { padding-bottom: 0; }
  .hero__title { --title: 18.4vw; margin-top: clamp(6.5rem, 17svh, 9rem); }
  .hero__stice sup { font-size: 0.26em; }
  /* The countdown is the second line of the poster: four columns the full width of the phone. */
  .count { position: static; margin-top: clamp(1.75rem, 4svh, 2.5rem); }
  .count__digits { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 0; max-width: 34rem; }
  .count__unit + .count__unit { padding-left: 0.9rem; }
  .count__unit b { font-size: clamp(2.5rem, 13.5vw, 5rem); }
  .hero__pitch { position: static; display: block; width: auto; max-width: 30rem; margin-top: var(--s-6); }
  .hero__actions { margin-top: var(--s-5); justify-self: stretch; }
  .hero__actions .btn--line { display: inline-flex; }

  .inter__photo { width: calc(100% + 3rem); margin-inline: -1.5rem; aspect-ratio: 4 / 3; border-radius: 9rem; }
  .inter__text { display: block; }
  .inter__note { margin-top: var(--s-5); }

  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__about, .foot__grid nav:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .btn { min-height: 3.25rem; padding: 0 1.4rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .seg span { min-width: 3rem; padding: 0 0.9rem; }
  .top__cta { display: none; }
  .top { grid-template-columns: 1fr auto; }

  .wall { gap: 0.4rem 1rem; }
  .act--t1 .act__name { font-size: 10.4vw; }
  .act--t2 .act__name { font-size: 7vw; }
  .act--t3 .act__name { font-size: 1.3rem; }
  .act__meta { font-size: 0.6875rem; }
  .act--t1 .act__meta { margin-bottom: 0.35em; font-size: 0.75rem; }

  .set { grid-template-columns: 8.5rem 1fr; }

  /* Tickets stand upright on small screens: the stub tears off the bottom. */
  .ticket-wrap { rotate: none; }
  .ticket-wrap:hover, .ticket-wrap:focus-within { translate: none; }
  .ticket {
    --stub: 5.75rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto var(--stub);
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 calc(100% - 1px), #000),
      radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 calc(100% - 1px), #000),
      radial-gradient(circle var(--tooth) at 50% 0, #0000 calc(100% - 1px), #000) 0 0 / 22px 100%,
      radial-gradient(circle var(--tooth) at 50% 100%, #0000 calc(100% - 1px), #000) 0 0 / 22px 100%;
    -webkit-mask-repeat: no-repeat, no-repeat, round no-repeat, round no-repeat;
    -webkit-mask-composite: source-in;
    mask:
      radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 calc(100% - 1px), #000),
      radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 calc(100% - 1px), #000),
      radial-gradient(circle var(--tooth) at 50% 0, #0000 calc(100% - 1px), #000) 0 0 / 22px 100%,
      radial-gradient(circle var(--tooth) at 50% 100%, #0000 calc(100% - 1px), #000) 0 0 / 22px 100%;
    mask-repeat: no-repeat, no-repeat, round no-repeat, round no-repeat;
    mask-composite: intersect;
  }
  .ticket__main { padding: 1.75rem 1.4rem 1.25rem; }
  .ticket__name { padding-right: 0; font-size: 2rem; }
  .ticket__code { position: static; order: 5; width: 100%; height: 1.75rem; margin-top: var(--s-2); }
  .ticket__stub {
    grid-template-columns: 1fr auto;
    justify-items: start;
    align-items: center;
    padding: 0 1.4rem 0.6rem;
    border-left: 0;
    border-top: 2px dashed color-mix(in srgb, currentColor 55%, transparent);
  }
  .ticket__price { font-size: 2.125rem; }
  .stepper__hint { grid-column: 1 / -1; min-height: 0; margin-top: -0.4rem; }
  .stepper__hint:empty { display: none; }
  .receipt { rotate: none; width: 100%; }

  .board { margin-inline: calc(var(--gutter) * -0.5); padding: 1rem 0.875rem; border-radius: 1.25rem; }
  .board__bar { display: grid; }
  .pick { display: grid; grid-template-columns: auto 1fr; }
  .pick__btn { min-width: 0; width: 100%; }
  .pick__list { left: 0; right: 0; width: auto; }
  .facts li { grid-template-columns: 6rem 1fr; }
  .facts b { font-size: 1.5rem; }

  /* The confirmation ticket stands upright like the others: the answers tear off the bottom. */
  .confirm { rotate: none; }
  .confirm__ticket {
    grid-template-columns: minmax(0, 1fr);
    -webkit-mask:
      radial-gradient(circle var(--tooth) at 50% 0, #0000 calc(100% - 1px), #000) 0 0 / 22px 100%,
      radial-gradient(circle var(--tooth) at 50% 100%, #0000 calc(100% - 1px), #000) 0 0 / 22px 100%;
    -webkit-mask-repeat: round no-repeat;
    -webkit-mask-composite: source-in;
    mask:
      radial-gradient(circle var(--tooth) at 50% 0, #0000 calc(100% - 1px), #000) 0 0 / 22px 100%,
      radial-gradient(circle var(--tooth) at 50% 100%, #0000 calc(100% - 1px), #000) 0 0 / 22px 100%;
    mask-repeat: round no-repeat;
    mask-composite: intersect;
  }
  .confirm__main { padding: 2rem 1.4rem 1.25rem; }
  .confirm__stub { grid-template-columns: 1fr 1fr; padding: 1.1rem 1.4rem 1.75rem; border-left: 0; border-top: 2px dashed rgb(5 5 5 / 0.55); }
  .toast { font-size: 0.8125rem; }

  .board__tabs button { padding: 0 0.8rem; font-size: 0.8125rem; }
  .board__table { font-size: 0.875rem; }
  .board__table caption { font-size: 1.0625rem; }
  .col-arr { display: none; }
  .board__table td:last-child { width: auto; }

  .faq__a { padding-right: 0; }
  /* The sign-off stacks to three lines so it stays bigger than the blob crossing it. */
  .foot__big { font-size: 12.4vw; white-space: normal; text-align: center; }
  .foot nav a { overflow-wrap: normal; }
  .foot__legal { padding-right: 0; padding-bottom: 3rem; }
  .foot__legal a { margin: 0 1rem 0 0; }
}
