@layer reset, tokens, base, layout, components, forms, utilities, motion;

@layer tokens {
  :root {
    color-scheme: light;
    --ink: #151916;
    --ink-soft: #3f4842;
    --muted: #667069;
    --paper: #f4f2ea;
    --paper-deep: #e9e6db;
    --surface: #fcfbf7;
    --line: rgba(21, 25, 22, .16);
    --line-light: rgba(255, 255, 255, .2);
    --deep: #111a17;
    --deep-2: #1b2924;
    --white: #fff;
    --accent: #a7c957;
    --accent-strong: #789638;
    --accent-soft: #e1ebc5;
    --accent-rgb: 167, 201, 87;
    --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: "Avenir Next", Avenir, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 12px 32px rgba(17, 26, 23, .08);
    --shadow-lg: 0 32px 90px rgba(17, 26, 23, .16);
    --radius: 2px;
    --shell: 1240px;
    --header-height: 82px;
  }

  .theme-doors {
    --accent: #c49263;
    --accent-strong: #8d5b36;
    --accent-soft: #eddfd1;
    --accent-rgb: 196, 146, 99;
    --deep: #181613;
    --deep-2: #2b251f;
  }

  .theme-electrical {
    --accent: #efb83f;
    --accent-strong: #b57c05;
    --accent-soft: #f6e8be;
    --accent-rgb: 239, 184, 63;
    --deep: #151714;
    --deep-2: #272a22;
  }
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
  body { margin: 0; }
  img, picture, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, textarea, select { color: inherit; font: inherit; }
  button { cursor: pointer; }
  h1, h2, h3, p, figure, blockquote { margin-top: 0; }
  ul, ol { padding-left: 1.25rem; }
  address { font-style: normal; }
  [hidden] { display: none !important; }
}

@layer base {
  body {
    min-width: 320px;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  body.nav-open { overflow: hidden; }
  a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
  a:hover { text-decoration-color: var(--accent); }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
  ::selection { background: var(--accent); color: var(--deep); }

  h1, h2, h3 {
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -.035em;
    text-wrap: balance;
  }

  h1 { font-size: clamp(3.1rem, 7.2vw, 7.35rem); line-height: .91; }
  h2 { font-size: clamp(2.45rem, 4.7vw, 5rem); line-height: .98; }
  h3 { font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.08; }
  p { text-wrap: pretty; }

  .skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: .75rem 1rem;
    transform: translateY(-160%);
    background: var(--white);
    color: var(--ink);
    font-weight: 800;
    transition: transform .18s ease;
  }
  .skip-link:focus { transform: translateY(0); }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.15rem;
    color: var(--accent-strong);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  .eyebrow::before { width: 28px; height: 1px; content: ""; background: currentColor; }
  .eyebrow--light { color: var(--accent); }
}

@layer layout {
  .shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
  .page-sections { position: relative; }
  .section { position: relative; padding-block: clamp(5rem, 9vw, 9rem); }
  .section--paper { background: var(--paper); }
  .section--tint { background: var(--paper-deep); }
  .section--dark { background: var(--deep); color: var(--white); }

  .section-heading { max-width: 790px; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
  .section-heading > p:not(.eyebrow) { max-width: 660px; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.17rem); }
  .section-heading--split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
    align-items: end;
    gap: clamp(2rem, 7vw, 7rem);
  }
  .section-heading--split > p { margin: 0 0 .5rem; }
  .section-heading--light > p:not(.eyebrow) { color: rgba(255, 255, 255, .66); }

  .prose { max-width: 67ch; color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.13rem); }
  .prose > *:last-child { margin-bottom: 0; }
  .prose h3 { margin: 2.25rem 0 .8rem; color: var(--ink); }
  .prose ul { display: grid; gap: .55rem; margin-block: 1.5rem; }
}

@layer components {
  .site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: var(--header-height);
    color: var(--white);
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
  }
  .site-header::after {
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, .2);
  }
  .site-header.is-scrolled,
  .site-header.is-open {
    background: rgba(244, 242, 234, .96);
    box-shadow: 0 10px 38px rgba(17, 26, 23, .08);
    color: var(--ink);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .site-header.is-scrolled::after,
  .site-header.is-open::after { background: var(--line); }
  .site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }

  .brand { display: inline-flex; align-items: center; gap: .72rem; width: max-content; color: inherit; text-decoration: none; }
  .brand__mark { position: relative; width: 31px; height: 31px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
  .brand__mark i { border: 1.5px solid currentColor; }
  .brand__mark i:first-child { transform: translateY(-3px); }
  .brand__mark i:last-child { transform: translateY(3px); }
  .brand__name { font-size: 1.05rem; font-weight: 900; letter-spacing: .15em; }
  .brand__division { margin-left: -.45rem; opacity: .66; font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }

  .site-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: clamp(1.5rem, 3vw, 3.2rem); }
  .site-nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
  .site-nav__links a { position: relative; padding-block: .5rem; font-size: .84rem; font-weight: 750; text-decoration: none; }
  .site-nav__links a::after { position: absolute; inset: auto 0 .25rem; height: 1px; content: ""; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
  .site-nav__links a:hover::after,
  .site-nav__links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .site-nav__actions { display: flex; align-items: center; gap: 1.15rem; }
  .nav-phone { display: grid; text-align: right; text-decoration: none; }
  .nav-phone span { opacity: .64; font-size: .61rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
  .nav-phone strong { font-size: .84rem; letter-spacing: .025em; }
  .nav-toggle { display: none; border: 0; background: transparent; }

  .button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: .8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: .81rem;
    font-weight: 850;
    letter-spacing: .035em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  }
  .button:hover { transform: translateY(-2px); }
  .button--small { min-height: 42px; padding: .65rem 1rem; font-size: .73rem; }
  .button--primary { background: var(--accent); color: var(--deep); box-shadow: 0 12px 26px rgba(var(--accent-rgb), .16); }
  .button--primary:hover { background: var(--white); color: var(--deep); }
  .button--ghost { border-color: rgba(255, 255, 255, .48); background: rgba(255, 255, 255, .06); color: var(--white); }
  .button--ghost:hover { border-color: var(--white); background: var(--white); color: var(--deep); }
  .button--dark { background: var(--deep); color: var(--white); }
  .button--dark:hover { background: var(--accent); color: var(--deep); box-shadow: var(--shadow-sm); }
  .text-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-size: .82rem; font-weight: 850; text-underline-offset: .3em; }
  .text-link--light { color: var(--white); }

  .hero {
    position: relative;
    min-height: max(690px, 94svh);
    display: grid;
    align-items: end;
    isolation: isolate;
    overflow: hidden;
    background: var(--deep);
    color: var(--white);
  }
  .hero__media, .hero__shade { position: absolute; inset: 0; }
  .hero__media { z-index: -2; }
  .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(9, 15, 13, .9) 0%, rgba(9, 15, 13, .7) 35%, rgba(9, 15, 13, .18) 68%, rgba(9, 15, 13, .04) 100%),
      linear-gradient(0deg, rgba(9, 15, 13, .68), transparent 45%);
  }
  .theme-doors .hero__media img { object-position: 47% center; }
  .hero__inner { position: relative; padding-block: calc(var(--header-height) + 6.5rem) clamp(6.5rem, 10vh, 9rem); }
  .hero__copy { max-width: min(830px, 72vw); }
  .hero h1 { max-width: 12ch; margin-bottom: 1.6rem; text-shadow: 0 2px 24px rgba(0, 0, 0, .12); }
  .hero__summary { max-width: 650px; margin-bottom: 2rem; color: rgba(255, 255, 255, .8); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
  .hero__caption { position: absolute; right: 0; bottom: 2.25rem; width: min(360px, 30vw); display: flex; align-items: flex-start; gap: 1rem; }
  .hero__caption-line { width: 42px; height: 1px; flex: 0 0 auto; margin-top: .45rem; background: var(--accent); }
  .hero__caption p { margin: 0; color: rgba(255, 255, 255, .58); font-size: .66rem; line-height: 1.45; }
  .hero__caption strong, .hero__caption span { display: block; }
  .hero__caption strong { margin-bottom: .22rem; color: var(--white); letter-spacing: .06em; text-transform: uppercase; }
  .hero__scroll { position: absolute; left: 50%; bottom: 1.8rem; display: grid; justify-items: center; gap: .55rem; color: rgba(255, 255, 255, .68); font-size: .61rem; font-weight: 800; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transform: translateX(-50%); }
  .hero__scroll i { position: relative; width: 1px; height: 25px; overflow: hidden; background: rgba(255, 255, 255, .24); }
  .hero__scroll i::after { position: absolute; inset: 0; content: ""; background: var(--accent); transform: translateY(-100%); animation: scroll-line 2s ease-in-out infinite; }

  .trust-strip { position: relative; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); }
  .trust-strip__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-point { min-height: 150px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.3rem; padding: 2rem clamp(1.25rem, 3vw, 2.8rem); border-right: 1px solid var(--line); }
  .trust-point:first-child { padding-left: 0; }
  .trust-point:last-child { padding-right: 0; border-right: 0; }
  .trust-point__number { align-self: start; padding-top: .25rem; color: var(--accent-strong); font-size: .66rem; font-weight: 850; letter-spacing: .1em; }
  .trust-point h2 { margin-bottom: .4rem; font-family: var(--sans); font-size: .95rem; font-weight: 850; letter-spacing: 0; }
  .trust-point p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }

  .service-links { border-top: 1px solid var(--line); }
  .service-link { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 1.5rem; padding: 1.7rem .3rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .2s ease, background .2s ease; }
  .service-link:hover { padding-inline: 1.1rem; background: var(--surface); }
  .service-link span { color: var(--accent-strong); font-size: .7rem; font-weight: 850; }
  .service-link strong { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -.02em; }
  .service-link i { font-size: 1.3rem; font-style: normal; }

  .story { background: var(--surface); }
  .story:nth-child(even) { background: var(--paper); }
  .story__grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr); align-items: center; gap: clamp(3rem, 9vw, 9rem); }
  .story--media-left .story__media { order: -1; }
  .story--text-only .story__grid { grid-template-columns: minmax(0, 820px); }
  .story__copy h2 { margin-bottom: 1.75rem; }
  .story__media { position: relative; min-height: 520px; margin: 0; overflow: hidden; background: var(--paper-deep); box-shadow: var(--shadow-lg); }
  .story__media::before { position: absolute; z-index: 1; inset: 18px; content: ""; border: 1px solid rgba(255, 255, 255, .42); pointer-events: none; }
  .story__media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
  .story__media:hover img { transform: scale(1.025); }
  .story__media-index { position: absolute; z-index: 2; right: 18px; bottom: 18px; padding: .45rem .65rem; background: var(--surface); color: var(--ink); font-size: .6rem; font-weight: 900; letter-spacing: .12em; }

  .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-card { min-height: 330px; display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.6rem); background: var(--surface); transition: background .25s ease, color .25s ease, transform .25s ease; }
  .feature-card--linked { padding: 0; }
  .feature-card__link { min-height: 330px; display: flex; flex: 1; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.6rem); color: inherit; text-decoration: none; }
  .feature-card__link:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: -6px; }
  .feature-card:hover { position: relative; z-index: 1; background: var(--deep); color: var(--white); transform: translateY(-6px); }
  .feature-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; }
  .feature-card__index { color: var(--muted); font-size: .62rem; font-weight: 850; letter-spacing: .1em; }
  .feature-card__icon { position: relative; width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .25s ease, transform .25s ease; }
  .feature-card:hover .feature-card__icon { border-color: var(--accent); transform: rotate(8deg); }
  .feature-card__icon::before, .feature-card__icon::after, .feature-card__icon i { position: absolute; content: ""; border: 1.5px solid var(--accent-strong); }
  .feature-card__icon::before { inset: 13px 18px; }
  .feature-card__icon::after { inset: 18px 13px; }
  .feature-card__icon i { inset: 50% 11px auto; border-width: 1px 0 0; }
  .feature-card h3 { margin: 2rem 0 .8rem; }
  .feature-card p { margin: 0; color: var(--muted); font-size: .91rem; }
  .feature-card__action { margin-top: 1.4rem; color: var(--accent-strong); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
  .feature-card:hover p, .feature-card:hover .feature-card__index { color: rgba(255, 255, 255, .65); }

  .process { overflow: hidden; }
  .process::before { position: absolute; inset: 0; content: ""; opacity: .22; background: radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), .5), transparent 27rem); pointer-events: none; }
  .process__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line-light); list-style: none; }
  .process__steps li { min-height: 290px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.8rem clamp(1.2rem, 2.5vw, 2.3rem); border-right: 1px solid var(--line-light); }
  .process__steps li:first-child { padding-left: 0; }
  .process__steps li:last-child { padding-right: 0; border-right: 0; }
  .process__number { color: var(--accent); font-size: .66rem; font-weight: 850; letter-spacing: .12em; }
  .process__steps h3 { margin-bottom: .75rem; }
  .process__steps p { margin: 0; color: rgba(255, 255, 255, .62); font-size: .88rem; }

  .gallery-section { background: var(--surface); }
  .gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
  .gallery-card { position: relative; grid-column: span 4; min-height: 300px; padding: 0; overflow: hidden; border: 0; background: var(--paper-deep); color: var(--white); text-align: left; }
  .gallery-card:first-child { grid-column: span 7; min-height: 510px; }
  .gallery-card:nth-child(2) { grid-column: span 5; min-height: 510px; }
  .gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.22, 1, .36, 1), filter .3s ease; }
  .gallery-card:hover img { transform: scale(1.035); filter: brightness(.83); }
  .gallery-card span { position: absolute; inset: auto 1.2rem 1rem; padding: .35rem .55rem; background: rgba(17, 26, 23, .8); font-size: .7rem; font-weight: 750; }
  .lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 4rem 5rem; border: 0; background: rgba(9, 14, 12, .94); color: var(--white); }
  .lightbox[open] { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 1.5rem; }
  .lightbox::backdrop { background: rgba(9, 14, 12, .86); }
  .lightbox figure { min-width: 0; max-height: calc(100vh - 8rem); display: grid; justify-items: center; gap: .8rem; margin: 0; }
  .lightbox img { max-width: 100%; max-height: calc(100vh - 11rem); object-fit: contain; }
  .lightbox figcaption { min-height: 1.4em; color: rgba(255, 255, 255, .7); font-size: .76rem; }
  .lightbox button { width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: var(--white); font-size: 1.8rem; }
  .lightbox__close { position: fixed; top: 1.3rem; right: 1.3rem; }

  .comparison__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .comparison-card { padding: 2rem clamp(1rem, 3vw, 2.5rem) 0; border-right: 1px solid var(--line); }
  .comparison-card:first-child { padding-left: 0; }
  .comparison-card:last-child { padding-right: 0; border-right: 0; }
  .comparison-card__index { display: block; margin-bottom: 4rem; color: var(--accent-strong); font-size: .65rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
  .comparison-card h3 { margin-bottom: 1rem; }
  .comparison-card p { color: var(--muted); }
  .comparison-card ul { display: grid; gap: .7rem; margin-top: 1.5rem; padding: 0; list-style: none; }
  .comparison-card li { display: grid; grid-template-columns: 12px 1fr; gap: .6rem; font-size: .86rem; }
  .comparison-card li::before { margin-top: .55rem; width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--accent-strong); }

  .faq { background: var(--surface); }
  .faq__grid { display: grid; grid-template-columns: minmax(270px, .65fr) minmax(0, 1.2fr); gap: clamp(3rem, 10vw, 10rem); }
  .faq .section-heading { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; margin: 0; }
  .faq__items { border-top: 1px solid var(--line); }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary { min-height: 84px; display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 1rem; padding-block: 1.1rem; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 500; list-style: none; cursor: pointer; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary i { position: relative; width: 24px; height: 24px; }
  .faq summary i::before, .faq summary i::after { position: absolute; top: 50%; left: 4px; width: 16px; height: 1px; content: ""; background: currentColor; transition: transform .2s ease; }
  .faq summary i::after { transform: rotate(90deg); }
  .faq details[open] summary i::after { transform: rotate(0); }
  .faq__answer { max-width: 64ch; padding: 0 3rem 1.7rem 0; color: var(--muted); }
  .faq__answer > *:last-child { margin-bottom: 0; }

  .cta-band { position: relative; padding-block: clamp(4rem, 7vw, 6.5rem); overflow: hidden; background: var(--deep-2); color: var(--white); }
  .cta-band::after { position: absolute; right: -8rem; bottom: -12rem; width: 34rem; height: 34rem; content: ""; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 50%; box-shadow: 0 0 0 80px rgba(var(--accent-rgb), .05), 0 0 0 160px rgba(var(--accent-rgb), .035); }
  .cta-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; }
  .cta-band h2 { max-width: 820px; margin-bottom: 1rem; }
  .cta-band p:not(.eyebrow) { max-width: 620px; color: rgba(255, 255, 255, .66); }
  .cta-band__actions { display: grid; justify-items: start; gap: 1.2rem; }

  .site-footer { padding: clamp(4rem, 8vw, 7rem) 0 1.5rem; background: #0c110f; color: var(--white); }
  .site-footer__grid { display: grid; grid-template-columns: 1.6fr .8fr .8fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
  .brand--footer { margin-bottom: 1.5rem; }
  .site-footer__brand > p { max-width: 330px; color: rgba(255, 255, 255, .54); }
  .site-footer__heading { margin-bottom: 1.2rem; font-family: var(--sans); font-size: .68rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
  .site-footer address, .site-footer nav { display: grid; gap: .65rem; }
  .site-footer address a, .site-footer nav a { width: fit-content; color: rgba(255, 255, 255, .66); font-size: .85rem; }
  .site-footer__cta > p:not(.eyebrow) { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.13; }
  .site-footer__bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .13); color: rgba(255, 255, 255, .42); font-size: .68rem; }

  .legal-hero { padding: calc(var(--header-height) + clamp(4rem, 8vw, 8rem)) 0 clamp(4rem, 7vw, 7rem); background: var(--deep); color: var(--white); }
  .legal-hero__inner { display: grid; justify-items: start; }
  .legal-hero h1 { max-width: 11ch; margin-bottom: 1.5rem; font-size: clamp(3.2rem, 7vw, 7rem); }
  .legal-hero__intro { max-width: 700px; color: rgba(255, 255, 255, .68); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
  .legal-status { max-width: 900px; display: grid; gap: .4rem; margin-top: clamp(2rem, 5vw, 4rem); padding: 1.2rem 1.35rem; border-left: 3px solid var(--accent); background: rgba(255, 255, 255, .07); }
  .legal-status strong { color: var(--accent); font-size: .76rem; letter-spacing: .045em; text-transform: uppercase; }
  .legal-status span { color: rgba(255, 255, 255, .72); font-size: .84rem; }
  .legal-main { background: var(--surface); }
  .legal-layout { display: grid; grid-template-columns: minmax(190px, .32fr) minmax(0, 1fr); align-items: start; gap: clamp(3rem, 9vw, 9rem); }
  .legal-nav { position: sticky; top: calc(var(--header-height) + 2rem); display: grid; }
  .legal-nav .eyebrow { margin-bottom: 1.4rem; }
  .legal-nav a { padding: .72rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .76rem; font-weight: 720; text-decoration: none; }
  .legal-nav a:hover { color: var(--ink); }
  .legal-content { max-width: 800px; }
  .legal-content > section { padding-bottom: clamp(3rem, 6vw, 5rem); margin-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-height) + 2rem); }
  .legal-content h2 { max-width: 13ch; margin-bottom: 1.6rem; font-size: clamp(2.25rem, 4.5vw, 4.4rem); }
  .legal-content p, .legal-content li { max-width: 68ch; color: var(--ink-soft); }
  .legal-content ul { display: grid; gap: .6rem; margin-block: 1.5rem; }
  .legal-content .button { margin-top: 1rem; }
  .legal-owner-note { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid rgba(var(--accent-rgb), .52); background: var(--accent-soft); }
  .legal-owner-note strong { display: block; margin-bottom: .45rem; color: var(--ink); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
  .legal-owner-note p { margin: 0; font-size: .82rem; }

  .mobile-cta { display: none; }

  #wtm_cookie_bar, .wtm_cookie_bar, .wtm-cookie-bar {
    width: min(430px, calc(100vw - 24px)) !important;
    height: auto !important;
    inset: auto 12px 12px auto !important;
    padding: 1.2rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 2px !important;
    background: rgba(252, 251, 247, .97) !important;
    color: var(--ink) !important;
    box-shadow: var(--shadow-lg) !important;
    font-family: var(--sans) !important;
    font-size: .78rem !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  #wtm_cookie_bar button, .wtm_cookie_bar button, .wtm-cookie-bar button { border-radius: 1px !important; font-weight: 800 !important; }
}

@layer forms {
  .qualifier { overflow: hidden; background: var(--accent-soft); }
  .qualifier::before { position: absolute; top: -18rem; left: -18rem; width: 40rem; height: 40rem; content: ""; border: 1px solid rgba(var(--accent-rgb), .55); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255, 255, 255, .18), 0 0 0 180px rgba(255, 255, 255, .12); pointer-events: none; }
  .qualifier__layout { position: relative; display: grid; grid-template-columns: minmax(280px, .58fr) minmax(0, 1fr); align-items: start; gap: clamp(3rem, 9vw, 9rem); }
  .qualifier__intro { position: sticky; top: calc(var(--header-height) + 2rem); }
  .qualifier__intro h2 { margin-bottom: 1.5rem; }
  .qualifier__intro > p:not(.eyebrow) { max-width: 48ch; color: var(--ink-soft); }
  .qualifier__contact { display: grid; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(21, 25, 22, .2); }
  .qualifier__contact span { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .qualifier__contact a { width: fit-content; margin-top: .35rem; font-family: var(--display); font-size: 1.55rem; font-weight: 500; }
  .qualifier-panel { min-width: 0; padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--surface); box-shadow: var(--shadow-lg); }
  .form-group { margin: 0 0 2.5rem; padding: 0 0 2.4rem; border: 0; border-bottom: 1px solid var(--line); }
  .form-group legend { width: 100%; margin-bottom: 1.3rem; color: var(--ink); font-family: var(--display); font-size: 1.45rem; font-weight: 500; }
  .form-group legend span { margin-right: .55rem; color: var(--accent-strong); font-family: var(--sans); font-size: .63rem; font-weight: 850; letter-spacing: .1em; }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .form-field { min-width: 0; display: grid; align-content: start; gap: .42rem; }
  .form-field--wide { grid-column: 1 / -1; }
  .form-field label { color: var(--ink-soft); font-size: .73rem; font-weight: 820; letter-spacing: .025em; }
  .form-field input:not([type="checkbox"]):not([type="radio"]),
  .form-field select,
  .form-field textarea {
    width: 100%;
    min-height: 50px;
    padding: .75rem .85rem;
    border: 1px solid var(--line);
    border-radius: 1px;
    outline: 0;
    background: var(--paper);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  }
  .form-field textarea { min-height: 125px; resize: vertical; }
  .form-field input[type="file"] { padding: .6rem; font-size: .79rem; }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent-strong); background: var(--white); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
  .form-field--checkbox { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: .75rem; margin-top: .25rem; }
  .form-field--checkbox input { width: 20px; height: 20px; margin: .12rem 0 0; accent-color: var(--accent-strong); }
  .form-field--checkbox label { font-weight: 650; line-height: 1.45; }
  .lead-form__privacy-note { margin: .35rem 0 0 2.75rem; color: var(--muted); font-size: .7rem; }
  .lead-form__privacy-note a { color: var(--ink-soft); font-weight: 750; }
  .form-field small { color: var(--muted); font-size: .68rem; }
  .field-error { margin: 0; color: #a7352a; font-size: .72rem; font-weight: 750; }
  .form-field--invalid input, .form-field--invalid select, .form-field--invalid textarea { border-color: #a7352a !important; }
  .form-errors { margin-bottom: 2rem; padding: 1rem 1.15rem; border-left: 3px solid #a7352a; background: #f8e7e2; }
  .form-errors h3 { margin-bottom: .5rem; font-family: var(--sans); font-size: .9rem; font-weight: 850; letter-spacing: 0; }
  .form-errors ul { margin: 0; color: #74261f; font-size: .75rem; }
  .lead-form__submit { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .lead-form__submit p { max-width: 300px; margin: 0; color: var(--muted); font-size: .7rem; }
  .lead-form__progress { display: none; margin-top: 1rem; color: var(--accent-strong); font-size: .74rem; font-weight: 800; }
  .htmx-request .lead-form__progress, .lead-form__progress.htmx-request { display: block; }
  .lead-form button[disabled] { cursor: wait; opacity: .62; transform: none; }
  .lead-success, .qualifier-panel__contact { min-height: 470px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
  .lead-success__mark { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 2rem; border-radius: 50%; background: var(--accent); color: var(--deep); font-size: 1.5rem; }
  .lead-success h3, .qualifier-panel__contact h3 { max-width: 520px; margin-bottom: 1rem; font-size: clamp(2.2rem, 4vw, 4rem); }
  .lead-success > p:not(.eyebrow), .qualifier-panel__contact > p:not(.eyebrow) { max-width: 550px; color: var(--muted); }
  .lead-success__reference { margin-top: 1rem; padding: .65rem .8rem; background: var(--paper); font-size: .72rem !important; overflow-wrap: anywhere; }
  .qualifier-panel__contact .button { margin: 1rem 0; }
}

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

@layer motion {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  @keyframes scroll-line { 0% { transform: translateY(-100%); } 50%, 100% { transform: translateY(100%); } }
}

@media (max-width: 1080px) {
  :root { --header-height: 74px; }
  .shell { width: min(var(--shell), calc(100% - 32px)); }
  .nav-toggle { position: relative; z-index: 2; width: 48px; height: 48px; display: grid; grid-template-columns: auto 22px; align-items: center; gap: .7rem; margin-left: auto; padding: 0; color: inherit; }
  .nav-toggle__label { font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
  .nav-toggle__icon { position: relative; width: 22px; height: 14px; }
  .nav-toggle__icon i { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .2s ease, top .2s ease; }
  .nav-toggle__icon i:first-child { top: 3px; }
  .nav-toggle__icon i:last-child { top: 11px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:first-child { top: 7px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:last-child { top: 7px; transform: rotate(-45deg); }
  .site-nav { position: fixed; z-index: 1; inset: var(--header-height) 0 auto; min-height: calc(100dvh - var(--header-height)); display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; padding: 2.5rem 24px max(2rem, env(safe-area-inset-bottom)); visibility: hidden; opacity: 0; background: var(--paper); color: var(--ink); transform: translateY(-1rem); transition: visibility .25s, opacity .25s ease, transform .25s ease; }
  .site-header.is-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-nav__links { display: grid; gap: 0; }
  .site-nav__links a { padding: 1.05rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(1.65rem, 5vw, 2.5rem); font-weight: 500; }
  .site-nav__links a::after { display: none; }
  .site-nav__actions { justify-content: space-between; }
  .nav-phone { text-align: left; }
  .hero__copy { max-width: 83vw; }
  .hero__caption { display: none; }
  .story__grid { grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 3rem; }
  .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__steps li { min-height: 230px; border-bottom: 1px solid var(--line-light); }
  .process__steps li:nth-child(2) { border-right: 0; }
  .comparison__grid { grid-template-columns: 1fr; }
  .comparison-card { padding: 2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .comparison-card__index { margin-bottom: 1.5rem; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__cta { grid-column: 1 / -1; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .13); }
}

@media (max-width: 760px) {
  .shell { width: min(var(--shell), calc(100% - 28px)); }
  .section { padding-block: 5rem; }
  .section-heading--split { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .section-heading--split > p { margin: 0; }
  .brand__division { display: none; }
  .site-nav__actions .button { display: none; }
  .hero { min-height: max(650px, 92svh); align-items: end; }
  .hero__media img { object-position: 60% center; }
  .theme-doors .hero__media img { object-position: 49% center; }
  .theme-electrical .hero__media img { object-position: 61% center; }
  .hero__shade { background: linear-gradient(0deg, rgba(9, 15, 13, .94) 0%, rgba(9, 15, 13, .65) 48%, rgba(9, 15, 13, .13) 100%); }
  .hero__inner { padding-block: calc(var(--header-height) + 4rem) 6.5rem; }
  .hero__copy { max-width: none; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.8rem, 14vw, 5rem); }
  .hero__summary { font-size: 1rem; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .button { width: 100%; }
  .hero__scroll { display: none; }
  .trust-strip__inner { grid-template-columns: 1fr; }
  .trust-point { min-height: 110px; padding: 1.35rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-point:last-child { border-bottom: 0; }
  .service-link { grid-template-columns: 40px 1fr auto; gap: .7rem; }
  .story__grid, .faq__grid, .qualifier__layout { grid-template-columns: 1fr; }
  .story__copy { order: -1; }
  .story--media-left .story__media { order: initial; }
  .story__media, .story__media img { min-height: 390px; }
  .card-grid, .card-grid--two, .card-grid--four { grid-template-columns: 1fr; }
  .feature-card { min-height: 270px; }
  .process__steps { grid-template-columns: 1fr; }
  .process__steps li, .process__steps li:first-child, .process__steps li:last-child { min-height: 190px; padding: 1.5rem 0; border-right: 0; }
  .gallery-grid { display: flex; gap: 10px; margin-right: -14px; padding-right: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .gallery-card, .gallery-card:first-child, .gallery-card:nth-child(2) { min-width: min(82vw, 420px); min-height: 430px; scroll-snap-align: center; }
  .lightbox { padding: 4.5rem .8rem 5rem; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox figure { max-height: calc(100vh - 10rem); }
  .lightbox img { max-height: calc(100vh - 13rem); }
  .lightbox__previous, .lightbox__next { position: fixed; bottom: 1rem; }
  .lightbox__previous { left: calc(50% - 58px); }
  .lightbox__next { right: calc(50% - 58px); }
  .faq .section-heading, .qualifier__intro { position: static; }
  .faq__answer { padding-right: 0; }
  .cta-band__inner { grid-template-columns: 1fr; align-items: start; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1rem; }
  .legal-nav .eyebrow { grid-column: 1 / -1; }
  .legal-nav a:nth-child(even) { padding-right: .75rem; }
  .legal-nav a:nth-child(odd) { padding-left: .75rem; }
  .legal-content h2 { max-width: 16ch; }
  .qualifier-panel { padding: 1.3rem; }
  .form-grid { grid-template-columns: 1fr; }
  .lead-form__submit { align-items: stretch; flex-direction: column; }
  .lead-form__submit .button { width: 100%; }
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand, .site-footer__cta { grid-column: 1 / -1; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; margin-top: 3rem; }
  .mobile-cta { position: fixed; z-index: 90; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: auto 1fr; padding: 6px; background: rgba(17, 26, 23, .94); box-shadow: 0 15px 45px rgba(0, 0, 0, .24); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .2s ease, transform .2s ease; }
  .mobile-cta.is-hidden { opacity: 0; pointer-events: none; transform: translateY(120%); }
  .mobile-cta a { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: .65rem .85rem; font-size: .74rem; font-weight: 850; text-decoration: none; }
  .mobile-cta__phone { gap: .4rem; color: var(--white); }
  .mobile-cta__primary { background: var(--accent); color: var(--deep); }
}

@media (max-width: 460px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__brand, .site-footer__cta { grid-column: auto; }
  .nav-toggle__label { display: none; }
  .nav-toggle { width: 32px; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .button, .feature-card, .qualifier-panel, .mobile-cta { border: 1px solid CanvasText; }
  .hero__shade { background: rgba(0, 0, 0, .7); }
}

@media print {
  .site-header, .mobile-cta, .hero__scroll, #wtm_cookie_bar, .wtm_cookie_bar, .wtm-cookie-bar { display: none !important; }
  .hero { min-height: 0; color: #000; background: #fff; }
  .hero__media { display: none; }
  .hero__inner { padding: 2rem 0; }
  .section { padding-block: 2rem; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
