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

:root {
  --bg: #000;
  --accent-amber: rgba(255, 210, 130, 0.90);
  --accent-amber-dim: rgba(255, 200, 100, 0.55);
  --accent-amber-faint: rgba(255, 210, 130, 0.14);
  --accent-amber-glow: rgba(255, 195, 80, 0.22);
  --accent-green: #8ec8a0;
  --text-dim: rgba(220, 210, 190, 0.55);
  --lora: 'Lora', serif;
  --geist: 'Geist', 'Lora', sans-serif;
}

html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
/* iOS Safari's mandatory snap fights smooth scrollIntoView() — taps on the
   scroll-down button could trigger a snap back to the previous section
   mid-scroll. Disabling snap on phones gives natural scroll behavior. */
@media (max-width: 768px) {
  html { scroll-snap-type: none; }
}

body {
  background-color: var(--bg);
  font-family: var(--lora);
  overflow-x: hidden;
  overflow-y: scroll;
  width: 100%;
  max-width: 100vw;
}

.wordmark {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 200;
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.wordmark:hover { opacity: 0.8; }
.wordmark img {
  display: block;
  height: 130px;
  width: auto;
}
@media (max-width: 640px) {
  .wordmark { top: 10px; left: 10px; }
  .wordmark img { height: 90px; }
}

#hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

canvas { display: block; width: 100%; height: 100%; }

/* ── Top light beam + star field ── */
#hero-light-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
#hero-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#hero-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* SuperGrok-style warm glow with a hint of #1B1B1D cool-dark undertone */
  background:
    radial-gradient(
      ellipse 72% 58% at 50% -4%,
      rgba(95, 75, 52, 0.78) 0%,
      rgba(68, 52, 36, 0.52) 25%,
      rgba(42, 32, 20, 0.26) 52%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 100% 100% at 50% 0%,
      rgba(35, 35, 50, 0.38) 0%,
      rgba(27, 27, 29, 0.18) 40%,
      transparent 70%
    );
}

.side-text {
  position: absolute;
  font-family: var(--geist);
  font-weight: 200;
  font-style: normal;
  letter-spacing: 0.18em;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
  z-index: 10;
}

/* "Redefining Standards" as one unified row centered in hero */
#redefining-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  pointer-events: none;
  padding: 0 clamp(16px, 4vw, 60px);
  gap: clamp(8px, 3vw, 40px);
  overflow: hidden;
}

#left-text {
  position: relative;
  top: auto; right: auto; left: auto;
  font-size: clamp(1.2rem, 4.5vw, 3.6rem);
  background: linear-gradient(90deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

#right-text {
  position: relative;
  top: auto; right: auto; left: auto;
  font-size: clamp(1.2rem, 4.5vw, 3.6rem);
  background: linear-gradient(90deg, #888888 0%, #222222 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

/* Phones: stack the two words on separate baselines with a diagonal
   stagger — like a magazine spread. Side-by-side at narrow widths
   either overflows or shrinks to caption size. */
@media (max-width: 768px) {
  #redefining-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.6rem, 3vw, 1.2rem);
    padding: 0 8vw;
    overflow: visible;
  }
  #left-text, #right-text {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
    line-height: 1;
    flex-shrink: 1;
  }
  #left-text  { align-self: flex-start; }
  #right-text { align-self: flex-end; }
}

/* ═══════════════════════════ SCROLL BUTTON ═══════════════════════════ */
#scroll-btn {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(160, 185, 210, 0.28);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  color: rgba(160,185,210,0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease, transform 0.22s ease;
  animation: scrollBtnFloat 2.4s ease-in-out infinite;
}
#scroll-btn:hover {
  border-color: rgba(255,200,100,0.55);
  color: rgba(255,200,100,0.90);
  background: rgba(255,200,100,0.07);
  transform: scale(1.08);
  animation: none;
}
@keyframes scrollBtnFloat {
  0%,100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ═══════════════════════════ FLOATING INFO BOXES (only 2, desktop only) ═══════════════════════════ */
.float-panel {
  position: absolute;
  z-index: 60;
  pointer-events: auto;
  width: 260px;
  will-change: transform;
  isolation: isolate;
}

@keyframes panelFloat0 { 0%,100%{transform:translateY(0px) translateX(0px);} 33%{transform:translateY(-9px) translateX(3px);} 66%{transform:translateY(-4px) translateX(-4px);} }
@keyframes panelFloat1 { 0%,100%{transform:translateY(0px) translateX(0px);} 40%{transform:translateY(-11px) translateX(-3px);} 70%{transform:translateY(-5px) translateX(5px);} }

#panel-0 { animation: panelFloat0 7.2s ease-in-out infinite; }
#panel-1 { animation: panelFloat1 8.8s ease-in-out infinite; animation-delay: -2.1s; width: 360px; }
#panel-1 .float-panel-inner { padding: 16px 18px 14px; }
#panel-1 .fp-desc { font-size: 11.5px; line-height: 1.5; margin-bottom: 9px; }

.float-panel-inner {
  background: rgba(4, 3, 2, 0.96);
  border: 1px solid rgba(255, 210, 130, 0.16);
  border-radius: 4px;
  padding: 20px 20px 18px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.6),
    0 12px 38px rgba(0,0,0,0.75),
    0 0 0 1px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.float-panel-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.float-panel-inner::after {
  content: '';
  position: absolute;
  bottom: 7px; right: 7px;
  width: 10px; height: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.fp-corner {
  position: absolute;
  top: 7px; left: 7px;
  width: 10px; height: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.fp-tag {
  font-family: var(--lora);
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 7px;
  font-weight: 400;
}
.fp-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 9px;
}
.fp-title {
  font-family: var(--lora);
  font-size: 18px;
  font-weight: 500;
  color: rgba(240, 228, 205, 0.90);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  line-height: 1.3;
}
.fp-desc {
  font-family: var(--lora);
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  color: rgba(210,195,170,0.55);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: 11px;
}
.fp-badge {
  display: inline-block;
  font-family: var(--lora);
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 2px;
  padding: 2px 7px;
}

/* Hide panels on mobile */
@media (max-width: 768px) {
  .float-panel { display: none; }
}

/* ═══════════════════════════ STAR HINT ═══════════════════════════ */
#star-hint {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(-4px);
}
#star-hint.show { opacity: 1; transform: translateY(0); }
#star-hint.hide { opacity: 0; transform: translateY(-8px); }

.star-hint-inner {
  background: rgba(10, 7, 3, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 2px;
  padding: 10px 14px 9px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.7);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .star-hint-inner { white-space: normal; max-width: min(72vw, 280px); }
}
.star-hint-pulse {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,200,100,0.85);
  margin-right: 8px;
  animation: hintPulse 1.5s ease-in-out infinite;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
@keyframes hintPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}
.star-hint-text {
  font-family: var(--lora);
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.10em;
  color: rgba(255,210,130,0.75);
  text-transform: uppercase;
}

/* ═══════════════════════════ TOOLTIPS ═══════════════════════════ */
.tip {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translateY(-6px);
}
.tip.visible { opacity: 1; transform: translateY(0); }

#event-tooltip { min-width: 220px; max-width: 295px; }
.tooltip-inner {
  background: rgba(10, 7, 3, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 2px;
  padding: 14px 16px 13px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.tooltip-tag { font-family: var(--lora); font-size: 9px; font-style: italic; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,200,100,0.55); margin-bottom: 6px; font-weight: 400; }
.tooltip-line { width: 100%; height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 8px; }
.tooltip-title { font-family: var(--lora); font-size: 14px; font-weight: 600; color: #f0ddb0; letter-spacing: 0.02em; line-height: 1.35; margin-bottom: 7px; }
.tooltip-desc { font-family: var(--lora); font-size: 11px; font-style: italic; color: rgba(220,190,130,0.55); letter-spacing: 0.02em; line-height: 1.55; }

#faq-tooltip { min-width: 240px; max-width: 330px; }
.faq-inner {
  background: rgba(6, 10, 8, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 2px;
  padding: 14px 16px 13px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.65);
}
.faq-label { font-family: var(--lora); font-size: 9px; font-style: italic; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(140,210,165,0.50); margin-bottom: 6px; font-weight: 400; }
.faq-line { width: 100%; height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 9px; }
.faq-q { font-family: var(--lora); font-size: 11px; font-weight: 600; color: rgba(255,205,100,0.80); letter-spacing: 0.02em; margin-bottom: 4px; }
.faq-a { font-family: var(--lora); font-size: 12px; font-style: italic; font-weight: 400; color: #c8dece; letter-spacing: 0.02em; line-height: 1.5; }

#drag-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--geist);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 210, 130, 0.78);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 100;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 16px;
  background: rgba(8, 6, 3, 0.72);
  border: 1px solid rgba(255, 210, 130, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(255, 210, 130, 0.12);
  animation: dragHintFloat 2.6s ease-in-out infinite;
}
#drag-hint::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 210, 130, 0.95);
  box-shadow: 0 0 10px rgba(255, 210, 130, 0.85);
  animation: dragHintPulse 2.2s ease-in-out infinite;
}
#drag-hint .dh-arrow {
  display: inline-block;
  margin-left: 4px;
  letter-spacing: -0.05em;
  color: rgba(255, 210, 130, 0.85);
}
@keyframes dragHintPulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(0.6); opacity: 0.45;}
}
@keyframes dragHintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}
#drag-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
}

/* Phone-specific tweaks: keep the drag pill clear of the scroll button,
   and make the scroll button stand out in amber so users notice it. */
@media (max-width: 768px) {
  #drag-hint {
    bottom: 96px;
    font-size: 9px;
    letter-spacing: 0.18em;
    padding: 8px 14px 8px 12px;
  }
  @keyframes dragHintFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-3px); }
  }
  #scroll-btn {
    width: 54px;
    height: 54px;
    border: 1.5px solid rgba(255, 200, 100, 0.65);
    background: rgba(255, 200, 100, 0.10);
    color: rgba(255, 200, 100, 0.95);
    box-shadow:
      0 0 24px rgba(255, 200, 100, 0.28),
      0 6px 22px rgba(0, 0, 0, 0.5);
  }
}

/* ═══════════════════════════ KEY INSIGHTS / GENRE STRIP ═══════════════════════════ */
#key-insights {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  background: #000;
  z-index: 10;
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

/* GENRE CARDS */
.genre-card {
  flex: 1;
  position: relative;
  padding: 60px 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: background 0.5s ease, flex 0.6s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  user-select: none;
}
.genre-card + .genre-card { border-left: 1px solid rgba(255,255,255,0.06); }

/* Neon circuit SVG background canvas */
.genre-circuit-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}

/* Parallax layer that moves on hover */
.genre-parallax-layer {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.3,1);
}

/* All cards: pure amber palette */
.genre-card[data-genre="ai"]       { --gc: 255,210,130; --gc-dim: 220,165,60; }
.genre-card[data-genre="robotics"] { --gc: 255,210,130; --gc-dim: 220,165,60; }
.genre-card[data-genre="creative"] { --gc: 255,210,130; --gc-dim: 220,165,60; }

/* Ambient glow blob */
.genre-glow {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.6);
  background: radial-gradient(circle, rgba(var(--gc),0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.2,0.8,0.3,1), opacity 0.5s ease;
  opacity: 0;
}

/* No hover glow; only active-genre state */
.genre-card:hover .genre-glow { transform: translate(-50%,-50%) scale(0.6); opacity: 0; }
.genre-card:hover .genre-circuit-canvas { opacity: 0; }
.genre-card.active-genre .genre-glow { transform: translate(-50%,-50%) scale(2.2); opacity: 1; }
.genre-card.active-genre .genre-circuit-canvas { opacity: 0.9; }

/* Corner brackets */
.genre-card::before {
  content: '';
  position: absolute; top: 16px; left: 16px;
  width: 18px; height: 18px;
  border-top: 1px solid rgba(var(--gc),0.20);
  border-left: 1px solid rgba(var(--gc),0.20);
  transition: border-color 0.4s ease, width 0.4s ease, height 0.4s ease;
}
.genre-card::after {
  content: '';
  position: absolute; bottom: 16px; right: 16px;
  width: 18px; height: 18px;
  border-bottom: 1px solid rgba(var(--gc),0.20);
  border-right: 1px solid rgba(var(--gc),0.20);
  transition: border-color 0.4s ease;
}
.genre-card:hover::before,
.genre-card.active-genre::before { border-color: rgba(var(--gc),0.70); width: 18px; height: 18px; }
.genre-card:hover::after,
.genre-card.active-genre::after  { border-color: rgba(var(--gc),0.70); }

/* Domain artwork — sits above the title in the empty top half */
.genre-art {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(78%, 380px);
  max-height: 38%;
  transform: translateX(-50%);
  object-fit: contain;
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
  /* PNGs are alpha-stripped — black backgrounds were keyed out at
     build time, only the line-art / dot pattern remains opaque. */
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s ease,
              filter 0.6s ease;
  animation: genreArtFloat 7s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes genreArtFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}
.genre-card:hover .genre-art {
  opacity: 1;
  filter: drop-shadow(0 14px 38px rgba(255, 210, 130, 0.22)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}
.genre-card.active-genre .genre-art {
  opacity: 1;
  filter: drop-shadow(0 14px 38px rgba(255, 210, 130, 0.32)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}

/* Top accent line */
.genre-top-line {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gc),0.80), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.genre-card:hover .genre-top-line,
.genre-card.active-genre .genre-top-line { opacity: 1; }

/* Number badge */
.genre-number {
  position: absolute;
  top: 36px; right: 44px;
  font-family: var(--lora);
  font-size: 7rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: rgba(var(--gc),0.05);
  letter-spacing: -0.06em;
  pointer-events: none;
  transition: color 0.5s ease, transform 0.5s ease;
}
.genre-card:hover .genre-number { color: rgba(var(--gc),0.05); transform: none; }

/* Event count badge */
.genre-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--geist);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--gc),0.55);
  border: 1px solid rgba(var(--gc),0.18);
  border-radius: 2px;
  padding: 4px 12px;
  margin-bottom: 20px;
  width: fit-content;
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.genre-count-badge::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(var(--gc),0.55);
  animation: gcPulse 2s ease-in-out infinite;
}
@keyframes gcPulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.4;transform:scale(0.7);} }
.genre-card:hover .genre-count-badge { color: rgba(var(--gc),0.90); border-color: rgba(var(--gc),0.45); background: rgba(var(--gc),0.05); }

/* Genre label */
.genre-label {
  font-family: var(--lora);
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(var(--gc),0.42);
  margin-bottom: 10px;
  transition: color 0.4s ease;
}
.genre-card:hover .genre-label { color: rgba(var(--gc),0.75); }

/* Genre title */
.genre-title {
  font-family: var(--lora);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 400;
  color: rgba(240,228,205,0.88);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  transition: color 0.4s ease;
}
.genre-title em { font-style: italic; color: rgba(var(--gc),0.90); }
.genre-card:hover .genre-title { color: rgba(240,228,205,0.88); }

/* Genre desc */
.genre-desc {
  font-family: var(--lora);
  font-size: 13px;
  font-style: italic;
  color: rgba(210,195,170,0.38);
  line-height: 1.68;
  margin-bottom: 28px;
  transition: color 0.4s ease;
  max-width: 280px;
}
.genre-card:hover .genre-desc { color: rgba(210,195,170,0.60); }

/* CTA */
.genre-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--geist);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--gc),0.40);
  border: 1px solid rgba(var(--gc),0.16);
  border-radius: 40px;
  padding: 8px 20px 8px 18px;
  cursor: pointer;
  transition: all 0.28s ease;
  width: fit-content;
  background: transparent;
}
.genre-cta svg { width: 11px; height: 11px; opacity:0.5; transition: opacity 0.25s ease, transform 0.25s ease; }
.genre-card:hover .genre-cta {
  color: rgba(var(--gc),0.95);
  border-color: rgba(var(--gc),0.55);
  background: rgba(var(--gc),0.07);
}
.genre-card:hover .genre-cta svg { opacity: 1; transform: translate(3px,0); }

/* Event tags strip */
.genre-events-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  opacity: 0.55;
  transition: opacity 0.4s ease;
}
.genre-card:hover .genre-events-preview { opacity: 1; }
.genre-event-chip {
  font-family: var(--geist);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--gc),0.65);
  border: 1px solid rgba(var(--gc),0.14);
  border-radius: 2px;
  padding: 3px 8px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.genre-card:hover .genre-event-chip { border-color: rgba(var(--gc),0.30); background: rgba(var(--gc),0.04); }

/* ═══════════════════════════ GENRES HEADING ═══════════════════════════ */
#genres-heading-wrap {
  position: relative;
  width: 100vw;
  background: #000;
  z-index: 10;
  padding: 80px 60px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
#genres-heading-wrap::before {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: rgba(255,210,130,0.45);
  flex-shrink: 0;
}
#genres-heading {
  font-family: var(--lora);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,210,130,0.88);
  letter-spacing: 0.02em;
  line-height: 1;
}
#genres-hr {
  border: none;
  border-top: 1px solid rgba(255,210,130,0.12);
  margin: 0;
  width: 100%;
}
@media (max-width: 768px) {
  #genres-heading-wrap { padding: 56px 28px 28px; }
}

/* ═══════════════════════════ CARD AMBIENT CANVAS ═══════════════════════════ */
.genre-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ═══════════════════════════ CIRCUIT TRANSITION OVERLAY ═══════════════════════════ */
#circuit-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
}
#circuit-transition canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
#circuit-transition.running {
  pointer-events: all;
}

/* ═══════════════════════════ KEY INSIGHTS BG FIX ═══════════════════════════ */
#key-insights {
  background: #000;
}
.genre-card {
  background: rgba(4,3,8,0.95);
}
.genre-card:hover {
  background: rgba(4,3,8,0.95); /* no tint on hover */
}

@media (max-width: 768px) {
  #key-insights { flex-direction: column; min-height: auto; }
  .genre-card {
    padding: 32px 24px 30px;
    min-height: auto;
    justify-content: flex-start;
  }
  .genre-card + .genre-card { border-left: none; border-top: 1px solid rgba(255,255,255,0.07); }

  /* Pull the illustration into normal flow so it sits ABOVE the text
     instead of layering over it. */
  .genre-art {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: min(60%, 220px) !important;
    max-width: 220px;
    max-height: 130px !important;
    transform: none !important;
    margin: 8px auto 18px !important;
    opacity: 0.85;
    animation: none !important;
  }
  /* The big watermark numeral was anchored to the empty top-right corner
     of the desktop card. Once the card collapses to a vertical stack,
     it overlaps the title — pin it tighter and shrink it. */
  .genre-number {
    top: 16px;
    right: 20px;
    font-size: 4rem;
  }
  .genre-desc { max-width: 100%; }
}

/* ═══════════════════════════ GENRE EVENTS SECTION ═══════════════════════════ */
#genre-events-section {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 55% 45% at 10% -8%, rgba(255,210,130,0.10), transparent 70%),
    radial-gradient(ellipse 45% 35% at 95% 108%, rgba(255,210,130,0.05), transparent 65%),
    #000;
  z-index: 10;
  overflow: hidden;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 110px 60px 130px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
#genre-events-section.visible { display: flex; }

/* Subtle dot-grid overlay across the whole section */
#genre-events-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,210,130,0.06) 1px, transparent 1.5px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
/* Subtle film grain */
#genre-events-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
  z-index: 0;
}

/* Vertical edition mark on the left edge */
.genre-edition-mark {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--geist);
  font-size: 9px;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: rgba(255,210,130,0.32);
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.8em;
}
.genre-edition-mark::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: rgba(255,210,130,0.42);
}

/* Neon circuit BG overlay disabled */
#genre-circuit-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  display: none;
}

/* ── HEADER (masthead) ────────────────────────────────────────────── */
.genre-section-header {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}
.genre-section-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -34px;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,210,130,0.04) 0%,
    rgba(255,210,130,0.38) 28%,
    rgba(255,210,130,0.38) 72%,
    rgba(255,210,130,0.04) 100%);
}
.genre-section-eyebrow {
  font-family: var(--geist);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255,210,130,0.62);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.genre-section-eyebrow::before {
  content: '§';
  font-family: var(--lora);
  font-style: italic;
  font-size: 19px;
  color: rgba(255,210,130,0.85);
  letter-spacing: 0;
  margin-right: 2px;
}
.genre-section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: rgba(255,210,130,0.38);
}
.genre-section-title {
  font-family: var(--lora);
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
  font-weight: 400;
  color: #ede0c8;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.genre-section-title em {
  font-style: italic;
  color: #ffd282;
}

/* Specimen count meta on bottom-right of header strip */
.genre-section-meta {
  position: absolute;
  right: 0;
  bottom: -64px;
  font-family: var(--geist);
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255,210,130,0.55);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.genre-section-meta::before {
  content: '◆';
  font-size: 6px;
  color: #ffd282;
  letter-spacing: 0;
}

/* Back link — understated, text only */
.genre-section-back {
  font-family: var(--geist);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  border: none;
  background: transparent;
  padding: 8px 2px;
  cursor: pointer;
  transition: color 0.3s ease;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.genre-section-back-arrow {
  display: inline-block;
  width: 22px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.4s cubic-bezier(0.22,1,0.36,1), background 0.3s ease;
}
.genre-section-back-arrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: left center;
}
.genre-section-back:hover { color: #ffd282; }
.genre-section-back:hover .genre-section-back-arrow { width: 32px; }
.genre-section-back:focus-visible { outline: 1px solid #ffd282; outline-offset: 6px; border-radius: 1px; }

/* ── EDITORIAL MOSAIC ─────────────────────────────────────────────── */
.domino-grid {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  align-items: stretch;
}
.domino-grid > .domino-card:first-child {
  grid-column: span 2;
  min-height: 300px;
}
/* Orphan rule: when the total card count makes the LAST card land alone
   in the left column (Robotics had Rush + 3 secondaries = 4, so the 4th
   slot was empty), stretch that final card across both columns so the
   right side doesn't sit empty. Even nth-child + last-child catches
   exactly this case across all genres. Scoped to ≥901px because mobile
   uses a 1-col grid — spanning 2 there creates an implicit 2nd column
   and breaks layout entirely. */
@media (min-width: 901px) {
  .domino-grid > .domino-card:last-child:nth-child(even):not(:first-child) {
    grid-column: span 2;
  }
}

/* ── SPECIMEN PLATE CARD ──────────────────────────────────────────── */
.domino-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(155deg, rgba(255,210,130,0.022) 0%, rgba(8,6,3,0.78) 55%, rgba(8,6,3,0.92) 100%);
  border: 1px solid rgba(255,210,130,0.14);
  border-radius: 2px;
  padding: 46px 44px 64px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1), border-color 0.4s ease, background 0.4s ease, box-shadow 0.45s ease;
  cursor: pointer;
  min-height: 230px;
  isolation: isolate;
}
.domino-card.revealed { opacity: 1; transform: translateY(0); }
.domino-card:hover {
  border-color: rgba(255,210,130,0.34);
  background:
    linear-gradient(155deg, rgba(255,210,130,0.04) 0%, rgba(8,6,3,0.78) 55%, rgba(8,6,3,0.92) 100%);
  box-shadow: 0 24px 56px -22px rgba(255,210,130,0.32);
}
.domino-card:focus-visible {
  outline: 1px solid #ffd282;
  outline-offset: 4px;
}

/* Top hairline rule that draws in on hover */
.domino-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #ffd282, transparent);
  transition: width 0.7s cubic-bezier(0.22,1,0.36,1);
}
.domino-card:hover::before { width: 100%; }

/* Top-left registration crosshair */
.spec-mark {
  position: absolute;
  top: 16px; left: 16px;
  width: 12px; height: 12px;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.spec-mark::before, .spec-mark::after {
  content: ''; position: absolute;
  background: rgba(255,210,130,0.7);
}
.spec-mark::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-0.5px); }
.spec-mark::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-0.5px); }
.domino-card:hover .spec-mark { opacity: 0.72; }

/* Mini hex specimen stamp (top-right) */
.domino-hex {
  position: absolute;
  top: 26px; right: 28px;
  width: 46px;
  height: 52px;
  pointer-events: none;
  z-index: 2;
  transition: filter 0.45s ease;
  filter: drop-shadow(0 0 8px rgba(255,210,130,0.10));
}
.domino-hex svg { width: 100%; height: 100%; display: block; }
.domino-hex .hx-outline { stroke: rgba(255,210,130,0.55); fill: none; stroke-width: 1; }
.domino-hex .hx-inner   { stroke: rgba(255,210,130,0.22); fill: none; stroke-width: 1; }
.domino-hex .hx-num {
  font-family: var(--lora);
  font-style: italic;
  font-weight: 700;
  font-size: 19px;
  fill: #ffd282;
  letter-spacing: -0.02em;
}
.domino-card:hover .domino-hex {
  filter: drop-shadow(0 0 18px rgba(255,210,130,0.55));
}

/* ───────────────────────────────────────────────
   Specimen Mark (mini) — flagship / rep overprint
   used on constellation cards + domino cards.
   ─────────────────────────────────────────────── */
.specimen-mini {
  --sm-tone: 255, 210, 130;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--geist);
  font-size: 8.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(var(--sm-tone), 0.88);
  margin-bottom: 12px;
  line-height: 1;
}
.specimen-mini::before,
.specimen-mini::after {
  content: '';
  flex: 0 0 16px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(var(--sm-tone), 0)   0%,
    rgba(var(--sm-tone), 0.6) 50%,
    rgba(var(--sm-tone), 0)   100%
  );
}
.specimen-mini::before { flex-basis: 22px; }
.specimen-mini .sm-glyph {
  font-family: var(--lora);
  font-style: normal;
  font-size: 12px;
  color: rgba(var(--sm-tone), 1);
  text-shadow:
    0 0 8px rgba(var(--sm-tone), 0.6),
    0 0 1px rgba(var(--sm-tone), 0.95);
  transform: translateY(-0.5px);
  animation: smMiniPulse 4.4s ease-in-out infinite;
}
@keyframes smMiniPulse {
  0%, 100% { opacity: 1;   text-shadow: 0 0 8px rgba(var(--sm-tone), 0.6), 0 0 1px rgba(var(--sm-tone), 0.95); }
  50%      { opacity: 0.7; text-shadow: 0 0 12px rgba(var(--sm-tone), 0.9), 0 0 1px rgba(var(--sm-tone), 1); }
}
.specimen-mini .sm-tier {
  font-family: var(--lora);
  font-style: italic;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: none;
  color: rgba(var(--sm-tone), 0.96);
  padding: 0 0.5rem;
  border-left: 1px solid rgba(var(--sm-tone), 0.3);
  border-right: 1px solid rgba(var(--sm-tone), 0.3);
}
.specimen-mini .sm-cat {
  font-size: 8px;
  letter-spacing: 0.36em;
  color: rgba(var(--sm-tone), 0.55);
}
.specimen-mini.sm-rep { --sm-tone: 240, 236, 227; }
.specimen-mini.sm-rep .sm-glyph { font-size: 13px; }

/* Variant: corner overprint on constellation card.
   Sits as a thin amber ribbon top-right, parallel to the index. */
.event-card .specimen-mini {
  position: absolute;
  top: 22px;
  right: 24px;
  margin: 0;
  font-size: 7.5px;
  gap: 0.3rem;
  z-index: 3;
  pointer-events: none;
}
.event-card .specimen-mini::before { flex-basis: 14px; }
.event-card .specimen-mini::after  { flex-basis: 10px; }
.event-card .specimen-mini .sm-glyph { font-size: 10.5px; }
.event-card .specimen-mini .sm-tier  { font-size: 8.5px; padding: 0 0.42rem; }
.event-card .specimen-mini .sm-cat   { display: none; }

/* Variant: above the domino tag on genre cards */
.domino-card .specimen-mini {
  margin-bottom: 14px;
}

/* Domino card hover — brighten the seal */
.domino-card:hover .specimen-mini .sm-glyph {
  filter: drop-shadow(0 0 6px rgba(var(--sm-tone), 0.9));
}

@media (max-width: 720px) {
  .event-card .specimen-mini {
    top: 16px;
    right: 14px;
  }
  .event-card .specimen-mini .sm-tier { font-size: 7.5px; }
}

/* Tag (small eyebrow) */
.domino-tag {
  font-family: var(--geist);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,210,130,0.58);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.domino-tag::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: rgba(255,210,130,0.5);
}

/* Codename — italic Lora */
.domino-title {
  font-family: var(--lora);
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: #fff5d6;
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin-bottom: 22px;
  transition: color 0.35s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.domino-card:hover .domino-title { color: #ffd282; transform: translateX(2px); }

/* Featured card — oversized typography */
.domino-grid > .domino-card:first-child .domino-title {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.0;
  margin-bottom: 28px;
}
.domino-grid > .domino-card:first-child .domino-desc {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  max-width: 60ch;
}
.domino-grid > .domino-card:first-child {
  padding: 56px 52px 72px;
}
.domino-grid > .domino-card:first-child .domino-hex {
  width: 60px; height: 68px;
  top: 32px; right: 36px;
}
.domino-grid > .domino-card:first-child .domino-hex .hx-num {
  font-size: 24px;
}
.domino-grid > .domino-card:first-child .domino-tag::after {
  content: '· Primary Exhibit';
  margin-left: 4px;
  color: rgba(255,210,130,0.42);
  letter-spacing: 0.28em;
}

/* Divider hairline — extends on hover */
.domino-divider {
  width: 52px; height: 1px;
  background: linear-gradient(90deg, #ffd282, transparent);
  margin-bottom: 22px;
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}
.domino-card:hover .domino-divider { width: 96px; }

/* Description */
.domino-desc {
  font-family: var(--lora);
  font-size: clamp(0.86rem, 0.95vw, 0.95rem);
  font-style: italic;
  color: rgba(220,200,165,0.62);
  line-height: 1.72;
  max-width: 56ch;
}

/* Watermark numeral — sits as deep background, brightens on hover */
.domino-number {
  position: absolute;
  bottom: -14px;
  right: 14px;
  font-family: var(--lora);
  font-size: 8rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,210,130,0.045);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  transition: color 0.5s ease, transform 0.55s cubic-bezier(0.22,1,0.36,1);
  z-index: 0;
}
.domino-card:hover .domino-number {
  color: rgba(255,210,130,0.08);
  transform: translate(-3px, -3px);
}

/* Text-link CTA bottom-right */
.domino-cta {
  position: absolute;
  bottom: 26px;
  right: 30px;
  font-family: var(--geist);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,210,130,0.6);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s ease, letter-spacing 0.4s ease;
  z-index: 2;
}
.domino-cta::after {
  content: '';
  display: block;
  width: 18px; height: 1px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.22,1,0.36,1);
}
.domino-card:hover .domino-cta {
  color: #ffd282;
  letter-spacing: 0.38em;
}
.domino-card:hover .domino-cta::after { width: 34px; }

/* Responsive */
@media (max-width: 900px) {
  #genre-events-section { padding: 90px 28px 100px; }
  .genre-section-header { grid-template-columns: 1fr; gap: 18px; }
  .genre-section-back { justify-self: start; align-self: start; }
  .genre-section-meta { position: relative; right: auto; bottom: auto; margin-top: 18px; }
  .genre-section-header::after { bottom: -16px; }
  .genre-edition-mark { display: none; }
  .domino-grid { grid-template-columns: 1fr; gap: 16px; }
  .domino-grid > .domino-card:first-child { grid-column: span 1; padding: 40px 36px 58px; }
  .domino-grid > .domino-card:first-child .domino-title { font-size: clamp(2rem, 8vw, 2.6rem); }
}
@media (max-width: 560px) {
  #genre-events-section { padding: 72px 18px 88px; }
  .domino-card { padding: 36px 28px 56px; min-height: 200px; }
  .domino-hex { width: 38px; height: 44px; top: 20px; right: 22px; }
  .domino-hex .hx-num { font-size: 16px; }
  .domino-grid > .domino-card:first-child .domino-hex { width: 50px; height: 58px; }
  .domino-grid > .domino-card:first-child .domino-hex .hx-num { font-size: 20px; }
  .domino-number { font-size: 6rem; }
}

#genre-scroll-btn {
  position: relative;
  z-index: 5;
  margin-top: 56px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(160, 185, 210, 0.28);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  color: rgba(160,185,210,0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
  animation: scrollBtnFloat 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
#genre-scroll-btn:hover {
  border-color: rgba(255,200,100,0.55);
  color: rgba(255,200,100,0.90);
  background: rgba(255,200,100,0.07);
  animation: none;
}

/* ═══════════════════════════ EVENTS SECTION ═══════════════════════════ */
#events-section {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.parallax-bg {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
}
.parallax-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,200,100,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,200,100,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  will-change: transform;
}
.parallax-grid-far {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,200,100,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,200,100,0.012) 1px, transparent 1px);
  background-size: 200px 200px;
  will-change: transform;
}
.parallax-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 40%, #000 100%);
  pointer-events: none;
  z-index: 1;
}
.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}
.orb-1 { width: 700px; height: 700px; top: -15%; left: -10%; background: radial-gradient(circle, rgba(255,200,80,0.09) 0%, transparent 70%); }
.orb-2 { width: 560px; height: 560px; bottom: -8%; right: -8%; background: radial-gradient(circle, rgba(255,170,50,0.07) 0%, transparent 70%); }
.orb-3 { width: 380px; height: 380px; top: 38%; left: 52%; background: radial-gradient(circle, rgba(255,210,100,0.05) 0%, transparent 70%); }
.orb-4 { width: 320px; height: 320px; top: 15%; right: 12%; background: radial-gradient(circle, rgba(142,200,160,0.05) 0%, transparent 70%); filter: blur(80px); }

.particle { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }

.events-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.events-text {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.events-eyebrow {
  font-family: var(--lora);
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-amber-dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.45s ease;
}
.events-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(255,200,100,0.38);
}
.events-heading {
  font-family: var(--lora);
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 400;
  color: #ede0c8;
  line-height: 1.12;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.events-heading em { font-style: italic; color: var(--accent-amber); }
.events-body {
  font-family: var(--lora);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: rgba(220, 205, 175, 0.55);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 40px;
  transition: opacity 0.45s ease;
  min-height: 5.5em;
}
.events-stats { display: flex; gap: 36px; margin-bottom: 44px; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--lora); font-size: 2.1rem; font-weight: 400; color: #d4c090; letter-spacing: -0.02em; line-height: 1; }
.stat-label { font-family: var(--lora); font-size: 9px; font-style: italic; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,200,100,0.38); }

.left-card-tag {
  display: inline-block;
  font-family: var(--lora);
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,200,100,0.55);
  border: 1px solid rgba(255,200,100,0.22);
  border-radius: 2px;
  padding: 3px 10px;
  margin-bottom: 16px;
  transition: opacity 0.35s ease;
}

.text-swap-wrap { overflow: hidden; position: relative; }
.text-swap-inner { transition: opacity 0.38s ease, transform 0.38s ease; }
.text-swap-inner.exit { opacity: 0; transform: translateY(-10px); }
.text-swap-inner.enter { opacity: 0; transform: translateY(10px); }
.text-swap-inner.active { opacity: 1; transform: translateY(0); }

.events-carousel {
  position: relative;
  height: 480px;
  transform-style: preserve-3d;
  will-change: transform;
}
.card-stack { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.event-card {
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 3, 0.85);
  border: 1px solid var(--accent-amber-faint);
  border-radius: 3px;
  padding: 44px 44px 40px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.72s cubic-bezier(0.4,0,0.2,1), transform 0.72s cubic-bezier(0.4,0,0.2,1);
  transform: translateX(60px) scale(0.96);
  pointer-events: none;
  will-change: transform, opacity;
}
.event-card.active { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; z-index: 2; }
.event-card.prev { opacity: 0; transform: translateX(-60px) scale(0.96); z-index: 1; }
.card-tag { font-family: var(--lora); font-size: 9px; font-style: italic; letter-spacing: 0.20em; text-transform: uppercase; color: var(--accent-amber-dim); margin-bottom: 14px; }
.card-index { font-family: var(--lora); font-size: 5.5rem; font-weight: 400; font-style: italic; color: rgba(255,200,80,0.055); line-height: 1; position: absolute; top: 28px; right: 40px; letter-spacing: -0.04em; pointer-events: none; user-select: none; }
.card-title { font-family: var(--lora); font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 400; color: #ede0c8; line-height: 1.18; margin-bottom: 20px; letter-spacing: -0.01em; }
.card-divider { width: 40px; height: 1px; background: linear-gradient(90deg, rgba(255,200,100,0.42), transparent); margin-bottom: 20px; }
.card-desc { font-family: var(--lora); font-size: 14px; font-style: italic; font-weight: 400; color: rgba(220,195,150,0.60); line-height: 1.72; flex: 1; }
.card-view {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-family: var(--geist); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255, 210, 130, 0.85);
  border: 1px solid rgba(255, 210, 130, 0.32);
  border-radius: 999px;
  padding: 9px 18px;
  text-decoration: none;
  background: rgba(255, 210, 130, 0.04);
  transition: color 0.28s, border-color 0.28s, background 0.28s, gap 0.28s;
  width: fit-content;
  position: relative; z-index: 3;
}
.card-view:hover {
  color: #000; background: rgba(255, 210, 130, 0.95); border-color: rgba(255, 210, 130, 0.95); gap: 12px;
}
.card-view-arrow { transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.card-view:hover .card-view-arrow { transform: translateX(3px); }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,200,100,0.09); }
.card-progress { display: flex; gap: 6px; align-items: center; }
.progress-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,200,100,0.20); transition: background 0.3s ease, transform 0.3s ease; }
.progress-dot.active { background: rgba(255,200,100,0.75); transform: scale(1.3); }
.card-nav { display: flex; gap: 14px; }
.nav-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,200,100,0.28);
  background: transparent; color: rgba(255,200,100,0.65);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease, transform 0.22s ease;
  padding: 0; outline: none;
}
.nav-btn:hover { border-color: rgba(255,200,100,0.70); color: #f5e0a0; background: rgba(255,200,100,0.07); transform: scale(1.07); }
.nav-btn:active { transform: scale(0.96); }
.nav-btn.prev-btn svg { transform: rotate(180deg); }
.auto-progress { position: absolute; bottom: 0; left: 0; height: 1px; background: rgba(255,200,100,0.42); width: 0%; transition: none; border-radius: 0 1px 1px 0; }
.auto-progress.running { transition: width 5s linear; width: 100%; }
.card-accent-line { position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,200,100,0.32), transparent); border-radius: 3px 3px 0 0; }
.tilt-wrap { transform-style: preserve-3d; transition: transform 0.08s ease-out; will-change: transform; }

@media (max-width: 900px) {
  .events-inner { grid-template-columns: 1fr; padding: 80px 32px; gap: 60px; }
  .events-carousel { height: 420px; }
}
@media (max-width: 540px) {
  .event-card { padding: 32px 28px 28px; }
  .events-stats { gap: 24px; }
  .events-inner { padding: 60px 20px; }
}
