/* =============================================================
   Natural Progression — design system
   Fraunces (display) + DM Sans (utility). Locked palette.
   ============================================================= */

/* ---------- self-hosted variable fonts ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces.woff2") format("woff2-variations"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-italic.woff2") format("woff2-variations"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("../fonts/dm-sans.woff2") format("woff2-variations"); }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 100 1000; font-display: swap; src: url("../fonts/dm-sans-italic.woff2") format("woff2-variations"); }

:root {
  --bark: #5A2E36;
  --leaf: #2E5B45;
  --sage: #7FA28A;
  --water: #8FB4C9;
  --clay: #E2A25A;
  --clay-deep: #CF9045;
  --cream: #F2EFE6;
  --sand: #DCCCB6;
  --stone: #A89D8C;
  --earth: #7A6958;
  --charcoal: #2B2B2B;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5.5vw, 80px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 8px;
  --header-h: 84px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; color: var(--bark); line-height: 1.04; letter-spacing: -0.015em; font-variation-settings: "opsz" 144; }
h3, h4 { font-variation-settings: "opsz" 72; }
::selection { background: var(--clay); color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 2px; }
.on-leaf :focus-visible, .on-bark :focus-visible { outline-color: var(--clay); }

/* paper wash — very quiet */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background-image: url("../np-paper.png"); background-size: 380px;
  opacity: .035; mix-blend-mode: multiply;
}

/* ---------- type scale ---------- */
.h-hero { font-size: clamp(44px, 6.5vw, 96px); line-height: .98; letter-spacing: -0.025em; }
.h-statement { font-size: clamp(34px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -0.02em; }
.h-section { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.06; }
.h-sub { font-size: clamp(22px, 2vw, 26px); line-height: 1.25; }
.h-page { font-size: clamp(42px, 6vw, 84px); line-height: .98; letter-spacing: -0.025em; }
.lede { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.55; }
.lede-display { font-family: var(--display); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.32; color: var(--bark); font-variation-settings: "opsz" 72; }
.kicker { font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--earth); margin: 0 0 18px; }
.kicker--light { color: rgba(242, 239, 230, .85); }
.kicker--clay { color: rgba(242, 239, 230, .85); }
.num { font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: .24em; color: var(--earth); text-transform: uppercase; }
.measure { max-width: 620px; }
.measure-narrow { max-width: 520px; }
.muted { color: var(--earth); }
.italic { font-style: italic; }
.text-light { color: var(--cream); }
.text-light .kicker, .text-light .num, .text-light .muted { color: rgba(242, 239, 230, .85); }
.text-light h1, .text-light h2, .text-light h3, .text-light .lede-display { color: var(--cream); }
.text-light p { color: rgba(242, 239, 230, .9); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); position: relative; }
.section--tight { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-sand .kicker, .bg-sand .num, .bg-sand .muted, .bg-sand .project__meta { color: var(--bark); }
.bg-leaf { background: var(--leaf); color: var(--cream); }
.bg-bark { background: var(--bark); color: var(--cream); }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.rule { border: 0; border-top: 1px solid rgba(90, 46, 54, .35); margin: 0; }
.rule--light { border-top-color: rgba(242, 239, 230, .3); }
.rule--thick { border-top-width: 2px; }
.stack > * + * { margin-top: 20px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: var(--radius);
  background: var(--clay); color: var(--charcoal);
  font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .15s var(--ease), color .2s;
}
.btn:hover { background: var(--clay-deep); }
.btn:active { transform: translateY(1px); }
.btn--outline { background: transparent; border-color: rgba(90, 46, 54, .65); color: var(--bark); }
.btn--outline:hover { background: var(--bark); color: var(--cream); }
.btn--outline-light { background: transparent; border-color: rgba(242, 239, 230, .6); color: var(--cream); }
.btn--outline-light:hover { background: var(--cream); color: var(--leaf); }
.btn--sm { height: 44px; padding: 0 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bark); text-decoration: underline; text-decoration-color: rgba(90, 46, 54, .3); text-underline-offset: 8px;
  transition: text-decoration-color .2s, color .2s;
}
.link-arrow:hover { text-decoration-color: var(--bark); }
.link-arrow .arr { display: inline-block; transition: transform .2s var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }
.link-arrow--light { color: var(--cream); text-decoration-color: rgba(242, 239, 230, .35); }
.link-arrow--light:hover { text-decoration-color: var(--cream); }
.text-link { color: var(--bark); text-decoration: underline; text-decoration-color: rgba(90, 46, 54, .35); text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--bark); }
.bg-leaf .text-link, .bg-bark .text-link { color: var(--cream); text-decoration-color: rgba(242,239,230,.4); }

/* ---------- skip link ---------- */
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--leaf); color: var(--cream); padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* ---------- scaffold tags (staging only) ---------- */
.scaffold { display: none; }
html[data-staging] .scaffold {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10px/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--bark); border: 1px dashed rgba(90,46,54,.5); padding: 6px 8px; border-radius: 3px; margin-bottom: 14px;
}
html[data-staging] .bg-leaf .scaffold, html[data-staging] .bg-bark .scaffold { color: var(--cream); border-color: rgba(242,239,230,.5); }
html[data-staging] .staging-note { display: block; }
.staging-note { display: none; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 239, 230, .96); backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: rgba(90, 46, 54, .15); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand__name { font-family: var(--display); font-size: 19px; line-height: 1.05; color: var(--bark); font-variation-settings: "opsz" 48; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--charcoal);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--leaf); }
.nav a[aria-current="page"] { color: var(--leaf); border-bottom-color: var(--clay); }
.header__actions { display: flex; align-items: center; gap: 24px; }
.header__call { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bark); }
.header__call:hover { color: var(--leaf); }
.header__call svg { width: 14px; height: 14px; }
.menu-btn { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid rgba(90,46,54,.35); border-radius: 6px; background: transparent; color: var(--bark); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 80; background: var(--cream); display: none; flex-direction: column; padding: 20px var(--gutter) 40px; overflow: auto; }
.mnav.is-open { display: flex; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 40px; }
.mnav__links a { display: block; font-family: var(--display); font-size: 40px; line-height: 1.15; color: var(--bark); padding: 8px 0; border-bottom: 1px solid rgba(90,46,54,.2); }
.mnav__links a[aria-current="page"] { color: var(--leaf); }
.mnav__foot { margin-top: auto; padding-top: 40px; }
.mnav__foot .btn { width: 100%; }
.mnav__foot .btn + .btn { margin-top: 12px; }
.mnav__meta { margin-top: 28px; font-size: 13px; color: var(--earth); letter-spacing: .04em; }
body.menu-open { overflow: hidden; }

/* mobile action bar */
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(242,239,230,.96); backdrop-filter: blur(6px); border-top: 1px solid rgba(90,46,54,.18); gap: 10px; }
.mbar .btn { flex: 1; height: 48px; padding: 0 12px; font-size: 12px; }

/* ---------- media placeholders ---------- */
.ph {
  position: relative; margin: 0; overflow: hidden; border-radius: 6px;
  background: #E7DDCB; border: 1px solid rgba(122, 105, 88, .45);
  display: grid; place-items: center; text-align: center; padding: 24px;
  aspect-ratio: 4 / 3;
}
.ph--45 { aspect-ratio: 4 / 5; }
.ph--54 { aspect-ratio: 5 / 4; }
.ph--32 { aspect-ratio: 3 / 2; }
.ph--11 { aspect-ratio: 1 / 1; }
.ph--169 { aspect-ratio: 16 / 9; }
.ph--hero { aspect-ratio: 5 / 6; }
.ph--cream { background: var(--cream); border-color: rgba(90, 46, 54, .3); }
.ph--leaf { background: #3A6A52; border-color: rgba(242, 239, 230, .4); }
.ph figcaption { display: flex; flex-direction: column; align-items: center; }
.ph__id { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); font-weight: 300; line-height: 1; color: var(--bark); font-variation-settings: "opsz" 144, "wght" 300; }
.ph__desc { margin-top: 12px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(90,46,54,.85); max-width: 30ch; line-height: 1.6; }
.ph--leaf .ph__id { color: var(--cream); }
.ph--leaf .ph__desc { color: rgba(242,239,230,.85); }
.ph__mark { position: absolute; width: 12px; height: 12px; }
.ph__mark::before, .ph__mark::after { content: ""; position: absolute; background: rgba(90,46,54,.45); }
.ph__mark::before { left: 50%; top: 0; width: 1px; height: 100%; }
.ph__mark::after { top: 50%; left: 0; height: 1px; width: 100%; }
.ph--leaf .ph__mark::before, .ph--leaf .ph__mark::after { background: rgba(242,239,230,.5); }
.ph__mark--tl { top: 10px; left: 10px; } .ph__mark--tr { top: 10px; right: 10px; }
.ph__mark--bl { bottom: 10px; left: 10px; } .ph__mark--br { bottom: 10px; right: 10px; }
.ph__line { position: absolute; left: 50%; top: 50%; width: 30%; height: 1px; background: rgba(90,46,54,.18); transform: translateX(-50%); }
.ph--leaf .ph__line { background: rgba(242,239,230,.22); }


/* ---------- original photography ---------- */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.photo:hover img { transform: scale(1.02); }
.photo.ph--45 { aspect-ratio: 4 / 5; } .photo.ph--54 { aspect-ratio: 5 / 4; } .photo.ph--32 { aspect-ratio: 3 / 2; }
.photo.ph--11 { aspect-ratio: 1 / 1; } .photo.ph--169 { aspect-ratio: 16 / 9; } .photo.ph--hero { aspect-ratio: 5 / 6; }
.photo--wide { aspect-ratio: 21 / 9; }
.people--under { margin-top: clamp(28px, 4vw, 48px); }
@media (prefers-reduced-motion: reduce) { .photo img { transition: none; } .photo:hover img { transform: none; } }

/* ---------- artwork helpers ---------- */
.tree-scene {
  background-image: url("../np-service-tree-600.webp");
  background-repeat: no-repeat; background-color: var(--cream);
}

/* ---------- feature bands ----------
   The marbled swirl artwork, cropped into horizontal strips and run full-width
   as a recurring painted ribbon between sections — never tiled as a circle. */
.band {
  width: 100%;
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: var(--bp, 40%) center;
  box-shadow: inset 0 1px 0 rgba(20,14,12,.08), inset 0 -1px 0 rgba(20,14,12,.08);
}
/* one swirl crop, reused everywhere, at three heights — a single consistent motif */
.band--tall { height: clamp(84px, 9.5vw, 180px); background-image: url("../band/band-tall.jpg"); }
.band--mid  { height: clamp(52px, 6vw, 112px);  background-image: url("../band/band-tall.jpg"); }
.band--thin { height: clamp(20px, 2.4vw, 34px); background-image: url("../band/band-tall.jpg"); }

/* ---------- full-bleed split (copy + photo, photo runs to the viewport edge) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(40px, 6vw, 88px);
  padding-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-inline-end: clamp(28px, 4vw, 56px);
}
.split__media--left + .split__copy {
  padding-inline-start: clamp(28px, 4vw, 56px);
  padding-inline-end: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.split__media { position: relative; overflow: hidden; min-height: clamp(340px, 34vw, 640px); }
.split__media .photo, .split__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; }
.split__media .photo__frame { position: absolute; inset: 0; }
/* The panel variant keeps its own photo aspect ratio (ph--45 etc.) instead of
   stretching to match whatever height the copy column happens to need —
   otherwise a long paragraph next to it forces an arbitrary, badly-cropped
   aspect on the photo. */
.split__media--panel { padding: clamp(20px, 3vw, 40px); display: flex; align-self: start; }
.split__media--panel .photo, .split__media--panel .ph {
  position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: inherit;
  border-radius: var(--radius); box-shadow: 0 22px 48px -24px rgba(20,14,12,.4); overflow: hidden;
}
.split__media--panel .photo.ph--45, .split__media--panel .ph.ph--45 { aspect-ratio: 4 / 5; }
.split__media--panel .photo.ph--32, .split__media--panel .ph.ph--32 { aspect-ratio: 3 / 2; }
.split__media--panel .photo__frame { position: absolute; inset: 0; }

/* ---------- photo captions, mounted over the frame ---------- */
/* height:100% here is load-bearing: .photo__frame is img's containing block, and without an
   explicit height the percentage heights below (.photo img{height:100%}) resolve to "auto" per
   spec, so the <img> quietly renders at its own intrinsic aspect ratio (clipped or gapped by
   .photo's overflow:hidden) instead of true object-fit:cover — object-position then has nothing
   to reposition. Giving the frame a definite height makes cover (and object-position) real. */
.photo__frame { position: relative; height: 100%; }
.photo__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  padding: clamp(20px, 3vw, 30px) clamp(16px, 2.4vw, 24px) 16px;
  background: linear-gradient(0deg, rgba(20,14,12,.6), rgba(20,14,12,0) 78%);
}
.photo__cap span { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(14px, 1.1vw, 16px); color: var(--cream); font-variation-settings: "opsz" 30; }

/* ---------- panorama: a single photo breaking full-width out of the wrap ---------- */
.panorama { width: 100%; overflow: hidden; }
.panorama .photo, .panorama .ph { width: 100%; margin: 0; border-radius: 0; }
.photo.ph--pano, .ph.ph--pano { aspect-ratio: 21 / 9; }

/* ---------- reveal motion ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .link-arrow .arr { transition: none; }
}

/* =============================================================
   HOME
   ============================================================= */
.hero { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(64px, 8vw, 120px); overflow: hidden; }
.hero__copy .h-hero { margin-bottom: 30px; }
.hero__copy .h-hero span { display: block; }
.hero__copy .lede-display { margin-bottom: 20px; max-width: 18em; font-style: italic; font-weight: 300; }
.hero__copy .lede { max-width: 560px; color: var(--charcoal); margin-bottom: 36px; }
.hero__proof { margin-top: clamp(40px, 5vw, 72px); padding-top: 22px; border-top: 1px solid rgba(90,46,54,.3); display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--earth); }
.hero__proof span + span::before { content: "/"; margin: 0 14px; color: var(--stone); }
.hero__media .ph { position: relative; z-index: 1; }

.mission__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); padding-top: 40px; }
.mission__grid .lede-display { margin-bottom: 26px; }
.mission__body { padding-top: 10px; }

/* service tree */
.tree-section { overflow: hidden; }
.tree-head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: end; margin-bottom: clamp(16px, 2vw, 32px); }
.tree-head p { max-width: 460px; color: var(--earth); }
.tree-desktop { position: relative; max-width: 1280px; margin: 0 auto; }
.tree-desktop__art { width: clamp(400px, 39vw, 560px); margin: 0 auto; display: block; }
.tree-callout { position: absolute; width: 330px; max-width: 29%; }
.tree-callout--left { left: 0; text-align: left; }
.tree-callout--right { right: 0; text-align: right; }
.tree-callout .num { display: block; margin-bottom: 10px; }
.tree-callout h3 { font-size: 30px; line-height: 1.08; }
.tree-callout--sig h3 { font-size: clamp(34px, 3vw, 44px); }
.tree-callout h3 a { transition: color .2s; }
.tree-callout h3 a:hover { color: var(--leaf); }
.tree-callout p { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: rgba(43,43,43,.78); max-width: 32ch; }
.tree-callout--right p { margin-left: auto; }
.tree-callout .link-arrow { margin-top: 16px; }
.tree-callout__line { position: absolute; top: 40px; width: 88px; height: 18px; pointer-events: none; }
.tree-callout--left .tree-callout__line { left: 100%; margin-left: 14px; }
.tree-callout--right .tree-callout__line { right: 100%; margin-right: 14px; transform: scaleX(-1); }
.tree-callout__line path { fill: none; stroke: rgba(90,46,54,.55); stroke-width: 1.4; stroke-linecap: round; }
.tree-mobile { display: none; }
.tree-chapter { padding: 32px 0; border-top: 1px solid rgba(90,46,54,.2); }
.tree-chapter:first-child { border-top: 0; padding-top: 0; }
.tree-chapter__art { aspect-ratio: 4 / 3; width: 100%; border-radius: 6px; overflow: hidden; margin-bottom: 22px; }
.tree-chapter h3 { font-size: 30px; margin-top: 8px; }
.tree-chapter--sig h3 { font-size: 36px; }
.tree-chapter p { margin-top: 10px; color: rgba(43,43,43,.8); max-width: 46ch; }
.tree-chapter .link-arrow { margin-top: 16px; }

/* habitat feature */
.habitat { overflow: hidden; }
.habitat__head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); position: relative; z-index: 1; }
.habitat__head .lede { max-width: 440px; }
.habitat__row { margin: clamp(40px, 6vw, 88px) 0; }
.habitat__row .split__copy { padding-block: clamp(24px, 4vw, 56px); }
.method { padding-top: 26px; border-top: 1px solid rgba(242,239,230,.35); max-width: 46ch; }
.method .num { color: rgba(242,239,230,.85); display: block; margin-bottom: 14px; }
.method h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 14px; color: var(--cream); }
.method p { color: rgba(242,239,230,.88); max-width: 46ch; margin-bottom: 26px; }
.habitat__foot { position: relative; z-index: 1; margin-top: clamp(40px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid rgba(242,239,230,.3); }
.habitat__foot p { max-width: 560px; color: rgba(242,239,230,.85); }

/* our work */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 56px) 24px; align-items: end; }
.work-grid .project { display: block; padding: 0; border: 0; }
.work-grid .project:nth-child(1) { grid-column: 1 / 8; }
.work-grid .project:nth-child(2) { grid-column: 9 / 13; }
.work-grid .project:nth-child(3) { grid-column: 3 / 13; display: grid; grid-template-columns: 4fr 8fr; gap: 24px; align-items: end; margin-top: clamp(16px, 2vw, 32px); }
.work-grid .project:nth-child(3) .project__copy { order: -1; padding-bottom: 8px; }
.work-grid .project__copy { margin-top: 20px; }
.work-grid .project__copy h3 { font-size: clamp(24px, 2.2vw, 32px); }
.fig { margin: 0; }
.fig figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--earth); font-weight: 500; display: flex; gap: 12px; }
.fig figcaption em { font-style: italic; font-family: var(--display); text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--bark); }

.work__head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.project { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(28px, 3.5vw, 48px) 0; border-top: 1px solid rgba(90,46,54,.2); }
.project:last-child { border-bottom: 1px solid rgba(90,46,54,.2); }
.project--flip .project__media { order: 2; }
.project__copy h3 { font-size: clamp(26px, 2.6vw, 38px); margin: 12px 0 14px; }
.project__meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--earth); font-weight: 500; }

/* about home */
.about { overflow: hidden; }
.about__split .split__copy { max-width: 640px; }
.about__copy h2 { margin-bottom: 30px; }
.about__copy .measure { color: var(--charcoal); }
.about__copy .link-arrow { margin-top: 28px; }

/* proof strip */
.proof { padding: clamp(36px, 4vw, 56px) 0; }
.proof__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__item { padding: 6px 28px; border-left: 1px solid rgba(242,239,230,.28); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__item .num { color: rgba(242,239,230,.85); display: block; margin-bottom: 10px; }
.proof__item strong { font-family: var(--display); font-weight: 400; font-size: clamp(19px, 1.6vw, 24px); color: var(--cream); line-height: 1.25; display: block; font-variation-settings: "opsz" 72; }

/* final CTA */
.final { overflow: hidden; padding-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(96px, 12vw, 180px); }
.final__inner { position: relative; z-index: 1; max-width: 760px; }
.final__inner h2 { margin-bottom: 22px; }
.final__inner .lede-display { margin-bottom: 36px; font-style: italic; font-weight: 300; }
.final__area { margin-top: 36px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--earth); font-weight: 500; }

/* footer */
.footer { position: relative; overflow: hidden; padding-top: clamp(72px, 9vw, 128px); padding-bottom: 0; }
.footer__art { position: absolute; right: -2%; bottom: -20%; width: clamp(320px, 30vw, 460px); pointer-events: none; }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 64px); max-width: 62%; }
.footer__closing { font-family: var(--display); font-size: clamp(40px, 5.2vw, 72px); line-height: 1; color: var(--cream); letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
.footer__closing span { display: block; }
.footer__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; max-width: 560px; }
.footer__cols h4 { font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(242,239,230,.85); margin-bottom: 14px; }
.footer__cols a, .footer__cols span { display: block; color: var(--cream); font-size: 16px; line-height: 1.75; }
.footer__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__nav a { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.footer__bottom { position: relative; z-index: 1; margin-top: clamp(48px, 6vw, 88px); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(242,239,230,.25); display: flex; flex-wrap: wrap; gap: 12px 32px; max-width: 62%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(242,239,230,.85); }

/* =============================================================
   INNER PAGES
   ============================================================= */
.page-hero { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(56px, 7vw, 104px); overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero h1 { margin-bottom: 26px; }
.page-hero .lede-display { margin-bottom: 20px; max-width: 20em; }
.page-hero .lede { max-width: 560px; margin-bottom: 36px; }
.page-hero--simple .page-hero__grid { grid-template-columns: 8fr 4fr; align-items: end; }
.page-hero__aside { padding-bottom: 8px; }
.page-hero__aside .num { display: block; margin-bottom: 10px; }
.crumbs { display: flex; gap: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--earth); font-weight: 500; margin-bottom: 26px; }
.crumbs a:hover { color: var(--leaf); }
.crumbs span::before { content: "/"; margin-right: 10px; color: var(--stone); }

/* service index rows (Tree Care) */
.svc-row { display: grid; grid-template-columns: 1.2fr 4fr 3fr; gap: clamp(24px, 3vw, 48px); align-items: start; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid rgba(90,46,54,.22); }
.svc-row:last-of-type { border-bottom: 1px solid rgba(90,46,54,.22); }
.svc-row__art { aspect-ratio: 1; width: 100%; max-width: 240px; border-radius: 6px; overflow: hidden; background-size: 230% auto !important; }
.svc-row h2 { font-size: clamp(28px, 3vw, 44px); margin: 6px 0 12px; }
.svc-row h2 a:hover { color: var(--leaf); }
.svc-row__micro { font-family: var(--display); font-size: clamp(19px, 1.6vw, 22px); color: var(--bark); font-variation-settings: "opsz" 72; margin-bottom: 16px; }
.svc-row__desc { color: rgba(43,43,43,.82); }
.svc-row .link-arrow { margin-top: 18px; }
.svc-row--sig { background: var(--leaf); color: var(--cream); margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); border-top: 0; border-bottom: 0; }
.svc-row--sig + .svc-row { border-top: 0; }
.svc-row--sig h2, .svc-row--sig .svc-row__micro { color: var(--cream); }
.svc-row--sig .svc-row__desc { color: rgba(242,239,230,.88); }
.svc-row--sig .num { color: rgba(242,239,230,.85); }
.svc-row--sig .svc-row__art { outline: 1px solid rgba(242,239,230,.3); }

/* service page */
.svc-intro { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc-intro .lede-display { margin-bottom: 26px; }
.svc-intro__scene { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; max-width: 380px; margin-left: auto; }
.svc-media { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: end; }
.svc-media .ph:nth-child(2) { aspect-ratio: 4 / 5; }
.svc-media--3 { grid-template-columns: 5fr 7fr; }
.svc-media--3 .ph:nth-child(1) { aspect-ratio: 4 / 5; }
.svc-media--3 .ph:nth-child(2) { aspect-ratio: 4 / 3; }
.scope { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; padding: 32px 0; border-top: 1px solid rgba(90,46,54,.25); border-bottom: 1px solid rgba(90,46,54,.25); }
.scope p { max-width: 640px; }
.more-svc { padding-top: 36px; border-top: 1px solid rgba(90,46,54,.25); }
.more-svc__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 28px; }
.more-svc__list a { display: block; padding-top: 16px; border-top: 1px solid rgba(90,46,54,.2); }
.more-svc__list a:hover h3 { color: var(--leaf); }
.more-svc__list h3 { font-size: 22px; margin: 8px 0 8px; transition: color .2s; }
.more-svc__list p { font-size: 14px; color: var(--earth); }

/* habitat page */
.hh-method { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(40px, 5vw, 80px) 0; }
.hh-method--flip .hh-method__media { order: 2; }
.hh-method h2 { font-size: clamp(30px, 3.4vw, 48px); margin: 10px 0 18px; }
.hh-method p { max-width: 48ch; }
.hh-method + .hh-method { border-top: 1px solid rgba(90,46,54,.22); }
.hh-band { overflow: hidden; }
.hh-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }

/* scattered photo collage — a handful of field photos laid out like loose
   prints rather than a rigid grid, each with a slight rotation and its own
   little caption. Used wherever we want extra photography without forcing
   it into the page's structured media slots. */
.collage { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(20px, 3.5vw, 44px) clamp(28px, 5vw, 64px); padding: clamp(12px, 2vw, 20px) 0 clamp(28px, 3vw, 40px); }
.collage__item { width: clamp(170px, 21vw, 250px); background: var(--cream); padding: 10px 10px 20px; border-radius: 8px; box-shadow: 0 20px 44px -22px rgba(20,14,12,.4); transform: rotate(var(--r, 0deg)); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.collage__item:nth-child(2n) { margin-top: clamp(18px, 3vw, 34px); }
.collage__item:hover { transform: rotate(0deg) scale(1.035); box-shadow: 0 26px 54px -20px rgba(20,14,12,.48); z-index: 2; position: relative; }
.collage__item .photo { margin: 0; border-radius: 3px; aspect-ratio: 4 / 5; }
.collage__item .collage__cap { display: block; margin-top: 10px; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 13px; text-align: center; color: var(--earth); font-variation-settings: "opsz" 30; }

/* a small secondary photo pinned over the corner of a larger one — the
   "slight overlay" collage treatment for a single accent image */
.photo-accent-wrap { position: relative; }
.photo-accent { position: absolute; width: clamp(96px, 16%, 150px); z-index: 2; background: var(--cream); padding: 7px 7px 14px; border-radius: 6px; box-shadow: 0 18px 40px -18px rgba(20,14,12,.5); transform: rotate(var(--r, -6deg)); }
.photo-accent .photo { margin: 0; border-radius: 2px; aspect-ratio: 4 / 5; }
/* the accent can land inside a plain (non-panel) .split__media, whose general rule forces
   its photos to position:absolute/inset:0 to fill the stretched container — override that
   for the small accent so it sizes to its own box instead of collapsing to zero height */
.photo-accent .photo, .photo-accent .ph { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 5 !important; }
.photo-accent .photo__frame { position: relative !important; inset: auto !important; }
.photo-accent--br { right: -8%; bottom: -10%; }
.photo-accent--bl { left: -8%; bottom: -10%; }
/* inset variant — tucked just inside the photo's own corner rather than hanging past its
   edge, for photo slots whose container is clipped (e.g. the hero, inside overflow:hidden) */
.photo-accent--inset-bl { left: 4%; bottom: 11%; }
.photo-accent .collage__cap { display: block; margin-top: 6px; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 11px; text-align: center; color: var(--earth); }

/* about page */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.person h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 18px 0 4px; }
.person .num { display: block; margin-bottom: 8px; }
.person p { color: rgba(43,43,43,.82); max-width: 40ch; }

/* our work page */
.work-index .project { align-items: start; }

/* quote page */
.quote { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.quote__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.quote__aside h1 { margin-bottom: 22px; }
.quote__aside .lede { max-width: 440px; margin-bottom: 18px; }
.quote__contact { margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(90,46,54,.3); }
.quote__contact a { display: block; font-family: var(--display); font-size: 26px; color: var(--bark); line-height: 1.3; font-variation-settings: "opsz" 72; }
.quote__contact a:hover { color: var(--leaf); }
.quote__contact .num { display: block; margin-top: 18px; margin-bottom: 4px; }
.form { display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field label, .fieldset > legend { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bark); margin-bottom: 10px; }
.field .hint { font-size: 14px; color: var(--earth); margin: -4px 0 10px; }
.field .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--earth); margin-left: 6px; font-size: 13px; }
.input, .select, .textarea {
  width: 100%; font: 400 17px/1.4 var(--body); color: var(--charcoal);
  background: rgba(255,255,255,.55); border: 1px solid rgba(122,105,88,.5); border-radius: 6px;
  padding: 14px 16px; transition: border-color .2s, background-color .2s; appearance: none; -webkit-appearance: none;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--leaf); background: rgba(255,255,255,.8); box-shadow: 0 0 0 3px rgba(46,91,69,.15); }
.textarea { min-height: 170px; resize: vertical; }
.select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A2E36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { text-transform: none; letter-spacing: 0; font-weight: 400; margin-bottom: 0; color: var(--charcoal); display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid rgba(122,105,88,.5); border-radius: 6px; cursor: pointer; font-size: 15px; background: rgba(255,255,255,.4); transition: border-color .2s, background-color .2s; min-height: 48px; }
.choice label:hover { border-color: var(--bark); }
.choice input { width: 18px; height: 18px; accent-color: var(--leaf); margin: 0; }
.choice label:has(input:checked) { border-color: var(--leaf); background: rgba(46,91,69,.08); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--leaf); outline-offset: 2px; }
.safety-note { display: none; margin-top: 12px; padding: 14px 16px; border-left: 3px solid var(--clay); background: rgba(226,162,90,.12); font-size: 15px; }
.safety-note.is-on { display: block; }
.file { font-size: 15px; color: var(--charcoal); }
.file::file-selector-button { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--bark); background: transparent; border: 1px solid rgba(90,46,54,.6); border-radius: 6px; padding: 12px 16px; margin-right: 14px; cursor: pointer; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 8px; }
.form__submit .btn { min-width: 220px; }
.form__note { font-size: 14px; color: var(--earth); max-width: 44ch; }
.form__status { display: none; padding: 18px 20px; border-radius: 6px; border: 1px solid rgba(46,91,69,.4); background: rgba(46,91,69,.08); }
.form__status.is-error { border-color: rgba(90,46,54,.5); background: rgba(90,46,54,.07); }
.form__status.is-on { display: block; }
.honey { position: absolute; left: -9999px; }
.thanks { max-width: 720px; }
.thanks h1 { margin-bottom: 22px; }
.thanks .lede { margin-bottom: 36px; }

/* 404 */
.nf { min-height: 60vh; display: grid; align-items: center; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .nav a { letter-spacing: .14em; }
  .tree-callout { width: 260px; }
  .tree-callout h3 { font-size: 26px; }
  .tree-callout--sig h3 { font-size: 32px; }
  .tree-callout p { font-size: 14.5px; }
  .more-svc__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav, .header__call { display: none; }
  .menu-btn { display: inline-flex; }
  .header__actions .btn { height: 44px; padding: 0 18px; font-size: 12px; }
  .mbar { display: flex; }
  body { padding-bottom: 72px; }
  .footer__bottom { padding-bottom: 22px; }

  .page-hero__grid, .page-hero--simple .page-hero__grid { grid-template-columns: 1fr; }
  .ph--hero, .photo.ph--hero { aspect-ratio: 4 / 3; }
  .photo--wide, .photo.ph--pano, .ph.ph--pano { aspect-ratio: 4 / 3; }
  .split { grid-template-columns: 1fr; }
  .split__copy, .split__media--left + .split__copy {
    padding-inline: var(--gutter); padding-block: clamp(28px, 7vw, 44px);
  }
  .split__media { min-height: 0; height: 66vw; max-height: 440px; }
  .split__media--panel { height: auto; padding: 14px; }
  .habitat__row { margin: clamp(28px, 7vw, 48px) 0; }
  .band--tall { height: clamp(48px, 15vw, 84px); }
  .band--mid { height: clamp(34px, 10vw, 60px); }
  .mission__grid, .svc-intro, .quote, .hh-band__inner { grid-template-columns: 1fr; }
  .tree-head, .habitat__head, .work__head { grid-template-columns: 1fr; }
  .tree-desktop { display: none; }
  .tree-mobile { display: block; }
  .project, .project--flip .project__media { grid-template-columns: 1fr; order: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid .project:nth-child(n) { grid-column: auto; grid-template-columns: 1fr; margin-top: 0; }
  .work-grid .project:nth-child(3) .project__copy { order: 0; }
  .project__media { max-width: 640px; }
  .proof__row { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .proof__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer__grid, .footer__bottom { max-width: none; }
  .footer__art { right: -22%; bottom: -12%; width: 300px; opacity: .35; }
  .svc-row { grid-template-columns: 120px 1fr; }
  .svc-row__desc-col { grid-column: 2; }
  .svc-media, .svc-media--3 { grid-template-columns: 1fr; }
  .svc-media .ph:nth-child(2), .svc-media--3 .ph:nth-child(1) { aspect-ratio: 4 / 3; }
  .svc-intro__scene { margin-left: 0; aspect-ratio: 3 / 2; max-width: none; }
  .scope { grid-template-columns: 1fr; gap: 12px; }
  .hh-method, .hh-method--flip .hh-method__media { grid-template-columns: 1fr; order: 0; }
  .people { grid-template-columns: 1fr; }
  .quote__aside { position: static; }
  .collage__item { width: clamp(130px, 40vw, 200px); }
  .photo-accent { width: clamp(84px, 30vw, 120px); }
  .photo-accent--br { right: -4%; bottom: -8%; }
  .photo-accent--bl { left: -4%; bottom: -8%; }
  .photo-accent--inset-bl { left: 4%; bottom: 5%; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand img { width: 40px; height: 40px; }
  .brand__name { font-size: 17px; }
  .header__actions .btn { display: none; }
  .header__actions { gap: 12px; }
  .hero__proof span { display: block; }
  .hero__proof span + span::before { content: none; }
  .form__row { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row__art { max-width: 140px; }
  .svc-row__desc-col { grid-column: auto; }
  .more-svc__list { grid-template-columns: 1fr; }
  .proof__row { grid-template-columns: 1fr; }
  .proof__item { border-left: 0; padding-left: 0; padding-top: 16px; border-top: 1px solid rgba(242,239,230,.25); }
  .proof__item:first-child { border-top: 0; padding-top: 0; }
  .footer__cols { grid-template-columns: 1fr; }
  .mnav__links a { font-size: 34px; }
  .tree-chapter h3 { font-size: 27px; }
  .tree-chapter--sig h3 { font-size: 32px; }
}
