/* ==========================================================================
   FoamGuard — site.css  (white theme)
   Tokens → base → components → sections → pages. No framework.
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens (from the logo, van decal and ad plates) ---------- */
:root {
  --bg: #FFFFFF;
  --ink: #0B1421;
  --blue: #1B5FCC;
  --blue-deep: #12408F;
  --gold: #EDC748;
  --gold-hi: #FCCC00;
  --red: #C0272F;
  --red-deep: #9E1F26;
  --teal: #00A8CC;
  --foam: #E9E0CC;
  --foam-edge: #D8CBB0;
  --paper: #F5F4F0;
  --line: #DDDBD4;
  --line-2: #EEECE6;
  --text: #16202E;
  --text-2: #56606E;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --shell: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --header-h: 76px;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --swoop: cubic-bezier(.16,1,.3,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; position: relative; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--gold-hi); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.005em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(50px, 9vw, 112px); }
h2 { font-size: clamp(38px, 6vw, 72px); }
h3 { font-size: clamp(24px, 3vw, 32px); }
/* 2.6.1: labels that look like headings without being headings (keeps the page outline to its sections) */
.h3, .h4 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.005em; margin: 0; color: var(--ink); max-width: none; }
.h3 { font-size: clamp(24px, 3vw, 32px); }
p { margin: 0; max-width: 62ch; }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--text-2); }

.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section + .section { border-top: 1px solid var(--line-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { position: relative; z-index: 1; }

.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 880px; }
.head .lede { max-width: 56ch; }

/* The four-colour rule: blue / yellow / red / light blue, straight off the ads. */
.rule4 { height: 5px; display: grid; grid-template-columns: 3fr 1fr 1fr 1fr; }
.rule4 i { display: block; }
.rule4 i:nth-child(1) { background: var(--blue); }
.rule4 i:nth-child(2) { background: var(--gold-hi); }
.rule4 i:nth-child(3) { background: var(--red); }
.rule4 i:nth-child(4) { background: var(--teal); }

/* Inch ruler under section heads: real inch marks. */
.ruler { height: 14px; margin-top: 18px; max-width: 240px; color: var(--blue); opacity: .85;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 12px) 0 0 / 100% 6px no-repeat,
              repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 48px) 0 0 / 100% 14px no-repeat; }


/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: var(--radius);
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .18s, box-shadow .18s, color .18s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px rgba(192,39,47,.55); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-gold { background: var(--gold-hi); color: var(--ink); }
.btn-gold:hover { background: var(--gold); }
.btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(140%) blur(10px); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 42px; width: auto; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 9px 9px; font-weight: 600; font-size: 14px; color: var(--text-2); border-radius: var(--radius); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper); }
.nav a.refer { color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.phone { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .02em; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.phone svg { width: 18px; height: 18px; color: var(--blue); }
.header-cta .btn { min-height: 46px; padding-inline: 20px; font-size: 18px; }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav .btn { display: none; }
@media (max-width: 1140px) {
  .nav { display: none; }
  .phone span { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; left: 0; right: 0; top: 100%; padding: 12px var(--gutter) 20px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(0,0,0,.25); }
  .site-header.open .nav a { font-size: 18px; padding: 14px 10px; }
  .site-header.open .nav .btn { margin-top: 10px; display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%; opacity: .18; }
.hero-foam { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(140px, 20vh, 220px); z-index: -1; pointer-events: none; }
.hero-foam canvas { width: 100%; height: 100%; }
.hero .shell { position: relative; padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero-copy { max-width: 780px; }
.hero h1 { text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-micro { margin-top: 22px; font-size: 15px; color: var(--text-2); }
.hero-micro a { color: var(--ink); font-weight: 600; }

/* Differentiator strip */
.strip { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; z-index: 1; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.strip li { display: flex; align-items: center; gap: 14px; padding: 22px 18px; border-left: 1px solid var(--line-2); }
.strip li:first-child { border-left: 0; }
.strip .num { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--blue); min-width: 56px; }
.strip .num small { font-size: 18px; vertical-align: top; }
.strip b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.strip span { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
@media (max-width: 900px) { .strip ul { grid-template-columns: 1fr 1fr; } .strip li:nth-child(3) { border-left: 0; } .strip li:nth-child(n+3) { border-top: 1px solid var(--line-2); } }
@media (max-width: 480px) { .strip li { padding: 16px 12px; gap: 10px; } .strip .num { font-size: 32px; min-width: 44px; } .strip span { display: none; } }

/* ---------- Credentials: the swoop ---------- */
.creds { position: relative; overflow: hidden; }
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cred { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; display: grid; grid-template-rows: 88px auto auto; gap: 14px; align-items: center;
  box-shadow: 0 24px 48px -32px rgba(11,20,33,.35); opacity: 0; transform: translate3d(min(60vw, 420px), 0, 0) skewX(-6deg); }
.cred.in { opacity: 1; transform: none; transition: transform .9s var(--swoop), opacity .5s ease-out; transition-delay: var(--d, 0s); }
.cred img { max-height: 88px; width: auto; margin-inline: auto; object-fit: contain; }
.cred .glyph { width: 84px; height: 84px; margin-inline: auto; color: var(--blue); }
.cred .glyph svg { width: 100%; height: 100%; }
.cred b, .cred .ct { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: .01em; color: var(--ink); }
.cred span { font-size: 15px; color: var(--text-2); line-height: 1.4; }
.cred .verify { font-size: 13px; color: var(--blue); font-weight: 600; }
.cred .ext { color: var(--blue); font-weight: 600; }
.cred a.verify:hover, .cred .ext:hover { text-decoration: underline; }
@media (max-width: 900px) { .cred-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cred-grid { grid-template-columns: 1fr; } .cred { grid-template-rows: 72px auto auto; } .cred img { max-height: 72px; } }
@media (prefers-reduced-motion: reduce) { .cred { opacity: 1; transform: none; } .cred.in { transition: none; } }

/* ---------- Get the number (estimator) ---------- */
.estimator .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.est-form { display: grid; gap: 16px; }
.est-form .field { display: grid; gap: 6px; }
.est-form label.lbl { font-size: 14px; font-weight: 600; color: var(--text-2); }
.est-form input[type=number], .est-form input[type=text], .est-form input[type=tel], .est-form input[type=email], .est-form select, .est-gate input[type=text], .est-gate input[type=tel], .est-gate input[type=email] {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); }
.est-form input:focus, .est-form select:focus, .est-gate input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(27,95,204,.18); }
.est-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.est-form .dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.est-form .unit { position: relative; }
.est-form .unit::after { content: "ft"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--text-2); pointer-events: none; }
.est-form .scope { display: flex; gap: 8px; flex-wrap: wrap; }
.est-form .scope label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; }
.est-form .scope label:has(input:checked) { border-color: var(--blue); background: rgba(27,95,204,.06); color: var(--ink); }
.est-form .scope input { accent-color: var(--blue); width: 16px; height: 16px; }
.thickness { display: grid; gap: 10px; }
.thickness .readout { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.thickness .val { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--blue); }
.thickness .val small { font-size: 22px; color: var(--text-2); font-weight: 700; }
.thickness .rv { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink); }
.thickness input[type=range] { width: 100%; accent-color: var(--blue); height: 32px; }
.thickness .slide { position: relative; }
.thickness .ticks { position: relative; height: 18px; font-size: 12px; color: var(--text-2); --thumb: 22px; }
.thickness .ticks span { position: absolute; top: 0; left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--f)); transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.thickness .ticks span::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 5px; background: currentColor; opacity: .5; }
.thickness .ticks .stud { color: var(--red); font-weight: 700; }
.thickness .ticks .stud::before { opacity: 1; width: 2px; margin-left: -.5px; }

.est-vis { display: grid; gap: 14px; }
.est-cut { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; aspect-ratio: 640 / 420; }
.est-cut svg { width: 100%; height: auto; display: block; }
.est-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.est-out div { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.est-out b, .est-out output { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.est-out span { font-size: 13px; color: var(--text-2); }
.est-gate { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; background: #fff; }
.est-gate h3, .est-gate .h3 { font-size: 26px; }
.est-gate p { font-size: 15px; color: var(--text-2); }
.est-gate .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.est-gate .field { display: grid; gap: 6px; }
.est-gate .fine { font-size: 13px; color: var(--text-2); }
.est-result { display: none; border: 1.5px solid var(--blue); border-radius: var(--radius); padding: 22px; background: #fff; }
.est-result .big { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 60px); color: var(--blue); line-height: 1; }
.est-result p { font-size: 15px; color: var(--text-2); margin-top: 10px; }
.estimator.done .est-gate { display: none; }
.estimator.done .est-result { display: block; }
.est-err { display: none; color: var(--red); font-size: 14px; font-weight: 600; }
.est-err.show { display: block; }
.hp { position: absolute; left: -9999px; top: -9999px; }
@media (max-width: 900px) { .estimator .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .est-form .dims { grid-template-columns: 1fr; } .est-out { grid-template-columns: 1fr 1fr; } .est-gate .row { grid-template-columns: 1fr; } }

/* ---------- Foam 101 ---------- */
.foam101 .compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cell { padding: clamp(28px, 4vw, 48px); position: relative; }
.cell + .cell { border-left: 1px solid var(--line); }
.cell h3 { font-size: clamp(30px, 4vw, 44px); }
.cell .tag { display: inline-block; margin-top: 10px; padding: 5px 10px; border-radius: 3px; font-size: 13px; font-weight: 700; }
.cell.closed .tag { background: var(--blue); color: #fff; }
.cell.open .tag { background: var(--paper); color: var(--text-2); }
.spec { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.spec li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--text-2); }
.spec li strong { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ink); text-align: right; line-height: 1; }
.cell.closed .spec li strong { color: var(--blue); }
.cell .use { margin-top: 22px; font-size: 15px; color: var(--text-2); }
.cell .use b { color: var(--ink); }
.foam101 .note { margin-top: 20px; font-size: 14px; color: var(--text-2); max-width: 70ch; }
@media (max-width: 760px) { .foam101 .compare { grid-template-columns: 1fr; } .cell + .cell { border-left: 0; border-top: 1px solid var(--line); } }

/* Spray Foam 101: scroll-scrubbed lift */
.spray-scrub { height: 260vh; margin-bottom: clamp(48px, 6vw, 88px); }
.spray-stage { position: sticky; top: calc(var(--header-h) + 16px); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.spray-frame { position: relative; height: calc(100svh - var(--header-h) - 32px); width: min(calc((100svh - var(--header-h) - 32px) * 0.78), 100%); max-width: 720px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #8c6a44; box-shadow: 0 30px 60px -36px rgba(0,0,0,.45); }
.spray-canvas { width: 100%; height: 100%; display: block; }
.spray-side { display: grid; gap: 14px; align-content: center; }
.spray-hud { display: grid; gap: 4px; }
.spray-hud .pass { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--ink); }
.spray-hud .clock { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.spray-hud .state { font-size: 15px; color: var(--text-2); margin-top: 6px; }
.spray-cap { font-size: 15px; color: var(--text-2); max-width: 44ch; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 860px) {
  .spray-scrub { height: 220vh; }
  .spray-stage { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .spray-frame { height: calc(100svh - var(--header-h) - 120px); width: 100%; margin-inline: auto; }
  .spray-side { gap: 8px; }
  .spray-hud { grid-template-columns: auto auto 1fr; align-items: baseline; gap: 0 14px; }
  .spray-hud .pass, .spray-hud .clock { font-size: 22px; }
  .spray-hud .state { grid-column: 1 / -1; margin-top: 2px; font-size: 14px; }
  .spray-cap { display: none; }
}
@media (prefers-reduced-motion: reduce) { .spray-scrub { height: auto; } .spray-stage { position: static; } }

/* ---------- ASTM data chart ---------- */
.bars { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; align-items: end; height: 320px; padding-top: 30px; }
.cbar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.cbar i { display: block; width: 100%; background: var(--foam); border-top: 3px solid var(--foam-edge); height: 0; transition: height 1.1s var(--ease-out); }
.cbar i.hi { background: var(--gold-hi); border-top-color: var(--gold); }
.cbar b { margin-bottom: 6px; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); opacity: 0; transition: opacity .6s .5s; }
.bars.in .cbar b { opacity: 1; }
.cbar span { margin-top: 10px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.bars.in .cbar i { height: calc(var(--v) * 1%); }
.data .src { margin-top: 26px; font-size: 14px; color: var(--text-2); max-width: 78ch; }
@media (max-width: 720px) { .bars { gap: 5px; height: 240px; } .cbar b { font-size: 15px; } .cbar span { font-size: 11px; } }

/* ---------- Services ---------- */
.services ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li { border-bottom: 1px solid var(--line); position: relative; display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 24px; padding: 24px 0; transition: background .2s; }
.services li:hover, .services li:focus-within { background: var(--paper); }
.services .svc { display: block; }
.services .svc::after { content: ""; position: absolute; inset: 0; }
.services .n { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--blue); letter-spacing: .02em; }
.services h3, .services .svc { font-size: clamp(24px, 3vw, 36px); }
.services p { margin-top: 6px; color: var(--text-2); font-size: 16px; }
.services .go { color: var(--text-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.services li:hover .go, .services li:focus-within .go { color: var(--ink); }
@media (max-width: 640px) { .services li { grid-template-columns: 1fr; gap: 8px; } .services .n { font-size: 20px; } .services .go { display: none; } }

/* ---------- Case study teaser + index ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post:hover, .post:focus-within { box-shadow: 0 24px 48px -32px rgba(11,20,33,.35); transform: translateY(-2px); }
.post .kicker { padding: 18px 22px 0; font-size: 13px; font-weight: 700; color: var(--blue); }
.post .body { padding: 10px 22px 22px; display: grid; gap: 10px; align-content: start; }
.post h3, .post .h3 { font-size: 28px; }
.post .more::after { content: ""; position: absolute; inset: 0; }
.post .more:hover { color: var(--ink); }
.post p { font-size: 15px; color: var(--text-2); }
.post .meta { font-size: 13px; color: var(--text-2); border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 6px; }
.post .stat { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--ink); padding: 22px 22px 0; }
.post .stat small { font-size: 18px; color: var(--text-2); font-weight: 700; margin-left: 6px; }
.more { margin-top: 28px; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Commercial ---------- */
.commercial .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.commercial .types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.commercial .types li { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink); letter-spacing: .01em; display: flex; align-items: center; gap: 14px; }
.commercial .types li::before { content: ""; width: 10px; height: 10px; background: var(--gold-hi); flex: none; }
.commercial .cta-box { background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); display: grid; gap: 18px; }
.commercial .cta-box h3, .commercial .cta-box .h3 { font-size: clamp(30px, 4vw, 44px); color: #fff; }
.commercial .cta-box p { color: #B7C1D0; font-size: 16px; }
.commercial .cta-box .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); background: transparent; }
.commercial .cta-box .btn-ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 860px) { .commercial .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .commercial .types { grid-template-columns: 1fr; } .commercial .types li { font-size: 22px; } }

/* ---------- FAQ ---------- */
.faq .list { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.1; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 66ch; }

/* ---------- Final CTA ---------- */
.final .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.final h2 { font-size: clamp(40px, 5.6vw, 76px); }
.final h2 em { font-style: normal; color: var(--blue); }
.final .call { display: grid; gap: 6px; margin-top: 26px; }
.final .call a { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.5vw, 52px); color: var(--ink); line-height: 1; }
.final .call span { color: var(--text-2); font-size: 15px; }
.final .addr { color: var(--text-2); font-size: 15px; line-height: 1.6; font-style: normal; margin-top: 22px; }
.final .box { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 16px; background: #fff; }
.final .box h3, .final .box .h3 { font-size: 30px; }
.final .box p { font-size: 15px; color: var(--text-2); }
@media (max-width: 860px) { .final .wrap { grid-template-columns: 1fr; } }

/* ---------- Generic form (referrals) ---------- */
.form { background: #fff; color: var(--text); padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(11,20,33,.35); }
.form h3 { font-size: 30px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .field { display: grid; gap: 6px; margin-bottom: 12px; }
.form label.lbl { font-size: 14px; font-weight: 600; color: var(--text-2); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(27,95,204,.18); }
.form .actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.form .actions .btn { min-height: 52px; }
.form .fine { font-size: 13px; color: var(--text-2); margin-top: 14px; }
.form .ok { display: none; padding: 20px 0; }
.form .ok h3, .form .ok .h3 { color: var(--blue); }
.form .ok p { margin-top: 10px; color: var(--text-2); }
.form.done form, .form.done > h3 { display: none; }
.form.done .ok { display: block; }
.form .err { display: none; color: var(--red); font-size: 14px; font-weight: 600; margin-top: 8px; }
.form .err.show { display: block; }
.form .group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.form .group:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form .group h4 { font-family: var(--display); font-size: 22px; color: var(--ink); margin-bottom: 12px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin-top: 6px; }
.form .consent input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9B4C4; font-size: 15px; position: relative; z-index: 1; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.site-footer h4, .site-footer .h4 { font-size: 18px; letter-spacing: .04em; color: #fff; margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .social { margin-top: 14px; font-size: 14px; line-height: 1.75; }
.site-footer .social a { color: #fff; font-weight: 600; }
.site-footer .brandline img { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid #1E2C42; padding: 20px 0 100px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .site-footer .legal { padding-bottom: 24px; } }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
.mobile-bar .call { background: var(--ink); color: #fff; }
.mobile-bar .quote { background: var(--red); color: #fff; }
.mobile-bar svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .mobile-bar { display: grid; } }

/* ---------- Referrals page ---------- */
.refer-hero { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.refer-hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.refer-hero h1 { font-size: clamp(48px, 8vw, 100px); }
.refer-hero h1 em { font-style: normal; color: var(--blue); }
.refer-hero .amount { font-family: var(--display); font-weight: 800; font-size: clamp(120px, 20vw, 260px); line-height: .85; color: var(--gold-hi); text-align: right; letter-spacing: -.03em; -webkit-text-stroke: 2px var(--ink); }
.refer-hero .amount small { display: block; font-size: .16em; letter-spacing: .06em; color: var(--text-2); text-align: right; -webkit-text-stroke: 0; }
@media (max-width: 800px) { .refer-hero .wrap { grid-template-columns: 1fr; } .refer-hero .amount, .refer-hero .amount small { text-align: left; } }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; margin: 0; padding: 0; }
.how li { list-style: none; padding: clamp(24px, 3vw, 36px); border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.how li:first-child { border-left: 0; }
.how .n { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--blue); }
.how h3 { font-size: 28px; }
.how p { color: var(--text-2); font-size: 15px; }
@media (max-width: 720px) { .how { grid-template-columns: 1fr; } .how li { border-left: 0; border-top: 1px solid var(--line); } .how li:first-child { border-top: 0; } }
.refer-form .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.refer-form .side p { color: var(--text-2); margin-top: 16px; }
.refer-form .side img { max-width: 220px; margin-top: 28px; }
@media (max-width: 860px) { .refer-form .wrap { grid-template-columns: 1fr; } }
/* referral status (2.2) */
.ref-status { background: var(--paper); }
.steps6 { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; counter-reset: s; }
.steps6 li { counter-increment: s; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); border-top: 5px solid var(--blue); padding-top: 8px; line-height: 1.05; }
.steps6 li::before { content: counter(s); display: block; font-size: 13px; color: var(--text-2); }
.steps6 li:last-child { border-top-color: var(--gold-hi); } .steps6 li small { display: block; font-family: var(--body); font-weight: 600; font-size: 12px; color: var(--text-2); margin-top: 3px; }
@media (max-width: 520px) { .steps6 { grid-template-columns: repeat(3, 1fr); row-gap: 14px; } }
.ref-status .seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.ref-status .seg button { border: 0; background: #fff; padding: 9px 14px; font: 600 14px var(--body); color: var(--text-2); cursor: pointer; }
.ref-status .seg button.on { background: var(--ink); color: #fff; }
.ref-status #rs_id { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .05em; text-transform: uppercase; }
.rs-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: #fff; }
.rs-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rs-top b { font-family: var(--display); font-size: 30px; color: var(--ink); } .rs-top span { font-size: 13px; color: var(--text-2); }
.rs-track { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.rs-track li { border-top: 6px solid var(--line); padding-top: 6px; font-size: 12px; font-weight: 600; color: #8A939F; line-height: 1.2; }
.rs-track li small { display: block; font-weight: 700; }
.rs-track li.done { border-top-color: #17914F; color: #146C3F; }
.rs-track li.cur { border-top-color: #17914F; color: var(--ink); font-weight: 800; }
.rs-track li.cur span { display: inline-block; background: #E7F6EE; border-radius: 3px; padding: 1px 4px; margin-left: -4px; }
.rs-card.lost .rs-track li.was { border-top-color: #C4C8CE; color: #6B7480; }
.rs-text { color: var(--text); font-size: 16px; margin: 0; } .rs-text b { color: var(--blue); }
.rs-upd { font-size: 14px; color: var(--text-2); margin: 12px 0 0; }
.rs-notify { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rs-nrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; } .rs-nrow input { flex: 1 1 200px; min-width: 0; }
.rs-again { font-size: 14px; margin: 4px 0 0; }
@media (max-width: 520px) { .rs-track { grid-template-columns: repeat(3, 1fr); row-gap: 10px; } }
.form .refid { margin-top: 12px; padding: 12px 14px; background: var(--paper); border-left: 4px solid var(--gold-hi); color: var(--text); }
.form .refid b { font-family: var(--display); font-size: 22px; letter-spacing: .04em; color: var(--ink); }
.terms { max-width: 800px; }
.terms h2 { font-size: clamp(30px, 4vw, 44px); }
.terms ol { margin: 24px 0 0; padding-left: 22px; display: grid; gap: 12px; color: var(--text-2); font-size: 15px; }
.terms li::marker { color: var(--blue); font-weight: 700; }

/* ---------- Case studies: index + article ---------- */
.page-head { padding-block: clamp(56px, 8vw, 110px) clamp(32px, 5vw, 64px); }
.page-head h1 { font-size: clamp(44px, 7vw, 92px); }
.crumbs { font-size: 14px; color: var(--text-2); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span::before { content: "/"; margin-right: 8px; color: var(--line); }
.article { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: clamp(56px, 8vw, 110px); }
.article-body { font-size: 18px; line-height: 1.6; }
.article-body > * + * { margin-top: 20px; }
.article-body h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 48px; }
.article-body h3 { font-size: 26px; margin-top: 32px; }
.article-body p { max-width: 68ch; }
.article-body ul, .article-body ol { padding-left: 22px; color: var(--text); }
.article-body li + li { margin-top: 8px; }
.article-body li::marker { color: var(--blue); font-weight: 700; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.article-body th, .article-body td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { font-weight: 700; color: var(--ink); background: var(--paper); }
.article-body td b { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); }
.article-body .callout { border-left: 4px solid var(--gold-hi); background: var(--paper); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 16px; }
.article-body .callout b { color: var(--ink); }
.article-body .big-stat { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 10vw, 120px); line-height: .9; color: var(--blue); }
.article-body .big-stat small { display: block; font-family: var(--body); font-weight: 600; font-size: 16px; color: var(--text-2); margin-top: 10px; letter-spacing: 0; }
.article-body figure { margin: 28px 0; }
.article-body figcaption { font-size: 14px; color: var(--text-2); margin-top: 10px; }
.article-body .diagram { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 10px; }
.article-body .diagram svg { width: 100%; height: auto; }
.article-body .bars { height: 260px; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.aside .card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; display: grid; gap: 8px; }
.aside .card h4 { font-family: var(--display); font-size: 22px; }
.aside .card dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; font-size: 14px; color: var(--text-2); }
.aside .card dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.aside .card .btn { margin-top: 6px; }
.aside .card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.aside .card ul a { color: var(--blue); font-weight: 600; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .aside { position: static; } }

/* ---------- Hero hook + the 3D configurator (hero-config.js, hero3d.js) ---------- */
.hero .shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.hook { margin-top: 22px; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.05; color: var(--text-2); min-height: 1.1em; }
.hook b { color: var(--red); font-weight: 800; display: inline-block; }
.hook b.swap { animation: hookIn .55s var(--swoop) both; }
@keyframes hookIn { from { opacity: 0; transform: translateY(14px) skewX(-6deg); } to { opacity: 1; transform: none; } }
.quick { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(16px, 2vw, 22px); box-shadow: 0 40px 80px -48px rgba(11,20,33,.5); position: relative; min-width: 0; }
.quick::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--blue) 0 55%, var(--gold-hi) 55% 70%, var(--red) 70% 85%, var(--teal) 85% 100%); }
.quick h2 { font-size: clamp(28px, 2.7vw, 36px); margin: 4px 0 12px; }
.quick p { font-size: 15px; color: var(--text-2); }
.quick form { display: grid; gap: 12px; }
.quick .chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.quick .chips label { position: relative; display: grid; gap: 4px; justify-items: center; padding: 9px 3px 8px; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 12.5px; font-weight: 600; line-height: 1.15; text-align: center; cursor: pointer; color: var(--text-2); transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.quick .chips label svg { width: 26px; height: 26px; color: var(--blue); }
.quick .chips label:hover { border-color: #b9c7de; color: var(--ink); }
.quick .chips label:has(input:checked) { border-color: var(--blue); background: rgba(27,95,204,.07); color: var(--ink); box-shadow: inset 0 -3px 0 var(--blue); }
.quick .chips label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.quick .chips input { position: absolute; opacity: 0; pointer-events: none; }

/* the stage: the 3D view (or a still of it), size tags, the running numbers, replay */
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(120% 95% at 50% 25%, #fff 0, #f7f6f2 55%, #ebe9e2 100%); touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .45s ease; }
.stage-gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; }
.stage.dragging .stage-gl { cursor: grabbing; }
.stage.gl-ready .poster { opacity: 0; pointer-events: none; }
.dim-tags { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.stage.gl-ready .dim-tags { opacity: 1; }
.dim-tag { position: absolute; left: 0; top: 0; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.93); color: var(--blue); font: 700 12.5px/1.1 var(--body); white-space: nowrap; box-shadow: 0 0 0 1px rgba(27,95,204,.28); will-change: transform; }
.stage .stats { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.stage .stats span { background: rgba(11,20,33,.84); color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; }
.stage .stats b, .stage .stats output { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.stage .replay { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(11,20,33,.16), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transition: opacity .3s, transform .25s var(--ease-out); }
.stage.gl-ready .replay { opacity: 1; visibility: visible; }
.stage .replay:hover { transform: rotate(-40deg); }
.stage .replay svg { width: 18px; height: 18px; }
.stage .hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); color: var(--text-2); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 99px; pointer-events: none; opacity: 0; white-space: nowrap; box-shadow: 0 0 0 1px var(--line); }
.stage .hint svg { width: 16px; height: 16px; color: var(--blue); }
.stage.gl-ready:not(.dragged) .hint { animation: hint 7s 1.2s both; }
@keyframes hint { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }
.stage .load3d { display: none; position: absolute; right: 10px; bottom: 10px; min-height: 40px; padding: 0 14px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; align-items: center; }
.stage.ask-3d .load3d { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .stage.gl-ready:not(.dragged) .hint { animation: none; opacity: 1; } }

/* sliders */
.quick .sliders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; }
.quick .sl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 6px; min-width: 0; }
.quick .sl label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick .sl output { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quick .sl output span { font-family: var(--body); font-size: 11px; font-weight: 700; color: var(--blue); margin-left: 3px; }
.quick .sl input { grid-column: 1 / -1; }
.quick input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.quick input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 0 var(--p), var(--line) var(--p) 100%); }
.quick input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2.5px solid var(--blue); box-shadow: 0 2px 6px rgba(11,20,33,.25); transition: transform .12s; }
.quick input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.quick input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.quick input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--blue); }
.quick input[type=range]::-moz-range-thumb { width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 2.5px solid var(--blue); box-shadow: 0 2px 6px rgba(11,20,33,.25); }
.quick input[type=range]:focus { outline: none; }
.quick input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(27,95,204,.25); }
.quick input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(27,95,204,.25); }

/* the live price */
.quick .price { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1px 12px; margin: 0; max-width: none; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 11px 16px; }
.quick .price .k { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.quick .price b { grid-column: 2; grid-row: 1 / span 2; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.5vw, 34px); line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quick .price small { font-size: 12.5px; color: rgba(255,255,255,.8); }

/* phone + ZIP + button */
.quick .lead { display: grid; gap: 8px; }
.quick .lead p.consent { max-width: none; }
.quick .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .5fr) auto; gap: 8px; align-items: start; }
.quick input[type=tel], .quick input[type=text] { width: 100%; min-height: 54px; font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.quick input[type=tel]:focus, .quick input[type=text]:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(27,95,204,.18); }
.quick .btn { min-height: 54px; padding-inline: 18px; font-size: 19px; }
.quick .fine { font-size: 12px; color: var(--text-2); }
.quick .err { display: none; color: var(--red); font-size: 14px; font-weight: 600; }
.quick .err.show { display: block; }
.quick .ok { display: none; text-align: center; padding: 8px 0 2px; }
.quick .ok h3, .quick .ok .h3 { font-size: 28px; color: var(--blue); }
.quick .ok p { margin: 6px auto 0; }
.quick.done .lead { display: none; }
.quick.done .ok { display: block; }
@media (max-width: 960px) {
  .hero .shell { grid-template-columns: 1fr; gap: 0; }
  .hero { align-items: start; }
  /* the 3D card comes right after the headline; the intro follows it */
  .hero-copy { display: contents; }
  .hero h1 { order: 1; } .hero .hook { order: 2; } .hero .quick { order: 3; margin-top: 22px; } .hero .lede { order: 4; margin-top: 26px; } .hero .hero-micro { order: 5; }
}
@media (max-width: 620px) {
  .quick .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick .chips label { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 6px; padding: 10px 4px; font-size: 12.5px; }
  .quick .chips label svg { width: 22px; height: 22px; }
  .stage { aspect-ratio: 4 / 3; }
  .quick .sliders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
  .quick .price { grid-template-columns: 1fr; padding: 11px 14px; }
  .quick .price b { grid-column: 1; grid-row: auto; margin: 3px 0 2px; }
  .quick .row { grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); }
  .quick .row .field:first-child { grid-column: 1 / -1; }
  .quick .row .btn { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 380px) { .quick .chips label { grid-template-columns: 1fr; gap: 3px; } }

/* ---------- Estimator form: steps, big values ---------- */
.est-form { gap: 22px; }
.est-form .step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.est-form .step .n { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--blue); padding-top: 4px; border-top: 3px solid var(--blue); }
.est-form .step .n small { display: block; font-family: var(--body); font-weight: 700; font-size: 10px; letter-spacing: .08em; color: var(--text-2); margin-top: 3px; }
.est-form .step > div:last-child { display: grid; gap: 10px; }
.est-form label.lbl { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: .01em; }
.est-form .lbl.sub { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--text-2); }
.est-form select, .est-form input[type=number] { font-family: var(--display); font-weight: 700; font-size: 22px; padding: 12px 14px; border-width: 2px; }
.est-form input[type=number] { font-variant-numeric: tabular-nums; }
.est-form .unit::after { font-family: var(--display); font-weight: 700; font-size: 16px; }
.est-form .scope label { font-family: var(--display); font-weight: 700; font-size: 18px; padding: 10px 16px; border-width: 2px; }
.thickness .readout .lbl { font-size: 20px; }
.thickness .val { font-size: 56px; }
.thickness input[type=range] { height: 40px; }
.thickness .hint { font-size: 13px; color: var(--text-2); }

/* ---------- Gilt button (warranty) ---------- */
.btn-gilt { color: var(--ink); background: linear-gradient(180deg, #F6DB6E 0%, #E9C64A 55%, #D9B33A 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(120,90,10,.25), 0 10px 26px -12px rgba(160,120,20,.7); border: 1px solid #B8942A; letter-spacing: .04em; }
.btn-gilt:hover { background: linear-gradient(180deg, #F9E27E 0%, #EDCB52 55%, #DDB93F 100%); }
.btn-gilt.success { background: #1E9E5A; border-color: #177A45; color: #fff; }
.lookup .ornament { display: flex; justify-content: center; margin: 2px 0 -2px; }
.lookup .ornament svg { width: 220px; height: 20px; }

/* ---------- Warranty page ---------- */
.warr-hero { padding-block: clamp(56px, 8vw, 110px) clamp(40px, 6vw, 80px); }
.warr-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.warr-hero h1 { font-size: clamp(44px, 7vw, 92px); }
.warr-hero h1 em { font-style: normal; color: var(--blue); }
.lookup { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; box-shadow: 0 40px 80px -48px rgba(11,20,33,.5); position: relative; overflow: hidden; }
.lookup::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--blue) 0 55%, var(--gold-hi) 55% 70%, var(--red) 70% 85%, var(--teal) 85% 100%); }
.lookup h2 { font-size: 30px; }
.lookup label.lbl { font-size: 14px; font-weight: 600; color: var(--text-2); }
.lookup input { width: 100%; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); }
.lookup input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(27,95,204,.18); }
.lookup .fine { font-size: 13px; color: var(--text-2); }
.lookup .err { display: none; color: var(--red); font-size: 14px; font-weight: 600; }
.lookup .err.show { display: block; }
.btn-check { position: relative; overflow: hidden; }
.btn-check .lbl-t, .btn-check .lbl-w, .btn-check .lbl-ok { display: inline-flex; align-items: center; gap: 8px; transition: transform .35s var(--swoop), opacity .25s; }
.btn-check .lbl-w, .btn-check .lbl-ok { position: absolute; inset: 0; justify-content: center; opacity: 0; transform: translateY(60%); }
.btn-check.working .lbl-t { opacity: 0; transform: translateY(-60%); }
.btn-check.working .lbl-w { opacity: 1; transform: none; }
.btn-check.success { background: #1E9E5A; box-shadow: 0 8px 24px -8px rgba(30,158,90,.6); }
.btn-check.success .lbl-t, .btn-check.success .lbl-w { opacity: 0; transform: translateY(-60%); }
.btn-check.success .lbl-ok { opacity: 1; transform: none; }
.btn-check .spin { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-check .tick { width: 22px; height: 22px; }
.btn-check .tick path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.btn-check.success .tick path { animation: tick .5s .1s var(--ease-out) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.lookup.shake { animation: shake .5s; }
@keyframes shake { 10%,90% { transform: translateX(-2px); } 20%,80% { transform: translateX(4px); } 30%,50%,70% { transform: translateX(-6px); } 40%,60% { transform: translateX(6px); } }

.warr-result { display: none; padding-bottom: clamp(56px, 8vw, 110px); }
.warr-result.show { display: block; }
.status { display: grid; gap: 10px; padding: clamp(36px, 6vw, 72px) 0; text-align: center; }
.status .word { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 16vw, 200px); line-height: .85; letter-spacing: -.02em; opacity: 0; transform: translateY(40px) scale(.96); }
.status.show .word { animation: statusIn .8s var(--swoop) .15s forwards; }
@keyframes statusIn { to { opacity: 1; transform: none; } }
.status.active .word { color: #1E9E5A; }
.status.expired .word { color: var(--red); }
.status .sub { font-size: clamp(17px, 2vw, 22px); color: var(--text-2); opacity: 0; }
.status.show .sub { animation: statusIn .6s var(--swoop) .55s forwards; }
.status .ring { width: 120px; height: 120px; margin: 0 auto 8px; }
.status .ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.status .ring .bg { stroke: var(--line-2); }
.status .ring .fg { stroke: #1E9E5A; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.4s var(--ease-out) .4s; }
.status.expired .ring .fg { stroke: var(--red); }
.status .ring text { font-family: var(--display); font-weight: 800; font-size: 30px; fill: var(--ink); }
.status .ring .yr { font-size: 12px; font-family: var(--body); font-weight: 600; fill: var(--text-2); }
.warr-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.warr-details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.warr-details dl { margin: 0; }
.warr-details .r { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line-2); opacity: 0; transform: translateX(-12px); animation: rowIn .5s var(--swoop) forwards; }
.warr-details .r:first-child { border-top: 0; }
.warr-details dt { font-size: 13px; font-weight: 600; color: var(--text-2); }
.warr-details dd { margin: 0; font-weight: 700; color: var(--ink); }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.warr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.warr-two > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.warr-two b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.warr-two span { font-size: 13px; color: var(--text-2); display: block; margin-top: 6px; }
.warr-two .on b { color: #1E9E5A; } .warr-two .off b { color: var(--red); } .warr-two .pend b { color: #9A7400; }
.cert-wrap { display: grid; gap: 12px; }
.cert-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); position: relative; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(11,20,33,.4); }
.cert::before { content: ""; position: absolute; inset: 10px; border: 2px solid var(--gold-hi); border-radius: 2px; pointer-events: none; }
.cert::after { content: ""; position: absolute; inset: 16px; border: 1px solid var(--blue); border-radius: 2px; pointer-events: none; opacity: .5; }
.cert .c-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 3px solid var(--red); padding-bottom: 14px; }
.cert .c-head img { height: 34px; width: auto; }
.cert .c-head .id { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .06em; color: var(--text-2); }
.cert h3 { font-size: clamp(26px, 3vw, 38px); margin-top: 22px; }
.cert .c-name { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 44px); color: var(--blue); margin-top: 8px; }
.cert p { font-size: 14px; color: var(--text-2); margin-top: 10px; }
.cert .c-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 18px; font-size: 13px; }
.cert .c-spec div { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.cert .c-spec b { color: var(--ink); }
.cert .c-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 26px; }
.cert .c-sig { font-family: var(--display); font-weight: 700; font-size: 22px; border-top: 1px solid var(--ink); padding-top: 6px; min-width: 200px; }
.cert .c-sig small { display: block; font-family: var(--body); font-weight: 600; font-size: 11px; color: var(--text-2); }
.cert .seal { width: 92px; height: 92px; }
.cert .stamp { position: absolute; right: 8%; top: 32%; font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: .1em; padding: 6px 16px; border: 4px solid; border-radius: 6px; transform: rotate(-12deg); opacity: 0; }
.cert .stamp.active { color: #1E9E5A; border-color: #1E9E5A; }
.cert .stamp.expired { color: var(--red); border-color: var(--red); }
.warr-result.show .cert .stamp { animation: stampIn .5s var(--swoop) 1.1s forwards; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } to { opacity: .9; transform: rotate(-12deg) scale(1); } }
@media (max-width: 900px) { .warr-hero .wrap, .warr-grid { grid-template-columns: 1fr; } }
@media print { .site-header, .site-footer, .mobile-bar, .warr-hero, .status, .warr-grid > :not(.cert-wrap), .cert-actions { display: none !important; } .cert { box-shadow: none; border: 0; } }

/* ---------- Service area: the exhibition ---------- */
.sa-page { overflow-x: clip; }
.sa-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 5vw, 80px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.sa-hero .shell { position: relative; z-index: 1; }
.sa-hero h1 { font-size: clamp(46px, 7vw, 100px); max-width: 17.5ch; }
.sa-hero h1 em { white-space: nowrap; }
.sa-hero h1 em { font-style: normal; color: var(--blue); }
.sa-hero .lede { margin-top: 20px; max-width: 56ch; }
.sa-stats { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.sa-stats li { display: flex; align-items: baseline; gap: 8px; }
.sa-stats b { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.sa-stats span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.sa-slashes { position: absolute; right: -3vw; top: 50%; width: min(30vw, 420px); transform: translateY(-50%); z-index: 0; }
.sa-slashes svg { width: 100%; height: auto; }
.sa-slashes path { transform-box: fill-box; transform-origin: 50% 100%; animation: slashIn 1s var(--swoop) both; }
.sa-slashes path:nth-child(2) { animation-delay: .08s; } .sa-slashes path:nth-child(3) { animation-delay: .16s; } .sa-slashes path:nth-child(4) { animation-delay: .24s; }
@keyframes slashIn { from { transform: translateX(120vw) skewX(-8deg); } to { transform: none; } }

.sa-jump { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sa-jump .shell { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.sa-jump .shell::-webkit-scrollbar { display: none; }
.sa-jump a { flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--text-2); border-radius: var(--radius); white-space: nowrap; }
.sa-jump a span { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--blue); }
.sa-jump a:hover, .sa-jump a.on { background: var(--paper); color: var(--ink); }

.sa-band { position: relative; overflow: hidden; padding-block: clamp(40px, 5.5vw, 84px); scroll-margin-top: calc(var(--header-h) + 52px); }
.sa-grid { display: grid; align-items: center; gap: clamp(20px, 3vw, 48px); grid-template-columns: minmax(0, 42fr) minmax(0, 40fr) minmax(0, 18fr); grid-template-areas: "a body b"; }
.side-right .sa-grid { grid-template-columns: minmax(0, 18fr) minmax(0, 40fr) minmax(0, 42fr); grid-template-areas: "b body a"; }
.sa-body { grid-area: body; max-width: 600px; justify-self: center; width: 100%; }
.ex { margin: 0; position: relative; }
.ex-a { grid-area: a; }
.ex-b { grid-area: b; align-self: end; }
.ex-art { width: min(100%, max(540px, 30vw)); filter: drop-shadow(10px 12px 0 rgba(11,20,33,.16)); will-change: transform;
  transform: translateX(calc((1 - var(--e, 1)) * var(--dir) * -125%)) rotate(calc(var(--rot) + (1 - var(--e, 1)) * var(--dir) * -16deg)); }
.ex-art svg { width: 100%; height: auto; }
.ex-b .ex-art { width: min(100%, max(300px, 16vw)); }
/* anchored to the screen edge they came from */
.side-left .ex-a .ex-art { margin-left: calc(-1 * clamp(10px, 2vw, 40px)); }
.side-right .ex-a .ex-art { margin-left: auto; margin-right: calc(-1 * clamp(10px, 2vw, 40px)); }
.side-left .ex-b .ex-art { margin-left: auto; margin-right: -14%; }
.side-right .ex-b .ex-art { margin-left: -14%; }
.ex-b { padding-bottom: 10px; }

.placard { position: relative; z-index: 1; display: grid; gap: 3px; width: min(100%, 290px); margin-top: -26px; padding: 12px 14px 13px; background: #fff; border: 1.5px solid var(--ink); border-top: 5px solid var(--accent); box-shadow: 0 16px 30px -22px rgba(11,20,33,.45);
  opacity: var(--pl, 1); transform: translateY(calc((1 - var(--pl, 1)) * 16px)); }
.side-left .ex-a .placard { margin-left: clamp(40px, 14%, 120px); }
.side-right .ex-a .placard { margin-left: auto; margin-right: clamp(40px, 14%, 120px); }
.side-left .ex-b .placard { margin-left: auto; margin-right: clamp(14px, 2vw, 32px); }
.side-right .ex-b .placard { margin-left: clamp(14px, 2vw, 32px); }
.ex-b .placard { width: min(100%, 250px); }
.pl-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pl-no { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--text-2); }
.pl-kind { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px 2px; border-radius: 2px; color: #fff; background: var(--blue); }
.pl-kind.k-folklore { background: var(--red); } .pl-kind.k-culture { background: var(--teal); }
.pl-title { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; color: var(--ink); margin-top: 6px; }
.pl-place { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.pl-note { font-size: 13.5px; line-height: 1.45; color: var(--text); margin-top: 4px; }

.sa-kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin: 0 0 12px; }
.sa-kicker span { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: 0; line-height: 1; color: var(--accent); }
.sa-body h2 { font-size: clamp(34px, 4.6vw, 60px); }
.sa-body .lede { margin-top: 12px; }
.sa-main { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sa-main span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); background: #fff; box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--accent) 55%, transparent); cursor: default; }
.sa-more { margin-top: 16px; }
.sa-more summary { cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.sa-more summary small { font-size: 13px; font-weight: 500; }
.sa-more summary::-webkit-details-marker { display: none; }
.sa-more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.sa-more[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.sa-counties { margin-top: 14px; display: grid; gap: 22px; }
.sa-county h3 { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.sa-county h3 small { font-weight: 600; color: var(--text-2); letter-spacing: .04em; }
.sa-more ul { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 24px; font-size: 15px; color: var(--text-2); }
.sa-more li { break-inside: avoid; padding: 3px 0; line-height: 1.45; }

.sa-cutline { position: relative; height: 20px; margin-inline: var(--gutter); border-top: 2px dashed #C9C6BD; }
.sa-cutline svg { position: absolute; left: 0; top: -11px; width: 30px; height: 20px; background: #fff; padding-right: 6px; box-sizing: content-box; }
.sa-cta { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 96px); background: var(--paper); }
.sa-cta h2 { font-size: clamp(34px, 5vw, 60px); }
.sa-cta .lede { margin-top: 14px; max-width: 58ch; }
.sa-cta .hero-actions { margin-top: 24px; }

@media (max-width: 1100px) {
  .side-left .sa-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "a body" "a b"; padding-inline: 0 var(--gutter); }
  .side-right .sa-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "body a" "b a"; padding-inline: var(--gutter) 0; }
  .ex-b .ex-art { width: min(100%, 240px); }
  .side-left .ex-b { justify-self: end; }
  .sa-slashes { width: 34vw; opacity: .9; }
}
@media (max-width: 760px) {
  .side-left .sa-grid, .side-right .sa-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "body" "b"; padding-inline: var(--gutter); gap: 28px; }
  .ex-b { justify-self: stretch; }
  .ex-a .ex-art { width: 80vw; }
  .ex-b .ex-art { width: 58vw; }
  .side-left .ex-a .ex-art { margin-left: calc(-1 * var(--gutter) - 4vw); }
  .side-right .ex-a .ex-art { margin-right: calc(-1 * var(--gutter) - 4vw); }
  .side-left .ex-b .ex-art { margin-right: calc(-1 * var(--gutter) - 6vw); }
  .side-right .ex-b .ex-art { margin-left: calc(-1 * var(--gutter) - 6vw); }
  .side-right .ex-b .placard { margin-right: auto; }
  .placard { margin-top: -22px; }
  .sa-hero { padding-bottom: 150px; }
  .sa-slashes { top: auto; bottom: -24px; right: -8vw; width: 64vw; transform: none; }
  .sa-more ul { columns: 2; }
  .sa-stats b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-art, .placard { transform: rotate(var(--rot)) !important; opacity: 1 !important; }
  .placard { transform: none !important; }
  .sa-slashes path { animation: none; }
}

/* ---------- Motion hygiene ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Estimator wall section (wall.js) ---------- */
.wall text { font-family: Archivo, Arial, sans-serif; }
.wall .w-lab text { font-size: 12.5px; font-weight: 600; fill: #56606E; }
.wall .w-tapen { font-size: 9.5px; font-weight: 700; fill: #14181D; text-anchor: middle; }
.wall .w-hud-t { font-size: 12px; font-weight: 600; fill: #56606E; }
.wall .w-hud-n { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: 20px; }
.wall .w-hud-bar { transition: width .5s cubic-bezier(.2,.7,.2,1), fill .3s; }
.wall .w-studs, .wall .w-ghost { transition: opacity .25s; }
.wall .w-note { opacity: 0; pointer-events: none; }
.wall .w-note.on { opacity: 1; }
.wall .w-arrow, .wall .w-head { stroke: #C0272F; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.wall .w-arrow { stroke-dasharray: 400; stroke-dashoffset: 400; }
.wall .w-head { opacity: 0; }
.wall .w-dim { stroke: #C0272F; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.wall .w-note.on .w-arrow { animation: wDraw .6s cubic-bezier(.3,.7,.2,1) .05s forwards; }
.wall .w-note.on .w-head { animation: wFade .18s ease-out .6s forwards; }
.wall .w-note.on .w-dim { animation: wFade .3s ease-out .1s forwards; }
.wall .w-say { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.wall .w-say tspan { opacity: 0; }
.wall .w-note.on .w-say tspan { animation: wPop .42s cubic-bezier(.16,1,.3,1) .45s forwards; }
.wall .w-note.on .w-say tspan + tspan { animation-delay: .6s; }
.wall .w-say-s { font-size: 24px; fill: #0B1421; }
.wall .w-say-b { font-size: 36px; letter-spacing: .01em; }
.wall .w-say-no { font-size: 50px; fill: #17914F; }
.wall .w-blue { fill: #1B5FCC; } .wall .w-red { fill: #C0272F; }
@keyframes wDraw { to { stroke-dashoffset: 0; } }
@keyframes wFade { to { opacity: 1; } }
@keyframes wPop { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wall .w-note.on .w-arrow { animation: none; stroke-dashoffset: 0; } .wall .w-note.on .w-head, .wall .w-note.on .w-dim, .wall .w-note.on .w-say tspan { animation: none; opacity: 1; } }
.wall.compact .w-lab text { font-size: 19px; }
.wall.compact .w-lab text:first-child { display: none; }
.wall.compact .w-hud-t { font-size: 17px; }
.wall.compact .w-hud-n { font-size: 26px; }
.wall.compact .w-tapen { font-size: 12px; }
.wall.compact .w-say-s { font-size: 28px; }
.wall.compact .w-say-b { font-size: 40px; }
.wall.compact .w-say-no { font-size: 56px; }

/* ---------- Warranty tab: gilt, with a small flourish above ---------- */
.nav a.gilt-tab { position: relative; margin: 0 8px; padding: 7px 15px 6px; color: #3A2A05; font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: .09em; text-transform: uppercase;
  border: 1px solid #A8842C; border-radius: 2px;
  background: linear-gradient(105deg, transparent 40%, rgba(255,250,228,.75) 50%, transparent 60%) -140% 0 / 250% 100% no-repeat,
              linear-gradient(180deg, #F5E6AA 0%, #E6C866 46%, #CFAB45 100%);
  box-shadow: inset 0 1px 0 rgba(255,253,240,.8), inset 0 -1px 0 rgba(120,86,10,.28), 0 1px 0 rgba(255,255,255,.9), 0 8px 18px -12px rgba(120,86,10,.75);
  text-shadow: 0 1px 0 rgba(255,246,210,.6); transition: background-position 1.1s cubic-bezier(.3,.6,.2,1), box-shadow .2s, color .2s; }
.nav a.gilt-tab::before { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(255,248,220,.55); border-radius: 1px; pointer-events: none; }
.nav a.gilt-tab .orn { position: absolute; left: 50%; top: -12px; width: 70px; height: 12px; transform: translateX(-50%); color: #B8923A; transition: transform .35s var(--ease-out), color .2s; }
.nav a.gilt-tab:hover { color: #2A1E02; background-position: 140% 0, 0 0; box-shadow: inset 0 1px 0 rgba(255,253,240,.9), inset 0 -1px 0 rgba(120,86,10,.3), 0 1px 0 rgba(255,255,255,.9), 0 12px 22px -12px rgba(120,86,10,.85); }
.nav a.gilt-tab:hover .orn { transform: translateX(-50%) translateY(-1px); color: #9C7A28; }
.nav a.gilt-tab[aria-current="page"] { color: #2A1E02; background: linear-gradient(180deg, #E9D08A 0%, #D5B04E 50%, #BA9434 100%); box-shadow: inset 0 1px 2px rgba(90,62,6,.35), 0 1px 0 rgba(255,255,255,.9); }
.nav a.gilt-tab[aria-current="page"] .orn { color: #9C7A28; }
@media (prefers-reduced-motion: reduce) { .nav a.gilt-tab, .nav a.gilt-tab .orn { transition: none; } }
@media (max-width: 1140px) {
  .site-header.open .nav a.gilt-tab { margin: 18px 0 6px; padding: 14px 10px 12px; text-align: center; font-size: 19px; }
  .site-header.open .nav a.gilt-tab .orn { top: -15px; width: 92px; height: 16px; }
}
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a.btn-primary:hover { background: var(--red-deep); }

/* ---------- Form feedback + consent ---------- */
.fe { display: block; margin-top: 6px; color: var(--red); font-size: 13px; font-weight: 600; line-height: 1.3; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(192,39,47,.13) !important; }
.consent, .quick p.consent, .est-gate p.consent { font-size: 11.5px; line-height: 1.45; color: var(--text-2); margin: 0; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Certificate: A Craftsman's Promise ---------- */
.cert { background: #FFFDF7; }
.cert::before { inset: 10px; border: 1.5px solid #C9A544; }
.cert::after { inset: 15px; border: .75px solid #C9A544; opacity: .9; }
.cert .c-corner { position: absolute; width: 34px; height: 34px; z-index: 1; pointer-events: none; }
.cert .c-corner svg { width: 100%; height: 100%; }
.cert .c-corner.tl { left: 20px; top: 20px; } .cert .c-corner.tr { right: 20px; top: 20px; transform: scaleX(-1); }
.cert .c-corner.bl { left: 20px; bottom: 20px; transform: scaleY(-1); } .cert .c-corner.br { right: 20px; bottom: 20px; transform: scale(-1, -1); }
.cert .c-head { border-bottom: 0; padding: 8px 18px 0; }
.cert .c-title { text-align: center; margin-top: 18px; }
.cert .c-kick { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #8C6A1E; }
.cert .c-title h3 { margin-top: 6px; font-size: clamp(34px, 4vw, 50px); letter-spacing: .01em; color: var(--ink); }
.cert .c-rule { display: block; height: 7px; margin: 12px auto 0; width: min(80%, 320px); border-top: 1.5px solid #C9A544; border-bottom: .75px solid #C9A544; }
.cert .c-name { text-align: center; }
.cert > p { text-align: center; max-width: 56ch; margin-inline: auto; }
.cert .seal { width: 104px; height: 104px; filter: drop-shadow(0 6px 10px rgba(120,86,10,.3)); }
.cert .c-foot { padding: 0 8px 6px; }
.lookup form > div + div { margin-top: 12px; }
@media (max-width: 520px) { .cert .c-corner { width: 24px; height: 24px; } .cert .c-spec { grid-template-columns: 1fr; } }
.cert .stamp { top: auto; bottom: 34px; right: 30%; font-size: 36px; mix-blend-mode: multiply; }
@media (max-width: 520px) { .cert .stamp { bottom: 30px; right: 34%; font-size: 26px; } }
@media (max-width: 520px) { .est-out { grid-template-columns: repeat(3, 1fr); gap: 8px; } .est-out div { padding: 10px 10px; } .est-out b, .est-out output { font-size: 22px; } .est-out span { font-size: 11.5px; line-height: 1.3; display: block; margin-top: 4px; } }

/* ======================= Spray Foam 101 page ======================= */
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
.p101-hero { padding-block: clamp(40px, 5vw, 80px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.p101-hero h1 { font-size: clamp(44px, 6.6vw, 96px); max-width: 16ch; }
.p101-hero h1 em { font-style: normal; color: var(--blue); }
.p101-hero .lede { margin-top: 18px; max-width: 62ch; }
.p101-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.p101-jump a { font-size: 14px; font-weight: 600; color: var(--ink); padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.p101-jump a:hover { border-color: var(--ink); }
.p101 .section { scroll-margin-top: calc(var(--header-h) + 8px); }

/* shared drawing styles + animation (foam101.js adds .play while a drawing is on screen) */
.fg101 { display: block; width: 100%; height: auto; overflow: visible; }
.anim .fl { animation: fg-flow 1.1s linear infinite; }
.anim .fl-b, .anim .fl-up { animation-duration: 1.1s; }
.anim .fl-h { animation-duration: .9s; }
.anim .fl-mix { animation: fg-flow-mix .5s linear infinite; }
.anim .drop { animation: fg-drop .9s cubic-bezier(.3,.6,.4,1) infinite; }
.anim .needle { animation: fg-needle 2.4s ease-in-out infinite; }
.anim .coil { animation: fg-coil 1.6s ease-in-out infinite; }
.anim .coil:nth-child(odd) { animation-delay: -.8s; }
.anim .heatwave, .anim .heat { animation: fg-rise 1.8s ease-in-out infinite; }
.anim .foamup { transform-box: fill-box; transform-origin: 100% 50%; animation: fg-foamup 6s ease-out infinite; }
.anim .burst { transform-box: fill-box; transform-origin: center; animation: fg-burst .5s ease-in-out infinite alternate; }
.anim .spark { animation: fg-spark .5s ease-in-out infinite alternate; }
.anim .purge { animation: fg-flow 1.4s linear infinite; }
.anim .mixdot { animation: fg-coil 1s ease-in-out infinite; }

@keyframes fg-flow { to { stroke-dashoffset: -48; } }
@keyframes fg-flow-mix { to { stroke-dashoffset: -24; } }
@keyframes fg-drop { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: .15; } }
@keyframes fg-needle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes fg-coil { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes fg-rise { 0% { transform: translateY(4px); opacity: .2; } 50% { opacity: .9; } 100% { transform: translateY(-6px); opacity: 0; } }
@keyframes fg-foamup { 0% { transform: scaleX(.05); } 60%, 100% { transform: scaleX(1); } }
@keyframes fg-burst { from { transform: scale(.75); opacity: .7; } to { transform: scale(1.12); opacity: 1; } }
@keyframes fg-spark { from { opacity: .15; } to { opacity: .9; } }

/* 1. the rig */
.rig-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.rig-fig { position: sticky; top: calc(var(--header-h) + 20px); margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(10px, 2vw, 22px); }
.rig-fig figcaption { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.key::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--ink); }
.key.air::before { background: #A7B0BA; } .key.a::before { background: #E3A900; } .key.b::before { background: #1B5FCC; } .key.m::before { background: #EADBB0; }
.sys .sg { transition: opacity .35s ease; }
.rig-fig[data-step="1"] .sg:not(.sg1), .rig-fig[data-step="2"] .sg:not(.sg2), .rig-fig[data-step="3"] .sg:not(.sg3),
.rig-fig[data-step="4"] .sg:not(.sg4), .rig-fig[data-step="5"] .sg:not(.sg5), .rig-fig[data-step="6"] .sg:not(.sg6) { opacity: .22; }
.rig-fig[data-step="4"] .sg3 { opacity: .55; }
.sys .bdg { transition: transform .3s ease; }
.sys-steps { list-style: none; margin: 0; padding: 0; }
.sys-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 22px 0; min-height: 42vh; border-top: 1px solid var(--line); opacity: .45; transition: opacity .3s ease; }
.sys-step:first-child { border-top: 0; padding-top: 4px; }
.sys-step.on { opacity: 1; }
.sys-step .n, .gun-legend .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; }
.sys-step h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 8px; }
.sys-step p { color: var(--text-2); font-size: 16px; max-width: 46ch; }

/* 2. the gun */
.gun-fig { margin: 0 auto; max-width: 980px; }
.gun-legend { list-style: none; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.gun-legend li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; font-size: 15px; color: var(--text-2); }
.gun-legend b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.gun-legend .n { width: 30px; height: 30px; font-size: 16px; }

/* 3. chemistry */
.chem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
.chem-grid figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 2vw, 22px); background: #fff; }
.chem-grid figcaption { margin-top: 12px; font-size: 15px; color: var(--text-2); }
.chem-grid figcaption b { color: var(--ink); }
.anim .mol-a { animation: fg-mol-a 6s ease-in-out infinite; }
.anim .mol-b { animation: fg-mol-b 6s ease-in-out infinite; }
.anim .mol-u, .anim .lbl-u { animation: fg-mol-u 6s ease-in-out infinite; }
.anim .glow { transform-box: fill-box; transform-origin: center; animation: fg-glow 6s ease-in-out infinite; }
.rx .heat { opacity: 0; }
.anim .rx .heat { animation: fg-heat 6s ease-in-out infinite; }
@keyframes fg-mol-a { 0% { transform: translateX(0); opacity: 1; } 25% { transform: translateX(96px); opacity: 1; } 32%, 88% { transform: translateX(96px); opacity: 0; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes fg-mol-b { 0% { transform: translateX(0); opacity: 1; } 25% { transform: translateX(-96px); opacity: 1; } 32%, 88% { transform: translateX(-96px); opacity: 0; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes fg-mol-u { 0%, 24% { opacity: 0; } 34%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fg-glow { 0%, 22% { opacity: 0; transform: scale(.4); } 36% { opacity: 1; transform: scale(1); } 80% { opacity: .6; } 100% { opacity: 0; transform: scale(1); } }
@keyframes fg-heat { 0%, 30% { opacity: 0; transform: translateY(6px); } 45% { opacity: 1; } 70% { opacity: .8; transform: translateY(-10px); } 90%, 100% { opacity: 0; transform: translateY(-14px); } }
.cells .cell { transform: scale(.12); }
.anim .cell { animation: fg-cell 6s cubic-bezier(.2,.7,.3,1) infinite; }
@keyframes fg-cell { 0%, 28% { transform: scale(.08); opacity: .2; } 70%, 92% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.chem-tl { list-style: none; margin: clamp(20px, 3vw, 30px) 0 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; position: relative; }
.chem-tl li { position: relative; padding-top: 14px; font-size: 14px; color: var(--text-2); }
.chem-tl li::before { content: ""; position: absolute; top: -6px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); }
.chem-tl b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--ink); line-height: 1; }
.chem-tl .bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; padding: 0; background: var(--line); border-radius: 2px; grid-column: 1 / -1; }
.chem-tl .bar::before { display: none; }
.chem-tl .bar span { display: block; height: 100%; width: 80%; background: linear-gradient(90deg, #E3A900, #C0272F 45%, #EADBB0); border-radius: 2px; transform-origin: left; }
.anim .chem-tl .bar span { animation: fg-tl 6s linear infinite; }
@keyframes fg-tl { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
.p101-chem .note { margin-top: 16px; font-size: 13.5px; color: var(--text-2); max-width: 80ch; }

/* 4. controls */
.ctl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.ctl { padding: 22px 22px 24px 0; border-bottom: 1px solid var(--line); }
.ctl:not(:nth-child(3n + 1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.ctl h3 { font-size: 24px; margin-bottom: 8px; }
.ctl p { font-size: 15px; color: var(--text-2); }

/* 5. myths */
.vs-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.vs { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.vs thead th { font-family: var(--display); font-weight: 800; font-size: 24px; text-align: left; padding: 18px 20px 14px; vertical-align: bottom; color: var(--ink); }
.vs thead th:last-child { background: #F3F7FE; box-shadow: inset 0 4px 0 var(--blue); }
.vs .vs-ico { display: block; width: 64px; height: 56px; margin-bottom: 8px; } .vs .vs-ico svg { width: 100%; height: 100%; }
.vs tbody th { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); padding: 14px 20px; width: 20%; vertical-align: top; }
.vs td { padding: 14px 20px; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.vs tbody th { border-top: 1px solid var(--line); }
.vs td:last-child { background: #F3F7FE; color: var(--ink); font-weight: 600; }
.myths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 4vw, 44px); }
.myth { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; background: #fff; }
.myth .m-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); border: 2px solid var(--red); padding: 3px 8px 2px; border-radius: 3px; transform: rotate(-3deg); margin: 0 0 12px; }
.myth h3 { font-size: clamp(24px, 2.4vw, 30px); text-decoration: line-through; text-decoration-color: rgba(192,39,47,.75); text-decoration-thickness: 3px; }
.myth .fact { margin-top: 12px; font-size: 15px; color: var(--text-2); }
.myth .fact b { display: inline-block; color: #146C3F; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-right: 8px; }

.p101-cta { background: var(--paper); border-top: 1px solid var(--line); }
.p101-cta h2 { font-size: clamp(34px, 5vw, 60px); }
.p101-cta .lede { margin-top: 12px; max-width: 58ch; }

/* homepage teaser */
.f101-teaser .t-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.f101-teaser h2 { font-size: clamp(34px, 4.6vw, 60px); }
.f101-teaser .lede { margin: 14px 0 24px; }
.f101-teaser .t-fig { position: static; display: block; transition: border-color .2s; }
.f101-teaser .t-fig:hover { border-color: var(--ink); }

@media (max-width: 1000px) {
  .rig-grid { grid-template-columns: 1fr; }
  .rig-fig { top: var(--header-h); z-index: 5; border-radius: 0; margin-inline: calc(-1 * var(--gutter)); border-width: 0 0 1px; padding: 8px var(--gutter); box-shadow: 0 10px 24px -20px rgba(11,20,33,.5); }
  .rig-fig figcaption { display: none; }
  .sys-step { min-height: 34vh; }
  .gun-legend { grid-template-columns: 1fr 1fr; }
  .ctl-grid { grid-template-columns: 1fr 1fr; }
  .ctl:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .ctl:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
  .f101-teaser .t-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chem-grid, .myths, .gun-legend, .ctl-grid { grid-template-columns: 1fr; }
  .ctl:nth-child(2n) { padding-left: 0; border-left: 0; }
  .chem-tl { grid-template-columns: 1fr; gap: 10px; padding-top: 0; padding-left: 22px; }
  .chem-tl .bar { top: 0; bottom: 0; left: 5px; right: auto; width: 4px; height: auto; grid-column: auto; }
  .chem-tl .bar span { transform-origin: top; width: 100%; height: 80%; }
  .anim .chem-tl .bar span { animation-name: fg-tl-v; }
  .chem-tl li::before { left: -22px; top: 16px; }
  .chem-tl li { padding-top: 0; }
}
@keyframes fg-tl-v { 0% { transform: scaleY(0); } 80%, 100% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .anim *, .anim { animation: none !important; }
  .cells .cell { transform: none; }
  .rx .mol-a, .rx .mol-b { opacity: 0; } .rx .heat { opacity: 1; }
}
@media (max-width: 640px) {
  .vs-wrap { overflow: visible; }
  .vs { min-width: 0; }
  .vs thead { display: none; }
  .vs tr { display: block; border-top: 1px solid var(--line); padding: 4px 0 8px; }
  .vs tr:first-child { border-top: 0; }
  .vs tbody th { display: block; width: auto; border: 0; padding: 12px 16px 4px; color: var(--ink); }
  .vs td { display: block; border: 0; padding: 6px 16px 8px; }
  .vs td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 2px; }
  .vs td:last-child { margin: 0 10px; border-radius: var(--radius); box-shadow: inset 3px 0 0 var(--blue); }
  .vs td:last-child::before { color: var(--blue); }
}
/* Spray Foam 101 rig (Oct 2026): air train, transfer pumps, proportioner pistons, the gun's trigger */
.anim .spin { animation: fg-spin 1.1s linear infinite; }
.anim .drip { animation: fg-drip 1.4s ease-in infinite; }
.anim .stroke { animation: fg-stroke 1.2s ease-in-out infinite; }
.anim .piston { animation: fg-piston 1.2s ease-in-out infinite; }
.anim .trigger { animation: fg-trigger 3.2s ease-in-out infinite; }
@keyframes fg-spin { to { transform: rotate(360deg); } }
@keyframes fg-drip { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes fg-stroke { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes fg-piston { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(52px); } }
@keyframes fg-trigger { 0%, 6% { transform: rotate(0deg); } 12%, 84% { transform: rotate(11deg); } 90%, 100% { transform: rotate(0deg); } }

/* drawings only animate while on screen (foam101.js toggles .play); declared last so it wins over every animation shorthand above */
.anim:not(.play), .anim:not(.play) * { animation-play-state: paused !important; }

/* ---------- Education section (Oct 2026): sub-tabs, contractor guide, article library ---------- */
.edu-bar { border-bottom: 1px solid var(--line); background: #fff; }
.edu-tabs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.edu-tabs::-webkit-scrollbar { display: none; }
.edu-label { flex: none; margin-right: 14px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.edu-tabs a { flex: none; padding: 15px 12px 12px; font-weight: 600; font-size: 15px; color: var(--text-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.edu-tabs a:hover { color: var(--ink); }
.edu-tabs a.on { color: var(--ink); border-bottom-color: var(--blue); }
.page-head.edu-head { padding-top: clamp(32px, 5vw, 64px); }
.edu-head h1 { font-size: clamp(40px, 6vw, 76px); text-wrap: balance; max-width: 22ch; }
.byline { margin-top: 16px; font-size: 14px; color: var(--text-2); max-width: none; }
@media (max-width: 640px) { .edu-label { display: none; } .edu-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; } .edu-tabs a { padding: 12px 4px 9px; font-size: 14px; text-align: center; } }

.edu-article .aside { position: static; }
.edu-article .article-body { min-width: 0; }
.article-body a:not(.btn) { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.article-body a:not(.btn):hover { color: var(--blue-deep); }
.article-body .answer { position: relative; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 24px 22px 20px; background: #fff; }
.article-body .answer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--blue) 0 55%, var(--gold-hi) 55% 70%, var(--red) 70% 85%, var(--teal) 85% 100%); }
.article-body .answer .label, .article-body .keypoints h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.article-body .answer p + p { margin-top: 8px; font-size: 19px; color: var(--ink); }
@media (max-width: 640px) { .article-body .answer p + p { font-size: 17px; } }
.article-body .keypoints { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; }
.article-body .keypoints ul { margin: 12px 0 0; }
.article-body .tbl { overflow-x: auto; }
.article-body .tbl table { min-width: 520px; }
.article-body .qa h3 { font-size: 24px; margin-top: 28px; }
.article-body .qa h3 + p { margin-top: 8px; }
.article-body .sources ol { margin-top: 12px; padding-left: 20px; font-size: 14px; color: var(--text-2); }
.article-body .sources li + li { margin-top: 6px; }
.article-body .sources a { overflow-wrap: anywhere; }
.article-body ol.flags { list-style: none; padding: 0; border-top: 1px solid var(--line); counter-reset: flag; }
.article-body ol.flags li { display: grid; grid-template-columns: 34px minmax(0, .9fr) minmax(0, 1.4fr); gap: 4px 18px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); counter-increment: flag; font-size: 16px; line-height: 1.45; }
.article-body ol.flags li::before { content: counter(flag); font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; color: var(--red); }
.article-body ol.flags b { color: var(--ink); }
.article-body ol.flags span { color: var(--text-2); }
@media (max-width: 640px) { .article-body ol.flags li { grid-template-columns: 28px minmax(0, 1fr); } .article-body ol.flags span { grid-column: 2; } }
.aside .card .h4 { font-size: 22px; }
.aside .card .note { font-size: 12.5px; color: var(--text-2); }
.aside .toc ul { font-size: 14px; gap: 7px; }
.aside .toc ul a { color: var(--text-2); font-weight: 500; }
.aside .toc ul a:hover { color: var(--blue); }

.edu-index { display: grid; gap: 40px; padding-bottom: clamp(56px, 8vw, 110px); }
.start-here { display: grid; gap: 6px; max-width: 760px; padding: 20px 22px; border: 1.5px solid var(--ink); border-radius: var(--radius); transition: box-shadow .2s; }
.start-here:hover { box-shadow: 0 24px 48px -32px rgba(11,20,33,.35); }
.start-here .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.start-here b { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1; color: var(--ink); }
.start-here span:last-child { font-size: 15px; color: var(--text-2); }
.cat-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-jump a { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cat-jump a:hover { border-color: var(--blue); }
.cat-jump a span { margin-left: 4px; font-weight: 500; color: var(--text-2); }
.edu-index .cat { scroll-margin-top: calc(var(--header-h) + 16px); }
.edu-index .cat h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.edu-index .post .kicker { padding: 0; }
.edu-index .post h3 { font-size: 24px; }
.article-body .photo { margin: 30px 0; }
.article-body .photo img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--paper); }
.article-body .photo.portrait img { max-width: 440px; margin-inline: auto; }
.article-body .photo.portrait figcaption { max-width: 440px; margin-inline: auto; }

/* Oct 2026: the hero price box asks for a name too; on wide screens the three fields need the full row */
@media (min-width: 961px) and (max-width: 1240px) { .quick .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .55fr); } .quick .row .btn { grid-column: 1 / -1; width: 100%; } }
/* room above the price box for the leaf pile (leaves.js) */
@media (min-width: 961px) { .hero .shell { padding-top: clamp(56px, 5.4vw, 76px); } }

/* Oct 2026 (2.8.5): "Spray Once," stays on one line; the home page Education section; credentials row with four certifications */
.hero h1 .nw { white-space: nowrap; }
@media (min-width: 961px) { .hero h1 { font-size: clamp(50px, 8.6vw, 112px); } }
.edu-teaser .t-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.edu-teaser h2 { font-size: clamp(34px, 4.6vw, 60px); }
.edu-teaser .lede { margin: 14px 0 20px; }
.edu-picks { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); max-width: 560px; }
.edu-picks li { border-bottom: 1px solid var(--line); }
.edu-picks a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 2px; font-weight: 600; color: var(--ink); }
.edu-picks a::after { content: "→"; color: var(--blue); font-weight: 700; }
.edu-picks a:hover { color: var(--blue); }
.edu-foamy { margin: 0; display: grid; place-items: center; }
.edu-foamy img { width: 100%; max-width: 360px; height: auto; }
@media (max-width: 1000px) { .edu-teaser .t-wrap { grid-template-columns: 1fr; } .edu-foamy img { max-width: 240px; } }
@media (min-width: 901px) { .cred-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } .cred-grid .cred { grid-column: span 4; } .cred-grid .cred:nth-child(-n+4) { grid-column: span 3; padding-inline: 20px; } }
@media (min-width: 561px) and (max-width: 900px) { .cred-grid .cred:last-child { grid-column: 1 / -1; } }
/* steps not in view are greyed with readable colors instead of 45% opacity (passes WCAG contrast) */
.sys-step { opacity: 1; }
.sys-step h3, .sys-step p, .sys-step p b, .sys-step .n { transition: color .3s ease, background-color .3s ease; }
.sys-step:not(.on) h3 { color: #8A929C; }
.sys-step:not(.on) p, .sys-step:not(.on) p b { color: #6B7480; }
.sys-step:not(.on) .n { background: #6B7480; }

/* ---------- Commercial & multifamily: the Huntsman D-Max Wall page (Oct 2026, /commercial/) ---------- */
.dmx-hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 6vw, 80px); }
.dmx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); grid-template-areas: "copy cert" "copy photo"; grid-template-rows: auto 1fr; gap: 16px clamp(28px, 5vw, 72px); align-items: start; }
.dmx-hero-copy { grid-area: copy; } .dmx-cert { grid-area: cert; } .dmx-hero-photo { grid-area: photo; }
.dmx-hero h1 { font-size: clamp(42px, 6vw, 80px); text-wrap: balance; }
.dmx-hero h1 em { font-style: normal; color: var(--blue); }
.dmx-hero .lede { margin-top: 20px; max-width: 60ch; }
.dmx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dmx-meta { margin-top: 16px; font-size: 15px; color: var(--text-2); }
.dmx-meta a { color: var(--ink); font-weight: 600; }
.dmx-cert { display: grid; grid-template-columns: 153px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 36px -28px rgba(11,20,33,.45); position: relative; }
.dmx-cert::before { content: ""; position: absolute; left: -1.5px; right: -1.5px; top: -1.5px; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--blue) 0 55%, var(--gold-hi) 55% 70%, var(--red) 70% 85%, var(--teal) 85% 100%); }
.dmx-cert img { display: block; width: 153px; height: 44px; object-fit: contain; }
.dmx-cert span { font-size: 14px; line-height: 1.35; color: var(--text-2); }
.dmx-cert b { display: block; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.dmx-cert:hover b { color: var(--blue); }
.dmx-hero-photo { margin: 0; }
.dmx-hero-photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 10px; background: var(--paper); }
.dmx-hero-photo figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.dmx-hero-photo figcaption span { display: block; margin-top: 4px; font-size: 12px; }
@media (max-width: 960px) {
  .dmx-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cert" "copy" "photo"; grid-template-rows: auto; }
  .dmx-hero-photo img { max-height: 420px; }
}

.dmx-hooks { padding-block: clamp(40px, 6vw, 80px); background: var(--paper); border-block: 1px solid var(--line-2); }
.dmx-h2s { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 22px; }
.dmx-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dmx-stats li { display: grid; align-content: start; gap: 8px; padding: 20px 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.dmx-stats b { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.4vw, 58px); line-height: .9; color: var(--blue); letter-spacing: -.01em; }
.dmx-stats span { font-size: 15px; line-height: 1.4; color: var(--text); }
.dmx-stats small { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--text-2); }
.dmx-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin-top: clamp(28px, 4vw, 44px); }
.dmx-three .kicker { margin-bottom: 6px; }
.dmx-three p:not(.kicker) { font-size: 16px; color: var(--text); }
@media (max-width: 1000px) { .dmx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dmx-three { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .dmx-cert { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .dmx-stats li { padding: 16px 14px 14px; } .dmx-stats span { font-size: 14px; } }

.dmx-article { padding-top: clamp(48px, 7vw, 96px); }
.dmx-article .article-body { min-width: 0; }
.dmx-article .aside .note { font-size: 13px; color: var(--text-2); }
.dmx-article .aside .note a { color: var(--blue); font-weight: 600; }
.dmx-article .aside .toc ul { font-size: 14px; gap: 7px; }
.dmx-article .aside .toc ul a { color: var(--text-2); font-weight: 500; }
.dmx-article .aside .toc ul a:hover { color: var(--blue); }
.dmx-article .article-body a:not(.btn) { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.dmx-article .article-body h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.dmx-article .tbl { overflow-x: auto; }
.dmx-article .tbl table { min-width: 520px; }
.dmx-section-fig svg text { font-family: var(--body); }
.dmx-gantt svg text { font-family: var(--body); }
.dmx-credit, .dmx-fine { font-size: 14px; color: var(--text-2); }

.dmx-steps { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.dmx-steps li { margin: 0 !important; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; counter-increment: st; }
.dmx-steps img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--paper); }
.dmx-steps div { padding: 12px 14px 14px; font-size: 15px; line-height: 1.4; }
.dmx-steps div::before { content: counter(st); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; vertical-align: 1px; }
.dmx-steps b { color: var(--ink); }
@media (max-width: 760px) { .dmx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .dmx-steps { grid-template-columns: 1fr; } }

.dmx-bars { margin: 24px 0; display: grid; gap: 12px; }
.dmx-bar-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 120px; gap: 12px; align-items: center; font-size: 15px; }
.dmx-bar-l { color: var(--text-2); font-weight: 600; }
.dmx-bar-t { position: relative; height: 22px; }
.dmx-bar-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; }
.dmx-bar-t .nom { background: #DCE3EC; }
.dmx-bar-t .eff { background: var(--blue); box-shadow: 2px 0 0 #fff; }
.dmx-bar-v { color: var(--text-2); white-space: nowrap; }
.dmx-bar-v b { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); }
.dmx-bars figcaption { font-size: 13px; color: var(--text-2); }
.dmx-bars .k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 6px -1px 0; }
.dmx-bars .k.nom { background: #DCE3EC; } .dmx-bars .k.eff { background: var(--blue); margin-left: 12px; }
@media (max-width: 560px) { .dmx-bar-row { grid-template-columns: minmax(0, 1fr) auto; } .dmx-bar-t { grid-column: 1 / -1; grid-row: 2; } }

.dmx-worksheet { margin-top: 48px; padding: clamp(20px, 3vw, 32px); border: 1.5px solid var(--ink); border-radius: var(--radius); background: #fff; scroll-margin-top: calc(var(--header-h) + 16px); }
.dmx-worksheet h2 { margin-top: 0 !important; font-size: clamp(28px, 3.4vw, 40px); }
.dmx-ws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.dmx-ws fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; align-content: start; }
.dmx-ws legend { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--blue); margin-bottom: 6px; letter-spacing: .02em; text-transform: uppercase; }
.dmx-ws label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text-2); }
.dmx-ws input { width: 100%; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); padding: 9px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
.dmx-ws input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(27,95,204,.18); }
.dmx-ws-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.dmx-ws-out div { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: var(--radius); background: var(--paper); }
.dmx-ws-out span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.dmx-ws-out b { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); line-height: 1; color: var(--ink); }
.dmx-ws-out div:last-child { background: #E9F7EF; }
.dmx-ws-out div:last-child b { color: #0F6B3A; }
.dmx-ws-out small { font-size: 12px; color: var(--text-2); line-height: 1.35; }
@media (max-width: 900px) { .dmx-ws { grid-template-columns: 1fr; } .dmx-ws-out { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .dmx-ws-out { grid-template-columns: 1fr; } }

.dmx-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dmx-fit > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.dmx-fit > div:first-child { border-top: 4px solid #1E9E5A; }
.dmx-fit > div:last-child { border-top: 4px solid var(--gold-hi); }
.dmx-fit h3 { margin-top: 0 !important; font-size: 24px; }
.dmx-fit ul { margin-top: 10px; font-size: 16px; }
@media (max-width: 640px) { .dmx-fit { grid-template-columns: 1fr; } }

.dmx-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dmx-gallery figure { margin: 0; }
.dmx-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px; background: var(--paper); }
.dmx-gallery figcaption { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
@media (max-width: 640px) { .dmx-gallery { grid-template-columns: 1fr 1fr; } }

.dmx-inquire { background: var(--paper); border-top: 1px solid var(--line-2); scroll-margin-top: var(--header-h); }
.dmx-inq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.dmx-inquire h2 { font-size: clamp(36px, 4.8vw, 60px); }
.dmx-inquire .lede { margin-top: 16px; }
.dmx-inq-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.dmx-inq-points li { padding-left: 26px; position: relative; }
.dmx-inq-points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.dmx-inquire .form .row { grid-template-columns: 1fr 1fr; }
.dmx-inquire .form label.lbl span { font-weight: 400; color: var(--text-2); }
.dmx-inquire .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dmx-want { border: 0; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; }
.dmx-want legend { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.dmx-want label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); cursor: pointer; }
.dmx-want input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.dmx-more { padding: 14px 14px 2px; margin-bottom: 12px; border-left: 4px solid var(--gold-hi); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.dmx-inquire .form small.fe { color: var(--red); font-size: 13px; font-weight: 600; }
@media (max-width: 960px) { .dmx-inq-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dmx-inquire .form .row { grid-template-columns: 1fr; } }

.dmx-sources { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-2); }
.dmx-sources ol { margin: 0; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--text-2); display: grid; gap: 6px; max-width: 980px; }
.dmx-sources a { color: var(--blue); overflow-wrap: anywhere; }
.dmx-sources .byline { margin-top: 22px; max-width: none; }
.dmax .nw { white-space: nowrap; }
@media (max-width: 1000px) { .dmx-article { grid-template-columns: minmax(0, 1fr); } .dmx-article .aside { position: static; } }

/* Oct 2026 (2.9.3): the header gained a Commercial tab; keep the logo full size from 1141 to 1279 px (phone shows as its icon there) */
.site-header .brand { flex-shrink: 0; }
@media (min-width: 1141px) and (max-width: 1279px) { .site-header .phone span { display: none; } .nav a { padding-inline: 7px; } .site-header .bar { gap: 10px; } }

/* ---------- 2.9.4: six steps under the hero, three-point short version, wall detail drawing, quick math ---------- */
.dmx-six { padding-block: clamp(4px, 1vw, 12px) clamp(26px, 4vw, 44px); }
.dmx-six-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.dmx-six-list li { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.dmx-six-list .ph { position: relative; display: block; }
.dmx-six-list img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--paper); }
.dmx-six-list .n { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; box-shadow: 0 0 0 3px #fff; }
.dmx-six-list p { margin: 0; padding: 10px 12px 12px; font-size: 14.5px; line-height: 1.4; color: var(--text-2); }
.dmx-six-list p b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 2px; }
.dmx-six .dmx-credit { margin-top: 12px; }
.dmx-six .dmx-credit a { color: var(--blue); font-weight: 600; }
@media (max-width: 1100px) { .dmx-six-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dmx-six-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .dmx-six-list p { font-size: 13.5px; padding: 8px 10px 10px; } }
.dmx-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dmx-why-card { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.dmx-why-card .kicker { margin: 0; }
.dmx-big { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 4.6vw, 62px); line-height: .9; color: var(--blue); letter-spacing: -.01em; }
.dmx-big span { display: block; margin-top: 6px; font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.25; letter-spacing: 0; color: var(--ink); }
.dmx-why-card > p:not(.kicker):not(.dmx-big) { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.dmx-mbars { display: grid; gap: 9px; }
.dmx-mbars > div { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.dmx-mbars span { flex: 0 0 100%; font-size: 13px; color: var(--text-2); margin-bottom: 3px; }
.dmx-mbars i { display: block; height: 14px; min-width: 6px; width: calc((100% - 82px) * var(--w)); border-radius: 0 3px 3px 0; background: #AEB6C2; }
.dmx-mbars .dm i { background: var(--blue); }
.dmx-mbars b { font-size: 14px; color: var(--ink); white-space: nowrap; }
.dmx-mbars .dm b { color: var(--blue); }
.dmx-elev { display: block; width: 100%; height: auto; max-width: 340px; }
.dmx-elev text { font-family: var(--body); }
.dmx-more-link { margin-top: auto; font-weight: 600; color: var(--blue); }
.dmx-more-link::after { content: " ›"; }
@media (max-width: 960px) { .dmx-why { grid-template-columns: 1fr; } .dmx-why-card { max-width: 640px; } }
.dmx-detail { margin: 18px 0 26px; }
.dmx-detail img { display: block; width: 100%; max-width: 600px; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dmx-detail figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--text-2); max-width: 640px; }
.dmx-qm td:not(:first-child), .dmx-qm th:not(:first-child) { text-align: right; white-space: nowrap; }
.dmx-qm td:last-child, .dmx-qm th:last-child { color: var(--blue); }
.dmx-hero { padding-bottom: clamp(18px, 2.5vw, 32px); }
.dmx-hero-photo img { max-height: 440px; }
.dmx-qm th { white-space: normal !important; vertical-align: bottom; }
.dmx-qm td:first-child { min-width: 200px; }

/* ---------- 2.9.5: D-Max sub-tabs, LEED cue, LEED projects page (/commercial/leed-projects/), engineers page (/commercial/engineers/) ---------- */
.dmx-subnav { border-bottom: 1px solid var(--line); background: #fff; }
.dmx-subnav-in { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.dmx-tabs { display: flex; align-items: stretch; gap: 2px; }
.dmx-tabs-label { align-self: center; margin-right: 10px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.dmx-tabs a { display: block; padding: 15px 12px 12px; font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--text-2); border-bottom: 3px solid transparent; }
.dmx-tabs a:hover { color: var(--ink); }
.dmx-tabs a.on { color: var(--ink); border-bottom-color: var(--blue); }
.dmx-tabs a.dmx-tab-leed:not(.on) { color: var(--blue); background: rgba(27,95,204,.07); border-radius: var(--radius) var(--radius) 0 0; }
.dmx-cue { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 8px 16px 8px 10px; border: 1px solid #EBD27A; border-radius: 999px; background: #FFF8DC; font-size: 14px; line-height: 1.35; color: var(--text); }
.dmx-cue b { color: var(--ink); }
.dmx-cue:hover { border-color: var(--gold); background: #FFF3C4; }
.dmx-cue-arrow { flex: none; color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .dmx-cue { animation: dmxCueIn .7s var(--swoop) .35s both; }
  .dmx-cue-arrow { animation: dmxNudge .9s ease-in-out 1.05s 5; }
  .dmx-tabs a.dmx-tab-leed:not(.on) { animation: dmxGlow 1.8s ease-out 1.05s 2; }
}
@keyframes dmxCueIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes dmxNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-9px); } }
@keyframes dmxGlow { 0% { box-shadow: 0 0 0 0 rgba(27,95,204,.45); } 70% { box-shadow: 0 0 0 9px rgba(27,95,204,0); } 100% { box-shadow: 0 0 0 0 rgba(27,95,204,0); } }
@media (max-width: 760px) {
  .dmx-subnav-in { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 14px; }
  .dmx-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .dmx-tabs-label { display: none; }
  .dmx-tabs a { padding: 14px 4px 11px; font-size: 14px; text-align: center; }
  .dmx-cue { position: relative; max-width: none; margin-top: 26px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
  .dmx-cue-arrow { position: absolute; top: -27px; right: calc(16.667% - 20px); transform: rotate(90deg); }
  @media (prefers-reduced-motion: no-preference) {
    .dmx-cue { animation-name: dmxCueUp; }
    .dmx-cue-arrow { animation-name: dmxNudgeUp; }
  }
}
@keyframes dmxCueUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dmxNudgeUp { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(-7px); } }

.dmx-subnav + .dmx-hero { padding-top: clamp(22px, 3vw, 44px); }

/* LEED call-out on the main page */
.dmx-article .article-body a.dmx-leedcall { display: grid; gap: 6px; margin: 24px 0 6px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; background: var(--paper); color: var(--text); text-decoration: none; }
.dmx-article .article-body a.dmx-leedcall:hover { border-color: var(--blue); }
.dmx-leedcall-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.dmx-leedcall b { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.08; color: var(--ink); }
.dmx-leedcall span { max-width: 68ch; font-size: 15.5px; line-height: 1.5; }
.dmx-leedcall .dmx-more-link { margin-top: 4px; }

/* sub-page hero */
.dmax-sub .crumbs a + a::before { content: "/"; margin-right: 8px; color: var(--line); }
.dmx-hero-sub { padding-block: clamp(26px, 4vw, 52px) clamp(34px, 5vw, 64px); }
.dmx-hero-sub h1 { font-size: clamp(40px, 5.4vw, 70px); max-width: 21ch; }
.dmx-hero-sub .lede { max-width: 68ch; }
.lp-stats { margin-top: 30px; }
.lp-stats b { font-size: clamp(34px, 3.6vw, 48px); }

/* LEED points chart */
.lp-points { padding-block: clamp(40px, 6vw, 72px); background: var(--paper); border-block: 1px solid var(--line-2); }
.lp-intro { max-width: 72ch; margin: 0 0 22px; font-size: 17px; color: var(--text); }
.lp-chart { padding: 20px 22px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.lp-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; font-size: 14px; color: var(--text-2); }
.lp-legend i { display: inline-block; width: 13px; height: 13px; margin-right: 7px; border-radius: 3px; vertical-align: -2px; }
.lp-legend .e, .lp-bar .e { background: #1B5FCC; }
.lp-legend .m, .lp-bar .m { background: #B47A00; }
.lp-legend .r, .lp-bar .r { background: #D3D7DD; }
.lp-plot { --lab: 150px; position: relative; padding-top: 24px; }
.lp-scale { position: absolute; top: 0; bottom: 0; left: var(--lab); right: 0; pointer-events: none; z-index: 1; }
.lp-scale span { position: absolute; top: 0; bottom: -4px; transform: translateX(-100%); padding-right: 5px; border-right: 1.5px dashed rgba(11,20,33,.5); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--text-2); }
.lp-scale em { font-style: normal; font-weight: 500; }
.lp-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; margin-top: 12px; }
.lp-row > a { padding-right: 12px; font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--ink); }
.lp-row > a:hover { color: var(--blue); }
.lp-row small { display: block; margin-top: 2px; font-weight: 500; font-size: 13px; color: var(--text-2); }
.lp-bar { display: flex; align-items: stretch; height: 36px; }
.lp-bar i { display: flex; align-items: center; justify-content: center; min-width: 0; border-right: 2px solid #fff; font-style: normal; }
.lp-bar i:first-child { border-radius: 4px 0 0 4px; }
.lp-bar i.r { border-right: 0; border-radius: 0 4px 4px 0; }
.lp-bar b { font-size: 14px; font-weight: 700; color: #fff; }
.lp-bar .m b, .lp-bar .r b { color: var(--ink); }
.lp-bar .tot { align-self: center; padding-left: 8px; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); }
.lp-scale-note { margin: 12px 0 0; font-size: 13px; color: var(--text-2); }
@media (max-width: 640px) {
  .lp-chart { padding: 16px 14px 14px; }
  .lp-plot { --lab: 0px; }
  .lp-row { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 14px; }
  .lp-row small { display: inline; margin-left: 6px; }
  .lp-scale em { display: none; }
}

/* project cards */
.lp-projects { padding-block: clamp(40px, 6vw, 72px); }
.lp-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.lp-card { min-width: 0; }
.lp-card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 10px; background: #fff; scroll-margin-top: calc(var(--header-h) + 16px); }
.lp-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; margin-bottom: 18px; }
.lp-card-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.lp-card-head .kicker { margin-bottom: 6px; }
.lp-level { display: grid; justify-items: end; gap: 2px; margin: 0; text-align: right; }
.lp-level b { padding: 4px 12px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--ink); }
.lp-level.lp-silver b { color: var(--ink); background: #D9DDE2; box-shadow: inset 0 0 0 1px #AEB5BE; }
.lp-level span { font-size: 13.5px; color: var(--text-2); }
.lp-card > .lp-bar { margin-bottom: 14px; }
.lp-sum { max-width: 80ch; margin: 0 0 16px; font-size: 16px; }
.lp-sum b { color: var(--ink); }
.lp-tbl { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
.lp-tbl th, .lp-tbl td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lp-tbl th { font-weight: 700; color: var(--ink); background: var(--paper); }
.lp-tbl td:nth-child(2) { white-space: nowrap; font-weight: 700; color: var(--ink); }
.lp-card .tbl { overflow-x: auto; }
.lp-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.lp-links .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
@media (max-width: 560px) {
  .lp-level { justify-items: start; text-align: left; }
  .lp-tbl { min-width: 0; }
  .lp-tbl thead { display: none; }
  .lp-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .lp-tbl td { padding: 0; border: 0; }
  .lp-tbl td:first-child { font-weight: 700; color: var(--ink); }
  .lp-tbl td:nth-child(3) { grid-column: 1 / -1; font-size: 14px; color: var(--text-2); }
}

.lp-how { padding-block: clamp(44px, 6vw, 80px); background: var(--paper); border-block: 1px solid var(--line-2); }
.lp-narrow { max-width: var(--shell); }
.lp-how p, .lp-how li { font-size: 16.5px; max-width: 72ch; }
.lp-how ul { padding-left: 22px; margin: 14px 0; }
.lp-how li + li { margin-top: 10px; }
.lp-how li::marker { color: var(--blue); }

.lp-angus { padding-block: clamp(48px, 7vw, 88px); }
.lp-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.lp-gallery figure { margin: 0; }
.lp-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px; background: var(--paper); }
.lp-gallery figcaption { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
@media (max-width: 960px) { .lp-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lp-cta { padding-block: clamp(40px, 6vw, 72px); }
.lp-cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: clamp(22px, 3vw, 34px); border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; }
.lp-cta-box h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 6px; }
.lp-cta-box p { max-width: 60ch; color: var(--text-2); }
.lp-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dmax-sub .dmx-sources { padding-bottom: clamp(48px, 7vw, 88px); }

/* engineers page */
.en-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.en-photos figure { margin: 0; }
.en-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px; background: var(--paper); }
.en-photos figcaption { margin-top: 6px; font-size: 13px; line-height: 1.4; }
.dmx-article .tbl table.en-props td:nth-child(2) { background: rgba(27,95,204,.05); }
.en-docs li { line-height: 1.5; }
.dmx-article .article-body .en-cta { margin-top: 44px; }
.dmx-article .article-body .en-cta h2 { margin-top: 0; font-size: clamp(26px, 3vw, 34px); }
@media (max-width: 560px) { .en-photos { grid-template-columns: minmax(0, 1fr); } }
.dmax-sub .dmx-article { padding-top: clamp(20px, 3vw, 40px); }
.lp-how a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
