/* ==========================================================================
   1. Tokens — generated from the designer's Figma variable exports
   (colors, typography Desktop/Mobile, Dimension Desktop/Mobile).
   Values that differ between modes use clamp() from 320px (Mobile) to
   1600px (Desktop), exact at both ends.
   ========================================================================== */
:root {
  /* Colour — colors-tokens.json */
  --primary: #e8522a; /* color/brand/primary */
  --primary-dark: #c94421; /* color/brand/primary-dark */
  --neutral-white: #ffffff; /* color/neutral/white */
  --neutral-cream: #f4f2ed; /* color/neutral/cream */
  --neutral-dark-900: #17242b; /* color/neutral/dark-900 */
  --neutral-dark-800: #0a1a24; /* color/neutral/dark-800 */
  --neutral-dark-700: #292929; /* color/neutral/dark-700 */
  --neutral-black: #1e1e1e; /* color/neutral/black */
  --accent-teal: #315f73; /* color/accent/teal */
  --background-primary: #f4f2ed; /* color/background/primary */
  --background-dark: #17242b; /* color/background/dark */
  --background-darker: #0a1a24; /* color/background/darker */
  --background-dark-alt: #292929; /* color/background/dark-alt */
  --background-white: #ffffff; /* color/background/white */
  --surface-card-overlay: #ffffff0d; /* color/surface/card-overlay */
  --surface-card-overlay-subtle: #ffffff0a; /* color/surface/card-overlay-subtle */
  --surface-input: #ffffff0f; /* color/surface/input */
  --text-primary: #ffffff; /* color/text/primary */
  --text-secondary: #ffffffb8; /* color/text/secondary */
  --text-muted: #ffffff8c; /* color/text/muted */
  --text-subtle: #ffffff80; /* color/text/subtle */
  --text-faint: #ffffff73; /* color/text/faint */
  --text-dim: #ffffff66; /* color/text/dim */
  --text-ghost: #ffffff59; /* color/text/ghost */
  --text-placeholder: #ffffff4d; /* color/text/placeholder */
  --text-dark: #17242b; /* color/text/dark */
  --text-brand: #e8522a; /* color/text/brand */
  --text-accent: #315f73; /* color/text/accent */
  --action-primary: #e8522a; /* color/action/primary */
  --action-primary-hover: #c94421; /* color/action/primary-hover */
  --border-light: #ffffff26; /* color/border/light */
  --border-subtle: #ffffff1a; /* color/border/subtle */
  --border-input: #ffffff24; /* color/border/input */
  --border-card: #ffffff14; /* color/border/card */
  --border-dark: #00000014; /* color/border/dark */
  --border-divider: #ffffff33; /* color/border/divider */

  /* Font families */
  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif; /* font-family/heading */
  --font-body: "Inter", system-ui, sans-serif; /* font-family/body */

  /* font-size — Desktop @1600px / Mobile @320px */
  --text-testimonial: clamp(1.875rem, 1.5938rem + 1.4062vw, 3rem); /* font-size/testimonial = 48 / 30 */
  --text-step-number: clamp(1.25rem, 1.1875rem + 0.3125vw, 1.5rem); /* font-size/step-number = 24 / 20 */
  --text-phone: clamp(1.125rem, 1.0562rem + 0.3437vw, 1.4rem); /* font-size/phone = 22.4 / 18 */
  --text-link-arrow: clamp(1rem, 0.95rem + 0.25vw, 1.2rem); /* font-size/link-arrow = 19.2 / 16 */
  --text-step-number-sm: clamp(0.875rem, 0.8438rem + 0.1562vw, 1rem); /* font-size/step-number-sm = 16 / 14 */
  --text-input: clamp(0.875rem, 0.8612rem + 0.0688vw, 0.93rem); /* font-size/input = 14.88 / 14 */
  --text-navigation: 0.875rem; /* font-size/navigation = 14 / 14 */
  --text-eyebrow: clamp(0.75rem, 0.7188rem + 0.1562vw, 0.875rem); /* font-size/eyebrow = 14 / 12 */
  --text-link: 0.875rem; /* font-size/link = 14 / 14 */
  --text-label: clamp(0.8125rem, 0.7969rem + 0.0781vw, 0.875rem); /* font-size/label = 14 / 13 */
  --text-pill: clamp(0.75rem, 0.7188rem + 0.1562vw, 0.875rem); /* font-size/pill = 14 / 12 */
  --text-display-hero: clamp(3.25rem, 2.5rem + 3.75vw, 6.25rem); /* font-size/display/hero = 100 / 52 */
  --text-display-decorative: clamp(4rem, 3.125rem + 4.375vw, 7.5rem); /* font-size/display/decorative = 120 / 64 */
  --text-heading-h1: clamp(2.375rem, 1.8438rem + 2.6562vw, 4.5rem); /* font-size/heading/h1 = 72 / 38 */
  --text-button-lg: clamp(1.375rem, 1.2688rem + 0.5312vw, 1.8rem); /* font-size/button/lg = 28.8 / 22 */
  --text-button-md: clamp(1rem, 0.9688rem + 0.1562vw, 1.125rem); /* font-size/button/md = 18 / 16 */
  --text-button-sm: clamp(0.9375rem, 0.9219rem + 0.0781vw, 1rem); /* font-size/button/sm = 16 / 15 */
  --text-card-title: clamp(1.1875rem, 1.1219rem + 0.3281vw, 1.45rem); /* font-size/card/title = 23.2 / 19 */
  --text-process-title: clamp(1.125rem, 1.0813rem + 0.2188vw, 1.3rem); /* font-size/process/title = 20.8 / 18 */
  --text-blog-title: clamp(1.0625rem, 1.0156rem + 0.2344vw, 1.25rem); /* font-size/blog/title = 20 / 17 */
  --text-service-title: clamp(1rem, 0.9688rem + 0.1562vw, 1.125rem); /* font-size/service/title = 18 / 16 */
  --text-body-lg: clamp(1rem, 0.9688rem + 0.1562vw, 1.125rem); /* font-size/body/lg = 18 / 16 */
  --text-body-md: clamp(1rem, 0.9688rem + 0.1562vw, 1.125rem); /* font-size/body/md = 18 / 16 */
  --text-body-sm: clamp(0.9375rem, 0.9219rem + 0.0781vw, 1rem); /* font-size/body/sm = 16 / 15 */
  --text-body-xs: clamp(0.8125rem, 0.7969rem + 0.0781vw, 0.875rem); /* font-size/body/xs = 14 / 13 */
  --text-body-xxs: clamp(0.6875rem, 0.6719rem + 0.0781vw, 0.75rem); /* font-size/body/xxs = 12 / 11 */

  /* line-height — Desktop @1600px / Mobile @320px */
  --leading-testimonial: clamp(2.125rem, 1.8313rem + 1.4687vw, 3.3rem); /* line-height/testimonial = 52.8 / 34 */
  --leading-step-number: clamp(1.75rem, 1.625rem + 0.625vw, 2.25rem); /* line-height/step-number = 36 / 28 */
  --leading-phone: clamp(1.625rem, 1.5063rem + 0.5938vw, 2.1rem); /* line-height/phone = 33.6 / 26 */
  --leading-link-arrow: clamp(1.5rem, 1.425rem + 0.375vw, 1.8rem); /* line-height/link-arrow = 28.8 / 24 */
  --leading-step-number-sm: clamp(1.25rem, 1.2188rem + 0.1562vw, 1.375rem); /* line-height/step-number-sm = 22 / 20 */
  --leading-input: clamp(1.25rem, 1.2138rem + 0.1813vw, 1.395rem); /* line-height/input = 22.32 / 20 */
  --leading-navigation: clamp(1.125rem, 1.1062rem + 0.0937vw, 1.2rem); /* line-height/navigation = 19.2 / 18 */
  --leading-eyebrow: clamp(0.9375rem, 0.9094rem + 0.1406vw, 1.05rem); /* line-height/eyebrow = 16.8 / 15 */
  --leading-link: clamp(1rem, 0.9688rem + 0.1562vw, 1.125rem); /* line-height/link = 18 / 16 */
  --leading-label: clamp(0.9375rem, 0.9281rem + 0.0469vw, 0.975rem); /* line-height/label = 15.6 / 15 */
  --leading-pill: clamp(1rem, 0.9688rem + 0.1562vw, 1.125rem); /* line-height/pill = 18 / 16 */
  --leading-display-hero: clamp(3.5rem, 2.5rem + 5vw, 7.5rem); /* line-height/display/hero = 120 / 56 */
  --leading-display-decorative: clamp(4.25rem, 3.4375rem + 4.0625vw, 7.5rem); /* line-height/display/decorative = 120 / 68 */
  --leading-heading-h1: clamp(2.5rem, 2.1125rem + 1.9375vw, 4.05rem); /* line-height/heading/h1 = 64.8 / 40 */
  --leading-button-lg: clamp(1.375rem, 1.2688rem + 0.5312vw, 1.8rem); /* line-height/button/lg = 28.8 / 22 */
  --leading-button-md: clamp(1rem, 0.98rem + 0.1vw, 1.08rem); /* line-height/button/md = 17.28 / 16 */
  --leading-button-sm: clamp(1.25rem, 1.2188rem + 0.1562vw, 1.375rem); /* line-height/button/sm = 22 / 20 */
  --leading-card-title: clamp(1.375rem, 1.32rem + 0.275vw, 1.595rem); /* line-height/card/title = 25.52 / 22 */
  --leading-process-title: clamp(1.25rem, 1.205rem + 0.225vw, 1.43rem); /* line-height/process/title = 22.88 / 20 */
  --leading-blog-title: clamp(1.25rem, 1.2031rem + 0.2344vw, 1.4375rem); /* line-height/blog/title = 23 / 20 */
  --leading-service-title: clamp(1.125rem, 1.1038rem + 0.1062vw, 1.21rem); /* line-height/service/title = 19.36 / 18 */
  --leading-body-lg: clamp(1.5rem, 1.455rem + 0.225vw, 1.68rem); /* line-height/body/lg = 26.88 / 24 */
  --leading-body-md: clamp(1.5rem, 1.425rem + 0.375vw, 1.8rem); /* line-height/body/md = 28.8 / 24 */
  --leading-body-sm: 1.375rem; /* line-height/body/sm = 22 / 22 */
  --leading-body-xs: clamp(1.1875rem, 1.1656rem + 0.1094vw, 1.275rem); /* line-height/body/xs = 20.4 / 19 */
  --leading-body-xxs: clamp(1rem, 0.9688rem + 0.1562vw, 1.125rem); /* line-height/body/xxs = 18 / 16 */

  /* letter-spacing — Desktop @1600px / Mobile @320px */
  --tracking-display: 0; /* letter-spacing/display = 0 / 0 */
  --tracking-heading: 0; /* letter-spacing/heading = 0 / 0 */
  --tracking-body: 0; /* letter-spacing/body = 0 / 0 */
  --tracking-eyebrow: 0; /* letter-spacing/eyebrow = 0 / 0 */
  --tracking-button: 0; /* letter-spacing/button = 0 / 0 */
  --tracking-navigation: 0; /* letter-spacing/navigation = 0 / 0 */

  /* Spacing — Dimension Desktop @1600px / Mobile @320px */
  --space-component-2xs: 0.125rem; /* spacing/component/2xs = 2 / 2 */
  --space-component-xs: clamp(0.25rem, 0.2188rem + 0.1562vw, 0.375rem); /* spacing/component/xs = 6 / 4 */
  --space-component-sm: clamp(0.375rem, 0.3438rem + 0.1562vw, 0.5rem); /* spacing/component/sm = 8 / 6 */
  --space-component-md: clamp(0.5rem, 0.4688rem + 0.1562vw, 0.625rem); /* spacing/component/md = 10 / 8 */
  --space-component-lg: clamp(0.625rem, 0.5938rem + 0.1562vw, 0.75rem); /* spacing/component/lg = 12 / 10 */
  --space-layout-xs: clamp(0.75rem, 0.6875rem + 0.3125vw, 1rem); /* spacing/layout/xs = 16 / 12 */
  --space-layout-sm: clamp(1rem, 0.9375rem + 0.3125vw, 1.25rem); /* spacing/layout/sm = 20 / 16 */
  --space-layout-md: clamp(1.25rem, 1.1875rem + 0.3125vw, 1.5rem); /* spacing/layout/md = 24 / 20 */
  --space-layout-lg: clamp(1.5rem, 1.375rem + 0.625vw, 2rem); /* spacing/layout/lg = 32 / 24 */
  --space-layout-xl: clamp(1.75rem, 1.625rem + 0.625vw, 2.25rem); /* spacing/layout/xl = 36 / 28 */
  --space-layout-2xl: clamp(2rem, 1.875rem + 0.625vw, 2.5rem); /* spacing/layout/2xl = 40 / 32 */
  --space-layout-3xl: clamp(2.5rem, 2.1875rem + 1.5625vw, 3.75rem); /* spacing/layout/3xl = 60 / 40 */
  --space-layout-4xl: clamp(3rem, 2.75rem + 1.25vw, 4rem); /* spacing/layout/4xl = 64 / 48 */
  --space-section-sm: clamp(2.5rem, 2.1875rem + 1.5625vw, 3.75rem); /* spacing/section/sm = 60 / 40 */
  --space-section-md: clamp(3.5rem, 3.125rem + 1.875vw, 5rem); /* spacing/section/md = 80 / 56 */
  --space-section-lg: clamp(4rem, 3.4375rem + 2.8125vw, 6.25rem); /* spacing/section/lg = 100 / 64 */
  --space-container-x: clamp(1.25rem, 1.0625rem + 0.9375vw, 2rem); /* spacing/container/x = 32 / 20 */
  --space-content-eyebrow-to-heading: clamp(1rem, 0.9375rem + 0.3125vw, 1.25rem); /* spacing/content/eyebrow-to-heading = 20 / 16 */
  --space-content-heading-to-body: clamp(1.25rem, 1.1875rem + 0.3125vw, 1.5rem); /* spacing/content/heading-to-body = 24 / 20 */
  --space-content-body-to-action: clamp(1.5rem, 1.4375rem + 0.3125vw, 1.75rem); /* spacing/content/body-to-action = 28 / 24 */
  --space-content-paragraph-gap: clamp(1.75rem, 1.625rem + 0.625vw, 2.25rem); /* spacing/content/paragraph-gap = 36 / 28 */
  --space-card-x: clamp(1rem, 0.9062rem + 0.4688vw, 1.375rem); /* spacing/card/x = 22 / 16 */
  --space-card-y: clamp(1rem, 0.9375rem + 0.3125vw, 1.25rem); /* spacing/card/y = 20 / 16 */
  --space-button-x: clamp(1.75rem, 1.625rem + 0.625vw, 2.25rem); /* spacing/button/x = 36 / 28 */
  --space-button-y: clamp(0.75rem, 0.7188rem + 0.1562vw, 0.875rem); /* spacing/button/y = 14 / 12 */
  --space-input-x: clamp(0.875rem, 0.8438rem + 0.1562vw, 1rem); /* spacing/input/x = 16 / 14 */
  --space-input-y: clamp(0.625rem, 0.5938rem + 0.1562vw, 0.75rem); /* spacing/input/y = 12 / 10 */

  /* Radius / stroke */
  --radius-none: 0px; /* radius/none */
  --radius-full: 999px; /* radius/full */
  --stroke-default: 1px; /* stroke/default */

  /* Legacy spacing bound in the live file but absent from the Dimension exports.
     Remapped to the equivalent Dimension token (same desktop value):
       spacing/sm 6 → component/xs · spacing/2xl 16 → layout/xs
       spacing/5xl 28 → content/body-to-action · spacing/8xl 40 → layout/2xl
       spacing/10xl 60 → layout/3xl · spacing/11xl 80 → section/md
     spacing/9xl 48 has no Dimension equivalent, so it gets a fluid token here
     with a mobile value on the same 0.75 ratio as layout/4xl (64 / 48). */
  --space-9xl: clamp(2.25rem, 2.0625rem + 0.9375vw, 3rem); /* spacing/9xl = 48 / 36 (mobile chosen) */

  /* Shadow — Figma effect styles (not in exports) */
  --shadow-nav: 0 4px 12px #00000040; /* Effect/Nav Shadow */
  --shadow-card: 0 8px 40px #00000040; /* Effect/Card Shadow */

  /* Layout primitives */
  --content-max: 85.375rem; /* 1366px — agreed value; Figma container is 1240px */
  --gutter: var(--space-container-x);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-VariableFont,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

/* Anchor jumps land below the sticky header (height set by script.js) */
html {
  scroll-padding-block-start: var(--header-height, 7rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  color: var(--neutral-dark-900);
  background-color: var(--neutral-white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* :where() keeps specificity at 0 so component padding isn't overridden */
:where(ul, ol)[role="list"] {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */
.lbg-section {
  position: relative;
  width: 100%;
  padding-inline: var(--gutter);
}

.lbg-container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 0;
}

/* ==========================================================================
   4. Components
   ========================================================================== */

/* --- Button (component 2069:301) — shared by header and hero ------------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: var(--space-component-md);
  overflow: hidden;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--neutral-white);
  white-space: nowrap;
  background-color: var(--primary);
  text-transform: uppercase;
  transition: gap 0.3s ease; /* duration/easing invented — not in file */
}

/* "Cover" layer: 0 width at Default, full width at Hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--primary-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease; /* invented */
}

.btn:hover,
.btn:focus-visible {
  gap: var(--space-layout-xs); /* 10 → 16 per hover variant */
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
}

/* Standard 304px CTA — Process and Roof options instances */
.btn--md {
  min-inline-size: 19rem; /* 304px — fixed width in file */
  padding: var(--space-button-y) var(--space-button-x);
  font-size: var(--text-link);
  line-height: var(--leading-link);
}

/* Form submit instance keeps title case (every other CTA is uppercase) */
.btn--title-case {
  text-transform: none;
}

.btn__arrow {
  font-size: var(--text-link);
  line-height: var(--leading-link);
}

/* --- Grid background — BG layers 2034:2989 (Heritage) and 2034:2987 (Testimonial)
   1024×512 tile drawn at 887×443.5, anchored to the top-left of a centred
   1728px frame so the grid lines stay put at any width ---------------------- */
.bg-grid {
  background-image: url("assets/images/heritage-grid.png");
  background-size: 55.4375rem 27.71875rem;
  background-position: calc(50% - 54rem) 0;
  background-repeat: repeat;
}

/* --- Section tag (component "SectionTag") — shared by every numbered section */
.section-tag {
  display: flex;
  align-items: center;
  gap: var(--space-component-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-eyebrow);
  line-height: var(--leading-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  color: var(--primary);
}

.section-tag::after {
  content: "";
  flex-shrink: 0;
  inline-size: 1.75rem; /* 28px — raw frame size */
  block-size: 1px;
  background-color: color-mix(in oklch, var(--neutral-dark-900) 25%, transparent);
}

/* On dark sections the file's dark-900 rule disappears — mirror it in white */
.section-tag--dark::after {
  background-color: color-mix(in oklch, var(--neutral-white) 25%, transparent);
}

/* --- Section head — tag + h2 on the left, arrow link bottom-right (Projects, Insights) */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-layout-4xl); /* no gap in file — guards against the columns touching */
}

.section-head__intro {
  flex: 1 1 0;
  max-inline-size: 42.5rem; /* 680px — Projects intro width */
  min-inline-size: 0;
}

.section-head__title {
  margin-block-start: var(--space-content-eyebrow-to-heading);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-heading-h1);
  line-height: var(--leading-heading-h1);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-dark-900);
  text-transform: uppercase;
}

/* --- Arrow link (component 2072:162) — shared by Services, Projects -------
   Instances drop the master's uppercase/tracking; hover from its Hover variant */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-component-sm);
  padding-block-end: var(--space-component-2xs);
  border-block-end: 1.5px solid var(--primary); /* 1.53px in file */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-link);
  line-height: var(--leading-link);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-dark-900);
  white-space: nowrap;
  transition: color 0.3s ease; /* invented */
}

.arrow-link__arrow {
  color: var(--primary);
}

.arrow-link:hover,
.arrow-link:focus-visible {
  color: var(--primary);
}

/* --- Bullet text — small primary square + body-xs copy (Service area, Roof options) */
.bullet-text {
  display: flex;
  align-items: flex-start;
  gap: var(--space-component-xs);
  padding-block-start: var(--space-component-xs);
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  letter-spacing: var(--tracking-body);
}

.bullet-text::before {
  content: "";
  flex-shrink: 0;
  inline-size: 5px;
  block-size: 5px;
  margin-block-start: var(--space-component-xs);
  background-color: var(--primary);
}

/* --- Header (2003:2245) -------------------------------------------------- */
.header {
  position: sticky; /* Figma has a separate "Placeholder for Nav" layer — see notes */
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-nav);
}

/* Top bar (2003:2246) */
.header__topbar {
  padding-block: var(--space-component-sm);
  background-color: var(--neutral-dark-900);
}

.header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-layout-md);
}

.header__contact {
  display: flex;
  align-items: center;
  gap: var(--space-layout-md);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: var(--space-component-sm);
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  letter-spacing: var(--tracking-body);
  color: var(--primary);
  white-space: nowrap;
}

.header__divider {
  inline-size: 1px;
  block-size: 0.75rem; /* 12px — raw frame size, no token */
  background-color: var(--border-divider);
}

.header__areas {
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  letter-spacing: var(--tracking-body);
  color: var(--text-secondary);
}

.header__trust {
  display: flex;
  align-items: flex-start;
  gap: var(--space-layout-sm);
  block-size: 1.25rem; /* 20px — raw frame size */
}

.header__trust-item {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-navigation);
  line-height: var(--leading-navigation);
  letter-spacing: var(--tracking-navigation);
  color: var(--text-muted);
  white-space: nowrap;
}

/* Main bar (2003:2267) */
.header__bar {
  background-color: var(--neutral-white);
  border-block-end: 2px solid var(--primary);
}

.header__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-layout-lg);
  min-block-size: 4.5rem; /* 72px — frame height 71.997 */
}

/* Logo may shrink (never below its content box) so the bar fits the narrowest phones */
.header__logo {
  flex-shrink: 1;
  min-inline-size: 0;
}

.header__logo-img {
  inline-size: 10.875rem; /* 174px */
  block-size: auto;
}

.header__menu {
  display: block;
}

.header__menu-list {
  display: flex;
  align-items: center;
  gap: var(--space-layout-lg);
}

.header__link {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-navigation);
  line-height: var(--leading-navigation);
  letter-spacing: var(--tracking-navigation);
  color: var(--neutral-dark-900);
  opacity: 0.8;
  white-space: nowrap;
  transition:
    color 0.3s ease,
    opacity 0.3s ease; /* invented */
}

/* Hover invented — follows the "All Projects" link hover (2072:162): dark → primary */
.header__link:hover,
.header__link:focus-visible {
  color: var(--primary);
  opacity: 1;
}

/* Services dropdown — no design in file; built from header tokens (see notes) */
.header__item--has-submenu {
  position: relative;
}

/* Transparent bridge from the link down to the header's bottom border keeps hover alive */
.header__submenu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: calc(var(--space-layout-md) * -1);
  z-index: 10;
  padding-block-start: calc((4.5rem - var(--leading-navigation)) / 2 + 2px);
  opacity: 0;
  visibility: hidden;
  translate: 0 0.5rem;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    translate 0.2s ease; /* invented */
}

.header__item--has-submenu:hover .header__submenu,
.header__item--has-submenu:focus-within .header__submenu {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.header__submenu-list {
  padding-block: var(--space-component-md);
  background-color: var(--neutral-white);
  box-shadow: var(--shadow-nav);
}

.header__sublink {
  display: block;
  padding: var(--space-component-md) var(--space-layout-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-navigation);
  line-height: var(--leading-navigation);
  letter-spacing: var(--tracking-navigation);
  color: var(--neutral-dark-900);
  white-space: nowrap;
  transition:
    color 0.3s ease,
    background-color 0.3s ease; /* invented */
}

.header__sublink:hover,
.header__sublink:focus-visible {
  color: var(--primary);
  background-color: var(--neutral-cream);
}

/* Exported chevron used as a mask so it follows the link colour */
.header__chevron {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  background-color: currentColor;
  mask: url("assets/icons/chevron-down.svg") center / contain no-repeat;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-layout-xs);
  flex-shrink: 0;
}

/* CTA — instance of .btn (2069:301) with header overrides */
.header__cta {
  justify-content: center;
  min-inline-size: 14.5625rem; /* 233px — fixed width in frame */
  block-size: 2.375rem; /* 38px — fixed height in frame */
  padding-inline: var(--space-layout-xs);
  font-size: var(--text-link);
  line-height: var(--leading-link);
}

.header__call {
  display: grid;
  place-items: center;
  inline-size: 2.125rem; /* 34px = 2 border + 6 + 18 icon + 6 + 2 border */
  block-size: 2.125rem;
  border: 2px solid var(--neutral-dark-900);
  border-radius: var(--radius-full);
}

.header__call img {
  inline-size: 1.0625rem; /* 17px, supplied icon viewBox */
  block-size: 1.0625rem;
}

/* Hamburger — "squeeze" pattern from jonsuh.com/hamburgers (MIT), rebuilt on project tokens.
   Shown below 991px; morphs to an X while the menu popover is open. */
.hamburger {
  display: none;
  padding: var(--space-component-sm);
  color: var(--neutral-dark-900);
  line-height: 0;
  transition: color 0.3s ease;
}

.hamburger:hover,
.hamburger:focus-visible {
  color: var(--primary);
}

.hamburger__box {
  position: relative;
  display: block;
  inline-size: 1.5rem; /* 24px */
  block-size: 1.125rem; /* 18px */
}

.hamburger__inner,
.hamburger__inner::before,
.hamburger__inner::after {
  position: absolute;
  inset-inline: 0;
  block-size: 2px;
  background-color: currentColor;
}

.hamburger__inner {
  inset-block-start: 50%;
  margin-block-start: -1px;
  transition: rotate 0.15s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger__inner::before,
.hamburger__inner::after {
  content: "";
}

.hamburger__inner::before {
  inset-block-start: -0.5rem;
  transition:
    inset-block-start 0.15s 0.24s ease,
    opacity 0.15s ease;
}

.hamburger__inner::after {
  inset-block-end: -0.5rem;
  transition:
    inset-block-end 0.15s 0.24s ease,
    rotate 0.15s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.header:has(.header__menu:popover-open) .hamburger__inner {
  rotate: 45deg;
  transition-delay: 0.24s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.header:has(.header__menu:popover-open) .hamburger__inner::before {
  inset-block-start: 0;
  opacity: 0;
  transition:
    inset-block-start 0.15s ease,
    opacity 0.15s 0.24s ease;
}

.header:has(.header__menu:popover-open) .hamburger__inner::after {
  inset-block-end: 0;
  rotate: -90deg;
  transition:
    inset-block-end 0.15s ease,
    rotate 0.15s 0.24s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* --- Entry animations ------------------------------------------------------
   [data-reveal] elements and [data-reveal-group] children fade up once when
   they enter the viewport (script.js adds .is-revealed). Uses a keyframe
   animation on opacity/translate only, so no element's own transitions or
   hover transforms are overridden. Skipped entirely for reduced motion or
   when scripting is off. */
@keyframes reveal-up {
  from {
    opacity: 0;
    translate: 0 1.5rem;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes reveal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal],
  [data-reveal-group] > * {
    opacity: 0;
  }

  .is-revealed {
    animation: reveal-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms) both;
  }

  [data-reveal="fade"].is-revealed {
    animation-name: reveal-fade;
  }
}

/* --- Hero (2003:2030) ---------------------------------------------------- */
.hero {
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-block-size: 50rem; /* 800px — frame height */
  padding-block-end: var(--space-section-md);
  overflow: hidden;
  background-color: var(--neutral-dark-900);
}

/* Image layer (2003:2031): scaled to frame height, anchored left, right side cropped */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  inline-size: 100%;
  block-size: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
}

/* Gradient layer (2003:2033) — raw rgba of dark-900 in file, not tokens */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
    to bottom,
    color-mix(in oklch, var(--neutral-dark-900) 55%, transparent) 0%,
    color-mix(in oklch, var(--neutral-dark-900) 72%, transparent) 60%,
    color-mix(in oklch, var(--neutral-dark-900) 92%, transparent) 100%
  );
}

.hero__content {
  max-inline-size: 47.5rem; /* 760px */
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-component-lg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-link);
  line-height: var(--leading-link);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
}

.hero__eyebrow::before {
  content: "";
  flex-shrink: 0;
  inline-size: 2.25rem; /* 36px — raw frame size */
  block-size: 2px;
  background-color: var(--neutral-white);
}

.hero__title {
  margin-block-start: var(--space-content-body-to-action);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-display-hero);
  line-height: var(--leading-display-hero);
  letter-spacing: var(--tracking-display);
  color: var(--neutral-white);
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__text {
  margin-block-start: var(--space-content-body-to-action);
  font-weight: 300;
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  letter-spacing: var(--tracking-body);
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-layout-2xl);
  margin-block-start: var(--space-content-paragraph-gap);
}

.hero__cta {
  min-inline-size: 20.375rem; /* 326px — fixed width in frame */
  padding: var(--space-button-y) var(--space-button-x);
  font-size: var(--text-button-sm);
  line-height: var(--leading-button-sm);
  letter-spacing: var(--tracking-button);
}

/* Text link — instance of 2072:172, hover from its Hover variant */
.hero__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-component-sm);
  padding-block-end: var(--space-component-2xs);
  border-block-end: 1px solid var(--text-placeholder); /* 0.765px in file */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-button-sm);
  line-height: var(--leading-button-sm);
  color: var(--text-primary);
  white-space: nowrap;
  transition: border-color 0.3s ease; /* invented */
}

.hero__link:hover,
.hero__link:focus-visible {
  /* 70% white, 30% transparent — raw value in Hover variant */
  border-color: color-mix(in oklch, var(--neutral-white) 70%, transparent);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-layout-2xl);
  margin-block-start: var(--space-layout-3xl);
}

.hero__badges img {
  block-size: auto;
}

/* --- Heritage (2003:1538) ------------------------------------------------ */
.heritage {
  padding-block: var(--space-section-lg);
  background-color: var(--neutral-white);
}

.heritage__inner {
  display: flex;
  align-items: center;
}

.heritage__content,
.heritage__collage {
  flex: 1 1 0;
  min-inline-size: 0;
}

.heritage__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-display-hero);
  line-height: var(--leading-display-hero);
  letter-spacing: var(--tracking-display);
  color: var(--neutral-dark-900);
  text-transform: uppercase;
}

.heritage__line {
  display: flex;
  align-items: center;
  gap: var(--space-layout-xs);
  white-space: nowrap;
}

/* Rows 1 and 3 have 8px top padding in the file; row 2 has none */
.heritage__line:nth-child(odd) {
  padding-block-start: var(--space-component-sm);
}

.heritage__line--accent {
  color: var(--primary);
}

.heritage__line--accent::before {
  content: "";
  flex-shrink: 0;
  inline-size: 3.5rem; /* 56px — raw frame size */
  block-size: 3px;
  background-color: var(--primary);
}

.heritage__since {
  display: flex;
  align-items: center;
  gap: var(--space-layout-xs);
  min-block-size: 8rem; /* 128px — fixed row height in file, see notes */
  padding-block-start: var(--space-content-heading-to-body);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-heading-h1);
  line-height: var(--leading-heading-h1);
  letter-spacing: var(--tracking-heading);
  text-transform: uppercase;
  white-space: nowrap;
}

.heritage__since-label {
  color: color-mix(in oklch, var(--neutral-dark-900) 35%, transparent); /* 35% layer opacity */
}

.heritage__since-rule {
  flex-shrink: 0;
  inline-size: 5rem; /* 80px — raw frame size */
  block-size: 2px;
  background-color: color-mix(in oklch, var(--neutral-dark-900) 25%, transparent); /* 25% layer opacity */
}

.heritage__since-year {
  color: var(--neutral-black);
}

/* Collage (2003:1580): 588×500 frame, photos placed as % of the frame so it scales */
.heritage__collage {
  position: relative;
  aspect-ratio: 588 / 500;
}

.heritage__photo {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.heritage__photo--workers {
  inset: 31.906% auto auto 37.925%; /* 223, 159.53 */
  inline-size: 58.673%; /* 345 */
  block-size: 68%; /* 340 */
}

.heritage__photo--factory {
  inset: 5.906% auto auto 0; /* 0, 29.53 */
  inline-size: 46.259%; /* 272 */
  block-size: 48%; /* 240 */
}

.heritage__photo--team {
  inset: 0 auto auto 60.374%; /* 355, -0.47 */
  inline-size: 39.626%; /* 233 */
  block-size: 27.4%; /* 137 */
  opacity: 0.85;
}

.heritage__caption {
  position: absolute;
  inset: 80.506% auto auto 23.129%; /* 136, 402.53 */
  padding: var(--space-component-sm) var(--space-component-lg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-label);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-heading);
  color: var(--text-secondary);
  white-space: nowrap;
  background-color: var(--neutral-dark-900);
}

/* --- Mission (2003:2087) ------------------------------------------------- */
.mission {
  padding-block: var(--space-section-lg);
  background-color: var(--neutral-dark-700);
}

.mission__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: var(--space-section-md); /* 80px — raw gap in file, matches section/md */
}

.mission__quote {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-heading-h1);
  line-height: var(--leading-heading-h1);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
  text-transform: uppercase;
}

.mission__quote::before {
  content: "";
  display: block;
  inline-size: 2.5rem; /* 40px — raw frame size */
  block-size: 4px;
  margin-block-end: var(--space-layout-lg);
  background-color: var(--primary);
}

.mission__text {
  margin-block-start: var(--space-layout-xs);
  font-size: var(--text-body-md);
  line-height: var(--leading-body-md);
  letter-spacing: var(--tracking-body);
  color: var(--text-muted);
}

.section-tag + .mission__text {
  margin-block-start: var(--space-content-eyebrow-to-heading);
}

/* Text link — instance of 2072:178, hover from its Hover variant */
.mission__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-component-md);
  margin-block-start: var(--space-layout-lg);
  border-block-end: 1.5px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-link);
  line-height: var(--leading-link);
  letter-spacing: var(--tracking-heading);
  color: var(--primary);
  transition: border-color 0.3s ease; /* invented */
}

.mission__link:hover,
.mission__link:focus-visible {
  border-color: var(--primary);
}

.mission__values {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-component-lg) var(--space-layout-md);
  margin-block-start: var(--space-layout-2xl);
  padding-block-start: var(--space-layout-lg);
  border-block-start: 1px solid var(--border-subtle); /* 0.765px in file */
}

.mission__value {
  display: flex;
  align-items: center;
  gap: var(--space-component-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-navigation);
  line-height: var(--leading-navigation);
  letter-spacing: var(--tracking-navigation);
  color: var(--text-subtle);
  text-transform: uppercase;
  white-space: nowrap;
}

.mission__value::before {
  content: "";
  flex-shrink: 0;
  inline-size: 6px;
  block-size: 6px;
  background-color: var(--primary);
}

/* --- Services (2003:1590) ------------------------------------------------ */
.services {
  padding-block: var(--space-section-lg);
  background-color: var(--neutral-cream);
}

.services__header {
  display: flex;
  align-items: flex-end;
  gap: var(--space-layout-4xl);
  padding-block: var(--space-component-sm) var(--space-9xl);
}

.services__intro {
  flex: 0 1 42.5rem; /* 680px — fixed column width in file */
  min-inline-size: 0;
}

.services__title {
  margin-block-start: var(--space-content-eyebrow-to-heading);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-heading-h1);
  line-height: var(--leading-heading-h1);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-dark-900);
  text-transform: uppercase;
}

.services__aside {
  flex: 1 1 0;
  min-inline-size: 0;
}

.services__text {
  margin-block-start: var(--space-content-heading-to-body);
  font-size: var(--text-body-md);
  line-height: var(--leading-body-md);
  letter-spacing: var(--tracking-body);
  color: color-mix(in oklch, var(--neutral-dark-900) 62%, transparent); /* 62% layer opacity */
}

.services__link {
  margin-block-start: var(--space-content-body-to-action); /* file: absolutely placed 27.99px down */
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-component-2xs);
}

.services__item--wide {
  grid-column: span 2;
}

/* Image tile — component 2064:30 */
.services__tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  block-size: 16.25rem; /* 260px — min/fixed height in file */
  overflow: hidden;
  color: var(--neutral-white);
}

.services__tile-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* invented */
}

.services__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
    to top,
    color-mix(in oklch, var(--neutral-dark-900) 78%, transparent) 0%,
    color-mix(in oklch, var(--neutral-dark-900) 10%, transparent) 55%
  );
}

.services__tile-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-component-md);
  inline-size: 100%;
  padding: var(--space-card-y) var(--space-card-x);
}

.services__tile-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-service-title);
  line-height: var(--leading-service-title);
  letter-spacing: var(--tracking-heading);
  transition: color 0.3s ease; /* invented */
}

.services__tile-arrow {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-link-arrow);
  line-height: var(--leading-link-arrow);
  opacity: 0;
  transition:
    color 0.3s ease,
    opacity 0.3s ease; /* invented */
}

/* Hover variant: image grows ~6.4% (833×277 over 783×260), title + arrow → primary */
.services__tile:hover .services__tile-img,
.services__tile:focus-visible .services__tile-img {
  transform: scale(1.064);
}

.services__tile:hover :is(.services__tile-title, .services__tile-arrow),
.services__tile:focus-visible :is(.services__tile-title, .services__tile-arrow) {
  color: var(--primary);
}

.services__tile:hover .services__tile-arrow,
.services__tile:focus-visible .services__tile-arrow {
  opacity: 1;
}

/* CTA tile — component 2064:161 */
.services__cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-layout-xs);
  min-block-size: 12.5rem; /* 200px — min height in file */
  margin-block-start: var(--space-component-2xs);
  padding: var(--space-content-body-to-action);
  color: var(--neutral-white);
  background-color: var(--primary);
  transition: background-color 0.3s ease; /* invented */
}

.services__cta > * {
  transition: transform 0.3s ease; /* invented */
}

.services__cta-eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-eyebrow);
  line-height: var(--leading-eyebrow);
  color: var(--text-primary);
}

.services__cta-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-button-lg);
  line-height: var(--leading-button-lg);
  letter-spacing: var(--tracking-button);
  text-transform: uppercase;
}

.services__cta-arrow {
  display: flex;
  align-items: center;
  gap: var(--space-component-sm);
  padding-block-start: var(--space-layout-xs);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-link-arrow);
  line-height: var(--leading-link-arrow);
}

.services__cta-arrow::before {
  content: "";
  flex: 0 0 2rem; /* 32px — raw frame size */
  block-size: 2px;
  margin-block-start: 0.3125rem; /* 5px — optical alignment with the arrow glyph */
  background-color: var(--text-muted);
  transition: flex-grow 0.3s ease; /* invented */
}

/* Hover variant: primary-dark, content lifts 10px (pt 28→18 / pb 28→38), rule fills the row */
.services__cta:hover,
.services__cta:focus-visible {
  background-color: var(--primary-dark);
}

.services__cta:hover > *,
.services__cta:focus-visible > * {
  transform: translateY(-0.625rem);
}

.services__cta:hover .services__cta-arrow::before,
.services__cta:focus-visible .services__cta-arrow::before {
  flex-grow: 1;
}

/* --- Testimonial (2003:1671) --------------------------------------------- */
.testimonial {
  padding-block: var(--space-section-lg);
  border-block-start: 1px solid var(--border-dark); /* 0.765px in file */
  background-color: var(--neutral-white);
}

.testimonial__inner {
  display: grid;
  grid-template-columns: minmax(0, 684fr) minmax(0, 420fr); /* 684px / 420px columns in file */
  align-items: center;
  column-gap: var(--space-layout-4xl); /* file: --sds-size-space-1600 = 64 */
}

.testimonial__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-layout-xs);
}

.testimonial__mark {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-display-hero);
  line-height: var(--leading-display-hero);
  letter-spacing: var(--tracking-display);
  color: var(--primary);
}

.testimonial__tag {
  flex: 1 1 0;
  min-inline-size: 0;
  padding-block-start: var(--space-component-sm);
}

/* Slides share one grid cell, so the tallest quote sets the height (no jump) */
.testimonial__slides {
  display: grid;
}

.testimonial__slide {
  grid-area: 1 / 1;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease; /* invented */
}

.testimonial__slide[inert] {
  opacity: 0;
  visibility: hidden;
}

.testimonial__quote {
  padding-block-start: var(--space-component-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: var(--text-testimonial);
  line-height: var(--leading-testimonial);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-dark-900);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-layout-xs);
  margin-block-start: var(--space-content-body-to-action);
}

.testimonial__author::before {
  content: "";
  flex-shrink: 0;
  inline-size: 1.75rem; /* 28px — raw frame size */
  block-size: 2px;
  background-color: var(--primary);
}

.testimonial__author-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-service-title);
  line-height: var(--leading-service-title);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-dark-900);
}

.testimonial__author-meta {
  display: block;
  margin-block-start: var(--space-component-2xs); /* file: spacing/2xs = 2 */
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  letter-spacing: var(--tracking-body);
  color: color-mix(in oklch, var(--neutral-dark-900) 50%, transparent); /* 50% layer opacity */
}

.testimonial__controls {
  display: flex;
  align-items: center;
  gap: var(--space-component-sm);
  margin-block-start: var(--space-content-paragraph-gap);
}

.testimonial__control {
  display: inline-flex;
  align-items: center;
  gap: var(--space-component-xs);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-link);
  line-height: var(--leading-link);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-dark-900);
  opacity: 0.7;
  transition: opacity 0.3s ease; /* invented */
}

.testimonial__control:hover,
.testimonial__control:focus-visible {
  opacity: 1; /* invented — no hover state in file */
}

.testimonial__control-arrow {
  color: var(--primary);
}

.testimonial__divider {
  font-size: var(--text-body-md);
  line-height: var(--leading-body-md);
  color: color-mix(in oklch, var(--neutral-dark-900) 20%, transparent); /* 20% layer opacity */
}

.testimonial__media {
  position: relative;
}

/* Image (2003:1710): 420×460 frame, fill cropped centre (matches object-fit: cover) */
.testimonial__img {
  inline-size: 100%;
  block-size: auto; /* lets aspect-ratio override the height attribute */
  aspect-ratio: 420 / 460;
  object-fit: cover;
}

/* Badge breaks 20px out of the image's left edge */
.testimonial__label {
  position: absolute;
  inset-block-start: 1.25rem; /* 20px — raw offset */
  inset-inline-start: -1.25rem; /* -20px — raw offset */
  padding: var(--space-component-md) var(--space-layout-xs); /* file: spacing/lg 10 · spacing/2xl 16 */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-label);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
  background-color: var(--primary);
}

/* --- Process / "Why Lakefront" (2003:2135) ------------------------------- */
.process {
  padding-block: var(--space-section-lg);
  background-color: var(--neutral-dark-900);
}

.process__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-layout-4xl); /* no gap in file — guards against the columns touching */
  padding-block-end: var(--space-9xl);
  border-block-end: 1px solid var(--text-ghost); /* 0.765px in file */
}

.process__intro {
  flex: 0 1 50rem; /* 800px — fixed column width in file */
  min-inline-size: 0;
}

.process__title {
  margin-block-start: var(--space-content-eyebrow-to-heading);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-heading-h1);
  line-height: var(--leading-heading-h1);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
  text-transform: uppercase;
}

.process__aside {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-layout-xl);
  max-inline-size: 23.75rem; /* 380px */
  min-inline-size: min-content; /* never narrower than the 304px CTA — the intro shrinks instead */
}

.process__text {
  font-size: var(--text-body-md);
  line-height: var(--leading-body-md);
  letter-spacing: var(--tracking-body);
  color: var(--text-subtle);
}

/* 1px grid gaps over a ghost-white ground draw the dividers between steps */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--stroke-default);
  margin-block-start: var(--space-layout-3xl);
  background-color: var(--text-ghost);
}

.process__step {
  padding: var(--space-layout-2xl) var(--space-container-x) var(--space-9xl);
  background-color: var(--neutral-dark-900);
}

.process__step-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-step-number);
  line-height: var(--leading-step-number);
  letter-spacing: var(--tracking-heading);
  color: var(--primary);
}

.process__step-number::after {
  content: "";
  display: block;
  inline-size: 2rem; /* 32px — raw frame size */
  block-size: 2px;
  margin-block-start: var(--space-component-sm);
  background-color: var(--primary);
}

.process__step-title {
  margin-block-start: var(--space-content-heading-to-body);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-process-title);
  line-height: var(--leading-process-title);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
}

.process__step-text {
  margin-block-start: var(--space-layout-xs);
  font-size: var(--text-body-md);
  line-height: var(--leading-body-md);
  letter-spacing: var(--tracking-body);
  color: var(--text-muted);
}

/* --- Featured projects (2003:1717) --------------------------------------- */
.projects {
  padding-block: var(--space-section-lg);
  background-color: var(--neutral-cream);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-component-2xs); /* file: --sds-size-space-050 = 2 */
  margin-block-start: var(--space-content-paragraph-gap);
}

/* Card — component 2064:220 */
.projects__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  block-size: 27.5rem; /* 440px — row height in file */
  overflow: hidden;
  color: var(--neutral-white);
}

.projects__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* invented */
}

.projects__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
    to top,
    color-mix(in oklch, var(--neutral-dark-900) 85%, transparent) 0%,
    color-mix(in oklch, var(--neutral-dark-900) 10%, transparent) 50%
  );
}

.projects__badge {
  margin: 1.5rem 0 0 1.5rem; /* 24px — raw offset in file */
  padding: 0.3125rem var(--space-component-lg); /* 5px raw · file: spacing/xl = 12 */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-label);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-heading);
  background-color: var(--primary);
}

.projects__body {
  inline-size: 100%;
  padding: 0 var(--space-content-body-to-action) var(--space-content-body-to-action); /* file: spacing/5xl = 28 */
  transition: transform 0.3s ease; /* invented */
}

.projects__card-title {
  display: flex;
  align-items: flex-start;
  gap: var(--space-component-sm); /* no gap in file — see notes */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-card-title);
  line-height: var(--leading-card-title);
  letter-spacing: var(--tracking-heading);
  transition: color 0.3s ease; /* invented */
}

/* Arrow box grows on hover; the glyph is end-aligned so it glides to the far edge */
.projects__card-arrow {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  transition: flex-grow 0.3s ease; /* invented */
}

.projects__meta {
  padding-block-start: var(--space-component-xs);
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  letter-spacing: var(--tracking-body);
  color: var(--text-muted);
}

.projects__location {
  display: flex;
  align-items: center;
  gap: var(--space-component-xs);
  padding-block-start: var(--space-component-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-navigation);
  line-height: var(--leading-navigation);
  letter-spacing: var(--tracking-navigation);
  color: var(--text-muted);
}

.projects__location::before {
  content: "";
  flex-shrink: 0;
  inline-size: 5px;
  block-size: 5px;
  background-color: var(--primary);
}

/* Hover variant: image 587×440 → 621×466 (≈5.8%), body lifts 10px (pb 28→38),
   title → primary, arrow moves to the far edge */
.projects__card:hover .projects__img,
.projects__card:focus-visible .projects__img {
  transform: scale(1.058);
}

.projects__card:hover .projects__body,
.projects__card:focus-visible .projects__body {
  transform: translateY(-0.625rem);
}

.projects__card:hover .projects__card-title,
.projects__card:focus-visible .projects__card-title {
  color: var(--primary);
}

.projects__card:hover .projects__card-arrow,
.projects__card:focus-visible .projects__card-arrow {
  flex-grow: 1;
}

/* --- Service area (2003:2346) -------------------------------------------- */
.service-area {
  padding-block: var(--space-section-lg);
  background-color: var(--neutral-white);
}

/* Map panel: 1440px max, bleeds to the viewport edge below that */
.service-area__panel {
  min-block-size: 47rem; /* 752px — fixed panel height in file */
  margin-inline: max(calc(var(--gutter) * -1), (100% - 90rem) / 2);
  margin-block-end: -9.375rem; /* -150px — raw overlap in file, no token */
  padding: var(--space-section-md) var(--gutter);
  /* file fill is cream; dark-900 keeps the white heading legible if the image fails */
  background: var(--neutral-dark-900) url("assets/images/map.jpg") right center / cover no-repeat;
}

.service-area__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-layout-xl);
  max-inline-size: 38.75rem; /* 620px */
}

.service-area__title {
  margin-block-start: var(--space-content-eyebrow-to-heading);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-heading-h1);
  line-height: var(--leading-heading-h1);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
  text-transform: uppercase;
}

.service-area__text {
  font-size: var(--text-body-md);
  line-height: var(--leading-body-md);
  letter-spacing: var(--tracking-body);
  color: var(--text-subtle);
}

.service-area__features {
  position: relative; /* paints above the panel it overlaps */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-component-2xs);
  padding-block-start: var(--space-content-paragraph-gap);
}

/* Card — top padding replaces the file's vertical centring so icons line up (see notes) */
.service-area__feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-layout-md);
  min-block-size: 19.375rem; /* 310px — fixed card height in file */
  padding: var(--space-content-body-to-action) var(--space-content-body-to-action) 0; /* file: spacing/5xl = 28 */
  background-color: var(--neutral-cream);
}

.service-area__icon {
  inline-size: 5.625rem; /* 90px — icon frame */
  block-size: 5.625rem;
}

.service-area__body {
  padding-block-end: var(--space-content-body-to-action);
}

.service-area__feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-card-title);
  line-height: var(--leading-card-title);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-dark-900);
}

.service-area__feature-text {
  color: var(--neutral-dark-900);
}

/* --- Roof options / CTA band (2003:2214) — full-bleed split ------------- */
.roof-options {
  display: grid;
  /* image column: 796px at the 1728px frame (46%), capped at 796px */
  grid-template-columns: minmax(0, 1fr) min(49.75rem, 46%);
  padding-inline: 0; /* full-bleed: gutters move onto the text panel */
  background-color: var(--neutral-dark-900);
}

.roof-options__panel {
  padding: var(--space-section-lg) var(--space-section-md) var(--space-section-lg) var(--gutter); /* file: pr spacing/11xl = 80 */
  background-color: var(--neutral-dark-700);
}

/* Content hugs the image side, as in the file (580px max, right-aligned) */
.roof-options__content {
  max-inline-size: 36.25rem; /* 580px */
  margin-inline-start: auto;
}

.roof-options__tag {
  padding-block-end: var(--space-content-eyebrow-to-heading); /* file: spacing/3xl = 20 */
}

.roof-options__title {
  padding-block-end: var(--space-content-body-to-action);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-heading-h1);
  line-height: var(--leading-heading-h1);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
  text-transform: uppercase;
}

.roof-options__text {
  max-inline-size: 33.0625rem; /* 529px */
  padding-block-end: var(--space-layout-xl); /* file: spacing/7xl = 36 */
  font-size: var(--text-body-md);
  line-height: var(--leading-body-md);
  letter-spacing: var(--tracking-body);
  color: var(--text-muted);
}

.roof-options__item {
  padding-block-end: var(--space-content-body-to-action);
  padding-inline-end: var(--space-content-body-to-action); /* file: spacing/5xl = 28 */
}

.roof-options__item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-card-title);
  line-height: var(--leading-card-title);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
}

.roof-options__item-text {
  color: var(--text-muted);
}

.roof-options__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-layout-md) var(--space-layout-2xl);
}

.roof-options__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-component-sm);
  padding-block: var(--space-component-lg); /* file: pb --sds-size-space-300 = 12 */
  border-block-end: 1px solid var(--border-divider); /* 0.765px in file */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-link);
  line-height: var(--leading-link);
  letter-spacing: var(--tracking-heading);
  color: var(--text-muted);
  white-space: nowrap;
  transition:
    color 0.3s ease,
    border-color 0.3s ease; /* invented */
}

/* Same glyph as the header phone; masked so it takes the link colour */
.roof-options__phone::before {
  content: "";
  flex-shrink: 0;
  inline-size: 1.125rem; /* 18px */
  block-size: 1.125rem;
  background-color: currentColor;
  mask: url("assets/icons/phone.svg") center / contain no-repeat;
}

.roof-options__phone:hover,
.roof-options__phone:focus-visible {
  color: var(--neutral-white); /* invented — no hover state in file */
  border-color: var(--primary);
}

.roof-options__media {
  min-block-size: 26.25rem; /* 420px — min height in file */
}

/* Fills the column height (file leaves a 20px dark-900 strip under an 850px image) */
.roof-options__img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* --- Insights (2003:1780) ----------------------------------------------- */
.insights {
  padding-block: var(--space-section-lg);
  border-block-start: 1px solid var(--border-dark); /* 0.765px in file */
  background-color: var(--neutral-cream);
}

.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-component-2xs); /* file: --sds-size-space-050 = 2 */
  margin-block-start: var(--space-9xl);
}

/* Card — component 2069:200; equal heights come from the grid row, not a fixed size */
.insights__card {
  display: flex;
  flex-direction: column;
  block-size: 100%;
  color: var(--neutral-dark-900);
  background-color: var(--neutral-white);
}

.insights__media {
  overflow: hidden;
}

.insights__img {
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 390 / 220; /* image frame ratio in file */
  object-fit: cover;
  transition: transform 0.5s ease; /* invented */
}

.insights__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-layout-md) var(--space-content-body-to-action) var(--space-layout-lg); /* file: spacing/4xl 24 · 5xl 28 · 6xl 32 */
  transition: transform 0.3s ease; /* invented */
}

.insights__meta {
  display: flex;
  align-items: center;
  gap: var(--space-component-md);
}

.insights__category {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-label);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-heading);
  color: var(--primary);
}

.insights__meta-divider {
  flex-shrink: 0;
  inline-size: 1px;
  block-size: 0.625rem; /* 10px — raw frame size */
  background-color: color-mix(in oklch, var(--neutral-dark-900) 20%, transparent); /* 20% layer opacity */
}

.insights__date {
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  letter-spacing: var(--tracking-body);
  color: color-mix(in oklch, var(--neutral-dark-900) 45%, transparent); /* 45% layer opacity */
}

.insights__title {
  padding-block-start: 0.875rem; /* 14px — raw value in file, no token */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-process-title);
  line-height: var(--leading-process-title);
  letter-spacing: var(--tracking-heading);
}

.insights__excerpt {
  padding-block-start: var(--space-component-lg);
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  letter-spacing: var(--tracking-body);
  color: color-mix(in oklch, var(--neutral-dark-900) 60%, transparent); /* 60% layer opacity */
}

/* Pinned to the card bottom so the links line up if excerpts differ in length */
.insights__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-component-xs);
  margin-block-start: auto;
  padding-block-start: var(--space-content-eyebrow-to-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-eyebrow);
  line-height: var(--leading-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  opacity: 0.5;
  transition:
    color 0.3s ease,
    opacity 0.3s ease; /* invented */
}

.insights__more-arrow {
  color: var(--primary);
}

/* Hover variant: image 390×220 → 410×231 (≈5%), body lifts 11px (pt 24→13 / pb 32→42),
   "Read Article" → full opacity, primary */
.insights__card:hover .insights__img,
.insights__card:focus-visible .insights__img {
  transform: scale(1.05);
}

.insights__card:hover .insights__body,
.insights__card:focus-visible .insights__body {
  transform: translateY(-0.6875rem);
}

.insights__card:hover .insights__more,
.insights__card:focus-visible .insights__more {
  color: var(--primary);
  opacity: 1;
}

/* --- Inspection form (2078:1313) ---------------------------------------- */
.inspection {
  padding-block: var(--space-section-lg);
  background-color: var(--neutral-dark-900);
}

.inspection__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-section-lg); /* file: 100px raw gap, = spacing/12xl */
}

.inspection__title {
  margin-block-start: var(--space-content-eyebrow-to-heading);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-heading-h1);
  line-height: var(--leading-heading-h1);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
  text-transform: uppercase;
}

.inspection__text {
  margin-block-start: var(--space-content-body-to-action);
  font-size: var(--text-body-md);
  line-height: var(--leading-body-md);
  letter-spacing: var(--tracking-body);
  color: var(--text-subtle);
}

.inspection__steps {
  margin-block-start: var(--space-9xl);
}

.inspection__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-layout-sm);
  padding-block: var(--space-layout-md); /* file: spacing/4xl = 24 */
  border-block-end: 1px solid var(--border-card);
}

.inspection__step-number {
  padding-block-start: var(--space-component-2xs); /* file: --sds-size-space-050 = 2 */
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-step-number-sm);
  line-height: var(--leading-step-number-sm);
  letter-spacing: var(--tracking-heading);
  color: var(--primary);
}

.inspection__step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-card-title);
  line-height: var(--leading-card-title);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
}

.inspection__step-text {
  padding-block-start: 0.25rem; /* 4px — file: spacing/xs, no Dimension equivalent */
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-sm);
  letter-spacing: var(--tracking-body);
  color: var(--text-faint);
}

.inspection__call {
  display: flex;
  align-items: center;
  gap: var(--space-layout-xs);
  margin-block-start: var(--space-layout-2xl); /* file: spacing/8xl = 40 */
  padding-block-start: var(--space-layout-lg);
  border-block-start: 1px solid var(--border-card);
}

/* Icon tile: padding around the 14px icon gives the file's 44px square */
.inspection__call-icon {
  flex-shrink: 0;
  padding: 0.9375rem; /* 15px — (44 − 14) / 2 */
  background-color: var(--primary);
}

.inspection__call-icon img {
  inline-size: 0.875rem;
  block-size: 0.875rem;
}

.inspection__call-label {
  padding-block-end: var(--space-component-2xs);
  font-size: var(--text-body-xxs);
  line-height: var(--leading-body-xxs);
  letter-spacing: var(--tracking-body);
  color: var(--text-dim);
}

.inspection__call-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-card-title);
  line-height: var(--leading-card-title);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
  transition: color 0.3s ease; /* invented */
}

.inspection__call-number:hover,
.inspection__call-number:focus-visible {
  color: var(--primary); /* invented — no hover state in file */
}

/* Form card */
.inspection__card {
  padding: var(--space-layout-2xl) var(--space-layout-2xl) var(--space-9xl); /* file: spacing/8xl 40 · --sds-size-space-1200 48 */
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card-overlay);
}

.inspection__card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-process-title);
  line-height: var(--leading-process-title);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
}

.inspection__card-text {
  padding-block-start: var(--space-component-xs);
  font-size: var(--text-body-xxs);
  line-height: var(--leading-body-xxs);
  letter-spacing: var(--tracking-body);
  color: var(--text-ghost);
}

.inspection__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-layout-sm); /* file: 20px raw gap */
  margin-block-start: var(--space-layout-lg);
}

.inspection__field {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
}

.inspection__field--full {
  grid-column: 1 / -1;
}

.inspection__label {
  padding-block-end: var(--space-component-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-link);
  line-height: var(--leading-link);
  letter-spacing: var(--tracking-heading);
  color: var(--text-subtle);
}

.inspection__control {
  inline-size: 100%;
  padding: var(--space-input-y) var(--space-input-x);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-none);
  font-family: var(--font-body);
  font-size: var(--text-input);
  line-height: var(--leading-input);
  letter-spacing: var(--tracking-body);
  color: var(--neutral-white);
  background-color: var(--surface-input);
  transition: border-color 0.3s ease; /* invented */
}

.inspection__control::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}

.inspection__control:focus-visible {
  outline: none;
  border-color: var(--primary); /* invented — no focus state in file */
}

textarea.inspection__control {
  resize: vertical;
}

/* Native select, custom chevron (exported chevron-down.svg, masked to the text colour) */
.inspection__select {
  position: relative;
}

.inspection__select .inspection__control {
  padding-inline-end: calc(var(--space-input-x) * 2 + 1.25rem);
  appearance: none;
  cursor: pointer;
}

.inspection__select .inspection__control:has(option[value=""]:checked) {
  color: var(--text-placeholder); /* file: "Select age range" uses text/placeholder */
}

.inspection__select option {
  color: var(--neutral-dark-900);
}

.inspection__select::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: var(--space-input-x);
  inline-size: 1.25rem;
  margin-block: auto;
  block-size: 1.25rem;
  background-color: var(--text-subtle);
  mask: url("assets/icons/chevron-down.svg") center / contain no-repeat;
  pointer-events: none;
}

.inspection__actions {
  padding-block-start: 0.25rem; /* 4px — file: spacing/xs, no Dimension equivalent */
}

.inspection__submit {
  justify-content: center;
  inline-size: 100%;
  min-inline-size: 0;
}

.inspection__note {
  padding-block-start: var(--space-component-lg);
  font-size: var(--text-body-xxs);
  line-height: var(--leading-body-xxs);
  letter-spacing: var(--tracking-body);
  text-align: center;
  color: var(--text-placeholder);
}

/* --- Footer (2003:1883) -------------------------------------------------- */
.footer {
  color: var(--text-muted);
  background-color: var(--background-darker);
}

.footer__main {
  padding-block: var(--space-layout-4xl) var(--space-9xl); /* file: --sds-size-space-1600 = 64 · spacing/9xl = 48 */
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-layout-3xl);
}

.footer__brand {
  flex: 0 1 auto;
  min-inline-size: 0;
}

.footer__logo {
  display: inline-flex;
}

.footer__logo-img {
  inline-size: 10.5rem; /* 168px */
  block-size: auto;
}

.footer__about {
  max-inline-size: 17.5rem; /* 280px — text width in file */
  padding-block-start: var(--space-content-heading-to-body);
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  letter-spacing: var(--tracking-body);
  color: var(--text-faint);
}

.footer__phone {
  padding-block-start: var(--space-content-body-to-action);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-link-arrow);
  line-height: var(--leading-link-arrow);
  letter-spacing: var(--tracking-heading);
  color: var(--neutral-white);
}

.footer__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-component-sm);
  padding-block-start: var(--space-component-sm);
  font-style: normal;
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  letter-spacing: var(--tracking-body);
  color: var(--text-dim);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-component-lg);
  padding-block-start: var(--space-content-body-to-action);
}

.footer__social-link {
  display: block;
  padding: 0.25rem var(--space-component-sm); /* 4px raw (--sds-size-space-100) · file: spacing/md = 8 */
  border: 1px solid var(--border-light); /* 0.765px in file */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-label);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-heading);
  color: var(--text-dim);
  transition:
    color 0.3s ease,
    border-color 0.3s ease; /* invented */
}

.footer__col {
  flex: 1 1 0;
  min-inline-size: 0;
}

.footer__col--company,
.footer__col:last-child {
  flex: 0 1 auto;
}

.footer__col--company {
  min-inline-size: 13.125rem; /* 210px — column width in file keeps the gap before Service Areas */
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-link);
  line-height: var(--leading-link);
  letter-spacing: var(--tracking-heading);
  color: var(--text-ghost);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-component-md);
  padding-block-start: var(--space-content-eyebrow-to-heading);
}

.footer__link {
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  letter-spacing: var(--tracking-body);
  color: var(--text-muted);
  transition: color 0.3s ease; /* invented */
}

.footer__phone a,
.footer__link,
.footer__legal-link a,
a.footer__legal-link {
  transition: color 0.3s ease; /* invented */
}

.footer__phone a:hover,
.footer__phone a:focus-visible,
.footer__link:hover,
.footer__link:focus-visible,
.footer__social-link:hover,
.footer__social-link:focus-visible,
a.footer__legal-link:hover,
a.footer__legal-link:focus-visible,
.footer__credit:hover,
.footer__credit:focus-visible {
  color: var(--neutral-white); /* invented — no hover states in file */
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  border-color: var(--text-muted);
}

/* CTA box — component 2069:390; hover from its second variant */
.footer__cta {
  display: inline-flex;
  flex-direction: column;
  margin-block-start: var(--space-layout-lg);
  padding: var(--space-layout-sm); /* file: spacing/3xl = 20 */
  color: var(--neutral-white);
  text-transform: uppercase;
  background-color: var(--primary);
  transition: background-color 0.3s ease; /* invented */
}

.footer__cta-title {
  padding-block-end: var(--space-component-lg); /* file: spacing/xl = 12 */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-button-md);
  line-height: var(--leading-button-md);
  letter-spacing: var(--tracking-button);
  white-space: nowrap;
}

.footer__cta-link {
  display: flex;
  align-items: center;
  gap: var(--space-component-xs);
  padding-block: var(--space-component-2xs); /* file: spacing/2xs · component/2xs = 2 */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-eyebrow);
  line-height: var(--leading-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  white-space: nowrap;
}

.footer__cta-arrow {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  transition: flex-grow 0.3s ease; /* invented */
}

.footer__cta:hover,
.footer__cta:focus-visible {
  background-color: var(--primary-dark);
}

.footer__cta:hover .footer__cta-arrow,
.footer__cta:focus-visible .footer__cta-arrow {
  flex-grow: 1;
}

/* Bottom bar */
.footer__bottom {
  padding-block: var(--space-layout-sm); /* file: spacing/3xl = 20 */
  border-block-start: 1px solid var(--border-card); /* 0.765px in file */
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-component-md) var(--space-layout-md);
  font-size: var(--text-body-xs);
  line-height: var(--leading-body-xs);
  letter-spacing: var(--tracking-body);
  color: var(--text-placeholder);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-component-sm) var(--space-layout-md);
}

.footer__legal-link {
  color: var(--text-placeholder);
}

.footer__credit {
  color: var(--text-muted); /* file: color/neutral/white-55 — not in exports, same value */
}

/* ==========================================================================
   5. Responsive — keep last
   ========================================================================== */
@media (max-width: 1279px) {
  /* Top bar can't fit phone + areas + trust items on one line below ~1100px */
  .header__trust {
    display: none;
  }
}

@media (max-width: 991px) {

  .hamburger {
    display: block;
  }

  /* Menu popover drops in under the sticky header (no mobile design — see notes) */
  .header__menu {
    display: none;
    position: fixed;
    inset: var(--header-height, 7rem) 0 auto;
    inline-size: 100%;
    max-inline-size: none;
    max-block-size: calc(100dvh - var(--header-height, 7rem));
    margin: 0;
    padding: var(--space-layout-lg) var(--gutter) var(--space-layout-2xl);
    overflow-y: auto;
    border: 0;
    border-block-end: 2px solid var(--primary);
    background-color: var(--neutral-white);
    box-shadow: var(--shadow-nav);
    opacity: 0;
    translate: 0 -0.75rem;
    transition:
      opacity 0.3s ease,
      translate 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      display 0.3s allow-discrete,
      overlay 0.3s allow-discrete;
  }

  .header__menu:popover-open {
    display: block;
    opacity: 1;
    translate: 0 0;
  }

  @starting-style {
    .header__menu:popover-open {
      opacity: 0;
      translate: 0 -0.75rem;
    }
  }

  @keyframes menu-item-in {
    from {
      opacity: 0;
      translate: -0.5rem 0;
    }

    to {
      opacity: 1;
      translate: 0 0;
    }
  }

  .header__menu:popover-open .header__menu-list > li {
    animation: menu-item-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .header__menu:popover-open .header__menu-list > li:nth-child(2) { animation-delay: 50ms; }
  .header__menu:popover-open .header__menu-list > li:nth-child(3) { animation-delay: 100ms; }
  .header__menu:popover-open .header__menu-list > li:nth-child(4) { animation-delay: 150ms; }
  .header__menu:popover-open .header__menu-list > li:nth-child(5) { animation-delay: 200ms; }

  .header__menu-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-layout-md);
  }

  /* Dropdown becomes an always-open indented list inside the mobile panel */
  .header__submenu {
    position: static;
    padding-block-start: var(--space-component-sm);
    opacity: 1;
    visibility: visible;
    translate: none;
  }

  .header__submenu-list {
    padding-block: 0;
    background: none;
    box-shadow: none;
  }

  .header__sublink {
    padding-inline: var(--space-layout-xs) 0;
    padding-block: var(--space-component-sm);
  }

  /* Footer — brand full width, link columns in a row below */
  .footer__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-layout-2xl) var(--space-layout-md);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__col--company {
    min-inline-size: 0;
  }

  /* Services — header stacks, grid drops to 2 columns (wide tile keeps its span) */
  .services__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .services__intro {
    flex: none;
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Roof options — stacks, photo below the text */
  .roof-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .roof-options__panel {
    padding-inline: var(--gutter);
  }

  .roof-options__content {
    max-inline-size: none;
    margin-inline-start: 0;
  }

  .roof-options__media {
    block-size: 26.25rem;
  }

  /* Service area — panel sizes to its text plus the card overlap; cards 2×2 */
  .service-area__panel {
    min-block-size: 0;
    padding-block-end: calc(var(--space-section-md) + 9.375rem);
  }

  .service-area__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Inspection — form card drops below the intro */
  .inspection__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-layout-3xl);
  }

  /* Section head — stacks, link sits under the heading */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-layout-md);
  }

  .section-head__intro {
    flex: none;
  }

  /* Insights — 2 columns, third card spans the row */
  .insights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Full-width third card goes horizontal so its image doesn't balloon */
  .insights__grid > :last-child {
    grid-column: 1 / -1;
  }

  .insights__grid > :last-child .insights__card {
    flex-direction: row;
  }

  .insights__grid > :last-child .insights__media {
    flex: 1 1 50%;
  }

  .insights__grid > :last-child .insights__img {
    block-size: 100%;
    aspect-ratio: auto;
  }

  .insights__grid > :last-child .insights__body {
    flex: 1 1 50%;
  }

  /* Process — header stacks, steps become a 2×2 grid */
  .process__header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-layout-md);
  }

  .process__intro {
    flex: none;
  }

  .process__aside {
    max-inline-size: none;
  }

  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Testimonial stacks — photo capped at its Figma width */
  .testimonial__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-layout-2xl);
  }

  .testimonial__media {
    max-inline-size: 26.25rem; /* 420px */
    margin-inline-start: 1.25rem; /* keeps the -20px badge inside the gutter */
  }

  /* Mission stacks — invented, no mobile frame */
  .mission__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-layout-2xl);
  }

  /* Heritage stacks — invented, no mobile frame */
  .heritage__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-layout-2xl);
  }

  .heritage__since {
    min-block-size: 0;
  }

  .heritage__collage {
    flex: none;
    inline-size: 100%;
    max-inline-size: 36.75rem; /* 588px — Figma frame width */
    margin-inline: auto;
  }
}

@media (min-width: 992px) {
  /* Popover UA styles neutralised so the list renders inline on desktop */
  .header__menu[popover] {
    position: static;
    inset: auto;
    inline-size: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: inherit;
    background: none;
    border: 0;
  }
}

@media (max-width: 767px) {
  .header__topbar-inner {
    justify-content: center;
  }

  /* No room for the CTA beside logo, call and hamburger — the menu and hero carry it */
  .header__cta {
    display: none;
  }

  .footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__col:last-child {
    grid-column: 1 / -1;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects__grid,
  .insights__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .insights__grid > :last-child {
    grid-column: auto;
  }

  .insights__grid > :last-child .insights__card {
    flex-direction: column;
  }

  .insights__grid > :last-child .insights__media {
    flex: none;
  }

  .insights__grid > :last-child .insights__img {
    block-size: auto;
    aspect-ratio: 390 / 220;
  }

  .insights__grid > :last-child .insights__body {
    flex: 1 1 auto;
  }

  .header__divider,
  .header__areas {
    display: none;
  }

  /* Hero reflow — invented, no mobile frame */
  .hero {
    min-block-size: 0;
    padding-block: var(--space-section-md) var(--space-layout-3xl);
  }

  .hero__actions {
    gap: var(--space-layout-md);
  }

  .hero__badges {
    gap: var(--space-layout-md);
    margin-block-start: var(--space-layout-2xl);
  }

  /* Heritage — invented */
  .heritage__since-rule {
    inline-size: 2.5rem;
  }
}

@media (max-width: 478px) {
  :root {
    --gutter: 1.25rem; /* 20px — agreed mobile gutter (= spacing/container/x Mobile) */
  }

  .services__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services__item--wide {
    grid-column: auto;
  }

  .process__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn--md {
    justify-content: center;
    inline-size: 100%;
    min-inline-size: 0;
  }

  .inspection__card {
    padding-inline: var(--space-layout-md);
  }

  .inspection__form {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects__card {
    block-size: 22.5rem; /* 360px — invented, keeps text clear of the badge on narrow cards */
  }

  .service-area__features {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-area__feature {
    min-block-size: 0;
  }

  .hero__cta {
    justify-content: center;
    inline-size: 100%;
    min-inline-size: 0;
    padding-inline: var(--space-layout-xs);
  }

  .hero__badges img {
    max-inline-size: 5rem; /* invented — badges scale down to fit two per row */
  }

  .hero__badges li:last-child img {
    max-inline-size: 10rem; /* invented */
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
