/* ============================================================
   Edward Construction, Pittsburgh PA
   Design language: Urban Sophisticate (type, spacing, motion)
   Palette: sampled from their own logo and site header
     navy #203b59, tan #e7b48a
   Display: Domine   Body: Mukta
   ============================================================ */

:root {
  /* Their brand, sampled from logo.png and header.png */
  --navy:        #203b59;
  --navy-deep:   #16293e;
  --navy-line:   #35547a;
  --tan:         #e7b48a;
  --tan-lift:    #f0c9a9;
  --tan-ink:     #7a4a1f;

  --cream:       #f5f1ec;
  --cream-2:     #ebe4db;
  --paper:       #ffffff;

  --ink:         #1b1f24;
  --ink-soft:    #4d5560;
  --light:       #f4efe9;
  --light-soft:  rgba(244, 239, 233, 0.74);
  /* 0.62, not 0.5: this alpha carries 12-13px type on the navy bands, and
     0.5 measured under 4.5:1 against the real rendered pixels. */
  --light-faint: rgba(244, 239, 233, 0.62);

  --font-display: 'Domine', Georgia, 'Times New Roman', serif;
  --font-body:    'Mukta', 'Helvetica Neue', Arial, sans-serif;

  --wrap:        min(90%, 1180px);
  --wrap-wide:   min(94%, 1440px);
  --gutter:      clamp(1.25rem, 4vw, 3rem);
  --band:        clamp(3.5rem, 5.6vw, 5.75rem);
  --nav-h:       76px;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; }

:where(section, div, main)[id] { scroll-margin-top: calc(var(--nav-h) + 0.5rem); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}

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

.wrap { width: var(--wrap); margin-inline: auto; }
.wrap-wide { width: var(--wrap-wide); margin-inline: auto; }

.band { padding-block: var(--band); }

.band-navy  { background: var(--navy);      color: var(--light); }
.band-deep  { background: var(--navy-deep); color: var(--light); }
.band-cream { background: var(--cream);     color: var(--ink); }
.band-paper { background: var(--paper);     color: var(--ink); }

.band-navy h1, .band-navy h2, .band-navy h3,
.band-deep h1, .band-deep h2, .band-deep h3 { color: var(--light); }

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

/* ---------- Kicker (one named kicker system, not an eyebrow everywhere) ---------- */

.kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--tan-ink);
}
/* Scoped override, never a redefinition of .kicker: the hero panel is navy
   without carrying a .band-* class, so the kicker needs the light tan there
   too. --tan-ink on navy measures 1.54:1. */
.band-navy .kicker, .band-deep .kicker, .hero .kicker { color: var(--tan); }
.kicker::before {
  content: "";
  width: clamp(1.75rem, 4vw, 3.25rem);
  height: 1px;
  background: currentColor;
  flex: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: transform;
}
.btn-solid { background: var(--tan); color: var(--navy-deep); }
.btn-solid:hover { background: var(--tan-lift); }
.btn-solid:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.btn-ink { background: var(--navy); color: var(--light); }
.btn-ink:hover { background: var(--navy-deep); }

.btn-ghost { border-color: rgba(244, 239, 233, 0.45); color: var(--light); }
.btn-ghost:hover { border-color: var(--tan); color: var(--tan); }

.btn-ghost-ink { border-color: rgba(27, 31, 36, 0.28); color: var(--ink); }
.btn-ghost-ink:hover { border-color: var(--navy); color: var(--navy); }

.btn .tip {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.btn .tip svg { width: 11px; height: 11px; display: block; }
.btn:hover .tip { transform: translateX(3px); }
.btn-solid .tip { background: var(--navy-deep); }
.btn-solid .tip svg { stroke: var(--tan); }
.btn-ink .tip { background: var(--tan); }
.btn-ink .tip svg { stroke: var(--navy-deep); }
.btn-ghost .tip { background: var(--tan); }
.btn-ghost .tip svg { stroke: var(--navy-deep); }
.btn-ghost-ink .tip { background: var(--navy); }
.btn-ghost-ink .tip svg { stroke: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.textlink {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.band-navy .textlink, .band-deep .textlink { color: var(--tan); }
.textlink:hover { color: var(--tan-lift); }
.band-cream .textlink, .band-paper .textlink { color: var(--tan-ink); }
.band-cream .textlink:hover, .band-paper .textlink:hover { color: var(--navy); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
/* The header floats clear over the hero, whose right half is a bright
   photograph, so the phone number landed on a warm highlight at 2.04:1.
   A short scrim keeps the top strip on a dark ground until the solid
   stuck state takes over. It never takes a click. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--nav-h) + 2.25rem);
  background: linear-gradient(to bottom, rgba(11, 21, 33, 0.85), rgba(11, 21, 33, 0));
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.site-header.is-stuck::before { opacity: 0; }
.site-header.is-stuck {
  background: var(--navy-deep);
  box-shadow: 0 12px 34px -22px rgba(0, 0, 0, 0.85);
}
.site-header .wrap-wide {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark { text-decoration: none; display: flex; flex-direction: column; justify-content: center; line-height: 1; min-height: 46px; }
.mark-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  letter-spacing: -0.02em;
  color: var(--light);
  display: block;
}
.mark-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.585rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tan);
  display: block;
  margin-top: 0.34rem;
}

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.1vw, 2rem); }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light);
  text-decoration: none;
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--tan);
  transition: right 0.4s var(--ease);
}
.nav-links a:hover { color: var(--tan); }
.nav-links a:hover::after { right: 0; }

.nav-side { display: flex; align-items: center; gap: 1rem; }
.nav-phone {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--light);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav-phone:hover { color: var(--tan); }
.nav-cta { padding: 0.7rem 1.25rem; min-height: 42px; font-size: 0.875rem; }

.burger {
  display: none;
  width: 46px; height: 46px;
  background: none;
  border: 1px solid rgba(244, 239, 233, 0.4);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--light);
  margin: 3px auto;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

/* ---------- Mobile drawer (close control lives INSIDE the drawer) ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  padding: 1.15rem var(--gutter) 2.5rem;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
  visibility: hidden;
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-close {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 233, 0.4);
  background: none;
  color: var(--light);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  font-family: var(--font-body);
}
.drawer-close:hover { border-color: var(--tan); color: var(--tan); }
.drawer-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.drawer-links a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 8vw, 2.35rem);
  font-weight: 500;
  color: var(--light);
  text-decoration: none;
  padding-block: 0.45rem;
  letter-spacing: -0.025em;
}
.drawer-links a:hover { color: var(--tan); }
.drawer-foot {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 239, 233, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}
.drawer-foot a { color: var(--light); text-decoration: none; font-weight: 600; }
.drawer-foot .btn { color: var(--navy-deep); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  background: var(--navy);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 1.5rem) clamp(1.5rem, 4.5vw, 4.5rem) 3rem
           max(var(--gutter), calc((100vw - min(94vw, 1440px)) / 2));
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.45rem, 4.15vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--light);
  max-width: 18ch;
  margin-bottom: 1.5rem;
}
.hero h1 .warm { color: var(--tan); }

.hero-sub {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--light-soft);
  max-width: 44ch;
  margin-bottom: 2.15rem;
  font-weight: 300;
}

.hero-media {
  position: relative;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(32, 59, 89, 0.55) 22%, rgba(32, 59, 89, 0) 48%);
  pointer-events: none;
}

.hero-stamp {
  position: absolute;
  right: max(var(--gutter), calc((100vw - min(94vw, 1440px)) / 2));
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  z-index: 3;
  background: rgba(22, 41, 62, 0.9);
  border: 1px solid rgba(231, 180, 138, 0.4);
  color: var(--light);
  padding: 0.7rem 1.1rem;
  max-width: min(100%, 20rem);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.hero-stamp strong { color: var(--tan); font-weight: 600; }

/* ---------- Fact strip ---------- */

.strip {
  background: var(--navy-deep);
  border-top: 1px solid rgba(231, 180, 138, 0.24);
  padding-block: 1.35rem;
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem clamp(1.25rem, 4vw, 3.5rem);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--light-soft);
}
.strip-inner span { display: inline-flex; align-items: center; gap: 0.7rem; }
.strip-inner span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tan);
  flex: none;
}

/* ---------- Two column editorial ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-wide { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }

.section-title {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  max-width: 18ch;
}
.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  max-width: 62ch;
  font-weight: 300;
}
.band-navy .lede, .band-deep .lede { color: var(--light-soft); }
.body-copy { max-width: 66ch; }
.band-navy .body-copy, .band-deep .body-copy { color: var(--light-soft); }

/* framed photo, offset rule (a real frame, not a shadow halo) */
.framed { position: relative; isolation: isolate; }
.framed img { width: 100%; height: auto; position: relative; z-index: 1; }
.framed::before {
  content: "";
  position: absolute;
  inset: clamp(0.75rem, 1.6vw, 1.35rem) calc(clamp(0.75rem, 1.6vw, 1.35rem) * -1)
          calc(clamp(0.75rem, 1.6vw, 1.35rem) * -1) clamp(0.75rem, 1.6vw, 1.35rem);
  border: 1px solid var(--tan);
  pointer-events: none;
  z-index: 0;
}
.framed-cap {
  margin-top: clamp(1.85rem, 2.8vw, 2.5rem);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.band-navy .framed-cap, .band-deep .framed-cap { color: var(--light-faint); }

/* ---------- Service sections ---------- */

.service {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.service-flip { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
.service-flip .service-media { order: 2; }
.service-media { position: relative; overflow: hidden; }
.service-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.service h3 {
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  margin-bottom: 1rem;
}
.service-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.band-navy .service-list, .band-deep .service-list { color: var(--light-soft); }
.service-list li { display: flex; align-items: center; gap: 0.55rem; }
.service-list li::before {
  content: "";
  width: 12px; height: 1px;
  background: var(--tan);
  flex: none;
}
.rule-top { border-top: 1px solid rgba(27, 31, 36, 0.14); padding-top: clamp(2.25rem, 4vw, 3.5rem); margin-top: clamp(2.25rem, 4vw, 3.5rem); }
.band-navy .rule-top, .band-deep .rule-top { border-top-color: rgba(244, 239, 233, 0.16); }

/* two-up */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
}
.duo-item img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.duo-item h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); margin: 1.35rem 0 0.75rem; }
.duo-item p { color: var(--ink-soft); }
.band-navy .duo-item p, .band-deep .duo-item p { color: var(--light-soft); }

/* ---------- Progress rail (the signature moment) ---------- */

.rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}
.rail-head .lede { max-width: 46ch; }

.rail-scroll {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail-scroll::-webkit-scrollbar { display: none; }
.rail-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.rail-item {
  flex: 0 0 clamp(15.5rem, 27vw, 23rem);
  scroll-snap-align: start;
}
.rail-item figure { margin: 0; }
.rail-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.rail-item figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--light-soft);
  max-width: 30ch;
}
.rail-stage {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.5rem;
}

.rail-track {
  position: relative;
  height: 1px;
  background: rgba(244, 239, 233, 0.2);
  margin-top: 0.5rem;
}
.rail-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  background: var(--tan);
  transform-origin: left center;
}
.rail-hint {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--light-faint);
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.g-a { grid-column: span 4; aspect-ratio: 16 / 10; }
.g-b { grid-column: span 2; aspect-ratio: 4 / 5; }
.g-c { grid-column: span 2; aspect-ratio: 1 / 1; }
.g-d { grid-column: span 2; aspect-ratio: 1 / 1; }
.g-e { grid-column: span 2; aspect-ratio: 1 / 1; }

/* ---------- Quotes ---------- */

.quote-hero {
  margin: 0 0 clamp(2.5rem, 4.5vw, 3.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.75rem);
  align-items: start;
}

.quote-hero .quote-lead { max-width: none; }

.quote-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.35vw, 1.95rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 26ch;
  margin: 0;
}
.quote-lead-body {
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  color: var(--ink-soft);
  max-width: 60ch;
  font-weight: 300;
}
.attrib {
  margin-top: 1.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tan-ink);
}
.quote-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
}
.quote-small p {
  font-size: 0.99rem;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 2.35rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tan);
  letter-spacing: 0.04em;
}
.step::after {
  content: "";
  position: absolute;
  top: 0.62rem; left: 2.5rem; right: -1rem;
  height: 1px;
  background: rgba(244, 239, 233, 0.22);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.14rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.94rem; color: var(--light-soft); font-weight: 300; }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.contact-lines dt {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tan);
  margin-bottom: 0.3rem;
}
.contact-lines dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--light);
}
.contact-lines dd a {
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 180, 138, 0.5);
  display: inline-block;
  padding-block: 0.6rem;
}
.contact-lines dd a:hover { color: var(--tan); }
.contact-lines dd.small {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--light-soft);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: var(--light-soft); padding-block: clamp(2.75rem, 4.5vw, 4rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(244, 239, 233, 0.14);
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tan);
  margin: 0 0 1.1rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-list a {
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding-block: 0.65rem;
  transition: color 0.3s var(--ease);
}
.footer-list a:hover { color: var(--tan); }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--light-faint);
}

/* ---------- Motion ---------- */

html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal-x { opacity: 0; transform: translateX(38px); }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal-x { opacity: 1; transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto !important; }
}

/* ---------- 404 ---------- */

.error-band {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem;
  background: var(--navy);
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 9rem);
  line-height: 1;
  color: var(--tan);
  opacity: 0.32;
  letter-spacing: -0.04em;
}
.error-band h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 1rem 0 1.15rem; color: var(--light); }
.error-band p { color: var(--light-soft); max-width: 46ch; margin-inline: auto; margin-bottom: 2rem; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .burger { display: grid; }
  .nav-cta { display: none; }

  .hero { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .hero-copy {
    padding: calc(var(--nav-h) + clamp(2rem, 7vw, 3.5rem)) var(--gutter) clamp(2.25rem, 6vw, 3rem);
    order: 1;
  }
  .hero-media { order: 2; height: clamp(17rem, 52vw, 28rem); }
  .hero-scrim { background: linear-gradient(180deg, var(--navy) 0%, rgba(32, 59, 89, 0) 34%); }
  .hero-stamp { position: static; margin-top: 1.5rem; max-width: 100%; }
  .hero h1 { max-width: 18ch; }
  .hero-break { display: none; }

  .split, .split-wide, .service, .contact, .quote-hero { grid-template-columns: minmax(0, 1fr); }
  .service-flip .service-media { order: 0; }
  .section-title { max-width: 24ch; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
  .step:nth-child(2)::after { display: none; }

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

@media (max-width: 760px) {
  body { font-size: 1.02rem; }

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

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-a { grid-column: span 2; aspect-ratio: 4 / 3; }
  .g-b, .g-c, .g-d, .g-e { grid-column: span 1; aspect-ratio: 1 / 1; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .step::after { display: none; }

  .framed::after { inset: 0.6rem -0.6rem -0.6rem 0.6rem; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }

  .rail-item { flex: 0 0 min(78vw, 20rem); }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 2.2rem; max-width: none; }
}
/* Samoya QA: keep the homepage hero to exactly one browser viewport. */
.hero{height:100vh;height:100svh;min-height:0;max-height:100svh;overflow:hidden}
.section-title{font-size:clamp(1.85rem,3.05vw,2.75rem);max-width:20ch}
.section-title{font-size:clamp(1.85rem,2.75vw,2.5rem);max-width:24ch}
