/* ETX Home Improvement · site stylesheet. Design: concept 15 "Site Plan".
   Naming: lowercase, single hyphens (block, block-element); variants are extra classes (is-active, has-corner).
   Skeleton: section.section > .container > .content > .heading-wrapper > .heading
   Spacing sits on a 4px grid (--space-*). Desktop first: tokens shrink at tablet (≤1199px) and mobile (≤767px),
   and each block's own breakpoint rules follow it. */

@font-face { font-family: "Saira"; src: url("/assets/fonts/saira-variable-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 125%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-variable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  /* Brand palette, plus the near-blacks and rules the design uses */
  --color-gold: #C97E18; --color-gold-rgb: 201, 126, 24;
  --color-black: #101110; --color-black-rgb: 16, 17, 16;
  --color-grey-dark: #535458; --color-grey: #C5C4C7; --color-grey-light: #EDEDEF; --color-white: #FFFFFF;
  --color-grey-rgb: 197, 196, 199;
  --color-ink: #16191B; --color-panel: #222628;
  --color-lockup: #616266;     /* footer REMODEL × REPAIR: quiet, but 3.1:1 on black */
  --color-line: rgba(83, 84, 88, .7); --color-line-light: rgba(255, 255, 255, .2); --color-line-faint: rgba(255, 255, 255, .1);
  /* Type: Saira only; headings are SemiCondensed */
  --font: "Saira", system-ui, sans-serif; --stretch-semi: 87.5%;
  --font-body: "Archivo", system-ui, sans-serif; /* body copy: see "Archivo" under Type */
  --text-xs: 11px; --text-sm: 15px; --text-md: 16px; --text-body: 17px; --text-lg: 18px; --text-xl: 20px; --text-2xl: 22px;
  --text-title-small: 28px; --text-title: 40px; --text-quote: 40px; --text-heading: 57.6px; --text-heading-xl: 80.64px;
  --text-display: 106.56px; --text-stat: 64px; --text-step: 120px;
  /* Spacing: 4px grid */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-7: 28px;
  --space-8: 32px; --space-10: 40px; --space-14: 56px;
  --pad: 44px; --gutter: 40px; --space-section: 128px; --space-heading: 56px;
  --header-height: 68px; --button-height: 52px; --corner-size: 80px;
}
@media (max-width: 1199px) {
  :root {
    --pad: 32px; --gutter: 32px; --space-section: 96px; --space-heading: 44px;
    --text-xl: 19px; --text-2xl: 18px; --text-title-small: 26px; --text-title: 34px; --text-quote: 32px;
    --text-heading: 46px; --text-heading-xl: 64px; --text-display: 80px; --text-stat: 56px; --text-step: 96px;
  }
}
@media (max-width: 767px) {
  :root {
    --pad: 24px; --gutter: 16px; --space-section: 72px; --space-heading: 32px;
    --text-md: 15px; --text-body: 16px; --text-lg: 17px; --text-xl: 18px; --text-2xl: 17px;
    --text-title-small: 22px; --text-title: 30px; --text-quote: 24px;
    --text-heading: 36px; --text-heading-xl: 44px; --text-display: 52px; --text-stat: 40px; --text-step: 64px;
    --button-height: 56px; --corner-size: 48px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + var(--space-4)); background: var(--color-black); }
/* Plan Set drafting grid: 120px major, 24px minor */
body {
  margin: 0;
  font: 400 var(--text-body)/1.55 var(--font);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  color: var(--color-white);
  background-color: var(--color-black);
  background-image:
    linear-gradient(rgba(83, 84, 88, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 84, 88, .16) 1px, transparent 1px),
    linear-gradient(rgba(83, 84, 88, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 84, 88, .09) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
p, h1, h2, h3, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.icon-sprite { position: absolute; }
/* Skip link: hidden above the page until it gets keyboard focus */
.skip-link { position: absolute; left: var(--space-4); top: calc(var(--space-14) * -1); z-index: 200; padding: var(--space-3) var(--space-4); background: var(--color-white); color: var(--color-black); font-size: var(--text-sm); font-weight: 700; }
.skip-link:focus { top: var(--space-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; }
}

/* ---------- Type ---------- */
.display, .heading, .title, .title-small, .faq-question span { font-stretch: var(--stretch-semi); letter-spacing: -.01em; color: var(--color-white); text-wrap: balance; }
.display { font-size: var(--text-display); font-weight: 500; line-height: .93; }
.heading { font-size: var(--text-heading); font-weight: 700; line-height: 1.02; }
.heading-xl { font-size: var(--text-heading-xl); line-height: .98; text-align: center; max-width: 640px; }
.title { font-size: var(--text-title); font-weight: 700; line-height: 1.04; }
.title-small { font-size: var(--text-title-small); font-weight: 700; line-height: 1.15; }
.eyebrow { font-size: var(--text-sm); font-weight: 500; color: var(--color-gold); }
/* Archivo is for body copy only: subheadings (eyebrows, including the testimonial names), paragraphs, FAQ
   answers and the form's text. Everything else (headings, bullets, numbers, the testimonial quote, buttons,
   nav) stays Saira. The form fields inherit it from .field, so inputs and placeholders follow. */
.eyebrow, .hero-eyebrow, .text, .lead, .faq-answer, .estimate-form .field, .form-status { font-family: var(--font-body); }
.text { font-size: var(--text-body); line-height: 1.6; color: var(--color-grey); max-width: 612px; }
.text-large { font-size: var(--text-lg); max-width: 560px; }
.lead { font-size: var(--text-xl); line-height: 1.5; color: var(--color-grey-light); max-width: 600px; }
@media (max-width: 767px) {
  .display { line-height: .95; }
  .heading { line-height: 1.05; }
}

/* ---------- Icons (sprite in partials/icons.njk) ---------- */
.icon { flex: none; width: 24px; height: 24px; }
.icon-chevron { width: 10px; height: 15px; color: var(--color-gold); }
.icon-cross { width: 16px; height: 16px; color: var(--color-grey-dark); }
.icon-texas { width: 20px; height: 20px; }

/* ---------- Buttons and other uppercase calls to action ---------- */
.button, .site-header-cta, .site-nav-cta, .footer-cta {
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: 700; line-height: 1.2; text-transform: uppercase; white-space: nowrap; color: var(--color-white);
}
.button-row { display: flex; }
.hero .button-row, .cta .button-row { margin-top: var(--space-8); }
.button { height: var(--button-height); }
/* Gold: angled right edge. Outline: SVG with an angled left edge, tucked under the gold one. */
.button-gold { padding: 0 var(--space-10) 0 var(--space-6); background: var(--color-gold); clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); }
/* The outline is always clipped to the SVG's own slant (21 of its 253 units, so it scales with the button), so the
   hover's white fill never shows the cut-off top-left corner, even while it fades out. */
.button-outline { margin-left: calc(var(--space-2) * -1); padding: 0 var(--space-6) 0 44px; background: url("/assets/images/ui/btn-outline.svg") 0 0 / 100% 100% no-repeat; clip-path: polygon(calc(100% * 21 / 253) 0, 100% 0, 100% 100%, 0 100%); }
/* Anything filled gold takes black text (5.84:1; white on gold is only 3.24:1) */
.button-gold, .site-header-cta, .site-nav-cta, .footer-cta:hover, .footer-cta:focus-visible { color: var(--color-black); }
.button-gold:hover, .site-header-cta:hover, .site-nav-cta:hover { background: var(--color-white); }
.button-outline:hover { background: var(--color-white); color: var(--color-black); }
.button:focus-visible { clip-path: none; }
/* Mobile: the pair shares the row; labels wrap when tight */
@media (max-width: 767px) {
  .button-row { width: 100%; max-width: 420px; }
  .hero .button-row, .cta .button-row { margin-top: var(--space-7); }
  .button { flex: 1 1 auto; min-width: 0; font-size: 13px; white-space: normal; text-align: center; }
  .button-gold { padding: 0 var(--space-7) 0 var(--space-4); }
  .button-outline { padding: 0 var(--space-4) 0 var(--space-7); }
}

/* ---------- Layout skeleton ---------- */
.section { padding-top: var(--space-section); }
/* Nav jumps land with the section's content just under the header, not its top padding */
.section[id] { scroll-margin-top: calc(var(--space-section) * -1 + var(--space-8)); }
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.content { position: relative; }
.heading-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
/* Section headings sit open on the grid with a gold line down the left edge */
.section .heading-wrapper { position: relative; padding: 0 var(--pad) var(--space-heading); }
.section .heading-wrapper::before { content: ""; position: absolute; left: 0; top: 0; bottom: var(--space-heading); width: 1px; background: var(--color-gold); }
.heading-wrapper .heading { max-width: 760px; }
/* Heading on the left half, text on the right half */
.heading-wrapper.is-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 88px; align-items: start; }
.heading-wrapper.is-split .heading { max-width: 560px; }
.heading-wrapper.is-split .text { align-self: end; } /* the side text sits at the bottom, level with the end of the gold rule */
@media (max-width: 1199px) {
  .heading-wrapper.is-split { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-5); }
  .heading-wrapper.is-split .text { padding-top: 0; }
}

/* 12-column hairline grid. Cells are filled solid so the drafting grid never shows behind copy. */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--color-line); border-left: 1px solid var(--color-line); }
.cell { position: relative; min-width: 0; background: var(--color-black); border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.cell.is-panel { background: var(--color-panel); }
.span-2 { grid-column: span 2; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-12 { grid-column: span 12; }

/* Photos: cover image under a 20% wash; has-corner adds the gold corner flag */
.photo { position: relative; overflow: hidden; background: var(--color-ink); }
.photo img, .hero-photo, .xray-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; background: rgba(var(--color-black-rgb), .2); }
/* The corner is four 45° gold stripes on one gradient, laid along the diagonal from the top-left corner.
   --fold is how far the pattern reaches (100% covers the photo; at rest, the corner triangle's depth).
   --open (0–1) opens the gaps between stripes, from the bottom-right stripe inwards; at 0 they meet and read
   as one solid shape. --thin (0–1) widens every gap together, down to fine lines. Stripes sit on a 25% pitch;
   --open makes each gap 10% of the pattern and --thin adds 12% more, leaving 3% lines.
   At rest: the 80px triangle (48px on phones). The build-in (Motion, below) runs solid square → stripes →
   shrink into the corner. The closing stop sits at 100% so every browser draws it the same. */
@property --fold { syntax: "<length-percentage>"; inherits: false; initial-value: 0px; }
@property --open { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --thin { syntax: "<number>"; inherits: false; initial-value: 0; }
.photo.has-corner::before {
  --fold: calc(var(--corner-size) * .7071);
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg,
    var(--color-gold) 0 calc(var(--fold) * (.25 - .1 * clamp(0, (var(--open) - .45) / .55, 1) - .12 * var(--thin))),
    transparent 0 calc(var(--fold) * .25),
    var(--color-gold) 0 calc(var(--fold) * (.5 - .1 * clamp(0, (var(--open) - .3) / .55, 1) - .12 * var(--thin))),
    transparent 0 calc(var(--fold) * .5),
    var(--color-gold) 0 calc(var(--fold) * (.75 - .1 * clamp(0, (var(--open) - .15) / .55, 1) - .12 * var(--thin))),
    transparent 0 calc(var(--fold) * .75),
    var(--color-gold) 0 calc(var(--fold) * (1 - .1 * clamp(0, var(--open) / .55, 1) - .12 * var(--thin))),
    transparent 0 100%);
}

/* Framed boxes: black (work collage, FAQ list) and panel-filled (testimonial, X-ray list) */
.work-frame, .faq-list { border: 1px solid var(--color-line); background: var(--color-black); }
.testimonial-card, .xray-panel { border: 1px solid var(--color-line); background: var(--color-panel); }

/* Title-block tag hanging under a sheet */
.sheet-tag { position: absolute; right: var(--space-2); top: 100%; z-index: 3; display: flex; background: var(--color-black); border: 1px solid var(--color-line); border-top: 0; font-size: var(--text-xs); font-weight: 500; line-height: 1; font-stretch: 90%; letter-spacing: .06em; color: var(--color-grey); }
.sheet-tag span { padding: var(--space-2) var(--space-3); }
.sheet-tag-number { border-left: 1px solid var(--color-line); color: var(--color-gold); }

/* Lists with an icon per item. Ruled above, between and below; is-divided rules between items only. */
.list { border-top: 1px solid var(--color-line); }
.list-item { display: flex; align-items: flex-start; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); font-size: var(--text-body); line-height: 1.4; color: var(--color-grey-light); }
.list-item .icon-chevron, .list-item .icon-cross { margin-top: var(--space-1); }
.list.is-divided { border-top: 0; }
.list.is-divided .list-item:last-child { border-bottom: 0; }
.list.is-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); }
@media (max-width: 767px) { .list.is-two-column { grid-template-columns: minmax(0, 1fr); } }

/* REMODEL × REPAIR lockup: words trimmed to cap height, × drawn and centered on the caps */
.lockup { display: inline-flex; align-items: center; white-space: nowrap; }
.lockup-word { text-box: trim-both cap alphabetic; }
.lockup-x { flex: none; width: .4em; height: .4em; fill: none; stroke: var(--color-gold); stroke-width: 2.4; overflow: visible; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; display: grid; grid-template-columns: 1fr auto auto auto; height: var(--header-height); background: var(--color-black); border-bottom: 1px solid var(--color-line); }
.site-header-logo { display: flex; align-items: center; padding: 0 var(--space-7) 0 var(--gutter); }
.site-header-logo img { width: 138px; height: 34px; }
.site-nav { display: grid; grid-template-columns: repeat(3, 124px); }
.site-nav-link, .site-header-phone { display: flex; align-items: center; justify-content: center; padding: 0 var(--space-7); border-left: 1px solid var(--color-line); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.site-nav-link:hover, .site-header-phone:hover { color: var(--color-gold); }
.site-header-cta { padding: 0 var(--space-8); background: var(--color-gold); }
.site-nav-phone, .site-nav-cta, .menu-button { display: none; }
/* Menu button: three 40px lines that turn into a gold × */
.menu-button { position: relative; width: var(--header-height); padding: 0; border: 0; border-left: 1px solid var(--color-line); background: none; color: var(--color-white); cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { position: absolute; left: 50%; width: 40px; height: 2px; margin-left: -20px; background: currentColor; }
.menu-icon { top: calc(50% - 1px); }
.menu-icon::before, .menu-icon::after { content: ""; left: 0; margin-left: 0; }
.menu-icon::before { top: calc(var(--space-2) * -1); }
.menu-icon::after { top: var(--space-2); }
.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before, .menu-button[aria-expanded="true"] .menu-icon::after { top: 0; background: var(--color-gold); }
.menu-button[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
/* Tablet: the nav drops down from the menu button */
@media (max-width: 1199px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; grid-template-columns: minmax(0, 1fr); background: var(--color-black); border-bottom: 1px solid var(--color-line); }
  .site-nav.is-open { display: grid; }
  .site-nav-link { justify-content: flex-start; height: 60px; padding: 0 var(--gutter); border-left: 0; border-top: 1px solid var(--color-line); font-size: var(--text-lg); }
}
/* Mobile: full-screen menu, phone and estimate at the bottom, page scroll locked */
@media (max-width: 767px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header-logo { padding-right: var(--space-4); }
  .site-header-phone, .site-header-cta { display: none; }
  .site-nav { position: fixed; top: var(--header-height); bottom: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); border-bottom: 0; }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav-link { flex: none; height: 84px; font-size: 40px; font-weight: 600; font-stretch: var(--stretch-semi); letter-spacing: -.01em; }
  .site-nav-link:has(+ .site-nav-phone) { border-bottom: 1px solid var(--color-line); }
  .site-nav-phone { display: flex; margin-top: auto; height: 72px; border-top: 0; border-bottom: 1px solid var(--color-line); font-size: 26px; font-weight: 500; color: var(--color-gold); }
  .site-nav-cta { display: flex; justify-content: center; height: 60px; margin: var(--space-6) var(--gutter); border: 0; background: var(--color-gold); font-size: 17px; font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
  .site-nav-cta:hover { color: var(--color-black); }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
/* Fills the viewport below the header */
.hero { position: relative; height: calc(100vh - var(--header-height)); height: calc(100svh - var(--header-height)); min-height: 620px; overflow: hidden; background: var(--color-black); }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(var(--color-black-rgb), .44); }
/* Gold L-line on the right and bottom edges, lockup tucked into that corner */
.hero-frame { position: absolute; inset: var(--space-5); z-index: 1; }
.hero-frame::before, .hero-frame::after { content: ""; position: absolute; right: 0; bottom: 0; background: var(--color-gold); }
.hero-frame::before { top: 0; width: 1px; transform-origin: top; }
.hero-frame::after { left: 0; height: 1px; transform-origin: right; }
.hero-lockup { position: absolute; right: var(--space-10); bottom: var(--space-10); gap: var(--space-2); font-size: 33px; font-weight: 500; line-height: 1; font-stretch: 75%; letter-spacing: .06em; color: var(--color-gold); }
.hero .container { position: relative; z-index: 2; height: 100%; }
.hero .content { display: flex; flex-direction: column; justify-content: center; height: 100%; padding-left: 52px; }
.hero .heading-wrapper { gap: var(--space-6); }
.hero-eyebrow { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-md); font-weight: 500; line-height: 1.3; color: var(--color-grey-light); }
.hero .display { max-width: 780px; }
/* Stat column on the right */
.hero-stats { position: absolute; right: var(--space-8); top: 92px; width: 200px; }
.hero-stat { padding: var(--space-5) 0; border-top: 1px solid var(--color-line-light); }
.hero-stat:last-child { border-bottom: 1px solid var(--color-line-light); }
.hero-stat-value { display: flex; align-items: baseline; gap: var(--space-2); font-size: var(--text-md); font-weight: 600; font-stretch: var(--stretch-semi); line-height: 1; }
.hero-stat-number { font-size: var(--text-stat); font-weight: 500; font-stretch: 100%; line-height: .8; letter-spacing: -.014em; color: var(--color-gold); }
.hero-stat-label { margin-top: var(--space-2); font-size: var(--text-sm); font-weight: 500; line-height: 1.35; color: var(--color-grey-light); }
/* Time of day: one photo per time, shown by data-tod on <html> (set before paint; dusk without JS). The shade
   over the photo deepens on the brighter times so the white type keeps its contrast; hero-scene.js blends it
   along with the photos (the values match "shade" in home.json). */
.hero { --hero-shade: .44; }
[data-tod="dawn"] .hero { --hero-shade: .5; }
[data-tod="day"] .hero { --hero-shade: .54; }
[data-tod="night"] .hero { --hero-shade: .3; }
.hero::after { background: rgba(var(--color-black-rgb), var(--hero-shade)); }
.hero-photo { display: none; }
html:not([data-tod]) .hero-photo[data-tod="dusk"],
[data-tod="dawn"] .hero-photo[data-tod="dawn"], [data-tod="day"] .hero-photo[data-tod="day"],
[data-tod="dusk"] .hero-photo[data-tod="dusk"], [data-tod="night"] .hero-photo[data-tod="night"] { display: block; }
/* Without the canvas, hero-scene.js stacks the photos and blends them with inline opacity */
.hero.is-blending .hero-photo { display: block; }
/* The wind: hero-scene.js redraws the photos on this canvas and fades it in once it matches */
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity .6s; }
.hero-scene.is-ready { opacity: 1; }
/* Time slider, bottom left, opposite the lockup. No panel: the track sits on the gold frame line (its centre
   15px above the slider's bottom, so the slider hangs 15px below the line), white marks cross the line at each
   time, and the four time icons stand above them. The icon nearest the gold square thumb turns gold; a gold
   tick sits under the viewer's own time. Icons and marks line up because both span the same width, inset by
   half the thumb. */
.hero-time { --thumb: 31.2px; --thumb-h: 28.4px; position: absolute; z-index: 3; left: calc(var(--space-5) + var(--space-8)); bottom: calc(var(--space-5) - 15px + .5px); display: none; width: 200px; }
.hero.has-time .hero-time { display: block; }
.hero-time-ticks { position: relative; height: 30px; }
.hero-time-tick { position: absolute; top: 0; left: calc(var(--thumb) / 2 + var(--k) * (100% - var(--thumb)) / (var(--stops) - 1)); display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .55); cursor: pointer; transform: translateX(-50%); transition: color .25s; }
.hero-time-tick .icon { width: 18px; height: 18px; fill: transparent; transition: fill .25s; }
.hero-time-tick:hover { color: var(--color-white); }
.hero-time-tick.is-shown { color: var(--color-gold); }
.hero-time-tick.is-shown .icon { fill: currentColor; } /* the active time's sun, half-sun or moon goes solid */
.hero-time-tick.is-now::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 3px; height: 3px; margin-left: -1.5px; background: var(--color-gold); }
/* The track: just a short white mark at each time (the gold frame line is the track) */
.hero-time-slider { --mark: linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, .6)); display: block; width: 100%; height: 30px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.hero-time-slider::-webkit-slider-runnable-track {
  height: 30px;
  background:
    var(--mark) calc(var(--thumb) / 2) 50% / 1px 7px no-repeat,
    var(--mark) calc(var(--thumb) / 2 + (100% - var(--thumb)) / 3) 50% / 1px 7px no-repeat,
    var(--mark) calc(var(--thumb) / 2 + (100% - var(--thumb)) * 2 / 3) 50% / 1px 7px no-repeat,
    var(--mark) calc(100% - var(--thumb) / 2) 50% / 1px 7px no-repeat;
}
.hero-time-slider::-moz-range-track {
  height: 30px;
  background:
    var(--mark) calc(var(--thumb) / 2) 50% / 1px 7px no-repeat,
    var(--mark) calc(var(--thumb) / 2 + (100% - var(--thumb)) / 3) 50% / 1px 7px no-repeat,
    var(--mark) calc(var(--thumb) / 2 + (100% - var(--thumb)) * 2 / 3) 50% / 1px 7px no-repeat,
    var(--mark) calc(100% - var(--thumb) / 2) 50% / 1px 7px no-repeat;
}
/* The thumb is the gold hexagon of the check icons (points left and right), lifted off the gold line by a soft
   drop shadow (drawn in the SVG, with room around it so the blur isn't clipped); focus adds a white hexagonal
   ring. --thumb is its width, which the icons and marks use. */
.hero-time-slider { --hex: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -6 36 32.784'><defs><filter id='s' filterUnits='userSpaceOnUse' x='-6' y='-6' width='36' height='32.784'><feDropShadow dx='0' dy='1.6' stdDeviation='2.4' flood-color='%23000' flood-opacity='.85'/></filter></defs><path filter='url(%23s)' d='M17 1.732 22 10.392 17 19.052H7L2 10.392 7 1.732Z' fill='%23C97E18'/></svg>"); --hex-focus: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -6 36 32.784'><defs><filter id='s' filterUnits='userSpaceOnUse' x='-6' y='-6' width='36' height='32.784'><feDropShadow dx='0' dy='1.6' stdDeviation='2.4' flood-color='%23000' flood-opacity='.85'/></filter></defs><g filter='url(%23s)'><path d='M18.25 -0.433 24.5 10.392 18.25 21.217H5.75L-0.5 10.392 5.75 -0.433Z' fill='%23FFFFFF'/><path d='M17.625 0.649 23.25 10.392 17.625 20.134H6.375L0.75 10.392 6.375 0.649Z' fill='%23101110'/><path d='M17 1.732 22 10.392 17 19.052H7L2 10.392 7 1.732Z' fill='%23C97E18'/></g></svg>"); }
.hero-time-slider::-webkit-slider-thumb { width: var(--thumb); height: var(--thumb-h); margin-top: calc((30px - var(--thumb-h)) / 2); border: 0; border-radius: 0; background: var(--hex) center / 100% 100% no-repeat; -webkit-appearance: none; appearance: none; }
.hero-time-slider::-moz-range-thumb { width: var(--thumb); height: var(--thumb-h); border: 0; border-radius: 0; background: var(--hex) center / 100% 100% no-repeat; }
.hero-time-slider:focus { outline: none; }
.hero-time-slider:focus-visible::-webkit-slider-thumb { background-image: var(--hex-focus); }
.hero-time-slider:focus-visible::-moz-range-thumb { background-image: var(--hex-focus); }
/* Tablet: the stats become a row under the buttons, in a hero at least one screen tall */
@media (max-width: 1199px) {
  .hero { display: flex; flex-direction: column; justify-content: center; height: auto; min-height: calc(100svh - var(--header-height)); }
  .hero .container, .hero .content { height: auto; }
  .hero .content { padding: 96px var(--space-6) 0; }
  .hero-stats { position: relative; inset: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-6); width: auto; max-width: 720px; margin: var(--space-14) 0 120px; }
  .hero-stat:last-child { border-bottom: 0; }
}
@media (max-width: 767px) {
  .hero-frame { inset: var(--space-3); }
  .hero-lockup { right: var(--space-4); bottom: var(--space-4); gap: var(--space-1); font-size: 22px; }
  .hero .content { padding: 64px var(--space-3) 0; }
  .hero .heading-wrapper { gap: var(--space-4); }
  .hero-stats { column-gap: var(--space-3); margin: var(--space-10) 0 80px; }
  /* Phone: lined up with the copy, and narrow enough to clear the lockup on the same line */
  .hero-time { left: calc(var(--space-3) + var(--space-4)); bottom: calc(var(--space-3) - 15px + .5px); width: 140px; }
  .hero-stat { padding: var(--space-4) 0; }
  .hero-stat-value { flex-wrap: wrap; gap: var(--space-1); font-size: 13px; }
  .hero-stat-label { font-size: 13px; }
}

/* ---------- Problem: X-ray ---------- */
/* Two photos of the same room that line up 1:1: the finished room, and the same room with the walls opened up.
   Everything sits in .xray-scene, a box at the photos' 3:2 shape (--w × --h) that covers the stage like
   object-fit: cover, so the spots use percent of the photo and stay on their details at any stage shape.
   The lens (--d across, in container units of the stage) is a round window holding a second copy of the
   opened-up photo. It sits at --lx/--ly (fractions of the photo) for the first paint and without JavaScript;
   main.js then moves the window and counter-moves the photo inside it with transforms, so the photo stays put
   and nothing repaints as the lens slides. .xray-open fades the whole opened-up room in for the last problem. */
.xray { position: relative; height: 664px; background: var(--color-ink); }
.xray-stage { position: absolute; inset: 0 424px 0 0; overflow: hidden; container-type: size; background: var(--color-ink); touch-action: pan-y; }
/* When the stage is narrower than 3:2 the scene's sides are cropped, 20% from the left and 80% from the right,
   so the problems on the left wall stay in view (the right edge is only bar stools) */
.xray-scene { --ratio: 1.5; --w: max(100cqw, 100cqh * var(--ratio)); --h: max(100cqh, 100cqw / var(--ratio)); --d: 31.62cqw; position: absolute; left: calc((100cqw - var(--w)) * .2); top: calc((100cqh - var(--h)) * .5); width: var(--w); height: var(--h); }
.xray-finished { filter: brightness(.55); }
.xray-open { position: absolute; inset: 0; opacity: 0; }
.xray-scene.is-open .xray-open { opacity: 1; }
.xray-lens { position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); pointer-events: none; will-change: transform;
  transform: translate(calc(var(--lx) * var(--w) - var(--d) / 2), calc(var(--ly) * var(--h) - var(--d) / 2)); }
.xray-window { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; }
.xray-window-photo { position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); max-width: none; will-change: transform;
  transform: translate(calc(var(--d) / 2 - var(--lx) * var(--w)), calc(var(--d) / 2 - var(--ly) * var(--h))); }
.xray-lens::after { content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(var(--color-gold-rgb), .9); border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(var(--color-gold-rgb), .08), 0 0 48px rgba(var(--color-gold-rgb), .35), inset 0 0 40px rgba(var(--color-gold-rgb), .18); }
.xray-spot { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; border: 1px solid var(--color-gold); border-radius: 50%; background: rgba(var(--color-black-rgb), .5); transform: translate(-50%, -50%); pointer-events: none; }
.xray-spot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--color-gold); }
/* The last problem (no spot) opens the whole room: main.js adds .is-open and the lens steps aside */
.xray-scene.is-open .xray-lens { opacity: 0; }
/* With a mouse, the lens is the cursor */
@media (hover: hover) and (pointer: fine) { .xray-stage.is-live { cursor: none; } }
.xray-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 424px; display: flex; flex-direction: column; justify-content: center; padding: var(--space-6) var(--space-7); border-color: var(--color-line-light); }
.xray .list { margin: 0; }
/* Each problem is a button. As in the Figma, only the active one shows its chevron, and its text steps over. */
.xray-item { width: 100%; gap: 0; padding: var(--space-4) var(--space-2); margin: 0; font: inherit; font-size: var(--text-md); line-height: 1.5; text-align: left; color: var(--color-grey); background: none; border: 0; border-bottom: 1px solid var(--color-line-faint); cursor: pointer; }
.xray li:last-child .xray-item { border-bottom: 0; }
.xray-item .icon { width: 0; margin-right: 0; opacity: 0; }
.xray-item:hover { color: var(--color-grey-light); }
.xray-item.is-active { font-weight: 500; color: var(--color-white); }
.xray-item.is-active .icon { width: 10px; margin-right: 14px; opacity: 1; }
.xray-item:focus-visible { outline-offset: -2px; }
/* Tablet and mobile: the X-ray (at the desktop stage's proportions) sits above a one-column list */
@media (max-width: 1199px) {
  .xray { display: flex; flex-direction: column; height: auto; }
  .xray-stage { position: relative; inset: auto; aspect-ratio: 936 / 664; }
  .xray-panel { position: relative; inset: auto; width: auto; padding: var(--space-2) var(--pad); }
}
/* Portrait screens with motion: the stage sticks under the header while the list scrolls beneath it */
@media (max-width: 1199px) and (max-aspect-ratio: 3 / 4) {
  .js-motion .xray-stage { position: sticky; top: var(--header-height); z-index: 2; }
}
@media (max-width: 767px) {
  .xray-spot { width: 10px; height: 10px; }
  .xray-spot::after { inset: 2px; }
}

/* ---------- Testimonial (attached under the empathy heading) ---------- */
.testimonial { padding-top: 0; }
.testimonial-card { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--pad); }
/* Quotes share one grid cell, so the card never resizes while paging */
.testimonial-stack { display: grid; }
.testimonial-quote { grid-area: 1 / 1; display: flex; flex-direction: column; gap: var(--space-5); visibility: hidden; }
.testimonial-quote.is-active { visibility: visible; }
.testimonial-text { max-width: 1070px; font-size: var(--text-quote); line-height: 1.25; color: var(--color-white); }
/* Previous / next: one black framed control, two square chevron buttons split by a rule */
.testimonial-nav { display: flex; align-self: flex-end; border: 1px solid var(--color-line); background: var(--color-black); }
/* Padding gives a 35 × 44px tap target; the negative margin keeps the arrows where they sit */
.testimonial-button { display: grid; place-items: center; width: var(--button-height); height: var(--button-height); padding: 0; border: 0; background: none; cursor: pointer; }
.testimonial-button + .testimonial-button { border-left: 1px solid var(--color-line); }
.testimonial-button[data-step="-1"] .icon { transform: rotate(180deg); }
.testimonial-button:hover:not(:disabled) { background: var(--color-ink); }
.testimonial-button:disabled { cursor: default; }
.testimonial-button:disabled .icon { opacity: .35; }
@media (max-width: 1199px) { .testimonial-text { line-height: 1.3; } }
@media (max-width: 767px) {
  .testimonial-text { line-height: 1.35; }
}

/* ---------- Our Work: framed collage ---------- */
.work .heading { max-width: 380px; }
.work-frame { padding: var(--space-4); }
.work-grid { display: grid; grid-template-areas: "a a a a a b b b b b b b" "a a a a a c c c c d d d" "e e e e e e e f f f f f"; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 292px 292px 344px; gap: var(--space-4); }
.work-photo:nth-child(1) { grid-area: a; } .work-photo:nth-child(2) { grid-area: b; } .work-photo:nth-child(3) { grid-area: c; }
.work-photo:nth-child(4) { grid-area: d; } .work-photo:nth-child(5) { grid-area: e; } .work-photo:nth-child(6) { grid-area: f; }
/* Tablet and mobile: two columns, the first photo tall, the last full width */
@media (max-width: 1199px) {
  .work-frame { padding: var(--space-3); }
  .work-grid { grid-template-areas: "a b" "a c" "d e" "f f"; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, 240px) 300px; gap: var(--space-3); }
}
@media (max-width: 767px) {
  .work-frame { padding: var(--space-2); }
  .work-grid { grid-template-rows: repeat(3, 152px) 200px; gap: var(--space-2); }
}

/* ---------- Services: one row per service ---------- */
.services .heading { max-width: 660px; }
.service { position: relative; }
.service + .service { margin-top: var(--space-section); }
.service .cell { height: 560px; }
.service-body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-6); padding: var(--pad); }
.service-body .list { margin-top: var(--space-3); }
.service-art { overflow: hidden; }
/* The chevron art is cropped differently at the start, middle or end of a row */
.service-art-image { position: absolute; width: 760px; height: 560px; max-width: none; pointer-events: none; }
.service-art-image.is-start { left: calc(50% - 32px); top: 50%; transform: translate(-50%, -50%); }
.service-art-image.is-middle { left: -296px; bottom: 0; }
.service-art-image.is-end { left: -352px; bottom: 0; }
/* Tablet and mobile: photo on top, text below, no art cell */
@media (max-width: 1199px) {
  .service { grid-template-columns: minmax(0, 1fr); }
  .service .cell { grid-column: auto; height: auto; }
  .service .service-photo { order: -1; height: 440px; }
  .service-art { display: none; }
  .service-body { gap: var(--space-4); }
}
@media (max-width: 767px) { .service .service-photo { height: 260px; } }

/* ---------- Process: three steps and the guarantees ---------- */
.process .heading { max-width: 560px; }
.process-step { display: flex; flex-direction: column; gap: var(--space-4); min-height: 316px; padding: var(--pad); }
.process-number { flex: 1; padding-bottom: var(--space-7); font-size: var(--text-step); font-weight: 500; line-height: .714; letter-spacing: -.008em; color: var(--color-gold); }
.process-text { display: flex; flex-direction: column; gap: var(--space-4); }
.process-text .text { max-width: 366px; }
.guarantees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guarantee { display: flex; align-items: center; gap: var(--space-4); min-height: 104px; padding: var(--space-7) var(--pad); background: var(--color-ink); border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); font-size: var(--text-2xl); font-weight: 500; line-height: 1.3; color: var(--color-grey-light); }
.guarantee .icon { width: 32px; height: 32px; }
/* Tablet and mobile: steps become rows with the number on the left */
@media (max-width: 1199px) {
  .process-step { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: var(--space-6); min-height: 0; }
  .process-number { flex: none; width: 120px; padding-bottom: 0; }
  .process-text { flex: 1; min-width: 0; gap: var(--space-2); }
  .process-text .text { max-width: 560px; }
  .guarantee { min-height: 88px; padding: var(--space-6) var(--pad); }
  .guarantee .icon { width: 28px; height: 28px; }
}
@media (max-width: 767px) {
  .process-step { gap: var(--space-4); }
  .process-number { width: 56px; }
  .guarantees { grid-template-columns: minmax(0, 1fr); }
  .guarantee { min-height: 0; }
  .guarantee .icon { width: 24px; height: 24px; }
}

/* ---------- About: text panel and photo ---------- */
.about-body, .about-photo { min-height: 560px; }
/* The family photo is a tall portrait: the row is a little taller on desktop and the crop sits a bit high, so
   every face (Ruston's head down to the older son's) stays in the frame */
.about-photo img { object-position: 50% 30%; }
.about-body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-5); padding: var(--pad); }
/* Tablet and mobile: photo above the text */
@media (max-width: 1199px) {
  .about-body, .about-photo { grid-column: 1 / -1; min-height: 0; }
  .about-photo { order: -1; aspect-ratio: 4 / 3; }
  .about-body .text { max-width: 680px; }
}
/* Phones: a portrait frame, so the whole family shows */
@media (max-width: 767px) { .about-photo { aspect-ratio: 4 / 5; } }

/* ---------- Comparison ---------- */
.comparison .heading { max-width: none; }
.comparison-column { padding: var(--pad); }
.comparison-title { padding-bottom: var(--space-5); border-bottom: 1px solid var(--color-line); }
.comparison-column.is-them .comparison-title, .comparison-column.is-them .list-item { color: var(--color-grey); }
.comparison-column.is-us .comparison-title { color: var(--color-gold); }
.comparison-column.is-us .list-item { font-size: var(--text-lg); font-weight: 500; color: var(--color-white); }
@media (max-width: 1199px) { .comparison-column { grid-column: span 6; } }
@media (max-width: 767px) { .comparison-column { grid-column: 1 / -1; } }

/* ---------- Final CTA: the estimate form ---------- */
/* Heading and the guarantees in a panel on the left; the form on the right, with the 48-hour note under the
   message box. Fields are black wells with a
   hairline that turns gold on focus, and a grey example as placeholder. Labels, placeholders and the toggle
   all use the body copy style (Saira 400 at --text-body). The emergency toggle is two radio
   buttons drawn as one compact segmented control; the checked side fills gold. */
.cta-card { display: grid; grid-template-columns: 5fr 7fr; border: 1px solid var(--color-line); background: var(--color-ink); }
.cta-intro { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--pad); border-right: 1px solid var(--color-line); background: var(--color-panel); }
.cta-intro .heading { max-width: 420px; }
.cta-guarantees { margin: 0; padding: 0; list-style: none; }
.cta-guarantee { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line-faint); font-size: var(--text-lg); font-weight: 500; line-height: 1.35; color: var(--color-grey-light); }
.cta-guarantee:last-child { border-bottom: 0; }
.cta-guarantee .icon { width: 24px; height: 24px; }
.field-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--color-grey); }
.estimate-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-6); align-content: start; padding: var(--pad); }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.is-wide { grid-column: 1 / -1; }
.field-label { padding: 0; font-size: var(--text-body); font-weight: 400; line-height: 1.55; color: var(--color-grey-light); }
.field-optional { color: var(--color-grey); }
.field-input { width: 100%; height: var(--button-height); padding: 0 var(--space-4); border: 1px solid var(--color-line); border-radius: 0; background: var(--color-black); color: var(--color-white); font: inherit; font-size: var(--text-body); transition: border-color .2s; }
textarea.field-input { height: auto; min-height: 148px; padding: var(--space-3) var(--space-4); line-height: 1.5; resize: vertical; }
.field-input::placeholder { font: inherit; color: rgba(var(--color-grey-rgb), .5); opacity: 1; }
.field-input:hover { border-color: var(--color-grey-dark); }
.field-input:focus { border-color: var(--color-gold); outline: none; }
.field-input:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 0; }
.toggle { display: inline-grid; grid-template-columns: 1fr 1fr; align-self: start; border: 1px solid var(--color-line); }
.toggle-option { position: relative; cursor: pointer; }
.toggle-option + .toggle-option { border-left: 1px solid var(--color-line); }
.toggle-option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.toggle-option span { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 var(--space-4); font-size: var(--text-body); font-weight: 400; white-space: nowrap; color: var(--color-grey); transition: color .2s, background-color .2s; }
.toggle-option:hover span { color: var(--color-white); }
.toggle-option input:checked + span { background: var(--color-gold); color: var(--color-black); }
.toggle-option input:focus-visible + span { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.form-actions .button { padding: 0 var(--space-8); border: 0; font-family: inherit; cursor: pointer; clip-path: none; } /* square: no angled edge on Submit */
.form-actions .button:disabled { opacity: .6; cursor: progress; }
.form-status { flex: 1 1 240px; margin: 0; font-size: var(--text-body); line-height: 1.5; color: var(--color-grey-light); }
.form-status:empty { display: none; }
.estimate-form.is-failed .form-status { color: var(--color-gold); }
@media (max-width: 1199px) {
  .cta-card { grid-template-columns: minmax(0, 1fr); }
  .cta-intro { border-right: 0; border-bottom: 1px solid var(--color-line); }
}
@media (max-width: 767px) {
  .estimate-form { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .form-actions .button { width: 100%; }
}

/* ---------- FAQ: heading on the left, questions on the right ---------- */
.faq .content { display: grid; grid-template-columns: 5fr 7fr; align-items: start; }
.faq .heading-wrapper { padding-bottom: 0; }
.faq .heading-wrapper::before { bottom: 0; }
.faq .heading { max-width: 280px; }
.faq-item + .faq-item { border-top: 1px solid var(--color-line); }
.faq-item[open] { background: var(--color-panel); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-6) var(--pad); list-style: none; cursor: pointer; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question span { font-size: var(--text-lg); font-weight: 600; line-height: 1.35; }
.faq-item[open] .icon-chevron { transform: rotate(90deg); }
.faq-answer { max-width: 680px; padding: 0 var(--pad) var(--space-6); line-height: 1.55; color: var(--color-grey); }
/* Tablet and mobile: heading above the questions */
@media (max-width: 1199px) {
  .faq .content { grid-template-columns: minmax(0, 1fr); }
  .faq .heading-wrapper { padding-bottom: var(--space-heading); }
  .faq .heading-wrapper::before { bottom: var(--space-heading); }
  .faq .heading { max-width: none; }
}
@media (max-width: 767px) {
  .faq-question { gap: var(--space-4); padding: var(--space-5) var(--pad); }
  .faq-answer { padding-bottom: var(--space-5); }
}

/* ---------- Footer: full width, solid from the top row down ---------- */
.site-footer .grid { border-left: 0; }
.footer-logo { grid-column: span 4; display: flex; align-items: center; justify-content: center; padding: var(--space-8) var(--pad); }
.footer-logo img { width: 300px; height: 74px; object-fit: contain; }
.footer-links { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2); padding: var(--space-8) var(--pad); }
.footer-links a { font-weight: 500; }
.footer-links a:hover { color: var(--color-gold); }
.footer-contact { grid-column: span 3; align-items: center; justify-content: center; text-align: center; }
.footer-nav { grid-column: span 2; }
/* The estimate cell is a plain link that fills gold on hover */
.footer-cta { grid-column: span 3; padding: var(--space-8) var(--pad); border-right: 0; }
.footer-cta:hover, .footer-cta:focus-visible { background: var(--color-gold); }
/* Edge-to-edge REMODEL × REPAIR (main.js fits it to the width); its × is 30% smaller.
   The one spacing exception to the 4px grid: its gap is in em so it scales with the fitted type. */
.footer-lockup { overflow: hidden; padding: var(--space-8) 0 var(--space-6); line-height: .8; background: var(--color-black); }
.footer-lockup .lockup { gap: .1em; font-size: 235px; font-weight: 700; font-stretch: 62.5%; line-height: .8; color: var(--color-lockup); }
.footer-lockup .lockup-x { width: .28em; height: .28em; stroke-width: 3.6; }
/* Tablet and mobile: a 2 × 2 grid above the lockup (logo | contact, links | estimate) */
@media (max-width: 1199px) {
  .site-footer .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .cell { grid-column: auto; }
  .footer-contact { border-right: 0; }
  .footer-nav { align-items: center; justify-content: center; }
  .footer-lockup { padding-top: var(--space-6); }
}
@media (max-width: 767px) {
  .footer-logo, .footer-links, .footer-cta { padding: var(--space-6) var(--space-3); }
  .footer-logo img { width: 100%; max-width: 160px; height: auto; }
  .footer-links a { font-size: var(--text-sm); line-height: 24px; }
  .footer-lockup { padding-top: var(--space-4); }
}

/* ---------- Motion ----------
   Build-ins run only with .js-motion on <html>, set in <head> unless the visitor prefers reduced motion,
   so the page is complete without JS. main.js adds .is-built to each [data-build] block as it scrolls in.
   Every build ends in the page's normal, readable state. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1); --ease-snap: cubic-bezier(.34, 1.56, .64, 1); interpolate-size: allow-keywords; }

/* Interactions (for everyone; the reduced-motion rule in Base cuts them to nothing) */
a, .button, .testimonial-button { transition: color .2s, background-color .2s, opacity .2s; }
.menu-icon, .menu-icon::before, .menu-icon::after { transition: top .25s var(--ease-out), transform .25s var(--ease-out), background-color .25s; }
.site-nav.is-open { transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
@starting-style { .site-nav.is-open { opacity: 0; transform: translateY(calc(var(--space-2) * -1)); } }
.testimonial-quote { opacity: 0; transition: opacity .45s var(--ease-out), visibility .45s; }
.testimonial-quote.is-active { opacity: 1; }
.faq-item .icon-chevron { transition: transform .3s var(--ease-out); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
@media (hover: hover) {
  .work-photo img { transition: transform .8s var(--ease-out); }
  .work-photo:hover img { transform: scale(1.04); }
}

/* Problem X-ray: main.js moves the lens (a glide for clicks, a quick follow for the mouse); these fade the
   lens and the opened-up room in and out for the last problem */
.js-motion .xray-open { transition: opacity .6s var(--ease-out); }
.js-motion .xray-lens { transition: opacity .4s; }
.js-motion .xray-item, .js-motion .xray-item .icon { transition: color .3s, width .3s var(--ease-out), margin-right .3s var(--ease-out), opacity .3s; }
.js-motion .xray-spot { opacity: .5; transition: opacity .3s, transform .4s var(--ease-snap); }
.js-motion .xray-spot.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1.4); }

/* Build-ins fill backwards only: before .is-built a block holds its unbuilt state, the animation plays once,
   and afterwards nothing is left applied (no lingering clips or transforms). main.js removes .is-built again
   when a block drops fully below the screen, so the entrance replays on the next pass down. */
@keyframes develop { from { opacity: 0; transform: scale(1.06); filter: brightness(.4); } }
@keyframes draw-y { from { transform: scaleY(0); } }   /* lines draw from their transform-origin */
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes wipe { from { --wipe: 0%; } }
@keyframes rise { from { opacity: 0; transform: translateY(var(--space-4)); } }
@keyframes draw-sheet { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(-80px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-100%); } }

/* Hero, on load: the photo develops, the gold L-frame draws, the type wipes in, then buttons and stats */
.js-motion .hero-photo { animation: develop 1.6s var(--ease-out) backwards; }
.js-motion .hero-photo.is-late { animation: none; } /* photos stamped later, by the slider */
.js-motion .hero-frame::before { animation: draw-y .7s var(--ease-out) .3s backwards; }
.js-motion .hero-frame::after { animation: draw-x .7s var(--ease-out) .9s backwards; }
.js-motion .hero-lockup { animation: rise .6s var(--ease-out) 1.4s backwards; }
.js-motion .hero-time { animation: rise .6s var(--ease-out) 1.5s backwards; }
.js-motion .hero .heading-wrapper > * { animation: wipe 1s var(--ease-in-out) .3s backwards; }
.js-motion .hero .heading-wrapper > :nth-child(2) { animation-delay: .45s; }
.js-motion .hero .heading-wrapper > :nth-child(3) { animation-delay: .6s; }
.js-motion .hero .button-row { animation: rise .6s var(--ease-out) .9s backwards; }
.js-motion .hero-stat { animation: rise .6s var(--ease-out) 1s backwards; }
.js-motion .hero-stat:nth-child(2) { animation-delay: 1.1s; }
.js-motion .hero-stat:nth-child(3) { animation-delay: 1.2s; }

/* Headings wipe in behind an angled mask: a 45° edge slides left to right, the top of each line leading.
   The mask is a gradient on each heading-wrapper child; --wipe is how far the edge has travelled (100% = all
   showing). On the tightly set headings, padding and a matching negative margin give tall glyphs room
   inside the mask without moving anything. */
@property --wipe { syntax: "<length-percentage>"; inherits: false; initial-value: 100%; }
.js-motion .heading-wrapper > * {
  -webkit-mask-image: linear-gradient(135deg, #000 var(--wipe), transparent 0 100%);
          mask-image: linear-gradient(135deg, #000 var(--wipe), transparent 0 100%);
}
.js-motion .heading-wrapper > :is(.heading, .display) { padding-block: .15em; margin-block: -.15em; }

/* Sections, as they scroll in: the eyebrow, heading and side text wipe in, then the gold rule draws up beside
   them; blocks draw down the sheet, photos develop, the corner stripes fold in, the sheet tag drops in */
.js-motion .heading-wrapper[data-build]:not(.is-built)::before { transform: scaleY(0); }
.js-motion .heading-wrapper[data-build]:not(.is-built) > * { --wipe: 0%; }
.js-motion .heading-wrapper.is-built > * { animation: wipe .6s var(--ease-in-out) backwards; }
.js-motion .heading-wrapper.is-built > .heading { animation-duration: 1s; animation-delay: .15s; }
.js-motion .heading-wrapper.is-built > .text { animation-duration: 1s; animation-delay: .35s; }
.js-motion .heading-wrapper.is-built::before { transform-origin: bottom; animation: draw-y .6s var(--ease-in-out) .8s backwards; }
.js-motion [data-build]:not(.heading-wrapper, .sheet-tag, .is-built) { clip-path: inset(0 0 100% 0); }
.js-motion [data-build].is-built:not(.heading-wrapper, .sheet-tag) { animation: draw-sheet 1.1s var(--ease-out) backwards; }
/* Inside a block, the pieces marked data-rise (cards' text, list rows, FAQ rows, photo tiles) fade up in turn
   as the sheet draws past them. main.js numbers them per block (--i); the stagger stops growing after 8. */
.js-motion [data-build]:not(.is-built) [data-rise] { opacity: 0; }
.js-motion .is-built [data-rise] { animation: rise .8s var(--ease-out) backwards; animation-delay: calc(.2s + min(var(--i, 0), 8) * .07s); }
.js-motion [data-build]:not(.is-built) .photo img { opacity: 0; }
.js-motion .is-built .photo img { animation: develop 1.4s var(--ease-out) .3s backwards; }
/* Lazy images fade in once they arrive (main.js marks the ones still loading), instead of popping in */
.js-motion img.is-loading { opacity: 0; }
.js-motion img[loading="lazy"] { transition: opacity .6s var(--ease-out); }
/* Cornered photos: the corner starts as a solid gold square over the photo, splits into stripes from the
   bottom-right, then the stripes thin to fine lines as they shrink into the corner and close up into the
   triangle. Everything eases in and out, and the shrink starts while the stripes are still opening so it
   reads as one move. */
@keyframes stripe-split {
  0% { --open: 0; --thin: 0; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  40% { --open: 1; --thin: 0; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  78% { --open: 1; --thin: 1; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100% { --open: 0; --thin: 0; }
}
@keyframes stripe-fold { 0%, 22% { --fold: 100%; animation-timing-function: cubic-bezier(.6, 0, .4, 1); } }
.js-motion [data-build]:not(.is-built) .photo.has-corner::before { --fold: 100%; }
.js-motion .is-built .photo.has-corner::before { animation: stripe-split 1.4s linear .3s backwards, stripe-fold 1.4s linear .3s backwards; }
.js-motion .sheet-tag:not(.is-built) { opacity: 0; }
.js-motion .sheet-tag.is-built { animation: drop .5s var(--ease-out) .4s backwards; }
@media print {
  .js-motion [data-build], .js-motion [data-build] * { clip-path: none !important; opacity: 1 !important; transform: none !important; }
  .js-motion .heading-wrapper > * { --wipe: 100% !important; animation: none !important; }
  .js-motion [data-build] .photo.has-corner::before { --fold: calc(var(--corner-size) * .7071) !important; --open: 0 !important; --thin: 0 !important; animation: none !important; }
}
