/* Remodeling For Less: brand tokens from the September 2026 brand guide (brand/remodeling-for-less-brand-guide.pdf) */
:root {
  --black: #111111;
  --blue: #0057B8;
  --white: #FFFFFF;
  --grey: #6B7280;
  --tint: #F2F3F5;
  --rule: rgba(107, 114, 128, .32);
  --rule-strong: rgba(17, 17, 17, .85);

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --section: clamp(72px, 9vw, 128px);
  --header-h: 88px;
  --bar-h: 64px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 16px/1.65 var(--sans);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 1.3rem + 3.6vw, 4.4rem); letter-spacing: -.012em; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: var(--radius); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--black); color: var(--white); padding: 12px 18px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Draft placeholders (remove once client facts are supplied) ---------- */
.needs {
  color: var(--blue);
  text-decoration: underline dashed rgba(0, 87, 184, .55);
  text-underline-offset: 4px;
}
.needs-row { position: relative; }
.needs-row::after,
.needs-photo::after {
  content: "Needs client info";
  position: absolute; top: 10px; right: 10px;
  font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); background: var(--white);
  border: 1px dashed var(--blue); padding: 5px 7px;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 700 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--black); }
.btn-inverse { background: var(--white); color: var(--black); }
.btn-inverse:hover { background: var(--black); color: var(--white); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn:active { transform: translateY(1px); }

.text-link {
  font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 3px;
  transition: background-size .3s var(--ease);
}
.text-link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease), border-color .2s linear;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
/* Clear space around the wordmark: x = cap height of "F" in FOR LESS (about 3% of logo width) */
.brand { flex: none; padding: 9px; margin: -9px; }
.brand img { width: 280px; height: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: 10px 0; text-decoration: none;
  font-size: 15px; position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a[aria-current]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.phone-link { font-weight: 700; font-size: 15px; white-space: nowrap; }

.frame-note { text-align: center; font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); color: var(--grey); }
.frame-note small { display: block; margin-top: 8px; font: 13px/1.5 var(--sans); }
.compare figcaption {
  margin-top: 12px; font-size: 13px; color: var(--grey);
  padding-top: 12px; border-top: 1px solid var(--rule);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head h2 { margin-inline: auto; max-width: 24ch; }
.section-head p { margin-top: 18px; color: var(--grey); font-size: 1.06rem; }
.section-head p .needs { color: var(--blue); }

/* ---------- Scope ---------- */
.scope { padding-top: 0; }
.prose { max-width: 680px; margin: 0 auto; }
.prose p + p { margin-top: 1.1em; }
.prose p { font-size: 1.06rem; }

.scope-table-wrap { margin-top: clamp(40px, 5vw, 64px); }
.scope-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.scope-table caption {
  caption-side: top; text-align: left; padding-bottom: 14px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey);
}
.scope-table .corner { width: 21%; }
.scope-table thead th { padding: 0; text-align: left; vertical-align: bottom; }
.scope-table thead button {
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-top: 1.5px solid var(--black);
  padding: 20px 20px 18px;
  font: 400 clamp(1.3rem, 1.1rem + .8vw, 1.85rem)/1.1 var(--serif);
  position: relative;
  transition: color .2s, background-color .25s var(--ease);
}
.scope-table thead button::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 4px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.scope-table thead button:hover { color: var(--blue); }
.scope-table thead button[aria-pressed="true"] { color: var(--blue); }
.scope-table thead button[aria-pressed="true"]::after { transform: scaleX(1); }

.scope-table tbody th, .scope-table tbody td {
  text-align: left; vertical-align: top;
  padding: 18px 20px; border-top: 1px solid var(--rule);
}
.scope-table tbody th {
  font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); padding-left: 0; padding-top: 21px;
}
.scope-table tbody tr:last-child > * { border-bottom: 1.5px solid var(--black); }
.scope-table td { transition: background-color .3s var(--ease); }
.scope-table tbody tr:last-child td { font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; }

/* Column highlight once a visitor has picked a level */
.scope-table[data-chosen="refresh"] [data-col="refresh"],
.scope-table[data-chosen="reconfigure"] [data-col="reconfigure"],
.scope-table[data-chosen="full"] [data-col="full"] { background: var(--tint); }

.scope-cta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px 24px; margin-top: 36px; text-align: center; font-size: 1.06rem;
}

.callout {
  margin: clamp(56px, 6vw, 80px) auto 0; max-width: 960px;
  border-left: 4px solid var(--blue);
  padding: 8px 0 8px clamp(20px, 3vw, 40px);
}
.callout h3 { margin-bottom: 22px; }
.decide { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.decide > div { padding: 18px 0; border-top: 1px solid var(--rule); }
.decide dt { font-family: var(--serif); font-size: 1.12rem; margin-bottom: 6px; }
.decide dd { margin: 0; color: var(--grey); }

/* ---------- Before / after ---------- */
.compare { margin: 0; }
.compare-stage {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--tint); user-select: none; touch-action: pan-y;
}
.compare-pane { position: absolute; inset: 0; display: grid; place-items: center; }
.compare-before { background: var(--tint); }
.compare-after {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--rule);
  clip-path: inset(0 0 0 var(--pos));
}
.compare-pane .frame-note { position: absolute; top: 50%; width: 36%; transform: translate(-50%, -50%); }
.compare-before .frame-note { left: 25%; }
.compare-after .frame-note { left: 75%; }
.compare-tag {
  position: absolute; bottom: 18px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  background: var(--black); color: var(--white); padding: 7px 10px;
}
.compare-before .compare-tag { left: 18px; }
.compare-after .compare-tag { right: 18px; }
.compare-after.needs-photo::after { top: 10px; right: 10px; }
.compare-before.needs-photo::after { right: auto; left: 10px; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--black); pointer-events: none;
}
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 48px; height: 48px; transform: translate(-50%, -50%);
  background: var(--white); border: 2px solid var(--black); border-radius: 50%;
  box-shadow: 0 2px 10px rgba(17,17,17,.18);
}
/* Two chevrons inside the handle circle */
.compare-handle::before,
.compare-stage::after {
  content: ""; position: absolute; top: 50%; z-index: 2;
  width: 8px; height: 8px; margin-top: -5px;
  border-top: 2px solid var(--black); border-right: 2px solid var(--black);
  pointer-events: none;
}
.compare-handle::before { left: 50%; margin-left: 2px; transform: rotate(45deg); }
.compare-stage::after { left: var(--pos); margin-left: -12px; transform: rotate(-135deg); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare-stage:focus-within .compare-handle::after { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Planning ---------- */
.planning { background: var(--tint); }
.plan-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr;
  gap: 0 clamp(32px, 5vw, 80px);
}
.plan-grid li {
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto 1fr; column-gap: 20px;
  padding: 32px 0; border-top: 1.5px solid var(--black);
}
.plan-num {
  grid-row: 1 / span 2;
  font: 400 3rem/0.9 var(--serif); color: var(--blue);
}
.plan-grid h3 { margin-bottom: 12px; }
.plan-grid p { color: var(--black); }

.callout-quiet { border-left-color: var(--black); max-width: 780px; }
.callout-quiet h3 { margin-bottom: 10px; }
.callout-quiet p { color: var(--grey); font-size: 1.06rem; }

/* ---------- Contact (the single strong blue panel) ---------- */
.contact { background: var(--blue); color: var(--white); }
.contact .section-head p { color: var(--white); }
.contact .needs, .contact .section-head p .needs { color: var(--white); text-decoration-color: rgba(255,255,255,.7); }
.contact :focus-visible { outline-color: var(--white); }

.brief {
  max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 15px; }
.req { font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-left: 6px; opacity: .85; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 13px 15px;
  background: var(--white); color: var(--black);
  border: 1.5px solid var(--white); border-radius: var(--radius);
  font-size: 16px;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--black); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.field textarea::placeholder { color: var(--grey); }

.choice { border: 0; margin: 0; padding: 0; }
.choice legend { padding: 0; margin-bottom: 10px; }
.choice-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.choice-row label { position: relative; display: block; cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-row span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; height: 100%; padding: 8px 10px;
  border: 1.5px solid rgba(255,255,255,.65); border-radius: var(--radius);
  font-size: 15px; transition: background-color .2s, color .2s, border-color .2s;
}
.choice-row label:hover span { border-color: var(--white); }
.choice-row input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); font-weight: 700; }
.choice-row input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 3px; }

.form-hint { font-size: 14px; margin-top: -8px; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; justify-content: center; margin-top: 8px; }
.form-status { font-weight: 700; min-height: 1.5em; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--rule); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 240px; height: auto; }
.footer-brand p { margin-top: 16px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--grey); }
.footer-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.footer-base { margin-top: 56px; padding-block: 22px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--grey); }

/* ---------- Mobile quick-action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal on scroll (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .plan-grid .reveal:nth-child(2) { transition-delay: .08s; }
  .js .plan-grid .reveal:nth-child(3) { transition-delay: .16s; }
  .js .plan-grid .reveal:nth-child(4) { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Laptop / tablet landscape ---------- */
@media (max-width: 1120px) {
  .phone-link { display: none; }
  .brand img { width: 260px; }
}

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; }
  .phone-link { display: inline; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .decide { grid-template-columns: 1fr; }
}

/* ---------- Phones: app-style layout ---------- */
@media (max-width: 767px) {
  :root { --header-h: 72px; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .site-header { position: relative; }
  .header-inner { justify-content: center; }
  .header-actions { display: none; }
  .brand img { width: 240px; }



  /* Comparison table becomes a tabbed view: one level at a time */
  .scope-table, .scope-table tbody, .scope-table tr { display: block; }
  .scope-table caption { display: block; }
  .scope-table thead tr { display: grid; grid-template-columns: repeat(3, 1fr); }
  .scope-table .corner { display: none; }
  .scope-table thead th { display: block; }
  .scope-table thead button { padding: 14px 8px 12px; font-size: 1.08rem; text-align: center; border-top-width: 1.5px; height: 100%; }
  .scope-table thead button[aria-pressed="false"] { color: var(--grey); }
  .scope-table tbody th, .scope-table tbody td { display: block; padding-inline: 0; }
  .scope-table tbody th { padding-bottom: 4px; border-top: 1px solid var(--rule); }
  .scope-table tbody td { border-top: 0; padding-top: 0; padding-bottom: 18px; }
  .scope-table tbody tr:last-child > * { border-bottom: 0; }
  .scope-table tbody tr:last-child td { border-bottom: 1.5px solid var(--black); }
  .scope-table[data-chosen] td { background: none !important; }
  .scope-table[data-active="refresh"] td:not([data-col="refresh"]),
  .scope-table[data-active="reconfigure"] td:not([data-col="reconfigure"]),
  .scope-table[data-active="full"] td:not([data-col="full"]) { display: none; }
  .scope-table[data-active="refresh"] thead [data-pick="refresh"],
  .scope-table[data-active="reconfigure"] thead [data-pick="reconfigure"],
  .scope-table[data-active="full"] thead [data-pick="full"] { color: var(--blue); }
  .scope-table[data-active="refresh"] thead [data-pick="refresh"]::after,
  .scope-table[data-active="reconfigure"] thead [data-pick="reconfigure"]::after,
  .scope-table[data-active="full"] thead [data-pick="full"]::after { transform: scaleX(1); }
  .scope-cta { flex-direction: column; }
  .scope-cta .btn { width: 100%; }

  .compare-stage { aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); }
  .compare-pane .frame-note { font-size: 1rem; }

  .plan-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .plan-grid li { grid-template-columns: 40px 1fr; column-gap: 14px; padding: 26px 0; }
  .plan-num { font-size: 2.2rem; }

  .brief { grid-template-columns: 1fr; gap: 22px; }
  .choice-row { grid-template-columns: 1fr 1fr; }
  .form-foot .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-base { margin-top: 40px; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(3, 1fr) 1.45fr;
    height: calc(var(--bar-h) + env(safe-area-inset-bottom));
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: var(--white); border-top: 1px solid var(--rule);
    box-shadow: 0 -6px 20px rgba(17,17,17,.06);
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 48px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .02em;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-bar a:active { background: var(--tint); }
  .mobile-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
  .mobile-bar .mobile-bar-primary { background: var(--blue); color: var(--white); }
  .mobile-bar .mobile-bar-primary:active { background: var(--black); }
}

@media (max-width: 359px) {
  .choice-row { grid-template-columns: 1fr; }
  .mobile-bar a { font-size: 11px; }
}

/* =====================================================================
   v3: interactive hero, scroll story, parallax band, motion system
   ===================================================================== */

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* ---------- Split headline motion ---------- */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-split] .split-word > span { transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
  .js [data-split].is-in .split-word > span { transform: none; }
}

/* ---------- Magnetic buttons ---------- */
[data-magnetic] { will-change: transform; }

/* ---------- Kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--grey);
  margin-bottom: 18px;
}
.kicker .needs { letter-spacing: .12em; }
.kicker-sep { width: 28px; height: 1px; background: var(--grey); }

/* ---------- HERO: interactive room changer ---------- */
.hero { position: relative; }
.stage { position: relative; }
.stage-media {
  --pos: 50%;
  position: relative; overflow: hidden;
  height: clamp(640px, calc(100svh - var(--header-h)), 1040px);
  background: var(--tint);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer img, img.layer {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transform: scale(1.04) translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .8s var(--ease);
}
.layer-after { clip-path: inset(0 0 0 var(--pos)); }
.layer-after img { position: absolute; inset: 0; }
.layer-after img.is-leaving { opacity: 0; transition: opacity .45s var(--ease), transform .5s var(--ease); }
.layer-after img.is-entering { animation: after-in .55s var(--ease) both; }
@keyframes after-in { from { opacity: 0; transform: scale(1.09); } to { opacity: 1; } }

.wipe { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 4; pointer-events: none; transition: opacity .3s var(--ease); }
.stage-media.is-fade .wipe { opacity: 0; }
.wipe-line {
  position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--white);
  box-shadow: 0 0 0 1px rgba(17,17,17,.12), 0 0 24px rgba(17,17,17,.25);
}
/* Measured ticks along the line: a nod to the tape measure */
.wipe-line::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 2px; width: 7px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.9) 0 1px, transparent 1px 22px);
}
.wipe-knob {
  position: absolute; top: 30%; left: 0; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); color: var(--black); border: 0; cursor: grab; pointer-events: auto;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(17,17,17,.28);
  transition: transform .3s var(--ease), background-color .2s, color .2s;
}
.wipe-knob svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wipe-knob:hover, .stage-media.is-dragging .wipe-knob { transform: translate(-50%, -50%) scale(1.08); background: var(--blue); color: var(--white); }
.stage-media.is-dragging .wipe-knob { cursor: grabbing; }
.wipe-knob:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .wipe-knob.is-hinting::after {
    content: ""; position: absolute; inset: -10px; border-radius: 50%;
    border: 2px solid var(--white); animation: knob-ping 1.8s var(--ease) infinite;
  }
}
@keyframes knob-ping { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }

.stage-tag {
  position: absolute; top: 24px; z-index: 5;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
  background: var(--white); color: var(--black); padding: 9px 12px;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.stage-tag-before { left: 24px; }
.stage-tag-after { right: 24px; background: var(--black); color: var(--white); }
.stage-tag.is-hidden { opacity: 0; transform: translateY(-6px); }

.render-note {
  position: absolute; right: 24px; bottom: 16px; z-index: 5; margin: 0;
  font-size: 11px; letter-spacing: .04em; color: var(--white);
  text-shadow: 0 1px 6px rgba(17,17,17,.6);
}

/* White shutter used when switching rooms */
.stage-shutter {
  position: absolute; inset: 0; z-index: 6; background: var(--white);
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.stage-media.is-closing .stage-shutter { transform: scaleX(1); transition: transform .3s cubic-bezier(.7,0,.3,1); }
.stage-media.is-opening .stage-shutter { transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(.7,0,.3,1); }

/* Hotspots: only show on the revealed "after" side */
.hotspots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hotspot {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; border: 0; padding: 0; cursor: pointer; pointer-events: auto;
  background: rgba(255,255,255,.95); box-shadow: 0 6px 18px rgba(17,17,17,.3);
  display: grid; place-items: center;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.hotspot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .hotspot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.9);
    animation: knob-ping 2.4s var(--ease) infinite;
  }
}
.hotspot.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
.hotspot-label {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px);
  white-space: nowrap; background: var(--black); color: var(--white);
  font: 700 13px/1 var(--sans); padding: 10px 12px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.hotspot:hover .hotspot-label, .hotspot:focus-visible .hotspot-label, .hotspot.is-open .hotspot-label { opacity: 1; transform: translate(-50%, 0); }
.hotspot:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* Headline slab, layered over the stage */
.hero-slab {
  position: absolute; z-index: 7; left: var(--gutter); bottom: clamp(24px, 4vh, 48px);
  width: min(560px, 44vw);
  background: rgba(255,255,255,.36); padding: clamp(28px, 3vw, 44px);
  -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 24px 60px rgba(17,17,17,.14);
}
.hero-slab h1 { font-size: clamp(2.1rem, 1.2rem + 2.1vw, 3.5rem); line-height: 1.06; }
.lede { margin-top: 18px; font-size: clamp(1rem, .96rem + .2vw, 1.12rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 26px; margin-top: 26px; }

/* Control dock */
.dock {
  position: absolute; z-index: 7; right: var(--gutter); bottom: clamp(24px, 4vh, 48px);
  width: min(430px, 34vw);
  background: rgba(255,255,255,.36); padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(17,17,17,.14);
  -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);
}
.dock-row + .dock-row { margin-top: 14px; }
.dock-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--black); position: relative; }
.seg button {
  position: relative; z-index: 1; min-height: 44px; padding: 8px 6px;
  background: none; border: 0; cursor: pointer;
  font: 700 14px/1.15 var(--sans); color: var(--black);
  transition: color .3s var(--ease);
}
.seg button + button { border-left: 1.5px solid var(--black); }
.seg button[aria-pressed="true"] { color: var(--white); background: var(--black); }
.seg[data-levels] button[aria-pressed="true"] { background: var(--blue); }
.seg button:not([aria-pressed="true"]):hover { background: var(--tint); }
.seg button:focus-visible { outline-offset: -5px; outline-color: var(--blue); }
.dock-row.is-single .seg button:not([aria-pressed="true"]) { opacity: .35; pointer-events: none; }
.dock-changes { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.dock-changes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dock-changes li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.45; }
.dock-changes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1.5px; background: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .dock-changes li.is-new { animation: li-in .55s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
}
@keyframes li-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Parallax band ---------- */
.band { position: relative; overflow: hidden; min-height: clamp(520px, 80vh, 820px); display: flex; align-items: center; }
.band-media { position: absolute; inset: -12% 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--shift, 0px), 0); }
.band-inner { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.band-card { background: var(--white); width: min(520px, 100%); padding: clamp(28px, 3vw, 48px); box-shadow: 0 24px 60px rgba(17,17,17,.2); }
.band-card h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: 18px; }
.band-card p { font-size: 1.06rem; }
.band-note { margin-top: 16px; font-size: 11px !important; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }

/* ---------- Finish card ---------- */
.finish-card {
  margin-top: clamp(56px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center;
  background: var(--white);
}
.finish-media { overflow: hidden; aspect-ratio: 3 / 2; perspective: 900px; }
.finish-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.finish-text { padding: clamp(28px, 4vw, 56px); }
.finish-kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 14px; }
.finish-text h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); margin-bottom: 14px; }
.finish-text p:last-child { color: var(--grey); font-size: 1.06rem; }

.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero-slab { width: min(500px, 52vw); }
  .dock { width: min(400px, 40vw); }
  .hero-slab h1 { font-size: clamp(2rem, 1.2rem + 2vw, 2.8rem); }
}

@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; }
  .hero-slab { display: contents; }
  .hero-head { order: 1; padding: 28px var(--gutter) 22px; text-align: center; }
  .hero-head .kicker { justify-content: center; }
  .hero-head h1 { font-size: clamp(2rem, 1.3rem + 3.6vw, 2.8rem); max-width: 18ch; margin-inline: auto; }
  .stage { order: 2; }
  .hero-body { order: 3; padding: 24px var(--gutter) 8px; text-align: center; }
  .hero-actions { justify-content: center; }
  .stage-media { height: clamp(360px, 58svh, 620px); }
  .wipe-knob { top: 50%; }
  .dock { position: static; width: auto; box-shadow: none; padding: 16px var(--gutter) 0; background: var(--white); backdrop-filter: none; }
  .band-inner { justify-content: center; }
  .finish-card { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .stage-tag { top: 14px; font-size: 11px; padding: 7px 9px; }
  .stage-tag-before { left: 14px; } .stage-tag-after { right: 14px; }
  .wipe-knob { width: 54px; height: 54px; }
  .render-note { right: 12px; left: 12px; bottom: 10px; text-align: center; }
  .dock-changes { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .seg button { font-size: 13px; }
  .hotspot-label { white-space: normal; width: max-content; max-width: 180px; line-height: 1.3; }
  .band { min-height: 0; padding: 0 0 var(--gutter); flex-direction: column; }
  .band-media { position: relative; inset: auto; height: 56vh; }
  .band-inner { margin-top: -80px; }
}

/* Autoplay tour control */
.tour-toggle {
  position: absolute; top: 16px; right: 18px;
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 4px;
  background: none; border: 0; cursor: pointer;
  font: 700 12px/1 var(--sans); letter-spacing: .04em; color: var(--grey);
}
.tour-toggle:hover { color: var(--blue); }
.tour-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tour-toggle .i-play { display: none; fill: currentColor; stroke-width: 1.5; }
.tour-toggle[aria-pressed="true"] .i-pause { display: none; }
.tour-toggle[aria-pressed="true"] .i-play { display: block; }
.tour-toggle.is-playing::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  animation: tour-dot 1.6s ease-in-out infinite;
}
@keyframes tour-dot { 50% { opacity: .25; } }
.dock { padding-top: 26px; }
@media (max-width: 900px) {
  .dock { position: relative; padding-top: 40px; }
  .tour-toggle { top: 10px; right: var(--gutter); }
}


/* ---------- Services: stacked full-screen panels ---------- */
.services { padding-bottom: clamp(32px, 4vw, 56px); }
.panels { position: relative; }
.panel {
  position: sticky; top: 0; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  background: var(--tint);
  border-top: 1px solid var(--rule);
}
.panel-bg { position: absolute; inset: 0; }
.panel-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%;
  transform: scale(var(--bg-scale, 1.04)); transform-origin: 30% 50%;
  will-change: transform;
}
/* White scrim: photo stays visible on the left, the right half turns to paper for the text */
.panel-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 72%, rgba(255,255,255,.55) 100%),
    linear-gradient(to right, rgba(255,255,255,.05) 0%, rgba(255,255,255,.18) 24%, rgba(255,255,255,.8) 43%, rgba(255,255,255,.9) 68%, rgba(255,255,255,.88) 100%);
}
.panel-grid {
  position: relative; z-index: 1; width: min(100% - var(--gutter) * 2, 1320px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: clamp(1.5rem, 4vw, 5rem); align-items: center;
  padding: calc(var(--header-h) + 8px) 0 2.5rem;
}

.panel-num {
  margin: 0; font: 700 clamp(8rem, 17vw, 20rem)/.78 var(--sans); letter-spacing: -.04em;
  color: rgba(255,255,255,.42); -webkit-text-stroke: 3px rgba(0, 87, 184, .95);
  filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 6px 30px rgba(17,17,17,.18));
  font-variant-numeric: lining-nums;
}

.panel-copy { max-width: 560px; }
.panel-kicker { font: 700 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.panel-kicker span { margin: 0 .4em; }
.panel-title { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.2rem); line-height: 1.05; max-width: 16ch; margin-bottom: 18px; }
.panel-text { max-width: 52ch; font-size: 1.06rem; color: var(--black); }
.panel-specs {
  display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 26px 0 0; padding: 16px 0;
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
}
.panel-specs dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 5px; }
.panel-specs dd { margin: 0; font: 400 1.08rem/1.25 var(--serif); }
.panel-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.panel-chips li {
  font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--rule-strong); padding: 8px 10px; background: rgba(255,255,255,.6);
}
.panel-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  font-weight: 700; text-decoration: none; padding-bottom: 4px;
  border-bottom: 1.5px solid currentColor; transition: color .2s, gap .3s var(--ease);
}
.panel-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-link:hover { color: var(--blue); gap: 16px; }

/* Scope gauge */
.panel-gauge {
  display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto;
  column-gap: 12px; align-items: stretch; justify-items: start;
}
.gauge-word {
  grid-row: 1; grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg);
  font: 700 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--grey);
}
.gauge-rail {
  grid-row: 1; grid-column: 2; position: relative; width: 3px; height: clamp(200px, 36vh, 380px);
  background: repeating-linear-gradient(to bottom, var(--rule-strong) 0 1px, transparent 1px 10%), var(--rule);
}
.gauge-fill {
  position: absolute; left: 0; right: 0; top: 0; height: calc(var(--fill, 1) * 100%);
  background: var(--blue); box-shadow: 0 0 14px rgba(0, 87, 184, .55);
  transform: scaleY(var(--gauge, 1)); transform-origin: top;
}
.gauge-marks {
  grid-row: 1; grid-column: 3; display: flex; flex-direction: column; justify-content: space-between;
  font-size: 11px; letter-spacing: .08em; color: var(--grey);
}
.gauge-marks i { font-style: normal; }
.gauge-figure { grid-row: 2; grid-column: 1 / -1; margin-top: 14px; font: 400 1.1rem/1.2 var(--serif); max-width: 9ch; }

/* Scroll-driven entrance (JS adds .is-in; without JS everything shows) */
@media (prefers-reduced-motion: no-preference) {
  .js .panel .panel-num,
  .js .panel .panel-kicker, .js .panel .panel-title, .js .panel .panel-text,
  .js .panel .panel-specs, .js .panel .panel-chips, .js .panel .panel-link {
    opacity: 0; transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .js .panel.is-in .panel-num,
  .js .panel.is-in .panel-kicker, .js .panel.is-in .panel-title, .js .panel.is-in .panel-text,
  .js .panel.is-in .panel-specs, .js .panel.is-in .panel-chips, .js .panel.is-in .panel-link { opacity: 1; transform: none; }
  .js .panel.is-in .panel-kicker { transition-delay: .08s; }
  .js .panel.is-in .panel-title { transition-delay: .16s; }
  .js .panel.is-in .panel-text { transition-delay: .24s; }
  .js .panel.is-in .panel-specs { transition-delay: .32s; }
  .js .panel.is-in .panel-chips { transition-delay: .4s; }
  .js .panel.is-in .panel-link { transition-delay: .48s; }
  .js .panel .gauge-fill { --gauge: 0; transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
  .js .panel.is-in .gauge-fill { --gauge: 1; }
}

@media (max-width: 1100px) {
  .panel-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; }
}
@media (max-width: 860px) {
  .panel { position: relative; min-height: 0; display: block; background: var(--white); }
  .panel-bg { bottom: auto; height: 52vh; }
  .panel-bg img { object-position: 30% 50%; }
  .panel-scrim {
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0, rgba(255,255,255,.12) 16vh, rgba(255,255,255,.9) 34vh, #fff 44vh);
  }
  .panel-grid { grid-template-columns: 1fr; gap: 12px; padding: 24vh 0 56px; }
  .panel-num { font-size: clamp(6rem, 30vw, 10rem); }
  .panel-gauge { display: none; }
}

/* ---------- Scope: full-screen scroll story ----------
   The kitchen stays pinned as a full-screen background. Cards scroll over it,
   and each new level fades in, scrubbed by the scroll position. */
.story { position: relative; }
.story-media { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--tint); }
.story-layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: var(--r, 0);
  transform: scale(calc(1.04 - var(--r, 0) * .04)); transform-origin: 50% 50%;
}
.story-layer[data-layer="0"] { --r: 1; }
.story-scrim { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(to top, rgba(17,17,17,.45) 0%, rgba(17,17,17,0) 26%); }
.story-hud {
  position: absolute; z-index: 6; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: flex; align-items: flex-end; gap: 24px; max-width: 760px;
}
.story-rail { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.story-rail li {
  position: relative; padding-top: 12px; color: rgba(255,255,255,.75);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  border-top: 2px solid rgba(255,255,255,.35); transition: color .3s;
}
.story-rail li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--white);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.story-rail li.is-done::before, .story-rail li.is-active::before { transform: scaleX(1); }
.story-rail li.is-active { color: var(--white); }
.story-note { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); padding-bottom: 1px; }

.story-steps { position: relative; z-index: 7; margin-top: -100svh; }
.story-step {
  min-height: 100svh; display: flex; align-items: center; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) 120px;
}
.story-intro { justify-content: flex-start; }
.story-card {
  width: min(480px, 100%);
  background: rgba(255,255,255,.8); padding: clamp(28px, 3vw, 44px);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 24px 60px rgba(17,17,17,.18);
}
.story-intro .story-card { width: min(640px, 100%); }
.story-intro h2 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); margin-bottom: 20px; }
.story-card p + p { margin-top: 1em; }
.story-card h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); margin-bottom: 14px; }
.story-card p:not(.step-num) { font-size: 1.04rem; }
.step-num { font: 400 15px/1 var(--serif); color: var(--blue); letter-spacing: .1em; margin-bottom: 14px; }

@media (max-width: 767px) {
  .story-hud { top: 16px; bottom: auto; }
  .story-scrim { background: linear-gradient(to bottom, rgba(17,17,17,.45) 0%, rgba(17,17,17,0) 22%); }
  .story-rail li { font-size: 10px; letter-spacing: .06em; }
  .story-note { display: none; }
  .story-step { align-items: flex-end; justify-content: center; padding: 90px var(--gutter) calc(var(--bar-h) + 28px); }
  .story-intro { justify-content: center; }
}

/* ---------- Hero to services: the services sheet slides up over a pinned hero ----------
   --ht (0..1) is set on :root by JS as the services section rises through the viewport. */
.services { position: relative; z-index: 2; background: var(--tint); padding-top: calc(var(--section) + 26px); }
/* Brand grey text on the grey tint falls just under 4.5:1, so the intro goes black here */
.services .section-head p { color: var(--black); }
/* Tape-measure edge: blue baseline, a long tick every foot (80px), a short tick every 3 inches (20px) */
.services::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; pointer-events: none;
  background:
    linear-gradient(var(--blue), var(--blue)) 0 0 / 100% 3px no-repeat,
    repeating-linear-gradient(to right, var(--black) 0 1.5px, transparent 1.5px 80px) calc(var(--ht, 0) * -240px) 0 / auto 20px repeat-x,
    repeating-linear-gradient(to right, var(--grey) 0 1px, transparent 1px 20px) calc(var(--ht, 0) * -240px) 0 / auto 10px repeat-x;
}
@media (min-width: 901px) {
  /* Sticky can't travel into padding, so the pin gets real scroll room from a spacer */
  .hero-pin::after { content: ""; display: block; height: 100svh; }
  .hero { position: sticky; top: 0; z-index: 0; }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none;
    background: var(--black); opacity: calc(var(--ht, 0) * .55);
  }
  .hero-pin + .services { margin-top: -100svh; box-shadow: 0 -30px 80px rgba(17,17,17,.28); }
}
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .stage-media { transform: scale(calc(1 - var(--ht, 0) * .08)); transform-origin: 50% 70%; }
  .hero-slab { transform: translate3d(0, calc(var(--ht, 0) * -90px), 0); opacity: calc(1 - var(--ht, 0) * 1.8); }
  .dock { transform: translate3d(0, calc(var(--ht, 0) * -140px), 0); opacity: calc(1 - var(--ht, 0) * 1.8); }
}

/* Pull tab: peeks up from the tape at the bottom of the first screen; drag or click it */
.tape-tab {
  position: absolute; left: 50%; top: 0; z-index: 3;
  transform: translate(-50%, -100%);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 16px 0 12px;
  background: var(--blue); color: var(--white); border: 0; cursor: grab;
  font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 -8px 24px rgba(17,17,17,.25);
  touch-action: none; user-select: none; -webkit-user-select: none;
  opacity: clamp(0, calc(1.5 - var(--ht, 0) * 2), 1);
  transition: background-color .2s, padding .25s var(--ease);
}
.tape-tab:hover { background: var(--black); padding-bottom: 6px; }
.tape-tab.is-dragging { cursor: grabbing; background: var(--black); }
.tape-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.tape-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tape-grip {
  width: 10px; height: 18px;
  background: radial-gradient(circle, rgba(255,255,255,.9) 1.2px, transparent 1.6px) 0 0 / 5px 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .tape-tab:not(.is-dragging) svg { animation: tab-nudge 1.8s var(--ease) infinite; }
}
@keyframes tab-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }

/* Hover strip over the tape with a live reading */
.tape-hit { position: absolute; left: 0; right: 0; top: 0; height: 40px; z-index: 2; cursor: crosshair; }
.tape-read {
  position: absolute; top: 0; left: 0; pointer-events: none; opacity: 0;
  transform: translateX(var(--tx, 0px)); transition: opacity .2s;
}
.tape-hit.is-on .tape-read { opacity: 1; }
.tape-read::before { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: 30px; background: var(--blue); }
.tape-read span {
  position: absolute; left: 8px; top: 14px; white-space: nowrap;
  font: 700 12px/1 var(--sans); letter-spacing: .06em; color: var(--white);
  background: var(--black); padding: 6px 8px;
}
@media (hover: none) { .tape-hit { display: none; } }

@media (max-width: 900px) {
  /* No pinned hero on phones, so the pull tab has nothing to pull; the bottom bar covers it */
  .tape-tab { display: none; }
}

/* With the hero panels this transparent, grey small labels lose contrast over the photo */
.hero-slab .kicker, .hero-slab .kicker-sep { color: var(--black); }
.hero-slab .kicker-sep { background: var(--black); }
.dock .dock-label, .dock .tour-toggle { color: var(--black); }
.dock .tour-toggle:hover { color: var(--blue); }
@media (max-width: 900px) {
  .hero-slab .kicker { color: var(--grey); }
  .hero-slab .kicker-sep { background: var(--grey); }
}

/* ---------- "Behind the wall" band: text sits straight on the photo, no box ----------
   A dark scrim on the text side keeps white copy readable over the busy framing. */
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to left, rgba(17,17,17,.82) 0%, rgba(17,17,17,.62) 42%, rgba(17,17,17,.12) 78%, rgba(17,17,17,0) 100%);
}
.band-inner { z-index: 2; }
.band-card {
  background: none; box-shadow: none; padding: 0; color: var(--white);
  text-shadow: 0 1px 18px rgba(17,17,17,.45);
}
.band-card h2 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); }
.band-card p { font-size: 1.12rem; }
.band-card .band-note { color: var(--white) !important; opacity: .85; }
@media (max-width: 767px) {
  .band { min-height: 88vh; padding: 0; flex-direction: row; align-items: flex-end; }
  .band-media { position: absolute; inset: 0; height: auto; }
  .band-inner { margin-top: 0; padding-bottom: calc(var(--bar-h) + 40px); }
  .band::after { background: linear-gradient(to top, rgba(17,17,17,.88) 0%, rgba(17,17,17,.6) 48%, rgba(17,17,17,.1) 85%); }
}

/* ---------- Stages: each word floods with colour as it scrolls past ---------- */
.stages { position: relative; overflow: hidden; padding: clamp(6rem, 10vw, 10rem) 0; background: var(--white); }
.stages-canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; opacity: .7; pointer-events: none; }
.stages-inner { position: relative; z-index: 1; }
.stages-head { text-align: center; max-width: 960px; margin: 0 auto clamp(48px, 6vw, 88px); }
.stages-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--grey);
  margin-bottom: 22px;
}
.stages-eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--blue); }
.stages-head h2 { font-size: clamp(2.6rem, 1.3rem + 4.6vw, 6rem); line-height: .95; letter-spacing: -.025em; max-width: 15ch; margin-inline: auto; }
.stages-intro { margin: 1.4rem auto 0; max-width: 40em; font-size: 1.08rem; }

.stages-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.stage-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 21rem);
  gap: clamp(1rem, 3vw, 3rem); align-items: center;
  padding: clamp(1.6rem, 3vw, 3rem) 0; border-bottom: 1px solid var(--rule);
}
.stage-num { font: 700 1.3rem/1 var(--sans); color: var(--blue); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.stage-word {
  position: relative; margin: 0; white-space: nowrap;
  font: 400 clamp(2.4rem, 5.6vw, 5.8rem)/.9 var(--serif); letter-spacing: -.035em; color: var(--black);
  transform: translate3d(var(--drift, 0%), 0, 0);
}
.stage-text { justify-self: end; text-align: right; max-width: 42ch; font-size: .95rem; color: var(--grey); }

/* Motion version (JS adds .stages-motion unless reduced motion is on) */
.stages-motion .stage-word-text { color: transparent; -webkit-text-stroke: 1px rgba(17, 17, 17, .4); }
.stages-motion .stage-word::after {
  /* The solid copy that floods in; generated so the heading text appears once, and hidden from screen readers */
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute; left: 0; top: 0; width: 100%;
  color: var(--black);
  /* negative top/bottom insets keep descenders (g, p) inside the fill */
  clip-path: inset(-.25em calc((1 - var(--fill, 0)) * 100%) -.35em -.1em);
}
.stages-motion .stage-num { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stages-motion .stage-num.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .stage-row { grid-template-columns: 1fr; gap: .7rem; }
  .stage-word { white-space: normal; }
  .stage-text { justify-self: start; text-align: left; }
}

/* Stages headline on one line (desktop); wraps again on phones */
.stages-head { max-width: none; }
@media (min-width: 861px) {
  .stages-head h2 { max-width: none; white-space: nowrap; font-size: clamp(2.2rem, 4.1vw, 4.4rem); line-height: 1; }
}

/* ---------- Decide: stacking cards that build as you scroll ---------- */
.decide-stack { background: var(--tint); padding: var(--section) 0; }
.decide-head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); }
.decide-kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.decide-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.05; max-width: 18ch; margin-inline: auto; }
.decide-lede { margin: 18px auto 0; max-width: 36em; font-size: 1.08rem; }
.decide-rule { display: block; width: 4.5rem; height: 4px; border-radius: 2px; background: var(--blue); margin: 26px auto 0; }

.decide-cards { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; position: relative; }
/* Trailing spacer so the last card has something to scroll against and the stack closes */
.decide-cards::after { content: ""; display: block; height: 4vh; }
.decide-card {
  position: sticky; z-index: 2;
  top: calc(var(--header-h) + 1.4rem + (var(--i, 0) * 14px));
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 2.4vw, 1.8rem); align-items: start;
  margin-bottom: 1.1rem; padding: clamp(1.4rem, 3vw, 2.3rem);
  background: var(--white); border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px var(--rule), 0 22px 48px -30px rgba(17, 17, 17, .55);
}
.decide-badge {
  display: grid; place-items: center; width: clamp(52px, 5vw, 66px); aspect-ratio: 1;
  border-radius: 2px; background: var(--black); color: var(--white);
  font: 700 clamp(1.1rem, .9rem + .6vw, 1.45rem)/1 var(--sans); font-variant-numeric: tabular-nums;
}
.decide-card h3 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.9rem); margin: 4px 0 10px; }
.decide-card p { font-size: 1.04rem; max-width: 58ch; }

/* Chevrons are inserted by script between cards; they sit under the cards (z-index 1) */
.decide-chevron {
  position: relative; z-index: 1; list-style: none; display: grid; place-items: center;
  height: 44px; margin: -.3rem 0 .8rem; color: var(--blue); opacity: 0; transition: opacity .6s var(--ease);
}
.decide-chevron.is-in { opacity: 1; }
.decide-chevron svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: chevron-bob 1.9s ease-in-out infinite; }
@keyframes chevron-bob { 0%, 100% { transform: translateY(-22%); } 50% { transform: translateY(22%); } }
.decide-stack .scope-cta { margin-top: clamp(28px, 4vw, 48px); }

@media (prefers-reduced-motion: reduce) {
  .decide-card { position: relative; top: auto; }
  .decide-chevron { opacity: 1; transition: none; }
  .decide-chevron svg { animation: none; }
}
.decide-stack.is-static .decide-card { position: relative; top: auto; }
@media (max-width: 600px) {
  .decide-card { grid-template-columns: 1fr; gap: .8rem; }
}

/* ---------- Stages over a photo: dark scrim, white type ---------- */
.stages-dark { background: var(--black); color: var(--white); }
.stages-media { position: absolute; inset: -10% 0; z-index: 0; }
.stages-media img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--shift, 0px), 0); }
.stages-dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(17,17,17,.78) 0%, rgba(17,17,17,.62) 35%, rgba(17,17,17,.7) 100%);
}
.stages-dark .stages-canvas { z-index: 0; }
.stages-dark .stages-eyebrow { color: var(--white); }
.stages-dark .stages-head h2, .stages-dark .stages-intro { color: var(--white); }
.stages-dark .stages-list { border-top-color: rgba(255,255,255,.28); }
.stages-dark .stage-row { border-bottom-color: rgba(255,255,255,.2); }
.stages-dark .stage-num { color: var(--white); }
.stages-dark .stage-num::after { content: ""; display: block; width: 18px; height: 2px; background: var(--blue); margin-top: 8px; }
.stages-dark .stage-word { color: var(--white); }
.stages-dark .stage-text { color: rgba(255,255,255,.88); }
.stages-dark.stages-motion .stage-word-text { -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.stages-dark.stages-motion .stage-word::after { color: var(--white); }

/* ---------- Band: copy slides in from the left, a stud-finder light looks behind the wall ---------- */
.band { --sx: -999px; --sy: -999px; --sr: 230px; }
.band::after {
  -webkit-mask-image: radial-gradient(circle var(--sr) at var(--sx) var(--sy), transparent 0, rgba(0,0,0,.15) 45%, #000 100%);
          mask-image: radial-gradient(circle var(--sr) at var(--sx) var(--sy), transparent 0, rgba(0,0,0,.15) 45%, #000 100%);
}
.band-finder {
  position: absolute; z-index: 2; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border: 1.5px solid rgba(255,255,255,.85); border-radius: 50%; pointer-events: none;
  transform: translate3d(var(--sx), var(--sy), 0); opacity: 0; transition: opacity .3s var(--ease);
  box-shadow: 0 0 0 6px rgba(0,87,184,.25);
}
.band-finder::before, .band-finder::after { content: ""; position: absolute; background: rgba(255,255,255,.85); }
.band-finder::before { left: 50%; top: -10px; bottom: -10px; width: 1.5px; margin-left: -.75px;
  -webkit-mask: linear-gradient(#000 0 14px, transparent 14px calc(100% - 14px), #000 calc(100% - 14px));
          mask: linear-gradient(#000 0 14px, transparent 14px calc(100% - 14px), #000 calc(100% - 14px)); }
.band-finder::after { top: 50%; left: -10px; right: -10px; height: 1.5px; margin-top: -.75px;
  -webkit-mask: linear-gradient(90deg, #000 0 14px, transparent 14px calc(100% - 14px), #000 calc(100% - 14px));
          mask: linear-gradient(90deg, #000 0 14px, transparent 14px calc(100% - 14px), #000 calc(100% - 14px)); }
.band.is-scanning .band-finder { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-band-in] {
    transform: translate3d(calc((1 - var(--in, 1)) * -180px), 0, 0);
    opacity: var(--in, 1);
  }
}
@media (max-width: 767px) { .band { --sr: 150px; } .band-finder { width: 84px; height: 84px; margin: -42px 0 0 -42px; } }

/* ---------- Contact: white panel instead of blue; blue is saved for the submit action ---------- */
.contact { background: var(--white); color: var(--black); border-top: 1px solid var(--rule); }
.contact .section-head p { color: var(--black); }
.contact .needs, .contact .section-head p .needs { color: var(--blue); text-decoration-color: rgba(0, 87, 184, .55); }
.contact :focus-visible { outline-color: var(--blue); }
.contact .field input[type="text"], .contact .field input[type="tel"], .contact .field input[type="email"], .contact .field textarea {
  background: var(--white); border: 1.5px solid rgba(17, 17, 17, .3);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact .field input:hover, .contact .field textarea:hover { border-color: rgba(17, 17, 17, .6); }
.contact .field input:focus-visible, .contact .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 87, 184, .2); }
.contact .choice-row span { border-color: rgba(17, 17, 17, .3); color: var(--black); }
.contact .choice-row label:hover span { border-color: var(--black); }
.contact .choice-row input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.contact .choice-row input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.contact .req { color: var(--grey); opacity: 1; }
/* Layer order over the photo: image 0, scrim 1, blueprint canvas 1, content 2 */
.stages-dark::before { z-index: 1; }
.stages-dark .stages-canvas { z-index: 1; }
.stages-dark .stages-inner { z-index: 2; }

/* ---------- Contact: form on the left, a picture on the right that follows the answers ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-head { text-align: left; max-width: none; margin: 0 0 clamp(28px, 4vw, 44px); }
.contact-head h2 { margin-inline: 0; max-width: 16ch; }
.contact .brief { max-width: none; margin: 0; }
.contact-visual { position: sticky; top: calc(var(--header-h) + 24px); }
.cv-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.cv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-img.is-entering { animation: cv-in .7s var(--ease) both; }
.cv-img.is-leaving { opacity: 0; transition: opacity .6s var(--ease); }
@keyframes cv-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.cv-tag {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  background: var(--white); color: var(--black); padding: 7px 10px;
}
.cv-brief {
  position: relative; z-index: 2; margin: -64px 16px 0; padding: 18px 20px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -20px rgba(17,17,17,.45);
}
.cv-brief dt { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--black); margin-bottom: 4px; }
.cv-brief dd { margin: 0; font: 400 1.05rem/1.25 var(--serif); }
.cv-brief dd.is-new { animation: li-in .45s var(--ease) both; }
@media (max-width: 1200px) { .contact .choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-visual { position: relative; top: auto; order: -1; }
  .contact-main { order: 0; }
  .cv-frame { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) { .cv-img.is-entering, .cv-brief dd.is-new { animation: none; } }
/* Form sits in a half-width column now, so answer buttons go 2 x 2 to keep labels on one line */
.contact .choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 359px) { .contact .choice-row { grid-template-columns: 1fr; } }

/* Room choice: 4 buttons, with a text field that opens for "Other" */
.contact [data-room-choice] .choice-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .contact [data-room-choice] .choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.other-field { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.other-field[hidden] { display: none; }
.other-field label { font-weight: 700; font-size: 15px; }
.contact .other-field input {
  width: 100%; min-height: 52px; padding: 13px 15px; font-size: 16px;
  background: var(--white); border: 1.5px solid rgba(17, 17, 17, .3); border-radius: var(--radius);
}
.contact .other-field input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 87, 184, .2); }
.contact [data-room-choice][aria-invalid="true"] .choice-row span { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
@media (prefers-reduced-motion: no-preference) { .other-field:not([hidden]) { animation: li-in .35s var(--ease) both; } }

/* =====================================================================
   v4: multi-page components (mega menu, page hero, article modules)
   ===================================================================== */

/* ---------- Mega menu ---------- */
.primary-nav li { position: static; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; background: none; border: 0; cursor: pointer;
  font: 400 15px/1.2 var(--sans); color: var(--black); position: relative;
}
.nav-trigger svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-trigger::after {
  content: ""; position: absolute; left: 0; right: 18px; bottom: 4px; height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-trigger:hover::after, .nav-trigger[aria-expanded="true"]::after, .nav-trigger[aria-current]::after { transform: scaleX(1); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 49;
  background: var(--white); border-top: 1px solid var(--rule); box-shadow: 0 30px 60px -30px rgba(17,17,17,.35);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mega.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.mega-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 40px; padding: 32px 0 36px; }
.mega-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.mega-card { display: block; text-decoration: none; }
.mega-card figure { margin: 0 0 12px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.mega-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega-card:hover img, .mega-card:focus-visible img { transform: scale(1.06); }
.mega-card strong { display: block; font: 400 1.12rem/1.2 var(--serif); margin-bottom: 4px; }
.mega-card span { display: block; font-size: 13px; line-height: 1.45; color: var(--grey); }
.mega-card:hover strong { color: var(--blue); }
.mega.is-open .mega-grid li { animation: li-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.mega-side { border-left: 1px solid var(--rule); padding-left: 32px; display: flex; flex-direction: column; gap: 14px; }
.mega-side p { font-size: 14px; color: var(--grey); }
.mega-side .mega-label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--black); }
.mega-side a.text-link { align-self: flex-start; }
@media (max-width: 1100px) { .mega-inner { grid-template-columns: 1fr; } .mega-side { border-left: 0; padding-left: 0; } .mega-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* ---------- Page hero (reuses the home hero pieces, without the pin) ---------- */
.ph.hero { position: relative; top: auto; }
.ph.hero::after { display: none; }
.ph .stage-media { height: clamp(560px, calc(100svh - var(--header-h)), 960px); }
.breadcrumbs { font-size: 12px; letter-spacing: .06em; margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--grey); }
.breadcrumbs a { color: var(--black); text-decoration: none; border-bottom: 1px solid rgba(17,17,17,.3); }
.breadcrumbs a:hover { color: var(--blue); border-color: var(--blue); }
.breadcrumbs [aria-current] { color: var(--black); font-weight: 700; }
.ph .dock-row.is-hidden { display: none; }

/* ---------- Article layout ---------- */
.article { padding: var(--section) 0 0; }
.article .sec { max-width: 760px; margin: 0 auto clamp(64px, 8vw, 110px); scroll-margin-top: calc(var(--header-h) + 24px); }
.article .sec-wide { max-width: 1100px; }
.sec-kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 12px; }
.sec-kicker::before { content: ""; width: 28px; height: 2px; background: var(--blue); }
.sec h2 { margin-bottom: 20px; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.sec p + p { margin-top: 1.05em; }
.sec > p, .sec .body p { font-size: 1.08rem; }
.lead { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem) !important; line-height: 1.6; }

/* Pro tip callout */
.tip { margin: 36px 0 0; padding: 26px 28px; background: var(--tint); border-left: 4px solid var(--blue); position: relative; }
.tip-label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.tip p { font: 400 1.18rem/1.5 var(--serif); }

/* Floating "on this page" rail */
.toc {
  position: fixed; left: clamp(16px, 2.4vw, 40px); top: 50%; z-index: 30; transform: translate(-12px, -50%);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toc.is-visible { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 16px; position: relative; display: grid; gap: 12px; }
.toc ol::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--rule); }
.toc-progress { position: absolute; left: 0; top: 4px; width: 2px; height: calc(var(--read, 0) * (100% - 8px)); background: var(--blue); }
.toc a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--grey); }
.toc a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--grey); background: var(--white); margin-left: -21px; transition: all .25s var(--ease); flex: none; }
.toc a span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s var(--ease), opacity .25s; }
.toc:hover a span, .toc:focus-within a span, .toc a.is-active span { max-width: 180px; opacity: 1; }
.toc a.is-active { color: var(--black); }
.toc a.is-active::before { background: var(--blue); border-color: var(--blue); transform: scale(1.25); }
.toc a.is-done::before { background: var(--blue); border-color: var(--blue); }
@media (max-width: 1279px) { .toc { display: none; } }

/* Levels table reuses .scope-table; builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.builder-qs { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--black); }
.builder-q { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.builder-q p { font-size: 1.02rem; }
.builder-q small { display: block; margin-top: 4px; font-size: 13px; color: var(--grey); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s var(--ease), opacity .3s; }
.builder-q.is-yes small { max-height: 120px; opacity: 1; }
.switch {
  position: relative; width: 64px; height: 34px; border-radius: 17px; border: 1.5px solid var(--black);
  background: var(--white); cursor: pointer; flex: none; transition: background-color .25s var(--ease);
}
.switch::after {
  content: "No"; position: absolute; top: 3px; left: 3px; width: 34px; height: 25px; border-radius: 13px;
  background: var(--black); color: var(--white); font: 700 11px/25px var(--sans); text-align: center;
  transition: transform .3s var(--ease), background-color .25s;
}
.switch[aria-checked="true"] { background: var(--blue); border-color: var(--blue); }
.switch[aria-checked="true"]::after { content: "Yes"; transform: translateX(23px); background: var(--white); color: var(--blue); }
.builder-result { position: sticky; top: calc(var(--header-h) + 24px); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--rule), 0 22px 48px -30px rgba(17,17,17,.5); }
.br-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.br-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.br-frame img.is-entering { animation: cv-in .6s var(--ease) both; }
.br-frame img.is-leaving { opacity: 0; transition: opacity .5s var(--ease); }
.br-body { padding: 22px 24px 26px; }
.br-label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.br-level { font: 400 clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem)/1.1 var(--serif); margin: 6px 0 14px; }
.br-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.br-meter span { height: 6px; background: var(--rule); position: relative; overflow: hidden; }
.br-meter span::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.br-meter span.is-on::after { transform: scaleX(1); }
.br-scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 11px; color: var(--grey); margin-bottom: 16px; }
.br-text { font-size: 1rem; }
.br-body .btn { margin-top: 18px; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } .builder-result { position: relative; top: auto; } }

/* Messy middle: problem / resolution toggle */
.mm { background: var(--black); color: var(--white); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.mm-tabs { display: inline-grid; grid-auto-flow: column; border: 1.5px solid rgba(255,255,255,.6); margin-bottom: 26px; }
.mm-tabs button { background: none; border: 0; color: var(--white); padding: 11px 16px; font: 700 13px/1 var(--sans); letter-spacing: .06em; cursor: pointer; }
.mm-tabs button[aria-selected="true"] { background: var(--white); color: var(--black); }
.mm h2 { color: var(--white); }
.mm-panel { font: 400 clamp(1.15rem, 1rem + .5vw, 1.4rem)/1.55 var(--serif); }
.mm-panel[hidden] { display: none; }
.mm-panel.is-entering { animation: mm-in .5s var(--ease) both; }
@keyframes mm-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.mm-tag { position: absolute; right: -10px; bottom: -34px; font: 400 clamp(6rem, 14vw, 11rem)/1 var(--serif); color: rgba(255,255,255,.06); pointer-events: none; }

/* Checklist */
.checklist-wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.ring { width: 120px; height: 120px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .ring-bg { stroke: var(--rule); }
.ring .ring-fg { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font: 400 1.6rem/1 var(--serif); }
.ring-num small { display: block; font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-top: 4px; text-align: center; }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--black); }
.checklist li { border-bottom: 1px solid var(--rule); }
.checklist label { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; padding: 14px 0; cursor: pointer; }
.checklist input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checklist .box { width: 26px; height: 26px; border: 1.5px solid var(--black); display: grid; place-items: center; transition: background-color .2s; }
.checklist .box svg { width: 16px; height: 16px; fill: none; stroke: var(--white); stroke-width: 3; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s var(--ease); }
.checklist input:checked + .box { background: var(--blue); border-color: var(--blue); }
.checklist input:checked + .box svg { stroke-dashoffset: 0; }
.checklist input:checked ~ .txt { color: var(--grey); text-decoration: line-through; text-decoration-color: rgba(107,114,128,.6); }
.checklist input:focus-visible + .box { outline: 3px solid var(--blue); outline-offset: 3px; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; align-items: center; }
.checklist-actions button { background: none; border: 0; padding: 0; font: 700 14px/1.4 var(--sans); cursor: pointer; border-bottom: 1.5px solid currentColor; }
.checklist-actions button:hover { color: var(--blue); }
.checklist-note { font-size: 13px; color: var(--grey); }
@media (max-width: 600px) { .checklist-wrap { grid-template-columns: 1fr; } }

/* FAQ with search */
.faq-search { position: relative; margin-bottom: 18px; }
.faq-search input { width: 100%; min-height: 52px; padding: 13px 15px 13px 44px; font-size: 16px; border: 1.5px solid rgba(17,17,17,.3); border-radius: var(--radius); background: var(--white); }
.faq-search input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,184,.2); }
.faq-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--grey); stroke-width: 2; }
.faq-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--grey); }
.faq-tools button { background: none; border: 0; font: 700 13px/1.4 var(--sans); cursor: pointer; border-bottom: 1.5px solid currentColor; padding: 0; color: var(--black); }
.faq { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--black); }
.faq li { border-bottom: 1px solid var(--rule); }
.faq li[hidden] { display: none; }
.faq h3 { margin: 0; font-size: inherit; }
.faq-q {
  width: 100%; display: grid; grid-template-columns: 1fr 22px; gap: 16px; align-items: center; text-align: left;
  padding: 20px 0; background: none; border: 0; cursor: pointer; font: 400 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.35 var(--serif); color: var(--black);
}
.faq-q:hover { color: var(--blue); }
.faq-q .service-toggle { width: 18px; height: 18px; }
.faq-q[aria-expanded="true"] .service-toggle::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a p { padding: 0 40px 22px 0; font-size: 1.04rem; }
.faq mark { background: rgba(0,87,184,.16); color: inherit; padding: 0 2px; }
.faq-empty { padding: 20px 0; color: var(--grey); }
.faq-empty[hidden] { display: none; }

/* Bottom line */
.bottom-line { border-top: 4px solid var(--blue); padding-top: 26px; }
.bottom-line p { font: 400 clamp(1.3rem, 1.1rem + .9vw, 1.9rem)/1.45 var(--serif); }

/* Related services carousel */
.related { padding: 0 0 var(--section); }
.related-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.related-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.related-nav { display: flex; gap: 8px; }
.related-nav button { width: 48px; height: 48px; border: 1.5px solid var(--black); background: var(--white); cursor: pointer; display: grid; place-items: center; }
.related-nav button:hover { background: var(--black); color: var(--white); }
.related-nav button:disabled { opacity: .3; cursor: default; background: var(--white); color: var(--black); }
.related-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 380px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; padding-bottom: 6px;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.rail-card { scroll-snap-align: start; text-decoration: none; display: block; user-select: none; -webkit-user-drag: none; }
.rail-card figure { margin: 0 0 14px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.rail-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); -webkit-user-drag: none; }
.rail-card:hover img { transform: scale(1.05); }
.rail-card strong { display: block; font: 400 1.35rem/1.2 var(--serif); margin-bottom: 6px; }
.rail-card span { color: var(--grey); font-size: 15px; }
.rail-progress { height: 2px; background: var(--rule); margin-top: 18px; position: relative; }
.rail-progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); width: calc(var(--rp, .25) * 100%); transform: translateX(calc(var(--rx, 0) * 100%)); }

/* Legal / simple pages */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); background: var(--tint); }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); max-width: 18ch; }
.page-head p { margin-top: 16px; max-width: 40em; font-size: 1.08rem; }
.draft-note { margin-top: 18px; display: inline-block; font-size: 13px; font-weight: 700; padding: 8px 12px; border: 1.5px dashed var(--blue); color: var(--blue); }
.legal .sec h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.legal .sec { margin-bottom: 56px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; font-size: 1.04rem; }
.sitemap-list { columns: 2; column-gap: 48px; list-style: none; padding: 0; }
.sitemap-list li { break-inside: avoid; margin-bottom: 12px; }
.sitemap-list a { font: 400 1.2rem/1.3 var(--serif); text-decoration: none; border-bottom: 1px solid var(--rule); }
.sitemap-list a:hover { color: var(--blue); border-color: var(--blue); }
@media (max-width: 600px) { .sitemap-list { columns: 1; } }

/* Home panels: second link to the service page */
.panel-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 24px; }
.panel-links .panel-link { margin-top: 0; }
.mm .sec-kicker { color: var(--white); }
.rail { padding-left: 3px; margin-left: -3px; }
@media (max-width: 900px) { .ph .breadcrumbs ol { justify-content: center; } }

/* =====================================================================
   Contact page
   ===================================================================== */
.cx-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 5vw, 64px); background: var(--tint); overflow: hidden; }
.cx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cx-hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem); line-height: 1.02; max-width: 12ch; }
.cx-hero .lede { margin: 22px 0 0; max-width: 32em; }
.cx-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.cx-hero-media { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; perspective: 900px; box-shadow: 0 30px 60px -30px rgba(17,17,17,.45); }
.cx-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }

.cx-ways { padding: clamp(40px, 5vw, 72px) 0 0; }
.cx-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cx-card {
  padding: 28px 26px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--rule);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.cx-card:hover { box-shadow: inset 0 0 0 1.5px var(--black), 0 22px 40px -28px rgba(17,17,17,.5); transform: translateY(-3px); }
.cx-card svg { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.cx-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.cx-card p { font-size: 1.04rem; }
.cx-sub { color: var(--grey); font-size: .95rem !important; margin-top: 6px; }
.cx-card .text-link { display: inline-block; margin-top: 14px; }
.cx-card-primary { background: var(--black); color: var(--white); box-shadow: none; }
.cx-card-primary svg { stroke: var(--white); }
.cx-card-primary:hover { box-shadow: 0 22px 40px -28px rgba(17,17,17,.7); }
.cx-card-primary .text-link { color: var(--white); }

.cx-brief { border-top: 0; }

/* Wizard */
.wz-progress { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.wz-progress button {
  width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 700 12px/1.2 var(--sans); letter-spacing: .06em; color: var(--grey); text-align: left;
}
.wz-progress button:disabled { cursor: default; }
.wz-n { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; transition: all .3s var(--ease); }
.wz-progress .is-current button { color: var(--black); }
.wz-progress .is-current .wz-n { background: var(--black); border-color: var(--black); color: var(--white); }
.wz-progress .is-done button { color: var(--blue); }
.wz-progress .is-done .wz-n { background: var(--blue); border-color: var(--blue); color: var(--white); }
.wz-bar { height: 3px; background: var(--rule); margin-bottom: 30px; }
.wz-bar span { display: block; height: 100%; background: var(--blue); width: 0; transition: width .5s var(--ease); }
.wz .wz-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.wz .wz-step > legend, .wz-legend { font: 400 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.2 var(--serif) !important; margin-bottom: 20px; padding: 0; outline: none; }
.wz .wz-step > legend .req { font: 700 11px/1 var(--sans); vertical-align: middle; }
.wz-step.wz-in-next { animation: wz-next .45s var(--ease) both; }
.wz-step.wz-in-back { animation: wz-back .45s var(--ease) both; }
@keyframes wz-next { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes wz-back { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.wz .choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
.wz .choice-row span { min-height: 64px; font-size: 16px; flex-direction: column; gap: 4px; }
.wz .choice-row span small { font-weight: 400; font-size: 13px; color: var(--grey); }
.wz .choice-row input:checked + span small { color: rgba(255,255,255,.8); }
.wz-help { margin-top: 16px; font-size: 14px; color: var(--grey); }
.wz-help a { color: var(--black); }
.wz-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.wz .field input[type="text"], .wz .field input[type="tel"], .wz .field input[type="email"], .wz .field textarea { width: 100%; }
.wz-review { margin: 0; border-top: 1.5px solid var(--black); }
.wz-review div { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.wz-review dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.wz-review dd { margin: 0; font: 400 1.08rem/1.4 var(--serif); }
.wz-review dd.is-empty { color: var(--grey); font: italic 400 1rem/1.4 var(--serif); }
.wz-review button { background: none; border: 0; padding: 0; font: 700 13px/1.4 var(--sans); cursor: pointer; border-bottom: 1.5px solid currentColor; }
.wz-review button:hover { color: var(--blue); }
.wz-error { min-height: 1.4em; margin-top: 16px; font-weight: 700; color: var(--black); }
.wz-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.wz-nav [data-wz-back][hidden] + * { margin-left: auto; }
.wz-nav .btn[hidden] { display: none; }

/* What to have ready */
.cx-ready { background: var(--tint); }
.ready-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.ready-item { background: var(--white); padding: 24px 22px; border-top: 3px solid var(--blue); }
.js .ready-item.reveal { transition-delay: calc(var(--i) * 70ms); }
.ready-n { font: 400 2.2rem/1 var(--serif); color: var(--blue); display: block; margin-bottom: 14px; }
.ready-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.ready-item p { font-size: .98rem; color: var(--black); }

/* Hours, area, map */
.cx-info-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cx-info h2 { margin-bottom: 22px; }
.cx-dl { margin: 0; border-top: 1.5px solid var(--black); }
.cx-dl div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.cx-dl dt { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.cx-dl dd { margin: 0; font: 400 1.15rem/1.4 var(--serif); }
.cx-map { position: relative; aspect-ratio: 4 / 3; background: var(--tint); display: grid; place-items: center; }
.cx-map .dim { position: absolute; left: 8%; right: 8%; top: 26px; height: 1px; background: var(--grey); }
.cx-map .dim::before, .cx-map .dim::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--grey); }
.cx-map .dim::before { left: 0; } .cx-map .dim::after { right: 0; }
.cx-map .dim > span { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); background: var(--tint); padding: 0 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.cx-faq { padding-top: 0; }

@media (max-width: 1100px) { .ready-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .cx-hero-grid, .cx-info-grid { grid-template-columns: 1fr; }
  .cx-cards { grid-template-columns: 1fr; }
  .ready-list { grid-template-columns: 1fr 1fr; }
  .cx-brief .contact-visual { order: 1; }
}
@media (max-width: 600px) {
  .wz-fields { grid-template-columns: 1fr; }
  .wz-progress .wz-t { display: none; }
  .wz-progress button { justify-content: center; }
  .ready-list { grid-template-columns: 1fr; }
  .wz-review div { grid-template-columns: 1fr auto; }
  .wz-review dt { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .wz-step.wz-in-next, .wz-step.wz-in-back { animation: none; } }
/* Wizard is a single column, and hidden steps must stay hidden despite .field/.choice display rules */
.brief.wz { display: block; }
.wz .wz-step[hidden] { display: none !important; }
.wz .wz-step:not([hidden]) { display: block; }

/* ---------- Band X-ray: the finished room is the photo; a lens follows the cursor
   and shows the framing, pipes and wiring behind the same walls (same camera). ---------- */
@property --xr { syntax: '<length>'; inherits: true; initial-value: 0px; }
.band-xray { --xr: 0px; --mx: -999px; --my: -999px; --sr: calc(var(--xr) * 1.2); transition: --xr .55s var(--ease); }
.band-xray.is-scanning { --xr: clamp(150px, 15vw, 240px); }
.band-xray-layer {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, #000 calc(var(--xr) * .86), transparent var(--xr));
          mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, #000 calc(var(--xr) * .86), transparent var(--xr));
}
/* faint scan lines and a blue cast so the lens reads as x-ray, not just a hole */
.band-xray-layer::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 87, 184, .10) 0 1px, transparent 1px 4px),
    radial-gradient(circle at var(--mx) var(--my), transparent 0, transparent calc(var(--xr) * .6), rgba(0, 87, 184, .28) var(--xr));
}
.band-xray .band-finder {
  width: calc(var(--xr) * 1.72); height: calc(var(--xr) * 1.72);
  margin: calc(var(--xr) * -.86) 0 0 calc(var(--xr) * -.86);
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(0,87,184,.5), 0 0 40px rgba(0,87,184,.45), inset 0 0 30px rgba(0,87,184,.35);
}
.band-hint {
  display: flex; align-items: center; gap: 12px; margin-top: 22px;
  font-size: .98rem !important; font-weight: 700; color: var(--white);
}
.band-hint::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--white); box-shadow: 0 0 0 4px rgba(0,87,184,.45);
}
@media (max-width: 767px) { .band-xray.is-scanning { --xr: 120px; } }
@media (prefers-reduced-motion: reduce) { .band-xray { transition: none; } }

/* =====================================================================
   Service areas: city pages (.ar-*) and the hub (.hub-*, .hm)
   ===================================================================== */
.ar-hero { position: relative; overflow: hidden; color: var(--white); background: var(--black);
  padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); min-height: min(92vh, 900px); display: flex; flex-direction: column; justify-content: center; }
.ar-hero-media { position: absolute; inset: -8% 0; }
.ar-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--shift, 0px), 0) scale(1.04); }
.ar-hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(17,17,17,.86) 0%, rgba(17,17,17,.68) 42%, rgba(17,17,17,.3) 100%),
  linear-gradient(0deg, rgba(17,17,17,.7) 0%, rgba(17,17,17,0) 38%); }
.ar-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ar-hero .breadcrumbs a, .ar-hero .breadcrumbs [aria-current] { color: var(--white); }
.ar-hero .breadcrumbs a { border-color: rgba(255,255,255,.45); }
.ar-hero .breadcrumbs li + li::before { color: rgba(255,255,255,.6); }
.ar-hero .kicker { color: rgba(255,255,255,.85); }
.ar-hero .kicker-sep { background: rgba(255,255,255,.6); }
.ar-hero h1 { color: var(--white); font-size: clamp(2.4rem, 1.5rem + 3vw, 4.4rem); line-height: 1.04; max-width: 15ch; text-wrap: balance; }
.ar-hero .lede { color: rgba(255,255,255,.92); max-width: 34em; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.ar-hero .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.ar-hero .text-link { color: var(--white); }
.ar-map-card { margin: 0; background: rgba(255,255,255,.95); color: var(--black); padding: 16px 16px 12px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.ar-map-card figcaption { font-size: 12px; color: var(--black); margin-top: 8px; }
.am { display: block; width: 100%; height: auto; aspect-ratio: 1; background: var(--tint); }
.am text, .hm text { font-family: Arial, sans-serif; paint-order: stroke; stroke-linejoin: round; }
.am-grid line { stroke: rgba(17,17,17,.07); stroke-width: 1; }
.am-line { stroke: var(--blue); stroke-width: 1.8; fill: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .am-line { stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease) calc(var(--d) * .14s + .25s); }
.js .is-drawn .am-line { stroke-dashoffset: 0; }
.am-dot circle { fill: var(--white); stroke: var(--grey); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease); }
.am-dot text { font-size: 11px; fill: var(--grey); stroke: var(--tint); stroke-width: 3px; opacity: 0; transition: opacity .2s; }
.am-dot:hover text { opacity: 1; }
.am-near circle { fill: var(--blue); stroke: var(--white); stroke-width: 2; }
.am-near text { opacity: 1; fill: var(--black); font-size: 12.5px; font-weight: 700; }
a.am-near:hover circle, a.am-near:focus-visible circle { transform: scale(1.4); }
a.am-near:hover text { fill: var(--blue); }
.am-here circle { fill: var(--black); stroke: var(--white); stroke-width: 2.5; }
.am-here .am-pulse { fill: var(--blue); stroke: none; opacity: .35; transform-box: fill-box; transform-origin: center; }
.am-here text { font: 700 15px Georgia, serif; fill: var(--black); stroke: var(--tint); stroke-width: 4px; }
.am-north path { fill: var(--black); }
.am-north text, .am-scale text { font-size: 10px; font-weight: 700; fill: var(--black); stroke: var(--tint); stroke-width: 3px; }
.am-scale line { stroke: var(--black); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .am-here .am-pulse { animation: amPulse 2.4s var(--ease) infinite; }
}
@keyframes amPulse { 0% { transform: scale(.8); opacity: .5; } 100% { transform: scale(3); opacity: 0; } }

.ar-strip { position: relative; z-index: 2; margin-top: clamp(28px, 4vw, 48px); }
.ar-strip-label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.ar-strip-rail { position: relative; height: 2px; background: rgba(255,255,255,.3); margin: 44px 0 12px; }
.ar-strip-rail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--pos); background: var(--white); transform-origin: left; }
.ar-strip-rail i { position: absolute; top: -4px; width: 1.5px; height: 10px; background: rgba(255,255,255,.55); }
.ar-strip-rail b { position: absolute; top: -8px; left: var(--pos); width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--blue); border: 2px solid var(--white); }
.ar-strip-rail b span { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 13px Arial, sans-serif; color: var(--white); }
.ar-strip-ends { position: relative; height: 16px; font-size: 12px; color: rgba(255,255,255,.8); }
.ar-strip-ends span { position: absolute; top: 0; left: 0; }
.ar-strip-ends span:last-child { left: auto; right: 0; }
.ar-strip-ends span[style] { transform: translateX(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .js .ar-strip-rail::before { transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
  .js .ar-strip-rail b { left: 0; transition: left 1.4s var(--ease) .2s; }
  .js .ar-strip.is-in .ar-strip-rail::before { transform: none; }
  .js .ar-strip.is-in .ar-strip-rail b { left: var(--pos); }
}
.ar-note { position: absolute; z-index: 2; right: var(--gutter); bottom: 14px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.8); }

.ar-intro { max-width: 44em; font-size: 1.08rem; margin-bottom: 34px; }
.ar-hoods { margin-top: 30px; }
.ar-hoods-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.ar-hoods ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ar-hoods li { border: 1px solid var(--rule); padding: 7px 13px; font-size: 14px; background: var(--white); }

/* Housing eras: a timeline of tabs */
.eras-rail { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.eras-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--rule); }
.eras-fill { position: absolute; left: 0; top: 11px; height: 2px; width: var(--ef, 0%); background: var(--blue); transition: width .5s var(--ease); }
.eras-rail button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 0 14px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--grey); }
.era-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--grey); background: var(--white); transition: all .3s var(--ease); }
.era-label { font-size: 14px; font-weight: 700; letter-spacing: .03em; line-height: 1.3; }
.eras-rail button:hover { color: var(--black); }
.eras-rail button:hover .era-dot { border-color: var(--black); }
.eras-rail [aria-selected="true"] { color: var(--black); }
.eras-rail [aria-selected="true"] .era-dot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(0,87,184,.15); }
.era-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: 34px 0 10px; border-top: 1px solid var(--rule); margin-top: 8px; }
.era-panel + .era-panel { margin-top: 0; }
.era-num { font: 400 clamp(3rem, 2rem + 3vw, 5rem)/.9 Georgia, serif; color: var(--blue); }
.era-panel h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin-bottom: 12px; }
.era-panel p { font-size: 1.08rem; max-width: 42em; }
.js .era-panel:not(.is-active) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .era-panel.is-active { animation: eraIn .5s var(--ease); }
}
@keyframes eraIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Local factors: sticky heading, list lights up as it scrolls */
.ar-local { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); }
.ar-local-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.factor-meter { position: relative; height: 3px; background: var(--rule); margin: 28px 0 12px; max-width: 320px; }
.factor-meter span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--fm, 25%); background: var(--blue); transition: width .5s var(--ease); }
.factor-count { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--grey); }
.factor-count span { color: var(--black); }
.factor-list { list-style: none; margin: 0; padding: 0; }
.factor { position: relative; padding: 34px 0 34px 26px; border-top: 1px solid var(--rule); }
.factor:last-child { border-bottom: 1px solid var(--rule); }
.factor::before { content: ""; position: absolute; left: 0; top: 34px; bottom: 34px; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.factor.is-active::before { transform: none; }
.factor h3 { transition: color .3s; }
/* Inactive items keep full-contrast body text; only the heading steps back (grey passes AA on white) */
.js .factor:not(.is-active) h3 { color: var(--grey); }
.factor-num { display: block; font: 400 1.05rem Georgia, serif; color: var(--blue); margin-bottom: 10px; }
.factor h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); margin-bottom: 12px; }
.factor p { font-size: 1.06rem; }

/* If / then matrix */
.ifthen-wrap { border-top: 3px solid var(--black); }
.ifthen { width: 100%; border-collapse: collapse; }
.ifthen th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); padding: 16px 24px 16px 0; border-bottom: 1px solid var(--black); }
.ifthen td { padding: 24px 28px 24px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 1.05rem; transition: background .25s, padding .25s var(--ease); }
.ifthen td:first-child { font: 400 1.18rem/1.45 Georgia, serif; width: 42%; }
.ifthen tr:hover td { background: var(--tint); }
.ifthen tr:hover td:first-child { padding-left: 14px; }
.js .ifthen .reveal { transition-delay: calc(var(--i) * 80ms); }

/* Services list with a picture that follows the pointer */
.ar-svcs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.ar-svc { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.ar-svc-num { font: 400 1.1rem Georgia, serif; color: var(--blue); padding-top: 8px; }
.ar-svc h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin-bottom: 10px; transition: transform .4s var(--ease), color .3s; }
.ar-svc:hover h3 { transform: translateX(8px); color: var(--blue); }
.ar-svc p { font-size: 1.06rem; max-width: 46em; }
.ar-svc p a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }
.js .ar-svc.reveal { transition-delay: calc(var(--i) * 70ms); }
.svc-float { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 4 / 3; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate3d(var(--fx, 0), var(--fy, 0), 0) scale(.85); transition: opacity .25s var(--ease), scale .25s;
  box-shadow: 0 30px 60px -20px rgba(17,17,17,.45); }
.svc-float.is-on { opacity: 1; scale: 1.18; }
.svc-float img { width: 100%; height: 100%; object-fit: cover; }
.related-note { color: var(--black); font-size: 14px; margin: -12px 0 20px; }

/* Hub */
.hub { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.hub h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 4.2rem); line-height: 1.05; max-width: 17ch; text-wrap: balance; }
.hub .lede { max-width: 36em; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.hub-body p { margin-top: 1em; max-width: 40em; }
.hub-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 28px; }
.hub-filter button { border: 1.5px solid var(--black); background: var(--white); color: var(--black); padding: 10px 15px; font: 700 13px Arial, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.hub-filter button:hover { background: var(--tint); }
.hub-filter [aria-pressed="true"] { background: var(--black); color: var(--white); }
.hub-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 44px; }
.hub-group { transition: opacity .3s var(--ease); }
.hub-group.is-dim { opacity: .22; }
.hub-group h2 { font-size: 1.25rem; padding-bottom: 10px; border-bottom: 2px solid var(--black); margin-bottom: 6px; }
.hub-group ul { list-style: none; margin: 0; padding: 0; }
.hub-group li a, .hub-group li span { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 1.05rem; transition: color .2s, padding .25s var(--ease); }
.hub-group li a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .5; }
.hub-group li a:hover, .hub-group li a.is-hot { color: var(--blue); padding-left: 8px; }
.hub-group li span { color: var(--grey); }
.hub-cta { margin-top: 40px; }
.hub-map { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; background: var(--tint); padding: 18px; border-top: 3px solid var(--blue); display: flex; flex-direction: column; align-items: center; }
.hm { display: block; width: auto; height: calc(100vh - var(--header-h) - 120px); max-width: 100%; }
.hm-dot { transition: opacity .3s var(--ease); }
.hm-dot circle { fill: var(--white); stroke: var(--black); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease); }
a.hm-dot circle { fill: var(--blue); stroke: var(--white); stroke-width: 2; }
.hm-dot text { font-size: 17px; fill: var(--black); stroke: var(--tint); stroke-width: 4.5px; opacity: 0; transition: opacity .2s; }
.hm-big text { opacity: 1; font-weight: 700; }
.hm-dot:hover text, .hm-dot.is-hot text, .hm-dot:focus-visible text { opacity: 1; }
.hm-dot:hover circle, .hm-dot.is-hot circle { transform: scale(1.6); }
.hm-dot.is-dim { opacity: .18; }
.hub-map figcaption { font-size: 12px; margin-top: 10px; align-self: stretch; }

@media (max-width: 899px) {
  .ar-hero { min-height: 0; padding-top: 32px; }
  .ar-hero-grid { grid-template-columns: 1fr; }
  .ar-map-card { max-width: 440px; width: 100%; }
  .ar-local { grid-template-columns: 1fr; gap: 8px; }
  .ar-local-head { position: static; }
  .js .factor:not(.is-active) h3 { color: inherit; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-map { position: static; }
  .hm { height: auto; width: 100%; max-width: 360px; }
}
@media (max-width: 599px) {
  .ar-hero-scrim { background: linear-gradient(0deg, rgba(17,17,17,.82) 0%, rgba(17,17,17,.72) 100%); }
  .ar-strip-ends span[style] { display: none; }
  .era-panel { grid-template-columns: 1fr; gap: 6px; }
  .era-num { font-size: 2.4rem; }
  .era-label { font-size: 12px; }
  .ifthen thead { display: none; }
  .ifthen tr, .ifthen td { display: block; width: auto !important; }
  .ifthen td:first-child { padding-bottom: 6px; border-bottom: 0; }
  .ifthen td:last-child { padding-top: 0; }
  .ar-svc { grid-template-columns: 1fr; gap: 4px; }
  .hub-groups { grid-template-columns: 1fr; }
}

/* Four nav items: keep labels on one line and tighten the header before the mobile layout takes over */
.primary-nav a, .nav-trigger, .header-actions .btn { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 961px) {
  .primary-nav ul { gap: 18px; }
  .primary-nav a, .nav-trigger { font-size: 14px; }
  .header-actions { gap: 14px; }
  .header-actions .btn { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 1060px) and (min-width: 961px) {
  .brand img { width: 240px; height: auto; } /* brand minimum; never smaller */
}
.ar-strip.is-start .ar-strip-rail b span { left: -2px; transform: none; }
.ar-strip.is-end .ar-strip-rail b span { left: auto; right: -2px; transform: none; }
