/* /hvac/ — standalone cinematic teardown page.
   Deliberately shares nothing with site.css: its own reset, palette and type.
   The 192-frame sequence is painted to a fixed, full-viewport canvas that sits
   behind every section, so all content scrolls over the footage. */

:root {
  --black: #000;
  --ink: #fff;
  --mut: rgba(255, 255, 255, .62);
  --mut2: rgba(255, 255, 255, .38);
  --ice: #7FD4E8;
  --ice-dim: rgba(127, 212, 232, .16);
  --line: rgba(255, 255, 255, .15);
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gut: 40px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--black); -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--cond); font-weight: 600; text-transform: uppercase; line-height: .92; letter-spacing: -0.005em; }
p { margin: 0; }

/* Shared atoms ---------------------------------------------------------- */
.label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ice);
}
.label .dim { color: var(--mut2); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--black); background: var(--ice);
  border: 0; border-radius: 0; padding: 16px 26px;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ice); text-decoration: none;
  border: 1px solid var(--line); padding: 13px 20px;
  transition: border-color .2s ease, background .2s ease;
}
.btn-ghost:hover { border-color: var(--ice); background: var(--ice-dim); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ice); outline-offset: 3px;
}

/* Fixed footage backdrop ------------------------------------------------ */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--black); }
/* Hidden until the scrubber actually activates, so no-JS, reduced-motion and
   any bail-out never leave an empty canvas or a stuck loading note on screen. */
body:not(.is-live) .bg { display: none; }
.bg canvas { width: 100%; height: 100%; }

/* Scroll-driven darkening: light during the teardown, heavy once it holds. */
.bg-dim { position: absolute; inset: 0; background: var(--black); opacity: .22; }

/* Edge scrims keep copy legible without putting a panel over the footage. */
.bg-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 26%),
    linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,0) 42%);
}
/* Directional scrim behind whichever side the current beat sits on. */
.bg-side {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.80) 0%, rgba(0,0,0,0) 46%);
  opacity: 0; transition: opacity .5s ease;
}
.bg-side.r { background: linear-gradient(to left, rgba(0,0,0,.80) 0%, rgba(0,0,0,0) 46%); }
.bg-side.on { opacity: 1; }

/* Grain: hides the upscale softness of 1280px source on large displays. */
.bg-grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-load {
  position: absolute; left: var(--gut); bottom: 34px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--mut2);
  transition: opacity .5s ease;
}
body.frames-ready .bg-load { opacity: 0; }

/* Layout ---------------------------------------------------------------- */
main, .top, .site-foot { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* Header ---------------------------------------------------------------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gut);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark img { width: 30px; height: 30px; }
.mark span {
  font-family: var(--cond); font-size: 19px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
/* Fades in once the teardown starts: the opening frame stays uninterrupted,
   but the CTA is reachable from there down. */
.top .btn {
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
  padding: 12px 20px; font-size: 11.5px;
}
body.cta-on .top .btn { opacity: 1; transform: none; pointer-events: auto; }

/* Opening --------------------------------------------------------------- */
.open {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center;
  padding: 120px 0 90px;
}
/* The h1 runs across the lit face of the unit, so the opening needs a deeper
   scrim than the beats do. */
.open::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(0,0,0,.94) 0%, rgba(0,0,0,.88) 30%, rgba(0,0,0,.62) 48%,
    rgba(0,0,0,.22) 64%, rgba(0,0,0,0) 78%);
}
.open .wrap { position: relative; z-index: 1; }
.open .wrap { display: grid; gap: 22px; justify-items: start; }
.open h1 {
  font-size: clamp(54px, 10.5vw, 148px);
  max-width: 14ch;
}
.open h1 em { font-style: normal; color: var(--ice); }
.open .lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--mut);
  max-width: 48ch;
}
.open .meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 4px; }
.scroll-hint {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mut2); margin-top: 26px;
}
.scroll-hint i { display: block; width: 54px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint i::after {
  content: ""; position: absolute; inset: 0; background: var(--ice);
  transform: translateX(-100%); animation: sweep 2.4s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Teardown beats -------------------------------------------------------- */
.beat {
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: end;
  padding: 90px 0 11vh;
}
.beat .wrap { display: grid; gap: 16px; justify-items: start; max-width: var(--max); }
.beat.r .wrap { justify-items: end; text-align: right; }
.beat h2 { font-size: clamp(38px, 6.4vw, 88px); max-width: 16ch; }
.beat .body { font-size: clamp(16px, 1.35vw, 18.5px); color: var(--mut); max-width: 44ch; }
.beat.r .body { text-align: right; }
.beat .parts {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mut2);
}
.beat .parts span { border: 1px solid var(--line); padding: 5px 9px; }
.beat .parts span.hot { color: var(--ice); border-color: rgba(127, 212, 232, .4); }

/* Still fallback for no-JS / reduced motion */
.beat .still { width: 100%; max-width: 760px; margin-top: 10px; border: 1px solid var(--line); }
body.is-live .beat .still { display: none; }

/* Beats fade as they enter, so copy doesn't just sit there over the footage. */
body.is-live .beat .wrap > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
body.is-live .beat.in .wrap > * { opacity: 1; transform: none; }
body.is-live .beat.in .wrap > *:nth-child(2) { transition-delay: .07s; }
body.is-live .beat.in .wrap > *:nth-child(3) { transition-delay: .13s; }
body.is-live .beat.in .wrap > *:nth-child(4) { transition-delay: .19s; }

/* Specification block ---------------------------------------------------- */
.spec { padding: 14vh 0 12vh; background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.92)); }
.spec-head { display: grid; gap: 14px; margin-bottom: 46px; }
.spec-head h2 { font-size: clamp(34px, 5vw, 62px); }
.spec-head p { color: var(--mut); max-width: 52ch; }
.spec-rows { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.spec-row {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px 36px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.spec-row dt {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ice);
  padding-top: 3px;
}
.spec-row dd { margin: 0; color: var(--mut); font-size: 16.5px; }

/* Scorecard form -------------------------------------------------------- */
.cta { padding: 12vh 0 14vh; background: rgba(0, 0, 0, .92); }
.cta-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; }
.cta h2 { font-size: clamp(38px, 5.6vw, 76px); margin-bottom: 18px; }
.cta .lede { color: var(--mut); max-width: 44ch; margin-bottom: 26px; }
.cta .assure { display: grid; gap: 10px; margin-top: 30px; }
.cta .assure div { display: flex; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); }
.cta .assure b { color: var(--ice); font-weight: 500; }

.form { display: grid; gap: 18px; border: 1px solid var(--line); padding: 32px; background: rgba(255, 255, 255, .02); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mut2); margin-bottom: 8px;
}
.form label span { color: rgba(255, 255, 255, .26); }
.form input {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 9px 0; border-radius: 0;
}
.form input:focus { outline: 0; border-bottom-color: var(--ice); }
.form input[aria-invalid="true"] { border-bottom-color: #FF6B5A; }
.form .err { color: #FF8577; font-size: 13px; margin-top: 6px; min-height: 1em; }
.form .fine { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--mut2); line-height: 1.7; }
.form .fine a { color: var(--ice); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#review-done { display: none; border: 1px solid var(--ice); padding: 32px; }
#review-done h3 { font-size: 30px; margin-bottom: 10px; }
#review-done p { color: var(--mut); }

/* Footer ---------------------------------------------------------------- */
.site-foot { background: var(--black); padding: 54px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px; }
.foot-grid a { color: var(--mut); text-decoration: none; }
.foot-grid a:hover { color: var(--ice); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.foot-legal { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--mut2); margin-top: 26px; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .open { padding: 104px 0 70px; }
  .open h1 { font-size: clamp(42px, 13vw, 72px); }
  .beat { padding: 80px 0 9vh; }
  .beat.r .wrap { justify-items: start; text-align: left; }
  .beat.r .body { text-align: left; }
  .beat h2 { font-size: clamp(32px, 9.5vw, 52px); }
  .bg-side, .bg-side.r { background: linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,0) 56%); }
  .spec-row { grid-template-columns: 1fr; gap: 8px; }
  .form { padding: 22px; }
  .form .row { grid-template-columns: 1fr; }
  .top { padding: 16px var(--gut); }
  .top .btn { padding: 10px 14px; font-size: 10.5px; letter-spacing: .1em; }
  .mark span { font-size: 16px; }
  .mark img { width: 26px; height: 26px; }
}

/* No JS / reduced motion: no fixed footage, stills carry the sequence. */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint i::after { animation: none; transform: none; }
  body.is-live .beat .wrap > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Common questions. The markup is <details>/<summary> because seo-check.mjs
   matches the FAQ schema against exactly that shape; collapsed by default so
   the text is carried without lengthening the page. */
.faq-h {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ice);
  margin: 54px 0 18px;
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--cond); font-size: 21px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--ice); font-family: var(--mono); font-size: 15px; }
.faq details[open] summary::before { content: "\2212"; }
.faq details p { padding: 0 0 20px 28px; color: var(--mut); max-width: 68ch; }
@media (max-width: 760px) {
  .faq summary { font-size: 18px; padding: 15px 0; }
  .faq details p { padding-left: 22px; }
}
