/* =========================================================
   Long Business Services & Advisors LLC — lead-magnet page
   World: the LBSA logo. Deep teal-black bands, warm off-white
   bands, growth green as the one accent, drawn as rising bars.
   Hubot Sans (display, 112%) + Mona Sans (text & labels).
   ========================================================= */

@font-face {
  font-family: "Hubot Sans";
  src: url("fonts/hubot-sans-var-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans-var-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand (from the LBSA logo) */
  --teal: #1C575D;
  --green: #78AC0C;
  --green-hi: #9CCC3A;   /* green as text on dark bands (7.9:1) */
  --green-ink: #4D7A06;  /* green as text on light bands (5.1:1) */

  /* dark bands */
  --night: #0D2427;
  --night-2: #13343A;
  --night-3: #1A434A;
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255, 255, 255, 0.8);
  --on-dark-3: rgba(255, 255, 255, 0.64);
  --line-dark: rgba(255, 255, 255, 0.14);

  /* light bands */
  --white: #FFFFFF;
  --ground: #FBFAF6;
  --paper: #F6F5F0;
  --paper-2: #ECEAE3;
  --ink: #0E2124;
  --text: #34474A;
  --muted: #586A6C;
  --dim: #A3ADAB;
  --line: #DAD8D0;

  --font-display: "Hubot Sans", "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --r-btn: 8px;
  --r-badge: 6px;
  --r-card: 8px;
  --r-panel: 10px;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 144px);
  --header-h: 76px;

  /* three rising bars, the logo's own mark, used as the list/eyebrow marker */
  --bars: linear-gradient(currentColor, currentColor) 0 100% / 3px 46% no-repeat,
          linear-gradient(currentColor, currentColor) 4px 100% / 3px 73% no-repeat,
          linear-gradient(currentColor, currentColor) 8px 100% / 3px 100% no-repeat;
}

/* ---------- reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #8FA3A2 #ECEAE3;
}
html.has-smoothscroll { scroll-behavior: auto !important; }

/* Lenis' own required rules, inlined */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
button, input, textarea { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.site-header:not(.is-scrolled):not(.menu-open) :focus-visible,
.services :focus-visible,
.team :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible { outline-color: var(--green-hi); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-btn);
  background: var(--green);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 16px; }

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

/* ---------- type primitives ---------- */
.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 20px;
  font-stretch: 112%;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 0.12em;
  color: var(--green);
  background: var(--bars);
}
.eyebrow-dark { color: var(--on-dark-2); }

.h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: clamp(32px, 3.7vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { max-width: 620px; margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --pl: 6px;
  --ic: 40px;
  --gap: 14px;
  --pr: 22px;
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  min-height: 52px;
  padding: 6px var(--pr) 6px var(--pl);
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-stretch: 106%;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--ic);
  height: var(--ic);
  border-radius: var(--r-badge);
  transition: background-color 200ms ease, color 200ms ease;
}
.btn-icon svg,
.round-btn svg,
.svc-link svg,
.scroll-cue svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 260ms var(--ease-out);
}

.btn-white { background: var(--white); color: var(--ink); }
.btn-white .btn-icon { background: var(--green); color: var(--night); }

.btn-green { background: var(--green); color: var(--night); }
.btn-green .btn-icon { background: var(--night); color: var(--green-hi); }

.btn-dark { background: var(--night); color: var(--white); }
.btn-dark .btn-icon { background: var(--green); color: var(--night); }

.btn-ghost {
  background: rgba(13, 36, 39, 0.3);
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--white);
}
.btn-ghost .btn-icon { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.btn-sm { --pl: 4px; --gap: 12px; --pr: 18px; --ic: 38px; min-height: 48px; padding-block: 4px; }

/* full-width buttons: icon pinned left, label optically centred on the whole button */
.btn-block,
.btn-submit { width: 100%; justify-content: flex-start; }
.btn-block .btn-label,
.btn-submit .btn-label { flex: 1 0 auto; text-align: center; }
.btn-block::after,
.btn-submit::after {
  content: "";
  flex: 0 1 calc(var(--pl) + var(--ic) + var(--gap) - var(--pr));
  min-width: 0;
  margin-left: calc(-1 * var(--gap));
}

@media (hover: hover) and (pointer: fine) {
  .btn-white:hover { background: #EEF3E3; }
  .btn-green:hover { background: #86BB16; box-shadow: 0 10px 26px -12px rgba(120, 172, 12, 0.7); }
  .btn-dark:hover { background: var(--night-3); }
  .btn-ghost:hover { border-color: var(--white); background: rgba(13, 36, 39, 0.55); }
  .btn:hover .btn-icon svg { transform: translateX(2px); }
  .btn-ghost:hover .btn-icon svg { transform: rotate(-8deg); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--white);
  transition: background-color 260ms ease, box-shadow 260ms ease, color 260ms ease;
}
.site-header::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  transition: opacity 260ms ease;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(246, 245, 240, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.site-header.is-scrolled::after,
.site-header.menu-open::after { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-right: auto;
  text-decoration: none;
}
.brand-mark { width: 50px; height: auto; }
.brand-mark-dark { display: none; }
.site-header.is-scrolled .brand-mark-light,
.site-header.menu-open .brand-mark-light { display: none; }
.site-header.is-scrolled .brand-mark-dark,
.site-header.menu-open .brand-mark-dark { display: block; }
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand-sub { font-weight: 480; opacity: 0.82; }

.site-menu { display: flex; align-items: center; }
.menu-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-badge);
  transition: color 200ms ease, background-color 200ms ease;
}
.menu-foot { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 560;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.site-header.is-scrolled .header-cta { background: var(--night); color: var(--white); }

@media (hover: hover) and (pointer: fine) {
  .menu-list a:hover { background: rgba(255, 255, 255, 0.12); }
  .site-header.is-scrolled .menu-list a:hover { background: var(--paper-2); }
  .header-phone:hover { text-decoration: underline; }
  .site-header.is-scrolled .header-cta:hover { background: var(--night-3); }
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-badge);
  background: transparent;
  cursor: pointer;
}
.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease-out), opacity 200ms ease;
}
.menu-lines { position: relative; }
.menu-lines::before,
.menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -7px; }
.menu-lines::after { top: 7px; transform: scaleX(0.667); transform-origin: 0 50%; }
.menu-open .menu-lines { background: transparent; }
.menu-open .menu-lines::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-lines::after { transform-origin: 50% 50%; transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture,
.hero-media img { width: 100%; height: 100%; }
.hero-media img {
  object-fit: cover;
  object-position: var(--hero-x, 70%) 30%;
  transform: scale(1.08);
  animation: hero-settle 2.2s var(--ease-out) 0.05s forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 36, 39, 0.62) 0%, rgba(13, 36, 39, 0) 22%),
    linear-gradient(0deg, rgba(13, 36, 39, 0.92) 0%, rgba(13, 36, 39, 0.6) 26%, rgba(13, 36, 39, 0) 56%),
    linear-gradient(90deg, rgba(13, 36, 39, 0.86) 0%, rgba(13, 36, 39, 0.62) 34%, rgba(13, 36, 39, 0.12) 62%, rgba(13, 36, 39, 0) 100%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 22px;
}
.hero-copy { max-width: 820px; }

.hero-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 1.0;
  letter-spacing: -0.034em;
  color: var(--white);
}
.hero-line { display: block; white-space: nowrap; }
.hero-title .accent { color: var(--green-hi); }

.hero-sub {
  max-width: 600px;
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(36px, 6vh, 64px);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-stretch: 112%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.scroll-cue svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .scroll-cue:hover svg { transform: translateY(3px); }
}

.hero-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-stretch: 112%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.hero-lines li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hero-lines li::before {
  content: "";
  width: 11px;
  height: 11px;
  color: var(--green);
  background: var(--bars);
}

/* hero entrance (JS adds .hero-animate; everything is visible without it) */
.hero-animate .hero-eyebrow,
.hero-animate .hero-sub,
.hero-animate .hero-actions,
.hero-animate .hero-foot { animation: fade-up 900ms var(--ease-out) both; }
.hero-animate .hero-eyebrow { animation-delay: 120ms; }
.hero-animate .hero-sub { animation-delay: 700ms; }
.hero-animate .hero-actions { animation-delay: 840ms; }
.hero-animate .hero-foot { animation-delay: 1000ms; }
.hero-animate .hero-eyebrow::before { animation: bars-rise 900ms var(--ease-out) 260ms both; transform-origin: 50% 100%; }
.hero-title .w {
  display: inline-block;
  animation: word-in 1000ms var(--ease-out) both;
  animation-delay: calc(220ms + var(--i) * 70ms);
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes word-in {
  from { opacity: 0; filter: blur(5px); transform: translateY(20px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes bars-rise {
  from { transform: scaleY(0.2); }
  to { transform: none; }
}

/* ---------- about / statement ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0 clamp(24px, 4vw, 64px);
  align-items: start;
}
.about-eyebrow { margin-top: 12px; }
.statement {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 480;
  font-size: clamp(26px, 2.8vw, 41px);
  line-height: 1.24;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.statement.is-filling .fw { color: #859290; transition: color 380ms ease; }
.statement.is-filling .fw.on { color: var(--ink); }

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(48px, 6vw, 88px) 0 0 calc(280px + clamp(24px, 4vw, 64px));
  padding: 0;
  list-style: none;
}
.figure {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
  border-radius: var(--r-panel);
  background: var(--paper);
}
.figure-icon,
.pill-icon,
.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: var(--r-badge);
}
.figure-icon { width: 46px; height: 46px; margin-bottom: 56px; background: var(--white); color: var(--teal); }
.figure-icon svg,
.pill-icon svg,
.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.figure-label {
  margin: 0 0 8px;
  font-stretch: 112%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.figure-value {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: clamp(34px, 3.1vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.034em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
.figure-text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }

/* ---------- problems ---------- */
.problems { background: var(--paper); }
.problems-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.problems-head .lead { max-width: 420px; }
.problem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.problem {
  padding: 30px 32px 34px 0;
  border-bottom: 1px solid var(--line);
}
.problem:nth-child(even) { padding: 30px 0 34px 32px; border-left: 1px solid var(--line); }
.problem-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: clamp(21px, 1.8vw, 25px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.problem-title::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 0.42em;
  color: var(--green);
  background: var(--bars);
}
.problem-text { margin: 0; padding-left: 23px; font-size: 16.5px; color: var(--text); }

/* ---------- services ---------- */
.services { position: relative; background: var(--night); color: var(--white); }
.services .h2 { color: var(--white); }
.services .lead { color: var(--on-dark-2); }

.services-pin { padding-block: var(--section-y); }
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
}
.services-intro { max-width: 620px; }
.services-intro .lead { margin-bottom: 32px; }

.services-meter {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 34px;
  margin-top: 40px;
}
.meter-bar {
  width: 7px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 320ms ease;
}
.meter-bar:nth-child(1) { height: 30%; }
.meter-bar:nth-child(2) { height: 44%; }
.meter-bar:nth-child(3) { height: 58%; }
.meter-bar:nth-child(4) { height: 72%; }
.meter-bar:nth-child(5) { height: 86%; }
.meter-bar:nth-child(6) { height: 100%; }
.meter-bar.on { background: var(--green); }

.services-window {
  overflow-x: auto;
  /* without containment the off-screen cards widen the mobile layout viewport to ~1500px */
  contain: layout paint;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.services-window::-webkit-scrollbar { display: none; }

.services-track {
  display: flex;
  gap: 16px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-card {
  display: flex;
  flex-direction: column;
  flex: none;
  width: min(380px, 80vw);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-panel);
  background: var(--night-2);
  scroll-snap-align: start;
}
.svc-img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--night-3);
}
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 20px 14px 10px; }
.svc-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: 23px;
  line-height: 1.16;
  letter-spacing: -0.022em;
  color: var(--white);
}
.svc-text { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: var(--on-dark-2); }
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  font-stretch: 112%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.svc-link svg { width: 16px; height: 16px; color: var(--green-hi); }
@media (hover: hover) and (pointer: fine) {
  .svc-link:hover { text-decoration: underline; }
  .svc-link:hover svg { transform: translateX(3px); }
}

.services-nav { display: flex; gap: 10px; }
.round-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--green);
  color: var(--night);
  cursor: pointer;
  transition: background-color 200ms ease, opacity 200ms ease, transform 160ms var(--ease-out);
}
.round-btn:active { transform: scale(0.95); }
.round-btn[disabled] { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .round-btn:not([disabled]):hover { background: #86BB16; }
}

/* pinned horizontal mode (JS adds .is-pinned on wide, motion-ok screens) */
.services.is-pinned .services-pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding-block: calc(var(--header-h) + 8px) 24px;
  overflow: hidden;
}
.services.is-pinned .services-intro .h2 { font-size: clamp(34px, 3vw, 46px); }
.services.is-pinned .services-layout {
  grid-template-columns: 390px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.services.is-pinned .services-window {
  overflow: hidden;
  scroll-snap-type: none;
  /* the fade grows with travel, so the first card is crisp at rest */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade, 0px));
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade, 0px));
  margin: 0 calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2)) 0 0;
  padding: 0;
}
.services.is-pinned .services-track {
  padding-right: max(var(--gutter), (100vw - var(--container)) / 2);
  will-change: transform;
}
.services.is-pinned .svc-card { width: clamp(320px, 28vw, 400px); }
.services.is-pinned .services-nav { display: none; }

/* ---------- beyond the books: stacked cards ---------- */
.stack { display: grid; gap: 28px; }
.stack-card {
  position: sticky;
  top: calc(var(--header-h) + 24px + var(--n, 0) * 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  min-height: 520px;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-panel);
  background: var(--paper);
  box-shadow: 0 -18px 40px -30px rgba(13, 36, 39, 0.38);
  transform-origin: 50% 0;
}
.stack-card:nth-child(2) { --n: 1; }
.stack-card:nth-child(3) { --n: 2; }
.stack-copy { display: flex; flex-direction: column; padding: 14px 8px 8px; }
.stack-kicker {
  margin: 0 0 14px;
  font-stretch: 112%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.stack-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stack-text { max-width: 54ch; margin: 0 0 28px; color: var(--text); }
.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: auto 0 28px;
  padding: 20px 0;
  border-top: 1px dashed #C3C6BC;
  border-bottom: 1px dashed #C3C6BC;
}
.meta dt {
  margin-bottom: 6px;
  font-stretch: 112%;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta dd { margin: 0; font-weight: 520; font-size: 16.5px; line-height: 1.45; color: var(--ink); }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 28px;
  padding: 0;
  list-style: none;
}
.tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-badge);
  background: var(--white);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.tag-list li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  color: var(--green);
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 2px 46% no-repeat,
    linear-gradient(currentColor, currentColor) 3.5px 100% / 2px 73% no-repeat,
    linear-gradient(currentColor, currentColor) 7px 100% / 2px 100% no-repeat;
}
.stack-copy .btn { align-self: flex-start; }

.stack-visual {
  position: relative;
  min-height: 380px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--night);
}
.stack-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- who we work with ---------- */
.clients { background: var(--paper); overflow: hidden; }
.pill-cloud { display: grid; gap: 14px; }
.pill-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translate3d(calc(var(--shift, 0) * 1px), 0, 0);
}
.pill-row-alt { transform: translate3d(calc(var(--shift, 0) * -1px), 0, 0); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--white);
  font-family: var(--font-sans);
  font-stretch: 104%;
  font-size: 17.5px;
  font-weight: 540;
  letter-spacing: -0.012em;
  color: var(--ink);
  white-space: nowrap;
}
.pill-icon { width: 44px; height: 44px; background: var(--night); color: var(--green-hi); }

/* ---------- process ---------- */
.process { background: var(--ground); }
.process-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.process-photo { position: relative; margin: 0; }
.process-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-panel);
}
.process-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-badge);
  background: rgba(13, 36, 39, 0.88);
  font-stretch: 112%;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.process-photo figcaption::before {
  content: "";
  width: 11px;
  height: 11px;
  color: var(--green);
  background: var(--bars);
}
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto auto 1fr;
  gap: 6px clamp(20px, 3vw, 40px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  grid-column: 1;
  margin: 0;
  font-stretch: 112%;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.step-title {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.16;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.step-text { grid-column: 2; grid-row: 1 / span 3; margin: 0; font-size: 16.5px; color: var(--text); }
.steps.is-focusing .step-title,
.steps.is-focusing .step-text,
.steps.is-focusing .step-num { transition: color 420ms ease; }
.steps.is-focusing .step:not(.is-active) .step-title,
.steps.is-focusing .step:not(.is-active) .step-num,
.steps.is-focusing .step:not(.is-active) .step-text { color: #66726F; }
.steps.is-focusing .step.is-active .step-num { color: var(--green-ink); }

/* ---------- team ---------- */
.team { background: var(--night); color: var(--white); }
.team .h2 { color: var(--white); }
.team .lead { color: var(--on-dark-2); }
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 40px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-panel);
  background: var(--night-2);
}
.founder-photo { position: relative; margin: 0; min-height: 360px; overflow: hidden; border-radius: var(--r-card); background: var(--night-3); }
.founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.founder-copy { display: flex; flex-direction: column; padding: 18px 18px 18px 0; }
.founder-role,
.crew-role {
  margin: 0 0 8px;
  font-stretch: 112%;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-hi);
}
.founder-name {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.founder-bio { margin: 0 0 22px; font-size: 16.5px; color: var(--on-dark-2); }
.founder-facts {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}
.founder-facts li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; font-weight: 500; line-height: 1.45; }
.founder-facts li::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 0.3em;
  color: var(--green);
  background: var(--bars);
}
.founder-mail {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  font-weight: 560;
  color: var(--green-hi);
}

.crew {
  display: grid;
  grid-template-rows: repeat(3, auto);
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--r-panel);
  background: var(--night-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.crew-member { padding: clamp(20px, 2.2vw, 30px); }
.crew-member + .crew-member { border-top: 1px solid var(--line-dark); }
.crew-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.crew-text { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--on-dark-2); }

/* ---------- faq ---------- */
.faq { background: var(--ground); }
.accordion { display: grid; gap: 10px; max-width: 840px; margin-inline: auto; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--paper);
  transition: background-color 240ms ease, border-color 240ms ease;
}
.acc-item.is-open { background: var(--white); border-color: #C8CCC2; }
.acc-heading { margin: 0; }
.acc-trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 14px 22px 14px 16px;
  border: 0;
  border-radius: var(--r-panel);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.acc-mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--r-badge);
  background: var(--paper-2);
  transition: background-color 240ms ease;
}
.acc-mark::before,
.acc-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.8px;
  margin: -0.9px 0 0 -6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 300ms var(--ease-out);
}
.acc-mark::after { transform: rotate(90deg); }
.is-open .acc-mark { background: var(--green); }
.is-open .acc-mark::before { transform: rotate(45deg); }
.is-open .acc-mark::after { transform: rotate(135deg); }
.acc-q {
  font-family: var(--font-sans);
  font-stretch: 104%;
  font-weight: 560;
  font-size: 18.5px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}
.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p { margin: 0; padding: 0 28px 22px 64px; max-width: 70ch; font-size: 16.5px; color: var(--text); }
.acc-item:not(.is-open) .acc-inner { visibility: hidden; transition: visibility 0s 320ms; }
.acc-item.is-open .acc-inner { visibility: visible; }
@media (hover: hover) and (pointer: fine) {
  .acc-item:not(.is-open):hover { border-color: #C8CCC2; }
  .acc-item:not(.is-open):hover .acc-mark { background: #E1E7D2; }
}

/* ---------- closing ---------- */
.closing { padding: clamp(64px, 8vw, 112px) 0; background: var(--night); color: var(--white); }
.closing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 16px;
}
.closing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-panel);
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(120, 172, 12, 0.16), rgba(120, 172, 12, 0) 55%),
    var(--night-2);
}
.closing .h2 { color: var(--white); font-size: clamp(34px, 4vw, 58px); }
.closing .lead { max-width: 520px; margin-bottom: 34px; color: var(--on-dark-2); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.closing-photo { position: relative; margin: 0; min-height: 420px; overflow: hidden; border-radius: var(--r-panel); }
.closing-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; }

/* ---------- contact ---------- */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.contact-intro .lead { margin-bottom: 36px; }
.contact-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-icon { width: 42px; height: 42px; background: var(--night); color: var(--green-hi); }
.contact-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 520; color: var(--ink); overflow-wrap: anywhere; }
.contact-text a { text-decoration: none; }
.contact-label {
  font-stretch: 112%;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
  .contact-text a:hover { text-decoration: underline; }
}

.form-card {
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--white);
  box-shadow: 0 30px 60px -44px rgba(13, 36, 39, 0.35);
}
.form-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: 26px;
  letter-spacing: -0.024em;
  color: var(--ink);
}
.form-note { margin: 0 0 26px; font-size: 15px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field { display: flex; flex-direction: column; margin: 0 0 20px; min-width: 0; }
.field label,
.field legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 560;
  color: var(--ink);
}
.req, .opt { font-weight: 450; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #7D8A88;
  border-radius: var(--r-badge);
  background: var(--white);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28, 87, 93, 0.28);
}
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { margin: 8px 0 0; font-size: 14.5px; font-weight: 500; color: #B42318; }
.checks { border: 0; padding: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15.5px;
  color: var(--text);
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.form-status { margin: 16px 0 0; font-weight: 520; color: var(--teal); }
.form-status:empty { display: none; }

/* ---------- footer ---------- */
.site-footer { padding: clamp(64px, 7vw, 96px) 0 28px; background: var(--night); color: var(--on-dark-2); }
.site-footer a { text-decoration: none; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-logo { display: inline-flex; align-items: center; gap: 16px; color: var(--white); }
.footer-logo img { width: 84px; }
.footer-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.footer-tagline { max-width: 420px; margin: 22px 0 0; font-size: 16px; color: var(--on-dark-3); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-head {
  margin: 0 0 14px;
  font-stretch: 112%;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.footer-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15.5px; color: var(--white); }
.footer-line { margin: 28px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--on-dark-3); }
.footer-line a { color: var(--white); }
.fl-sep { margin: 0 6px; color: rgba(255, 255, 255, 0.3); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--on-dark-3);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { text-decoration: underline; }
}

/* ---------- scroll reveal (visible by default; JS opts in) ---------- */
.pre-reveal { opacity: 0; transform: translateY(18px); }
.pre-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms);
}

/* ---------- accessibility statement page ---------- */
.doc-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(48px, 6vw, 80px); background: var(--night); color: var(--white); }
.doc-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.032em;
}
.doc-hero .lead { max-width: 640px; color: var(--on-dark-2); }
.doc-updated {
  margin: 28px 0 0;
  font-stretch: 112%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  white-space: nowrap;
}
.doc-body { padding: clamp(56px, 7vw, 104px) 0; background: var(--paper); }
.doc-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.doc-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.doc-toc a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; }
.doc-content { max-width: 760px; }
.doc-section { padding: 0 0 36px; margin: 0 0 36px; border-bottom: 1px solid var(--line); }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-section h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 560;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: var(--ink);
}
.doc-section p,
.doc-section li { font-size: 17px; color: var(--text); }
.doc-section ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.doc-section ul li { display: flex; align-items: flex-start; gap: 12px; }
.doc-section ul li::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 0.45em;
  color: var(--green);
  background: var(--bars);
}
.doc-section a { color: var(--teal); font-weight: 520; }
@media (hover: hover) and (pointer: fine) {
  .doc-toc a:hover { color: var(--ink); text-decoration: underline; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .menu-list a { padding: 0 9px; }
  .header-inner { gap: 18px; }
}

@media (max-width: 1100px) {
  .hero-lines { display: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-eyebrow { margin-top: 0; }
  .figures { margin-left: 0; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
}

/* tablet & below: hamburger menu */
@media (max-width: 1080px) {
  .menu-toggle { display: grid; color: inherit; }
  .site-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 24px;
    background: rgba(246, 245, 240, 0.98);
    box-shadow: 0 20px 40px -24px rgba(13, 36, 39, 0.45);
    color: var(--ink);
  }
  .site-menu.is-open { display: flex; }
  .menu-list { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-list li + li { border-top: 1px solid var(--line); }
  .menu-list a {
    width: 100%;
    min-height: 56px;
    padding: 0;
    font-family: var(--font-display);
    font-stretch: 112%;
    font-size: 21px;
    font-weight: 540;
    letter-spacing: -0.015em;
  }
  .menu-foot { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
  .menu-phone {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    font-weight: 560;
    color: var(--ink);
    text-decoration: none;
  }
  .site-menu .btn-green { color: var(--night); }
}

@media (max-width: 1023px) {
  .problems-grid { grid-template-columns: minmax(0, 1fr); }
  .stack-card { position: relative; top: 0; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stack-visual { min-height: 0; aspect-ratio: 5 / 4; order: -1; }
  .process-card { grid-template-columns: minmax(0, 1fr); }
  .process-photo { max-width: 560px; }
  .closing-card { grid-template-columns: minmax(0, 1fr); }
  .closing-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder-photo { min-height: 0; aspect-ratio: 4 / 4; }
  .founder-copy { padding: 8px 12px 14px; }
}

/* phones */
@media (max-width: 760px) {
  :root { --header-h: 64px; --section-y: 80px; }
  body { font-size: 16.5px; }
  .header-actions { display: none; }
  .brand-mark { width: 44px; }
  .brand-name { font-size: 14px; }

  .btn { width: 100%; justify-content: flex-start; }
  .btn .btn-label { flex: 1 0 auto; text-align: center; }
  .btn::after {
    content: "";
    flex: 0 1 calc(var(--pl) + var(--ic) + var(--gap) - var(--pr));
    min-width: 0;
    margin-left: calc(-1 * var(--gap));
  }

  .hero-media img { object-position: 50% 30%; transform: scale(1.03); }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(13, 36, 39, 0.72) 0%, rgba(13, 36, 39, 0.3) 12%, rgba(13, 36, 39, 0) 20%),
      linear-gradient(0deg, rgba(13, 36, 39, 0.97) 0%, rgba(13, 36, 39, 0.92) 34%, rgba(13, 36, 39, 0.6) 50%, rgba(13, 36, 39, 0) 66%);
  }
  .hero-inner { padding-bottom: 24px; }
  .hero-line { display: inline; white-space: normal; }
  .hero-title { font-size: clamp(36px, 10.4vw, 48px); line-height: 1.02; margin-bottom: 18px; }
  .hero-sub { font-size: 16.5px; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-foot { display: none; }

  .h2 { font-size: clamp(30px, 8.4vw, 38px); }
  .lead { font-size: 17px; }

  .figures { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .figure { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .figure-icon { grid-row: 1 / span 3; margin-bottom: 0; }
  .figure-value { font-size: 30px; margin-bottom: 8px; }

  .problem-list { grid-template-columns: minmax(0, 1fr); }
  .problem,
  .problem:nth-child(even) { padding: 26px 0 28px; border-left: 0; }

  .services-layout { gap: 32px; }
  .svc-card { width: min(340px, 84vw); }
  .services-meter { display: none; }

  .meta { grid-template-columns: minmax(0, 1fr); }
  .tag-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .stack-copy { padding: 8px 4px 4px; }

  .pill-cloud { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-inline: var(--gutter); }
  .pill-row,
  .pill-row-alt { display: contents; transform: none; }
  .pill { white-space: normal; font-size: 17px; }

  .step { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 24px 0; }
  .step-text { grid-column: 1; grid-row: auto; margin-top: 6px; }

  .acc-trigger { padding: 12px 16px 12px 12px; gap: 14px; }
  .acc-q { font-size: 17px; }
  .acc-inner p { padding: 0 18px 20px 58px; }

  .closing-copy { padding: 28px 22px 26px; }
  .closing-actions { flex-direction: column; gap: 10px; }

  .field-row { grid-template-columns: minmax(0, 1fr); }
  .check-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fl-sep { display: none; }
  .footer-line { display: grid; gap: 6px; }
  .fl-item { display: block; }

  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; }
}

@media (min-width: 540px) and (max-width: 760px) {
  .pill-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* phones: the founder line only fits clear of her face on tall screens */
@media (max-width: 760px) and (max-height: 899px) {
  .hero-sub-extra { display: none; }
}
@media (max-width: 760px) and (max-height: 760px) {
  .hero-title { font-size: clamp(34px, 9.6vw, 42px); }
}
@media (max-width: 760px) and (max-height: 680px) {
  .hero-sub { display: none; }
  .hero-eyebrow { margin-bottom: 14px; }
}

@media (max-width: 400px) {
  .btn { --gap: 10px; --pr: 16px; font-size: 12.5px; letter-spacing: 0.035em; }
  .eyebrow { font-size: 11.5px; letter-spacing: 0.07em; }
  .brand-name { font-size: 13px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; }
}
@media (max-width: 360px) {
  .btn { font-stretch: 100%; font-size: 12px; }
  .brand-sub { display: none; }
}

/* short desktop viewports: keep the hero inside one screen */
@media (min-width: 761px) and (max-height: 820px) {
  .hero-title { font-size: clamp(42px, min(5.4vw, 9.4vh), 82px); margin-bottom: 18px; }
  .hero-sub { margin-bottom: 24px; }
  .hero-foot { margin-top: 28px; }
}
@media (min-width: 761px) and (max-height: 700px) {
  .hero-sub-extra { display: none; }
  .hero-foot { margin-top: 20px; padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .hero-media img { transform: none; animation: none; }
}
