/* ==========================================================================
   Better Build SC — betterbuildsc.com
   Stylesheet
   --------------------------------------------------------------------------
   1.  Tokens & reset
   2.  Typography & helpers
   3.  Buttons
   4.  Top bar / header / navigation
   5.  Hero slider
   6.  Page hero (inner pages)
   7.  Sections & shared blocks
   8.  Home page blocks
   9.  Gallery
   10. Project list
   11. Infrared
   12. Contact & forms
   13. Footer & utilities
   14. Motion & responsive
   ========================================================================== */

/* 1. Tokens & reset ======================================================= */

:root {
  /* Brand — sampled from the BBSC badge */
  --green: #1f7a3d;
  --green-dk: #155c2d;
  --green-lt: #2f9a52;
  --gold: #e0a325;
  --gold-dk: #c1881a;
  --gold-lt: #f2c65c;

  /* Neutrals */
  --ink: #14181c;
  --ink-2: #1d232a;
  --ink-3: #2b333c;
  --slate: #5a646e;
  --slate-lt: #8b949d;
  --line: #e4ded4;
  --line-2: #efeae2;
  --sand: #f7f4ef;
  --sand-2: #efe9e0;
  --paper: #ffffff;

  /* Type */
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --wrap: 1220px;
  --wrap-narrow: 880px;
  --gutter: 24px;
  --header-h: 92px;
  --radius: 2px;

  --shadow-sm: 0 1px 2px rgba(20, 24, 28, .06), 0 4px 14px rgba(20, 24, 28, .06);
  --shadow-md: 0 10px 30px rgba(20, 24, 28, .10), 0 2px 6px rgba(20, 24, 28, .06);
  --shadow-lg: 0 24px 60px rgba(20, 24, 28, .18);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-dk); }

button { font: inherit; color: inherit; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 42px 0;
}

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* 2. Typography & helpers ================================================= */

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: .01em;
  margin: 0 0 .45em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.05rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.18rem; letter-spacing: .04em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--wrap-narrow); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin: 0 0 16px;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold-lt); }

.lede {
  font-size: 1.13rem;
  line-height: 1.75;
  color: var(--slate);
}

.section-head { margin-bottom: 52px; }
.section-head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--slate); max-width: 62ch; }
.section-head--center p { margin-inline: auto; }

.rule {
  width: 62px;
  height: 3px;
  background: var(--gold);
  margin: 0 0 26px;
}
.rule--center { margin-inline: auto; }

.text-center { text-align: center; }
.muted { color: var(--slate); }
.nowrap { white-space: nowrap; }

/* 3. Buttons ============================================================== */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  --btn-bd: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 24, 28, .16);
  color: var(--btn-fg);
}

.btn:active { transform: translateY(0); }

.btn svg { width: 16px; height: 16px; flex: none; }

.btn--gold:hover { --btn-bg: var(--gold-dk); --btn-bd: var(--gold-dk); color: #fff; }

.btn--green { --btn-bg: var(--green); --btn-bd: var(--green); --btn-fg: #fff; }
.btn--green:hover { --btn-bg: var(--green-dk); --btn-bd: var(--green-dk); }

.btn--dark { --btn-bg: var(--ink); --btn-bd: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--green); --btn-bd: var(--green); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
}
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }

.btn--sm { padding: 11px 20px; font-size: .7rem; }
.btn--lg { padding: 18px 38px; font-size: .82rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.link-arrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: width .25s var(--ease);
}
.link-arrow:hover { color: var(--gold-dk); }
.link-arrow:hover::after { width: 34px; }

/* 4. Top bar / header / navigation ======================================== */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding-block: 6px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px 20px;
  flex-wrap: wrap;
}

.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: var(--gold-lt); }

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-item svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
  flex: none;
}

.topbar-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .18);
}

.topbar-tag svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--gold);
}

.topbar-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--gold-lt);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .7rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.site-header.is-stuck { box-shadow: 0 6px 24px rgba(20, 24, 28, .09); }

/* The header needs more room than the standard text column. */
.site-header .container { max-width: 1340px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  min-height: var(--header-h);
}

.nav { min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  flex: none;
}

.brand-text { line-height: 1.12; }

.brand-name {
  display: block;
  font-family: var(--display);
  font-size: 1.86rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-sub {
  display: block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .155em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-top: 2px;
  white-space: nowrap;
}

.brand:hover .brand-name { color: var(--green); }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  position: relative;
  display: block;
  padding: 10px 13px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}

.nav a:hover { color: var(--green); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green); }

.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  place-items: center;
  flex: none;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(400px, 88vw);
  background: var(--ink);
  color: #fff;
  z-index: 120;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 26px 28px 34px;
  overflow-y: auto;
}

.drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.drawer-brand .brand-name { color: #fff; font-size: 1.45rem; }
.drawer-brand .brand-sub { color: var(--gold); }

.drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
}
.drawer-close:hover { background: rgba(255, 255, 255, .1); }

.drawer nav { display: flex; flex-direction: column; padding: 14px 0; }

.drawer nav a {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.drawer nav a:hover,
.drawer nav a[aria-current="page"] { color: var(--gold-lt); padding-left: 8px; }

.drawer-foot {
  margin-top: auto;
  padding-top: 24px;
  font-size: .86rem;
  color: rgba(255, 255, 255, .7);
  display: grid;
  gap: 12px;
}

.drawer-foot a { color: #fff; }
.drawer-foot .btn { width: 100%; }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 16, .6);
  opacity: 0;
  visibility: hidden;
  z-index: 110;
  transition: opacity .35s var(--ease), visibility .35s;
}
.backdrop.is-visible { opacity: 1; visibility: visible; }

/* 5. Hero slider ========================================================== */

.hero {
  position: relative;
  min-height: clamp(560px, 84vh, 820px);
  display: grid;
  isolation: isolate;
  background: var(--ink);
  overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}

.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(9, 12, 15, .93) 0%, rgba(9, 12, 15, .86) 30%, rgba(9, 12, 15, .58) 62%, rgba(9, 12, 15, .3) 100%),
    linear-gradient(to top, rgba(9, 12, 15, .72), rgba(9, 12, 15, .1) 55%);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s linear;
}

.hero-slide.is-active img { transform: scale(1); }

.hero-inner {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  padding-block: 120px 140px;
}

.hero-copy { max-width: 720px; }

.hero-copy .eyebrow { color: var(--gold-lt); }
.hero-copy .eyebrow::before { background: var(--gold); }

.hero h1 {
  color: #fff;
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  letter-spacing: .005em;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
  display: block;
}

.hero-text {
  color: rgba(255, 255, 255, .84);
  font-size: 1.12rem;
  max-width: 55ch;
  margin-bottom: 34px;
}

/* Per-slide copy transitions */
.hero-panel { display: none; }
.hero-panel.is-active { display: block; animation: heroUp .85s var(--ease) both; }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.hero-controls {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-controls .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 34px;
}

.hero-dots { display: flex; gap: 10px; align-items: center; }

.hero-dots button {
  width: 42px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease);
}

.hero-dots button:hover { background: rgba(255, 255, 255, .55); }
.hero-dots button[aria-selected="true"] { background: rgba(255, 255, 255, .28); }

.hero-dots button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dots button[aria-selected="true"]::after {
  animation: dotFill var(--hero-duration, 7s) linear forwards;
}

.hero.is-paused .hero-dots button[aria-selected="true"]::after { animation-play-state: paused; }

@keyframes dotFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-arrows { display: flex; gap: 8px; }

.hero-arrows button {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  backdrop-filter: blur(4px);
}

.hero-arrows button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.hero-arrows svg { width: 17px; height: 17px; }

.hero-count {
  font-family: var(--display);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: .06em;
}
.hero-count span { color: var(--gold); }
.hero-count small { color: rgba(255, 255, 255, .5); font-size: .9rem; }

/* Services ticker under the hero */
.ticker {
  background: var(--green);
  color: #fff;
  overflow: hidden;
  padding: 15px 0;
  position: relative;
  z-index: 4;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: tickerScroll 42s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-group { display: flex; align-items: center; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-item::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 6. Page hero (inner pages) ============================================== */

.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 380px;
  overflow: hidden;
}

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

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 14, 17, .9) 0%, rgba(11, 14, 17, .7) 50%, rgba(11, 14, 17, .35) 100%);
}

.page-hero .container { padding-block: 76px 68px; }

.page-hero h1 { color: #fff; margin-bottom: 14px; }

.page-hero p {
  color: rgba(255, 255, 255, .8);
  max-width: 60ch;
  font-size: 1.08rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: 26px;
}

.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: var(--gold-lt); }
.crumbs span[aria-current] { color: var(--gold); }
.crumbs .sep { color: rgba(255, 255, 255, .3); }

/* 7. Sections & shared blocks ============================================= */

.section { padding-block: clamp(64px, 8vw, 108px); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .78); }
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .lede { color: rgba(255, 255, 255, .74); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 74px);
  align-items: center;
}

.split--wide-left { grid-template-columns: 1.15fr 1fr; }
.split--wide-right { grid-template-columns: 1fr 1.15fr; }

.split-media { position: relative; }

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.split-media--framed::before {
  content: "";
  position: absolute;
  inset: -18px -18px 24px 24px;
  border: 2px solid var(--gold);
  z-index: -1;
  border-radius: var(--radius);
}

.split-media--stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.split-media--stack img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.split-media--stack img { aspect-ratio: 4 / 3; }

.badge-years {
  position: absolute;
  right: -14px;
  bottom: -14px;
  background: var(--gold);
  color: var(--ink);
  padding: 20px 26px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.badge-years b {
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
}

.badge-years span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Check list */
.check-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--slate);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

.section--dark .check-list li { color: rgba(255, 255, 255, .78); }
.section--dark .check-list li::before { border-color: var(--gold); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--paper);
  padding: 34px 26px;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--green);
  margin-bottom: 8px;
}

/* Direct child only — the number lives in a nested <span> inside the <b>. */
.stat > span {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}

.section--dark .stats { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .12); }
.section--dark .stat { background: var(--ink); }
.section--dark .stat b { color: var(--gold); }
.section--dark .stat > span { color: rgba(255, 255, 255, .62); }

/* CTA band */
.band {
  position: relative;
  background: var(--green);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.band--ink { background: var(--ink); }

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px);
}

.band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-block: clamp(46px, 6vw, 72px);
  flex-wrap: wrap;
}

.band h2 { color: #fff; margin-bottom: 10px; }
.band p { color: rgba(255, 255, 255, .82); max-width: 56ch; margin: 0; }
.band-text { flex: 1 1 440px; }

/* Relocation notice ------------------------------------------------------- */

.relocate {
  background: var(--green);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.relocate .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 10px;
  text-align: center;
}

.relocate svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--gold-lt);
}

.relocate p {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: .86rem;
  letter-spacing: .01em;
}

.relocate b { color: #fff; font-weight: 700; }

.relocate a {
  color: var(--gold-lt);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(242, 198, 92, .45);
}

.relocate a:hover { color: #fff; border-bottom-color: #fff; }

/* Journey (California -> South Carolina) ---------------------------------- */

.journey {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(16px, 3.5vw, 40px);
  flex-wrap: wrap;
  margin-top: 38px;
}

.journey-node {
  flex: 1 1 260px;
  max-width: 340px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.journey-node--from { border-top-color: var(--gold); }
.journey-node--now { border-top-color: var(--green); }

.journey-node .eyebrow { margin-bottom: 10px; }
.journey-node h3 { margin: 0 0 10px; }
.journey-node p { margin: 0; font-size: .94rem; }

.journey-arrow {
  flex: none;
  align-self: center;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}

.journey-arrow svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .relocate .container { padding-block: 9px; gap: 8px; }
  .relocate p { font-size: .8rem; }
  .journey-arrow { transform: rotate(90deg); }
}

/* 8. Home page blocks ===================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 34px 30px 32px;
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .38s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleY(1); }

.service-card:target {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.service-card:target::before { transform: scaleY(1); }

.service-card p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 0, 0, .25);
}

.service-card p a:hover { text-decoration-color: currentColor; }

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--green);
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition: background .3s var(--ease), color .3s var(--ease);
}

.service-icon svg { width: 26px; height: 26px; }

.service-card:hover .service-icon { background: var(--green); color: #fff; }

.service-card h3 { font-size: 1.28rem; margin-bottom: 10px; }

.service-card p { color: var(--slate); font-size: .96rem; margin: 0; }

/* Sector / capability tiles with photo */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
  background: var(--ink);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s var(--ease);
  opacity: .82;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 13, 16, .92) 6%, rgba(10, 13, 16, .35) 46%, rgba(10, 13, 16, .05) 78%);
  transition: background .4s var(--ease);
}

.tile:hover img { transform: scale(1.07); opacity: .7; }

.tile-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px 26px 24px;
  color: #fff;
}

.tile-body h3 {
  color: #fff;
  font-size: 1.42rem;
  margin-bottom: 6px;
}

.tile-body p {
  margin: 0;
  font-size: .88rem;
  color: rgba(255, 255, 255, .74);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), opacity .35s var(--ease), margin .45s var(--ease);
}

.tile:hover .tile-body p { max-height: 90px; opacity: 1; margin-top: 6px; }

.tile-count {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  font-family: var(--display);
  font-size: .9rem;
  letter-spacing: .1em;
  color: var(--ink);
  background: var(--gold);
  padding: 4px 11px;
  border-radius: var(--radius);
  font-weight: 700;
}

/* Featured work mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 16px;
}

.mosaic a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-3);
  isolation: isolate;
}

.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(4) { grid-column: span 2; }
.mosaic a:nth-child(5) { grid-column: span 2; }
.mosaic a:nth-child(6) { grid-column: span 2; }

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.mosaic a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 13, 16, .8), transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.mosaic a:hover img { transform: scale(1.08); }
.mosaic a:hover::after { opacity: 1; }

.mosaic figcaption,
.mosaic .cap {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.mosaic a:hover .cap { opacity: 1; transform: none; }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 30px;
  border-top: 2px solid var(--line);
  counter-increment: step;
  transition: border-color .3s var(--ease);
}

.step::before {
  content: "0" counter(step);
  position: absolute;
  top: -18px;
  left: 0;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--sand);
  padding-right: 12px;
  line-height: 1;
}

.section--dark .step { border-color: rgba(255, 255, 255, .18); }
.section--dark .step::before { background: var(--ink); }

.step:hover { border-color: var(--gold); }

.step h3 { font-size: 1.22rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--slate); margin: 0; }
.section--dark .step p { color: rgba(255, 255, 255, .7); }

/* Showroom / tour promo */
.promo {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: stretch;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.promo-media { position: relative; min-height: 340px; }

.promo-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-body {
  padding: clamp(34px, 4vw, 58px);
  color: rgba(255, 255, 255, .78);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-body h2 { color: #fff; }

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 2px solid rgba(255, 255, 255, .7);
  display: grid;
  place-items: center;
  color: #fff;
  backdrop-filter: blur(3px);
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.promo-media:hover .play-badge { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: scale(1.06); }

.play-badge svg { width: 26px; height: 26px; margin-left: 4px; }

/* 9. Gallery ============================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}

.filters button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--slate);
  padding: 11px 22px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s var(--ease);
}

.filters button:hover { border-color: var(--ink); color: var(--ink); }

.filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gal-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-2);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  isolation: isolate;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 13, 16, .86), rgba(10, 13, 16, .1) 55%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.gal-item:hover img { transform: scale(1.07); }
.gal-item:hover::after { opacity: 1; }

.gal-cap {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  text-align: left;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.gal-cap strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}

.gal-cap span {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-lt);
}

.gal-item:hover .gal-cap { opacity: 1; transform: none; }

.gal-zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.gal-zoom svg { width: 16px; height: 16px; }
.gal-item:hover .gal-zoom { opacity: 1; transform: none; }

.gal-item.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 11, 14, .95);
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lightbox-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}
.lightbox-close:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lightbox-close svg { width: 18px; height: 18px; }

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 clamp(16px, 6vw, 90px);
  min-height: 0;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: lbIn .4s var(--ease);
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: none; }
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  transition: background .25s var(--ease);
}

.lightbox-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lightbox-nav svg { width: 18px; height: 18px; }
.lightbox-prev { left: clamp(10px, 2vw, 26px); }
.lightbox-next { right: clamp(10px, 2vw, 26px); }

.lightbox-caption {
  padding: 20px 26px 30px;
  text-align: center;
  color: #fff;
}

.lightbox-caption strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
}

.lightbox-caption span {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* 10. Project list ======================================================== */

.proj-block { margin-bottom: 58px; }

.proj-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px;
}

.proj-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin: 0;
}

.proj-head .count {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-lt);
  margin-left: auto;
}

.proj-list { list-style: none; margin: 0; padding: 0; }

.proj-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 17px 6px 17px 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), padding .25s var(--ease);
}

.proj-list li:hover { background: var(--sand); padding-left: 14px; }

.proj-name {
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  flex: 1 1 auto;
}

.proj-loc {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  text-align: right;
}

.proj-loc svg { width: 13px; height: 13px; color: var(--gold-dk); flex: none; }

.proj-list li:hover .proj-name { color: var(--green); }

/* Category chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 46px;
}

.chips a {
  border: 1px solid var(--line);
  padding: 10px 20px;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--slate);
  border-radius: var(--radius);
  transition: all .25s var(--ease);
}

.chips a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 11. Infrared ============================================================ */

.thermal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.thermal-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.thermal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.thermal-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.thermal-card .body { padding: 22px 24px 26px; }
.thermal-card h3 { font-size: 1.16rem; margin-bottom: 6px; }
.thermal-card p { font-size: .93rem; color: var(--slate); margin: 0; }

.detect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.detect {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.detect:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.detect svg { width: 26px; height: 26px; color: var(--green); flex: none; }

.detect span {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}

/* 12. Contact & forms ===================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(34px, 5vw, 66px);
  align-items: start;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 46px);
  box-shadow: var(--shadow-sm);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}

.field label .req { color: var(--gold-dk); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand);
  font-family: inherit;
  font-size: .98rem;
  color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.field textarea { resize: vertical; min-height: 132px; }

.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a646e' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 61, .13);
}

.field .err {
  font-size: .78rem;
  color: #b3261e;
  letter-spacing: .02em;
  text-transform: none;
  font-weight: 500;
  display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #b3261e; background: #fdf6f5; }
.field.has-error .err { display: block; }

.form-note { font-size: .84rem; color: var(--slate); margin-top: 18px; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #edf7f0;
  border: 1px solid #bfe3cb;
  color: var(--green-dk);
  font-size: .94rem;
}

.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.info-list { display: grid; gap: 2px; }

.info-item {
  display: flex;
  gap: 18px;
  padding: 24px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.info-item + .info-item { margin-top: 14px; }

.info-item:hover { border-color: var(--gold); transform: translateX(4px); }

.info-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--green);
  border-radius: var(--radius);
}

.info-icon svg { width: 21px; height: 21px; }

.info-item h4 {
  font-size: .74rem;
  letter-spacing: .18em;
  color: var(--slate);
  margin-bottom: 6px;
  font-family: var(--body);
  font-weight: 700;
}

.info-item p,
.info-item a {
  margin: 0;
  font-family: var(--display);
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.28;
  text-transform: none;
}

.info-item a:hover { color: var(--green); }
.info-item .sub { font-family: var(--body); font-size: .9rem; font-weight: 400; color: var(--slate); margin-top: 4px; }

.map-embed {
  border: 0;
  width: 100%;
  height: clamp(340px, 46vw, 480px);
  display: block;
  filter: grayscale(.28) contrast(1.04);
  transition: filter .4s var(--ease);
}

.map-embed:hover { filter: none; }

.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-2);
}

/* 13. Footer & utilities ================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  padding-top: clamp(56px, 7vw, 86px);
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 54px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }

.footer-brand .brand-name { color: #fff; font-size: 1.4rem; }
.footer-brand .brand-sub { color: var(--gold); }

.site-footer h4 {
  color: #fff;
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }

.footer-links a {
  color: rgba(255, 255, 255, .68);
  font-size: .93rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color .25s var(--ease), transform .25s var(--ease);
}

.footer-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
  opacity: .5;
  transition: opacity .25s var(--ease);
}

.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-links a:hover::before { opacity: 1; }

.footer-contact { display: grid; gap: 18px; }

.footer-contact div { display: flex; gap: 13px; align-items: flex-start; }

.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 4px; }

.footer-contact a,
.footer-contact span { color: rgba(255, 255, 255, .8); }
.footer-contact a:hover { color: var(--gold-lt); }

.footer-contact strong {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom a { color: rgba(255, 255, 255, .62); }
.footer-bottom a:hover { color: var(--gold-lt); }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), visibility .3s, transform .3s var(--ease), background .25s var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--ink); }
.to-top svg { width: 18px; height: 18px; }

/* 14. Motion & responsive ================================================= */

/* Scoped to .js so the content is visible when scripting is off or fails —
   the hidden starting state only exists if something can undo it. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js [data-reveal="left"] { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal="zoom"] { transform: scale(.96); }

.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-grid,
  .tile-grid,
  .thermal-grid,
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .detect-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 78px; }
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .split,
  .contact-grid,
  .promo { grid-template-columns: 1fr; }
  .split--wide-left,
  .split--wide-right { grid-template-columns: 1fr; }
  .split-media--framed::before { display: none; }
  .badge-years { right: 12px; bottom: -18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .mosaic a:nth-child(1) { grid-column: span 2; }
  .mosaic a:nth-child(4),
  .mosaic a:nth-child(6) { grid-column: span 2; }
  .topbar-left .topbar-item--addr { display: none; }
  .hero-inner { padding-block: 90px 150px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  /* Let the lock-up shrink instead of pushing the menu button off-screen. */
  .header-inner { gap: 12px; }
  .brand,
  .brand-text { min-width: 0; }
  .brand-name { font-size: 1.55rem; }
  .brand-sub { font-size: .52rem; letter-spacing: .1em; white-space: normal; }

  .topbar .container { justify-content: center; text-align: center; }
  .topbar-right { display: none; }
  .topbar-sep { display: none; }
  .service-grid,
  .tile-grid,
  .thermal-grid,
  .gal-grid,
  .steps,
  .detect-grid,
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .mosaic a:nth-child(n) { grid-column: auto; grid-row: auto; }
  .proj-list li { flex-direction: column; gap: 5px; align-items: flex-start; }
  .proj-loc { text-align: left; }
  .hero-controls .container { flex-direction: column-reverse; align-items: flex-start; gap: 18px; padding-bottom: 26px; }
  .band .container { flex-direction: column; align-items: flex-start; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-stage img { max-height: 62vh; }
  .badge-years { right: 10px; padding: 15px 18px; }
  .badge-years b { font-size: 2rem; }

  /* Reveal vertically only — sideways offsets can wobble a narrow viewport. */
  .js [data-reveal="left"],
  .js [data-reveal="right"] { transform: translateY(26px); }
}

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

@media print {
  .topbar, .site-header, .hero-controls, .to-top, .site-footer, .band, .drawer, .backdrop { display: none !important; }
  body { color: #000; }
}
