/* Uferlärm 2027, tokens and layout. Every value carries its derivation. */

:root {
  /* Colour world: the two halves of the site, meadow and river, plus the wristband. */
  --paper: oklch(0.975 0.008 150);      /* July daylight on the meadow, cooled by the grass; a white with a grass cast, not cream */
  --paper-2: oklch(0.935 0.016 150);    /* trampled grass next to the stage, the second meadow tone */
  --ink: oklch(0.245 0.045 220);        /* Elbe water in shade: the page ink and the river ground */
  --ink-2: oklch(0.205 0.04 225);       /* the river at night, footer ground, and the groyne stones */
  --water: oklch(0.47 0.085 210);       /* sunlit water surface, the mid tone for reflections */
  --water-deep: oklch(0.36 0.07 215);   /* water under the stage bands */
  --foam: oklch(0.87 0.03 200);         /* paper seen through water: text on ink */
  --muted: oklch(0.44 0.03 215);        /* secondary text on paper, 6:1 */
  --signal: oklch(0.88 0.17 95);        /* the 2027 wristband: one job, the ticket action and the current level mark */
  --on-signal: var(--ink);
  --border-strong: oklch(0.54 0.04 215); /* interactive boundaries on paper, 3:1 */
  --border-foam: oklch(0.62 0.05 210);   /* interactive boundaries on ink, 3:1 */

  --font-display: "Sora", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --rail: 0px;
  --right: calc(var(--gutter) + var(--rail));
  --space-tight: 0.5rem;
  --space-section: clamp(4rem, 9vw, 8rem);
  --space-air: clamp(6rem, 14vw, 12rem);
  --radius-control: 0.35rem;
  --head-h: 4rem;
  --scroll-offset: calc(var(--head-h) + 1rem);
  --word-size: clamp(3.4rem, 17.5vw, 18rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-wipe: cubic-bezier(0.76, 0, 0.24, 1);

  --color-accent: var(--signal);
  --color-bg: var(--paper);
  --color-text: var(--ink);
}

@media (min-width: 1100px) {
  :root { --rail: 96px; }
}

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

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font: 400 1.125rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
  font-kerning: normal;
  overflow-x: clip;
}

h1, h2, h3 { text-wrap: balance; margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 0.95; }
p, li, dd, figcaption { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-inline-size: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
[id] { scroll-margin-top: var(--scroll-offset); }

.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; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 50;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none; border-radius: var(--radius-control);
  transition: top 150ms ease-out; /* functional: the skip link parks off-screen and slides in on focus */
}
.skip:focus-visible { top: 0.5rem; }

/* Text links: 1 px underline, offset, grows from the left on hover. */
.link { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 0.12em; }
@media (hover: hover) {
  .link { background-size: 0 1px; transition: background-size 450ms var(--ease-out); }
  .link:hover, .link:focus-visible { background-size: 100% 1px; transition-duration: 125ms; }
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--head-h);
  padding: 0.5rem var(--right) 0.5rem var(--gutter);
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 18%, var(--paper));
}
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand span { font-weight: 300; margin-left: 0.3em; }
.site-nav { flex: 1; min-width: 0; }
.site-nav ul { display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.25rem; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a { font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center;
  padding: 0.55rem 0.9rem; border: 2px solid var(--ink); border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; background: var(--paper);
  transition: background-color 125ms ease-out, color 125ms ease-out;
}
.pill b { font-weight: 800; }
.pill-l { margin-right: 0.4em; }
.pill:hover { background: var(--ink); color: var(--paper); }
.pill:active { transform: scale(0.97); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.4rem; border: 0; border-radius: var(--radius-control);
  background: var(--signal); color: var(--on-signal);
  font: 700 1.05rem/1.1 var(--font-display); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 oklch(0.6 0.12 95), 0 10px 24px -12px oklch(0 0 0 / 0.6);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 oklch(0.6 0.12 95), 0 14px 28px -12px oklch(0 0 0 / 0.65); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: calc(100svh - var(--head-h));
  padding: 0;
}
.meadow {
  display: grid; grid-template-columns: minmax(0, 38rem) auto; justify-content: space-between; align-items: end; gap: 2rem;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--right) 0 var(--gutter);
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; max-width: 36rem; }
.lede strong { font-weight: 700; }
.lede .date { display: block; margin-top: 0.4em; font-weight: 600; }
.band { width: clamp(180px, 22vw, 300px); height: auto; transform: rotate(-7deg); transform-origin: center; margin-right: 1vw; filter: drop-shadow(0 6px 10px oklch(0 0 0 / 0.18)); }
.band text { font: 700 18px var(--font-display); fill: var(--ink); letter-spacing: 0; }

.word {
  position: relative; z-index: 2;
  padding: clamp(0.75rem, 2.5vw, 1.75rem) var(--right) 0 var(--gutter);
  font-size: var(--word-size); font-weight: 800; letter-spacing: -0.015em; line-height: 1;
  margin-bottom: -0.21em; /* baseline on the waterline; JS refines the sink after measuring the glyphs */
  white-space: nowrap;
}
.word .base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }

.river {
  position: relative; z-index: 1;
  min-height: clamp(15rem, 34svh, 26rem);
  background: var(--ink);
  overflow: hidden;
}
.river-canvas, .river-static { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .river-static { display: none; }
.no-js .river-canvas { display: none; }
.river-static text { font: 800 var(--word-size) var(--font-display); letter-spacing: -0.015em; fill: var(--foam); }
.river-static .lines path { fill: none; stroke: var(--foam); stroke-width: 1; opacity: 0.22; }

.groyne {
  position: absolute; right: var(--rail); top: 0; z-index: 2;
  width: clamp(240px, 46%, 720px); height: 100%;
}
.groyne .stone { fill: oklch(0.3 0.03 222); stroke: none; }
.groyne .stones ellipse { fill: oklch(0.46 0.025 215); stroke: oklch(0.2 0.03 222); stroke-width: 0.8; }
.groyne .ridge { stroke: var(--foam); opacity: 0.55; }

.staff-mobile { position: absolute; right: 10px; top: 0; bottom: 0; z-index: 3; width: 18px; height: 100%; }
@media (min-width: 1100px) { .staff-mobile { display: none; } }

.hero-action {
  position: absolute; left: var(--gutter); bottom: clamp(1.5rem, 5vw, 3.5rem); z-index: 4;
  max-width: 28rem; color: var(--foam);
}
.hero-action .fact { margin-top: 0.9rem; font-size: 1rem; line-height: 1.45; }
.hero-action .fact b { color: var(--paper); font-weight: 700; }
.hero-action .fact-2 { margin-top: 0.35rem; font-size: 0.92rem; opacity: 0.9; }

.pause {
  position: absolute; right: calc(var(--right) + 40px); bottom: 1rem; z-index: 5;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.7rem; border: 1px solid var(--border-foam); border-radius: 999px;
  background: color-mix(in oklch, var(--ink) 70%, transparent); color: var(--foam);
  font: 600 0.8rem/1 var(--font-body); cursor: pointer;
}
.pause svg { width: 0.9em; height: 0.9em; }
.pause .lbl-play, .pause[aria-pressed="true"] .lbl-pause { display: none; }
.pause[aria-pressed="true"] .lbl-play { display: inline; }
.no-js .pause, .reduced .pause { display: none; }
@media (min-width: 1100px) { .pause { right: calc(var(--rail) + 1rem); bottom: auto; top: 1rem; } }

/* ---------- gauge rail (desktop): the one scale that reads the whole page ---------- */
.rail { display: none; }
@media (min-width: 1100px) {
  .rail {
    position: fixed; top: 0; right: 0; z-index: 40;
    display: block; width: var(--rail); height: 100vh; height: 100dvh;
    --level: 0.5;
    pointer-events: none;
  }
  .rail-staff { position: absolute; left: 10px; top: 0; width: 40px; height: 100%; }
  .rail-water {
    position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--level) * 100%);
    background: color-mix(in oklch, var(--water) 42%, transparent);
    border-top: 2px solid var(--foam);
    transition: height 160ms linear; /* functional: the water height is the value it shows (scroll position) */
  }
  .no-js .rail-water { transition: none; }
  .rail-labels { position: absolute; left: 52px; right: 4px; top: 0; bottom: 0; margin: 0; }
  .rail-labels li {
    position: absolute; left: 0; right: 0; transform: translateY(50%);
    padding: 0.15rem 0.2rem; border-radius: 0.2rem; text-align: center; overflow: hidden; text-overflow: clip;
    background: var(--paper); color: var(--ink);
    font: 600 0.6rem/1.15 var(--font-display); letter-spacing: -0.01em; white-space: nowrap;
    transition: opacity 300ms ease-out;
  }
  .rail-labels li:empty { opacity: 0; }
  .rail-tab {
    position: absolute; left: 2px; right: 2px; bottom: clamp(0.5rem, calc(var(--level) * 100% - 1.1rem), calc(100% - 3rem)); z-index: 2;
    padding: 0.35rem 0.45rem; border-radius: 0.25rem;
    background: var(--signal); color: var(--ink);
    font: 700 0.66rem/1.15 var(--font-display); text-align: center; word-break: break-word;
    transition: bottom 160ms linear; /* functional: the tab rides on the water level */
  }
}

/* ---------- sections ---------- */
.section { position: relative; padding: var(--space-section) var(--right) 0 var(--gutter); }
.section > .inner { max-width: 80rem; }
.section-head { max-width: 46rem; }
.section-head h2 { font-size: clamp(2.1rem, 5.2vw, 4.8rem); }
.section-head p { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 40rem; }
.on-ink { background: var(--ink); color: var(--foam); }
.on-ink h2, .on-ink h3 { color: var(--paper); }
.on-grass { background: var(--paper-2); }
/* Shorelines run edge to edge, under the staff as well. */
.shore { display: block; height: clamp(44px, 8vw, 120px); margin: var(--space-section) calc(-1 * var(--right)) 0 calc(-1 * var(--gutter)); }
.shore svg { width: 100%; height: 100%; }
.shore.to-ink path { fill: var(--ink); }
.shore.to-paper path { fill: var(--paper); }
.shore.to-grass path { fill: var(--paper-2); }
.shore.to-night path { fill: var(--ink-2); }

/* line-up. section-kit motive: each lane is a timetable, hour and name per act, labelled as a placeholder line-up. */
.note {
  display: inline-block; margin-top: 1.5rem; padding: 0.7rem 1rem;
  border: 2px dashed var(--border-strong); border-radius: var(--radius-control);
  font-size: 1rem; max-width: 40rem;
}
.days { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.day h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.lanes { margin-top: 0.75rem; padding-right: 1.5rem; }
.axis, .lane { display: grid; grid-template-columns: 5.5rem repeat(var(--n), minmax(0, 1fr)); align-items: end; }
.axis { height: 1.6rem; border-bottom: 1px solid var(--ink); }
.axis li { grid-column: calc(var(--h) + 2); grid-row: 1; position: relative; font: 500 0.72rem/1 var(--font-display); color: var(--muted); padding-left: 0.3rem; }
.axis li::before { content: ""; position: absolute; left: 0; bottom: -0.9rem; width: 1px; height: 0.8rem; background: var(--ink); }
.axis li:nth-child(odd)::before { height: 0.5rem; }
.lane { position: relative; min-height: 5.6rem; border-bottom: 1px solid color-mix(in oklch, var(--ink) 14%, var(--paper)); }
.lane-name { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 1.6rem; font: 600 0.85rem/1 var(--font-display); color: var(--ink); }
.lane-wave { position: absolute; left: 5.5rem; bottom: 1.1rem; height: 26px; width: calc(100% - 5.5rem); pointer-events: none; }
.lane--buhne .lane-wave { height: 14px; bottom: 1.4rem; }
.lane-wave { fill: none; stroke: var(--water); stroke-width: 1.5; stroke-linejoin: round; }
.slot { grid-column: calc(var(--h) + 2) / span var(--d); grid-row: 1; align-self: end; padding: 0 0.25rem 1.55rem 0.3rem; min-width: 0; }
.slot--end { justify-self: end; text-align: end; }
.slot .t { display: block; font: 500 0.75rem/1 var(--font-display); color: var(--muted); margin-bottom: 0.35rem; }
.act { position: relative; z-index: 1; display: inline-block; padding-inline: 0.15em; margin-left: -0.15em; background: var(--paper); font: 600 clamp(1.25rem, 1.9vw, 1.85rem)/1.05 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.act::after {
  content: attr(data-name); position: absolute; left: 0; top: 100%; width: 100%;
  transform: scaleY(-1); transform-origin: center; color: var(--water); opacity: 0.28;
  mask-image: linear-gradient(to top, transparent 15%, black 95%);
  transition: opacity 450ms var(--ease-out);
  pointer-events: none;
}
.lane li:hover .act::after { opacity: 0.6; transition-duration: 125ms; }

/* stages: three full-bleed banks, the name on the water */
.stages .section-head { padding-bottom: 0; }
.banks { margin: clamp(2rem, 5vw, 4rem) calc(-1 * var(--right)) 0 calc(-1 * var(--gutter)); }
.bank { position: relative; padding-top: clamp(1.5rem, 3vw, 2.5rem); background: var(--ink); }
@media (min-width: 960px) {
  /* the sticky sequence: each bank pins under the header and the next bank slides over it, a panorama along the bank */
  .bank { position: sticky; top: var(--head-h); display: grid; grid-template-rows: auto auto auto; padding-top: 0; }
  .bank .scene { max-height: min(250px, 28svh); }
  .bank-text { padding-bottom: 0.5rem; }
  .bank .desc { max-width: 30rem; }
  .bank + .bank { border-top: 2px solid color-mix(in oklch, var(--foam) 45%, var(--ink)); }
}
.bank-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(1.5rem, 4vw, 5rem); align-items: end; padding: 2rem var(--right) 3rem var(--gutter); }
.bank:nth-child(even) .bank-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bank:nth-child(even) .bank-text { order: 2; }
.bank-text { padding-bottom: 1rem; }
.bank .kind { font: 600 1.05rem/1.3 var(--font-display); color: var(--signal); }
.bank .desc { margin-top: 0.75rem; max-width: 34rem; }
.bank .sig { margin-top: 1.25rem; width: min(100%, 24rem); height: 40px; }
.bank .sig { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linejoin: round; }
.bank .scene { width: 100%; height: auto; max-height: 250px; justify-self: end; }
.bank:nth-child(even) .scene { justify-self: start; }
.draw .line { fill: none; stroke: var(--foam); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.draw .thin { fill: none; stroke: var(--foam); stroke-width: 1; opacity: 0.5; }
.draw .fill { fill: var(--water); opacity: 0.55; }
.draw .yellow { fill: var(--signal); }
.draw .dark { fill: var(--ink-2); stroke: var(--foam); stroke-width: 1; }
.bank-name {
  position: relative; z-index: 2; padding: 0 var(--right) 0 var(--gutter);
  font-size: clamp(3.4rem, 12.5vw, 13rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  margin-bottom: calc(-0.22em - var(--shore-h) / 2); color: var(--paper);
}
.bank-name::after {
  content: attr(data-name); position: absolute; left: var(--gutter); top: 100%;
  transform: scaleY(-1); transform-origin: center; color: var(--foam); opacity: 0.32;
  mask-image: linear-gradient(to top, transparent 20%, black 100%);
  pointer-events: none;
}
.bank-water { position: relative; z-index: 1; }
.bank { --shore-h: clamp(40px, 6vw, 90px); }
.bank-shore { display: block; width: 100%; height: var(--shore-h); }
.bank-shore path { fill: var(--water-deep); }
.bank-depth { height: clamp(2.4rem, 6vw, 6rem); background: linear-gradient(var(--water-deep), var(--ink) 100%); }

/* camping and arrival: one drawn route from the station to the water */
.route { margin: clamp(2rem, 5vw, 4rem) 0 0; }
.route { margin-right: calc(-1 * var(--right)); overflow: hidden; }
.route svg { width: 111%; height: auto; }
.route .line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.route .thin { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 8; stroke-linecap: round; opacity: 0.55; }
.route .wave { fill: none; stroke: var(--water); stroke-width: 2; stroke-linecap: round; }
.route .yellow { fill: var(--signal); }
.route .solid { fill: var(--ink); }
.route .water { fill: var(--water); opacity: 0.35; }
.route text { font: 600 15px var(--font-body); fill: var(--ink); }
.route-list { display: none; }
.route .ph { font-weight: 400; color: var(--muted); text-decoration: underline dashed; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.on-ink .ph, .foot .ph { color: color-mix(in oklch, var(--foam) 80%, var(--ink)); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(1.5rem, 4vw, 3rem); }
.two h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); display: flex; align-items: center; gap: 1rem; }
.picto { width: clamp(56px, 6vw, 80px); height: auto; flex: none; }
.picto path, .picto circle, .picto line, .picto rect { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.picto .solid { fill: currentColor; stroke: none; }
.facts { margin-top: 1.5rem; display: grid; gap: 0.9rem; }
.facts li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; align-items: start; }
.facts li svg { width: 1.6rem; height: 1.2rem; margin-top: 0.35rem; }
.facts li svg path { fill: none; stroke: var(--water); stroke-width: 2; stroke-linecap: round; }
.facts b { font-weight: 700; }
.ph { font-weight: 400; color: var(--muted); text-decoration: underline dashed; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.on-ink .ph, .foot .ph { color: color-mix(in oklch, var(--foam) 80%, var(--ink)); }

/* awareness: the tent and the vest, one big line, the rules as marks */
.aware { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; margin-top: clamp(2rem, 5vw, 4rem); }
.aware-art svg { width: 100%; height: auto; max-width: 34rem; }
.aware-art .line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.aware-art .yellow { fill: var(--signal); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.aware-art .stripe { fill: none; stroke: var(--paper); stroke-width: 4; }
.aware-art .solid { fill: var(--ink); }
.aware-art .light { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.aware-art text { font: 700 18px var(--font-display); fill: var(--ink); }
.aware-art figcaption { margin-top: 0.75rem; font-size: 0.95rem; color: var(--muted); max-width: 30rem; }
.bigline { font: 700 clamp(2rem, 4.6vw, 4.2rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.aware-text > p + p { margin-top: 1.25rem; max-width: 36rem; }
.rules { margin-top: 1.75rem; }
.rules li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.8rem; align-items: start; padding: 1rem 0; border-top: 1px solid color-mix(in oklch, var(--ink) 20%, var(--paper-2)); }
.rules li svg { width: 2.4rem; height: 1.4rem; margin-top: 0.25rem; }
.rules li svg path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.rules b { font-family: var(--font-display); font-weight: 600; font-size: 0.95em; }

/* tickets. instrument-motif motive: the Elbe gauge staff (Pegellatte) is the site's own object and „Pegel“ is both
   water level and sound level; the staff is drawn as the real E-pattern staff, never as a dial. The three tiers (ol.tiers)
   are a real price sequence in time, section-kit motive: the price rises with the deadline. */
.tickets-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 6rem); margin-top: clamp(2rem, 5vw, 4rem); align-items: start; }
.gauge { width: min(100%, 26rem); margin-inline: auto; }
.gauge svg { width: 100%; height: auto; }
.gauge text { font-family: var(--font-display); fill: var(--paper); }
.gauge .lbl { font-size: 11px; font-weight: 600; }
.gauge .num { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.gauge .cur { fill: var(--ink); }
.tiers { display: grid; gap: 0; }
.tier { display: grid; grid-template-columns: minmax(11rem, auto) 1fr; gap: 0.5rem 1.5rem; align-items: baseline; padding: 1.4rem 0; border-top: 1px solid color-mix(in oklch, var(--foam) 25%, var(--ink)); }
.tier .price { font: 800 clamp(2.6rem, 5vw, 4.4rem)/0.9 var(--font-display); letter-spacing: -0.04em; color: var(--paper); white-space: nowrap; }
.tier.is-current .price { color: var(--signal); }
.tier h3 { font-size: 1.35rem; }
.tier p { margin-top: 0.35rem; color: color-mix(in oklch, var(--foam) 85%, var(--ink)); }
.tier .when { font-weight: 600; color: var(--foam); }
.tiers-note { margin-top: 1.5rem; max-width: 40rem; }
.order { margin-top: 2rem; padding-top: 2rem; border-top: 2px solid var(--signal); display: grid; grid-template-columns: auto auto 1fr; gap: 1rem 1.5rem; align-items: start; }
.terms { margin-top: 1rem; max-width: 40rem; color: var(--paper); }
.terms b { font-weight: 700; }
.order label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.order select {
  font: 600 1.05rem var(--font-body); color: var(--paper); background: var(--ink);
  padding: 0.75rem 2.4rem 0.75rem 0.9rem; border: 2px solid var(--border-foam); border-radius: var(--radius-control);
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23dfe8ea' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center;
}
.order .field { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.order .check {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3.2rem;
  padding: 0.6rem 0.9rem; border: 2px solid var(--border-foam); border-radius: var(--radius-control); cursor: pointer; font-weight: 600;
}
.order .check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.order .check .box { width: 1.15rem; height: 1.15rem; border: 2px solid var(--foam); border-radius: 0.2rem; flex: none; }
.order .check input:checked + .box { background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%231c2f3d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; border-color: var(--signal); }
.order .check input:focus-visible + .box { outline: 3px solid var(--signal); outline-offset: 3px; }
.order .check:hover { border-color: var(--foam); }
.order .sum output { display: flex; align-items: center; min-height: 3.2rem; }
.order output { font: 800 2rem/1 var(--font-display); color: var(--signal); letter-spacing: -0.03em; }
.order .submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1rem; }
.order-note { font-size: 0.95rem; color: color-mix(in oklch, var(--foam) 85%, var(--ink)); }
.demo-note { padding: 0.6rem 0.9rem; border: 1px solid var(--border-foam); border-radius: var(--radius-control); font-size: 0.95rem; }
.js .demo-note[hidden] { display: none; }
.no-js .demo-note { display: block; }

/* faq: flood marks on a pier; the pier rows share the accordion rows (subgrid), the water floods up to the open question */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: repeat(4, auto); column-gap: clamp(2rem, 5vw, 6rem); margin-top: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.pier { grid-column: 1; grid-row: 1 / span 4; display: grid; grid-template-rows: subgrid; width: 100%; max-width: 20rem; }
.pier-row { position: relative; margin-inline: 0 55%; border-inline: 3px solid var(--ink); background: var(--paper-2) repeating-linear-gradient(to top, transparent 0 13px, color-mix(in oklch, var(--ink) 22%, var(--paper-2)) 13px 14px); }
.pier-row:first-child { border-top: 8px solid var(--ink); }
.pier-row:last-child { border-bottom: 3px solid var(--ink); }
.pier-row::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; max-height: calc(100% - 1.9rem); background: color-mix(in oklch, var(--water) 60%, var(--paper-2)); transition: height 600ms var(--ease-wipe); }
.pier-row:last-child::before { height: 22%; }
.pier-row::after { content: ""; position: absolute; left: -3px; right: -14px; top: 1.9rem; border-top: 3px solid var(--ink); }
.pier-row span { position: absolute; left: calc(100% + 1.1rem); top: 1.9rem; transform: translateY(-50%); font: 600 0.8rem/1 var(--font-display); color: var(--ink); white-space: nowrap; }
.faq-wrap:has(details:nth-of-type(1)[open]) .pier > div:nth-child(n+2)::before,
.faq-wrap:has(details:nth-of-type(2)[open]) .pier > div:nth-child(n+3)::before,
.faq-wrap:has(details:nth-of-type(3)[open]) .pier > div:nth-child(n+4)::before { height: 100%; }
.faq-wrap:has(details:nth-of-type(1)[open]) .pier > div:nth-child(1)::before,
.faq-wrap:has(details:nth-of-type(2)[open]) .pier > div:nth-child(2)::before,
.faq-wrap:has(details:nth-of-type(3)[open]) .pier > div:nth-child(3)::before,
.faq-wrap:has(details:nth-of-type(4)[open]) .pier > div:nth-child(4)::before { height: 100%; }
.faq-wrap:has(details:nth-of-type(1)[open]) .pier > div:nth-child(1)::after,
.faq-wrap:has(details:nth-of-type(2)[open]) .pier > div:nth-child(2)::after,
.faq-wrap:has(details:nth-of-type(3)[open]) .pier > div:nth-child(3)::after,
.faq-wrap:has(details:nth-of-type(4)[open]) .pier > div:nth-child(4)::after { border-top-color: oklch(0.6 0.15 95); border-top-width: 5px; }
.faq { grid-column: 2; grid-row: 1 / span 4; display: grid; grid-template-rows: subgrid; max-width: 48rem; border-top: 1px solid color-mix(in oklch, var(--ink) 25%, var(--paper)); }
.faq details { border-bottom: 1px solid color-mix(in oklch, var(--ink) 25%, var(--paper)); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 2rem; gap: 1rem; align-items: center; padding: 1.1rem 0; font: 600 1.15rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .m { font: 500 0.75rem/1 var(--font-display); color: var(--muted); }
.faq summary svg { width: 1.6rem; height: 1rem; justify-self: end; }
.faq summary svg path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; transition: d 300ms var(--ease-out); }
.faq details[open] summary svg path { d: path("M2 8 L8 2 L14 8 L20 2 L26 8"); }
.faq details div { padding: 0 0 1.4rem; max-width: 44rem; }
@media (max-width: 600px) { .faq details div { padding-left: 0; } }

/* footer */
.foot { position: relative; background: var(--ink-2); color: var(--foam); padding: var(--space-section) var(--right) 2rem var(--gutter); }
.flat { width: 100%; height: 44px; margin-bottom: clamp(2rem, 5vw, 4rem); }
.flat path { fill: none; stroke: var(--foam); stroke-width: 1.5; opacity: 0.6; }
.closing { font: 700 clamp(1.9rem, 5.2vw, 4.8rem)/0.95 var(--font-display); letter-spacing: -0.03em; color: var(--paper); max-width: 22ch; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); font-size: 0.95rem; }
.foot-grid h3 { font-size: 0.85rem; font-weight: 600; color: var(--paper); letter-spacing: 0; margin-bottom: 0.6rem; }
.foot-grid li + li { margin-top: 0.3rem; }
.fiction { margin-top: 3rem; font-size: 0.8rem; color: color-mix(in oklch, var(--foam) 70%, var(--ink-2)); }

/* ---------- motion: one subject (the water), then the level mark, then the action ---------- */
.js .hero-action { animation: appear 400ms ease-out 1250ms both; } /* appears in place, no travel, as the level mark lands */
@keyframes appear { from { opacity: 0; } }
.js .rail-water, .js .rail-tab { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-action { animation: none; }
  .act::after, .bank-name::after, .link, .btn, .pill, .rail-water, .rail-tab, .faq summary svg path, .pier-row { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  /* phones and tablets: the pier is a narrow strip beside the accordion, every mark next to its own row */
  .faq-wrap { grid-template-columns: 1.6rem 1fr; column-gap: 1rem; }
  .pier { max-width: none; }
  .pier-row { margin-inline: 0; }
  .pier-row::after { right: -8px; }
  .pier-row span { display: none; }
  .bank-top, .bank:nth-child(even) .bank-top { grid-template-columns: 1fr; }
  .bank:nth-child(even) .bank-text { order: 0; }
  .bank .scene { max-width: 30rem; justify-self: start; }
  .aware, .tickets-grid { grid-template-columns: 1fr; }
  .gauge, .pier { margin-inline: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --head-h: 6.4rem; }
  .pause { top: 0.75rem; bottom: auto; right: 40px; }
  .site-head { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .site-nav { order: 3; flex-basis: 100%; }
  .meadow { grid-template-columns: 1fr; justify-items: start; }
  .band { margin-top: 0.5rem; transform: rotate(-5deg); }
  .axis { display: none; }
  .lane { display: block; min-height: 0; padding: 0.6rem 0 0.4rem; }
  .lane-name { display: block; padding-bottom: 0.4rem; }
  .lane-wave { display: none; }
  .slot { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0.5rem; align-items: baseline; padding: 0.35rem 0 1.1rem; }
  .slot .t { margin: 0; }
  .act { white-space: normal; }
  .two { grid-template-columns: 1fr; }
  .order { grid-template-columns: 1fr 1fr; }
  .order .sum { grid-column: 1 / -1; }
  .hero-action { max-width: calc(100% - var(--gutter) - 48px); }
  .foot-grid { grid-template-columns: 1fr; }
  .tier { grid-template-columns: 1fr; gap: 0.2rem; }
  .faq summary { grid-template-columns: 2.2rem 1fr 1.6rem; }
  .faq details div { padding-left: 0; }
}
@media (max-width: 600px) {
  .route svg { display: none; }
  .route-list { display: grid; gap: 0.6rem; margin-left: 0.5rem; padding-left: 1.4rem; border-left: 2px dashed var(--ink); font: 600 0.95rem/1.3 var(--font-body); }
  .route-list li { position: relative; }
  .route-list li::before { content: ""; position: absolute; left: calc(-1.4rem - 7px); top: 0.35em; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
  .route-list .is-water { padding: 0.5rem 0.8rem; background: color-mix(in oklch, var(--water) 35%, var(--paper)); border-radius: var(--radius-control); }
  .route-list .is-water::before { background: var(--water); border-color: var(--water); }
  .faq summary { grid-template-columns: 1fr 1.6rem; font-size: 1rem; }
  .groyne { display: none; }
  .hero-action { max-width: calc(100% - var(--gutter) - 40px); }
  .band { width: min(100%, 360px); transform: rotate(-3deg); margin: 1rem 0 0.25rem; }
  .pause { top: auto; bottom: 1rem; right: 36px; }
  .river { min-height: clamp(13rem, 30svh, 26rem); }
}
@media (max-width: 420px) {
  .order { grid-template-columns: 1fr; }
  .pill { padding: 0.4rem 0.6rem; font-size: 0.7rem; }
  .brand { font-size: 0.95rem; }
  .site-head { gap: 0.5rem 0.75rem; }
}

@media (forced-colors: active) {
  .btn, .pill { border: 2px solid ButtonText; }
  .rail-water, .rail-tab { forced-color-adjust: none; }
}

@media print {
  .site-head, .rail, .pause, .river-canvas, .skip { display: none; }
  .river-static { display: block; }
}
