/* =============================================================
   MasqueradeProtocol.com — Cyberpunk Ballroom
   Palette:
     Deep Void        #0D0B0E
     Mask Gold        #C9982E
     Neon Slit        #F5D76E
     Protocol Glow    #E8D5A3
     Smoke Veil       #9B917E
     Bone White       #F0E9DD
     Interference     #D4772C
   Fonts:
     Orbitron (display)
     Exo 2 (body)
     Share Tech Mono (code/data)
   ============================================================= */

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

:root {
  --void: #0D0B0E;
  --gold: #C9982E;
  --neon: #F5D76E;
  --glow: #E8D5A3;
  --smoke: #9B917E;
  --bone: #F0E9DD;
  --interference: #D4772C;
}

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--void);
}

body {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 152, 46, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(212, 119, 44, 0.05) 0%, transparent 55%),
    #0D0B0E;
  color: var(--bone);
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== BOKEH CANVAS ===== */
#bokeh-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  filter: blur(8px);
}

/* ===== SCAN LINE OVERLAY ===== */
.scan-lines {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 3px,
      rgba(245, 215, 110, 0.03) 3px,
      rgba(245, 215, 110, 0.03) 4px
    );
  mix-blend-mode: screen;
}

/* Local scan-line burst that follows the cursor */
.scan-lines::after {
  content: '';
  position: absolute;
  top: var(--scan-y, -200px);
  left: var(--scan-x, -200px);
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 3px,
      rgba(212, 119, 44, 0.18) 3px,
      rgba(212, 119, 44, 0.18) 4px
    );
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, black 0%, transparent 70%);
          mask-image: radial-gradient(circle, black 0%, transparent 70%);
  opacity: 0.6;
  transition: opacity 200ms ease;
}

/* ===== SPECTRAL WIREFRAME GHOSTS ===== */
.wire-ghost {
  position: fixed;
  pointer-events: none;
  opacity: 0.2;
  z-index: 1;
}
.wire-ghost svg { width: 100%; height: 100%; }
.wire-ghost-1 {
  top: 12vh; right: 6vw;
  width: 220px; height: 220px;
  animation: wireSpin 60s linear infinite;
}
.wire-ghost-2 {
  bottom: 18vh; left: 4vw;
  width: 180px; height: 180px;
  animation: wireSpin 90s linear infinite reverse;
}
.wire-ghost-3 {
  top: 55vh; right: 14vw;
  width: 140px; height: 140px;
  animation: wireSpin 75s linear infinite;
}
@keyframes wireSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== CURSOR TRAIL ===== */
#cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}
.trail-shape {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  opacity: 0.8;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: trailFade 800ms ease-out forwards;
}
.trail-shape.tri {
  border: none;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--neon);
  opacity: 0.7;
}
@keyframes trailFade {
  0%   { opacity: 0.9; transform: translate(-50%, -50%) rotate(45deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% + 40px)) rotate(90deg) scale(0.3); }
}

/* ===== ORBITAL NAVIGATION ===== */
.orbital-nav {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}
.orbit-anchor {
  position: fixed;
  width: 16px;
  height: 16px;
  pointer-events: auto;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.orbit-diamond {
  width: 14px;
  height: 14px;
  background: transparent;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 0 rgba(245, 215, 110, 0);
  transition: all 300ms ease;
}
.orbit-anchor:hover {
  transform: rotate(45deg) scale(1.5);
}
.orbit-anchor:hover .orbit-diamond {
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 0 12px rgba(245, 215, 110, 0), 0 0 20px rgba(245, 215, 110, 0.9);
  animation: orbPulse 600ms ease-out;
}
@keyframes orbPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 215, 110, 0.8), 0 0 20px rgba(245, 215, 110, 0.9); }
  100% { box-shadow: 0 0 0 24px rgba(245, 215, 110, 0), 0 0 20px rgba(245, 215, 110, 0.3); }
}
.orbit-tooltip {
  position: absolute;
  top: 150%;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--neon);
  white-space: nowrap;
  padding: 4px 8px;
  background: rgba(13, 11, 14, 0.8);
  border: 1px solid rgba(201, 152, 46, 0.4);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 280ms ease;
  pointer-events: none;
}
.orbit-anchor:hover .orbit-tooltip { clip-path: inset(0 0 0 0); }

.orbit-north { top: 32px; left: 50%; transform: translateX(-50%) rotate(45deg); }
.orbit-north:hover { transform: translateX(-50%) rotate(45deg) scale(1.5); }
.orbit-east { right: 32px; top: 50%; transform: translateY(-50%) rotate(45deg); }
.orbit-east:hover { transform: translateY(-50%) rotate(45deg) scale(1.5); }
.orbit-south { bottom: 32px; left: 50%; transform: translateX(-50%) rotate(45deg); }
.orbit-south:hover { transform: translateX(-50%) rotate(45deg) scale(1.5); }
.orbit-west { left: 32px; top: 50%; transform: translateY(-50%) rotate(45deg); }
.orbit-west:hover { transform: translateY(-50%) rotate(45deg) scale(1.5); }

/* ===== SCENE STRUCTURE ===== */
.scene {
  position: relative;
  min-height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  z-index: 2;
  overflow: hidden;
}
.scene-content {
  position: relative;
  width: 100%;
  max-width: 1400px;
  padding: 80px 60px;
  margin: 0 auto;
  z-index: 3;
}

.scene-label {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 4;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--smoke);
  display: flex;
  gap: 10px;
  opacity: 0.7;
}
.scene-label-glyph { color: var(--gold); }

/* ===== SECTION HEADINGS ===== */
.section-heading {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 6vw, 96px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 40px;
  text-shadow: 0 0 40px rgba(201, 152, 46, 0.2);
}

/* =============================================================
   SCENE 1 : THE INVITATION
   ============================================================= */
.scene-invitation {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: radial-gradient(ellipse at 50% 50%, rgba(201, 152, 46, 0.08) 0%, transparent 70%);
}
.invitation-content {
  position: relative;
  padding: 12vh 6vw 6vh;
  width: 100%;
  /* asymmetric placement: golden ratio */
  display: grid;
  grid-template-columns: 38% 62%;
  grid-template-rows: auto auto auto;
  gap: 24px 0;
  align-items: center;
}
.invitation-mask {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
  justify-self: end;
  align-self: center;
  transform: rotate(-2deg);
  opacity: 0;
  animation: maskFadeIn 2s ease-out 0.4s forwards;
}
.mask-svg {
  width: clamp(260px, 32vw, 500px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(201, 152, 46, 0.35));
}
.mask-outline { animation: maskPulse 5s ease-in-out infinite; }

@keyframes maskFadeIn {
  from { opacity: 0; transform: rotate(-8deg) translateY(-20px); }
  to   { opacity: 1; transform: rotate(-2deg) translateY(0); }
}
@keyframes maskPulse {
  0%, 100% { stroke-opacity: 1; }
  50%      { stroke-opacity: 0.55; }
}

.invitation-title {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding-left: 40px;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.title-line { display: block; }
.title-line-1 {
  font-size: clamp(44px, 8vw, 120px);
  color: var(--bone);
  line-height: 0.95;
  text-shadow: 0 0 40px rgba(201, 152, 46, 0.4), 0 0 80px rgba(201, 152, 46, 0.15);
}
.title-line-2 {
  font-size: clamp(28px, 5.2vw, 82px);
  color: var(--gold);
  letter-spacing: 0.28em;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(201, 152, 46, 0.4);
}

.invitation-tagline {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 20px);
  color: var(--smoke);
  letter-spacing: 0.05em;
  padding-left: 40px;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 2s forwards;
}
.invitation-meta {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  padding-left: 40px;
  display: flex;
  gap: 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold);
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 2.4s forwards;
}
.meta-sep { color: rgba(201, 152, 46, 0.35); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 2.8s forwards;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.8); }
  50%      { opacity: 1;    transform: scaleY(1.2); }
}
.scroll-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold);
  opacity: 0.7;
}

/* =============================================================
   SCENE 2 : THE UNMASKING
   ============================================================= */
.scene-unmasking {
  min-height: 150vh;
  background: var(--void);
  position: relative;
}
.unmasking-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mask-reveal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mask-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(201, 152, 46, 0.05), rgba(13, 11, 14, 0.95)),
    var(--void);
  border: 1px solid rgba(201, 152, 46, 0.25);
  will-change: transform, clip-path, opacity;
  transition: transform 80ms linear, opacity 200ms ease;
}
.mask-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(201, 152, 46, 0.06) 3px,
    rgba(201, 152, 46, 0.06) 4px
  );
  pointer-events: none;
}

/* Six radial panels arranged to assemble a mask-like cover.
   Each panel slides outward along its own vector as the user scrolls. */
.mask-panel-1 { clip-path: polygon(0 0, 50% 0, 35% 50%, 0 50%); }
.mask-panel-2 { clip-path: polygon(50% 0, 100% 0, 100% 50%, 65% 50%); }
.mask-panel-3 { clip-path: polygon(0 50%, 35% 50%, 25% 100%, 0 100%); }
.mask-panel-4 { clip-path: polygon(65% 50%, 100% 50%, 100% 100%, 75% 100%); }
.mask-panel-5 { clip-path: polygon(35% 50%, 65% 50%, 60% 80%, 40% 80%); }
.mask-panel-6 { clip-path: polygon(40% 80%, 60% 80%, 75% 100%, 25% 100%); }

.unmasking-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: 40px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.unmasking-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.gold-wire-border {
  position: relative;
  padding: 40px;
  margin: 30px 0 50px;
  border: 1px solid rgba(201, 152, 46, 0.25);
  background: rgba(13, 11, 14, 0.6);
}
.gold-wire-border::before,
.gold-wire-border::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
}
.gold-wire-border::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.gold-wire-border::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

.narrative-text {
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.8;
  color: var(--bone);
}
.narrative-text em {
  color: var(--neon);
  font-style: italic;
  text-shadow: 0 0 12px rgba(245, 215, 110, 0.45);
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.5vw, 56px);
  color: var(--neon);
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(245, 215, 110, 0.4);
}
.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--smoke);
  text-transform: uppercase;
}

/* =============================================================
   SCENE 3 : THE GALLERY OF FACES (diagonal cascade)
   ============================================================= */
.scene-gallery {
  min-height: 200vh;
  padding: 120px 0;
  background:
    linear-gradient(180deg, var(--void) 0%, rgba(13, 11, 14, 0.92) 100%);
}
.gallery-header {
  padding: 20px 6vw 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-heading {
  text-align: left;
}
.gallery-subtitle {
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-style: italic;
  color: var(--smoke);
  font-size: clamp(14px, 1.3vw, 20px);
  margin-top: -20px;
  max-width: 520px;
}

/* Diagonal cascade — not aligned to grid; asymmetric placement */
.gallery-diagonal {
  position: relative;
  width: 100%;
  min-height: 140vh;
  padding: 0 6vw;
  max-width: 1600px;
  margin: 0 auto;
}
.gallery-card {
  position: absolute;
  padding: 36px 30px;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.5s ease,
              box-shadow 0.5s ease,
              opacity 0.8s ease;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(232, 213, 163, 0.04), rgba(13, 11, 14, 0.85));
  border: 1px solid rgba(201, 152, 46, 0.2);
  /* irregular hexagonal mask-shaped clip */
  clip-path: polygon(
    0 16px, 16px 0,
    calc(100% - 32px) 0, 100% 32px,
    100% calc(100% - 16px), calc(100% - 16px) 100%,
    32px 100%, 0 calc(100% - 32px)
  );
  opacity: 0;
  transform: translateY(40px);
}
.gallery-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(201, 152, 46, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.gallery-card:hover::before { opacity: 1; }
.gallery-card:hover {
  border-color: rgba(201, 152, 46, 0.55);
  box-shadow:
    0 10px 40px rgba(201, 152, 46, 0.15),
    0 4px 24px rgba(212, 119, 44, 0.12);
}

/* Diagonal placement — upper-left to lower-right, 15° cascade */
.card-a {
  top: 0;
  left: 0;
  width: 38vw;
  max-width: 520px;
  transform: translate(0, 40px) rotate(-3deg);
}
.card-a.visible { transform: translate(0, 0) rotate(-3deg); }

.card-b {
  top: 30vh;
  left: 42vw;
  width: 26vw;
  max-width: 380px;
  transform: translate(0, 40px) rotate(2deg);
}
.card-b.visible { transform: translate(0, 0) rotate(2deg); }

.card-c {
  top: 62vh;
  left: 8vw;
  width: 34vw;
  max-width: 460px;
  transform: translate(0, 40px) rotate(-2deg);
}
.card-c.visible { transform: translate(0, 0) rotate(-2deg); }

.card-d {
  top: 92vh;
  left: 48vw;
  width: 30vw;
  max-width: 420px;
  transform: translate(0, 40px) rotate(3deg);
}
.card-d.visible { transform: translate(0, 0) rotate(3deg); }

.gallery-card:hover { transform: translateY(-8px) rotate(0deg) !important; }

.card-mask-shape {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  transition: transform 0.6s ease;
}
.card-mask-shape svg { width: 100%; height: 100%; }
.gallery-card:hover .card-mask-shape { transform: scale(1.08) rotate(6deg); }

.card-content {
  text-align: center;
  transition: opacity 0.4s ease;
}
.gallery-card:hover .card-content { opacity: 0.25; }

.card-index {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 8px;
}
.card-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--glow);
  margin-bottom: 14px;
}
.card-description {
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--smoke);
  margin-bottom: 16px;
}
.card-clearance {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--interference);
}

.card-hover-reveal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
  text-align: center;
  pointer-events: none;
}
.gallery-card:hover .card-hover-reveal { opacity: 1; }
.reveal-glyph {
  display: block;
  font-size: 56px;
  color: var(--neon);
  margin-bottom: 12px;
  text-shadow: 0 0 24px rgba(245, 215, 110, 0.6);
}
.reveal-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--gold);
}

/* =============================================================
   SCENE 4 : THE PROTOCOL
   ============================================================= */
.scene-protocol {
  min-height: 100vh;
  padding: 120px 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(212, 119, 44, 0.05) 0%, var(--void) 60%);
  position: relative;
}
.protocol-wireframe {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}
.protocol-wireframe svg {
  width: 85%;
  max-width: 1000px;
  height: auto;
  animation: wireSlowPulse 6s ease-in-out infinite;
}
@keyframes wireSlowPulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(201, 152, 46, 0.3)); }
  50%      { opacity: 0.75; filter: drop-shadow(0 0 18px rgba(245, 215, 110, 0.5)); }
}

.protocol-overlay {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw;
}
.protocol-heading {
  text-align: center;
  margin-bottom: 16px;
}
.protocol-preamble,
.protocol-signoff {
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 60px;
}
.protocol-signoff { margin-top: 40px; margin-bottom: 0; }

.protocol-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px 40px;
}
.protocol-step {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 30px 24px;
  border: 1px solid rgba(201, 152, 46, 0.15);
  background: rgba(13, 11, 14, 0.55);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.protocol-step.visible {
  opacity: 1;
  transform: translateY(0);
}
.protocol-step::before,
.protocol-step::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--gold);
  border-style: solid;
}
.protocol-step::before {
  top: -1px; left: -1px;
  border-width: 1.5px 0 0 1.5px;
}
.protocol-step::after {
  bottom: -1px; right: -1px;
  border-width: 0 1.5px 1.5px 0;
}
.step-number {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--interference);
  padding-top: 4px;
  flex-shrink: 0;
}
.step-body { flex: 1; }
.step-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--glow);
  margin-bottom: 12px;
}
.step-text {
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--smoke);
}

/* =============================================================
   SCENE 5 : THE EXIT (closing aperture)
   ============================================================= */
.scene-exit {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 50%, rgba(201, 152, 46, 0.05) 0%, var(--void) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aperture {
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* inset clip-path driven by scroll via CSS var --aperture */
  clip-path: inset(0 var(--aperture, 0%) 0 var(--aperture, 0%));
  transition: clip-path 120ms linear;
}
.aperture-inner {
  width: 100%;
  max-width: 900px;
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.exit-mask-frame {
  opacity: 0.5;
  animation: maskPulse 6s ease-in-out infinite;
}
.exit-mask-svg {
  width: clamp(180px, 22vw, 320px);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(201, 152, 46, 0.35));
}
.exit-heading {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 44px);
  letter-spacing: 0.1em;
  color: var(--glow);
  text-shadow: 0 0 30px rgba(201, 152, 46, 0.3);
}
.exit-text {
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(14px, 1.5vw, 20px);
  color: var(--smoke);
  max-width: 560px;
}
.exit-slit-text {
  border-top: 1px solid rgba(201, 152, 46, 0.3);
  border-bottom: 1px solid rgba(201, 152, 46, 0.3);
  padding: 20px 40px;
  margin: 20px 0;
}
.slit-line {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(245, 215, 110, 0.5);
}
.exit-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}
.footer-code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(155, 145, 126, 0.7);
}
.footer-divider {
  color: rgba(201, 152, 46, 0.3);
  font-size: 11px;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .invitation-content {
    grid-template-columns: 1fr;
    padding: 14vh 6vw 6vh;
  }
  .invitation-mask {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: center;
    transform: rotate(0deg);
  }
  .invitation-title,
  .invitation-tagline,
  .invitation-meta {
    grid-column: 1 / 2;
    padding-left: 0;
    text-align: center;
    justify-content: center;
    transform: none;
  }
  .invitation-meta { justify-content: center; }
  .title-line-1 { text-align: center; }
  .title-line-2 { text-align: center; }

  .stats-row { gap: 30px; }
  .gallery-diagonal { min-height: auto; padding: 0 6vw; }
  .gallery-card {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin-bottom: 24px;
  }
  .gallery-card.visible { transform: none !important; }
  .scene-content { padding: 60px 24px; }
  .exit-footer { flex-direction: column; gap: 10px; }
  .footer-divider { display: none; }
  .protocol-list { grid-template-columns: 1fr; }
  .orbit-west, .orbit-east { display: none; }
}
