/* ============================================================
   ELEVATION PRO — siding landing (v2)
   Black + ember-orange. Display: Clash Display · Body: Switzer.
   Reference-grade: full-bleed hero, frosted glass, soft shadows,
   big radii, airy spacing, calculator-first.
   ============================================================ */

:root {
  /* neutrals — warm light */
  --paper:      #f6f3ee;
  --paper-2:    #fffdf9;
  --soft:       #efeae1;
  --line:       #e7e0d4;
  --ink:        #11151b;
  --ink-soft:   #57606e;

  /* black / dark sections */
  --night:      #0b0e12;
  --night-2:    #12171f;
  --night-3:    #1a212b;
  --night-line: #283342;
  --mist:       #aab4c0;
  --mist-soft:  #7c8794;

  /* ember accent (orange) */
  --ember:      #ef6a2e;
  --ember-2:    #ff8147;
  --ember-deep: #c8521c;
  --ember-ink:  #1c0f06;
  --ember-tint: rgba(239,106,46,.12);
  --ember-tint2:rgba(239,106,46,.22);

  /* system */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shadow-sm: 0 1px 2px rgba(17,21,27,.05), 0 3px 10px rgba(17,21,27,.05);
  --shadow:    0 12px 36px rgba(17,21,27,.09), 0 3px 10px rgba(17,21,27,.05);
  --shadow-lg: 0 38px 90px rgba(8,11,16,.26), 0 10px 30px rgba(8,11,16,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Single source of truth for anchor-scroll offset: sticky header is 64px,
   + a small breathing gap. NO scroll-margin-top on targets (it would stack). */
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
}

body {
  font-family: "Switzer", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: "Clash Display", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ember-deep), var(--ember-2));
  z-index: 101; pointer-events: none; will-change: transform;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  background: var(--bg); color: var(--fg);
  font-family: "Switzer", sans-serif; font-weight: 600; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
  white-space: nowrap; line-height: 1;
  position: relative; overflow: hidden; isolation: isolate; touch-action: manipulation;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--ember); --fg: var(--ember-ink); box-shadow: 0 10px 26px rgba(239,106,46,.34); }
.btn-primary:hover { --bg: var(--ember-2); box-shadow: 0 16px 36px rgba(239,106,46,.46); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn-primary:hover::before { transform: translateX(130%); }
.btn-ghost { --bg: rgba(255,255,255,.06); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bg: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-dark { --bg: var(--ink); --fg: var(--paper-2); }
.btn-dark:hover { --bg: #20262f; }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 30px; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px var(--ember-tint); }
.eyebrow-dark { color: var(--ember-deep); }

.section { padding: clamp(68px, 10vw, 124px) 0; position: relative; z-index: 2; }
.section-head { max-width: 680px; margin-bottom: clamp(38px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.section-lead { margin-top: 18px; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 62ch; }
.section-head.center .section-lead { margin-inline: auto; }

.section-dark { background: var(--night); color: var(--paper); }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: var(--mist); }
.section-soft { background: var(--soft); }
.title-accent { color: var(--ember); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.site-header.scrolled {
  background: rgba(11,14,18,.82);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--night-line), 0 10px 30px rgba(0,0,0,.35);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 1.34rem; letter-spacing: -0.02em; color: #fff; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ember); color: var(--ember-ink); box-shadow: 0 6px 18px rgba(239,106,46,.4); }
.brand-name { line-height: 1; }
.brand-pro { color: var(--ember); }
.site-header.scrolled .brand { color: #fff; }
.site-header.scrolled .brand-pro { color: var(--ember); }

.nav { display: flex; gap: 30px; }
.nav a { font-size: .96rem; font-weight: 500; color: rgba(255,255,255,.85); transition: color .2s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--ember); transition: width .25s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.site-header.scrolled .nav a { color: rgba(255,255,255,.85); }
.site-header.scrolled .nav a:hover { color: #fff; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.9); }
.site-header.scrolled .phone { color: rgba(255,255,255,.9); }
.phone:hover { color: var(--ember); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; touch-action: manipulation; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.site-header.scrolled .nav-toggle span { background: #fff; }

/* ============================================================
   HERO — full-bleed photo + frosted glass card
   ============================================================ */
.hero { position: relative; margin-top: -78px; padding-top: calc(78px + clamp(48px, 7vw, 96px)); padding-bottom: clamp(64px, 9vw, 120px); overflow: hidden; color: #fff; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,11,16,.62) 0%, rgba(8,11,16,.42) 40%, rgba(8,11,16,.74) 100%),
    radial-gradient(80% 60% at 12% 30%, rgba(239,106,46,.22), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-card {
  max-width: 680px;
  background: rgba(11,14,18,.55);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}
.hero-title { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em; color: #fff; }
.hero-lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.86); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-reassure { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: .88rem; color: rgba(255,255,255,.72); }
.hero-reassure svg { color: var(--ember-2); flex-shrink: 0; }

.live-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  background: rgba(239,106,46,.16); border: 1px solid rgba(239,106,46,.4);
  border-radius: 999px; padding: 9px 16px 9px 14px; color: #fff; font-weight: 600; font-size: .92rem;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.live-chip:hover { transform: translateY(-2px); background: rgba(239,106,46,.26); }
.live-chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 0 0 rgba(255,129,71,.6); animation: pulse 1.8s infinite; }
.live-chip b { font-family: "Clash Display", sans-serif; font-variant-numeric: tabular-nums; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,129,71,.55)} 70%{box-shadow:0 0 0 9px rgba(255,129,71,0)} 100%{box-shadow:0 0 0 0 rgba(255,129,71,0)} }

.hero-stats { list-style: none; padding: 0; display: flex; gap: clamp(22px, 4vw, 46px); margin-top: 30px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; gap: 3px; }
.hero-stats strong { font-family: "Clash Display", sans-serif; font-size: 1.8rem; font-weight: 600; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .82rem; color: rgba(255,255,255,.66); }
.hero-stats .star { color: var(--ember-2); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trustbar { background: var(--ink); color: var(--paper); position: relative; z-index: 3; }
.trustbar-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(14px, 3vw, 36px); padding: 18px 0; }
.trust-item { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.8); }
.trust-item svg { color: var(--ember); flex-shrink: 0; }
.trust-divider { width: 1px; height: 18px; background: rgba(255,255,255,.16); }

/* ============================================================
   CALCULATOR — the centerpiece
   ============================================================ */
.calc-section { position: relative; }
.calc { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.calc-controls { display: flex; flex-direction: column; gap: 28px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); }
.field { display: flex; flex-direction: column; }
.field-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.field-label { font-family: "Clash Display", sans-serif; font-size: 1.1rem; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.field-note { font-size: .8rem; color: var(--mist-soft); }
.field-hint { margin-top: 12px; font-size: .84rem; color: var(--mist-soft); max-width: 52ch; }

.area-output { display: inline-flex; align-items: baseline; gap: 7px; background: var(--night); border: 1px solid var(--night-line); border-radius: 12px; padding: 8px 14px; }
.area-output input { width: 78px; background: transparent; border: none; color: #fff; font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 1.15rem; text-align: right; font-variant-numeric: tabular-nums; }
.area-output input::-webkit-outer-spin-button, .area-output input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.area-output input[type=number] { -moz-appearance: textfield; }
.area-output .unit { color: var(--mist-soft); font-size: .82rem; font-weight: 600; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: var(--night); outline-offset: 4px; touch-action: manipulation; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; }
.range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--night); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ember); border: 4px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.4); margin-top: -8px; transition: transform .15s var(--ease); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--ember); border: 4px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.4); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.chip { font-size: .85rem; font-weight: 600; color: var(--mist); background: var(--night); border: 1px solid var(--night-line); border-radius: 999px; padding: 8px 15px; transition: all .2s var(--ease); touch-action: manipulation; }
.chip:hover { border-color: var(--ember); color: #fff; }
.chip.is-active { background: var(--ember); border-color: var(--ember); color: var(--ember-ink); }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check-card { position: relative; display: flex; align-items: flex-start; gap: 13px; background: var(--night); border: 1.5px solid var(--night-line); border-radius: 14px; padding: 17px 16px; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease); touch-action: manipulation; }
.check-card:hover { border-color: #3a4754; transform: translateY(-2px); }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #3c4855; background: transparent; display: grid; place-items: center; transition: all .2s var(--ease); margin-top: 1px; }
.check-box::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--ember-ink); border-bottom: 2.5px solid var(--ember-ink); transform: rotate(-45deg) scale(0); transform-origin: center; transition: transform .2s var(--ease); margin-top: -2px; }
.check-card input:checked ~ .check-box { background: var(--ember); border-color: var(--ember); }
.check-card input:checked ~ .check-box::after { transform: rotate(-45deg) scale(1); }
.check-card:has(input:checked) { border-color: var(--ember); background: linear-gradient(var(--ember-tint), var(--ember-tint)), var(--night); }
.check-card input:focus-visible ~ .check-box { outline: 3px solid var(--ember); outline-offset: 2px; }
.check-title { display: block; font-weight: 600; font-size: .98rem; color: #fff; }
.check-sub { display: block; font-size: .8rem; color: var(--mist-soft); margin-top: 2px; }

.material-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; transition: opacity .25s var(--ease); }
.mat-card { position: relative; cursor: pointer; }
.mat-card input { position: absolute; opacity: 0; pointer-events: none; }
.mat-inner { display: flex; flex-direction: column; gap: 4px; height: 100%; background: var(--night); border: 1.5px solid var(--night-line); border-radius: 13px; padding: 15px; transition: all .2s var(--ease); }
.mat-card:hover .mat-inner { border-color: #3a4754; transform: translateY(-2px); }
.mat-name { font-weight: 600; font-size: .98rem; color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mat-desc { font-size: .8rem; color: var(--mist-soft); }
.mat-price { margin-top: auto; padding-top: 9px; font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 1.18rem; color: var(--ember-2); font-variant-numeric: tabular-nums; line-height: 1; }
.mat-price small { font-size: .55em; font-weight: 600; color: var(--mist-soft); margin-left: 2px; }
.mat-price .mp-from { font-family: "Switzer", sans-serif; font-size: .46em; font-weight: 600; color: var(--mist-soft); text-transform: uppercase; letter-spacing: .08em; margin-right: 3px; vertical-align: middle; }
.mat-tag { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ember-2); background: var(--ember-tint); padding: 2px 7px; border-radius: 999px; }
.mat-card input:checked ~ .mat-inner { border-color: var(--ember); background: linear-gradient(var(--ember-tint), var(--ember-tint)), var(--night); box-shadow: 0 0 0 1px var(--ember); }
.mat-card input:focus-visible ~ .mat-inner { outline: 3px solid var(--ember); outline-offset: 2px; }
.material-grid.is-disabled { opacity: .4; pointer-events: none; }

.finish-top { margin-top: 18px; }
.seg-wide { display: flex; }
.segmented { display: inline-flex; background: var(--night); border: 1.5px solid var(--night-line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg-wide .seg { flex: 1; text-align: center; }
.seg { padding: 9px 18px; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--mist); transition: all .2s var(--ease); touch-action: manipulation; }
.seg:hover { color: #fff; }
.seg.is-active { background: var(--ember); color: var(--ember-ink); }

.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.addon { display: flex; align-items: center; gap: 11px; background: var(--night); border: 1.5px solid var(--night-line); border-radius: 12px; padding: 13px 15px; cursor: pointer; font-size: .94rem; font-weight: 500; color: var(--mist); transition: all .2s var(--ease); touch-action: manipulation; }
.addon:hover { border-color: #3a4754; color: #fff; }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon-check { flex-shrink: 0; width: 21px; height: 21px; border-radius: 6px; border: 2px solid #3c4855; display: grid; place-items: center; transition: all .2s var(--ease); }
.addon-check::after { content: ""; width: 9px; height: 5px; border-left: 2.4px solid var(--ember-ink); border-bottom: 2.4px solid var(--ember-ink); transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease); margin-top: -2px; }
.addon input:checked ~ .addon-check { background: var(--ember); border-color: var(--ember); }
.addon input:checked ~ .addon-check::after { transform: rotate(-45deg) scale(1); }
.addon:has(input:checked) { border-color: var(--ember); color: #fff; }
.addon input:focus-visible ~ .addon-check { outline: 3px solid var(--ember); outline-offset: 2px; }

/* ── Scope + "how to measure" helper ─────────────────────── */
.chips[hidden], .confidence[hidden], .lockin[hidden], .locked-row[hidden], .help-block[hidden] { display: none; }
.form-success[hidden] { display: none; }
.label-with-help { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.help-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ember-2); background: var(--ember-tint); border-radius: 999px; padding: 4px 11px 4px 9px; transition: all .2s var(--ease); touch-action: manipulation; }
.help-btn:hover { background: var(--ember-tint2); color: #fff; }
.help-btn[aria-expanded="true"] { background: var(--ember); color: var(--ember-ink); }
.help-panel { margin: 14px 0 4px; background: var(--night); border: 1px solid var(--night-line); border-radius: 14px; padding: 16px 18px; animation: helpIn .25s var(--ease); }
@keyframes helpIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.help-block h4 { font-family: "Switzer", system-ui, sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.35; letter-spacing: 0; color: #fff; margin: 0 0 7px; }
.help-panel p { font-size: .85rem; line-height: 1.55; color: var(--mist); margin: 0 0 11px; max-width: 58ch; }
.help-panel p:last-child { margin-bottom: 0; }
.help-panel p strong { color: #eef2f6; font-weight: 650; }
.help-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.area-output.sm { padding: 7px 12px; }
.area-output.sm input { width: 76px; font-size: 1rem; }
.btn-mini { font-size: .82rem; font-weight: 650; color: var(--ember-ink); background: var(--ember); border-radius: 9px; padding: 9px 14px; transition: all .2s var(--ease); touch-action: manipulation; }
.btn-mini:hover { background: var(--ember-2); }
.help-panel .help-result { font-size: .9rem; color: #fff; font-weight: 600; background: var(--ember-tint); border: 1px solid var(--ember-tint2); border-radius: 10px; padding: 10px 13px; max-width: none; margin: 0 0 12px; }
.help-panel .help-result strong { color: var(--ember-2); }

/* ── Confidence badge + instant lock-in ──────────────────── */
.confidence { display: flex; align-items: center; gap: 9px; margin: 16px 0 0; font-size: .84rem; font-weight: 600; color: var(--mist); }
.confidence .conf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mist-soft); flex-shrink: 0; }
.confidence[data-level="high"] { color: #5fce9b; }
.confidence[data-level="high"] .conf-dot { background: #34c684; box-shadow: 0 0 0 4px rgba(52,198,132,.16); }
.lockin { margin-top: 16px; background: linear-gradient(var(--ember-tint), var(--ember-tint)); border: 1px solid var(--ember-tint2); border-radius: 14px; padding: 14px 15px; animation: helpIn .25s var(--ease); }
.lockin-check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.lockin-check input { position: absolute; opacity: 0; pointer-events: none; }
.lockin-box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--ember); background: rgba(0,0,0,.15); display: grid; place-items: center; margin-top: 1px; transition: all .2s var(--ease); }
.lockin-box::after { content: ""; width: 10px; height: 5px; border-left: 2.5px solid var(--ember-ink); border-bottom: 2.5px solid var(--ember-ink); transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease); margin-top: -2px; }
.lockin-check input:checked ~ .lockin-box { background: var(--ember); }
.lockin-check input:checked ~ .lockin-box::after { transform: rotate(-45deg) scale(1); }
.lockin-check input:focus-visible ~ .lockin-box { outline: 3px solid var(--ember); outline-offset: 2px; }
.lockin-label { font-size: .86rem; font-weight: 600; color: #fff; line-height: 1.4; }
.lockin-label small { display: block; font-weight: 500; color: var(--mist); font-size: .76rem; margin-top: 3px; }
.locked-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--ember-tint2); }
.locked-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ember-2); width: 100%; }
.locked-value { font-family: "Clash Display", sans-serif; font-size: 1.7rem; font-weight: 700; color: #fff; }
.locked-value .locked-unit { font-size: .55em; color: var(--mist); font-weight: 600; margin-left: 3px; }
.locked-total { font-size: .95rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; align-self: baseline; }
.locked-save:not(:empty) { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; margin-top: 6px; padding: 10px 13px; border-radius: 11px; background: rgba(52,198,132,.16); border: 1px solid rgba(52,198,132,.45); box-shadow: 0 0 24px rgba(52,198,132,.28); animation: savePop .4s var(--ease) both; }
.save-amt { font-family: "Clash Display", sans-serif; font-size: 1.7rem; font-weight: 700; color: #5ff0ad; text-shadow: 0 0 20px rgba(52,198,132,.6); line-height: 1; }
.save-cap { font-size: .8rem; font-weight: 600; color: #9bedc6; }
@keyframes savePop { 0% { transform: scale(.7); opacity: 0; } 55% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

.calc-summary { position: sticky; top: 98px; }
.summary-card { background: linear-gradient(180deg, var(--night-3), var(--night-2)); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.sample-pill { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: var(--ember-2); background: var(--ember-tint); border: 1px solid var(--ember-tint2); padding: 6px 11px; border-radius: 999px; margin-bottom: 20px; line-height: 1.2; }
.summary-label { display: block; font-size: .85rem; color: var(--mist); letter-spacing: .02em; }
.summary-figure { display: flex; align-items: baseline; gap: 2px; font-family: "Clash Display", sans-serif; font-weight: 600; color: #fff; letter-spacing: -0.03em; margin: 6px 0 8px; line-height: 1; }
.summary-figure .cur { font-size: 1.7rem; color: var(--ember); }
.summary-figure #perSqftFigure { font-size: clamp(2.9rem, 6vw, 3.7rem); font-variant-numeric: tabular-nums; }
.per-unit { font-size: .32em; color: var(--mist); font-weight: 600; align-self: center; margin-left: 3px; letter-spacing: 0; }
.summary-figure.bump { animation: figureBump .42s var(--ease); transform-origin: left center; }
@keyframes figureBump { 0% { transform: none; } 30% { transform: scale(1.05); } 100% { transform: none; } }
.summary-range { font-size: .92rem; color: var(--mist); font-variant-numeric: tabular-nums; }
.summary-persqft { font-size: .82rem; color: var(--mist-soft); margin-top: 4px; font-variant-numeric: tabular-nums; }
.summary-total { margin-top: 14px; padding: 12px 15px; background: var(--night); border: 1px solid var(--night-line); border-radius: 12px; }
.st-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.st-label { font-size: .82rem; color: var(--mist); font-weight: 500; }
.st-value { font-family: "Clash Display", sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; font-variant-numeric: tabular-nums; }
.st-range { display: block; margin-top: 4px; font-size: .8rem; color: var(--mist-soft); font-variant-numeric: tabular-nums; }
.breakdown { list-style: none; padding: 18px 0; margin: 18px 0; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); display: flex; flex-direction: column; gap: 11px; min-height: 30px; }
.breakdown:empty { display: none; }
.breakdown li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .9rem; animation: lineIn .3s var(--ease) both; }
.breakdown .bd-label { color: var(--mist); }
.breakdown .bd-val { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown .bd-sub { font-size: .76rem; color: var(--mist-soft); }
@keyframes lineIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.summary-fine { margin-top: 14px; font-size: .78rem; color: var(--mist-soft); text-align: center; }
.btn.btn-block { margin-top: 4px; }

/* ============================================================
   MATERIALS — photo cards (2026)
   ============================================================ */
.matcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.matcard { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.matcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.matcard-img { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.matcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.matcard:hover .matcard-img img { transform: scale(1.05); }
.matcard-tag { position: absolute; top: 14px; left: 14px; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ember-ink); background: var(--ember); padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(239,106,46,.4); }
.matcard-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.matcard-body h3 { font-size: 1.32rem; margin-bottom: 7px; }
.matcard-body p { color: var(--ink-soft); font-size: .94rem; }
.matcard-cta { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 30px; gap: 8px; }
.matcard-cta h3 { color: #fff; font-size: 1.4rem; }
.matcard-cta p { color: var(--mist); margin-bottom: 16px; }

/* ============================================================
   SERVICES — generated clay icons
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #ddd4c5; }
.svc-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; background: radial-gradient(120% 120% at 30% 20%, var(--ember-tint2), var(--ember-tint)); margin-bottom: 20px; }
.svc-icon img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(200,82,28,.28)); }
.svc-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.svc-card p { color: var(--ink-soft); font-size: .96rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 1fr; gap: 18px; }
.gallery-item { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.gallery-tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 20px 18px; background: linear-gradient(transparent, rgba(8,11,16,.85)); color: #fff; font-size: .88rem; font-weight: 600; }

/* ============================================================
   WHY US — pill tabs (reference pattern)
   ============================================================ */
.tab-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tab-pill {
  font-weight: 600; font-size: .94rem; color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; transition: all .2s var(--ease); box-shadow: var(--shadow-sm); touch-action: manipulation;
}
.tab-pill:hover { border-color: #d8cfc0; color: var(--ink); }
.tab-pill.is-active { background: var(--ember); border-color: var(--ember); color: var(--ember-ink); box-shadow: 0 8px 20px rgba(239,106,46,.32); }
.tab-panel { display: none; }
.tab-panel.is-active { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; animation: fadeIn .35s var(--ease); }
.tab-figure { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/11; }
.tab-figure img { width: 100%; height: 100%; object-fit: cover; }
.tab-figure figcaption { position: absolute; left: 14px; bottom: 14px; font-size: .74rem; font-weight: 600; color: #fff; background: rgba(8,11,16,.55); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; }
.tab-body h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.tab-body p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 18px; }
.tab-body .btn { margin-top: 4px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 28px 24px; }
.step-num { font-family: "Clash Display", sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--ember); letter-spacing: .04em; }
.process-step h3 { color: #fff; font-size: 1.25rem; margin: 14px 0 9px; }
.process-step p { color: var(--mist); font-size: .92rem; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.stars { color: var(--ember); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 16px; }
.review p { font-size: 1.02rem; color: var(--ink); margin-bottom: 20px; flex: 1; }
.review footer { display: flex; flex-direction: column; gap: 2px; }
.review strong { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 1rem; }
.review span { font-size: .84rem; color: var(--ink-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 22px; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.faq-item[open] { border-color: #d8cfc0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: "Switzer", system-ui, sans-serif; font-weight: 600; font-size: 1.05rem; line-height: 1.4; letter-spacing: 0; touch-action: manipulation; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-chev::before, .faq-chev::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2.4px; background: var(--ember); border-radius: 2px; transform: translate(-50%,-50%); transition: transform .25s var(--ease); }
.faq-chev::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .faq-chev::after { transform: translate(-50%,-50%) rotate(0); }
.faq-a { padding: 0 0 22px; color: var(--ink-soft); font-size: .98rem; max-width: 62ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-points { list-style: none; padding: 0; margin-top: 30px; display: flex; flex-direction: column; gap: 15px; }
.contact-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--paper); }
.contact-points svg { color: var(--ember); flex-shrink: 0; }
.contact-form { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-lg); position: relative; }
.quote-recap { background: var(--night-3); border: 1px dashed var(--night-line); border-radius: 13px; padding: 14px 17px; margin-bottom: 22px; }
.qr-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ember-2); font-weight: 700; margin-bottom: 4px; }
.qr-value { font-size: .92rem; color: var(--paper); font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--mist); margin-bottom: 7px; }
.form-field .optional { color: var(--mist-soft); font-weight: 400; }
.form-field input, .form-field textarea {
  background: var(--night); border: 1.5px solid var(--night-line); border-radius: 11px;
  padding: 13px 15px; color: #fff; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--mist-soft); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-tint); }
.form-field input[aria-invalid="true"] { border-color: #e2563a; box-shadow: 0 0 0 3px rgba(226,86,58,.18); }
.form-error { color: #ff9b7d; font-size: .78rem; margin-top: 6px; min-height: 1px; }
.form-fine { margin-top: 14px; font-size: .78rem; color: var(--mist-soft); text-align: center; }
.form-success { position: absolute; inset: 0; background: var(--night-2); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; gap: 8px; animation: fadeIn .4s var(--ease); }
.success-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ember-tint); color: var(--ember); margin-bottom: 8px; }
.form-success h3 { color: #fff; font-size: 1.6rem; }
.form-success p { color: var(--mist); max-width: 40ch; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--night); color: var(--mist); position: relative; z-index: 2; padding-top: clamp(54px, 7vw, 84px); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 50px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; font-size: .92rem; color: var(--mist-soft); }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 4px; font-family: "Switzer", sans-serif; font-weight: 700; }
.footer-col a { font-size: .92rem; color: var(--mist); transition: color .2s; width: fit-content; }
.footer-col a:hover { color: var(--ember); }
.footer-col .btn { margin-bottom: 4px; }
.footer-phone { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 1.1rem; color: #fff !important; }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid var(--night-line); font-size: .82rem; color: var(--mist-soft); }

/* ============================================================
   FLOATING CTA
   ============================================================ */
.fab-calc {
  position: fixed; right: clamp(16px, 4vw, 30px); bottom: clamp(16px, 4vw, 30px); z-index: 90;
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--ember); color: var(--ember-ink); font-weight: 700; letter-spacing: -0.01em;
  padding: 15px 22px; border-radius: 999px;
  box-shadow: 0 16px 36px rgba(239,106,46,.46), 0 4px 12px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(20px) scale(.94); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s var(--ease);
  touch-action: manipulation;
}
.fab-calc.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-calc:hover { background: var(--ember-2); transform: translateY(-2px); }
.fab-calc:active { transform: translateY(0); }
.fab-calc svg { flex-shrink: 0; }
@media (max-width: 420px) { .fab-calc { padding: 14px 18px; font-size: .95rem; } }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--rd, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid, .matcards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
  .summary-card { max-width: 560px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap, .contact-grid { grid-template-columns: 1fr; }
  .tab-panel.is-active { grid-template-columns: 1fr; }
  .tab-figure { aspect-ratio: 16/9; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-tall { grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 0; background: rgba(11,14,18,.97); backdrop-filter: blur(14px); padding: 8px var(--gutter) 24px; transform: translateY(-120%); transition: transform .35s var(--ease); border-bottom: 1px solid var(--night-line); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; width: 100%; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .phone span { display: none; }
  .header-cta .btn { display: none; }
  .check-grid { grid-template-columns: 1fr; }
  .material-grid { grid-template-columns: 1fr 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .cards-grid, .matcards, .reviews, .process { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-stats { gap: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .hero-title { font-size: 2.5rem; }
  .summary-figure #perSqftFigure { font-size: 2.7rem; }
  .material-grid { grid-template-columns: 1fr; }
  .segmented { width: 100%; }
  .seg { flex: 1; padding: 11px 8px; text-align: center; }
}

/* ============================================================
   LUXURY PASS (v3) — depth, ambient light & motion.
   Appended last so it layers over the base without touching
   layout. Turns flat-black sections into lit, designed space.
   ============================================================ */
:root { --ease-out: cubic-bezier(.23,1,.32,1); --ease-spring: cubic-bezier(.34,1.56,.64,1); }

/* warm, lit page base instead of dead-flat paper */
body {
  background:
    radial-gradient(100% 38% at 100% 0%, rgba(239,106,46,.045), transparent 60%),
    linear-gradient(180deg, #fffdf9 0%, #f6f3ee 22%, #f3efe7 100%);
  background-attachment: fixed;
}
/* grain now reads on dark sections too */
.grain { mix-blend-mode: soft-light; opacity: .5; }

/* ---- DARK SECTIONS: lit volume, not a void ---- */
.section-dark {
  background:
    radial-gradient(120% 80% at 50% -8%, rgba(255,129,71,.10), transparent 55%),
    radial-gradient(90% 70% at 88% 112%, rgba(40,51,66,.5), transparent 60%),
    linear-gradient(180deg, #12171f 0%, #0b0e12 46%, #090c10 100%);
  border-top: 1px solid rgba(239,106,46,.16);
}
#contact.section-dark {
  background:
    radial-gradient(58% 70% at 80% 46%, rgba(239,106,46,.16), transparent 55%),
    radial-gradient(120% 120% at 50% 50%, transparent 42%, rgba(0,0,0,.45)),
    linear-gradient(180deg, #12171f, #0b0e12);
}

/* ---- DARK CARDS: relief border + top catch-light ---- */
.calc-controls, .summary-card, .contact-form {
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.45), var(--shadow-lg);
}
.calc-controls, .contact-form {
  background:
    linear-gradient(180deg, #1a212b, #12171f) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.02) 40%, rgba(239,106,46,.14)) border-box;
}
.summary-card {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, var(--night-3), var(--night-2)) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 38%, rgba(239,106,46,.18)) border-box;
}
.summary-card::before {
  content: ""; position: absolute; top: -28%; left: -12%; width: 62%; height: 56%; z-index: 0;
  background: radial-gradient(60% 60% at 32% 30%, rgba(239,106,46,.16), transparent 70%); pointer-events: none;
}
.summary-card > * { position: relative; z-index: 1; }

/* ---- HERO: spotlight behind the card + ember bloom ---- */
.hero-overlay {
  background:
    radial-gradient(66% 54% at 26% 40%, rgba(239,106,46,.28), transparent 58%),
    linear-gradient(180deg, rgba(8,11,16,.58) 0%, rgba(8,11,16,.38) 38%, rgba(8,11,16,.8) 100%),
    radial-gradient(120% 90% at 50% 122%, rgba(8,11,16,.6), transparent 55%);
}
.hero-card { box-shadow: var(--shadow-lg), 0 40px 120px rgba(239,106,46,.16); }

/* ---- PER-SQ-FT: the emotional hero number ---- */
.summary-figure #perSqftFigure {
  background: linear-gradient(180deg, #fff 0%, #ffdcca 62%, var(--ember-2) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 0 2px 30px rgba(239,106,46,.16);
}
.summary-figure .cur { text-shadow: 0 0 18px rgba(239,106,46,.4); }
.summary-total {
  background: linear-gradient(180deg, rgba(239,106,46,.07), rgba(0,0,0,.18)); border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 0 1px var(--night-line);
}

/* ---- LOCK-IN: special-offer panel + unlock motion ---- */
.lockin {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(239,106,46,.15), rgba(239,106,46,.06)) padding-box,
    linear-gradient(180deg, rgba(255,150,90,.5), rgba(239,106,46,.22)) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 30px rgba(239,106,46,.14);
}
.lockin-check input:checked ~ .lockin-box { box-shadow: 0 0 0 1px var(--ember), 0 4px 14px rgba(239,106,46,.5); }
.locked-save:not(:empty) { position: relative; overflow: hidden; animation: saveUnlock .42s var(--ease-spring) both; }
.locked-save:not(:empty)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.35) 50%, transparent 58%);
  transform: translateX(-130%); animation: shineSweep .8s .15s var(--ease-out) both;
}
@keyframes saveUnlock { 0% { transform: translateY(8px) scale(.96); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes shineSweep { from { transform: translateX(-130%); } to { transform: translateX(130%); } }

/* ---- SEGMENTED: recessed track, raised active pill ---- */
.segmented { background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.14)); border-color: var(--night-line); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.seg.is-active { box-shadow: 0 2px 9px rgba(239,106,46,.42), inset 0 1px 0 rgba(255,255,255,.25); }
.area-output { box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.chip.is-active { box-shadow: 0 3px 12px rgba(239,106,46,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.addon input:checked ~ .addon-check { box-shadow: 0 0 0 1px var(--ember), 0 3px 12px rgba(239,106,46,.4); }
.check-box::after, .addon-check::after { transform: rotate(-45deg) scale(.4); }
.check-card input:checked ~ .check-box::after, .addon input:checked ~ .addon-check::after { transform: rotate(-45deg) scale(1); }
.seg:focus-visible, .chip:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }

/* ---- PRESS FEEDBACK + help chevron ---- */
.btn:active, .fab-calc:active, .chip:active, .seg:active, .btn-mini:active, .help-btn:active, .tab-pill:active { transform: scale(.96); }
.help-btn svg { transition: transform .2s var(--ease-out); }
.help-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.btn-primary.pulse-shine::before { animation: shineSweep .7s var(--ease-out); }

/* ---- INPUTS: visible at rest ---- */
.form-field input, .form-field textarea { border-color: #313d4b; box-shadow: inset 0 1px 0 rgba(255,255,255,.03), inset 0 1px 3px rgba(0,0,0,.3); }

/* ---- PROCESS: timeline with connector + ember step discs ---- */
.process { position: relative; }
.process::before { content: ""; position: absolute; top: 52px; left: 8%; right: 8%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(239,106,46,.5) 12%, rgba(239,106,46,.5) 88%, transparent); }
.process-step { position: relative; z-index: 1; border-color: var(--night-line);
  background: radial-gradient(140% 90% at 0% 0%, rgba(239,106,46,.07), transparent 46%), linear-gradient(180deg, var(--night-3), var(--night-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow-lg); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ember); color: var(--ember-ink); box-shadow: 0 6px 18px rgba(239,106,46,.45); margin-bottom: 6px; }
@media (max-width: 1024px) { .process::before { display: none; } }

/* ---- GALLERY, REVIEWS, MATERIALS-CTA, SERVICES, FAQ, TRUST, FOOTER ---- */
.gallery-item { box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.06); }
.gallery-item figcaption { background: linear-gradient(transparent, rgba(8,11,16,.92)); }
#reviews { background: linear-gradient(180deg, var(--paper), var(--soft)); }
.review { position: relative; overflow: hidden; }
.review::before { content: "\201C"; position: absolute; top: -6px; right: 18px; font-family: "Clash Display", serif;
  font-size: 5rem; line-height: 1; color: var(--ember-tint2); pointer-events: none; }
.matcard-cta { background: radial-gradient(120% 90% at 100% 0%, rgba(239,106,46,.14), transparent 50%), linear-gradient(180deg, var(--night-3), var(--night-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow); }
.svc-card { position: relative; overflow: hidden; }
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--ember-2)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.svc-card:hover::before { transform: scaleX(1); }
.faq-item[open] { box-shadow: var(--shadow-sm), inset 3px 0 0 var(--ember); }
.trustbar { background: linear-gradient(90deg, #12171f, #0b0e12 50%, #12171f); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 0 rgba(0,0,0,.4); }
.site-footer { background: radial-gradient(80% 60% at 50% 122%, rgba(239,106,46,.10), transparent 60%), linear-gradient(180deg, #0b0e12, #070a0d); border-top: 1px solid rgba(255,255,255,.06); }

@media (prefers-reduced-motion: reduce) { .locked-save:not(:empty)::after, .btn-primary.pulse-shine::before { animation: none; } }

/* ============================================================
   POLISH PASS (v4) — finish the visual part: light-card depth,
   gallery scrim, typographic balance, accent restraint, footer.
   ============================================================ */
:root { --shadow-warm: 0 1px 2px rgba(60,42,28,.05), 0 12px 30px rgba(60,42,28,.08); }

/* light cards get a top catch-light + warm layered shadow (match the dark-card depth) */
.svc-card, .matcard:not(.matcard-cta), .review {
  background: linear-gradient(180deg, #fffefb, var(--paper-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-warm);
}
.svc-card:hover, .matcard:not(.matcard-cta):hover, .review:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 44px rgba(60,42,28,.12); }
.faq-item { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-warm); }

/* typography: balance kills orphan/widow words; leads a touch tighter & richer */
.hero-title, .section-title, .tab-body h3 { text-wrap: balance; }
.hero-lead, .section-lead { text-wrap: pretty; }
.section-lead { color: #3f4853; line-height: 1.5; }

/* hero stats read as a deliberate proof-footer to the card */
.hero-stats { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }

/* gallery: unified brand scrim so pale photos anchor + captions always read */
.gallery-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(0deg, rgba(8,11,16,.55) 0%, rgba(8,11,16,.12) 45%, rgba(8,11,16,.05) 100%);
}
.gallery-item figcaption { z-index: 2; text-shadow: 0 1px 12px rgba(0,0,0,.6); }

/* accent restraint: quieter, textural review quote marks (was peach blobs) */
.review::before { color: rgba(17,21,27,.06); }

/* process connector: visible, glowing, aligned through the disc centers */
.process::before {
  top: 50px;
  background: linear-gradient(90deg, transparent, rgba(239,106,46,.7) 12%, rgba(239,106,46,.7) 88%, transparent);
  box-shadow: 0 0 12px rgba(239,106,46,.3);
}

/* footer: stronger floor-glow + gradient hairline base */
.site-footer { background: radial-gradient(80% 60% at 50% 122%, rgba(239,106,46,.16), transparent 60%), linear-gradient(180deg, #0b0e12, #070a0d); }
.footer-base { border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgba(239,106,46,.4), transparent) 1; }

/* ============================================================
   POLISH PASS (v5) — tax disclosure, bug fixes, FAQ aside.
   ============================================================ */
/* "$15 / sq ft + tax" — price is for the work; WA sales tax on top */
.tax-note { font-size: .9rem; font-weight: 600; color: var(--mist-soft); align-self: center; margin-left: 8px; }
.st-tax { display: block; margin-top: 7px; font-size: .76rem; color: var(--mist-soft); }
.summary-figure .per-unit { margin-left: 6px; }

/* BUG: mobile "Live estimate" chip was clipping — let it wrap */
.live-chip { flex-wrap: wrap; max-width: 100%; line-height: 1.3; }
/* BUG: process connector now passes dead-center through the discs */
.process::before { top: 49px; }

/* FAQ: fill the empty left column with a sticky support card */
.faq-aside { display: flex; flex-direction: column; }
.faq-help { margin-top: 28px; padding: 24px; border-radius: var(--r);
  background: linear-gradient(180deg, #fffefb, var(--paper-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-warm); }
.faq-help h3 { font-size: 1.2rem; margin-bottom: 6px; }
.faq-help p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 16px; }
.faq-help .btn { width: 100%; }
.faq-phone { display: block; text-align: center; margin-top: 12px; font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
@media (min-width: 1025px) { .faq-aside { position: sticky; top: 110px; } }
@media (max-width: 1024px) { .faq-help { max-width: 460px; } }

/* footer: hours line */
.footer-hours { font-size: .86rem; color: var(--mist-soft); }

/* FAQ support card: specialist avatar */
.faq-help-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.faq-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 12px rgba(60,42,28,.18); }
.faq-help-head h3 { margin-bottom: 1px; }
.faq-help-role { font-size: .85rem; color: var(--ember-deep); font-weight: 600; }

/* ============================================================
   POLISH PASS (v6) — hero fits one screen, bigger /sq ft label
   ============================================================ */
.hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  padding-top: clamp(94px, 13vh, 140px); padding-bottom: clamp(30px, 6vh, 64px); }
.summary-figure .per-unit { font-size: .44em; margin-left: 9px; align-self: flex-end; margin-bottom: .5em; color: var(--mist); }
.tax-note { align-self: flex-end; margin-bottom: .55em; }

/* ============================================================
   READABILITY PASS (v7)
   ============================================================ */
/* hero proof stats — bigger, higher contrast */
.hero-stats strong { font-size: clamp(1.9rem, 3.4vw, 2.3rem); color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero-stats span { font-size: .95rem; color: rgba(255,255,255,.9); }
.hero-stats .star { color: var(--ember-2); -webkit-text-fill-color: var(--ember-2); }

/* "$15 / sq ft + tax" — clearly readable unit + tax */
.summary-figure .per-unit { font-size: .5em; color: #cfd8e2; font-weight: 700; margin-left: 10px; margin-bottom: .45em; -webkit-text-fill-color: #cfd8e2; }
.tax-note { font-size: 1.2rem; color: var(--ember-2); font-weight: 700; margin-left: 10px; margin-bottom: .5em; }

/* "How to measure" helper — readable heading + body */
.help-block h4 { font-size: 1.18rem; color: #fff; }
.help-panel p { font-size: .92rem; color: #c5cdd6; }
.help-panel p strong { color: #fff; }

/* breakdown — clearer line items so the price detail reads */
.breakdown li { font-size: .95rem; }
.breakdown .bd-label { color: #d6dde5; font-weight: 500; }
.breakdown .bd-sub { color: var(--mist-soft); }
.breakdown .bd-val { color: #fff; }

/* hero: tighter so the whole card (incl. stats) fits within one screen */
.hero { padding-top: clamp(82px, 10.5vh, 112px); padding-bottom: clamp(20px, 4vh, 44px); }
.hero-card { padding: clamp(22px, 3vw, 34px); }
.hero-title { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.hero-lead { margin-top: 13px; max-width: 46ch; }
.hero-actions { margin-top: 17px; }
.hero-stats { margin-top: 16px; padding-top: 13px; gap: clamp(18px, 3.5vw, 40px); }

/* ============================================================
   HERO PROOF STATS — redesigned per design audit
   (left-aligned to match the headline + hairline dividers)
   ============================================================ */
.hero-stats { width: 100%; display: grid; grid-template-columns: auto 1px auto 1px auto; justify-content: start;
  align-items: stretch; gap: 0; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); list-style: none; }
.hero-stats li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 2px clamp(16px, 2.4vw, 30px); }
.hero-stats li:first-child { padding-left: 0; }
.hero-stats li.divider { width: 1px; align-self: center; height: 34px; padding: 0; gap: 0;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.16) 50%, transparent); }
.hero-stats strong { display: flex; align-items: baseline; gap: .06em; font-family: "Clash Display", sans-serif;
  font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -.01em; color: #fff;
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.hero-stats strong [data-count] { font: inherit; letter-spacing: inherit; -webkit-text-fill-color: #fff; }
.hero-stats .suffix { font-size: .6em; font-weight: 600; color: var(--ember-2); -webkit-text-fill-color: var(--ember-2); align-self: baseline; margin-left: .04em; }
.hero-stats .star { font-size: .52em; color: var(--ember); -webkit-text-fill-color: var(--ember); line-height: 1; align-self: center; transform: translateY(-.16em); margin-left: .14em; }
.hero-stats li > span:last-child { font-family: "Switzer", sans-serif; font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; color: rgba(255,255,255,.62); white-space: nowrap; }
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .hero-stats li.divider { display: none; }
  .hero-stats li { padding: 2px 8px 0 0; }
  .hero-stats strong { font-size: 1.5rem; }
  .hero-stats li > span:last-child { white-space: normal; font-size: .64rem; }
}

/* ============================================================
   PRICE-BLOCK REDESIGN (v8) — the per-sq-ft figure is the
   emotional hero of the calculator. Designer spec:
   oversized warm-gradient number · flat-ember "$" on the
   shoulder · a quiet two-line "/ sq ft" + "+ tax" stack ·
   eyebrow label · ember pull on "painting included".
   These rules are last in the file so they win cleanly.
   ============================================================ */
/* eyebrow label above the number */
.summary-card .summary-label {
  font-family: "Switzer", sans-serif; font-size: .72rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--mist-soft);
}

/* figure row: big number + flat-ember "$" + stacked unit/tax */
.calc-summary .summary-figure {
  display: flex; align-items: flex-start; gap: 0;
  margin: 12px 0 9px; line-height: 1;
}

/* "$" — flat ember, parked on the top-left shoulder of the number */
.calc-summary .summary-figure .cur {
  font-size: clamp(2rem, 4.2vw, 2.8rem); font-weight: 600; color: var(--ember);
  -webkit-text-fill-color: var(--ember); align-self: flex-end;
  margin-right: .08em; margin-bottom: .12em;
  text-shadow: 0 4px 18px rgba(239,106,46,.35);
}

/* the big number — warm-to-white gradient, oversized */
.calc-summary .summary-figure #perSqftFigure {
  font-size: clamp(3.6rem, 7.4vw, 4.9rem); font-weight: 600;
  letter-spacing: -.035em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffd9c2 0%, #ffffff 56%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 0 8px 36px rgba(239,106,46,.18);
}

/* "/ sq ft" stacked over "+ tax" — quiet, right of the number */
.calc-summary .summary-figure .unit-stack {
  display: flex; flex-direction: column; align-self: flex-end;
  margin-left: 11px; margin-bottom: .62em; gap: 4px;
}
.calc-summary .summary-figure .unit-stack .per-unit {
  font-family: "Switzer", sans-serif; font-size: .98rem; font-weight: 600;
  color: var(--mist); -webkit-text-fill-color: var(--mist);
  letter-spacing: 0; margin: 0; align-self: auto;
}
.calc-summary .summary-figure .unit-stack .tax-note {
  font-family: "Switzer", sans-serif; font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist-soft); -webkit-text-fill-color: var(--mist-soft);
  margin: 0; padding-top: 5px; align-self: auto;
  border-top: 1px solid var(--night-line);
}

/* "painting included" — soft ember pull in the sub-label */
.summary-persqft .incl { color: var(--ember-2); font-weight: 600; }

/* ============================================================
   COST CARDS (v9) — the per-sq-ft breakdown is now selectable.
   Material + Installation = base (always in). Demo / Disposal /
   Paint are checkboxes the client toggles; each card shows its
   $/sq ft, and unchecking drops the headline price instantly.
   ============================================================ */
.cost-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.cost-card {
  position: relative; display: flex; flex-direction: column; gap: 5px;
  padding: 14px 15px 13px; padding-left: 44px; border-radius: 13px;
  background: var(--night); border: 1.5px solid var(--night-line);
  cursor: pointer; transition: all .2s var(--ease); touch-action: manipulation;
}
.cost-card input { position: absolute; opacity: 0; pointer-events: none; }
.cost-card:hover { border-color: #3a4754; transform: translateY(-2px); }
.cost-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cost-name { font-weight: 600; font-size: 1rem; color: #fff; }
.cost-rate { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 1.02rem;
  color: var(--ember-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-rate small { font-size: .62em; font-weight: 600; color: var(--mist-soft); margin-left: 1px; }
.cost-sub { font-size: .82rem; color: var(--mist-soft); line-height: 1.3; }

/* the checkbox tick (optional cards) */
.cost-check { position: absolute; left: 14px; top: 16px; flex-shrink: 0;
  width: 21px; height: 21px; border-radius: 6px; border: 2px solid #3c4855;
  display: grid; place-items: center; transition: all .2s var(--ease); }
.cost-check::after { content: ""; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2.4px solid var(--ember-ink); border-bottom: 2.4px solid var(--ember-ink);
  transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease); }
.cost-card input:checked ~ .cost-check { background: var(--ember); border-color: var(--ember);
  box-shadow: 0 0 0 1px var(--ember), 0 3px 12px rgba(239,106,46,.4); }
.cost-card input:checked ~ .cost-check::after { transform: rotate(-45deg) scale(1); }
.cost-card input:focus-visible ~ .cost-check { outline: 3px solid var(--ember); outline-offset: 2px; }

/* selected (checked) optional card → ember frame */
.cost-card:has(input:checked) { border-color: var(--ember);
  background: linear-gradient(var(--ember-tint), var(--ember-tint)), var(--night); }
/* deselected → dim it so it clearly reads as "not in your price" */
.cost-card:has(input:not(:checked)) { opacity: .62; }
.cost-card:has(input:not(:checked)) .cost-rate { color: var(--mist-soft); }
.cost-card:has(input:not(:checked)):hover { opacity: .85; }

/* base cards (Material / Installation) — locked-in, no checkbox */
.cost-card.is-base { padding-left: 15px; cursor: default; border-color: #313d4b;
  background: linear-gradient(180deg, rgba(239,106,46,.05), rgba(0,0,0,.12)); }
.cost-card.is-base:hover { transform: none; }
.cost-badge { align-self: flex-start; margin-top: 1px; font-family: "Switzer", sans-serif;
  font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ember-2); padding: 3px 9px; border-radius: 999px;
  background: rgba(239,106,46,.12); border: 1px solid rgba(239,106,46,.3); }

@media (max-width: 560px) { .cost-grid { grid-template-columns: 1fr; } }

/* ============================================================
   MATERIAL "?" PREVIEW (v10) — a question-mark button on each
   product card opens a photo of how that Hardie look really sits
   on a home, with its name, description and all-in $/sq ft.
   ============================================================ */
.mat-card .mat-name { padding-right: 30px; }   /* keep the name clear of the "?" */
.mat-info {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  font-family: "Switzer", sans-serif; font-weight: 700; font-size: .9rem; line-height: 1;
  color: var(--mist); background: rgba(255,255,255,.05);
  border: 1.5px solid var(--night-line); cursor: pointer; transition: all .2s var(--ease);
}
.mat-info:hover { color: #fff; border-color: var(--ember); background: var(--ember-tint); transform: scale(1.08); }
.mat-info:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.mat-card input:checked ~ .mat-info { border-color: var(--ember); color: var(--ember-2); }

/* the preview modal */
.style-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.style-modal[hidden] { display: none; }
.style-backdrop { position: absolute; inset: 0; background: rgba(6,8,11,.74);
  backdrop-filter: blur(6px); animation: styleFade .2s var(--ease); }
/* dialog: a flex column capped to the viewport — content is sized to FIT,
   so there is never a scrollbar (designer rework). */
.style-dialog {
  position: relative; display: flex; flex-direction: column;
  width: min(440px, 100%); max-height: 92vh; overflow: hidden;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); animation: stylePop .28s var(--ease);
}
/* photo shrinks with the viewport height so the text always has room */
.style-photo { display: block; width: 100%; height: clamp(118px, 19vh, 190px);
  object-fit: cover; background: var(--night-3); flex-shrink: 0; }
.style-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; background: rgba(6,8,11,.5); backdrop-filter: blur(6px);
  cursor: pointer; transition: all .2s var(--ease); z-index: 2;
}
.style-close:hover { background: var(--ember); transform: rotate(90deg); }
.style-close:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.style-body { padding: 15px 22px 19px; display: flex; flex-direction: column; min-height: 0; }
.style-eyebrow { font-family: "Switzer", sans-serif; font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mist-soft); }
.style-body h3 { font-family: "Clash Display", sans-serif; font-size: 1.35rem; color: #fff; margin: 4px 0 7px; line-height: 1.1; }
.style-body p { font-size: .9rem; line-height: 1.5; color: var(--mist); margin: 0; }
.style-facts { margin-top: 12px; border-top: 1px solid var(--night-line); }
.sf-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 7px 0; border-bottom: 1px solid var(--night-line); }
.sf-row dt { font-size: .78rem; color: var(--mist-soft); white-space: nowrap; }
.sf-row dd { margin: 0; font-size: .86rem; font-weight: 600; color: #fff; text-align: right; }
.style-price { display: inline-block; margin-top: 13px; font-family: "Clash Display", sans-serif;
  font-weight: 600; font-size: 1.35rem; color: var(--ember-2); }
.style-price span { font-size: .56em; color: var(--mist-soft); font-weight: 600; }
@keyframes styleFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stylePop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* "?" on the optional add-ons (soffit / fascia / gutters) */
.addon-info {
  margin-left: auto; flex-shrink: 0; width: 23px; height: 23px; display: grid; place-items: center;
  border-radius: 50%; font-family: "Switzer", sans-serif; font-weight: 700; font-size: .8rem; line-height: 1;
  color: var(--mist); background: rgba(255,255,255,.05); border: 1.5px solid var(--night-line);
  cursor: pointer; transition: all .2s var(--ease);
}
.addon-info:hover { color: #fff; border-color: var(--ember); background: var(--ember-tint); transform: scale(1.1); }
.addon-info:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }

/* Blinking "?" — pull the eye to the info buttons on the cards */
@keyframes infoBlink {
  0%, 100% { color: var(--mist);    border-color: var(--night-line); box-shadow: 0 0 0 0 var(--ember-tint); }
  50%      { color: var(--ember-2); border-color: var(--ember);       box-shadow: 0 0 0 5px var(--ember-tint); }
}
@media (prefers-reduced-motion: no-preference) {
  .mat-info, .addon-info { animation: infoBlink 1.5s var(--ease) infinite; }
}
.mat-info:hover, .addon-info:hover { animation: none; }

/* ============================================================
   SERVICES PAGE (standalone) — hero, why-grid, inline icons, CTA
   ============================================================ */
.svc-icon svg { width: 52px; height: 52px; display: block; }

/* A · hero — rotating house-photo background + dark scrim, pulls under header */
.svc-hero { position: relative; color: #fff; overflow: hidden; margin-top: -78px;
  background: #0b0e12;
  padding: clamp(140px, 17vw, 200px) 0 clamp(58px, 8vw, 104px); }
.svc-hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease; will-change: opacity; }
.hero-slide.is-active { opacity: 1; }
/* scrim over the photos so the white copy stays readable + ember bloom */
.svc-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(239,106,46,.20), transparent 55%),
    linear-gradient(180deg, rgba(8,11,16,.74) 0%, rgba(8,11,16,.68) 45%, rgba(8,11,16,.9) 100%); }
.svc-hero .container { position: relative; z-index: 2; max-width: 780px; text-align: center; }
.svc-hero .eyebrow { justify-content: center; }
.svc-hero h1 { font-family: "Clash Display", sans-serif; font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2.6rem, 6vw, 4.3rem); line-height: 1.03; margin: 18px 0 0; color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.svc-hero .section-lead { margin: 18px auto 0; max-width: 60ch; color: #e7ecf1; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.svc-hero .hero-actions { justify-content: center; }
.svc-reassure { margin-top: 16px; font-size: .88rem; color: #e7ecf1; }
.svc-creds { margin-top: 14px; font-size: .9rem; color: var(--mist);
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.svc-creds b { color: #fff; font-weight: 600; }
.svc-guarantee { margin-top: 18px; font-size: .9rem; color: var(--mist); }

/* D · why grid */
.svc-why { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.why-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-tile { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.why-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-tile .wt-ic { color: var(--ember); margin-bottom: 13px; }
.why-tile h4 { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 1.06rem; color: var(--ink); margin-bottom: 5px; }
.why-tile p { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }

/* E · CTA band (dark, centered) */
.svc-cta .container { max-width: 700px; text-align: center; }
.svc-cta .eyebrow { justify-content: center; }
.svc-cta .section-lead { margin-left: auto; margin-right: auto; max-width: 56ch; }
.svc-cta .hero-actions { flex-direction: column; align-items: center; gap: 15px; }
.phone-cta { color: var(--mist); font-weight: 600; }
.phone-cta:hover { color: #fff; }

@media (max-width: 860px) { .svc-why { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .why-tiles { grid-template-columns: 1fr; } }

/* home Services section → compact teaser linking to the standalone page */
.svc-teaser { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.svc-teaser-list { display: grid; grid-template-columns: repeat(3, auto); gap: 14px 40px; list-style: none; padding: 0; }
.svc-teaser-list li { position: relative; padding-left: 26px; font-weight: 600; color: var(--ink); font-size: 1.04rem; }
.svc-teaser-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 13px; height: 13px;
  border-radius: 50%; background: var(--ember-tint); box-shadow: inset 0 0 0 2px var(--ember); }
@media (max-width: 760px) { .svc-teaser-list { grid-template-columns: 1fr 1fr; gap: 13px 22px; } }
@media (max-width: 460px) { .svc-teaser-list { grid-template-columns: 1fr; } }

/* active nav item (aria-current) + anchored service cards clear the header */
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { width: 100%; }
.site-header.scrolled .nav a[aria-current="page"] { color: #fff; }
.svc-card h3[id] { scroll-margin-top: 0; }

/* sticky mobile CTA — always one tap to the calculator (mobile only) */
.mobile-cta { display: none; }
@media (max-width: 768px) {
  .mobile-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); align-items: stretch;
    background: rgba(11,14,18,.92); backdrop-filter: saturate(1.3) blur(12px);
    border-top: 1px solid var(--night-line); box-shadow: 0 -8px 28px rgba(0,0,0,.4);
    transform: translateY(115%); transition: transform .3s var(--ease); }
  .mobile-cta.show { transform: translateY(0); }
  .mobile-cta .btn-primary { flex: 1; justify-content: center; padding: 13px 16px; }
  .mcta-call { flex-shrink: 0; width: 50px; display: grid; place-items: center; border-radius: 12px;
    color: #fff; background: rgba(255,255,255,.08); border: 1.5px solid var(--night-line); }
  .mcta-call:active { transform: scale(.96); }
  /* keep the footer clear of the fixed bar */
  .site-footer { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* generated nano-banana app-icon tiles replace the inline SVGs (services grid) */
.svc-icon { width: 86px; height: 86px; background: none; border-radius: 0; box-shadow: none; margin-bottom: 16px; }
.svc-icon img { width: 86px; height: 86px; object-fit: contain; filter: none; }

/* ============================================================
   MULTI-PAGE JOURNEY CONTINUITY — smooth in-page + cross-page
   so deep-links to the calculator glide and land clear of the header
   ============================================================ */
html { scroll-behavior: smooth; }
/* offset handled globally by html{scroll-padding-top} above — keep targets at 0 so they don't stack */
section[id], #calculator, #contact, #materials, #work, #why, #faq { scroll-margin-top: 0; }
/* cross-document navigations cross-fade like one app (supported browsers) */
@view-transition { navigation: auto; }

/* home "Explore the rest" teaser → the 3 sub-pages */
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.explore-card { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.explore-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.explore-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.explore-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.explore-card:hover .explore-img img { transform: scale(1.05); }
.explore-body { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.explore-h { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.explore-p { font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }
.explore-go { margin-top: 6px; font-weight: 600; font-size: .92rem; color: var(--ember-deep); }
@media (max-width: 820px) { .explore-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* "?" modals: price removed → bigger photo (still fits, no scroll); icons cropped cleaner */
.style-photo { height: clamp(168px, 27vh, 264px); }
.svc-icon img { border-radius: 16px; }

/* icons are now transparent-bg glyphs → render on the site's own ember tile (no canvas square) */
.svc-icon { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 18px; box-shadow: none;
  margin-bottom: 16px; background: radial-gradient(120% 120% at 30% 20%, var(--ember-tint2), var(--ember-tint)); }
.svc-icon img { width: 54px; height: 54px; object-fit: contain; filter: none; border-radius: 0; }

/* icons larger again — bigger tile + glyph fills more of it */
.svc-icon { width: 86px; height: 86px; }
.svc-icon img { width: 66px; height: 66px; }

/* icons keep their own beige raised platform (outer fill removed) → no CSS tile */
.svc-icon { width: 84px; height: 84px; background: none; box-shadow: none; border-radius: 0; }
.svc-icon img { width: 84px; height: 84px; object-fit: contain; filter: none; border-radius: 0; }

/* new logo mark (image) replaces the old house glyph in the brand */
.brand-mark { background: none; box-shadow: none; border-radius: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* logo + wordmark sit on one baseline; slimmer top bar */
.brand { gap: 9px; }
.brand-name { display: inline-flex; align-items: center; line-height: 1; }
/* nudge ONLY the header wordmark slightly lower than the logo — transform
   doesn't reflow, so the header bar's width and height are unchanged */
.site-header .brand-name { transform: translateY(3px); }

/* Netlify honeypot — never visible to humans */
.hp-field { display: none !important; }

/* mandatory-calculator warning state on the quote recap */
.quote-recap.recap-warn {
  border-color: var(--ember);
  background: var(--ember-tint);
  box-shadow: 0 0 0 3px var(--ember-tint2);
  animation: recapNudge .45s var(--ease);
}
.quote-recap.recap-warn .qr-value { color: var(--ember-deep); font-weight: 600; }
@keyframes recapNudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) { .quote-recap.recap-warn { animation: none; } }

/* discreet but findable team admin link in the footer base */
.footer-admin { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.55); text-decoration: none; font-size: .82rem; letter-spacing: .02em; transition: color .2s ease; }
.footer-admin svg { opacity: .85; }
.footer-admin:hover, .footer-admin:focus { color: var(--ember); }

/* address auto-measure block inside the (dark) calculator */
.addr-measure { margin-top: 14px; padding: 14px; border: 1px dashed rgba(239,106,46,.45); border-radius: 14px; background: rgba(239,106,46,.06); }
.addr-label { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 11px; font-family: "Switzer", system-ui, sans-serif; font-size: .92rem; font-weight: 500; line-height: 1.45; letter-spacing: 0; color: var(--mist, rgba(255,255,255,.74)); }
.addr-label svg { color: var(--ember); flex: none; margin-top: 3px; }
.addr-label strong { color: #fff; font-weight: 700; }
.addr-row { display: flex; gap: 8px; flex-wrap: wrap; }
.addr-row input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; font-size: 1rem; }
.addr-row input::placeholder { color: rgba(255,255,255,.4); }
.addr-row input:focus { outline: 2px solid var(--ember); border-color: transparent; }
.addr-row .btn-mini { flex: none; white-space: nowrap; }
.addr-result { margin: 10px 0 0; font-size: .9rem; line-height: 1.4; color: rgba(255,255,255,.78); }
.addr-result.ok { color: #8be0b0; }
.addr-result.warn { color: var(--ember-2, #ff8147); }

/* address auto-fill result card — the homeowner's footprint + stories up front */
.addr-result .ar-msg { margin: 0; color: rgba(255,255,255,.82); font-size: .88rem; line-height: 1.45; }
.addr-result.warn .ar-msg { color: var(--ember-2, #ff8147); }
.ar-found { display: flex; flex-direction: column; gap: 11px; }
.ar-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.ar-stat { flex: 1 1 130px; display: flex; flex-direction: column; gap: 3px; background: var(--night); border: 1.5px solid var(--ember); border-radius: 12px; padding: 12px 14px; box-shadow: 0 0 0 1px rgba(239,106,46,.25), 0 10px 24px rgba(0,0,0,.3); }
.ar-num { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 1.55rem; line-height: 1; color: var(--ember-2); font-variant-numeric: tabular-nums; }
.ar-unit { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.ar-src { margin: 0; font-size: .72rem; color: rgba(255,255,255,.5); }

/* brief highlight on the area + stories fields when filled from the address */
.just-filled { animation: justFilled 1.6s var(--ease); border-radius: 12px; }
@keyframes justFilled {
  0%   { box-shadow: 0 0 0 0 rgba(239,106,46,.55); }
  30%  { box-shadow: 0 0 0 4px rgba(239,106,46,.35); }
  100% { box-shadow: 0 0 0 0 rgba(239,106,46,0); }
}
@media (prefers-reduced-motion: reduce) { .just-filled { animation: none; } }
