/* ============================================
   PROMETHEUS — Modern Myth / Satya Yuga Futurism
   Ancient + electric · Campbellian co-creation · living suns
   ============================================ */

:root {
  --black: #02040a;
  --bg: #05080f;
  --bg-alt: #081018;
  --surface: #0c1420;
  --surface-2: #121c2a;
  --border: rgba(120, 190, 255, 0.1);
  --border-hover: rgba(160, 220, 255, 0.22);

  --human: #ff6a28;
  --human-soft: #ff9a4a;
  --machine: #3db8ff;
  --machine-soft: #9adcff;
  --voltaic: #6ecbff;
  --lightning: #e8f6ff;
  --divine: #a78bfa;
  --divine-soft: #d4c4ff;

  --flame: #ff8a2a;
  --flame-light: #ffc56b;
  --ember: #e04a18;
  --sun: #ffe09a;
  --leaf: #6dbf6a;
  --sky: #3db8ff;

  --white: #eef6ff;
  --text: #a8b8c9;
  --text-muted: #6d7f93;
  --text-dim: #445366;

  --font: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-myth: "Cormorant Garamond", Georgia, serif;

  --page-sun: #ff8a2a;
  --page-sun-core: #ffe7a8;
  --page-sun-corona: rgba(255, 138, 42, 0.4);
  --page-god: "Prometheus";
  --myth-glow: rgba(61, 184, 255, 0.18);
}

/* Stellar types — one sun wavelength per sanctuary */
[data-page="home"] {
  --page-sun: #ff8a2a;
  --page-sun-core: #ffe7a8;
  --page-sun-corona: rgba(255, 138, 42, 0.42);
  --flame: #ff8a2a;
  --flame-light: #ffc56b;
}
[data-page="vision"] {
  --page-sun: #ffd24a;
  --page-sun-core: #fff4c2;
  --page-sun-corona: rgba(255, 210, 74, 0.42);
  --flame: #ffd24a;
  --flame-light: #ffe9a0;
}
[data-page="about"] {
  --page-sun: #9ec9ff;
  --page-sun-core: #eaf3ff;
  --page-sun-corona: rgba(158, 201, 255, 0.4);
  --flame: #9ec9ff;
  --flame-light: #c9e0ff;
}
[data-page="robotics"] {
  --page-sun: #ff3d1f;
  --page-sun-core: #ffb39a;
  --page-sun-corona: rgba(255, 61, 31, 0.45);
  --flame: #ff3d1f;
  --flame-light: #ff7a55;
}
[data-page="cities"] {
  --page-sun: #ff8f6b;
  --page-sun-core: #ffd2c2;
  --page-sun-corona: rgba(255, 143, 107, 0.42);
  --flame: #ff8f6b;
  --flame-light: #ffb899;
}
[data-page="philosophy"] {
  --page-sun: #e8f0ff;
  --page-sun-core: #ffffff;
  --page-sun-corona: rgba(200, 220, 255, 0.35);
  --flame: #c9daff;
  --flame-light: #eef4ff;
}
[data-page="projects"] {
  --page-sun: #3ecbff;
  --page-sun-core: #c8f2ff;
  --page-sun-corona: rgba(62, 203, 255, 0.42);
  --flame: #3ecbff;
  --flame-light: #8ae0ff;
}
[data-page="contact"] {
  --page-sun: #5eead4;
  --page-sun-core: #d9fff7;
  --page-sun-corona: rgba(94, 234, 212, 0.4);
  --flame: #5eead4;
  --flame-light: #9ff5e6;
}
[data-page="insights"] {
  --page-sun: #d4b4ff;
  --page-sun-core: #f3e9ff;
  --page-sun-corona: rgba(212, 180, 255, 0.38);
  --flame: #d4b4ff;
  --flame-light: #ebd9ff;
}

body {
  /* Transparent so the creation mural shows through */
  background: transparent !important;
  color: var(--text);
}
html {
  background: #03060c;
}

/* Subtle voltaic grid — futurism under myth */
body {
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(110, 203, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 203, 255, 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

/* ===== Living site mural (creation art) ===== */
:root {
  --header-h: 5.5rem;
}
.site-mural {
  position: fixed;
  /* All pages: murals begin below the glass nav — nothing clipped by tabs */
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.site-mural-art-wrap {
  position: absolute;
  inset: 0 !important; /* never bleed under the nav */
  will-change: transform;
}
/* Home: glass nav owns the top; mural + hero start cleanly below it */
[data-page="home"] .site-mural-art {
  object-position: 50% 22% !important;
}
[data-page="home"] .site-mural-caption {
  bottom: 1.25rem;
}
[data-page="home"] .hero {
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h));
  min-height: 560px;
  padding: 2.25rem 0 4.5rem !important;
  box-sizing: border-box;
  align-items: center;
}
[data-page="home"] .hero-content {
  z-index: 3;
  margin-top: 0 !important;
}
[data-page="home"] .hero-overlay {
  background:
    linear-gradient(180deg, rgba(6, 8, 14, 0.35) 0%, transparent 35%),
    radial-gradient(ellipse at center, transparent 0%, rgba(11,11,15,0.42) 80%);
}
/* Keep homepage hero title always readable after the opener */
[data-page="home"] .hero-eyebrow,
[data-page="home"] .hero-sub,
[data-page="home"] .hero-actions,
[data-page="home"].is-entered .hero-eyebrow,
[data-page="home"].is-entered .hero-sub,
[data-page="home"].is-entered .hero-actions {
  opacity: 1;
}
[data-page="home"].is-entered .line-inner {
  transform: translateY(0);
}
[data-page="home"] .hero-title {
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(0, 0, 0, 0.45);
}
[data-page="home"] .hero-eyebrow,
[data-page="home"] .hero-sub {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.9);
}
.site-mural-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  /* Brighter cathedral-glass atmosphere */
  filter: saturate(1.2) contrast(1.06) brightness(0.68);
  opacity: 0.78;
}
.site-mural-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
/* Subtle lead lattice — craft glass structure, not worship */
.site-mural-glass {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(8, 6, 12, 0.45) 1.25px, transparent 1.25px),
    linear-gradient(90deg, rgba(8, 6, 12, 0.45) 1.25px, transparent 1.25px),
    radial-gradient(ellipse 70% 60% at 50% 40%, transparent 42%, rgba(10, 8, 16, 0.28) 100%);
  background-size: 68px 84px, 68px 84px, 100% 100%;
  mix-blend-mode: multiply;
}
.site-mural--mythic .site-mural-scrim,
.site-mural--stained .site-mural-scrim {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 210, 120, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 18%, rgba(90, 140, 255, 0.1), transparent 52%),
    radial-gradient(ellipse 45% 35% at 12% 85%, rgba(255, 100, 60, 0.07), transparent 50%),
    linear-gradient(180deg, rgba(8, 6, 14, 0.22) 0%, rgba(6, 8, 16, 0.48) 48%, rgba(4, 6, 12, 0.72) 100%);
}
.site-mural-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, color-mix(in srgb, var(--page-sun) 16%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 15%, var(--myth-glow), transparent 55%),
    linear-gradient(180deg, rgba(3, 6, 12, 0.28) 0%, rgba(5, 10, 20, 0.48) 42%, rgba(4, 8, 16, 0.68) 100%);
}
.site-mural-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  z-index: 3;
  font-family: var(--font-myth);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 220, 160, 0.55);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
.hero-mural-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-mural-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.page-hero > .container,
.hero > .container {
  position: relative;
  z-index: 2;
}

.header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10020 !important;
  overflow: visible !important;
  /* Black transparent glass tab bar */
  background: rgba(4, 6, 12, 0.82) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
  border-bottom: 1px solid rgba(255, 230, 190, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  padding: 0.85rem 0 !important;
  min-height: 5.5rem;
  box-sizing: border-box;
}
.header.scrolled {
  background: rgba(4, 6, 12, 0.9) !important;
  padding: 0.75rem 0 !important;
}
.nav-link {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.92 !important;
  padding: 0.45rem 0.3rem;
  white-space: nowrap;
  visibility: visible !important;
  color: #f4efe6 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
  overflow: visible !important;
}
.nav-link:hover,
.nav-link.active {
  opacity: 1 !important;
  color: #fff !important;
}
.nav,
.nav-menu {
  overflow: visible !important;
}
main, .footer {
  position: relative;
  z-index: 2;
}
.loader, .page-transition { z-index: 10030; }
.creation-opening { z-index: 10050; }

::selection {
  background: var(--page-sun);
  color: var(--black);
}

/* ================================
   CREATION OPENING — full-bleed mural sequence
   ================================ */
.creation-opening {
  position: fixed;
  inset: 0;
  z-index: 10050;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: -webkit-fill-available;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(20, 40, 70, 0.35), transparent 70%),
    linear-gradient(180deg, #050812 0%, #080c16 50%, #04060e 100%);
}
.creation-opening::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  background-color: #070b14;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke-linecap='square'%3E%3Cpath stroke='%235aacff' stroke-opacity='0.28' stroke-width='1' d='M0 40h48v24h32M80 0v48h40v32M160 120h-40v-24H88M0 120h56v-16h24'/%3E%3Cpath stroke='%23ffb24a' stroke-opacity='0.22' stroke-width='1' d='M20 80h28v40M120 20v36h28M40 160v-28h48M140 100h-24v40'/%3E%3Ccircle cx='48' cy='40' r='2.5' fill='%235aacff' fill-opacity='0.45'/%3E%3Ccircle cx='80' cy='48' r='2.5' fill='%23ffb24a' fill-opacity='0.4'/%3E%3Ccircle cx='120' cy='96' r='2.5' fill='%235aacff' fill-opacity='0.4'/%3E%3Ccircle cx='56' cy='120' r='2.5' fill='%23ffb24a' fill-opacity='0.35'/%3E%3Ccircle cx='112' cy='20' r='2' fill='%2390d0ff' fill-opacity='0.4'/%3E%3Ccircle cx='20' cy='80' r='2' fill='%23ffc878' fill-opacity='0.35'/%3E%3Crect x='44' y='36' width='8' height='8' stroke='%235aacff' stroke-opacity='0.35'/%3E%3Crect x='116' y='92' width='8' height='8' stroke='%23ffb24a' stroke-opacity='0.3'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(rgba(90, 170, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 170, 255, 0.06) 1px, transparent 1px);
  background-size:
    160px 160px,
    40px 40px,
    40px 40px;
  /* Show circuitry in the surround; soft-fade under the framed mural */
  mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 52%, black 78%);
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 52%, black 78%);
}
.creation-opening::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  background-image:
    /* circuit pads / nodes around the frame */
    radial-gradient(circle at 8% 18%, rgba(110, 200, 255, 0.65) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 22%, rgba(255, 180, 80, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 12% 78%, rgba(255, 160, 60, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 82%, rgba(100, 190, 255, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 42%, rgba(140, 210, 255, 0.45) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 78% 58%, rgba(255, 200, 120, 0.45) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 5% 50%, rgba(90, 170, 255, 0.4) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 95% 48%, rgba(255, 170, 80, 0.4) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 6%, rgba(120, 200, 255, 0.4) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 94%, rgba(255, 180, 90, 0.4) 0 1.5px, transparent 2.5px),
    /* L-shaped traces via repeating linear accents */
    linear-gradient(90deg, transparent 0 6%, rgba(90, 170, 255, 0.28) 6% 6.3%, transparent 6.3% 100%),
    linear-gradient(180deg, transparent 0 14%, rgba(90, 170, 255, 0.22) 14% 14.25%, transparent 14.25% 100%),
    linear-gradient(90deg, transparent 0 93%, rgba(255, 170, 80, 0.28) 93% 93.35%, transparent 93.35% 100%),
    linear-gradient(180deg, transparent 0 72%, rgba(255, 170, 80, 0.2) 72% 72.3%, transparent 72.3% 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 52%, black 78%);
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 52%, black 78%);
  animation: circuitPulse 6s ease-in-out infinite;
}
@keyframes circuitPulse {
  0%, 100% { opacity: 0.55; filter: brightness(0.95); }
  50% { opacity: 0.85; filter: brightness(1.15); }
}
.creation-opening.is-done {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.creation-slides {
  position: absolute;
  /* Keep murals inside the divine frame; leave room for circuit surround */
  inset: clamp(1.75rem, 4.5vw, 3.5rem);
  z-index: 1;
  background: #0a101c;
  overflow: hidden;
  border-radius: 2px;
}
/* Stained-glass lead lattice + soft jewel light over murals */
.creation-slides::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(8, 6, 4, 0.55) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(8, 6, 4, 0.5) 1.5px, transparent 1.5px),
    linear-gradient(rgba(8, 6, 4, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 6, 4, 0.18) 1px, transparent 1px);
  background-size:
    56px 56px,
    56px 56px,
    14px 14px,
    14px 14px;
  mix-blend-mode: multiply;
}
.creation-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255, 230, 160, 0.14), transparent 65%),
    linear-gradient(125deg, rgba(255, 200, 120, 0.08) 0%, transparent 35%, rgba(120, 180, 255, 0.1) 70%, transparent 100%);
  mix-blend-mode: screen;
  animation: glassLightSweep 12s ease-in-out infinite;
}
@keyframes glassLightSweep {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}
.creation-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.2s ease;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.creation-slide.is-active {
  opacity: 1;
  z-index: 2;
}
.creation-slide.is-prev {
  opacity: 0;
  z-index: 1;
}
/* Full-bleed murals fill the divine frame */
.creation-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  transform: scale(1);
  transform-origin: 50% 48%;
  will-change: transform;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  filter: saturate(1.28) contrast(1.1) brightness(1.04);
}
/* Contain scenes: full mural visible, sides filled by expanded backdrop */
.creation-slide--contain {
  background: #0a101c;
}
.creation-slide-fill {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.4) contrast(1.1) brightness(0.78) blur(22px);
  transform: scale(1.12);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 0;
}
.creation-slide--contain .creation-slide-img {
  object-fit: contain !important;
  object-position: 50% 50% !important;
  transform: scale(1) !important;
  transform-origin: 50% 50%;
  filter: saturate(1.28) contrast(1.1) brightness(1.04);
  z-index: 1;
}
/* Final spark menu: keep whole PROMETHEUS plate readable */
.creation-opening.is-menu .creation-slide--contain .creation-slide-img {
  object-fit: contain !important;
  object-position: 50% 48% !important;
  max-height: 100%;
  max-width: 100%;
}
.creation-opening.is-menu .creation-slides::before {
  opacity: 0.35;
}
.creation-opening.is-menu .creation-slides::after {
  opacity: 0.4;
}
.creation-opening.is-play .creation-slides::before {
  opacity: 0.34;
}
.creation-opening.is-play .creation-slides::after {
  opacity: 0.4;
}
.creation-still {
  display: none;
}
.creation-title-plate {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  width: min(80vw, 900px);
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  /* Black plate knocks out — glass letters blend into mural */
  mix-blend-mode: screen;
}
.creation-title-plate::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18%;
  bottom: 22%;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 50%,
      rgba(255, 200, 110, 0.28) 0%,
      rgba(120, 170, 255, 0.16) 42%,
      transparent 72%);
  mix-blend-mode: screen;
  filter: blur(8px);
}
.creation-title-plate.is-visible {
  opacity: 1;
}
.creation-title-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
  /* Bright enough to read on any mural, still glass-blended */
  filter:
    saturate(1.75) contrast(1.28) brightness(1.32)
    drop-shadow(0 0 10px rgba(255, 220, 140, 0.85))
    drop-shadow(0 0 22px rgba(255, 160, 60, 0.55))
    drop-shadow(0 0 28px rgba(90, 170, 255, 0.5));
}
.creation-opening.is-menu .creation-title-plate {
  display: none;
}

/* Divine holographic frame around murals */
.creation-holo-frame {
  position: absolute;
  inset: clamp(1.75rem, 4.5vw, 3.5rem);
  z-index: 5;
  pointer-events: none;
  border: 2px solid rgba(255, 210, 140, 0.55);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 200, 0.35),
    inset 0 0 0 6px rgba(20, 12, 8, 0.35),
    inset 0 0 50px rgba(255, 180, 80, 0.14),
    inset 0 0 90px rgba(120, 170, 255, 0.1),
    0 0 24px rgba(255, 190, 100, 0.28),
    0 0 60px rgba(90, 150, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 190, 100, 0.22), transparent 14%, transparent 86%, rgba(130, 190, 255, 0.2)),
    linear-gradient(180deg, rgba(255, 220, 150, 0.18), transparent 12%, transparent 88%, rgba(100, 170, 255, 0.16));
  animation: holoFramePulse 5s ease-in-out infinite;
}
.creation-holo-frame::before,
.creation-holo-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.creation-holo-frame::before {
  inset: 10px;
  border: 1px solid rgba(255, 230, 180, 0.28);
  box-shadow: inset 0 0 30px rgba(255, 200, 120, 0.08);
}
.creation-holo-frame::after {
  inset: -4px;
  border: 1px solid rgba(255, 200, 120, 0.2);
  opacity: 0.85;
}
.creation-holo-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: rgba(255, 220, 160, 0.95);
  border-style: solid;
  box-shadow:
    0 0 14px rgba(255, 190, 100, 0.55),
    0 0 28px rgba(255, 160, 60, 0.25);
}
.creation-holo-corner.tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.creation-holo-corner.tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.creation-holo-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.creation-holo-corner.br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }
.creation-holo-corner::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d0 0%, #ffb040 55%, transparent 70%);
  box-shadow: 0 0 12px rgba(255, 180, 80, 0.8);
}
.creation-holo-corner.tl::before { top: 6px; left: 6px; }
.creation-holo-corner.tr::before { top: 6px; right: 6px; }
.creation-holo-corner.bl::before { bottom: 6px; left: 6px; }
.creation-holo-corner.br::before { bottom: 6px; right: 6px; }
.creation-holo-edge {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 170, 0.85), rgba(180, 220, 255, 0.7), rgba(255, 230, 170, 0.85), transparent);
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(255, 200, 120, 0.45));
}
.creation-holo-edge.top,
.creation-holo-edge.bottom {
  left: 10%;
  right: 10%;
  height: 2px;
}
.creation-holo-edge.top { top: 0; }
.creation-holo-edge.bottom { bottom: 0; }
.creation-holo-edge.left,
.creation-holo-edge.right {
  top: 10%;
  bottom: 10%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 210, 140, 0.8), rgba(140, 190, 255, 0.65), rgba(255, 210, 140, 0.8), transparent);
}
.creation-holo-edge.left { left: 0; }
.creation-holo-edge.right { right: 0; }
@keyframes holoFramePulse {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 240, 200, 0.3),
      inset 0 0 50px rgba(255, 180, 80, 0.12),
      0 0 24px rgba(255, 190, 100, 0.25),
      0 0 50px rgba(90, 150, 255, 0.14);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 245, 210, 0.45),
      inset 0 0 60px rgba(255, 200, 100, 0.18),
      0 0 36px rgba(255, 210, 140, 0.4),
      0 0 70px rgba(120, 190, 255, 0.22);
  }
}

/* Gate: press the flame to begin */
.creation-gate {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(3.5rem, 10vh, 6rem);
  pointer-events: none;
}
.creation-gate[hidden] {
  display: none !important;
}
.creation-start-btn {
  pointer-events: auto;
  position: relative;
  width: 88px;
  height: 110px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-bottom: 0.85rem;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.creation-start-btn:focus-visible {
  outline: 2px solid rgba(255, 200, 120, 0.85);
  outline-offset: 6px;
  border-radius: 50%;
}
.creation-start-btn:hover .creation-flame,
.creation-start-btn:focus-visible .creation-flame {
  transform: scale(1.08);
}
.creation-flame {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 64px;
  height: 88px;
  transform: translateX(-50%);
  transform-origin: 50% 90%;
  transition: transform 0.25s ease;
  animation: flameBallBob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255, 120, 30, 0.65));
}
.creation-flame-glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78px;
  height: 78px;
  margin-left: -39px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 60, 0.55) 0%, rgba(255, 80, 20, 0.2) 45%, transparent 70%);
  animation: flameGlowPulse 1.6s ease-in-out infinite;
}
.creation-flame-outer,
.creation-flame-mid,
.creation-flame-core {
  position: absolute;
  left: 50%;
  bottom: 4px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: translateX(-50%);
  transform-origin: 50% 90%;
}
.creation-flame-outer {
  width: 52px;
  height: 72px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 72%, #ff3a10 0%, transparent 70%),
    linear-gradient(180deg, #ffb020 0%, #ff6a12 42%, #e02808 100%);
  animation: flameLick 0.55s ease-in-out infinite alternate;
  opacity: 0.95;
}
.creation-flame-mid {
  width: 34px;
  height: 52px;
  bottom: 10px;
  background:
    radial-gradient(ellipse at 50% 80%, #fff2a8 0%, #ffc040 35%, #ff7a18 100%);
  animation: flameLick 0.42s ease-in-out infinite alternate-reverse;
  animation-delay: -0.12s;
}
.creation-flame-core {
  width: 16px;
  height: 28px;
  bottom: 14px;
  background: radial-gradient(ellipse at 50% 70%, #fffef0 0%, #ffe080 55%, transparent 100%);
  animation: flameCoreFlicker 0.28s ease-in-out infinite alternate;
  border-radius: 50%;
}
.creation-flame-ember {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd080;
  box-shadow: 0 0 8px #ff9020;
  left: 50%;
  bottom: 55%;
  opacity: 0;
  animation: flameEmberRise 2.1s ease-out infinite;
}
.creation-flame-ember.e1 { margin-left: -4px; animation-delay: 0s; }
.creation-flame-ember.e2 { margin-left: 10px; width: 4px; height: 4px; animation-delay: 0.7s; }
.creation-flame-ember.e3 { margin-left: -14px; width: 3px; height: 3px; animation-delay: 1.25s; }
@keyframes flameBallBob {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-4px) scale(1.03); }
}
@keyframes flameGlowPulse {
  0%, 100% { opacity: 0.75; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes flameLick {
  0% { transform: translateX(-50%) scaleX(1) scaleY(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scaleX(1.08) scaleY(1.06) rotate(3deg); }
}
@keyframes flameCoreFlicker {
  0% { opacity: 0.85; transform: translateX(-50%) scale(0.92); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
@keyframes flameEmberRise {
  0% { opacity: 0; transform: translateY(8px) scale(0.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-52px) translateX(6px) scale(0.2); }
}
.creation-gate-hint {
  pointer-events: none;
  margin: 0;
  font-family: var(--font-myth);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.06em;
  color: #fff6e4;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 18px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(255, 140, 40, 0.35);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(6, 8, 14, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .creation-flame,
  .creation-flame-glow,
  .creation-flame-outer,
  .creation-flame-mid,
  .creation-flame-core,
  .creation-flame-ember {
    animation: none !important;
  }
}

/* Title menu (spark mural) */
.creation-menu {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.25rem max(clamp(1.5rem, 5vh, 3rem), env(safe-area-inset-bottom, 0px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.creation-menu.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.creation-menu[hidden] {
  display: none !important;
}
.creation-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.creation-menu-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 245, 255, 0.9);
  padding: 0.7rem 1.25rem;
  border: 1px solid rgba(160, 210, 255, 0.35);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.55);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.creation-menu-btn:hover {
  border-color: rgba(110, 203, 255, 0.7);
  color: #fff;
}
.creation-menu-btn--primary {
  border-color: rgba(255, 180, 80, 0.55);
  background: rgba(40, 22, 10, 0.55);
}
.creation-menu-btn--primary:hover {
  border-color: rgba(255, 200, 120, 0.85);
  background: rgba(60, 30, 12, 0.65);
}

.creation-opening.is-gate .creation-canvas {
  opacity: 0;
}
.creation-opening.is-play .creation-gate,
.creation-opening.is-menu .creation-gate {
  display: none !important;
}

.creation-caption {
  display: none !important;
}
.creation-quote {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 8;
  width: min(92vw, 42rem);
  text-align: center;
  opacity: 1;
  pointer-events: none;
  padding: 1rem 1.25rem 1.15rem;
  border-radius: 4px;
  background: rgba(6, 8, 14, 0.82);
  border: 1px solid rgba(255, 210, 140, 0.4);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.55),
    inset 0 0 24px rgba(255, 180, 80, 0.06);
  backdrop-filter: blur(8px);
}
.creation-quote.is-visible {
  opacity: 1;
  transform: none;
}
.creation-quote blockquote {
  margin: 0;
  font-family: var(--font-myth);
  font-style: italic;
  font-size: clamp(1rem, 2.3vw, 1.28rem);
  line-height: 1.6;
  color: #fff4dc;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 16px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(255, 180, 80, 0.25);
}
.creation-quote cite {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #ffd48a;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}
.creation-quote cite em {
  font-style: italic;
  color: #ffe8bc;
}
.creation-philosophy {
  margin: 1rem 0 0;
  font-family: var(--font-myth);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  line-height: 1.55;
  color: #fff8ea;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 14px rgba(0, 0, 0, 0.85);
}
.creation-enter {
  display: none !important;
}
.creation-music-credit {
  display: none;
}
.creation-sound-prompt {
  display: none !important;
}
@keyframes enterPulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.45); opacity: 1; }
}

/* Let living murals breathe through content surfaces */
.section,
.section--alt {
  background: rgba(8, 16, 28, 0.72) !important;
  backdrop-filter: blur(2px);
}
.header.scrolled {
  background: rgba(5, 10, 18, 0.82) !important;
}
.preview-card,
.feature-card,
.vision-card,
.city-card,
.principle-card,
.inspiration-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), rgba(12, 20, 32, 0.72) !important;
}
.hero-mural-art {
  display: none !important;
}
.page-hero {
  position: relative;
  overflow: hidden;
  /* Let the fixed mural read quietly behind type */
  background: transparent !important;
}
.page-hero-bg {
  opacity: 0.12 !important;
}
.page-hero-mural {
  display: none;
}
.footer {
  background: rgba(4, 8, 16, 0.78) !important;
  backdrop-filter: blur(4px);
}
.hero-overlay {
  background: radial-gradient(ellipse at center, rgba(3,6,12,0.15) 0%, rgba(3,6,12,0.55) 80%) !important;
}

/* Interactive stages sit clearly BELOW the hero, opaque over mural */
.scene-stage {
  position: relative;
  z-index: 5;
  isolation: isolate;
  margin-top: clamp(1rem, 3vw, 2.5rem);
  padding-top: clamp(2rem, 5vw, 4rem) !important;
  padding-bottom: clamp(2rem, 5vw, 4rem) !important;
  background: rgba(6, 8, 14, 0.82) !important;
  backdrop-filter: blur(10px);
}
.scene-stage-frame {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  border: 1px solid rgba(255, 200, 120, 0.28);
  background: #05070e;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  z-index: 2;
}
.scene-stage--compact .scene-stage-frame {
  max-width: 720px;
  aspect-ratio: 16 / 9;
}
.scene-stage-canvas,
.scene-stage-frame canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: #05070e;
}
.scene-stage-caption {
  margin: 0.9rem auto 0;
  max-width: 920px;
  text-align: center;
  font-family: var(--font-myth);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 220, 160, 0.7);
}

/* Stronger torch page transition */
.page-transition.leaving.torch-firing .page-transition-inner {
  background:
    radial-gradient(ellipse 80% 70% at 50% 110%, var(--page-sun-corona), transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, #02040a 100%);
}
.page-transition.leaving .page-transition-flames {
  opacity: 1;
  height: 85%;
  filter: blur(6px) saturate(1.3);
  animation: flameRise 0.85s ease-out forwards;
}
.creation-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transform: scale(1.08);
  filter: brightness(0.35) saturate(0.7);
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity, filter;
}
.creation-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 48%, transparent 20%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 18%, transparent 78%, rgba(0, 0, 0, 0.75) 100%);
}
.creation-brand {
  position: absolute;
  bottom: clamp(1.5rem, 6vh, 3.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  width: min(92vw, 640px);
}
.creation-brand h1 {
  display: none; /* title lives in the artwork */
}
.creation-brand p {
  margin-top: 0;
  font-family: var(--font-myth);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-style: italic;
  color: rgba(180, 220, 255, 0.85);
  letter-spacing: 0.1em;
  text-shadow: 0 0 24px rgba(61, 184, 255, 0.45), 0 2px 20px rgba(0, 0, 0, 0.9);
}
.creation-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.85rem, env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) 0.85rem
    max(1.25rem, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.creation-toolbar button,
.creation-toolbar-end {
  pointer-events: auto;
}
.creation-toolbar-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.creation-skip-top {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 240, 220, 0.92);
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 200, 120, 0.45);
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.55);
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.creation-skip-top:hover {
  color: #fff;
  border-color: rgba(110, 203, 255, 0.65);
  background: rgba(12, 18, 32, 0.75);
}
.creation-music-credit {
  font-family: var(--font-myth);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(200, 220, 255, 0.55);
  white-space: nowrap;
}
.creation-mute {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.75);
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  transition: color 0.2s, border-color 0.2s;
}
.creation-mute:hover,
.creation-mute[aria-pressed="true"] {
  color: var(--white);
  border-color: rgba(110, 203, 255, 0.5);
}
.creation-sound-prompt {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 200, 120, 0.55);
  border-radius: 50%;
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.creation-sound-icon {
  font-size: 1.25rem;
  color: #fff8e8;
  line-height: 1;
}
.creation-sound-prompt.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.creation-sound-prompt:hover {
  border-color: rgba(110, 203, 255, 0.7);
}
.creation-skip {
  display: none;
}

/* ================================
   FLAME PAGE TRANSITION
   ================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10002;
  pointer-events: none;
}
.page-transition-inner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 110%, var(--page-sun-corona), transparent 55%),
    linear-gradient(180deg, #050508 0%, #0a0806 100%);
  transform-origin: bottom;
  transform: scaleY(1);
  transition: transform 0.75s cubic-bezier(0.7, 0, 0.3, 1);
}
.page-transition-flames {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 18% 70% at 12% 100%, var(--page-sun) 0%, transparent 70%),
    radial-gradient(ellipse 22% 85% at 28% 100%, var(--page-sun-core) 0%, transparent 68%),
    radial-gradient(ellipse 20% 75% at 48% 100%, var(--page-sun) 0%, transparent 70%),
    radial-gradient(ellipse 24% 90% at 68% 100%, var(--page-sun-core) 0%, transparent 68%),
    radial-gradient(ellipse 18% 70% at 88% 100%, var(--page-sun) 0%, transparent 70%);
  filter: blur(8px);
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
}
.page-transition.revealed .page-transition-inner {
  transform: scaleY(0);
  transform-origin: top;
}
.page-transition.revealed .page-transition-flames {
  opacity: 0;
}
.page-transition.leaving .page-transition-inner {
  transform-origin: bottom;
  transform: scaleY(1);
}
.page-transition.leaving .page-transition-flames {
  opacity: 0.95;
  animation: flameRise 0.55s ease-out forwards;
}
@keyframes flameRise {
  0% { transform: translateY(30%) scaleY(0.7); opacity: 0.2; }
  60% { opacity: 1; }
  100% { transform: translateY(-10%) scaleY(1.15); opacity: 0.85; }
}

/* ================================
   FUTURIST-MYTHIC TORCH NAV
   Classical fire housed in voltaic apparatus
   ================================ */
.nav-menu {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem 0.85rem;
  max-width: min(820px, 72vw);
  visibility: visible;
}
.nav-link {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.92 !important;
  padding: 0.45rem 0.3rem;
  white-space: nowrap;
  visibility: visible !important;
  color: #f4efe6 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
  overflow: visible !important;
}
.nav-link::after {
  background: linear-gradient(90deg, var(--voltaic), var(--page-sun));
  bottom: 0;
}
/* Futuristic hybrid torches — always present on tabs */
.nav-torch {
  position: relative;
  width: 16px;
  height: 28px;
  margin: 0;
  flex-shrink: 0;
  display: inline-block !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}
/* Column capital / emitter hood */
.torch-cap {
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 12px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(180deg, #9adcff 0%, #3a6080 55%, #1a3040 100%);
  box-shadow: 0 0 6px rgba(110, 203, 255, 0.45);
  z-index: 2;
}
.torch-cap::before,
.torch-cap::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #e8f6ff;
  box-shadow: 0 0 4px #6ecbff;
}
.torch-cap::before { left: 2px; }
.torch-cap::after { right: 2px; }
/* Shaft: marble-like metal with circuit seam */
.torch-handle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 1px;
  background:
    linear-gradient(90deg, transparent 40%, rgba(110, 203, 255, 0.7) 50%, transparent 60%),
    linear-gradient(180deg, #6a8aa8 0%, #2a3a4a 40%, #c4a574 70%, #5a4030 100%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.15);
  z-index: 1;
}
.torch-ring {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 8px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: linear-gradient(90deg, #ff8a2a, #6ecbff);
  opacity: 0.85;
  z-index: 2;
}
/* Plasma-flame — visible by default, brighter on active/hover */
.torch-flame {
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 11px;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 50% 50% 40% 40%;
  background:
    radial-gradient(circle at 50% 75%, #ffffff 0%, var(--link-sun, var(--page-sun-core)) 28%, var(--link-sun-mid, var(--page-sun)) 52%, transparent 78%),
    radial-gradient(circle at 40% 40%, rgba(110, 203, 255, 0.85) 0%, transparent 55%);
  opacity: 0.85;
  filter: blur(0.25px);
  transition: opacity 0.35s, transform 0.35s, height 0.35s;
  animation: torchFlicker 1.4s ease-in-out infinite;
  z-index: 3;
  box-shadow: 0 0 10px var(--link-sun-mid, var(--page-sun));
}
.torch-flame::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 1px;
  height: 8px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #e8f6ff, transparent);
  opacity: 0.8;
  animation: arcFlash 2.2s ease-in-out infinite;
}
.nav-link:hover .torch-flame,
.nav-link.active .torch-flame,
.nav-link.is-igniting .torch-flame {
  opacity: 1;
  height: 20px;
  transform: translateX(-50%) scale(1.2);
  box-shadow:
    0 0 16px var(--link-sun-mid, var(--page-sun)),
    0 0 28px rgba(110, 203, 255, 0.5);
}
.nav-link.active .torch-cap,
.nav-link:hover .torch-cap,
.nav-link.is-igniting .torch-cap {
  box-shadow: 0 0 12px rgba(110, 203, 255, 0.75);
}
.nav-link-god {
  display: none !important;
}
.nav-link-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: inline !important;
}
.nav-link--cta {
  flex-direction: row;
  gap: 0.55rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border-color: rgba(110, 203, 255, 0.35);
}
.nav-link--cta .nav-link-god { display: none; }
.nav-link--cta .nav-torch { margin: 0; }

.nav-link[data-sun="g-type"] { --link-sun: #fff4c2; --link-sun-mid: #ffd24a; }
.nav-link[data-sun="a-type"] { --link-sun: #eaf3ff; --link-sun-mid: #9ec9ff; }
.nav-link[data-sun="m-type"] { --link-sun: #ffb39a; --link-sun-mid: #ff3d1f; }
.nav-link[data-sun="k-type"] { --link-sun: #ffd2c2; --link-sun-mid: #ff8f6b; }
.nav-link[data-sun="f-type"] { --link-sun: #ffffff; --link-sun-mid: #c9daff; }
.nav-link[data-sun="b-type"] { --link-sun: #c8f2ff; --link-sun-mid: #3ecbff; }
.nav-link[data-sun="o-type"] { --link-sun: #d9fff7; --link-sun-mid: #5eead4; }
.nav-link[data-sun="prometheus"] { --link-sun: #ffe7a8; --link-sun-mid: #ff8a2a; }

@keyframes torchFlicker {
  0%, 100% { transform: translateX(-50%) scaleY(1) scaleX(1); }
  40% { transform: translateX(calc(-50% + 0.5px)) scaleY(1.08) scaleX(0.92); }
  70% { transform: translateX(calc(-50% - 0.5px)) scaleY(0.94) scaleX(1.05); }
}
@keyframes arcFlash {
  0%, 80%, 100% { opacity: 0.25; height: 5px; }
  85% { opacity: 1; height: 11px; }
  90% { opacity: 0.4; height: 7px; }
}

/* ================================
   STELLAR PAGE TITLES (sun stages)
   ================================ */
.page-hero {
  isolation: isolate;
}
.page-hero-mural {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}
.page-hero-mural canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.page-hero-label {
  color: var(--page-sun);
}
.page-hero-god {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-family: var(--font-myth);
  font-size: 0.95rem;
  font-style: italic;
  color: color-mix(in srgb, var(--page-sun) 55%, var(--voltaic));
  letter-spacing: 0.04em;
}
.myth-tagline {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--voltaic) 70%, var(--white));
  opacity: 0.75;
}
.page-hero-god::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--page-sun-core), var(--page-sun) 55%, transparent 72%);
  box-shadow: 0 0 18px var(--page-sun-corona);
  animation: sunBreathe 3.5s ease-in-out infinite;
}
.sun-title {
  position: relative;
  display: inline-block;
  background:
    radial-gradient(circle at 50% 45%, var(--page-sun-core) 0%, var(--page-sun) 38%, color-mix(in srgb, var(--page-sun) 55%, #3a1508) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px var(--page-sun-corona));
  animation: sunTitlePulse 5s ease-in-out infinite;
}
.sun-title em {
  background: linear-gradient(120deg, var(--page-sun-core), var(--white) 40%, var(--page-sun));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.page-hero-title.sun-title {
  max-width: 760px;
}
.sun-corona {
  position: absolute;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: 18%;
  right: 4%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle, var(--page-sun-corona) 0%, transparent 62%),
    repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--page-sun) 28%, transparent) 0deg 2deg, transparent 2deg 18deg);
  opacity: 0.35;
  animation: coronaSpin 48s linear infinite, sunBreathe 4s ease-in-out infinite;
  mask-image: radial-gradient(circle, black 20%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, black 20%, transparent 68%);
}
.page-hero--center .sun-corona {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  top: 8%;
}
@keyframes sunBreathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes sunTitlePulse {
  0%, 100% { filter: drop-shadow(0 0 22px var(--page-sun-corona)); }
  50% { filter: drop-shadow(0 0 38px var(--page-sun-corona)); }
}
@keyframes coronaSpin {
  to { transform: rotate(360deg); }
}
.page-hero--center .sun-corona {
  animation: coronaSpinCenter 48s linear infinite, sunBreathe 4s ease-in-out infinite;
}
@keyframes coronaSpinCenter {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

/* Temple / mural atmosphere */
.mural-frame {
  position: relative;
}
.mural-frame::before,
.mural-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  opacity: 0.22;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--page-sun) 35%, transparent), transparent);
  mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
}
.mural-frame::before { left: 0; }
.mural-frame::after { right: 0; }

.hero .hero-title {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}
.hero-title .sun-title,
.hero .sun-title {
  background: linear-gradient(100deg, var(--human) 0%, var(--flame-light) 40%, var(--machine) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-eyebrow {
  color: var(--page-sun);
}

/* ================================
   8-BIT ZELDA AWAKENING SCENE
   ================================ */
.about-animation {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  position: relative;
  z-index: 5;
  isolation: isolate;
  padding: 1rem;
  background: rgba(6, 8, 14, 0.75);
  border: 1px solid rgba(255, 200, 120, 0.2);
}
/* Match interactive scenes: below-hero stage, not competing with mural */
.about-animation .zelda-scene {
  max-width: 480px;
}
.zelda-scene {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3;
}
.zelda-caption {
  margin: 0.85rem auto 0;
  max-width: 480px;
  text-align: center;
  font-family: var(--font-myth);
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(200, 230, 255, 0.65);
}
.zelda-bezel {
  position: relative;
  background: #0a0e18;
  border: 4px solid #2a3548;
  box-shadow:
    0 0 0 2px #e8a735,
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 2px #121a28;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.zelda-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 256 / 224;
  min-height: 220px;
  cursor: grab;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #0b1020;
}
.zelda-scene.is-dragging .zelda-canvas {
  cursor: grabbing;
}
.zelda-dialog {
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 1.1rem;
  background: #f4efe0;
  border-top: 4px solid #2a2030;
  color: #1a1520;
  min-height: 5.5rem;
  font-family: "Press Start 2P", "Courier New", monospace;
}
.zelda-dialog::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 3px solid #2a2030;
  pointer-events: none;
}
.zelda-dialog-name {
  position: absolute;
  top: -0.65rem;
  left: 1.25rem;
  background: #f4efe0;
  padding: 0 0.45rem;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: #c45a12;
  z-index: 1;
}
.zelda-dialog-text {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  line-height: 1.75;
  white-space: pre-wrap;
  min-height: 3.2em;
  margin: 0.35rem 0 0;
  color: #1a1520;
}
.zelda-dialog-cursor {
  position: absolute;
  right: 1.1rem;
  bottom: 0.7rem;
  font-size: 0.55rem;
  color: #c45a12;
  opacity: 0;
  z-index: 1;
  animation: zeldaBlink 0.7s steps(1) infinite;
}
@keyframes zeldaBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.zelda-hud {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Press Start 2P", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.04em;
  color: #ffe08a;
  background: rgba(10, 14, 24, 0.85);
  border: 2px solid #e8a735;
  padding: 0.4rem 0.55rem;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.zelda-hud.is-on {
  opacity: 1;
  animation: hudPulse 1.4s steps(2) infinite;
}
@keyframes hudPulse {
  0%, 100% { border-color: #e8a735; }
  50% { border-color: #6ecbff; }
}
.zelda-scene.is-complete .zelda-bezel {
  box-shadow:
    0 0 0 2px #5ef0ff,
    0 0 28px rgba(94, 240, 255, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

/* ================================
   LIVING LOGO — purple flame burn
   Sizes are locked on the bare <img> AND the wrap so the mark never
   flashes at intrinsic (huge) size before JS wraps it.
   ================================ */
.logo-living-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
  overflow: visible;
  box-sizing: border-box;
}
.logo-living-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
/* Nav mark — fixed box before and after living wrap */
.nav-logo > img,
.nav-logo .logo-living-wrap {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  flex-shrink: 0;
  object-fit: contain;
}
.nav-logo .logo-living-wrap > img,
.nav-logo .logo-living-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
}
/* Wordmark art already says Prometheus — hide duplicate text always */
.nav-logo > span:not(.logo-living-wrap) {
  display: none !important;
}
/* Footer mark */
.footer-brand > img.footer-logo,
.footer-brand > img,
.footer-brand .logo-living-wrap {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  flex-shrink: 0;
  object-fit: contain;
}
.footer-brand .logo-living-wrap > img,
.footer-brand .logo-living-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
}
/* Loader mark */
.loader-logo > img,
.loader-logo .logo-living-wrap {
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}
.loader-logo .logo-living-wrap > img,
.loader-logo .logo-living-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
}
/* Purple divine flame — wanders, surges, and flares with life */
.logo-flame {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 10%;
  height: 28%;
  z-index: 2;
  pointer-events: none;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.95) 0%, transparent 45%),
    linear-gradient(180deg, #ff9bff 0%, #e070ff 35%, #9b4dff 70%, #5a2cff 100%);
  box-shadow:
    0 0 6px rgba(224, 112, 255, 0.95),
    0 0 14px rgba(155, 77, 255, 0.75),
    0 0 28px rgba(120, 60, 255, 0.45);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  transform-origin: 50% 90%;
  animation: logoFlameLife 2.6s ease-in-out infinite;
}
.logo-flame-mid {
  width: 6%;
  height: 18%;
  top: 39%;
  background: linear-gradient(180deg, #fff6ff 0%, #f0a8ff 50%, #c060ff 100%);
  opacity: 0.95;
  animation: logoFlameLifeMid 2.1s ease-in-out infinite;
  animation-delay: -0.4s;
}
.logo-flame-core {
  width: 3.5%;
  height: 10%;
  top: 40%;
  background: radial-gradient(ellipse at 50% 70%, #ffffff 0%, #ffe0ff 60%, transparent 100%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: logoFlameLifeCore 1.6s ease-in-out infinite;
  animation-delay: -0.7s;
}
.logo-living-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: 24%;
  height: 36%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%,
    rgba(224, 112, 255, 0.55) 0%,
    rgba(120, 60, 255, 0.2) 48%,
    transparent 72%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: logoFlameAura 2.4s ease-in-out infinite;
}
@keyframes logoFlameLife {
  0% {
    transform: translate(-50%, -50%) rotate(-5deg) scale(0.92, 0.95);
    filter: brightness(0.9);
    opacity: 0.85;
  }
  18% {
    transform: translate(calc(-50% + 1.5px), calc(-50% - 2.5px)) rotate(4deg) scale(1.05, 1.12);
    filter: brightness(1.15);
    opacity: 1;
  }
  40% {
    transform: translate(calc(-50% - 1.8px), calc(-50% + 1px)) rotate(-7deg) scale(0.96, 1.02);
    filter: brightness(1);
    opacity: 0.9;
  }
  62% {
    transform: translate(calc(-50% + 1px), calc(-50% - 3.5px)) rotate(6deg) scale(1.28, 1.42);
    filter: brightness(1.5);
    opacity: 1;
    box-shadow:
      0 0 10px rgba(255, 180, 255, 1),
      0 0 22px rgba(224, 112, 255, 0.95),
      0 0 40px rgba(120, 60, 255, 0.65);
  }
  82% {
    transform: translate(calc(-50% - 0.8px), calc(-50% - 1px)) rotate(-2deg) scale(1.08, 1.15);
    filter: brightness(1.2);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) rotate(-5deg) scale(0.92, 0.95);
    filter: brightness(0.9);
    opacity: 0.85;
  }
}
@keyframes logoFlameLifeMid {
  0% {
    transform: translate(-50%, -50%) rotate(4deg) scale(0.9, 0.92);
    opacity: 0.75;
  }
  30% {
    transform: translate(calc(-50% - 1.6px), calc(-50% - 2px)) rotate(-6deg) scale(1.1, 1.2);
    opacity: 1;
  }
  55% {
    transform: translate(calc(-50% + 1.8px), calc(-50% + 0.5px)) rotate(5deg) scale(1.35, 1.5);
    opacity: 1;
    filter: brightness(1.4);
  }
  100% {
    transform: translate(-50%, -50%) rotate(4deg) scale(0.9, 0.92);
    opacity: 0.75;
  }
}
@keyframes logoFlameLifeCore {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.65;
  }
  25% {
    transform: translate(calc(-50% + 0.9px), calc(-50% - 1.8px)) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translate(calc(-50% - 1.1px), calc(-50% + 0.8px)) scale(1.55);
    opacity: 1;
    filter: brightness(1.7);
  }
  75% {
    transform: translate(calc(-50% + 0.5px), calc(-50% - 2.2px)) scale(1.2);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.65;
  }
}
@keyframes logoFlameAura {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }
  45% {
    opacity: 0.55;
    transform: translate(-50%, -52%) scale(1.05);
  }
  68% {
    opacity: 1;
    transform: translate(-50%, -54%) scale(1.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-flame,
  .logo-flame-mid,
  .logo-flame-core,
  .logo-living-wrap::after {
    animation: none !important;
  }
}

/* ================================
   GLOBAL TONE SHIFTS
   ================================ */
.progress-bar {
  background: linear-gradient(90deg, var(--human), var(--page-sun), var(--machine));
}
.section-label {
  color: var(--page-sun) !important;
}
.preview-card,
.feature-card,
.vision-card,
.city-card,
.inspiration-card,
.principle-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--surface);
  border-color: var(--border);
}
.btn--primary {
  background: linear-gradient(135deg, var(--page-sun), color-mix(in srgb, var(--page-sun) 60%, var(--ember)));
  color: #120b06;
}
.btn--primary:hover {
  box-shadow: 0 8px 36px var(--page-sun-corona);
}
.nav-link--cta:hover {
  background: var(--page-sun);
  border-color: var(--page-sun);
  color: #120b06;
}
.loader-bar {
  background: linear-gradient(90deg, var(--human), var(--divine), var(--machine));
}

@media (max-width: 900px) {
  .nav-link-god { display: none; }
  .nav-menu { max-width: none; gap: 0.5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .torch-flame,
  .sun-title,
  .sun-corona,
  .page-hero-god::before,
  .creation-opening,
  .zelda-hud,
  .zelda-dialog-cursor {
    animation: none !important;
  }
}
