/* MAPPA Festival · Prelaunch · Trilogy III */

@font-face {
  font-family: 'Akira Expanded';
  src: url('../fonts/Akira-Expanded.woff') format('woff'),
       url('../fonts/Akira-Expanded.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ancient-style glyphs for the title decode effect (exotic forms live in a-z) */
@font-face {
  font-family: 'Bullskrit';
  src: url('../fonts/Bullskrit.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg-0: #1b1b1b;
  --bg-1: #232323;
  --bg-2: #2a2a2a;
  /* strict palette: whites, the campaign gold and blacks only */
  --sand-100: #ffffff;
  --sand-300: rgba(255, 255, 255, 0.86);
  --sand-500: rgba(255, 255, 255, 0.6);
  --sand-700: rgba(255, 255, 255, 0.3);
  --gold: #d4b161;
  --white: #ffffff;
  --font-display: 'Akira Expanded', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* reserve the scrollbar gutter so content never jumps when it appears */
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #d4b161 #1b1b1b;
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #1b1b1b; }
::-webkit-scrollbar-thumb {
  background: #d4b161;
  border-radius: 999px;
  border: 3px solid #1b1b1b;
}
::-webkit-scrollbar-thumb:hover { background: #e0c684; }

body {
  background: var(--bg-0);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

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

.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 200;
  background: var(--gold); color: var(--bg-0);
  padding: 0.6rem 1.2rem; border-radius: 2px;
  font-weight: 700;
  transform: translateY(calc(-100% - 2rem));
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Preloader ---------- */

.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.preloader__mark {
  position: relative;
  width: min(230px, 52vw);
  animation: preloader-glow 1.8s ease-in-out 1.6s infinite;
}
/* no glow while flying home, so the landing swap has zero visual change */
body:not(.is-loading) .preloader__mark { animation: none; }
.preloader__base { display: block; width: 100%; opacity: 0.14; }
.preloader__fill {
  position: absolute; inset: 0;
  clip-path: inset(100% 0 0 0);
  animation: preloader-fill 1.35s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}
.preloader__gold {
  display: block; width: 100%; height: 100%;
  /* logo as a mask over a solid fill; white so it lands seamlessly on the nav logo */
  background: var(--white);
  -webkit-mask: url('../img/logo-mappa.svg') no-repeat center / contain;
  mask: url('../img/logo-mappa.svg') no-repeat center / contain;
}
/* exit: the backdrop clears first so the logo travels over the hero video,
   then the whole layer vanishes the instant the logo lands on the nav */
body:not(.is-loading) .preloader {
  background: transparent;
  pointer-events: none;
  transition: background 0.4s ease;
}
body.logo-landed .preloader { opacity: 0; visibility: hidden; }

@keyframes preloader-fill { to { clip-path: inset(0 0 0 0); } }
@keyframes preloader-glow {
  50% { filter: drop-shadow(0 0 22px rgba(212, 177, 97, 0.55)); }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  transform: translateY(-110%);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s,
              transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
}
body.is-ready .nav { transform: translateY(0); }
.nav--scrolled {
  background: rgba(27, 27, 27, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(212, 177, 97, 0.12);
}
/* instant swap at landing: any fade here reads as a blink */
.nav__logo img { height: 26px; width: auto; opacity: 0; }
body.logo-landed .nav__logo img { opacity: 1; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sand-300);
  transition: color 0.3s;
  padding: 0.4rem 0;
}
.nav__link:hover { color: var(--white); }
.nav__pill {
  position: absolute; top: calc(100% + 2px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  font-size: 0.58rem; letter-spacing: 0.14em;
  color: var(--gold); border: 1px solid rgba(212, 177, 97, 0.5);
  border-radius: 999px; padding: 0.15rem 0.55rem;
  background: rgba(27, 27, 27, 0.85);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}
.nav__link:hover .nav__pill,
.nav__link:focus-visible .nav__pill { opacity: 1; transform: translateX(-50%) translateY(0); }
.nav__lang { display: flex; gap: 0.2rem; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 0.2rem; }
.nav__lang-btn {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--sand-500); padding: 0.25rem 0.6rem; border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.nav__lang-btn:hover { color: var(--sand-100); }
.nav__lang-btn.is-active { color: var(--bg-0); background: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: -4%; z-index: 1; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.32);
  transition: transform 2.2s var(--ease-out);
}
/* same resting scale as the video so the poster-to-video fade is invisible */
body.is-ready .hero__media img { transform: scale(1); }

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.32);
  transition: opacity 1.4s ease, transform 2.2s var(--ease-out);
}
body.is-ready .hero__video { transform: scale(1); }
.hero--video .hero__video { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

.hero__grain {
  position: absolute; inset: -100px; z-index: 4; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-38px, 22px); }
  50% { transform: translate(24px, -30px); }
  75% { transform: translate(-14px, -18px); }
  100% { transform: translate(30px, 26px); }
}

.hero__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 20%, transparent 40%, rgba(27, 27, 27, 0.55) 100%),
    linear-gradient(180deg, rgba(27, 27, 27, 0.55) 0%, transparent 22%, transparent 55%, var(--bg-0) 100%);
}

.hero__content {
  position: relative; z-index: 5;
  width: 100%;
  padding: 0 clamp(1.2rem, 5vw, 4.5rem) clamp(5.5rem, 12vh, 8rem);
}
.anim-line { display: block; overflow: hidden; }
.anim-line > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.15s var(--ease-out);
}
body.is-ready .anim-line > span { transform: translateY(0); }
body.is-ready .hero__kicker.anim-line > span { transition-delay: 1s; }
body.is-ready .hero__title .anim-line:nth-child(1) > span { transition-delay: 1.15s; }
body.is-ready .hero__title .anim-line:nth-child(2) > span { transition-delay: 1.27s; }
body.is-ready .hero__title .anim-line:nth-child(3) > span { transition-delay: 1.39s; }
body.is-ready .hero__trilogy.anim-line > span { transition-delay: 1.65s; }

.hero__kicker {
  font-size: clamp(0.66rem, 1.4vw, 0.8rem);
  font-weight: 700; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--sand-300);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7.2vw, 6.2rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--white);
}
.hero__title-accent { color: var(--gold); }
/* unresolved decode chars render in the ancient glyph font (its forms live in lowercase);
   scaled up because its letterforms run smaller than Akira, line-height 0 keeps the line box stable */
.hero__title .dg {
  font-family: 'Bullskrit', var(--font-body);
  text-transform: none; font-style: normal;
  font-size: 1.3em; line-height: 0;
}
.hero__trilogy {
  margin-top: 1.6rem;
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  font-weight: 700; letter-spacing: 0.68em; text-transform: uppercase;
  color: var(--gold);
}

.hero__scroll {
  position: absolute; right: clamp(1.2rem, 4vw, 3rem);
  /* sit on the same band as the TRILOGY III line */
  bottom: calc(clamp(5.5rem, 12vh, 8rem) - 2.8rem);
  z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--sand-300);
  opacity: 0; transition: opacity 1s 2.2s;
}
body.is-ready .hero__scroll { opacity: 0.85; }
/* once the intro is done, react quickly; hide as soon as the user scrolls */
body.logo-landed .hero__scroll { transition: opacity 0.35s; }
body.is-scrolled .hero__scroll { opacity: 0; pointer-events: none; }
.hero__scroll-badge {
  position: relative;
  display: block;
  width: 96px; height: 96px;
}
.hero__scroll-ring {
  position: absolute; inset: 0;
  animation: ring-spin 16s linear infinite;
}
.hero__scroll-ring text {
  fill: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.6px;
}
.hero__scroll-arrow {
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  color: var(--gold);
  animation: arrow-dip 2s ease-in-out infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes arrow-dip {
  0%, 100% { transform: translateY(-3px); opacity: 1; }
  50% { transform: translateY(4px); opacity: 0.7; }
}

/* ---------- Countdown ---------- */

.countdown {
  position: relative;
  padding: clamp(4.5rem, 10vh, 7.5rem) 1.5rem;
  text-align: center;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(124, 97, 64, 0.14), transparent 70%),
    var(--bg-0);
}
.countdown__label {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.7rem);
  letter-spacing: 0.05em; text-transform: uppercase;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 2.8rem;
}
.countdown__label b { font-weight: inherit; color: var(--gold); }
.countdown__grid {
  display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(0.6rem, 3vw, 2rem);
}
.countdown__cell { display: flex; flex-direction: column; gap: 0.9rem; min-width: clamp(58px, 12vw, 120px); }
.countdown__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 5.4rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.countdown__value.is-ticking { animation: tick 0.5s var(--ease-out); }
@keyframes tick {
  0% { transform: translateY(-0.35em); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.countdown__unit {
  font-size: clamp(0.56rem, 1.2vw, 0.7rem);
  font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--sand-500);
}
.countdown__sep {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 4rem);
  line-height: 1;
  padding-top: 0.2em;
  color: rgba(212, 177, 97, 0.35);
  animation: sep-blink 2s ease-in-out infinite;
}
@keyframes sep-blink { 50% { opacity: 0.3; } }
.countdown--dormant .countdown__value { color: rgba(212, 177, 97, 0.68); animation: dormant-pulse 2.6s ease-in-out infinite; }
@keyframes dormant-pulse { 50% { opacity: 0.75; } }
.countdown__note {
  margin-top: 2.6rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sand-500);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(212, 177, 97, 0.16);
  border-bottom: 1px solid rgba(212, 177, 97, 0.16);
  padding: 1.1rem 0;
  background: var(--bg-1);
}
.marquee__track {
  display: flex;
  white-space: nowrap; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__half {
  display: inline-flex; align-items: center; gap: 2.4rem;
  padding-right: 2.4rem; /* seam spacing so -50% lands exactly on the copy start */
}
.marquee__half span {
  font-family: var(--font-display);
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--sand-300);
}
.marquee__half i { color: var(--gold); font-style: normal; font-size: 0.8rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */

.manifesto {
  max-width: 860px; margin: 0 auto;
  padding: clamp(5rem, 12vh, 8.5rem) 1.5rem;
  text-align: center;
}
.manifesto__lead {
  font-size: clamp(0.75rem, 1.4vw, 0.92rem);
  line-height: 2.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
}
.manifesto__quote {
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--gold);
}

/* ---------- Panorama banner ---------- */

.panorama {
  position: relative;
  height: clamp(200px, 34vh, 400px);
  overflow: hidden;
  border-top: 1px solid rgba(212, 177, 97, 0.16);
  border-bottom: 1px solid rgba(212, 177, 97, 0.16);
  margin-bottom: clamp(4.5rem, 10vh, 7rem);
}
/* oversized layer so the scroll parallax can slide it inside the window */
.panorama__video {
  position: absolute; left: 0; top: -20%;
  width: 100%; height: 140%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .panorama__video { position: static; height: 100%; top: 0; }
}

/* ---------- Trilogy ---------- */

.trilogy { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem clamp(4.5rem, 10vh, 7rem); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  text-align: center;
  margin-bottom: 3.2rem;
}
.trilogy__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(212, 177, 97, 0.18); border: 1px solid rgba(212, 177, 97, 0.18); }
.trilogy__item {
  background: var(--bg-0);
  padding: clamp(1.6rem, 4vw, 3rem) 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
}
.trilogy__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: var(--sand-700);
}
.trilogy__item.is-next .trilogy__num { color: var(--gold); text-shadow: 0 0 34px rgba(212, 177, 97, 0.45); }
.trilogy__date {
  font-size: clamp(0.78rem, 1.8vw, 1rem);
  font-weight: 700; letter-spacing: 0.2em;
  color: var(--sand-300);
  font-variant-numeric: tabular-nums;
}
.trilogy__state {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sand-500);
}
.trilogy__state--gold { color: var(--gold); animation: dormant-pulse 2.6s ease-in-out infinite; }

/* ---------- Tickets ---------- */

.tickets { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem clamp(5rem, 11vh, 8rem); scroll-margin-top: var(--nav-h); }
.tickets__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.ticket-card {
  position: relative;
  border: 1px solid rgba(212, 177, 97, 0.22);
  background: linear-gradient(165deg, rgba(212, 177, 97, 0.07), rgba(212, 177, 97, 0.01) 55%);
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.5rem, 4vw, 2.8rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
  transition: transform 0.5s var(--ease-out), border-color 0.5s, box-shadow 0.5s;
  overflow: hidden;
}
.ticket-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 177, 97, 0.55);
  box-shadow: 0 24px 60px -30px rgba(212, 177, 97, 0.25);
}
.ticket-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 80% 0%, rgba(212, 177, 97, 0.1), transparent 70%);
  opacity: 0; transition: opacity 0.5s;
}
.ticket-card:hover::after { opacity: 1; }
.ticket-card__type {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  text-transform: uppercase;
  color: var(--white);
}
.ticket-card__desc {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  line-height: 1.8;
  color: var(--sand-500);
}
.ticket-card__soon {
  margin-top: auto;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212, 177, 97, 0.5);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  animation: dormant-pulse 2.6s ease-in-out infinite;
}
.marquee__half i { font-size: 1.15rem; font-weight: 700; }

/* ---------- Sponsors ---------- */

.sponsors {
  padding: clamp(3.5rem, 8vh, 5.5rem) 1.5rem;
  text-align: center;
  background: var(--bg-1);
}
.sponsors__label {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--sand-500);
  margin-bottom: 2.4rem;
}
.sponsors__strip {
  margin: 0 auto;
  width: min(920px, 92vw);
  opacity: 0.85;
  transition: opacity 0.4s;
}
.sponsors__strip:hover { opacity: 1; }

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-0);
  overflow: hidden;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6rem) 1.5rem 0;
  text-align: center;
}
.footer__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: clamp(2.4rem, 6vh, 3.8rem);
  border-bottom: 1px solid rgba(212, 177, 97, 0.14);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.4rem, 6vh, 3.8rem) 0;
}
.footer__logo { height: 28px; width: auto; margin: 0 auto 1.5rem; }
.footer__meta {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sand-300);
}
.footer__meta + .footer__meta { margin-top: 0.55rem; }
.footer__meta--gold { color: var(--gold); }
.footer__heading {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--sand-500);
  margin-bottom: 1.3rem;
}
.footer__list { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.footer__list a {
  font-size: 0.95rem; font-weight: 500;
  color: var(--sand-100);
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  transition: color 0.3s;
}
.footer__list a i {
  font-style: normal; font-size: 0.7rem;
  color: var(--sand-500);
  transition: transform 0.3s, color 0.3s;
}
.footer__list a:hover { color: var(--gold); }
.footer__list a:hover i { color: var(--gold); transform: translate(2px, -2px); }
.footer__bottom {
  display: flex; justify-content: center; align-items: center;
  gap: 2rem; flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(212, 177, 97, 0.14);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sand-500);
}
.footer__credit {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--sand-500);
  opacity: 0.75;
  transition: opacity 0.3s;
}
.footer__credit:hover { opacity: 1; }
.footer__credit img {
  height: 12px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer__wordmark { padding: clamp(1rem, 3vh, 2rem) 1.5rem 0; }
.footer__wordmark img {
  display: block;
  width: min(1100px, 100%);
  margin: 0 auto;
  transform: translateY(22%);
  opacity: 0.95;
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }

/* inner blocks cascade in with JS-assigned incremental delays */
.stagger-item {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in-view .stagger-item { opacity: 1; transform: none; }

/* ---------- App-style toast ---------- */

.toast {
  position: fixed; left: 50%; top: 50%;
  z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  max-width: min(360px, 92vw);
  padding: 1.35rem 1.6rem 1.45rem;
  border-radius: 18px;
  background: rgba(27, 27, 27, 0.74);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 60px -14px rgba(0, 0, 0, 0.85);
  text-align: center;
  pointer-events: none;
  /* exit: soft dissolve upwards */
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -50%) scale(0.92) translateY(-6px);
  filter: blur(6px);
  transition: opacity 0.4s ease, visibility 0.4s, transform 0.4s ease, filter 0.4s ease;
}
.toast::before {
  content: '';
  position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 177, 97, 0.75), transparent);
}
.toast.is-visible {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1) translateY(0);
  filter: blur(0);
  /* entry: springy pop */
  transition: opacity 0.4s var(--ease-out), visibility 0.4s,
              transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}
.toast__intro {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--sand-500);
}
.toast__date {
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 3.9vw, 1.05rem); font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
}

/* ---------- Mobile dock (glass) ---------- */

.dock {
  display: none;
  position: fixed;
  left: 0.75rem; right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(27, 27, 27, 0.55);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px -18px rgba(0, 0, 0, 0.8);
  transform: translateY(calc(100% + 6rem));
  transition: transform 0.9s var(--ease-out) 1.45s;
}
body.is-ready .dock { transform: translateY(0); }
.dock__count {
  display: flex; align-items: baseline; justify-content: center;
  gap: 0.55rem;
}
.dock__cell { display: inline-flex; align-items: baseline; gap: 0.15rem; }
.dock__cell b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.dock__cell i {
  font-style: normal;
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sand-500);
}
.dock__sep { color: rgba(212, 177, 97, 0.4); font-size: 0.9rem; }
.dock__actions { display: flex; gap: 0.6rem; }
.dock__btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  /* iOS-style frosted material: no stroke, just fill + inner highlight */
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.3s;
}
.dock__btn:active { background: rgba(255, 255, 255, 0.2); }
.dock__btn span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white);
}
.dock__btn small {
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sand-500);
}

/* ---------- Responsive ---------- */

@media (max-width: 899px) {
  .nav__link { display: none; }
  .nav__logo img { height: 24px; }
  .tickets__grid { grid-template-columns: 1fr; }
  .dock { display: flex; }
  .footer { padding-bottom: 10rem; }
  .tickets { scroll-margin-top: 1rem; }
  .hero__content { padding-bottom: 11rem; }
  /* portrait crop: keep the walking figure (left third of the 16:9 frame) in view */
  .hero__video, .hero__media img { object-position: 27% 50%; }
  .hero__scroll { right: 0.9rem; bottom: 9.2rem; }
  .hero__scroll-badge { width: 84px; height: 84px; }
  .hero__scroll-arrow { width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px; }
}
@media (max-width: 640px) {
  .nav { padding: 0 1rem; }
  .trilogy__list { grid-template-columns: 1fr; }
  .trilogy__item { flex-direction: row; justify-content: space-between; padding: 1.3rem 1.5rem; }
  /* exactly 3 rows: each line stays whole, sized so the longest fits the width */
  .hero__title { font-size: clamp(1.6rem, 8.6vw, 3rem); }
  .hero__title .anim-line { white-space: nowrap; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav { transform: none; transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s; }
  .dock { transform: none; transition: none; }
  .hero__video { transform: none; transition: opacity 1.4s ease; }
  .hero__media img { transform: none !important; transition: none; }
  .hero__grain { animation: none; }
  .anim-line > span { transform: none; transition: none; }
  .hero__scroll { opacity: 0.85; transition: none; }
  .hero__scroll-ring, .hero__scroll-arrow { animation: none; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stagger-item { opacity: 1; transform: none; transition: none; }
  .countdown__value.is-ticking { animation: none; }
  .countdown__sep, .countdown--dormant .countdown__value,
  .trilogy__state--gold, .ticket-card__soon { animation: none; }
  .preloader__mark { animation: none; }
  .preloader__fill { animation: none; clip-path: none; }
}
