:root {
  --obsidian: #07060B;
  --plum: #261036;
  --fuchsia: #FF2BD6;
  --cyan: #20F7FF;
  --violet: #8B5CFF;
  --ivory: #F4E7D0;
  --gold: #B79A4A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 43, 214, .13), transparent 24%),
    radial-gradient(circle at 80% 32%, rgba(32, 247, 255, .10), transparent 22%),
    linear-gradient(120deg, transparent 0 48%, rgba(183, 154, 74, .10) 49%, transparent 50% 100%);
  z-index: -4;
}

.honeycomb-field {
  position: fixed;
  inset: -12vh -12vw;
  z-index: -5;
  opacity: .58;
  transform: rotate(-8deg) translate3d(var(--drift-x, 0px), var(--drift-y, 0px), 0);
  transition: transform .4s ease-out;
}

.honey-row {
  display: flex;
  height: 18vh;
  margin-top: -3.2vh;
}

.honey-row:nth-child(even) { transform: translateX(9.4vw); }

.honey-row span {
  width: 18vw;
  height: 18vh;
  margin-right: .45vw;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: var(--plum);
  box-shadow: inset 0 0 0 1px rgba(183, 154, 74, .28);
}

.honey-row:nth-child(3n) span:nth-child(odd),
.honey-row:nth-child(2n) span:nth-child(3n) { background: #0d0914; }
.honey-row span:nth-child(4n) { box-shadow: 0 0 18px rgba(255,43,214,.25), inset 0 0 14px rgba(32,247,255,.16); }

.swirl-ribbons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 400vh;
  pointer-events: none;
  z-index: -1;
}

.ribbon { fill: none; stroke-linecap: round; stroke-dasharray: 4200; stroke-dashoffset: var(--dash, 2400); }
.ribbon.glow { stroke-width: 28; filter: blur(18px); opacity: .38; }
.ribbon.line { stroke-width: 7; opacity: .86; }
.ribbon.fuchsia { stroke: var(--fuchsia); }
.ribbon.cyan { stroke: var(--cyan); }

.scene {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  isolation: isolate;
}

.corner-label, .coord {
  font-family: "Bungee Inline", cursive;
  color: var(--gold);
  letter-spacing: .12em;
  font-size: clamp(.72rem, 1.1vw, 1rem);
}

.corner-label { position: absolute; left: 2rem; top: 2rem; }

.hero-medallion {
  width: min(82vw, 980px);
  aspect-ratio: 1.55;
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: linear-gradient(135deg, #07060B 0 44%, #12091b 45% 56%, #261036 57% 100%);
  box-shadow: 0 0 0 2px var(--gold), 0 0 42px rgba(255,43,214,.42), inset 0 0 34px rgba(32,247,255,.12);
  padding: 4rem 7rem;
  overflow: hidden;
}

.coin-ring {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(183,154,74,.7);
  clip-path: inherit;
}

.inscription {
  align-self: end;
  margin: 0 0 -1.5rem;
  font-family: "Bungee Inline", cursive;
  color: var(--gold);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero-title {
  position: relative;
  margin: 0;
  font-family: "Monoton", cursive;
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 11rem);
  line-height: .9;
  color: var(--ivory);
  text-shadow: 0 0 16px rgba(244,231,208,.4), 0 0 35px rgba(255,43,214,.5);
}

.hero-title::before, .hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-title::before { color: var(--fuchsia); transform: translate(-8px, -5px); }
.hero-title::after { color: var(--cyan); transform: translate(8px, 5px); }

.slide-copy, .atrium-copy, .closing-copy {
  position: relative;
  overflow: hidden;
}

.slide-copy p, .atrium-copy p, .closing-copy p {
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1.45;
  max-width: 760px;
}

.slide-mask, .tile-shutter {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--plum), var(--violet), var(--obsidian));
  z-index: 3;
  transform: translateX(0);
  transition: transform 1.05s cubic-bezier(.78, 0, .15, 1);
}

.reveal-scene.is-visible .slide-mask { transform: translateX(104%); }

.marble-veins i {
  position: absolute;
  width: 26vw;
  height: 44vh;
  border: 2px solid transparent;
  border-left-color: var(--ivory);
  border-right-color: var(--fuchsia);
  border-radius: 48%;
  opacity: .28;
}
.marble-veins i:nth-child(1) { left: 8%; top: 18%; transform: rotate(28deg); }
.marble-veins i:nth-child(2) { right: 9%; top: 10%; transform: rotate(-24deg); border-right-color: var(--cyan); }
.marble-veins i:nth-child(3) { left: 28%; bottom: 4%; transform: rotate(75deg); }
.marble-veins i:nth-child(4) { right: 30%; bottom: 12%; transform: rotate(-62deg); border-left-color: var(--gold); }

.wall-scene { align-content: center; gap: 3rem; }
.scene-heading { width: min(1100px, 94vw); }
.scene-heading h2, .atrium-copy h2, .closing-copy h2 {
  margin: .2rem 0 1rem;
  font-family: "Monoton", cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: .98;
  color: var(--ivory);
  text-shadow: 0 0 20px rgba(139,92,255,.45), 0 0 30px rgba(255,43,214,.32);
}

.script-wall {
  width: min(1160px, 96vw);
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 1rem;
}

.hex-tile {
  min-height: 245px;
  position: relative;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: var(--plum);
  padding: 3.8rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 18px rgba(255,43,214,.20);
}

.hex-tile:nth-child(even) { transform: translateY(42px); background: #0d0914; }
.hex-tile b, .atrium-hex {
  font-family: "Bungee Inline", cursive;
  color: var(--cyan);
  font-size: clamp(1.25rem, 2.1vw, 2.3rem);
  text-shadow: 0 0 14px rgba(32,247,255,.55);
}
.hex-tile p { margin: .8rem 0 0; font-size: 1rem; }
.hex-tile.opens-left .tile-shutter { transform-origin: left center; }
.hex-tile.opens-right .tile-shutter { transform-origin: right center; }
.wall-scene.is-visible .opens-left .tile-shutter { transform: translateX(-105%); }
.wall-scene.is-visible .opens-right .tile-shutter, .wall-scene.is-visible .ornamental .tile-shutter { transform: translateX(105%); }

.atrium-scene { grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); }
.atrium {
  width: min(48vw, 650px);
  aspect-ratio: 1;
  position: relative;
}
.oculus {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: var(--obsidian);
  box-shadow: 0 0 0 2px var(--gold), 0 0 45px rgba(139,92,255,.45), inset 0 0 28px rgba(32,247,255,.18);
}
.orbit { position: absolute; inset: 13%; border: 1px solid rgba(183,154,74,.38); border-radius: 50%; animation: rotate 24s linear infinite; }
.orbit-two { inset: 6%; animation-duration: 32s; animation-direction: reverse; border-color: rgba(255,43,214,.35); }
.orbit-three { inset: 21%; animation-duration: 18s; border-color: rgba(32,247,255,.34); }
.orbit span {
  position: absolute;
  left: 50%; top: -1rem;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--ivory);
  font-family: "Bungee Inline", cursive;
  font-size: .82rem;
  letter-spacing: .08em;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.atrium-hex {
  position: absolute;
  width: 25%;
  aspect-ratio: 1.08;
  display: grid;
  place-items: center;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: var(--plum);
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 22px rgba(32,247,255,.22);
}
.h1 { left: 37%; top: 0; } .h2 { right: 6%; top: 22%; } .h3 { right: 6%; bottom: 22%; }
.h4 { left: 37%; bottom: 0; } .h5 { left: 6%; bottom: 22%; } .h6 { left: 6%; top: 22%; }

.atrium-copy, .closing-copy {
  max-width: 660px;
  padding: 2rem;
  border-left: 1px solid var(--gold);
}

.console-slab {
  width: min(1120px, 92vw);
  min-height: 68vh;
  position: relative;
  background: linear-gradient(145deg, #07060B, #100718 48%, #261036);
  border: 1px solid var(--gold);
  box-shadow: 0 0 50px rgba(255,43,214,.28), inset 0 0 38px rgba(32,247,255,.12);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.console-slab::before, .console-slab::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(183,154,74,.38);
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
}
.console-slab::after { inset: 18%; border-color: rgba(139,92,255,.42); }

.ribbon-strip {
  position: absolute;
  left: -12%;
  width: 130%;
  padding: .85rem 2rem;
  font-family: "Bungee Inline", cursive;
  color: var(--obsidian);
  white-space: nowrap;
  letter-spacing: .08em;
  box-shadow: 0 0 24px currentColor;
}
.r1 { top: 18%; transform: rotate(-13deg); background: var(--fuchsia); color: var(--fuchsia); text-shadow: 0 0 0 var(--obsidian); }
.r2 { top: 47%; transform: rotate(9deg); background: var(--cyan); color: var(--cyan); text-shadow: 0 0 0 var(--obsidian); }
.r3 { bottom: 13%; transform: rotate(-6deg); background: var(--violet); color: var(--violet); text-shadow: 0 0 0 var(--ivory); }
.closing-copy { background: rgba(7,6,11,.82); z-index: 2; }

.reveal-scene { opacity: .78; }
.reveal-scene.is-visible { opacity: 1; }

@media (max-width: 900px) {
  .hero-medallion { width: 94vw; min-height: 520px; padding: 3rem 2rem; }
  .script-wall { grid-template-columns: repeat(2, 1fr); }
  .atrium-scene { grid-template-columns: 1fr; }
  .atrium { width: min(92vw, 560px); }
}

@media (max-width: 560px) {
  .script-wall { grid-template-columns: 1fr; }
  .hex-tile:nth-child(even) { transform: none; }
  .corner-label { left: 1rem; top: 1rem; }
  .scene { padding: 4rem 1rem; }
}
