/* ==========================================================================
   EDGE LANDSCAPES — Design System v2
   Light / editorial. Paper ground, deep-green ink, condensed display type.
   ========================================================================== */

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

:root {
  /* Ground */
  --paper:      #f6f7f4;
  --paper-alt:  #eceee8;
  --white:      #ffffff;

  /* Ink */
  --ink:        #14231c;
  --green:      #1d4531;
  --green-deep: #0d2419;
  --muted:      #5d6d64;
  --line:       #dbe0d9;
  --line-soft:  #e6e9e3;

  /* Warm accent, used sparingly */
  --clay:       #a8815a;

  /* Type */
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body:    'Manrope', system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --pad:     clamp(20px, 5.6vw, 64px);
  --section: clamp(72px, 10vw, 148px);
  --maxw:    1480px;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--green); color: var(--paper); }

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

/* ── Type primitives ───────────────────────────────────────────────────── */

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.02em;
}

h1.display { font-size: clamp(2.9rem, 11vw, 7rem); }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
}
.section-title .thin { font-weight: 600; color: var(--muted); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
}

.body-copy { color: var(--muted); max-width: 62ch; }
.body-copy p + p { margin-top: 1.1rem; }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 1.8rem;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn::after { content: '↗'; font-size: 0.9em; transition: transform 0.25s; }
.btn:hover::after { transform: translate(2px, -2px); }

.btn-solid  { background: var(--green); color: var(--paper); }
.btn-solid:hover { background: var(--green-deep); }

.btn-line   { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn-invert { background: var(--paper); color: var(--green-deep); }
.btn-invert:hover { background: var(--white); }

.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(246,247,244,0.35); }
.btn-ghost-light:hover { background: var(--paper); color: var(--green-deep); }

/* ── Nav ───────────────────────────────────────────────────────────────── */

#nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
#nav.scrolled { border-bottom-color: var(--line); background: rgba(246,247,244,0.94); backdrop-filter: blur(10px); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.15rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo { display: block; flex-shrink: 0; }
.nav-logo img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
}
.nav-links > li > a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.nav-links > li > a:hover { color: var(--green); }
.nav-phone { color: var(--muted) !important; letter-spacing: 0.06em !important; }
.nav-cta { background: var(--green); color: var(--paper) !important; padding: 0.85rem 1.4rem !important; }
.nav-cta:hover { background: var(--green-deep); color: var(--paper) !important; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' +'; font-size: 0.85em; opacity: 0.5; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -1.2rem;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 18px 40px rgba(20,35,28,0.09);
}
.nav-dropdown:hover .dropdown, .nav-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s, background 0.18s;
}
.dropdown a:hover { color: var(--ink); background: var(--paper-alt); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 210;
}
.hamburger span {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.2s;
}
.hamburger span:nth-child(1) { top: 2px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { border-bottom: 1px solid var(--line); }
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: clamp(520px, 78vh, 820px);
}
.hero-copy {
  padding: clamp(48px, 7vw, 104px) clamp(32px, 4.5vw, 72px) clamp(48px, 7vw, 88px) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy h1 { margin: 1.4rem 0 1.6rem; color: var(--ink); }
.hero-copy h1 .accent { color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero-media { position: relative; overflow: hidden; background: var(--paper-alt); }
.hero-media img {
  /* absolutely positioned so a tall portrait source cannot drive the row height —
     in flow it stretched the hero to ~1138px and defeated object-position entirely */
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* the terrace, paving and seating sit low in the frame — bias the crop down */
  object-position: 50% 68%;
}
.hero-caption {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--paper);
  padding: 0.85rem 1.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Marquee / trust strip ─────────────────────────────────────────────── */

.strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 38px) var(--pad);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, auto);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.strip-fact .n {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.01em;
}
.strip-fact .l {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ── Generic section ───────────────────────────────────────────────────── */

.section { padding-block: var(--section); }
.section-alt { background: var(--paper-alt); }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

/* ── Statement ─────────────────────────────────────────────────────────── */

.statement-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.statement-grid .section-title { margin-top: 1.2rem; }

/* ── Services (editorial rows) ─────────────────────────────────────────── */

.svc-list { border-top: 1px solid var(--line); position: relative; }
.svc-row {
  display: grid;
  grid-template-columns: 76px minmax(200px, 1.1fr) 2fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}
.svc-row:hover { color: var(--green); }
.svc-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.svc-name {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
}
.svc-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.7; max-width: 56ch; }
.svc-go {
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.25s, color 0.25s;
}
.svc-row:hover .svc-go { transform: translate(3px, -3px); color: var(--green); }

/* Hover image preview (desktop only) */
.svc-peek {
  position: fixed;
  left: 50%;              /* start centred so the element never hangs off-canvas */
  top: 50%;
  width: 300px;
  height: 380px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 60;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20,35,28,0.22);
}
.svc-peek img { width: 100%; height: 100%; object-fit: cover; }
.svc-peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ── Projects ──────────────────────────────────────────────────────────── */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
}
.proj {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  background: var(--paper-alt);
}
.proj:first-child,
.proj:nth-child(4),
.proj:nth-child(5) { grid-column: span 2; aspect-ratio: 3 / 2; }
.proj img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.proj:hover img { transform: scale(1.05); }
.proj-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,36,25,0.78) 0%, rgba(13,36,25,0.12) 52%, transparent 100%);
}
.proj-label {
  position: absolute;
  left: clamp(16px, 2vw, 26px);
  bottom: clamp(16px, 2vw, 26px);
  right: clamp(16px, 2vw, 26px);
  color: var(--paper);
}
.proj-label .suburb {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}
.proj-label .name {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-top: 0.4rem;
}

/* ── Split panels (residential / commercial) ───────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-panel {
  position: relative;
  min-height: clamp(380px, 46vw, 560px);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
}
.split-panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.split-panel:hover img { transform: scale(1.04); }
.split-panel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,36,25,0.82) 0%, rgba(13,36,25,0.28) 55%, rgba(13,36,25,0.12) 100%);
}
.split-body {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 56px);
  color: var(--paper);
  width: 100%;
}
.split-body .eyebrow { color: rgba(246,247,244,0.78); }
.split-body h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.7rem;
}
.split-body p { font-size: 0.95rem; opacity: 0.88; max-width: 34ch; }
.split-more {
  display: inline-flex; gap: 0.6rem; align-items: center;
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(246,247,244,0.35);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  width: 100%;
}

/* ── Quote band ────────────────────────────────────────────────────────── */

.quote-band { background: var(--green-deep); color: var(--paper); }
.quote-band .eyebrow { color: rgba(246,247,244,0.65); }
.quote-text {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 1.4rem 0 2rem;
}
.quote-who { font-size: 0.82rem; letter-spacing: 0.08em; color: rgba(246,247,244,0.72); }
.quote-who strong { display: block; color: var(--paper); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; margin-bottom: 0.3rem; }
.stars { color: #d9c48f; letter-spacing: 0.25em; font-size: 0.85rem; }

/* ── Process ───────────────────────────────────────────────────────────── */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 3vw, 44px);
}
.step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--line);
  letter-spacing: -0.02em;
}
.step-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  letter-spacing: 0.01em;
  margin: 0.9rem 0 0.6rem;
}
.step-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.75; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: clamp(20px, 2.4vw, 30px) 3rem clamp(20px, 2.4vw, 30px) 0;
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green); }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--muted);
  transition: transform 0.25s;
}
.faq details[open] summary::after { content: '–'; }
.faq-body { padding: 0 3rem clamp(22px, 2.4vw, 32px) 0; color: var(--muted); max-width: 72ch; }

/* ── Areas ─────────────────────────────────────────────────────────────── */

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.suburb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.15rem 1.5rem;
  list-style: none;
}
.suburb-list a {
  display: block;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s;
}
.suburb-list a:hover { color: var(--green); border-color: var(--green); }

/* ── Closing CTA ───────────────────────────────────────────────────────── */

.cta-band {
  background: var(--green);
  color: var(--paper);
  text-align: center;
}
.cta-band .eyebrow { color: rgba(246,247,244,0.7); }
.cta-band .section-title { margin: 1.2rem 0 1.2rem; }
.cta-band p { color: rgba(246,247,244,0.85); max-width: 48ch; margin: 0 auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.4rem; }
.cta-phone {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.4rem;
  color: var(--paper);
  border-bottom: 1px solid rgba(246,247,244,0.4);
  transition: border-color 0.2s;
}
.cta-phone:hover { border-color: var(--paper); }

/* ── Footer ────────────────────────────────────────────────────────────── */

footer { background: var(--paper-alt); border-top: 1px solid var(--line); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 84px);
}
.foot-logo img { height: 24px; width: auto; margin-bottom: 1.2rem; }
.foot-blurb { font-size: 0.86rem; color: var(--muted); max-width: 34ch; }
.foot-col h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.5rem; }
.foot-col a {
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
}
.foot-col a:hover { color: var(--green); }
.foot-base {
  border-top: 1px solid var(--line);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ── Reveal ────────────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .svc-peek { display: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj:first-child,
  .proj:nth-child(4),
  .proj:nth-child(5) { grid-column: span 2; }
  .strip-inner { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .svc-row { grid-template-columns: 56px 1fr auto; }
  .svc-desc { display: none; }
}

@media (max-width: 900px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
    z-index: 205;
  }
  .nav-links.open { transform: none; }
  .nav-links > li > a { font-size: 1rem; letter-spacing: 0.1em; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent;
    display: none; text-align: center; padding-top: 0.4rem;
  }
  .nav-dropdown.open-sub .dropdown { display: block; }
  .nav-cta { padding: 0.9rem 1.6rem !important; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: clamp(40px, 9vw, 64px) var(--pad); }
  .hero-media { aspect-ratio: 4 / 3; }

  .statement-grid, .areas-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero-copy { padding-block: clamp(32px, 7vw, 48px) clamp(32px, 7vw, 48px); }
  .lede { font-size: 1rem; }
  .hero-actions { gap: 0.7rem; margin-top: 1.8rem; }
  .strip-inner { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj:first-child,
  .proj:nth-child(4),
  .proj:nth-child(5) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: space-between; }
  .cta-actions .btn { width: auto; }
}

/* ==========================================================================
   LEGACY MARKUP LAYER
   Services / locations / blog / 404 still use the original class names.
   These rules re-skin that markup in the v2 language so the whole site reads
   as one system without rewriting 49 files of HTML.
   Scoped to `body.legacy` so nothing here can reach the new homepage.
   ========================================================================== */

body.legacy { background: var(--paper); color: var(--ink); font-family: var(--body); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
body.legacy nav#nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.15rem var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
body.legacy .nav-logo img { height: 26px !important; width: auto; display: block; opacity: 1 !important; }
body.legacy .nav-links { display: flex; align-items: center; gap: 2.1rem; list-style: none; }
body.legacy .nav-links > li > a {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding: 0.4rem 0; transition: color 0.2s;
}
body.legacy .nav-links > li > a:hover { color: var(--green); }
body.legacy .nav-phone { color: var(--muted) !important; letter-spacing: 0.06em !important; }
body.legacy .nav-cta {
  background: var(--green); color: var(--paper) !important;
  padding: 0.85rem 1.4rem !important; font-weight: 600 !important;
}
body.legacy .nav-cta:hover { background: var(--green-deep); }
body.legacy .nav-dropdown { position: relative; }
body.legacy .nav-dropdown > a::after { content: ' +'; font-size: 0.85em; opacity: 0.5; }
body.legacy .dropdown-menu {
  position: absolute; top: 100%; left: -1.2rem; min-width: 230px;
  background: var(--white); border: 1px solid var(--line); padding: 0.6rem 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 18px 40px rgba(20,35,28,0.09);
}
body.legacy .nav-dropdown:hover .dropdown-menu,
body.legacy .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
body.legacy .dropdown-menu a {
  display: block; padding: 0.6rem 1.4rem; font-size: 0.82rem; font-weight: 500;
  text-decoration: none; color: var(--muted); transition: color 0.18s, background 0.18s;
}
body.legacy .dropdown-menu a:hover { color: var(--ink); background: var(--paper-alt); }
body.legacy .hamburger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 30px; height: 22px; position: relative; z-index: 210;
}
body.legacy .hamburger span {
  position: absolute; left: 0; height: 2px; width: 100%; background: var(--ink);
  transition: transform 0.3s, opacity 0.2s;
}
body.legacy .hamburger span:nth-child(1) { top: 2px; }
body.legacy .hamburger span:nth-child(2) { top: 10px; }
body.legacy .hamburger span:nth-child(3) { top: 18px; }
body.legacy .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.legacy .hamburger.open span:nth-child(2) { opacity: 0; }
body.legacy .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Page hero (photographic banner) ─────────────────────────────────── */
body.legacy .page-hero {
  position: relative; overflow: hidden;
  min-height: clamp(280px, 38vw, 460px);
  display: flex; align-items: flex-end;
}
body.legacy .page-hero-bg { position: absolute; inset: 0; }
body.legacy .page-hero-overlay {
  position: absolute; inset: 0;
  /* kept light enough that a dusk photo doesn't turn to mud, dark enough
     that the condensed white headline still clears WCAG on a bright one */
  background: linear-gradient(to top, rgba(13,36,25,0.82) 0%, rgba(13,36,25,0.34) 62%, rgba(13,36,25,0.14) 100%);
}
body.legacy .page-hero-content {
  position: relative; z-index: 2; color: var(--paper);
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--pad);
}
body.legacy .page-hero h1 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.9; letter-spacing: -0.02em;
  margin-top: 0.8rem; color: var(--paper);
}
body.legacy .page-hero h1 em { font-style: normal; opacity: 0.72; }
body.legacy .breadcrumb {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(246,247,244,0.72);
}
body.legacy .breadcrumb a { color: inherit; text-decoration: none; }
body.legacy .breadcrumb a:hover { color: var(--paper); }
body.legacy .breadcrumb span { color: var(--paper); }

/* ── Structure ───────────────────────────────────────────────────────── */
/* Gutters live on the section so loose headings (e.g. the blog index) are
   padded too, not only content that happens to sit in a wrapper. */
body.legacy section { padding-block: var(--section); padding-inline: var(--pad); }
body.legacy .container,
body.legacy .service-overview,
body.legacy .features-grid,
body.legacy .why-inner,
body.legacy .faq-grid,
body.legacy .article-wrap,
body.legacy .blog-grid { max-width: var(--maxw); margin: 0 auto; padding-inline: 0; }
body.legacy .faq-grid { max-width: 900px; }
body.legacy .why-inner { max-width: 860px; }
body.legacy .article-wrap { max-width: 760px; }

body.legacy .section-eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
body.legacy .section-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  line-height: 0.9; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem); color: var(--ink);
}
body.legacy .section-title em { font-style: normal; color: var(--muted); }

/* ── Reveal (legacy JS toggles .visible) ─────────────────────────────── */
body.legacy .fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
body.legacy .fade-up.visible { opacity: 1; transform: none; }
body.legacy .fade-up-delay-1 { transition-delay: 0.08s; }
body.legacy .fade-up-delay-2 { transition-delay: 0.16s; }
body.legacy .fade-up-delay-3 { transition-delay: 0.24s; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
body.legacy .btn-primary {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--green); color: var(--paper);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 1.8rem; border: 1px solid transparent; transition: background 0.25s;
}
body.legacy .btn-primary:hover { background: var(--green-deep); }
body.legacy .btn-ghost {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; padding: 1.05rem 1.8rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
body.legacy .btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── Service overview ────────────────────────────────────────────────── */
body.legacy .service-overview {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
body.legacy .service-overview-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
body.legacy .service-overview-text p { color: var(--muted); margin-bottom: 1rem; max-width: 60ch; }

/* ── Feature grid ────────────────────────────────────────────────────── */
body.legacy .features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 40px); margin-top: clamp(48px, 6vw, 88px);
}
body.legacy .feature-item { border-top: 1px solid var(--line); padding-top: 1.4rem; }
body.legacy .feature-line { display: none; }
body.legacy .feature-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem); letter-spacing: 0.01em; margin-bottom: 0.6rem;
}
body.legacy .feature-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.75; }

/* ── Why / FAQ / Nearby (were inline styles, now centralised) ────────── */
body.legacy .why-section { background: var(--paper-alt); }
body.legacy .why-inner { max-width: 860px; }
body.legacy .why-inner h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 0.95; letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}
body.legacy .why-inner p { color: var(--muted); margin-bottom: 1rem; }

body.legacy .faq-section { background: var(--paper); }
body.legacy .faq-grid { max-width: 900px; border-top: 1px solid var(--line); }
body.legacy .faq-item { border-bottom: 1px solid var(--line); padding: clamp(20px, 2.2vw, 28px) 0; }
body.legacy .faq-q {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem); line-height: 1.15;
  color: var(--ink); margin: 0 0 0.7rem;
}
body.legacy .faq-a { color: var(--muted); font-size: 0.92rem; line-height: 1.75; margin: 0; max-width: 72ch; }

body.legacy .nearby-section { background: var(--paper-alt); }
body.legacy .nearby-section a {
  color: var(--green); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid transparent; transition: border-color 0.18s;
}
body.legacy .nearby-section a:hover { border-bottom-color: var(--green); }

/* ── Spec chips ──────────────────────────────────────────────────────── */
body.legacy .spec-item { border-top: 1px solid var(--line); padding-top: 1rem; }
body.legacy .spec-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
body.legacy .spec-value { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; margin-top: 0.3rem; }

/* ── Testimonial ─────────────────────────────────────────────────────── */
body.legacy .testimonial-section {
  background: var(--green-deep); color: var(--paper);
  padding-inline: var(--pad); text-align: left;
}
body.legacy .testimonial-quote {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.03; letter-spacing: -0.015em;
  max-width: 22ch; margin: 0 auto 1.6rem; color: var(--paper);
}
body.legacy .testimonial-quote::before,
body.legacy .testimonial-quote::after { content: none; }
body.legacy .testimonial-author { font-size: 0.82rem; color: rgba(246,247,244,0.72); max-width: 22ch; margin: 0 auto; }
body.legacy .testimonial-author strong {
  display: block; color: var(--paper); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; margin-bottom: 0.3rem;
}

/* ── Closing CTA ─────────────────────────────────────────────────────── */
body.legacy .cta-section { background: var(--green); color: var(--paper); text-align: center; padding-inline: var(--pad); }
body.legacy .cta-section::before { content: none; }
body.legacy .cta-section .section-eyebrow { color: rgba(246,247,244,0.7); }
body.legacy .cta-section .section-title { color: var(--paper); }
body.legacy .cta-section p { color: rgba(246,247,244,0.85); max-width: 48ch; margin: 0 auto; }
body.legacy .cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.4rem; }
body.legacy .cta-section .btn-primary { background: var(--paper); color: var(--green-deep); }
body.legacy .cta-section .btn-primary:hover { background: var(--white); }
body.legacy .cta-phone {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem); text-decoration: none;
  display: inline-flex; align-items: center; padding: 0.6rem 0.4rem;
  color: var(--paper); border-bottom: 1px solid rgba(246,247,244,0.4); transition: border-color 0.2s;
}
body.legacy .cta-phone:hover { border-bottom-color: var(--paper); }

/* ── Footer ──────────────────────────────────────────────────────────── */
body.legacy footer {
  background: var(--paper-alt); border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) var(--pad);
  display: grid; gap: 1.6rem; justify-items: center; text-align: center;
}
body.legacy .footer-logo img { height: 24px !important; width: auto; opacity: 1 !important; }
body.legacy .footer-copy { font-size: 0.8rem; color: var(--muted); line-height: 1.8; }
body.legacy .footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem; justify-content: center; list-style: none; }
body.legacy .footer-links a { font-size: 0.82rem; color: var(--muted); text-decoration: none; transition: color 0.18s; }
body.legacy .footer-links a:hover { color: var(--green); }

/* ── Blog ────────────────────────────────────────────────────────────── */
body.legacy .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); }
body.legacy .blog-card { background: var(--white); border: 1px solid var(--line); text-decoration: none; display: block; transition: border-color 0.25s, transform 0.25s; }
body.legacy .blog-card:hover { border-color: var(--green); transform: translateY(-3px); }
body.legacy .blog-card-img { aspect-ratio: 3 / 2; overflow: hidden; }
body.legacy .blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
body.legacy .blog-card:hover .blog-card-img img { transform: scale(1.05); }
body.legacy .blog-card-body { padding: 1.4rem; }
body.legacy .blog-card-meta, body.legacy .blog-cat, body.legacy .cat {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
body.legacy .blog-card-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 1.25rem; line-height: 1.1; color: var(--ink); margin: 0.6rem 0 0.6rem;
}
body.legacy .blog-card-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

body.legacy .article-wrap { max-width: 760px; }
body.legacy .article-meta { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; }
body.legacy .article-body p, body.legacy .article-body li { color: var(--muted); line-height: 1.85; margin-bottom: 1rem; }
body.legacy .article-body ul, body.legacy .article-body ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
body.legacy .article-body strong { color: var(--ink); font-weight: 600; }
body.legacy .article-body h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -0.015em;
  color: var(--ink); margin: 2.4rem 0 1rem;
}
body.legacy .article-body h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 1.25rem; color: var(--ink); margin: 1.8rem 0 0.7rem;
}
body.legacy .article-cta { background: var(--paper-alt); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); margin-top: 2.6rem; }
body.legacy .article-cta h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; margin-bottom: 0.6rem; }
body.legacy .article-cta p { color: var(--muted); margin-bottom: 1.2rem; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  body.legacy .features-grid { grid-template-columns: repeat(2, 1fr); }
  body.legacy .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body.legacy .hamburger { display: block; }
  body.legacy .nav-links {
    position: fixed; inset: 0; background: var(--paper);
    flex-direction: column; justify-content: center; gap: 1.6rem;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(.2,.7,.2,1); z-index: 205;
  }
  body.legacy .nav-links.open { transform: none; }
  body.legacy .nav-links > li > a { font-size: 1rem; letter-spacing: 0.1em; }
  /* The legacy pages' JS has no submenu toggle, so the dropdown must be
     permanently expanded on mobile or Services becomes unreachable. */
  body.legacy .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; display: block;
    text-align: center; padding-top: 0.4rem;
  }
  body.legacy .dropdown-menu a { padding: 0.45rem 1rem; font-size: 0.86rem; }
  /* full-screen menu must scroll — Services expands it past viewport height */
  body.legacy .nav-links {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 6rem 1.5rem 3rem;
    gap: 1.1rem;
  }
  body.legacy .service-overview { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body.legacy .features-grid, body.legacy .blog-grid { grid-template-columns: 1fr; }
  body.legacy .btn-primary, body.legacy .btn-ghost { width: 100%; justify-content: center; }
  body.legacy .cta-actions .btn-primary { width: auto; }
}

/* ==========================================================================
   PROJECTS / ABOUT / CONTACT / HOW WE QUOTE
   ========================================================================== */

/* ── Breadcrumbs ─────────────────────────────────────────────────────── */
.crumbs {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(246,247,244,0.72);
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.crumbs span { opacity: 0.75; }
.crumbs-dark { color: var(--muted); }
.crumbs-dark a:hover { color: var(--green); }
.crumbs-dark span { color: var(--ink); opacity: 1; }

/* ── Project case study ──────────────────────────────────────────────── */
.pj-hero {
  position: relative; overflow: hidden;
  min-height: clamp(340px, 52vw, 640px);
  display: flex; align-items: flex-end;
}
.pj-hero-media { position: absolute; inset: 0; }
.pj-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.pj-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,36,25,0.86) 0%, rgba(13,36,25,0.36) 60%, rgba(13,36,25,0.14) 100%);
}
.pj-hero-copy {
  position: relative; z-index: 2; color: var(--paper);
  width: 100%; padding-block: clamp(28px, 4vw, 56px);
}
.pj-hero-copy .eyebrow { color: rgba(246,247,244,0.78); margin-top: 1.2rem; }
.pj-hero-copy h1 { margin: 0.7rem 0 0.8rem; color: var(--paper); font-size: clamp(2.4rem, 6vw, 5rem); }
.pj-strap { font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(246,247,244,0.88); max-width: 46ch; }

.pj-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.pj-meta { border-top: 2px solid var(--ink); padding-top: 1.2rem; position: sticky; top: 90px; }
.pj-meta h3 {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem;
}
.pj-meta ul { list-style: none; }
.pj-meta li {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 1.05rem; line-height: 1.35; letter-spacing: 0.01em;
  padding: 0.35rem 0; border-bottom: 1px solid var(--line-soft);
}
.pj-block + .pj-block { margin-top: clamp(28px, 3.4vw, 48px); }
.pj-block h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1; letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
}
.pj-block p { color: var(--muted); max-width: 68ch; }

.pj-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(12px, 1.6vw, 22px); margin-top: 1.4rem;
}
.pj-shot { margin: 0; overflow: hidden; background: var(--paper); }
.pj-shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.pj-next { border-top: 1px solid var(--line); }
.pj-next-link {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.4rem;
  text-decoration: none; margin-top: 1rem; transition: color 0.25s;
}
.pj-next-link:hover { color: var(--green); }
.pj-next-name {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 0.95; letter-spacing: -0.02em;
}
.pj-next-sub { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ── Projects hub cards ──────────────────────────────────────────────── */
.pj-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 32px); }
.pj-card { display: block; text-decoration: none; }
.pj-card-img { display: block; overflow: hidden; background: var(--paper-alt); }
.pj-card-img img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.pj-card:hover .pj-card-img img { transform: scale(1.05); }
.pj-card-body { display: block; padding-top: 1rem; }
.pj-card-sub { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.pj-card-name {
  display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.05; letter-spacing: -0.01em;
  margin: 0.4rem 0 0.4rem; color: var(--ink); transition: color 0.2s;
}
.pj-card:hover .pj-card-name { color: var(--green); }
.pj-card-scope { display: block; font-size: 0.82rem; color: var(--muted); }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-row { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.contact-row:first-child { border-top: 2px solid var(--ink); }
.contact-row h3 {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem;
}
.contact-row p { color: var(--ink); margin-bottom: 0.8rem; }
.contact-link {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem); letter-spacing: 0.01em;
  color: var(--green); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.contact-link:hover { border-bottom-color: var(--green); }
.contact-map { aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; background: var(--paper-alt); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; }

@media (max-width: 1000px) {
  .pj-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pj-grid { grid-template-columns: 1fr; }
  .pj-meta { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pj-card-grid { grid-template-columns: 1fr; }
}

/* Inline link inside running copy — not the large display treatment */
.inline-link {
  color: var(--green); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(29,69,49,0.35); transition: border-color 0.2s;
  white-space: nowrap;
}
.inline-link:hover { border-bottom-color: var(--green); }

/* Map: the address card sits behind the embed, so a blocked or failed
   third-party iframe leaves a usable block rather than a grey rectangle. */
.contact-map { position: relative; }
.contact-map-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.5rem; padding: clamp(20px, 3vw, 36px); background: var(--paper-alt);
}
.contact-map-fallback p { color: var(--ink); font-size: 1rem; }
.contact-map iframe { position: relative; z-index: 1; }
