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

:root {
  --green: #4b665c;
  --green-mid: #4b665c;
  --green-light: #6f8a80;
  --green-pale: #e3ebe8;
  --green-dim: #3f564d;
  --cream: #F7F5F0;
  --cream-dark: #EDE9E2;
  --charcoal: #1A1A18;
  --charcoal-mid: #2C2C2A;
  --text-muted: #6B6B65;
  --text-light: #9A9A94;
  --border: rgba(26,26,24,0.12);
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 20px; height: 20px; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.nav-logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: .02em;
  color: #fff;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}
nav.scrolled .nav-links a {
  color: var(--charcoal);
  opacity: 0.8;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  opacity: 1 !important;
  padding: 9px 22px;
  border-radius: 3px;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-light) !important; }
.nav-phone {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted) !important;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 75vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#hero-video, .hero-bg-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,14,13,0.12) 0%, rgba(12,14,13,0.30) 45%, rgba(12,14,13,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 72px;
}
.hero-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 9vw, 70px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--white);
  max-width: 760px;
}
.hero-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.82);
}
.hero-sub {
  margin-top: 28px;
  max-width: 640px;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.7); }

/* ── TICKER ── */
.ticker {
  background: var(--green);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 32s linear infinite;
  width: max-content;
}
.ticker-item {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.ticker-item::after {
  content: '·';
  color: rgba(255,255,255,0.35);
  font-size: 16px;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION COMMONS ── */
section { padding: 100px 48px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-kicker::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--green);
}
h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
h2.section-title em {
  font-style: italic;
  color: var(--text-muted);
}

/* ── HOW WE WORK ── */
.process-section { background: var(--cream); }
.process-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.process-intro-right {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  padding-top: 12px;
}
.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.process-card {
  background: var(--white);
  padding: 48px 40px;
  position: relative;
}
.process-num {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 400;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}
.process-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--charcoal);
}
.process-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.process-card:hover { background: #fafaf8; }

/* ── STATS ── */
.stats-section { background: var(--green); padding: 72px 48px; }
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 0 48px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── WHO WE SERVE ── */
.serve-section { background: var(--white); }
.serve-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.serve-img-wrap { position: relative; }
.serve-img-wrap img {
  width: 100%;
  display: block;
  border-radius: 3px;
  object-fit: cover;
  min-height: 520px;
}
.serve-img-badge {
  position: absolute;
  left: 28px;
  bottom: 28px;
  background: rgba(255,255,255,0.95);
  border-radius: 3px;
  padding: 14px 16px;
  border: 1px solid var(--border);
}
.serve-img-badge strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.serve-img-badge span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}
.serve-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.serve-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--charcoal);
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--cream);
}
.serve-quote {
  margin-top: 32px;
  padding-left: 20px;
  border-left: 2px solid var(--green);
}
.serve-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  line-height: 1.4;
  color: var(--charcoal);
}
.serve-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── TERRITORY ── */
.territory-section { background: var(--cream); }
.territory-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 100px;
  align-items: start;
}
.territory-map-wrap {
  padding: 8px 0 0;
}
.territory-map {
  display: block;
  width: 100%;
  height: auto;
  max-width: 460px;
  overflow: visible;
}
.map-state {
  fill: var(--green);
  fill-opacity: 0.13;
  stroke: var(--green);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: fill-opacity 0.3s ease;
}
.territory-map:hover .map-state { fill-opacity: 0.09; }
.territory-map .map-state:hover { fill-opacity: 0.32; }
.map-label {
  fill: var(--green-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-anchor: middle;
  pointer-events: none;
}
.territory-map-note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  max-width: 460px;
}
.territory-right h3 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--charcoal);
}
.territory-right p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 18px;
}

/* ── ABOUT ── */
.about-section { background: var(--white); }
.about-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 100px;
  align-items: start;
}
.about-portrait { position: relative; }
.about-portrait img {
  width: 100%;
  display: block;
  border-radius: 3px;
}
.about-portrait-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 3px;
}
.about-portrait-caption strong {
  display: block;
  font-size: 14px;
}
.about-portrait-caption span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.about-right p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
}
.differentiators {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.diff-item h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.diff-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.diff-item p {
  font-size: 13.5px;
  margin: 0;
  line-height: 1.75;
}

/* ── CTA BAND ── */
.cta-section {
  background: var(--green-dim);
  padding: 80px 48px;
}
.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}
.cta-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}
.cta-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.7);
}
.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.68);
  line-height: 1.8;
  margin-top: 20px;
  max-width: 600px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.btn-white, .btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-white {
  background: var(--white);
  color: var(--charcoal);
}
.btn-white:hover { background: rgba(255,255,255,0.92); }
.btn-outline-white {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); }

/* ── CONTACT ── */
.contact-section { background: var(--cream); }
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: start;
}
.contact-info p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}
.contact-details {
  margin-top: 36px;
  display: grid;
  gap: 18px;
}
.contact-detail {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.contact-detail label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 5px;
}
.contact-detail span,
.contact-detail a {
  font-size: 16px;
  color: var(--charcoal);
  text-decoration: none;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.form-submit:hover { background: var(--green-light); }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  padding: 60px 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.footer-brand p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}
.footer-logo-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-top: 3px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  section { padding: 72px 24px; }
  .hero-content { padding: 0 24px 64px; }
  .process-intro { grid-template-columns: 1fr; gap: 24px; }
  .process-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .stat-item { border-right: none; padding: 0; }
  .serve-layout,
  .territory-layout,
  .about-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .differentiators { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .hero-headline { font-size: 42px; }
  .stats-section { padding: 48px 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .territory-map, .territory-map-note { max-width: 100%; }
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── LIVE OVERRIDES ──────────────────────────────────────────────
   These were previously an inline <style> block in index.html.
   Vite hoists the bundled stylesheet link to the end of <head>, so
   in the production build this file loaded *after* that block and
   silently beat every non-!important rule in it (notably
   .hero-content margin-top and .hero min-height). Keeping them here,
   last in the single stylesheet, makes dev and prod behave the same.
   The :root colour block was dropped: it duplicated the values above.
─────────────────────────────────────────────────────────────────── */
#main-nav {
  height: 120px;
  min-height: 120px;
}
.brand-logo {
  display: block;
  height: 100px;
  width: auto;
  transition: height 0.28s ease;
}
.nav-logo {
  padding-top: 15px;
  transition: padding-top 0.28s ease;
}
.brand-logo-dark { display: none; }
nav.scrolled .nav-logo { padding-top: 0; }
nav.scrolled .brand-logo { height: 75px; }
nav.scrolled .brand-logo-light { display: none; }
nav.scrolled .brand-logo-dark { display: block; }

/* height:auto + min-height lets the hero grow instead of letting
   bottom-aligned content overflow upward under the fixed nav. */
.hero {
  height: auto;
  min-height: max(90vh, 675px);
  padding: 20px 24px;
}
.hero-content {
  padding: 0 48px 40px;
  margin-top: 150px;
}
.hero-headline { font-size: clamp(56px, 9vw, 70px); }
section { padding: 100px 24px; }

.cpp-word {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-variation-settings: 'wght' 900;
}
.footer-brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  #main-nav { height: 120px; min-height: 120px; }
  .brand-logo { height: 88px; }
  .nav-logo { padding-top: 15px; }
  nav.scrolled .brand-logo { height: 58px; }
  nav.scrolled .nav-logo { padding-top: 0; }
  .hero { min-height: max(90vh, 675px); padding: 20px 24px; }
  .hero-content { padding: 0 24px 64px; margin-top: 150px; }
  section { padding: 100px 24px; }
  .footer-brand-logo { height: 44px; }
}
