/* =========================================================
   Times Internet Languages Live - Heritage × Grand Stage
   ========================================================= */

:root {
  /* Use the approved system font stacks; no external font assets required. */
  --font-sans:    sans-serif;
  --font-serif:   sans-serif;
  --font-cursive: sans-serif;

  /* Warm heritage palette */
  --bg-cream:         #f4efe6;
  --bg-paper:         #faf8f2;
  --bg-card:          #ffffff;
  --bg-deep:          #1f1a14;
  --text-dark:        #2a241c;
  --text-dim:         #6b6356;
  --text-mute:        #a39c91;
  --accent-blush:     #c96d6d;
  --accent-blush-soft:#f6e2e2;
  --accent-gold:      #b48a3c;
  --accent-gold-soft: #ecd9a8;
  --accent-ink:       #2a241c;
  --border-sand:      #ddd1c0;

  --shadow-sm:       0 4px 12px rgba(59,54,46,.06);
  --shadow-md:       0 10px 28px rgba(59,54,46,.08);
  --shadow-float:    0 22px 50px rgba(59,54,46,.14);
  --shadow-polaroid: 0 14px 32px rgba(0,0,0,.18);

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --max:      1280px;
  --header-h: 80px;

  --font-base:    var(--font-sans),    sans-serif;
  --font-heading: var(--font-serif);
  --font-accent:  var(--font-cursive), cursive;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-base);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
section { scroll-margin-top: var(--header-h); }
::selection { background: var(--accent-gold-soft); color: var(--text-dark); }

.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;
}

body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(180,138,60,.08), transparent 60%),
    radial-gradient(900px  500px at -10% 30%, rgba(201,109,109,.06), transparent 60%);
  z-index: -1;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: 500; line-height: 1.15;
  margin: 0; color: var(--text-dark); letter-spacing: -0.01em;
}
p { color: var(--text-dim); }

.overline {
  font-family: var(--font-base);
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent-gold); font-weight: 700; margin-bottom: 14px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(24px,5vw,64px);
  background: rgba(244,239,230,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.site-header.scrolled {
  background: rgba(250,248,242,.96);
  border-bottom-color: var(--border-sand);
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; }
.brand-logo-custom { height: 52px; width: auto; }
.hero-logo-wrap { display: flex; align-items: center; }
.hero-logo-img  { height: clamp(72px,9vw,120px); width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-links a {
  font-size: 17px; font-weight: 500; color: var(--text-dim);
  position: relative; transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--text-dark); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── Buttons ─────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 16px 34px; border-radius: var(--radius-pill);
  font-family: var(--font-base); font-size: 16px; font-weight: 500;
  letter-spacing: .01em; transition: all .25s ease; white-space: nowrap;
}
.button-primary {
  background: var(--accent-ink); color: var(--bg-cream);
  box-shadow: 0 6px 18px rgba(42,36,28,.18);
}
.button-primary:hover {
  background: #0f0c08; transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(42,36,28,.28);
}
.button-secondary {
  background: transparent; border: 1px solid var(--border-sand); color: var(--text-dark);
}
.button-secondary:hover {
  border-color: var(--accent-gold); background: var(--bg-paper); color: var(--accent-ink);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; width: 100%;
  height: calc(100vh - var(--header-h)); min-height: 600px;
  overflow: hidden; display: flex; flex-direction: column; justify-content: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: opacity .9s ease;
}
@media (prefers-reduced-motion: reduce) { .hero-video { transition: none; } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(10,7,3,.38) 0%, rgba(10,7,3,.10) 100%),
    linear-gradient(to bottom, rgba(10,7,3,.32) 0%, rgba(10,7,3,.50) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(24px,5vw,64px) 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(16px,2vw,28px); height: 100%; text-align: center;
}
.hero-copy {
  flex: 0 0 auto; width: fit-content; max-width: min(90vw,var(--max));
  display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center;
}
.hero .hero-logo-wrap {
  flex: 0 0 auto; align-self: center;
  width: clamp(180px,28vw,340px); height: auto;
  display: flex; align-items: center; justify-content: center;
}
.hero .hero-logo-img {
  filter: drop-shadow(0 2px 16px rgba(0,0,0,.55));
  width: 100%; height: auto; object-fit: contain; object-position: center; display: block;
}
.hero-greeting {
  display: inline-flex; align-items: baseline; justify-content: center;
  gap: 12px; font-family: var(--font-accent); color: #f5dc8e;
  font-size: clamp(30px,3.2vw,50px); line-height: 1; margin-bottom: 14px;
  animation: greetingSlide .5s cubic-bezier(.2,.8,.2,1);
  pointer-events: none; white-space: nowrap; text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.hero-greeting em {
  font-family: var(--font-base); font-style: normal;
  font-size: 11px; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(255,255,255,.6); font-weight: 700;
}
@keyframes greetingSlide {
  0%   { opacity: 0; transform: translateY(12px); }
  60%  { opacity: 1; transform: translateY(-3px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: clamp(34px,4.8vw,76px); font-weight: 800; margin-bottom: 22px;
  line-height: 1.05; color: #fff; white-space: nowrap; letter-spacing: -.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,.55), 0 8px 32px rgba(0,0,0,.45), 0 24px 64px rgba(0,0,0,.3);
}
.hero-script {
  font-family: var(--font-accent); color: #ff8c7a; font-weight: 400; font-size: 1.08em;
  text-shadow: 0 0 40px rgba(255,120,100,.55), 0 2px 4px rgba(0,0,0,.5), 0 8px 32px rgba(0,0,0,.35);
}
.hero-copy > p {
  font-size: clamp(15px,1.35vw,20px); line-height: 1.65; color: rgba(255,255,255,.92);
  margin-bottom: 36px; width: 100%; text-align: center; letter-spacing: .01em;
  text-shadow: 0 1px 6px rgba(0,0,0,.75), 0 4px 20px rgba(0,0,0,.55);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 4px; }
.hero-actions .button-primary {
  background: #d4930a; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .02em;
  box-shadow: 0 6px 24px rgba(180,110,10,.45), 0 2px 8px rgba(0,0,0,.35);
}
.hero-actions .button-primary:hover {
  background: #b8820a; transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(180,110,10,.55), 0 4px 12px rgba(0,0,0,.4);
}
.button-ghost {
  border-color: rgba(255,255,255,.4) !important; color: #fff !important;
  background: rgba(255,255,255,.08) !important; font-size: 17px !important;
  font-weight: 600 !important; backdrop-filter: blur(6px);
}
.button-ghost:hover {
  border-color: #f5dc8e !important; background: rgba(240,210,138,.15) !important;
  color: #f5dc8e !important; transform: translateY(-3px);
}
.hero-city-bar {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center;
  gap: 10px; pointer-events: none;
}
.hero-city-dots { display: flex; gap: 7px; align-items: center; }
.hero-dot {
  display: block; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.3); transition: all .35s ease; flex-shrink: 0;
}
.hero-dot.active {
  background: #f0d28a; transform: scale(1.6); box-shadow: 0 0 6px rgba(240,210,138,.7);
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px,4vw,64px) clamp(24px,5vw,64px); position: relative;
}
.about-us { padding-bottom: 4px; }
#events.section { padding-top: 8px; }
.about-text-content {
  max-width: 1000px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; gap: 20px;
}
.about-text-content p {
  font-size: clamp(17px,1.25vw,20px); line-height: 1.7;
  color: var(--text-dim); margin-bottom: 0; font-weight: 400;
}
.about-text-content p strong { color: var(--accent-gold); font-weight: 600; }
.section-heading { margin-bottom: 28px; text-align: center; }
.section-heading h2 { font-size: clamp(34px,4vw,52px); margin-bottom: 12px; }
.section-heading > p { max-width: 680px; margin: 0 auto; font-size: 17px; line-height: 1.72; }

/* ── Event grid ──────────────────────────────────────────── */
.event-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 32px;
}
.event-grid > [data-reveal] { display: flex; }
.event-grid > [data-reveal] > .event-card { width: 100%; }
.event-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
  position: relative; display: flex; flex-direction: column;
  border: 1px solid rgba(221,209,192,.6);
}
.event-card::after {
  content: ""; position: absolute; top: -10px; left: 24px;
  width: 60px; height: 18px; background: rgba(236,217,168,.55);
  border: 1px dashed rgba(180,138,60,.35); transform: rotate(-4deg); pointer-events: none;
}
.event-card:hover {
  transform: translateY(-8px) rotate(-.3deg); box-shadow: var(--shadow-float);
  border-color: var(--accent-gold-soft);
}
.event-card:hover::after { transform: rotate(-7deg) translateY(-2px); }
.event-image { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; margin-bottom: 20px; }
.event-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.08) saturate(1.05); transition: transform .6s ease;
}
.event-card:hover .event-image img { transform: scale(1.04); }
.event-image > span {
  position: absolute; top: 12px; left: 12px;
  background: var(--bg-paper); padding: 6px 12px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .18em;
  border-radius: var(--radius-pill); color: var(--text-dark); font-weight: 700;
  border: 1px solid var(--border-sand); backdrop-filter: blur(6px);
}
.event-image > span[data-status="Live"]     { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }
.event-image > span[data-status="Live"]::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: #dc2626; border-radius: 50%; margin-right: 6px;
  animation: pulse 1.4s ease infinite;
}
.event-image > span[data-status="Upcoming"] { background: #f0fdf4; color: #15803d; border-color: #86efac; }
.event-image > span[data-status="Past"]     { background: var(--bg-paper); color: var(--text-mute); }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.event-body { display: flex; flex-direction: column; flex: 1; }
.event-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--accent-blush); margin-bottom: 10px; font-weight: 700; }
.event-body h3 { font-size: 26px; margin-bottom: 12px; line-height: 1.25; }
.event-body > p { font-size: 17px; margin-bottom: 18px; flex: 1; line-height: 1.65; color: var(--text-dim); }
.meta-row {
  display: flex; gap: 16px; font-size: 14px; color: var(--text-dim);
  margin-bottom: 16px; padding: 10px 12px;
  background: var(--bg-paper); border-radius: var(--radius-sm);
}
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-icon  { color: var(--accent-gold); font-size: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag-row span {
  font-size: 13px; padding: 5px 12px;
  background: var(--bg-cream); border: 1px solid var(--border-sand);
  border-radius: var(--radius-pill); color: var(--text-dim);
}
.card-actions { display: flex; gap: 10px; margin-top: auto; }
.card-actions a {
  flex: 1; text-align: center; padding: 14px 18px;
  border-radius: var(--radius-pill); font-size: 15px; font-weight: 500;
  transition: all .2s ease; background: var(--accent-ink); color: var(--bg-cream);
  box-shadow: 0 4px 14px rgba(42,36,28,.18);
}
.card-actions a:hover {
  background: #0f0c08; transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(42,36,28,.28);
}
.card-actions a.is-disabled {
  background: #8e8579;
  color: rgba(244,239,230,.85);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.card-actions a.is-disabled:hover {
  background: #8e8579;
  transform: none;
  box-shadow: none;
}

/* ── Universes ───────────────────────────────────────────── */
.universes {
  background: var(--bg-deep); padding: clamp(40px,5vw,72px) 0;
  position: relative; overflow: hidden;
}
.universes-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(24px,5vw,64px);
}
.universes .section-heading .overline { color: var(--accent-gold-soft); }
.universes .section-heading h2 { color: var(--bg-cream); font-size: clamp(30px,3.6vw,48px); }
.universes .section-heading > p { color: rgba(244,239,230,.6); }
.universes .universe-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; align-items: stretch;
}
.universe-card {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
  overflow: hidden; display: flex; flex-direction: column; gap: 10px;
}
.universe-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-blush)); opacity: .8;
}
.universe-card:hover {
  transform: translateY(-4px); background: rgba(255,255,255,.07);
  border-color: rgba(240,210,138,.35);
}
.universe-numeral {
  font-family: var(--font-heading); font-size: 32px; line-height: 1;
  color: var(--accent-gold); opacity: .55; letter-spacing: -.02em;
}
.universe-card h3 {
  font-family: var(--font-accent); font-size: 24px; color: var(--bg-cream);
  min-height: 3em; display: flex; align-items: flex-start;
}
.universe-card p { font-size: 15px; color: rgba(244,239,230,.6); line-height: 1.65; flex-grow: 1; }

/* ── Partners ────────────────────────────────────────────── */
.partners {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start;
  padding: clamp(36px,4vw,64px) clamp(24px,5vw,64px);
}
.partners-copy { position: relative; }
.partners-copy h2 { font-size: clamp(34px,3.4vw,46px); margin-bottom: 20px; }
.partners-intro-row { display: flex; gap: 32px; align-items: center; margin-bottom: 32px; text-align: left; }
.partners-intro-row p { font-size: 18px; line-height: 1.7; margin-bottom: 0; flex: 1; }
.partners-intro-row .button { flex-shrink: 0; }
.partner-inventory { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.inventory-card {
  padding: 22px; background: var(--bg-card); border: 1px solid var(--border-sand);
  border-radius: var(--radius); display: flex; gap: 14px; align-items: flex-start;
  transition: all .2s ease;
}
.inventory-card:hover { border-color: var(--accent-gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.inventory-mark { color: var(--accent-gold); font-size: 18px; line-height: 1.2; }
.inventory-card strong {
  display: block; font-family: var(--font-heading); font-size: 19px;
  color: var(--text-dark); margin-bottom: 6px; font-weight: 600;
}
.inventory-card span:not(.inventory-mark) { display: block; font-size: 15px; color: var(--text-dim); line-height: 1.5; }

/* ── FAQs ────────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details {
  background: var(--bg-card); margin-bottom: 12px; padding: 22px 26px;
  border-radius: var(--radius); border: 1px solid var(--border-sand);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-list details[open] { border-color: var(--accent-gold); box-shadow: var(--shadow-sm); }
.faq-list summary {
  font-family: var(--font-heading); font-size: 21px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; color: var(--text-dark);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: var(--font-base); color: var(--accent-gold);
  font-size: 24px; font-weight: 300; transition: transform .2s ease;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 14px 0 0; font-size: 17px; line-height: 1.7; }

/* ── Newsletter ──────────────────────────────────────────── */
.newsletter { max-width: var(--max); margin: 0 auto; padding: 0 clamp(24px,5vw,64px) 48px; }
.newsletter-inner {
  position: relative;
  background: radial-gradient(circle at 80% 0%, rgba(236,217,168,.4), transparent 50%), var(--bg-deep);
  color: var(--bg-cream); padding: clamp(48px,6vw,80px) clamp(28px,5vw,64px);
  text-align: center; border-radius: var(--radius-lg); overflow: hidden;
}
.newsletter-inner > * { position: relative; }
.newsletter-inner .overline { color: var(--accent-gold-soft); }
.newsletter-inner h2 { color: var(--bg-cream); font-size: clamp(28px,3.2vw,40px); margin-bottom: 12px; }
.newsletter-inner > p { color: rgba(244,239,230,.75); max-width: 560px; margin: 0 auto 32px; }
.newsletter form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter input {
  padding: 15px 24px; width: 340px; border-radius: var(--radius-pill);
  border: 1px solid rgba(244,239,230,.2); background: rgba(244,239,230,.08);
  color: var(--bg-cream); font-family: var(--font-base); font-size: 15px;
  outline: none; transition: all .2s ease;
}
.newsletter input::placeholder { color: rgba(244,239,230,.45); }
.newsletter input:focus { border-color: var(--accent-gold-soft); background: rgba(244,239,230,.12); }
.newsletter form .button-primary { background: var(--accent-gold-soft); color: var(--accent-ink); }
.newsletter form .button-primary:hover { background: #fff; color: var(--accent-ink); }

/* ── Contact ─────────────────────────────────────────────── */
.contact-us { max-width: var(--max); margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; align-items: stretch; }
.contact-card {
  background: var(--bg-card); padding: 32px 24px; border-radius: var(--radius);
  border: 1px solid var(--border-sand); box-shadow: var(--shadow-sm);
  transition: all .3s ease; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent-gold); }
.contact-card h3 { font-size: 20px; margin-bottom: 16px; color: var(--text-dark); }
.contact-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; word-break: break-all; line-height: 1.5; width: 100%; }
.contact-card p span { font-weight: 600; color: var(--text-dark); display: block; margin-bottom: 2px; }
.contact-card a { color: var(--accent-ink); transition: color .2s; }
.contact-card a:hover { color: var(--accent-gold); }
.contact-card-icon { font-size: 32px; margin-bottom: 12px; line-height: 1; }
.contact-card-role { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-gold) !important; margin-bottom: 10px !important; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--bg-card); border-top: 1px solid var(--border-sand); padding: 48px clamp(24px,5vw,64px) 24px; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; font-size: 16px; max-width: 360px; line-height: 1.7; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg-paper); border: 1px solid var(--border-sand);
  color: var(--text-dim); font-size: 13px; transition: all .2s ease;
}
.social-row a:hover { background: var(--accent-ink); color: var(--bg-cream); border-color: var(--accent-ink); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--font-base); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 18px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; font-size: 16px; }
.footer-col a { color: var(--text-dim); transition: color .2s ease; }
.footer-col a:hover { color: var(--text-dark); }
.footer-bottom {
  border-top: 1px solid var(--border-sand); margin-top: 32px; padding-top: 20px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  font-size: 14px; color: var(--text-mute);
  max-width: var(--max); margin-left: auto; margin-right: auto; text-align: center;
}

/* ── Scroll reveal ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition:
    opacity .7s cubic-bezier(.2,.8,.2,1) var(--reveal-delay,0ms),
    transform .7s cubic-bezier(.2,.8,.2,1) var(--reveal-delay,0ms);
  will-change: transform, opacity;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ── Progress bar ────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-blush));
  z-index: 60; pointer-events: none; transition: transform .1s linear;
}

/* ── Back to top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px;
  border-radius: 50%; background: var(--accent-ink); color: var(--bg-cream);
  font-size: 22px; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(42,36,28,.28); opacity: 0;
  transform: translateY(20px) scale(.9); pointer-events: none;
  transition: all .3s cubic-bezier(.2,.8,.2,1); z-index: 40;
}
.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover   { background: #0f0c08; transform: translateY(-3px) scale(1.05); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31,26,20,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: modalFadeIn .25s ease;
}
@keyframes modalFadeIn { from { opacity:0; } to { opacity:1; } }
.modal-panel {
  position: relative; background: var(--bg-card); border: 1px solid var(--border-sand);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  padding: 40px 36px; animation: modalSlideUp .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalSlideUp {
  from { opacity:0; transform:translateY(24px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-dim); background: var(--bg-paper);
  border: 1px solid var(--border-sand); transition: all .2s ease; cursor: pointer;
}
.modal-close:hover { background: var(--accent-ink); color: var(--bg-cream); border-color: var(--accent-ink); }
.modal-header { text-align: center; margin-bottom: 28px; }
.modal-header h3 { font-size: 24px; margin-bottom: 8px; }
.modal-header p { font-size: 15px; color: var(--text-dim); margin: 0; }
.modal-form { display: flex; flex-direction: column; gap: 18px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-field label { font-size: 13px; font-weight: 600; color: var(--text-dark); letter-spacing: .02em; }
.modal-field label span { font-weight: 400; color: var(--text-mute); }
.modal-field input,
.modal-field textarea {
  padding: 12px 16px; border: 1px solid var(--border-sand); border-radius: var(--radius-sm);
  font-family: var(--font-base); font-size: 15px; color: var(--text-dark);
  background: var(--bg-paper); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease; resize: vertical;
}
.modal-field input:focus,
.modal-field textarea:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(180,138,60,.1); }
.modal-field input::placeholder,
.modal-field textarea::placeholder { color: var(--text-mute); }
.modal-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-checks { display: flex; flex-direction: column; gap: 12px; }
.modal-check {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 14px; color: var(--text-dim); line-height: 1.5;
}
.modal-check input[type="checkbox"] {
  margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent-gold);
  flex-shrink: 0; cursor: pointer;
}
.modal-check a { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }
.modal-check a:hover { color: var(--accent-ink); }
.modal-submit { width: 100%; margin-top: 8px; font-size: 16px; }
.modal-submit:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.modal-success {
  text-align: center; padding: 20px 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.modal-success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #f0fdf4;
  color: #15803d; font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #86efac;
}
.modal-success h3 { font-size: 24px; margin: 0; }
.modal-success p  { font-size: 16px; color: var(--text-dim); max-width: 380px; margin: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid   { grid-template-columns: 2fr 1fr 1fr; }
  .partners      { grid-template-columns: 1fr; gap: 32px; }
  .partners-copy { position: static; }
  .partner-inventory { grid-template-columns: repeat(2,1fr); }
  .universes .universe-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid  { grid-template-columns: repeat(2,1fr); }
  .section       { padding: clamp(28px,3.5vw,48px) clamp(24px,5vw,64px); }
  .universes     { padding: clamp(32px,4vw,56px) 0; }
}
@media (max-width: 900px) {
  .hero { height: auto; min-height: 100svh; }
  .hero-content {
    flex-direction: column; justify-content: center; text-align: center;
    padding: 32px clamp(24px,5vw,48px) 72px; gap: 20px;
    height: auto; min-height: calc(100svh - var(--header-h));
  }
  .hero .hero-logo-wrap { align-self: center; width: clamp(160px,60vw,300px); height: auto; }
  .hero .hero-logo-img  { object-position: center; }
  .hero-copy    { align-items: center; max-width: 560px; margin: 0 auto; }
  .hero-actions { justify-content: center; width: 100%; }
  .hero-greeting { font-size: clamp(26px,5vw,36px); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .nav-links    { display: none; }
  .header-cta   { margin-left: auto; }
  .section-heading h2 { font-size: clamp(30px,5vw,42px); }
  .section-heading    { margin-bottom: 20px; }
}
@media (max-width: 768px) {
  .partners-intro-row { flex-direction: column; gap: 16px; align-items: flex-start; }
  .partners-intro-row .button { align-self: flex-start; }
  .partners-copy h2   { font-size: clamp(26px,4.5vw,36px); }
  .event-grid         { gap: 20px; }
  .newsletter-inner   { padding: clamp(32px,5vw,56px) clamp(20px,4vw,40px); }
  .newsletter-inner h2{ font-size: clamp(24px,3vw,34px); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero .hero-logo-wrap { width: clamp(140px,70vw,260px); height: auto; }
  .hero h1 { font-size: clamp(22px,6.5vw,36px); white-space: normal; }
  .event-grid  { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .newsletter form { flex-direction: column; align-items: stretch; padding: 0 8px; }
  .newsletter input { width: 100%; }
  .hero-copy > p { font-size: 15px; }
  .partner-inventory { grid-template-columns: 1fr; }
  .button { padding: 14px 26px; font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .button { width: 100%; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .universe-card { padding: 22px 18px; }
  .universe-card h3 { font-size: 22px; min-height: auto; }
  .universes .universe-grid { grid-template-columns: 1fr; gap: 12px; }
  .section { padding: 28px 20px; }
  .universes { padding: 28px 0; }
  .footer  { padding: 32px 20px 20px; }
  .newsletter { padding-bottom: 28px; }
  .modal-panel { padding: 28px 20px; }
  .modal-row-2 { grid-template-columns: 1fr; }
  .modal-header h3 { font-size: 20px; }
}
@media (max-width: 420px) {
  .event-card { padding: 14px; }
  .meta-row   { flex-direction: column; gap: 6px; align-items: flex-start; }
  .hero-content { padding: 24px 16px 64px; }
}

/* ── Focus & motion ──────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; border-radius: 4px; }
.button:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Banner slots (static creatives) ─────────────────────── */
/* Gutter banners live outside the content column. They are hidden by
   default and only switched on for `body.has-gutter-ads`, which the page
   sets from the bannerAds.gutter config flag. */
.gutter-banner {
  display: none;
  position: fixed;
  /* Centred in the space below the sticky header + trending bar, whose
     combined height main.js publishes as --sticky-top. Centring on the whole
     viewport instead would tuck the top of the creative under them. */
  top: calc(var(--sticky-top, 0px) + (100vh - var(--sticky-top, 0px)) / 2);
  transform: translateY(-50%);
  width: 160px;
  z-index: 30;
  line-height: 0;
  /* Revealed by main.js once the hero has scrolled past — the hero is
     full-bleed, so the creatives would otherwise sit on top of it. */
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.gutter-banner.is-visible { opacity: 1; visibility: visible; }
/* Centre each creative in the space left over beside the content column,
   never letting it touch the viewport edge. */
.gutter-banner-left  { left:  max(10px, calc((100vw - var(--max)) / 4 - 80px)); }
.gutter-banner-right { right: max(10px, calc((100vw - var(--max)) / 4 - 80px)); }
.gutter-banner img {
  /* Scales down whole on short viewports rather than being cropped, and
     stays centred in the 160px slot the layout reserves. */
  height: min(600px, calc(100vh - var(--sticky-top, 0px) - 24px));
  width: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 28px -14px rgba(0,0,0,.55);
}

/* With gutter ads on, narrow the desktop content column so both creatives
   always fit rather than waiting for a very wide monitor. Each side needs
   160px for the creative plus clearance; the reserve is 44px because 100vw
   counts the scrollbar that the content column does not get. The column
   keeps its normal 1280px cap on monitors wide enough not to need it.
   Below 1200px there isn't room for either creative, so the gutters stay
   hidden and the column keeps its full width. */
@media (min-width: 1200px) {
  body.has-gutter-ads { --max: min(1280px, calc(100vw - 2 * (160px + 44px))); }
  body.has-gutter-ads .gutter-banner { display: block; }

  /* The creatives only appear below the hero, so the hero itself keeps the
     full-width column it has without them. */
  body.has-gutter-ads .hero { --max: 1280px; }
}

/* MREC beside the About Us copy: stacked underneath on narrow screens,
   pulled alongside the text from 1024px up. */
.about-mrec {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  line-height: 0;
}
.about-mrec img {
  width: 300px; height: 250px;
  border-radius: 10px;
  box-shadow: 0 8px 28px -16px rgba(0,0,0,.5);
}

@media (min-width: 1024px) {
  .about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
  }
  .about-layout .section-heading { margin-bottom: 0; }
  .about-mrec { margin-top: 0; }
}
