/* ==========================================================================
   GROUND-A — Design tokens
   ========================================================================== */
:root {
  --black:        #08090a;
  --charcoal:     #131619;
  --charcoal-2:   #1b1f23;
  --charcoal-3:   #262b30;
  --line:         rgba(255,255,255,0.09);
  --line-strong:  rgba(255,255,255,0.16);

  --white:        #f6f7f8;
  --silver:       #c7ccd1;
  --muted:        #9aa1a8;
  --muted-2:      #6b7278;

  --orange:       #e2670f;
  --orange-light: #ff8a34;
  --orange-dim:   #7a3a10;
  --green:        #5c8a2e;
  --green-light:  #7fb345;

  --restore-accent: #b3862c; /* warm stone/bronze accent used only on restoration pages */
  --restore-accent-light: #d9ab52;

  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-fast: .35s;
  --dur: .6s;
  --dur-slow: 1.1s;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5 { margin: 0; font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--orange);
}
.eyebrow.on-dark-alt { color: var(--green-light); }
.eyebrow.on-dark-alt::before { background: var(--green); }
.eyebrow.restore { color: var(--restore-accent-light); }
.eyebrow.restore::before { background: var(--restore-accent); }

h2.section-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  color: var(--white);
}
h2.section-title em {
  font-style: normal;
  color: var(--orange);
}
.section-sub {
  max-width: 620px;
  color: var(--muted);
  font-size: 16.5px;
  margin-top: 18px;
}

.section-head {
  margin-bottom: 56px;
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-head.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-family: var(--font-head);
  font-size: 13.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--white);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateX(-101%);
  transition: transform var(--dur) var(--ease);
  z-index: -1;
}
.btn:hover { border-color: var(--orange); }
.btn:hover::before { transform: translateX(0); }
.btn.solid {
  background: var(--orange);
  border-color: var(--orange);
}
.btn.solid::before { background: var(--white); }
.btn.solid:hover { color: var(--black); border-color: var(--white); }
.btn.ghost-light { border-color: rgba(255,255,255,.35); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn.restore-solid { background: var(--restore-accent); border-color: var(--restore-accent); }
.btn.restore-solid::before { background: var(--white); }
.btn.restore-solid:hover { color: var(--black); border-color: var(--white); }
.btn.restore:hover { border-color: var(--restore-accent); }
.btn.restore::before { background: var(--restore-accent); }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: padding var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}
/* backdrop-filter lives on a pseudo-element (not .site-header itself) because
   filter/backdrop-filter on an ancestor creates a new containing block for
   position:fixed descendants — that broke the fullscreen mobile nav-links panel. */
.site-header.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,9,10,0.88);
  backdrop-filter: blur(10px);
  z-index: -1;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-word { font-family: var(--font-head); font-size: 19px; letter-spacing: .08em; }
.brand-word b { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 10px 18px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 4px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; padding: 12px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none;
  border: none;
  z-index: 600;
}
.nav-toggle span { height: 2px; background: var(--white); width: 100%; transition: all var(--dur-fast) var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    background: var(--black);
    transform: translateY(-100%);
    transition: transform var(--dur) var(--ease);
    z-index: 500;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 22px; padding: 16px; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-top: 12px; }
}

/* ==========================================================================
   Hero (Ken Burns zoom slideshow)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease;
}
.hero-slide.active {
  opacity: 1;
  animation: kenburns 9s ease-in-out forwards;
}
@keyframes kenburns {
  0%   { transform: scale(1.08) translate(0,0); }
  100% { transform: scale(1.22) translate(-1.5%, -1%); }
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,10,.55) 0%, rgba(8,9,10,.35) 35%, rgba(8,9,10,.85) 100%),
    linear-gradient(90deg, rgba(8,9,10,.75) 0%, rgba(8,9,10,.1) 55%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 100px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-kicker {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--orange-light);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  opacity: 0;
  animation: riseIn .9s var(--ease) .3s forwards;
}
.hero-kicker::before { content: ''; width: 40px; height: 2px; background: var(--orange); }
.hero h1 {
  font-size: clamp(40px, 7.2vw, 104px);
  line-height: .98;
  color: var(--white);
  opacity: 0;
  animation: riseIn 1s var(--ease) .45s forwards;
}
.hero h1 span { color: var(--orange); }
.hero-desc {
  max-width: 560px;
  margin-top: 26px;
  font-size: 17.5px;
  color: var(--silver);
  opacity: 0;
  animation: riseIn 1s var(--ease) .6s forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 1s var(--ease) .75s forwards;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-dots {
  position: absolute;
  right: var(--gutter);
  bottom: 48px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 34px; height: 3px;
  background: rgba(255,255,255,.28);
  border: none;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-dots button::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dots button.active::after { transform: scaleX(1); transition: transform 9s linear; }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 11.5px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue .line { width: 1px; height: 40px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--orange);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="scale"].in-view { transform: scale(1); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ==========================================================================
   Sections generic
   ========================================================================== */
section { position: relative; }
.section { padding: 120px 0; }
.section-tight { padding: 90px 0; }
.on-charcoal { background: var(--charcoal); }
.on-black { background: var(--black); }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 64px;
}
.stat {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.stat .num {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat .num .suffix { color: var(--orange); font-size: .6em; }
.stat .label { margin-top: 8px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.stat .stat-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--silver);
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: .01em;
}

/* Disclosure note for figures attributed to the principal's personal track
   record rather than work executed by GROUND-A as a company. Deliberately
   legible (not faint fine print) so the qualifier is easy to notice. */
.disclosure-note {
  display: block;
  color: var(--silver);
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  margin-top: 8px;
}
@media (max-width: 860px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Intro / two-column
   ========================================================================== */
.split-2 {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .split-2 { grid-template-columns: 1fr; gap: 40px; }
}
.lede {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  color: var(--white);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.body-copy { color: var(--muted); font-size: 16px; margin-top: 20px; }
.body-copy + .body-copy { margin-top: 14px; }

/* ==========================================================================
   Path cards (home: contracting / restoration)
   ========================================================================== */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
}
.path-card {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 56px;
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}
.path-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.1s var(--ease);
  z-index: -2;
}
.path-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,10,.15), rgba(8,9,10,.92));
  z-index: -1;
}
.path-card:hover img { transform: scale(1.14); }
.path-tag {
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 14px;
}
.path-card.is-restore .path-tag { color: var(--restore-accent-light); }
.path-card h3 { font-size: clamp(30px, 3.6vw, 46px); color: var(--white); }
.path-card p { color: var(--silver); margin-top: 14px; max-width: 420px; font-size: 15.5px; }
.path-link {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 6px;
}
.path-card:hover .path-link { border-color: var(--orange); color: var(--orange-light); }
.path-card.is-restore:hover .path-link { border-color: var(--restore-accent); color: var(--restore-accent-light); }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .path-card { min-height: 420px; padding: 36px; }
}

/* ==========================================================================
   Service cards
   ========================================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.svc-card {
  background: var(--charcoal);
  padding: 44px 38px;
  transition: background var(--dur-fast) var(--ease);
}
.svc-card:hover { background: var(--charcoal-2); }
.svc-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  margin-bottom: 26px;
  color: var(--orange-light);
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-card h3 {
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: 16px;
}
.svc-card ul { color: var(--muted); font-size: 14.5px; }
.svc-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
}
.svc-card ul li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px;
  background: var(--orange);
}
.restoration-page .svc-icon { color: var(--restore-accent-light); }
.restoration-page .svc-card ul li::before { background: var(--restore-accent); }

@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Feature rows — service text paired with a photo, alternating sides
   ========================================================================== */
.feature-rows { }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:first-child { padding-top: 0; }
.feature-row:last-child { border-bottom: none; padding-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.feature-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease);
}
.feature-row:hover .feature-media img { transform: scale(1.08); }
.feature-text .svc-icon { margin-bottom: 24px; }
.feature-text h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: .03em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.feature-text .feature-lead {
  color: var(--silver);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-transform: none;
  letter-spacing: 0;
}
.feature-text ul { color: var(--muted); font-size: 14.5px; }
.feature-text ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
}
.feature-text ul li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px;
  background: var(--orange);
}
.restoration-page .feature-text ul li::before { background: var(--restore-accent); }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature-row.reverse .feature-media { order: 0; }
  .feature-media img { height: 280px; }
}

/* ==========================================================================
   Project gallery
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
  gap: 6px;
}
/* Every tile is span-3 (half width) or span-6 (full width), all 1 row tall.
   3+3=6 and 6 alone=6, so any sequence of these two sizes always fills each
   row exactly — no auto-placement gap is possible regardless of item count
   or order. Earlier versions mixed span-2/3/4 with row-span-2/3 variants;
   dense auto-flow could still strand an unfillable leftover slot once the
   handful of small filler tiles ran out, which is the gap bug this fixes. */
.gallery-item {
  position: relative;
  overflow: hidden;
  grid-column: span 3;
  isolation: isolate;
  cursor: default;
}
.gallery-item.wide { grid-column: span 6; }
.gallery-item.narrow { grid-column: span 3; }
.gallery-item.tall { }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  transition: transform 1s var(--ease), filter 1s var(--ease);
  filter: saturate(.9) brightness(.92);
}
.gallery-item:hover img { transform: scale(1.16); filter: saturate(1.05) brightness(1); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  transform: translateY(12px);
  opacity: 0;
  transition: all var(--dur-fast) var(--ease);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }
.gallery-caption .name { font-family: var(--font-head); font-size: 15px; letter-spacing: .04em; color: var(--white); text-transform: uppercase; }
.gallery-caption .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-item, .gallery-item.wide, .gallery-item.narrow { grid-column: span 1; grid-row: span 1; }
}

/* ==========================================================================
   Major projects — categorized accordion
   ========================================================================== */
.proj-accordion { border-top: 1px solid var(--line); }
.proj-cat { border-bottom: 1px solid var(--line); }
.proj-cat-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 4px;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
}
.proj-cat-head .n {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--muted-2);
  margin-right: 18px;
}
.proj-cat-head h4 {
  flex: 1;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: .05em;
}
.proj-cat-head .count {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-right: 18px;
}
.proj-cat-head .plus {
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0;
}
.proj-cat-head .plus::before, .proj-cat-head .plus::after {
  content: ''; position: absolute; background: var(--orange);
}
.proj-cat-head .plus::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.proj-cat-head .plus::after { top: 0; left: 50%; height: 100%; width: 2px; transform: translateX(-50%); transition: transform .3s var(--ease); }
.proj-cat.open .proj-cat-head .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.proj-cat-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.proj-cat.open .proj-cat-body { max-height: 2400px; }
.proj-list {
  padding: 4px 4px 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 40px;
}
.proj-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--silver);
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.proj-list li .sz { color: var(--muted-2); white-space: nowrap; font-size: 13px; }
@media (max-width: 760px) { .proj-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Trades table (contracting enrichment)
   ========================================================================== */
.trades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.trade-cell {
  background: var(--black);
  padding: 30px 28px;
}
.trade-cell .idx {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--orange);
  letter-spacing: .08em;
}
.trade-cell h4 { font-size: 16px; margin: 10px 0 8px; color: var(--white); letter-spacing: .02em; }
.trade-cell p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 980px) { .trades-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .trades-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Sectors / geography chips
   ========================================================================== */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--silver);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.chip:hover { border-color: var(--orange); color: var(--white); background: rgba(226,103,15,.08); }
.restoration-page .chip:hover { border-color: var(--restore-accent); background: rgba(179,134,44,.1); }

/* ==========================================================================
   Why choose — checklist
   ========================================================================== */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
}
.check-item { display: flex; gap: 16px; align-items: flex-start; }
.check-item .mark {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--orange);
  color: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.restoration-page .check-item .mark { border-color: var(--restore-accent); color: var(--restore-accent-light); }
.check-item p { color: var(--silver); font-size: 15px; padding-top: 4px; }
@media (max-width: 700px) { .check-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Process timeline (restoration) — diagonal, distinct from reference sites
   ========================================================================== */
.process-track { position: relative; }
.process-track::before {
  content: '';
  position: absolute;
  left: 29px; top: 10px; bottom: 10px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  padding-bottom: 64px;
}
.process-step:last-child { padding-bottom: 0; }
.process-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--restore-accent);
  color: var(--restore-accent-light);
  font-family: var(--font-head);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  z-index: 1;
}
.process-body h4 { font-size: 20px; color: var(--white); margin-bottom: 10px; letter-spacing: .03em; }
.process-body p { color: var(--muted); font-size: 15px; max-width: 560px; }

/* ==========================================================================
   Affiliates marquee
   ========================================================================== */
.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.affiliate-card {
  flex-shrink: 0;
  height: 64px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 6px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.affiliate-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.35); }
.marquee-track img {
  height: 100%;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}
.affiliate-slot-empty {
  height: 64px; padding: 0 20px;
  display: flex; align-items: center;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted-2);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  white-space: nowrap;
}

/* ==========================================================================
   Quote / commitment band
   ========================================================================== */
.band {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
}
.band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.band::before { content: ''; position: absolute; inset: 0; background: rgba(8,9,10,.82); z-index: -1; }
.band blockquote {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.3;
  max-width: 880px;
  margin: 0 auto;
  color: var(--white);
  text-transform: uppercase;
}
.band blockquote span { color: var(--orange); }
.band cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .05em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--charcoal); padding-top: 0; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-cta {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 72px;
  padding: 100px 0 90px;
  border-bottom: 1px solid var(--line);
}
.contact-intro .section-sub { margin-top: 18px; }
.contact-intro .footer-col { margin-top: 40px; }
.contact-intro .footer-col h5 { font-size: 13px; letter-spacing: .16em; color: var(--muted-2); margin-bottom: 14px; }
.contact-intro .footer-col ul li { margin-bottom: 10px; }
.contact-intro .footer-col a { color: var(--silver); font-size: 15px; }
.contact-intro .footer-col a:hover { color: var(--orange-light); }
.restoration-page .contact-intro .footer-col a:hover { color: var(--restore-accent-light); }

.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--black);
  border: 1px solid var(--line-strong);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  transition: border-color var(--dur-fast) var(--ease);
  width: 100%;
}
.form-field select { appearance: none; cursor: pointer; }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted-2); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.restoration-page .form-field input:focus,
.restoration-page .form-field select:focus,
.restoration-page .form-field textarea:focus {
  border-color: var(--restore-accent);
}
.contact-form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: -4px; }
.form-note.success { color: var(--green-light); }
.form-note.error { color: #e05a5a; }
/* honeypot field — hidden from real visitors, catches simple bots */
.form-field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .contact-cta { grid-template-columns: 1fr; gap: 40px; padding: 70px 0 60px; }
  .form-row { grid-template-columns: 1fr; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer-logo-link { display: inline-block; }
.footer-logo-img { max-width: 260px; width: 100%; height: auto; border-radius: 4px; }
.footer-brand p { color: var(--muted); margin-top: 18px; font-size: 14.5px; max-width: 300px; }
.footer-col h5 {
  font-size: 13px; letter-spacing: .16em; color: var(--muted-2); margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--silver); font-size: 14.5px; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--orange-light); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted-2);
  font-size: 13px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-lg { margin-top: 64px; }
.color-orange { color: var(--orange-light); }
.color-green { color: var(--green-light); }
.restoration-page .color-orange { color: var(--restore-accent-light); }

.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  background: rgba(8,9,10,.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur-fast) var(--ease);
  z-index: 400;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--orange); color: var(--orange-light); }

.page-hero {
  min-height: 68vh;
}
.page-hero .hero-content { padding-bottom: 80px; }

@media (max-width: 700px) {
  .split-2, .stats-row { gap: 28px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}
