:root {
  --night: #1a1030;
  --night-2: #231742;
  --night-3: #2e2054;
  --cream: #ffe9c7;
  --cream-dim: #e9d3b4;
  --orange: #ff7a3d;
  --teal: #3fd1b5;
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  /* one spacing scale: section > block > gap > tight */
  --sp-section: clamp(80px, 9vw, 136px);
  --sp-block: clamp(36px, 4.4vw, 64px);
  --sp-gap: clamp(24px, 2.6vw, 36px);
  --sp-tight: 18px;
  --grain: url(img/grain.webp);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* gouache paper tooth: one small static tile on a layer behind the content, scrolling with the page */
body, .mapsec, .vendors { position: relative; isolation: isolate; }
body::before, .mapsec::before, .vendors::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--grain);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cream); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
  font-variation-settings: 'opsz' 72;
  text-wrap: balance;
}
p, dd, li, figcaption { text-wrap: pretty; }
h3 { font-weight: 600; line-height: 1.12; letter-spacing: 0; font-variation-settings: 'opsz' 32; }
p { margin: 0; }
strong { font-weight: 600; }

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

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--orange); color: var(--night); padding: 10px 16px; font-weight: 600; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--pad);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--orange); color: var(--night);
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0;
}
.brand-name { font-family: var(--display); font-weight: 650; font-size: 1.15rem; letter-spacing: 0; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 400; font-size: .98rem; padding: 10px 0; opacity: .92; }
.nav a { text-decoration: underline 2px transparent; text-underline-offset: 7px; transition: color .2s ease, text-decoration-color .2s ease; }
.nav a:hover { opacity: 1; color: #fff; text-decoration-color: var(--orange); }
.top-cta {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1.5px solid var(--orange); color: var(--cream);
  padding: 9px 16px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
  background: rgba(26, 16, 48, .55);
}
.top-cta { transition: background-color .2s ease, color .2s ease; }
.top-cta:hover { background: var(--orange); color: var(--night); }
.top-cta:focus-visible, .btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  min-height: max(100dvh, 680px);
  isolation: isolate;
  overflow: hidden;
}
.hero-map {
  position: absolute; inset: 0; overflow: hidden;
  container-type: size;
  background: var(--night);
  z-index: 0;
}
.stage {
  --fx: .44; --fy: .56;
  --w: max(100cqw, 150cqh);
  position: absolute;
  width: var(--w);
  height: calc(var(--w) * 2 / 3);
  left: clamp(calc(100cqw - var(--w)), calc(50cqw - var(--fx) * var(--w)), 0px);
  top: clamp(calc(100cqh - var(--w) * 2 / 3), calc(50cqh - var(--fy) * var(--w) * 2 / 3), 0px);
}
.map-img { width: 100%; height: 100%; object-fit: cover; }
/* one flat colour wash (no gradient, no second layer): dusk pink, then night blue-black */
.tint { position: absolute; inset: 0; pointer-events: none; background-color: rgba(14, 7, 34, .37); transition: background-color 2.4s ease; }

.glows { position: absolute; inset: 0; }
.glow {
  position: absolute;
  width: 6.2%; aspect-ratio: 1;
  margin: -3.1% 0 0 -3.1%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 170, .9) 0%, rgba(255, 168, 92, .62) 16%, rgba(255, 122, 61, .3) 38%, rgba(255, 122, 61, 0) 68%);
  mix-blend-mode: screen;
  opacity: 1;
  transform: scale(1);
  transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .8, .2, 1.2) var(--d, 0s);
}
.glow i {
  position: absolute; inset: 45%;
  border-radius: 50%;
  background: #fff1d2;
  box-shadow: 0 0 6px 2px rgba(255, 210, 140, .8);
}
.spot {
  position: absolute; left: 59.5%; top: 40%;
  width: 24%; aspect-ratio: 1; margin: -12% 0 0 -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 180, 1) 0%, rgba(255, 170, 110, .75) 18%, rgba(255, 122, 61, .35) 40%, rgba(255, 122, 61, 0) 66%);
  mix-blend-mode: screen;
  opacity: 0; transform: scale(.6);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* states */
.hero[data-state="dusk"] .tint { background-color: rgba(196, 116, 112, .5); }
.hero[data-state="dusk"] .glow { opacity: 0; transform: scale(.3); }
.hero[data-state="concert"] .spot { opacity: 1; transform: scale(1); }
.hero[data-state="late"] .tint { background-color: rgba(14, 7, 34, .6); }
.hero[data-state="late"] .glow.closes { opacity: 0; transform: scale(.3); }
/* before JS kicks off the evening, start at dusk (JS off: final lit state shows) */
.js .hero:not(.go) .tint { background-color: rgba(196, 116, 112, .5); transition: none; }
.js .hero:not(.go) .glow { opacity: 0; transform: scale(.3); transition: none; }


/* scrims */
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero::before {
  background: linear-gradient(180deg, rgba(26, 16, 48, .94) 0%, rgba(26, 16, 48, .72) 20%, rgba(26, 16, 48, .2) 36%, rgba(26, 16, 48, 0) 46%);
}
.hero::after {
  background: linear-gradient(0deg, rgba(26, 16, 48, .9) 0%, rgba(26, 16, 48, .55) 12%, rgba(26, 16, 48, 0) 26%);
}

.hero-copy {
  grid-column: 1; grid-row: 1;
  align-self: start;
  position: relative; z-index: 2;
  padding: clamp(92px, 12vh, 120px) var(--pad) 0;
}
.hero h1 {
  font-size: clamp(3.2rem, 8.4vw, 8.2rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(26, 16, 48, .6);
}
.hero-sub {
  margin-top: 14px;
  font-family: var(--display); font-weight: 560; font-variation-settings: 'opsz' 32;
  font-size: clamp(1.15rem, 1.9vw, 1.65rem); line-height: 1.2;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(26, 16, 48, .9);
}

.clock {
  grid-column: 2; grid-row: 1 / 3;
  align-self: end;
  position: relative; z-index: 2;
  width: min(360px, 30vw);
  margin: 0 var(--pad) clamp(28px, 6vh, 64px) 0;
  padding: 24px 24px 22px;
  background: rgba(26, 16, 48, .93);
  border-radius: 18px;
  box-shadow: 0 14px 28px -16px rgba(6, 2, 18, .8);
}
.clock-label { font-size: .9rem; font-weight: 400; color: var(--cream-dim); }
.clock-label .open-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); margin-right: 8px; }
.clock-label.is-open { color: var(--teal); font-weight: 600; }
.clock-digits {
  font-family: var(--display); font-weight: 640; font-variation-settings: 'opsz' 72;
  font-size: clamp(2.3rem, 3.4vw, 3.2rem);
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 8px 0 10px;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.clock-digits small { font-size: .42em; font-weight: 560; color: var(--cream-dim); letter-spacing: 0; margin: 0 .4em 0 .14em; }
.clock-digits small:last-child { margin-right: 0; }
.clock-digits small.pre { margin: 0 .3em 0 0; }
.clock-when { font-size: .95rem; color: var(--cream); font-weight: 400; }
.clock-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  background: var(--orange); color: var(--night);
  border: 0; border-radius: 999px;
  font-family: var(--body); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { color: var(--night); background: #ffa06f; box-shadow: inset 0 0 0 2px rgba(26, 16, 48, .18); }
.btn:active { background: #f26a2c; }

.scrub {
  grid-column: 1; grid-row: 2;
  position: relative; z-index: 2;
  padding: 0 var(--pad) clamp(28px, 6vh, 64px);
  max-width: 720px;
}
.scrub-label { font-size: .88rem; font-weight: 400; color: var(--cream-dim); margin-bottom: 10px; }
.scrub-row { display: flex; gap: 6px; flex-wrap: wrap; }
.scrub button {
  min-height: 48px; padding: 8px 16px;
  font: 400 .9rem/1.1 var(--body);
  color: var(--cream-dim);
  background: rgba(26, 16, 48, .82);
  border: 1.5px solid rgba(255, 233, 199, .28);
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex; gap: 8px; align-items: baseline;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.scrub button b { font: 620 1rem/1.1 var(--display); font-variation-settings: 'opsz' 32; color: var(--cream); }
.scrub button:hover { border-color: var(--orange); color: var(--cream); background: rgba(46, 32, 84, .92); }
.scrub button:focus-visible { outline-color: var(--cream); }
.scrub button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--night); }
.scrub button[aria-pressed="true"] b { color: var(--night); }
.scrub-cap { margin-top: 12px; font-size: 1rem; font-weight: 400; color: var(--cream); text-shadow: 0 1px 10px rgba(26, 16, 48, 1); min-height: 3.2em; }

/* ---------- facts band under a string of 42 bulbs ---------- */
.facts { position: relative; padding: 0 var(--pad) var(--sp-block); }
.garland { display: block; width: calc(100% + 2 * var(--pad)); height: 96px; margin: -36px calc(-1 * var(--pad)) 0; position: relative; z-index: 3; }
.garland .wire { fill: none; stroke: #0b0618; stroke-width: 2.4; stroke-linecap: round; }
.garland .c { fill: #3a2c52; }
.garland .f { fill: #ffe2ac; }
.garland .h { fill: url(#halo); }
.facts-line {
  max-width: 30em; margin-top: 8px;
  font-family: var(--display); font-weight: 520; font-variation-settings: 'opsz' 32;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem); line-height: 1.25; letter-spacing: -0.005em;
  color: var(--cream-dim);
  text-wrap: balance;
}
.facts-line b { font-weight: 660; color: var(--cream); font-variation-settings: 'opsz' 72; font-size: 1.28em; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* ---------- shared section bits ---------- */
section:not(.hero) { padding: var(--sp-section) var(--pad); }
section h2 { font-size: clamp(2.8rem, 6.4vw, 5.8rem); }
.section-lede { font-size: 1.1rem; max-width: 34em; color: var(--cream-dim); margin-top: var(--sp-tight); }

/* ---------- ma este ---------- */
.tonight {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head menu" "photo menu";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 112px); row-gap: var(--sp-block);
}
section.tonight { padding-top: calc(var(--sp-section) * .7); }
.tonight-head { grid-area: head; }
/* the organiser's slip, taped to the board: today's note */
.note {
  position: relative; max-width: 25em; margin-top: var(--sp-gap);
  padding: 20px 22px 16px; background: #fff3dc; color: #2a1d3d;
  font-size: 1rem; line-height: 1.5; font-weight: 400;
  transform: rotate(1.4deg); border-radius: 2px;
  box-shadow: 0 10px 18px -12px rgba(6, 2, 18, .9);
}
.note::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 86px; height: 22px; margin-left: -43px;
  background: rgba(255, 233, 199, .55); transform: rotate(-3deg);
}
.note-date {
  display: inline-block; margin-right: 8px; padding: 1px 7px;
  font: 600 .9rem/1.4 var(--display); color: #b23c0c;
  border: 1.5px solid #b23c0c; border-radius: 4px; transform: rotate(-4deg);
}
.note-sign { display: block; text-align: right; margin-top: 4px; font-style: italic; color: #4a3a5e; }
.tonight-photo { grid-area: photo; margin: 0; align-self: start; }
.photo-frame { overflow: hidden; border-radius: 18px 18px 120px 18px; transform: rotate(-1.2deg); box-shadow: 0 18px 30px -18px rgba(6, 2, 18, .85); }
.photo-frame img { width: 100%; transform-origin: 50% 0; }
.tonight-photo figcaption { margin-top: 20px; font-size: 1rem; color: var(--cream-dim); max-width: 30em; }
.tonight-photo figcaption strong { color: var(--cream); }
.menu { grid-area: menu; align-self: center; list-style: none; margin: 0; padding: 0; }
.menu li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: baseline;
  padding: 20px 0; position: relative;
}
.menu li::after, .menu li:first-child::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; border-radius: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 233, 199, .26) 0 5px, transparent 5px 10px);
  transform-origin: left center;
}
.menu li:first-child::before { top: 0; bottom: auto; }
.menu-no {
  font-family: var(--display); font-weight: 650; font-size: 1.05rem; text-decoration: none;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--orange); color: var(--orange); align-self: center;
  transition: background-color .25s ease, color .25s ease, box-shadow .35s ease;
}
/* hover lights the stall's lamp, the same warm glow as on the map */
.menu-no:hover, .menu-no:focus-visible { background: var(--orange); color: var(--night); box-shadow: 0 0 0 5px rgba(255, 122, 61, .18), 0 0 22px 4px rgba(255, 150, 80, .45); }
.menu-no:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.menu li:hover h3 { color: #fff; }
.menu h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.menu p { color: var(--cream-dim); margin-top: 4px; font-size: 1rem; }
.menu-price { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.45rem); white-space: nowrap; color: var(--cream); font-variant-numeric: tabular-nums; }
.menu li:first-child .menu-price, .menu li:nth-child(6) .menu-price { color: var(--orange); }

/* ---------- standtérkép ---------- */
.mapsec {
  background: var(--night-2);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  grid-template-areas: "head side" "map side";
  grid-template-rows: auto 1fr;
  gap: var(--sp-gap) clamp(28px, 4vw, 64px);
}
.mapsec-head { grid-area: head; max-width: 860px; }
.mapsec-map {
  grid-area: map; align-self: start;
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 18px 30px -18px rgba(6, 2, 18, .9);
}
.mini-stage { position: absolute; width: 147.06%; height: 147.06%; left: -7.35%; top: -42.65%; }
.mini-stage img { width: 100%; height: 100%; filter: saturate(.7) brightness(.55); transition: filter .5s ease; }
.pts { position: absolute; inset: 0; }
.pt {
  position: absolute; width: 0; height: 0;
}
.pt b {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: #ffd9a8; box-shadow: 0 0 0 3px rgba(26, 16, 48, .7), 0 0 18px 6px rgba(255, 122, 61, .75);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1.3), opacity .35s ease, background-color .35s ease;
}
.pt span {
  position: absolute; left: 12px; top: -26px;
  font: 650 13px/1 var(--display); color: var(--night);
  background: var(--orange); border-radius: 6px; padding: 4px 6px;
  opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease;
  white-space: nowrap;
}
.pt.dim b { opacity: .22; transform: scale(.6); }
.pt.hit b { background: var(--orange); transform: scale(1.15); }
.pt.sel b { background: #fff; transform: scale(1.5); }
.pt.sel span, .pt.hit.lbl span { opacity: 1; transform: none; }
.pt.sel { z-index: 3; }
.pt.peek b { background: var(--orange); transform: scale(1.4); opacity: 1; }
.pt.peek span { opacity: 1; transform: none; }
.pt.peek { z-index: 4; }

.mapsec-side { grid-area: side; align-self: start; padding-top: clamp(12px, 2vw, 28px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button, .chips button { cursor: pointer; font-family: var(--body); }
.filters button {
  min-height: 46px; padding: 10px 18px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; color: var(--cream);
  background: transparent; border: 1.5px solid rgba(255, 233, 199, .32);
}
.filters button { transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.filters button:hover { border-color: var(--orange); background: rgba(255, 122, 61, .1); }
.filters button[aria-pressed="true"] { background: var(--orange); color: var(--night); border-color: var(--orange); }
.filter-result { margin: 18px 0 16px; font-size: 1rem; color: var(--cream-dim); min-height: 3.2em; }
.filter-result strong { color: var(--cream); }
.chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.chips button {
  min-height: 44px; border-radius: 10px;
  font: 600 1rem/1 var(--display); font-variant-numeric: tabular-nums;
  color: var(--cream); background: var(--night-3); border: 1.5px solid transparent;
  transition: opacity .25s ease, background-color .25s ease, color .25s ease;
}
.chips button.mobile { border-style: dashed; border-color: rgba(255, 233, 199, .3); }
.chips button:hover, .chips button:focus-visible { border-color: var(--orange); opacity: 1; }
.chips button.dim { opacity: .45; }
.chips button[aria-pressed="true"] { background: var(--cream); color: var(--night); }
.stall-card {
  margin-top: 20px; padding: 20px 22px; border-radius: 16px;
  background: var(--night);
}
.stall-card-no { font-size: .92rem; color: var(--cream-dim); }
.stall-card-name { font-size: 1.7rem; margin: 6px 0 6px; }
.stall-card-dish { font-size: 1.05rem; }
.stall-card-tags { font-size: .92rem; color: var(--teal); margin-top: 8px; font-weight: 400; }

/* ---------- program: the evening runs left to right, like the scrubber in the hero ---------- */
.program {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head stage" "acts acts";
  gap: var(--sp-block) clamp(32px, 6vw, 112px);
  align-items: end;
}
.program-head { grid-area: head; }
.program-date { margin-top: var(--sp-tight); font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--orange); font-variation-settings: 'opsz' 32; }
.stage-crop {
  grid-area: stage; margin: 0;
  position: relative; overflow: hidden; aspect-ratio: 16 / 7;
  border-radius: 200px 200px 18px 18px / 120px 120px 18px 18px;
  box-shadow: 0 18px 30px -18px rgba(6, 2, 18, .9);
}
/* the painted map, zoomed so the stage (59.5% / 40% of the picture) sits in the middle */
.stage-crop img {
  position: absolute; max-width: none;
  width: 200%; height: auto;
  left: calc(50% - 200% * .595); top: calc(50% - 200% * 2 / 3 * .40 * 16 / 7);
}
.acts {
  grid-area: acts; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0 clamp(16px, 2vw, 32px);
  align-items: stretch;
}
.acts li {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 0 0;
  position: relative;
}
.acts li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: rgba(255, 233, 199, .18); transform-origin: left center; }
.acts time {
  font-family: var(--display); font-weight: 600; font-variation-settings: 'opsz' 72;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.005em;
  color: var(--cream-dim); font-variant-numeric: tabular-nums;
}
.acts h3 { font-size: clamp(1.35rem, 1.9vw, 1.75rem); }
.acts p { color: var(--cream-dim); margin-top: 8px; font-size: 1rem; max-width: 24em; }
.act-main::before { background: var(--orange) !important; height: 3px !important; }
.act-main time { color: var(--orange); }
.act-main h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.acts .now-tag { display: inline-block; margin-left: 10px; font: 600 .85rem var(--body); color: var(--night); background: var(--teal); padding: 3px 9px; border-radius: 6px; vertical-align: middle; letter-spacing: 0; }

/* ---------- árusoknak ---------- */
.vendors {
  background: var(--cream); color: var(--night);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas: "price form" "incl form";
  gap: var(--sp-block) clamp(32px, 6vw, 112px);
}
.vendors a { color: var(--night); }
.vendors .section-lede { color: #4a3a5e; }
.vendors-price { grid-area: price; }
.fee { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.fee strong {
  font-family: var(--display); font-weight: 640; font-variation-settings: 'opsz' 72;
  font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1.05; letter-spacing: -0.012em;
  color: #c24412;
}
.fee span { font-size: 1.1rem; font-weight: 400; }
.vendors-included { grid-area: incl; }
.incl-h { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--night); margin: 0 0 4px; }
.organizer { margin-top: 12px; max-width: 34em; font-size: 1rem; font-weight: 400; color: var(--night); }
.incl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.incl li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; border-radius: 2px; background: rgba(26, 16, 48, .2); transform-origin: left center; }
.incl li { position: relative; padding: 14px 0; font-size: 1rem; font-weight: 400; color: #3b2d50; }
.incl strong { display: block; font-family: var(--display); font-weight: 620; font-size: 1.25rem; color: var(--night); margin-bottom: 2px; }
.small-print { max-width: 60ch; margin-top: var(--sp-tight); font-size: .95rem; color: #4a3a5e; font-weight: 400; }
.apply {
  grid-area: form; align-self: start;
  background: var(--night); color: var(--cream);
  padding: clamp(24px, 3vw, 36px); border-radius: 22px 22px 22px 90px;
}
.apply a { color: var(--cream); }
.apply h3 { font-size: 2rem; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: .95rem; font-weight: 600; }
.field input, .field select {
  font: 400 1rem var(--body); color: var(--cream);
  background: var(--night-2); border: 1.5px solid rgba(255, 233, 199, .3);
  border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field input::placeholder { color: rgba(255, 233, 199, .62); }
.field input, .field select { transition: border-color .2s ease, background-color .2s ease; }
.field input:hover, .field select:hover { border-color: rgba(255, 233, 199, .55); }
.field input:focus-visible, .field select:focus-visible { border-color: var(--orange); background: var(--night-3); outline-offset: 1px; }
.apply .btn { margin-top: 6px; width: 100%; }
.apply-note { margin-top: 14px; font-size: .92rem; color: var(--cream-dim); font-weight: 400; }
.apply-note.ok { color: var(--teal); }
.apply-note a { display: inline-block; padding: 12px 0; margin: -12px 0; transition: color .2s ease, text-decoration-color .2s ease; }
.apply-note a:hover, .foot a:hover { color: var(--orange); text-decoration-thickness: 2px; }

/* ---------- megközelítés ---------- */
.getthere {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: center;
}
.getthere-photo { margin: 0; justify-self: center; width: min(100%, 560px); overflow: hidden; border-radius: 280px 280px 18px 18px / 220px 220px 18px 18px; }
/* fixed box, so the lazy image cannot shift the page when it arrives */
.getthere-photo img {
  width: 100%; aspect-ratio: 2 / 3; max-height: min(88vh, 840px);
  object-fit: cover; object-position: 50% 70%;
}
.getthere-text { max-width: 44rem; }
.address { margin-top: var(--sp-gap); font-family: var(--display); font-weight: 580; font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.2; color: var(--cream); font-variation-settings: 'opsz' 32; }
.ways { margin: var(--sp-block) 0 0; display: grid; gap: 22px; }
.ways div { display: grid; grid-template-columns: minmax(9.5em, 2fr) minmax(0, 5fr); gap: 4px 24px; align-items: baseline; }
.ways dt { font-family: var(--display); font-weight: 620; font-size: 1.15rem; color: var(--cream); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ways dd { margin: 0; font-size: 1rem; color: var(--cream-dim); }
/* Budapest line marks, in the colours on the stop signs */
.line { display: inline-grid; place-items: center; min-width: 2.1em; height: 1.6em; padding: 0 .35em; font: 700 .82rem/1 var(--display); letter-spacing: 0; border-radius: 4px; }
.line.tram { background: #ffd800; color: #1a1030; }
.line.m2 { background: #e41f18; color: #fff; border-radius: 50%; min-width: 1.8em; height: 1.8em; }
.line.hev { background: #821066; color: #fff; }
.access { max-width: 60ch; margin-top: var(--sp-gap); font-size: 1rem; color: var(--cream-dim); }

/* ---------- footer ---------- */
.foot {
  display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 28px; align-items: end;
  padding: 48px var(--pad) 56px;
  border-top: 1px solid rgba(255, 233, 199, .14);
  font-size: 1rem; color: var(--cream-dim);
}
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand strong { color: var(--cream); font-family: var(--display); font-size: 1.2rem; }
.foot a { display: inline-block; padding: 6px 0; }
.foot-made { text-align: right; font-size: .95rem; }

/* ---------- scroll-driven entries ----------
   Resting state is the final state. Only where view() timelines exist and motion is welcome does anything move,
   and every entry is finished by the time the element is 30% into the viewport. Text never moves: the rules
   under it draw in, the stall numbers light up, the paintings settle inside their own frames. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes ep-draw { from { transform: scaleX(0); } }
    @keyframes ep-settle { from { transform: scale(1.07); } }
    @keyframes ep-pop { from { transform: scale(.6); } }
    @keyframes ep-numlamp { from { color: rgba(255, 122, 61, .35); border-color: rgba(255, 122, 61, .2); } }
    @keyframes ep-lamp { from { opacity: .12; } }
    @keyframes ep-filament { from { fill: #6b5a7e; } }
    .menu li::after, .menu li:first-child::before, .acts li::before, .incl li::before,
    .menu-no, .ways .line, .photo-frame img, .mini-stage, .stage-crop img, .getthere-photo img {
      animation-timing-function: linear; animation-fill-mode: both;
      animation-timeline: view(); animation-range: entry 0% cover 30%;
    }
    .menu li::after, .menu li:first-child::before, .acts li::before, .incl li::before { animation-name: ep-draw; animation-range: entry 0% cover 20%; }
    .menu-no { animation-name: ep-numlamp; }
    .ways .line { animation-name: ep-pop; animation-range: entry 0% cover 15%; }
    .photo-frame img, .mini-stage, .getthere-photo img { animation-name: ep-settle; }
    .mini-stage, .getthere-photo img { transform-origin: 50% 0; }
    .stage-crop img { animation-name: ep-settle; transform-origin: 59.5% 40%; }
    /* the 42 bulbs come on in three waves as the string scrolls into view */
    .garland .h { animation: ep-lamp linear both; animation-timeline: view(); }
    .garland .f { animation: ep-filament linear both; animation-timeline: view(); }
    .garland .l1 :is(.h, .f) { animation-range: entry 0% cover 18%; }
    .garland .l2 :is(.h, .f) { animation-range: entry 20% cover 24%; }
    .garland .l3 :is(.h, .f) { animation-range: entry 40% cover 30%; }
  }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .top-cta { margin-left: auto; }
  .mapsec { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "map" "side"; grid-template-rows: auto; }
  .mapsec-side { padding-top: 0; }
  .chips { grid-template-columns: repeat(14, minmax(0, 1fr)); }
  .acts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-gap) clamp(16px, 3vw, 32px); }
  .ways div { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .top { padding: 12px 18px; }
  .brand-name { font-size: 1.05rem; }
  .top-cta { padding: 9px 14px; font-size: .92rem; }

  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; min-height: 0; }
  .hero-map { position: relative; inset: auto; grid-column: 1; grid-row: 1; height: min(72svh, 600px); min-height: 460px; }
  .stage { --fx: .40; --fy: .55; }
  .hero::before { background: linear-gradient(180deg, rgba(26, 16, 48, .95) 0%, rgba(26, 16, 48, .7) 120px, rgba(26, 16, 48, .15) 210px, rgba(26, 16, 48, 0) 260px); }
  .hero::after { inset: auto 0 auto 0; top: 0; height: min(72svh, 600px); min-height: 460px; background: linear-gradient(0deg, rgba(26, 16, 48, .95) 0%, rgba(26, 16, 48, .6) 110px, rgba(26, 16, 48, 0) 200px); }
  .hero-copy { grid-column: 1; grid-row: 1; padding: 78px 20px 0; }
  .hero h1 { font-size: clamp(3rem, 14.5vw, 4.2rem); }
  .hero-sub { font-size: 1.1rem; margin-top: 10px; }
  .scrub { grid-column: 1; grid-row: 1; align-self: end; padding: 0 16px 14px; }
  .scrub-label { display: none; }
  .scrub-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .scrub button { flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; min-height: 54px; }
  .scrub button { font-size: .78rem; }
  .scrub-cap { font-size: .95rem; margin-top: 8px; min-height: 2.9em; }
  .clock { grid-column: 1; grid-row: 2; width: auto; margin: 0; border-radius: 0; padding: 22px 20px 30px; background: var(--night); box-shadow: none; }
  .clock-digits { font-size: clamp(2.2rem, 11vw, 2.9rem); }
  .clock-actions .btn { flex: 1 1 auto; }

  .garland { height: 64px; margin-top: -22px; }
  .facts-line { font-size: clamp(1.3rem, 6vw, 1.6rem); }

  section h2 { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .note { transform: rotate(.8deg); }
  .section-lede { font-size: 1.02rem; }

  .tonight, .mapsec, .program, .vendors, .getthere, .foot { grid-template-columns: minmax(0, 1fr); }
  .tonight { grid-template-areas: "head" "photo" "menu"; grid-template-rows: auto; row-gap: 32px; }
  /* phone: a 4:5 crop that keeps the cook and the lángos in frame */
  .photo-frame { border-radius: 16px 16px 80px 16px; transform: none; }
  .photo-frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; }
  .menu li { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; }
  .menu-no { width: 36px; height: 36px; font-size: .98rem; }

  .mapsec { grid-template-areas: "head" "map" "side"; gap: 28px; }
  .mapsec-map { border-radius: 14px; }
  .pt b { left: -6px; top: -6px; width: 12px; height: 12px; box-shadow: 0 0 0 2px rgba(26, 16, 48, .7), 0 0 12px 4px rgba(255, 122, 61, .75); }
  .pt span { font-size: 12px; left: 8px; top: -22px; padding: 3px 5px; }
  .chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .menu-no { width: 40px; height: 40px; }
  .filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .filters button { padding: 10px 4px; }

  .program { grid-template-areas: "head" "stage" "acts"; gap: 32px; }
  .stage-crop { aspect-ratio: 4 / 3; border-radius: 120px 120px 14px 14px / 90px 90px 14px 14px; }
  .stage-crop img { width: 280%; left: calc(50% - 280% * .595); top: calc(50% - 280% * 2 / 3 * .40 * 4 / 3); }
  .acts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .acts li { gap: 8px; padding: 20px 0 22px; }

  .vendors { grid-template-areas: "price" "incl" "form"; gap: 40px; }
  .incl { grid-template-columns: minmax(0, 1fr); }
  .apply { border-radius: 18px 18px 18px 60px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .getthere-photo { order: 2; width: 100%; border-radius: 140px 140px 16px 16px / 110px 110px 16px 16px; }
  /* phone: 4:5 so the friends on the steps and the Parliament both stay in */
  .getthere-photo img { aspect-ratio: 4 / 5; max-height: none; object-position: 50% 62%; }

  .foot { gap: 18px; }
  .foot-made { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* without JS (or if site.js never loads): all content visible; controls and date-dependent widgets hidden */
html:not(.js) .scrub, html:not(.js) .filters, html:not(.js) .chips, html:not(.js) .js-only { display: none !important; }
html.js .nojs-only { display: none !important; }
