/* Donovan, Sullivan & Ryan — lead-magnet landing page
   World: Consultare's austere, cinematic structure in DSR's own teal. */

@font-face {
  font-family: "Tenor Sans";
  src: url("fonts/tenor-sans-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #f2f4f3;
  --mist: #e7ebea;
  --surface: #ffffff;
  --ink: #1c2324;
  --ink-2: #394244;
  --muted: #566062;
  --line: rgba(28, 35, 36, 0.12);
  --line-strong: rgba(28, 35, 36, 0.24);

  --teal: #009dae;
  --teal-text: #00707c;
  --teal-deep: #00595e;
  --teal-deep-hover: #00494d;
  --teal-wash: #e3f1f2;

  --night: #0e1617;
  --night-2: #152123;
  --on-dark: #f2f4f3;
  --on-dark-2: #aebbbc;
  --line-dark: rgba(242, 244, 243, 0.14);

  --display: "Tenor Sans", "Gill Sans", "Trebuchet MS", sans-serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(20px, 3.4vw, 48px);
  --maxw: 1360px;
  --section: clamp(88px, 10.5vw, 156px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.44, 0, 0.56, 1);

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

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #9aa6a7 var(--ground);
}
html.has-smoothscroll { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Lenis required rules */
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; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--teal); color: #fff; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul, fieldset { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
button, input, textarea, select { font: inherit; color: inherit; }

section[id] { scroll-margin-top: var(--header-h); }
#main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--teal-text); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible,
.band :focus-visible,
.agencies :focus-visible,
.contact-copy :focus-visible,
.site-footer :focus-visible,
.site-header:not(.is-scrolled) :focus-visible { outline-color: #7fd6df; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

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

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

/* ---------- type ---------- */
.h2 {
  font-family: var(--display);
  font-size: clamp(33px, 3.7vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  max-width: 19ch;
}
.h3 {
  font-family: var(--display);
  font-size: clamp(21px, 1.6vw, 24px);
  line-height: 1.22;
  letter-spacing: -0.005em;
}
.lede { margin-top: 20px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); max-width: 56ch; }

.eyebrow {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 20px;
  font-size: 12.5px; line-height: 1.4; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-text);
}
.eyebrow::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.42em;
  background: var(--teal);
}
.eyebrow-light { color: #d7eef0; }
.eyebrow-light::before { background: var(--teal); }

.split-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.split-note { max-width: 40ch; color: var(--muted); font-size: 16.5px; line-height: 1.6; }

.center-head { text-align: center; margin: 0 auto clamp(48px, 5.5vw, 80px); max-width: 780px; }
.center-head .eyebrow { justify-content: center; }
.center-head .h2 { margin: 0 auto; }
.center-head .lede { margin-left: auto; margin-right: auto; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; font-size: 15.5px; color: var(--teal-deep); text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.text-link:hover { text-decoration: underline; }
.text-link:hover .icon { transform: translateX(3px); }
.inline-link { color: var(--teal-deep); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--r-btn); border: 1px solid transparent;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.003em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out),
    border-color 200ms var(--ease-out), box-shadow 240ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--teal-deep); color: #fff; }
.btn-primary:hover { background: var(--teal-deep-hover); box-shadow: 0 12px 26px -14px rgba(0, 73, 77, 0.8); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--teal-wash); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.55); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon { transform: translateX(3px); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 320ms var(--ease-out), color 320ms var(--ease-out), border-color 320ms var(--ease-out);
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(242, 244, 243, 0.9);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.nav-bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; color: inherit; }
.brand-mark { position: relative; width: 48px; height: 31px; flex: none; }
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 320ms var(--ease-out); }
.mark-dark { opacity: 0; }
.is-scrolled .mark-light, .menu-open .mark-light { opacity: 0; }
.is-scrolled .mark-dark, .menu-open .mark-dark { opacity: 1; }
.brand-word {
  padding-left: 14px; border-left: 1px solid currentColor;
  border-left-color: color-mix(in srgb, currentColor 35%, transparent);
  font-family: var(--display); font-size: 13.5px; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap; line-height: 1.2;
}
.brand-dot { color: var(--teal); padding: 0 0.1em; }

.nav { margin-left: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: inherit; border-radius: var(--r-badge);
  opacity: 0.88; transition: opacity 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.nav-links a:not(.btn):hover { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.nav-cta-mobile, .nav-phone-mobile { display: none; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-phone { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.header-phone:hover { text-decoration: underline; }
.btn-header { background: #fff; color: var(--ink); }
.btn-header:hover { background: var(--teal-wash); }
.is-scrolled .btn-header { background: var(--teal-deep); color: #fff; }
.is-scrolled .btn-header:hover { background: var(--teal-deep-hover); }

.nav-toggle {
  display: none; width: 48px; height: 48px; margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--r-btn); background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.is-scrolled .nav-toggle, .menu-open .nav-toggle { border-color: transparent; background: var(--ink); }
.nav-toggle-bar { display: block; width: 18px; height: 1.6px; background: #fff; transition: transform 240ms var(--ease-out); }
.menu-open .nav-toggle-bar:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-open .nav-toggle-bar:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
  background: #1c2628;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 66% 40%; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(8, 15, 16, 0.9) 0%, rgba(8, 15, 16, 0.66) 28%, rgba(8, 15, 16, 0.22) 55%, rgba(8, 15, 16, 0.05) 72%),
    linear-gradient(to right, rgba(8, 15, 16, 0.58) 0%, rgba(8, 15, 16, 0.18) 45%, rgba(8, 15, 16, 0) 62%),
    linear-gradient(to bottom, rgba(8, 15, 16, 0.4) 0%, rgba(8, 15, 16, 0) 18%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: clamp(44px, 8vh, 96px);
}
.hero-eyebrow { margin-bottom: 22px; }
.hero-title {
  font-family: var(--display);
  font-size: clamp(42px, 5.3vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.hero-line { display: block; }
.hero-line > span { display: block; white-space: nowrap; }
.hero-lede {
  margin-top: 24px; max-width: 50ch;
  font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.55; color: rgba(255, 255, 255, 0.9);
}
.hero-actions { margin-top: 34px; }

/* Entrance, measured from the reference: every word rises 10px from opacity 0 on a
   critically damped spring (stiffness 340, damping 58), staggered. Words stay visible
   without JS: the failsafe below fires at 2.5s. */
.split-w { display: inline-block; }
.js-motion .hero-media img { animation: heroBg 1.8s var(--ease-out) both; }
.js-motion .hero-eyebrow { animation: fadeIn 0.8s var(--ease-soft) 0.2s both; }
.js-motion .hero-actions { animation: fadeUp 0.8s var(--ease-out) 1.15s both; }
.js-motion .site-header { animation: fadeIn 0.9s var(--ease-soft) 0.1s both; }
.js-motion [data-split]:not(.is-split) { opacity: 0; animation: fadeIn 0.01s linear 2.5s forwards; }
.js-motion .is-split .split-w {
  opacity: 0; transform: translateY(10px);
  animation: wordIn 0.75s var(--ease-out) forwards; animation-delay: var(--wd, 0ms);
}
@keyframes heroBg { from { opacity: 0.001; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wordIn { to { opacity: 1; transform: none; } }

/* ---------- credentials strip ---------- */
.creds { background: var(--surface); border-bottom: 1px solid var(--line); }
.creds-inner { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; padding-bottom: 28px; }
.creds-label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.creds-list {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px;
  list-style: none; margin: 0; padding: 0;
}
.creds-list li { font-family: var(--display); font-size: 16px; letter-spacing: 0.01em; color: var(--ink-2); white-space: nowrap; }

/* ---------- statement ---------- */
.statement { padding: clamp(96px, 11vw, 168px) 0 clamp(40px, 5vw, 72px); }
.statement-text {
  font-family: var(--display);
  font-size: clamp(27px, 3.15vw, 48px); line-height: 1.24; letter-spacing: -0.01em;
  max-width: 38ch; color: var(--ink);
}
/* scroll-driven fill: JS sets each word's colour mix as the paragraph rises */
.scrub-w { transition: color 120ms linear; }

/* ---------- two practices ---------- */
.paths { padding-top: clamp(56px, 6vw, 96px); }
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.path-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
}
.path-media { overflow: hidden; }
.path-media img {
  width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .path-card:hover .path-media img { transform: scale(1.03); }
}
.path-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 34px 30px; flex: 1; }
.path-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-text); }
.path-body > p:not(.path-label) { color: var(--muted); max-width: 52ch; }
.path-body .text-link { margin-top: auto; padding-top: 8px; }

/* ---------- where it slips (accordion + photo) ---------- */
.slips { padding-top: clamp(40px, 5vw, 72px); }
.slips-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.slips-copy .h2 { margin-bottom: clamp(32px, 3.5vw, 48px); }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-heading { font-size: inherit; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; padding: 18px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--display); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; color: var(--ink-2);
  transition: color 200ms var(--ease-out);
}
.acc-trigger:hover, .is-open .acc-trigger { color: var(--ink); }
.acc-icon {
  width: 34px; height: 34px; padding: 8px; border-radius: var(--r-badge);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform 260ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.is-open .acc-icon { transform: rotate(45deg); background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 320ms var(--ease-out), visibility 0s linear 320ms;
}
.is-open .acc-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 320ms var(--ease-out), visibility 0s; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-inner > p { color: var(--muted); max-width: 54ch; padding-bottom: 18px; }
.acc-inner > p:last-child { padding-bottom: 26px; }
.checks { display: grid; gap: 10px; padding-bottom: 28px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.checks .icon {
  width: 22px; height: 22px; padding: 4px; margin-top: 0; border-radius: var(--r-badge);
  background: var(--teal-wash); color: var(--teal-deep); stroke-width: 2;
}

.slips-media { position: relative; padding-bottom: 0; }
.slips-media img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-card); }
.float-card {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px; background: var(--surface); border-radius: var(--r-card);
  box-shadow: 0 18px 40px -24px rgba(8, 15, 16, 0.55);
  font-size: 15.5px; line-height: 1.5; color: var(--muted);
}
.float-card strong { display: block; margin-bottom: 4px; font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--ink); }
.float-icon { flex: none; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: var(--r-badge); background: var(--teal-deep); color: #fff; }

/* ---------- services ---------- */
.services { background: var(--mist); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px 30px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { box-shadow: 0 22px 44px -30px rgba(8, 15, 16, 0.45); transform: translateY(-2px); }
}
.service-icon {
  display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center;
  margin-bottom: 26px; border-radius: var(--r-badge); background: var(--teal-wash); color: var(--teal-deep);
}
.service-icon .icon { width: 22px; height: 22px; }
.service-card > p { color: var(--muted); font-size: 16px; line-height: 1.58; }
.service-includes {
  margin-top: auto; padding: 18px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
}
.service-includes li {
  font-size: 13.5px; line-height: 1.3; padding: 7px 10px; border-radius: var(--r-badge);
  background: var(--ground); color: var(--ink-2); white-space: nowrap;
}

/* ---------- industries ---------- */
.industries-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.industries-copy > p:not(.eyebrow) { margin: 24px 0 32px; color: var(--muted); max-width: 44ch; }
.industry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.industry {
  padding: 24px 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.industry h3 { font-family: var(--display); font-size: 19px; line-height: 1.3; }
.industry p { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- stats band ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(560px, 78vh, 760px); display: flex;
  background: var(--night);
}
.band-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; z-index: -2; }
.band-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(8, 15, 16, 0.72) 0%, rgba(8, 15, 16, 0.2) 34%, rgba(8, 15, 16, 0.25) 55%, rgba(8, 15, 16, 0.9) 100%);
}
.band-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(48px, 6vw, 80px); }
.band-title { font-family: var(--display); font-size: clamp(32px, 4vw, 60px); line-height: 1.08; letter-spacing: -0.012em; max-width: 16ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
.stat { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dt { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #cfe8eb; }
.stat dd { margin: 0; }
.stat-num { display: block; margin: 10px 0 8px; font-family: var(--display); font-size: clamp(46px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.01em; }
.stat-note { display: block; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }

/* ---------- agencies (dark) ---------- */
.agencies { background: var(--night); color: var(--on-dark); }
.agencies .lede { color: var(--on-dark-2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; list-style: none; padding: 0; }
.chips li {
  font-size: 13.5px; line-height: 1.3; padding: 8px 12px; border-radius: var(--r-badge);
  border: 1px solid var(--line-dark); color: var(--on-dark);
}
.chips li { border-color: rgba(0, 157, 174, 0.55); }
.chips-note { margin-top: 16px; font-size: 14.5px; color: var(--on-dark-2); }

.tablist {
  display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%;
  margin: 0 auto clamp(36px, 4vw, 56px); padding: 6px;
  border: 1px solid var(--line-dark); border-radius: var(--r-panel);
}
.tab {
  min-height: 46px; padding: 0 20px; border: 0; border-radius: var(--r-btn);
  background: transparent; color: var(--on-dark-2); cursor: pointer; white-space: nowrap;
  font-size: 15px; font-weight: 600;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out);
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: var(--on-dark); color: var(--ink); }

.tab-stage { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.tab-panel:focus-visible { outline-offset: 8px; }
.js-motion .tab-panel.is-entering { animation: fadeUp 0.5s var(--ease-out) both; }
.steps, .tab-list { display: grid; gap: 0; }
.steps li, .tab-list li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px;
  padding: 20px 0; border-top: 1px solid var(--line-dark);
}
.steps li:last-child, .tab-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.step-n { font-family: var(--display); font-size: 15px; color: var(--teal); padding-top: 3px; }
.tab-list .icon { width: 26px; height: 26px; padding: 5px; border-radius: var(--r-badge); background: rgba(0, 157, 174, 0.16); color: #7fd6df; stroke-width: 2; }
.steps h3, .tab-list h3 { font-family: var(--display); font-size: 20px; line-height: 1.3; color: #fff; }
.steps p, .tab-list p { margin-top: 4px; font-size: 15.5px; line-height: 1.55; color: var(--on-dark-2); max-width: 52ch; }

.tab-media { position: relative; position: sticky; top: calc(var(--header-h) + 24px); }
.tab-media img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--r-card); }
.tab-media-cta { position: absolute; left: 20px; bottom: 20px; }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.quote-card {
  display: flex; flex-direction: column; gap: 28px;
  padding: clamp(30px, 3.2vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.quote-mark { width: 40px; height: 30px; fill: var(--teal); }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { font-family: var(--display); font-size: clamp(19px, 1.55vw, 23px); line-height: 1.5; color: var(--ink); }
.quote-card figcaption { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.quote-name { font-weight: 600; font-size: 16px; }
.quote-role { font-size: 14.5px; color: var(--muted); }

/* ---------- team ---------- */
.team { background: var(--surface); }
.team-list { border-top: 1px solid var(--line); }
.person {
  display: grid; grid-template-columns: 56px minmax(0, 0.95fr) minmax(0, 1.45fr) minmax(0, 0.9fr);
  gap: 18px 32px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line);
}
.person-initials {
  display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center;
  border-radius: var(--r-badge); background: var(--teal-deep); color: #fff;
  font-family: var(--display); font-size: 17px; letter-spacing: 0.08em;
}
.person-name h3 { font-family: var(--display); font-size: 22px; line-height: 1.25; }
.person-name p { margin-top: 4px; font-size: 14.5px; color: var(--teal-text); font-weight: 600; }
.person-bio { color: var(--muted); font-size: 16px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; justify-content: flex-end; }
.tags li { font-size: 13.5px; line-height: 1.3; padding: 7px 10px; border-radius: var(--r-badge); background: var(--ground); color: var(--ink-2); white-space: nowrap; }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.process-media img { width: 100%; aspect-ratio: 5 / 6; height: auto; object-fit: cover; object-position: 38% 50%; border-radius: var(--r-card); }
.process-steps { margin: 34px 0 36px; border-top: 1px solid var(--line); }
.process-steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.process-steps .step-n { color: var(--teal-text); }
.process-steps h3 { font-family: var(--display); font-size: 20px; line-height: 1.3; }
.process-steps p { margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { background: var(--mist); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head > p:not(.eyebrow) { margin: 22px 0 30px; color: var(--muted); max-width: 38ch; }
.faq-list .acc-trigger { font-size: clamp(18px, 1.4vw, 21px); }
.faq-list .acc-icon { background: var(--surface); }

/* ---------- contact ---------- */
.contact { padding-top: clamp(64px, 7vw, 112px); }
.contact-panel {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 88px);
  padding: clamp(28px, 5vw, 80px); border-radius: var(--r-panel);
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(0, 157, 174, 0.22) 0%, rgba(0, 157, 174, 0) 55%),
    var(--night);
  color: var(--on-dark);
}
.contact-copy .h2 { color: #fff; }
.contact-copy > p:not(.eyebrow) { margin-top: 22px; color: var(--on-dark-2); max-width: 44ch; }
.contact-list { display: grid; gap: 16px; margin-top: 36px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.5; color: var(--on-dark-2); }
.contact-list .icon { color: var(--teal); margin-top: 2px; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; min-height: 24px; }
.contact-list a:hover { text-decoration: underline; }
.contact-list strong { color: #fff; font-weight: 600; margin-right: 6px; }

.lead-form {
  background: var(--surface); color: var(--ink); border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start;
}
.form-title { font-family: var(--display); font-size: 24px; line-height: 1.2; }
.form-note { margin-top: -8px; font-size: 14.5px; color: var(--muted); }
.req-text { font-weight: 400; color: var(--muted); font-size: 0.92em; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; }
.field label, .field legend { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid #7f8a8c; border-radius: var(--r-badge); background: #fff; color: var(--ink);
  font-size: 16px; line-height: 1.4;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(0, 120, 134, 0.35);
}
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { font-size: 14px; color: #b3261e; font-weight: 600; }
.checks-field legend { margin-bottom: 10px; }
.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; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--teal-deep); cursor: pointer; }
.btn-submit { justify-self: start; margin-top: 4px; }
.form-status { font-size: 15.5px; font-weight: 600; color: var(--teal-deep); }
.form-status:empty { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-2); padding: clamp(64px, 7vw, 104px) 0 32px; margin-top: clamp(64px, 7vw, 112px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { width: 220px; height: auto; }
.footer-brand p { margin-top: 24px; max-width: 36ch; font-size: 15.5px; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-h { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-cols ul { display: grid; gap: 4px; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-size: 15.5px; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-offices li { font-size: 15px; line-height: 1.55; margin-bottom: 12px; }
.footer-bottom { padding-top: 28px; display: grid; gap: 12px; font-size: 14px; line-height: 1.6; }
.footer-line a, .footer-meta a { color: #fff; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- scroll reveal (content visible by default) ---------- */
.pre-reveal { opacity: 0; transform: translateY(10px); }
.pre-reveal.reveal-fade { transform: none; }
.pre-reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .header-phone { display: none; }
  .creds-list { justify-content: flex-start; gap: 10px 28px; }
  .person { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); }
  .person .tags { grid-column: 2 / -1; justify-content: flex-start; }
}

@media (max-width: 1080px) {
  .nav-links a:not(.btn) { padding: 0 9px; font-size: 14.5px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 0; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .tab-stage { grid-template-columns: 1fr; }
  .tab-media { position: relative; top: auto; max-width: 560px; }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nav, .header-actions { display: none; }
  .nav-bar { gap: 0; }
  .nav-toggle { display: inline-flex; }
  .site-header .nav { display: block; margin: 0; }
  .nav-links {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px;
    background: var(--ground); color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(8, 15, 16, 0.5);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { min-height: 52px; padding: 0 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links a:not(.btn):hover { background: transparent; color: var(--teal-deep); }
  .nav-cta-mobile, .nav-phone-mobile { display: block; }
  .nav-cta-mobile { margin-top: 16px; }
  .nav-cta-mobile .btn { width: 100%; }
  .nav-links .nav-phone-mobile a { border-bottom: 0; justify-content: center; color: var(--teal-deep); font-weight: 600; }

  .split-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .path-grid { grid-template-columns: 1fr; max-width: 640px; }
  .slips-grid, .process-grid, .faq-grid { grid-template-columns: 1fr; }
  .slips-media { max-width: 560px; }
  .faq-head { position: static; }
  .process-media { max-width: 640px; }
  .process-media img { aspect-ratio: 4 / 3; }
  .quote-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .brand-word { font-size: 11.5px; letter-spacing: 0.12em; padding-left: 12px; }
  .brand { gap: 12px; }
  .brand-mark { width: 42px; height: 27px; }

  .hero-media img { object-position: 50% 0%; }
  .hero-shade {
    background:
      linear-gradient(to top, rgba(8, 15, 16, 0.94) 0%, rgba(8, 15, 16, 0.78) 34%, rgba(8, 15, 16, 0.25) 58%, rgba(8, 15, 16, 0) 72%),
      linear-gradient(to bottom, rgba(8, 15, 16, 0.45) 0%, rgba(8, 15, 16, 0) 16%);
  }
  .hero-title { font-size: min(8.9vw, 40px); }
  .hero-line > span { white-space: normal; }
  .hero-lede { font-size: 16.5px; margin-top: 18px; }
  .hero-actions { margin-top: 26px; }
  .hero-eyebrow { font-size: 11.5px; letter-spacing: 0.12em; white-space: nowrap; margin-bottom: 16px; }

  .btn, .btn-row .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .tab-media-cta { width: auto; }
  .btn-submit { justify-self: stretch; }

  .eyebrow { white-space: nowrap; font-size: 12px; letter-spacing: 0.12em; }
  .creds-list { gap: 10px 22px; }
  .creds-list li { font-size: 15px; }

  .path-grid, .service-grid, .industry-list { grid-template-columns: 1fr; }
  .path-body { padding: 26px 22px 22px; }
  .service-card { padding: 26px 22px 24px; }
  .industry { min-height: 0; }

  .band { min-height: 0; }
  .band-inner { gap: 48px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .stat { padding: 0 0 0 18px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat-note { font-size: 14px; }
  .stat dt { font-size: 11px; letter-spacing: 0.1em; }
  .form-title { font-size: clamp(17px, 5.2vw, 22px); }

  .tablist { display: grid; grid-template-columns: 1fr; width: 100%; }
  .tab { width: 100%; }
  .steps li, .tab-list li { grid-template-columns: 40px minmax(0, 1fr); }

  .person { grid-template-columns: 48px minmax(0, 1fr); gap: 14px 18px; padding: 26px 0; }
  .person-initials { width: 48px; height: 48px; font-size: 15px; }
  .person-bio, .person .tags { grid-column: 1 / -1; }

  .field-row, .check-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 28px 20px; }
  .lead-form { padding: 24px 18px; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .brand-word { font-size: 10.5px; letter-spacing: 0.09em; padding-left: 10px; }
  .brand { gap: 10px; margin-right: 12px; }
}

@media (max-width: 350px) {
  .brand-word { display: none; }
  .hero-eyebrow { font-size: 10.5px; letter-spacing: 0.1em; }
  .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
}

/* short desktop viewports: keep the hero inside 100vh */
@media (max-height: 820px) and (min-width: 761px) {
  .hero-title { font-size: clamp(40px, min(5.1vw, 9.4vh), 78px); }
  .hero-inner { padding-bottom: clamp(36px, 6vh, 64px); }
  .hero-lede { margin-top: 18px; }
  .hero-actions { margin-top: 26px; }
}
@media (max-height: 700px) and (max-width: 760px) {
  .hero-lede { font-size: 15.5px; }
  .hero-actions { margin-top: 20px; gap: 10px; }
  .hero-actions .btn { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .pre-reveal { opacity: 1; transform: none; }
}
