/* Lanternwake: a made-up festival. Concept, design and build by ALLOIC.
   One typeface (Chivo), flat colour fields, square corners, no rules, no shade. */

:root {
  /* fields: the shore is lantern yellow, the water is lake blue */
  --shore: #ffc013;
  --shore-2: #eaa900;
  --shore-3: #ffd65c;
  --water: #93d2f8;
  --water-2: #6cbdf0;
  --paper: #f1e3b5;
  --paper-2: #e6d498;
  --night: #0a0a0a;
  --night-2: #262626;
  --chalk: #f2f2f2;
  --ink: #0a0a0a;
  --accent: #b0298f;
  --accent-2: #861b6c;
  --accent-ink: #ffffff;
  --focus: var(--ink);

  --font-display: "Chivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Chivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step-small: 1rem;
  --step-body: clamp(1.125rem, 1.04rem + 0.24vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-title: clamp(1.75rem, 1.2rem + 2vw, 2.875rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);

  --margin: clamp(20px, 2.8vw, 40px);
  --gutter: clamp(12px, 1.4vw, 24px);
  --sec: clamp(72px, 9vw, 136px);
  --content: calc(100vw - 2 * var(--margin));

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-body)/1.45 var(--font-text);
  letter-spacing: -0.01em;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.85em; }
a { color: inherit; text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; border-radius: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.defs { position: absolute; }

h1, h2, .display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  hyphens: none;
}
h2 { font-size: var(--step-head); text-wrap: balance; }
h3, h4 { margin: 0; }
.lead { font-size: var(--step-lead); line-height: 1.3; max-width: 34em; }
.note { font-size: var(--step-small); line-height: 1.4; max-width: 62ch; }

/* fields */
.f-shore { background: var(--shore); color: var(--ink); }
.f-water { background: var(--water); color: var(--ink); }
.f-paper { background: var(--paper); color: var(--ink); }
.f-night { background: var(--night); color: var(--chalk); --focus: var(--chalk); --chip: var(--night-2); --chip-ink: var(--chalk); }
.f-accent { background: var(--accent); color: var(--accent-ink); --focus: var(--chalk); --chip: var(--accent-2); --chip-ink: #ffffff; }

/* drawing colours (title cards, map, lantern) */
.k { fill: var(--ink); } .p { fill: var(--chalk); } .s { fill: var(--paper); }
.y { fill: var(--shore); } .y2 { fill: var(--shore-2); } .y3 { fill: var(--shore-3); }
.b { fill: var(--water); } .b2 { fill: var(--water-2); }
.m { fill: var(--accent); } .m2 { fill: var(--accent-2); }
.ok, .op, .oy, .ob, .ob2, .om { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ok { stroke: var(--ink); } .op { stroke: var(--chalk); } .oy { stroke: var(--shore); }
.ob { stroke: var(--water); } .ob2 { stroke: var(--water-2); } .om { stroke: var(--accent); }
.t { font-family: var(--font-display); font-weight: 900; letter-spacing: 0; }
.tk { fill: var(--ink); } .tp { fill: var(--chalk); } .ty { fill: var(--shore); } .tw { fill: #ffffff; }

/* buttons: one shape, one action colour */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 1.5em;
  background: var(--accent); color: var(--accent-ink);
  font: 700 var(--step-body)/1.1 var(--font-text); letter-spacing: -0.01em; text-decoration: none; text-align: center;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn--big { min-height: 76px; padding: 0 1.7em; font-size: var(--step-lead); }
.btn--ink { background: var(--ink); color: var(--chalk); }
.btn--quiet { background: transparent; color: inherit; padding: 0 0.6em; text-decoration: underline; text-underline-offset: 0.18em; }
.btn:disabled { background: var(--paper-2); color: var(--ink); cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); color: var(--chalk); }
  .btn--ink:hover { background: var(--chalk); color: var(--ink); }
  .btn--quiet:hover { background: var(--ink); color: var(--chalk); text-decoration: none; }
  .btn:disabled:hover { background: var(--paper-2); color: var(--ink); }
  .f-night .btn:hover { background: var(--chalk); color: var(--ink); }
}

/* ---------- concept strip ---------- */
.strip { background: var(--night); color: var(--chalk); --focus: var(--chalk); padding: 10px var(--margin); font-size: var(--step-small); line-height: 1.4; }
.strip p { max-width: none; }
.strip a { font-weight: 700; white-space: nowrap; margin-left: 0.4em; }
.skip { position: absolute; left: var(--margin); top: 6px; z-index: 40; transform: translateY(-300%); background: var(--shore); color: var(--ink); padding: 14px 18px; font-weight: 700; }
.skip:focus { transform: none; }

/* ---------- hero: the name stands on its two fields ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  background: var(--shore);
  --fs: min(calc(var(--content) / 4.16), calc((100svh - 330px) / 1.76));
  min-height: calc(100svh - var(--strip-h, 43px));
  padding: 0 var(--margin) clamp(20px, 2.6vw, 36px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  grid-template-rows: auto auto 1fr;
}
.nav { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-weight: 700; }
.nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav__mark svg { display: block; width: 27px; height: 45px; }
.nav__links { list-style: none; display: flex; gap: clamp(16px, 2.4vw, 36px); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration: underline; } }

.name {
  grid-column: 1 / -1; grid-row: 2;
  position: relative;
  font-size: var(--fs);
}
.name::after { content: ""; position: absolute; z-index: -1; top: 0.88em; left: -50vw; right: -50vw; height: 300vh; background: var(--water); }
.name .line { display: block; overflow: clip; }
.name [data-line] { display: inline-block; white-space: nowrap; letter-spacing: -0.05em; }
.name .line--lantern [data-line] { margin-left: -0.05em; }
.name .float { display: inline-block; transform-origin: 30% 90%; }

.hero__when {
  grid-column: 7 / -1; grid-row: 2; align-self: end; justify-self: end;
  margin: 0 0 calc(var(--fs) * 0.085);
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: 0.9; text-align: right;
}
.hero__when span { display: block; white-space: nowrap; letter-spacing: -0.05em; }
.hero__when span:first-child { font-size: calc(var(--content) * 0.0335); margin-bottom: 0.14em; }
.hero__when span:last-child { font-size: calc(var(--content) * 0.0272); }

.hero__foot { grid-column: 1 / -1; grid-row: 3; align-self: end; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-top: clamp(20px, 3vw, 44px); }
.hero__lead { grid-column: 1 / 8; font-size: var(--step-lead); line-height: 1.32; font-weight: 700; max-width: 30em; }
.hero__foot .btn { grid-column: 9 / -1; justify-self: end; }

/* ---------- section heads ---------- */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px; align-items: end; padding-top: 0.75rem; }
.sec-head h2 { grid-column: 1 / 8; }
.sec-head .lead { grid-column: 8 / -1; }

/* ---------- line-up: a print and its swing tag ---------- */
.lineup { padding: var(--sec) var(--margin); }
.films { list-style: none; margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 12px; }
.film { display: flex; flex-direction: column; min-width: 0; }
.film__card { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; transition: transform 500ms var(--ease-expo); transform-origin: 50% 100%; }
.film__tag { flex: 1; display: flex; flex-direction: column; }
.tag--k { --tag: var(--night); --tag-ink: var(--chalk); --pressed: var(--chalk); --pressed-ink: var(--ink); --focus: var(--chalk); }
.tag--y { --tag: var(--shore); --tag-ink: var(--ink); --pressed: var(--ink); --pressed-ink: var(--chalk); }
.tag--b { --tag: var(--water); --tag-ink: var(--ink); --pressed: var(--ink); --pressed-ink: var(--chalk); }
.film__head, .film__body { background: var(--tag); color: var(--tag-ink); padding: 16px; }
.film__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-top: 0; }
.film__title { font: 900 var(--step-lead)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.film__meta { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 0 14px; font-size: var(--step-small); font-weight: 700; line-height: 1.35; }
.film__meta span:nth-child(even) { text-align: right; }
.film__line { line-height: 1.35; }
.film__shows { list-style: none; margin-top: auto; display: grid; gap: 6px; }
.show {
  width: 100%; min-height: 52px; padding: 8px 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px;
  background: var(--accent); color: var(--accent-ink); border: 0; text-align: left; cursor: pointer;
  font-size: var(--step-small); line-height: 1.2;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.show__when { font-weight: 700; grid-column: 1; }
.show__where { grid-column: 1; }
.show__state { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; }
.show:active { transform: scale(0.97); }
.show[aria-pressed="true"] { background: var(--pressed); color: var(--pressed-ink); }
.show:disabled { background: transparent; color: inherit; padding-inline: 0; cursor: default; min-height: 0; }
.show:disabled .show__state { display: none; }
@media (hover: hover) and (pointer: fine) {
  .film:hover .film__card { transform: scale(1.025); }
  .show:not(:disabled):hover { background: var(--pressed); color: var(--pressed-ink); }
}
.lineup > .note { margin-top: 28px; }

/* ---------- planner ---------- */
.planner__head { padding: var(--sec) var(--margin) clamp(36px, 4vw, 52px); }
.filters { margin-top: clamp(36px, 4.4vw, 60px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px clamp(20px, 3vw, 44px); }
.chips { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend, .field label, .stepper > label { display: block; width: 100%; padding: 0; margin: 0 0 8px; font-weight: 700; font-size: var(--step-small); }
.chips label { position: relative; display: block; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips label span { display: flex; align-items: center; min-height: 48px; padding: 0 16px; background: var(--chip); color: var(--chip-ink); font-weight: 700; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chips input:checked + span { background: var(--shore); color: var(--ink); }
.chips input:focus-visible + span { outline: 4px solid var(--focus); outline-offset: 3px; }
.chips input:active + span { transform: scale(0.96); }
.field select {
  appearance: none; -webkit-appearance: none; display: block; min-height: 48px; padding: 0 46px 0 16px; border: 0; cursor: pointer;
  background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat right 16px center / 14px auto;
  color: var(--chip-ink); font-weight: 700;
}
.field select option { color: #0a0a0a; background: #ffffff; }
.tick { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 700; cursor: pointer; }
.tick input { appearance: none; -webkit-appearance: none; flex: none; width: 30px; height: 30px; margin: 0; background: var(--chip); cursor: pointer; }
.tick input:checked { background: var(--shore) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M7 15.500l5.500 5.500L23 9.500' fill='none' stroke='%230a0a0a' stroke-width='4'/%3E%3C/svg%3E") center / 100% no-repeat; }
.filters__count { margin-left: auto; min-height: 48px; display: flex; align-items: center; font-weight: 700; }

.planner__body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; background: var(--paper); }
.schedule { min-width: 0; }
.night { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.night::before, .night::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; }
.night::before { left: 0; right: 50%; background: var(--shore); }
.night::after { left: 50%; right: 0; background: var(--water); }
.night__name { padding: clamp(40px, 4.4vw, 60px) 20px 6px var(--margin); font: 900 var(--step-title)/0.92 var(--font-display); letter-spacing: -0.045em; text-transform: uppercase; }
.night__count { padding: clamp(40px, 4.4vw, 60px) 24px 8px; display: flex; align-items: flex-end; justify-content: flex-end; text-align: right; font-weight: 700; }
.col { --pl: 24px; --pr: 24px; --hover: var(--water-2); min-width: 0; padding: 6px var(--pr) clamp(28px, 3vw, 44px) var(--pl); }
.col--shore { --pl: var(--margin); --hover: var(--shore-2); }
.col__name { padding: 10px 0 8px; font-size: var(--step-body); font-weight: 900; }
.col__none { padding: 8px 0 16px; font-weight: 700; }
.slots { list-style: none; }
.slot {
  position: relative; isolation: isolate;
  width: 100%; min-height: 88px; padding: 12px 0;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; column-gap: 16px;
  background: transparent; color: inherit; border: 0; text-align: left; cursor: pointer;
  transition: color var(--t-hover) ease;
}
.slot::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(var(--pl) * -1); right: calc(var(--pr) * -1); background: transparent; transition: background-color var(--t-hover) ease; }
.slot__time { display: block; font-size: var(--step-small); font-variant-numeric: tabular-nums; line-height: 1.25; }
.slot__start { font-weight: 900; font-size: var(--step-body); }
.slot__thumb { display: block; width: 56px; height: 70px; }
.slot__title { display: block; margin-top: 2px; font-weight: 700; line-height: 1.15; }
.slot__meta { display: block; margin-top: 3px; font-size: var(--step-small); line-height: 1.3; }
.slot__state { display: inline-flex; align-items: center; justify-content: center; min-width: 5.4em; min-height: 44px; padding: 0 12px; background: var(--accent); color: var(--accent-ink); font-size: var(--step-small); font-weight: 700; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.slot:active .slot__state { transform: scale(0.94); }
.slot[aria-pressed="true"] { color: var(--chalk); }
.slot[aria-pressed="true"]::before { background: var(--ink); }
.slot[aria-pressed="true"] .slot__state { background: var(--chalk); color: var(--ink); }
.slot:disabled { cursor: default; }
.slot:disabled .slot__state { display: none; }
.slot[aria-pressed="true"]:focus-visible { outline-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .slot[aria-pressed="false"]:not(:disabled):hover::before { background: var(--hover); }
}
.slot__note { margin: 0 calc(var(--pr) * -1) 0 calc(var(--pl) * -1); padding: 12px var(--pr) 12px var(--pl); background: var(--accent); color: var(--accent-ink); font-size: var(--step-small); font-weight: 700; line-height: 1.3; max-width: none; }
.schedule[data-screen="shore"] .night::before, .schedule[data-screen="water"] .night::after { left: 0; right: 0; }
.schedule[data-screen="shore"] .night::after, .schedule[data-screen="water"] .night::before { display: none; }
.schedule[data-screen="shore"] .col--water, .schedule[data-screen="water"] .col--shore { display: none; }
.schedule[data-screen] .col { grid-column: 1 / -1; }
.schedule[data-screen="water"] .col { --pl: var(--margin); }
.schedule__empty { padding: 56px var(--margin); display: grid; gap: 20px; justify-items: start; font-size: var(--step-lead); font-weight: 700; }
.schedule__foot { padding: 28px var(--margin) 40px; font-size: var(--step-small); line-height: 1.4; max-width: 70ch; }

.mine { position: sticky; top: 0; max-height: 100svh; overflow-y: auto; padding: clamp(36px, 4vw, 52px) var(--margin) 40px clamp(20px, 2.2vw, 32px); }
.mine:focus { outline: none; }
.mine h3 { font: 900 var(--step-lead)/0.95 var(--font-display); letter-spacing: -0.04em; text-transform: uppercase; }
.mine__sum { margin-top: 8px; font-weight: 700; }
.mine__list { margin-top: 18px; }
.mine__empty { font-size: var(--step-lead); font-weight: 700; line-height: 1.25; }
.mine__samples { margin-top: 22px; display: grid; gap: 8px; }
.sample { display: block; width: 100%; min-height: 56px; padding: 10px 16px; background: var(--ink); color: var(--chalk); border: 0; text-align: left; font-weight: 700; line-height: 1.2; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.sample:active { transform: scale(0.98); }
.mine__night { margin-top: 22px; }
.mine__night h4 { font-size: var(--step-body); font-weight: 900; }
.mine__items { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 8px 0 8px 12px; border-left: 10px solid var(--shore); background: var(--paper-2); }
.pick--water { border-left-color: var(--water); }
.pick__time { font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pick__time small { display: block; font-size: var(--step-small); font-weight: 400; white-space: nowrap; }
.pick__title { display: block; font-weight: 700; line-height: 1.15; }
.pick__where { display: block; font-size: var(--step-small); line-height: 1.3; }
.pick__remove { min-width: 44px; min-height: 44px; margin-right: 6px; padding: 0 10px; background: var(--ink); color: var(--chalk); border: 0; font-size: var(--step-small); font-weight: 700; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.pick__remove:active { transform: scale(0.94); }
.warn { padding: 14px; background: var(--accent); color: var(--accent-ink); --focus: var(--ink); font-size: var(--step-small); line-height: 1.35; }
.warn strong { display: block; font-weight: 900; }
.warn__swap { display: block; width: 100%; min-height: 48px; margin-top: 10px; padding: 10px 12px; background: #ffffff; color: var(--ink); border: 0; text-align: left; font-weight: 700; line-height: 1.2; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.warn__swap:active { transform: scale(0.98); }
.mine__total { margin-top: 8px; font-size: var(--step-small); line-height: 1.35; }
.mine__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.mine__actions .btn:first-child { flex: 1 1 auto; }
.mine__note { margin-top: 16px; font-size: var(--step-small); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) {
  .pick__remove:hover { background: var(--accent); }
  .sample:hover { background: var(--accent); }
  .warn__swap:hover { background: var(--shore); }
}
@media (prefers-reduced-motion: no-preference) {
  .js:not(.showcase) .pick.is-new, .js:not(.showcase) .warn.is-new { animation: land 420ms var(--ease-out) both; }
}
@keyframes land { from { opacity: 0; transform: translateY(-10px); } }

.minibar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 8px var(--margin); background: var(--ink); color: var(--chalk); --focus: var(--shore); font-weight: 700; text-decoration: none; line-height: 1.2; }
.minibar__go { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; background: var(--accent); color: var(--accent-ink); }
.minibar:focus-visible { outline-offset: -6px; }

/* ---------- tickets: the price is printed on a ticket ---------- */
.tickets { padding: var(--sec) var(--margin); }
.tickets__grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: start; }
.picker { grid-column: 1 / 5; display: grid; gap: 22px; padding-right: clamp(0px, 2vw, 32px); }
.picker__follow { width: 100%; margin-top: 8px; font-size: var(--step-small); line-height: 1.35; }
.picker__follow button { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; min-height: 32px; }
.stepper__row { display: flex; gap: 6px; }
.stepper button { width: 52px; height: 52px; background: var(--chip); color: var(--chip-ink); border: 0; font-size: var(--step-lead); font-weight: 700; line-height: 1; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.stepper button:active { transform: scale(0.92); }
.stepper input { width: 76px; height: 52px; padding: 0; border: 0; background: var(--chalk); color: var(--ink); text-align: center; font-weight: 900; font-size: var(--step-lead); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tickets__prices { grid-column: 1 / -1; margin-top: clamp(8px, 2vw, 28px); }
.prices { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px var(--gutter); }
.prices div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.prices dt { margin: 0; line-height: 1.25; }
.prices dd { margin: 0; color: var(--shore); font: 900 var(--step-title)/0.95 var(--font-display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.picker__note { margin-top: 20px; font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) { .stepper button:hover { background: var(--shore); color: var(--ink); } }

.ticket { grid-column: 5 / -1; display: grid; grid-template-columns: 7fr 3fr; min-height: calc((var(--content) * 0.66) / 2.3); background: var(--shore); color: var(--ink); --focus: var(--ink); }
.ticket__main { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ticket__name { font: 900 var(--step-title)/0.9 var(--font-display); letter-spacing: -0.05em; text-transform: uppercase; text-wrap: balance; }
.ticket__why { font-weight: 700; line-height: 1.3; max-width: 30em; }
.ticket__lines { list-style: none; margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; line-height: 1.3; }
.ticket__stub { position: relative; border-left: 6px dotted var(--night); padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; left: -17px; width: 28px; height: 28px; border-radius: 50%; background: var(--night); }
.ticket__stub::before { top: -14px; }
.ticket__stub::after { bottom: -14px; }
.ticket__total { font: 900 var(--step-head)/0.9 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.ticket__unit { margin-top: 6px; font-size: var(--step-small); font-weight: 700; }
.ticket__end { margin-top: auto; padding: 14px; background: var(--ink); color: var(--chalk); font-size: var(--step-small); font-weight: 700; line-height: 1.3; }
.ticket__total + .ticket__unit + .ticket__end { margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.showcase) .ticket.is-bump .ticket__total { animation: bump 360ms var(--ease-out); }
}
@keyframes bump { 40% { transform: translateY(-6px); } }

/* ---------- getting there: facts as rows, then the map ---------- */
.rows .row { margin: 0; padding: clamp(26px, 4.6vw, 68px) var(--margin) clamp(10px, 1.3vw, 20px); max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--gutter); }
.rows h2.row { display: block; }
.row__big { font-size: var(--step-head); line-height: 1; letter-spacing: -0.04em; }
.row__note { font-size: var(--step-lead); line-height: 1.2; text-align: right; }
.rows .row:nth-child(even) { background: var(--paper-2); }
.visit__grid { padding: clamp(48px, 6vw, 88px) var(--margin) clamp(56px, 6vw, 88px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; align-items: start; }
.map { grid-column: 1 / 8; margin: 0; }
.map__svg { display: block; width: 100%; height: auto; }
.map .pin { transition: transform var(--t-ui) var(--ease-out); transform-box: fill-box; transform-origin: center; }
.map .pin.is-hot { transform: scale(1.35); }
.map__key { margin-top: 20px; list-style: none; counter-reset: key; columns: 2; column-gap: var(--gutter); font-size: var(--step-small); line-height: 1.3; }
.map__key li { counter-increment: key; break-inside: avoid; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; align-items: start; padding: 5px 0; }
.map__key li::before { content: counter(key); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: var(--step-small); line-height: 1; }
.map figcaption .note { margin-top: 14px; }
.visit__text { grid-column: 8 / -1; display: grid; gap: 28px; padding-left: clamp(0px, 1.6vw, 24px); }
.visit__text h3 { font: 900 var(--step-lead)/1 var(--font-display); letter-spacing: -0.035em; margin-bottom: 8px; }

/* ---------- before you come: a band per question ---------- */
.band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 16px; padding: clamp(40px, 4.4vw, 60px) var(--margin); align-items: start; }
.band--head { min-height: 40svh; align-items: end; padding-top: var(--sec); padding-bottom: clamp(24px, 3vw, 40px); }
.band--head h2 { grid-column: 1 / -1; }
.band h3 { grid-column: 1 / 6; font: 900 var(--step-title)/0.94 var(--font-display); letter-spacing: -0.045em; text-transform: uppercase; text-wrap: balance; }
.band__a { grid-column: 7 / -1; }
.band__a p { max-width: 60ch; }

/* ---------- countdown: the action tile ---------- */
.count { padding: var(--sec) 0; overflow: clip; }
.tiles { display: grid; grid-template-columns: 2fr 8fr 2fr; gap: 12px; }
.tile { min-height: 360px; min-width: 0; }
.tile--pic { display: flex; align-items: flex-start; justify-content: center; overflow: clip; }
.tile__lantern { display: block; height: 92%; width: auto; max-width: 86%; transform-origin: 50% 0; }
.tile--main { padding: clamp(24px, 3.2vw, 44px); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-rows: auto 1fr auto; column-gap: clamp(24px, 3vw, 48px); row-gap: 18px; align-items: start; justify-items: start; }
.tile--main h2 { font-size: var(--step-title); grid-column: 1; }
.tile--main .clock { grid-column: 1; grid-row: 2 / span 2; align-self: end; }
.tile--main .clock__line { grid-column: 2; grid-row: 1 / span 2; }
.tile--main .btn { grid-column: 2; grid-row: 3; }
.clock { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 1.9vw, 28px); font-weight: 700; max-width: none; }
.clock span { display: block; }
.clock b { display: block; font: 900 var(--step-head)/0.86 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }

/* ---------- footer: the name first ---------- */
.foot { padding: clamp(40px, 6vw, 88px) var(--margin) 28px; overflow: clip; }
.foot__name { font: 900 calc(var(--content) / 6.95)/0.86 var(--font-display); text-transform: uppercase; white-space: nowrap; max-width: none; }
.foot__name span { display: inline-block; letter-spacing: -0.05em; margin-left: -0.05em; }
.foot__grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: start; }
.foot__big { grid-column: 1 / 6; list-style: none; font: 900 var(--step-title)/1 var(--font-display); letter-spacing: -0.04em; }
.foot__big a { text-decoration: none; display: inline-block; padding: 8px 0; }
.foot__cols { grid-column: 6 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px var(--gutter); font-size: var(--step-small); line-height: 1.4; }
.foot__cols h3 { font-size: var(--step-small); font-weight: 900; margin-bottom: 6px; }
.foot__cols p { overflow-wrap: break-word; }
.clock__line { max-width: 46ch; }
.foot__end { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; font-size: var(--step-small); }
.foot__end a { font-weight: 700; display: inline-block; padding: 10px 0; }
@media (hover: hover) and (pointer: fine) { .foot__big a:hover { text-decoration: underline; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js:not(.showcase) .name [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 120ms); }
  .js:not(.showcase) .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 520ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js:not(.showcase) .name.is-in .line { overflow: visible; }
  .js:not(.showcase) .name.is-in .float { animation: float 5.5s ease-in-out 200ms infinite alternate; }
  .js:not(.showcase) [data-reveal] { transform: translateY(30px); transition: transform 900ms var(--ease-expo) calc(var(--r, 0) * 80ms); }
  .js:not(.showcase) [data-reveal="left"] { transform: translateX(-28px); }
  .js:not(.showcase) [data-reveal="card"] { transform: translateY(36px) scale(0.97); transform-origin: 50% 100%; }
  .js:not(.showcase) [data-reveal="ticket"] { transform: translateY(24px) rotate(-1.6deg); }
  .js:not(.showcase) [data-reveal].is-in { transform: none; }
  .js:not(.showcase) .tile__lantern { animation: sway 4.6s ease-in-out infinite alternate; }
  .js .is-paused, .js .is-paused * { animation-play-state: paused !important; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translateY(-0.01em) rotate(0.16deg); } to { transform: translateY(0.018em) rotate(-0.2deg); } }
@keyframes sway { from { transform: rotate(-3.2deg); } to { transform: rotate(3.2deg); } }
.showcase, .showcase *, .showcase *::before, .showcase *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html, *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .film:hover .film__card, .btn:active, .show:active { transform: none; }
}

/* ---------- narrower than a desk ---------- */
@media (max-width: 1279px) {
  .planner__body { grid-template-columns: minmax(0, 1fr); }
  .mine { position: static; max-height: none; overflow: visible; padding: clamp(40px, 6vw, 64px) var(--margin) clamp(56px, 8vw, 88px); }
  .mine__items { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
  .tile--main { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .tile--main .clock, .tile--main .clock__line, .tile--main .btn { grid-column: 1; grid-row: auto; }
  .foot__big, .foot__cols { grid-column: 1 / -1; }
  .col--water { --pr: var(--margin); }
  .night__count { padding-right: var(--margin); }
}
@media (max-width: 1099px) {
  .films { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picker { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); padding-right: 0; }
  .picker .chips--nights, .picker > .tick { grid-column: 1 / -1; }
  .ticket { grid-column: 1 / -1; min-height: calc(var(--content) / 2.3); }
  .tickets__prices { grid-column: 1 / -1; }
  .map { grid-column: 1 / -1; }
  .visit__text { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); padding-left: 0; }
  .visit__text > .note { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .sec-head h2, .sec-head .lead { grid-column: 1 / -1; }
  .films { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .night { grid-template-columns: minmax(0, 1fr); }
  .night::before, .night::after { display: none; }
  .night__name { background: var(--shore); padding: 44px var(--margin) 4px; }
  .night__count { background: var(--shore); justify-content: flex-start; text-align: left; padding: 0 var(--margin) 10px; }
  .schedule[data-screen="water"] .night__name, .schedule[data-screen="water"] .night__count { background: var(--water); }
  .col { --pl: var(--margin); --pr: var(--margin); padding-bottom: 20px; }
  .col--shore { background: var(--shore); }
  .col--water { background: var(--water); padding-top: 16px; }
  .hero { --fs: calc(var(--content) / 4.16); min-height: 0; grid-template-rows: auto auto auto auto; }
  .name .line--wake { font-size: 1.47em; }
  .hero__when { grid-column: 1 / -1; grid-row: 3; justify-self: start; text-align: left; margin: clamp(20px, 4vw, 36px) 0 0; }
  .hero__when span:first-child, .hero__when span:last-child { font-size: var(--step-title); }
  .hero__foot { grid-row: 4; padding-top: clamp(28px, 7vw, 72px); }
  .row__note { text-align: left; }
  .band h3, .band__a { grid-column: 1 / -1; }
  .band { padding-block: 36px; }
  .hero__lead { grid-column: 1 / -1; }
  .hero__foot .btn { grid-column: 1 / -1; justify-self: start; margin-top: 20px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--main { grid-column: 1 / -1; order: -1; margin: 0 var(--margin); }
  .tile--pic, .tile--flat { min-height: 132px; height: 132px; }
  .tile__lantern { height: 88%; margin-top: 0; }
}

/* ---------- phone: its own composition ---------- */
@media (max-width: 599px) {
  .nav__wide { display: none; }
  .nav { min-height: 56px; }
  .nav__links { gap: 16px; }
  .hero { min-height: calc(100svh - var(--strip-h, 120px)); padding-bottom: 28px; grid-template-rows: auto auto auto 1fr; }
  .hero__foot .btn { width: 100%; }
  .films { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .film { display: grid; grid-template-columns: 37% minmax(0, 1fr); }
  .film__tag { display: contents; }
  .film__card { grid-column: 1; grid-row: 1; height: 100%; aspect-ratio: auto; min-height: 0; }
  .film svg.film__card { object-fit: cover; }
  .film__head { grid-column: 2; grid-row: 1; padding: 14px; min-height: calc(var(--content) * 0.37 * 1.25); }
  .film__body { grid-column: 1 / -1; grid-row: 2; padding: 14px; }
  .film__meta { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
  .film__meta span:nth-child(even) { text-align: left; }
  .filters { gap: 18px 16px; }
  .filters__count { margin-left: 0; width: 100%; min-height: 0; }
  .slot { column-gap: 12px; padding-block: 14px; }
  .slot__thumb { width: 48px; height: 60px; }
  .slot__state { min-width: 4.4em; }
  .picker { grid-template-columns: minmax(0, 1fr); }
  .ticket { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ticket__stub { border-left: 0; border-top: 6px dotted var(--night); padding-top: 36px; }
  .ticket__stub::before { left: -14px; top: -17px; }
  .ticket__stub::after { left: auto; right: -14px; top: -17px; bottom: auto; }
  .ticket__lines { grid-template-columns: minmax(0, 1fr); }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map__key { columns: 1; }
  .visit__text { grid-template-columns: minmax(0, 1fr); }
  .band--head { min-height: 30svh; }
  .row__note { font-size: var(--step-body); }
  .foot__cols { grid-template-columns: minmax(0, 1fr); }
}
