:root {
  --bg: #01161f;
  --bg-dark: #010f15;
  --gold: #ffd281;
  --gold-soft: #fbd898;
  --card: #333333;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.84);
  --text-muted: #c2c2c2;
  --line: rgba(255, 255, 255, 0.4);
  --font-display: "Antonio", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

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

img { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 700; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}
.h1 { font-size: clamp(44px, 6vw, 60px); }
.h-gold { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: var(--gold); font-size: 32px; line-height: 1.3; margin: 0; }
.lead { font-size: 18px; color: var(--text-soft); margin: 0; }
.section { padding-block: 150px 0; }
.section:last-of-type { padding-bottom: 150px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 10px;
  width: min(502px, calc(100% - 24px));
  border-radius: 28px;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, -120%); opacity: 0; }
.nav__logo { width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden; }
.nav__logo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.nav__logo:hover img { transform: rotate(360deg); }
.nav__links { display: flex; gap: 24px; flex: 1; }
.nav__links a { text-decoration: none; position: relative; transition: color 0.3s; }
.nav__links a:hover { color: var(--gold); }
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  border-radius: 99px;
  background: #fff;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.btn-pill:hover { background: var(--gold); transform: scale(1.03); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0b1f27;
  padding: 100px 20px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.gif") center / 500px auto repeat;
  opacity: 0.07;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero__row { position: relative; z-index: 3; display: flex; align-items: center; gap: 24px; }
.hero__left, .hero__right { display: flex; flex-direction: column; }
.hero__right { align-items: flex-end; text-align: right; padding-top: 60px; }
.hero__city { font-family: var(--font-display); font-size: 32px; line-height: 1.3; text-transform: uppercase; }
.hero__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero__tagline { font-size: 18px; margin: 0; max-width: 300px; }
/* Announcement under the card. Absolutely positioned so the row stays centered with the sticky card:
 * 50% + half the card height + the Hi badge overhang + spacing. */
.hero__notice {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  top: min(calc(50% + 322px), calc(100% - 96px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.hero__edition {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__notice p { margin: 0; font-size: 22px; font-weight: 300; color: var(--text-soft); }

/* ---------- Stage: card sticks to the viewport and flies through hero → #festival → #about ---------- */
.stage { position: relative; --card-w: 340px; }
.stage__track { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
}
.hero__slot { position: relative; flex: none; width: var(--card-w); aspect-ratio: 340 / 476; }
.stage__section { min-height: 100vh; display: flex; align-items: center; padding-block: 120px; }
.stage__section--about { min-height: 110vh; }
.stage__section > .container { width: min(var(--container), calc(100% - 40px)); }

.flycard { width: var(--card-w); aspect-ratio: 340 / 476; perspective: 2000px; }
.flycard__move,
.flycard__appear { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.flycard__move {
  will-change: transform; /* transform is driven by scroll in main.js */
}
.flycard__face {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.flycard__face img { width: 100%; height: 100%; object-fit: cover; }
.flycard__face--back { transform: rotateY(180deg); }

/* Appear: flips in on X from scale 0 (Framer: rotateX -180 → 0, scale 0 → 1, 1s spring) */
.js .flycard__appear { transform: perspective(1200px) rotateX(-180deg) scale(0); }
.js .stage.is-ready .flycard__appear { transform: none; transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; }

/* Poster with flip */
.poster { position: relative; width: 340px; aspect-ratio: 340 / 476; perspective: 1400px; flex: none; }
.poster__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.poster:hover .poster__inner, .poster.is-flipped .poster__inner { transform: rotateY(180deg); }
.poster__face { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.poster__face img { width: 100%; height: 100%; object-fit: cover; }
.poster__face--back { transform: rotateY(180deg); }
.poster--float { animation: float 6s ease-in-out infinite; }

.hi-badge {
  position: absolute;
  left: -100px;
  bottom: -60px;
  width: 123px;
  height: 123px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 40px;
  z-index: 2;
  overflow: hidden;
}
.hi-badge span { grid-area: 1 / 1; transition: transform 0.5s var(--ease), opacity 0.5s; }
.hi-badge .hi-badge__hand { transform: translateY(120%) rotate(-20deg); opacity: 0; }
.hi-badge:hover .hi-badge__text { transform: translateY(-120%); opacity: 0; }
.hi-badge:hover .hi-badge__hand { transform: none; opacity: 1; animation: wave 1s ease-in-out 0.3s 2; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(18deg); } 75% { transform: rotate(-12deg); } }

/* ---------- Welcome & Accordion ---------- */
.welcome { max-width: 600px; display: grid; gap: 24px; }
.accordion { margin-top: 16px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 20px;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.acc-item__head:hover { color: var(--gold); }
.acc-item__icon { width: 20px; height: 20px; flex: none; transition: transform 0.5s var(--ease); transform: rotate(180deg); }
.acc-item.is-open .acc-item__icon { transform: rotate(0); }
.acc-item__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.acc-item.is-open .acc-item__body { grid-template-rows: 1fr; }
.acc-item__body > div { overflow: hidden; }
.acc-item__body ul { margin: 0; padding: 0 0 24px; list-style: none; display: grid; gap: 6px; color: var(--text-soft); }
.acc-item__body li::before { content: "— "; color: var(--gold); }

/* ---------- About ---------- */
.about { max-width: 700px; display: grid; gap: 32px; }
.about__intro { display: grid; gap: 12px; }
.stats { display: flex; gap: 56px; flex-wrap: wrap; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: 60px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat__label { font-weight: 600; font-size: 18px; }
.contacts { display: flex; gap: 56px; flex-wrap: wrap; }
.contacts a { text-decoration: none; transition: color 0.3s; }
.contacts a:hover { color: var(--gold); }
.socials { display: flex; gap: 20px; }
.socials a { display: inline-flex; transition: transform 0.3s var(--ease), color 0.3s; }
.socials a:hover { transform: translateY(-3px); color: var(--gold); }
.socials svg { width: 26px; height: 26px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 40px;
  border: 1px solid var(--gold);
  border-radius: 99px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease);
  justify-self: start;
}
.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.btn-outline:hover { color: var(--bg); }
.btn-outline:hover::before { transform: none; }
.btn-outline[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Cards ---------- */
.panel { background: rgba(0, 0, 0, 0.3); border-radius: 30px; padding: 64px 40px; }
.wide { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.rich { display: grid; gap: 20px; align-content: start; }
.rich p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text-soft); }

/* Schedule */
.schedule__meta { margin: 0; }
.days { margin-top: 40px; }
.day { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.date-badge {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 14px;
  background: rgba(9, 34, 28, 0.5);
  border: 1px solid rgba(251, 216, 152, 0.33);
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--gold-soft);
  transition: transform 0.4s var(--ease), background 0.4s;
}
.day:hover .date-badge { transform: rotate(-6deg) scale(1.06); background: rgba(251, 216, 152, 0.12); }
.date-badge b { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.date-badge small { font-size: 12px; }
.day__title { font-weight: 600; margin: 0 0 4px; }
.day ul { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; display: grid; gap: 4px; }

/* Masterclass */
.master { display: grid; grid-template-columns: 1fr 252px; gap: 40px; }
.master__text { display: grid; gap: 24px; }
.master__text p { margin: 0; color: var(--text-soft); }
.master__photo { display: grid; gap: 24px; justify-items: center; align-content: start; }
.master__photo img { width: 252px; height: 350px; object-fit: cover; border-radius: 20px; }
.master__photo span { font-family: var(--font-display); font-size: 26px; color: var(--gold); text-transform: uppercase; }

/* Maestros */
.maestros__lead { max-width: 1000px; margin: 24px 0 0; font-size: 18px; }
.maestro-list { display: grid; gap: 120px; margin-top: 64px; }
/* Stacking cards: each sticks below the nav, the next one slides over and the previous shrinks (scale via main.js) */
.maestro-stack { position: relative; }
.maestro-stack__item { position: sticky; top: 80px; }
.maestro-stack .maestro { will-change: transform; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45); }
.maestro {
  position: relative;
  height: min(clamp(420px, 52vw, 744px), calc(100vh - 120px));
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 16px;
  padding: 0 clamp(20px, 12vw, 200px);
  isolation: isolate;
}
.maestro__bg { position: absolute; inset: 0; z-index: -2; transform: scale(1.12); will-change: transform; }
.maestro__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.maestro:hover .maestro__bg img { transform: scale(1.04); }
.maestro::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: -1; }
.badge { padding: 3px 16px; border-radius: 99px; background: var(--gold); color: #000; font-size: 14px; }
.maestro h3 { font-size: clamp(36px, 5vw, 60px); line-height: 1.1; }
.maestro p { margin: 0; max-width: 600px; font-size: 14px; line-height: 1.5; }

/* Testimonials */
.reviews__lead { max-width: 740px; margin: 24px 0 0; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.review {
  background: var(--card);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  gap: 16px;
  align-content: start;
  font-size: 14px;
  line-height: 1.5;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.review:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.review p { margin: 0; }
.stars { display: flex; gap: 6px; color: var(--gold); }
.stars svg { width: 20px; height: 20px; }
.author { display: flex; align-items: center; gap: 12px; }
.author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author b { display: block; font-weight: 600; }

/* ---------- Registration ---------- */
.register { display: flex; justify-content: center; gap: 54px; align-items: flex-start; }
.register .poster { width: 340px; position: sticky; top: 120px; }
.register .hi-badge { width: 103px; height: 103px; left: -52px; bottom: -52px; font-size: 34px; }
.form { width: 560px; max-width: 100%; display: grid; gap: 20px; }
.promos { margin: 0; padding-left: 18px; font-size: 14px; }
.notes { font-size: 12px; margin: 0; }
.field { display: grid; gap: 10px; }
.label { color: var(--gold); font-size: 14px; }
.input {
  height: 43px;
  width: 100%;
  border-radius: 99px;
  border: 1px solid transparent;
  background: var(--card);
  color: var(--text);
  padding: 0 20px;
  font: 400 15px var(--font-body);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input::placeholder { color: rgba(255, 255, 255, 0.4); }
.input:focus, .phone:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 210, 129, 0.15); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.phone { position: relative; display: flex; align-items: center; height: 43px; border-radius: 99px; background: var(--card); border: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.phone__btn { display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px 0 16px; background: none; border: 0; border-right: 1px solid rgba(255, 255, 255, 0.15); color: var(--text); font: 400 15px var(--font-body); cursor: pointer; white-space: nowrap; }
.phone__btn svg { width: 14px; height: 14px; opacity: 0.6; }
.phone .input { background: transparent; border: 0; box-shadow: none; padding-left: 10px; height: 100%; }
.phone__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.phone.is-open .phone__menu { opacity: 1; transform: none; pointer-events: auto; }
.phone__search { width: 100%; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); background: transparent; color: var(--text); padding: 12px 16px; font: 400 14px var(--font-body); outline: none; }
.phone__list { max-height: 240px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.phone__list li { display: flex; gap: 10px; padding: 10px 16px; cursor: pointer; font-size: 14px; }
.phone__list li:hover, .phone__list li[aria-selected="true"] { background: rgba(255, 210, 129, 0.12); }
.phone__list li span:nth-child(2) { flex: 1; }
.phone__list li span:last-child { opacity: 0.6; }

.radios { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.radios legend { padding: 0; margin-bottom: 10px; }
.radio { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; align-items: center; cursor: pointer; font-weight: 500; font-size: 15px; }
.radio input { appearance: none; -webkit-appearance: none; margin: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--card); display: grid; place-items: center; cursor: pointer; transition: background 0.25s; }
.radio input::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bg); transform: scale(0); transition: transform 0.25s var(--ease); }
.radio input:checked { background: var(--gold); }
.radio input:checked::after { transform: scale(1); }
.radio input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.radio ul { grid-column: 2; margin: 8px 0 8px; padding: 0; list-style: none; display: grid; gap: 4px; font-weight: 300; font-size: 14px; color: var(--text-muted); }
.radios--packs { gap: 14px; }

.privacy { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 12px; font-weight: 500; color: #e3e3e3; line-height: 1.4; }
.privacy input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 4px; background: var(--card); display: grid; place-items: center; cursor: pointer; }
.privacy input:checked { background: var(--gold); }
.privacy input:checked::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.privacy a { color: #fff; }
.privacy small { display: block; margin-top: 6px; font-size: 10px; font-weight: 400; color: #888; }
.is-invalid { outline: 2px solid #ef4444 !important; outline-offset: 2px; }
.form__error { color: #ff8a8a; font-size: 14px; margin: 0; min-height: 1em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Sponsors / organizers / video ---------- */
.sponsors { background: #000; padding: 24px 20px; display: flex; justify-content: center; align-items: center; gap: 82px; flex-wrap: wrap; margin-top: 120px; }
.sponsors img { width: 147px; height: 121px; object-fit: contain; filter: grayscale(0.3); transition: filter 0.4s, transform 0.4s var(--ease); }
.sponsors img:hover { filter: none; transform: scale(1.06); }

.organizers { text-align: center; }
.people { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-top: 56px; }
.person { width: 200px; display: grid; gap: 16px; justify-items: center; align-content: start; }
.person__photo { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.person:hover .person__photo img { transform: scale(1.08); }
.person h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--gold); text-transform: uppercase; margin: 0; }
.person__links { display: flex; gap: 6px 14px; flex-wrap: wrap; justify-content: center; font-size: 12px; font-weight: 500; }
.person__links a:hover { color: var(--gold); }

.videos { width: min(980px, calc(100% - 40px)); margin: 150px auto 80px; position: relative; aspect-ratio: 16 / 9; max-height: 560px; background: #000; overflow: hidden; }
.videos__track { display: flex; height: 100%; transition: transform 0.6s var(--ease); }
.videos__slide { flex: 0 0 100%; height: 100%; position: relative; }
.videos__slide iframe, .videos__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos__poster { background: #000 center / cover no-repeat; cursor: pointer; display: grid; place-items: center; }
.videos__poster::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); transition: background 0.3s; }
.videos__poster:hover::after { background: rgba(0, 0, 0, 0.05); }
.videos__play { position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--bg); transition: transform 0.4s var(--ease); }
.videos__poster:hover .videos__play { transform: scale(1.1); }
.videos__play svg { width: 28px; height: 28px; margin-left: 4px; }
.videos__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 26px; cursor: pointer; transition: background 0.3s; }
.videos__arrow:hover { background: var(--gold); color: var(--bg); }
.videos__arrow--prev { left: 12px; }
.videos__arrow--next { right: 12px; }
.videos__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.videos__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: background 0.3s, width 0.3s; }
.videos__dots button[aria-current="true"] { background: var(--gold); width: 22px; border-radius: 4px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 48px; }
.footer__contact { text-align: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer__contact a { text-decoration: none; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 14px; color: #dadada; flex-wrap: wrap; }
.footer .socials svg { width: 22px; height: 22px; color: var(--gold); }
.creator { display: flex; align-items: center; gap: 10px; color: #8f8f8f; }
.creator img { width: 40px; height: 40px; border-radius: 50%; }
.creator a { color: var(--gold); }

/* ---------- Simple pages ---------- */
.page-hero { min-height: calc(100vh - 150px); display: grid; place-content: center; justify-items: center; text-align: center; gap: 24px; padding: 140px 20px 80px; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero__logo { width: 160px; height: 160px; border-radius: 50%; animation: spin-in 1.2s var(--ease) both; }
.page-hero h1 { font-size: clamp(64px, 10vw, 120px); letter-spacing: -0.03em; line-height: 1.1; }
.page-hero p { font-size: 20px; margin: 0; }
.btn-gold { display: inline-flex; padding: 10px 40px; border-radius: 99px; background: var(--gold); color: var(--bg); font-family: var(--font-display); font-size: 22px; text-transform: uppercase; text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 210, 129, 0.3); }
@keyframes spin-in { from { transform: rotate(-180deg) scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

.legal { max-width: 800px; margin: 0 auto; padding: 160px 20px 120px; display: grid; gap: 20px; }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--gold); margin: 16px 0 0; }
.legal p, .legal ul { margin: 0; color: var(--text-soft); }
.legal .updated { color: var(--text-muted); font-size: 14px; }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(0.92); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js .hero [data-intro] { opacity: 0; transform: translateY(60px); }
.js .hero.is-ready [data-intro] { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .hero .hi-badge { transform: scale(0); transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s; }
.js .hero.is-ready .hi-badge { transform: scale(1); }

/* ---------- Responsive ---------- */
/* Tablet (Framer 810–1199): smaller card, shorter flight */
@media (max-width: 1199px) {
  .stage { --card-w: 260px; }
  .stage__section .welcome, .stage__section .about { max-width: calc(50vw + 50px); }
  .hero__right { padding-top: 0; }
  .hi-badge { left: -60px; bottom: -40px; width: 96px; height: 96px; font-size: 32px; }
  .hero__notice { top: min(calc(50% + 246px), calc(100% - 90px)); }
  .hero__notice p { font-size: 18px; }
}

/* Phone (Framer < 810): no flight, card stays in the hero */
@media (max-width: 809px) {
  .stage { --card-w: 220px; }
  .stage__track { bottom: auto; height: 100vh; height: 100svh; }
  .hero { height: 100vh; height: 100svh; min-height: 0; padding: 0 20px; }
  .hero__row { flex-direction: column; text-align: center; gap: 8px; }
  .hero__left { align-items: center; justify-content: flex-end; min-height: 120px; }
  .hero__right { align-items: center; text-align: center; min-height: 120px; }
  .stage__section, .stage__section--about { min-height: 0; display: block; padding-block: 100px 0; }
  .stage__section .welcome, .stage__section .about { max-width: none; }
  .hi-badge { left: -40px; bottom: -30px; width: 80px; height: 80px; font-size: 26px; }
  .hero__notice { top: auto; bottom: 20px; gap: 4px; }
  .hero__edition { font-size: 18px; }
  .hero__notice p { font-size: 14px; max-width: 320px; }
}
@media (max-width: 809px) and (max-height: 740px) {
  .hero__notice p { display: none; }
}

@media (max-width: 1024px) {
  .two-col, .master { grid-template-columns: 1fr; }
  .master__photo { order: -1; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .register { flex-direction: column; align-items: center; }
  .register .poster { position: relative; top: 0; width: 220px; }
  .register .hi-badge { width: 80px; height: 80px; left: -40px; bottom: -30px; font-size: 26px; }
}

@media (max-width: 640px) {
  .section { padding-top: 100px; }
  .nav { gap: 12px; }
  .nav__links { display: none; }
  .nav__spacer { flex: 1; }
  .btn-pill { padding: 0 16px; font-size: 14px; }
  .panel { padding: 40px 20px; border-radius: 20px; }
  .reviews { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .contacts { gap: 12px; flex-direction: column; }
  .btn-outline { font-size: 20px; padding: 8px 28px; justify-self: stretch; }
  .maestro-list { gap: 40px; }
  .maestro { height: 520px; }
  .sponsors { gap: 24px; }
  .sponsors img { width: 100px; height: 82px; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero [data-intro], .js .hero .hi-badge, .js .flycard__appear { opacity: 1 !important; transform: none !important; }
}

/* ---------- Maestro detail pages (/projects/*) ---------- */
.project { width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 170px 0 120px; display: grid; gap: 24px; }
.badge-outline { justify-self: start; padding: 3px 12px; border: 1px solid var(--gold); border-radius: 99px; color: var(--gold-soft); font-size: 13px; }
.project__title { font-size: clamp(56px, 9vw, 120px); line-height: 1.05; letter-spacing: -0.01em; }
.project__lead { margin: 0; font-size: 18px; color: var(--text-soft); max-width: 880px; }
.project__media { margin: 56px 0 0; border-radius: 20px; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project__media:hover img { transform: scale(1.03); }
.project__media--cover { aspect-ratio: 1000 / 600; }
.project__media--wide { aspect-ratio: 3 / 2; margin-top: 8px; }
.project__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 8px; }
.project__pair .project__media { margin: 0; aspect-ratio: 2 / 2.66; }
.project__pair--landscape .project__media { aspect-ratio: 3 / 2; }
.project__block { display: grid; gap: 16px; margin-top: 72px; }
.project__block h2 { font-family: var(--font-display); font-weight: 400; font-size: 32px; text-transform: uppercase; margin: 0; }
.project__block p { margin: 0; color: var(--text-soft); }
.project__video { margin-top: 72px; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; position: relative; background: #000; }
.project__video .videos__slide { position: absolute; inset: 0; }

.more { width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 150px; }
.more__head { display: flex; align-items: center; gap: 24px; }
.more__head h2 { font-size: 60px; }
.more__head::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.35); }
.more__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.more-card { display: grid; gap: 14px; text-decoration: none; color: inherit; align-content: start; }
.more-card__img { aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; }
.more-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.more-card:hover .more-card__img img { transform: scale(1.06); }
.more-card h3 { font-size: 28px; line-height: 1.15; transition: color 0.3s; }
.more-card:hover h3 { color: var(--gold); }
.more-card p { margin: 0; font-size: 14px; color: var(--text-soft); }

/* Projects index */
.projects-head { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; padding-top: 170px; display: grid; gap: 16px; }
.projects-head p { margin: 0; max-width: 420px; color: var(--text-soft); }
.projects-list { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; padding-bottom: 150px; }

a.maestro { color: inherit; text-decoration: none; }
a.maestro h3 { transition: color 0.3s; }
a.maestro:hover h3 { color: var(--gold); }

@media (max-width: 809px) {
  .project { padding-top: 130px; }
  .project__pair, .more__grid { grid-template-columns: 1fr; }
  .project__block { margin-top: 48px; }
  .more__head h2 { font-size: 44px; }
}

/* Visually hidden, still read by screen readers and search engines */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Registration switch ----------
 * Registration is CLOSED: the form section, the header button and the "Inscripcion" button are hidden.
 * To reopen registration, delete this whole block. */
[data-registration] { display: none !important; }
.nav { width: auto; gap: 32px; padding-right: 24px; }
.nav__spacer { display: none; }
@media (max-width: 640px) {
  .nav__links { display: flex; }
}
