/* ==========================================================================
   Sage Marketing: main stylesheet
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --charcoal: #2b2b2b;
  --stone: #6b6b6b;
  --rule: #e4e2dd;
  --rule-strong: #cfccc4;
  --paper: #f6f4ef;
  --white: #ffffff;
  --sage: #8a9a7b;        /* accent lines, dots */
  --sage-deep: #4d5c46;   /* accent text on light backgrounds (AA) */
  --sage-light: #b8c4ab;  /* accent on dark backgrounds */
  --forest: #18211b;      /* dark sections and footer */
  --forest-2: #212c24;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --maxw: 1200px;
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 400; }
::selection { background: var(--ink); color: var(--white); }

:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 1px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display-1, .display-2, .display-3, .serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}
.display-1 { font-size: clamp(2.75rem, 1.6rem + 5.2vw, 5.75rem); font-weight: 380; letter-spacing: -0.03em; line-height: 0.98; }
.display-2 { font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.625rem); font-weight: 400; }
.display-3 { font-size: clamp(1.3125rem, 1.15rem + .6vw, 1.625rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.display-1 em, .display-2 em { font-style: italic; font-weight: 350; }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 550;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 20px;
}
.eyebrow .num { color: var(--sage-deep); margin-right: .9em; }
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--charcoal); max-width: 38em; }
.muted { color: var(--stone); }
.prose { max-width: 38em; }
.prose p:last-child { margin-bottom: 0; }
.pull {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); line-height: 1.3; color: var(--ink);
  letter-spacing: -0.01em; text-wrap: balance;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px;
  font: 500 .9375rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--sage-deep); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 500; color: var(--ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .3s var(--ease);
}
.link-arrow::after { content: "\2192"; transition: transform .25s var(--ease); }
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow:hover::after { transform: translateX(3px); }

.prose a, .text-link {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--sage);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.prose a:hover, .text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { display: block; flex-shrink: 0; color: var(--ink); }
.logo img { width: auto; height: 22px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 28px; list-style: none; }
.main-nav a {
  font-size: .875rem; font-weight: 450; color: var(--charcoal); text-decoration: none;
  padding: 6px 0; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.header-cta .short { display: none; }

.menu-toggle {
  display: none; margin-left: 4px; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.menu-icon { position: relative; display: block; width: 22px; height: 10px; margin: 0 auto; }
.menu-icon span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--white); padding: 24px var(--gutter) max(32px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--rule); }
.mobile-menu nav a {
  display: block; padding: 16px 0; text-decoration: none;
  font-family: var(--serif); font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink);
}
.mobile-menu-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; }
.mobile-menu-email { text-align: center; color: var(--stone); font-size: .9375rem; }
body.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section:not(.section-paper):not(.section-dark) { border-top: 1px solid var(--rule); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--forest); color: rgba(255,255,255,.78); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: rgba(255,255,255,.55); }
.section-dark .eyebrow .num { color: var(--sage-light); }
.section-dark .lead { color: rgba(255,255,255,.78); }

/* Editorial split: small label column + content column */
.split { display: grid; grid-template-columns: 1fr; gap: 0; }
.split-label .eyebrow { margin-bottom: 20px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 3fr 9fr; gap: 48px; }
  .split-label { padding-top: .55em; }
  .split-label .eyebrow { position: sticky; top: calc(var(--header-h) + 32px); }
}
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .display-2 { max-width: 16em; }
.section-head .lead { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 128px) 0 clamp(64px, 9vw, 120px); }
.hero .eyebrow { margin-bottom: clamp(24px, 3vw, 36px); display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ink); }
.hero-title { max-width: 11.5em; }
.hero-title .line2 { display: block; font-style: italic; font-weight: 340; color: var(--sage-deep); }
.hero-foot {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid; gap: 32px; align-items: end;
}
.hero-foot .lead { margin: 0; max-width: 34em; }
@media (min-width: 960px) {
  .hero-foot { grid-template-columns: 7fr 5fr; gap: 48px; }
  .hero-foot .btn-row { justify-content: flex-end; }
}

/* Hero questions strip */
.questions {
  display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink);
}
.question { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.question .num { font: 500 .75rem/1 var(--sans); letter-spacing: .18em; color: var(--stone); display: block; margin-bottom: 14px; }
.question h3 { margin-bottom: 10px; }
.question p { margin: 0; color: var(--stone); font-size: 1rem; }
@media (min-width: 860px) {
  .questions { grid-template-columns: repeat(3, 1fr); border-bottom: 0; }
  .question { padding: 32px 32px 8px 0; border-bottom: 0; }
  .question + .question { padding-left: 32px; border-left: 1px solid var(--rule); }
}

/* ---------- Problem ---------- */
.problem-list { list-style: none; margin-top: 40px; border-top: 1px solid var(--rule); }
.problem-list li {
  display: flex; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); color: var(--ink); letter-spacing: -0.01em;
}
.problem-list li span { font: 500 .75rem/1 var(--sans); letter-spacing: .14em; color: var(--stone); min-width: 2.4em; }

/* ---------- Checklist (platform section) ---------- */
.checklist { list-style: none; display: grid; grid-template-columns: 1fr; column-gap: 48px; margin: 36px 0 40px; }
.checklist li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--rule); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: calc(14px + .8em); width: 12px; height: 1px; background: var(--sage-deep);
}
@media (min-width: 720px) { .checklist { grid-template-columns: 1fr 1fr; } }

.tool-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; list-style: none; }
.tool-row li {
  font-size: .8125rem; font-weight: 500; letter-spacing: .02em;
  padding: 7px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; color: var(--charcoal);
}

/* ---------- Services grid ---------- */
.service-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); list-style: none; }
.service-card { border-bottom: 1px solid var(--rule); }
.service-card a {
  display: grid; grid-template-rows: auto 1fr auto; gap: 12px; height: 100%;
  padding: 28px 0; text-decoration: none; color: inherit;
}
.service-card .num { font: 500 .75rem/1 var(--sans); letter-spacing: .14em; color: var(--stone); }
.service-card h3 { transition: transform .3s var(--ease); }
.service-card p { margin: 0; color: var(--stone); font-size: 1rem; line-height: 1.55; }
.service-card .more {
  font-size: .8125rem; font-weight: 500; color: var(--ink); display: inline-flex; gap: .4em; margin-top: 8px;
}
.service-card .more::after { content: "\2192"; transition: transform .25s var(--ease); }
.service-card a:hover .more::after { transform: translateX(4px); }
@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(odd) a { padding-right: 32px; }
  .service-card:nth-child(even) { border-left: 1px solid var(--rule); }
  .service-card:nth-child(even) a { padding-left: 32px; }
}
@media (min-width: 1080px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card a { padding: 32px 28px 32px 0 !important; }
  .service-card { border-left: 0 !important; }
  .service-card:not(:nth-child(4n+1)) { border-left: 1px solid var(--rule) !important; }
  .service-card:not(:nth-child(4n+1)) a { padding-left: 28px !important; }
  .service-card a:hover { background: var(--paper); }
}

/* ---------- Stages (How we work) ---------- */
.stages { list-style: none; border-top: 1px solid var(--ink); counter-reset: stage; }
.stage {
  display: grid; grid-template-columns: 1fr; gap: 8px 48px;
  padding: 32px 0; border-bottom: 1px solid var(--rule);
}
.stage-num {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 2rem + 2vw, 4rem); line-height: 1;
  color: var(--sage-deep); letter-spacing: -0.03em;
}
.stage h3 { margin-bottom: 10px; }
.stage p { margin: 0; color: var(--stone); max-width: 36em; }
.stage ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.stage ul li { font-size: .8125rem; padding: 5px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; }
@media (min-width: 860px) {
  .stage { grid-template-columns: 140px 1fr; padding: 40px 0; }
}

/* ---------- AI section ---------- */
.ai-visual {
  position: relative; width: 100%; aspect-ratio: 16 / 7; margin: 8px 0 48px;
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
}
.ai-visual svg { width: 100%; height: 100%; }
.ai-visual .dot { fill: var(--ink); opacity: .22; transition: transform 1.6s var(--ease), opacity 1.2s var(--ease), fill .6s; }
.ai-visual .dot.key { opacity: .9; }
.ai-visual.is-settled .dot { transform: translate(0, 0) !important; }
.ai-visual.is-settled .dot.key { fill: var(--sage-deep); opacity: 1; }
.ai-visual-labels {
  position: absolute; inset: auto 0 -30px 0; display: grid; grid-template-columns: repeat(3, 1fr);
  font: 500 .6875rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone);
}
.ai-visual-labels span:nth-child(2) { text-align: center; }
.ai-visual-labels span:nth-child(3) { text-align: right; }
@media (max-width: 719px) { .ai-visual { aspect-ratio: 16 / 9; } }

.pillars { display: grid; grid-template-columns: 1fr; list-style: none; border-top: 1px solid var(--ink); margin-top: 16px; }
.pillar { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.pillar h3 { margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--stone); font-size: 1rem; }
@media (min-width: 860px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { padding: 32px 32px 32px 0; border-bottom: 0; }
  .pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--rule); }
}
.closing-line {
  margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--rule-strong);
}

/* ---------- Reporting ---------- */
.report-grid { display: grid; grid-template-columns: 1fr; list-style: none; gap: 0; counter-reset: rq; }
.report-item { padding: 28px 0; border-top: 1px solid var(--ink); }
.report-item h3 { margin-bottom: 8px; }
.report-item p { margin: 0; color: var(--stone); }
@media (min-width: 860px) {
  .report-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ---------- Fit list ---------- */
.fit-list { list-style: none; display: grid; grid-template-columns: 1fr; column-gap: 48px; border-top: 1px solid var(--ink); }
.fit-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 8px;
  padding: 22px 0; border-bottom: 1px solid var(--rule); color: var(--charcoal);
}
.fit-list li::before { content: ""; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: var(--sage-deep); }
@media (min-width: 860px) { .fit-list { grid-template-columns: 1fr 1fr; } }

/* ---------- About teaser ---------- */
.about-teaser { display: grid; gap: 32px; }
@media (min-width: 960px) { .about-teaser { grid-template-columns: 6fr 6fr; gap: 64px; align-items: start; } }

/* ---------- CTA ---------- */
.cta-section { padding: clamp(88px, 12vw, 160px) 0; }
.cta-inner { max-width: 820px; }
.cta-inner .lead { margin: 28px 0 40px; }
.cta-email { margin: 28px 0 0; font-size: .9375rem; color: rgba(255,255,255,.6); }
.cta-email a { color: var(--white); text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: rgba(255,255,255,.62); border-top: 1px solid rgba(255,255,255,.12); font-size: .9375rem; }
.footer-inner { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 24em; margin: 0; }
.footer-nav ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .eyebrow { color: rgba(255,255,255,.45); margin-bottom: 12px; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  position: relative; padding-top: 24px; padding-bottom: 32px; font-size: .8125rem;
}
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255,255,255,.12); }
.footer-base p { margin: 0; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 6fr 3fr 3fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.page-hero .display-1 { max-width: 12em; font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem); }
.page-hero .lead { margin-top: 28px; }

/* Services page */
.service-index { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 40px; }
.service-index a {
  display: inline-block; font-size: .8125rem; font-weight: 500; text-decoration: none; color: var(--charcoal);
  padding: 8px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; transition: all .2s var(--ease);
}
.service-index a:hover { border-color: var(--ink); color: var(--ink); }
.service-detail { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--rule); }
.service-detail:nth-of-type(even) { background: var(--paper); }
.service-detail .display-2 { margin-bottom: 24px; }
.includes { list-style: none; display: grid; grid-template-columns: 1fr; column-gap: 40px; margin: 32px 0; border-top: 1px solid var(--rule-strong); }
.includes li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--rule); position: relative; font-size: 1rem; }
.includes li::before { content: ""; position: absolute; left: 0; top: calc(11px + .8em); width: 10px; height: 1px; background: var(--sage-deep); }
@media (min-width: 720px) { .includes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .includes { grid-template-columns: 1fr 1fr 1fr; } }
.note { font-size: .9375rem; color: var(--stone); border-left: 2px solid var(--sage); padding-left: 16px; max-width: 38em; }

/* Two-column text block */
.cols-2 { display: grid; gap: 32px; }
@media (min-width: 860px) { .cols-2 { grid-template-columns: 1fr 1fr; gap: 64px; } }

.values { list-style: none; border-top: 1px solid var(--ink); }
.values li { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.values strong { font-family: var(--serif); font-weight: 500; font-size: 1.3125rem; color: var(--ink); letter-spacing: -0.01em; }
.values span { color: var(--stone); }
@media (min-width: 860px) { .values li { grid-template-columns: 5fr 7fr; gap: 32px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
.book-card { border-top: 1px solid var(--ink); padding-top: 28px; }
.book-card .display-3 { margin-bottom: 12px; }
.book-card ul { list-style: none; margin: 24px 0 28px; border-top: 1px solid var(--rule); }
.book-card li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; display: flex; justify-content: space-between; gap: 16px; }
.book-card li span:first-child { color: var(--stone); }
.cal-embed { margin-top: 24px; min-height: 640px; border: 1px solid var(--rule); }
.cal-embed iframe { width: 100%; height: 700px; border: 0; }

.form { border-top: 1px solid var(--ink); padding-top: 28px; }
.form .display-3 { margin-bottom: 8px; }
.form-intro { color: var(--stone); margin-bottom: 32px; }
.field { margin-bottom: 24px; }
.field-row { display: grid; gap: 0 24px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend {
  display: block; margin-bottom: 8px; padding: 0;
  font-size: .875rem; font-weight: 550; color: var(--ink);
}
.field .optional { font-weight: 400; color: var(--stone); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1.0625rem/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b0b0b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--stone); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(125,139,116,.25); }
fieldset.field { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin: 0;
  font-size: .9375rem; font-weight: 450; color: var(--charcoal);
  border: 1px solid var(--rule-strong); border-radius: 999px; cursor: pointer; user-select: none;
  transition: all .15s var(--ease);
}
.chip label:hover { border-color: var(--ink); }
.chip input:checked + label { background: var(--forest); border-color: var(--forest); color: var(--white); }
.chip input:focus-visible + label { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.form-foot { display: grid; gap: 16px; margin-top: 32px; }
.form-foot p { margin: 0; font-size: .8125rem; color: var(--stone); }
.hp { position: absolute; left: -9999px; }

/* ---------- Legal / simple pages ---------- */
.legal { max-width: 44em; }
.legal h2 { font-family: var(--serif); font-size: 1.625rem; letter-spacing: -0.01em; margin: 48px 0 12px; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: .4em; }

.center-page { min-height: 60vh; display: flex; align-items: center; padding: var(--section) 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive header ---------- */
@media (max-width: 1079px) {
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: block; }
}
@media (max-width: 519px) {
  :root { --header-h: 64px; }
  .logo img { height: 18px; }
  .header-cta .long { display: none; }
  .header-cta .short { display: inline; }
  .header-cta { padding: 0 14px; min-height: 38px; font-size: .8125rem; }
  .hero .btn-row .btn { width: 100%; }
  .cta-section .btn-row .btn { width: 100%; }
}

/* ---------- Hero capability strip ---------- */
.hero-strip {
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 24px; list-style: none;
}
.hero-strip li {
  padding: 18px 0;
  font: 500 .8125rem/1.2 var(--sans); letter-spacing: .04em; color: var(--charcoal);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.hero-strip li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
@media (max-width: 719px) {
  .hero-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-strip li { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); }
  .hero-strip li:nth-last-child(-n+1) { border-bottom: 0; }
}

/* ---------- Background texture (kept deliberately faint) ---------- */
/* Dot grid behind the top of each page, fading out from the right */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(24,33,27,.22) 1.1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 88% 30%, #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
          mask-image: radial-gradient(ellipse 55% 75% at 88% 30%, #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
}
/* A single sage ring, partly off-canvas, in the hero */
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(62vw, 760px); aspect-ratio: 1; right: -18vw; top: -12%;
  border: 1px solid rgba(77,92,70,.28); border-radius: 50%;
  outline: 1px solid rgba(77,92,70,.12); outline-offset: 56px;
}
@media (max-width: 719px) {
  .hero::after { width: 120vw; right: -70vw; top: -8%; }
  .hero::before, .page-hero::before {
    -webkit-mask-image: radial-gradient(ellipse 80% 45% at 90% 12%, #000 0%, transparent 70%);
            mask-image: radial-gradient(ellipse 80% 45% at 90% 12%, #000 0%, transparent 70%);
  }
}

/* Same dot grid on every light section, alternating sides down the page */
.section:not(.section-dark), .service-detail { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.section:not(.section-dark)::before, .service-detail::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(24,33,27,.2) 1.1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 45% 60% at 95% 15%, #000 0%, rgba(0,0,0,.3) 45%, transparent 75%);
          mask-image: radial-gradient(ellipse 45% 60% at 95% 15%, #000 0%, rgba(0,0,0,.3) 45%, transparent 75%);
}
.section:not(.section-dark):nth-of-type(even)::before, .service-detail:nth-of-type(even)::before {
  -webkit-mask-image: radial-gradient(ellipse 40% 55% at 3% 90%, #000 0%, rgba(0,0,0,.3) 45%, transparent 75%);
          mask-image: radial-gradient(ellipse 40% 55% at 3% 90%, #000 0%, rgba(0,0,0,.3) 45%, transparent 75%);
}
/* A thin sage ring, partly off-canvas, on the off-white sections */
.section-paper::after, .service-detail:nth-of-type(even)::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(48vw, 560px); aspect-ratio: 1; left: -18vw; bottom: max(-40%, -300px);
  border: 1px solid rgba(77,92,70,.22); border-radius: 50%;
  outline: 1px solid rgba(77,92,70,.1); outline-offset: 44px;
}
/* Every other off-white section: ring and dots move to the top right */
.section-paper:nth-of-type(4n)::after { left: auto; bottom: auto; right: -18vw; top: max(-40%, -300px); }
.section-paper:nth-of-type(4n)::before {
  -webkit-mask-image: radial-gradient(ellipse 45% 60% at 95% 12%, #000 0%, rgba(0,0,0,.3) 45%, transparent 75%);
          mask-image: radial-gradient(ellipse 45% 60% at 95% 12%, #000 0%, rgba(0,0,0,.3) 45%, transparent 75%);
}
@media (max-width: 719px) {
  .section:not(.section-dark)::before, .service-detail::before,
  .section:not(.section-dark):nth-of-type(even)::before, .service-detail:nth-of-type(even)::before {
    -webkit-mask-image: radial-gradient(ellipse 70% 30% at 95% 4%, #000 0%, transparent 70%);
            mask-image: radial-gradient(ellipse 70% 30% at 95% 4%, #000 0%, transparent 70%);
  }
  .section-paper::after, .service-detail:nth-of-type(even)::after { width: 90vw; left: -55vw; bottom: -8%; }
}

/* Paper grain on off-white sections */
.section-paper, .service-detail:nth-of-type(even) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.13 0 0 0 0 0.1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

/* Forest sections: soft sage glow + fine vertical rules */
/* clip (not hidden) so sticky section labels keep working */
.section-dark { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 55% 65% at 92% 0%, rgba(138,154,123,.20), transparent 70%),
              radial-gradient(ellipse 40% 50% at 0% 100%, rgba(138,154,123,.08), transparent 70%);
}
.section-dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--maxw) + var(--gutter) * 2) - var(--gutter) * 2) / 6) 100%;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}

/* ---------- Accent details ---------- */
.questions, .service-grid, .stages, .fit-list { border-top-color: var(--ink); }
.service-card a { position: relative; }
.service-card a::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--sage-deep);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card a:hover::before { transform: scaleX(1); }
.service-card a:hover h3 { color: var(--sage-deep); }
.pull { color: var(--sage-deep); }


/* ---------- Dark (forest) sections ---------- */
.section-dark + .section-dark { border-top: 1px solid rgba(255,255,255,.1); }
.section-dark .pull { color: var(--sage-light); }
.section-dark .pillars { border-top-color: rgba(255,255,255,.5); }
.section-dark .pillar { border-bottom-color: rgba(255,255,255,.12); }
.section-dark .pillar + .pillar { border-left-color: rgba(255,255,255,.12); }
.section-dark .pillar p { color: rgba(255,255,255,.62); }
.section-dark .closing-line { border-top-color: rgba(255,255,255,.18); }
.section-dark .ai-visual { border-color: rgba(255,255,255,.14); }
.section-dark .ai-visual .dot { fill: var(--white); opacity: .2; }
.section-dark .ai-visual.is-settled .dot { opacity: .32; }
.section-dark .ai-visual.is-settled .dot.key { fill: var(--sage-light); opacity: 1; }
.section-dark .ai-visual-labels { color: rgba(255,255,255,.5); }
.section-dark :focus-visible { outline-color: var(--sage-light); }
.btn-light:hover { background: var(--sage-light); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-section { display: none; }
}
