/* ==========================================================================
   VOLTAIRE // KINETIX GRID ENGINEERING — INDUSTRIAL PRECISION DESIGN SYSTEM
   Crafted for Zeyvaro Digital Agency Showcase
   ========================================================================== */

:root {
  /* Core Surfaces */
  --bg-obsidian: #0B0F17;
  --bg-slate: #111827;
  --bg-busbar: #161F30;
  --bg-glass: rgba(17, 24, 39, 0.84);
  
  /* Alabaster Blueprint Section */
  --bg-alabaster: #F8FAFC;
  --bg-alabaster-card: #FFFFFF;
  --border-alabaster: #CBD5E1;
  --text-alabaster-primary: #0F172A;
  --text-alabaster-secondary: #475569;

  /* Typography Hierarchy */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Electrical & Telemetry Accents */
  --amber-volt: #F59E0B;
  --amber-volt-bright: #FBBF24;
  --amber-glow: rgba(245, 158, 11, 0.14);
  --copper-accent: #EA580C;
  --cyan-telemetry: #38BDF8;
  --cyan-glow: rgba(56, 189, 248, 0.14);
  --emerald-grid: #10B981;
  --crimson-fault: #EF4444;

  /* Structural Blueprint Hairlines */
  --border-hairline: #1E293B;
  --border-highlight: #334155;
  --border-amber: rgba(245, 158, 11, 0.45);

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1440px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-obsidian);
  overflow-x: hidden;
  position: relative;
  /* Subtle technical schematic micro-grid background */
  background-image: 
    linear-gradient(to right, rgba(30, 41, 59, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.28) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Blueprint X-Ray Mode Overlay Enhancement */
body.xray-mode {
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.16) 1px, transparent 1px),
    linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
}

body.xray-mode .xray-annotation {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body.xray-mode .capability-card,
body.xray-mode .project-card,
body.xray-mode .sld-panel {
  border-color: rgba(56, 189, 248, 0.45) !important;
}

::selection {
  background: var(--amber-volt);
  color: var(--bg-obsidian);
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   STRUCTURAL BLUEPRINT CONTAINERS & HAIRLINES
   ========================================================================== */

.blueprint-frame {
  max-width: var(--container-max);
  margin: 0 auto;
  border-left: 1px solid var(--border-hairline);
  border-right: 1px solid var(--border-hairline);
  position: relative;
}

.section-divider {
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(11, 15, 23, 0.9);
  position: relative;
}

.section-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(17, 24, 39, 0.55);
}

.section-meta-bar .coord-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber-volt);
}

.crosshair {
  position: relative;
}

.crosshair::before {
  content: '+';
  position: absolute;
  top: -9px;
  left: -5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 4;
}

.xray-annotation {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan-telemetry);
  background: rgba(11, 15, 23, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
  pointer-events: none;
  display: inline-block;
}

/* ==========================================================================
   TOP TELEMETRY & NAVIGATION HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  border-left: 1px solid var(--border-hairline);
  border-right: 1px solid var(--border-hairline);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 1.75rem;
  height: 100%;
  border-right: 1px solid var(--border-hairline);
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--amber-volt), var(--copper-accent));
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--bg-obsidian);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--amber-volt);
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 1.5rem;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link span.idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link:hover span.idx {
  color: var(--amber-volt);
}

.header-actions {
  display: flex;
  align-items: center;
  height: 100%;
}

.xray-toggle-btn {
  height: 100%;
  padding: 0 1.25rem;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
}

.xray-toggle-btn:hover {
  color: var(--cyan-telemetry);
  background: rgba(56, 189, 248, 0.06);
}

.xray-toggle-btn.active {
  color: var(--cyan-telemetry);
  background: rgba(56, 189, 248, 0.12);
}

.xray-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.2s ease;
}

.xray-toggle-btn.active .xray-dot {
  background: var(--cyan-telemetry);
  box-shadow: 0 0 8px var(--cyan-telemetry);
}

.dispatch-pill {
  height: 100%;
  padding: 0 1.4rem;
  border-left: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-primary);
  background: rgba(16, 185, 129, 0.06);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-grid);
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulseGrid 2s infinite;
}

@keyframes pulseGrid {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.header-cta {
  height: 100%;
  padding: 0 1.6rem;
  background: var(--amber-volt);
  color: var(--bg-obsidian);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-cta:hover {
  background: var(--amber-volt-bright);
}

/* ==========================================================================
   HERO SECTION & INTERACTIVE SINGLE-LINE DIAGRAM (SLD)
   ========================================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  border-bottom: 1px solid var(--border-hairline);
}

.hero-main {
  padding: 4.5rem 3.5rem 3.5rem;
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.85rem;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid var(--border-amber);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-volt);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 4.5vw, 4.35rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-title .highlight-volt {
  color: var(--amber-volt);
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.85rem;
  background: var(--amber-volt);
  color: var(--bg-obsidian);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-radius: 3px;
  border: 1px solid var(--amber-volt);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--amber-volt-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.65rem;
  background: rgba(17, 24, 39, 0.8);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: 3px;
  border: 1px solid var(--border-highlight);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--amber-volt);
  color: var(--amber-volt);
  background: rgba(245, 158, 11, 0.06);
}

/* Hero Architectural Visual Banner inside Left Column Bottom */
.hero-visual-strip {
  position: relative;
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-slate);
  display: grid;
  grid-template-columns: 240px 1fr;
}

.hero-thumb-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-right: 1px solid var(--border-hairline);
}

.hero-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) brightness(0.92);
  transition: transform 0.5s ease;
}

.hero-visual-strip:hover .hero-thumb-wrap img {
  transform: scale(1.05);
}

.hero-thumb-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(11, 15, 23, 0.88);
  border: 1px solid var(--border-highlight);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amber-volt);
}

.hero-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.telemetry-cell {
  padding: 1.25rem 1.4rem;
  border-right: 1px solid var(--border-hairline);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.telemetry-cell:last-child {
  border-right: none;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.telemetry-val span {
  font-size: 0.85rem;
  color: var(--amber-volt);
}

.telemetry-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Right Column: Interactive Substation SLD Digital Twin */
.sld-panel {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.75) 0%, rgba(11, 15, 23, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sld-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 24, 39, 0.85);
}

.sld-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sld-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.sld-status-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-grid);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sld-canvas-wrap {
  padding: 1.5rem;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sld-svg {
  width: 100%;
  height: auto;
  max-height: 360px;
  display: block;
}

/* Animated Current Flow Path */
.power-flow-line {
  stroke-dasharray: 6 6;
  animation: flowCurrent 1.2s linear infinite;
}

.power-flow-line.inactive {
  stroke: #334155 !important;
  stroke-dasharray: none;
  animation: none;
}

@keyframes flowCurrent {
  to {
    stroke-dashoffset: -24;
  }
}

.breaker-node {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.breaker-node:hover rect.breaker-box {
  stroke: var(--amber-volt-bright);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

.sld-controls-bar {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-hairline);
  background: rgba(17, 24, 39, 0.65);
}

.sld-controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.breaker-toggles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.breaker-btn {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
  padding: 0.55rem 0.75rem;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.breaker-btn:hover {
  border-color: var(--border-highlight);
}

.breaker-btn.closed {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.06);
}

.breaker-btn.tripped {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.07);
}

.breaker-state-pill {
  font-size: 0.64rem;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 600;
}

.breaker-btn.closed .breaker-state-pill {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-grid);
}

.breaker-btn.tripped .breaker-state-pill {
  background: rgba(239, 68, 68, 0.2);
  color: var(--crimson-fault);
}

.sld-live-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-obsidian);
}

.sld-metric {
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--border-hairline);
}

.sld-metric:last-child {
  border-right: none;
}

.sld-metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sld-metric-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan-telemetry);
  margin-top: 2px;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-header-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  border-bottom: 1px solid var(--border-hairline);
}

.section-header-left {
  padding: 3rem 3.5rem;
  border-right: 1px solid var(--border-hairline);
}

.section-header-right {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-volt);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

/* ==========================================================================
   CORE ENGINEERING CAPABILITIES MATRIX (6-CELL EXPOSED GRID)
   ========================================================================== */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.capability-card {
  padding: 2.5rem 2.25rem;
  border-right: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(17, 24, 39, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.capability-card:nth-child(3n) {
  border-right: none;
}

.capability-card:hover {
  background: rgba(22, 31, 48, 0.85);
}

.capability-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--amber-volt), var(--copper-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.capability-card:hover::after {
  transform: scaleX(1);
}

.cap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.cap-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-volt);
  letter-spacing: 0.08em;
}

.cap-std-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border-highlight);
  border-radius: 2px;
  color: var(--text-secondary);
}

.cap-icon-box {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-highlight);
  background: var(--bg-obsidian);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  color: var(--amber-volt);
  border-radius: 3px;
}

.cap-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.cap-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.cap-specs-list {
  list-style: none;
  border-top: 1px solid var(--border-hairline);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.cap-specs-list li {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.35rem 0;
  color: var(--text-secondary);
}

.cap-specs-list li span:last-child {
  color: var(--text-primary);
}

.cap-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-volt);
  margin-top: auto;
}

/* ==========================================================================
   INTERACTIVE ELECTRICAL LOAD & TRANSFORMER SIZING CALCULATOR
   ========================================================================== */

.calculator-wrapper {
  display: grid;
  grid-template-columns: 7fr 5fr;
  border-bottom: 1px solid var(--border-hairline);
}

.calc-controls-pane {
  padding: 3rem 3.5rem;
  border-right: 1px solid var(--border-hairline);
  background: rgba(17, 24, 39, 0.4);
}

.calc-step-group {
  margin-bottom: 2.25rem;
}

.calc-step-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.calc-step-label strong {
  color: var(--amber-volt);
}

.facility-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.facility-btn {
  text-align: left;
  padding: 1rem 1.15rem;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.facility-btn:hover {
  border-color: var(--border-highlight);
}

.facility-btn.active {
  border-color: var(--amber-volt);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: inset 0 0 0 1px var(--amber-volt);
}

.facility-btn-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.facility-btn-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.facility-btn.active .facility-btn-meta {
  color: var(--amber-volt);
}

/* Custom Range Slider */
.range-slider-wrap {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
  padding: 1.25rem 1.5rem;
  border-radius: 3px;
}

.range-readout-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.range-big-value {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--amber-volt);
}

.range-scale-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

input[type="range"].industrial-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border-hairline);
  border-radius: 2px;
  outline: none;
}

input[type="range"].industrial-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background: var(--amber-volt);
  border: 2px solid var(--bg-obsidian);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.voltage-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.option-pill-btn {
  padding: 0.85rem 1rem;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-pill-btn:hover {
  border-color: var(--border-highlight);
}

.option-pill-btn.active {
  border-color: var(--cyan-telemetry);
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan-telemetry);
  font-weight: 600;
}

/* Right Pane: Live Engineering Readout Dossier */
.calc-output-pane {
  background: var(--bg-obsidian);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-output-header {
  padding: 1.5rem 2.25rem;
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(22, 31, 48, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-output-body {
  padding: 2.25rem;
  flex: 1;
}

.primary-kva-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1px solid var(--border-amber);
  padding: 1.5rem 1.75rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kva-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.kva-num span {
  font-size: 1.1rem;
  color: var(--amber-volt);
}

.calc-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calc-spec-box {
  padding: 1rem 1.15rem;
  background: var(--bg-slate);
  border: 1px solid var(--border-hairline);
  border-radius: 3px;
}

.calc-spec-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.calc-spec-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cyan-telemetry);
}

.calc-recommendation-card {
  border: 1px solid var(--border-hairline);
  background: rgba(17, 24, 39, 0.65);
  padding: 1.25rem;
  border-radius: 3px;
  margin-bottom: 1.5rem;
}

.rec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.rec-row:last-child {
  border-bottom: none;
}

.rec-row span:first-child {
  color: var(--text-secondary);
}

.rec-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.calc-output-footer {
  padding: 1.5rem 2.25rem;
  border-top: 1px solid var(--border-hairline);
  background: rgba(17, 24, 39, 0.6);
}

/* ==========================================================================
   COMMISSIONED INFRASTRUCTURE CASE STUDIES (PROJECT DOSSIERS)
   ========================================================================== */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3.5rem;
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(17, 24, 39, 0.4);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--amber-volt);
  color: var(--bg-obsidian);
  border-color: var(--amber-volt);
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  border-right: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-obsidian);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.25s ease;
}

.project-card:nth-child(3n) {
  border-right: none;
}

.project-card:hover {
  background: var(--bg-slate);
}

.project-img-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-hairline);
  background: #070a0f;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.05);
}

.project-sector-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 15, 23, 0.9);
  border: 1px solid var(--border-highlight);
  padding: 0.28rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber-volt);
  text-transform: uppercase;
}

.project-kv-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(11, 15, 23, 0.92);
  border: 1px solid var(--cyan-telemetry);
  padding: 0.22rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-telemetry);
}

.project-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-client {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-metrics-bar {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0.85rem 0;
  margin-bottom: 1.25rem;
}

.proj-metric-item {
  border-right: 1px solid var(--border-hairline);
  padding-right: 0.65rem;
  padding-left: 0.65rem;
}

.proj-metric-item:first-child {
  padding-left: 0;
}

.proj-metric-item:last-child {
  border-right: none;
}

.proj-m-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.proj-m-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-inspect-btn {
  background: transparent;
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.project-inspect-btn:hover {
  border-color: var(--amber-volt);
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-volt);
}

/* ==========================================================================
   ALABASTER BLUEPRINT SECTION: COMPLIANCE, SAFETY & COMMISSIONING PROTOCOL
   ========================================================================== */

.alabaster-section {
  background-color: var(--bg-alabaster);
  color: var(--text-alabaster-primary);
  background-image: 
    linear-gradient(to right, rgba(203, 213, 225, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(203, 213, 225, 0.45) 1px, transparent 1px);
  background-size: 36px 36px;
}

.alabaster-section .blueprint-frame {
  border-color: var(--border-alabaster);
}

.alabaster-section .section-meta-bar {
  background: #F1F5F9;
  border-color: var(--border-alabaster);
  color: #475569;
}

.alabaster-section .section-meta-bar .coord-tag {
  color: var(--copper-accent);
  font-weight: 600;
}

.alabaster-section .section-header-grid,
.alabaster-section .section-header-left {
  border-color: var(--border-alabaster);
}

.alabaster-section .section-kicker {
  color: var(--copper-accent);
}

.alabaster-section .section-header-right {
  color: var(--text-alabaster-secondary);
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-alabaster);
}

.protocol-step {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border-alabaster);
  background: rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease;
}

.protocol-step:last-child {
  border-right: none;
}

.protocol-step:hover {
  background: #FFFFFF;
}

.protocol-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--copper-accent);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(234, 88, 12, 0.35);
  background: rgba(234, 88, 12, 0.06);
  display: inline-block;
  margin-bottom: 1.25rem;
}

.protocol-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-alabaster-primary);
}

.protocol-desc {
  font-size: 0.88rem;
  color: var(--text-alabaster-secondary);
  margin-bottom: 1.25rem;
}

.protocol-check {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #0F172A;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-alabaster);
  display: flex;
  justify-content: space-between;
}

/* Standards Compliance Table in Alabaster */
.standards-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #FFFFFF;
}

.standard-cell {
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--border-alabaster);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.standard-cell:last-child {
  border-right: none;
}

.std-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: #0F172A;
}

.std-desc {
  font-size: 0.78rem;
  color: #475569;
  margin-top: 0.2rem;
}

/* ==========================================================================
   RFQ & 24/7 EMERGENCY FAULT DISPATCH TERMINAL
   ========================================================================== */

.rfq-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
}

.rfq-info-pane {
  padding: 3.5rem;
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rfq-form-pane {
  padding: 3.5rem;
  background: rgba(17, 24, 39, 0.45);
}

.mode-switch-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-hairline);
  margin-bottom: 2rem;
  background: var(--bg-obsidian);
  padding: 4px;
  border-radius: 3px;
}

.mode-tab-btn {
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mode-tab-btn.active {
  background: var(--amber-volt);
  color: var(--bg-obsidian);
  font-weight: 700;
}

.mode-tab-btn.emergency-tab.active {
  background: var(--crimson-fault);
  color: #FFFFFF;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

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

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.85rem 1rem;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
  border-radius: 3px;
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber-volt);
}

.sla-box {
  border: 1px solid var(--border-hairline);
  background: var(--bg-obsidian);
  padding: 1.5rem;
  border-radius: 3px;
  margin-top: 2rem;
}

.sla-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-grid);
}

/* ==========================================================================
   MODAL DOSSIER & TECHNICAL SPEC OVERLAY
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(7, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  width: 100%;
  max-width: 820px;
  background: var(--bg-slate);
  border: 1px solid var(--border-highlight);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-window {
  transform: translateY(0);
}

.modal-top-bar {
  padding: 1.15rem 1.75rem;
  background: var(--bg-obsidian);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  border-color: var(--amber-volt);
  color: var(--amber-volt);
}

.modal-content-body {
  padding: 2.25rem;
  max-height: 80vh;
  overflow-y: auto;
}

/* ==========================================================================
   FOOTER & ZEYVARO DIGITAL AGENCY SHOWCASE BADGE
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-hairline);
  background: #070A10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr;
  border-bottom: 1px solid var(--border-hairline);
}

.footer-col {
  padding: 3rem 3.5rem;
  border-right: 1px solid var(--border-hairline);
}

.footer-col:last-child {
  border-right: none;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--amber-volt);
}

.zeyvaro-showcase-banner {
  padding: 1.35rem 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(11, 15, 23, 0.95) 50%, rgba(56, 189, 248, 0.08) 100%);
}

.zeyvaro-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1rem;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border-amber);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
}

.zeyvaro-pill strong {
  color: var(--amber-volt);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1120px) {
  .hero-grid,
  .section-header-grid,
  .calculator-wrapper,
  .rfq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .section-header-left,
  .calc-controls-pane,
  .rfq-info-pane,
  .footer-col {
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
  }

  .capabilities-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .standards-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero-main,
  .section-header-left,
  .calc-controls-pane,
  .rfq-info-pane,
  .rfq-form-pane,
  .footer-col {
    padding: 2rem 1.25rem;
  }

  .capabilities-grid,
  .projects-grid,
  .protocol-grid,
  .standards-bar,
  .facility-type-grid,
  .voltage-pills-grid,
  .form-grid-2,
  .hero-visual-strip,
  .hero-telemetry-grid {
    grid-template-columns: 1fr;
  }

  .sld-live-readout {
    grid-template-columns: repeat(2, 1fr);
  }

  .dispatch-pill {
    display: none;
  }
}
