/* Noble Contractor LLC: site.css v2 "Layer by Layer" (one stylesheet).
   Base: Peak DS (peak.css) reset, spacing, radius, motion and layout tokens, trimmed to what this site uses.
   Then the [data-brand="noble"] override layer (the only place hex values live), then page styles that use tokens only.
   Direction: Luxury Noir. Near-black, gold foil, platinum. Real footage under a dark scrim, framed like the business card. */

/* ---------- 0. Fonts (preloaded in index.html) ---------- */
@font-face { font-family: "Cormorant SC"; src: url("../fonts/cormorant-sc-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-var.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- 1. Peak DS tokens ---------- */
:root {
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(88px, 11vw, 160px);
  --r-sm: 2px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --d-fast: 150ms; --d-base: 250ms; --d-slow: 500ms;
  --container: 1320px;
  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 40px);
  --bar-h: 76px;       /* mobile action bar height (incl. its padding) */
  --head-h: 76px;      /* header height */
  color-scheme: dark;
}

/* ---------- 2. Brand layer: Noble (accents, fonts, backgrounds only) ---------- */
[data-brand="noble"] {
  --noble-black: #0A0A0B;
  --noble-char: #141416;
  --gold: #D4AF37;
  --foil-1: #F8E4A0; --foil-2: #E3BB4A; --foil-3: #C4922A;
  --foil-4: #E6C25C; --foil-5: #B3841F; --foil-6: #7F5A10;
  --plat-1: #FFFFFF; --plat-2: #A9AFB7;
  --body-text: #CFCFD2;
  --muted-text: #8D8D93;
  --alert: #FF7A6B;

  --bg: var(--noble-black);
  --surface: var(--noble-char);
  --surface-2: color-mix(in oklab, var(--noble-char) 90%, var(--plat-1));
  --ink: var(--plat-1);
  --ink-2: var(--body-text);
  --ink-3: var(--muted-text);
  --accent: var(--gold);
  --on-accent: var(--noble-black);
  --line: color-mix(in oklab, var(--gold) 20%, transparent);
  --line-strong: color-mix(in oklab, var(--gold) 46%, transparent);
  --bad: var(--alert);
  /* plain fallbacks for browsers without color-mix() (iOS before 16.2); see the @supports block at the end */
  --scrim-30: rgba(10, 10, 11, .3); --scrim-60: rgba(10, 10, 11, .6); --scrim-80: rgba(10, 10, 11, .8); --scrim-95: rgba(10, 10, 11, .95);

  --font-display: "Cormorant SC", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-body: clamp(1.0625rem, 1.01rem + .22vw, 1.1875rem);
  --t-label: .8125rem;
  --t-lg: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 var(--t-body)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0 0 var(--s-4); max-width: var(--measure); text-wrap: pretty; }
a { color: inherit; text-underline-offset: .22em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--on-accent); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html:has(dialog[open]) { overflow: hidden; }

.skip { position: absolute; left: var(--s-4); top: -80px; z-index: 100; background: var(--gold); color: var(--on-accent); padding: 12px 18px; font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s-4); }

/* ---------- 4. Type ---------- */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: .09em; line-height: 1.04; color: var(--ink); }
.plat {
  color: var(--plat-1);
  background: linear-gradient(180deg, var(--plat-1) 18%, var(--plat-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-bottom: .1em;
}
h2.display { font-size: clamp(2.125rem, 1.1rem + 4.4vw, 4.25rem); letter-spacing: .1em; }
.label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 .9em;
  margin: 0 0 var(--s-4); max-width: none;
  font: 500 var(--t-label)/1.5 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.dot { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex: none; }
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head--center { text-align: center; }
.sec-head--center .label { justify-content: center; }
.sec-head--center p { margin-inline: auto; }
.inline-tel { color: var(--foil-2); text-decoration-thickness: 1px; font-weight: 500; white-space: nowrap; padding: 11px 4px; margin: 0 -4px; }
.inline-tel:hover { color: var(--foil-1); }
.confirm { display: inline-block; margin: 0; max-width: none; padding: 8px 12px; border: 1px dashed var(--line-strong); color: var(--gold); font: 500 .8125rem/1.4 var(--font-body); letter-spacing: .06em; }

/* ---------- 5. Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: var(--r-sm);
  font: 500 .8125rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; text-align: center;
  text-decoration: none; cursor: pointer; background: none; color: var(--ink);
  transition: transform var(--d-base) var(--ease), background-color var(--d-base), border-color var(--d-base), filter var(--d-base), box-shadow var(--d-base) var(--ease);
}
.btn--gold {
  background: linear-gradient(120deg, var(--foil-1), var(--foil-2) 34%, var(--foil-3) 68%, var(--foil-4));
  color: var(--on-accent); font-weight: 600;
  box-shadow: 0 14px 36px -18px color-mix(in oklab, var(--gold) 80%, transparent);
}
.btn--gold:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn--line { border-color: var(--line-strong); }
.btn--line:hover { border-color: var(--gold); background: color-mix(in oklab, var(--gold) 9%, transparent); color: var(--plat-1); }
.btn:active { transform: translateY(0) scale(.985); }
.link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--foil-2); text-decoration: none;
  font: 500 .875rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong); transition: color var(--d-base), border-color var(--d-base);
}
.link .ico { transition: transform var(--d-base) var(--ease); }
.link:hover { color: var(--foil-1); border-color: var(--gold); }
.link:hover .ico { transform: translateX(5px); }

/* ---------- 6. Header ---------- */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 40; height: var(--head-h); transition: background-color var(--d-base); }
.site-head__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: block; line-height: 0; padding: 4px 0; }
.brand img { height: 36px; width: auto; }
.nav, .head-phone { display: none; }
.nav { gap: clamp(18px, 2.4vw, 36px); }
.nav a { position: relative; padding: 10px 0; text-decoration: none; color: var(--ink-2); font: 500 .75rem/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; transition: color var(--d-base); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--d-base) var(--ease); }
.nav a:hover { color: var(--plat-1); }
.nav a:hover::after { transform: scaleX(1); }
.head-phone { align-items: center; gap: 10px; min-height: 44px; color: var(--foil-2); text-decoration: none; font: 500 .9375rem/1 var(--font-body); letter-spacing: .14em; white-space: nowrap; }
.head-phone:hover { color: var(--foil-1); }
@media (min-width: 900px) {
  .brand img { height: 44px; }
  .nav, .head-phone { display: flex; }
  .site-head { position: fixed; }
  .site-head.is-stuck { background: color-mix(in oklab, var(--bg) 95%, transparent); box-shadow: 0 1px 0 var(--line); }
  html { scroll-padding-top: var(--head-h); }
}

/* ---------- 7. Media frame: gold hairline, corner ticks, dark scrim, gentle grade ---------- */
.vid {
  --tk: linear-gradient(var(--gold), var(--gold));
  position: relative; display: block; margin: 0; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 9; background: var(--surface); border: 1px solid var(--line-strong);
}
.vid--v { aspect-ratio: 9 / 16; }
.vid--p { aspect-ratio: 3 / 4; }
.vid > img, .vid > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: saturate(.92) contrast(1.04); }
.vid > video { opacity: 0; transition: opacity .6s var(--ease); }
.vid.is-live > video { opacity: 1; }
.vid::after { /* scrim: reads black and gold, not stock sunny */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--gold) 10%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in oklab, var(--noble-black) 22%, transparent), color-mix(in oklab, var(--noble-black) 8%, transparent) 38%, color-mix(in oklab, var(--noble-black) 76%, transparent));
}
.vid::before { /* corner ticks */
  content: ""; position: absolute; inset: 8px; z-index: 2; pointer-events: none; background-repeat: no-repeat;
  background-image: var(--tk), var(--tk), var(--tk), var(--tk), var(--tk), var(--tk), var(--tk), var(--tk);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-size: 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px;
}
.vid__cap, .tile__cap {
  position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 16px; margin: 0; max-width: none;
  font: 500 .8125rem/1.4 var(--font-body); letter-spacing: .1em; color: var(--ink);
}
.vplay {
  position: absolute; z-index: 5; left: 50%; top: 50%; translate: -50% -50%; display: none; place-items: center;
  width: 64px; height: 64px; padding: 0; border: 1px solid var(--gold); border-radius: 50%; cursor: pointer;
  background: color-mix(in oklab, var(--bg) 72%, transparent); color: var(--foil-1);
  transition: background-color var(--d-base), transform var(--d-base) var(--ease);
}
.vplay:hover { background: color-mix(in oklab, var(--gold) 28%, var(--bg)); }
.vplay .ico { fill: currentColor; stroke-width: 1.2; }
.is-manual > .vplay { display: grid; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100vh; min-height: 100svh; padding: calc(var(--head-h) + 24px) 0 0;
}
.hero__media { position: absolute; inset: 0; z-index: -3; background: var(--bg); }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; filter: saturate(.9) contrast(1.05); }
.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 62%, transparent), transparent 22%),
    linear-gradient(0deg, var(--bg), color-mix(in oklab, var(--bg) 78%, transparent) 30%, color-mix(in oklab, var(--bg) 40%, transparent) 62%, color-mix(in oklab, var(--bg) 52%, transparent)),
    radial-gradient(70% 60% at 85% 30%, color-mix(in oklab, var(--gold) 9%, transparent), transparent);
}
.hero__in { padding-top: var(--s-6); }
.hero__label { margin-bottom: var(--s-3); }
.hero__h1 { font-size: clamp(2.5rem, 1.2rem + 6.2vw, 3.4rem); letter-spacing: .075em; line-height: 1.02; max-width: 15ch; }
.hero__h1 .ln { display: block; }
.hero__lede { margin: var(--s-4) 0 var(--s-5); max-width: 36ch; font-size: var(--t-lg); line-height: 1.5; color: var(--ink); }
.hero__cta { display: grid; gap: var(--s-3); max-width: 380px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: var(--s-5); font: 500 .75rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.trust li { display: flex; align-items: center; }
.trust li + li::before { content: ""; width: 4px; height: 4px; margin: 0 14px; background: var(--gold); transform: rotate(45deg); flex: none; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-5) calc(var(--bar-h) + var(--s-4) + env(safe-area-inset-bottom)); }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; margin: 0; padding: 0 14px; max-width: none;
  border: 1px solid var(--line-strong); background: color-mix(in oklab, var(--bg) 62%, transparent);
  font: 500 .6875rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--gold); }
.cue, .mtoggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; color: var(--foil-2); text-decoration: none; background: none; border: 0; cursor: pointer;
  font: 500 .75rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; transition: color var(--d-base);
}
.cue:hover, .mtoggle:hover { color: var(--foil-1); }
.cue .ico { stroke-width: 1.4; }
.hero__ctrl { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.hero > .vplay { left: auto; top: auto; right: var(--gutter); bottom: calc(var(--bar-h) + 76px); translate: none; width: 56px; height: 56px; }
.hero.is-manual > .vplay { display: grid; }

@media (max-width: 639px) {
  .hero__ctrl .lbl { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero__ctrl .cue, .hero__ctrl .mtoggle { justify-content: center; min-width: 44px; padding: 0; }
  .chip { letter-spacing: .12em; }
}
@media (min-width: 640px) { .hero__ctrl { gap: var(--s-5); } }

/* decorative roofline: concentric 30 degree chevrons, pure CSS, fades out from the apex */
.roofline { position: absolute; pointer-events: none; --p: 11.26px; --rl: color-mix(in oklab, var(--gold) 50%, transparent); -webkit-mask-image: radial-gradient(ellipse 52% 100% at 50% 0, black 6%, transparent); mask-image: radial-gradient(ellipse 52% 100% at 50% 0, black 6%, transparent); }
.roofline::before, .roofline::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 50%;
  background: repeating-linear-gradient(330deg, transparent 0 calc(var(--p) - 1.2px), var(--rl) calc(var(--p) - .6px), transparent var(--p));
}
.roofline::before { left: 0; }
.roofline::after { right: 0; scale: -1 1; }
.hero__rl { z-index: -1; top: 0; right: -18vw; width: min(1100px, 100vw); height: 72svh; opacity: .8; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__h1 .ln, .js .hero__label, .js .hero__lede, .js .hero__cta, .js .trust, .js .hero__foot { animation: rise 1.2s var(--ease) both; }
  .js .hero__h1 .ln:nth-child(1) { animation-delay: .15s; }
  .js .hero__h1 .ln:nth-child(2) { animation-delay: .32s; }
  .js .hero__lede { animation-delay: .5s; }
  .js .hero__cta { animation-delay: .62s; }
  .js .trust { animation-delay: .74s; }
  .js .hero__foot { animation-delay: .9s; }
  .chip__dot { animation: ping 2.4s ease-out infinite; }
  .cue .ico { animation: bob 2.2s var(--ease) infinite; }
  .js .hero__rl { animation: roof 2.4s var(--ease) .2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.45em); } }
@keyframes roof { from { opacity: 0; scale: 1 .8; transform-origin: 50% 0; } }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes bob { 50% { transform: translateY(4px); } }

/* short phones: keep the h1, line and both buttons above the action bar */
@media (max-width: 639px) and (max-height: 780px) {
  :root { --head-h: 64px; }
  .hero__in { padding-top: var(--s-3); }
  .hero__label { display: none; }
  .hero__h1 { font-size: clamp(2.125rem, .8rem + 6vw, 2.5rem); }
  .hero__lede { font-size: 1rem; line-height: 1.45; margin-block: var(--s-3) var(--s-4); }
  .hero__cta { gap: var(--s-2); }
  .trust { margin-top: var(--s-3); letter-spacing: .14em; font-size: .6875rem; }
  .hero__foot { padding-top: var(--s-3); }
}
@media (min-width: 640px) {
  .hero__h1 { font-size: clamp(3rem, 1.2rem + 5vw, 4.25rem); }
  .hero__cta { grid-auto-flow: column; grid-auto-columns: max-content; max-width: none; gap: var(--s-4); }
}
@media (min-width: 900px) {
  .hero { padding-top: calc(var(--head-h) + 32px); }
  .hero__h1 { font-size: clamp(3.25rem, 1rem + 4.4vw, 5rem); line-height: 1; max-width: none; }
  .hero__lede { margin: var(--s-5) 0 var(--s-6); max-width: 40ch; }
  .trust { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); max-width: 560px; }
  .hero__foot { padding-block: var(--s-6) var(--s-6); }
  .hero > .vplay { bottom: 110px; }
  .hero__scrim {
    background:
      linear-gradient(180deg, color-mix(in oklab, var(--bg) 62%, transparent), transparent 24%),
      linear-gradient(90deg, color-mix(in oklab, var(--bg) 94%, transparent), color-mix(in oklab, var(--bg) 70%, transparent) 38%, color-mix(in oklab, var(--bg) 8%, transparent) 76%),
      linear-gradient(0deg, var(--bg), transparent 34%);
  }
  .hero__rl { right: -6vw; }
}
@media (min-width: 900px) and (max-height: 760px) { .hero__lede { margin-block: var(--s-4); } .trust { margin-top: var(--s-5); } }

/* ---------- 9. The Roof, Layer by Layer (signature) ---------- */
.layers { position: relative; padding-top: var(--section); background: radial-gradient(60% 40% at 80% 18%, color-mix(in oklab, var(--gold) 7%, transparent), transparent), var(--bg); }
.layers__head { margin-bottom: clamp(32px, 5vw, 64px); }
.layers__lede { margin: var(--s-5) 0 0; max-width: 40ch; font-size: var(--t-lg); color: var(--ink-2); }
.layers__note { margin: clamp(40px, 5vw, 72px) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9375rem; max-width: none; }
.layers__stack { display: grid; gap: clamp(28px, 5vw, 56px); }
.layer { display: grid; background: var(--surface); border: 1px solid var(--line); }
.layer__media { padding: var(--s-3); }
.layer__text { padding: var(--s-3) var(--s-5) var(--s-6); }
.layer__n {
  margin: 0 0 var(--s-2); font: 700 clamp(3.5rem, 3rem + 3vw, 5.5rem)/.9 var(--font-display); letter-spacing: .04em;
  background: linear-gradient(180deg, var(--foil-1), var(--foil-3) 60%, var(--foil-5)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold);
}
.layer .label { margin-bottom: var(--s-3); }
.layer h3 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); letter-spacing: .08em; margin-bottom: var(--s-4); }
.layer__copy { max-width: 46ch; color: var(--ink-2); }
.ask { margin: var(--s-5) 0; padding: var(--s-1) 0 var(--s-1) var(--s-4); border-left: 2px solid var(--gold); color: var(--ink); max-width: 46ch; }
.ask__k { display: block; margin-bottom: 4px; font: 500 .75rem/1.4 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.clip { margin: 0; max-width: 46ch; font-size: .9375rem; line-height: 1.55; color: var(--ink-3); }
.clip b { font-weight: 500; letter-spacing: .06em; color: var(--ink-2); }

.rail { display: none; }
@media (min-width: 900px) {
  /* stacked fallback (no JS or reduced motion): media and text side by side, alternating */
  .layer { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .layer__media { padding: var(--s-5); }
  .layer__text { padding: var(--s-5) var(--s-7) var(--s-5) var(--s-3); }
  .layer:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .layer:nth-child(even) .layer__media { order: 2; }
}

/* pinned mode (html.pin: JS + wide screen + motion allowed). Native sticky; main.js only picks the active layer. */
.pin .layers__head { margin-bottom: 0; }
.pin .layers__track { --n: 5; height: calc(100svh - var(--head-h) + var(--n) * 62svh); position: relative; }
.pin .layers__stage { position: sticky; top: var(--head-h); height: calc(100svh - var(--head-h)); display: flex; align-items: center; }
.pin .layers__in { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.pin .rail { display: block; position: relative; align-self: center; height: min(56svh, 420px); }
.pin .rail ol { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.pin .rail ol::before, .pin .rail ol::after { content: ""; position: absolute; left: 50%; top: 22px; bottom: 22px; width: 1px; translate: -50% 0; background: var(--line); }
.pin .rail ol::after { background: var(--gold); transform-origin: top; transform: scaleY(var(--p, 0)); }
.rail a {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink-3);
  font: 500 .75rem/1 var(--font-body); letter-spacing: .12em; text-decoration: none; transition: background-color var(--d-base), color var(--d-base), border-color var(--d-base);
}
.rail a:hover { color: var(--plat-1); border-color: var(--gold); }
.rail a[aria-current] { background: var(--gold); border-color: var(--gold); color: var(--on-accent); font-weight: 600; }
.pin .layers__stack { display: grid; gap: 0; }
.pin .layer {
  grid-area: 1 / 1; display: none; grid-template-columns: minmax(300px, 4.4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  background: none; border: 0;
}
.pin .layer.is-on, .pin .layer.is-out { display: grid; }
.pin .layer.is-on { animation: layer-in .8s var(--ease) both; }
.pin .layer.is-out { animation: layer-out .5s var(--ease) both; pointer-events: none; }
.pin .layer:nth-child(even) { grid-template-columns: minmax(300px, 4.4fr) minmax(0, 8fr); }
.pin .layer__media, .pin .layer:nth-child(even) .layer__media { order: 2; padding: 0; }
.pin .layer__text { order: 1; padding: 0; }
.pin .layer__media .vid { max-height: calc(100svh - var(--head-h) - 96px); width: 100%; }
.pin .layer.is-on .layer__media .vid { animation: settle 1.4s var(--ease) both; }
.pin .layer.is-on .layer__text > * { animation: rise-in .9s var(--ease) both; }
.pin .layer.is-on .layer__text > :nth-child(2) { animation-delay: .06s; }
.pin .layer.is-on .layer__text > :nth-child(3) { animation-delay: .12s; }
.pin .layer.is-on .layer__text > :nth-child(4) { animation-delay: .2s; }
.pin .layer.is-on .layer__text > :nth-child(5) { animation-delay: .28s; }
.pin .layer.is-on .layer__text > :nth-child(6) { animation-delay: .36s; }
.pin .layer__n { font-size: clamp(4rem, 2rem + 5vw, 7.5rem); }
@keyframes layer-in { from { opacity: 0; } }
@keyframes layer-out { to { opacity: 0; } }
@keyframes settle { from { transform: scale(1.03); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
@media (max-height: 760px) { .pin .layer__n { font-size: clamp(3rem, 2rem + 4vw, 5rem); } .pin .ask { margin-block: var(--s-4); } .pin .layer h3 { margin-bottom: var(--s-3); } }

/* ---------- 10. Stories strip ---------- */
.stories { background: var(--surface); overflow: clip; }
.stories::before, .pillars::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent); }
.stories__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-bottom: clamp(28px, 4vw, 48px); }
.stories__lede { margin: var(--s-5) 0 0; color: var(--ink-2); }
.arrows { display: none; gap: var(--s-3); flex: none; }
.arrow { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--line-strong); background: none; color: var(--foil-2); cursor: pointer; transition: background-color var(--d-base), border-color var(--d-base), opacity var(--d-base); }
.arrow:hover:not(:disabled) { border-color: var(--gold); background: color-mix(in oklab, var(--gold) 10%, transparent); }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow--prev .ico { scale: -1 1; }
.reel {
  --pad: max(var(--gutter), (100% - var(--container)) / 2 + var(--gutter));
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 8px var(--pad) 28px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.reel > li { flex: none; width: 72vw; max-width: 300px; scroll-snap-align: start; }
.tile { display: block; color: inherit; text-decoration: none; }
.tile .vid { transition: border-color var(--d-base); }
.tile:hover .vid { border-color: var(--gold); }
.tile:focus-visible { outline: none; }
.tile:focus-visible .vid { outline: 2px solid var(--gold); outline-offset: 3px; }
.tile__go { position: absolute; z-index: 3; right: 16px; top: 16px; width: 30px; height: 30px; padding: 7px; fill: currentColor; stroke-width: 1; color: var(--foil-1); border: 1px solid var(--line-strong); border-radius: 50%; background: color-mix(in oklab, var(--bg) 55%, transparent); }
.tile__cap { font-size: .875rem; letter-spacing: .06em; }
@media (min-width: 700px) { .reel > li { width: 260px; } }
@media (min-width: 900px) { .arrows { display: flex; } }

/* ---------- 11. Services: editorial rows ---------- */
.svc-list { border-bottom: 1px solid var(--line); }
.svc { display: grid; gap: var(--s-6); padding-block: clamp(40px, 7vw, 88px); border-top: 1px solid var(--line); }
.svc__top { display: flex; align-items: center; gap: var(--s-5); margin-bottom: var(--s-5); }
.svc__idx { font: 300 .9375rem/1 var(--font-body); letter-spacing: .3em; color: var(--gold); }
.badge { width: 88px; height: auto; overflow: visible; }
.badge polygon { fill: color-mix(in oklab, var(--gold) 8%, transparent); stroke: url(#g-foil); stroke-width: 2.4; stroke-linejoin: miter; }
.badge__ico { fill: none; stroke: var(--foil-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc__title { font-size: clamp(2.5rem, 1.1rem + 7vw, 5rem); letter-spacing: .12em; line-height: 1; margin-bottom: var(--s-4); }
.svc__body p { max-width: 42ch; margin-bottom: var(--s-5); color: var(--ink-2); }
.svc__media .vid { aspect-ratio: 16 / 10; }
.svc__media--photo .vid { aspect-ratio: 4 / 5; }
.svc__media--photo .vid > img { object-position: 50% 62%; }
.svc__say { margin: 0; padding-left: var(--s-5); border-left: 2px solid var(--gold); max-width: 22ch; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.12; letter-spacing: .05em; color: var(--ink); }
.strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 24px; }
.strip li:nth-child(even) { margin-top: 28px; }
.strip .vid { aspect-ratio: 3 / 4; }
.strip .vid__cap { left: 12px; right: 10px; bottom: 12px; font-size: .75rem; letter-spacing: .06em; }
@media (min-width: 900px) {
  .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: clamp(32px, 6vw, 96px); }
  .svc:nth-child(even) .svc__body { order: 2; }
  .svc--siding { grid-template-columns: 1fr; }
  .svc--siding:nth-child(even) .svc__body { order: 0; }
  .svc--siding .svc__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
  .svc--siding .svc__top { grid-column: 1 / -1; }
  .svc--siding .svc__title { grid-column: 1; margin: 0; }
  .svc--siding .svc__body p, .svc--siding .svc__body .link { grid-column: 2; }
  .svc--siding .svc__body p { grid-row: 2; margin: 0 0 var(--s-4); }
  .svc--siding .svc__body .link { grid-row: 3; justify-self: start; }
  .svc--siding .svc__body .svc__title { grid-row: 2 / 4; align-self: end; }
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding-bottom: 96px; }
  .strip li, .strip li:nth-child(even) { margin-top: calc(var(--i) * 30px); }
  .svc--interior .svc__say { justify-self: start; }
  .svc--gutters .svc__media { justify-self: center; width: min(100%, 460px); }
  .svc--gutters .svc__media--photo .vid { aspect-ratio: 4 / 5; }
}
/* the siding photos shift at slightly different speeds as they cross the screen (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .strip li { animation: shift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes shift { from { translate: 0 calc(var(--i) * 26px); } to { translate: 0 calc(var(--i) * -14px); } }

/* ---------- 12. The view from above (asymmetric mosaic) ---------- */
.above { background: var(--surface); }
.above::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent); }
.above__lede { margin: var(--s-5) 0 0; color: var(--ink-2); }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mosaic .tile, .mosaic .vid { height: 100%; }
.mosaic .vid { aspect-ratio: 3 / 4; }
.m1 { grid-column: 1 / -1; } .m1 .vid { aspect-ratio: 16 / 10; }
.m4 { grid-column: 1 / -1; } .m4 .vid { aspect-ratio: 21 / 9; }
.m5 .vid > img, .m5 .vid > video { object-position: 72% 50%; }
.m3 .vid > img, .m3 .vid > video { object-position: 66% 50%; }
.mosaic .tile__cap { left: 14px; right: 12px; bottom: 12px; font-size: .75rem; letter-spacing: .06em; }
@media (min-width: 700px) { .mosaic .tile__cap { font-size: .875rem; left: 20px; bottom: 18px; } }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 130px; gap: 16px; }
  .mosaic .vid, .m1 .vid, .m4 .vid { aspect-ratio: auto; }
  .m1 { grid-column: 1 / 8; grid-row: 1 / 4; }
  .m2 { grid-column: 8 / 13; grid-row: 1 / 4; }
  .m3 { grid-column: 1 / 5; grid-row: 4 / 7; }
  .m4 { grid-column: 5 / 10; grid-row: 4 / 6; }
  .m5 { grid-column: 10 / 13; grid-row: 4 / 7; }
  .m6 { grid-column: 5 / 10; grid-row: 6 / 7; }
  .m6 .tile__cap { bottom: 10px; }
}

/* ---------- 13. Honest questions ---------- */
.ask-sec { overflow: clip; }
.ask-sec__grid { display: grid; gap: clamp(40px, 6vw, 72px); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; padding-bottom: var(--s-6); }
.shot--2 { margin-top: 44px; }
.shot--3 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.shot--3 > img { object-position: 50% 30%; }
.shot .vid__cap { left: 12px; right: 10px; bottom: 12px; font-size: .75rem; letter-spacing: .06em; }
.qs__h { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: .08em; margin-bottom: var(--s-5); }
.qlist { counter-reset: q; border-top: 1px solid var(--line); }
.qlist li { counter-increment: q; position: relative; display: grid; grid-template-columns: 2.4rem 1fr; padding: var(--s-4) 0 var(--s-2); border-bottom: 1px solid var(--line); }
.qlist li::before { content: counter(q, decimal-leading-zero); padding-top: .2em; font: 300 .875rem/1.6 var(--font-body); letter-spacing: .2em; color: var(--gold); }
.q { margin: 0; color: var(--ink); font-size: var(--t-lg); line-height: 1.4; }
.q__ask { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--foil-2); text-decoration: none; font: 500 .75rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; }
.q__ask::after { content: ""; width: 18px; height: 1px; margin-left: 12px; background: currentColor; transition: width var(--d-base) var(--ease); }
.q__ask:hover { color: var(--foil-1); }
.q__ask:hover::after { width: 30px; }
.qs__note { margin: var(--s-4) 0 0; color: var(--ink-3); font-size: .9375rem; }
.price { margin-top: clamp(56px, 8vw, 104px); }
.price__h { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: .08em; margin-bottom: var(--s-6); }
.price__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.price__list li { position: relative; padding-top: var(--s-5); }
.price__list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); transform-origin: left; transition: transform 1.2s var(--ease) var(--rv-delay, 0s); }
.price__n { display: block; margin-bottom: var(--s-3); font: 300 .875rem/1 var(--font-body); letter-spacing: .3em; color: var(--gold); }
.price h4 { margin-bottom: var(--s-2); font: 700 1.25rem/1.2 var(--font-display); letter-spacing: .1em; color: var(--ink); text-wrap: balance; }
.price__list p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.price__note { margin: var(--s-6) 0 0; color: var(--ink-3); font-size: .9375rem; max-width: 56ch; }
@media (min-width: 700px) { .price__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .ask-sec__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); align-items: start; column-gap: clamp(48px, 6vw, 96px); }
  .shots { gap: 20px; }
  .shot--2 { margin-top: 72px; }
  .shot--3 { grid-column: 1; aspect-ratio: 3 / 4; margin-top: -24px; }
  .shot .vid__cap { font-size: .8125rem; }
  .qs { padding-top: var(--s-4); }
}

/* ---------- 14. Pillars (quiet numbered band) ---------- */
.pillars { position: relative; padding-block: clamp(64px, 8vw, 112px); background: var(--bg); border-block: 1px solid var(--line); }
.pillars::before { background: linear-gradient(90deg, var(--foil-6), var(--foil-2) 35%, var(--foil-1) 50%, var(--foil-3) 70%, var(--foil-6)); height: 3px; opacity: .85; }
.pillars__head { margin-bottom: clamp(32px, 5vw, 56px); }
.pillars__head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); letter-spacing: .1em; }
.pillars__list { display: grid; gap: 0; }
.pillars__list li { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.pillar__n { display: block; margin-bottom: var(--s-3); font: 300 .875rem/1 var(--font-body); letter-spacing: .3em; color: var(--gold); }
.pillars__list h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); letter-spacing: .1em; margin-bottom: var(--s-3); }
.pillars__list p { margin: 0 0 var(--s-2); max-width: 30ch; font-size: 1rem; }
.more { display: inline-flex; align-items: center; min-height: 44px; color: var(--foil-2); text-decoration: none; font: 500 .75rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid transparent; }
.more::after { content: ""; width: 16px; height: 1px; margin-left: 10px; background: currentColor; transition: width var(--d-base) var(--ease); }
.more:hover { color: var(--foil-1); } .more:hover::after { width: 28px; }
@media (min-width: 700px) { .pillars__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
@media (min-width: 1000px) { .pillars__list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-6); } }

/* ---------- 15. Where we work ---------- */
.where { overflow: clip; isolation: isolate; }
.where::after { content: ""; position: absolute; inset: 20% 0 0; z-index: -1; background: radial-gradient(50% 50% at 50% 55%, color-mix(in oklab, var(--gold) 9%, transparent), transparent 72%); }
.where__lede { color: var(--ink-2); }
.states-wrap { container-type: inline-size; }
.states { --gap: clamp(12px, 3.6cqw, 64px); --u: min(4.4px, calc((100cqw - 3 * var(--gap)) / 167.8)); display: flex; align-items: flex-end; justify-content: center; gap: var(--gap); padding-bottom: 56px; margin-top: var(--s-5); }
.state { position: relative; display: block; flex: none; }
.state svg { width: calc(var(--u) * var(--w)); height: calc(var(--u) * var(--h)); max-width: none; overflow: visible; filter: drop-shadow(0 0 22px color-mix(in oklab, var(--gold) 26%, transparent)); }
.state path { fill: url(#g-foil-v); }
.state__ab { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); font: 700 1.5rem/1 var(--font-display); letter-spacing: .14em; padding-left: .14em; color: var(--ink); white-space: nowrap; }
.state__name { position: absolute; left: 50%; bottom: -76px; transform: translateX(-50%); white-space: nowrap; display: none; font: 500 .75rem/1 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 700px) { .states { padding-bottom: 92px; } .state__ab { font-size: 1.875rem; bottom: -48px; } .state__name { display: block; bottom: -82px; } }

/* ---------- 16. Free estimate ---------- */
.estimate { overflow: clip; background: var(--surface); }
.est__grid { display: grid; gap: clamp(40px, 6vw, 72px); }
.est__intro { position: relative; z-index: 2; }
.est__intro h2 { font-size: clamp(2.125rem, 1.2rem + 2.6vw, 3.25rem); margin-bottom: var(--s-5); }
.est__lede { max-width: 44ch; color: var(--ink-2); }
.tip { display: flex; align-items: flex-start; gap: var(--s-4); margin-top: var(--s-5); padding: var(--s-4) var(--s-5); max-width: 460px; border: 1px solid var(--line-strong); border-left: 3px solid var(--gold); background: color-mix(in oklab, var(--gold) 6%, var(--bg)); color: var(--ink-2); text-decoration: none; line-height: 1.5; transition: border-color var(--d-base), background-color var(--d-base); }
.tip .ico { color: var(--foil-2); margin-top: 2px; }
.tip b { display: block; margin-bottom: 2px; font: 500 .75rem/1.4 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.tip:hover { border-color: var(--gold); background: color-mix(in oklab, var(--gold) 10%, var(--bg)); color: var(--ink); }
.direct { display: grid; gap: var(--s-2); margin-top: var(--s-6); }
.direct a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 0; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--line); transition: color var(--d-base), border-color var(--d-base); }
.direct a .ico { color: var(--foil-2); }
.direct a b { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.direct a:hover { border-color: var(--gold); color: var(--ink); }

.est__stage { position: relative; isolation: isolate; margin-top: 72px; }
.est__rl { z-index: -1; left: 50%; top: -72px; translate: -50% 0; width: min(1500px, 160vw); height: 520px; }
.est-card { position: relative; background: var(--bg); border: 1px solid var(--line-strong); padding: clamp(22px, 4vw, 48px); box-shadow: 0 40px 80px -40px color-mix(in oklab, var(--noble-black) 90%, transparent); }
.est-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.est-card > * { position: relative; }
.est-fallback h3 { font-size: 1.75rem; margin-bottom: var(--s-4); }
.est-fallback p .btn { width: 100%; }
.js .est-fallback { display: none; }
html:not(.js) .est-form, html:not(.js) .est-done { display: none; }
.est__honest { margin: var(--s-4) 0 0; color: var(--ink-3); font-size: .875rem; line-height: 1.5; }

.progress { margin-bottom: var(--s-6); }
.progress__text { margin: 0 0 var(--s-3); font: 500 .8125rem/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.progress__bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress__bars li { height: 3px; background: var(--line); transition: background-color var(--d-slow) var(--ease); }
.progress__bars li.is-current, .progress__bars li.is-done { background: var(--gold); }
.progress__bars li.is-done { opacity: .55; }
.steps { display: grid; }
.step { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .18s linear, visibility 0s .18s; min-width: 0; }
.step.is-active { visibility: visible; opacity: 1; transition: opacity .4s var(--ease) .18s, visibility 0s; }
.step__h { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); letter-spacing: .09em; margin-bottom: var(--s-5); outline-offset: 6px; }
.group { margin: 0 0 var(--s-5); padding: 0; border: 0; min-width: 0; }
.field-label, .field label { display: block; margin-bottom: var(--s-2); font: 500 .8125rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field { margin-bottom: var(--s-5); }
.opt { color: var(--ink-3); letter-spacing: .08em; text-transform: none; font-weight: 400; margin-left: 6px; }
.input { display: block; width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); font: 400 max(16px, var(--t-body)) var(--font-body); transition: border-color var(--d-base), box-shadow var(--d-base); }
.input::placeholder { color: color-mix(in oklab, var(--ink-3) 70%, var(--ink-2)); opacity: 1; }
.input--area { padding: 12px 16px; min-height: 88px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--gold); }
.input:focus { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.err { margin: var(--s-2) 0 0; max-width: none; font: 500 .9375rem/1.4 var(--font-body); color: var(--bad); }

.choices { display: grid; gap: var(--s-3); }
.choices--svc, .choices--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; }
.choice--full { grid-column: 1 / -1; }
.choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__body { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-3); min-height: 118px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface-2); transition: border-color var(--d-base), background-color var(--d-base); }
.choice--wide .choice__body { min-height: 92px; }
.choice--full .choice__body { min-height: 64px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
.choice--full .choice__body .choice__ico { width: 28px; height: 28px; }
.choice__ico { color: var(--foil-2); width: 34px; height: 34px; }
.choice__t { font: 500 .875rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.choice__tick { position: absolute; top: 12px; right: 12px; color: var(--on-accent); background: var(--gold); padding: 2px; width: 20px; height: 20px; opacity: 0; transform: scale(.7); transition: opacity var(--d-base), transform var(--d-base) var(--ease); }
.choice--full .choice__tick { top: 50%; margin-top: -10px; }
.choice:hover .choice__body { border-color: var(--gold); }
.choice input:checked + .choice__body { border-color: var(--gold); background: color-mix(in oklab, var(--gold) 12%, var(--surface-2)); }
.choice input:checked + .choice__body .choice__tick { opacity: 1; transform: none; }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--gold); outline-offset: 3px; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.chip-opt { position: relative; display: block; }
.chip-opt input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-opt span { display: grid; place-items: center; min-height: 52px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface-2); font: 600 1rem/1 var(--font-body); letter-spacing: .16em; padding-left: .16em; color: var(--ink); transition: border-color var(--d-base), background-color var(--d-base), color var(--d-base); }
.chip-opt:hover span { border-color: var(--gold); }
.chip-opt input:checked + span { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.actions { display: flex; gap: var(--s-3); margin-top: var(--s-6); }
.actions .btn { flex: 1; }
.actions #btn-back { flex: 0 0 auto; min-width: 104px; }
.est-done .done__h { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); letter-spacing: .08em; margin-bottom: var(--s-5); outline-offset: 6px; }
.summary { margin: 0 0 var(--s-5); border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary dt { font: 500 .75rem/1.6 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.summary dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.done__plain { padding: var(--s-4); border-left: 2px solid var(--gold); background: color-mix(in oklab, var(--gold) 8%, transparent); color: var(--ink); max-width: none; }
.done__actions { display: grid; gap: var(--s-3); margin: var(--s-5) 0; }
.done__call { margin-bottom: var(--s-3); }
.textbtn { min-height: 48px; padding: 0; background: none; border: 0; border-bottom: 1px solid var(--line-strong); color: var(--ink-2); font: 500 .8125rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.textbtn:hover { color: var(--plat-1); border-color: var(--gold); }
@media (min-width: 900px) {
  .est__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .est__stage { margin-top: 0; }
  .est__intro { padding-top: var(--s-6); position: sticky; top: calc(var(--head-h) + 24px); }
  .est__rl { top: -140px; }
  .done__actions { grid-template-columns: 1fr 1fr; }
}

/* ---------- 17. Footer ---------- */
.site-foot { background: var(--noble-black); border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); }
.foot__grid { display: grid; gap: var(--s-7); }
.foot__brand img { height: 64px; width: auto; }
.foot__tag { margin: var(--s-4) 0 0; font: 500 .8125rem/1.5 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.foot__col .label { margin-bottom: var(--s-4); }
.foot__col li { color: var(--ink-2); overflow-wrap: anywhere; }
.foot__col a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot__col .foot__owner { min-height: 44px; display: flex; align-items: center; }
.foot__col a:hover { color: var(--foil-1); text-decoration: underline; }
.foot__owner { color: var(--ink-3); font-size: .9375rem; }
.foot__base { display: grid; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); align-items: center; }
.foot__base p { margin: 0; max-width: none; font-size: .9375rem; }
.foot__legal { color: var(--ink-2); }
.foot__by { color: var(--ink-3); letter-spacing: .12em; }
.foot__base .mtoggle { justify-self: start; }
.confirm { justify-self: start; }
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: 1.1fr 1.2fr .9fr; align-items: start; }
  .foot__base { grid-template-columns: auto 1fr auto; gap: var(--s-6); }
  .confirm { justify-self: center; }
}

/* ---------- 18. Mobile action bar ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr 1.75fr; gap: var(--s-2); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line-strong); }
.bar .btn { min-height: 52px; padding: 0 6px; letter-spacing: .14em; font-size: .78rem; gap: 8px; }
@media (min-width: 900px) { .bar { display: none; } body { padding-bottom: 0; } }
main section[tabindex="-1"]:focus, .step__h:focus, .done__h:focus { outline: none; }

/* ---------- 19. Lightbox ---------- */
.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: color-mix(in oklab, var(--noble-black) 94%, transparent); }
.lb__in { display: grid; justify-items: center; gap: var(--s-3); max-width: 100vw; padding: var(--s-4); }
.lb__video { display: block; background: var(--noble-black); border: 1px solid var(--line-strong); width: auto; aspect-ratio: 16 / 9; height: min(76svh, 56vw); max-width: 94vw; }
.lb__in[data-ar="v"] .lb__video { aspect-ratio: 9 / 16; height: min(78svh, 160vw); }
.lb__cap { margin: 0; max-width: 60ch; text-align: center; font: 500 .875rem/1.4 var(--font-body); letter-spacing: .12em; color: var(--ink-2); }
.lb__x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--line-strong); background: color-mix(in oklab, var(--bg) 80%, transparent); color: var(--ink); cursor: pointer; }
.lb__x:hover { border-color: var(--gold); color: var(--foil-1); }

/* ---------- 20. Reveals (a different gesture per section; content is visible unless main.js marks it .rv-wait) ---------- */
[data-rv] { transition: opacity 1s var(--ease) var(--rv-delay, 0s), transform 1s var(--ease) var(--rv-delay, 0s); }
[data-rv="clip"] > * { transition: clip-path 1.3s var(--ease) var(--rv-delay, 0s); } /* the wrapper stays unclipped so IntersectionObserver can see it */
.rv-wait[data-rv="fade"] { opacity: 0; }
.rv-wait[data-rv="up"] { opacity: 0; transform: translateY(26px); }
.rv-wait[data-rv="slide"] { opacity: 0; transform: translateX(-22px); }
.rv-wait[data-rv="pop"] { opacity: 0; transform: scale(.955); }
.rv-wait[data-rv="clip"] > * { clip-path: inset(0 0 100% 0); }
.rv-wait[data-rv="line"] { opacity: 0; }
.rv-wait[data-rv="line"]::before { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  [data-rv], .rv-wait[data-rv], [data-rv="clip"] > *, .rv-wait[data-rv="clip"] > * { transition: none; opacity: 1; transform: none; clip-path: none; }
  .rv-wait[data-rv="line"]::before { transform: none; }
}

/* ---------- 21. No color-mix() (iOS before 16.2) ----------
   A declaration that contains var() is only judged at computed-value time, so a plain declaration written just before it would
   still be overridden and end up empty. Restate the colours here instead; browsers with color-mix() skip this block. */
@supports not (color: color-mix(in oklab, red 50%, blue)) {
  [data-brand="noble"] { --surface-2: #242426; --line: rgba(212, 175, 55, .2); --line-strong: rgba(212, 175, 55, .46); }
  .roofline { --rl: var(--line-strong); }
  .input::placeholder { color: var(--ink-3); }
  .vid::after { background: linear-gradient(180deg, var(--scrim-30), var(--scrim-80)); }
  .vplay, .lb__x { background: var(--scrim-80); }
  .chip, .tile__go { background: var(--scrim-60); }
  .lb::backdrop { background: var(--scrim-95); }
  .hero__scrim { background: linear-gradient(0deg, var(--bg), var(--scrim-80) 30%, var(--scrim-60)); }
  @media (min-width: 900px) {
    .site-head.is-stuck { background: var(--scrim-95); }
    .hero__scrim { background: linear-gradient(90deg, var(--scrim-95), var(--scrim-60) 40%, var(--scrim-30)); }
  }
}
