/* ============================================================
   site.css — davidtownshend.site, rebuilt 2026-10-16 on the homepage
   system shared with jessicadoylemekkes.com, the LCT site and karsten.cv
   (h-hero → h-cred → h-seen → h-statement → h-callout → h-about →
   h-services → book → h-convo → rich footer; p-* kit for inner pages).

   Palette is David's own: the #0a8a50 green and near-black ground of his
   previous site, extended into a forest/ink scale. WCAG AA (computed):
     #fff on --green #087a46 ............ 5.41:1  (buttons, small text)
     --green #087a46 on #fff ............ 5.41:1  (links, small labels)
     --title #0a8a50 on #fff ............ 4.41:1  (display/large text only, >=3:1)
     --mint #2fd08a on --deep #07120e ... 9.54:1  (display words on dark)
     --mint on --forest #0f3324 ......... 6.92:1
     body #1f2a25 on #fff ............... 14.83:1
     #fff on --forest ................... 13.82:1
   Montserrat (his heading face) self-hosted; zero client-side JS.
   ============================================================ */

@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/assets/fonts/montserrat-latin-normal-300_800.woff2?v=c154477b) format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/montserrat-latin-italic-400_700.woff2?v=9c67aa97) format("woff2");
}

:root {
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --green: #087a46;        /* buttons, links — white on it 5.41:1 */
  --green-hover: #065c35;
  --title: #0a8a50;        /* his brand green: big display words on light grounds */
  --mint: #2fd08a;         /* display words on dark grounds */
  --deep: #07120e;         /* ink + darkest ground */
  --forest: #0f3324;
  --grey: #f1f4f2;
  --body: #1f2a25;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--body);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font); margin: 0; color: inherit; }
img { max-width: 100%; }
a { color: var(--green); }
section { padding: 0; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--green); color: #fff; padding: .7rem 1.2rem; font-weight: 700; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.h-wrap { width: min(100% - 2.5rem, 1240px); margin-inline: auto; }

/* ---- buttons -------------------------------------------------------- */
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border-radius: 999px; border: 3px solid var(--green);
  padding: 1.1rem 2.2rem; font-family: var(--font); font-size: 1.125rem; font-weight: 700; line-height: 1.1;
  text-decoration: none; color: #fff; text-align: center; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.h-btn-fill { background: var(--green); }
.h-btn-fill:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; }
.h-btn-outline { background: transparent; color: #fff; border-color: var(--mint); }
.h-btn-outline:hover { background: var(--green); border-color: var(--green); color: #fff; }
.h-btn-outline.dark { color: var(--deep); border-color: var(--green); }
.h-btn-outline.dark:hover { color: #fff; }
.h-btn-sm { font-size: .9rem; padding: .8rem 1.9rem; border-width: 2px; text-transform: uppercase; letter-spacing: .02em; }
.h-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }
.h-btns .h-btn { min-width: 15rem; padding-inline: 1.8rem; }
@media (max-width: 860px) { .h-btns .h-btn { min-width: 0; width: 100%; } }

/* ---- utility bar + header ------------------------------------------ */
.h-top { background: linear-gradient(90deg, var(--green), var(--forest)); color: #fff; font-size: .85rem; }
.h-top .h-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.h-top a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.h-top a:hover { text-decoration: underline; }
@media (max-width: 560px) { .h-top .h-wrap { justify-content: center; } .h-top a + a { display: none; } }

.h-head { background: #fff; position: relative; z-index: 5; border-bottom: 1px solid #e3e9e5; }
.h-head-inner { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 1.5rem; }
.h-logo { color: var(--deep); text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; }
.h-logo span { color: var(--title); }
.h-logo small { display: block; font-weight: 500; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: #4a5a52; margin-top: .45rem; }
.h-nav { display: flex; align-items: center; gap: 2.2rem; }
.h-nav ul { list-style: none; display: flex; gap: 2.1rem; margin: 0; padding: 0; }
.h-nav ul a { color: var(--deep); text-decoration: none; font-weight: 600; font-size: .99rem; }
.h-nav ul a:hover, .h-nav ul a[aria-current] { color: var(--green); }
.h-nav ul a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
.h-pill { background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: .99rem; padding: .95rem 1.9rem; border-radius: 999px; white-space: nowrap; }
.h-pill:hover { background: var(--green-hover); color: #fff; }
.h-toggle { position: absolute; opacity: 0; pointer-events: none; }
.h-burger { display: none; cursor: pointer; color: var(--deep); }
@media (max-width: 960px) {
  .h-head-inner { min-height: 80px; flex-wrap: wrap; }
  .h-burger { display: block; }
  .h-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 1.25rem; gap: 1rem; }
  .h-nav ul { flex-direction: column; gap: .9rem; }
  .h-toggle:checked ~ .h-nav { display: flex; }
  .h-toggle:focus-visible + .h-burger { outline: 3px solid var(--green); outline-offset: 3px; }
}

/* ---- hero -----------------------------------------------------------
   Dark ground with an emerald light pool behind the cut-out, falling to ink. */
.h-hero {
  background:
    radial-gradient(36% 70% at 24% 55%, rgba(16, 150, 92, .55), transparent 72%),
    radial-gradient(40% 60% at 100% 100%, rgba(10, 138, 80, .28), transparent 70%),
    linear-gradient(90deg, #0b2a1e 0%, #08160f 50%, #050b08 100%);
  color: #fff; overflow: hidden;
}
.h-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; min-height: 680px; gap: 2rem; }
.h-hero-figure { align-self: end; line-height: 0; padding-top: 2.5rem; }
.h-hero-figure img { width: 100%; max-width: 780px; height: auto; display: block; margin-inline: auto; }
.h-hero-copy { align-self: center; text-align: center; padding-block: 3rem; }
.p-kicker { font-weight: 600; font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; color: #fff; margin: 0 0 1.4rem; }
/* Stacked headline. Every line keeps line-height >= .95 and a positive gap, so
   the lines never touch at any width (the karsten.cv overlap bug). */
.h-hero h1 { display: flex; flex-direction: column; align-items: center; }
.h-hero h1 .big {
  display: block; font-weight: 800; text-transform: uppercase; color: var(--mint);
  font-size: clamp(4rem, 1rem + 8vw, 8.4rem); letter-spacing: -.02em; line-height: .95;
}
.h-hero h1 .light {
  display: block; font-weight: 300; color: #fff;
  font-size: clamp(2.3rem, .9rem + 3.6vw, 4.4rem); letter-spacing: -.025em; line-height: 1.1;
  margin-top: .18em;
}
.h-hero-sub { font-size: clamp(1.05rem, .95rem + .35vw, 1.25rem); line-height: 1.55; margin: 1.6rem auto 0; max-width: 34em; color: #e6efe9; }
@media (max-width: 860px) {
  .h-hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .h-hero-copy { order: -1; padding-bottom: .5rem; }
  .h-hero-figure img { max-width: 510px; }
  /* stacked layout: the desktop light pool (36% x 70% at 24%) became a tall
     column on a phone; centre it low, behind the portrait */
  .h-hero {
    background:
      radial-gradient(85% 32% at 50% 82%, rgba(16, 150, 92, .5), transparent 72%),
      linear-gradient(180deg, #08160f 0%, #0b2a1e 100%);
  }
}

/* backlight: stacked drop-shadows follow the cut-out's alpha, so the light sits
   behind his hair at any size. Tight warm rim → soft halo → wide green bloom. */
.h-hero-figure img, .p-hero-figure.cut img, .cutpanel img {
  filter:
    drop-shadow(0 0 6px rgba(236, 255, 244, .5))
    drop-shadow(0 0 22px rgba(190, 245, 215, .32))
    drop-shadow(0 -6px 60px rgba(47, 208, 138, .45));
  /* No mask: a mask clips the drop-shadow glow to the image box, which drew a
     hard-edged column behind him. Both shoulders are whole in the image (the
     cropped one was rebuilt, see tools/make_images.py), so nothing needs hiding. */
}

/* ---- credential bar ------------------------------------------------- */
.h-cred { background: linear-gradient(-160deg, var(--forest) 0%, var(--deep) 100%); color: #fff; text-align: center; padding-block: 1.7rem; }
.h-cred h2, .h-cred p { font-size: clamp(1.05rem, .7rem + 1vw, 1.6rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: 0; }

/* ---- "stages & projects" strip (text marks: he has no logo files) ---- */
.h-seen { padding-block: clamp(3rem, 6vw, 4.5rem); background: #fff; }
.h-seen-label { color: var(--green); text-align: center; text-transform: uppercase; font-weight: 600; font-size: .85rem; letter-spacing: .22em; margin: 0 0 1.6rem; }
.h-marks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3.2rem; }
.h-marks li { font-weight: 800; font-size: clamp(1.05rem, .85rem + .7vw, 1.45rem); letter-spacing: -.02em; color: var(--deep); text-align: center; }
.h-marks li small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #4a5a52; margin-top: .25rem; }
.h-marks a { color: inherit; text-decoration: none; }
.h-marks a:hover { color: var(--green); }

/* ---- statement ------------------------------------------------------ */
.h-statement {
  background:
    repeating-radial-gradient(ellipse 140% 30% at 50% 110%, rgba(255,255,255,.022) 0 18px, transparent 18px 44px),
    radial-gradient(70% 60% at 50% 30%, #12402d 0%, transparent 70%),
    linear-gradient(180deg, #0b2219 0%, #07120e 100%);
  color: #fff; text-align: center;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(9rem, 14vw, 12rem);
}
.h-q { font-weight: 300; font-style: italic; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); line-height: 1.25; letter-spacing: -.02em; margin: 0 auto 1rem; max-width: 26em; }
.h-q-who { font-size: .85rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--mint); margin: 0 0 3rem; }
.h-who { font-weight: 300; font-size: clamp(1.6rem, 1rem + 2vw, 2.7rem); line-height: 1.22; letter-spacing: -.025em; margin: 0 auto; max-width: 28em; }
.h-who b { font-weight: 700; }
.h-who span { font-weight: 700; color: var(--mint); }
.h-three { list-style: none; padding: 0; margin: clamp(3rem, 5vw, 4.5rem) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.h-three svg, .h-ico {
  width: 64px; height: 64px; fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.h-three p { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); margin: 1rem 0 0; line-height: 1.4; }
.h-three b { font-weight: 700; }
@media (max-width: 760px) { .h-three { grid-template-columns: 1fr; } }

/* ---- callout (overlaps the statement band) -------------------------- */
.h-callout-wrap { margin-top: calc(-1 * clamp(6rem, 10vw, 8.5rem)); position: relative; z-index: 2; }
.h-callout {
  background: linear-gradient(180deg, var(--title) 0%, var(--green) 55%, #065c35 100%);
  color: #fff; text-align: center;
  padding: clamp(2.5rem, 5vw, 3.8rem) clamp(1.5rem, 5vw, 4rem);
}
.h-callout h2 { font-weight: 700; font-size: clamp(1.55rem, 1rem + 1.8vw, 2.7rem); line-height: 1.2; letter-spacing: -.025em; max-width: 30ch; margin-inline: auto; }
/* bold 19.2px = WCAG large text; white on the #0a8a50 top stop is 4.41:1 */
.h-callout p { margin: 1.4rem 0 0; font-size: 1.2rem; font-weight: 700; }
.h-callout p a { color: #fff; }

/* ---- stacked display headings (About / DAVID) ------------------------ */
.h-stack { display: flex; flex-direction: column; color: var(--deep); }
.h-stack.center { align-items: center; text-align: center; }
.h-stack .light { display: block; font-weight: 300; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 4rem); letter-spacing: -.025em; line-height: 1.05; }
.h-stack .big {
  display: block; font-weight: 800; text-transform: uppercase; color: var(--title);
  font-size: clamp(3.4rem, 1.8rem + 5.6vw, 7rem); letter-spacing: -.03em; line-height: .95; margin-top: .06em;
}
.h-stack .big.long { font-size: clamp(2.4rem, 1rem + 4.6vw, 5.2rem); }
.on-dark .h-stack, .on-dark.h-stack { color: #fff; }
.on-dark .h-stack .big { color: var(--mint); }

/* ---- about ---------------------------------------------------------- */
.h-about { padding: clamp(4rem, 8vw, 7rem) 0; }
.h-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.h-about-grid > div:first-child { max-width: 600px; }
.h-lead { font-weight: 700; font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem); line-height: 1.3; color: var(--deep); margin: 2rem 0 1.5rem; }
.h-about p { font-size: 1.1rem; line-height: 1.6; margin: 0 0 1.2rem; }
.h-about p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.h-about .h-btn { margin-top: 1rem; }
.stats-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1.8rem 0 1.4rem; padding: 0; list-style: none; }
.stats-row li { border-top: 3px solid var(--title); padding-top: .6rem; min-width: 0; }
.stats-row b { display: block; font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1vw, 2.2rem); line-height: 1; color: var(--title); letter-spacing: -.03em; }
.stats-row span { display: block; margin-top: .45rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--body); }
/* Duotone: greyscale photo washed forest → green, as Jessica's teal → violet. */
.h-duo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--forest); margin: 0; }
.h-duo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.08) brightness(1.05); display: block; }
.h-duo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(35deg, rgba(15, 51, 36, .95) 0%, rgba(10, 110, 70, .5) 50%, rgba(47, 208, 138, .4) 100%); mix-blend-mode: screen; }
.h-duo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(35deg, rgba(5, 15, 10, .35), transparent 60%); mix-blend-mode: multiply; }
.h-duo.plain::before, .h-duo.plain::after { display: none; }
.h-duo.plain img { filter: none; }
.h-duo.left img { object-position: 22% 30%; }
.h-duo.wide { aspect-ratio: 900 / 535; align-self: center; }
.h-duo img[src*="portrait"] { object-position: 50% 12%; }
@media (max-width: 860px) { .h-about-grid { grid-template-columns: 1fr; } .h-duo { max-width: 480px; } }

/* ---- services cards ------------------------------------------------- */
.h-services { padding: clamp(4rem, 8vw, 7rem) 0; }
.h-services.grey { background: var(--grey); }
.h-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.h-cards article { text-align: center; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.h-cards > article > img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.h-cards img.top { object-position: 50% 18%; }
.h-cards img.left { object-position: 30% 22%; }
.h-cards h3 { font-weight: 700; font-size: clamp(1.5rem, 1.2rem + .9vw, 2.1rem); color: var(--deep); letter-spacing: -.025em; margin: 1.6rem 0 1rem; line-height: 1.15; }
.h-cards p { font-size: 1.05rem; line-height: 1.5; max-width: 32ch; margin: 0 0 1.4rem; }
.h-cards ul.ticks { margin: 0 0 1.6rem; }
.h-cards .h-btn { margin-top: auto; min-width: 14rem; }
.h-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; margin-inline: auto; }
.card-num { font-weight: 800; font-size: 1rem; letter-spacing: .2em; color: var(--green); margin: 0; }
@media (max-width: 860px) { .h-cards, .h-cards.two { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; } }

/* text-only cards (affiliations, outcomes, themes) */
.t-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.t-cards.two { grid-template-columns: repeat(2, 1fr); }
.t-cards > li { background: #fff; border-top: 4px solid var(--title); padding: 2rem 1.8rem 1.8rem; box-shadow: 0 1px 0 #e3e9e5, 0 12px 30px rgba(7, 18, 14, .06); }
.t-cards h3 { font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: var(--deep); margin: .4rem 0 .7rem; line-height: 1.2; }
.t-cards p { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.t-cards .h-btn { margin-top: 1.3rem; }
@media (max-width: 960px) { .t-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .t-cards, .t-cards.two { grid-template-columns: 1fr; } }

/* check list */
ul.ticks { list-style: none; padding: 0; display: grid; gap: .7rem; text-align: left; }
ul.ticks li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1.02rem; line-height: 1.4; }
ul.ticks li::before {
  content: ""; flex: 0 0 24px; height: 24px; border-radius: 50%; margin-top: -.05rem;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---- backlit cut-out panel (card photo) ------------------------------ */
.cutpanel {
  position: relative; overflow: hidden; width: 100%; aspect-ratio: 3 / 2; display: flex; align-items: flex-start; justify-content: center;
  background:
    radial-gradient(34% 46% at 50% 36%, rgba(200, 255, 225, .30), rgba(120, 220, 170, .10) 55%, transparent 78%),
    radial-gradient(60% 70% at 50% 45%, rgba(47, 208, 138, .28), transparent 75%),
    linear-gradient(180deg, #0f3324 0%, var(--deep) 100%);
}
.cutpanel img { position: absolute; left: 50%; top: -2%; transform: translateX(-50%); width: auto; height: 150%; max-width: none; display: block; }

/* ---- book ----------------------------------------------------------- */
.h-book { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--grey); }
.h-book.white { background: #fff; }
.h-book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.h-book .book-sub { font-weight: 700; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); color: var(--deep); line-height: 1.3; margin: 1.6rem 0 1.2rem; }
.h-book p { font-size: 1.1rem; line-height: 1.6; max-width: 58ch; margin: 0 0 1.2rem; }
.h-book .h-btns { justify-content: flex-start; }
@media (max-width: 860px) { .h-book-grid { grid-template-columns: 1fr; } .h-book .h-btns { justify-content: center; } }

/* 3D book, CSS only (from the jdm-site kit). The cover is 348x522, so the stage
   never shows it wider than 300px (1.0x at 1x DPR — no upscaling past the file). */
.book3d-stage { perspective: 1800px; perspective-origin: 90% 40%; display: grid; justify-items: center; }
.book3d {
  --t: 34px; position: relative; width: 100%; max-width: 300px;
  transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.book3d:hover { transform: rotateY(-12deg) rotateX(1deg); }
.book3d > img {
  width: 100%; height: auto; display: block; border-radius: 2px 6px 6px 2px;
  transform: translateZ(calc(var(--t) / 2));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 28px 34px 60px rgba(0, 0, 0, .45);
}
.book3d::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 2px 6px 6px 2px;
  transform: translateZ(calc(var(--t) / 2 + 1px));
  background:
    linear-gradient(to right, rgba(0,0,0,.28) 0, rgba(255,255,255,.22) 1.3%, rgba(0,0,0,.3) 2.8%, rgba(255,255,255,.08) 4.2%, transparent 7.5%),
    linear-gradient(118deg, rgba(255,255,255,.16) 0, transparent 38%);
}
.book3d::after {
  content: ""; position: absolute; top: 4px; bottom: 4px; right: 3px; width: var(--t);
  transform-origin: right center; transform: translateZ(calc(var(--t) / -2)) rotateY(90deg);
  border-right: 3px solid #3a1a08;
  background: linear-gradient(to right, rgba(255,255,255,.1), rgba(0,0,0,.14)), repeating-linear-gradient(to right, #fbf7ef 0 2px, #e6dccb 2px 3px);
}
@media (max-width: 860px) { .book3d { --t: 24px; max-width: 240px; transform: rotateY(-22deg) rotateX(2deg); } }
@media (prefers-reduced-motion: reduce) { .book3d { transition: none; } .book3d:hover { transform: rotateY(-28deg) rotateX(2deg); } }

/* ---- buy band ------------------------------------------------------- */
.h-buy {
  color: #fff; text-align: center; padding: clamp(4rem, 7vw, 6rem) 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #0f3324 0%, #07120e 100%);
}
.h-inline { text-align: center; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 1.4rem; color: var(--deep); }
.h-inline .light { font-weight: 300; display: block; }
.h-inline .big { font-weight: 800; text-transform: uppercase; color: var(--title); display: block; margin-top: .08em; }
.h-buy .h-inline { color: #fff; }
.h-buy .h-inline .big { color: var(--mint); }
.h-buy p { font-size: 1.15rem; line-height: 1.55; margin: 0 auto; max-width: 44ch; color: #e6efe9; }

/* ---- conversation --------------------------------------------------- */
.h-convo { background: var(--grey); padding: clamp(4.5rem, 8vw, 7rem) 0; text-align: center; }
.h-convo-inner { max-width: 820px; }
.h-convo-inner > p { font-size: 1.15rem; line-height: 1.55; margin: 0 auto 1rem; max-width: 46ch; }
.h-convo .h-btns { margin-top: 2.2rem; }
.h-convo .fine { font-size: .95rem; margin-top: 1.6rem; }

/* ---- footer --------------------------------------------------------- */
.h-foot {
  color: #fff;
  background:
    radial-gradient(40% 80% at 0% 0%, rgba(10, 138, 80, .35), transparent 70%),
    radial-gradient(40% 80% at 100% 0%, rgba(15, 51, 36, .8), transparent 70%),
    linear-gradient(180deg, #0a1812, #050b08);
}
.h-foot-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 3rem; align-items: start; padding: clamp(3.5rem, 6vw, 5rem) 0; }
.h-foot-mark { color: #fff; text-decoration: none; font-weight: 800; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); letter-spacing: -.035em; line-height: 1; }
.h-foot-mark span { color: var(--mint); }
.h-foot-tag { margin: 1rem 0 0; font-weight: 600; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: #cfe0d6; }
.h-foot h3 { font-weight: 700; font-size: clamp(1.5rem, 1.2rem + .9vw, 2.1rem); letter-spacing: -.025em; margin-bottom: .8rem; line-height: 1.15; }
.h-foot p { font-size: 1.05rem; line-height: 1.5; margin: 0 0 1.4rem; color: #e6efe9; }
.h-foot .h-btn { width: 100%; }
.h-foot-links h4 { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mint); margin: 0 0 .9rem; }
.h-foot-links ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .55rem; }
.h-foot-links a { color: #fff; text-decoration: none; }
.h-foot-links a:hover { text-decoration: underline; }
.h-foot-base { background: var(--forest); font-size: .85rem; font-weight: 600; }
.h-foot-base .h-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; min-height: 56px; padding-block: .6rem; }
.h-foot-base a { color: #fff; text-decoration: none; display: inline-flex; }
.h-foot-base a:hover { text-decoration: underline; }
.h-foot-loc { margin-left: auto; }
@media (max-width: 900px) { .h-foot-grid { grid-template-columns: 1fr 1fr; } .h-foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .h-foot-grid { grid-template-columns: 1fr; } .h-foot-loc { margin-left: 0; } }

/* ============================================================
   INTERIOR PAGE KIT
   ============================================================ */
.p-hero {
  background:
    radial-gradient(45% 90% at 100% 0%, rgba(10, 138, 80, .35), transparent 70%),
    linear-gradient(180deg, #0b2219 0%, var(--deep) 100%);
  color: #fff; padding: clamp(4rem, 8vw, 6.5rem) 0; overflow: hidden;
}
.p-hero.has-quote { padding-bottom: clamp(8rem, 13vw, 10.5rem); }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.p-hero-grid.solo { grid-template-columns: minmax(0, 1fr); }
.p-hero h1 {
  font-weight: 800; text-transform: uppercase; color: var(--mint);
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 5rem); line-height: 1; letter-spacing: -.02em; max-width: 16ch;
}
.p-hero h1.long { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.2rem); }
.p-intro { margin: 1.6rem 0 0; font-size: clamp(1.08rem, .95rem + .5vw, 1.35rem); line-height: 1.5; max-width: 44ch; color: #fff; }
.p-hero .h-btns { justify-content: flex-start; margin-top: 2.2rem; }
.p-hero .h-btns .h-btn { min-width: 0; }
.p-hero-figure { justify-self: end; line-height: 0; margin: 0; }
.p-hero-figure img { width: 100%; max-width: 500px; height: auto; display: block; }
.p-hero-figure.cut { justify-self: stretch; align-self: end; padding-top: 1.5rem; margin-bottom: calc(-1 * clamp(4rem, 8vw, 6.5rem)); }
.p-hero-figure.cut img { max-width: 520px; max-height: 720px; object-fit: contain; object-position: center bottom; margin-inline: auto; }
.p-hero.has-quote .p-hero-figure.cut { margin-bottom: calc(-1 * clamp(8rem, 13vw, 10.5rem)); }
.p-hero-figure.frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; max-width: 440px; }
.p-hero-figure.frame.wide img { aspect-ratio: 900 / 535; max-width: 560px; }
.p-hero-figure.book { justify-self: center; width: 100%; }
@media (max-width: 860px) {
  .p-hero-grid { grid-template-columns: 1fr; }
  .p-hero-figure { justify-self: center; }
  .p-hero-figure img { max-width: 360px; }
  .p-hero-figure.cut img { max-width: 380px; max-height: 480px; }
  .p-hero .h-btns .h-btn { width: 100%; }
}

/* overlapping green quote box */
.p-quote-wrap { margin-top: calc(-1 * clamp(5.5rem, 9vw, 7.5rem)); position: relative; z-index: 2; }
.p-quote {
  margin: 0; background: linear-gradient(180deg, var(--green) 0%, #065c35 100%); color: #fff;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding: clamp(2.2rem, 4.5vw, 3.4rem) clamp(1.5rem, 5vw, 4rem);
}
.p-quote-mark { font-weight: 800; font-size: clamp(5rem, 3rem + 5vw, 8rem); line-height: .6; color: rgba(255, 255, 255, .9); padding-top: .3em; }
.p-quote blockquote { margin: 0; }
.p-quote .hl { font-weight: 700; font-size: clamp(1.35rem, 1rem + 1.1vw, 2rem); line-height: 1.25; letter-spacing: -.02em; margin: 0; }
.p-quote figcaption { margin: 1rem 0 0; font-size: .9rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 640px) { .p-quote { grid-template-columns: 1fr; } .p-quote-mark { display: none; } }

.eyebrow { font-weight: 600; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--green); margin: 0 0 1rem; }
.on-dark .eyebrow { color: var(--mint); }

/* big section title */
.p-title { text-align: center; font-weight: 800; text-transform: uppercase; color: var(--title); font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); letter-spacing: -.02em; line-height: 1.02; margin: 0 0 clamp(2.2rem, 4vw, 3.2rem); }
.p-title-sub { text-align: center; font-size: 1.1rem; line-height: 1.55; max-width: 60ch; margin: -1.2rem auto 2.8rem; }
.p-sec { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.p-sec.grey { background: var(--grey); }

/* dark detail band */
.p-detail {
  color: #fff; padding: clamp(4rem, 7vw, 6rem) 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #0f3324 0%, #07120e 100%);
}
.p-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.p-detail h2 { color: var(--mint); font-weight: 700; font-size: clamp(2rem, 1.3rem + 2vw, 3rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 1.3rem; }
.p-detail p { font-size: 1.08rem; line-height: 1.65; color: #e6efe9; margin: 0 0 1rem; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; counter-reset: p; }
.pillars li { counter-increment: p; border: 1px solid rgba(47, 208, 138, .4); padding: .9rem 1rem; font-weight: 600; font-size: 1rem; display: flex; gap: .8rem; align-items: baseline; }
.pillars li::before { content: counter(p, decimal-leading-zero); color: var(--mint); font-weight: 800; font-size: .85rem; letter-spacing: .08em; }
@media (max-width: 860px) { .p-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .pillars { grid-template-columns: 1fr; } }

/* timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(180deg, var(--title), rgba(10, 138, 80, .15)); }
.timeline li { position: relative; padding: 0 0 2.6rem 3.2rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: .35rem; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--title); }
.timeline .when { font-weight: 700; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green); margin: 0 0 .4rem; }
.timeline h3 { font-weight: 700; font-size: clamp(1.35rem, 1.1rem + .7vw, 1.8rem); letter-spacing: -.02em; color: var(--deep); margin: 0 0 .6rem; }
.timeline p { margin: 0; font-size: 1.08rem; line-height: 1.65; }

/* photo pair */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0; }
.photo-pair img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.photo-pair figcaption { grid-column: 1 / -1; text-align: center; font-size: .9rem; color: #4a5a52; }
@media (max-width: 560px) { .photo-pair { grid-template-columns: 1fr; } }

/* contact list */
.c-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.c-grid > li { background: #fff; padding: 1.8rem; border-top: 4px solid var(--title); box-shadow: 0 1px 0 #e3e9e5, 0 12px 30px rgba(7, 18, 14, .06); }
.c-grid h2 { font-size: .85rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green); margin: 0 0 .8rem; }
.c-grid p { margin: 0; font-size: 1.05rem; line-height: 1.7; overflow-wrap: anywhere; }
.c-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: 1.05rem; }
.c-grid a { color: var(--green); font-weight: 600; }
@media (max-width: 960px) { .c-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .c-grid { grid-template-columns: 1fr; } }

/* plain prose (privacy, terms) */
.p-prose { padding: clamp(3.5rem, 6vw, 5rem) 0; }
.p-prose .h-wrap { max-width: 780px; }
.p-prose h2 { font-weight: 700; font-size: 1.45rem; color: var(--deep); letter-spacing: -.02em; margin: 2.2rem 0 .8rem; }
.p-prose h2:first-child { margin-top: 0; }
.p-prose p, .p-prose li { font-size: 1.05rem; line-height: 1.7; }
.p-prose ul { padding-left: 1.3rem; }

/* ---- small modifiers ------------------------------------------------ */
.eyebrow.center { text-align: center; }
.p-detail .eyebrow { color: var(--mint); }
.h-cards .card-num { margin-top: 1.6rem; }
.h-cards .card-num + h3 { margin-top: .4rem; }
.t-cards .card-num { font-size: .85rem; }
.h-convo.white { background: #fff; }
.h-statement.short { padding: clamp(4rem, 7vw, 6rem) 0; }
.h-statement.short .h-q-who { margin-bottom: 0; }
.p-hero-figure.frame img.left { object-position: 22% 25%; }
