/* ===== Tokens =====
   Brand: red / black / gray (sampled from the logo). One accent colour, flat surfaces, square corners.
   --black and --red-fill are fixed brand colours (never themed); --red is the text/line variant that
   lightens in dark mode so it stays legible. */
:root {
  color-scheme: light;
  --black: #0F0F0F;
  --red-fill: #C01818;
  --red-dark: #9C1212;
  --paper: #FFFFFF;
  --surface: #F3F2F0;
  --surface-2: #E7E5E1;
  --warm: #F6F1E9;
  --line: #D5D3CF;
  --line-soft: #E7E5E1;
  --ink: #0F0F0F;
  --ink-2: #3B3B3B;
  --ink-3: #666666;
  --red: #C01818;
  --good: #2E7D4F;
  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --maxw: 1200px;
  --pad: clamp(1.1rem, 4vw, 2.4rem);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F0F0F;
  --surface: #181818;
  --surface-2: #232323;
  --warm: #1C1915;
  --line: #333333;
  --line-soft: #262626;
  --ink: #EDEBE8;
  --ink-2: #BDBBB7;
  --ink-3: #8F8D89;
  --red: #EE625A;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

[id] {
  scroll-margin-top: 84px
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad)
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.1
}

p {
  margin: 0
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--red-fill);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .8rem 1.1rem;
  transition: top .15s ease
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px
}

.eyebrow {
  font-family: var(--font-display);
  font-size: .82rem;
  color: var(--ink-3);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  flex-wrap: wrap
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--red-fill);
  flex-shrink: 0
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--black);
  color: #fff
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
  transition: padding .25s ease
}

.site-header.is-scrolled .wrap {
  padding-top: .45rem;
  padding-bottom: .45rem
}

.site-header.is-scrolled .logo-img {
  height: 44px
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1)
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
  transition: height .25s ease
}

.main-nav {
  display: flex;
  gap: clamp(1.1rem, 1.9vw, 1.7rem);
  align-items: center
}

.main-nav a {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
  padding: .35rem 0;
  background: linear-gradient(var(--red-fill), var(--red-fill)) left bottom/0 2px no-repeat;
  transition: background-size .28s ease, color .2s ease
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
  background-size: 100% 2px
}

/* ---- Desktop dropdowns ---- */
.main-nav .menu-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  list-style: none
}

.nav-dropdown-toggle {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
  padding: .35rem 0;
  transition: color .2s ease
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.menu-item-dropdown:focus-within .nav-dropdown-toggle {
  color: #fff
}

.nav-chevron {
  transition: transform .2s ease
}

.menu-item-dropdown:hover .nav-chevron,
.menu-item-dropdown:focus-within .nav-chevron,
.menu-item-dropdown.is-open .nav-chevron {
  transform: rotate(180deg)
}

.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -6px);
  margin-top: 1.1rem;
  min-width: 180px;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: .4rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 50
}

.main-nav .menu-item-dropdown:hover .sub-menu,
.main-nav .menu-item-dropdown:focus-within .sub-menu,
.main-nav .menu-item-dropdown.is-open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s
}

.main-nav .sub-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  color: rgba(255, 255, 255, .78);
  padding: .65rem .9rem;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease
}

.main-nav .sub-menu a:hover,
.main-nav .sub-menu a:focus-visible,
.main-nav .sub-menu a[aria-current="page"] {
  color: #fff;
  border-left-color: var(--red-fill);
  background: rgba(255, 255, 255, .05)
}

@media (prefers-reduced-motion: reduce) {
  .nav-chevron,
  .main-nav .sub-menu {
    transition: none
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.1rem
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.1rem
}

.nav-phone {
  display: none;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .84rem;
  color: #fff;
  white-space: nowrap
}

.nav-phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #E0453F
}

.theme-toggle {
  appearance: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, .12)
}

.theme-toggle svg {
  width: 20px;
  height: 20px
}

.theme-toggle .icon-sun {
  display: none
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block
}

.tt-menu {
  display: none
}

.phone-link {
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  white-space: nowrap
}

.phone-link:hover {
  color: #fff
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .8rem 1.3rem;
  border-radius: 0;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .2s ease
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .2);
  transform: translateX(-101%);
  transition: transform .38s ease
}

.btn:hover::before {
  transform: none
}

.btn:hover {
  transform: translateY(-2px)
}

.btn-primary {
  background: var(--red-fill);
  color: #fff
}

.btn-primary:hover {
  background: var(--red-dark)
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .7);
  color: #fff
}

.btn-ghost:hover {
  background: #fff;
  color: var(--black)
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink)
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper)
}

@media (max-width:1100px) {
  .phone-link {
    display: none
  }
}

.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -8px;
  cursor: pointer;
  position: relative;
  color: #fff
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease
}

.nav-toggle span:nth-child(1) {
  top: 15px
}

.nav-toggle span:nth-child(2) {
  top: 21px
}

.nav-toggle span:nth-child(3) {
  top: 27px
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg)
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg)
}

.mobile-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: .3rem var(--pad) 1.6rem;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s
}

.mobile-nav a:not(.btn) {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12)
}

.mobile-nav a:not(.btn):hover {
  color: #fff
}

.mobile-nav a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 3px 0 0 var(--red-fill);
  padding-left: .9rem
}

/* ---- Mobile accordion dropdowns ---- */
.mobile-nav .menu-item-dropdown {
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, .12)
}

.mobile-nav .nav-dropdown-toggle {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  padding: 1rem 0
}

.mobile-nav .nav-dropdown-toggle:hover {
  color: #fff
}

.mobile-nav .nav-chevron {
  flex-shrink: 0;
  transition: transform .2s ease
}

.mobile-nav .menu-item-dropdown.is-open .nav-chevron {
  transform: rotate(180deg)
}

.mobile-nav .sub-menu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease
}

.mobile-nav .menu-item-dropdown.is-open .sub-menu {
  max-height: 200px
}

.mobile-nav .sub-menu a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: none;
  color: rgba(255, 255, 255, .7);
  padding: .8rem 0 .8rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1)
}

.mobile-nav .sub-menu a:hover,
.mobile-nav .sub-menu a[aria-current="page"] {
  color: #fff
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav .nav-chevron,
  .mobile-nav .sub-menu {
    transition: none
  }
}

.mobile-nav-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1.3rem
}

@media (max-width:980px) {
  .nav-toggle {
    display: block
  }

  .main-nav,
  .header-cta {
    display: none
  }

  .nav-phone {
    display: inline-flex
  }

  .header-right {
    gap: .5rem
  }
}

@media (max-width:420px) {
  .logo-img {
    height: 40px
  }
}

@media (max-width:374px) {
  .tt-header {
    display: none
  }

  .tt-menu {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: .7rem;
    height: auto;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85)
  }
}

@media (max-width:360px) {
  .nav-phone {
    font-size: .76rem
  }

  .nav-phone svg {
    width: 14px;
    height: 14px
  }
}

@media (min-width:981px) {
  .site-header:not([data-nav="split"]) .mobile-nav {
    display: none
  }
}

/* ===== Sections ===== */
section {
  padding: clamp(3rem, 7vw, 5rem) 0
}

.sec-head {
  margin-bottom: 2.4rem;
  max-width: 60ch
}

.sec-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-top: .55rem
}

.sec-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--red-fill);
  margin-top: 1.1rem
}

.sec-head p {
  color: var(--ink-2);
  margin-top: 1.1rem
}

.sec-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto
}

.sec-head.center h2::after {
  margin-left: auto;
  margin-right: auto
}

.surface {
  background: var(--surface)
}

.band-tight {
  padding-block: 2.6rem
}

.warm {
  background: var(--warm)
}

.page-band {
  background: var(--red-fill);
  color: #fff;
  padding: clamp(2.4rem, 6vw, 4rem) 0
}

.page-band .eyebrow {
  color: #fff;
  opacity: .85;
  margin-bottom: .7rem
}

.page-band h1 {
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  color: #fff
}

.page-band p {
  max-width: 58ch;
  margin-top: 1rem;
  color: rgba(255, 255, 255, .9)
}

.page-band a {
  text-decoration: underline;
  text-underline-offset: 3px
}

/* ===== Stat strip ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  text-align: center
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: var(--red);
  letter-spacing: -.02em
}

.stat span {
  display: block;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .35rem
}

@media (max-width:700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem
  }
}

/* ===== Hero (commercial leads; flip data-lead="equal" on .hero for a 50/50 split) ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--black);
  padding: 0
}

.hero-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad);
  overflow: hidden
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #111417;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px
}

.hero-res::before {
  background-color: #151311
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(17, 20, 23, .92) 0%, rgba(17, 20, 23, .62) 48%, rgba(17, 20, 23, 0) 100%)
}

.hero-res::after {
  background: linear-gradient(90deg, rgba(21, 19, 17, .92) 0%, rgba(21, 19, 17, .62) 48%, rgba(21, 19, 17, 0) 100%)
}

.bp {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform: translate(calc(var(--mx, 0)*-10px), calc(var(--my, 0)*-8px));
  transition: transform .35s ease-out
}

.bp-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, .38);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, white 62%);
  mask-image: linear-gradient(90deg, transparent 4%, white 62%)
}

.bp-art .thin {
  stroke-width: .8;
  stroke: rgba(255, 255, 255, .3)
}

.bp-art .wall {
  stroke-width: 2.6
}

.bp-art .acc {
  stroke: var(--red-fill)
}

.bp-art .dash {
  stroke-dasharray: 4 5;
  stroke-width: .8;
  stroke: rgba(255, 255, 255, .22)
}

.bp-art .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: bp-draw 2.2s cubic-bezier(.45, 0, .2, 1) var(--d, 0s) forwards
}

.bp-art .fade {
  opacity: 0;
  animation: bp-fade .9s ease var(--d, 2s) forwards
}

.bp-art text {
  fill: rgba(255, 255, 255, .6);
  stroke: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  opacity: 0;
  animation: bp-fade .9s ease 2.3s forwards
}

.bp-art text.big {
  font-size: 14px;
  fill: #fff
}

.bp-art text.acc-t {
  fill: #E0453F
}

.bp-glow {
  stroke: #fff;
  stroke-width: 1.9;
  -webkit-mask-image: radial-gradient(circle 150px at var(--sx, -999px) var(--sy, -999px), white 0, transparent 100%);
  mask-image: radial-gradient(circle 150px at var(--sx, -999px) var(--sy, -999px), white 0, transparent 100%)
}

.bp-glow .thin,
.bp-glow .dash {
  stroke: #fff
}

.bp-glow .acc {
  stroke: #FF5A52
}

.bp-glow text {
  opacity: 0 !important;
  animation: none
}

@keyframes bp-draw {
  to {
    stroke-dashoffset: 0
  }
}

@keyframes bp-fade {
  to {
    opacity: 1
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes kenburns {
  from {
    transform: scale(1.1)
  }

  to {
    transform: scale(1)
  }
}

.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto
}

.hero .eyebrow {
  color: #fff;
  opacity: .9
}

.hero .eyebrow::before {
  width: 26px;
  height: 3px
}

.hero-h {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.04;
  max-width: 17ch;
  margin: .9rem 0 1.1rem
}

.hero-p {
  max-width: 46ch;
  color: rgba(255, 255, 255, .86);
  margin-bottom: 1.7rem;
  font-size: 1.04rem
}

.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap
}

/* The ghost button's default transparent fill (fine on the flat-red CTA
   bands elsewhere) isn't reliable here against the busy blueprint art —
   same underlying issue as the headline contrast fix. A genuine
   translucent surface guarantees legibility regardless of what's behind
   it, while staying visually quieter than the solid-red primary button
   so "Book a Consultation" still reads as the one clear primary action;
   full solid white is kept for hover as the one step up from there. */
.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .6)
}


.hero[data-lead="commercial"] .hero-com {
  min-height: min(70vh, 590px)
}

.hero[data-lead="commercial"] .hero-res {
  padding-block: 1.7rem
}

.hero[data-lead="commercial"] .hero-res .hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  flex-wrap: wrap
}

.hero[data-lead="commercial"] .hero-res .hero-h {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin: .45rem 0 0;
  max-width: none
}

.hero[data-lead="commercial"] .hero-res .hero-p {
  display: none
}

.hero[data-lead="equal"] {
  grid-template-columns: 1fr 1fr
}

.hero[data-lead="equal"] .hero-panel {
  min-height: min(70vh, 590px)
}

.hero[data-lead="equal"] .hero-inner {
  max-width: 30rem;
  margin: 0
}

.hero[data-lead="equal"] .hero-h {
  font-size: clamp(2rem, 3.5vw, 3.2rem)
}

.hero[data-lead="equal"] .hero-res {
  border-left: 1px solid rgba(255, 255, 255, .14)
}

.hero[data-lead="equal"] .hero-com {
  padding-left: max(var(--pad), calc((100vw - var(--maxw))/2 + var(--pad)))
}

@media (max-width:767px) {
  .hero[data-lead="equal"] {
    grid-template-columns: 1fr
  }

  .hero[data-lead="equal"] .hero-res {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .14)
  }

  .bp-art {
    -webkit-mask-image: linear-gradient(180deg, transparent 32%, white 78%);
    mask-image: linear-gradient(180deg, transparent 32%, white 78%)
  }

  .hero-panel::after,
  .hero-res::after {
    background: linear-gradient(180deg, rgba(17, 20, 23, .92) 0%, rgba(17, 20, 23, .78) 45%, rgba(17, 20, 23, .4) 100%)
  }

  .hero[data-lead="equal"] .hero-panel {
    min-height: 380px
  }
}

/* ===== Service columns ===== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.4rem 2.2rem
}

.svc-card {
  border-top: 2px solid var(--ink);
  padding-top: 1rem
}

.svc-card h3 {
  margin-bottom: .45rem;
  font-size: 1.05rem
}

.svc-card p {
  font-size: .9rem;
  color: var(--ink-2)
}

/* ===== Track panels (simple concept page + design language) ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem
}


.track-card {
  background: var(--surface);
  border-top: 4px solid var(--ink);
  padding: 1.8rem 1.7rem
}

.track-card.residential {
  background: var(--warm)
}

.track-card .eyebrow {
  margin-bottom: .6rem
}

.track-card h3 {
  font-size: 1.4rem;
  margin-bottom: .6rem
}

.track-card p {
  color: var(--ink-2);
  font-size: .94rem;
  margin-bottom: 1.1rem
}

.track-card .link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--red-fill);
  padding-bottom: .15rem
}

/* ===== Project cards: photo first, caption underneath, no box ===== */
.proj-card {
  display: flex;
  flex-direction: column;
  position: relative
}

.proj-card[hidden] {
  display: none
}

.proj-thumb {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--surface-2)
}

.proj-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.proj-body {
  padding: .95rem 0 0
}


.proj-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  margin-top: .4rem;
  letter-spacing: -.01em
}

.proj-meta {
  font-size: .86rem;
  color: var(--ink-3);
  margin-top: .3rem;
  display: flex;
  gap: .6em;
  flex-wrap: wrap
}


.proj-card:hover .proj-title {
  color: var(--red)
}

/* ===== Project grid ===== */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.6rem 1.5rem
}

/* ===== Featured markets row (home) + market tiles (projects hub) ===== */
.market-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.4rem 1.6rem
}

.market-row.cols-3 {
  grid-template-columns: repeat(3, 1fr)
}

.market-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center
}

.market-item-img {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 1.1rem
}

.market-item-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.market-item h3 {
  font-size: 1.15rem
}

.market-item h3::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--red-fill);
  margin: .85rem auto .8rem
}

.market-item p {
  font-size: .9rem;
  color: var(--ink-2);
  max-width: 26ch
}

.market-item:hover h3 {
  color: var(--red)
}

@media (max-width:1000px) {
  .market-row {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:640px) {

  .market-row,
  .market-row.cols-3 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:520px) {
  .market-row.cols-3 {
    grid-template-columns: 1fr
  }
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem
}

.market-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  overflow: hidden;
  color: #fff;
  background: var(--black)
}

.market-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .4s ease
}

.market-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .5);
  transition: background .2s ease
}

.market-tile:hover::after,
.market-tile:focus-visible::after {
  background: rgba(192, 24, 24, .7)
}

.market-tile:hover img {
  transform: scale(1.04)
}

.market-tile span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  padding: 0 1rem;
  line-height: 1.1
}

@media (max-width:900px) {
  .market-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:560px) {
  .market-grid {
    grid-template-columns: 1fr
  }

  .market-tile {
    aspect-ratio: 16/9
  }
}

@media (prefers-reduced-motion:reduce) {
  .market-tile img {
    transition: none
  }
}

/* ===== Stats band (market pages) ===== */

.stats-band .stats {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))
}

.stats-band .stat b {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem)
}

.stats-band .stat span {
  color: rgba(255, 255, 255, .72)
}

/* ===== Placeholders (swap for real content later) ===== */


.photo-ph {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3)
}

/* ===== Testimonial ===== */


/* ===== Plain text link row, process tabs ===== */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.8rem
}

.text-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  border-bottom: 2px solid transparent;
  padding: .2rem 0
}

.text-link:hover {
  border-bottom-color: var(--red-fill)
}

.seg {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem
}

.seg button,
.seg a {
  display: inline-block;
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: .7rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer
}

.seg button:hover,
.seg a:hover {
  color: var(--ink)
}

.seg button[aria-selected="true"],
.seg a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--red-fill)
}

.process-panel[hidden] {
  display: none
}

/* ===== Mission (About) + grouped project lists ===== */
.mission {
  max-width: 68ch
}

.mission p {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 1.5rem
}

.mission .mission-lede {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink)
}


.group-grid {
  margin-bottom: 2.8rem
}

/* ===== About ===== */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center
}

.split-2 p {
  color: var(--ink-2);
  margin-top: 1.1rem
}

@media (max-width:800px) {
  .split-2 {
    grid-template-columns: 1fr;
    gap: 2rem
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.2rem 1.5rem
}

.team-photo {
  aspect-ratio: 4/5;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3)
}

.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem
}


.team-bio {
  font-size: .9rem;
  color: var(--ink-2);
  margin-top: .6rem
}

/* ===== Process / area / FAQ ===== */
.process-row {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink)
}

.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line)
}

.process-step .pnum {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--red);
  line-height: 1
}

.process-step h3 {
  margin-bottom: .35rem;
  font-size: 1.1rem
}

.process-step p {
  font-size: .92rem;
  color: var(--ink-2);
  max-width: 56ch
}

.area-list {
  columns: 3 170px;
  column-gap: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem
}

.area-chip {
  display: block;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  color: var(--ink-2)
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0
}

.faq-item:first-child {
  border-top: 2px solid var(--ink)
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem
}

.faq-item summary::-webkit-details-marker {
  display: none
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red);
  flex-shrink: 0;
  transition: transform .2s ease
}

.faq-item[open] summary::after {
  transform: rotate(45deg)
}

.faq-item p {
  margin-top: .8rem;
  color: var(--ink-2);
  font-size: .95rem;
  max-width: 62ch;
  line-height: 1.65
}

/* ===== Simple hero (concept B) ===== */

.simple-hero .wrap {
  max-width: 760px;
  margin-left: max(var(--pad), calc((100vw - var(--maxw))/2 + var(--pad)))
}

.simple-hero .eyebrow {
  color: #fff;
  opacity: .9
}

.simple-hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.4rem);
  color: #fff;
  margin: .8rem 0 1rem;
  letter-spacing: -.03em
}

.simple-hero .lede {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, .86);
  max-width: 52ch;
  margin-bottom: 1.7rem;
  line-height: 1.6
}

.simple-hero .cta-row {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: flex-start
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--red-fill);
  color: #fff;
  text-align: center
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  margin-bottom: .9rem
}

.cta-band p {
  color: rgba(255, 255, 255, .9);
  max-width: 50ch;
  margin: 0 auto 1.7rem
}

.cta-band .btn-primary {
  background: var(--black);
  color: #fff
}

.cta-band .btn-primary:hover {
  background: #fff;
  color: var(--black)
}

.cta-row {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap
}

/* ===== Footer ===== */
footer {
  background: var(--black);
  color: rgba(255, 255, 255, .78);
  padding: 3rem 0 2rem
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem
}

footer .logo-img {
  margin-bottom: 1rem
}

footer h3 {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .9rem
}

footer p,
footer a {
  font-size: .9rem;
  color: rgba(255, 255, 255, .78)
}

footer a:hover {
  color: #fff
}

footer .flinks {
  display: flex;
  flex-direction: column;
  gap: .1rem
}

footer .flinks a {
  padding: .45rem 0
}

.foot-bottom {
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem
}

@media (max-width:700px) {
  .foot-grid {
    grid-template-columns: 1fr
  }
}

/* ===== Case studies: photo hero, then the story ===== */
.photo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(60vh, 500px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--black);
  padding: 0
}

.photo-hero>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2
}

.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, .08) 100%)
}

.photo-hero-text {
  padding-top: 2.4rem;
  padding-bottom: 2.6rem;
  width: 100%
}

.photo-hero-text .eyebrow {
  color: #fff;
  opacity: .9
}

.photo-hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  max-width: 20ch;
  margin-top: .7rem
}

.photo-hero-desc {
  color: #fff;
  opacity: .85;
  max-width: 60ch;
  margin-top: .9rem;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: .84rem;
  color: var(--ink-3);
  margin-bottom: 1.2rem;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap
}

.breadcrumb a {
  color: var(--ink-2);
  font-weight: 600
}

.breadcrumb a:hover {
  color: var(--red)
}


.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem
}

.case-meta div {
  display: flex;
  flex-direction: column;
  gap: .3rem
}

.case-meta .lbl {
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3)
}

.case-meta .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem
}

.story {
  max-width: 68ch;
  margin-bottom: 3rem
}

.story-head {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .3rem;
  margin: 0 0 1.2rem
}

.story p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 2rem
}

.story h2,
.story h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 2.4rem 0 1rem;
  line-height: 1.3
}

.story h2 { font-size: 1.5rem }
.story h3 { font-size: 1.2rem }

.story ul,
.story ol {
  max-width: 68ch;
  margin: 0 0 2rem;
  padding-left: 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink-2)
}

.story li { margin-bottom: .6rem }

.story a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--red) 40%, transparent)
}

.story strong { color: var(--ink) }

/* ===== Project photo grid ===== */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  margin-bottom: 1rem;
  background: var(--line)
}

.case-gallery-item {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: zoom-in;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block
}

.case-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1)
}

.case-gallery-item:hover img,
.case-gallery-item:focus-visible img {
  transform: scale(1.06)
}

.case-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0);
  transition: box-shadow .3s ease
}

.case-gallery-item:hover::after,
.case-gallery-item:focus-visible::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5)
}

.case-gallery-item:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px
}

.case-gallery template { display: none }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 8, .97);
  display: flex;
  align-items: stretch;
  justify-content: stretch
}

.lightbox[hidden] { display: none }

.lightbox-frame {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: clamp(.9rem, 3vw, 2.2rem)
}

.lightbox-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.3px solid rgba(255, 255, 255, .4);
  opacity: 0;
  transition: opacity .4s ease .1s;
  pointer-events: none
}

.lightbox.is-open .lightbox-mark { opacity: 1 }

.lightbox-mark-tl { top: 0; left: 0; border-right: 0; border-bottom: 0 }
.lightbox-mark-tr { top: 0; right: 0; border-left: 0; border-bottom: 0 }
.lightbox-mark-bl { bottom: 0; left: 0; border-right: 0; border-top: 0 }
.lightbox-mark-br { bottom: 0; right: 0; border-left: 0; border-top: 0 }

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in
}

.lightbox-stage.is-zoomed { cursor: grab }
.lightbox-stage.is-panning { cursor: grabbing }

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  opacity: 0;
  transition: opacity .35s ease
}

.lightbox-img.is-visible { opacity: 1 }

.lightbox-img.is-animating { transition: opacity .35s ease, transform .3s cubic-bezier(.2, .7, .2, 1) }

.lightbox-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible { color: #fff }

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px
}

.lightbox-prev { left: -4px }
.lightbox-next { right: -4px }

.lightbox-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55)
}

.lightbox-caption { font-family: var(--font-body); letter-spacing: normal }

@media (max-width: 720px) {
  .lightbox-prev { left: 0 }
  .lightbox-next { right: 0 }
  .lightbox-frame { margin: .6rem }
}

.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  margin-top: 2.4rem;
  border-top: 2px solid var(--ink)
}

.case-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem
}

.case-nav a:hover {
  color: var(--red)
}

@media (max-width:700px) {
  .case-meta {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* ===== Detailed contact form (multi-step) ===== */

.form-page {
  min-width: 0
}

.steps-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 2.4rem
}

.step-dot {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1
}

.step-dot:last-child {
  flex: 0 0 auto
}

.step-dot::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 .5rem;
  min-width: 12px
}

.step-dot:last-child::after {
  display: none
}

.step-dot .num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  color: var(--ink-3);
  background: var(--paper);
  transition: background .2s ease, border-color .2s ease, color .2s ease
}

.step-dot .lbl {
  display: none;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap
}

.step-dot.active .lbl {
  display: block
}

.step-dot.active .num {
  border-color: var(--red-fill);
  background: var(--red-fill);
  color: #fff
}

.step-dot.complete .num {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper)
}

.step-dot.complete::after {
  background: var(--ink)
}

.form-step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0
}

.form-step fieldset {
  border: 0;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  min-width: 0
}

.form-step legend {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
  padding: 0
}

.form-step legend:focus {
  outline: 0
}

.step-intro {
  color: var(--ink-2);
  margin-bottom: 1.8rem
}

.field .hint {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-left: .4rem
}

.field input[type="file"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink-2);
  padding: .7rem 0;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: transparent
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem
}

.choice-card {
  position: relative
}

.choice-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px
}

.choice-card label {
  display: block;
  height: 100%;
  margin: 0;
  border: 2px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: 1.5rem 1.4rem;
  cursor: pointer;
  background: var(--surface);
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease
}

.choice-card.residential label {
  background: var(--warm)
}

.choice-card label .eyebrow {
  margin-bottom: .5rem
}

.choice-card label h3 {
  font-size: 1.2rem;
  margin-bottom: .4rem
}

.choice-card label p {
  font-size: .9rem;
  font-weight: 400;
  color: var(--ink-2)
}

.choice-card:hover label {
  border-color: var(--ink)
}

.choice-card input:checked+label {
  border-color: var(--red-fill)
}

.choice-card input:focus-visible+label {
  outline: 2px solid var(--red);
  outline-offset: 2px
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line)
}

.form-actions .spacer {
  flex: 1
}

@media (max-width:520px) {

  .step-dot .lbl,
  .step-dot.active .lbl {
    display: none
  }

  .step-dot::after {
    margin: 0 .35rem
  }

  .step-dot .num {
    width: 32px;
    height: 32px
  }

  .seg {
    gap: 1.3rem
  }

  .seg button,
  .seg a {
    font-size: .72rem;
    letter-spacing: .05em;
    white-space: nowrap
  }
}

@media (max-width:360px) {
  .seg {
    gap: .9rem
  }

  .seg button,
  .seg a {
    font-size: .64rem;
    letter-spacing: .03em
  }
}

/* ===== Contact page + form fields (underline style) ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 900px
}

.contact-direct {
  padding-top: .3rem
}

.contact-direct h2 {
  font-size: 1rem;
  color: var(--ink-3);
  margin-bottom: 1rem
}

.contact-direct-link {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: .8rem;
  overflow-wrap: anywhere
}

.contact-direct-link:hover {
  color: var(--red)
}

.contact-direct-addr {
  font-size: .9rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 1.3rem;
  padding-top: 1.3rem;
  border-top: 2px solid var(--ink)
}

@media (max-width:700px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.2rem
  }
}

.field {
  margin-bottom: 1.5rem
}

.field label,
.field legend {
  display: block;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .2rem;
  padding: 0
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="month"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  padding: .6rem 0;
}

.field textarea {
  resize: vertical;
  min-height: 6.5rem;
  border: 2px solid var(--line);
  padding: .7rem .8rem;
  margin-top: .3rem
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 0;
  border-color: var(--red-fill)
}

.field[aria-invalid="true"] input,
.field[aria-invalid="true"] select,
.field[aria-invalid="true"] textarea {
  border-color: var(--red-fill)
}

.field-error {
  display: none;
  color: var(--red);
  font-size: .84rem;
  margin-top: .4rem
}

.field[aria-invalid="true"] .field-error {
  display: block
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem
}

.radio-pill {
  position: relative
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px
}

.radio-pill label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: .5rem 1rem;
  cursor: pointer;
  margin: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease
}

.radio-pill input:checked+label {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper)
}

.radio-pill input:focus-visible+label {
  outline: 2px solid var(--red);
  outline-offset: 2px
}

.form-success {
  padding: 2.4rem 0
}

.form-success .mark {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.4rem;
  background: var(--good);
  color: #fff;
  font-size: 1.6rem
}

.form-success h2 {
  margin-bottom: .9rem
}

.form-success p {
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 1.6rem
}

/* ===== Floating consultation button, mobile CTA bar, demo switcher ===== */
.consult-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 59;
  display: none;
  align-items: center;
  gap: .55rem;
  background: var(--red-fill);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .9rem 1.3rem;
  border-radius: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .25);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background .15s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px)
}

.consult-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s
}

.consult-fab:hover {
  background: var(--red-dark)
}

.consult-fab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0
}

@media (min-width:981px) {
  .consult-fab {
    display: inline-flex
  }
}

.mobile-cta-bar {
  display: none
}

@media (max-width:980px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding-bottom: env(safe-area-inset-bottom, 0px)
  }

  .mobile-cta-bar a {
    flex: 1;
    text-align: center;
    padding: 1.15rem .4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap
  }

  .mobile-cta-bar .mobile-cta-call {
    background: var(--black);
    color: #fff
  }

  .mobile-cta-bar .mobile-cta-start {
    background: var(--red-fill);
    color: #fff
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px))
  }
}


/* ===== Motion: one load-in moment, hover life ===== */
.hero-inner>*,
.page-band .wrap>*,
.photo-hero-text>* {
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both
}

.hero-inner> :nth-child(2),
.page-band .wrap> :nth-child(2),
.photo-hero-text> :nth-child(2) {
  animation-delay: .1s
}

.hero-inner> :nth-child(3),
.page-band .wrap> :nth-child(3) {
  animation-delay: .2s
}

.hero-inner> :nth-child(4) {
  animation-delay: .3s
}

.photo-hero>img {
  animation: kenburns 2.4s cubic-bezier(.2, .7, .2, 1) both
}

.proj-thumb img,
.market-item-img img {
  transition: transform .6s cubic-bezier(.2, .7, .2, 1)
}

.proj-card:hover .proj-thumb img {
  transform: scale(1.06)
}

.market-item:hover .market-item-img img {
  transform: scale(1.07)
}

.market-tile span {
  transition: letter-spacing .3s ease
}

.market-tile:hover span {
  letter-spacing: .075em
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .hero-inner>*,
  .page-band .wrap>*,
  .photo-hero-text>*,
  .photo-hero>img {
    animation: none !important
  }

  .bp-art .draw {
    animation: none;
    stroke-dashoffset: 0
  }

  .bp-art .fade,
  .bp-art text {
    animation: none;
    opacity: 1
  }

  .case-gallery-item img,
  .lightbox-mark,
  .lightbox-img.is-animating {
    transition: none
  }

  .bp {
    transform: none !important;
    transition: none
  }

  .btn,
  .btn::before,
  .market-tile span,
  .proj-thumb img,
  .market-item-img img {
    transition: none
  }

  .btn:hover {
    transform: none
  }
}

/* ===== Dark theme touch-ups (tokens above do the heavy lifting) ===== */
:root[data-theme="dark"] .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

:root[data-theme="dark"] footer {
  border-top: 1px solid rgba(255, 255, 255, .1)
}

:root[data-theme="dark"] .stats-band {
  background: var(--surface);
  border-block: 1px solid var(--line)
}

:root[data-theme="dark"] .btn-outline:hover {
  color: #0F0F0F
}


/* ===== Design language page ===== */


.swatch .info {
  padding: .7rem .85rem .9rem
}

.swatch .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem
}


.swatch .use {
  font-size: .8rem;
  color: var(--ink-2);
  margin-top: .4rem;
  line-height: 1.4
}


@media (max-width:520px) {

}


.component-block+.component-block {
  margin-top: 1rem
}

.component-block h4 {
  margin-bottom: 1rem
}
/* ===== Contact Form 7 compatibility ===== */
.wpcf7-form-control-wrap { display: block }
.wpcf7-not-valid-tip {
  display: block;
  margin-top: .4rem;
  font-size: .82rem;
  color: var(--red)
}
.wpcf7-response-output {
  margin-top: 1.2rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  font-size: .9rem
}
form.invalid .wpcf7-response-output,
form.unaccepted .wpcf7-response-output,
form.spam .wpcf7-response-output {
  border-color: var(--red);
  color: var(--red)
}
form.sent .wpcf7-response-output {
  border-color: var(--good);
  color: var(--good)
}
.wpcf7 .screen-reader-response { position: absolute; left: -9999px }
