/* =====================================================================
   HIGH QUALITY — Framing · Siding · Decks
   Editorial architectural system. Forest · Charcoal · Ivory · Copper.
   ===================================================================== */

/* 1. Tokens ------------------------------------------------------------ */
:root {
  /* Brand: High Quality Home Improvements — logo blue roofs, brick-red wordmark, light paper. */
  --navy-950: #0b1424;
  --navy-900: #0f1b30;
  --navy-800: #15243f;
  --navy-700: #1d3157;
  --navy-600: #2b4478;
  --charcoal-950: #121418;
  --charcoal-900: #191c21;
  --charcoal-800: #22262c;
  --charcoal-700: #30353c;
  --ivory: #f3f1ea;
  --ivory-2: #e8e5dc;
  --paper: #fbfaf6;
  --blue: #3b5ba9;            /* logo roofs — rules, icons, links */
  --blue-light: #9fb4ea;      /* blue on dark */
  --brick: #9c3b34;           /* logo wordmark — accents, large type */
  --brick-light: #e2776d;     /* brick on dark */
  --brick-deep: #8b302a;      /* button fill (AA with paper text) */
  --brick-ink: #8b302a;       /* small brick text on light */
  --ink: #1a1c20;
  --ink-soft: #383c43;
  --mute: #60656e;
  --mute-light: rgba(243, 241, 234, .68);
  --line: rgba(26, 28, 32, .14);
  --line-light: rgba(243, 241, 234, .16);

  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1380px;
  --nav-h: 76px;
  --section: clamp(88px, 11vw, 176px);
  --radius: 3px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 2. Reset & base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
em { font-style: italic; }
::selection { background: var(--brick); color: var(--paper); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

/* 3. Utilities ------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .7rem 1rem; background: var(--paper); color: var(--ink); border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.slot-gap {
  display: inline-block; padding: .1em .55em; border: 1px dashed currentColor; border-radius: 2px;
  font-family: var(--mono); font-size: .78em; letter-spacing: .04em; color: var(--brick-light); opacity: .9;
}
.contact-form .slot-gap, .why .slot-gap { color: var(--brick-ink); }

/* 4. Typography ------------------------------------------------------ */
.kicker {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 1.6rem;
}
.kicker-num { color: var(--brick-ink); font-weight: 500; }
.kicker-num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: .9rem; opacity: .7; }
.kicker--light { color: var(--mute-light); }
.kicker--light .kicker-num { color: var(--brick-light); }
.kicker-line { display: inline-block; width: 44px; height: 1px; background: var(--brick-light); }

.display { font-family: var(--display); font-size: clamp(2.6rem, 5.8vw, 5.6rem); line-height: .98; color: var(--ink); }
.display em { color: var(--brick); }
.display--light { color: var(--ivory); }
.display--light em { color: var(--brick-light); }
.lede { font-size: clamp(1.02rem, 1.2vw, 1.16rem); color: var(--mute); max-width: 52ch; }
.lede--light { color: var(--mute-light); }

.fig-note {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); margin-top: .8rem;
}
.fig-note--light { color: rgba(244, 239, 229, .55); }
.fig-note--inline { margin-top: 2.4rem; }

/* 5. Components ------------------------------------------------------ */
.btn {
  --bg: transparent; --fg: currentColor; --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1.02em 1.6em; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-family: var(--sans); font-size: .94rem; font-weight: 600; letter-spacing: .01em; line-height: 1;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  white-space: nowrap;
}
.btn-arrow { display: inline-block; transition: transform .45s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn-brick { --bg: var(--brick-deep); --fg: var(--paper); box-shadow: 0 14px 30px -18px rgba(139, 48, 42, .9); }
.btn-brick:hover { --bg: #73261f; }
.btn-navy { --bg: var(--navy-800); --fg: var(--ivory); }
.btn-navy:hover { --bg: var(--navy-700); }
.btn-ghost-light { --fg: var(--ivory); --bd: rgba(244, 239, 229, .45); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { --bg: var(--ivory); --fg: var(--navy-900); --bd: var(--ivory); }
.btn-outline-light { --fg: var(--ivory); --bd: var(--line-light); }
.btn-outline-light:hover { --bd: var(--brick-light); --fg: var(--brick-light); }
.btn-text-light { --fg: var(--mute-light); padding-inline: .4em; }
.btn-text-light:hover:not(:disabled) { --fg: var(--ivory); }
.btn:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.btn-sm { padding: .78em 1.15em; font-size: .86rem; }
.btn-lg { padding: 1.2em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }

.tick-list li { position: relative; padding-left: 1.8rem; margin-block: .55rem; color: var(--ink-soft); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--brick); }

/* Forms */
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field > span { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(156, 59, 52, .18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field-row { display: grid; gap: 0 1rem; }
.field-file input { padding: .7rem; background: var(--paper); }
.file-hint { font-size: .78rem; color: var(--mute); }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .84rem; color: var(--mute); margin: .4rem 0 1.4rem; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brick-deep); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.form-msg { min-height: 1.4em; margin-top: .9rem; font-size: .9rem; font-weight: 500; }
.form-msg.is-error { color: #b3261e; }
.form-msg.is-ok { color: var(--navy-600); }

/* 6. Nav ------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--ivory); transition: background-color .45s var(--ease-out), color .45s var(--ease-out), box-shadow .45s var(--ease-out), transform .45s var(--ease-out); }
.nav-inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav.is-solid { background: rgba(244, 239, 229, .9); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(12px)) { .nav.is-solid { background: rgba(244, 239, 229, .78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); } }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-family: var(--display); font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; display: grid; }
.brand-word small { font-family: var(--mono); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: .3rem; }
.nav-links { display: none; gap: 2rem; font-size: .9rem; font-weight: 500; }
.nav-links a { position: relative; padding-block: .4rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brick); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-phone { display: none; font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; }
.nav-toggle { width: 42px; height: 42px; display: grid; place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out), opacity .3s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav .btn-sm { display: none; }
.mobile-menu { background: var(--navy-900); color: var(--ivory); padding: 1.5rem var(--gutter) 2rem; display: grid; gap: .3rem; border-top: 1px solid var(--line-light); }
.mobile-menu a:not(.btn) { font-family: var(--display); font-size: 2rem; padding-block: .35rem; border-bottom: 1px solid var(--line-light); }
.mobile-menu .btn { margin-top: 1.2rem; }

/* 7. Hero ------------------------------------------------------------ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; color: var(--ivory); background: var(--navy-950); isolation: isolate; overflow: clip; }
.hero-media { position: absolute; inset: -6% 0 -6% 0; z-index: -3; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.08); animation: heroSettle 2.8s var(--ease-out) .1s forwards; }
@keyframes heroSettle { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(0deg, rgba(11, 20, 36, .94) 0%, rgba(11, 20, 36, .62) 34%, rgba(11, 20, 36, .16) 68%, rgba(11, 20, 36, .42) 100%),
    linear-gradient(90deg, rgba(11, 20, 36, .55) 0%, rgba(11, 20, 36, 0) 62%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(244, 239, 229, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 239, 229, .06) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(120% 80% at 20% 100%, #000 10%, transparent 70%);
          mask-image: radial-gradient(120% 80% at 20% 100%, #000 10%, transparent 70%);
}
.hero-inner { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(56px, 10vh, 120px); }
.hero-kicker { color: rgba(244, 239, 229, .8); }
.hero-title { font-family: var(--display); font-size: clamp(3.3rem, 10.4vw, 10.6rem); line-height: .9; letter-spacing: -.025em; margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 11.5ch; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { color: var(--brick-light); }
.hero-foot { display: grid; gap: 1.8rem; align-items: end; }
.hero-sub { max-width: 44ch; font-size: clamp(1rem, 1.25vw, 1.15rem); color: rgba(244, 239, 229, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-dim { display: none; position: absolute; right: calc(var(--gutter) * .9); top: calc(var(--nav-h) + 9vh); bottom: 18vh; flex-direction: column; align-items: center; gap: .7rem; color: var(--brick-light); }
.dim-tick { width: 14px; height: 1px; background: currentColor; }
.dim-rule { flex: 1; width: 1px; background: currentColor; opacity: .7; transform-origin: top; }
.dim-label { writing-mode: vertical-rl; font-family: var(--mono); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(244, 239, 229, .78); }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 46px; background: rgba(244, 239, 229, .2); overflow: hidden; }
.hero-scroll span { position: absolute; inset: 0; background: var(--brick-light); animation: scrollCue 2.4s var(--ease-in-out) infinite; }
@keyframes scrollCue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.fig-note--hero { position: absolute; left: var(--gutter); bottom: 18px; color: rgba(244, 239, 229, .45); margin: 0; }

/* Load choreography (JS adds .is-loaded to <html>) */
.js .hero [data-rise] { opacity: 0; transform: translateY(26px); }
.js .hero-title .line > span[data-rise] { opacity: 1; transform: translateY(108%); }
.js.is-loaded .hero [data-rise] { opacity: 1; transform: none; transition: transform 1.25s var(--ease-out), opacity 1s var(--ease-out); }
.js.is-loaded .hero-title .line > span[data-rise] { transform: none; transition: transform 1.25s var(--ease-out); }
.js.is-loaded .hero .line:nth-child(2) [data-rise] { transition-delay: .12s; }
.js.is-loaded .hero .hero-sub[data-rise] { transition-delay: .35s; }
.js.is-loaded .hero .hero-actions[data-rise] { transition-delay: .48s; }
.js .hero-dim .dim-rule { transform: scaleY(0); }
.js.is-loaded .hero-dim .dim-rule { transform: scaleY(1); transition: transform 1.6s var(--ease-out) .5s; }

/* 8. Sections — shared ---------------------------------------------- */
.section-head { margin-bottom: clamp(56px, 7vw, 104px); }
.section-head:not(.section-head--split) > * { max-width: 900px; }
.section-head .display { margin-bottom: 1.6rem; }
.section-head--split { max-width: none; display: grid; gap: 1.6rem; align-items: end; }
.section-head--split .display { margin-bottom: 0; }

/* 9. Services -------------------------------------------------------- */
.services { padding-top: var(--section); background: var(--ivory); }
.svc-index { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brick-ink); margin-bottom: 1.2rem; }
.svc-title { font-family: var(--display); font-size: clamp(2.1rem, 3.8vw, 3.6rem); line-height: 1.02; margin-bottom: 1.4rem; }
.svc-title em { color: var(--brick); }
.svc-body > p { color: var(--ink-soft); max-width: 50ch; margin-bottom: 1.8rem; }

.svc-figure { position: relative; }
.frame { position: relative; overflow: hidden; width: 100%; height: 100%; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame > .fig-note { position: absolute; left: 14px; bottom: 12px; margin: 0; color: rgba(244, 239, 229, .82); text-shadow: 0 1px 10px rgba(0, 0, 0, .55); z-index: 2; }

/* Framing */
.svc-framing { display: grid; gap: 2.6rem; padding-bottom: var(--section); }
.svc-framing .frame { aspect-ratio: 4 / 5; }
.dim-tag { display: none; position: absolute; left: -58px; top: 50%; transform: translateY(-50%) rotate(-90deg); font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--brick-ink); background: var(--ivory); padding: 0 .4rem; white-space: nowrap; }
.dim-svg { position: absolute; color: var(--brick); fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dim-svg path { vector-effect: non-scaling-stroke; }
.dim-svg--v { display: none; left: -34px; top: 0; height: 100%; width: 20px; }
.spec-list { border-top: 1px solid var(--line); margin-bottom: 2.2rem; }
.spec-list li { display: grid; gap: .3rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .96rem; }
.spec-list span { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick-ink); }

/* Siding */
.svc-siding { background: var(--charcoal-900); color: var(--ivory); padding-block: var(--section); position: relative; }
.svc-siding::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: repeating-linear-gradient(180deg, transparent 0 46px, rgba(244, 239, 229, .035) 46px 47px); }
.svc-siding-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.svc-siding .svc-index { color: var(--brick-light); }
.svc-siding .svc-title em { color: var(--brick-light); }
.svc-siding .svc-body > p { color: var(--mute-light); }
.materials { margin-bottom: 2.2rem; }
.materials-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.materials-tabs button { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .7em 1em; border: 1px solid var(--line-light); border-radius: 2px; color: var(--mute-light); transition: all .35s var(--ease-out); }
.materials-tabs button:hover { color: var(--ivory); border-color: rgba(244, 239, 229, .4); }
.materials-tabs button[aria-selected="true"] { background: var(--ivory); color: var(--charcoal-900); border-color: var(--ivory); }
.materials-panels { min-height: 5.6em; border-left: 1px solid var(--brick); padding-left: 1.2rem; color: var(--mute-light); max-width: 52ch; }
.materials-panels strong { color: var(--ivory); font-weight: 600; }
.materials-panels p { animation: fadeUp .5s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.svc-figure--wide .frame { aspect-ratio: 3 / 2; }
.reveal-gauge { position: absolute; right: 18px; top: 18px; display: flex; align-items: center; gap: .6rem; color: var(--ivory); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; padding: .45rem .7rem; background: rgba(18, 20, 24, .62); border: 1px solid rgba(244, 239, 229, .2); }
.reveal-gauge i { display: block; width: 1px; height: 26px; background: var(--brick-light); box-shadow: -5px 0 0 -0px rgba(226, 119, 109, .0); }

/* Decks */
.svc-decks { position: relative; padding-bottom: var(--section); }
.svc-bleed { position: relative; height: clamp(380px, 62vw, 860px); }
.svc-bleed .frame > .fig-note { left: var(--gutter); top: 18px; bottom: auto; }
.svc-decks-wrap { position: relative; margin-top: -90px; }
.svc-card { position: relative; background: var(--paper); padding: clamp(28px, 4vw, 56px); max-width: 560px; margin-left: auto; box-shadow: 0 40px 80px -48px rgba(15, 27, 48, .55); border-top: 3px solid var(--brick); }
.svc-card > p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.svc-card .tick-list { margin-bottom: 2rem; }

/* 10. Marquee -------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 2.4vw, 30px); background: var(--ivory); }
.marquee-track { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 3rem); width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(27, 29, 28, .55); }
.marquee span em { color: var(--brick); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--brick); font-size: clamp(1rem, 1.8vw, 1.6rem); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 11. Why ------------------------------------------------------------ */
.why { background: var(--ivory-2); padding-block: var(--section); }
.why-grid { display: grid; gap: 3rem; }
.why-aside .display { margin-bottom: 2.4rem; }
.why-figure { aspect-ratio: 4 / 5; max-width: 440px; position: relative; z-index: 0; margin-right: 14px; }
.why-figure::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--brick); z-index: -1; }
.why-list li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding-block: clamp(1.8rem, 3vw, 2.6rem); border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-num { font-family: var(--display); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--brick); }
.why-list h3 { font-family: var(--sans); font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 600; letter-spacing: -.01em; margin-bottom: .6rem; }
.why-list p { color: var(--ink-soft); max-width: 54ch; }

/* 12. Work ----------------------------------------------------------- */
.work { padding-block: var(--section); background: var(--ivory); }
.work-head { display: grid; gap: 1.6rem; align-items: end; margin-bottom: 1.2rem; }
.work-head .display { margin: 0; }
.work-filters { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.work-filters button { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; padding-block: .5rem; color: var(--mute); position: relative; }
.work-filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brick); transform: scaleX(0); transition: transform .45s var(--ease-out); }
.work-filters button.is-active { color: var(--ink); }
.work-filters button.is-active::after { transform: scaleX(1); }
.work-note { font-size: .86rem; color: var(--mute); margin-bottom: clamp(32px, 4vw, 56px); }
.work-grid { display: grid; gap: clamp(12px, 1.6vw, 22px); grid-template-columns: 1fr; }
.project-card { position: relative; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.project-card.is-filtered { display: none; }
.project-open { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; text-align: left; background: var(--charcoal-800); }
.project-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.project-open:hover img { transform: scale(1.06); }
.project-meta { position: absolute; inset: auto 0 0 0; padding: 1.4rem; display: grid; gap: .2rem; color: var(--ivory); background: linear-gradient(0deg, rgba(11, 20, 36, .86), transparent); }
.project-cat { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brick-light); }
.project-title { font-family: var(--display); font-size: 1.7rem; line-height: 1.05; }
.project-loc, .project-count { font-size: .82rem; color: rgba(244, 239, 229, .74); }
.project-card--empty .project-empty { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: .6rem; border: 1px dashed rgba(156, 59, 52, .6); background: repeating-linear-gradient(135deg, rgba(156, 59, 52, .04) 0 12px, transparent 12px 24px); color: var(--mute); text-align: center; font-size: .9rem; padding: 1rem; }
.project-empty svg { width: 46px; color: var(--brick); }
.project-empty .project-cat { color: var(--brick-ink); }
.preview-flag { margin-top: 1.4rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--brick-ink); }

/* 13. Process -------------------------------------------------------- */
.process { padding-block: var(--section); background: var(--paper); }
.process-rail { display: none; position: relative; height: 1px; background: var(--line); margin-bottom: 2.6rem; }
@media (min-width: 960px) { .process-rail { display: block; } }
.process-fill { position: absolute; inset: 0; background: var(--brick); transform: scaleX(var(--p, 0)); transform-origin: left; }
.process-steps { display: grid; gap: 3rem 1.6rem; }
.step { position: relative; }
.step-figure { aspect-ratio: 4 / 3; margin-bottom: 1.4rem; }
.step-num { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brick-ink); }
.step h3 { font-family: var(--display); font-size: clamp(1.9rem, 2.6vw, 2.5rem); margin: .4rem 0 .7rem; }
.step p { color: var(--ink-soft); font-size: .96rem; }
.step::before { content: none; position: absolute; top: -2.6rem; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--brick); transform: translateY(-4px); transition: background-color .5s var(--ease-out); }
.step.is-on::before { background: var(--brick); }

/* 14. Estimator ------------------------------------------------------ */
.estimator { position: relative; background: var(--navy-900); color: var(--ivory); padding-block: var(--section); isolation: isolate; overflow: clip; }
.estimator-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 85% 10%, rgba(156, 59, 52, .2), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(43, 68, 120, .55), transparent 70%),
    linear-gradient(rgba(244, 239, 229, .04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(244, 239, 229, .04) 1px, transparent 1px) 0 0 / 48px 48px; }
.estimator-grid { display: grid; gap: 3rem; align-items: start; }
.estimator-intro .display { margin-bottom: 1.6rem; }
.estimator-points { margin: 2.2rem 0; border-top: 1px solid var(--line-light); }
.estimator-points li { display: flex; gap: 1.2rem; padding: .85rem 0; border-bottom: 1px solid var(--line-light); color: rgba(244, 239, 229, .85); font-size: .96rem; }
.estimator-points span { font-family: var(--mono); font-size: .72rem; color: var(--brick-light); padding-top: .2rem; }
.estimator-disclaimer { font-size: .84rem; color: var(--mute-light); border-left: 1px solid var(--brick-light); padding-left: 1rem; }

.wizard { position: relative; background: rgba(244, 239, 229, .045); border: 1px solid var(--line-light); padding: clamp(22px, 3.4vw, 44px); min-height: 560px; display: flex; flex-direction: column; }
@supports (backdrop-filter: blur(10px)) { .wizard { backdrop-filter: blur(10px); } }
.wizard-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 1rem; }
.wizard-progress span { height: 2px; background: var(--line-light); transition: background-color .5s var(--ease-out); }
.wizard-progress span.is-active, .wizard-progress span.is-done { background: var(--brick-light); }
.wizard-step-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-light); margin-bottom: 1.6rem; }
.wz-step { display: none; border: 0; flex: 1; min-width: 0; }
.wz-step.is-active { display: block; animation: fadeUp .55s var(--ease-out); }
.wz-title { font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; margin-bottom: 1.4rem; padding: 0; }
.wz-title small { font-family: var(--sans); font-size: .9rem; color: var(--mute-light); }
.wz-help { color: var(--mute-light); font-size: .92rem; margin-bottom: 1.2rem; max-width: 60ch; }
.wz-services { display: grid; gap: .8rem; }
.wz-service input { position: absolute; opacity: 0; pointer-events: none; }
.wz-service-card { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border: 1px solid var(--line-light); cursor: pointer; transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out), transform .3s var(--ease-out); }
.wz-service-card svg { grid-row: span 2; width: 44px; color: var(--brick-light); }
.wz-service-card strong { font-family: var(--display); font-size: 1.6rem; font-weight: 400; line-height: 1.1; }
.wz-service-card small { color: var(--mute-light); font-size: .84rem; }
.wz-service-card:hover { border-color: rgba(244, 239, 229, .4); }
.wz-service input:checked + .wz-service-card { border-color: var(--brick-light); background: rgba(156, 59, 52, .12); }
.wz-service input:focus-visible + .wz-service-card { outline: 2px solid var(--brick-light); outline-offset: 2px; }

.wizard .field > span { color: rgba(244, 239, 229, .78); }
.wizard .field input, .wizard .field select, .wizard .field textarea { background: rgba(11, 20, 36, .55); border-color: var(--line-light); color: var(--ivory); }
.wizard .field select option { color: var(--ink); }
.wizard .field input::placeholder, .wizard .field textarea::placeholder { color: rgba(244, 239, 229, .38); }
.wizard .check { color: var(--mute-light); }
.wz-fields { display: grid; gap: 0 1rem; }
.wz-hint { font-size: .78rem; color: var(--mute-light); margin-top: -.7rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.15rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: .55em .9em; border: 1px solid var(--line-light); font-size: .84rem; cursor: pointer; transition: all .25s var(--ease-out); }
.chips input:checked + span { border-color: var(--brick-light); background: rgba(156, 59, 52, .16); color: var(--ivory); }
.chips input:focus-visible + span { outline: 2px solid var(--brick-light); outline-offset: 2px; }
.chip-label { font-size: .78rem; font-weight: 600; color: rgba(244, 239, 229, .78); margin-bottom: .45rem; display: block; }

.dropzone { display: grid; justify-items: center; gap: .4rem; padding: 2rem 1rem; border: 1px dashed rgba(226, 119, 109, .55); text-align: center; cursor: pointer; color: var(--mute-light); transition: background-color .3s var(--ease-out), border-color .3s; position: relative; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.is-over, .dropzone:hover { background: rgba(156, 59, 52, .08); border-color: var(--brick-light); }
.dropzone strong { color: var(--ivory); }
.dropzone-icon { font-size: 1.6rem; color: var(--brick-light); line-height: 1; }
.file-list { display: grid; gap: .4rem; margin-top: .9rem; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; font-size: .86rem; padding: .55rem .8rem; background: rgba(244, 239, 229, .05); }
.file-list button { color: var(--mute-light); font-size: 1.1rem; line-height: 1; }
.file-list button:hover { color: var(--ivory); }
.wz-analysis { margin-top: 1.2rem; padding: 1.1rem 1.2rem; border-left: 2px solid var(--brick-light); background: rgba(244, 239, 229, .05); font-size: .92rem; }
.wz-analysis h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick-light); margin-bottom: .6rem; font-weight: 500; }
.wz-analysis ul { display: grid; gap: .35rem; }
.wz-analysis li { padding-left: 1rem; position: relative; color: rgba(244, 239, 229, .86); }
.wz-analysis li::before { content: "—"; position: absolute; left: 0; color: var(--brick-light); }

.map-frame { margin-top: 1.1rem; aspect-ratio: 16 / 10; border: 1px solid var(--line-light); background: rgba(11, 20, 36, .5); display: grid; place-items: center; color: var(--mute-light); font-size: .9rem; overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }

.wz-summary, .wz-full { display: grid; gap: 1.2rem; }
.wz-loading { color: var(--mute-light); display: flex; gap: .7rem; align-items: center; }
.wz-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-light); border-top-color: var(--brick-light); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sum-head { font-family: var(--display); font-size: 1.7rem; line-height: 1.15; }
.sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.sum-grid div { background: var(--navy-900); padding: .9rem 1rem; }
.sum-grid dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-light); margin-bottom: .25rem; }
.sum-grid dd { font-size: .98rem; color: var(--ivory); }
.sum-range { padding: 1.2rem; border: 1px solid var(--brick-light); background: rgba(156, 59, 52, .1); }
.sum-range strong { display: block; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 400; color: var(--ivory); line-height: 1.05; }
.sum-range small { color: var(--mute-light); font-size: .82rem; }
.sum-section h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick-light); margin-bottom: .5rem; font-weight: 500; }
.sum-section ul { display: grid; gap: .4rem; }
.sum-section li { padding-left: 1rem; position: relative; color: rgba(244, 239, 229, .86); font-size: .94rem; }
.sum-section li::before { content: "—"; position: absolute; left: 0; color: var(--brick-light); }
.sum-locked { position: relative; }
.sum-locked > .sum-blur { filter: blur(6px); opacity: .55; pointer-events: none; user-select: none; }
.sum-locked > .sum-lock { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .3rem; font-size: .92rem; color: var(--ivory); }
.sum-lock span { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick-light); }
.sum-note { font-size: .8rem; color: var(--mute-light); border-top: 1px solid var(--line-light); padding-top: 1rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-light); }
.wizard-noscript { color: var(--mute-light); }
.wizard-noscript a { color: var(--brick-light); text-decoration: underline; }
.wz-form .form-msg.is-error { color: #ffb4a8; }

/* 15. Testimonials --------------------------------------------------- */
.testimonials { padding-block: var(--section); background: var(--ivory); }
.sample-banner { max-width: 46ch; font-size: .9rem; color: var(--mute); border: 1px dashed rgba(156, 59, 52, .7); padding: 1rem 1.2rem; }
.sample-banner span { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brick-ink); margin-bottom: .3rem; }
.t-grid { display: grid; gap: 1.2rem; }
.t-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 1.6rem; }
.t-badge { align-self: flex-start; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick-ink); border: 1px solid rgba(156, 59, 52, .55); padding: .3em .6em; }
.t-card blockquote { font-family: var(--display); font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.2; flex: 1; }
.t-card figcaption { display: grid; font-size: .86rem; color: var(--mute); border-top: 1px solid var(--line); padding-top: 1rem; }
.t-card figcaption strong { color: var(--ink); font-weight: 600; }

/* 16. FAQ ------------------------------------------------------------ */
.faq { padding-block: var(--section); background: var(--ivory-2); }
.faq-grid { display: grid; gap: 3rem; }
.faq-aside .display { margin-bottom: 1.4rem; }
.faq-aside .lede { margin-bottom: 1.8rem; }
.faq-group { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brick-ink); margin: 2.2rem 0 .4rem; }
.faq-group:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding: 1.3rem 0; font-family: var(--display); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--brick); transition: transform .45s var(--ease-out); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { overflow: hidden; }
.faq details p { color: var(--ink-soft); padding-bottom: 1.4rem; max-width: 62ch; }

/* 17. Contact -------------------------------------------------------- */
.contact { background: var(--charcoal-900); color: var(--ivory); padding-block: var(--section); }
.contact-grid { display: grid; gap: 3rem; align-items: start; }
.contact-figure { aspect-ratio: 16 / 11; margin-bottom: 2.4rem; }
.contact-info .display { margin-bottom: 2rem; font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.info-list { border-top: 1px solid var(--line-light); }
.info-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line-light); }
.info-list dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-light); padding-top: .2rem; }
.info-list dd a { border-bottom: 1px solid var(--brick-light); }
.contact-form { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 56px); border-top: 3px solid var(--brick); }
.form-intro { font-family: var(--display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; margin-bottom: 1.8rem; }

/* 18. Footer --------------------------------------------------------- */
.footer { position: relative; background: var(--navy-950); color: var(--ivory); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.footer-grid { display: grid; gap: 2.4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.footer-word { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.footer-brand p { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute-light); margin-top: .5rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: .6rem 2.4rem; font-size: .92rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--brick-light); }
.footer-contact { display: grid; gap: .5rem; font-size: .92rem; align-content: start; justify-items: start; }
.footer-base { display: grid; gap: .6rem; padding-block: 1.6rem; font-size: .78rem; color: var(--mute-light); }
.footer-base a { text-decoration: underline; text-underline-offset: 2px; }
.footer-giant { font-family: var(--display); font-size: clamp(5rem, 19vw, 20rem); line-height: .8; letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(244, 239, 229, .12); text-align: center; margin-bottom: -.12em; user-select: none; }

/* 19. Chat ----------------------------------------------------------- */
.chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; }
.chat-fab { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.15rem .8rem .85rem; border-radius: 999px; background: var(--navy-800); color: var(--ivory); box-shadow: 0 18px 40px -16px rgba(11, 20, 36, .7), inset 0 0 0 1px rgba(244, 239, 229, .1); transition: transform .4s var(--ease-out), background-color .3s; }
.chat-fab:hover { transform: translateY(-2px); background: var(--navy-700); }
.chat-fab-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brick-deep); }
.chat-fab-icon svg { width: 18px; }
.chat-fab-label { font-size: .88rem; font-weight: 600; }
.chat-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.9); }
.chat-panel { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100svh - 24px)); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(11, 20, 36, .65), 0 0 0 1px var(--line); transform-origin: bottom right; animation: chatIn .5s var(--ease-out); }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; background: var(--navy-900); color: var(--ivory); }
.chat-head div { flex: 1; display: grid; line-height: 1.25; }
.chat-head small { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-light); }
.chat-avatar { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(226, 119, 109, .55); color: var(--brick-light); }
.chat-avatar svg { width: 24px; }
.chat-close { font-size: 1.7rem; line-height: 1; width: 36px; height: 36px; color: var(--mute-light); }
.chat-close:hover { color: var(--ivory); }
.chat-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; overscroll-behavior: contain; }
.msg { max-width: 88%; font-size: .92rem; line-height: 1.55; }
.msg p + p { margin-top: .5rem; }
.msg ul { margin: .4rem 0 0 1rem; list-style: disc; }
.msg-bot { align-self: flex-start; background: var(--ivory-2); padding: .8rem 1rem; border-radius: 2px 14px 14px 14px; }
.msg-user { align-self: flex-end; background: var(--navy-800); color: var(--ivory); padding: .75rem 1rem; border-radius: 14px 2px 14px 14px; }
.msg-typing { display: flex; gap: 4px; padding: 1rem; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: blink 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: .4rem; }
.chat-suggest button, .chat-cta { font-size: .8rem; padding: .5em .8em; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .25s, color .25s; }
.chat-suggest button:hover, .chat-cta:hover { border-color: var(--brick); color: var(--brick-ink); }
.chat-cta { align-self: flex-start; background: var(--brick-deep); color: var(--paper); border-color: var(--brick-deep); font-weight: 600; }
.chat-cta:hover { color: var(--paper); background: #73261f; }
.chat-lead { align-self: stretch; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brick); padding: 1rem; border-radius: 2px; }
.chat-lead h4 { font-family: var(--display); font-size: 1.35rem; font-weight: 400; margin-bottom: .2rem; }
.chat-lead p { font-size: .82rem; color: var(--mute); margin-bottom: .8rem; }
.chat-lead .field { margin-bottom: .6rem; }
.chat-lead .field input, .chat-lead .field textarea { padding: .65rem .75rem; font-size: .88rem; }
.chat-lead .field textarea { min-height: 72px; }
.chat-lead .check { font-size: .76rem; margin: .3rem 0 .8rem; }
.chat-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: .75rem 1rem; font-size: .92rem; }
.chat-form input:focus { outline: none; border-color: var(--brick); }
.chat-form button { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--brick-deep); color: var(--paper); display: grid; place-items: center; }
.chat-form button svg { width: 18px; }
.chat-form button:disabled { opacity: .4; }
.chat-foot { font-size: .68rem; color: var(--mute); text-align: center; padding: 0 .8rem .7rem; background: #fff; }

/* 20. Gallery -------------------------------------------------------- */
.gallery { margin: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; border: 0; padding: clamp(14px, 3vw, 36px); background: rgba(11, 20, 36, .97); color: var(--ivory); display: none; }
.gallery[open] { display: flex; flex-direction: column; gap: 1rem; animation: fadeUp .45s var(--ease-out); }
.gallery::backdrop { background: rgba(11, 20, 36, .7); }
.gallery-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.gallery-head h3 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.gallery-cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brick-light); }
.gallery-loc { color: var(--mute-light); font-size: .9rem; }
.gallery-close { font-size: 2.2rem; width: 48px; height: 48px; line-height: 1; color: var(--ivory); }
.gallery-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.gallery-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .5s var(--ease-out); }
.gallery-stage img.is-zoomed { transform: scale(1.8); cursor: zoom-out; }
.gallery-stage figcaption { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; background: rgba(11, 20, 36, .7); padding: .3rem .7rem; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid var(--line-light); color: var(--ivory); background: rgba(11, 20, 36, .55); font-size: 1.2rem; z-index: 2; }
.gallery-arrow:hover { border-color: var(--brick-light); color: var(--brick-light); }
.gallery-arrow.prev { left: 0; }
.gallery-arrow.next { right: 0; }
.gallery-summary { color: var(--mute-light); font-size: .92rem; max-width: 70ch; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; overflow-y: visible; padding-bottom: .3rem; }
.gallery-thumbs button { flex: none; width: 84px; height: 62px; opacity: .5; transition: opacity .3s; outline-offset: 2px; }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* 21. Scroll effects ------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: .24s; }
.js [data-clip] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out); }
.js [data-clip] img { transform: scale(1.14); transition: transform 1.8s var(--ease-out); }
.js [data-clip].is-in { clip-path: inset(0 0 0 0); }
.js [data-clip].is-in img { transform: scale(1); }
.js [data-clip].is-in img[data-parallax-img] { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); transition: transform .2s linear; }
.js [data-clip] .fig-note { clip-path: none; }
.dim-svg path { stroke-dasharray: 1200; stroke-dashoffset: 0; }
.js .dim-svg path { stroke-dashoffset: 1200; transition: stroke-dashoffset 2s var(--ease-out) .3s; }
.js [data-clip].is-in .dim-svg path { stroke-dashoffset: 0; }

/* Safety net: if scripts fail, show everything. */
.force-in [data-reveal], .force-in [data-reveal-stagger] > *, .force-in .hero [data-rise] { opacity: 1 !important; transform: none !important; }
.force-in [data-clip] { clip-path: none !important; }
.force-in [data-clip] img { transform: none !important; }
.force-in .dim-svg path { stroke-dashoffset: 0 !important; }

/* 22. Responsive ----------------------------------------------------- */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .wz-fields { grid-template-columns: 1fr 1fr; }
  .wz-fields .span-2 { grid-column: span 2; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.is-wide { grid-column: span 2; }
  .project-card.is-wide .project-open, .project-card--empty.is-wide .project-empty { aspect-ratio: 16 / 8; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .hero-foot { grid-template-columns: 1fr auto; }
  .section-head--split { grid-template-columns: 1.1fr .9fr; }
  .work-head { grid-template-columns: 1fr auto; }
  .t-grid { grid-template-columns: repeat(3, 1fr); }
  .t-card--offset { margin-top: 64px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-base { grid-template-columns: auto 1fr; justify-items: end; text-align: right; }
  .contact-figure { aspect-ratio: 16 / 10; }
}

@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav-links { display: flex; }
  .nav .btn-sm { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .hero-dim { display: flex; }

  .svc-framing { grid-template-columns: repeat(12, 1fr); align-items: center; gap: 2rem; }
  .svc-framing .svc-figure { grid-column: 2 / span 5; }
  .svc-framing .svc-body { grid-column: 8 / span 5; }
  .dim-svg--v, .dim-tag { display: block; }

  .svc-siding-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .svc-siding .svc-body { grid-column: 1 / span 5; }
  .svc-siding .svc-figure { grid-column: 7 / span 6; margin-right: calc(var(--gutter) * -1); }

  .svc-decks-wrap { margin-top: -220px; }

  .why-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .why-aside { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
  .why-list { grid-column: 7 / span 6; }
  .why-list li { grid-template-columns: 90px 1fr; }
  .why-num { font-size: 3rem; }

  .work-grid { grid-template-columns: repeat(12, 1fr); }
  .project-card { grid-column: span 4; }
  .project-card.is-wide { grid-column: span 8; }
  .project-card.is-wide .project-open, .project-card--empty.is-wide .project-empty { aspect-ratio: auto; height: 100%; min-height: 100%; }
  .project-card .project-open, .project-card--empty .project-empty { aspect-ratio: 4 / 3.2; }

  .process-steps { grid-template-columns: repeat(4, 1fr); }
  .step::before { content: ""; }
  .step:nth-child(even) { margin-top: 72px; }

  .estimator-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .estimator-intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 40px); }
  .wizard { grid-column: 7 / span 6; }

  .faq-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .faq-aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
  .faq-list { grid-column: 6 / span 7; }

  .contact-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .contact-aside { grid-column: 1 / span 5; }
  .contact-form { grid-column: 7 / span 6; position: sticky; top: calc(var(--nav-h) + 24px); }
  .contact-figure { aspect-ratio: 4 / 3; }
}

@media (min-width: 1280px) {
  .nav-phone { display: inline; }
  .wz-services { grid-template-columns: 1fr; }
}

@media (max-width: 539px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .chat-fab-label { display: none; }
  .chat-fab { padding: .7rem; }
  .info-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .gallery-arrow { width: 42px; height: 42px; }
  .sum-grid { grid-template-columns: 1fr; }
}

/* 23. Reduced motion — only the intrusive effects ------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: none; }
  .hero-scroll span { animation: none; }
  .marquee-track { animation-duration: 120s; }
}

/* 24. Print ---------------------------------------------------------- */
@media print {
  .nav, .chat, .hero-scroll, .marquee, .estimator, .gallery { display: none !important; }
  .js [data-reveal], .js [data-clip] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* 25. Estimator extras ---------------------------------------------- */
.file-list .file-warn { background: rgba(255, 180, 168, .1); color: #ffcfc6; }
@media (min-width: 540px) { .wz-hint.span-2 { grid-column: span 2; } }
.wz-fields > div { min-width: 0; }

/* 26. Brand identity — High Quality Home Improvements --------------- */
/* Logo: blue roofs, heavy condensed brick-red caps, letterspaced blue subline. */
:root { --logo-roof: var(--blue); --logo-text: var(--brick); --logo-sub: var(--blue); --logo-win: #3c3f45; }

.brand { gap: 0; }
.brand-logo { display: block; height: 46px; width: auto; transition: filter .4s var(--ease-out); }
.nav { --logo-roof: var(--blue-light); --logo-text: var(--paper); --logo-sub: var(--blue-light); --logo-win: var(--navy-900); }
.nav.is-solid { --logo-roof: var(--blue); --logo-text: var(--brick); --logo-sub: var(--blue); --logo-win: #3c3f45; }
.nav .mobile-menu { --logo-text: var(--paper); }
@media (min-width: 960px) { .brand-logo { height: 56px; } }

.logo-plate { display: inline-block; background: var(--paper); padding: 18px 22px 14px; border-radius: 2px; }
.footer-logo { display: block; height: 70px; width: auto; }

/* Typography: heavy condensed caps for display, echoing the wordmark. */
em { font-style: normal; }
.display, .hero-title, .svc-title, .marquee span, .footer-giant, .legal h1 { font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.display { line-height: .92; }
.hero-title { line-height: .88; font-size: clamp(3.4rem, 10.6vw, 11rem); max-width: 12ch; }
.svc-title { line-height: .95; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.step h3, .wz-title, .project-title, .gallery-head h3, .mobile-menu a:not(.btn), .sum-head, .legal h2, .chat-lead h4 { font-weight: 700; text-transform: uppercase; letter-spacing: .005em; }
.wz-service-card strong { font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.why-num { font-style: normal; font-weight: 800; }
.sum-range strong { font-weight: 700; }
.t-card blockquote { font-family: var(--sans); font-size: clamp(1.06rem, 1.3vw, 1.2rem); font-weight: 500; line-height: 1.6; }
.faq summary { font-family: var(--sans); font-weight: 600; font-size: clamp(1.02rem, 1.25vw, 1.14rem); line-height: 1.4; }
.form-intro { font-family: var(--sans); font-weight: 600; font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.45; }
.footer-giant { -webkit-text-stroke: 1px rgba(159, 180, 234, .16); }

/* Two accents with fixed roles: blue = structure and measurement, brick red = emphasis and action. */
.kicker-num::after { background: var(--blue); opacity: 1; }
.kicker-line { background: var(--blue-light); }
.hero-dim { color: var(--blue-light); }
.dim-svg, .dim-tag { color: var(--blue); }
.tick-list li::before { background: var(--blue); }
.spec-list span, .step-num, .svc-index { color: var(--blue); }
.svc-siding .svc-index, .estimator-points span { color: var(--blue-light); }
.process-fill { background: var(--blue); }
.step::before { border-color: var(--blue); }
.step.is-on::before { background: var(--blue); }
.materials-panels { border-left-color: var(--blue-light); }
.wizard-progress span.is-active, .wizard-progress span.is-done { background: var(--blue-light); }
.reveal-gauge i { background: var(--blue-light); }
.marquee i { color: var(--blue); }
.why-figure::after { border-color: var(--blue); }
.svc-card { border-top-color: var(--brick); }
.marquee span { -webkit-text-stroke: 1px rgba(26, 28, 32, .5); }
.chat-avatar { color: var(--blue-light); border-color: rgba(159, 180, 234, .5); }
.chat-fab-icon { background: var(--brick-deep); }

/* Real-font metrics: give the condensed display caps room inside the reveal mask. */
.hero-title { line-height: .94; }
.hero-title .line { padding-top: .04em; padding-bottom: .08em; margin-bottom: -.02em; }
