/* ==========================================================================
   Saturn Pool Company — Concept Preview by Zenith Lab
   Archetype #6: Day-to-Night Transformation Stage
   Typography: Playfair Display (display) + DM Sans (body)
   Color Space: Pure OKLCH desert travertine, azure caustics, fire-bowl amber
   ========================================================================== */

:root {
  /* Daylight Travertine Surface Tokens */
  --stone-ground: oklch(0.956 0.014 78);
  --stone-surface: oklch(0.922 0.019 75);
  --stone-elevated: oklch(0.978 0.008 80);
  --stone-border: oklch(0.842 0.022 72);
  --stone-border-strong: oklch(0.74 0.026 70);

  /* Daylight Ink Tokens */
  --ink-primary: oklch(0.205 0.018 58);
  --ink-secondary: oklch(0.36 0.020 60);
  --ink-muted: oklch(0.47 0.018 64);

  /* Midnight Desert Sanctuary Tokens */
  --night-ground: oklch(0.145 0.022 248);
  --night-surface: oklch(0.195 0.025 245);
  --night-elevated: oklch(0.24 0.028 242);
  --night-border: oklch(0.32 0.026 240);
  --night-ink: oklch(0.955 0.012 80);
  --night-ink-muted: oklch(0.77 0.016 78);

  /* Craft Accents — Azure Water & Fire-Bowl Amber */
  --azure-deep: oklch(0.42 0.11 224);
  --azure-water: oklch(0.55 0.135 215);
  --azure-glow: oklch(0.76 0.135 204);
  --azure-wash: oklch(0.91 0.035 210);

  --fire-deep: oklch(0.52 0.155 46);
  --fire-amber: oklch(0.65 0.168 52);
  --fire-glow: oklch(0.79 0.155 66);
  --fire-wash: oklch(0.93 0.04 68);

  /* Cutaway Strata Tokens */
  --strata-caliche: oklch(0.62 0.065 65);
  --strata-soil: oklch(0.45 0.055 56);
  --strata-rebar: oklch(0.73 0.04 235);
  --strata-shotcrete: oklch(0.78 0.014 78);

  /* Transparent Scrims */
  --scrim-hero-start: oklch(0.14 0.022 248 / 0.82);
  --scrim-hero-mid: oklch(0.14 0.022 248 / 0.42);
  --scrim-hero-end: oklch(0.14 0.022 248 / 0.12);
  --glass-light: oklch(0.975 0.009 80 / 0.86);
  --glass-night: oklch(0.165 0.024 246 / 0.84);
  --shadow-soft: oklch(0.18 0.02 60 / 0.12);
  --shadow-deep: oklch(0.08 0.02 250 / 0.44);

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid Type Scale */
  --text-xs: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-sm: clamp(0.9375rem, 0.91rem + 0.15vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --text-lg: clamp(1.15rem, 1.06rem + 0.4vw, 1.35rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2.05rem);
  --text-2xl: clamp(2.05rem, 1.55rem + 2vw, 3.15rem);
  --text-hero: clamp(2.55rem, 1.7rem + 3.4vw, 4.45rem);

  /* Layout & Geometry */
  --container-max: 1320px;
  --gutter: clamp(1.1rem, 3.2vw, 3rem);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Dynamic Day-to-Night Progress (0 = sunlit, 1 = midnight) */
  --stage-night: 0;
}

/* Base Reset & Floor */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  background-color: var(--stone-ground);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--stone-ground);
  color: var(--ink-primary);
  padding-bottom: 4.25rem;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--fire-amber);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Display Headings — Strict Playfair Display, Single Weight & Color */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  min-width: 0;
}

p {
  margin: 0;
}

/* ==========================================================================
   Header Navigation (Clean, Accessible, Zero Collision on 390px Mobile)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--glass-light);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stone-border);
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.site-header.is-night {
  background-color: var(--glass-night);
  border-bottom-color: var(--night-border);
  color: var(--night-ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 70px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-crest {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 0.88rem + 0.45vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.site-header.is-night .brand-sub {
  color: var(--night-ink-muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.65rem;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-secondary);
  padding-block: 0.35rem;
  position: relative;
  transition: color 0.2s ease;
}

.site-header.is-night .nav-links a {
  color: var(--night-ink-muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--azure-deep);
}

.site-header.is-night .nav-links a:hover,
.site-header.is-night .nav-links a:focus-visible {
  color: var(--fire-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--fire-amber);
  color: var(--night-ground);
  border-color: var(--fire-amber);
}

.btn-primary:hover {
  background-color: var(--fire-glow);
  border-color: var(--fire-glow);
}

.btn-secondary {
  background-color: var(--stone-elevated);
  color: var(--ink-primary);
  border-color: var(--stone-border-strong);
}

.btn-secondary:hover {
  background-color: var(--stone-surface);
  border-color: var(--ink-primary);
}

.btn-ghost-light {
  background-color: var(--glass-night);
  color: var(--night-ink);
  border-color: var(--night-ink-muted);
}

.btn-ghost-light:hover {
  background-color: var(--night-elevated);
  border-color: var(--night-ink);
}

.btn-tel-header {
  background-color: var(--azure-deep);
  color: var(--night-ink);
  border-color: var(--azure-deep);
  padding-inline: 0.68rem;
  font-size: 0.8rem;
  gap: 0.38rem;
}

.btn-tel-header:hover {
  background-color: var(--azure-water);
  border-color: var(--azure-water);
}

.btn-header-cta {
  display: none;
}

/* ==========================================================================
   Hero Section — Full-Bleed Architectural Day-to-Night Preview Opening
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--night-ground);
  color: var(--night-ink);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s ease;
}

.hero-photo-night {
  opacity: 0;
}

.hero.hero-night-active .hero-photo-night {
  opacity: 1;
}

.hero-caustics {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: screen;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    90deg,
    var(--scrim-hero-start) 0%,
    var(--scrim-hero-mid) 56%,
    var(--scrim-hero-end) 100%
  ),
  linear-gradient(
    180deg,
    oklch(0.14 0.02 248 / 0.25) 0%,
    oklch(0.14 0.02 248 / 0.14) 45%,
    oklch(0.14 0.022 248 / 0.86) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 5;
  padding-top: clamp(2.25rem, 5vh, 4.25rem);
  padding-bottom: clamp(4.25rem, 7vh, 4.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: end;
}

.hero-copy {
  max-width: 40rem;
}

.hero-meta-line {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--fire-glow);
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.8rem;
  background-color: var(--glass-night);
  border: 1px solid var(--night-border);
  border-radius: var(--radius-sm);
}

.hero-title {
  font-size: var(--text-hero);
  line-height: 1.04;
  color: var(--night-ink);
  margin-bottom: 1.1rem;
  max-width: 14ch;
}

.hero-lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--night-ink);
  max-width: 52ch;
  margin-bottom: 1.65rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-ambient-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  background-color: var(--glass-night);
  border: 1px solid var(--night-border);
  border-radius: var(--radius-md);
  width: fit-content;
  backdrop-filter: blur(12px);
}

.ambient-btn {
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  border: 0;
  background-color: transparent;
  color: var(--night-ink-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ambient-btn.is-active {
  background-color: var(--fire-amber);
  color: var(--night-ground);
}

.ambient-btn:hover:not(.is-active) {
  color: var(--night-ink);
  background-color: var(--night-elevated);
}

/* Architectural Proof Ledger below Hero */
.proof-ledger {
  background-color: var(--stone-elevated);
  border-bottom: 1px solid var(--stone-border);
}

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

.proof-cell {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--stone-border);
  border-right: 1px solid var(--stone-border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.proof-cell:nth-child(even) {
  border-right: 0;
}

.proof-value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.65rem);
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.15;
}

.proof-label {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/* ==========================================================================
   SIGNATURE SHOWPIECE A: 300vh GSAP ScrollTrigger Day-to-Night & Cutaway Stage
   ========================================================================== */
.transformation-section {
  position: relative;
  background-color: var(--night-ground);
  color: var(--night-ink);
  transition: background-color 0.2s linear;
}

.stage-intro-band {
  background-color: var(--stone-ground);
  color: var(--ink-primary);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--stone-border);
}

.section-header-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: end;
}

.section-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--azure-deep);
  margin-bottom: 0.6rem;
}

.section-heading {
  font-size: var(--text-2xl);
  color: var(--ink-primary);
  max-width: 22ch;
}

.section-lead {
  font-size: var(--text-base);
  color: var(--ink-secondary);
  max-width: 56ch;
}

/* Pinned ScrollTrigger Stage */
.stage-pin-wrapper {
  position: relative;
  background-color: var(--night-ground);
}

.stage-viewport {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(1.25rem, 2.5vh, 2.25rem);
}

.stage-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* Left/Main Visual Architectural Stage */
.stage-canvas-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--night-surface);
  border: 1px solid var(--night-border);
  box-shadow: 0 28px 64px var(--shadow-deep);
  aspect-ratio: 16 / 10;
  min-height: 330px;
}

.stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.stage-photo-night {
  opacity: 0;
  will-change: opacity;
}

.stage-caustics-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

/* Submerged 6-Layer Hydraulic Engineering Cutaway Overlay */
.cutaway-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(
    180deg,
    oklch(0.15 0.025 246 / 0.12) 0%,
    oklch(0.14 0.026 248 / 0.88) 42%,
    oklch(0.12 0.022 250 / 0.96) 100%
  );
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  padding: clamp(0.65rem, 2vw, 1.5rem);
  will-change: opacity, transform;
}

.cutaway-overlay.is-interactive {
  pointer-events: auto;
}

.cutaway-svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.cutaway-layer {
  will-change: transform, opacity;
}

.flow-pulse {
  stroke-dasharray: 10 14;
  animation: hydraulicFlow 1.8s linear infinite;
}

@keyframes hydraulicFlow {
  to {
    stroke-dashoffset: -48;
  }
}

.fire-flame-glow {
  transform-origin: center bottom;
  animation: flameFlicker 2.2s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
  0% {
    opacity: 0.78;
    transform: scaleY(0.95);
  }
  100% {
    opacity: 1;
    transform: scaleY(1.08);
  }
}

/* Interactive Hotspots Over Stage */
.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.hotspot-pin {
  position: absolute;
  pointer-events: auto;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--night-ink);
  background-color: var(--azure-deep);
  color: var(--night-ink);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px var(--shadow-deep);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hotspot-pin:hover,
.hotspot-pin.is-active {
  background-color: var(--fire-amber);
  color: var(--night-ground);
  border-color: var(--fire-glow);
  transform: translate(-50%, -50%) scale(1.12);
}

.stage-hud-top {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
}

.stage-phase-pill {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background-color: var(--glass-night);
  border: 1px solid var(--night-border);
  color: var(--night-ink);
  font-size: var(--text-xs);
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.stage-clock-pill {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  background-color: var(--glass-night);
  border: 1px solid var(--night-border);
  color: var(--fire-glow);
  font-size: var(--text-xs);
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Right Engineering Narrative & Scrubber Console */
.stage-console {
  background-color: var(--night-surface);
  border: 1px solid var(--night-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.console-chapter-index {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fire-glow);
  margin-bottom: 0.4rem;
}

.console-title {
  font-size: var(--text-xl);
  color: var(--night-ink);
  margin-bottom: 0.75rem;
}

.console-desc {
  font-size: var(--text-sm);
  color: var(--night-ink-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.console-spec-box {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--night-elevated);
  border-left: 3px solid var(--azure-glow);
  font-size: var(--text-xs);
  color: var(--night-ink);
}

.console-spec-title {
  font-weight: 700;
  color: var(--azure-glow);
  margin-bottom: 0.25rem;
}

/* Mode Buttons + Manual Scrubber */
.stage-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.mode-btn {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--night-border);
  background-color: var(--night-ground);
  color: var(--night-ink-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mode-btn.is-active {
  background-color: var(--azure-deep);
  border-color: var(--azure-glow);
  color: var(--night-ink);
}

.mode-btn:hover:not(.is-active) {
  border-color: var(--night-ink-muted);
  color: var(--night-ink);
}

.scrubber-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.scrubber-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--night-ink-muted);
}

.stage-range {
  width: 100%;
  accent-color: var(--fire-amber);
  cursor: pointer;
  height: 28px;
}

.console-specs-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--night-border);
}

.spec-mini {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.spec-mini-k {
  font-size: 0.75rem;
  color: var(--night-ink-muted);
}

.spec-mini-v {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--night-ink);
}

/* ==========================================================================
   Asymmetric Craft Story + Interactive Day/Night Comparison Loupe
   ========================================================================== */
.craft-section {
  background-color: var(--stone-ground);
  padding-block: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--stone-border);
}

.craft-asymmetric {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* Draggable Sunlit vs Midnight Architectural Loupe */
.loupe-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stone-border-strong);
  box-shadow: 0 20px 50px var(--shadow-soft);
  aspect-ratio: 16 / 10;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background-color: var(--night-ground);
}

.loupe-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.loupe-night-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}

.loupe-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--fire-glow);
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
}

.loupe-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background-color: var(--fire-amber);
  color: var(--night-ground);
  border: 2px solid var(--stone-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--shadow-deep);
  z-index: 5;
  cursor: ew-resize;
}

.loupe-tag {
  position: absolute;
  bottom: 0.9rem;
  z-index: 4;
  padding: 0.38rem 0.78rem;
  border-radius: var(--radius-sm);
  background-color: var(--glass-night);
  color: var(--night-ink);
  font-size: var(--text-xs);
  font-weight: 600;
  pointer-events: none;
}

.loupe-tag-day {
  left: 0.9rem;
}

.loupe-tag-night {
  right: 0.9rem;
  color: var(--fire-glow);
}

.loupe-caption {
  margin-top: 0.85rem;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/* Owner Story & Material Details */
.story-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.owner-quote {
  padding-left: 1.25rem;
  border-left: 3px solid var(--fire-amber);
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1rem + 0.7vw, 1.55rem);
  line-height: 1.38;
  color: var(--ink-primary);
}

.story-body {
  font-size: var(--text-base);
  color: var(--ink-secondary);
  max-width: 62ch;
}

.craft-details-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.detail-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.detail-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--stone-border);
}

.detail-figure figcaption {
  font-size: var(--text-xs);
  color: var(--ink-secondary);
  line-height: 1.45;
}

.detail-figure strong {
  color: var(--ink-primary);
  display: block;
  margin-bottom: 0.15rem;
}

/* Four Disciplines — Editorial Horizontal Index (NOT a uniform 3-card icon grid) */
.disciplines-band {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--stone-border-strong);
}

.discipline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 1.65rem;
  border-bottom: 1px solid var(--stone-border);
  align-items: baseline;
}

.discipline-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--fire-deep);
  font-weight: 600;
}

.discipline-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  color: var(--ink-primary);
}

.discipline-copy {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  max-width: 60ch;
}

/* ==========================================================================
   SIGNATURE SHOWPIECE B: Interactive Phoenix Metro Pool & Spa Scope Estimator
   ========================================================================== */
.estimator-section {
  background-color: var(--stone-surface);
  padding-block: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--stone-border);
}

.estimator-grid {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.estimator-controls {
  background-color: var(--stone-elevated);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.control-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-primary);
}

.footprint-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.footprint-btn {
  min-height: 60px;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--stone-border-strong);
  background-color: var(--stone-ground);
  color: var(--ink-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footprint-btn strong {
  font-size: var(--text-sm);
}

.footprint-btn span {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.footprint-btn.is-active {
  background-color: var(--night-ground);
  border-color: var(--night-ground);
  color: var(--night-ink);
}

.footprint-btn.is-active span {
  color: var(--fire-glow);
}

.feature-toggles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
}

.feature-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--stone-border);
  background-color: var(--stone-ground);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.feature-toggle:has(input:checked) {
  border-color: var(--azure-deep);
  background-color: var(--azure-wash);
}

.feature-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-primary);
}

.feature-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--azure-deep);
  flex-shrink: 0;
}

.feature-delta {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.city-select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--stone-border-strong);
  background-color: var(--stone-ground);
  color: var(--ink-primary);
  font-weight: 500;
}

.city-note-box {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--fire-wash);
  border-left: 3px solid var(--fire-amber);
  font-size: var(--text-xs);
  color: var(--ink-primary);
}

/* Right Architectural Live Blueprint & Estimate Readout */
.estimator-output {
  background-color: var(--night-ground);
  color: var(--night-ink);
  border-radius: var(--radius-lg);
  border: 1px solid var(--night-border);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blueprint-frame {
  background-color: var(--night-surface);
  border: 1px solid var(--night-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.blueprint-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}

.estimate-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--night-border);
  border-bottom: 1px solid var(--night-border);
}

.estimate-price-label {
  font-size: var(--text-xs);
  color: var(--night-ink-muted);
}

.estimate-price-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.65rem);
  color: var(--fire-glow);
  line-height: 1.15;
}

.estimate-meta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: var(--text-xs);
  color: var(--night-ink-muted);
}

.estimate-meta-pair strong {
  color: var(--night-ink);
  display: block;
  font-size: var(--text-sm);
}

.estimate-disclaimer {
  font-size: var(--text-xs);
  color: var(--night-ink-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Financing Partners + 12-Community Valley Ledger
   ========================================================================== */
.financing-section {
  background-color: var(--stone-ground);
  padding-block: clamp(4rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--stone-border);
}

.financing-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.lender-panel {
  background-color: var(--stone-elevated);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lender-since {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--azure-deep);
}

.lender-name {
  font-size: var(--text-xl);
  color: var(--ink-primary);
}

.lender-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}

.communities-block {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--stone-border-strong);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.community-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0.6rem;
}

.community-pill {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stone-border-strong);
  background-color: var(--stone-elevated);
  color: var(--ink-primary);
  font-size: var(--text-xs);
  font-weight: 600;
}

.anthem-pets-note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background-color: var(--stone-surface);
  border-left: 3px solid var(--azure-deep);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}

/* ==========================================================================
   Preview-Mode Consultation Form
   ========================================================================== */
.consultation-section {
  background-color: var(--night-ground);
  color: var(--night-ink);
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.consultation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.consult-heading {
  font-size: var(--text-2xl);
  color: var(--night-ink);
  margin-bottom: 1rem;
  max-width: 18ch;
}

.consult-lead {
  font-size: var(--text-base);
  color: var(--night-ink-muted);
  max-width: 48ch;
  margin-bottom: 1.75rem;
}

.direct-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--night-border);
}

.direct-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.direct-contact-item span {
  font-size: var(--text-xs);
  color: var(--night-ink-muted);
}

.direct-contact-item a,
.direct-contact-item strong {
  font-size: var(--text-lg);
  color: var(--night-ink);
  font-weight: 600;
}

.direct-contact-item a:hover {
  color: var(--fire-glow);
}

/* Form Card */
.consult-form-wrap {
  background-color: var(--night-surface);
  border: 1px solid var(--night-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.preview-mode-notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--night-elevated);
  border: 1px solid var(--fire-amber);
  font-size: var(--text-xs);
  color: var(--fire-glow);
  margin-bottom: 1.35rem;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--night-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--night-border);
  background-color: var(--night-ground);
  color: var(--night-ink);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background-color: var(--night-elevated);
  border-left: 3px solid var(--azure-glow);
  font-size: var(--text-sm);
  color: var(--night-ink);
  display: none;
}

.form-feedback.is-visible {
  display: block;
}

/* ==========================================================================
   Footer + Mandatory Anti-Theft Fixed Preview Pill Badge
   ========================================================================== */
.site-footer {
  background-color: var(--stone-elevated);
  border-top: 1px solid var(--stone-border);
  padding-block: 2.75rem 4.5rem;
  color: var(--ink-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  justify-content: space-between;
  align-items: start;
}

.footer-meta {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-top: 0.45rem;
  line-height: 1.6;
}

.footer-attribution {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stone-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/* Mandatory Anti-Theft Fixed Bottom-Right Pill Badge */
.zenith-preview-badge {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  pointer-events: none;
  padding: 0.48rem 0.85rem;
  border-radius: var(--radius-pill);
  background-color: oklch(0.145 0.022 248 / 0.92);
  color: var(--fire-glow);
  border: 1px solid var(--fire-amber);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px var(--shadow-deep);
  max-width: calc(100vw - 28px);
  text-align: center;
  line-height: 1.3;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-First -> Tablet -> Desktop 1440px)
   ========================================================================== */
@media (min-width: 760px) {
  .brand-crest {
    width: 38px;
    height: 38px;
  }

  .btn-tel-header {
    padding-inline: 0.95rem;
    font-size: 0.875rem;
  }

  .proof-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .proof-cell {
    border-bottom: 0;
    border-right: 1px solid var(--stone-border);
  }

  .proof-cell:nth-child(even) {
    border-right: 1px solid var(--stone-border);
  }

  .proof-cell:last-child {
    border-right: 0;
  }

  .section-header-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .craft-details-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discipline-row {
    grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.8fr);
    gap: 1.5rem;
  }

  .financing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .btn-header-cta {
    display: inline-flex;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 2.5rem;
  }

  .stage-shell {
    grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr);
    gap: 1.75rem;
  }

  .stage-canvas-frame {
    aspect-ratio: auto;
    min-height: 540px;
  }

  .craft-asymmetric {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .estimator-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .communities-block {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }

  .consultation-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

/* ==========================================================================
   Reduced Motion Respect (Full Static Visibility & Accessibility)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .flow-pulse,
  .fire-flame-glow {
    animation: none;
  }

  .hero-photo,
  .site-header,
  .btn {
    transition: none;
  }
}
