/* tokens.css */
/* Smart View design tokens — glass factory palette.
   Direction (Leo 2026-06-11): glass colors, frosted whites + ice blues,
   clear↔frosted as the signature motif, professional manufacturer feel. */

:root {
  /* Frost whites */
  --frost-0: #ffffff;
  --frost-1: #f6fafd;
  --frost-2: #edf4f9;
  --frost-3: #e2edf5;

  /* Ice / glass blues */
  --ice-100: #e3f1f8;
  --ice-200: #cfe6f2;
  --ice-300: #aed5e9;
  --ice-400: #8fc3de;
  --glass-500: #4796bd;
  --glass-600: #2e7396;
  --glass-700: #1f5872;

  /* Deep slate (text / dark sections) */
  --deep-700: #1d3a4a;
  --deep-800: #13242e;
  --deep-900: #0c1920;

  /* Glass surfaces */
  --pane: rgba(255, 255, 255, 0.55);
  --pane-strong: rgba(255, 255, 255, 0.78);
  --pane-border: rgba(255, 255, 255, 0.7);
  --pane-border-soft: rgba(174, 213, 233, 0.45);
  --pane-blur: 14px;
  --frost-milk: rgba(244, 250, 253, 0.62);

  /* Accent (CTA) — deep glass blue, high contrast on frost */
  --cta: #1f5872;
  --cta-hover: #2e7396;
  --cta-text: #ffffff;

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;

  /* Type scale */
  --fs-900: clamp(2.4rem, 5.5vw, 4.2rem);
  --fs-800: clamp(2rem, 4vw, 3rem);
  --fs-700: clamp(1.6rem, 3vw, 2.2rem);
  --fs-600: clamp(1.25rem, 2vw, 1.5rem);
  --fs-500: 1.125rem;
  --fs-400: 1rem;
  --fs-300: 0.875rem;
  --fs-200: 0.78rem;

  /* Spacing & shape */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  /* Shadow — cool, soft, glass-like */
  --shadow-pane: 0 8px 32px rgba(31, 88, 114, 0.12), 0 1.5px 4px rgba(31, 88, 114, 0.06);
  --shadow-float: 0 18px 50px rgba(31, 88, 114, 0.18);

  /* Motion — PDLC switch feel */
  --switch-ms: 600ms;
  --ease-glass: cubic-bezier(0.33, 1, 0.68, 1);

  --maxw: 1180px;
  --header-h: 76px;
}

/* base.css */
/* Reset + typography + layout primitives */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--deep-800);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--ice-100) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, var(--ice-200) 0%, transparent 55%),
    var(--frost-1);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--deep-900);
  text-wrap: balance;
}
h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-600); }

p { max-width: 68ch; }

a { color: var(--glass-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--glass-700); }

ul, ol { padding-left: 1.2rem; }

strong { font-weight: 700; }

::selection { background: var(--ice-300); color: var(--deep-900); }

:focus-visible {
  outline: 3px solid var(--glass-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Layout */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-3); }
.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }

.grid { display: grid; gap: var(--space-3); }
.grid > *, .hero-grid > *, .contact-split > * { min-width: 0; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.center { text-align: center; }
.center p { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-200);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glass-600);
  margin-bottom: var(--space-1);
}

.lede { font-size: var(--fs-500); color: var(--deep-700); }

.byline {
  margin-top: var(--space-2);
  font-size: var(--fs-300);
  color: var(--glass-600);
}
.byline a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.section-head { margin-bottom: var(--space-4); }
.section-head p { margin-top: var(--space-1); }

/* Visually hidden (a11y) */
.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;
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--deep-900); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* Tables (spec sheets) */
table { border-collapse: collapse; width: 100%; font-size: var(--fs-300); }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--ice-200); }
th { font-weight: 700; color: var(--deep-900); background: rgba(227, 241, 248, 0.5); }

/* glass.css */
/* Glassmorphism surfaces + the clear↔frosted signature animation.
   CWV rule: the frost layer keeps a CONSTANT backdrop-filter and animates
   ONLY opacity (GPU-composited, zero layout shift). Never animate blur(). */

/* --- Glass card ------------------------------------------------------- */
.glass-card {
  background: var(--frost-2);
  border: 1px solid var(--pane-border-soft);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-pane);
  padding: var(--space-3);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass-card {
    background: var(--pane);
    -webkit-backdrop-filter: blur(var(--pane-blur)) saturate(1.4);
    backdrop-filter: blur(var(--pane-blur)) saturate(1.4);
  }
}

.glass-card--strong { background: var(--pane-strong); }

/* --- Switchable pane (the product, as UI) ------------------------------ */
.glass-pane {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid var(--pane-border);
  box-shadow: var(--shadow-float);
  isolation: isolate;
}
.glass-pane > img, .glass-pane > picture img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Frost overlay: constant blur, opacity-only switch */
.frost-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255,255,255,.30) 0%, rgba(233,244,250,.42) 100%),
    var(--frost-milk);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  opacity: 1;
  transition: opacity var(--switch-ms) var(--ease-glass);
  pointer-events: none;
}
.glass-pane.is-clear .frost-layer { opacity: 0; }

/* No backdrop-filter support: milky solid fallback still demos the idea */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .frost-layer { background: rgba(240, 247, 252, 0.93); }
}

/* Real photo pair mode: top image = frosted state photo, fades out when clear */
.pair-top {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity var(--switch-ms) var(--ease-glass);
  pointer-events: none;
}
.pair-top img, .pair-top picture, .pair-top picture img { width: 100%; height: 100%; object-fit: cover; }
.glass-pane.is-clear .pair-top { opacity: 0; }

/* Subtle glass edge highlight */
.glass-pane::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(255,255,255,.18);
  pointer-events: none;
}

/* State chip shown on the pane */
.pane-state {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  font-size: var(--fs-200);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--deep-800);
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--pane-border);
  border-radius: 999px;
  padding: .35rem .8rem;
}
.pane-state::before {
  content: "FROSTED · PRIVATE";
}
.glass-pane.is-clear .pane-state::before {
  content: "CLEAR · OPEN VIEW";
}

/* --- The wall switch (toggle control) ---------------------------------- */
.glass-switch {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: var(--fs-300);
  color: var(--deep-800);
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--pane-border);
  border-radius: 999px;
  padding: .5rem .65rem .5rem 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-pane);
  transition: box-shadow .25s var(--ease-glass);
}
.glass-switch:hover { box-shadow: var(--shadow-float); }
.glass-switch .track {
  position: relative;
  width: 58px; height: 30px;
  border-radius: 999px;
  background: var(--ice-300);
  transition: background var(--switch-ms) var(--ease-glass);
  flex: none;
}
.glass-switch .knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(19, 36, 46, .25);
  transition: transform var(--switch-ms) var(--ease-glass);
}
.glass-switch[aria-pressed="true"] .track { background: var(--glass-500); }
.glass-switch[aria-pressed="true"] .knob { transform: translateX(28px); }

/* --- Scroll reveals ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-glass), transform .7s var(--ease-glass);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* --- Frosted divider band ------------------------------------------------ */
.frost-band {
  background: linear-gradient(180deg, rgba(227,241,248,0) 0%, rgba(207,230,242,.55) 50%, rgba(227,241,248,0) 100%);
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frost-layer, .glass-switch .knob, .glass-switch .track { transition-duration: 1ms; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* components.css */
/* Site components: header, nav, hero, buttons, cards, CTA bars, footer, forms, FAQ */

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-400);
  line-height: 1;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease-glass), box-shadow .2s var(--ease-glass), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cta);
  color: var(--cta-text);
  box-shadow: 0 10px 26px rgba(31, 88, 114, .35);
}
.btn--primary:hover { background: var(--cta-hover); color: #fff; }

.btn--ghost {
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--deep-800);
  border-color: var(--pane-border-soft);
  box-shadow: var(--shadow-pane);
}
.btn--ghost:hover { color: var(--deep-900); }

.btn--lg { padding: 1.15rem 2.1rem; font-size: var(--fs-500); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--pane-border-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand img { height: 52px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.4rem; list-style: none; padding: 0; align-items: center; }
.main-nav a {
  font-weight: 700;
  font-size: var(--fs-300);
  color: var(--deep-800);
  text-decoration: none;
  padding: .4rem 0;
}
.main-nav a:hover { color: var(--glass-600); }

.nav-item { position: relative; }
.nav-item > .submenu {
  display: none;
  position: absolute;
  top: 100%; left: -1rem;
  min-width: 280px;
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--pane-border-soft);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-float);
  padding: .6rem;
  list-style: none;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 921px) {
  /* Desktop only: hover/focus opens the dropdown. On mobile the .open class
     (tap accordion) controls it — otherwise focus-within would keep it open. */
  .nav-item:hover > .submenu, .nav-item:focus-within > .submenu { display: flex; }
}
.submenu a { display: block; padding: .55rem .8rem; border-radius: 8px; }
.submenu a:hover { background: var(--ice-100); }

.header-cta { white-space: nowrap; padding: .7rem 1.2rem; font-size: var(--fs-300); }
.header-call { white-space: nowrap; font-weight: 800; font-size: var(--fs-300); color: var(--deep-800); text-decoration: none; }
.header-call::before { content: "\260E"; margin-right: .35rem; color: var(--glass-600); }
.header-call:hover { color: var(--glass-600); }

/* Mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2.5px; background: var(--deep-900); border-radius: 2px; transition: transform .3s, opacity .3s; }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    border-bottom: 1px solid var(--pane-border-soft);
    box-shadow: var(--shadow-float);
    padding: var(--space-2) var(--space-3) var(--space-3);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: .8rem 0; font-size: var(--fs-400); border-bottom: 1px solid var(--ice-100); }
  /* Submenus collapsed; tap a parent to expand (accordion) */
  .nav-item > .submenu { display: none; position: static; box-shadow: none; border: 0; background: none; padding: 0 0 .4rem 1rem; }
  .nav-item.open > .submenu { display: block; }
  .nav-item:has(> .submenu) > a { display: flex; justify-content: space-between; align-items: center; }
  .nav-item:has(> .submenu) > a::after { content: "⌄"; font-size: 1.15em; line-height: 1; transition: transform .2s ease; opacity: .6; }
  .nav-item.open > a::after { transform: rotate(180deg); }
  .header-cta { display: none; }
  .header-call { display: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* --- Mobile sticky CTA bar ------------------------------------------------ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--pane-border-soft);
  padding: .6rem var(--space-2) calc(.6rem + env(safe-area-inset-bottom));
  gap: .6rem;
}
.sticky-cta .btn { flex: 1; padding: .85rem 1rem; font-size: var(--fs-300); }
@media (max-width: 920px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-block: var(--space-5) var(--space-6); }
.hero-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}
.hero h1 { margin-bottom: var(--space-2); }
.hero .lede { margin-bottom: var(--space-3); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-3); }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  font-size: var(--fs-300); color: var(--deep-700); font-weight: 600;
}
.hero-proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof svg { flex: none; }

.hero-pane-wrap { position: relative; }
.hero-pane-wrap .glass-pane { aspect-ratio: 4 / 3; }
.hero-pane-wrap .glass-switch {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* --- Full-bleed background hero ------------------------------------------- */
.hero--bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;                         /* full-bleed, edge to edge */
  height: clamp(420px, 78vh, 760px);   /* fits the screen, no scrolling */
  display: flex;
  align-items: center;
  padding-block: var(--space-4);
}
.hero--bg .hero-bg {
  position: absolute; inset: 0;
  border: 0; border-radius: 0; box-shadow: none;
  z-index: -2;
}
.hero--bg .hero-bg::after { content: none; }
/* both layers must fill the pane identically so clear & frosted crop the SAME */
.hero--bg .hero-bg > picture,
.hero--bg .hero-bg .pair-top { position: absolute; inset: 0; }
.hero--bg .hero-bg > img,
.hero--bg .hero-bg > picture img,
.hero--bg .hero-bg .pair-top img { width: 100%; height: 100%; object-fit: cover; }
/* light, even wash — keeps the photo bright and uniform across */
.hero--bg::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(8,15,26,.10);
  z-index: -1;
}
.hero-bg-inner { position: relative; width: 100%; }
/* copy sits directly on the photo, pushed toward the left edge — no card */
.hero--bg .hero-bg-inner { max-width: none; padding-inline: clamp(20px, 5vw, 80px); }
.hero-copy {
  max-width: 480px;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.hero-copy .lede { font-size: var(--fs-300); margin-bottom: var(--space-2); }
.hero-copy h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.hero-copy .hero-proof { font-size: var(--fs-200); }
/* white text + soft shadow for legibility over the image */
.hero--bg .eyebrow,
.hero--bg .hero-copy h1,
.hero--bg .hero-copy .lede,
.hero--bg .hero-copy .hero-proof {
  color: #fff;
  text-shadow: 0 1px 12px rgba(8,14,24,.6), 0 1px 3px rgba(8,14,24,.55);
}
.hero--bg .btn--ghost { color: #fff; border-color: rgba(255,255,255,.65); }
.hero--bg .btn--ghost:hover { background: rgba(255,255,255,.14); }
.hero--bg .glass-switch { position: absolute; right: 0; bottom: 0; z-index: 3; }
@media (max-width: 760px) {
  .hero--bg .glass-switch { position: static; margin-top: var(--space-3); }
}

/* --- Step cards ------------------------------------------------------------ */
.step-num {
  font-family: var(--font-display);
  font-size: var(--fs-700);
  font-weight: 700;
  color: var(--glass-500);
  line-height: 1;
  margin-bottom: var(--space-1);
}

/* --- Use-case / feature cards ---------------------------------------------- */
.card-img { border-radius: var(--radius-s); overflow: hidden; margin-bottom: var(--space-2); aspect-ratio: 16 / 10; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.glass-card h3 { margin-bottom: .4rem; }
.glass-card .more { font-weight: 700; font-size: var(--fs-300); }

/* --- Dark band (factory/spec section) --------------------------------------- */
.dark-band {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(71, 150, 189, .25) 0%, transparent 60%),
    var(--deep-900);
  color: var(--ice-100);
}
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .lede, .dark-band p { color: var(--ice-200); }
.dark-band .glass-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.dark-band .glass-card h3 { color: var(--ice-100); }
.dark-band a { color: var(--ice-300); }

/* --- Badges / cert chips ------------------------------------------------------ */
.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-300); font-weight: 700;
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--pane-border-soft);
  border-radius: 999px;
  padding: .5rem 1rem;
  color: var(--deep-800);
}

/* --- City chips ------------------------------------------------------------------ */
.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  max-width: 60rem;
  margin-inline: auto;
}
.city-chips .badge { text-decoration: none; transition: box-shadow .2s var(--ease-glass), transform .2s; }
.city-chips .badge:hover { box-shadow: var(--shadow-float); transform: translateY(-2px); color: var(--glass-700); }
.badge--cta { border-color: var(--glass-500); color: var(--glass-700); }

/* --- Contact band --------------------------------------------------------------- */
.contact-band { padding-block: var(--space-6); }
.contact-band .glass-card { padding: var(--space-4); }
.contact-split { display: grid; gap: var(--space-4); }
@media (min-width: 860px) { .contact-split { grid-template-columns: 1fr 1.1fr; } }
.contact-list { list-style: none; padding: 0; display: grid; gap: var(--space-2); font-weight: 600; }
.contact-list a { text-decoration: none; font-weight: 800; color: var(--deep-900); font-size: var(--fs-500); }
.contact-list .sub { display: block; font-size: var(--fs-300); color: var(--deep-700); font-weight: 500; }

.form-frame {
  width: 100%;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--frost-0);
  /* Heights tuned to fit the whole GHL form (incl. reCAPTCHA on the live
     domain) so it never shows an internal scrollbar. Narrow phones stack the
     fields to 1 column (taller); wider screens use 2 columns (shorter). */
  min-height: 1000px;
}
@media (min-width: 530px) {
  .form-frame { min-height: 780px; }
}

/* --- Quote popup modal ---------------------------------------------------- */
.quote-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: var(--space-3); }
.quote-modal[hidden] { display: none; }
.quote-modal-overlay { position: absolute; inset: 0; background: rgba(12, 22, 32, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.quote-modal-box {
  position: relative; z-index: 1; width: 100%; max-width: 540px;
  max-height: 92vh; overflow: auto; margin: auto;
  background: #fff; border-radius: var(--radius-l, 20px);
  box-shadow: var(--shadow-float); padding: var(--space-3) var(--space-3) var(--space-2);
}
.quote-modal-title { margin: .15rem 0 var(--space-2); }
.quote-modal-close {
  position: absolute; top: .4rem; right: .55rem; z-index: 2;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  background: none; border: 0; font-size: 1.9rem; line-height: 1; cursor: pointer;
  color: var(--deep-700); border-radius: 50%;
}
.quote-modal-close:hover { background: var(--ice-100); }
.quote-modal-frame { border-radius: var(--radius-s); }
/* The modal iframe loads inside a (previously display:none) box, so GHL's
   form_embed.js measures its height as 0 and keeps it hidden via inline
   opacity/visibility/display styles — leaving an empty modal on mobile.
   Inline styles aren't !important, so force the iframe visible at full height.
   Scoped to the modal only, so the auto-sized inline contact forms are unaffected. */
.quote-modal .quote-modal-frame {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 1000px !important;
}
body.modal-open { overflow: hidden; }

/* Reviews widget: full-width row under the contact form, height-contained so a
   long review list doesn't run down the whole page. */
.contact-reviews { margin-top: var(--space-3); }
.contact-reviews .reviews-widget { border-radius: var(--radius-s); }
.contact-reviews .lc_reviews_widget { display: block; }
@media (max-width: 920px) {
  /* On phones the cards stack taller — keep it contained + scrollable. */
  .contact-reviews .reviews-widget { max-height: 440px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* --- Hide selected sections on mobile only -------------------------------- */
@media (max-width: 920px) {
  #what-we-do, #how-it-works, #specs { display: none; }
  /* Home only: drop the inline contact FORM on phones (the popup quote form,
     sticky "Get a Free Quote", and tap-to-call cover conversion) — but keep the
     address, map, and reviews widget for social proof. */
  body.is-home .contact-split > div:last-child { display: none; }
}

/* Google Business map + reviews under the contact details */
.contact-map { margin-top: var(--space-3); }
.contact-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: var(--radius-m);
  display: block;
}
.map-cta {
  display: inline-block;
  margin-top: var(--space-1);
  font-weight: 600;
  font-size: var(--fs-300);
}

/* Home two-column: content (left) + sticky projects rail (right) */
.home-body { max-width: 1300px; margin-inline: auto; }
@media (min-width: 1040px) {
  .home-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: var(--space-4);
    align-items: start;
    padding-inline: var(--space-3);
  }
  .home-body-main { min-width: 0; }
  .home-body-main > section { border-radius: var(--radius-l, 20px); overflow: hidden; }
  /* Rail scrolls with the page (a long list of installs), not pinned. */
  .home-rail { align-self: start; }
}
.home-rail-inner { display: grid; gap: var(--space-2); }
.home-rail .eyebrow { margin-bottom: .1rem; }
.rail-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius-m); overflow: hidden;
  background: var(--frost-0); border: 1px solid rgba(0, 0, 0, .08);
  transition: border-color .15s ease, transform .15s ease;
}
.rail-card:hover { border-color: rgba(0, 0, 0, .22); transform: translateY(-2px); }
.rail-card-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rail-card-title { display: block; padding: .5rem .7rem; font-weight: 700; font-size: var(--fs-300); color: var(--deep-900); }
.rail-card--news .rail-card-title { font-size: var(--fs-200); line-height: 1.35; }
.rail-news-src { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--glass-600); margin-bottom: .2rem; }
@media (max-width: 1039px) {
  .home-rail { margin: var(--space-4) auto 0; max-width: 1100px; padding-inline: var(--space-3); }
  .home-rail-inner { grid-template-columns: 1fr 1fr 1fr; }
  .home-rail .eyebrow, .home-rail .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .home-rail-inner { grid-template-columns: 1fr 1fr; } }

/* Let the interactive PDLC animation break out of prose to full width */
.prose .pdlc-anim-section { margin-inline: calc(50% - 50vw); }

/* Custom PDLC liquid-crystal animation (how-smart-glass-works only) */
.crystal-demo { max-width: 760px; margin: var(--space-4) auto 0; }
.cd-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-l, 20px);
  overflow: hidden; border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 22px 55px -22px rgba(0, 0, 0, .45);
}
.cd-scene { position: absolute; inset: 0;
  background: linear-gradient(180deg, #ffcaa0 0%, #f3a06a 22%, #8fa9c8 52%, #4a6178 78%, #2b3a4d 100%); }
.cd-scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: repeating-linear-gradient(90deg, #1d2738 0 22px, #25324a 22px 30px, #1a2333 30px 58px, #2b3a55 58px 64px);
  clip-path: polygon(0 42%,6% 42%,6% 18%,12% 18%,12% 46%,20% 46%,20% 10%,27% 10%,27% 52%,36% 52%,36% 26%,44% 26%,44% 8%,52% 8%,52% 50%,61% 50%,61% 22%,69% 22%,69% 40%,78% 40%,78% 14%,86% 14%,86% 48%,94% 48%,94% 28%,100% 28%,100% 100%,0 100%); }
.cd-stage::before { content: ""; position: absolute; inset: 0; z-index: 3;
  background: rgba(244, 248, 251, .8); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  transition: opacity .7s ease, backdrop-filter .7s ease; pointer-events: none; }
.crystal-demo.is-on .cd-stage::before { opacity: 0; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
.cd-crystals { position: absolute; inset: 9% 4%; z-index: 4;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 1fr; place-items: center; gap: 2px; }
.cd-rod { width: 4px; height: 58%; border-radius: 3px; background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 4px rgba(120, 180, 255, .5); transform: rotate(var(--a));
  transition: transform .6s cubic-bezier(.7, 0, .2, 1), background .5s, box-shadow .5s; transition-delay: var(--d); }
.crystal-demo.is-on .cd-rod { transform: rotate(0deg); background: rgba(155, 212, 255, .97); box-shadow: 0 0 9px rgba(120, 190, 255, .95); }
.cd-electrode { position: absolute; left: 0; right: 0; height: 7%; z-index: 5;
  display: flex; align-items: center; justify-content: center; font-size: .6rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0);
  background: linear-gradient(180deg, rgba(120, 190, 255, 0), rgba(120, 190, 255, .22));
  transition: box-shadow .5s, color .5s, background .5s; }
.cd-electrode--top { top: 0; }
.cd-electrode--bottom { bottom: 0; background: linear-gradient(0deg, rgba(120, 190, 255, 0), rgba(120, 190, 255, .22)); }
.crystal-demo.is-on .cd-electrode { box-shadow: 0 0 20px 2px rgba(90, 180, 255, .85); color: rgba(255, 255, 255, .92);
  background: linear-gradient(180deg, rgba(120, 200, 255, .12), rgba(90, 180, 255, .5)); }
.cd-volt { position: absolute; top: 10px; right: 10px; z-index: 6; display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .6rem; border-radius: 999px; background: rgba(20, 28, 40, .55); color: rgba(255, 255, 255, .5);
  font-size: .72rem; font-weight: 700; transition: color .4s, background .4s, box-shadow .4s; }
.cd-bolt { opacity: .4; transition: opacity .3s; }
.crystal-demo.is-on .cd-volt { background: rgba(40, 120, 220, .9); color: #fff; box-shadow: 0 0 16px rgba(90, 180, 255, .85); }
.crystal-demo.is-on .cd-bolt { opacity: 1; }
.cd-state { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 6; text-align: center; margin: 0;
  color: #fff; font-size: var(--fs-300); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.cd-state-strong { color: #ffd9a8; }
.crystal-demo.is-on .cd-state-strong { color: #aee0ff; }
.cd-btn { display: block; margin: var(--space-3) auto 0; padding: .7rem 1.5rem; border: 0; border-radius: 999px;
  cursor: pointer; background: var(--deep-900, #14233a); color: #fff; font-weight: 700; font-size: var(--fs-400);
  transition: transform .1s, box-shadow .2s; }
.cd-btn:hover { box-shadow: 0 8px 26px -8px rgba(40, 120, 220, .75); }
.cd-btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .cd-rod, .cd-stage::before { transition: none; } }

/* --- Cinematic clear/frosted explainer video --------------------------- */
.pdlc-video { max-width: 1000px; margin: var(--space-4) auto 0; }
.pdlc-video-frame {
  position: relative; padding: 0; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--radius-l, 20px);
}
.pdlc-video-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* state legend, stacked top-left */
.pdlc-video-tag {
  position: absolute; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .7rem; border-radius: 999px;
  background: rgba(15, 23, 38, .55); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: var(--fs-200); font-weight: 600; letter-spacing: .01em;
}
.pdlc-video-tag .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pdlc-video-tag--off { top: 14px; }
.pdlc-video-tag--off .dot { background: #d9a93f; }
.pdlc-video-tag--on { top: 52px; }
.pdlc-video-tag--on .dot { background: #36c275; box-shadow: 0 0 8px 1px rgba(54, 194, 117, .6); }
.pdlc-video figcaption {
  margin-top: var(--space-2); text-align: center;
  font-size: var(--fs-200); color: var(--deep-700);
}

/* --- "Where people use smart glass" use-case grid ---------------------- */
.uses-grid { margin-top: var(--space-4); }
.use-card { display: flex; flex-direction: column; }
.use-card .card-img { aspect-ratio: 4 / 3; }
.use-card h3 { font-size: var(--fs-500); margin-bottom: .3rem; }
.use-card p { color: var(--deep-700); font-size: var(--fs-300); margin: 0; }
.uses-cta { margin-top: var(--space-4); }

/* --- Smart film install page: bad-job showcase, step cards, guarantee --- */
.bad-grid { gap: var(--space-3); }
.bad-figure { margin: 0; }
.bad-figure .card-img { aspect-ratio: 4 / 3; border: 1px solid rgba(200, 60, 60, .25); }
.bad-figure figcaption { margin-top: var(--space-1); font-size: var(--fs-300); color: var(--deep-700); }
.bad-tag {
  display: inline-block; margin-right: .4rem; padding: .12rem .55rem;
  border-radius: 999px; background: rgba(200, 60, 60, .12); color: #b23b3b;
  font-size: var(--fs-200); font-weight: 800; letter-spacing: .02em;
}
.step-grid { margin-top: var(--space-4); }
.step-card { position: relative; padding-top: var(--space-4); }
.step-card .step-n {
  position: absolute; top: calc(-1 * var(--space-2)); left: var(--space-3);
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cta); color: var(--cta-text, #fff);
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-500);
  box-shadow: 0 8px 20px -8px rgba(31, 88, 114, .6);
}
.step-card h3 { font-size: var(--fs-400); margin-bottom: .3rem; }
.step-card p { color: var(--deep-700); font-size: var(--fs-300); margin: 0; }
.guarantee-card { padding: var(--space-5); }
.guarantee-proof { margin-top: var(--space-4); }
.guarantee-proof figure { margin: 0; }
.guarantee-proof .card-img { aspect-ratio: 3 / 4; }
.guarantee-proof figcaption { margin-top: .55rem; text-align: center; font-size: var(--fs-300); color: var(--deep-700); }
.proof-tag { display: inline-block; margin-right: .4rem; padding: .12rem .6rem; border-radius: 999px; font-size: var(--fs-200); font-weight: 800; letter-spacing: .02em; }
.proof-clear { background: rgba(71, 150, 189, .16); color: var(--glass-600, #2f7da1); }
.proof-frosted { background: rgba(120, 140, 160, .18); color: var(--deep-700, #4a5a68); }

/* Alternating image/text feature rows (zigzag) */
.feature-rows { display: grid; gap: var(--space-5); margin: var(--space-5) 0; }
.feature-row { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 820px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .feature-row:nth-child(even) .feature-media { order: -1; }
}
.feature-media { margin: 0; }
.feature-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l, 18px);
}
/* Diagrams: show the whole illustration (don't crop) on a light panel */
.feature-media.is-diagram img {
  object-fit: contain;
  background: #eef4f8;
  padding: var(--space-3);
}
.feature-text h3 { font-size: var(--fs-600, 1.6rem); margin-bottom: var(--space-1); }
.feature-text p { color: var(--deep-700); }

/* Page hero image (text-only money/city pages) */
.page-hero {
  margin: var(--space-3) 0 var(--space-4);
  border-radius: var(--radius-l, 18px);
  overflow: hidden;
}
.page-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

/* Hero split: copy + interactive toggle side by side (smart-glass page) */
.page-hero-split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  margin: var(--space-3) 0 var(--space-5);
}
.page-hero-split > * { min-width: 0; }
.page-hero-copy h1 { margin-bottom: var(--space-2); }
@media (min-width: 900px) {
  .page-hero-split { grid-template-columns: 1fr 1.02fr; }
  .page-hero-split .page-hero-copy { order: 2; }     /* image left, text right */
  .page-hero-split .page-hero--switch { order: 1; }
}

/* Interactive clear↔frosted toggle hero */
.page-hero--switch {
  position: relative;
  overflow: visible;
  max-width: 760px;
  margin-inline: auto;
}
.page-hero-split .page-hero--switch { max-width: none; margin: 0; }

/* Structure diagrams (laminated / IGU cross-sections) */
.struct-svg { display: block; width: 100%; height: auto; }
.made-figure { max-width: 680px; margin: var(--space-3) auto var(--space-4); }
.made-video { display: block; width: 100%; height: auto; border-radius: var(--radius-m, 14px); }

/* Two profile drawings side by side (ML76S / ML85S sections) */
.spec-pair { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin: var(--space-3) 0 var(--space-4); }
@media (min-width: 720px) { .spec-pair { grid-template-columns: 1fr 1fr; } }
.spec-pair .glass-card { overflow: visible; }
.spec-pair .glass-card img,
.spec-pair .glass-card picture img {
  display: block; width: 100%; height: auto; max-height: none;
  aspect-ratio: auto; object-fit: contain; background: #fff; border-radius: var(--radius-m, 14px);
}

/* Diagram images in body feature-rows: always show the whole illustration, never crop/clip */
.feature-row .glass-card { overflow: visible; }
.feature-row .glass-card img,
.feature-row .glass-card picture img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
.page-hero--switch .glass-pane { border-radius: var(--radius-l, 18px); overflow: hidden; }
.page-hero--switch .glass-pane img { max-height: none; }
.page-hero--switch .glass-switch {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
}

/* Big full-width hero video with the headline overlaid on top (office page) */
.hero-video {
  position: relative;
  margin: var(--space-3) 0 var(--space-5);
  border-radius: var(--radius-l, 18px);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  background: #0b0f13;
  isolation: isolate;
}
.hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  min-height: clamp(22rem, 52vw, 40rem);
  padding: clamp(1.4rem, 4.5vw, 3.6rem);
  background: linear-gradient(90deg, rgba(8, 12, 16, .74) 0%, rgba(8, 12, 16, .5) 42%, rgba(8, 12, 16, .12) 72%, rgba(8, 12, 16, 0) 100%);
}
.hero-video__overlay .eyebrow { color: #fff; opacity: .92; }
.hero-video__overlay h1 { color: #fff; margin: 0 0 var(--space-1); max-width: 16ch; }
.hero-video__overlay .lede { color: rgba(255, 255, 255, .94); margin: 0; max-width: 44ch; }

/* Trust bar — key credibility facts (crawlable + AI-citable) */
.trust-bar {
  list-style: none;
  padding: 0;
  margin: var(--space-3) auto 0;
  max-width: 62rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.4rem;
  font-size: var(--fs-300);
  color: var(--deep-700);
}
.trust-bar li { display: flex; align-items: center; gap: .4rem; }
.trust-bar li + li::before { content: "·"; margin-right: 1.4rem; color: var(--glass-400, #9bb); }
.trust-bar strong { color: var(--deep-900); }

/* Crawlable Google rating line (complements the live widget) */
.reviews-text { margin: 0 0 var(--space-2); font-size: var(--fs-300); color: var(--deep-700); }
.reviews-text strong { color: var(--deep-900); }

/* Google rating badge (data in src/_data/reviews.json) */
.reviews-badge {
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  background: var(--frost-0);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius-m);
  text-decoration: none;
  color: var(--deep-900);
  font-weight: 600;
  line-height: 1;
}
.reviews-badge:hover { border-color: rgba(0, 0, 0, .18); }
.reviews-badge-stars { color: #fbbc04; letter-spacing: 1px; font-size: var(--fs-400); }
.reviews-badge-num strong { font-size: var(--fs-500); }
.reviews-badge-count { font-weight: 500; }

/* --- FAQ ---------------------------------------------------------------------- */
.faq-list { display: grid; gap: var(--space-2); max-width: 820px; margin-inline: auto; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: var(--space-3);
  font-weight: 800;
  font-size: var(--fs-400);
  color: var(--deep-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--glass-500);
  transition: transform .3s var(--ease-glass);
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 var(--space-3) var(--space-3); color: var(--deep-700); }

/* --- Footer ---------------------------------------------------------------------- */
.site-footer {
  background: var(--deep-900);
  color: var(--ice-200);
  padding-block: var(--space-5) var(--space-4);
  margin-top: var(--space-6);
}
.site-footer a { color: var(--ice-200); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 44px; margin-bottom: var(--space-2); }
.footer-col h4 {
  color: #fff; font-family: var(--font-body);
  font-size: var(--fs-200); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: var(--fs-300); }
.footer-areas {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-areas h4 {
  color: #fff; font-family: var(--font-body);
  font-size: var(--fs-200); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.footer-area-links { font-size: var(--fs-200); color: var(--ice-300); line-height: 2; max-width: none; }
.footer-area-links a { color: var(--ice-300); }
.footer-area-links a:hover { color: #fff; }

/* Service-area dropdown tree: State › County › City -------------------------------- */
.area-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-2) var(--space-4);
  align-items: start;
}
.area-state > summary {
  cursor: pointer; list-style: none;
  color: #fff; font-weight: 700; font-size: var(--fs-300);
  padding: .35rem 0; display: flex; align-items: center; gap: .4rem;
}
.area-state > summary::-webkit-details-marker { display: none; }
.area-state > summary::before {
  content: "▸"; color: var(--ice-400); font-size: .8em;
  transition: transform .2s var(--ease-glass);
}
.area-state[open] > summary::before { transform: rotate(90deg); }
.area-state-body { padding: .2rem 0 .4rem .9rem; display: grid; gap: .15rem; }
.area-hub { font-size: var(--fs-200); color: var(--glass-400); display: inline-block; margin-bottom: .25rem; }
.area-county > summary {
  cursor: pointer; list-style: none;
  color: var(--ice-200); font-size: var(--fs-200); font-weight: 600;
  padding: .25rem 0; display: flex; align-items: center; gap: .35rem;
}
.area-county > summary::-webkit-details-marker { display: none; }
.area-county > summary::before {
  content: "+"; color: var(--ice-400); width: .8em; display: inline-block; text-align: center;
}
.area-county[open] > summary::before { content: "–"; }
.area-county ul {
  list-style: none; padding: .1rem 0 .35rem 1rem; margin: 0;
  display: grid; gap: .25rem; font-size: var(--fs-200);
}
.area-county ul a { color: var(--ice-300); }
.area-county ul a:hover { color: #fff; }
.area-overview a { color: var(--glass-400); font-weight: 600; }
.footer-area-all { margin-top: var(--space-3); font-size: var(--fs-200); }
.footer-area-all a { color: var(--ice-200); }

.footer-socials { display: flex; gap: .7rem; margin-top: var(--space-2); }
.soc {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: transform .2s var(--ease-glass), box-shadow .2s;
}
.soc:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.soc--fb { background: #1877F2; }
.soc--ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.soc--tt { background: #010101; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.soc--yt { background: #FF0000; }
.soc--yelp { background: #D32323; }

.footer-meta {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: space-between;
  font-size: var(--fs-200); color: var(--ice-300);
}

/* --- Transformer spec table (manufacturer style) ------------------------------------- */
.tx-table-wrap {
  overflow-x: auto;
  background: var(--frost-0);
  border: 1px solid var(--pane-border-soft);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-pane);
  margin-block: var(--space-3);
}
.tx-table { min-width: 760px; font-size: var(--fs-300); }
.tx-table th {
  background: var(--deep-800);
  color: var(--ice-100);
  font-size: var(--fs-200);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tx-table td { white-space: nowrap; }
.tx-table tbody tr:nth-child(even) { background: rgba(227, 241, 248, 0.35); }
.tx-table tbody tr:hover { background: var(--ice-100); }
.tx-row--dimmable td:first-child { border-left: 3px solid var(--glass-500); }

/* --- Smart film colour swatches ----------------------------------------------------- */
.film-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.film-swatch { text-align: center; }
.film-swatch .chip {
  height: 130px;
  border-radius: var(--radius-m);
  border: 1px solid var(--pane-border-soft);
  box-shadow: var(--shadow-pane);
  position: relative;
  overflow: hidden;
}
/* frosted-glass sheen over each tint */
.film-swatch .chip::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0) 45%, rgba(255,255,255,.18));
}
.film-swatch--white      .chip { background: #e9eef1; }
.film-swatch--light-grey .chip { background: #c2cace; }
.film-swatch--dark-grey  .chip { background: #7c848a; }
.film-swatch--single-black .chip { background: #3a3e42; }
.film-swatch--double-black .chip { background: #16181b; }
.film-swatch .name { display: block; font-weight: 700; margin-top: .6rem; font-size: var(--fs-400); }
.film-swatch .desc { display: block; font-size: var(--fs-200); color: var(--deep-700); }
.tx-note { font-size: var(--fs-200); color: var(--glass-600); font-weight: 600; }
.tx-footnotes { font-size: var(--fs-200); color: var(--deep-700); }
.tx-photo-strip { display: flex; gap: var(--space-2); justify-content: center; }
.tx-photo-strip figure { padding: var(--space-2); max-width: 200px; }
.tx-photo-strip img { max-height: 200px; width: auto; margin-inline: auto; }
.tx-connections { max-width: 460px; justify-self: center; }

/* Native SVG diagrams (site design language) */
.svg-diagram svg { width: 100%; height: auto; display: block; }
.wd-label, .cg-label { font-family: var(--font-body); font-size: 15px; font-weight: 800; fill: var(--deep-800); }
.wd-sub, .cg-sub { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; fill: var(--deep-700); }
.wd-sub-light { font-family: var(--font-body); font-size: 12px; font-weight: 600; fill: #cfe6f2; }
.wd-unit { font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: .18em; fill: #cfe6f2; }
.wd-volts { font-family: var(--font-display); font-size: 17px; font-weight: 700; fill: #ffffff; }
.cg-center { font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .14em; fill: var(--glass-700); }
.cg-footer { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; fill: var(--deep-700); }

/* --- Feature rows: text beside matching image (product pages) ----------------------- */
.feature-row {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  margin-block: var(--space-3);
}
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .feature-row--flip > :first-child { order: 2; }
}
.feature-row > * { min-width: 0; }
.feature-row figure { margin: 0; }
.feature-row .prose > :first-child, .feature-row h2:first-child, .feature-row h3:first-child { margin-top: 0; }

.figure-caption {
  font-size: var(--fs-200);
  color: var(--deep-700);
  padding-top: .6rem;
}

/* --- Stat cards: numeric highlights that break up long prose ------------------------ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-block: var(--space-4);
}
@media (min-width: 720px) {
  .stat-cards { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
}
.stat-card {
  background: var(--pane);
  -webkit-backdrop-filter: blur(var(--pane-blur)) saturate(1.4);
  backdrop-filter: blur(var(--pane-blur)) saturate(1.4);
  border: 1px solid var(--pane-border-soft);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-pane);
  padding: var(--space-3) var(--space-2);
  text-align: center;
}
.stat-card .stat-num {
  display: block;
  font-weight: 800;
  font-size: var(--fs-700);
  line-height: 1;
  color: var(--glass-600);
  letter-spacing: -0.01em;
}
.stat-card .stat-label {
  display: block;
  margin-top: .5rem;
  font-size: var(--fs-300);
  color: var(--deep-700);
  line-height: 1.35;
}

/* --- Service-area map (inline SVG, lightweight) ------------------------------------ */
.service-map { margin: var(--space-4) 0; }
.service-map svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-m);
  border: 1px solid var(--pane-border-soft);
  box-shadow: var(--shadow-pane);
  background: linear-gradient(180deg, var(--frost-1), var(--frost-2));
}
.service-map figcaption {
  font-size: var(--fs-200);
  color: var(--deep-700);
  padding-top: .6rem;
  text-align: center;
}

/* --- Section band: decorative glass/light divider between long text blocks --------- */
.section-band {
  margin: var(--space-5) 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-pane);
  line-height: 0;
}
.section-band img,
.section-band picture img {
  width: 100%;
  height: clamp(150px, 26vw, 300px);
  object-fit: cover;
  display: block;
}

/* --- Pull quote: a line lifted from the copy, sized up to break the wall ------------ */
.pull-quote {
  margin-block: var(--space-4);
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
  border-left: 4px solid var(--glass-500);
  font-size: var(--fs-600);
  line-height: 1.4;
  font-weight: 600;
  color: var(--glass-700);
}
.pull-quote cite {
  display: block;
  margin-top: .7rem;
  font-size: var(--fs-300);
  font-weight: 600;
  font-style: normal;
  color: var(--deep-700);
}

/* --- Project page: text + media side by side --------------------------------------- */
.project-layout {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}
@media (min-width: 920px) {
  .project-layout { grid-template-columns: 1.15fr 1fr; }
  .project-media { position: sticky; top: calc(var(--header-h) + 16px); }
}
.project-layout > * { min-width: 0; }
/* natural aspect ratio — no mid-photo cropping; cap only extreme heights */
.project-media .glass-pane { margin-bottom: var(--space-2); cursor: pointer; }
.project-media .glass-pane > picture img,
.project-media .glass-pane > img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--pane-border-soft);
  box-shadow: var(--shadow-pane);
  background: var(--frost-0);
  transition: transform .25s var(--ease-glass), box-shadow .25s var(--ease-glass);
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.gallery-item a { display: block; aspect-ratio: 4 / 5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption {
  font-size: var(--fs-200);
  color: var(--deep-700);
  padding: .55rem .75rem .7rem;
  line-height: 1.45;
}

.project-video { padding: var(--space-2); margin: 0 0 var(--space-2); }
.project-video video { width: 100%; border-radius: var(--radius-s); display: block; }

/* --- Breadcrumb ------------------------------------------------------------------- */
.crumbs { font-size: var(--fs-200); color: var(--deep-700); padding-top: var(--space-2); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--ice-400); }
.crumbs a { color: var(--deep-700); }

/* --- Prose (markdown page bodies) ---------------------------------------------------- */
.prose h2 { margin: var(--space-4) 0 var(--space-2); }
.prose h3 { margin: var(--space-3) 0 var(--space-1); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-2); }
.prose img { border-radius: var(--radius-m); box-shadow: var(--shadow-pane); margin-block: var(--space-3); }
.prose table { margin-block: var(--space-3); }

/* --- Location pages: text + media share ONE centered measure ------------------------ */
/* Body text used to fill the full 1180px wrap while images sat contained, so text-only
   sections looked unbalanced. Cap the hero, the H1 header and the markdown body to the
   same width and center them, so every text and image block lines up edge-to-edge. */
.loc-article { --loc-measure: 60rem; }
.loc-article > .wrap > .section-head,
.loc-article > .wrap > .page-hero,
.loc-article > .wrap > .prose {
  max-width: var(--loc-measure);
  margin-inline: auto;
}

/* ============ Picture-window page — catalog-style components (.pwcat) ============ */
.pwcat { --pw-ink:#0c1920; --pw-ink2:#13242e; --pw-slate:#1d3a4a; --pw-blue:#1f5872; --pw-blue2:#2e7396; --pw-ice:#e3f1f8; --pw-frost:#f6fafd; --pw-frost2:#edf4f9; --pw-line:#d6e6ef; }
.pwcat picture { display:block; }

/* clear/frosted hero pair */
.pwcat .hero2 { display:flex; align-items:center; gap:1rem; margin:1.6rem 0 .6rem; }
.pwcat .win { position:relative; flex:1 1 0; min-width:0; border:1px solid var(--pw-line); border-radius:16px; overflow:hidden; aspect-ratio:3/2; box-shadow:0 18px 40px rgba(8,16,22,.16); }
.pwcat .win picture { width:100%; height:100%; }
.pwcat .win img { width:100%; height:100%; object-fit:cover; display:block; }
.pwcat .win .tag { position:absolute; left:.7rem; bottom:.7rem; font-size:.72rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; padding:.42rem .72rem; border-radius:999px; }
.pwcat .win .tag.on { background:rgba(8,16,22,.82); color:#fff; }
.pwcat .win .tag.off { background:rgba(255,255,255,.9); color:var(--pw-ink); }
.pwcat .swbtn { flex:0 0 auto; width:54px; height:54px; border-radius:50%; background:linear-gradient(150deg,var(--pw-blue2),var(--pw-ink2)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.5rem; font-weight:800; box-shadow:0 6px 16px rgba(8,16,22,.3); }
.pwcat .herocap { font-size:1rem; color:var(--pw-slate); text-align:center; margin:.2rem 0 0; }
.pwcat .herocap b { color:var(--pw-blue); }
@media (max-width:640px){ .pwcat .hero2{flex-direction:column;} .pwcat .swbtn{transform:rotate(90deg);} .pwcat .win{width:100%;} }

/* plug-and-play power strip */
.pwcat .power { margin-top:2.2rem; border-top:1px solid var(--pw-line); padding-top:1.4rem; text-align:center; }
.pwcat .power .peyebrow { font-size:.78rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--pw-blue2); }
.pwcat .power picture { max-width:760px; margin:1rem auto .4rem; }
.pwcat .power img { width:auto; max-width:100%; max-height:340px; margin:0 auto; display:block; }
.pwcat .power .pcap { font-size:1rem; color:var(--pw-slate); max-width:46rem; margin:.2rem auto 0; line-height:1.55; }
.pwcat .power .pcap b { color:var(--pw-ink); }

/* smart-layer: corner sample beside the build-up list */
.pwcat .fl { margin-top:2.4rem; display:grid; grid-template-columns:0.95fr 1.4fr; gap:2rem; align-items:center; }
@media (max-width:760px){ .pwcat .fl{grid-template-columns:1fr;} }
.pwcat .gbox { background:var(--pw-frost); border:1px solid var(--pw-line); border-radius:20px; padding:1rem; display:flex; flex-direction:column; }
.pwcat .gbox img { width:100%; max-height:440px; object-fit:contain; border-radius:10px; }
.pwcat .gbox .cap { text-align:center; font-size:.74rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--pw-slate); padding-top:.7rem; }
.pwcat .layers h3 { font-family:var(--font-display); font-size:1.6rem; color:var(--pw-ink); margin:0 0 .3rem; }
.pwcat .layers .sub { font-size:1rem; color:var(--pw-slate); margin:0 0 1rem; line-height:1.5; }
.pwcat .lyr { display:flex; gap:.8rem; align-items:flex-start; padding:.6rem 0; border-bottom:1px solid var(--pw-line); }
.pwcat .lyr:last-child { border-bottom:none; }
.pwcat .lyr .n { flex:0 0 28px; height:28px; border-radius:8px; background:var(--pw-ice); color:var(--pw-blue); font-weight:800; font-size:1rem; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); }
.pwcat .lyr .t { font-size:1rem; line-height:1.4; }
.pwcat .lyr .t b { color:var(--pw-ink); }

/* section heading */
.pwcat .secthead { font-family:var(--font-display); font-size:1.9rem; color:var(--pw-ink); margin:2.8rem 0 .2rem; }

/* two model section figures (compact) */
.pwcat .secs { margin-top:1.4rem; display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
@media (max-width:560px){ .pwcat .secs{grid-template-columns:1fr;} }
.pwcat .secfig { background:var(--pw-frost); border:1px solid var(--pw-line); border-radius:16px; padding:1rem; display:flex; flex-direction:column; align-items:center; }
.pwcat .secfig img { height:200px; width:auto; max-width:100%; object-fit:contain; }
.pwcat .secfig .cap { font-size:.9rem; font-weight:700; color:var(--pw-slate); margin-top:.6rem; text-align:center; }
.pwcat .secfig .cap b { color:var(--pw-blue); font-family:var(--font-display); font-size:1.05rem; }
.pwcat .secfig .cap .sm { display:block; font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--pw-blue2); margin-top:.25rem; }

/* NFRC rating labels */
.pwcat .stick2 { margin-top:1.6rem; display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
@media (max-width:560px){ .pwcat .stick2{grid-template-columns:1fr;} }
.pwcat .nlabel { border:2px solid var(--pw-ink); border-radius:12px; overflow:hidden; background:#fff; }
.pwcat .nlabel .top { background:var(--pw-ink); color:#fff; padding:.7rem 1rem; display:flex; justify-content:space-between; align-items:center; gap:.6rem; }
.pwcat .nlabel .top .nm { font-family:var(--font-display); font-weight:700; font-size:1.15rem; letter-spacing:.03em; }
.pwcat .nlabel .top .pr { font-size:.66rem; color:var(--pw-ice); text-align:right; line-height:1.3; text-transform:uppercase; letter-spacing:.04em; }
.pwcat .nlabel .body2 { padding:1rem; }
.pwcat .nlabel .erp { font-size:.7rem; font-weight:800; letter-spacing:.12em; color:var(--pw-slate); text-transform:uppercase; }
.pwcat .nlabel .two { display:grid; grid-template-columns:1fr 1fr; gap:.7rem; margin:.6rem 0 .7rem; }
.pwcat .nlabel .cell { background:var(--pw-frost2); border:1px solid var(--pw-line); border-radius:10px; padding:.7rem .4rem; text-align:center; }
.pwcat .nlabel .cell .n { font-family:var(--font-display); font-size:2.2rem; font-weight:600; color:var(--pw-ink); line-height:1; }
.pwcat .nlabel .cell .k { font-size:.66rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--pw-slate); margin-top:.4rem; }
.pwcat .nlabel .add { display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--pw-line); padding-top:.6rem; }
.pwcat .nlabel .add .vt { font-size:.74rem; color:var(--pw-slate); font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.pwcat .nlabel .add .vtn { font-family:var(--font-display); font-size:1.5rem; color:var(--pw-blue); font-weight:600; }
.pwcat .nlabel .cid { font-size:.66rem; color:var(--pw-slate); margin-top:.5rem; display:flex; justify-content:space-between; }

/* spec table */
.pwcat table.pwspec { width:100%; border-collapse:collapse; margin-top:1.6rem; font-size:.95rem; }
.pwcat .pwspec caption { caption-side:top; text-align:left; font-size:.78rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--pw-blue2); margin-bottom:.5rem; }
.pwcat .pwspec th, .pwcat .pwspec td { padding:.55rem .8rem; border-bottom:1px solid var(--pw-line); text-align:left; vertical-align:top; }
.pwcat .pwspec thead th { background:var(--pw-ink2); color:#fff; font-family:var(--font-display); font-weight:600; font-size:1.05rem; }
.pwcat .pwspec thead th:first-child { background:var(--pw-blue); }
.pwcat .pwspec td:first-child, .pwcat .pwspec th:first-child { color:var(--pw-slate); font-weight:700; width:13rem; }
.pwcat .pwspec td { color:var(--pw-ink); font-weight:600; }
.pwcat .pwspec tr:nth-child(even) td { background:var(--pw-frost2); }
.pwcat .pwspec .shared { text-align:center; color:var(--pw-blue); font-weight:700; }

/* certification marks */
.pwcat .marks { display:flex; align-items:center; gap:1.4rem; flex-wrap:wrap; margin-top:1.6rem; padding:1.1rem 0; border-top:1px solid var(--pw-line); border-bottom:1px solid var(--pw-line); }
.pwcat .marks img { height:74px; width:auto; box-shadow:none; border-radius:0; margin-block:0; }
.pwcat .marks .stds { font-size:.82rem; color:var(--pw-slate); line-height:1.5; flex:1 1 260px; }
.pwcat .marks .stds b { color:var(--pw-ink); }

/* frame finishes swatch grid */
.pwcat .finlead { font-size:1rem; color:var(--pw-slate); max-width:46rem; margin:.4rem 0 0; line-height:1.55; }
.pwcat .finlead b { color:var(--pw-ink); }
.pwcat .finishes { display:grid; grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); gap:.7rem .6rem; margin-top:1rem; }
.pwcat .sw { text-align:center; }
.pwcat .sw .chip { height:44px; border-radius:8px; border:1px solid rgba(8,16,22,.12); box-shadow:0 2px 7px rgba(8,16,22,.10), inset 0 1px 0 rgba(255,255,255,.22); }
.pwcat .sw .nm { display:block; font-size:.71rem; font-weight:700; color:var(--pw-ink); margin-top:.28rem; line-height:1.18; }
.pwcat .sw .cd { display:block; font-size:.59rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--pw-blue2); margin-top:.06rem; }
.pwcat .sw.is-std .chip { outline:2px solid var(--pw-blue); outline-offset:2px; }
.pwcat .sw.is-std .cd { color:var(--pw-blue); }

/* before/after pair (clear ↔ frosted real-job proof) */
.ba-pair { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin:1.2rem 0 .6rem; }
@media (max-width:600px){ .ba-pair{ grid-template-columns:1fr; } }
.ba-pair figure { position:relative; margin:0; border-radius:16px; overflow:hidden; border:1px solid var(--ice-200); box-shadow:0 14px 34px rgba(8,16,22,.14); }
.ba-pair picture { display:block; }
.ba-pair img { display:block; width:100%; height:100%; aspect-ratio:3/4; object-fit:cover; }
.ba-pair .balabel { position:absolute; left:.7rem; bottom:.7rem; font-size:.72rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; padding:.42rem .72rem; border-radius:999px; }
.ba-pair .balabel.on { background:rgba(8,16,22,.82); color:#fff; }
.ba-pair .balabel.off { background:rgba(255,255,255,.9); color:#0c1920; }
.ba-cap { font-size:.92rem; color:var(--glass-700); text-align:center; margin:.2rem 0 0; }

/* pdlc-anim.css */
/* "Press the remote" — photoreal system demo (real El Segundo install pair).
   The photo cross-fade + step lighting are CSS transitions; JS only sequences
   class changes. Frost overlay animates opacity only (GPU, zero CLS). */

.pdlc-real {
  display: grid;
  gap: var(--space-3);
  max-width: 1100px;
  margin-inline: auto;
}
.pdlc-real > * { min-width: 0; }

/* --- Steps: a row above the full-width video ------------------------- */
.pdlc-steps { display: grid; gap: var(--space-2); }
@media (min-width: 760px) {
  .pdlc-steps { grid-template-columns: repeat(3, 1fr); }
}

.pa-step {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-2) var(--space-3);
  opacity: 1;
  transition: box-shadow .45s;
}
.pa-step.lit {
  opacity: 1;
  transform: none;
  box-shadow: var(--shadow-float);
}
.pa-step h3 {
  font-size: var(--fs-400);
  margin-bottom: .25rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.pa-step p { font-size: var(--fs-300); color: var(--deep-700); margin: 0; }

.pa-step-num {
  font-family: var(--font-display);
  font-size: var(--fs-500);
  font-weight: 700;
  color: var(--glass-500);
}

/* LED dot per step */
.pa-led-dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: .45rem;
  border-radius: 50%;
  background: var(--ice-300);
  box-shadow: 0 0 0 0 rgba(54, 194, 117, 0);
  transition: background .3s, box-shadow .5s;
}
.pa-step.lit .pa-led-dot {
  background: var(--glass-500);
  box-shadow: 0 0 10px 2px rgba(71, 150, 189, .5);
}
/* the transformer step's LED reads as POWER: amber standby -> green on */
.pa-led-dot.pa-led-power { background: #d9a93f; }
.pa-step.lit .pa-led-dot.pa-led-power {
  background: #36c275;
  box-shadow: 0 0 12px 3px rgba(54, 194, 117, .55);
}

.pa-switch { justify-self: start; margin-top: var(--space-1); }

/* --- Photo pane ------------------------------------------------------- */
.pa-photo-pane { aspect-ratio: 3 / 4; max-height: 640px; cursor: pointer; }
.pa-photo-pane > picture, .pa-photo-pane > picture img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* frosted-state photo overlays the clear-state photo; opacity-only switch */
.pa-frost-photo {
  position: absolute;
  inset: 0;
  opacity: 1;
  /* frosting (power cut) is near-instant on real PDLC */
  transition: opacity .4s var(--ease-glass) .45s;
  pointer-events: none;
}
.pa-frost-photo picture, .pa-frost-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* clearing takes the full sequence: press -> transformer -> crystals align */
.pa-photo-pane.is-clear .pa-frost-photo {
  opacity: 0;
  transition: opacity .85s var(--ease-glass) 1.05s;
}

/* soft light bloom at the switch moment */
.pa-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 55% 45%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 65%);
  opacity: 0;
  pointer-events: none;
}
.pa-flash.go { animation: pa-flash-anim .7s var(--ease-glass); }
@keyframes pa-flash-anim {
  0% { opacity: 0; }
  35% { opacity: .5; }
  100% { opacity: 0; }
}

.pa-photo-credit {
  margin-top: var(--space-1);
  font-size: var(--fs-200);
  color: var(--deep-700);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .pa-step, .pa-led-dot, .pa-frost-photo { transition-duration: 1ms; transition-delay: 0ms; }
  .pa-flash.go { animation: none; }
}
