@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:       #F7F4EF;
  --parch:       #EDE8DF;
  --off:         #FAFAF7;
  --charcoal:    #1a1815;
  --near-black:  #0F0D0A;
  --dark-panel:  #181512;
  --white:       #ffffff;
  --warm-mid:    #7a7268;
  --accent:      #8B7355;
  --accent-lt:   #C4A882;
  --border:      rgba(26,24,21,0.08);
  --border-dk:   rgba(255,255,255,0.08);
  --max:         1160px;
  --nav-h:       88px;
  --nav-h-scrolled: 64px;
  --nav-pill-max-scrolled: 980px;
  --nav-radius:  22px;
  --rad:         12px;
  --rad-pill:    24px;

  --ease-decel: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  --dur-nav: .72s;
  --dur-nav-fast: .44s;
  --dur-reveal: .95s;
  --dur-reveal-mobile: .78s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

html.menu-open,
body.menu-open {
  overflow: hidden !important;
  height: 100%;
}

body.menu-open {
  position: fixed;
  width: 100%;
}

img,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── NAV ────────────────────────────────────────────────────────────────────
   Key fix: avoid animating `width`, `max-width`, or layout-triggering props.
   Instead, drive the pill transition entirely with margin + border-radius +
   background, which are composited cheaply. The shell stays full-width in
   the DOM; visual narrowing comes from horizontal margin expansion.
   Will-change is set on the shell only, not the outer nav, to keep one
   promoted layer.
──────────────────────────────────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  /* No padding transition here — we move the shell instead */
  padding: 0;
}

.site-nav-shell {
  pointer-events: auto;
  /* Full bleed bar at rest */
  margin: 0;
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 18px;
  padding: 0 32px;

  /* Visual treatment */
  background: rgba(10, 9, 6, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;

  /*
   * Only animate transform-friendly props + border-radius + box-shadow.
   * margin animates via transform proxy (see JS translateX trick) — but
   * margin itself is fine here since the shell never shrinks below 0;
   * the real trick is NOT animating width/max-width at all.
   */
  will-change: border-radius, box-shadow, min-height, background;
  transition:
    min-height      var(--dur-nav)      var(--ease-decel),
    padding         var(--dur-nav)      var(--ease-decel),
    margin-left     var(--dur-nav)      var(--ease-decel),
    margin-right    var(--dur-nav)      var(--ease-decel),
    margin-top      var(--dur-nav)      var(--ease-decel),
    border-radius   var(--dur-nav)      var(--ease-decel),
    background      var(--dur-nav-fast) var(--ease-soft),
    border-color    var(--dur-nav-fast) var(--ease-soft),
    box-shadow      var(--dur-nav)      var(--ease-decel);
  /* border is set individually below so color can animate separately */
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 0;
  border-right: 0;
}

/* Scrolled pill state — no width/max-width; use margin to inset the bar */
.site-nav.scrolled .site-nav-shell {
  /* Calculate inset: (100vw - pill-max) / 2, clamped to 0 */
  margin-left:  max(0px, calc((100% - var(--nav-pill-max-scrolled)) / 2));
  margin-right: max(0px, calc((100% - var(--nav-pill-max-scrolled)) / 2));
  margin-top: 12px;
  min-height: var(--nav-h-scrolled);
  padding: 0 24px;
  border-radius: var(--nav-radius);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 9, 6, 0.86);
  box-shadow: 0 14px 40px rgba(0,0,0,.24), 0 2px 8px rgba(0,0,0,.18);
}

/* ── Logo ── */
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  position: relative;
  z-index: 302;
}

.nav-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  will-change: height;
  transition:
    height   var(--dur-nav) var(--ease-decel),
    opacity  .36s           var(--ease-soft);
}

.site-nav.scrolled .nav-logo-img {
  height: 40px;
}

/* ── Nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  white-space: nowrap;
}

.nav-links a {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,.58);
  padding: 8px 12px;
  border-radius: var(--rad-pill);
  transition:
    background .3s  var(--ease-soft),
    color      .3s  var(--ease-soft),
    transform  .3s  var(--ease-soft);
}

.nav-links a:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

/* ── Desktop CTA ── */
.nav-desktop-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.nav-cta,
.nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background    .3s var(--ease-soft),
    border-color  .3s var(--ease-soft),
    transform     .3s var(--ease-soft),
    color         .3s var(--ease-soft);
  position: relative;
  z-index: 302;
}

.nav-cta:hover,
.nav-phone:hover {
  background: rgba(255,255,255,.18);
  color: var(--white);
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
}

/* ── Mobile tools / hamburger ── */
.nav-mobile-tools {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  position: relative;
  z-index: 303;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform .34s var(--ease-soft), opacity .28s var(--ease-soft);
  pointer-events: none;
}

/* ── 1180px tweak ── */
@media (max-width: 1180px) {
  .site-nav-shell {
    grid-template-columns: 185px minmax(0, 1fr) 185px;
    padding: 0 20px;
    gap: 12px;
  }

  .nav-logo-img {
    max-width: 170px;
  }

  .nav-links a {
    font-size: 16px;
    padding: 8px 10px;
  }

  .nav-cta {
    font-size: 15px;
    padding: 8px 14px;
  }
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 40px 56px;
  overflow: hidden;
  text-align: center;
}

.hero.short { min-height: 60vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.025) translateY(0px) translateZ(0);
  will-change: transform;
  /* No transition — JS drives this via rAF */
}

.hero-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,6,.86) 0%, rgba(10,9,6,.3) 55%, rgba(10,9,6,.08) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-body > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 1s var(--ease-decel) forwards;
}

.hero-body > *:nth-child(1) { animation-delay: 0.12s; }
.hero-body > *:nth-child(2) { animation-delay: 0.26s; }
.hero-body > *:nth-child(3) { animation-delay: 0.40s; }
.hero-body > *:nth-child(4) { animation-delay: 0.54s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 64px 0; }
.section.ivory { background: var(--ivory); }
.section.parch { background: var(--parch); }
.section.off { background: var(--off); }
.section.dark { background: var(--dark-panel); color: var(--white); }
.section.blk { background: var(--near-black); color: var(--white); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 19.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 12px;
}

.eyebrow.muted { color: rgba(255,255,255,.3); }
.eyebrow.warm { color: var(--accent); }

.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(54px, 8.25vw, 96px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 18px;
}

.hero-h1 em { font-style: italic; }

.hero-p {
  font-size: 30px;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 780px;
}

.heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 5.25vw, 63px);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 8px;
}

.heading em { font-style: italic; }
.heading.white { color: var(--white); }

.body-text {
  font-size: 27px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--warm-mid);
}

.body-text.light { color: rgba(255,255,255,.52); }

.divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin: 12px 0;
}

.divider.light { background: rgba(255,255,255,.25); }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--rad-pill);
  cursor: pointer;
  transition:
    transform     .28s var(--ease-soft),
    background    .28s var(--ease-soft),
    border-color  .28s var(--ease-soft),
    box-shadow    .28s var(--ease-soft);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.btn-white { background: var(--white); color: var(--charcoal); }
.btn-white:hover { background: #e8e2d8; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: rgba(255,255,255,.8); }

.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--near-black); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(26,24,21,.22);
}
.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* ─── REVEALS ────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px) translateZ(0);
  transition:
    opacity   var(--dur-reveal) var(--ease-decel),
    transform var(--dur-reveal) var(--ease-decel);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.reveal-immediate {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── LAYOUTS ────────────────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}

.split.center { align-items: center; }
.split.equal { grid-template-columns: 1fr 1fr; }

/* ─── SERVICE CARDS ──────────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--rad);
  padding: 30px;
  border: 0.5px solid var(--border);
  transition:
    box-shadow    .32s var(--ease-soft),
    transform     .32s var(--ease-soft),
    border-color  .32s var(--ease-soft);
}

.service-card:hover {
  box-shadow: 0 14px 32px rgba(26,24,21,.10);
  transform: translateY(-4px);
  border-color: rgba(26,24,21,.12);
}

.svc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 8px;
}

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 33px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 10px;
}

/* ─── STATS ──────────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--rad);
  padding: 24px 16px;
  text-align: center;
  border: 0.5px solid var(--border);
  transition: transform .32s var(--ease-soft), box-shadow .32s var(--ease-soft);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26,24,21,.08);
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 57px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9C9080;
}

/* ─── PROJECT CARDS ──────────────────────────────────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proj-card {
  background: var(--white);
  border-radius: var(--rad);
  overflow: hidden;
  border: 0.5px solid var(--border);
  cursor: pointer;
  transition:
    transform     .32s var(--ease-soft),
    box-shadow    .32s var(--ease-soft),
    border-color  .32s var(--ease-soft);
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(26,24,21,.10);
  border-color: rgba(26,24,21,.12);
}

.proj-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #d6cfbf;
  transition: transform .6s var(--ease-decel);
}

.proj-card:hover .proj-img { transform: scale(1.04); }

.proj-body { padding: 20px; }

.proj-loc {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9C9080;
  margin-bottom: 6px;
}

.proj-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 6px;
}

/* ─── TESTIMONIALS (dark) ────────────────────────────────────────────────── */
.test-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.test-card {
  background: rgba(255,255,255,.04);
  border: 0.5px solid rgba(255,255,255,.1);
  border-radius: var(--rad);
  padding: 32px;
  position: relative;
  transition:
    transform     .32s var(--ease-soft),
    border-color  .32s var(--ease-soft),
    background    .32s var(--ease-soft);
}

.test-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

.test-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  line-height: 1;
  color: rgba(255,255,255,.06);
  position: absolute;
  top: 12px;
  left: 20px;
}

.test-card blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28.5px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.test-card cite {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-lt);
  font-style: normal;
}

/* ─── TESTIMONIALS (light) ───────────────────────────────────────────────── */
.test-grid-light {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.test-card-light {
  background: var(--white);
  border-radius: var(--rad);
  padding: 36px;
  border: 0.5px solid var(--border);
  position: relative;
  transition:
    transform     .32s var(--ease-soft),
    box-shadow    .32s var(--ease-soft),
    border-color  .32s var(--ease-soft);
}

.test-card-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(26,24,21,.10);
  border-color: rgba(26,24,21,.12);
}

.test-card-light::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  line-height: 1;
  color: rgba(26,24,21,.06);
  position: absolute;
  top: 12px;
  left: 24px;
}

.test-card-light blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-style: italic;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.test-card-light cite {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

/* ─── CRAFT SPLIT ────────────────────────────────────────────────────────── */
.craft-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.craft-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
  align-self: stretch;
  transition: transform .7s var(--ease-decel);
}

.craft-split:hover .craft-img { transform: scale(1.03); }

.craft-body {
  background: var(--charcoal);
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* ─── CTA BAND ───────────────────────────────────────────────────────────── */
.cta-band {
  padding: 72px 0;
  background: var(--near-black);
  text-align: center;
}

.cta-band .heading {
  color: var(--white);
  max-width: 620px;
  margin: 0 auto 12px;
}

.cta-band .body-text {
  color: rgba(255,255,255,.42);
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ─── ABOUT ──────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--rad);
}

.dist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.dist-card {
  background: var(--white);
  border-radius: var(--rad);
  padding: 30px;
  border: 0.5px solid var(--border);
  transition:
    transform     .32s var(--ease-soft),
    box-shadow    .32s var(--ease-soft),
    border-color  .32s var(--ease-soft);
}

.dist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(26,24,21,.10);
  border-color: rgba(26,24,21,.12);
}

.dist-mark {
  width: 24px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 12px;
}

.dist-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 31.5px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 8px;
}

/* ─── PROJECTS FULL PAGE ─────────────────────────────────────────────────── */
.proj-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.proj-feat {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--rad);
  overflow: hidden;
  border: 0.5px solid var(--border);
  background: var(--white);
  transition:
    transform     .32s var(--ease-soft),
    box-shadow    .32s var(--ease-soft),
    border-color  .32s var(--ease-soft);
}

.proj-feat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(26,24,21,.10);
  border-color: rgba(26,24,21,.12);
}

.proj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--rad);
  overflow: hidden;
  border: 0.5px solid var(--border);
  background: var(--white);
  transition:
    transform     .32s var(--ease-soft),
    box-shadow    .32s var(--ease-soft),
    border-color  .32s var(--ease-soft);
}

.proj-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(26,24,21,.10);
  border-color: rgba(26,24,21,.12);
}

.proj-full-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  background: #d6cfbf;
  transition: transform .6s var(--ease-decel);
}

.proj-row:hover .proj-full-img,
.proj-feat:hover .proj-full-img {
  transform: scale(1.04);
}

.proj-full-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.proj-full-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
}

.proj-full-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 31.5px;
  font-weight: 400;
  color: var(--charcoal);
}

.link-arrow {
  font-size: 19.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition:
    letter-spacing  .28s var(--ease-soft),
    opacity         .28s var(--ease-soft);
}

.link-arrow:hover {
  letter-spacing: .16em;
  opacity: .8;
}

/* ─── CONTACT ────────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 52px;
  align-items: start;
}

.contact-item { margin-bottom: 26px; }

.contact-label {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9C9080;
  margin-bottom: 6px;
}

.contact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--charcoal);
  line-height: 1.5;
}

.contact-value a:hover { color: var(--accent); }

.map-wrap {
  border-radius: var(--rad);
  overflow: hidden;
  border: 0.5px solid var(--border);
}

.map-frame {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
  filter: grayscale(20%);
}

.cert-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.cert-card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  border: 0.5px solid var(--border);
  transition: transform .32s var(--ease-soft), box-shadow .32s var(--ease-soft);
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26,24,21,.08);
}

/* ─── PAGE INTRO ─────────────────────────────────────────────────────────── */
.page-intro {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
}

.page-intro .container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: end;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--near-black);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 21px;
  color: rgba(255,255,255,.32);
  margin-top: 12px;
  max-width: 230px;
  line-height: 1.7;
}

.site-footer h4 {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 14px;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer li {
  font-size: 22.5px;
  color: rgba(255,255,255,.48);
  transition: color .22s var(--ease-soft);
  word-break: break-word;
}

.site-footer li:hover { color: rgba(255,255,255,.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 19.5px;
  color: rgba(255,255,255,.22);
}

/* ─── OVERFLOW GUARDS ────────────────────────────────────────────────────── */
.container,
.section,
.site-footer,
.footer-grid,
.contact-layout,
.about-grid,
.split,
.proj-grid,
.proj-full-grid,
.proj-row,
.proj-feat,
.cert-bar,
.stats-row,
.service-grid,
.test-grid,
.test-grid-light,
.dist-grid {
  min-width: 0;
}

.footer-grid > div,
.contact-layout > div,
.about-grid > div,
.split > div,
.proj-row > div,
.proj-feat > div {
  min-width: 0;
}

/* ─── REDUCED MOTION ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-immediate {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── TABLET ≤ 900px ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav,
  .site-nav.scrolled {
    padding: 0;
  }

  /* On mobile, undo the pill entirely — flat bar always */
  .site-nav-shell,
  .site-nav.scrolled .site-nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: none;
    min-height: 72px;
    margin: 0 !important;
    padding: 0 16px;
    border-radius: 0 !important;
    background: rgba(10,9,6,.96);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: none !important;
    /* Disable the margin transition on mobile to avoid ghost space */
    transition: none;
  }

  .nav-logo-img,
  .site-nav.scrolled .nav-logo-img {
    height: 34px;
    max-width: 180px;
  }

  .nav-desktop-cta {
    display: none;
  }

  .nav-mobile-tools {
    display: flex;
  }

  .nav-phone {
    font-size: 13px;
    padding: 8px 12px;
  }

  .menu-btn {
    display: flex;
    z-index: 303;
    flex: 0 0 auto;
    position: relative;
    pointer-events: auto;
  }

  .nav-links {
    display: none;
    margin-left: 0;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100dvh - 72px);
    background: rgba(10,9,6,.985);
    padding: 28px 20px 40px;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 301;
  }

  .nav-links.open a {
    display: block;
    width: 100%;
    max-width: none;
    text-align: center;
    font-size: 17px;
    line-height: 1.2;
    padding: 14px 18px;
    color: rgba(255,255,255,.9);
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    transform: none;
  }

  .nav-links.open a.active {
    background: rgba(255,255,255,.14);
    color: #fff;
  }

  .hero { padding-top: 72px; }
  .hero.short { padding-top: 72px; min-height: 52svh; }

  .reveal {
    transform: translateY(18px) translateZ(0);
    transition:
      opacity   var(--dur-reveal-mobile) var(--ease-decel),
      transform var(--dur-reveal-mobile) var(--ease-decel);
  }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .service-grid,
  .test-grid,
  .test-grid-light,
  .dist-grid { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj-feat { grid-column: span 1; grid-template-columns: 1fr; }
  .proj-full-grid { grid-template-columns: 1fr; }
  .proj-row { grid-template-columns: 1fr; }
  .craft-split { grid-template-columns: 1fr; }
  .craft-img { height: 320px; min-height: 320px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-intro .container { grid-template-columns: 1fr; gap: 14px; }
  .cert-bar { grid-template-columns: 1fr; }
}

/* ─── PHONE ≤ 640px ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero {
    min-height: 78svh;
    padding: 88px 20px 40px;
  }

  .hero.short {
    min-height: 52svh;
    padding: 88px 20px 40px;
  }

  .hero-body { max-width: 100%; }

  .hero-h1 { font-size: clamp(38px, 12vw, 58px); }

  .hero-p {
    font-size: 20px;
    max-width: 100%;
  }

  .eyebrow {
    font-size: 13px;
    letter-spacing: .16em;
  }

  .btn-row {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .btn-row .btn,
  .btn,
  .btn-dark,
  .btn-ghost,
  .btn-white,
  .btn-outline {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
  }

  .section { padding: 40px 0; }

  .split,
  .about-grid,
  .contact-layout,
  .dist-grid,
  .service-grid,
  .test-grid,
  .test-grid-light,
  .proj-full-grid,
  .proj-row,
  .proj-feat,
  .craft-split,
  .cert-bar,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .proj-grid,
  .stats-row {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .proj-feat { grid-column: span 1; }

  .proj-row > *,
  .proj-feat > *,
  .footer-grid > *,
  .contact-layout > *,
  .about-grid > *,
  .split > *,
  .dist-grid > *,
  .service-grid > *,
  .test-grid > *,
  .test-grid-light > *,
  .cert-bar > * {
    min-width: 0;
  }

  .craft-img,
  .about-img,
  .proj-full-img,
  .proj-img,
  .map-frame {
    width: 100%;
    max-width: 100%;
  }

  .craft-img  { min-height: 240px; height: 240px; }
  .about-img  { height: 320px; }
  .map-frame  { height: 240px; }

  .site-footer {
    padding: 36px 0 20px;
    overflow-x: hidden;
  }

  .footer-grid { margin-bottom: 24px; gap: 24px; }

  .footer-brand {
    text-align: left;
  }

  .footer-brand p {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.7;
  }

  .site-footer h4 {
    font-size: 13px;
    margin-bottom: 10px;
    word-break: break-word;
  }

  .site-footer ul { gap: 6px; }

  .site-footer li {
    font-size: 18px;
    line-height: 1.45;
    word-break: break-word;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
  }

  .footer-bottom p {
    font-size: 16px;
    word-break: break-word;
  }

  .nav-phone {
    font-size: 12px;
    padding: 7px 10px;
  }

  .contact-layout .btn,
  .contact-layout .btn-dark,
  .contact-layout .btn-ghost {
    width: 100%;
    max-width: none;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.3;
    padding: 14px 18px;
  }
}