/* ==========================================================================
   Legacy Health LLC — Design System
   Signature motif: the "pulse line" — an EKG heartbeat that resolves into
   an ascending revenue line. Used in the hero, as section dividers, and
   as the loader — ties "health" and "financial health" into one mark.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  /* --- client palette (source of truth) --- */
  --green: #0f6b4f;
  --green-dark: #0a4d39;
  --green-tint: #e8f3ee;
  --ink: #0b1210;
  --paper: #ffffff;
  --hero-bg: #0e1512;

  /* --- derived neutrals --- */
  --ink-80: rgba(11, 18, 16, .80);
  --ink-60: rgba(11, 18, 16, .60);
  --ink-45: rgba(11, 18, 16, .45);
  --ink-25: rgba(11, 18, 16, .25);
  --ink-12: rgba(11, 18, 16, .12);
  --ink-08: rgba(11, 18, 16, .08);

  --on-dark: #f4f7f5;
  --on-dark-70: rgba(244, 247, 245, .70);
  --on-dark-45: rgba(244, 247, 245, .45);
  --on-dark-18: rgba(244, 247, 245, .14);
  --on-dark-08: rgba(244, 247, 245, .07);

  --paper-soft: #f6f9f7;
  --green-tint-70: rgba(232, 243, 238, .7);

  /* --- type --- */
  --font-display: 'Playfair Display', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* --- layout --- */
  --container: 1240px;
  --container-narrow: 820px;
  --edge: clamp(20px, 5vw, 64px);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --nav-h: 84px;

  /* --- motion --- */
  --ease: cubic-bezier(.16, .84, .44, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur-s: .35s;
  --dur-m: .6s;
  --dur-l: .9s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

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

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--green-tint);
  border-radius: 10px;
  border: 2px solid var(--paper-soft);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================= Layout ============================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.section {
  padding-block: clamp(64px, 9vw, 128px);
  position: relative;
}

.section-tight {
  padding-block: clamp(40px, 6vw, 80px);
}

.bg-tint {
  background: var(--green-tint);
}

.bg-soft {
  background: var(--paper-soft);
}

.bg-dark {
  background: var(--hero-bg);
  color: var(--on-dark);
}

.bg-green {
  background: var(--green);
  color: var(--on-dark);
}

.grid {
  display: grid;
  gap: 24px;
}

.g-2 {
  grid-template-columns: repeat(2, 1fr);
}

.g-3 {
  grid-template-columns: repeat(3, 1fr);
}

.g-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 980px) {
  .g-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .g-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .g-2,
  .g-3,
  .g-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================= Type ============================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 10px;
  height: 1px;
  background: #8fd6bb;
  display: inline-block;
}

.bg-dark .eyebrow {
  color: #8fd6bb;
}

.bg-dark .eyebrow::before {
  background: #8fd6bb;
}

.bg-green .eyebrow {
  color: var(--on-dark);
}

.bg-green .eyebrow::before {
  background: var(--on-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 600;
}

h2 {
  font-size: clamp(30px, 4.2vw, 52px);
}

h3 {
  font-size: clamp(21px, 2.4vw, 28px);
}

h4 {
  font-size: 18px;
}

em {
  font-style: italic;
  color: #8fd6bb;
}

.bg-dark em,
.bg-green em {
  color: #8fd6bb;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-70);
  max-width: 640px;
}

.bg-dark .lede {
  color: var(--on-dark-70);
}

.section-head {
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 760px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
}

/* ============================= Buttons ============================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}

.btn-primary {
  background: var(--green);
  color: var(--on-dark);

}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-dark);
  z-index: -1;
  transform: translateX(-101%);
  transition: transform var(--dur-m) var(--ease);
}

.btn-primary:hover::before {
  transform: translateY(0);

}

.btn-primary:hover {
  box-shadow: 0 14px 34px -12px rgba(15, 107, 79, .55);

}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-25);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.bg-dark .btn-ghost,
.bg-green .btn-ghost {
  color: var(--on-dark);
  border-color: var(--on-dark-18);
}

.bg-dark .btn-ghost:hover,
.bg-green .btn-ghost:hover {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.btn-lin {
  border: initial 1px #e8f3ee;
  background-color: #0e1512;
  box-sizing: border-box;
  border: 1px solid #0a4d39;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--ink-12);
  transition: border-color var(--dur-s) var(--ease), gap var(--dur-s) var(--ease);
}

.btn-line:hover {
  border-color: var(--green);
  gap: 15px;
}

.btn-line svg {
  transition: transform var(--dur-s) var(--ease);
}

.btn-line:hover svg {
  transform: translateX(3px);
}

.magnetic {
  will-change: transform;
}



/* arrow icon shared */
.icon-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================= Nav ============================= */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease), height var(--dur-m) var(--ease);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-nav.is-scrolled {
  background: rgba(248, 247, 247, 0.614);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--ink-08);
  height: 72px;
}

.site-nav.is-dark-context:not(.is-scrolled) {
  color: var(--on-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  position: relative;
  font-size: 15.5px;
  font-weight: 600;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: currentColor;
  transition: width var(--dur-s) var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-cta .btn {
  padding: 12px 24px;
  font-size: 15px;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: background var(--dur-s);
}

.nav-burger span::before,
.nav-burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-s) var(--ease), top var(--dur-s) var(--ease);
}

.nav-burger span::before {
  top: -7px;
}

.nav-burger span::after {
  top: 7px;
}

.nav-burger.is-open span {
  background: transparent;
}

.nav-burger.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-burger.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--hero-bg);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--edge);
  clip-path: circle(0px at calc(100% - 40px) 40px);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
}

.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 40px) 40px);
  pointer-events: auto;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu a {
  font-family: var(--font-body);
  font-size: clamp(25px, 6vw, 54px);
  font-weight: 500;
  padding: 10px 0;
  display: inline-block;
}

.mobile-menu .mm-foot {
  margin-top: 110px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--on-dark-45);
  font-size: 12px;
}

@media (max-width: 900px) {

  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .nav-burger {
    display: grid;
  }
}

/* ============================= Hero ============================= */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--on-dark);
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 90px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% 12%, rgba(15, 107, 79, .35), transparent 60%),
    radial-gradient(45% 45% at 8% 90%, rgba(15, 107, 79, .18), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-copy .eyebrow {
  color: #8fd6bb;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lede {
  margin-top: 22px;
  color: var(--on-dark-70);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-pulse {
  position: relative;
  width: 100%;
}

.hero-pulse svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.pulse-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pulse-line-ghost {
  fill: none;
  stroke: var(--on-dark-18);
  stroke-width: 1;
}

.pulse-dot {
  fill: #8fd6bb;
}

.hero-stats {
  position: relative;
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 64px;
  flex-wrap: wrap;
  border-top: 1px solid var(--on-dark-18);
  padding-top: 32px;
}

.hero-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  color: var(--on-dark);
}

.hero-stat span {
  font-size: 13px;
  color: var(--on-dark-45);
}

.page-hero {
  background: var(--hero-bg);
  color: var(--on-dark);
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 90% 0%, rgba(15, 107, 79, .35), transparent 60%);
}

.page-hero .container {
  position: relative;
}

.page-hero .crumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-45);
  margin-bottom: 22px;
  display: block;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lede {
  margin-top: 20px;
}

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

  .hero-pulse {
    order: -1;
    max-width: 420px;
  }
}

/* ============================= Marquee ============================= */
.marquee-wrap {
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
  padding-block: 26px;
  overflow: hidden;
  background: var(--paper-soft);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ink-45);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 64px;
}

.marquee-track span::after {
  content: '•';
  color: var(--green);
}

/* ============================= Cards ============================= */
.card {
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-m);
  padding: 34px;
  transition: transform var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px rgba(11, 18, 16, .22);
  border-color: transparent;
}

.card .card-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  margin-bottom: 20px;
  display: block;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-tint);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--green);
  transition: background var(--dur-m), color var(--dur-m);
}

.card:hover .card-icon {
  background: var(--green);
  color: var(--on-dark);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--ink-60);
  font-size: 15px;
}

.card-dark {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--on-dark-18);
}

.card-dark:hover {
  border-color: var(--green);
}

.card-dark p {
  color: var(--on-dark-70);
}

.value-list .card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px;
}

.value-list .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* service card w/ hover reveal */
.svc-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-m);
  border: 1px solid var(--ink-12);
  overflow: hidden;

}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateY(100%);
  transition: transform var(--dur-m) var(--ease);
  z-index: 0;
}

.svc-card:hover::before {
  transform: translateY(0);
}

.svc-card>* {
  position: relative;
  z-index: 1;
}

.svc-card:hover {
  border-color: transparent;
}

.svc-card:hover,
.svc-card:hover .card-icon,
.svc-card:hover p,
.svc-card:hover .btn-line {
  color: var(--on-dark);
}

.svc-card:hover .card-icon {
  background: rgba(255, 255, 255, .16);
}

.svc-card:hover .btn-line {
  border-color: var(--on-dark-18);
}

.svc-card .btn-line {
  margin-top: 18px;
}

/* ============================= Timeline / process ============================= */
.timeline {
  position: relative;
}

.timeline-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.timeline-track::-webkit-scrollbar {
  display: none;
}

.tl-step {
  flex: 0 0 auto;
  width: min(320px, 80vw);
  padding-right: 48px;
  scroll-snap-align: start;
  position: relative;
}

.tl-step::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 16px;
  width: calc(100% - 32px);
  height: 1px;
  background: var(--ink-12);
}

.tl-step:last-child::after {
  display: none;
}

.tl-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tl-num i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: block;
}

.tl-step h4 {
  margin-bottom: 10px;
}

.tl-step p {
  color: var(--ink-60);
  font-size: 14.5px;
}

.tl-progress {
  height: 2px;
  background: var(--ink-12);
  margin-top: 26px;
  border-radius: 2px;
  overflow: hidden;
}

.tl-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--green);
}

/* ============================= Stats ============================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-12);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.stat-cell {
  background: var(--paper);
  padding: 40px 28px;
}

.stat-cell b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px);
  color: var(--green);
  display: block;
}

.stat-cell span {
  font-size: 13.5px;
  color: var(--ink-45);
}

@media (max-width: 900px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================= Placeholders (image / video / slideshow) ============================= */
.ph {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--ink-12);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--ar, 4/3);
  color: var(--green-dark);
}

.ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 18, 16, .06));
}

.ph-tag {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px);
  padding: 16px 22px;
  border-radius: 10px;
  border: 1px dashed var(--green);
}

.ph-tag svg {
  width: 26px;
  height: 26px;
}

.ph-wide {
  --ar: 16/9;
}

.ph-square {
  --ar: 1/1;
}

.ph-tall {
  --ar: 3/4;
}

.ph-hero {
  --ar: 5/6;
}

/* video placeholder */
.ph-video {
  background: linear-gradient(160deg, var(--green-dark), var(--hero-bg));
  color: var(--on-dark);
  position: relative;
}

.ph-video::after {
  display: none;
}

.ph-video .ph-tag {
  background: transparent;
  border: none;
  backdrop-filter: none;
  color: var(--on-dark-70);
}

.play-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--on-dark);
  color: var(--hero-bg);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  transition: transform var(--dur-s) var(--ease);
  box-shadow: 0 0 0 0 rgba(244, 247, 245, .5);
  animation: pulseRing 2.6s ease-out infinite;
}

.play-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.ph-video:hover .play-btn {
  transform: scale(1.08);
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 247, 245, .35);
  }

  70% {
    box-shadow: 0 0 0 22px rgba(244, 247, 245, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(244, 247, 245, 0);
  }
}

.video-frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.video-frame .ph-video {
  border-radius: var(--radius-l);
  aspect-ratio: 16/8.5;
}

.video-meta {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--on-dark-70);
}

/* slideshow */
.slideshow {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.slideshow-track {
  display: flex;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16/8;
}

.slide .ph {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: none;
  aspect-ratio: auto;
}

.slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px clamp(20px, 4vw, 44px);
  background: linear-gradient(0deg, rgba(11, 18, 16, .55), transparent);
  color: #fff;
}

.slide-cap b {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  display: block;
}

.slide-cap span {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}

.slideshow-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background var(--dur-s), transform var(--dur-s);
}

.slideshow-nav:hover {
  background: var(--green);
  color: var(--on-dark);
}

.slideshow-nav.prev {
  left: 20px;
}

.slideshow-nav.next {
  right: 20px;
}

.slideshow-nav svg {
  width: 18px;
  height: 18px;
}

.slideshow-dots {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  right: clamp(20px, 4vw, 44px);
  display: flex;
  gap: 8px;
}

.slideshow-dots button {
  width: 22px;
  height: 3px;
  background: rgba(255, 255, 255, .4);
  border-radius: 2px;
  transition: background var(--dur-s), width var(--dur-s);
}

.slideshow-dots button.is-active {
  background: #fff;
  width: 34px;
}

@media (max-width: 640px) {
  .slideshow-nav {
    width: 38px;
    height: 38px;
  }
}

/* testimonial slider */
.t-slider {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.t-slide {
  display: none;
}

.t-slide.is-active {
  display: block;
}

.t-quote {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.4;
}

.bg-dark .t-quote {
  color: var(--on-dark);
}

.t-person {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* background: var(--green-tint); */
  border: solid 1px #8fd6bb;
  display: grid;
  place-items: center;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
}

.t-person b {
  display: block;
  font-size: 14.5px;
}

.t-person span {
  font-size: 13px;
  color: var(--ink-45);
}

.bg-dark .t-person span {
  color: var(--on-dark-45);
}

.t-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 34px;
}

.t-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-12);
  transition: background var(--dur-s), width var(--dur-s);
}

.bg-dark .t-dots button {
  background: var(--on-dark-18);
}

.t-dots button.is-active {
  background: var(--green);
  width: 22px;
  border-radius: 4px;
}

/* ============================= Forms ============================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-45);
  font-family: var(--font-mono);
}

.field input,
.field select,
.field textarea {
  background: var(--paper);
  border: 1.5px solid var(--ink-12);
  border-radius: var(--radius-s);
  padding: 15px 16px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--dur-s), box-shadow var(--dur-s);
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-tint);
  outline: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b3423a;
}

.field-err {
  font-size: 12.5px;
  color: #b3423a;
  display: none;
}

.field.has-error .field-err {
  display: block;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230b1210' stroke-opacity='.5' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 52px);
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 13px;
  color: var(--ink-45);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}

.form-success.is-visible {
  display: block;
}

.form-success .chk {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}

.form-success .chk svg {
  width: 28px;
  height: 28px;
}

.form-alert {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  background: #fbeceb;
  border: 1px solid #e3b3ae;
  color: #8a2e28;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-size: 13.5px;
  line-height: 1.5;
}

.form-alert.is-visible {
  display: flex;
}

.form-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* checkbox */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.check-row label {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-60);
  font-size: 13.5px;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================= CTA band ============================= */
.cta-band {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  padding: clamp(48px, 7vw, 90px);
  text-align: center;
}

.cta-band h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.cta-band .lede {
  margin-inline: auto;
  margin-top: 16px;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-top: 34px;
}

/* ============================= Divider ============================= */
.pulse-divider {
  width: 100%;
  height: 56px;
  opacity: .5;
}

.pulse-divider path {
  stroke: var(--ink-12);
}

.bg-dark .pulse-divider path,
.bg-green .pulse-divider path {
  stroke: var(--on-dark-18);
}

/* ============================= Footer ============================= */
.site-footer {
  background: var(--hero-bg);
  color: var(--on-dark);
  padding-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--on-dark-18);
}

.footer-brand .brand {
  color: var(--on-dark);
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--on-dark-45);
  font-size: 14.5px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--on-dark-45);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--on-dark-70);
  transition: color var(--dur-s);
}

.footer-col a:hover {
  color: #8fd6bb;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 26px;
  font-size: 13px;
  color: var(--on-dark-45);
  flex-wrap: wrap;
  gap: 14px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--on-dark-18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color var(--dur-s), background var(--dur-s);
}

.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

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


}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ============================= Misc utility ============================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.mt-0 {
  margin-top: 0 !important;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  padding: 8px 14px;
  border-radius: 999px;
}

/* progress bar (scroll) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--green);
  z-index: 300;
  width: 0%;
}

/* page transition overlay — visible by default so there is no flash of
   unstyled/un-animated content before JS takes over; JS slides it away
   once the page is ready, and slides it back in before navigating. */
/* .page-transition {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--hero-bg);
  transform: translateY(0%);
  pointer-events: none;
  will-change: transform;
} */

html.no-js .page-transition {
  display: none;
}

/* never trap no-JS visitors behind it */

/* Entrance-animated hero text: hidden via CSS from first paint (not via a
   delayed JS "from" tween), so there's no flash-then-snap while GSAP is
   still downloading from the CDN. html.no-js is removed by a synchronous
   inline script in <head> before first paint; if that script never runs
   (JS fully blocked) content stays visible via the .no-js override below. */
.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .lede,
.hero-actions>*,
.hero-stats,
.page-hero .crumb,
.page-hero h1,
.page-hero .lede {
  opacity: 1;
}

html.no-js .hero-copy .eyebrow,
html.no-js .hero-copy h1,
html.no-js .hero-copy .lede,
html.no-js .hero-actions>*,
html.no-js .hero-stats,
html.no-js .page-hero .crumb,
html.no-js .page-hero h1,
html.no-js .page-hero .lede {
  opacity: 1;
}

/* cursor-follow accent (desktop only, subtle) */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

/* two-col content w/ media */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  /* align-items: center; */
}

.split.rev {
  direction: rtl;
}

.split.rev>* {
  direction: ltr;
}

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

  .split.rev {
    direction: ltr;
  }
}

.list-check {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-70);
}

.list-check svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

.bg-dark .list-check li {
  color: var(--on-dark-70);
}

/* accordion (services) */
.accordion-item {
  border-bottom: 1px solid var(--ink-12);
}

.accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  cursor: pointer;
}

.accordion-head h3 {
  font-size: clamp(19px, 2vw, 24px);
}

.accordion-head .idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  margin-right: 18px;
}

.accordion-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ink-12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--dur-s) var(--ease), background var(--dur-s);
}

.accordion-plus i {
  position: absolute;
  background: var(--ink);
}

.accordion-plus i:nth-child(1) {
  width: 12px;
  height: 1.4px;
}

.accordion-plus i:nth-child(2) {
  width: 1.4px;
  height: 12px;
  transition: transform var(--dur-s) var(--ease);
}

.accordion-item.is-open .accordion-plus {
  background: var(--green);
  transform: rotate(180deg);
}

.accordion-item.is-open .accordion-plus i {
  background: var(--on-dark);
}

.accordion-item.is-open .accordion-plus i:nth-child(2) {
  transform: scaleY(0);
}

.accordion-body {
  height: 0;
  overflow: hidden;
}

.accordion-body-in {
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.accordion-body-in p {
  color: var(--ink-60);
  font-size: 15px;
}

@media (max-width: 720px) {
  .accordion-body-in {
    grid-template-columns: 1fr;
  }
}