/* ============================================================
   Asztalkő Fesztivál — landing page styles
   Design inspired by the LOKA FoodFest reference.
   ============================================================ */

/* ============================================================
   Betűtípusok — helyben tárolva (assets/fonts/)

   Korábban a Google Fontsról jöttek, ami két extra kapcsolatot és
   plusz körbefordulót jelentett: a szöveg előbb rendszerfonttal
   rajzolódott ki, majd „ugrott” egyet, amikor megérkezett a Nunito.
   A saját kiszolgálásról érkező, <link rel="preload">-dal betöltött
   woff2 már a stíluslappal párhuzamosan tölt, így a csere nem látszik.
   Mindkettő változó betűtípus (variable font): egy fájl fedi le az
   összes súlyt 400-tól 900-ig.
   ============================================================ */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/caveat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/caveat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette pulled from asztalkofesztival.hu — olive green + warm gold on cream */
  --olive-900: #3d3f24;   /* deepest, used for display headings */
  --olive-700: #5f6143;   /* primary brand olive */
  --olive-500: #656747;   /* main olive */
  --olive-400: #7e8154;
  --olive-300: #929566;   /* lighter olive */
  --olive-200: #b7b994;
  --olive-100: #dcdebd;

  --gold-700: #b8723a;    /* terracotta — deep accent */
  --gold-500: #d9a14c;    /* warm amber — primary accent (replaces pink) */
  --gold-400: #e5b86b;
  --gold-300: #f0c47a;
  --gold-100: #fbe7c0;

  /* Arculati színek a logóból mintázva (assets/logo.png):
     sötét olíva #797859 · zsálya #b2b998 · halvány zsálya #d5d9ca · mályva #ae9da5 */
  --mauve-500: #ae9da5;
  --mauve-700: #8a7580;
  --sage-100:  #d5d9ca;

  --cream:      #f6f1e3;
  --cream-soft: #fdfbf3;
  --paper:      #ffffff;

  --ink:   #2a2a1f;
  --muted: #6b6a55;

  --sign-green:      #4a5a35;
  --sign-green-dark: #2f3a22;

  /* legacy aliases — old variable names retained so existing rules keep working */
  --purple-900: var(--olive-900);
  --purple-700: var(--olive-700);
  --purple-500: var(--olive-500);
  --purple-300: var(--olive-300);
  --pink-500:   var(--gold-500);
  --pink-400:   var(--gold-400);
  --pink-300:   var(--gold-300);
  --yellow:     var(--gold-500);
  --green-pill: var(--olive-100);
  --lime:       var(--olive-200);
  --green-sign:      var(--sign-green);
  --green-sign-dark: var(--sign-green-dark);
  --paper-soft: var(--cream-soft);
  --sky-top: var(--cream);
  --sky-bot: var(--cream-soft);

  /* Címsorok: Outfit — geometrikus váz, lapos „A"-csúcs és kör alakú „Ő”,
     mint a szóvédjegyen, de a Nunitónál jóval kevésbé gömbölyű.
     Kenyérszöveg: marad a Nunito, apró méretben az olvashatóbb.
     A tartalékok böngészőben mért legjobb közelítések (Outfit→Helvetica Neue
     +0,5%, Nunito→Arial ±1%), hogy font-csere közben ne ugorjon a tördelés. */
  --display: "Outfit", "Helvetica Neue", Arial, Helvetica, system-ui, sans-serif;
  --body:    "Nunito", Arial, Helvetica, system-ui, sans-serif;
  --hand:    "Caveat", "Brush Script MT", cursive;

  /* Motion — shared easing curves */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .44, 1);

  /* Elevation — warm, olive-tinted layered shadows */
  --shadow-sm: 0 1px 2px rgba(61, 55, 26, .05), 0 3px 10px rgba(61, 55, 26, .07);
  --shadow-md: 0 3px 8px rgba(61, 55, 26, .06), 0 14px 30px rgba(61, 55, 26, .11);
  --shadow-lg: 0 8px 18px rgba(61, 55, 26, .08), 0 26px 56px rgba(61, 55, 26, .17);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--body);
  color: var(--ink);
  background: linear-gradient(180deg, #faf6e7 0%, var(--cream-soft) 55%, #fffcf2 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Ambient bokeh texture on its own composited layer —
   background-attachment:fixed repaints on scroll (and breaks on iOS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('assets/bokeh.jpg') no-repeat top center / 1800px auto;
  pointer-events: none;
}

a { color: inherit; }

::selection {
  background: var(--gold-500);
  color: #fff;
}

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

@media (pointer: fine) {
  ::-webkit-scrollbar { width: 12px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: var(--olive-200);
    border: 3px solid var(--cream-soft);
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--olive-300); }
}

.highlight {
  position: relative;
  display: inline-block;
  color: var(--paper);
  padding: 0 .12em;
  z-index: 0;
}
.highlight::before {
  content: "";
  position: absolute;
  /* A felső érték negatív: a magyar nagybetűs ékezetek (Ő, Ű, Í, É) a
     betűméret 14-16%-ával nyúlnak a sordoboz fölé, ezért a kiemelődoboz
     teteje ennyivel feljebb kezdődik, különben az ékezet kilóg róla. */
  inset: -20% -4% 4% -4%;
  background: var(--gold-500);
  z-index: -1;
  transform: skewY(-2deg);
  border-radius: 6px 18px 8px 22px / 12px 8px 18px 10px;
  box-shadow:
    -2px 4px 0 rgba(184,114,58,.32),
    inset 0 -3px 0 rgba(0,0,0,.06);
}

.pink { color: var(--gold-700); }

/* Display headings: Nunito 900 — rounded sans, heaviest weight, latin-ext */
.hero__title,
.section-title,
.when-where__title,
.day-card__day,
.day-card__date,
.polaroid__caption-top,
.polaroid__caption-bottom,
.performer__name p,
.since__label,
.since__year {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.015em;
}
.hero__title-top,
.hero__title-bottom,
.section-title__top,
.section-title__bottom,
.when-where__title-top,
.when-where__title-bottom {
  text-transform: uppercase;
}

/* ============================================================
   Top ticker bar
   ============================================================ */
.ticker {
  position: relative;
  background: var(--olive-900);
  border-bottom: 1px solid rgba(0,0,0,.15);
  overflow: hidden;
  padding: 12px 0;
}
/* Soft edge fades so the ribbon text dissolves instead of clipping */
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 120px);
  z-index: 1;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--olive-900), rgba(61,63,36,0));
}
.ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--olive-900), rgba(61,63,36,0));
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .10em;
  color: var(--cream);
  animation: ticker 45s linear infinite;
  padding-left: 24px;
  will-change: transform;
}
.ticker__sep {
  color: var(--gold-500);
  font-size: 9px;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   Hero — full-bleed (edge to edge), torn paper bottom only
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero__stage {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(560px, 58vw, 780px);
  background-color: #2a3a26;
  display: flex;
  flex-direction: column;
}

/* Centered title group — sits in the remaining vertical space below the panel */
.hero__center {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: clamp(100px, 12vw, 170px); /* clear the clouds */
  width: 100%;
}

.hero__date {
  margin: 0 0 clamp(14px, 1.8vw, 24px);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 32px);
  letter-spacing: .08em;
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
  text-align: center;
}
.hero__date strong { color: var(--gold-300); font-weight: 900; }

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  z-index: 0;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 30%, rgba(0,0,0,.18) 100%);
}

/* Real festival photograph behind the hero — a night shot, so it needs a
   warming scrim rather than the light wash used for the bright stock images. */
.hero__bg--photo {
  background-position: center 45%;
}
.hero__bg--photo::after {
  background:
    radial-gradient(ellipse at 50% 46%, rgba(61,63,36,.10) 0%, rgba(20,22,12,.52) 72%),
    linear-gradient(180deg, rgba(20,22,12,.46) 0%, rgba(20,22,12,.10) 34%, rgba(20,22,12,.55) 100%);
}

.hero__panel {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 48px));
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
  background: rgba(253,251,243,.97);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 28px rgba(30,32,14,.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--olive-700);
  flex-shrink: 0;
  padding: 4px 10px 4px 4px;
}
/* A teljes szóvédjegy egyetlen SVG (assets/asztalko_logo.svg): a magasság
   a mérvadó, a szélesség a 1221:262 arányból adódik. */
.brand__logo {
  height: 34px;
  width: auto;
  display: block;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(101,103,71,.25);
  background: #fff;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.menu-btn:hover {
  border-color: var(--olive-400);
  box-shadow: var(--shadow-sm);
}
.menu-btn__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.menu-btn__bars span {
  width: 14px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
  transform-origin: center;
}
.menu-btn.is-open .menu-btn__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn.is-open .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn.is-open .menu-btn__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   Nav menu dropdown (toggled by .menu-btn via script.js)
   ============================================================ */
.nav-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 42, 31, .32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 50;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-menu-backdrop.is-open { opacity: 1; }

.nav-menu {
  position: fixed;
  top: 16px;
  left: max(16px, calc((100vw - 1220px) / 2 + 16px));
  width: min(330px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 14px 8px;
  z-index: 60;
  transform: translateY(-10px) scale(.98);
  transform-origin: top left;
  opacity: 0;
  transition: transform .45s var(--ease-spring), opacity .3s ease;
}
.nav-menu.is-open { transform: translateY(0) scale(1); opacity: 1; }

/* Staggered cascade for menu items (each li gets --i from script.js) */
.nav-menu li {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s var(--ease-out);
  transition-delay: 0ms;
}
.nav-menu.is-open li {
  opacity: 1;
  transform: none;
  transition-delay: calc(30ms + var(--i, 0) * 18ms);
}

.nav-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-menu__heading {
  font-family: var(--display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-700);
  padding: 14px 14px 6px;
}
.nav-menu__list li:first-child .nav-menu__heading,
.nav-menu__list .nav-menu__heading:first-child { padding-top: 4px; }

.nav-menu__link {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: background .15s ease, color .15s ease;
}
.nav-menu__link:hover { background: var(--cream); }
.nav-menu__link--active {
  background: var(--olive-100);
  color: var(--olive-900);
}

.info-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 14px;
  flex-shrink: 0;
}
.info-card + .info-card {
  border-left: 1px solid rgba(0,0,0,.10);
  padding-left: 18px;
}
.info-card__icon {
  font-size: 18px;
}
.info-card__text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.info-card__text small {
  font-size: 12px;
  color: var(--muted);
}

.ticket-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--olive-500) 0%, var(--olive-700) 55%, var(--olive-900) 130%);
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 18px rgba(48,50,24,.30);
  margin-left: auto;
  flex-shrink: 0;
}

.hero__title {
  position: relative;
  z-index: 3;
  text-align: center;
  margin: 0;
  padding: 0 4vw;
  /* Az Outfit magasabb ékezetei miatt lazább, mint a korábbi .82 */
  line-height: .95;
  font-family: var(--display);
  font-weight: 400;
}
.hero__title-top {
  display: block;
  font-size: clamp(64px, 11vw, 160px);
  color: #f6f1e3;
  letter-spacing: -.02em;
  -webkit-text-stroke: 3px #f6f1e3;
  text-shadow:
    0 2px 0 rgba(0,0,0,.30),
    0 6px 22px rgba(0,0,0,.50);
    font-weight: 900;
}
.hero__title-bottom {
  display: block;
  font-size: clamp(64px, 11vw, 160px);
  margin-top: 2px;
}
.hero__title-bottom .highlight {
  -webkit-text-stroke: 3px #f6f1e3;
}

.hero__tear,
.hero__clouds {
  --cloud-sx: 1; /* widened on phones; kept as a var so intro/motion transforms can compose with it */
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  display: block;
  z-index: 4;
  pointer-events: none;
  transform: scaleX(var(--cloud-sx));
  transform-origin: 50% 100%;
}
.hero__tear   { height: 70px; }
.hero__clouds { height: clamp(90px, 11vw, 150px); }

/* ============================================================
   Tagline pills
   ============================================================ */
.taglines {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 4vw 10px;
  position: relative;
  z-index: 3;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,.04);
}
.tag em {
  font-style: italic;
  opacity: .7;
  font-weight: 500;
}
/* Pill-színek az arculati palettából: mályva · arany · olíva · zsálya */
.tag--pink   { border-color: var(--mauve-500); color: var(--mauve-700); }
.tag--yellow { border-color: var(--gold-400);  color: var(--gold-700); }
.tag--green  { border-color: var(--olive-200); color: var(--olive-700); }
.tag--lime   { border-color: var(--sage-100);  color: var(--olive-500); }

.tag { --r: 0deg; transform: rotate(var(--r)); transition: transform .4s var(--ease-spring), box-shadow .4s ease; }
.tag:hover { transform: rotate(calc(var(--r) * .4)) translateY(-3px) scale(1.04); box-shadow: var(--shadow-sm); }
.tag:nth-child(1) { --r: -3deg; }
.tag:nth-child(2) { --r: 2deg; margin-top: 12px; }
.tag:nth-child(3) { --r: -1deg; }
.tag:nth-child(4) { --r: 3deg; margin-top: 10px; }

/* ============================================================
   Since / About
   ============================================================ */
.since {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
  padding: 60px 8vw 80px;
  max-width: 1240px;
  margin: 0 auto;
}
.since__label {
  font-family: var(--display);
  color: var(--purple-900);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  margin: 0;
}
.since__year-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.since__arrow {
  width: 72px;
  height: 44px;
  flex-shrink: 0;
}
.since__year {
  font-family: var(--display);
  color: var(--pink-500);
  font-size: clamp(48px, 6.5vw, 80px);
  margin: 0;
  line-height: 1;
}
.since__right p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 14px;
}
.since__right strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   Section marker pill
   ============================================================ */
.section-mark {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 40px 0 30px;
}
.section-mark::before,
.section-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  border-top: 1px dashed var(--olive-200);
}
.section-mark::before { left: 8vw; }
.section-mark::after  { right: 8vw; }
.section-mark span {
  display: inline-block;
  padding: 9px 26px;
  border: 1px solid var(--olive-200);
  border-radius: 999px;
  background: var(--cream-soft);
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--olive-700);
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.section-mark span em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

/* ============================================================
   Section title (The Main Course)
   ============================================================ */
.section-title {
  text-align: center;
  font-family: var(--display);
  line-height: .95;
  margin: 0 0 50px;
}
.section-title__top {
  display: block;
  font-size: clamp(52px, 8vw, 110px);
  color: var(--purple-900);
}
/* A magasabb kiemelődoboz felnyúlik a fölötte lévő sor sávjába, és mivel a
   DOM-ban később jön, rá is festene. A felső sor ezért saját rétegbe kerül,
   így a betűi épek maradnak, a doboz pedig mögöttük fut. */
.section-title__top,
.when-where__title-top,
.hero__title-top {
  position: relative;
  z-index: 1;
}

.section-title__bottom {
  display: block;
  font-size: clamp(52px, 8vw, 110px);
  margin-top: 0;
}
.section-title--left { text-align: left; }

/* ============================================================
   Polaroid row (programs)
   ============================================================ */
.main-course {
  padding: 0 4vw 60px;
  max-width: 1320px;
  margin: 0 auto;
}
.polaroid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 30px 0 10px;
}
.polaroid {
  --r: 0deg;   /* resting tilt — set by the --rot-* modifiers, composed into every state */
  position: relative;
  background: #fff;
  padding: 10px 10px 0;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transform: rotate(var(--r));
  transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease-out);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.polaroid:hover {
  transform: translateY(-8px) rotate(calc(var(--r) * .3)) scale(1.015);
  box-shadow: var(--shadow-lg);
}
.polaroid:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 4px;
}
.polaroid--rot-1 { --r: -3deg; }
.polaroid--rot-2 { --r: 2deg;  }
.polaroid--rot-3 { --r: -1.5deg; }
.polaroid--rot-4 { --r: 3deg;  }

.pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0c47a 0%, #c07d3e 65%, #8a5222 100%);
  box-shadow: 0 4px 6px rgba(0,0,0,.25);
  z-index: 2;
}
.pin::after {
  content: "";
  position: absolute;
  top: 5px; left: 6px;
  width: 6px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
}

.polaroid__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #d8c8b8;
  border-radius: 10px;
  overflow: hidden;
  transform: translateZ(0); /* clip the zooming pseudo to the rounded corners */
}
/* GPU image zoom: the pseudo inherits the inline background-image */
.polaroid__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1.001);
  transition: transform .9s var(--ease-out);
}
.polaroid:hover .polaroid__img::after {
  transform: scale(1.07);
}
.polaroid__caption {
  padding: 14px 6px 18px;
  text-align: left;
  font-family: var(--display);
  line-height: .9;
}
.polaroid__caption-top {
  margin: 0;
  color: var(--purple-900);
  font-size: 22px;
}
.polaroid__caption-bottom {
  margin: 4px 0 0;
  color: var(--pink-500);
  font-size: 22px;
}
.polaroid__perforation {
  height: 14px;
  background-image: radial-gradient(circle, #eee 4px, transparent 5px);
  background-size: 14px 14px;
  background-position: 0 50%;
  background-repeat: repeat-x;
  border-radius: 0 0 14px 14px;
}

/* ============================================================
   When & Where
   ============================================================ */
.when-where {
  padding: 0;
  max-width: none;
  margin: 0;
  text-align: center;
}
.when-where__title { padding: 0 4vw; }
.when-where__title {
  font-family: var(--display);
  margin: 0 0 30px;
  line-height: .95;
}
.when-where__title-top {
  display: block;
  font-size: clamp(34px, 5.4vw, 80px);
  color: var(--purple-900);
}
.when-where__title-bottom {
  display: block;
  font-size: clamp(42px, 6.4vw, 92px);
  margin-top: 4px;
}
.nowrap { white-space: nowrap; }

.venue-photo {
  position: relative;
  width: 100%;
  height: clamp(320px, 48vw, 560px);
  border-radius: 0;
  overflow: hidden;
  margin-top: 30px;
}
.venue-photo__inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #b0b89e;
}
.venue-photo__clouds {
  --cloud-sx: 1;
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(90px, 11vw, 150px);
  display: block;
  z-index: 4;
  pointer-events: none;
  transform: scaleX(var(--cloud-sx));
  transform-origin: 50% 100%;
}

.road-sign {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  background: var(--green-sign);
  color: #fff;
  padding: 22px 32px 18px;
  border-radius: 12px;
  border: 3px solid #fff;
  outline: 3px solid var(--green-sign-dark);
  text-align: center;
  font-family: var(--display);
  letter-spacing: .02em;
  min-width: 260px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.road-sign::before,
.road-sign::after {
  content: "";
  position: absolute;
  bottom: -110px;
  width: 6px;
  height: 110px;
  background: #d8d8d8;
  box-shadow: inset -1px 0 0 rgba(0,0,0,.2);
}
.road-sign::before { left: 22px; }
.road-sign::after  { right: 22px; }
.road-sign__star {
  position: absolute;
  top: -10px;
  right: -8px;
  font-family: var(--body);
  font-size: 18px;
  color: var(--yellow);
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
.road-sign__title {
  margin: 0;
  font-size: 22px;
}
.road-sign__sub {
  margin: 6px 0 14px;
  font-size: 14px;
  font-family: var(--body);
  font-weight: 600;
  opacity: .9;
  letter-spacing: .05em;
}
.road-sign__btn {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  color: var(--green-sign-dark);
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  transition: box-shadow .3s ease, background .3s ease;
}
.road-sign__btn:hover {
  background: var(--gold-100);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* ============================================================
   Headliner
   ============================================================ */
.headliner {
  padding: 60px 4vw 30px;
  max-width: 1320px;
  margin: 0 auto;
}
.headliner__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}
.headliner__head .section-title { margin: 0; }
.headliner__lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 480px;
  justify-self: end;
}

.performer-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 10px 0 30px;
}

.performer {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.performer:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.performer__photo {
  position: relative;
  width: 110px;
  height: 110px;
  background-size: cover;
  background-position: center;
  background-color: #d8c8b8;
  border-radius: 10px;
  transform: rotate(-4deg);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  border: 6px solid #fff;
  transition: transform .5s var(--ease-spring);
}
.performer:hover .performer__photo {
  transform: rotate(-1deg) scale(1.04);
}
.clip {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 10px;
  height: 26px;
  border: 2px solid #b8aaa0;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: transparent;
  transform: rotate(8deg);
}
.clip::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -2px;
  right: -2px;
  height: 8px;
  border: 2px solid #b8aaa0;
  border-radius: 6px 6px 0 0;
}

.performer__meta { min-width: 0; }
.performer__name {
  position: relative;
  font-family: var(--display);
  line-height: .9;
}
.performer__name p {
  margin: 0;
  font-size: 22px;
  color: var(--purple-900);
}
.performer__name p.pink { color: var(--pink-500); margin-top: 4px; }
.performer__star {
  position: absolute;
  top: -4px;
  right: 4px;
  color: var(--yellow);
  font-size: 14px;
}
.performer__rule {
  border: 0;
  border-top: 1px dashed var(--olive-200);
  margin: 12px 0 10px;
}
.performer__date {
  margin: 0;
  font-family: var(--hand);
  font-size: 18px;
  color: var(--pink-500);
  display: flex;
  align-items: center;
  gap: 6px;
}
.arrow { font-family: var(--body); }

.schedule-cta {
  display: flex;
  justify-content: center;
  padding: 20px 0 40px;
}
.schedule-btn {
  display: inline-block;
  padding: 16px 30px;
  background: linear-gradient(135deg, var(--olive-500) 0%, var(--olive-700) 55%, var(--olive-900) 130%);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 10px 22px rgba(48,50,24,.30);
}

/* ============================================================
   Schedule cards
   ============================================================ */
.schedule {
  padding: 30px 4vw 80px;
  max-width: 1320px;
  margin: 0 auto;
}
.schedule__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.day-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.day-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.day-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed var(--olive-200);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.day-card__day {
  margin: 0;
  font-family: var(--display);
  color: var(--purple-900);
  /* Négy nap fér el egy sorban a rácsban, így a leghosszabb névnek
     („CSÜTÖRTÖK") is ki kell férnie a dátum mellé — innen a rugalmas méret. */
  font-size: clamp(20px, 1.9vw, 28px);
  white-space: nowrap;
}
.day-card__day a {
  text-decoration: none;
  transition: color .15s;
}
.day-card__day a:hover { color: var(--gold-700); }
.day-card__date {
  margin: 0;
  font-family: var(--display);
  color: var(--pink-500);
  font-size: clamp(14px, 1.25vw, 18px);
  white-space: nowrap;
}
.day-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.day-card__list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}
.day-card__list em {
  grid-column: 2;
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.day-card__list .time {
  font-family: var(--display);
  font-size: 16px;
  color: var(--purple-700);
}
.day-card__list .time.pink { color: var(--pink-500); }
.day-card__list strong { font-weight: 700; }

/* ============================================================
   Díszített márkasáv (teljes szélességű, a lábléc fölött)
   ============================================================ */
.brand-band {
  background: #d4d7c7;   /* a sáv-SVG saját háttérszíne — a két változat így összeér */
  overflow: hidden;
  line-height: 0;
}
.brand-band img {
  width: 100%;
  height: auto;
  display: block;
  /* Az arányt töréspontonként a CSS adja, mert a <picture> két változata
     eltérő arányú, és az attribútumból örökölt arány a másikra rossz lenne. */
  aspect-ratio: 18898 / 3780;
}
/* A háttér nélküli változat kap saját levegőt, hogy ne érjen a sáv széléhez */
@media (max-width: 760px) {
  .brand-band img {
    aspect-ratio: 10079 / 2803;
    padding: 30px 7vw;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 100%);
  padding: 72px 4vw 28px;
  margin-top: 40px;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, 92%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400) 18%, var(--gold-400) 82%, transparent);
  opacity: .55;
}
.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: 40px;
  align-items: end;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer__logo img {
  width: clamp(240px, 26vw, 340px);
  height: auto;
  display: block;
}
.footer__tag {
  margin: 14px 0 0;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  font-size: 14px;
  color: var(--ink);
}
.footer__cols h4 {
  font-family: var(--display);
  color: var(--pink-500);
  font-size: 18px;
  margin: 0 0 12px;
  letter-spacing: .02em;
}
.footer__cols p { margin: 6px 0; }
.footer__cols a {
  text-decoration: none;
  transition: color .2s ease;
}
.footer__cols a:hover {
  color: var(--gold-700);
  text-decoration: underline;
  text-decoration-color: var(--gold-400);
  text-underline-offset: 4px;
}
.footer__copy {
  max-width: 1240px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .hero__panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero__info-row {
    justify-content: flex-start;
  }
  .since {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 6vw 60px;
  }
  .headliner__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .headliner__lead { justify-self: start; }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .section-mark::before,
  .section-mark::after { display: none; }
}

@media (max-width: 520px) {
  .footer__cols { grid-template-columns: 1fr; }
  .road-sign { padding: 16px 22px 14px; min-width: 220px; }
  .road-sign__title { font-size: 18px; }
}

/* Hero CTA (the mobile-only "PROGRAM" button below the hero title) — hidden on desktop */
.ticket-btn--hero { display: none; }

/* Mobile navbar — keep the hero panel on a single, compact row */
@media (max-width: 720px) {
  .hero__panel {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 10px;
    width: calc(100% - 24px);
    margin-top: 16px;
  }
  .hero__panel .info-card { display: none; }
  .hero__panel .ticket-btn { display: none; }   /* moved out to .hero__center on mobile */
  .brand { padding: 2px; flex-shrink: 1; min-width: 0; }
  .brand__logo { height: 26px; }
  .menu-btn {
    padding: 9px 14px;
    font-size: 14px;
    gap: 8px;
    margin-left: auto; /* push the sandwich menu to the right */
  }
  /* Show the in-hero CTA below the title, horizontally centered */
  .ticket-btn--hero {
    display: inline-block;
    align-self: center;
    margin: clamp(20px, 4vw, 32px) auto 0;
    padding: 13px 28px;
    font-size: 14px;
    letter-spacing: .06em;
  }
  /* Long whitespace-nowrap labels need to be allowed to wrap on phones */
  .when-where__title-top .nowrap { white-space: normal; }

  /* Slightly faster ticker on mobile, but calm enough to stay ambient */
  .ticker__track { animation-duration: 24s; }

  /* Loosen the cloud pattern on mobile — the viewBox is 1440 wide so on a phone the arcs compress tight. Scaling horizontally enlarges the central arcs (the parent's overflow:hidden clips the sides). */
  .hero__clouds,
  .venue-photo__clouds {
    --cloud-sx: 1.35; /* a lágy hullámnak elég kevés nyújtás is */
  }

  /* Subpage hero titles — shrink the top word so it never overflows, and loosen line-height on the highlight word which often wraps to 2 lines on phones */
  .hero__stage--page .hero__title-top { font-size: clamp(40px, 12vw, 200px); }
  .hero__stage--page .hero__title-bottom { line-height: 1.05; }
}

/* ============================================================
   Subpage components — day pages + helyszinek
   ============================================================ */

/* Page-hero variant: shorter, big day title overlaid on photo */
.hero__stage--page {
  /* Az Outfit ékezetei (Ü, Ö, Á, Ő) a sordoboz fölé nyúlnak, ezért kicsit
     magasabb, hogy a cím ne szoruljon közvetlenül a panel alá. */
  min-height: clamp(460px, 44vw, 600px);
  padding-bottom: clamp(70px, 8vw, 120px); /* keep the centered title clear of the clouds */
}
/* Vertically center title + page-meta in the remaining space (panel sits at top) */
.hero__stage--page .hero__title { margin-top: auto; }
.hero__stage--page .page-meta  { margin-bottom: auto; }
.hero__stage--page .hero__title-top { font-size: clamp(72px, 14vw, 200px); letter-spacing: -.02em; }
.hero__stage--page .hero__title-bottom { font-size: clamp(36px, 5vw, 64px); margin-top: 8px; }

/* Long single-word titles (e.g. "NÉPMŰVÉSZETEK") — scale down so they always fit one line */
.hero__stage--page .hero__title--long .hero__title-top { font-size: clamp(28px, 9vw, 150px); }
.hero__stage--page .hero__title--long .hero__title-bottom { font-size: clamp(28px, 4.2vw, 56px); }

/* Darker overlay for page heroes — works across both bright and dark photos */
.hero__stage--page .hero__bg::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.42) 100%);
}

.page-meta {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 18px;
  font-family: var(--body);
  color: #f6f1e3;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: 14px;
  padding: 0 4vw;
}
.page-meta strong { color: var(--gold-300); }

/* Day-nav pill bar — sits below the cloud transition */
.day-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 28px 4vw 10px;
}
.day-nav__link {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--olive-700);
  text-decoration: none;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 13px;
  border: 1px solid var(--olive-200);
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.day-nav__link:hover {
  border-color: var(--olive-400);
  box-shadow: var(--shadow-sm);
}
.day-nav__link--active {
  background: var(--olive-700);
  color: #fff;
  border-color: var(--olive-700);
  box-shadow: 0 6px 16px rgba(60,60,30,.20);
}

/* Page intro paragraph */
.page-intro {
  max-width: 780px;
  margin: 34px auto 12px;
  padding: 0 4vw;
  text-align: center;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
  text-wrap: pretty;
}
.page-intro strong { color: var(--olive-700); }

/* Schedule-block (per-venue) — used on day pages */
.schedule-blocks {
  padding: 30px 4vw 60px;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.schedule-block {
  background: var(--paper);
  border-radius: 16px;
  padding: 24px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .45s var(--ease-out);
}
.schedule-block:hover { box-shadow: var(--shadow-md); }
.schedule-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--olive-200);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.schedule-block__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  color: var(--olive-900);
  font-size: 28px;
  letter-spacing: -.01em;
}
.schedule-block__sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.schedule-block__sub a {
  color: var(--olive-700);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

.schedule-block__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.program {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,.05);
}
.program:last-child { border-bottom: 0; }
.program__time {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  color: var(--olive-700);
  letter-spacing: -.01em;
}
.program__time--featured { color: var(--gold-700); }
.program__name {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.program__name--featured { font-size: 19px; color: var(--olive-900); }
.program__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Még be nem jelentett fellépő/program jelölése a napi programlistákban */
.program__tba {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px dashed var(--olive-200);
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}

/* Featured spotlight card (a day's headliner highlight) */
.spotlight {
  max-width: 1240px;
  margin: 20px auto 30px;
  padding: 0 4vw;
}
.spotlight__card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  background: var(--paper);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-md);
  align-items: center;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.spotlight__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.spotlight__photo {
  position: relative;
  width: 240px;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  background-color: var(--olive-200);
  overflow: hidden;
  transform: translateZ(0);
}
.spotlight__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1.001);
  transition: transform .9s var(--ease-out);
}
.spotlight__card:hover .spotlight__photo::after {
  transform: scale(1.06);
}
.spotlight__body { padding: 4px 8px; }
.spotlight__kicker {
  font-family: var(--hand);
  color: var(--gold-700);
  font-size: 22px;
  margin: 0 0 4px;
}
.spotlight__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 0 0 4px;
  color: var(--olive-900);
  line-height: 1;
  letter-spacing: -.01em;
}
.spotlight__title em {
  display: block;
  font-style: normal;
  color: var(--gold-700);
}
.spotlight__meta {
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--olive-700);
  font-size: 14px;
  letter-spacing: .06em;
}

/* Town section + venue cards — helyszinek page */
.town-section {
  padding: 40px 4vw;
  max-width: 1320px;
  margin: 0 auto;
}
.town-section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.town-section__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--olive-900);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.town-section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: .04em;
}
.town-section__sub strong { color: var(--gold-700); }

.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.venue-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 4px solid var(--olive-500);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.venue-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.venue-card--accent { border-top-color: var(--gold-500); }
.venue-card__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  color: var(--olive-900);
  letter-spacing: -.005em;
}
.venue-card__addr {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--olive-700);
}
.venue-card__desc {
  margin: 4px 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  flex-grow: 1;
}
.venue-card__map {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--olive-700);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--olive-200);
  transition: background .15s, color .15s;
}
.venue-card__map:hover {
  background: var(--olive-700);
  color: #fff;
  border-color: var(--olive-700);
}

/* Subpage responsive tweaks */
@media (max-width: 720px) {
  .spotlight__card { grid-template-columns: 1fr; }
  .spotlight__photo { width: 100%; height: 200px; }
  .program { grid-template-columns: 90px 1fr; gap: 12px; }
  .schedule-block { padding: 20px; }
}

/* ============================================================
   Rólunk — négyhasábos szöveg
   ============================================================ */
.about {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 4vw 20px;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  padding: 10px 0 20px;
}

.about-col__kicker {
  margin: 0 0 10px;
  font-family: var(--hand);
  font-size: 26px;
  line-height: 1;
  color: var(--gold-700);
}
.about-col__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--olive-900);
}
.about-col p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink);
}
.about-col p:last-child { margin-bottom: 0; }
.about-col strong { color: var(--olive-700); }

/* Thin dashed rule between the columns, like a folded newspaper page */
.about-col + .about-col {
  border-left: 1px dashed var(--olive-200);
  padding-left: 34px;
}

.about-photo {
  max-width: 1320px;
  margin: 20px auto 0;
  padding: 0 4vw;
}
.about-photo__inner {
  height: clamp(220px, 32vw, 400px);
  border-radius: 18px;
  background-size: cover;
  background-position: center 60%;
  background-color: var(--olive-200);
  box-shadow: 0 16px 34px rgba(60,60,30,.16);
}
.about-photo__caption {
  margin: 12px 2px 0;
  font-family: var(--hand);
  font-size: 21px;
  color: var(--muted);
  text-align: right;
}

/* ============================================================
   Korábbi évek programja — letölthető archívum
   ============================================================ */
.archive {
  max-width: 1320px;
  margin: 0 auto;
  padding: 50px 4vw 70px;
}
.archive__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}
.archive__head .section-title { margin: 0; }
/* „KORÁBBI ÉVEK PROGRAMJA" hosszú — a főoldali méret itt három sorba törne */
.archive__head .section-title__top,
.archive__head .section-title__bottom {
  font-size: clamp(32px, 4.4vw, 62px);
}
.archive__lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 480px;
  justify-self: end;
}

.archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.archive-card {
  position: relative;
  background: var(--paper);
  border-radius: 16px;
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold-500);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.archive-card--soon:hover { transform: none; box-shadow: var(--shadow-sm); }
.archive-card__year {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 56px);
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--olive-900);
}
.archive-card__meta {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--olive-700);
}
.archive-card__desc {
  margin: 6px 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  flex-grow: 1;
}
.archive-card__btn {
  align-self: flex-start;
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--olive-500) 0%, var(--olive-700) 55%, var(--olive-900) 130%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .07em;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 14px rgba(48,50,24,.22);
}

/* Ha a PDF még nincs feltöltve (lásd initArchive a script.js-ben) */
.archive-card--soon { border-top-color: var(--olive-200); }
.archive-card--soon .archive-card__year { color: var(--olive-300); }
.archive-card--soon .archive-card__btn {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--olive-200);
  padding: 10px 19px;
  cursor: default;
}
.archive-card--soon .archive-card__btn:hover { transform: none; }

/* ============================================================
   Támogatók
   ============================================================ */
.sponsors {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 4vw 40px;
}

/* Kompakt logósáv a főoldalon, a lábléc fölött */
.sponsors--home { padding: 10px 4vw 20px; }

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 130px;
  padding: 22px 20px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
a.sponsor:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* A logó képfájl a mérvadó; ha még nincs feltöltve, az onerror a szöveges
   névtáblára vált (lásd a .sponsor--nologo osztályt a HTML-ben). */
.sponsor__logo {
  max-width: 100%;
  max-height: 84px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
/* Calm, uniform grid on pointer devices: logos rest in grayscale and take
   color on hover. Touch devices (no hover) always see full color. */
@media (hover: hover) and (pointer: fine) {
  .sponsor__logo {
    filter: grayscale(1);
    opacity: .72;
    transition: filter .4s ease, opacity .4s ease;
  }
  .sponsor:hover .sponsor__logo {
    filter: grayscale(0);
    opacity: 1;
  }
}
.sponsor__name {
  display: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--olive-700);
}
.sponsor__name small {
  display: block;
  margin-top: 6px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
.sponsor--nologo .sponsor__logo { display: none; }
.sponsor--nologo .sponsor__name { display: block; }

/* ============================================================
   Kapcsolat
   ============================================================ */
.contact {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 4vw 30px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--olive-500);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.contact-card--accent { border-top-color: var(--gold-500); }
.contact-card__icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 2px;
}
.contact-card__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.005em;
  color: var(--olive-900);
}
.contact-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.contact-card__big {
  font-size: 15.5px !important;
  font-weight: 700;
  color: var(--olive-700) !important;
  overflow-wrap: anywhere;   /* a hosszú e-mail-cím ne lógjon ki a kártyából */
}
.contact-card a {
  color: var(--olive-700);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.contact-card a:hover { color: var(--gold-700); }
.contact-card__btn {
  align-self: flex-start;
  margin-top: 10px;
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--olive-500) 0%, var(--olive-700) 55%, var(--olive-900) 130%);
  color: #fff !important;
  text-decoration: none;
  border: 0 !important;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .07em;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 14px rgba(48,50,24,.22);
}
.contact-card__btn:hover { color: #fff !important; }

.contact-map {
  max-width: 1320px;
  margin: 30px auto 0;
  padding: 0 4vw 20px;
}
.contact-map iframe {
  width: 100%;
  height: clamp(280px, 38vw, 440px);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(60,60,30,.16);
  display: block;
  background: var(--olive-100);
}
.contact-map__note {
  margin: 12px 2px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.contact-map__note a {
  color: var(--olive-700);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

/* ============================================================
   Responsive — Rólunk / Támogatók / Kapcsolat
   ============================================================ */
@media (max-width: 1080px) {
  .about-columns { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .about-col + .about-col { border-left: 0; padding-left: 0; }
  .about-col:nth-child(even) {
    border-left: 1px dashed var(--olive-200);
    padding-left: 28px;
  }
}

@media (max-width: 880px) {
  .archive__head { grid-template-columns: 1fr; gap: 16px; }
  .archive__lead { justify-self: start; }
}

@media (max-width: 620px) {
  .about-columns { grid-template-columns: 1fr; gap: 26px; }
  .about-col:nth-child(even) { border-left: 0; padding-left: 0; }
  .about-col + .about-col {
    border-top: 1px dashed var(--olive-200);
    padding-top: 26px;
  }
  .sponsor-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sponsor { min-height: 104px; padding: 16px 12px; }
  .sponsor__logo { max-height: 60px; }
}

/* ============================================================
   ELEVATION & MOTION LAYER
   Scroll reveals, hero choreography, magnetic buttons, floating
   nav, ambient glow, page transitions. Everything here degrades
   gracefully: reveal/intro states only exist once script.js sets
   the hooks, so a no-JS visit sees a fully visible page.
   ============================================================ */

/* ---- Micro-typography & consistency ---------------------- */
.section-title,
.when-where__title,
.spotlight__title,
.about-col__title { text-wrap: balance; }

[id] { scroll-margin-top: 96px; } /* anchors land clear of the floating nav */

.about-photo__inner,
.contact-map iframe { box-shadow: var(--shadow-lg); }

.brand__logo { transition: transform .5s var(--ease-spring); }
.brand:hover .brand__logo { transform: scale(1.04); }

/* Program rows breathe on hover */
.program {
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  transition: background .3s ease;
}
.program:hover { background: var(--cream); }

/* ---- Ambient glow behind highlighted words ---------------- */
.highlight::after {
  content: "";
  position: absolute;
  inset: -20% -12%;
  z-index: -2;
  background: radial-gradient(closest-side, rgba(217,161,76,.45), rgba(217,161,76,0) 72%);
  filter: blur(26px);
  opacity: .45;
  pointer-events: none;
  animation: glow-breathe 7s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: .3; }
  50%      { opacity: .65; }
}

/* ---- Magnetic elements (script.js drives --mx / --my) ----- */
.magnetic {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--sc, 1));
  transition:
    transform .55s var(--ease-spring),
    box-shadow .35s ease,
    background .3s ease,
    border-color .25s ease,
    color .2s ease;
  will-change: transform;
}
.magnetic:hover  { --sc: 1.045; }
.magnetic:active { --sc: .96; }

/* ---- Sheen sweep on solid pill buttons -------------------- */
.ticket-btn,
.schedule-btn,
.archive-card__btn,
.contact-card__btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ticket-btn::before,
.schedule-btn::before,
.archive-card__btn::before,
.contact-card__btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.35) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}
.ticket-btn:hover::before,
.schedule-btn:hover::before,
.archive-card__btn:hover::before,
.contact-card__btn:hover::before { transform: translateX(130%); }

.ticket-btn:hover,
.schedule-btn:hover,
.archive-card__btn:not([aria-disabled]):hover,
.contact-card__btn:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 30px rgba(48,50,24,.38);
}
.archive-card--soon .archive-card__btn::before { display: none; }

/* ---- Floating glass nav (injected by script.js) ----------- */
.float-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(253,251,243,.97);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, var(--shadow-md);
  transform: translate(-50%, calc(-100% - 24px));
  opacity: 0;
  transition: transform .65s var(--ease-spring), opacity .45s ease;
}
.float-nav.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.float-nav:not(.is-visible) { pointer-events: none; }
.float-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.float-nav__brand img { height: 26px; width: auto; display: block; }
.float-nav .menu-btn { padding: 9px 15px; font-size: 13.5px; }
.float-nav .ticket-btn { margin-left: 0; padding: 11px 20px; font-size: 12px; }
@media (max-width: 560px) {
  .float-nav { gap: 8px; }
  .float-nav .ticket-btn { display: none; }
}

/* ---- Scroll reveals (script.js sets data-reveal + --rd) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="pop"]   { transform: translateY(14px) scale(.94) rotate(var(--r, 0deg)); }
[data-reveal="tilt"]  { transform: translateY(36px) scale(.96) rotate(calc(var(--r, 0deg) - 4deg)); }
[data-reveal].is-inview {
  opacity: 1;
  transform: rotate(var(--r, 0deg));
}

/* The road sign is centered by its own transform, so its reveal states
   must carry that centering through every phase — otherwise it animates
   anchored to the wrong corner and "jumps" once the hooks are stripped. */
.road-sign[data-reveal] {
  transform: translate(-50%, -55%) translateY(14px) scale(.94);
}
.road-sign[data-reveal].is-inview {
  transform: translate(-50%, -55%);
}

/* Dashed rules beside the section pill draw outward on reveal */
.section-mark[data-reveal]::before,
.section-mark[data-reveal]::after {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out) calc(var(--rd, 0ms) + 150ms);
}
.section-mark[data-reveal]::before { transform-origin: right; }
.section-mark[data-reveal]::after  { transform-origin: left; }
.section-mark[data-reveal].is-inview::before,
.section-mark[data-reveal].is-inview::after { transform: scaleX(1); }

/* ---- Hero intro choreography ------------------------------ */
/* script.js wraps the title lines in overflow masks */
/* Line masks: clip-path instead of overflow so layout is untouched and the
   window can extend upward — Hungarian double-acute accents (Ő, Ű) overshoot
   the line box by ~.4em at this line-height and must never be cut. The clip
   is dropped entirely once the intro finishes. */
.hero__title .mask {
  display: block;
  clip-path: inset(-0.7em -0.4em 0);
}
body.intro-done .hero__title .mask { clip-path: none; }
.hero__title .mask > * { display: block; }

/* A kezdőállapotot a <head>-ben futó inline script kapcsolja be (html.js-intro),
   nem a defer-elt script.js — különben a hero előbb készen kirajzolódik, majd
   az első DOM-futáskor visszaugrik rejtettbe, és onnan animál be. Ez volt a
   betöltéskor látható „pattanás". */
html.js-intro .hero__panel      { opacity: 0; transform: translateY(-16px); }
html.js-intro .hero__date       { opacity: 0; transform: translateY(20px); }
html.js-intro .page-meta        { opacity: 0; transform: translateY(16px); }
html.js-intro .ticket-btn--hero { opacity: 0; transform: translateY(16px); }
html.js-intro .hero__clouds     { opacity: 0; transform: translateY(30px) scaleX(var(--cloud-sx, 1)); }
html.js-intro .hero__title .mask > * { transform: translateY(165%); }

/* A címsorokat a .mask tartja vissza, azt viszont a script.js hozza létre —
   addig csak az átlátszóság rejti, különben a sorok egy pillanatra a helyükön
   villannának, mielőtt a maszk alá kerülnek. */
html.js-intro .hero__title { opacity: 0; }
body.is-ready .hero__title { opacity: 1; }

body.is-ready .hero__panel {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease .15s, transform .9s var(--ease-out) .15s;
}
body.is-ready .hero__clouds {
  opacity: 1;
  transform: translateY(0) scaleX(var(--cloud-sx, 1));
  transition: opacity .8s ease .1s, transform 1s var(--ease-out) .1s;
}
body.is-ready .hero__date {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease .45s, transform .8s var(--ease-out) .45s;
}
body.is-ready .hero__title .mask > * {
  transform: translateY(0);
  transition: transform 1.05s var(--ease-out) .55s;
}
body.is-ready .hero__title .mask > .hero__title-bottom { transition-delay: .7s; }
body.is-ready .page-meta {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease .95s, transform .8s var(--ease-out) .95s;
}
body.is-ready .ticket-btn--hero {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease 1.05s, transform .7s var(--ease-spring) 1.05s;
}

/* ---- Parallax media (script.js drives the translate) ------ */
html.js-parallax .hero__bg,
html.js-parallax .venue-photo__inner,
html.js-parallax .about-photo__inner {
  transform: scale(1.13);
  will-change: transform;
}

/* ---- Cross-page transitions (progressive enhancement) ----- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .28s; }
::view-transition-new(root) { animation-duration: .42s; }

/* ============================================================
   Hero arculati kártya (csak a főoldalon)
   A plakát/programfüzet kompozíciója: fehér, organikus „folt"
   panel, benne a logó, a szóvédjegy (ritkított FESZTIVÁL sorral),
   a dátum és a kézírásos „Itt ér véget a nyár!" szlogen.
   ============================================================ */
.hero__card {
  position: relative;
  z-index: 3;
  width: min(700px, calc(100% - 36px));
  padding: clamp(30px, 4vw, 48px) clamp(36px, 7vw, 96px) clamp(26px, 3.4vw, 56px);
  text-align: center;
}
/* Két egymásra forgatott, eltérő sugarú folt uniója adja a szabálytalan,
   organikus sziluettet — egyetlen border-radius csak ellipszist tudna. */
.hero__card::before,
.hero__card::after {
  content: "";
  position: absolute;
  background: rgba(253, 251, 243, .96);
}
.hero__card::before {
  inset: 0;
  border-radius: 38% 62% 44% 56% / 60% 46% 54% 40%;
  transform: rotate(-3deg);
  box-shadow: 0 30px 70px rgba(20, 22, 12, .38);
}
.hero__card::after {
  inset: 4% -3% 2% -4%;
  border-radius: 58% 42% 60% 40% / 44% 60% 40% 56%;
  transform: rotate(2.5deg);
}
.hero__card > * { position: relative; z-index: 1; }

/* A függőleges szóvédjegy (kőjel + ASZTALKŐ) egyetlen SVG; alatta marad a
   ritkított FESZTIVÁL sor szövegként, hogy a h1 olvasható nevet adjon. */
.hero__title-logo {
  width: clamp(210px, 30vw, 380px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero__card .hero__title {
  margin: 0 !important;
  padding: 0;
  line-height: 1;
}
/* Ritkított, vékonyabb FESZTIVÁL sor, mint a szóvédjegyen. A záró
   betűköz jobbra tolná a sort, a negatív margó ezt hozza vissza középre. */

.hero__card .hero__date {
  margin: clamp(10px, 1.6vw, 16px) 0 0;
  color: var(--olive-900);
  text-shadow: none;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: .04em;
}

.hero__slogan {
  margin: clamp(4px, .8vw, 8px) 0 0;
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.15;
  color: var(--mauve-700);
  transform: rotate(-2deg);
}

.hero__card .ticket-btn--hero {
  display: inline-block;
  margin: clamp(16px, 2vw, 22px) auto 0;
}

.hero__free {
  margin: 12px 0 0;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--olive-500);
}

/* A sortörés csak mobilon él */
.hero__free-br { display: none; }

/* A kártya tartalma magasabb, mint a régi csupasz cím volt.
   Csak a főoldali hero — az aloldali (--page) marad alacsony. */
.hero__stage:not(.hero__stage--page) { min-height: clamp(640px, 60vw, 840px); }

/* Intro: a kártya egyben úszik be, a belső elemek a meglévő
   lépcsőzést követik (dátum, címsor-maszkok). */
html.js-intro .hero__card {
  opacity: 0;
  transform: translateY(26px) scale(.97);
}
body.is-ready .hero__card {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease .2s, transform 1s var(--ease-out) .2s;
}
html.js-intro .hero__slogan { opacity: 0; transform: rotate(-2deg) translateY(14px); }
body.is-ready .hero__slogan {
  opacity: 1;
  transform: rotate(-2deg);
  transition: opacity .7s ease .95s, transform .8s var(--ease-out) .95s;
}
html.js-intro .hero__free { opacity: 0; }
body.is-ready .hero__free { opacity: 1; transition: opacity .7s ease 1.2s; }

/* ---- Arculati díszfoltok a „since" szekció mögött ---------- */
.since { position: relative; }
.since::before,
.since::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.since::before {
  left: -150px;
  top: 14px;
  width: 320px;
  height: 240px;
  background: var(--mauve-500);
  opacity: .14;
  border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%;
  transform: rotate(8deg);
}
.since::after {
  right: -130px;
  bottom: -20px;
  width: 360px;
  height: 260px;
  background: var(--gold-100);
  opacity: .45;
  border-radius: 43% 57% 48% 52% / 55% 42% 58% 45%;
  transform: rotate(-6deg);
}

@media (max-width: 720px) {
  .hero__card {
    width: calc(100% - 28px);
    padding: 36px 22px 34px;
  }
  /* Kisebb felületen szelídebb ívek, hogy az alsó sor is a folton belül maradjon */
  .hero__card::before { border-radius: 42% 58% 46% 54% / 50% 46% 54% 50%; }
  .hero__card::after  { inset: 3% -2% 1% -3%; }
  .hero__free { font-size: 10px; letter-spacing: .06em; line-height: 1.6; }
  .hero__free-br { display: inline; }
}

/* ---- Reduced motion: calm everything ---------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .highlight::after { animation: none; opacity: .4; }
  @view-transition { navigation: none; }
}
