/* ==========================================================================
   Pro Air Solutions — When comfort breaks down.
   Every colour comes from css/tokens.css. No raw colour values below.
   Cool accent = cooling / diagnostics / focus. Warm accent = heating / actions.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font-family: var(--font-body); font-size: clamp(16px, 1.02vw, 18px); line-height: 1.55;
  color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, dt, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em; font-stretch: 100%; }
::selection { background: var(--color-accent); color: var(--color-on-accent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 16px; background: var(--color-text); color: var(--color-bg); transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip-link:focus { transform: none; }

.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.label { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.label span { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding-inline: 6px; border: 1px solid currentColor; font-size: 0.66rem; }

/* display type: expanded heavy grotesk, uppercase */
.display, .svc__title, .problem__line, .problem__answer, .engineering__title, .process__title, .why__title, .cta__title, .proof__fig, .menu__nav a, .hero__back, .footer__word, .reviews__title, .reason h3, .step h3 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.025em;
}
.display { font-size: clamp(3.2rem, 9.6vw, 11.5rem); line-height: 0.84; }

/* split-line reveal */
.line { display: block; }
.js [data-split-lines] .line { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js [data-split-lines] .line > span { display: inline-block; will-change: transform; }
.js [data-reveal] { opacity: 0; transform: translateY(36px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; font-size: 0.98rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--color-cta); color: var(--color-on-accent); }
.btn--primary::before { background: var(--color-cta-hover); }
.btn--primary:hover, .btn--primary:focus-visible { box-shadow: var(--glow-cta); }
.btn--ghost { border-color: var(--color-border-strong); color: var(--color-text); }
.btn--ghost::before { background: var(--color-text); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--color-bg); border-color: var(--color-text); }
.btn--small { --h: 40px; padding: 0 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 72px; padding-inline: var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  color: var(--color-text); transition: transform .7s var(--ease), color .5s var(--ease), backdrop-filter .2s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: color-mix(in srgb, var(--color-bg) 72%, transparent); border-bottom: 1px solid var(--color-border);
  transition: opacity .2s var(--ease), background-color .5s var(--ease); /* quick, so the page never shows through the half-faded bar */
}
.nav.is-scrolled::before { opacity: 1; }
/* the blur sits on the header itself, not on ::before: the header carries a
   view-transition-name (page crossfade), which makes it a backdrop root, and a
   blur inside it would only see the header, not the page scrolling beneath */
.nav.is-scrolled { backdrop-filter: blur(16px) saturate(140%); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-light { color: var(--color-inverse-text); }
.nav.is-light::before { background: color-mix(in srgb, var(--color-inverse-bg) 82%, transparent); border-bottom-color: var(--color-inverse-border); }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.logo-mark { width: auto; height: 40px; flex: none; }
.logo-word { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; }
.logo-word span { font-weight: 400; opacity: 0.75; }
.nav__chapter { display: flex; gap: 12px; align-items: center; color: var(--color-text-muted); }
.nav.is-light .nav__chapter { color: var(--color-inverse-muted); }
.nav__chapter [data-chapter-n] { color: var(--color-accent); }
.nav.is-light .nav__chapter [data-chapter-n] { color: var(--color-inverse-text); }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; white-space: nowrap; }
.nav__cta { white-space: nowrap; }
.nav__phone svg { width: 18px; height: 18px; color: var(--color-accent); }
.nav.is-light .nav__phone svg { color: var(--color-inverse-text); }
.nav__phone:hover span { text-decoration: underline; text-underline-offset: 4px; }
.nav__menu { display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border: 1px solid var(--color-border-strong); }
.nav.is-light .nav__menu { border-color: var(--color-inverse-border); }
.nav__menu-icon { position: relative; width: 18px; height: 10px; }
.nav__menu-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__menu-icon i:first-child { top: 0; }
.nav__menu-icon i:last-child { top: 8px; }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:first-child { top: 4px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:last-child { top: 4px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--color-bg); color: var(--color-text);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 6vw; padding: 120px var(--pad) 48px;
}
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--color-border); }
.menu__nav a { display: flex; align-items: baseline; gap: 20px; padding: 0.12em 0; border-bottom: 1px solid var(--color-border); font-size: clamp(2.2rem, 5.4vw, 5.6rem); line-height: 1.02; transition: color .4s var(--ease), padding .6s var(--ease); }
.menu__nav a span { font-size: 0.7rem; color: var(--color-text-subtle); transform: translateY(-1.4em); }
.menu__nav a:hover, .menu__nav a:focus-visible { color: var(--color-accent); padding-left: 0.3em; }
.menu__side { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; color: var(--color-text-muted); }
.menu__call { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--color-text); }
.menu__call svg { width: 28px; height: 28px; color: var(--color-accent); }
.menu__side .btn { align-self: flex-start; margin-bottom: 10px; }

/* ---------- 01 Hero ----------
   Grid layout: the 3D model has its own stage cell, so it can never sit on
   top of the headline, the serif line or the copy. */
.hero { position: relative; height: 230vh; background: var(--color-bg); }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__light {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 70% at 72% -6%, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 72%),
    radial-gradient(28% 22% at 72% 86%, color-mix(in srgb, var(--color-accent) 12%, transparent), transparent 70%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 62%);
}
.hero__light::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--color-text) 4%, transparent) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--pad)) / 12) 100%; background-position: var(--pad) 0;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__grid {
  --hero-out: 0; position: relative; z-index: 1; height: 100%; padding: 96px var(--pad) 0;
  display: grid; column-gap: 4vw;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  /* free height splits above "breaks down." and above the facts, so the
     left column reads top / middle / bottom instead of ending in a gap */
  grid-template-rows: auto auto minmax(0, 0.55fr) auto minmax(0, 1fr) auto;
  grid-template-areas: "eyebrow eyebrow" "title title" "front stage" "aside stage" "facts stage" "rail rail";
}
.hero__title { display: contents; }
.hero__eyebrow { grid-area: eyebrow; color: var(--color-text-muted); margin-bottom: 1.4vh; }
.hero__back { grid-area: title; display: flex; flex-wrap: wrap; column-gap: 0.26em; font-size: 8vw; line-height: 0.86; letter-spacing: -0.035em; color: var(--color-text); }
.hero__word { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__word > span { display: inline-block; will-change: transform; }
.hero__word--r { color: var(--color-text-muted); }
.hero__front {
  grid-area: front; align-self: end; display: block; overflow: hidden; margin-top: 2vh;
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 6.2vw; line-height: 0.98; letter-spacing: -0.02em;
  color: var(--color-text); text-transform: none; padding-right: 0.1em;
}
.hero__front > span { display: inline-block; }
.hero__aside { grid-area: aside; align-self: start; display: grid; gap: 22px; max-width: 470px; padding-top: 3.2vh; }
.hero__lede { font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.45; color: var(--color-text); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
/* scroll fade on desktop: main.js eases --hero-out from 0 to 1 */
[data-hero-ui] { opacity: calc(1 - var(--hero-out, 0)); translate: 0 calc(var(--hero-out, 0) * 30px); }
.hero__stage { grid-area: stage; position: relative; min-height: 0; margin: 1vh 0 2vh; }
.hero__poster, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* soft edges: the floor and light dissolve instead of ending at the cell border */
.hero__poster, .hero__canvas {
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 70%, transparent);
  mask-composite: intersect;
}
.hero__poster { object-fit: contain; transition: opacity 0.8s var(--ease); pointer-events: none; }
.hero.is-live .hero__poster { opacity: 0; }
.hero__canvas { opacity: 0; transition: opacity 1s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }
.no-webgl .hero__canvas { display: none; }
[data-theme="cool"] [data-only="heat"], [data-theme="heat"] [data-only="cool"] { display: none; }
.hero__status {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2;
  padding: 8px 12px; color: var(--color-accent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent); background: var(--color-scrim); backdrop-filter: blur(6px); white-space: nowrap;
}
.hero__status span { display: flex; align-items: center; gap: 10px; }
.hero__status svg { width: 15px; height: 15px; flex: none; }
.hero__facts { grid-area: facts; align-self: end; max-width: 470px; margin: 3vh 0 26px; border-top: 1px solid var(--color-border); }
.hero__facts div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--color-border); }
.hero__facts dt { color: var(--color-text-subtle); padding-top: 0.15em; }
.hero__facts dd { color: var(--color-text); font-size: 0.95rem; line-height: 1.35; }
.hero__rail { grid-area: rail; height: 56px; display: flex; align-items: center; gap: 32px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); }
.hero__fig { color: var(--color-text-subtle); }
.hero__scroll { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; color: var(--color-text); }
.hero__scroll i { position: relative; width: 1px; height: 22px; background: var(--color-border); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; width: 1px; height: 10px; background: var(--color-accent); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-12px); } 70%, 100% { transform: translateY(26px); } }

/* ---------- Theme toggle (Cool / Heat) ---------- */
.theme-toggle { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 6px; border: 1px solid var(--color-border-strong); color: var(--color-text); }
.theme-toggle__track { position: relative; display: flex; align-items: center; justify-content: space-between; width: 58px; height: 28px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-surface-2); }
.theme-toggle__track svg { position: relative; z-index: 1; width: 16px; height: 16px; color: var(--color-text-muted); transition: color var(--theme-dur) var(--ease-io); }
.theme-toggle__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent); box-shadow: var(--glow); transition: transform var(--theme-dur) var(--ease-io); }
:root[data-theme="heat"] .theme-toggle__thumb { transform: translateX(30px); }
:root[data-theme="cool"] .theme-toggle .ti--cool, :root[data-theme="heat"] .theme-toggle .ti--heat { color: var(--color-on-accent); }
.theme-toggle__label { min-width: 2.6em; text-align: left; }
.nav.is-light .theme-toggle { border-color: var(--color-inverse-border); color: var(--color-inverse-text); }
.menu__theme { align-self: flex-start; }

/* ---------- 02 Proof ---------- */
.proof { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto; align-items: stretch; background: var(--color-surface); border-block: 1px solid var(--color-border); }
.proof__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.proof__item { display: grid; align-content: start; gap: 10px; padding: 32px clamp(16px, 2vw, 32px); border-right: 1px solid var(--color-border); }
.proof__item:first-child { padding-left: var(--pad); }
.proof__fig { font-size: clamp(2.2rem, 3.6vw, 3.8rem); line-height: 0.9; color: var(--color-text); }
.proof__fig sup { font-size: 0.5em; vertical-align: top; color: var(--color-accent); }
.proof__fig--sm { font-size: clamp(1.3rem, 1.9vw, 2rem); line-height: 1.05; padding-top: 0.25em; }
.proof__item > span { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.4; }
.proof__call { display: grid; align-content: center; gap: 6px; padding: 24px var(--pad) 24px clamp(24px, 3vw, 48px); background: var(--color-cta); color: var(--color-on-accent); transition: background-color .4s var(--ease); position: relative; }
.proof__call strong { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: clamp(1.4rem, 2vw, 2.1rem); letter-spacing: -0.01em; white-space: nowrap; }
.proof__call svg { position: absolute; right: 18px; top: 18px; width: 20px; height: 20px; }
.proof__call:hover, .proof__call:focus-visible { background: var(--color-cta-hover); }

/* ---------- 03 Problem ---------- */
.problem { position: relative; height: 420vh; background: var(--color-bg); }
.problem__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.problem__frame { position: absolute; inset: 0; clip-path: inset(26% 34% 26% 34%); will-change: clip-path; }
.problem__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; will-change: transform; }
.problem__shade { position: absolute; inset: 0; background: var(--color-bg); opacity: 0.25; }
.problem__label { position: absolute; top: 104px; left: var(--pad); z-index: 3; }
.problem__lines { position: relative; z-index: 2; display: grid; place-items: center; width: 100%; }
.problem__line { grid-area: 1 / 1; text-align: center; font-size: 12.5vw; line-height: 0.82; color: var(--color-text); opacity: 0; will-change: transform, opacity; }
.problem__end { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 9vh; opacity: 0; }
.problem__answer { font-size: clamp(2.6rem, 7.4vw, 8.6rem); line-height: 0.86; }
.problem__answer em { color: var(--color-accent); }
.problem__end-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.problem__end-row p { max-width: 44ch; color: var(--color-text); }
.problem.is-static { height: auto; }
.problem.is-static .problem__pin { position: relative; height: auto; min-height: 100svh; padding: 24vh var(--pad) 10vh; align-content: end; }
.problem.is-static .problem__frame { clip-path: none; }
.problem.is-static .problem__shade { opacity: 0.72; }
.problem.is-static .problem__lines { display: none; }
.problem.is-static .problem__end { position: relative; left: 0; right: 0; bottom: 0; opacity: 1; }

/* ---------- 04 Services ---------- */
.services { position: relative; background: var(--color-bg); }
.services__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: end; gap: 32px 48px; padding: 22vh var(--pad) 16vh; }
.services__intro .label { grid-column: 1 / -1; }
.services__intro .display em { color: var(--color-accent); }
.services__lede { color: var(--color-text-muted); font-size: 1.1rem; padding-bottom: 1.2vw; }
.svc { position: sticky; top: 0; height: 100vh; height: 100svh; }
.svc__inner { position: relative; height: 100%; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--color-surface); transform-origin: 50% 0%; will-change: transform; }
.svc__inner::after { content: ""; position: absolute; inset: 0; background: var(--color-bg); opacity: var(--shade, 0); pointer-events: none; }
.svc--alt .svc__inner { background: var(--color-surface-2); }
.svc--deep .svc__inner { background: var(--color-bg); }
.svc--flip .svc__media { order: 2; }
.svc__media { position: relative; height: 100%; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
/* a cut-out product photo sits on the panel instead of filling it */
.svc__media--product { display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 62%, var(--color-accent-soft), transparent), var(--color-surface-2); }
.svc__media--product img { width: 62%; height: 72%; object-fit: contain; }
.svc__body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; padding: 110px clamp(28px, 4.6vw, 88px) 10vh; overflow: hidden; }
.svc__icon { position: absolute; top: 92px; left: clamp(20px, 4vw, 72px); width: clamp(150px, 15vw, 230px); aspect-ratio: 1; }
.svc__icon canvas { width: 100%; height: 100%; }
.svc__num { position: absolute; top: 72px; right: clamp(18px, 3vw, 48px); font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(8rem, 18vw, 22rem); line-height: 0.8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--color-border); }
.svc__kicker { color: var(--color-accent); }
.svc__title { font-size: clamp(2.4rem, 4.2vw, 5rem); line-height: 0.9; }
.svc__text { max-width: 42ch; font-size: 1.08rem; color: var(--color-text-muted); }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc__tags li { padding: 7px 10px; border: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.64rem; }
.svc .btn { align-self: flex-start; margin-top: 8px; }
/* desktop deck (js/main.js): the chapters overlap in one sticky frame and slide in
   one after another over half a screen of scrolling each */
.svc-stack.is-deck::after { content: ""; display: block; height: calc(var(--svc-steps, 4) * 50svh); }
.svc-stack.is-deck .svc { overflow: hidden; pointer-events: none; }
.svc-stack.is-deck .svc + .svc { margin-top: -100vh; margin-top: -100svh; }
.svc-stack.is-deck .svc__inner { pointer-events: auto; }

/* ---------- 05 Diagnostics ---------- */
.engineering { position: relative; height: 220vh; background: var(--color-bg); }
.engineering__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(56% 60% at 50% 56%, var(--color-surface-2) 0%, var(--color-bg) 70%); }
.engineering__word { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 0; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: 19vw; line-height: 0.8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--color-text) 7%, transparent); }
.engineering__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.engineering__fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.no-webgl .engineering__fallback { display: block; }
.no-webgl .engineering__canvas, .no-webgl .callouts { display: none; }
.engineering__head { position: absolute; z-index: 4; top: 104px; left: var(--pad); display: grid; gap: 22px; }
.engineering__title { font-size: clamp(2.2rem, 4.2vw, 4.8rem); line-height: 0.9; }
.engineering__title em { color: var(--color-accent); }
.eng-photo { position: absolute; z-index: 4; top: 104px; right: var(--pad); width: clamp(150px, 12vw, 200px); }
.eng-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 55% 72%; }
.eng-photo figcaption { margin-top: 10px; color: var(--color-text-muted); font-size: 0.6rem; }
.eng-steps { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: 60px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.eng-steps li { display: grid; gap: 8px; padding-top: 16px; border-top: 2px solid var(--color-border); opacity: 0.45; transition: opacity .7s var(--ease), border-color .7s var(--ease); }
.eng-steps li.is-active { opacity: 1; border-top-color: var(--color-accent); }
.eng-steps span { color: var(--color-accent); font-size: 0.8rem; }
.eng-steps h3 { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; text-transform: uppercase; font-size: 1.02rem; letter-spacing: 0.01em; }
.eng-steps p { font-size: 0.88rem; color: var(--color-text-muted); max-width: 34ch; }
.eng-progress { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: 28px; height: 1px; background: var(--color-border); }
.eng-progress span { position: absolute; inset: 0; background: var(--color-accent); transform-origin: left; transform: scaleX(0); }

.callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.callout { position: absolute; left: 0; top: 0; display: flex; align-items: center; opacity: 0; transition: opacity .6s var(--ease); will-change: transform; }
.callout.is-on { opacity: 0.55; }
.callout.is-active { opacity: 1; }
.callout i { position: relative; width: 9px; height: 9px; margin-left: -4.5px; flex: none; border: 1px solid var(--color-accent); border-radius: 50%; background: var(--color-scrim); }
.callout i::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--color-accent); }
.callout.is-active i { box-shadow: var(--glow); }
.callout span { position: relative; margin-left: 76px; padding: 8px 12px; white-space: nowrap; font-size: 0.66rem; color: var(--color-text); background: var(--color-scrim); border: 1px solid var(--color-border); backdrop-filter: blur(6px); }
.callout.is-active span { border-color: var(--color-accent); }
.callout span::before { content: ""; position: absolute; right: 100%; top: 50%; width: 72px; height: 1px; background: var(--color-accent); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease) .1s; }
.callout.is-on span::before { transform: scaleX(1); }
.callout b { color: var(--color-accent); margin-right: 10px; font-weight: 600; }
.callout--left { flex-direction: row-reverse; }
.callout--left i { margin-left: 0; margin-right: -4.5px; }
.callout--left span { margin-left: 0; margin-right: 76px; }
.callout--left span::before { right: auto; left: 100%; transform-origin: right; }

/* ---------- Surface sections (the inverse-* tokens remain available for light variants) ---------- */
.equipment, .why { background: var(--color-surface); color: var(--color-text); }

/* ---------- 06 Equipment ---------- */
.equipment { padding: 20vh 0 12vh; }
.equipment__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: end; gap: 32px 48px; padding: 0 var(--pad); margin-bottom: 9vh; }
.equipment__head .label { grid-column: 1 / -1; }
.equipment__head .display { font-size: clamp(2.6rem, 5.2vw, 6.6rem); }
.equipment__side { display: grid; gap: 28px; padding-bottom: 0.8vw; }
.equipment__intro { color: var(--color-text-muted); font-size: 1.1rem; }
/* licensed product photo on its original white, like the manufacturer's catalogue card */
.product-tile { display: grid; justify-items: center; gap: 18px; width: min(100%, 252px); margin: 0; padding: 30px 24px 26px; border-radius: 16px; background: var(--color-product-bg); border: 1px solid var(--color-inverse-border); color: var(--color-inverse-text); }
.product-tile img { width: 101px; height: auto; }
.product-tile figcaption { font-weight: 700; font-size: 1.15rem; }
.equip { display: flex; gap: 6px; height: 80vh; padding: 0 6px; }
.equip__item { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer; background: var(--color-surface-2); transition: flex-grow 1.1s var(--ease); }
.equip__item.is-active { flex-grow: 3.2; }
.equip__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.equip__item.is-active img { transform: none; }
.equip__item:focus-visible { outline-offset: -4px; }
.equip__label { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 22px 24px; color: var(--color-text); background: linear-gradient(0deg, color-mix(in srgb, var(--color-bg) 70%, transparent), transparent); }
.equip__label strong { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2.8rem); line-height: 0.95; white-space: nowrap; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.equip__item.is-active .equip__label strong { opacity: 1; transform: none; transition-delay: .25s; }
.equipment__note { margin: 40px var(--pad) 0; max-width: 92ch; color: var(--color-text-muted); font-size: 0.78rem; line-height: 1.6; }

/* ---------- 07 Process ---------- */
.process { position: relative; height: 200vh; background: var(--color-bg); }
.process__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6vh; padding-top: 72px; }
.process__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding: 0 var(--pad); }
.process__head .label { grid-column: 1 / -1; }
.process__title { font-size: clamp(2.6rem, 6.4vw, 7.6rem); line-height: 0.86; }
.process__title em { color: var(--color-accent); }
.process__rail { grid-column: 1 / -1; position: relative; height: 1px; background: var(--color-border); }
.process__rail span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt)); transform-origin: left; transform: scaleX(0); }
.process__track { display: flex; gap: 4vw; padding-inline: var(--pad); width: max-content; will-change: transform; }
.step { position: relative; width: clamp(320px, 36vw, 600px); flex: none; display: grid; gap: 18px; }
.step__n { position: absolute; top: -0.42em; right: 0.04em; z-index: 2; font-family: var(--font-display); font-weight: 800; font-stretch: 115%; font-size: clamp(5rem, 9vw, 10rem); line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.2px var(--color-border-strong); }
.step__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-surface-2); }
.step__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.step:hover .step__media img { transform: scale(1.04); }
.step__media--detail img { scale: 2.1; transform-origin: 62% 42%; }
.step__card { position: relative; display: grid; align-content: space-between; padding: clamp(20px, 2.4vw, 36px); background: var(--color-surface); border: 1px solid var(--color-accent); }
/* the price card has its number inside, in the empty lower-right corner, clear of its text and frame */
.step__card .step__n { top: auto; right: 0.14em; bottom: 0.06em; z-index: 0; font-size: clamp(3.6rem, 6.2vw, 7rem); line-height: 0.8; }
.step__card > :not(.step__n) { position: relative; z-index: 1; }
.step__card .mono { color: var(--color-text-muted); }
.step__card strong { font-family: var(--font-display); font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3.8rem); line-height: 0.9; color: var(--color-accent); }
.step__text { display: grid; gap: 10px; }
.step h3 { font-size: clamp(1.5rem, 2.2vw, 2.4rem); line-height: 0.95; }
.step p { color: var(--color-text-muted); max-width: 40ch; }

/* ---------- 08 Why ---------- */
.why { padding: 20vh var(--pad) 16vh; }
.why__head { display: grid; gap: 32px; margin-bottom: 10vh; }
.why__title { font-size: clamp(2.6rem, 6.4vw, 7.6rem); line-height: 0.86; }
.reasons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 32px; }
.reason { grid-column: span 2; display: grid; align-content: start; gap: 12px; padding: 28px 0 44px; border-top: 2px solid var(--color-border-strong); }
.reason:nth-child(4), .reason:nth-child(5) { grid-column: span 3; }
.reason__n { color: var(--color-accent); }
.reason h3 { font-size: clamp(1.4rem, 2vw, 2.1rem); line-height: 1; }
.reason p { color: var(--color-text-muted); max-width: 42ch; }
.why__title em, .equipment__head .display em { color: var(--color-accent); }

/* ---------- 08 Our work: owner job photos, masonry columns ---------- */
.work { background: var(--color-bg); padding: 16vh var(--pad) 8vh; }
.work__head { display: grid; gap: 24px; margin-bottom: 7vh; }
.work__title { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(2.6rem, 5.4vw, 6.4rem); line-height: 0.88; letter-spacing: -0.02em; }
.work__title em { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; font-stretch: 100%; color: var(--color-accent); letter-spacing: -0.01em; }
.work__grid { columns: 3; column-gap: 14px; }
.work__item { position: relative; margin: 0 0 14px; break-inside: avoid; overflow: hidden; background: var(--color-surface); }
.work__item img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.work__item:hover img { transform: scale(1.04); }
.work__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 12px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text); background: linear-gradient(0deg, var(--color-scrim), transparent); }

/* ---------- 09 Reviews: excerpts from Google reviews ---------- */
.reviews { background: var(--color-bg); padding: 8vh var(--pad) 16vh; }
.reviews[hidden] { display: none; }
.reviews__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-bottom: 7vh; }
.reviews__head .label { grid-column: 1 / -1; }
.reviews__title { font-size: clamp(2.2rem, 4.6vw, 5rem); line-height: 0.9; }
.reviews__score { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 20px; border: 1px solid var(--color-border-strong); text-decoration: none; color: var(--color-text); transition: border-color .3s, background-color .3s; }
.reviews__score:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
.reviews__score strong { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.reviews__score .mono { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.reviews__score svg { width: 18px; height: 18px; color: var(--color-accent); }
.reviews__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { display: grid; gap: 18px; align-content: start; padding: 28px; background: var(--color-surface); border: 1px solid var(--color-border); }
.review blockquote { margin: 0; }
.review p { color: var(--color-text); font-size: 1.15rem; line-height: 1.45; }
.review .mono { color: var(--color-text-subtle); }
.review__stars { color: var(--color-accent); letter-spacing: 0.12em; font-size: 1rem; }

/* ---------- 10 Contact ---------- */
/* ---------- 09 Service area: schematic Los Angeles map ---------- */
.area { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 5vw; align-items: center; padding: 16vh var(--pad); background: var(--color-surface); }
.area__copy { display: grid; gap: 28px; align-content: center; }
.area__title { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(2.6rem, 5.4vw, 6.4rem); line-height: 0.88; letter-spacing: -0.02em; }
.area__title em { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; font-stretch: 100%; color: var(--color-accent); letter-spacing: -0.01em; }
.area__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.area__cities { columns: 2; column-gap: 24px; margin: 0; padding: 0; list-style: none; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.area__cities li { padding: 5px 0; border-bottom: 1px solid var(--color-border); break-inside: avoid; }
.area-map { position: relative; margin: 0; border: 1px solid var(--color-border); background: var(--color-bg); overflow: hidden; }
.area-map__frame { position: relative; }
.area-map__svg { display: block; width: 100%; height: auto; aspect-ratio: 975 / 680; }
/* live Leaflet map (js/area-map.js) takes the schematic's place, same size */
.area-map.is-live .area-map__svg { visibility: hidden; }
.area-map__live { position: absolute; inset: 0; z-index: 1; background: var(--color-bg); font-family: var(--font-body); outline: none; }
.area-map__live .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.82) contrast(0.92) saturate(0.35); }
/* a touch of the theme in the street map */
[data-theme="cool"] .area-map__live .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(0.8) contrast(0.92) saturate(0.5) sepia(0.1); }
[data-theme="heat"] .area-map__live .leaflet-tile-pane { filter: invert(1) hue-rotate(160deg) brightness(0.8) contrast(0.92) saturate(0.35) sepia(0.25); }
.area-map__unlock {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; width: 100%; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--color-bg) 38%, transparent); color: var(--color-text);
  font-family: var(--font-body); font-size: clamp(1.3rem, 2.6vw, 2.4rem); font-weight: 500;
  opacity: 0; transition: opacity .35s var(--ease);
}
.area-map__unlock[hidden] { display: none; }
.area-map__unlock span { padding: 10px 18px; background: color-mix(in srgb, var(--color-bg) 55%, transparent); }
.area-map__unlock:hover, .area-map__unlock:focus-visible { opacity: 1; }
@media (hover: none) { .area-map__unlock { opacity: 1; background: transparent; align-items: end; padding-bottom: 14px; font-size: 1rem; } }
.area-map .leaflet-container { background: var(--color-bg); font-family: var(--font-body); }
.area-map .leaflet-control-zoom a { background: var(--color-surface-2); color: var(--color-text); border-color: var(--color-border); }
.area-map .leaflet-container .leaflet-control-attribution { background: color-mix(in srgb, var(--color-bg) 75%, transparent); color: var(--color-text-subtle); font-size: 10px; }
.area-map .leaflet-container .leaflet-control-attribution a { color: var(--color-text-muted); }
.area-map .area-tip { background: var(--color-surface-2); color: var(--color-text); border: 1px solid var(--color-border-strong); border-radius: 0; box-shadow: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.area-map .area-tip::before { display: none; }
/* our area names sit on a small backing, so the street map's own place names under them don't show through */
.area-map .area-tip--label { background: color-mix(in srgb, var(--color-bg) 82%, transparent); border: 0; padding: 1px 5px; color: var(--color-text); text-shadow: none; font-size: 11px; }
.area-map__grid { fill: none; stroke: var(--color-border); stroke-width: 1; opacity: 0.6; }
.area-map__roads path { fill: none; stroke: var(--color-text-subtle); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
html.js .area-map__roads path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-io); }
html.js .area-map.is-drawn .area-map__roads path { stroke-dashoffset: 0; }
.area-map__shields rect { fill: var(--color-surface-2); stroke: var(--color-border-strong); }
.area-map__shields text { fill: var(--color-text); font-family: var(--font-mono); font-size: 16px; font-weight: 700; text-anchor: middle; }
.area-map__zone { fill: color-mix(in srgb, var(--color-accent) 9%, transparent); stroke: var(--color-accent); stroke-width: 2; stroke-dasharray: 6 8; stroke-linejoin: round; }
.area-map__region { fill: color-mix(in srgb, var(--color-accent) 70%, var(--color-text-muted)); font-family: var(--font-serif); font-style: italic; font-size: 38px; text-anchor: middle; }
.area-map__place circle { fill: var(--color-accent); stroke: var(--color-bg); stroke-width: 2.5; }
.area-map__place text { fill: var(--color-text); font-family: var(--font-body); font-size: 17px; transition: fill .3s var(--ease); }
.area-map__place:hover text { fill: var(--color-text); }
.area-map__caption { padding: 12px 16px; border-top: 1px solid var(--color-border); color: var(--color-text-subtle); }

/* ---------- 11 FAQ: native <details> accordion ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5vw; align-items: start; padding: 16vh var(--pad); background: var(--color-bg); }
.faq__head { display: grid; gap: 24px; justify-items: start; position: sticky; top: 14vh; }
.faq__title { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(2.6rem, 5.4vw, 6.4rem); line-height: 0.88; letter-spacing: -0.02em; }
.faq__title em { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; font-stretch: 100%; color: var(--color-accent); letter-spacing: -0.01em; }
.faq__lede { max-width: 38ch; color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.5; }
.faq__list { border-top: 1px solid var(--color-border-strong); }
.faq__item { border-bottom: 1px solid var(--color-border); interpolate-size: allow-keywords; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: clamp(1.1rem, 1.55vw, 1.5rem); line-height: 1.2; color: var(--color-text);
  transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover, .faq__item[open] summary { color: var(--color-accent); }
.faq__item summary:focus-visible { outline-offset: 4px; }
/* plus that turns into a minus */
.faq__item summary i { position: relative; flex: none; width: 22px; height: 22px; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .4s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__item p { max-width: 62ch; padding: 0 0 28px; color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.6; }
/* smooth open/close where the browser supports animating details content */
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }

.cta { position: relative; padding: 20vh var(--pad) 12vh; overflow: hidden; isolation: isolate; background: var(--color-bg); }
.cta__bg { position: absolute; inset: -8% 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) brightness(0.32) contrast(1.1); }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--color-bg) 0%, color-mix(in srgb, var(--color-bg) 30%, transparent) 30%, color-mix(in srgb, var(--color-bg) 70%, transparent) 70%, var(--color-bg) 100%); }
.cta__label { position: absolute; top: 104px; left: var(--pad); }
.cta__title { text-align: center; font-size: 13.4vw; line-height: 0.8; letter-spacing: -0.04em; }
.cta__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.cta__line > span { display: inline-block; }
.cta__line--em em { font-size: 1.12em; line-height: 0.8; color: var(--color-accent); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 6vw; align-items: end; margin-top: 10vh; }
.cta__contact { display: grid; gap: 32px; }
.cta__phone { display: grid; gap: 6px; }
.cta__phone .mono { color: var(--color-accent); }
.cta__phone strong { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(2.4rem, 5.4vw, 5.6rem); line-height: 0.9; letter-spacing: -0.02em; }
.cta__phone:hover strong { color: var(--color-accent); }
.cta__path { display: flex; flex-wrap: wrap; gap: 8px; counter-reset: path; }
.cta__path li { counter-increment: path; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--color-border); color: var(--color-text); }
.cta__path li::before { content: counter(path, decimal-leading-zero); color: var(--color-accent); }
.cta__info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.cta__info dt { color: var(--color-text-muted); margin-bottom: 6px; }
.cta__info dd { overflow-wrap: anywhere; }
.cta__info a:hover { color: var(--color-accent); }

/* ---------- Request form (inline card + drawer) ---------- */
.rform { display: grid; gap: 18px; }
.rform--card { padding: clamp(24px, 3vw, 40px); background: var(--color-surface); border: 1px solid var(--color-border); border-top: 3px solid var(--color-cta); }
.rform__title { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 1.6rem; letter-spacing: -0.01em; }
.rform__topic { color: var(--color-accent); }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.field i { color: var(--color-cta); font-style: normal; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--color-text); padding: 13px 14px;
  background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: 0; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-subtle); }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 25%, transparent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--color-error); }
.field__error { color: var(--color-error); font-size: 0.84rem; }
.field__error:empty { display: none; }
.rform__more summary { cursor: pointer; color: var(--color-text-muted); font-size: 0.92rem; padding: 4px 0; }
.rform__more summary:hover { color: var(--color-text); }
.rform__more[open] summary { margin-bottom: 14px; }
.rform__more .field { margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.rform__status:empty { display: none; }
.rform__status { padding: 14px 16px; font-size: 0.94rem; border-left: 3px solid var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.rform__status[data-state="error"] { border-color: var(--color-error); background: color-mix(in srgb, var(--color-error) 10%, transparent); }
.rform__status[data-state="success"] { border-color: var(--color-success); background: color-mix(in srgb, var(--color-success) 10%, transparent); }
.rform__status a { text-decoration: underline; text-underline-offset: 3px; }
.rform__status .btn { margin-top: 12px; }
.rform__note { color: var(--color-text-muted); font-size: 0.88rem; }
.rform__note a { color: var(--color-text); font-weight: 600; border-bottom: 1px solid currentColor; }
.btn__spinner { display: none; width: 16px; height: 16px; border: 1.5px solid color-mix(in srgb, var(--color-on-accent) 30%, transparent); border-top-color: var(--color-on-accent); border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .btn__spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-sent .quote__body, .rform.is-sent > .field, .rform.is-sent > .rform__more { display: none; }

.quote { width: min(560px, 100%); max-height: 100%; height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--color-surface); color: var(--color-text); overflow: hidden; }
.quote[open] { animation: drawer .7s var(--ease); }
.quote::backdrop { background: var(--color-scrim); backdrop-filter: blur(6px); animation: fade .5s var(--ease); }
@keyframes drawer { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.quote__form { display: flex; flex-direction: column; height: 100%; gap: 0; }
.quote__head { position: relative; padding: 34px 32px 20px; display: grid; gap: 16px; border-bottom: 1px solid var(--color-border); }
.quote__head h2 { font-family: var(--font-display); font-stretch: 115%; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 0.95; }
.quote__close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; font-weight: 300; }
.quote__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 32px; display: grid; gap: 18px; align-content: start; }
.quote__status { margin: 0 32px; }
.quote__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 32px 26px; border-top: 1px solid var(--color-border); }

/* ---------- Footer ---------- */
.footer { background: var(--color-bg); color: var(--color-text-muted); padding: 14vh var(--pad) 0; border-top: 1px solid var(--color-border); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer__brand { display: grid; gap: 20px; align-content: start; }
.footer__brand .nav__logo { color: var(--color-text); }
.footer__brand p { max-width: 36ch; font-size: 0.95rem; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.footer__col h2 { color: var(--color-text-subtle); margin-bottom: 8px; font-weight: 400; }
.footer__col a { color: var(--color-text); }
.footer__col a:hover { color: var(--color-accent); }
.footer__word { margin-top: 12vh; font-size: 20.5vw; line-height: 0.76; letter-spacing: -0.05em; white-space: nowrap; color: var(--color-surface); text-align: center; }
.footer__word::before { content: "Pro Air"; } /* decorative, kept out of the accessibility tree */
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 26px; border-top: 1px solid var(--color-border); color: var(--color-text-subtle); font-size: 0.66rem; }
.footer__base a:hover { color: var(--color-text); }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .services__intro, .equipment__head { grid-template-columns: 1fr; }
}

@media (max-width: 1360px) {
  .nav__chapter { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}

/* 3 × 2: five facts plus the call cell, no empty slot */
@media (max-width: 1180px) and (min-width: 900px) {
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof__list { display: contents; }
  .proof__item { border-bottom: 1px solid var(--color-border); }
  .proof__item:nth-child(4) { padding-left: var(--pad); }
  .proof__call { padding-left: clamp(16px, 2vw, 32px); border-bottom: 1px solid var(--color-border); }
}

/* short desktop windows: the facts are also in the contact section */
@media (min-width: 900px) and (max-height: 800px) {
  .hero__facts { display: none; }
}

@media (max-width: 899px) {
  .nav { height: 62px; }
  .nav__cta, .nav__menu-label { display: none; }
  .nav__phone span { display: none; }
  .nav__phone { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--color-border-strong); }
  .nav__actions { gap: 8px; }
  .theme-toggle { padding: 0 5px; border: 0; }
  .theme-toggle__label { display: none; }
  /* the fixed call bar never covers content: reserve its height */
  :root { --callbar-h: calc(68px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--callbar-h); }
  .logo-word { font-size: 0.8rem; }
  .menu { grid-template-columns: 1fr; padding-top: 96px; gap: 32px; }

  .hero { height: auto; }
  .hero__pin { position: relative; height: auto; min-height: 100svh; }
  .hero__grid { display: flex; flex-direction: column; height: auto; min-height: 100svh; padding: 82px var(--pad) 28px; }
  .hero__eyebrow { margin-bottom: 12px; }
  .hero__back { display: block; font-size: 14.2vw; }
  .hero__word--r { text-align: right; }
  .hero__stage { flex: none; height: clamp(200px, 34svh, 420px); margin: 6px 0 0; }
  .hero__front { align-self: start; margin-top: 0; font-size: 13.4vw; }
  .hero__aside { max-width: none; padding-top: 18px; gap: 18px; }
  .hero__status, .hero__rail, .hero__facts { display: none; }
  .area { grid-template-columns: 1fr; gap: 40px; padding-block: 12vh; }
  .area-map__svg { aspect-ratio: 1 / 1; }
  .faq { grid-template-columns: 1fr; gap: 40px; padding-block: 12vh; }
  .faq__head { position: static; }
  .faq__item summary { padding: 20px 0; }
  .hero__ctas .btn { flex: 1 1 auto; }

  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__call { padding: 22px var(--pad); }
  .proof__item, .proof__item:first-child, .proof__item:nth-child(4) { padding: 22px var(--pad); }
  .proof__item:nth-child(odd) { border-right: 0; }
  .proof__item:nth-child(even) { padding-left: 16px; }
  .proof__item:last-child { grid-column: 1 / -1; }

  .problem { height: 320vh; }
  .problem__line { font-size: 14vw; }
  .problem__end-row { flex-direction: column; align-items: flex-start; }
  .problem__label { top: 84px; }

  .services__intro, .equipment__head { grid-template-columns: 1fr; padding-top: 16vh; }
  /* long words ("MANUFACTURERS.") must fit 360px screens: normal width, smaller size */
  .equipment__head .display { font-size: 8.6vw; font-stretch: 100%; }
  .display, .why__title, .reviews__title { overflow-wrap: anywhere; }
  .svc { position: relative; height: auto; }
  .svc__inner { grid-template-columns: 1fr; }
  .svc--flip .svc__media { order: 0; }
  .svc__media { height: 72vw; max-height: 520px; }
  .svc__body { padding: 40px var(--pad) 64px; }
  .svc__icon { position: relative; top: auto; left: auto; width: 132px; margin: -96px 0 0 -10px; }
  .svc__num { top: 12px; font-size: 22vw; } /* low enough to clear the kicker line under the icon */

  .engineering { height: 200vh; }
  .engineering__word { font-size: 26vw; top: 46%; }
  .engineering__canvas, .callouts { top: 14%; height: 58%; }
  .engineering__head { top: 80px; }
  .eng-photo { display: none; }
  .eng-steps { grid-template-columns: 1fr; bottom: 48px; }
  .eng-steps li { display: none; }
  .eng-steps li.is-active { display: grid; }
  .callout span { margin-left: 34px; font-size: 0; padding: 5px 8px; }
  .callout b { font-size: 0.7rem; margin-right: 0; }
  .callout span::before { width: 30px; }
  .callout--left span { margin-left: 0; margin-right: 34px; }

  .equip { flex-direction: column; height: auto; padding: 0 var(--pad); gap: 10px; }
  .equip__item, .equip__item.is-active { flex: none; height: 64vw; max-height: 460px; }
  .equip__item img { transform: none; }
  .equip__label strong { opacity: 1; transform: none; white-space: normal; }

  .process { height: auto; }
  .process__sticky { position: static; height: auto; padding: 16vh 0; gap: 48px; }
  .process__head { grid-template-columns: 1fr; }
  .process__rail { display: none; }
  .process__track { flex-direction: column; width: auto; gap: 64px; transform: none !important; }
  .step { width: 100%; }

  .reasons { grid-template-columns: 1fr; }
  .reason, .reason:nth-child(4), .reason:nth-child(5) { grid-column: auto; }
  .reviews__list { grid-template-columns: 1fr; }
  .reviews__head { grid-template-columns: 1fr; }
  .reviews__score { justify-self: start; }
  .work__grid { columns: 2; column-gap: 8px; }
  .work__item { margin-bottom: 8px; }
  .work__item figcaption { padding: 24px 10px 8px; font-size: 0.62rem; }

  .cta { padding-top: 16vh; }
  .cta__grid { grid-template-columns: 1fr; gap: 48px; }
  .cta__info { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .quote { width: 100%; }
  .quote__head, .quote__body, .quote__foot { padding-inline: 22px; }
  .quote__status { margin-inline: 22px; }
  .field-row { grid-template-columns: 1fr; }

  /* call bar: phone + request, always one tap away */
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: 1fr auto;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    background: color-mix(in srgb, var(--color-bg) 88%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--color-border);
    transition: transform .5s var(--ease);
  }
  .callbar.is-hidden { transform: translateY(110%); }
  .callbar__call { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; background: var(--color-cta); color: var(--color-on-accent); font-weight: 600; }
  .callbar__call svg { width: 20px; height: 20px; }
  .callbar__req { height: 52px; padding: 0 18px; border: 1px solid var(--color-border-strong); font-weight: 600; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .quote__foot { flex-direction: column; align-items: stretch; }
  .proof__fig { font-size: 2.2rem; }
  .proof__fig--sm { font-size: min(1.9rem, 7.6vw); }
  .svc__title { font-size: min(2.4rem, 9.4vw); font-stretch: 104%; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-forced) *, html:not(.motion-forced) *::before, html:not(.motion-forced) *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.js:not(.motion-forced) [data-reveal] { opacity: 1; transform: none; }
  html:not(.motion-forced) .hero { height: auto; }
  html:not(.motion-forced) .hero__pin { position: relative; height: auto; min-height: 100svh; }
  html:not(.motion-forced) .hero__grid { min-height: 100svh; }
}
