/* ── Luxury Palette ────────────────────────────────────────────
   --white:       #FFFFFF
   --off-white:   #F8F5F0   (warm cream)
   --cream:       #EDE8DF   (deeper cream, borders/panels)
   --gold:        #C9A96E   (champagne gold accent)
   --gold-light:  #DEC48A
   --gold-dark:   #8B6B2A
   --charcoal:    #1C1917   (primary text)
   --gray-dark:   #44403C
   --gray-mid:    #78716C
   --gray-light:  #A8A29E
   --gray-faint:  #E7E3DC
   ─────────────────────────────────────────────────────────── */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #F8F5F0;
  color: #1C1917;
  font-family: 'Geist Mono', 'Courier New', monospace;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(201,169,110,0.25); color: #1C1917; }
::-webkit-scrollbar { width: 0; height: 0; }

canvas { display: block; outline: none; }

/* ── Layout ───────────────────────────────────────────────── */
#scene-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

#scroll-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  z-index: 10;
  background: transparent;
  scrollbar-width: none;
  pointer-events: none;
}
#scroll-container.active { pointer-events: auto; }
#scroll-container::-webkit-scrollbar { display: none; }
#scroll-spacer { height: 1000vh; }

/* ── Loading Screen ───────────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8F5F0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
#loading-screen.exiting {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.025;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.loading-content {
  width: 100%;
  max-width: 52rem;
  padding: 0 2rem;
  position: relative;
  z-index: 11;
}

.loading-title {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeSlideDown 0.8s ease forwards;
}
.loading-title h1 {
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: #1C1917;
  margin-bottom: 0.75rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}
.loading-divider {
  height: 1px;
  width: 8rem;
  background: linear-gradient(to right, transparent, #C9A96E, transparent);
  margin: 0 auto 0.9rem;
}
.loading-subtitle {
  font-size: 0.5625rem;
  letter-spacing: 0.45em;
  color: #A8A29E;
  text-transform: uppercase;
  font-family: 'Geist Mono', monospace;
}

.loading-bar-wrapper { margin-bottom: 2.5rem; }
.loading-bar-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.loading-bar-labels span {
  font-size: 0.5625rem;
  color: #A8A29E;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Geist Mono', monospace;
}
.loading-bar-track {
  height: 1px;
  background: #E7E3DC;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}
.loading-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #C9A96E, #DEC48A, #C9A96E);
  width: 0%;
  transition: width 0.1s linear;
}

.console-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 1px;
  padding: 1.25rem 1.5rem;
  font-family: 'Geist Mono', 'Courier New', monospace;
  font-size: 0.6875rem;
  line-height: 1.7;
  min-height: 200px;
  backdrop-filter: blur(4px);
}
.console-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}
.console-dot { width: 7px; height: 7px; border-radius: 50%; }
.console-dot.red    { background: rgba(201, 80, 60, 0.5); }
.console-dot.yellow { background: rgba(201, 169, 110, 0.6); }
.console-dot.green  { background: rgba(80, 160, 100, 0.5); }
.console-label {
  font-size: 0.5rem;
  color: #A8A29E;
  letter-spacing: 0.3em;
  margin-left: 0.5rem;
  text-transform: uppercase;
}
.console-lines {
  max-height: 160px;
  overflow: hidden;
}
.console-line {
  opacity: 0;
  transform: translateX(-8px);
  animation: consoleFadeIn 0.15s ease forwards;
  color: #78716C;
}
.console-line.highlight {
  color: #C9A96E;
  font-weight: 400;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}
.console-cursor {
  display: inline-block;
  color: #C9A96E;
  animation: blink 0.7s step-end infinite alternate;
}

.enter-wrapper {
  margin-top: 2.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.enter-wrapper.visible { opacity: 1; transform: translateY(0); }

.enter-btn {
  padding: 0.875rem 3rem;
  border: 1px solid rgba(201, 169, 110, 0.6);
  color: #1C1917;
  font-family: 'Geist Mono', 'Courier New', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.1s;
}
.enter-btn:hover {
  background: rgba(201, 169, 110, 0.1);
  border-color: #C9A96E;
  color: #8B6B2A;
}
.enter-btn:active { transform: scale(0.98); }

.enter-hint {
  font-size: 0.5rem;
  color: #A8A29E;
  margin-top: 0.875rem;
  letter-spacing: 0.25em;
}

/* ═══════════════════════════════════════════════════════════════
   WEBSITE MODE — Landing page
   ═══════════════════════════════════════════════════════════════ */
#website-mode {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
#website-mode::-webkit-scrollbar { display: none; }
#website-mode.visible { display: block; }

.site-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(248,245,240,0.95) 0%,
    rgba(248,245,240,0.82) 15%,
    rgba(248,245,240,0.75) 35%,
    rgba(248,245,240,0.78) 55%,
    rgba(248,245,240,0.85) 75%,
    rgba(248,245,240,0.96) 100%
  );
}

/* Site navigation */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 26;
  background: linear-gradient(to bottom, rgba(248,245,240,0.92) 0%, rgba(248,245,240,0.4) 80%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 768px) { .site-nav { padding: 1.25rem 2.5rem; } }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-btn {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(201,169,110,0.5);
  background: rgba(201,169,110,0.08);
  color: #1C1917;
  font-family: 'Geist Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.nav-btn:hover {
  background: rgba(201,169,110,0.18);
  border-color: #C9A96E;
  color: #8B6B2A;
}
.nav-btn.outline {
  background: transparent;
  border-color: rgba(120,113,108,0.3);
  color: #78716C;
}
.nav-btn.outline:hover {
  border-color: rgba(201,169,110,0.5);
  color: #8B6B2A;
}

/* Hero section */
.site-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  z-index: 1;
}

.hero-content {
  max-width: 42rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideDown 0.8s ease 0.3s forwards;
}

.hero-eyebrow {
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  color: #C9A96E;
  margin-bottom: 1.5rem;
  font-family: 'Geist Mono', monospace;
}
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4.5rem, 14vw, 9rem);
  letter-spacing: 0.3em;
  color: #1C1917;
  line-height: 0.95;
  margin-bottom: 1rem;
}
.hero-divider {
  height: 1px;
  width: 6rem;
  background: linear-gradient(to right, transparent, #C9A96E, transparent);
  margin: 0 auto 1.25rem;
}
.hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #44403C;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 300;
  text-shadow: 0 1px 8px rgba(248,245,240,0.8);
}
.hero-desc {
  font-size: 0.6875rem;
  color: #44403C;
  line-height: 1.8;
  max-width: 30rem;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(248,245,240,1), 0 0 24px rgba(248,245,240,0.8);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-btn {
  padding: 0.8rem 2.25rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s;
  border: 1px solid;
}
.hero-btn.primary {
  background: rgba(201,169,110,0.12);
  border-color: rgba(201,169,110,0.6);
  color: #1C1917;
}
.hero-btn.primary:hover {
  background: rgba(201,169,110,0.22);
  border-color: #C9A96E;
  color: #8B6B2A;
}
.hero-btn.secondary {
  background: transparent;
  border-color: rgba(120,113,108,0.35);
  color: #78716C;
}
.hero-btn.secondary:hover {
  border-color: rgba(201,169,110,0.5);
  color: #8B6B2A;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 2rem;
  color: #1C1917;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.hero-stat-label {
  font-size: 0.4375rem;
  color: #78716C;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(248,245,240,0.9);
}
.stat-divider {
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, transparent, #C9A96E44, transparent);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: pulse 2.5s ease-in-out infinite;
}
.hero-scroll-cue span {
  font-size: 0.4375rem;
  letter-spacing: 0.35em;
  color: #A8A29E;
}
.hero-scroll-line {
  width: 1px;
  height: 1.5rem;
  background: linear-gradient(to bottom, #C9A96E, transparent);
  margin: 0.4rem auto 0;
}

/* Features section */
.site-features {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  background: rgba(248,245,240,0.92);
  backdrop-filter: blur(12px);
}
.features-inner {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}
.section-eyebrow {
  font-size: 0.4375rem;
  letter-spacing: 0.5em;
  color: #C9A96E;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: #1C1917;
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  text-align: left;
}
.feature-card {
  padding: 1.75rem;
  border: 1px solid rgba(201,169,110,0.2);
  background: rgba(255,255,255,0.5);
  transition: border-color 0.3s, background 0.3s;
}
.feature-card:hover {
  border-color: rgba(201,169,110,0.5);
  background: rgba(255,255,255,0.8);
}
.fc-icon {
  color: #C9A96E;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.75rem;
}
.feature-card h3 {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1C1917;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.feature-card p {
  font-size: 0.625rem;
  color: #78716C;
  line-height: 1.7;
}

/* Generic site sections */
.site-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  background: rgba(248,245,240,0.94);
  backdrop-filter: blur(12px);
}
.site-section.alt {
  background: rgba(237,232,223,0.92);
}
.section-inner {
  max-width: 60rem;
  margin: 0 auto;
}
.section-inner.center { text-align: center; }

/* Split grid (2 cards) */
.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.split-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(201,169,110,0.2);
  background: rgba(255,255,255,0.5);
}
.split-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 3.5rem;
  color: #C9A96E;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.split-card h3 {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1C1917;
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.split-card p {
  font-size: 0.625rem;
  color: #78716C;
  line-height: 1.8;
}

/* Timeline grid (3 cards) */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.timeline-card {
  padding: 2rem 1.5rem;
  border: 1px solid rgba(201,169,110,0.15);
  background: rgba(255,255,255,0.45);
  border-left: 2px solid rgba(201,169,110,0.5);
}
.tl-phase {
  font-family: 'Geist Mono', monospace;
  font-size: 0.4375rem;
  letter-spacing: 0.3em;
  color: #C9A96E;
  margin-bottom: 0.75rem;
}
.timeline-card h3 {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1C1917;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.timeline-card p {
  font-size: 0.625rem;
  color: #78716C;
  line-height: 1.8;
}

/* Location section */
.location-desc {
  font-size: 0.6875rem;
  color: #5c564f;
  line-height: 1.8;
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}
.location-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.loc-stat { text-align: center; }
.loc-num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 1.5rem;
  color: #1C1917;
  margin-bottom: 0.25rem;
}
.loc-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.4375rem;
  color: #A8A29E;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* CTA section */
.site-cta {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(248,245,240,0.75), rgba(248,245,240,0.92));
}
.cta-inner { max-width: 36rem; margin: 0 auto; }
.cta-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  color: #1C1917;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.cta-desc {
  font-size: 0.625rem;
  color: #78716C;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Demo badge */
.demo-badge {
  position: absolute;
  top: 5rem;
  right: 2rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.4375rem;
  letter-spacing: 0.35em;
  color: rgba(201,169,110,0.6);
  border: 1px solid rgba(201,169,110,0.3);
  padding: 0.3rem 0.75rem;
  z-index: 2;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 2rem;
  background: rgba(28,25,23,0.97);
  text-align: center;
}
.footer-inner {
  max-width: 36rem;
  margin: 0 auto;
}
.footer-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: #F8F5F0;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.footer-question {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6875rem;
  color: rgba(168,162,158,0.8);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.footer-cta-link {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  color: #C9A96E;
  letter-spacing: 0.2em;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,169,110,0.35);
  padding-bottom: 0.2rem;
  transition: border-color 0.3s, color 0.3s;
}
.footer-cta-link:hover {
  color: #DEC48A;
  border-color: #DEC48A;
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,169,110,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand .logo-box {
  background: rgba(255,255,255,0.06);
  border-color: rgba(201,169,110,0.3);
}
.footer-name {
  font-size: 0.5625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(248,245,240,0.6);
}
.footer-copy {
  font-size: 0.4375rem;
  color: rgba(168,162,158,0.4);
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════
   MODE NAVIGATION — visible in render & blueprint
   ═══════════════════════════════════════════════════════════════ */
#mode-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  display: none;
  gap: 0.25rem;
  background: rgba(248,245,240,0.75);
  border: 1px solid rgba(201,169,110,0.25);
  padding: 0.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#mode-nav.visible { display: flex; }
#mode-nav.blueprint-theme {
  background: rgba(10,22,40,0.85);
  border-color: rgba(68,136,204,0.3);
}

.mode-btn {
  padding: 0.35rem 0.875rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.4375rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: #78716C;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.mode-btn:hover { color: #1C1917; }
.mode-btn.active {
  background: rgba(201,169,110,0.15);
  color: #8B6B2A;
}
#mode-nav.blueprint-theme .mode-btn { color: rgba(68,136,204,0.5); }
#mode-nav.blueprint-theme .mode-btn:hover { color: rgba(68,136,204,0.9); }
#mode-nav.blueprint-theme .mode-btn.active {
  background: rgba(68,136,204,0.15);
  color: #4488cc;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE UI — Render mode overlay
   ═══════════════════════════════════════════════════════════════ */
#phase-ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  display: none;
}
#phase-ui.visible { display: block; }

/* Top bar */
#top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeSlideDown 0.5s ease forwards;
  background: linear-gradient(to bottom, rgba(32,28,24,0.7) 0%, rgba(32,28,24,0.35) 60%, transparent 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.logo-box {
  width: 2rem; height: 2rem;
  border: 1px solid rgba(201, 169, 110, 0.5);
  display: flex; align-items: center; justify-content: center;
  background: rgba(28,25,23,0.5);
  flex-shrink: 0;
}
.logo-box span {
  color: #C9A96E;
  font-size: 0.8125rem;
  font-weight: 400;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}
.logo-text { font-size: 0.5625rem; color: rgba(248,245,240,0.9); letter-spacing: 0.3em; text-transform: uppercase; font-weight: 400; }
.logo-sub  { font-size: 0.5rem; color: rgba(248,245,240,0.5); letter-spacing: 0.12em; }

/* Right phase dots */
#phase-dots {
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeSlideRight 0.5s ease 0.5s forwards;
}
@media (min-width: 768px) { #phase-dots { right: 2rem; } }

.phase-dot-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}
.phase-dot-label {
  font-size: 0.4375rem;
  letter-spacing: 0.12em;
  transition: color 0.5s, opacity 0.5s;
  display: none;
}
@media (min-width: 768px) { .phase-dot-label { display: block; } }
.phase-dot-label.active   { color: #DEC48A; opacity: 1; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.phase-dot-label.complete { color: rgba(248,245,240,0.5); opacity: 0.8; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.phase-dot-label.inactive { color: rgba(248,245,240,0.3); opacity: 0.6; }

.phase-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  transition: background 0.5s, box-shadow 0.5s, transform 0.5s;
  background: #D6D0C8;
}
.phase-dot.active {
  background: #C9A96E;
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.5);
  transform: scale(1.3);
}
.phase-dot.complete { background: rgba(201, 169, 110, 0.4); }

/* Bottom info bar */
#bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(32,28,24,0.88) 0%, rgba(32,28,24,0.72) 50%, rgba(32,28,24,0.0) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (min-width: 768px) { #bottom-bar { padding: 2rem; } }

.phase-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
#phase-icon { color: #C9A96E; font-size: 0.75rem; }
#phase-name {
  font-size: clamp(0.75rem, 2vw, 0.9375rem);
  font-family: 'Geist Mono', 'Courier New', monospace;
  letter-spacing: 0.12em;
  color: #F8F5F0;
  transition: opacity 0.4s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
#phase-desc {
  font-size: clamp(0.5625rem, 1.5vw, 0.6875rem);
  color: rgba(248,245,240,0.7);
  margin-left: 1.625rem;
  max-width: 28rem;
  transition: opacity 0.4s;
  line-height: 1.6;
}

.progress-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.progress-track {
  flex: 1;
  height: 1px;
  background: rgba(248,245,240,0.2);
  position: relative;
}
#progress-fill {
  height: 100%;
  background: linear-gradient(to right, #C9A96E, #DEC48A);
  width: 0%;
  transition: width 0.1s linear;
}
.phase-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(248,245,240,0.25);
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.5625rem;
  font-family: 'Geist Mono', 'Courier New', monospace;
}
.stat { text-align: right; }
.stat-label { color: rgba(248,245,240,0.45); letter-spacing: 0.12em; }
.stat-value { color: #DEC48A; }
.stat-value span { color: rgba(248,245,240,0.4); }

/* Scroll indicator (bottom right) */
#scroll-indicator {
  position: absolute;
  bottom: 1rem; right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  animation: pulse 2.5s ease-in-out infinite;
}
@media (min-width: 768px) { #scroll-indicator { right: 2rem; } }
#scroll-indicator span {
  font-size: 0.4375rem;
  color: rgba(248,245,240,0.5);
  letter-spacing: 0.25em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.scroll-line {
  width: 1px; height: 1.5rem;
  background: linear-gradient(to bottom, #C9A96E, transparent);
}

/* Left feature tags */
#feature-tags {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.5s;
}
@media (min-width: 768px) { #feature-tags { left: 2rem; } }
#feature-tags.visible { opacity: 1; }

.feature-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s, transform 0.4s;
}
.feature-tag.visible { opacity: 1; transform: translateX(0); }
.feature-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.7);
  flex-shrink: 0;
}
.feature-label {
  font-size: 0.5rem;
  color: rgba(248,245,240,0.65);
  letter-spacing: 0.12em;
  display: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
@media (min-width: 768px) { .feature-label { display: block; } }

/* ═══════════════════════════════════════════════════════════════
   BLUEPRINT OVERLAY
   ═══════════════════════════════════════════════════════════════ */
#blueprint-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: none;
}
#blueprint-overlay.visible { display: block; }

.bp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(68,136,204,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68,136,204,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bp-corner {
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-color: rgba(68,136,204,0.3);
  border-style: solid;
  border-width: 0;
}
.bp-corner.tl { top: 1.5rem; left: 1.5rem; border-top-width: 1px; border-left-width: 1px; }
.bp-corner.tr { top: 1.5rem; right: 1.5rem; border-top-width: 1px; border-right-width: 1px; }
.bp-corner.bl { bottom: 1.5rem; left: 1.5rem; border-bottom-width: 1px; border-left-width: 1px; }
.bp-corner.br { bottom: 1.5rem; right: 1.5rem; border-bottom-width: 1px; border-right-width: 1px; }

.bp-title-block {
  position: absolute;
  bottom: 2rem;
  left: 2.5rem;
}
.bp-title {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  color: rgba(68,136,204,0.7);
  letter-spacing: 0.35em;
  font-weight: 700;
}
.bp-subtitle {
  font-family: 'Geist Mono', monospace;
  font-size: 0.4375rem;
  color: rgba(68,136,204,0.4);
  letter-spacing: 0.25em;
  margin-top: 0.25rem;
}

.bp-legend {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  text-align: right;
  font-family: 'Geist Mono', monospace;
  font-size: 0.4375rem;
  color: rgba(68,136,204,0.4);
  letter-spacing: 0.15em;
  line-height: 1.8;
}

.bp-phase-label {
  position: absolute;
  top: 4rem;
  left: 2.5rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.5625rem;
  color: rgba(68,136,204,0.6);
  letter-spacing: 0.3em;
  transition: opacity 0.4s;
}

.bp-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Geist Mono', monospace;
  font-size: 0.375rem;
  color: rgba(68,136,204,0.3);
  letter-spacing: 0.4em;
  animation: pulse 2.5s ease-in-out infinite;
}

/* Floor plan labels (inside blueprint overlay) */
#floorplan-labels {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
#floorplan-labels.visible { display: block; opacity: 1; }

.fp-label {
  position: absolute;
  font-family: 'Geist Mono', monospace;
  font-size: 0.625rem;
  color: rgba(68,136,204,0.85);
  letter-spacing: 0.2em;
  text-align: center;
  line-height: 1.5;
}
.fp-label span {
  font-size: 0.4375rem;
  color: rgba(68,136,204,0.45);
  letter-spacing: 0.15em;
}

.fp-unit-a { top: 28%; left: 24%; transform: translate(-50%, -50%); }
.fp-unit-b { top: 28%; left: 76%; transform: translate(-50%, -50%); }
.fp-unit-c { top: 68%; left: 24%; transform: translate(-50%, -50%); }
.fp-unit-d { top: 68%; left: 76%; transform: translate(-50%, -50%); }
.fp-elevator {
  top: 48%; left: 50%; transform: translate(-50%, -50%);
  color: rgba(100,170,238,0.9);
  font-size: 0.5625rem;
}
.fp-corridor-l { top: 48%; left: 16%; transform: translate(-50%, -50%); font-size: 0.4375rem; color: rgba(68,136,204,0.5); }
.fp-corridor-r { top: 48%; left: 84%; transform: translate(-50%, -50%); font-size: 0.4375rem; color: rgba(68,136,204,0.5); }

.fp-info {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Geist Mono', monospace;
  font-size: 0.5rem;
  color: rgba(68,136,204,0.5);
  letter-spacing: 0.3em;
  white-space: nowrap;
}

/* ── Initial scroll hint ──────────────────────────────────── */
#scroll-hint {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(248,245,240,0.25) 100%);
}
.scroll-hint-text {
  text-align: center;
  animation: pulse 2.5s ease-in-out infinite;
}
.scroll-hint-text p {
  color: #A8A29E;
  font-size: 0.625rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.scroll-hint-line {
  width: 1px; height: 2rem;
  background: linear-gradient(to bottom, #C9A96E, transparent);
  margin: 0 auto;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeSlideDown {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideRight {
  to { opacity: 1; transform: translateY(-50%); }
}
@keyframes consoleFadeIn {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes blink {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}
