
/* ============================================================
   DESIGN SYSTEM
   ============================================================ */
:root {
  --forest:   #1c3829;
  --forest-md:#264d38;
  --forest-lt:#3a6b4e;
  --slate:    #2e3d35;
  --sage:     #dde8e1;
  --sage-lt:  #f0f5f2;
  --cream:    #f7f4ee;
  --gold:     #b8924a;
  --gold-lt:  #d4b06e;
  --white:    #ffffff;
  --ink:      #1a2420;
  --mid:      #4a5c52;
  --light:    #8a9e93;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Barlow', sans-serif;
  --font-label:   'Barlow Condensed', sans-serif;

  --max: 1180px;
  --radius: 3px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

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

/* ── TOPO TEXTURE ─────────────────────────────────────────── */
.topo-bg {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 38px,
      rgba(255,255,255,0.03) 38px,
      rgba(255,255,255,0.03) 39px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 58px,
      rgba(255,255,255,0.02) 58px,
      rgba(255,255,255,0.02) 59px
    );
}

/* ── PAGES ────────────────────────────────────────────────── */
/* Multi-page site — each page is its own HTML file */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
main { animation: fadeIn 0.4s ease; }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
}
.nav-logo-main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.nav-logo-sub {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-lt);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-links a.active { color: var(--gold-lt); }

.nav-cta {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; color: var(--ink) !important; }

/* ── SHARED LAYOUT ────────────────────────────────────────── */
.section {
  padding: 90px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.section-sm { padding: 60px 32px; }
.full-width { max-width: none; padding-left: 0; padding-right: 0; }

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.4rem; font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { font-size: 1rem; line-height: 1.75; color: var(--mid); }

.lead {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--slate);
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0 28px;
}

.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-lt); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-lt); color: var(--ink); }
.btn-outline { background: transparent; border: 1.5px solid var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid #e0e8e3;
  border-radius: 6px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(28,56,41,0.1); transform: translateY(-2px); }

.service-card {
  background: var(--white);
  border: 1px solid #dde8e1;
  border-top: 3px solid var(--forest);
  border-radius: 6px;
  padding: 36px 32px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.service-card:hover { box-shadow: 0 10px 40px rgba(28,56,41,0.12); transform: translateY(-3px); }
.service-card .card-label {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.service-card h3 { font-size: 1.25rem; color: var(--forest); margin-bottom: 12px; }
.service-card p { font-size: 0.92rem; margin-bottom: 20px; }
.service-card .rate {
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mid);
  padding: 8px 14px;
  background: var(--sage-lt);
  border-radius: 3px;
  display: inline-block;
}

/* ── STAT BLOCKS ──────────────────────────────────────────── */
.stat-block {
  text-align: center;
  padding: 32px 20px;
}
.stat-block .stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-block .stat-label {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── CREDENTIAL BADGES ────────────────────────────────────── */
.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cred-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--slate);
}
.cred-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--forest);
  color: var(--white);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(58,107,78,0.4) 0%, transparent 70%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.012) 40px,
      rgba(255,255,255,0.012) 41px
    );
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(184,146,74,0.15);
  pointer-events: none;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 32px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  color: var(--white);
  max-width: 680px;
  font-weight: 300;
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--gold-lt); }

.hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 42px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-creds {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 680px;
}
.hero-cred {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-cred strong {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.hero-cred span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* ── BAND / CALLOUT STRIPS ────────────────────────────────── */
.band-dark {
  background: var(--forest);
  color: var(--white);
  padding: 64px 32px;
}
.band-dark h2 { color: var(--white); }
.band-dark p { color: rgba(255,255,255,0.72); }

.band-sage {
  background: var(--sage);
  padding: 64px 32px;
}

.band-cream {
  background: var(--cream);
  padding: 64px 32px;
}

/* ── QUOTE / CALLOUT BOX ──────────────────────────────────── */
.callout-box {
  background: var(--forest);
  color: var(--white);
  border-radius: 6px;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}
.callout-box::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 12rem;
  color: rgba(184,146,74,0.12);
  position: absolute;
  top: -20px;
  left: 20px;
  line-height: 1;
  pointer-events: none;
}
.callout-box blockquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.callout-box cite {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-lt);
  font-style: normal;
}

/* ── FIRM MATCH ───────────────────────────────────────────── */
.firm-match {
  background: var(--white);
  border: 1px solid #dde8e1;
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin-bottom: 12px;
}
.firm-match strong {
  font-family: var(--font-label);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--forest);
}
.firm-match p { font-size: 0.88rem; margin-top: 4px; }

/* ── PROCESS STEPS ────────────────────────────────────────── */
.process-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid #e0e8e3;
}
.process-step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  text-align: right;
}

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--forest);
  padding: 80px 32px 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.012) 40px,
    rgba(255,255,255,0.012) 41px
  );
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-hero span { /* eyebrow */ }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  max-width: 760px;
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255,255,255,0.68);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ── TAG PILL ──────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--sage);
  color: var(--forest-md);
  margin: 3px 3px 3px 0;
}
.tag-gold { background: rgba(184,146,74,0.12); color: var(--gold); }

/* ── CONTACT FORM ──────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d0dcd5;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--forest-lt);
  box-shadow: 0 0 0 3px rgba(58,107,78,0.12);
}
.form-textarea { min-height: 130px; resize: vertical; }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 64px 32px 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-brand .tagline {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold-lt); }
.footer-contact p { font-size: 0.88rem; line-height: 2; }
.footer-contact a {
  color: var(--gold-lt);
  text-decoration: none;
}
.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Inline grids that use style="" attributes — need class-based override */
  .grid-2-inline { grid-template-columns: 1fr !important; }
  .hero-split-grid { grid-template-columns: 1fr !important; min-height: auto !important; }

  .hero > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .hero > div > div[style*="border-right"] { min-height: 280px !important; }
  .hero-creds { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  /* Client type "Who We Serve" strip — 2 columns on tablet */
  .client-type-grid { grid-template-columns: 1fr 1fr; }
  .client-type { border-right: 1px solid #dde8e1; border-bottom: 1px solid #dde8e1; }
  .client-type:nth-child(2n) { border-right: none; }
  .client-type:nth-last-child(-n+2) { border-bottom: none; }

  /* Hamburger visible; inline nav becomes dropdown */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--forest);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0 16px;
    gap: 2px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.85rem;
  }
  .nav-links a.nav-cta {
    margin: 8px 16px 0;
    border-radius: var(--radius) !important;
    text-align: center;
    padding: 12px 20px !important;
  }
  /* Remove hide-md since mobile menu shows all items */
  .hide-md { display: block; }
}

@media (max-width: 600px) {
  .section { padding: 60px 20px; }
  .hero-inner { padding: 80px 20px; }
  .nav-inner { padding: 0 20px; }
  .hero-creds { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  /* All inline grids collapse to single column */
  .grid-2-inline { grid-template-columns: 1fr !important; }

  /* Client type grid — single column on mobile */
  /*.client-type-grid { grid-template-columns: 1fr; }
  .client-type { border-right: none !important; border-bottom: 1px solid #dde8e1; }
  .client-type:last-child { border-bottom: none; }*/

   .client-type-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow: visible;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    border-radius: 6px;
  }
  .client-type {
    flex: 0 0 78vw;
    scroll-snap-align: start;
    border-right: 1px solid #dde8e1 !important;
    border-bottom: none !important;
  }
  .client-type:last-child { border-right: none !important; }

  /* Landcrafting photo strip — stack on mobile */
  .lc-photo-strip { grid-template-columns: 1fr !important; height: auto !important; }
  .lc-photo-strip > div { height: 200px !important; border-right: none !important; border-bottom: 1px solid rgba(184,146,74,0.2); }
  .lc-photo-strip > div:last-child { border-bottom: none; }

  /* Callout box — reduce padding on small screens */
  .callout-box { padding: 28px 24px; }

  /* Cards — reduce padding */
  .card { padding: 24px 20px; }

  /* Band sections — reduce horizontal padding */
  .band-dark, .band-sage, .band-cream { padding: 48px 20px; }
}

/* ── SCROLL ANIMATION ─────────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
/* JS adds .js-reveal-ready to <html> enabling animations */
html.js-animations .reveal {
  opacity: 0;
  transform: translateY(24px);
}
html.js-animations .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PAGE: HOME
   ============================================================ */
.capability-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #dde8e1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--white);
}
.capability-row:hover { box-shadow: 0 4px 20px rgba(28,56,41,0.08); }
.cap-left {
  padding: 28px 32px;
  border-right: 1px solid #dde8e1;
}
.cap-left h4 { color: var(--forest); font-size: 1.05rem; }
.cap-right {
  padding: 28px 32px;
  background: var(--sage-lt);
}
.cap-right p { font-size: 0.9rem; }

.client-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #dde8e1;
  border-radius: 6px;
  overflow: hidden;
}
.client-type {
  padding: 36px 28px;
  border-right: 1px solid #dde8e1;
  text-align: center;
  background: var(--white);
  transition: background 0.2s;
}
.client-type:last-child { border-right: none; }
.client-type:hover { background: var(--sage-lt); }
.client-type .ct-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}
.client-type strong {
  display: block;
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 6px;
}
.client-type p { font-size: 0.83rem; }

/* ============================================================
   PAGE: ENVIRONMENTAL CONSULTING
   ============================================================ */
.expertise-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid #dde8e1;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.expertise-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--forest-lt));
}
.expertise-card:hover { box-shadow: 0 8px 32px rgba(28,56,41,0.1); transform: translateY(-2px); }
.expertise-card .ec-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--sage);
  position: absolute;
  top: 16px; right: 24px;
  line-height: 1;
}
.expertise-card h3 { color: var(--forest); margin-bottom: 12px; font-size: 1.2rem; }
.expertise-card p { font-size: 0.92rem; margin-bottom: 16px; }

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.tier-1b { background: var(--forest); color: var(--white); }
.tier-2b { background: var(--sage); color: var(--forest-md); }

/* ============================================================
   PAGE: LANDCRAFTING
   ============================================================ */
.lc-service {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid #e0e8e3;
}
.lc-service:last-child { border-bottom: none; }
.lc-icon {
  width: 64px;
  height: 64px;
  background: var(--sage);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.lc-service h3 { color: var(--forest); font-size: 1.15rem; margin-bottom: 8px; }

/* ============================================================
   PAGE: AQUACULTURE
   ============================================================ */
.aq-feature {
  background: var(--white);
  border: 1px solid #dde8e1;
  border-radius: 6px;
  padding: 32px;
  text-align: center;
}
.aq-feature .af-icon {
  width: 56px;
  height: 56px;
  background: rgba(28,56,41,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.aq-feature h3 { color: var(--forest); font-size: 1.1rem; margin-bottom: 10px; }
.aq-feature p { font-size: 0.9rem; }

/* ============================================================
   PAGE: ABOUT
   ============================================================ */
.cv-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e8e3;
}
.cv-item:last-child { border-bottom: none; }
.cv-date {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding-top: 4px;
}
.cv-item h4 { color: var(--forest); font-size: 1rem; margin-bottom: 4px; }
.cv-item p { font-size: 0.9rem; }

.cert-card {
  background: var(--sage-lt);
  border: 1px solid #c8ddd2;
  border-radius: 6px;
  padding: 24px;
}
.cert-card .cert-status {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.cert-card h4 { color: var(--forest); font-size: 1rem; margin-bottom: 6px; }
.cert-card p { font-size: 0.88rem; }

/* ── PHOTO PLACEHOLDERS ──────────────────────────────────────────────────── */
.photo-placeholder {
  background: linear-gradient(135deg, #2a4a37 0%, #1c3829 60%, #152e20 100%);
  border: 2px dashed rgba(184,146,74,0.45);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}
.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.02) 12px,
    rgba(255,255,255,0.02) 13px
  );
}
.ph-icon {
  font-size: 2rem;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}
.ph-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  position: relative;
  z-index: 1;
}
.ph-direction {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  line-height: 1.55;
  max-width: 240px;
  position: relative;
  z-index: 1;
}
.ph-size {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(184,146,74,0.6);
  border: 1px solid rgba(184,146,74,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

/* Logo mark placeholder in nav */
.nav-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(184,146,74,0.06);
  margin-right: 12px;
  font-family: var(--font-label);
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.2;
}

/* Hero overlay when photo is present */
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 42, 30, 0.72);
  z-index: 1;
}

/* Photo + text split utility */
.photo-text-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 480px;
}
.photo-text-split .split-photo {
  position: relative;
  min-height: 400px;
}
.photo-text-split .split-photo .photo-placeholder {
  height: 100%;
  border-radius: 0;
  border: none;
  border-right: 2px dashed rgba(184,146,74,0.35);
}
.photo-text-split .split-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .photo-text-split { grid-template-columns: 1fr; }
  .photo-text-split .split-photo { min-height: 280px; }
  .photo-text-split .split-photo .photo-placeholder { border-right: none; border-bottom: 2px dashed rgba(184,146,74,0.35); }
  .photo-text-split .split-content { padding: 48px 32px; }
}

/* About headshot frame */
.headshot-frame {
  position: relative;
}
.headshot-frame::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  z-index: 0;
  opacity: 0.3;
}
.headshot-frame .photo-placeholder {
  position: relative;
  z-index: 1;
}


/* ── MOBILE RESPONSIVE — 900px ────────────────────────────── */
/* Override inline style="" grids that CSS classes can't reach */
@media (max-width: 900px) {
  /* All inline 2-col and 3-col grids → single column */
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce large inline gaps */
  [style*="gap:64px"], [style*="gap: 64px"] { gap: 28px !important; }
  [style*="gap:72px"], [style*="gap: 72px"] { gap: 28px !important; }

  /* Hero split — stack photo on top of content */
  .hero-split-grid > div[style*="min-height:500px"] {
    min-height: 280px !important;
  }
  [style*="padding:80px 56px"] {
    padding: 48px 24px !important;
  }

  /* Capability rows → stack */
  .capability-row { grid-template-columns: 1fr; }
  .cap-left { border-right: none; border-bottom: 1px solid #dde8e1; }

  /* Process steps — ensure readable */
  .process-step { gap: 16px; }

  /* Contact page — stack cards */
  [style*="display:flex"][style*="gap:20px"][style*="align-items:center"] {
    flex-direction: row;
  }
}

/* ── MOBILE RESPONSIVE — 600px (phone) ───────────────────── */
@media (max-width: 600px) {
  /* Typography scaling */
  h1 { font-size: 1.6rem !important; line-height: 1.25 !important; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1.05rem !important; }
  .lead { font-size: 0.92rem !important; }

  /* Hero content padding */
  .page-hero-inner { padding: 48px 20px 40px !important; }
  .hero-inner { padding: 48px 20px !important; }

  /* Buttons — full width on mobile for fat-finger friendliness */
  .btn { 
    min-height: 48px;
    font-size: 0.82rem;
    padding: 14px 20px;
    justify-content: center;
    width: 100%;
  }
  /* Button groups — stack vertically */
  .hero-actions,
  [style*="display:flex"][style*="gap:16px"][style*="justify-content:center"],
  [style*="display:flex"][style*="gap:12px"] {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100%;
  }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Stats band — 2 columns on phone */
  .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .stat-block { padding: 20px 12px; }
  .stat-num { font-size: 1.4rem; }

  /* Form elements — touch-friendly sizing */
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* prevents iOS zoom on focus */
    min-height: 48px;
    padding: 12px 14px;
  }
  .form-textarea { min-height: 100px; }
  .form-label { font-size: 0.85rem; }

  /* Contact info cards — stack vertically */
  [style*="display:flex"][style*="gap:20px"][style*="align-items:center"] {
    flex-direction: row !important;
    gap: 14px !important;
  }

  /* Credential grids */
  .cert-card { padding: 14px; }
  .cert-card h4 { font-size: 0.88rem; }

  /* CV timeline */
  .cv-item { flex-direction: column; gap: 4px; }
  .cv-date { min-width: auto; }

  /* Landcrafting service blocks */
  .lc-service { flex-direction: column; gap: 12px; }
  .lc-icon { font-size: 1.6rem; }

  /* Tags — wrap nicely */
  .tag { font-size: 0.68rem; padding: 4px 10px; }

  /* Footer — single column */
  .footer-inner { grid-template-columns: 1fr !important; gap: 28px; }
  .footer-brand { text-align: center; }
  .footer-col ul { padding-left: 0; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }

  /* Callout box */
  .callout-box blockquote { font-size: 0.95rem !important; }

  /* Firm match blocks */
  .firm-match { padding: 14px 0; }

  /* Photo strips — show 1 at a time */
  .lc-photo-strip > div { height: 180px !important; }

  /* Reduce section padding inside bands */
  .section-sm { padding: 48px 20px; }
  .band-dark, .band-sage, .band-cream { padding: 40px 16px; }
  [style*="max-width:var(--max)"][style*="padding:0 32px"] {
    padding: 0 16px !important;
  }
}

/* ── VERY SMALL SCREENS — 380px ──────────────────────────── */
@media (max-width: 380px) {
  h1 { font-size: 1.35rem !important; }
  .nav-logo-main { font-size: 0.82rem; }
  .nav-logo-sub { font-size: 0.6rem; }
  .nav-logo-mark { width: 30px !important; height: 28px !important; }
  .stat-num { font-size: 1.2rem; }
  .grid-4 { grid-template-columns: 1fr !important; }
  .hero-cred { padding: 12px; }
}

/* ── DESKTOP ENHANCEMENTS ────────────────────────────────── */
@media (min-width: 1200px) {
  /* Constrain max content width for readability */
  .section { max-width: var(--max); margin-left: auto; margin-right: auto; }
}

/* ── TOUCH TARGET ACCESSIBILITY ──────────────────────────── */
/* Ensure all interactive elements meet 44x44px minimum */
a, button, [role="button"], input[type="submit"] {
  min-height: 44px;
}
.nav-links a { min-height: 44px; display: flex; align-items: center; }
.footer-col a { min-height: 36px; display: inline-flex; align-items: center; }

/* ── ACCESSIBILITY ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .reveal { transition: none !important; }
}
