/* ==========================================================================
   Canfield Cook — Splash Page
   Tokens mirror the Pencil design variables (conner-website.pen / Splash Page)
   ========================================================================== */

:root {
  --bone: #E8E6E0;
  --paper: #FFFFFF;
  --ink: #000000;
  --ink-70: rgba(0, 0, 0, 0.70);
  --ink-45: rgba(0, 0, 0, 0.45);
  --ink-15: rgba(0, 0, 0, 0.15);
  --indigo: #1925AA;
  --indigo-deep: #0D1355;
  --bone-70: rgba(232, 230, 224, 0.70);
  --bone-40: rgba(232, 230, 224, 0.40);
  --white-18: rgba(255, 255, 255, 0.18);

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --page-max: 1440px;
  --pad-x: clamp(20px, 6.94vw, 100px);   /* 100px at 1440 */
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* --- Type utilities ----------------------------------------------------- */
.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.faint   { color: var(--ink-45); }
.inv-70  { color: var(--bone-70); }
.muted-inv { color: var(--bone-70); }

/* --- Page shell: every full-bleed section centers a 1440 column -------- */
.nav, .hero, .findings, .offerings, .process, .contact, .footer,
.hero-band, .page-main {
  width: 100%;
}
.nav, .hero, .findings, .offerings, .contact, .page-main {
  max-width: var(--page-max);
  margin-inline: auto;
}
/* indigo / ink sections bleed full width, inner content stays on the grid */
.process > *, .footer > * {
  width: 100%;
  max-width: calc(var(--page-max) - 2 * var(--pad-x));
  margin-inline: auto;
}
.hero-band { max-width: var(--page-max); margin-inline: auto; }

/* --- Logo --------------------------------------------------------------- */
.logo { width: 140px; height: 15px; }
.logo .logo-mark   { fill: var(--ink); }
.logo .logo-accent { fill: var(--indigo); }
.logo-inv { color: var(--bone); }
.logo-inv .logo-mark, .logo-inv .logo-accent { fill: var(--bone); }
.brand { display: inline-flex; align-items: center; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 9px 9px 18px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  transition: background-color .15s ease, color .15s ease;
}
.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--indigo);
  color: var(--paper);
  transition: background-color .15s ease;
}
@media (hover: hover) {
  .btn:hover { background: var(--ink); color: var(--paper); }
  .btn:hover .btn-icon { background: var(--paper); color: var(--indigo); }
}

.btn-sm { padding: 7px 7px 7px 14px; font-size: 10px; }
.btn-sm .btn-icon { width: 22px; height: 22px; }

.btn-outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink);
  padding: 9px 18px;
  min-height: 44px;
}
@media (hover: hover) { .btn-outline:hover { background: var(--ink); color: var(--paper); } }

/* --- Nav ---------------------------------------------------------------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad-x);
  border-bottom: 1px solid var(--ink-15);
}
.nav-right { display: flex; align-items: center; }

/* Sticky header: indigo by default, flips back to bone over blue sections
   (sections marked data-nav-tone="blue"; script.js toggles .nav--on-blue). */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--indigo);
  border-bottom-color: var(--white-18);
  /* paint the bar edge to edge while content stays on the 1440 grid */
  box-shadow: 0 0 0 100vmax var(--indigo);
  clip-path: inset(0 -100vmax);
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nav .logo .logo-mark { fill: var(--bone); }
.nav .logo .logo-accent { fill: var(--paper); }

.nav.nav--on-blue {
  background: var(--bone);
  border-bottom-color: var(--ink-15);
  box-shadow: 0 0 0 100vmax var(--bone);
}
.nav.nav--on-blue .logo .logo-mark { fill: var(--ink); }
.nav.nav--on-blue .logo .logo-accent { fill: var(--indigo); }

/* --- Menu overlay ------------------------------------------------------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: var(--indigo);
  color: var(--bone);
}
.menu-overlay[hidden] { display: none; }
.menu-overlay-inner {
  height: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 0 var(--pad-x) 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.menu-list { display: flex; flex-direction: column; flex: 1; justify-content: center; }
.menu-list li { border-top: 1px solid var(--bone-40); }
.menu-list li:last-child { border-bottom: 1px solid var(--bone-40); }
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 18px 0;
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.menu-list a:hover { color: var(--paper); padding-left: 12px; transition: padding .2s ease; }
.menu-list .num { color: var(--bone-70); font-size: 11px; }
/* same height, padding and right edge as .nav, so Close sits exactly where Menu was */
.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 18px;
  border-bottom: 1px solid transparent;
}
body.menu-open { overflow: hidden; }
/* Menu and Close are the same size, so the button doesn't jump when it swaps */
.menu-toggle .btn-label, .menu-close .btn-label { min-width: calc(5ch + 0.3em); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 72px var(--pad-x) 0;
}
.eyebrow { display: flex; justify-content: space-between; gap: 24px; }
.headline {
  font-size: clamp(52px, 8.6vw, 124px);  /* 124 at 1440 */
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;               /* -5px at 124 */
  max-width: 14ch;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 64px;
  padding-bottom: 56px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 520px;
  max-width: 100%;
}
.subhead { font-size: 18px; line-height: 1.5; color: var(--ink-70); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.hero-stats { display: flex; align-items: flex-end; gap: 48px; }
.stat {
  width: auto;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-15);
}
.stat-value {
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.0375em;
}
.stat-label { color: var(--ink-45); line-height: 1.4; max-width: 150px; }

/* --- Hero band ---------------------------------------------------------- */
.hero-band {
  display: flex;
  height: 440px;
  overflow: hidden;
}
.hero-visual {
  flex: 0 0 66.667%;                      /* 960 / 1440 */
  background: var(--indigo-deep) url("assets/hero.jpg") center / cover no-repeat;
}
.indigo-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  background: var(--indigo);
  color: var(--bone);
}
.panel-top { display: flex; flex-direction: column; gap: 10px; }
.panel-statement {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.panel-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--bone-40);
}
.panel-bottom .mono { line-height: 1.6; }

/* --- Section header (shared by Offerings + Process) --------------------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 80px;
}
.section-header-left {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-title {
  font-size: clamp(34px, 3.9vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.036em;
  max-width: 800px;
}
.section-note {
  flex: 0 0 360px;
  max-width: 360px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
}

/* --- Offerings ---------------------------------------------------------- */
.offerings {
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 88px var(--pad-x) 96px;
}
.offering-list { border-bottom: 1px solid var(--ink-15); }
.offering {
  display: grid;
  grid-template-columns: 64px 320px minmax(0, 1fr) 170px;
  column-gap: 40px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--ink-15);
  transition: background-color .2s ease;
}
.offering-num { font-size: 12px; color: var(--indigo); }
.offering-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.offering-desc { font-size: 15px; line-height: 1.55; color: var(--ink-70); }
.offering-tag { text-align: right; color: var(--ink-45); line-height: 1.6; }

/* --- Process ------------------------------------------------------------ */
.process {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 80px var(--pad-x) 72px;
  background: var(--indigo);
  color: var(--bone);
}
.process .section-title { color: var(--bone); }
.process-note {
  flex: 0 0 300px;
  max-width: 300px;
  line-height: 1.7;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--bone-40);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px 0;
  border-left: 1px solid var(--bone-40);
}
.step:first-child { padding-left: 0; border-left: 0; }
.step:last-child { padding-right: 0; }
.step-week { color: var(--bone-70); }
.step-title {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.033em;
}
.step-copy { font-size: 14px; line-height: 1.55; color: var(--bone-70); }

/* --- Contact ------------------------------------------------------------ */
.contact {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 96px var(--pad-x) 88px;
}
.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 80px;
}
.contact-headline {
  flex: 1 1 auto;
  font-size: clamp(40px, 5.3vw, 76px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.042em;
  max-width: 15ch;
}
.contact-note {
  flex: 0 0 340px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.note-copy { font-size: 15px; line-height: 1.55; color: var(--ink-70); }

.email-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--ink-15);
  border-bottom: 1px solid var(--ink-15);
}
.email {
  font-size: clamp(24px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--indigo);
  overflow-wrap: anywhere;
}
.email:hover { text-decoration: underline; text-underline-offset: 0.12em; }

.contact-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 28px;
  border-left: 1px solid var(--ink-15);
}
.detail:first-child { padding-left: 0; border-left: 0; }
.detail:last-child { padding-right: 0; }
.detail-label { color: var(--indigo); }
.detail-value {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-70);
}
.detail-value a:hover { color: var(--indigo); }

/* --- Footer ------------------------------------------------------------- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px var(--pad-x) 40px;
  background: var(--ink);
  color: var(--bone);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-links { display: flex; align-items: center; gap: 28px; }
.footer-divider { width: 1px; height: 12px; background: var(--white-18); }
.footer-links a.footer-linkedin { display: inline-flex; align-items: center; gap: 6px; color: var(--bone); }
.footer-links a.footer-linkedin:hover { color: var(--paper); }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-70);
}
.footer-links a:hover { color: var(--bone); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--white-18);
}
.footer-bottom .mono { color: var(--bone-40); }

/* --- Findings ----------------------------------------------------------- */
.findings {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 88px var(--pad-x);
}
.finding-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finding {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 32px 0;
  border-top: 1px solid var(--ink-15);
  min-width: 0;
}
.finding + .finding { border-left: 1px solid var(--ink-15); }
.finding:first-child { padding-left: 0; }
.finding:last-child { padding-right: 0; }
.finding-tag { display: flex; align-items: center; gap: 12px; }
.finding-num { color: var(--indigo); }
.finding-title { font-size: 28px; font-weight: 500; line-height: 1.1; letter-spacing: -0.032em; }
.finding-copy { font-size: 15px; line-height: 1.55; color: var(--ink-70); }
.findings-close {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-15);
}
.findings-statement { font-size: 22px; font-weight: 500; letter-spacing: -0.023em; line-height: 1.25; }
.findings-note { color: var(--indigo); text-align: right; }

/* --- Footer extras ------------------------------------------------------ */
.footer-links a.footer-email { color: var(--bone); text-transform: uppercase; }
.footer-links a.footer-email:hover { color: var(--paper); }
.footer-legal { color: var(--bone-40); }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--bone); }

/* --- Sub pages (contact, privacy) -------------------------------------- */
.page-main {
  display: flex;
  align-items: flex-start;
  padding: 96px var(--pad-x) 112px;
}
.page-label { color: var(--ink-70); }
.page-title {
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Contact page */
.contact-main { gap: 96px; }
.contact-intro { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.contact-intro-head { display: flex; flex-direction: column; gap: 24px; }
.contact-intro-copy { font-size: 17px; line-height: 1.55; color: var(--ink-70); max-width: 52ch; }
.next-steps { padding-top: 20px; border-top: 1px solid var(--ink-15); }
.next-step {
  display: flex;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-15);
}
.next-step .mono { flex: 0 0 28px; color: var(--indigo); padding-top: 4px; }
.next-step-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.next-step-title { font-size: 18px; font-weight: 500; letter-spacing: -0.017em; }
.next-step-copy { font-size: 14px; line-height: 1.55; color: var(--ink-70); }
.direct { display: flex; flex-wrap: wrap; gap: 40px; }
.direct-item { display: flex; flex-direction: column; gap: 8px; }
.direct-item .mono { color: var(--ink-45); }
.direct-item a { font-size: 16px; font-weight: 500; color: var(--indigo); }
.direct-item a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.contact-form {
  flex: 0 0 620px;
  max-width: 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 44px 44px 40px;
  background: var(--paper);
}
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 4px; }
.form-head .mono:first-child { color: var(--ink); }
.form-head .mono:last-child { color: var(--ink-45); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-row.one { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-label { color: var(--ink-70); padding: 0; }
.field input,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ink-15);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease;
}
.field textarea { height: 148px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-45); }
.field input:focus, .field textarea:focus { border-color: var(--indigo); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid .chip { border-color: #B3261E; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--ink-15);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 15px;
  color: var(--ink-70);
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip span svg { display: none; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.chip input:checked + span svg { display: block; }
.chip input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 8px; }
.form-note { font-size: 13px; color: var(--ink-45); }
.form-note a { text-decoration: underline; text-underline-offset: 0.15em; }
.form-note a:hover { color: var(--ink); }
.form-status { font-size: 14px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error { color: #B3261E; }
.form-status.is-ok { color: var(--indigo); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.btn-dark { background: var(--ink); color: var(--bone); border: 0; }
.btn-dark:hover { background: var(--indigo); }
.btn-dark:hover .btn-icon { background: var(--paper); color: var(--indigo); }
.btn[disabled] { opacity: .6; cursor: progress; }
.contact-form.is-sent > :not(.form-head):not(.form-status) { display: none; }

/* Privacy page */
.privacy-main { gap: 120px; }
.privacy-index {
  flex: 0 0 280px;
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.privacy-index .mono:first-child { color: var(--ink-45); }
.privacy-index ol { display: flex; flex-direction: column; }
.privacy-index a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--ink-15);
  font-size: 14px;
  color: var(--ink-70);
  transition: color .15s ease;
}
.privacy-index a .mono { color: var(--ink-45); }
.privacy-index a:hover, .privacy-index a.is-active { color: var(--ink); }
.privacy-index a.is-active .mono { color: var(--indigo); }
.policy { flex: 0 1 720px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.policy-head { display: flex; flex-direction: column; gap: 20px; }
.policy-head .page-title { font-size: clamp(40px, 4.4vw, 64px); letter-spacing: -0.0375em; }
.policy-effective { color: var(--indigo); }
.policy-intro { font-size: 19px; line-height: 1.55; color: var(--ink); }
.policy-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-15);
  scroll-margin-top: 96px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-70);
}
.policy-section h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 4px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.029em;
  line-height: 1.2;
  color: var(--ink);
}
.policy-section h2 .mono { color: var(--indigo); }
.policy-section strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.policy-section ul { display: flex; flex-direction: column; gap: 10px; }
.policy-section li { position: relative; padding-left: 20px; }
.policy-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--indigo);
}
.policy-section a { color: var(--indigo); font-weight: 500; }
.policy-section a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

/* --- Motion ------------------------------------------------------------- */
/* Hide what animates on load until the animation script takes over (max 3s). */
.anim .hero .eyebrow, .anim .hero .headline, .anim .hero .subhead,
.anim .hero .cta-row, .anim .hero .stat,
.anim .page-label, .anim .page-title, .anim .contact-intro-copy,
.anim .contact-form, .anim .privacy-index, .anim .policy-effective, .anim .policy-intro { visibility: hidden; }
.hero-band { overflow: hidden; }
.hero-visual { will-change: transform, background-position; }
a, button, label, .chip span { -webkit-tap-highlight-color: transparent; }
/* Button label rolls up on hover */
.btn-label .roll { display: inline-grid; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.btn-label .roll > span { grid-area: 1 / 1; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.btn-label .roll > span + span { transform: translateY(105%); }
@media (hover: hover) {
  .btn:hover .btn-label .roll > span:first-child { transform: translateY(-105%); }
  .btn:hover .btn-label .roll > span + span { transform: translateY(0); }
}
.btn-icon svg { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.btn:hover .btn-icon svg { transform: rotate(45deg); }
/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 48px; }
  .hero-stats { width: 100%; align-items: flex-start; }
  .stat { width: auto; flex: 1 1 0; }

  .hero-band { height: auto; flex-direction: column; }
  .hero-visual { flex-basis: auto; height: 360px; }
  .indigo-panel { gap: 40px; }

  .offering { grid-template-columns: 48px minmax(0, 1fr); row-gap: 12px; }
  .offering-title { grid-column: 2; }
  .offering-desc { grid-column: 2; }
  .offering-tag { grid-column: 2; text-align: left; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .step:nth-child(2n) { padding-right: 0; }

  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .detail:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .detail:nth-child(2n) { padding-right: 0; }
}

@media (max-width: 820px) {

  .hero { padding-top: 48px; gap: 32px; }
  .eyebrow { flex-direction: column; gap: 6px; }
  .headline { max-width: none; }

  .section-header, .contact-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section-note, .process-note, .contact-note { flex-basis: auto; max-width: 520px; }

  .offerings { padding-block: 64px 72px; gap: 40px; }
  .process { padding-block: 64px 56px; gap: 40px; }
  .contact { padding-block: 72px 64px; gap: 36px; }

  .email-block { flex-direction: column; align-items: flex-start; gap: 20px; }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 16px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 520px) {
  .hero-stats { flex-direction: column; align-items: stretch; gap: 20px; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .step { padding-inline: 0; border-left: 0; }
  .contact-details { grid-template-columns: 1fr; }
  .detail { padding-inline: 0; border-left: 0; }
  .hero-visual { height: 260px; }
  .indigo-panel { padding: 28px 24px; }
}

@media (max-width: 1100px) {
  .contact-main { flex-direction: column; gap: 56px; }
  .contact-form { flex-basis: auto; width: 100%; max-width: 680px; }
  .privacy-main { gap: 64px; }
  .privacy-index { flex-basis: 220px; }
}
@media (max-width: 820px) {
  .findings { padding-block: 64px 72px; gap: 40px; }
  .finding-grid { grid-template-columns: 1fr; }
  .finding { padding: 24px 0 28px; }
  .finding + .finding { border-left: 0; }
  .findings-close { flex-direction: column; align-items: flex-start; gap: 12px; }
  .findings-note { text-align: left; }
  .page-main { padding-block: 56px 72px; }
  .privacy-main { flex-direction: column; gap: 40px; }
  .privacy-index { position: static; flex-basis: auto; width: 100%; }
  .policy { flex-basis: auto; width: 100%; }
}
@media (max-width: 520px) {
  .contact-form { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .form-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .form-foot { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .privacy-index { display: none; }
}

/* ==========================================================================
   Phone layout (≤520px): shorter home page
   ========================================================================== */
.offering-toggle-icon, .finding-dots { display: none; }

@media (max-width: 520px) {
  /* Hero fits the first screen: tighter gaps, stats in one row */
  .hero { padding-top: 36px; gap: 24px; }
  .hero-bottom { gap: 32px; padding-bottom: 36px; }
  .hero-copy { gap: 22px; }
  .subhead { font-size: 16px; }
  .hero-stats { flex-direction: row; align-items: stretch; gap: 14px; }
  .stat { min-width: 0; flex: 1 1 0; gap: 6px; padding-top: 10px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 9px; letter-spacing: 0.04em; max-width: none; }

  /* Photo band a little shorter */
  .hero-visual { height: 200px; }
  .indigo-panel { gap: 28px; }
  .panel-statement { font-size: 24px; }

  /* Shared section rhythm */
  .findings, .offerings { padding-block: 56px; gap: 32px; }
  .process { padding-block: 56px; gap: 32px; }
  .contact { padding-block: 56px; gap: 28px; }
  .section-header { gap: 16px; }
  .section-header-left { gap: 14px; }

  /* Findings: swipe sideways */
  .finding-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--pad-x));
    padding-inline: var(--pad-x);
    scroll-padding-inline: var(--pad-x);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .finding-grid::-webkit-scrollbar { display: none; }
  .finding, .finding:first-child, .finding:last-child {
    flex: 0 0 84%;
    scroll-snap-align: start;
    padding: 22px 20px 24px;
    gap: 14px;
    background: var(--paper);
    border: 1px solid var(--ink-15);
  }
  .finding + .finding { border-left: 1px solid var(--ink-15); }
  .finding-title { font-size: 22px; }
  .finding-dots { display: flex; gap: 6px; margin-top: -16px; }
  .finding-dots span {
    width: 18px; height: 2px; background: var(--ink-15);
    transition: background-color .25s ease, width .25s ease;
  }
  .finding-dots span.is-on { width: 32px; background: var(--indigo); }
  .findings-close { padding-top: 20px; }
  .findings-statement { font-size: 19px; }

  /* Offerings: tap a title to open it */
  .offering { grid-template-columns: 32px minmax(0, 1fr) 20px; column-gap: 12px; row-gap: 0; padding: 18px 0; cursor: pointer; }
  .offering-title { grid-column: 2; font-size: 21px; }
  .offering-toggle-icon {
    display: block; grid-column: 3; grid-row: 1;
    position: relative; width: 14px; height: 14px; margin-top: 4px; justify-self: end;
  }
  .offering-toggle-icon::before, .offering-toggle-icon::after {
    content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--indigo);
    transition: transform .3s ease;
  }
  .offering-toggle-icon::after { transform: rotate(90deg); }
  .offering.is-open .offering-toggle-icon::after { transform: rotate(0deg); }
  .offering-desc, .offering-tag { grid-column: 2 / 4; display: none; }
  .offering.is-open .offering-desc { display: block; margin-top: 12px; animation: offering-in .35s ease both; }
  .offering.is-open .offering-tag { display: block; margin-top: 10px; animation: offering-in .35s ease .05s both; }
  .offering:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; }

  /* Process: compact timeline */
  .steps { row-gap: 0; }
  .step, .step:first-child, .step:last-child {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 6px;
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--bone-40);
  }
  .step:last-child { border-bottom: 0; padding-bottom: 0; }
  .step-week { grid-row: 1 / 3; padding-top: 6px; }
  .step-title { font-size: 22px; }
  .step-copy { grid-column: 2; }
}

@keyframes offering-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Phone hero: "real work." on an indigo block (pen.dev Splash — Mobile) */
@media (max-width: 520px) {
  .headline-accent {
    display: table;
    margin-top: 6px;
    padding: 0 10px 8px;
    background: var(--indigo);
    color: var(--bone);
  }
}

/* Client logos ("Trusted by"), between Process and Contact */
.clients { padding: 64px var(--pad-x) 0; }
.clients-row {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink-15);
}
.clients-label { flex: none; }
.clients-logos {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients-logos li { display: flex; align-items: center; justify-content: center; }
.clients-logos a { display: block; border-radius: 2px; transition: opacity 0.2s ease; }
.clients-logos a:focus-visible { outline: 2px solid var(--indigo); outline-offset: 6px; }
@media (hover: hover) { .clients-logos a:hover { opacity: 0.65; } }
.clients-logos img { display: block; max-width: 100%; height: auto; }

@media (max-width: 900px) {
  .clients-row { flex-direction: column; gap: 28px; }
  .clients-logos { width: 100%; }
}
@media (max-width: 520px) {
  .clients { padding-top: 48px; }
  .clients-row { gap: 24px; padding-bottom: 24px; }
  .clients-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .clients-logos li { height: 56px; }
  .clients-logos li:nth-child(1) img { width: 128px; }
  .clients-logos li:nth-child(2) img { width: 112px; }
  .clients-logos li:nth-child(3) img { width: 136px; }
  .clients-logos li:nth-child(4) img { width: 76px; }
  /* Odd one out sits centered on its own row */
  .clients-logos li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
