/* Chamberlin Studio — distilled
   Hero · Services · Portfolio · Reviews · CTA */

:root {
  --paper: #FFFFFF;
  --ink: #0E0E0E;
  --forest: #0F3D2E;
  --rule: #E4E3DC;
  --muted: #71716C; /* 4.7:1 on paper (WCAG AA); was #7A7A74 = 4.3:1 */
  --muted-deep: #55554F;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 80px);

  --font-display: "Anton", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.32, 0.72, 0.18, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: clip;
  overflow-y: auto;
  max-width: 100vw;
  width: 100%;
  touch-action: pan-y;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
  font-variant-numeric: tabular-nums;
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
img { display: block; max-width: 100%; height: auto; }
button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--forest); color: var(--paper); }


/* Subtle grain — breaks digital flatness without adding visible noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
}

/* ---------- TYPE ---------- */
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ink);
}
em { font-style: italic; color: var(--forest); }
strong { font-weight: 500; color: var(--ink); }

.label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
section { padding-block: clamp(64px, 9vw, 140px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  padding: 10px 12px 10px 22px;
  width: min(calc(100% - 32px), 860px);
  background: rgba(250, 250, 248, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 40px -18px rgba(15, 61, 46, 0.22),
              0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 250, 248, 0.72);
  box-shadow: 0 18px 44px -18px rgba(15, 61, 46, 0.28),
              0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.nav-links {
  padding-right: 10px;
}
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-wordmark .dot { color: var(--forest); }
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--spring);
}
.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .sep { color: var(--muted); padding: 0 2px; }

.nav-toggle { display: none; width: 36px; height: 36px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 6px; right: 6px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle.is-open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { top: 18px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 99;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 var(--gutter);
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.is-open { display: flex; opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(40px, 12vw, 88px);
  text-transform: uppercase;
  color: var(--ink);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

main { padding-top: 80px; }

/* ============================================================
   HERO  —  preserved
   ============================================================ */
.hero {
  padding-top: clamp(20px, 3vw, 48px);
  padding-bottom: clamp(80px, 12vw, 160px);
  padding-inline: var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  background: #FFFFFF;
  position: relative;
}
.hero-copy { position: relative; z-index: 2; }
.hero-video-wrap {
  display: none;
  position: absolute;
  /* positioned precisely by JS to sit right of "I turn" and above "businesses" */
  pointer-events: none;
  z-index: 1;
}
.hero-video-mobile {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(24px, 5vw, 48px);
}
@media (min-width: 960px) {
  .hero-video-mobile { display: none; }
}

/* On large screens: video fills the full height of the hero on the right,
   and a gradient behind the text keeps the copy legible over the video. */
@media (min-width: 1280px) {
  .hero-mark { font-size: clamp(56px, 8.5vw, 156px); }
  .hero-tag { font-size: clamp(16px, 1.2vw, 20px); max-width: 46ch; }
  .hero-video-spring {
    position: absolute;
    top: clamp(40px, 5vw, 80px);
    right: var(--gutter);
    width: min(50vw, 720px);
    transform: translate3d(0, var(--hero-video-y, 0px), 0);
    will-change: transform;
  }
  .hero-video-wrap {
    display: block !important;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    pointer-events: auto;
    transform-style: preserve-3d;
    transform: perspective(1400px);
    transition: transform 0.7s var(--spring);
  }
  .hero-video,
  .hero-video-freeze {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    background: transparent;
  }
  .hero-video-freeze {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
  }
  .hero-copy::before {
    content: "";
    position: absolute;
    top: -2vw;
    bottom: -2vw;
    left: calc(-1 * var(--gutter));
    right: 20%;
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.85) 0%,
      rgba(255,255,255,0.7) 55%,
      rgba(255,255,255,0) 100%
    );
    z-index: -1;
    pointer-events: none;
  }
}
.hero-video-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 25%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  opacity: var(--hero-veil-opacity, 1);
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap::before { opacity: 0; }
}
@media (min-width: 960px) {
  .hero-video-wrap { display: block; }
}
.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left top;
  background: transparent;
}
.hero-video-freeze {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.15s linear;
}
.hero-video-freeze.is-in { opacity: 1; }
.hero-mark span,
.hero-eyebrow,
.hero-tag { text-align: left; }
.hero-eyebrow { margin-top: clamp(32px, 5vw, 72px); margin-bottom: 14px; }
.hero-mark {
  font-family: var(--font-display);
  font-size: clamp(72px, 16vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
}
.hero-mark span { display: block; }
/* Anton's side bearings aren't metric-matched between I and B — nudge the
   "businesses" line so its B visually aligns with the I's above and below. */
.hero-mark span:nth-child(2) { margin-left: calc(-0.005em - 0.5px); }
.hero-mark em { color: var(--forest); font-style: italic; }
.hero-tag {
  margin-top: clamp(48px, 7vw, 88px);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  max-width: 60ch;
  text-wrap: pretty;
}
.hero-tag-by { color: var(--muted-deep); }

/* Tagline + Start a project button as one unit (2026-10-04, David):
   stacked on phones, side by side from tablet up. */
.hero-foot {
  margin-top: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero-foot .hero-tag { margin-top: 0; }
.hero-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero-cta:hover { background: #0b2e23; transform: translateY(-1px); }
.hero-cta:active { transform: translateY(0); }
.hero-cta:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
@media (min-width: 760px) {
  .hero-foot { flex-direction: row; align-items: center; gap: clamp(28px, 3vw, 48px); }
  .hero-foot .hero-tag { max-width: 40ch; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta { transition: none; }
  .hero-cta:hover { transform: none; }
}

/* Fullscreen-desktop layout: span full viewport so copy anchors
   to the left gutter and the video anchors to the right gutter.
   Placed after the base .hero-mark/.hero-tag rules so the cascade
   actually applies the overrides. */
@media (min-width: 1280px) {
  .hero {
    max-width: none;
    padding-inline: 0;
    padding-left: clamp(48px, 5vw, 120px);
    padding-right: 0;
  }
  .hero-mark { font-size: clamp(140px, 13vw, 280px); }
  .hero-mark span { white-space: nowrap; }
  .hero-tag { font-size: clamp(16px, 1.2vw, 20px); max-width: 46ch; }
  .hero-copy {
    max-width: calc(100vw - min(44vw, 820px) - clamp(48px, 5vw, 120px) - 24px);
    padding-left: 0;
  }
  .hero-video-spring {
    right: 0 !important;
    width: min(44vw, 820px) !important;
  }
}

/* ============================================================
   HERO GRID  —  angled wall of client sites drifting behind the
   hero, washed out by a white veil so the type stays in charge.
   Columns are duplicated by JS (js/main.js) for a seamless loop.
   ============================================================ */
.hero { isolation: isolate; }
.hero-grid {
  position: absolute;
  z-index: 0;
  top: -80px;               /* run up behind the fixed nav */
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  pointer-events: none;
}
.hero-grid-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 190%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(10px, 1.2vw, 20px);
  transform: translate(-50%, -50%) rotate(-12deg);
}
.hero-grid-col { overflow: visible; }
.hero-grid-col:nth-child(even) { margin-top: -9%; }
.hero-grid-track {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 20px);
  will-change: transform;
}
.hero-grid-track img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: clamp(6px, 0.7vw, 12px);
  box-shadow: 0 10px 30px -12px rgba(14, 14, 14, 0.35);
}
.hero-grid.is-looping .hero-grid-track {
  animation: hero-grid-up var(--grid-dur, 60s) linear infinite;
}
.hero-grid.is-looping .hero-grid-col:nth-child(even) .hero-grid-track {
  animation-name: hero-grid-down;
}
@keyframes hero-grid-up   { from { transform: translate3d(0, 0, 0); }    to { transform: translate3d(0, -50%, 0); } }
@keyframes hero-grid-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
/* White veil: an even wash, heavier behind the copy, and a fade into
   the page at the bottom so the hero melts into the marquee. */
.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0) 72%, #FFFFFF 100%),
    linear-gradient(to right,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.93) 34%,
      rgba(255,255,255,0.78) 48%,
      rgba(255,255,255,0.35) 60%,
      rgba(255,255,255,0) 72%);
}
@media (max-width: 959px) {
  .hero-grid-plane { width: 240%; grid-template-columns: repeat(7, 1fr); }
  .hero-grid::after {
    background:
      linear-gradient(to bottom, rgba(255,255,255,0) 70%, #FFFFFF 100%),
      linear-gradient(to right, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.84) 60%, rgba(255,255,255,0.55) 100%);
  }
}
.hero-grid.is-paused .hero-grid-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-grid.is-looping .hero-grid-track { animation: none; }
}
/* The grid's veil does the legibility work the old video gradient did. */
.hero-grid ~ .hero-copy::before { display: none; }
.hero-grid ~ .hero-copy { max-width: none; }

/* Lenis smooth scroll (js/lenis.min.js) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* At two columns the lead card spans the row so no card sits alone. */
@media (min-width: 901px) and (max-width: 1180px) {
  .work-cards > .work-card:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
}

/* ============================================================
   MARQUEE  —  one line, edge-dissolve mask, per-item magnify
   on hover. Quiet on the surface, rewards exploration.
   ============================================================ */
.marquee {
  padding: clamp(18px, 2.4vw, 34px) 0;
  position: relative;
  margin-top: 0;
  cursor: default;
  overflow: hidden;
  max-width: 100%;
  box-shadow: 0 36px 60px -24px rgba(15, 61, 46, 0.28);
}
.marquee-track {
  display: flex;
  gap: clamp(40px, 5vw, 80px);
  white-space: nowrap;
  width: max-content;
  will-change: transform;
}
.m-item {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 112px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  transform-origin: center center;
}
.m-item > .m-letter + .m-letter { margin-left: 0; }
.m-item::after { margin-left: clamp(40px, 5vw, 80px); }
.m-item::after {
  content: "";
  width: clamp(8px, 1vw, 14px);
  height: clamp(8px, 1vw, 14px);
  border-radius: 50%;
  background: var(--forest);
  flex-shrink: 0;
  transition: transform 0.6s var(--spring);
}
.m-letter {
  display: inline-block;
  transform-origin: center bottom;
  will-change: transform, color;
  color: var(--ink);
}
.brands-word {
  display: inline-block;
}
/* The lens filter is opt-in via JS: Safari/WebKit refuses to paint elements
   filtered through a data-URL feImage, hiding the word entirely. */
.brands-word.lens-on {
  filter: url(#brands-lens);
  will-change: filter;
}
@media (prefers-reduced-motion: reduce) {
  .brands-word { filter: none !important; }
}

@keyframes marquee-l {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============================================================
   STAIR  —  what i do, descending typographic composition
   ============================================================ */
.statement { padding-block: clamp(120px, 16vw, 220px); }
.stair {
  margin-top: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
}
.stair-line {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  padding: 0;
  transition: transform 0.6s var(--spring), color 0.4s var(--ease);
}
.s-1 { padding-left: 0; }
.s-2 { padding-left: clamp(32px, 8vw, 160px); }
.s-3 { padding-left: clamp(64px, 16vw, 320px); }
.s-4 {
  padding-left: clamp(96px, 24vw, 480px);
  color: var(--forest);
  font-style: italic;
}
.statement-foot {
  margin-top: clamp(56px, 8vw, 112px);
  margin-left: auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--muted-deep);
  max-width: 56ch;
  line-height: 1.55;
}
.statement-foot::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--forest);
  margin-bottom: 16px;
  margin-top: -25px;
}

/* ============================================================
   PORTFOLIO  —  full-bleed website screenshots, name overlay,
   3D tilt + dynamic shadow + cursor glare. Cards touch.
   ============================================================ */
.portfolio { padding-inline: clamp(16px, 2.5vw, 40px); }

/* ---------- PORTFOLIO INTRO — hero-scale doorway into the grid ---------- */
.portfolio-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.4vw, 36px);
  padding-inline: clamp(10px, 2vw, 24px);
  margin-bottom: clamp(32px, 5vw, 64px);
}
.portfolio-intro-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.portfolio-intro-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.portfolio-intro-count::before {
  content: "— ";
  color: var(--forest);
}
.portfolio-intro-headline {
  font-family: var(--font-display);
  font-size: clamp(72px, 13vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  display: flex;
  flex-direction: column;
}
.portfolio-intro-line {
  display: block;
  overflow: hidden;
}
.portfolio-intro-line:nth-child(2) { padding-left: clamp(24px, 6vw, 120px); }
.portfolio-intro-ink {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--spring);
  will-change: clip-path;
}
.portfolio-intro-line.is-in .portfolio-intro-ink {
  clip-path: inset(0 0 0 0);
}
.portfolio-intro-line:nth-child(2) .portfolio-intro-ink {
  transition-delay: 0.16s;
}
.portfolio-intro-headline em {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.portfolio-intro-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.5;
  color: var(--muted-deep, var(--muted));
  max-width: 40ch;
  margin: clamp(8px, 1.2vw, 20px) 0 0;
  padding-left: clamp(24px, 6vw, 120px);
}
.portfolio-intro-rule {
  height: 1px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease);
  margin-top: clamp(20px, 3vw, 40px);
  opacity: 0.82;
}
.portfolio-intro-rule.is-in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .portfolio-intro-ink,
  .portfolio-intro-line.is-in .portfolio-intro-ink {
    clip-path: none;
    transition: none;
  }
  .portfolio-intro-rule,
  .portfolio-intro-rule.is-in {
    transform: scaleX(1);
    transition: none;
  }
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 26px);
  margin-top: clamp(40px, 6vw, 80px);
  perspective: 1400px;
}
@media (max-width: 1180px) { .work-cards { grid-template-columns: 1fr 1fr; } }
.work-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background-color: var(--rule);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
  box-shadow: 0 4px 14px rgba(15, 61, 46, 0.08);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  isolation: isolate;
  overflow: hidden;
  will-change: transform;
}
.work-card:hover {
  z-index: 5;
  box-shadow: 0 24px 48px -18px rgba(15, 61, 46, 0.28),
              0 10px 22px -10px rgba(0, 0, 0, 0.15);
}
@media (prefers-reduced-motion: reduce) {
  .work-card,
  .work-card:hover {
    transform: none !important;
  }
}
/* Bottom-left darkening so the name reads on any screenshot */
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 70% at 0% 100%,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.55) 35%,
      rgba(0, 0, 0, 0.15) 65%,
      transparent 85%
    ),
    linear-gradient(
      180deg,
      transparent 55%,
      rgba(0, 0, 0, 0.35) 100%
    );
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}
/* Cursor-following glare */
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}
.work-card:hover::before { opacity: 1; }

.work-card-name {
  position: absolute;
  bottom: clamp(20px, 2.1vw, 32px);
  left: clamp(20px, 2.1vw, 32px);
  right: clamp(20px, 2.1vw, 32px);
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  transform: translateZ(30px);
  transition: color 0.4s var(--ease);
}
.work-card:hover .work-card-name { color: #ffffff; }

/* The site stays clear until a visitor points at it (David, 2026-10-04): the name
   and its corner shading show on hover and keyboard focus only. Touch screens show
   the site alone; the name is still the link's accessible name. */
.work-card:not(.work-card--cta)::after { opacity: 0; transition: opacity 0.35s var(--ease); }
.work-card:not(.work-card--cta) .work-card-name { opacity: 0; translate: 0 8px; transition: color 0.4s var(--ease), opacity 0.35s var(--ease), translate 0.35s var(--ease); }
.work-card:not(.work-card--cta):focus-visible::after,
.work-card:not(.work-card--cta):focus-visible .work-card-name { opacity: 1; translate: 0 0; }
@media (hover: hover) {
  .work-card:not(.work-card--cta):hover::after,
  .work-card:not(.work-card--cta):hover .work-card-name { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .work-card:not(.work-card--cta) .work-card-name,
  .work-card:not(.work-card--cta)::after { transition: none; translate: none; }
}

@media (max-width: 900px) {
  .work-cards { grid-template-columns: 1fr; }
}

/* Status tags on portfolio cards: small flat label that sits on the top edge (2026-10-01) */
.work-card--wip, .work-card--mock, .work-card--venture { overflow: visible; transform-style: flat; }
.work-card-tag {
  position: absolute;
  top: -9px;
  left: clamp(14px, 1.6vw, 22px);
  z-index: 4;
  padding: 4px 8px;
  border-radius: 4px;
  background: #C8211A;
  color: #fff;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.work-card-tag--mock { background: #1F5FD6; }
.work-card-tag--venture { background: #0F3D2E; }
.work-card--wip { background-position: center; }

/* "Your project next" card */
.work-card--cta {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background: transparent;
  border: 2px dashed rgba(14, 14, 14, 0.28);
  box-shadow: none;
  text-align: center;
}
.work-card--cta::after { display: none; }
.work-card--cta::before {
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), rgba(15, 61, 46, 0.08), transparent 60%);
}
.work-card--cta:hover { border-color: var(--forest); box-shadow: none; }
.work-card--cta .work-card-name {
  position: static;
  color: var(--ink);
  text-shadow: none;
}
.work-card--cta:hover .work-card-name { color: var(--forest); }
.work-card-plus {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  transform: translateZ(30px);
  transition: rotate 0.3s var(--ease);
}
.work-card--cta:hover .work-card-plus { rotate: 90deg; }
.work-card-cta-sub {
  position: relative;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transform: translateZ(20px);
}
/* With 14 project cards (Dave's Garage Doors added 10/5) the "Your project next" card takes one cell like the
   others, so every row stays full: 5 rows of 3 from 1181px, 8 rows of 2 (lead card spanning the first) below. */
@media (prefers-reduced-motion: reduce) {
  .work-card-plus { transition: none; }
}

/* ============================================================
   ROW LIST  —  legacy pattern (unused after portfolio redesign)
   ============================================================ */
.row-list {
  list-style: none;
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--ink);
}
.row-list li { list-style: none; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: clamp(24px, 4vw, 80px);
  align-items: baseline;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding 0.4s var(--spring);
}
a.row { display: grid; }
a.row:hover { padding-left: 16px; }
a.row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--forest);
  transition: width 0.4s var(--spring);
}
a.row:hover::before { width: 3px; }
.row-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
a.row:hover .row-name { color: var(--forest); }
.row-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-deep);
  max-width: 38ch;
}
.row-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-meta .arrow {
  font-size: 14px;
  color: var(--ink);
  transition: transform 0.4s var(--spring), color 0.3s var(--ease);
  display: inline-block;
}
a.row:hover .row-meta .arrow { transform: translate(6px, -3px); color: var(--forest); }

/* ============================================================
   REVIEWS  —  editorial pull-quote with oversized forest mark
   that the body text wraps around (magazine treatment)
   ============================================================ */
.reviews-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 4.5vw, 64px);
  text-align: center;
}
.reviews-head .label { display: inline-block; margin-bottom: clamp(14px, 1.8vw, 22px); }
.reviews-title {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(38px, 5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.reviews-title em { color: var(--forest); font-style: italic; }

.reviews-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 40px);
}
.review-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1.15fr;
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(24px, 3.2vw, 52px);
  box-shadow: 0 28px 60px -32px rgba(15, 61, 46, 0.28),
              0 1px 0 rgba(15, 61, 46, 0.04) inset;
  isolation: isolate;
}

/* Scroll-locked reveal: as the card enters view, the frame expands outward
   from the center photo and the side columns slide out from behind it.
   The user scrubs the motion with their scroll wheel. */
@supports (animation-timeline: view()) {
  .review-card {
    animation: review-card-open both linear;
    animation-timeline: view();
    animation-range: entry 10% cover 42%;
  }
  .review-intro {
    animation: review-left-slide both linear;
    animation-timeline: view();
    animation-range: entry 20% cover 50%;
  }
  .review-body {
    animation: review-right-slide both linear;
    animation-timeline: view();
    animation-range: entry 20% cover 50%;
  }
  .review-photo {
    animation: review-photo-pop both linear;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
}

@keyframes review-card-open {
  from { clip-path: inset(0 42% 0 42% round 18px); }
  to   { clip-path: inset(0 0 0 0 round 18px); }
}
@keyframes review-left-slide {
  from { opacity: 0; transform: translateX(35%) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes review-right-slide {
  from { opacity: 0; transform: translateX(-35%) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes review-photo-pop {
  from { transform: scale(0.92); filter: grayscale(0.3) contrast(1.02); }
  to   { transform: scale(1);    filter: grayscale(0.1) contrast(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .review-card, .review-intro, .review-body, .review-photo { animation: none; }
}

.review-intro .label { display: block; margin-bottom: clamp(14px, 1.8vw, 22px); }
.review-title {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
.review-title em {
  color: var(--forest);
  font-style: italic;
  display: block;
}

.review-photo {
  width: clamp(160px, 22vw, 300px);
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rule);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.25);
  transform: translateZ(0);
}
.review-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.1) contrast(1.02);
}

.review-body { position: relative; }
.review-mark {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--forest);
  font-size: clamp(72px, 8vw, 128px);
  line-height: 0.55;
  display: block;
  margin-bottom: clamp(14px, 1.6vw, 22px);
  user-select: none;
  pointer-events: none;
}
.review-quote-text {
  margin: 0 0 clamp(18px, 2.2vw, 32px);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 36ch;
}
.review-attrib {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.review-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.review-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.review-projects a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.review-projects a:hover {
  color: var(--brand, #ff6b1a);
  transform: translateX(2px);
}

/* Multi-paragraph testimonials */
.review-quote-text p { margin: 0 0 0.85em; }
.review-quote-text p:last-child { margin-bottom: 0; }

/* Longer, multi-paragraph testimonials get a wider measure */
.review-quote-long { max-width: 52ch; }

/* Monogram tile stands in for a headshot when a client has no photo */
.review-monogram {
  width: clamp(160px, 22vw, 300px);
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--forest) 0%, #0a2419 100%);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.25);
  transform: translateZ(0);
}
.review-monogram span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 6.5vw, 96px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--paper);
}

@supports (animation-timeline: view()) {
  .review-monogram {
    animation: review-photo-pop both linear;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .review-monogram { animation: none; }
}

@media (max-width: 900px) {
  .review-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    clip-path: inset(0 12% 0 12% round 18px);
    gap: clamp(18px, 3vw, 28px);
  }
  .review-card.is-in { clip-path: inset(0 0 0 0 round 18px); }
  /* Stacked card is tall: finish the slide once the quote is fully on screen,
     or the text is still offset while the whole card is in view. */
  .review-body { animation-range: entry 0% entry 100%; }
  .review-intro .label { display: inline-block; }
  .review-attrib { align-items: center; }
  .review-quote-text { margin-inline: auto; }
  .review-projects { justify-content: center; }
}

/* ============================================================
   FAQ  —  native <details> accordion, editorial card stack
   ============================================================ */
.faq-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 4.5vw, 64px);
  text-align: center;
}
.faq-head .label { display: inline-block; margin-bottom: clamp(14px, 1.8vw, 22px); }
.faq-sub { margin-inline: auto; }
.faq-title {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}
.faq-title em { color: var(--forest); font-style: italic; }
.faq-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--muted-deep, var(--muted));
  max-width: 52ch;
  margin: clamp(14px, 1.8vw, 22px) auto 0;
  line-height: 1.55;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.1vw, 14px);
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.5s var(--ease);
}
.faq-item[open] {
  border-color: rgba(15, 61, 46, 0.35);
  box-shadow: 0 18px 40px -28px rgba(15, 61, 46, 0.35);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.2vw, 28px) clamp(22px, 2.6vw, 36px);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.45s var(--spring);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.faq-icon::before { /* horizontal bar */
  width: 10px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {  /* vertical bar */
  width: 1.5px; height: 10px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-icon {
  background: var(--forest);
  border-color: var(--forest);
  transform: rotate(180deg);
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: var(--paper); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-item:hover:not([open]) {
  border-color: rgba(15, 61, 46, 0.28);
}
.faq-item:hover:not([open]) .faq-icon { border-color: var(--forest); }

.faq-a {
  padding: 0 clamp(22px, 2.6vw, 36px) clamp(20px, 2.4vw, 30px);
  max-width: 70ch;
}
.faq-a p {
  margin: 0 0 0.9em;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.6;
  color: var(--muted-deep, var(--muted));
  text-wrap: pretty;
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--ink); font-weight: 500; }
.faq-tiers-disclaimer {
  margin: 0.6em 0 1.6em;
  padding-bottom: 1.2em;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(13px, 0.92vw, 14.5px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* Pricing — breaks out of .faq-a's 70ch cap to use full FAQ-item width */
.faq-pricing {
  padding: 0 clamp(22px, 2.6vw, 36px) clamp(20px, 2.4vw, 30px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 0;
}
.pricing-grid > .tier-card--wide {
  grid-column: span 2;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  transition: border-color 0.3s var(--ease, ease), transform 0.3s var(--ease, ease), box-shadow 0.3s var(--ease, ease);
}
.tier-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -20px rgba(14, 14, 14, 0.35);
}

.tier-card--featured {
  border-color: var(--forest);
  background: linear-gradient(180deg, rgba(15, 61, 46, 0.05) 0%, rgba(15, 61, 46, 0) 70%);
}
.tier-card--featured:hover { border-color: var(--forest); }

.tier-badge {
  position: absolute;
  top: -10px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--forest);
  padding: 5px 9px;
  border-radius: 999px;
  line-height: 1;
}

.tier-card-head {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 14px;
}
.tier-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.2vw, 20px);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.tier-price {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tier-meta {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

.tier-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tier-features li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}
.tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid var(--forest);
  border-bottom: 1.5px solid var(--forest);
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}
.tier-features--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 24px;
}

.tier-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  align-self: flex-start;
  white-space: nowrap;
  transition: color 0.2s var(--ease, ease), gap 0.25s var(--ease, ease);
}
.tier-cta span {
  color: var(--muted);
  transition: color 0.2s var(--ease, ease), transform 0.25s var(--ease, ease);
}
.tier-cta:hover { color: var(--forest); gap: 9px; }
.tier-cta:hover span { color: var(--forest); transform: translateX(2px); }

.tier-cta--filled {
  align-self: stretch;
  justify-content: center;
  background: var(--forest);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
}
.tier-cta--filled span { color: var(--paper); }
.tier-cta--filled:hover {
  color: var(--paper);
  background: #0b2e23;
  gap: 9px;
}
.tier-cta--filled:hover span { color: var(--paper); }

/* Mobile — horizontal scroll-snap, no vertical stacks */
@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 8px 4px 14px;
    margin-inline: -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-grid > .tier-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .pricing-grid > .tier-card--wide {
    flex: 0 0 92%;
    grid-column: auto;
  }
  .tier-price { font-size: 28px; }
  .tier-features--two-col { grid-template-columns: 1fr; }
}

/* Smooth expand using details-content in supporting browsers, fallback to instant */
@supports (interpolate-size: allow-keywords) {
  .faq-item { transition: border-color 0.35s var(--ease), box-shadow 0.5s var(--ease); }
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}

/* ---------- LEGAL FOOTER (privacy/terms pages) ---------- */
.legal-footer {
  border-top: 1px solid var(--rule);
  padding: 32px var(--gutter);
}
.legal-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  gap: 20px;
  flex-wrap: wrap;
}
.legal-footer a { color: var(--muted); transition: color 0.25s var(--ease); }
.legal-footer a:hover { color: var(--forest); }
.legal-footer span[aria-hidden] { margin: 0 6px; color: var(--rule); }

/* ============================================================
   CONTACT  —  inline form + direct contact info
   ============================================================ */
.cta-line {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 12ch;
}
.cta-line em { color: var(--forest); font-style: italic; }

.contact-grid {
  margin-top: clamp(56px, 7vw, 112px);
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(48px, 7vw, 120px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(40px, 5vw, 72px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 32px);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .opt {
  text-transform: none;
  letter-spacing: 0.04em;
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
  resize: vertical;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--forest); }
.field textarea { min-height: 90px; line-height: 1.55; }
.field input:user-invalid:not(:focus),
.field textarea:user-invalid:not(:focus) {
  border-bottom-color: #c1272d;
}

.check {
  display: inline-flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted-deep);
  cursor: pointer;
  margin-top: 4px;
  line-height: 1.5;
  max-width: 56ch;
}
.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  position: relative;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.check input[type="checkbox"]:checked {
  background: var(--forest);
  border-color: var(--forest);
}
.check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 0;
  width: 5px; height: 10px;
  border: solid var(--paper);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.check a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.check a:hover { color: var(--forest); border-color: var(--forest); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.contact-submit {
  padding: 14px 32px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-submit:hover { background: var(--forest); }
.contact-submit:disabled { opacity: 0.6; cursor: wait; }
.form-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 16px;
}
.form-status.is-ok { color: var(--forest); }
.form-status.is-err { color: #c1272d; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 44px);
}
.info-block { display: flex; flex-direction: column; gap: 8px; }
.info-email {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
  max-width: 100%;
  font-size: clamp(18px, 2.1vw, 28px);
}
.info-email:hover { color: var(--forest); border-color: var(--forest); }
.info-block p {
  font-size: 15px;
  color: var(--muted-deep);
  line-height: 1.5;
}

.info-reps { padding: 0; }
.info-reps summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding-bottom: 8px;
}
.info-reps summary::-webkit-details-marker { display: none; }
.info-reps .reps-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.info-reps .reps-toggle::before,
.info-reps .reps-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.info-reps .reps-toggle::before { width: 9px; height: 1.2px; transform: translate(-50%, -50%); }
.info-reps .reps-toggle::after  { width: 1.2px; height: 9px; transform: translate(-50%, -50%); }
.info-reps[open] .reps-toggle::after { transform: translate(-50%, -50%) scaleY(0); }
.info-reps[open] .reps-toggle::before { background: var(--forest); }

.rep-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rep {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.rep:first-child { border-top: 0; padding-top: 0; }
.rep-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.rep-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--forest) 0%, #1f4a3a 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  line-height: 1;
  user-select: none;
}
.rep-avatar::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  line-height: 1;
}
.rep-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rep-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 17px);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}
.rep-email,
.rep-phone {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted-deep);
  transition: color 0.25s var(--ease);
  word-break: break-all;
  line-height: 1.4;
}
.rep-phone { font-variant-numeric: tabular-nums; word-break: normal; }
.rep-email:hover,
.rep-phone:hover { color: var(--forest); }
.rep-location {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}
.rep-recruit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.3s var(--ease);
}
.rep-recruit:hover { color: var(--forest); border-color: var(--forest); gap: 10px; }

.rep-schedule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.3s var(--ease);
}
.rep-schedule:hover { color: var(--forest); border-color: var(--forest); gap: 10px; }

.info-founder .rep-avatar { width: 64px; height: 64px; font-size: 24px; }
.info-founder .rep-list { margin-top: 12px; }

.toast {
  position: fixed;
  bottom: clamp(20px, 3vw, 40px);
  left: 50%;
  transform: translate(-50%, 24px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 44px -12px rgba(15, 61, 46, 0.35),
              0 6px 18px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  z-index: 9999;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   FOOT  —  one line
   ============================================================ */
.foot {
  background: var(--forest);
  color: rgba(250, 250, 248, 0.72);
  padding-top: clamp(48px, 6vw, 88px);
  overflow: visible;
}
.foot a { color: inherit; transition: color 0.3s var(--ease); }
.foot a:hover { color: var(--paper); }
.foot .dot { color: rgba(250, 250, 248, 0.35); padding: 0 2px; }

.foot-top {
  padding-inline: var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2.3fr);
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(36px, 5vw, 64px);
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.foot-logo { display: inline-flex; align-items: center; gap: 12px; }
.foot-logo img { height: 44px; width: auto; }
.foot-logo-word {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--paper);
}
.foot-logo-word span { color: #9FD6BE; }
.foot-blurb {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(250, 250, 248, 0.72);
  max-width: 40ch;
}
.foot-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--forest) !important;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform 0.3s var(--spring), background 0.3s var(--ease);
}
.foot-cta:hover { transform: translateY(-2px); background: #e7e7e1; }

.foot-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.foot-col summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  padding-bottom: 16px;
}
.foot-col summary::-webkit-details-marker { display: none; }
.foot-chev { display: none; }
.foot-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot-list li { font-family: var(--font-body); font-size: 14.5px; letter-spacing: 0; text-transform: none; line-height: 1.4; }
.foot-list a { position: relative; }
.foot-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--spring);
}
.foot-list a:hover::after { transform: scaleX(1); }
.foot-contact li { font-size: 14px; }
.foot-plain { color: rgba(250, 250, 248, 0.66); } /* 4.6:1+ on forest (WCAG AA) */

.foot-bar {
  border-top: 1px solid rgba(250, 250, 248, 0.16);
  padding: 20px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.6);
}

/* Mobile: the four columns become accordions (js/main.js closes them). */
@media (max-width: 860px) {
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .foot-nav { grid-template-columns: 1fr; gap: 0; }
  .foot-col { border-top: 1px solid rgba(250, 250, 248, 0.16); }
  .foot-col summary { padding-block: 18px; cursor: pointer; }
  .foot-col[open] summary { padding-bottom: 12px; }
  .foot-col .foot-list { padding-bottom: 20px; }
  .foot-chev {
    display: block;
    position: relative;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  .foot-chev::before,
  .foot-chev::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 11px;
    height: 1.5px;
    background: var(--paper);
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .foot-chev::after { transform: translate(-50%, -50%) rotate(90deg); }
  .foot-col[open] .foot-chev::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
  .foot-bar { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--spring), transform 0.7s var(--spring);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row-meta { justify-content: flex-start; }
  .review-quote { font-size: clamp(20px, 5.5vw, 28px); }
  .review-quote::before { font-size: clamp(120px, 30vw, 200px); }
  .s-2 { padding-left: clamp(24px, 6vw, 80px); }
  .s-3 { padding-left: clamp(48px, 12vw, 160px); }
  .s-4 { padding-left: clamp(72px, 18vw, 200px); }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME (personal brand rebuild) — hero · CD callout · ventures
   Additive block. Scoped to .home-hero / .cd-callout / .ventures
   so it never touches the shared rules above.
   ============================================================ */

/* ---------- HERO — David Chamberlin ---------- */
.home-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.home-hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.home-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home-hero-copy .label { margin-bottom: clamp(16px, 2vw, 26px); }
.home-hero-name {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 176px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.home-hero-name span { display: block; }
.home-hero-tag {
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--muted-deep);
  max-width: 42ch;
  text-wrap: pretty;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: clamp(28px, 3.5vw, 44px);
}
.home-hero-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.home-hero-link:hover { color: var(--forest); border-color: var(--forest); }
.home-hero-portrait {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--rule);
  box-shadow: 0 34px 70px -34px rgba(15, 61, 46, 0.42),
              0 1px 0 rgba(15, 61, 46, 0.05) inset;
  aspect-ratio: 1 / 1;
  max-width: 360px;
  width: 100%;
  justify-self: end;
}
.home-hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.12) contrast(1.02);
}

@media (max-width: 860px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 44px); }
  .home-hero-portrait { order: -1; max-width: 320px; justify-self: start; }
}

/* ---------- CALLOUT — Chamberlin Studio ---------- */
.cd-callout-section { padding-block: clamp(24px, 4vw, 48px); }
.cd-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 3.6vw, 48px);
  background: linear-gradient(180deg, rgba(15, 61, 46, 0.055) 0%, rgba(15, 61, 46, 0.015) 100%);
  border: 1px solid rgba(15, 61, 46, 0.3);
  border-radius: 22px;
  box-shadow: 0 30px 64px -34px rgba(15, 61, 46, 0.34);
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cd-callout:hover {
  transform: translateY(-3px);
  border-color: var(--forest);
  box-shadow: 0 40px 80px -32px rgba(15, 61, 46, 0.42);
}
.cd-callout-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cd-callout-logo img {
  height: clamp(52px, 6vw, 76px);
  width: auto;
}
.cd-callout-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.cd-callout-line {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.cd-callout-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 999px;
  transition: background 0.3s var(--ease);
}
.cd-callout:hover .cd-callout-btn { background: #0b2e23; }
.cd-callout-arrow { transition: transform 0.35s var(--spring); }
.cd-callout:hover .cd-callout-arrow { transform: translate(3px, -3px); }

@media (max-width: 780px) {
  .cd-callout {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: clamp(18px, 5vw, 26px);
  }
  .cd-callout-btn { align-self: stretch; justify-content: center; }
}

/* ---------- VENTURES ---------- */
.ventures-head { margin-bottom: clamp(28px, 4vw, 52px); }
.ventures-head .label { display: block; margin-bottom: clamp(12px, 1.6vw, 18px); }
.ventures-title {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(38px, 5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.ventures-title em { color: var(--forest); font-style: italic; }

.ventures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.2vw, 16px);
}
.venture {
  display: flex;
  flex-direction: column;
  min-height: clamp(180px, 20vw, 240px);
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 20px 44px -34px rgba(15, 61, 46, 0.28);
  transition: transform 0.3s var(--spring), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.venture:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 61, 46, 0.4);
  box-shadow: 0 30px 56px -30px rgba(15, 61, 46, 0.34);
}
.venture-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.venture-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.venture-idx::before { content: "— "; color: var(--forest); }
.venture-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-deep);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
.venture-name {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.venture-desc {
  margin-top: 10px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.5;
  color: var(--muted-deep);
}

@media (min-width: 560px) {
  .ventures-grid { grid-template-columns: repeat(2, 1fr); }
  .venture--wide { grid-column: span 2; }
}
@media (min-width: 920px) {
  .ventures-grid { grid-template-columns: repeat(3, 1fr); }
}
.venture--wide {
  background: linear-gradient(165deg, rgba(15, 61, 46, 0.05) 0%, rgba(15, 61, 46, 0) 62%);
  border-color: rgba(15, 61, 46, 0.28);
}
.venture--wide .venture-name { font-size: clamp(28px, 3.4vw, 48px); }

/* Footer link row (all pages) */
.foot-links {
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 11px;
}

/* ============================================================
   SERVICES  —  icon cards, forest wash on hover, with the
   custom-solutions card running the full width underneath.
   ============================================================ */
.sv-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 56px);
}
.sv-head .label { display: block; margin-bottom: 14px; }
.sv-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.sv-title em { color: var(--forest); font-style: italic; }
.sv-lede {
  color: var(--muted-deep);
  font-weight: 300;
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 52ch;
  text-wrap: pretty;
}
@media (max-width: 860px) { .sv-head { grid-template-columns: 1fr; } }

.sv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}
.sv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--spring), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}
/* Forest wash rises from the bottom on hover. */
.sv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--forest);
  transform: translateY(101%);
  transition: transform 0.45s var(--spring);
}
a.sv-card:hover {
  transform: translateY(-4px);
  border-color: var(--forest);
  color: var(--paper);
  box-shadow: 0 26px 50px -30px rgba(15, 61, 46, 0.55);
}
a.sv-card:hover::before { transform: translateY(0); }
a.sv-card:hover .sv-desc,
a.sv-card:hover .sv-arrow { color: rgba(250, 250, 248, 0.82); }
a.sv-card:hover .sv-icon { border-color: rgba(250, 250, 248, 0.45); color: var(--paper); }

.sv-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--forest);
  margin-bottom: 20px;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.sv-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18.5px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  text-transform: none;
}
.sv-desc {
  color: var(--muted-deep);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  transition: color 0.35s var(--ease);
}
.sv-arrow {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--forest);
  transition: transform 0.35s var(--spring), color 0.35s var(--ease);
}
a.sv-card:hover .sv-arrow { transform: translateX(4px); }

/* Custom solutions — full width, forest by default. */
.sv-card--custom {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
  padding: clamp(26px, 3vw, 40px);
}
.sv-card--custom::before { background: #0b2e23; }
.sv-card--custom .sv-icon {
  flex-shrink: 0;
  margin-bottom: 0;
  width: 62px;
  height: 62px;
  border-color: rgba(250, 250, 248, 0.35);
  color: var(--paper);
}
.sv-custom-copy { flex: 1; min-width: 0; }
.sv-card--custom .sv-name { font-size: 22px; }
.sv-card--custom .sv-desc { color: rgba(250, 250, 248, 0.8); max-width: 62ch; }
.sv-custom-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform 0.35s var(--spring);
}
a.sv-card--custom:hover { color: var(--paper); border-color: var(--forest); }
a.sv-card--custom:hover .sv-custom-cta { transform: translateX(4px); }
a.sv-card--custom:hover .sv-desc { color: rgba(250, 250, 248, 0.8); }
@media (max-width: 760px) {
  .sv-card--custom { flex-direction: column; align-items: flex-start; }
  .sv-custom-cta { align-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-card, .sv-card::before, .sv-arrow, .sv-custom-cta { transition: none; }
}

/* ============================================================
   REVIEWS  —  forest band, white cards, one row scrolling
   forever. Drag or swipe to scrub; it never hits an end.
   Ported from the JMT Sanitation marquee row.
   ============================================================ */
/* The review row now sits inside the clients band (one forest section). */
.cl .rvm-row { margin-top: clamp(30px, 4.5vw, 56px); }
.cl .rvm-foot { padding-top: clamp(14px, 2vw, 24px); }

.rvm-row {
  overflow-x: auto;
  padding-block: clamp(20px, 3vw, 36px);
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.rvm-row::-webkit-scrollbar { display: none; }
.rvm-row:active { cursor: grabbing; }
.rvm-track { display: flex; width: max-content; }

.rvm-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 300px;
  margin-inline: 8px;
  padding: clamp(22px, 2.2vw, 32px);
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(14, 14, 14, 0.04),
              0 6px 16px rgba(14, 14, 14, 0.07),
              0 24px 48px -12px rgba(14, 14, 14, 0.1);
}
.rvm-card[data-size="mid"] { width: 380px; }
.rvm-card[data-size="long"] { width: 440px; }
@media (min-width: 720px) {
  .rvm-card { width: 340px; margin-inline: 10px; }
  .rvm-card[data-size="mid"] { width: 420px; }
  .rvm-card[data-size="long"] { width: 480px; }
}
.rvm-card .rvm-stars { font-size: 15px; color: var(--forest); }

.rvm-quote-wrap { position: relative; margin-top: 18px; flex: 1; min-height: 0; }
.rvm-quote {
  max-height: 168px;
  overflow-y: auto;
  scrollbar-width: thin;
  /* auto, not contain: at the end of a long quote the wheel goes back to the page (Lenis allowNestedScroll) */
  overscroll-behavior: auto;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.rvm-quote p { margin-bottom: 0.8em; }
.rvm-quote p:last-child { margin-bottom: 0; }
.rvm-more {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding-top: 34px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(to top, var(--paper) 45%, rgba(255, 255, 255, 0.85) 75%, transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.rvm-card.is-clipped .rvm-more { opacity: 1; }
.rvm-card.is-clipped.is-read .rvm-more { opacity: 0; }

.rvm-by { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.rvm-name { font-weight: 500; font-size: 15px; }
.rvm-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rvm-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.rvm-links a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid rgba(15, 61, 46, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease);
}
.rvm-links a:hover { border-color: var(--forest); }

.rvm-foot {
  padding-top: clamp(22px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  text-align: center;
}
.rvm-foot p { color: rgba(250, 250, 248, 0.85); font-size: 15px; max-width: 46ch; }
.rvm-cta {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--paper);
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}
.rvm-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.6); }

/* ============================================================
   REVIEW FORM  —  /feedback. Desktop: a pop-up with a forest side
   that previews the review card live, and the form, whose body
   scrolls under a pinned Send bar. Phones (under 900px): a
   full-height sheet pinned to the visible screen (main.js sets
   --fb-top and --fb-vh from visualViewport), so the keyboard
   never hides Send.
   ============================================================ */
.fb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); }
.fb[hidden] { display: none; }
.fb-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 16, 0.52);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  animation: fb-fade 0.3s var(--ease) both;
}
.fb-dialog {
  position: relative;
  display: flex;
  width: min(100%, 1040px);
  max-height: min(92svh, 860px);
  overflow: hidden;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: 0 2px 6px rgba(10, 20, 16, 0.08), 0 50px 110px -30px rgba(10, 20, 16, 0.6);
  animation: fb-rise 0.5s var(--spring) both;
  outline: none;
}
@keyframes fb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fb-rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fb-sheet { from { transform: translateY(100%); } to { transform: none; } }

.fb-x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #F1F1ED;
  transition: background 0.25s var(--ease), transform 0.3s var(--spring);
}
.fb-x:hover { background: var(--rule); transform: rotate(90deg); }
.fb-x:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.fb-dialog.is-done .fb-x { color: var(--paper); background: rgba(255, 255, 255, 0.12); }
.fb-dialog.is-done .fb-x:hover { background: rgba(255, 255, 255, 0.22); }
.fb-dialog.is-done .fb-x:focus-visible { outline-color: var(--paper); }

.fb-pane { width: 100%; min-height: 0; }
.fb-pane[hidden] { display: none; }
.fb-pane--form {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: minmax(0, 1fr);
}

/* ---- left: the ask + live preview ---- */
.fb-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 44px 40px;
  background: var(--forest);
  color: var(--paper);
  overflow: hidden;
}
.fb-side::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% -30%;
  height: 70%;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(159, 214, 190, 0.2), transparent 70%);
  pointer-events: none;
}
.fb-intro, .fb-preview { position: relative; z-index: 1; }
.fb-kicker { display: block; color: rgba(250, 250, 248, 0.62); margin-bottom: 14px; }
.fb-title {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--paper);
}
.fb-title em { color: #9FD6BE; }
.fb-sub { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: rgba(250, 250, 248, 0.8); max-width: 36ch; }

.fb-side-note { position: relative; z-index: 1; margin-top: auto; max-width: 34ch; font-size: 13px; line-height: 1.5; color: rgba(250, 250, 248, 0.62); }
.fb-preview-tag {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.62);
}
.fb-preview-card {
  padding: 22px 22px 20px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.5);
}
.fb-preview-stars { display: flex; gap: 3px; }
.fb-preview-stars svg { width: 15px; height: 15px; fill: none; stroke: #8E8D86; stroke-width: 1.6; stroke-linejoin: round; }
.fb-preview-stars svg.is-on { fill: var(--forest); stroke: var(--forest); }
.fb-preview-quote {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb-preview-quote.is-empty { color: var(--muted); }
.fb-preview-who { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.fb-preview-face {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-indent: 0.04em;
}
.fb-preview-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fb-preview-id strong { font-weight: 500; font-size: 14.5px; }
.fb-preview-id span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- right: the form ---- */
.fb-form { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fb-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 44px 44px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.fb-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fb-label { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.fb-opt { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.fb-field input[type="text"],
.fb-field input[type="email"],
.fb-field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: #F6F6F2;
  border: 1px solid #DCDBD3;
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.fb-field textarea { min-height: 150px; line-height: 1.6; resize: none; overflow-y: hidden; }
.fb-field input::placeholder,
.fb-field textarea::placeholder { color: #6B6B66; opacity: 1; }
.fb-field input:hover,
.fb-field textarea:hover { border-color: #C7C6BD; }
.fb-field input:focus,
.fb-field textarea:focus { background: var(--paper); border-color: var(--forest); box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.14); }
.fb-field.is-invalid input,
.fb-field.is-invalid textarea { border-color: #B3261E; }
.fb-field.is-invalid input:focus,
.fb-field.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14); }
.fb-under { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fb-hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.fb-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.fb-err { font-size: 13.5px; line-height: 1.4; color: #B3261E; }
.fb-err[hidden] { display: none; }
.fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }

/* Stars: real radio buttons under drawn stars. JS lights 1 to n (.is-on) for the choice and the hover. */
.fb-stars { display: flex; align-items: center; margin-left: -7px; }
.fb-star-in { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fb-star {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s var(--spring);
}
.fb-star svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #8E8D86;
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: fill 0.15s var(--ease), stroke 0.15s var(--ease);
}
.fb-star.is-on svg { fill: var(--forest); stroke: var(--forest); }
.fb-star:hover { transform: scale(1.08); }
.fb-star-in:focus-visible + .fb-star { outline: 2px solid var(--forest); outline-offset: -3px; }
.fb-rate-word { margin-left: 8px; font-size: 14px; color: var(--muted-deep); }

/* ---- the pinned Send bar ---- */
.fb-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px 18px;
  padding: 16px 44px 20px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.fb-submit {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--paper);
  background: var(--forest);
  border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.25s var(--spring), opacity 0.2s var(--ease);
}
.fb-submit:hover { background: #0B2E23; transform: translateY(-1px); }
.fb-submit:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.fb-submit:disabled { opacity: 0.65; cursor: wait; transform: none; }
.fb-foot-meta { min-width: 0; }
.fb-status { font-size: 13.5px; line-height: 1.45; color: var(--muted-deep); }
.fb-status.is-err { color: #B3261E; }
.fb-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fb-saved { font-size: 12.5px; color: var(--muted); }
.fb-status:not(:empty) + .fb-saved { display: none; }

/* ---- thank you ---- */
.fb-pane--thanks {
  display: grid;
  place-items: center;
  min-height: min(560px, 92svh);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background: var(--forest);
  color: var(--paper);
  text-align: center;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.fb-thanks-inner { max-width: 46ch; display: flex; flex-direction: column; align-items: center; }
.fb-pane--thanks .fb-sub { margin-inline: auto; max-width: 44ch; }
.fb-check {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--forest);
  background: var(--paper);
  border-radius: 999px;
  animation: fb-pop 0.5s var(--spring) both;
}
.fb-check path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: fb-draw 0.6s var(--spring) 0.2s forwards; }
@keyframes fb-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes fb-draw { to { stroke-dashoffset: 0; } }
.fb-thanks-quote {
  margin-top: 26px;
  padding: 4px 0 4px 20px;
  text-align: left;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: rgba(250, 250, 248, 0.92);
  border-left: 2px solid rgba(159, 214, 190, 0.6);
  overflow-wrap: anywhere;
}
.fb-thanks-quote:empty { display: none; }
.fb-thanks-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.fb-done {
  min-height: 48px;
  padding: 0 30px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--forest);
  background: var(--paper);
  border-radius: 999px;
  transition: background 0.25s var(--ease);
}
.fb-done:hover { background: #E9E9E3; }
.fb-done:focus-visible,
.fb-thanks-link:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.fb-thanks-link {
  font-size: 15px;
  color: rgba(250, 250, 248, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(250, 250, 248, 0.4);
  text-underline-offset: 3px;
}
.fb-thanks-link:hover { color: var(--paper); text-decoration-color: var(--paper); }

/* Short laptop screens: drop the intro line so the preview card fits */
@media (min-width: 900px) and (max-height: 720px) {
  .fb-side { gap: 24px; padding-block: 32px; }
  .fb-side .fb-sub, .fb-side-note { display: none; }
}

/* Phones and small tablets: a full-height sheet */
@media (max-width: 899px) {
  .fb {
    top: var(--fb-top, 0px);
    bottom: auto;
    height: var(--fb-vh, 100dvh);
    padding: 0;
    place-items: end stretch;
  }
  .fb-dialog {
    width: 100%;
    height: calc(100% - 8px);
    max-height: none;
    border-radius: 22px 22px 0 0;
    animation: fb-sheet 0.45s var(--spring) both;
  }
  .fb-pane--form { display: flex; flex-direction: column; height: 100%; }
  .fb-side { flex: none; gap: 0; padding: 22px 72px 20px 22px; }
  .fb-side::after, .fb-side .fb-sub, .fb-preview, .fb-side-note { display: none; }
  .fb-kicker { margin-bottom: 8px; }
  .fb-title { font-size: 30px; }
  .fb-form { flex: 1 1 auto; }
  .fb-body { gap: 20px; padding: 22px 22px 26px; }
  .fb-foot { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); }
  .fb-submit { width: 100%; min-height: 52px; }
  .fb-foot-meta { text-align: center; }
  /* Space under Send only when there is a note to show (the status stays in the page for screen readers) */
  .fb-foot-meta:has(:not([hidden]):not(:empty)) { margin-top: 8px; }
  .fb-x { top: 14px; right: 14px; color: var(--paper); background: rgba(255, 255, 255, 0.12); }
  .fb-x:hover { background: rgba(255, 255, 255, 0.22); }
  .fb-x:focus-visible { outline-color: var(--paper); }
  .fb-pane--thanks { height: 100%; min-height: 0; }
  /* Keyboard open: the header steps aside */
  .fb-dialog.is-tight .fb-kicker { display: none; }
  .fb-dialog.is-tight .fb-side { padding-block: 14px; }
  .fb-dialog.is-tight .fb-title { font-size: 24px; }
}
@media (max-width: 560px) {
  .fb-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .fb-scrim, .fb-dialog, .fb-check, .fb-check path { animation: none; }
  .fb-check path { stroke-dashoffset: 0; }
  .fb-star:hover, .fb-submit:hover { transform: none; }
}
body.fb-open { overflow: hidden; }

.sv-lede-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sv-lede-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid rgba(15, 61, 46, 0.3);
  padding-bottom: 3px;
  transition: border-color 0.3s var(--ease);
}
.sv-lede-link:hover { border-color: var(--forest); }

/* ============================================================
   PACKAGES  —  plan cards in the Fixed Ops Certified layout
   (display name, badge, price block, pill CTA, check list),
   redrawn in paper / ink / forest.
   ============================================================ */
.pk { padding-top: 0; }
.pk-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
@media (max-width: 980px) { .pk-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.pk-card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.8vw, 36px);
  background: var(--paper);
  color: var(--ink);
  border-radius: 28px;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 48px -28px rgba(14, 14, 15, 0.3);
}
.pk-card--featured {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
  box-shadow: 0 30px 80px -30px rgba(15, 61, 46, 0.65);
}
.pk-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: clamp(54px, 5.4vw, 76px); }
.pk-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.7vw, 40px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: inherit;
}
.pk-badge {
  flex-shrink: 0;
  background: #9FD6BE;
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.pk-tagline {
  margin-top: 14px;
  min-height: 3.2em;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--muted-deep);
  text-wrap: pretty;
}
.pk-card--featured .pk-tagline { color: rgba(250, 250, 248, 0.78); }

.pk-money { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); }
.pk-card--featured .pk-money { border-color: rgba(250, 250, 248, 0.2); }
.pk-price { font-size: clamp(26px, 2.4vw, 32px); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.pk-price-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pk-card--featured .pk-price-sub { color: rgba(250, 250, 248, 0.6); }
.pk-monthly {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-deep);
}
.pk-card--featured .pk-monthly { color: rgba(250, 250, 248, 0.72); }
.pk-cta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--spring);
}
.pk-cta:hover { background: var(--forest); transform: translateY(-1px); }
.pk-card--featured .pk-cta { background: var(--paper); color: var(--forest); }
.pk-card--featured .pk-cta:hover { background: #dcdcd6; }

.pk-feats { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.pk-feat { display: flex; gap: 11px; font-size: 15px; line-height: 1.4; }
.pk-feat .pk-check { flex-shrink: 0; margin-top: 2px; color: var(--forest); }
.pk-card--featured .pk-feat .pk-check { color: #9FD6BE; }
.pk-card--featured .pk-feat .pk-check path { stroke: var(--forest); }
.pk-feat--roll { font-weight: 500; }
.pk-feat-detail { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pk-card--featured .pk-feat-detail { color: rgba(250, 250, 248, 0.6); }
.pk-card--featured strong { color: inherit; } /* the global ink strong was near black on the forest card */

.pk-floor {
  margin-top: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: rgba(15, 61, 46, 0.03);
}
.pk-floor p { color: var(--muted-deep); font-size: 15.5px; max-width: 70ch; }
.pk-floor strong { color: var(--ink); font-weight: 500; }
.pk-floor-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Homepage packages block sits under the services grid. */
.pk--home { padding-top: 0; }
.pk--home .sv-head { align-items: end; }

/* Homepage bands (David, 2026-10-04): About, Pricing and Contact sit on a light
   stone tint, full width, so the sections alternate with white. The section keeps
   its container width; the shadow paints the tint edge to edge and clip-path keeps
   it inside the section's own height. Muted text goes one step darker to stay at
   AA contrast on the tint (5.8:1). */
.band {
  --band: #F4F3EE;
  --muted: #5F5F59;
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}
.pk--home.band { padding-top: clamp(64px, 9vw, 140px); }

/* ============================================================
   CLIENTS  —  logo board ported from chamberlinenterprises.com.
   Same grid, plane tilt and logo sizing; forest instead of black.
   ============================================================ */
.cl {
  /* Black at the left where the heading sits, easing into forest just
     past the middle so the logo board and reviews sit on green. */
  background: linear-gradient(
    to right,
    #0A0A0A 0%,
    #0A0A0A 16%,
    #0C2119 42%,
    var(--forest) 62%,
    var(--forest) 100%
  );
  color: var(--paper);
  padding-block: clamp(44px, 4.5vw, 72px);
}
@media (max-width: 900px) {
  .cl {
    background: linear-gradient(
      to bottom,
      #0A0A0A 0%,
      #0C2119 34%,
      var(--forest) 58%,
      var(--forest) 100%
    );
  }
}
/* Heading sits left, the logo board fills the right. */
.cl-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.cl-head { align-self: center; }
@media (max-width: 900px) {
  .cl-inner { grid-template-columns: 1fr; gap: 26px; }
}
.cl .label { display: block; color: rgba(250, 250, 248, 0.6); margin-bottom: 16px; }
.cl-title {
  max-width: 9ch;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--paper);
}
.cl-title em { color: #9FD6BE; font-style: italic; }

/* Wrapping rows with the same column count the old auto-fit grid had; a short
   last row spreads across the width instead of leaving a lone logo at the left. */
.cl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 0.9vw, 0.9rem);
  margin-top: 0;
}
@media (max-width: 900px) { .cl-grid { margin-top: 4px; } }
.cl-tile {
  display: grid;
  flex: 1 1 min(8.5rem, calc(50% - 0.45rem));
  min-width: 0;
  min-height: clamp(4.25rem, 5.4vw, 5.5rem);
  place-items: center;
  perspective: 62rem;
}
.cl-plane {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: clamp(0.65rem, 1.2vw, 1.15rem);
  transform: rotateX(var(--cl-tilt-x, 0deg)) rotateY(var(--cl-tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 260ms var(--ease);
}
.cl-tile[data-tilting] .cl-plane { transition-duration: 90ms; will-change: transform; }
.cl-image {
  width: min(82%, 7.5rem);
  max-height: 2.9rem;
  object-fit: contain;
  transform: translateZ(1.35rem) scale(0.98);
  transition: transform 260ms var(--ease);
}
.cl-tile:hover .cl-image,
.cl-tile:focus-visible .cl-image { transform: translateZ(2rem) scale(1.025); }
@media (prefers-reduced-motion: reduce) {
  .cl-plane, .cl-image { transition: none; }
}

/* ============================================================
   ABOUT  —  portrait left, introduction right
   ============================================================ */
.ab-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.ab-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--rule);
  box-shadow: 0 40px 80px -46px rgba(15, 61, 46, 0.5);
}
.ab-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.ab-photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(18px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.78), rgba(14, 14, 14, 0) 100%);
  color: var(--paper);
}
.ab-photo strong { font-weight: 500; font-size: 17px; color: var(--paper); }
.ab-photo figcaption span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.75);
}
.ab-copy .label { display: block; margin-bottom: 14px; }
.ab-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.ab-title em { color: var(--forest); font-style: italic; }
.ab-body { margin-top: clamp(22px, 3vw, 34px); max-width: 56ch; }
.ab-body p {
  color: var(--muted-deep);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.ab-body p:last-child { margin-bottom: 0; }
.ab-links {
  margin-top: clamp(26px, 3.5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}
.ab-links .cd-callout-btn:hover { background: #0b2e23; }
.ab-links .cd-callout-btn:hover .cd-callout-arrow { transform: translate(3px, -3px); }
.ab-social { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ab-social a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-deep);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ab-social a:hover { color: var(--forest); border-color: var(--forest); }
@media (max-width: 900px) {
  .ab-inner { grid-template-columns: 1fr; gap: 28px; }
  .ab-photo { max-width: 420px; }
}

/* ---------- Social icon buttons (about, contact card, footer) ---------- */
.ico { display: block; flex-shrink: 0; }
.ab-social a,
.rep-social a,
.foot-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease), transform 0.3s var(--spring);
}
.ab-social a { color: var(--muted-deep); }
.ab-social a:hover,
.rep-social a:hover {
  color: var(--paper);
  background: var(--forest);
  border-color: var(--forest);
  transform: translateY(-2px);
}
.rep-social { display: flex; gap: 8px; margin-top: 10px; }
.rep-social a { color: var(--muted-deep); border-color: var(--rule); }
.foot-social { display: flex; gap: 8px; margin-top: 6px; }
.foot-social a {
  color: rgba(250, 250, 248, 0.75);
  border-color: rgba(250, 250, 248, 0.28);
}
.foot-social a:hover {
  color: var(--forest);
  background: var(--paper);
  border-color: var(--paper);
  transform: translateY(-2px);
}
.foot-social a::after { display: none; }

.foot-glory { color: #9FD6BE; }

/* Reviews row: keyboard focus (2.1.1, 2.4.7), 2026-09-29 */
.rvm-row:focus-visible, .rvm-quote:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

/* Keyboard focus inside a not-yet-revealed block shows it at once (WCAG 2.4.7) */
.reveal:focus-within, .reveal:focus { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ---------- Chamberlin Studio logo (2026-10-05): the tree block and the name in the Chamberlin type ----------
   Header: the horizontal logo, the compact logo on phones; the link keeps the old mark's 48px so the bar keeps
   its height. Footer: the horizontal logo in white. Files: assets/brand (Chamberlin Studio brand package). */
.nav-wordmark { min-height: 48px; }
.nav-logo-studio, .nav-logo-studio img { display: block; }
.nav-logo-studio img { width: auto; height: 26px; }
@media (max-width: 639px) { .nav-logo-studio img { height: 34px; } }
.foot-logo img.foot-logo-studio { width: auto; height: 30px; max-width: 100%; }
