/* ============================================================
   Cartesian Property Group: one-page site
   Palette (locked, 20 Aug feedback): Formal Green + cool grey +
   white. Nothing else. Type: Instrument Sans only.
   Rhythm: every section shares --section-y; every section head
   shares the same gap; one h2 size, one h3 size, one eyebrow.
   Motion: Lenis smooth scroll, fade-rise reveals, clip image
   reveals, scroll-spy nav, journey line draw. All motion
   collapses under prefers-reduced-motion.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Italic-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* the whole palette: two greens, one grey, white */
  --green-deep: #0b241c;  /* footer, hero overlay base */
  --green: #0f3228;       /* primary dark band */
  --green-panel: #164534; /* raised panel on green */

  --grey: #eceeec;        /* cool grey band */
  --white: #ffffff;       /* panels on grey / white band */

  /* text on light */
  --ink: #10221b;
  --text: #3f4d47;
  /* text on dark */
  --light: #f3f2ef;
  --light-soft: rgba(240, 243, 240, 0.78);

  /* hairlines */
  --line-on-light: rgba(16, 34, 27, 0.14);
  --line-on-dark: rgba(240, 243, 240, 0.18);

  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;

  /* one vertical rhythm for every section */
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --head-gap: clamp(2.75rem, 5vw, 4rem);   /* section head -> content */
  --grid-gap: clamp(1.25rem, 2.5vw, 2rem); /* every card grid */
  --card-pad: 2rem;                        /* every card */
}

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

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

html, body { overflow-x: clip; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--grey);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Type scale (one size per level, everywhere) ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 600;
}
h2, .h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
h3, .h3 { font-size: 1.25rem; line-height: 1.3; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 36em;
}
p { max-width: 62ch; }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  color: var(--green);
}

/* ---------- Section shells ---------- */
.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

section { padding-block: var(--section-y); }

.section-head { max-width: 720px; margin-bottom: var(--head-gap); }
.section-head p { margin-top: 1.1rem; }

/* band variants: the entire page is built from these three */
.band-grey  { background: var(--grey);  color: var(--text); }
.band-white { background: var(--white); color: var(--text); }
.band-green { background: var(--green); color: var(--light-soft); }

.band-green h1, .band-green h2, .band-green h3, .band-green h4 { color: var(--light); }
.band-green p, .band-green .lead { color: var(--light-soft); }
.band-green .eyebrow { color: var(--light-soft); }

/* panels sit one step lighter/darker than their band */
.band-grey .panel  { background: var(--white); }
.band-white .panel { background: var(--grey); }
.band-green .panel { background: var(--green-panel); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--light);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80px;
  gap: 1.5rem;
}
.site-header .logo { justify-self: start; }
.site-header .nav { justify-self: center; }
.site-header .header-cta { justify-self: end; }
.site-header.is-solid {
  background: rgba(11, 36, 28, 0.97);
  box-shadow: 0 1px 0 rgba(240, 243, 240, 0.08);
}
.logo img { height: 42px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a {
  position: relative;
  padding-block: 0.3rem;
  transition: opacity 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* boxed label + arrow button (header) */
.header-cta {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid rgba(240, 243, 240, 0.85);
  color: var(--light);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.header-cta .label { display: inline-flex; align-items: center; padding: 0.85rem 1.3rem; }
.header-cta .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.95rem;
  border-left: 1.5px solid rgba(240, 243, 240, 0.45);
}
.header-cta .arrow svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.header-cta:hover { background: var(--light); border-color: var(--light); color: var(--green); }
.header-cta:hover .arrow svg { transform: translateX(3px); }

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  color: inherit;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }

@media (max-width: 980px) {
  .site-header .container { display: flex; justify-content: space-between; }
  .nav-toggle { display: block; }
  .site-header .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--green);
    color: var(--light);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    font-size: 1.4rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  body.nav-open .nav { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle { color: var(--light); z-index: 60; position: relative; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary { background: var(--green); color: var(--light); }
.btn-primary:hover { background: var(--green-deep); }
.band-green .btn-primary { background: var(--light); color: var(--green); }
.band-green .btn-primary:hover { background: var(--white); }

.btn-ghost { border-color: rgba(16, 34, 27, 0.35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); background: rgba(16, 34, 27, 0.05); }
.band-green .btn-ghost { border-color: rgba(240, 243, 240, 0.4); color: var(--light); }
.band-green .btn-ghost:hover { border-color: var(--light); background: rgba(240, 243, 240, 0.08); }

.text-link {
  font-weight: 500;
  border-bottom: 1.5px solid var(--green);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
  color: var(--ink);
}
.text-link:hover { border-color: var(--ink); }
.band-green .text-link { color: var(--light); border-bottom-color: rgba(240, 243, 240, 0.5); }
.band-green .text-link:hover { border-bottom-color: var(--light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--light);
  overflow: hidden;
  padding-block: 0;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media video {
  width: 100%;
  height: 112%;
  object-fit: cover;
  display: block;
  will-change: transform;
  filter: saturate(0.55) contrast(1.02) brightness(0.92);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 50, 40, 0.42);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(11, 36, 28, 0.94) 0%,
    rgba(11, 36, 28, 0.55) 45%,
    rgba(11, 36, 28, 0.3) 100%
  );
}
.hero-inner { padding-block: clamp(5rem, 10vh, 7.5rem); }
.hero h1 { color: var(--light); max-width: 21ch; }
.hero .lead { color: var(--light-soft); margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero .btn-ghost {
  border-color: rgba(240, 243, 240, 0.85);
  color: var(--light);
  background: rgba(15, 50, 40, 0.25);
}
.hero .btn-ghost:hover { border-color: var(--white); background: rgba(240, 243, 240, 0.16); }

/* hero headline line-by-line mask reveal */
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.hero.is-loaded h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: 120ms; }
.hero h1 .line:nth-child(3) > span { transition-delay: 240ms; }

/* ---------- Split (copy + media) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.split.flip > .split-media { order: -1; }
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > .split-media { order: 0; }
}
.split-copy h2 { margin-bottom: 1.1rem; }
.split-copy p + p { margin-top: 0.9rem; }
.split-copy .btn, .split-copy .text-link { margin-top: 1.7rem; display: inline-flex; }

.split-media { overflow: hidden; position: relative; }
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.2;
}

/* checklist */
.checks {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.6rem;
  font-size: 0.95rem;
}
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }
.checks li { position: relative; padding-left: 1.7rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85em;
  height: 0.45em;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.75;
}

/* ---------- Card grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line-on-light);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(15, 50, 40, 0.25);
}
.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.99rem; }

/* image-topped card: one image size everywhere it appears */
.card.has-img { padding: 0; }
.card.has-img .card-img { overflow: hidden; }
.card.has-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.7s var(--ease);
}
.card.has-img:hover img { transform: scale(1.045); }
.card.has-img .card-body {
  padding: 1.6rem var(--card-pad) var(--card-pad);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card.has-img .card-body p { flex: 1; }

.card .crit-num,
.driver-body .crit-num {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 0.6rem;
}

/* ---------- Why rows (numbered editorial list) ---------- */
.num-list { border-top: 1px solid var(--line-on-light); }
.num-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 1.6fr;
  gap: 2rem;
  align-items: start;
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--line-on-light);
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.num-row:hover { background: rgba(255, 255, 255, 0.6); padding-left: 0.75rem; }
.num-row .num {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(15, 50, 40, 0.3);
}
.num-row h3 { color: var(--ink); }
.num-row p { font-size: 0.99rem; max-width: none; }
/* dark-band variant */
.band-green .num-list { border-top-color: var(--line-on-dark); }
.band-green .num-row { border-bottom-color: var(--line-on-dark); }
.band-green .num-row:hover { background: rgba(240, 243, 240, 0.05); }
.band-green .num-row .num { color: rgba(240, 243, 240, 0.35); }
.band-green .num-row h3 { color: var(--light); }
@media (max-width: 800px) {
  .num-row { grid-template-columns: 3.5rem 1fr; gap: 1rem; }
  .num-row p { grid-column: 2; }
}

/* ---------- Journey (3 phase columns x 2 steps, on green) ---------- */
.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } }
.journey-phase {
  position: relative;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 1.4rem;
  display: grid;
  gap: clamp(1.5rem, 2.5vw, 2.2rem);
  align-content: start;
}
/* draw line: each phase's top rule brightens in sequence */
.journey-phase::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.journey-phase.is-in::before { transform: scaleX(1); }
.phase-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-soft);
}
.journey-step { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem 1.2rem; align-items: start; }
.journey-step .step-num {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(240, 243, 240, 0.5);
  padding-top: 0.2rem;
}
.journey-step img {
  grid-column: 1;
  grid-row: 2;
  height: 40px;
  width: auto;
  opacity: 0.85;
}
.journey-step .step-body { grid-column: 2; grid-row: 1 / span 2; }
.journey-step h3 { color: var(--light); margin-bottom: 0.7rem; }
.journey-step p { font-size: 0.95rem; }

/* ---------- Driver cards (yield / growth, image side) ---------- */
.driver {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-on-light);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.driver:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(15, 50, 40, 0.25);
}
@media (max-width: 700px) { .driver { grid-template-columns: 1fr; } }
.driver .driver-img { overflow: hidden; min-height: 220px; }
.driver .driver-img img { width: 100%; height: 100%; object-fit: cover; }
.driver .driver-body {
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.driver .driver-body h3 { margin-bottom: 0.7rem; }
.driver p { font-size: 0.99rem; }

/* ---------- Compare table (brand new vs established) ---------- */
.compare { border: 1px solid var(--line-on-light); background: var(--white); }
.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 0.7fr 1.15fr 1.15fr;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  padding: 1.1rem clamp(1.25rem, 2.5vw, 2rem);
}
.compare-head {
  background: var(--green);
  color: var(--light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.compare-row { border-top: 1px solid var(--line-on-light); }
.compare-row:first-of-type { border-top: 0; }
.compare-row h3 { font-size: 1.05rem; }
.compare-row p { font-size: 0.96rem; max-width: none; }
.compare-row .is-new { color: var(--ink); font-weight: 500; }
@media (max-width: 700px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 0.35rem; padding-block: 1.25rem; }
  .compare-row .is-new::before { content: "Brand new: "; font-weight: 600; color: var(--green); }
  .compare-row p:last-child::before { content: "Established: "; font-weight: 600; color: var(--text); }
}

/* ---------- Quote ---------- */
.quote blockquote {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 24em;
}
.band-green .quote blockquote { color: var(--light); }
.quote figcaption { margin-top: 1.6rem; font-size: 0.98rem; }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.band-green .quote figcaption strong { color: var(--light); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--white);
  border: 1px solid var(--line-on-light);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(15, 50, 40, 0.25);
}
.team-photo {
  background: var(--grey);
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.team-photo img {
  width: 82%;
  height: auto;
  max-height: 96%;
  object-fit: contain;
  object-position: bottom;
  filter: grayscale(1);
}
.team-meta { padding: 1.4rem 1.6rem 1.6rem; }
.team-meta h3 { font-size: 1.15rem; }
.team-meta .role { font-size: 0.92rem; margin-top: 0.35rem; }
.team-meta .bio { margin-top: 0.8rem; font-size: 0.95rem; }
.team-meta .text-link { margin-top: 1rem; display: inline-block; font-size: 0.9rem; }

/* ---------- Partner logo marquee ---------- */
.logo-marquee {
  overflow: hidden;
  padding-block: 1rem;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 5.5rem);
  width: max-content;
  padding-right: clamp(3rem, 6vw, 5.5rem);
}
.logo-track img {
  height: auto;
  width: auto;
  max-height: 64px;
  max-width: 170px;
  filter: grayscale(1);
  opacity: 0.65;
  transition: opacity 0.3s var(--ease);
}
.logo-track img:hover { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .logo-marquee .logo-track { animation: marquee 45s linear infinite; }
  .logo-marquee:hover .logo-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (max-width: 700px) {
  .logo-track img { max-height: 50px; max-width: 130px; }
}

/* ---------- Page hero (contact subpage) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--light-soft);
  padding-top: clamp(9rem, 16vh, 12rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.page-hero h1 {
  color: var(--light);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  max-width: 16ch;
}
.page-hero .lead { margin-top: 1.2rem; color: var(--light-soft); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-copy address {
  font-style: normal;
  line-height: 1.8;
  margin-top: 1.6rem;
}
.contact-copy .contact-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-top: 2.2rem;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 0.94rem; color: var(--ink); }
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(16, 34, 27, 0.24);
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(16, 34, 27, 0.4); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 50, 40, 0.12);
}
.form-success { margin-top: 1rem; color: var(--green); font-weight: 500; }

/* ---------- Map band (closing CTA: green copy panel + map) ---------- */
.map-band { padding-block: 0; }
.map-band .map-split { display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 440px; }
.map-band .map-copy {
  background: var(--green);
  color: var(--light-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}
.map-band .map-copy h2 { color: var(--light); }
.map-band .map-copy .eyebrow { color: var(--light-soft); }
.map-band .map-copy address { font-style: normal; line-height: 1.8; }
.map-band .map-copy .btn-primary { background: var(--light); color: var(--green); align-self: flex-start; margin-top: 0.6rem; }
.map-band .map-copy .btn-primary:hover { background: var(--white); }
.map-band .map-frame { position: relative; min-height: 420px; background: var(--grey); }
.map-band .map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.02);
}
@media (max-width: 900px) {
  .map-band .map-split { grid-template-columns: 1fr; }
  .map-band .map-frame { min-height: 340px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(240, 243, 240, 0.75);
  font-size: 0.95rem;
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  border-bottom: 1px solid rgba(240, 243, 240, 0.14);
}
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .top { grid-template-columns: 1fr; } }
.site-footer .logo img { height: 34px; }
.site-footer .blurb { margin-top: 1.3rem; max-width: 300px; }
.site-footer h4 { color: var(--light); font-size: 1rem; font-weight: 600; margin-bottom: 1.1rem; }
.site-footer nav { display: grid; gap: 0.65rem; }
.site-footer a { transition: color 0.3s var(--ease); }
.site-footer a:hover { color: var(--white); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .linkedin { display: inline-flex; margin-top: 0.9rem; }
.site-footer .linkedin svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer .bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding-block: 1.6rem;
  font-size: 0.88rem;
  color: rgba(240, 243, 240, 0.5);
}

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(44px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .reveal.r-left { transform: translateX(-56px); }
  .reveal.r-right { transform: translateX(56px); }
  .reveal.r-fade { transform: none; }
  /* clip reveal for images: frame wipes up, image settles from a zoom */
  .reveal.r-clip {
    transform: none;
    clip-path: inset(12% 0 12% 0);
    transition: opacity 0.7s var(--ease), clip-path 1s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .reveal.r-clip img { transform: scale(1.1); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
  .reveal.r-clip.is-in { clip-path: inset(0 0 0 0); }
  .reveal.r-clip.is-in img { transform: scale(1); }
  .reveal.is-in { opacity: 1; transform: none; }
}
