/* ============================================================
   BRIDGEMONT FAMILY CAPITAL — Design System
   Colors & type from official brand theme (branding_template.potx)
   ============================================================ */

:root {
  --green:        #194132;
  --green-deep:   #10291F;
  --green-soft:   #24523F;
  --offwhite:     #F0EEE6;
  --paper:        #F7F6F1;
  --muted:        #E5E3DA;
  --sage:         #9BAF78;
  --sage-light:   #BCCAA3;
  --cognac:       #A9622F;
  --cognac-deep:  #8F5125;
  --gray:         #737373;
  --silver:       #A8A8A8;
  --charcoal:     #454545;
  --white:        #FFFFFF;

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans:  "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur:        0.9s;

  --nav-h: 96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  background: var(--offwhite);
  color: var(--charcoal);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--offwhite); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 6px; border: 2px solid var(--offwhite); }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ---------- Topographic background ---------- */
.topo-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("/images/topo-pattern-web.png");
  background-size: 620px; background-repeat: repeat;
  opacity: 0.05;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--offwhite);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
  transition: transform 0.9s var(--ease-out), visibility 0s 0.9s;
}
.preloader.is-done { transform: translateY(-100%); visibility: hidden; }
.preloader__mark { width: 92px; height: auto; overflow: visible; fill: var(--green); }
.preloader__mark use {
  opacity: 0;
  transform: translateY(18px);
  animation: pl-rise 1.1s var(--ease-out) 0.15s forwards;
}
.preloader__word {
  font-family: var(--sans); font-weight: 600; color: var(--green);
  font-size: 13px; letter-spacing: 0.42em; text-indent: 0.42em; text-transform: uppercase;
  opacity: 0;
  animation: pl-fade 1s var(--ease-soft) 0.55s forwards;
}
.preloader__line {
  width: 0; height: 1px; background: var(--sage);
  animation: pl-line 1.2s var(--ease-out) 0.4s forwards;
}
@keyframes pl-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes pl-fade { to { opacity: 1; } }
@keyframes pl-line { to { width: 180px; } }

/* Page transition veil */
.veil {
  position: fixed; inset: 0; z-index: 999;
  background: var(--green);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}
.veil.is-active { transform: scaleY(1); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 64px);
  transition: background 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft), padding 0.45s var(--ease-soft);
}
.nav--light { color: var(--white); }
.nav--solid, .nav.is-scrolled {
  background: rgba(240, 238, 230, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(25, 65, 50, 0.08), 0 12px 32px -18px rgba(25, 65, 50, 0.25);
  color: var(--green);
  padding-top: 14px; padding-bottom: 14px;
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__mark { height: 52px; width: auto; transition: height 0.45s var(--ease-soft), fill 0.45s var(--ease-soft); fill: var(--green); }
.nav.is-scrolled .nav__mark { height: 42px; }
.nav--light:not(.is-scrolled) .nav__mark { fill: var(--white); }
.nav.is-scrolled .nav__mark, .nav--solid .nav__mark { fill: var(--green); }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1.18; }
.nav__wordmark b {
  font-family: var(--sans); font-weight: 600; font-size: 15.5px; letter-spacing: 0.14em;
}
.nav__wordmark span {
  font-family: var(--sans); font-weight: 500; font-size: 10.5px; letter-spacing: 0.3em;
  opacity: 0.85;
}
.nav--light:not(.is-scrolled) .nav__wordmark { color: var(--white); }
.nav.is-scrolled .nav__wordmark, .nav--solid .nav__wordmark { color: var(--green); }

.nav__links { display: flex; gap: clamp(20px, 3vw, 40px); align-items: center; }
.nav__links a {
  position: relative;
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--sage);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover { color: var(--sage); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.nav__llp {
  border: 1px solid currentColor;
  padding: 8px 16px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav__links a.nav__llp::after { display: none; }
.nav--light:not(.is-scrolled) .nav__links a.nav__llp:hover { background: var(--offwhite); color: var(--green); border-color: var(--offwhite); }
.nav.is-scrolled .nav__links a.nav__llp:hover { background: var(--green); color: var(--offwhite); border-color: var(--green); }

/* Hamburger */
.nav__burger {
  display: none; flex-direction: column; gap: 6px;
  width: 36px; padding: 4px; z-index: 130;
}
.nav__burger span {
  display: block; height: 2px; width: 100%;
  background: currentColor; border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s, background 0.3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95; /* below .nav (100) so the burger stays reachable */
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  clip-path: circle(0% at calc(100% - 46px) 46px);
  transition: clip-path 0.7s var(--ease-out);
  visibility: hidden;
}
.mobile-menu::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/images/topo-pattern-web.png");
  background-size: 480px; opacity: 0.07;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 46px) 46px); visibility: visible; }
.mobile-menu a {
  font-family: var(--serif); font-size: clamp(30px, 7vw, 42px); color: var(--offwhite);
  padding: 10px 0; position: relative;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-soft), transform 0.6s var(--ease-out), color 0.3s;
}
.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover { color: var(--sage-light); }
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.18s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.26s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.34s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.42s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.50s; }
.mobile-menu__foot {
  position: absolute; bottom: 38px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(240, 238, 230, 0.5);
}

/* ============================================================
   BUTTONS & LABELS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.22em; text-indent: 0.22em; text-transform: uppercase;
  padding: 20px 38px;
  position: relative; overflow: hidden;
  transition: color 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft), background 0.45s;
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn svg { width: 17px; height: 17px; transition: transform 0.45s var(--ease-out); }
.btn:hover svg { transform: translateX(6px); }

.btn--ghost-light { border: 1px solid rgba(255,255,255,0.45); color: var(--white); backdrop-filter: blur(4px); }
.btn--ghost-light::before { background: var(--offwhite); }
.btn--ghost-light:hover { color: var(--green); border-color: var(--offwhite); }

.btn--ghost-sage { border: 1px solid var(--sage); color: var(--sage); }
.btn--ghost-sage::before { background: var(--sage); }
.btn--ghost-sage:hover { color: var(--green-deep); }

.btn--solid { background: var(--green); color: var(--offwhite); border: 1px solid var(--green); }
.btn--solid::before { background: var(--cognac); }
.btn--solid:hover { border-color: var(--cognac); color: var(--white); }

.btn--ghost-green { border: 1px solid var(--green); color: var(--green); }
.btn--ghost-green::before { background: var(--green); }
.btn--ghost-green:hover { color: var(--offwhite); }

.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cognac);
}
.label::before { content: ""; width: 34px; height: 1px; background: var(--cognac); }
.label--center::after { content: ""; width: 34px; height: 1px; background: var(--cognac); }
.label--sage { color: var(--sage); }
.label--sage::before, .label--sage::after { background: var(--sage); }
.label--badge {
  border: 1px solid rgba(255,255,255,0.35); color: var(--sage-light);
  padding: 9px 18px; backdrop-filter: blur(4px);
}
.label--badge::before { display: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-family: var(--serif); font-weight: 500; color: var(--green);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.12; letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--cognac); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--gray); line-height: 1.75; }
.body-copy p { font-size: clamp(16.5px, 1.35vw, 19px); color: #4F4F4B; line-height: 1.8; }
.body-copy p + p { margin-top: 1.35em; }
.body-copy h3 { font-size: clamp(21px, 1.9vw, 26px); color: var(--green); font-weight: 600; margin: 1.7em 0 0.5em; }
.body-copy h3:first-child { margin-top: 0; }

.rule { width: 76px; height: 2px; background: var(--cognac); margin: 28px 0; border: none; }
.rule--center { margin-left: auto; margin-right: auto; }
.rule--sage { background: var(--sage); }

/* ============================================================
   LAYOUT
   ============================================================ */
.section { position: relative; z-index: 1; padding: clamp(90px, 11vw, 150px) clamp(24px, 5vw, 64px); }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--muted { background: var(--muted); }
.section--green { background: var(--green); color: var(--offwhite); }
.section--flush { padding: 0; }
.container { max-width: 1280px; margin: 0 auto; }
.container--narrow { max-width: 880px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); align-items: center; }

/* Framed image w/ offset plate */
.frame { position: relative; height: clamp(420px, 56vw, 620px); }
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(25, 65, 50, 0.07);
  transform: translate(18px, -18px);
  transition: transform 0.8s var(--ease-out);
}
.frame--left::before { transform: translate(-18px, 18px); }
.frame:hover::before { transform: translate(10px, -10px); }
.frame--left:hover::before { transform: translate(-10px, 10px); }
.frame__inner { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.frame__inner img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transform: scale(1.06);
  transition: filter 0.9s var(--ease-soft), transform 1.4s var(--ease-out);
}
.frame:hover .frame__inner img { filter: grayscale(0); transform: scale(1); }
.frame__caption {
  position: absolute; left: 0; bottom: -14px; z-index: 2;
  background: var(--green); color: var(--offwhite);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 12px 22px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0 24px;
}
.hero__media { position: absolute; inset: -1px; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-zoom 14s var(--ease-soft) forwards;
  will-change: transform;
}
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(12, 28, 21, 0.42) 0%, rgba(12, 28, 21, 0.12) 45%, rgba(12, 28, 21, 0.62) 100%);
}
.hero__contours { position: absolute; inset: 0; z-index: 2; opacity: 0.4; pointer-events: none; }
.hero__contours path {
  fill: none; stroke: rgba(240, 238, 230, 0.5); stroke-width: 1.4;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: contour-draw 7s var(--ease-soft) 0.8s forwards;
}
.hero__contours path:nth-child(2) { animation-delay: 1.5s; }
.hero__contours path:nth-child(3) { animation-delay: 2.2s; }
@keyframes contour-draw { to { stroke-dashoffset: 0; } }

.hero__content { position: relative; z-index: 3; max-width: 1000px; text-align: center; color: var(--white); }
.hero__kicker {
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.46em; text-indent: 0.46em; text-transform: uppercase;
  color: var(--sage-light); margin-bottom: 30px;
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 7.6vw, 96px);
  line-height: 1.06; letter-spacing: -0.012em;
  text-shadow: 0 4px 38px rgba(10, 24, 18, 0.45);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__sub {
  margin: 34px auto 0; max-width: 600px;
  font-size: clamp(18px, 1.8vw, 22px); font-weight: 400;
  color: rgba(255,255,255,0.92); letter-spacing: 0.04em;
}
.hero__cta { margin-top: 48px; }
.hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.65);
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.34em; text-indent: 0.34em; text-transform: uppercase;
}
.hero__scroll i {
  width: 1px; height: 52px; background: rgba(255,255,255,0.4);
  position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--white);
  animation: scroll-drip 2.2s var(--ease-soft) infinite;
}
@keyframes scroll-drip { 0% { top: -50%; } 100% { top: 110%; } }

/* ============================================================
   VALUES STRIP
   ============================================================ */
.values {
  position: relative; z-index: 2;
  background: var(--green-deep); color: var(--offwhite);
  padding: 34px 24px;
  border-top: 1px solid rgba(155, 175, 120, 0.25);
}
.values__row {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center;
  gap: clamp(28px, 6vw, 84px); flex-wrap: wrap;
}
.values__item {
  font-family: var(--sans); font-weight: 500; font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.42em; text-indent: 0.42em; text-transform: uppercase;
  color: var(--sage-light);
}
.values__dot { width: 5px; height: 5px; background: var(--cognac); transform: rotate(45deg); }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 8px 0; }
.stat__value {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 4.6vw, 64px); line-height: 1;
  color: var(--offwhite);
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.stat__value .unit { font-size: 0.42em; color: var(--sage-light); letter-spacing: 0.05em; }
.stat__label {
  margin-top: 14px;
  font-family: var(--sans); font-weight: 500; font-size: 11.5px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(240, 238, 230, 0.6);
}
.stat__bar { width: 30px; height: 2px; background: var(--cognac); margin: 18px auto 0; }
.section--white .stat__value, .section--paper .stat__value { color: var(--green); }
.section--white .stat__label, .section--paper .stat__label { color: var(--gray); }

/* ============================================================
   ACQUISITION BAND
   ============================================================ */
.acq { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 640px; }
.acq__copy {
  padding: clamp(64px, 8vw, 120px) clamp(32px, 6vw, 100px);
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  position: relative; overflow: hidden;
}
.acq__copy::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/images/topo-pattern-web.png");
  background-size: 520px; opacity: 0.06; pointer-events: none;
}
.acq__copy > * { position: relative; }
.acq h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 54px); color: var(--white); line-height: 1.1; }
.acq p { color: rgba(240, 238, 230, 0.88); font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.8; max-width: 56ch; }
.acq p + p { color: rgba(240, 238, 230, 0.72); }
.acq__media { position: relative; overflow: hidden; min-height: 420px; cursor: pointer; }
.acq__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.6s var(--ease-out);
}
.acq__media:hover img { transform: scale(1.1); }
.acq__media::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(25, 65, 50, 0.38); mix-blend-mode: multiply;
  transition: background 0.8s var(--ease-soft);
}
.acq__media:hover::after { background: rgba(25, 65, 50, 0.05); }
.acq__stats {
  margin-top: 22px; padding-top: 34px;
  border-top: 1px solid rgba(155, 175, 120, 0.3);
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 320px));
  gap: clamp(40px, 6vw, 96px); justify-content: center;
}
.member { text-align: center; }
.member__photo {
  position: relative; width: clamp(210px, 24vw, 264px); height: clamp(210px, 24vw, 264px);
  margin: 0 auto; border-radius: 50%; overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: 0 24px 48px -20px rgba(25, 65, 50, 0.4);
}
.member__photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(25, 65, 50, 0.15);
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1); transform: scale(1.04);
  transition: filter 0.7s var(--ease-soft), transform 1.1s var(--ease-out);
}
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.0); }
.member__ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed rgba(155, 175, 120, 0.55);
  animation: ring-spin 36s linear infinite paused;
}
.member:hover .member__ring { animation-play-state: running; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.member__wrap { position: relative; width: fit-content; margin: 0 auto; }
.member h3 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); color: var(--green); margin-top: 30px; font-weight: 600; }
.member p {
  margin-top: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--cognac);
}

/* ============================================================
   QUOTE BAND (bridge)
   ============================================================ */
.quote-band {
  position: relative; min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 110px 24px;
}
.quote-band__media { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.quote-band__media img { width: 100%; height: 100%; object-fit: cover; }
.quote-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(16, 41, 31, 0.66), rgba(16, 41, 31, 0.66));
}
.quote-band__content { position: relative; z-index: 2; max-width: 920px; text-align: center; color: var(--offwhite); }
.quote-band__mark { width: 64px; margin: 0 auto 34px; opacity: 0.9; fill: var(--sage-light); }
.quote-band blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(28px, 3.6vw, 46px); line-height: 1.3;
}
.quote-band cite {
  display: block; margin-top: 30px; font-style: normal;
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--sage-light);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 44px);
  position: relative;
  counter-reset: step;
}
.process-grid::before {
  content: ""; position: absolute; top: 44px; left: 6%; right: 6%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--sage) 12%, var(--sage) 88%, transparent);
  transform: scaleX(0);
  transition: transform 1.6s var(--ease-out) 0.3s;
}
.process-grid.is-inview::before { transform: scaleX(1); }
.step { text-align: center; padding: 0 6px; counter-increment: step; }
.step__icon {
  position: relative;
  width: 88px; height: 88px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid rgba(25, 65, 50, 0.16);
  border-radius: 50%;
  transition: border-color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease-out);
}
.step:hover .step__icon {
  border-color: var(--sage);
  box-shadow: 0 18px 36px -16px rgba(25, 65, 50, 0.35);
  transform: translateY(-6px);
}
.step__icon::after {
  content: "0" counter(step);
  position: absolute; top: -7px; right: -7px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cognac); color: var(--white);
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.step__icon svg { width: 38px; height: 38px; stroke: var(--green); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step:hover .step__icon svg { stroke: var(--cognac); }
.step__icon svg * { transition: stroke 0.4s; }
.step h3 { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); color: var(--green); margin-top: 26px; font-weight: 600; }
.step p { margin-top: 12px; font-size: 15.5px; color: var(--gray); line-height: 1.7; }

/* ============================================================
   CRITERIA CARDS
   ============================================================ */
.criteria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.crit {
  background: var(--paper);
  border: 1px solid rgba(25, 65, 50, 0.12);
  border-top: 3px solid var(--sage);
  padding: clamp(28px, 3vw, 42px);
  text-align: left;
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s, border-color 0.4s;
}
.crit:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 48px -22px rgba(25, 65, 50, 0.3);
  border-top-color: var(--cognac);
}
.crit svg { width: 34px; height: 34px; stroke: var(--cognac); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.crit h4 { font-family: var(--serif); font-size: 21px; color: var(--green); font-weight: 600; margin-bottom: 12px; }
.crit p { font-size: 15.5px; color: var(--gray); line-height: 1.75; }

/* ============================================================
   SECTORS
   ============================================================ */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sector {
  position: relative; height: clamp(340px, 30vw, 420px);
  overflow: hidden; cursor: pointer; background: var(--muted);
}
.sector img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.4s var(--ease-out);
}
.sector:hover img { transform: scale(1.12); }
.sector__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(16, 41, 31, 0.88) 0%, rgba(25, 65, 50, 0.45) 55%, rgba(25, 65, 50, 0.3) 100%);
  transition: background 0.6s var(--ease-soft), opacity 0.6s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px;
}
.sector:hover .sector__veil {
  background: linear-gradient(to top, rgba(16, 41, 31, 0.94) 0%, rgba(25, 65, 50, 0.78) 60%, rgba(25, 65, 50, 0.62) 100%);
}
.sector__head { transform: translateY(26px); transition: transform 0.6s var(--ease-out); }
.sector:hover .sector__head { transform: translateY(0); }
.sector__head svg { width: 52px; height: 52px; stroke: var(--offwhite); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 18px; }
.sector__head h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(23px, 2vw, 28px); color: var(--white); }
.sector__desc {
  max-height: 0; opacity: 0; overflow: hidden;
  transform: translateY(14px);
  transition: max-height 0.6s var(--ease-out), opacity 0.55s 0.05s, transform 0.6s var(--ease-out);
}
.sector:hover .sector__desc { max-height: 160px; opacity: 1; transform: translateY(0); }
.sector__desc i { display: block; width: 38px; height: 2px; background: var(--cognac); margin: 18px auto 14px; }
.sector__desc p { color: rgba(240, 238, 230, 0.92); font-size: 15px; line-height: 1.65; max-width: 34ch; margin: 0 auto; }

.sector--cta { background: var(--green); display: flex; align-items: center; justify-content: center; text-align: center; }
.sector--cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/images/topo-pattern-web.png");
  background-size: 360px; opacity: 0.1;
}
.sector--cta > div { position: relative; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sector--cta svg { width: 50px; height: 50px; stroke: var(--sage-light); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sector--cta h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--white); }
.sector--cta p { color: rgba(240, 238, 230, 0.75); font-size: 14.5px; max-width: 26ch; }

/* Mobile sector carousel arrows/dots */
.sector-nav { display: none; }

/* ============================================================
   CTA BOX
   ============================================================ */
.cta-box {
  position: relative;
  max-width: 860px; margin: clamp(60px, 7vw, 96px) auto 0;
  background: var(--white);
  border: 1px solid rgba(169, 98, 47, 0.25);
  padding: clamp(40px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cognac), var(--sage));
}
.cta-box h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); color: var(--green); }
.cta-box p { margin: 22px auto 0; max-width: 60ch; color: var(--gray); font-size: 16.5px; line-height: 1.8; }
.cta-box .btn { margin-top: 36px; }
.cta-box strong { color: var(--green); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; z-index: 1;
  background: var(--green-deep); color: var(--offwhite);
  padding: clamp(64px, 7vw, 96px) clamp(24px, 5vw, 64px) 42px;
  overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/images/topo-pattern-web.png");
  background-size: 560px; opacity: 0.05; pointer-events: none;
}
.footer__grid {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  padding-bottom: 54px;
  border-bottom: 1px solid rgba(240, 238, 230, 0.14);
}
.footer__brand .nav__mark { height: 56px; fill: var(--offwhite) !important; }
.footer h4 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--white); margin-top: 20px; }
.footer__tag { margin-top: 14px; color: rgba(240, 238, 230, 0.6); font-size: 15.5px; max-width: 40ch; line-height: 1.75; }
.footer h5 {
  font-family: var(--sans); font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--sage);
  margin-bottom: 22px;
}
.footer__col p, .footer__col a { display: block; color: rgba(240, 238, 230, 0.78); font-size: 16px; line-height: 2; }
.footer__col a { transition: color 0.3s; width: fit-content; position: relative; }
.footer__col a:hover { color: var(--sage-light); }
.footer__mail { color: var(--sage-light) !important; font-weight: 500; }
.footer__base {
  position: relative;
  max-width: 1280px; margin: 0 auto; padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  color: rgba(240, 238, 230, 0.4);
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.08em;
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  visibility: hidden;
}
.modal.is-open { visibility: visible; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(16, 41, 31, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.45s var(--ease-soft);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__card {
  position: relative; width: min(620px, 100%);
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--offwhite);
  border-top: 4px solid var(--cognac);
  padding: clamp(34px, 4.5vw, 56px);
  opacity: 0; transform: translateY(44px) scale(0.985);
  transition: opacity 0.5s var(--ease-soft), transform 0.6s var(--ease-out);
  box-shadow: 0 40px 90px -30px rgba(10, 24, 18, 0.6);
}
.modal.is-open .modal__card { opacity: 1; transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--gray); transition: color 0.3s, transform 0.4s var(--ease-out);
}
.modal__close:hover { color: var(--green); transform: rotate(90deg); }
.modal__card h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.6vw, 32px); color: var(--green); }
.modal__card > p { margin-top: 14px; color: var(--gray); font-size: 15.5px; line-height: 1.7; }
.form { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .field--full { grid-column: 1 / -1; }
.field label {
  display: block; margin-bottom: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--green);
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--serif); font-size: 16.5px; color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(25, 65, 50, 0.2);
  padding: 13px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(155, 175, 120, 0.22);
}
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { grid-column: 1 / -1; width: 100%; }

/* Toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 80px);
  z-index: 400;
  background: var(--green); color: var(--offwhite);
  border-left: 3px solid var(--sage);
  padding: 18px 28px;
  box-shadow: 0 24px 48px -18px rgba(10, 24, 18, 0.55);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.5s;
  pointer-events: none;
  text-align: left;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.toast b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.toast span { font-family: var(--sans); font-size: 12.5px; color: rgba(240, 238, 230, 0.75); }

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.page-hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 120px 24px 80px; }
.page-hero__media { position: absolute; inset: -14% 0; z-index: 0; will-change: transform; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(25, 65, 50, 0.78) 0%, rgba(25, 65, 50, 0.38) 50%, rgba(240, 238, 230, 0.96) 100%);
}
.page-hero__content { position: relative; z-index: 2; text-align: center; color: var(--white); max-width: 1000px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 8vw, 104px); line-height: 1.04;
  margin-top: 30px;
  text-shadow: 0 4px 40px rgba(10, 24, 18, 0.5);
}
.page-hero p { margin: 28px auto 0; max-width: 720px; font-size: clamp(18px, 2vw, 23px); color: rgba(255,255,255,0.93); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery__item { position: relative; height: 52vh; min-height: 380px; overflow: hidden; background: var(--green); }
.gallery__item--wide { grid-column: 1 / -1; height: 62vh; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1); transform: scale(1.02);
  transition: filter 0.9s var(--ease-soft), transform 1.5s var(--ease-out);
}
.gallery__item:hover img { filter: grayscale(0); transform: scale(1.08); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(25, 65, 50, 0.42); mix-blend-mode: multiply;
  transition: background 0.8s;
}
.gallery__item:hover::after { background: rgba(25, 65, 50, 0.02); }
.gallery__caption {
  position: absolute; left: clamp(22px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); z-index: 2;
  color: var(--white); font-family: var(--serif); font-weight: 500;
  font-size: clamp(21px, 2.2vw, 30px);
  text-shadow: 0 3px 22px rgba(10, 24, 18, 0.6);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--ease-soft), transform 0.7s var(--ease-out);
}
.gallery__item:hover .gallery__caption { opacity: 1; transform: translateY(0); }
.gallery__caption::before {
  content: ""; display: block; width: 40px; height: 2px; background: var(--cognac); margin-bottom: 14px;
}

.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 28px); }
.perf {
  background: var(--white);
  border: 1px solid rgba(25, 65, 50, 0.12);
  padding: clamp(28px, 2.6vw, 40px) clamp(22px, 2.2vw, 32px);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s, border-color 0.4s;
}
.perf:hover {
  transform: translateY(-8px);
  border-color: rgba(169, 98, 47, 0.45);
  box-shadow: 0 28px 52px -24px rgba(25, 65, 50, 0.32);
}
.perf svg { width: 38px; height: 38px; stroke: var(--green); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; transition: stroke 0.4s; }
.perf:hover svg { stroke: var(--cognac); }
.perf h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--green); margin-bottom: 13px; }
.perf p { font-size: 14.8px; color: var(--gray); line-height: 1.72; }

/* Steward band */
.steward { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; }
.steward__media { position: relative; overflow: hidden; min-height: 380px; }
.steward__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.steward__copy {
  background: var(--green);
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  padding: clamp(56px, 7vw, 110px) clamp(32px, 5.5vw, 90px);
  position: relative; overflow: hidden;
}
.steward__copy::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/images/topo-pattern-web.png");
  background-size: 480px; opacity: 0.07;
}
.steward__copy > * { position: relative; }
.steward__copy h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); color: var(--white); line-height: 1.15; }
.steward__copy p { color: rgba(240, 238, 230, 0.85); font-size: 17px; line-height: 1.8; max-width: 54ch; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease-soft), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal--left { transform: translateX(-56px); }
.reveal--right { transform: translateX(56px); }
.reveal--zoom { transform: scale(0.94); }
.reveal.is-inview { opacity: 1; transform: none; }

/* Clip children, not the observed element itself — Chromium reports
   zero intersection for elements clipped to nothing, so the reveal
   would never trigger if .reveal-img carried the clip-path. */
.reveal-img > * { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-img.is-inview > * { clip-path: inset(0 0 0 0); }

/* Split-line title reveal */
.line-reveal .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-reveal .line > span {
  display: inline-block; transform: translateY(118%);
  transition: transform 1.15s var(--ease-out);
}
.line-reveal.is-inview .line:nth-child(1) > span { transition-delay: 0.06s; }
.line-reveal.is-inview .line:nth-child(2) > span { transition-delay: 0.18s; }
.line-reveal.is-inview .line:nth-child(3) > span { transition-delay: 0.3s; }
.line-reveal.is-inview .line > span { transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .perf-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 52px; }
  .process-grid::before { display: none; }
  .stats--4 { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split .frame { order: -1; }
  .acq { grid-template-columns: 1fr; }
  .acq__media { min-height: 340px; order: -1; }
  .steward { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .criteria-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item { height: 46vh; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sector-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .stats--4 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .frame { height: 72vw; }
  .nav__wordmark b { font-size: 13px; }
  .nav__wordmark span { font-size: 9px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-img, .line-reveal .line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero__media img { animation: none; transform: scale(1); }
}
