/* Halden Builders — Sample Premium / General Building
   Charcoal ground, warm-white sections, brass accent. Instrument Serif / Instrument Sans / JetBrains Mono. */

:root {
  --bg: #1B1B1A;
  --surface: #F3EFE8;
  --ink: #F3EFE8;
  --ink-dark: #1B1B1A;
  --muted: rgba(243, 239, 232, .66);
  --muted-dark: rgba(27, 27, 26, .64);
  --line: rgba(243, 239, 232, .14);
  --line-dark: rgba(27, 27, 26, .14);
  --accent: #B8893A;
  --accent-deep: #8A6425; /* AA text colour for brass on warm white */
  --accent-ink: #1B1B1A;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 4px;
  --space-section: clamp(88px, 11vw, 160px);
  --banner-h: 56px;
  --topbar-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  /* claim-flow.css reads these */
  --paper: #F3EFE8;
  --claim-bar-height: var(--banner-h);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--banner-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.section--light :focus-visible { outline-color: var(--accent-deep); }

.wrap { width: min(1360px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.section { padding: var(--space-section) 0; }
.section--light { background: var(--surface); color: var(--ink-dark); }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 400; line-height: .98; letter-spacing: -.015em; font-size: clamp(42px, 5.6vw, 88px); }
.display em { font-style: italic; color: var(--accent); }
.section--light .display em { color: var(--accent-deep); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.section--light .eyebrow { color: var(--accent-deep); }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--muted); max-width: 54ch; margin-top: 22px; }
.section--light .lede { color: var(--muted-dark); }
.section-head { margin-bottom: clamp(40px, 5vw, 72px); display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.section-head__note { max-width: 32ch; color: var(--muted-dark); font-size: 15px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: transform .25s, background-color .25s, border-color .25s; }
.btn:hover { transform: translateY(-1px); }
.btn--brass { background: var(--accent); color: var(--accent-ink); }
.btn--brass:hover { background: #C9983F; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(27, 27, 26, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); }

/* ---------- Banner + top bar ---------- */
.sample-banner { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 9px 16px; font-size: 14px; min-height: var(--banner-h); }
.sample-banner > span { min-width: 0; }
.sample-banner [data-buy] { flex-shrink: 0; }
@media (max-width: 640px) { .sample-banner > span { font-size: 13px; line-height: 1.3; } }
.topbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--topbar-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-display); font-size: 26px; letter-spacing: -.01em; text-decoration: none; }
.brand span { color: var(--accent); margin-left: .18em; font-style: italic; }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav a { font-size: 14px; text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; padding: 0; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ico-x, .nav-toggle[aria-expanded="true"] .ico-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ico-x { display: block; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__phone { text-decoration: none; font-size: 15px; }

/* ---------- Hero + pinned build sequence ---------- */
.hero { position: relative; }
.hero__pin { position: relative; height: calc(100svh - var(--banner-h) - var(--topbar-h)); min-height: 620px; overflow: hidden; }
.hero__copy { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(32px, 7vh, 80px); width: min(600px, calc(44% - var(--gutter) - 24px)); }
.hero__copy .display { font-size: clamp(44px, 5.4vw, 92px); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__stage {
  position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; left: 0;
  /* Asymmetric start: the sequence bleeds in from the right; motion.js opens this to inset(0). */
  clip-path: inset(6vh 0 6vh 44% round 6px 0 0 6px);
  background: #121211;
}
.hero__poster, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__canvas { display: none; }
/* Without motion the stage stays a right-hand bleed, so centre the house in the visible slice. */
@media (min-width: 861px) { html:not(.js-motion) .hero__poster { transform: translateX(22%); } }
html.js-motion .hero__canvas { display: block; }
html.js-motion .hero__poster { visibility: hidden; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 27, 26, .35), transparent 30%, transparent 55%, rgba(27, 27, 26, .78)); pointer-events: none; }
.hero__hint { position: absolute; right: var(--gutter); bottom: 28px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: 0; }
html.js-motion .hero__hint { opacity: 1; transition: opacity .4s; }

.readout { position: absolute; left: var(--gutter); bottom: clamp(28px, 6vh, 64px); width: min(460px, calc(100% - 2 * var(--gutter))); opacity: 0; pointer-events: none; }
.readout__row { display: flex; align-items: baseline; gap: 18px; }
.readout__stage { font-size: 14px; color: var(--muted); }
.readout__stage b { font-size: 44px; color: var(--accent); font-weight: 500; line-height: 1; }
.readout__label { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.01em; }
.readout__note { margin-top: 10px; color: var(--muted); font-size: 16px; min-height: 1.6em; }
.readout__week { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.readout__week b { font-size: 28px; color: var(--ink); font-weight: 500; }
.readout__track { margin-top: 10px; height: 2px; background: var(--line); overflow: hidden; }
.readout__track i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Static fallback: visible without motion, for reduced-motion users and phones */
.stages-static { display: none; padding: 48px var(--gutter) 24px; }
html:not(.js-motion) .stages-static { display: block; }
/* Without motion the static stage list below carries the same stage copy, so the readout is not needed. */
html:not(.js-motion) .readout { display: none; }
.stages-static__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; counter-reset: stage; }
.stages-static__list li { border-top: 1px solid var(--line); padding-top: 12px; }
.stages-static__list li b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.stages-static__list li span { display: block; color: var(--muted); font-size: 14px; }
.stages-static__list li small { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(20px, 3vw, 48px); padding: 20px var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.trust b { color: var(--ink); margin-right: 6px; font-weight: 600; }

/* ---------- Intro word reveal ---------- */
.intro__statement { font-family: var(--font-display); font-size: clamp(30px, 4.3vw, 66px); line-height: 1.12; letter-spacing: -.01em; max-width: 22ch; }
.word-reveal .w { opacity: .18; transition: none; }
html:not(.js-motion) .word-reveal .w { opacity: 1; }
.intro__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 80px); }
.intro__facts b { display: block; font-size: clamp(36px, 4vw, 56px); color: var(--accent); line-height: 1; }
.intro__facts span { font-size: 14px; color: var(--muted); }
.intro__note { margin-top: 18px; font-size: 12px; color: var(--muted); opacity: .75; }

/* ---------- Services ---------- */
.service-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.service { position: relative; background: var(--bg); color: var(--ink); padding: 28px 24px 0; min-height: 440px; display: flex; flex-direction: column; overflow: hidden; }
.service__num { color: var(--accent); font-size: 12px; }
.service h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; margin-top: 16px; }
.service p { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 30ch; }
.service img { margin-top: auto; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: translateY(18px); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.service:hover img { transform: translateY(0); }

/* ---------- Process timeline ---------- */
.process__grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.process__intro { position: sticky; top: calc(var(--banner-h) + 40px); }
.timeline { position: relative; padding-left: 36px; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline::after { background: var(--accent); transform: scaleY(var(--rail, 0)); transform-origin: top; }
html:not(.js-motion) .timeline::after { transform: none; }
.step { position: relative; padding: 0 0 clamp(36px, 5vw, 64px); }
.step::before { content: ''; position: absolute; left: -36px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: border-color .3s, background-color .3s, transform .3s; }
.step.is-on::before { border-color: var(--accent); background: var(--accent); transform: scale(1.1); }
.step__week { font-size: 12px; color: var(--accent); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); margin-top: 6px; opacity: .5; transition: opacity .35s; }
.step p { color: var(--muted); max-width: 48ch; margin-top: 8px; opacity: .5; transition: opacity .35s; }
.step.is-on h3, .step.is-on p, html:not(.js-motion) .step h3, html:not(.js-motion) .step p { opacity: 1; }

/* ---------- Projects accordion ---------- */
.accordion { display: flex; gap: 8px; height: clamp(420px, 56vw, 600px); }
.panel { position: relative; flex: 1; min-width: 0; border: 0; padding: 0; overflow: hidden; text-align: left; color: var(--ink); background: var(--bg); border-radius: var(--radius); transition: flex .65s cubic-bezier(.2, .7, .2, 1); }
.panel.is-active { flex: 3; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.panel.is-active img { transform: scale(1.03); }
.panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 27, 26, .25), transparent 35%, rgba(27, 27, 26, .82)); }
.panel__index { position: absolute; z-index: 1; top: 22px; left: 22px; font-size: 12px; color: var(--accent); }
.panel__copy { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 24px; display: flex; flex-direction: column; gap: 6px; }
.panel__copy strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.8vw, 44px); line-height: 1.05; letter-spacing: -.01em; }
.panel:not(.is-active) .panel__copy strong { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(18px, 1.6vw, 24px); }
.panel__copy span { font-size: 14px; color: var(--muted); opacity: 0; transform: translateY(8px); transition: opacity .4s .15s, transform .4s .15s; }
.panel.is-active .panel__copy span { opacity: 1; transform: none; }
.panel:focus-visible { outline-offset: -4px; }

/* ---------- Before / after ---------- */
.compare__frame { position: relative; height: min(64vw, 720px); min-height: 360px; overflow: hidden; background: #121211; border-radius: var(--radius); user-select: none; touch-action: none; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__tag { position: absolute; z-index: 2; bottom: 20px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; background: rgba(27, 27, 26, .72); color: var(--ink); }
.compare__tag--before { left: 20px; }
.compare__tag--after { right: 20px; }
.compare__handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--surface); transform: translateX(-1px); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.compare__handle span::before { content: '⇔'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent-ink); font-size: 22px; }
.compare__range { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible { opacity: 1; appearance: none; background: transparent; outline: 3px solid var(--accent); outline-offset: -3px; }

/* ---------- Estimator ---------- */
.estimate__grid, .finance__grid, .contact__grid, .faq__grid, .about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.est { margin-top: 36px; display: grid; gap: 28px; }
.est__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.est__group legend, .est__group > label, .finance__card > label { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-bottom: 12px; padding: 0; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; transition: background-color .25s, color .25s, border-color .25s; }
.chips input:checked + span { background: var(--ink-dark); color: var(--ink); border-color: var(--ink-dark); }
.chips input:focus-visible + span { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
input[type=range] { width: 100%; accent-color: var(--accent-deep); height: 32px; margin: 0; }
.section:not(.section--light) input[type=range] { accent-color: var(--accent); }
.est__result { position: sticky; top: calc(var(--banner-h) + 32px); background: var(--bg); color: var(--ink); padding: clamp(28px, 3vw, 44px); border-radius: var(--radius); }
.est__result .eyebrow { color: var(--accent); }
.est__price { font-size: clamp(34px, 3.6vw, 56px); margin-top: 6px; }
.est__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.est__meta dt { font-size: 12px; color: var(--muted); }
.est__meta dd { margin: 4px 0 0; font-size: 15px; }
.est__note { font-size: 13px; color: var(--muted); margin-top: 18px; }

.est__sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.est__meta--two { grid-template-columns: 1fr 1fr; }
.est__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.est__included { display: grid; gap: 8px; margin-bottom: 28px; }
.est__included li { padding-left: 18px; position: relative; font-size: 15px; color: var(--muted); }
.est__included li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--accent); }
.inline-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.section--light .inline-link { color: var(--accent-deep); }
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { color: var(--accent); }
.faq__more { padding-top: 20px; }
.finance__card .about__list { margin-top: 12px; }
.finance__card .about__list li { color: var(--muted); }
.finance__card .about__list b { display: block; margin-bottom: 2px; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.review { background: #232322; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; min-height: 280px; display: flex; }
.review:nth-child(2), .review:nth-child(4) { margin-top: 56px; }
.review blockquote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.review p { font-family: var(--font-display); font-size: clamp(22px, 1.8vw, 28px); line-height: 1.22; }
.review footer { display: grid; gap: 2px; font-size: 14px; }
.review footer span { color: var(--accent); font-size: 12px; }

/* ---------- Financing ---------- */
.finance__card { background: var(--bg); color: var(--ink); padding: clamp(28px, 3vw, 44px); border-radius: var(--radius); }
.finance__monthly { margin-top: 28px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.finance__monthly b { font-family: var(--font-display); font-size: clamp(48px, 5vw, 80px); font-weight: 400; color: var(--accent); line-height: 1; }
.finance__monthly span { color: var(--muted); font-size: 14px; }

/* ---------- About ---------- */
.about__photo img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about p { color: var(--muted); margin-top: 22px; max-width: 52ch; }
.about__list { margin-top: 28px; display: grid; gap: 12px; }
.about__list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.about__list b { color: var(--ink); margin-right: 8px; }

/* ---------- Guides ---------- */
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.guide { background: var(--bg); color: var(--ink); padding: 28px 26px 30px; min-height: 300px; display: flex; flex-direction: column; gap: 12px; }
.guide .mono { color: var(--accent); font-size: 12px; }
.guide h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.08; }
.guide p { color: var(--muted); font-size: 15px; }
.guide a { margin-top: auto; align-self: start; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent); font-family: var(--font-mono); font-size: 24px; transition: transform .3s; }
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { color: var(--muted); padding: 0 0 24px; max-width: 60ch; }
.section--light .faq__list details p { color: var(--muted-dark); }

/* ---------- Service area ---------- */
.area .display { font-size: clamp(30px, 3.6vw, 56px); }
.area__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.area__list li { padding: 10px 16px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 13px; }

/* ---------- Forms ---------- */
.contact__phone { margin-top: 32px; font-size: 15px; color: var(--muted); }
.contact__phone a { color: var(--ink); text-decoration: none; font-size: clamp(26px, 2.6vw, 36px); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field span { font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #232322; color: var(--ink); font: inherit; }
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #E07A5F; }
.honey { position: absolute; left: -9999px; }
.form__status { min-height: 1.5em; font-size: 15px; }
.form__status.is-error { color: #F0A58F; }
.form__status.is-ok { color: #CFE3B5; }
.form__note { font-size: 13px; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: start; font-size: 14px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent-deep); }

/* Claim dialog: light card so the brass button and dark inputs read correctly */
#buy-dialog { color: var(--ink-dark); }
#buy-dialog .claim-card { color: var(--ink-dark); }
#buy-dialog h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 0 0 10px; padding-right: 40px; }
#buy-dialog .claim-card > p { color: var(--muted-dark); }
#buy-dialog .field input { background: #fff; color: var(--ink-dark); border-color: var(--line-dark); }
#buy-dialog form { display: grid; gap: 14px; }
#buy-dialog .form__note { color: var(--muted-dark); }
#buy-dialog .form__status.is-error { color: #9A3B22; }
#buy-dialog .form__status.is-ok { color: #2F6B2A; }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 26px; line-height: 1; }
#buy-dialog::backdrop { background: rgba(10, 10, 9, .78); }

/* ---------- Footer + call bar ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 120px; color: var(--muted); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; align-items: start; }
.footer__grid p { margin-top: 10px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--ink); }
.footer__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); max-width: 70ch; }

.callbar { display: none; }

/* ---------- Reveals (motion.js toggles) ---------- */
html.js-motion [data-reveal] { opacity: 0; transform: translateY(26px); }
html.js-motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .review:nth-child(2), .review:nth-child(4) { margin-top: 0; }
  .guide-list { grid-template-columns: 1fr; }
  .guide { min-height: 0; }
}

@media (max-width: 860px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.is-open { display: flex; }
  .nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav-toggle { display: inline-flex; }
  .hero__copy { width: min(560px, calc(100% - 2 * var(--gutter))); }
  .hero__stage { clip-path: inset(0 0 48% 0); }
  .estimate__grid, .finance__grid, .contact__grid, .faq__grid, .about__grid, .process__grid { grid-template-columns: 1fr; gap: 40px; }
  .process__intro, .est__result { position: static; }
  .accordion { flex-direction: column; height: auto; }
  .panel { height: 92px; flex: none; }
  .panel.is-active { height: 320px; flex: none; }
  .panel:not(.is-active) .panel__copy strong { writing-mode: initial; transform: none; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .topbar__phone { display: none; }
  .hero__pin { height: auto; min-height: 0; overflow: visible; }
  .hero__copy { position: static; width: auto; padding: 40px var(--gutter) 24px; }
  .hero__copy .display { font-size: clamp(40px, 11vw, 56px); }
  .hero__stage { position: relative; height: 62vw; min-height: 240px; clip-path: none; margin: 0 var(--gutter); border-radius: var(--radius); overflow: hidden; }
  .hero__canvas, .hero__hint { display: none !important; }
  .hero__poster { visibility: visible !important; }
  .readout { display: none; }
  .stages-static { display: block; }
  .service-list { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service img { transform: none; }
  .review-grid { grid-template-columns: 1fr; }
  .review { min-height: 0; }
  .intro__facts { grid-template-columns: 1fr 1fr; }
  .callbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(27, 27, 26, .94); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .callbar a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 600; }
  .callbar__phone { border: 1px solid var(--line); }
  .callbar__cta { background: var(--accent); color: var(--accent-ink); }
  .footer { padding-bottom: 140px; }
}


/* ---------- Sub pages (no pinned sequence: one strong image, reveals, count-ups, hover) ---------- */
.breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; color: var(--line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--accent); }
.page-hero { padding: clamp(48px, 7vw, 96px) 0; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.page-hero .display { font-size: clamp(42px, 5.8vw, 92px); }
.page-hero__media { position: relative; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.page-hero__media figcaption { position: absolute; left: 16px; bottom: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; background: rgba(27, 27, 26, .72); color: var(--ink); }
.page-hero--wide .page-hero__media { margin-top: clamp(32px, 5vw, 64px); }
.page-hero--wide .page-hero__media img { aspect-ratio: 21 / 9; }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.page-hero__facts div b { display: block; font-size: 22px; color: var(--accent); }
.page-hero__facts div span { font-size: 13px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.two-col .display { font-size: clamp(34px, 3.8vw, 60px); }
.section--light .two-col .lede { color: var(--muted-dark); }
.prose p { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.section--light .prose p { color: var(--muted-dark); }
.prose p:first-child { margin-top: 0; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.spec-list li { display: flex; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.section--light .spec-list li { border-color: var(--line-dark); }
.spec-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.section--light .spec-list svg { color: var(--accent-deep); }

.steps { counter-reset: step; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.section--light .steps li { border-color: var(--line-dark); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 6px; }
.section--light .steps li::before { color: var(--accent-deep); }
.steps h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; }
.steps p { color: var(--muted); margin-top: 6px; max-width: 54ch; font-size: 15px; }
.section--light .steps p { color: var(--muted-dark); }
.steps .mono { font-size: 12px; color: var(--accent); margin-left: 10px; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--light .stat-band { border-color: var(--line-dark); }
.stat-band b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.4vw, 52px); line-height: 1; color: var(--accent); }
.section--light .stat-band b { color: var(--accent-deep); }
.stat-band span { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }
.section--light .stat-band span { color: var(--muted-dark); }

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile-grid--two { grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; display: block; text-decoration: none; background: var(--bg); color: var(--ink); overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile__copy { padding: 18px 20px 24px; display: grid; gap: 4px; }
.tile__copy .mono { font-size: 12px; color: var(--accent); }
.tile__copy strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; }
.tile__copy span { font-size: 14px; color: var(--muted); }

.service-rows { display: grid; gap: 2px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; background: var(--bg); color: var(--ink); padding: clamp(24px, 3vw, 48px); text-decoration: none; }
.service-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.service-row:hover img { transform: scale(1.03); }
.service-row .mono { font-size: 12px; color: var(--accent); }
.service-row h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 54px); line-height: 1; margin-top: 10px; }
.service-row p { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.service-row__meta { display: flex; gap: 28px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.service-row__meta b { display: block; color: var(--ink); font-family: var(--font-mono); font-size: 15px; }
.service-row__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--accent); font-weight: 600; }
.service-row__link svg { width: 18px; height: 18px; transition: transform .3s; }
.service-row:hover .service-row__link svg { transform: translateX(4px); }

.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band .display { font-size: clamp(32px, 3.6vw, 56px); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.section--light .btn--ghost { color: var(--ink-dark); border-color: var(--line-dark); background: transparent; backdrop-filter: none; }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; }
.spec-grid div { padding-top: 14px; border-top: 1px solid var(--line); }
.section--light .spec-grid div { border-color: var(--line-dark); }
.spec-grid dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.section--light .spec-grid dt { color: var(--accent-deep); }
.spec-grid dd { margin: 8px 0 0; font-size: 16px; }
.materials li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.section--light .materials li { border-color: var(--line-dark); }
.materials li span { color: var(--muted); }
.section--light .materials li span { color: var(--muted-dark); }

.stage-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.stage-strip figure { background: var(--bg); color: var(--ink); }
.stage-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stage-strip figcaption { padding: 14px 16px 18px; font-size: 14px; color: var(--muted); }
.stage-strip figcaption b { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 4px; }

.pull-quote { border-left: 2px solid var(--accent); padding: 8px 0 8px 28px; margin: 40px 0; }
.pull-quote p { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 42px); line-height: 1.15; }
.pull-quote footer { margin-top: 14px; font-size: 14px; color: var(--muted); }
.section--light .pull-quote footer { color: var(--muted-dark); }
.pull-quote footer .mono { color: var(--accent); font-size: 12px; margin-left: 10px; }
.section--light .pull-quote footer .mono { color: var(--accent-deep); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.pager a { display: grid; gap: 6px; padding: 28px 24px; background: var(--bg); color: var(--ink); text-decoration: none; }
.pager a:last-child { text-align: right; }
.pager .mono { font-size: 12px; color: var(--accent); }
.pager strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; }

/* Journal */
.article { max-width: 68ch; }
.article__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.article h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; margin-top: clamp(40px, 5vw, 64px); }
.article p { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.article ul, .article ol { margin-top: 18px; padding-left: 22px; list-style: disc; color: var(--muted); }
.article ol { list-style: decimal; }
.article li { margin-top: 8px; font-size: 17px; line-height: 1.6; }
.article li b, .article p b { color: var(--ink); font-weight: 600; }
.article table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 15px; }
.article th, .article td { text-align: left; padding: 12px 10px 12px 0; border-top: 1px solid var(--line); }
.article th { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.article td.mono { white-space: nowrap; }
.article__hero img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 40px 0; }
.related { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 0 0 16px; }
.related ul { display: grid; gap: 10px; }
.related a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.guide-list--page { grid-template-columns: repeat(3, 1fr); }
.guide-list a.guide { text-decoration: none; }
.guide-list a.guide:hover h3 { color: var(--accent); }
.guide-list a.guide .guide__link { margin-top: auto; color: var(--accent); border-bottom: 1px solid currentColor; align-self: start; padding-bottom: 2px; }

/* About */
.crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.crew li { background: var(--bg); color: var(--ink); padding: 24px 22px 26px; }
.crew li b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.05; }
.crew li .mono { display: block; font-size: 12px; color: var(--accent); margin: 8px 0 10px; }
.crew li p { font-size: 14px; color: var(--muted); }
.cert-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.cert-band li { background: var(--bg); color: var(--ink); padding: 22px 20px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; }
.cert-band li b { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.cert-band li span { font-size: 13px; color: var(--muted); }

/* FAQ page groups */
.faq-groups { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq-group + .faq-group { margin-top: clamp(40px, 5vw, 72px); }
.faq-group h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 42px); margin-bottom: 8px; }
.faq-jump { position: sticky; top: calc(var(--banner-h) + 24px); display: grid; gap: 8px; }
.faq-jump a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.faq-jump a:hover { color: var(--accent); }

/* Reviews page */
.rating__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.rating__score { font-family: var(--font-display); font-size: clamp(80px, 12vw, 160px); line-height: .9; color: var(--accent); }
.rating__score small { font-size: .35em; color: var(--muted); margin-left: 8px; }
.rating__stars { display: flex; gap: 2px; margin-top: 12px; color: var(--accent); }
.rating__stars svg { width: 22px; height: 22px; }
.rating__bars { display: grid; gap: 10px; }
.rating__bars li { display: grid; grid-template-columns: 56px 1fr 48px; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }
.rating__bars i { display: block; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.rating__bars i::after { content: ''; display: block; height: 100%; width: var(--w); background: var(--accent); }
.review-grid--nine { grid-template-columns: repeat(3, 1fr); }
.review-grid--nine .review:nth-child(n) { margin-top: 0; }
.review-grid--nine .review { min-height: 0; }

/* Financing page */
.terms { width: 100%; border-collapse: collapse; font-size: 15px; }
.terms th, .terms td { text-align: left; padding: 14px 12px 14px 0; border-top: 1px solid var(--line-dark); }
.terms th { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); font-weight: 500; }
.terms td.mono { white-space: nowrap; }

/* Contact page */
.contact-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.contact-details div { padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.contact-details dt { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.contact-details dt svg { width: 16px; height: 16px; }
.contact-details dd { margin: 8px 0 0; color: var(--muted); }
.contact-details dd a { color: var(--ink); text-decoration: none; }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; background: #232322; }
.map-note { font-size: 13px; color: var(--muted-dark); margin-top: 10px; }
.area__list--dark li { border-color: var(--line); }

@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-strip { grid-template-columns: repeat(2, 1fr); }
  .cert-band { grid-template-columns: repeat(3, 1fr); }
  .review-grid--nine { grid-template-columns: repeat(2, 1fr); }
  .faq-groups { grid-template-columns: 1fr; }
  .faq-jump { position: static; display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .faq-jump a { border: 0; }
  .guide-list--page { grid-template-columns: 1fr; }
  .crew { grid-template-columns: 1fr; }
}

/* Sub-page grids collapse on phones (kept after the component rules so the cascade wins) */
@media (max-width: 767px) {
  .page-hero__grid, .two-col, .spec-grid, .crew, .rating__grid, .contact-details { grid-template-columns: 1fr; }
  .tile-grid, .stage-strip, .review-grid--nine, .cert-band, .faq-groups { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row img { order: -1; }
  .pager { grid-template-columns: 1fr; }
  .page-hero .display { font-size: clamp(38px, 10vw, 54px); }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .pager a:last-child { text-align: left; }
  .spec-list { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js-motion [data-reveal] { opacity: 1; transform: none; }
}

/* Wide comparison tables scroll inside the article on phones instead of pushing the page sideways. */
@media (max-width: 640px) {
  .article table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Launch audit: article body rules must not restyle the breadcrumb, meta line or pull quote inside an article. */
.article .breadcrumb ol { list-style: none; padding-left: 0; margin-top: 0; color: inherit; }
.article .breadcrumb li { margin-top: 0; font-size: inherit; line-height: inherit; }
.article .article__meta { margin-top: 0; font-size: 12px; line-height: 1.5; color: var(--accent); }
.article .pull-quote p { margin-top: 0; font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 42px); line-height: 1.15; color: var(--ink); }

/* Launch audit polish: the sample-figures note reads at full strength. */
.intro__note { opacity: 1; }

/* The finance card stays dark inside the light section, so its eyebrow uses the brighter brass. */
.finance__card .eyebrow { color: var(--accent); }
