@font-face {
  font-family: DM;
  src: url('assets/fonts/dm-sans-400.b0ae3e89a7d3ef2b.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url('assets/fonts/dm-sans-500.376427b5322148d8.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url('assets/fonts/dm-sans-600.b79a2ea7a38f33fd.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: ArchivoBlack;
  src: url('assets/fonts/ArchivoBlack-Regular.dd9a89a019b4849f.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

/* ==========================================================================
   STORM GOLD PALETTE (Blue Ridge Twilight & Warm Brass Gold)
   ========================================================================== */
:root {
  --bg-deep: #071214;
  --bg-elevated: #0e2024;
  --bg-glass: rgba(13, 30, 34, 0.75);
  --bg-glass-heavy: rgba(9, 22, 25, 0.9);
  --text-main: #f2f7f5;
  --text-muted: #94b0ad;
  --border-subtle: rgba(229, 193, 88, 0.16);
  --border-highlight: rgba(229, 193, 88, 0.5);
  --accent-primary: #e5c158;
  --accent-secondary: #5eead4;
  --accent-cyan: #38bdf8;
  --accent-glow: rgba(229, 193, 88, 0.32);
  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f3dc8b 50%, #4fd1c5 100%);
  --gradient-button: linear-gradient(135deg, #d9ae3e 0%, #9c7216 100%);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: DM, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-main);
  overflow-x: clip;
  transition: background-color 0.4s ease, color 0.4s ease;
}

button,
a {
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  background: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 4px;
}

p, h1, h2, h3 {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 20px;
  padding: 12px 18px;
  background: var(--accent-primary);
  color: #000;
  font-weight: 600;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus {
  top: 20px;
}

/* ==========================================================================
   TYPOGRAPHY & SHARED TOKENS
   ========================================================================== */
.serif-italic {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tiny-square {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, background 0.22s ease;
  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}

.button:hover {
  transform: translateY(-2px);
  @media (prefers-reduced-motion: reduce) {
    transform: none;
  }
}

.button-glow {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.button-glow:hover {
  box-shadow: 0 12px 36px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.button-primary {
  background: var(--text-main);
  color: #07090d;
}
.button-primary:hover {
  background: #fff;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}
.button-ghost:hover {
  border-color: var(--accent-secondary);
  background: rgba(255, 255, 255, 0.11);
}

.full-width {
  width: 100%;
}

/* ==========================================================================
   TOP SCROLL PROGRESS & FLOATING GLASS HEADER
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 120;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-hero);
  box-shadow: 0 0 12px var(--accent-primary);
  transform-origin: left center;
}

/* Progressive enhancement: CSS Scroll-Driven Animation when supported */
@supports (animation-timeline: scroll()) {
  .scroll-progress-fill {
    width: 100%;
    transform: scaleX(0);
    animation: scroll-progress-grow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes scroll-progress-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

.site-header {
  position: fixed;
  top: 14px;
  left: 24px;
  right: 24px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 10px 18px 10px 22px;
  border-radius: 999px;
  background: var(--bg-glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 100;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.brand img {
  width: 176px;
  height: auto;
}

.chapter-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chapter-nav a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.chapter-nav a:hover,
.chapter-nav a.is-active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.09);
}

.nav-index {
  font-family: ArchivoBlack, sans-serif;
  font-size: 9px;
  color: var(--accent-primary);
  margin-right: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Live Palette Switcher */
.palette-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--border-subtle);
}

.palette-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.palette-dot.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.swatch-obsidian { background: linear-gradient(135deg, #1b2230, #ff8a2b); }
.swatch-thermal { background: linear-gradient(135deg, #00f0ff, #ff2e7e); }
.swatch-blueridge { background: linear-gradient(135deg, #0f383c, #e5c158); }

.header-cta {
  padding: 10px 18px;
  font-size: 12px;
}

/* ==========================================================================
   HERO PROLOGUE (APPLE KEYNOTE OPENING)
   ========================================================================== */
.hero-prologue {
  position: relative;
  min-height: 92vh;
  padding: 150px 32px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: clip;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

.orb-1 {
  width: 580px;
  height: 580px;
  top: -120px;
  left: 12%;
  background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}

.orb-2 {
  width: 520px;
  height: 520px;
  bottom: -140px;
  right: 10%;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  opacity: 0.25;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-secondary);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
}

.hero-display {
  font-size: clamp(46px, 7.2vw, 96px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin-bottom: 26px;
}

.hero-sublead {
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.telemetry-pill {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.telemetry-num {
  display: block;
  font-family: ArchivoBlack, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.telemetry-pill strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.telemetry-pill small {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   APPLE-STYLE SCROLLYTELLING RUNWAY & STICKY STAGE
   ========================================================================== */
.scrolly-runway {
  position: relative;
  /* Tall scroll track so each chapter gets generous scroll distance */
  min-height: 520vh;
}

.sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: clip;
  z-index: 1;
}

.stage-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  background: #05070b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: clip;
}

/* Top HUD inside Sticky Stage */
.stage-hud-top {
  position: relative;
  z-index: 15;
  margin-top: 84px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.hud-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
}

.hud-live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
}

.hud-chapter-badge {
  font-family: ArchivoBlack, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
}

.hud-status-text {
  font-size: 12px;
  color: var(--text-main);
  padding-left: 10px;
  border-left: 1px solid var(--border-subtle);
}

.hud-right {
  display: flex;
  gap: 10px;
}

.hud-metric {
  padding: 7px 14px;
  border-radius: 12px;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  text-align: right;
}

.hud-metric-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hud-metric-val {
  font-family: ArchivoBlack, sans-serif;
  font-size: 11px;
  color: var(--accent-secondary);
}

/* 3D Camera Rig & Registered Image Stack */
.camera-rig {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 35%;
  will-change: transform;
  transition: transform 0.12s linear;
  @media (prefers-reduced-motion: reduce) {
    transform: none !important;
    transition: none;
  }
}

.layer-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  user-select: none;
  pointer-events: none;
}

/* Layer states controlled smoothly by scroll progress */
.layer-roof-before {
  opacity: 0;
  clip-path: inset(0 0 0 0%);
  will-change: opacity, clip-path;
}

.layer-insulation {
  opacity: 0;
  clip-path: inset(0 0 0 0);
  will-change: opacity, clip-path;
}

.layer-outage {
  opacity: 0;
  will-change: opacity;
}

/* X-Ray Interactive Lens Layer */
.xray-lens-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: circle(0px at 50% 35%);
  transition: opacity 0.25s ease;
  z-index: 6;
}

.stage-viewport[data-xray="true"] .xray-lens-layer {
  opacity: 1;
  clip-path: circle(135px at var(--xray-x, 48%) var(--xray-y, 28%));
}

.xray-reticle {
  position: absolute;
  left: var(--xray-x, 48%);
  top: var(--xray-y, 28%);
  width: 270px;
  height: 270px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.35), inset 0 0 24px rgba(0, 240, 255, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
}

.xray-reticle span {
  font-family: ArchivoBlack, sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  background: rgba(5, 12, 20, 0.88);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-cyan);
}

.stage-viewport[data-xray="true"] .xray-reticle {
  opacity: 1;
}

/* Laser Scan Line for Roofing Shingle Wipe */
.roof-laser-line {
  position: absolute;
  top: 6%;
  bottom: 36%;
  left: var(--roof-wipe-pct, 50%);
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
  box-shadow: 0 0 22px 4px var(--accent-primary);
  opacity: 0;
  pointer-events: none;
  z-index: 7;
  transition: opacity 0.25s ease;
}

.stage-viewport[data-chapter="roofing"] .roof-laser-line {
  opacity: 1;
}

.laser-tag {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.88);
  border: 1px solid var(--accent-primary);
  font-family: ArchivoBlack, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
}

/* Blueprint & Thermal SVG Overlay */
.blueprint-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 7;
}

.svg-group {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.stage-viewport[data-chapter="roofing"] .svg-roofing,
.stage-viewport[data-chapter="insulation"] .svg-insulation,
.stage-viewport[data-chapter="generators"] .svg-generators {
  opacity: 1;
}

.callout-line {
  stroke: var(--accent-secondary);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.callout-dot {
  fill: var(--accent-primary);
  stroke: #fff;
  stroke-width: 2.5;
}

.callout-pill {
  fill: rgba(8, 12, 18, 0.86);
  stroke: var(--accent-secondary);
  stroke-width: 1.5;
}

.callout-pill-warm {
  stroke: var(--accent-primary);
}

.callout-text {
  fill: #ffffff;
  font-family: ArchivoBlack, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.thermal-zone-poly {
  fill: url(#thermalGrad);
  stroke: var(--accent-primary);
  stroke-width: 2.5;
  stroke-dasharray: 8 4;
}

.heat-reject-arrow {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comfort-arc {
  fill: none;
  stroke: var(--accent-secondary);
  stroke-width: 3;
  stroke-dasharray: 6 6;
}

.power-circuit-line {
  fill: none;
  stroke: var(--accent-secondary);
  stroke-width: 3.5;
  stroke-dasharray: 10 6;
  animation: circuit-flow 1.2s linear infinite;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
  }
}

@keyframes circuit-flow {
  to {
    stroke-dashoffset: -32;
  }
}

.circuit-node {
  fill: var(--accent-primary);
  stroke: #fff;
  stroke-width: 2;
}

/* Storm Canvas */
.storm-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  background:
    radial-gradient(circle at 50% 42%, transparent 42%, rgba(5, 7, 12, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.65) 0%, transparent 22%, transparent 74%, rgba(5, 7, 12, 0.9) 100%);
}

/* Bottom Stage Interactive Dock */
.stage-dock {
  position: relative;
  z-index: 15;
  margin: 0 auto 22px;
  width: min(1160px, calc(100% - 40px));
  padding: 10px 16px;
  border-radius: 22px;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.dock-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dock-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.dock-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.dock-tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px var(--border-highlight);
}

.dock-num {
  font-family: ArchivoBlack, sans-serif;
  font-size: 10px;
  color: var(--accent-primary);
}

.dock-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.xray-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--text-main);
  transition: background 0.2s, border-color 0.2s;
}

.xray-toggle-btn[aria-pressed="true"] {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.28);
}

.xray-icon {
  color: var(--accent-cyan);
  font-size: 15px;
}

.scrubber-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scrubber-label {
  font-family: ArchivoBlack, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

#timeline-scrubber {
  width: 150px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* ==========================================================================
   FLOATING SCROLLYTELLING STORY CARDS
   ========================================================================== */
.story-steps {
  position: relative;
  z-index: 10;
  margin-top: -100vh;
  pointer-events: none;
  padding-bottom: 18vh;
}

.story-step {
  min-height: 105vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 140px 4.5vw 110px;
}

.story-step:nth-child(even) {
  justify-content: flex-start;
}

.glass-card {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--border-subtle);
  border-radius: 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.story-card {
  pointer-events: auto;
  width: min(460px, 100%);
  padding: 34px 32px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.story-step.is-active .story-card {
  border-color: var(--border-highlight);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.system-badge {
  font-family: ArchivoBlack, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
}

.progress-Readout {
  font-family: ArchivoBlack, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-secondary);
}

.story-eyebrow {
  font-family: ArchivoBlack, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.story-card h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.story-card p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-muted);
}

.spec-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.spec-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.spec-list strong {
  color: var(--text-main);
}

.interactive-tip {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.interactive-tip p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-main);
}

.story-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--accent-secondary);
}

.card-actions {
  margin-top: 24px;
}

.disclosure-bar {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   INTERACTIVE OUTAGE LOAD & GENERATOR LAB
   ========================================================================== */
.section-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 110px 36px;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
}

.sim-header h2,
.section-heading h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-top: 14px;
}

.sim-lead {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.breaker-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.breaker-tile {
  text-align: left;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.breaker-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
}

.breaker-tile.is-on {
  background: linear-gradient(160deg, rgba(255, 138, 43, 0.14), rgba(255, 255, 255, 0.04));
  border-color: var(--border-highlight);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.breaker-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breaker-tag {
  font-family: ArchivoBlack, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.breaker-tile.is-on .breaker-tag {
  color: var(--accent-secondary);
}

.breaker-switch {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 3px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease;
}

.breaker-tile.is-on .breaker-switch {
  background: var(--accent-primary);
}

.switch-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.breaker-tile.is-on .switch-knob {
  transform: translateX(18px);
}

.breaker-tile h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.breaker-tile p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.breaker-kw {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.kw-val {
  font-family: ArchivoBlack, sans-serif;
  color: var(--accent-secondary);
}

/* Right Telemetry Readout */
.sim-readout {
  padding: 32px;
  position: sticky;
  top: 100px;
}

.kw-meter-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 8px;
}

#total-kw-number {
  font-family: ArchivoBlack, sans-serif;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kw-meter-value small {
  font-family: ArchivoBlack, sans-serif;
  font-size: 20px;
  color: var(--text-muted);
}

.kw-tier-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 20px;
}

.meter-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.button-dark {
  background: var(--gradient-button);
  color: #fff;
}

.meter-bar-fill {
  width: 48%;
  height: 100%;
  border-radius: 999px;
  background: var(--gradient-button);
  box-shadow: 0 0 16px var(--accent-primary);
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.meter-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
}

.synergy-box {
  margin: 24px 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.synergy-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.synergy-toggle input {
  margin-top: 4px;
  accent-color: var(--accent-cyan);
  width: 18px;
  height: 18px;
}

.synergy-copy strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 3px;
}

.synergy-copy small {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  display: block;
}

.readout-note {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* ==========================================================================
   APPLE BENTO GRID: APPROACH & CRAFT
   ========================================================================== */
.bento-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  padding: 36px;
  border-radius: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bento-wide {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(255, 138, 43, 0.1) 100%);
}

.bento-accent {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, rgba(255, 138, 43, 0.16), rgba(0, 240, 255, 0.08));
  border-color: var(--border-highlight);
}

.bento-num {
  font-family: ArchivoBlack, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
}

.bento-card h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.bento-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 680px;
}

.bento-visual-chip {
  margin-top: 8px;
  display: inline-flex;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--accent-secondary);
}

.bento-mark {
  flex-shrink: 0;
  opacity: 0.9;
}

/* ==========================================================================
   CONTACT FINALE & FOOTER
   ========================================================================== */
.contact-finale {
  position: relative;
  text-align: center;
  border-radius: 36px;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, #05070b 100%);
  border: 1px solid var(--border-subtle);
  overflow: clip;
  margin-bottom: 64px;
}

.finale-watermark {
  position: absolute;
  right: -60px;
  bottom: -90px;
  opacity: 0.035;
  pointer-events: none;
}

.contact-finale h2 {
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 18px 0;
}

.finale-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.finale-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-email-pill {
  font-size: 13px;
  color: var(--accent-secondary);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}
.contact-email-pill:hover {
  text-decoration: underline;
}

.site-footer {
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand img {
  width: 165px;
  height: auto;
}

.footer-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-meta a {
  color: var(--text-main);
}

/* ==========================================================================
   PRIVACY POLICY PAGE
   ========================================================================== */
.policy-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 0;
}

.policy-header img {
  width: 165px;
  height: auto;
}

.policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 72px;
  line-height: 1.7;
  color: var(--text-muted);
}

.policy h1,
.policy h2 {
  color: var(--text-main);
  line-height: 1.2;
}

.policy h1 {
  font-size: clamp(32px, 6vw, 48px);
  margin: 0 0 8px;
}

.policy h2 {
  font-size: 20px;
  margin: 40px 0 12px;
}

.policy strong,
.policy a {
  color: var(--text-main);
}

.policy p,
.policy ul {
  margin: 0 0 16px;
}

.policy ul {
  padding-left: 20px;
}

.policy li + li {
  margin-top: 8px;
}

.policy-updated {
  font-size: 14px;
}

.policy-callout {
  padding: 16px 20px;
  border: 1px solid var(--border-highlight);
  border-radius: 12px;
}

/* ==========================================================================
   MODAL DIALOG (WITH @starting-style & allow-discrete)
   ========================================================================== */
dialog {
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 42px 36px 34px;
  border-radius: 28px;
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition:
    opacity 0.24s ease-out,
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    display 0.24s allow-discrete,
    overlay 0.24s allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

dialog::backdrop {
  background: rgba(4, 6, 12, 0.76);
  backdrop-filter: blur(10px);
}

dialog h2 {
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 14px 0 16px;
}

dialog > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.dialog-close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 28px;
  color: var(--text-muted);
  padding: 4px 10px;
}
.dialog-close:hover {
  color: #fff;
}

.inquiry-note {
  margin: 24px 0;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
}

.inquiry-note p {
  margin-top: 4px;
  color: var(--text-muted);
}

.email-action {
  width: 100%;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .chapter-nav {
    display: none;
  }
  .sim-grid {
    grid-template-columns: 1fr;
  }
  .sim-readout {
    position: static;
  }
  .stage-hud-top {
    padding: 0 20px;
  }
  .hud-right {
    display: none;
  }
  .stage-dock {
    flex-direction: column;
    align-items: stretch;
  }
  .dock-tabs,
  .dock-tools {
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .site-header {
    left: 12px;
    right: 12px;
    padding: 8px 12px;
  }
  .brand img {
    width: 138px;
  }
  .swatch-label {
    display: none;
  }
  .hero-prologue {
    padding: 120px 18px 48px;
  }
  .hero-telemetry-strip,
  .breaker-board,
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide,
  .bento-accent {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  .sim-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .story-step {
    padding: 0 16px;
    justify-content: center !important;
  }
  .story-card {
    padding: 24px 20px;
  }
  .section-wrap {
    padding: 72px 20px;
  }
  .footer-meta {
    text-align: left;
  }
}
