/* ==========================================================================
   TAJALLI TECH PVT. LTD. — V3 ARCHITECTURAL DAYLIGHT 3D INTERACTIVE SHOWCASE
   RAL 7035 Brushed Pearl-Silver · Tajalli Green (#70AD47) · Busbar Copper (#D97706)
   ========================================================================== */

:root {
  color-scheme: light;
  --bg-page: #eef2ed;
  --bg-shell: #f9fbf8;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5ef;
  --bg-tint-green: #eaf4e3;
  --bg-tint-copper: #fdf3e6;

  --green: #5c9c33;
  --green-brand: #70ad47;
  --green-deep: #2d6612;
  --green-bright: #7ed348;

  --copper: #c96a0b;
  --copper-bright: #e88d25;
  --copper-soft: #f5b864;

  --ink: #121b14;
  --ink-body: #39483c;
  --ink-muted: #647567;

  --border-light: rgba(24, 52, 28, 0.11);
  --border-green: rgba(92, 156, 51, 0.34);
  --border-copper: rgba(201, 106, 11, 0.34);

  --shadow-soft: 0 14px 36px rgba(16, 36, 20, 0.08);
  --shadow-elevated: 0 24px 56px rgba(16, 36, 20, 0.13);

  --font-sans: 'Heebo', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Heebo', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --stage-max: 492px;
}

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

html {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-block-size: 100dvh;
  background:
    radial-gradient(ellipse 75% 50% at 50% 0%, rgba(112, 173, 71, 0.14), transparent 65%),
    radial-gradient(ellipse 70% 50% at 85% 95%, rgba(232, 141, 37, 0.11), transparent 60%),
    var(--bg-page);
  color: var(--ink);
  overflow-x: clip;
  line-height: 1.52;
}

body.vault-locked {
  overflow: hidden;
  block-size: 100dvh;
}

img,
svg,
canvas,
picture {
  display: block;
  max-inline-size: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

body.calm-motion *,
body.calm-motion *::before,
body.calm-motion *::after {
  animation-play-state: paused !important;
}

/* ==========================================================================
   Full-Viewport Sparks & Electric Arcs Canvas
   ========================================================================== */

.fx-canvas {
  position: fixed;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
  z-index: 90;
}

.desktop-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(45, 102, 18, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 102, 18, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 92%);
}

.desktop-hud-left {
  display: none;
}

@media (min-width: 1020px) {
  .desktop-hud-left {
    position: fixed;
    inset-block-start: 50%;
    inset-inline-start: max(28px, calc(50% - 498px));
    translate: 0 -50%;
    inline-size: 215px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .hud-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--green-deep);
    text-transform: uppercase;
  }

  .hud-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    border-inline-start: 2px solid rgba(92, 156, 51, 0.32);
    padding-inline-start: 14px;
  }

  .hud-links a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.81rem;
    font-weight: 600;
    transition: color 0.2s ease, translate 0.2s ease;
  }

  .hud-links a:hover {
    color: var(--green-deep);
    translate: 4px 0;
  }
}

/* ==========================================================================
   STAGE 1: BRIGHT RAL-7035 BRUSHED SILVER 3D SWITCHBOARD DOORS + CAMERA DIVE
   ========================================================================== */

.vault-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #dfe7dd 82%);
  perspective: 1500px;
  overflow: clip;
  transition: opacity 0.38s ease 0.42s, visibility 0.38s ease 0.42s;
}

.vault-overlay.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vault-chamber {
  position: relative;
  inline-size: min(100%, var(--stage-max));
  block-size: 100dvh;
  max-block-size: 920px;
  transform-style: preserve-3d;
  display: grid;
  place-items: center;
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.vault-overlay.is-opening .vault-chamber {
  transform: translate3d(0, 0, 420px) scale(1.12);
}

.vault-core-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(112, 173, 71, 0.55), rgba(232, 141, 37, 0.3) 40%, transparent 72%);
  opacity: 0;
  scale: 0.5;
  pointer-events: none;
  transition: opacity 0.45s ease, scale 0.85s ease;
}

.vault-overlay.is-opening .vault-core-flash {
  opacity: 1;
  scale: 1.45;
}

/* Left & Right 3D Brushed Pearl-Silver Cabinet Doors */
.vault-doors-pair {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform-style: preserve-3d;
  pointer-events: none;
}

.vault-leaf {
  position: relative;
  block-size: 100%;
  overflow: clip;
  background-color: #eaeeeb;
  background-image: image-set(
    url("assets/panel-silver-light.webp") type("image/webp"),
    url("assets/panel-silver-light.jpg") type("image/jpeg")
  );
  background-size: 200% 100%;
  transition: transform 1.08s cubic-bezier(0.19, 1, 0.22, 1);
}

.vault-leaf.left {
  background-position: left center;
  transform-origin: left center;
  border-inline-end: 2px solid var(--copper);
  box-shadow: 8px 0 28px rgba(18, 32, 20, 0.18);
}

.vault-leaf.right {
  background-position: right center;
  transform-origin: right center;
  border-inline-start: 2px solid var(--green-brand);
  box-shadow: -8px 0 28px rgba(18, 32, 20, 0.18);
}

.vault-leaf::after {
  content: '';
  position: absolute;
  inset: -25%;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 38%),
    rgba(255, 255, 255, 0.72),
    rgba(112, 173, 71, 0.08) 32%,
    transparent 62%
  );
  pointer-events: none;
}

.vault-overlay.is-opening .vault-leaf.left {
  transform: rotateY(-112deg);
}

.vault-overlay.is-opening .vault-leaf.right {
  transform: rotateY(112deg);
}

/* Crisp White & Brushed-Metal Switchboard Front Console */
.vault-center-console {
  position: relative;
  z-index: 5;
  inline-size: min(88%, 376px);
  padding: 24px 20px 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(92, 156, 51, 0.36);
  box-shadow:
    0 28px 70px rgba(18, 36, 22, 0.18),
    0 0 0 5px rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.42s ease 0.18s;
}

.vault-overlay.is-opening .vault-center-console {
  transform: scale(1.22) translateZ(110px);
  opacity: 0;
}

.telemetry-bar {
  inline-size: 100%;
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  padding: 8px 13px;
  border-radius: 12px;
  background: #f2f6f0;
  border: 1px solid rgba(18, 36, 22, 0.1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.telemetry-led-group {
  display: inline-flex;
  align-items: safe center;
  gap: 7px;
  color: var(--copper);
}

.live-dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--copper-bright);
  box-shadow: 0 0 8px rgba(232, 141, 37, 0.7);
  animation: dot-blink 1.4s ease-in-out infinite;
}

.vault-overlay.is-surging .live-dot {
  background: var(--green);
  box-shadow: 0 0 12px rgba(92, 156, 51, 0.85);
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; scale: 1; }
  50% { opacity: 0.42; scale: 0.82; }
}

.voltage-readout {
  color: var(--green-deep);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.vault-logo-pod {
  padding: 12px 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(92, 156, 51, 0.24);
  box-shadow: 0 8px 24px rgba(18, 36, 22, 0.07);
}

.vault-logo-pod img {
  inline-size: 152px;
  block-size: auto;
}

.vault-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green-deep);
  text-transform: uppercase;
}

.vault-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.vault-subtext {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-body);
  max-inline-size: 30ch;
}

.breaker-launch-btn {
  position: relative;
  inline-size: 100%;
  padding: 13px 16px;
  border-radius: 18px;
  border: 1.5px solid var(--green);
  background: linear-gradient(135deg, #70ad47 0%, #4b8925 100%);
  color: #ffffff;
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 14px 30px rgba(92, 156, 51, 0.36);
  overflow: clip;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.breaker-launch-btn:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 18px 36px rgba(92, 156, 51, 0.48);
}

@keyframes sheen-sweep {
  0% { transform: translateX(-140%) skewX(-22deg); }
  55%, 100% { transform: translateX(240%) skewX(-22deg); }
}

.breaker-launch-btn::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  animation: sheen-sweep 3s ease-in-out infinite;
  pointer-events: none;
}

.breaker-knob {
  inline-size: 46px;
  block-size: 46px;
  border-radius: 13px;
  background: #ffffff;
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vault-overlay.is-surging .breaker-knob {
  transform: rotate(90deg) scale(1.1);
  background: #fff4db;
  color: var(--copper);
}

.breaker-btn-copy {
  text-align: start;
  flex: 1;
}

.breaker-btn-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.breaker-btn-copy span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   MAIN BRIGHT ARCHITECTURAL STAGE SHELL
   ========================================================================== */

.experience-shell {
  position: relative;
  z-index: 5;
  inline-size: 100%;
  max-inline-size: var(--stage-max);
  margin-inline: auto;
  min-block-size: 100dvh;
  background: var(--bg-shell);
  box-shadow:
    0 0 0 1px rgba(24, 52, 28, 0.09),
    0 25px 80px rgba(16, 36, 20, 0.12);
  container: stage / inline-size;
}

.sticky-hud {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-block-end: 1px solid var(--border-light);
}

.ryb-cluster {
  display: inline-flex;
  align-items: safe center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--ink);
}

.ryb {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
}
.ryb.r { background: #e53935; box-shadow: 0 0 6px rgba(229, 57, 53, 0.55); }
.ryb.y { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.55); }
.ryb.b { background: #2563eb; box-shadow: 0 0 6px rgba(37, 99, 235, 0.55); }

.hud-controls {
  display: flex;
  align-items: safe center;
  gap: 6px;
}

.hud-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(24, 52, 28, 0.16);
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hud-pill.hud-wa-link {
  background: var(--green-brand);
  border-color: var(--green-deep);
  color: #ffffff;
}

.hud-pill:hover {
  border-color: var(--green);
  background: var(--bg-tint-green);
  color: var(--ink);
}

.about-summary-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  text-align: start;
}

.about-summary-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-body);
}

.about-summary-card strong {
  color: var(--ink);
}

.laser-progress {
  position: absolute;
  inset-block-end: -1.5px;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 3px;
  background: linear-gradient(90deg, var(--green-brand), var(--copper-bright), var(--green-deep));
  transform-origin: left center;
  transform: scaleX(var(--scroll-p, 0));
}

/* ==========================================================================
   MOMENT 2: BRIGHT DAYLIGHT HERO + CUTAWAY PORTAL + KINETIC HEADLINE
   ========================================================================== */

.hero-cinema {
  position: relative;
  padding: 18px 18px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 18%, rgba(112, 173, 71, 0.12), transparent 55%);
}

.hero-showcase-card {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 16 / 10.5;
  border-radius: 22px;
  padding: 4px;
  background: linear-gradient(135deg, var(--green-brand), var(--copper-bright), var(--green));
  box-shadow: var(--shadow-elevated);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.hero-showcase-inner {
  position: relative;
  inline-size: 100%;
  block-size: 100%;
  border-radius: 18px;
  overflow: clip;
  background: #0f1712;
}

.hero-showcase-inner picture,
.hero-showcase-inner img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: cinema-pan 14s ease-in-out infinite alternate;
}

@keyframes cinema-pan {
  0% { transform: scale(1.01) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.hero-conduit-svg {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
}

@keyframes pulse-dash {
  to { stroke-dashoffset: -120; }
}

.conduit-energy-line {
  stroke-dasharray: 22 98;
  animation: pulse-dash 2.2s linear infinite;
}

.hero-live-badge {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  align-items: safe center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-deep);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hero-kv-badge {
  position: absolute;
  inset-block-end: 10px;
  inset-inline: 10px;
  display: flex;
  justify-content: space-between;
  align-items: safe center;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.hero-kv-badge strong {
  color: var(--copper);
}

.hero-copy-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.hero-brand-logo {
  inline-size: 128px;
  block-size: auto;
}

.kicker-pill {
  display: inline-flex;
  align-items: safe center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-tint-green);
  border: 1px solid var(--border-green);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.kinetic-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7.6cqi, 2.38rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.kinetic-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(0.95);
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-live .kinetic-word {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.kinetic-word.glow-green {
  color: var(--green);
}

.kinetic-word.glow-copper {
  color: var(--copper);
}

.hero-lead {
  margin: 0;
  font-size: 0.91rem;
  color: var(--ink-body);
  max-inline-size: 36ch;
}

.foil-badges {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  justify-content: center;
  gap: 7px;
}

.foil-chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-green);
  color: var(--green-deep);
  box-shadow: 0 4px 12px rgba(16, 36, 20, 0.05);
}

.foil-chip.copper {
  border-color: var(--border-copper);
  background: var(--bg-tint-copper);
  color: var(--copper);
}

.scroll-prompt {
  display: inline-flex;
  align-items: safe center;
  gap: 7px;
  color: var(--green-deep);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: bob-prompt 1.7s ease-in-out infinite;
}

@keyframes bob-prompt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ==========================================================================
   SHARED STAGE STYLING
   ========================================================================== */

.stage-block {
  position: relative;
  padding: 46px 18px;
  border-block-start: 1px solid var(--border-light);
}

.stage-block.alt-surface {
  background: var(--bg-subtle);
}

.stage-block.cv-defer {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 680px;
}

.stage-head {
  text-align: center;
  margin-block-end: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.stage-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.48rem, 6.4cqi, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.stage-title .hi-green { color: var(--green); }
.stage-title .hi-copper { color: var(--copper); }

.stage-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-body);
  max-inline-size: 38ch;
}

.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MOMENT 3: INTERACTIVE FLIR THERMAL X-RAY SCANNER (KEPT & ENHANCED!)
   ========================================================================== */

.xray-bezel {
  position: relative;
  border-radius: 24px;
  padding: 5px;
  background: linear-gradient(145deg, #ffffff, #dce5da);
  border: 1px solid rgba(24, 52, 28, 0.14);
  box-shadow: var(--shadow-elevated);
}

.xray-viewport {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 4 / 4.3;
  border-radius: 19px;
  overflow: clip;
  background: #0a0d12;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
  --lx: 64%;
  --ly: 69%;
  --lr: 106px;
}

.xray-layer {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.xray-layer picture,
.xray-layer img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.xray-thermal-layer {
  clip-path: circle(var(--lr) at var(--lx) var(--ly));
  will-change: clip-path;
}

.xray-reticle {
  position: absolute;
  inset-inline-start: var(--lx);
  inset-block-start: var(--ly);
  inline-size: calc(var(--lr) * 2);
  block-size: calc(var(--lr) * 2);
  translate: -50% -50%;
  border-radius: 50%;
  border: 2.5px solid #ffd082;
  box-shadow:
    0 0 28px rgba(255, 94, 36, 0.7),
    inset 0 0 22px rgba(255, 160, 40, 0.45);
  pointer-events: none;
}

.xray-reticle::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  animation: spin-reticle 10s linear infinite;
}

@keyframes spin-reticle {
  to { transform: rotate(360deg); }
}

.xray-crosshair {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  inline-size: 18px;
  block-size: 18px;
  translate: -50% -50%;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.xray-hud-top {
  position: absolute;
  inset-block-start: 12px;
  inset-inline: 12px;
  display: flex;
  justify-content: space-between;
  align-items: safe center;
  gap: 8px;
  pointer-events: none;
}

.flir-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(12, 16, 22, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.flir-pill.temp-pill {
  border-color: #ffd082;
  color: #ffd082;
}

.flir-pill.temp-pill.is-critical {
  background: #d9261c;
  border-color: #ffb49e;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(217, 38, 28, 0.8);
}

.xray-hud-bottom {
  position: absolute;
  inset-block-end: 12px;
  inset-inline: 12px;
  padding: 9px 13px;
  border-radius: 13px;
  background: rgba(12, 16, 22, 0.88);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.xray-status-text {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
}

.xray-drag-hint {
  font-family: var(--font-mono);
  font-size: 0.61rem;
  color: #ffd082;
}

.xray-cta-bar {
  margin-block-start: 14px;
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-copper);
  box-shadow: var(--shadow-soft);
}

.xray-cta-bar p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-body);
}

/* ==========================================================================
   MOMENT 4: INTERACTIVE 3-PHASE INDUSTRIAL PLUG-TO-SOCKET COUPLER!
   (Replaces Scroll Roller — Drag Plug Right or Tap to Connect Power + Sound!)
   ========================================================================== */

.coupler-module {
  border-radius: 24px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-elevated);
  overflow: clip;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.coupler-module.is-connected {
  border-color: var(--green-brand);
  box-shadow:
    0 24px 60px rgba(92, 156, 51, 0.18),
    0 0 0 3px rgba(112, 173, 71, 0.14);
}

/* Top Telemetry Status Bar of the Coupler */
.coupler-status-header {
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  background: #f3f7f1;
  border-block-end: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
}

.coupler-phase-lamps {
  display: inline-flex;
  align-items: safe center;
  gap: 7px;
}

.phase-lamp {
  inline-size: 20px;
  block-size: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 800;
  background: #e2e8e0;
  color: #7c8b7e;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.coupler-module.is-connected .phase-lamp.r {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
}
.coupler-module.is-connected .phase-lamp.y {
  background: #f59e0b;
  color: #ffffff;
  transition-delay: 0.08s;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}
.coupler-module.is-connected .phase-lamp.b {
  background: #2563eb;
  color: #ffffff;
  transition-delay: 0.16s;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.7);
}

.coupler-meter-text {
  color: var(--copper);
}

.coupler-module.is-connected .coupler-meter-text {
  color: var(--green-deep);
}

/* Interactive Plug-to-Socket Rail Chamber */
.coupler-rail-chamber {
  position: relative;
  block-size: 108px;
  margin: 16px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(92, 156, 51, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(92, 156, 51, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #edf2eb 0%, #e3ebe0 100%);
  background-size: 18px 18px, 18px 18px, 100% 100%;
  border: 1.5px inset rgba(24, 52, 28, 0.14);
  display: flex;
  align-items: center;
  overflow: clip;
  touch-action: pan-y;
  user-select: none;
}

/* Center Guide Busbar Groove + Animated Chevrons */
.coupler-guide-track {
  position: absolute;
  inset-inline: 24px 92px;
  block-size: 8px;
  border-radius: 999px;
  background: rgba(24, 52, 28, 0.12);
}

.coupler-guide-fill {
  block-size: 100%;
  inline-size: var(--plug-pct, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper-bright), var(--green-brand));
}

.coupler-hint-label {
  position: absolute;
  inset-inline: 120px 92px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.coupler-module.is-connected .coupler-hint-label {
  opacity: 0;
}

/* Right Fixed 3-Phase Copper Busbar Socket Receptacle */
.socket-receptacle {
  position: absolute;
  inset-inline-end: 10px;
  block-size: 82px;
  inline-size: 84px;
  border-radius: 14px;
  background: linear-gradient(180deg, #263329 0%, #162019 100%);
  border: 2px solid #3c4f40;
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 0;
}

.coupler-module.is-connected .socket-receptacle {
  border-color: var(--green-bright);
  box-shadow: 0 0 24px rgba(112, 173, 71, 0.45);
}

.socket-jaws {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-inline-start: -4px;
}

.jaw-slot {
  inline-size: 16px;
  block-size: 11px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #b86214, #f5b864, #8f4706);
  border: 1px solid #592b02;
}

.socket-label {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #b7c9ba;
}

/* Left Draggable / Tappable 3-Phase Industrial Power Plug */
.power-plug-handle {
  position: absolute;
  inset-inline-start: 10px;
  block-size: 78px;
  inline-size: 132px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  transform: translate3d(var(--plug-x, 0px), 0, 0);
  cursor: grab;
  z-index: 5;
  will-change: transform;
}

.power-plug-handle:active {
  cursor: grabbing;
}

/* Flexible Armored Cable Tail Stretching Behind the Plug */
.plug-cable-tail {
  position: absolute;
  inset-inline-end: 100%;
  inline-size: 420px;
  block-size: 18px;
  background:
    repeating-linear-gradient(
      90deg,
      #1f2922 0px,
      #1f2922 6px,
      #334237 6px,
      #334237 10px
    );
  border-block: 2px solid #121814;
}

.plug-body-shell {
  position: relative;
  inline-size: 108px;
  block-size: 76px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7dd 100%);
  border: 2px solid var(--green);
  box-shadow: 0 10px 24px rgba(16, 36, 20, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.coupler-module.is-connected .plug-body-shell {
  background: linear-gradient(135deg, #70ad47, #488622);
  border-color: #2d6612;
  color: #ffffff;
}

.plug-grip-title {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.1;
}

.plug-grip-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--copper);
}

.coupler-module.is-connected .plug-grip-sub {
  color: #fff3d1;
}

/* 3 Gleaming Solid Copper Contact Prongs */
.plug-prongs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-inline-start: -2px;
}

.copper-prong {
  inline-size: 24px;
  block-size: 9px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #ffd89b 0%, #d97706 55%, #7c3f04 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

@keyframes plug-nudge {
  0%, 100% { translate: 0 0; }
  50% { translate: 8px 0; }
}

.coupler-module:not(.is-connected):not(.is-dragging) .power-plug-handle {
  animation: plug-nudge 1.7s ease-in-out infinite;
}

/* Energized Credentials Panel Powered by the Plug Connection */
.energized-credentials-tray {
  max-block-size: 0;
  opacity: 0;
  overflow: clip;
  transition:
    max-block-size 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

.coupler-module.is-connected .energized-credentials-tray {
  max-block-size: 920px;
  opacity: 1;
}

.tray-inner {
  padding: 6px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-block-start: 1px dashed var(--border-green);
}

.odometer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-block-start: 10px;
}

.odo-card {
  padding: 13px 10px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-green);
  text-align: center;
}

.odo-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.05;
}

.odo-label {
  margin-block-start: 4px;
  font-size: 0.74rem;
  color: var(--ink-body);
}

.holo-card {
  position: relative;
  padding: 14px 15px;
  border-radius: 16px;
  background:
    radial-gradient(circle at var(--hx, 30%) var(--hy, 30%), rgba(232, 141, 37, 0.14), rgba(112, 173, 71, 0.08) 45%, #ffffff 80%);
  border: 1px solid var(--border-copper);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 12px;
}

.holo-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
  color: var(--ink);
}

.holo-copy span {
  font-size: 0.78rem;
  color: var(--ink-body);
}

.schneider-badge-white {
  background: #ffffff;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.schneider-badge-white img {
  inline-size: 94px;
  block-size: auto;
}

/* ==========================================================================
   MOMENT 5: 60FPS DRAG-SCRUBBED 3D SERVICES COVERFLOW (LIGHT THEME)
   ========================================================================== */

.coverflow-wrap {
  position: relative;
  inline-size: 100%;
  perspective: 1300px;
  overscroll-behavior: contain;
}

.coverflow-viewport {
  position: relative;
  inline-size: 100%;
  block-size: 486px;
  display: grid;
  place-items: center;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.coverflow-viewport:active {
  cursor: grabbing;
}

.cf-card {
  grid-area: 1 / 1;
  inline-size: 88%;
  max-inline-size: 376px;
  block-size: 470px;
  border-radius: 24px;
  background: #ffffff;
  border: 1.5px solid var(--border-green);
  box-shadow: var(--shadow-elevated);
  overflow: clip;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.cf-media {
  position: relative;
  inline-size: 100%;
  block-size: 205px;
  flex: 0 0 205px;
  overflow: clip;
  background: #101712;
}

.cf-media picture,
.cf-media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.cf-badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.cf-num {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green-brand);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.cf-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cf-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ink);
}

.cf-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-body);
}

.cf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cf-tags span {
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  background: var(--bg-tint-green);
  border: 1px solid var(--border-green);
  color: var(--green-deep);
}

.cf-footer {
  margin-block-start: auto;
  padding-block-start: 8px;
  border-block-start: 1px solid var(--border-light);
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 8px;
}

.cf-std {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.cf-wa-btn {
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-brand), var(--green-deep));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(92, 156, 51, 0.28);
}

.cf-nav-row {
  margin-block-start: 16px;
  display: flex;
  align-items: safe center;
  justify-content: center;
  gap: 12px;
}

.round-btn {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-green);
  background: #ffffff;
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.round-btn:hover {
  transform: scale(1.08);
  border-color: var(--green);
}

.cf-dots {
  display: flex;
  gap: 6px;
}

.cf-dot {
  inline-size: 8px;
  block-size: 8px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(24, 52, 28, 0.18);
  transition: inline-size 0.25s ease, background-color 0.25s ease;
}

.cf-dot.active {
  inline-size: 24px;
  background: var(--green);
}

/* ==========================================================================
   MOMENT 6: 3D STACKED FLING DECK + INFINITE CLIENT MARQUEE
   ========================================================================== */

.stack-deck-area {
  position: relative;
  inline-size: 100%;
  perspective: 1200px;
  padding-block-start: 22px;
}

.stack-stage {
  position: relative;
  inline-size: 100%;
  block-size: 382px;
  display: grid;
  place-items: center;
  touch-action: pan-y;
  user-select: none;
  cursor: pointer;
}

.stack-card {
  grid-area: 1 / 1;
  inline-size: 90%;
  max-inline-size: 384px;
  block-size: 368px;
  border-radius: 22px;
  background: #ffffff;
  border: 1.5px solid var(--border-copper);
  box-shadow: var(--shadow-elevated);
  overflow: clip;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
  will-change: transform, opacity;
}

.stack-card.is-flinging {
  transform: translate3d(-118%, -18px, 60px) rotateZ(-14deg) !important;
  opacity: 0 !important;
}

.stack-photo {
  inline-size: 100%;
  block-size: 240px;
  flex: 0 0 240px;
  overflow: clip;
  background: #101612;
}

.stack-photo picture,
.stack-photo img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.stack-caption-box {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stack-kicker {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.08em;
}

.stack-caption-box h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: var(--ink);
}

.stack-caption-box p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-body);
}

.marquee-box {
  margin-block-start: 28px;
  padding-block: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  overflow: clip;
}

.marquee-header {
  padding-inline: 16px;
  margin-block-end: 12px;
  display: flex;
  justify-content: space-between;
  align-items: safe center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--copper);
  text-transform: uppercase;
}

.marquee-track {
  display: flex;
  inline-size: max-content;
  gap: 10px;
  animation: marquee-scroll 26s linear infinite;
}

.marquee-track.reverse {
  margin-block-start: 9px;
  animation-direction: reverse;
  animation-duration: 30s;
}

.marquee-box:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-green);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   MOMENT 7: CIRCUIT-TRACE STATEMENT CARD + BRIGHT DAYLIGHT 3D LUCKNOW MAP
   ========================================================================== */

.laser-promise-card {
  position: relative;
  padding: 30px 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(112, 173, 71, 0.16), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #eff6ec 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  overflow: clip;
  box-shadow: var(--shadow-elevated);
}

.laser-border-svg {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
}

@keyframes border-orbit {
  to { stroke-dashoffset: -400; }
}

.laser-orbit-stroke {
  stroke-dasharray: 85 315;
  animation: border-orbit 4.2s linear infinite;
}

.laser-promise-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.36rem, 5.8cqi, 1.7rem);
  line-height: 1.18;
  color: var(--ink);
}

.laser-promise-card h2 span {
  color: var(--green-deep);
}

.laser-promise-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-body);
  max-inline-size: 38ch;
}

/* ==========================================================================
   Clean Razor-Sharp Vector Aliganj Lucknow Map Card
   ========================================================================== */

.clean-map-card {
  border-radius: 24px;
  background: #ffffff;
  border: 1.5px solid var(--border-green);
  box-shadow: var(--shadow-elevated);
  overflow: clip;
}

.clean-map-topbar {
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 16px;
  background: #f3f7f1;
  border-block-end: 1px solid var(--border-light);
}

.map-open-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-green);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
}

.vector-map-frame {
  display: block;
  inline-size: 100%;
  border-block-end: 1px solid var(--border-light);
  text-decoration: none;
}

.clean-aliganj-svg {
  inline-size: 100%;
  block-size: auto;
}

.nav3d-eta {
  display: inline-flex;
  align-items: safe center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--green-deep);
}

.nav3d-controls {
  display: inline-flex;
  align-items: safe center;
  gap: 5px;
}

.map-ctrl-btn {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(24, 52, 28, 0.18);
  background: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.map-ctrl-btn:hover,
.map-ctrl-btn.is-active {
  background: var(--green-brand);
  border-color: var(--green-deep);
  color: #ffffff;
}

/* 3D Perspective Diorama Viewport */
.nav3d-viewport {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 4 / 3.05;
  overflow: clip;
  background: radial-gradient(circle at 50% 25%, #e8f1e4 0%, #d4e0cf 100%);
  perspective: 980px;
  touch-action: none;
  user-select: none;
  cursor: grab;
  --rx: 43deg;
  --rz: -8deg;
  --mz: 1.06;
}

.nav3d-viewport:active {
  cursor: grabbing;
}

.nav3d-viewport.is-2d {
  --rx: 0deg;
  --rz: 0deg;
  --mz: 1;
}

/* 3D Tilted Map Slab with Physical Architectural Edge Thickness */
.nav3d-slab {
  position: absolute;
  inset: -4% -5%;
  transform-style: preserve-3d;
  transform: scale(var(--mz)) rotateX(var(--rx)) rotateZ(var(--rz));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 18px;
  box-shadow:
    0 22px 0 -4px #bfcbbb,
    0 28px 48px rgba(16, 36, 20, 0.28);
}

.nav3d-viewport.is-dragging .nav3d-slab {
  transition: none;
}

.nav3d-viewport.is-2d .nav3d-slab {
  inset: 0;
  border-radius: 0;
  box-shadow: none;
}

.nav3d-map-plane {
  position: relative;
  inline-size: 100%;
  block-size: 100%;
  border-radius: inherit;
  overflow: clip;
  background: #f1f4ef;
}

.nav3d-map-plane picture,
.nav3d-map-plane img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  pointer-events: none;
}

.nav3d-route-svg {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
}

@keyframes gps-march {
  to { stroke-dashoffset: -44; }
}

@keyframes hq-ground-pulse {
  0% { r: 14; opacity: 0.9; }
  100% { r: 58; opacity: 0; }
}

.gps-flow-stroke {
  stroke-dasharray: 14 8;
  animation: gps-march 1.1s linear infinite;
}

.hq-ground-ring {
  animation: hq-ground-pulse 2s ease-out infinite;
}

/* True 3D Counter-Rotated Upright Billboard Pins Standing Vertically Off the Map! */
.pin3d-anchor {
  position: absolute;
  transform-style: preserve-3d;
  transform-origin: center bottom;
  translate: -50% -100%;
  transform: rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), inset-inline-start 0.35s ease, inset-block-start 0.35s ease;
  pointer-events: auto;
  z-index: 15;
}

.nav3d-viewport.is-dragging .pin3d-anchor {
  transition: none;
}

.hq-pin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  filter: drop-shadow(0 12px 18px rgba(16, 36, 20, 0.32));
}

.hq-badge-box {
  padding: 7px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid var(--green-brand);
  text-align: center;
  white-space: nowrap;
}

.hq-badge-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--ink);
  line-height: 1.15;
}

.hq-badge-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--green-deep);
}

.hq-stem {
  inline-size: 3px;
  block-size: 20px;
  background: linear-gradient(180deg, var(--green-brand), var(--green-deep));
}

.hq-base-dot {
  inline-size: 13px;
  block-size: 13px;
  border-radius: 50%;
  background: var(--green-brand);
  border: 2.5px solid #ffffff;
}

.origin-pin-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: #141e16;
  border: 1.5px solid var(--copper-bright);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.nav3d-drag-tip {
  position: absolute;
  inset-block-end: 9px;
  inset-inline-end: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(24, 52, 28, 0.14);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--ink-muted);
  pointer-events: none;
  z-index: 20;
}

/* Interactive 3-Route Switcher Tabs + Turn-by-Turn Strip */
.route-tabs-wrap {
  padding: 13px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.route-tabs-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.route-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.route-tab {
  flex: 1 1 auto;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(24, 52, 28, 0.16);
  background: var(--bg-subtle);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--ink-body);
  transition: all 0.18s ease;
}

.route-tab[aria-selected="true"] {
  background: var(--bg-tint-green);
  border-color: var(--green-brand);
  color: var(--green-deep);
  font-weight: 700;
}

.turn-by-turn-box {
  margin-inline: 14px;
  margin-block-start: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--bg-tint-copper);
  border: 1px solid var(--border-copper);
  font-size: 0.77rem;
  color: var(--ink);
  line-height: 1.4;
}

.iso-address-box {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.iso-address-box address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.iso-address-box strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
}

.iso-address-box span {
  font-size: 0.85rem;
  color: var(--ink-body);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-glow,
.btn-copper {
  flex: 1 1 155px;
  display: inline-flex;
  align-items: safe center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 13px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-glow {
  border: 1px solid var(--green-deep);
  background: linear-gradient(135deg, var(--green-brand), var(--green-deep));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(92, 156, 51, 0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(92, 156, 51, 0.42);
}

.btn-copper {
  border: 1.5px solid var(--border-copper);
  background: var(--bg-tint-copper);
  color: var(--copper);
}

.btn-copper:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   CONTACT COMMAND DECK & STICKY BOTTOM DOCK (LIGHT THEME)
   ========================================================================== */

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-block-end: 18px;
}

.cmd-tile {
  padding: 13px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-inline-size: 0;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.cmd-tile:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}

.cmd-tile.wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: safe center;
  justify-content: space-between;
  background: linear-gradient(90deg, var(--bg-tint-green), #ffffff);
  border-color: var(--border-green);
}

.cmd-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--green-deep);
}

.cmd-val {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.composer-box {
  padding: 20px 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.composer-box h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.scope-chips {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 7px;
}

.scope-btn {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(24, 52, 28, 0.16);
  background: var(--bg-subtle);
  color: var(--ink-body);
  font-size: 0.74rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.scope-btn[aria-pressed="true"] {
  background: var(--green-brand);
  border-color: var(--green-deep);
  color: #ffffff;
  font-weight: 700;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-row label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-body);
}

.field-row input {
  inline-size: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(24, 52, 28, 0.2);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.88rem;
}

.field-row input:focus {
  border-color: var(--green);
  outline: none;
}

.site-footer {
  padding: 34px 18px 98px;
  text-align: center;
  border-block-start: 1px solid var(--border-light);
  background: #eff3ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-footer img {
  inline-size: 118px;
  block-size: auto;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.footer-socials a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(24, 52, 28, 0.16);
  background: #ffffff;
  color: var(--ink-body);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
}

body.vault-locked .quick-dock {
  opacity: 0;
  pointer-events: none;
}

.quick-dock {
  position: fixed;
  inset-block-end: 12px;
  inset-inline: 0;
  margin-inline: auto;
  inline-size: min(calc(100% - 24px), 450px);
  z-index: 55;
  display: flex;
  align-items: safe center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-green);
  box-shadow: 0 14px 36px rgba(16, 36, 20, 0.16);
  transition: opacity 0.4s ease;
}

.quick-dock a {
  flex: 1;
  text-align: center;
  padding: 7px 6px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink-body);
  text-decoration: none;
}

.quick-dock a.dock-highlight {
  background: linear-gradient(135deg, var(--green-brand), var(--green-deep));
  color: #ffffff;
}

.toast-msg {
  margin: auto;
  inset-block-start: auto;
  inset-block-end: 76px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  box-shadow: 0 14px 35px rgba(16, 36, 20, 0.18);
}
