/* ============================================================
   Bexon Corporate — design tokens (straight from the spec)
   ============================================================ */
:root {
  /* Colors */
  --light-grey-surface: #ecf0f0;
  --teal-background-tint: #d8e5e5;
  --white-surface: #ffffff;
  --body-text: #364e52;
  --deep-dark: #0c1e21;
  --dim-text: #67787a;
  --muted-text: #a9b8b8;
  --border-subtle: #c9d1d1;
  --teal-primary: #1e8a8a;
  --teal-strong: #176e6e; /* hover darken, derived only for interaction */

  /* Radii */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-card: 16px;
  --r-xl: 30px;
  --r-pill: 50px;

  /* Spacing (5px base grid) */
  --s-xs: 4px;
  --s-sm: 10px;
  --s-md-1: 12px;
  --s-md-2: 15px;
  --s-md-3: 16px;
  --s-md: 20px;
  --s-lg-1: 25px;
  --s-lg: 30px;
  --s-xl-1: 40px;
  --s-xl-2: 50px;
  --s-xl: 55px;

  /* Type stack — Mona Sans first, graceful fallbacks */
  --font: "Mona Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ============================================================
   Reset / base
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--body-text);
  background: var(--light-grey-surface); /* primary visual anchor */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 55px);
}

/* ============================================================
   Typography roles (spec scale, fluid)
   ============================================================ */
.display {
  font-weight: 600;
  font-size: clamp(2.75rem, 8.5vw, 100px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--deep-dark);
}
.display__accent { color: var(--teal-primary); }

.section-heading {
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--deep-dark);
  max-width: 16ch;
}

.hero-heading {
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--deep-dark);
  max-width: 18ch;
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--teal-primary);
}
.overline__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-primary);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --pad-y: 12px;
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out),
              background-color 0.25s var(--ease-out),
              color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out);
}
.btn--lg { --pad-y: 16px; --pad-x: 30px; }

.btn--primary {
  background: var(--teal-primary);
  color: var(--white-surface);
}
.btn--primary:hover { background: var(--teal-strong); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--deep-dark);
  border-color: var(--border-subtle);
}
.btn--ghost:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  transform: translateY(-2px);
}
.btn__arrow { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.btn--ghost:hover .btn__arrow { transform: translateX(4px); }

.link-quiet { font-size: 16px; font-weight: 600; color: var(--body-text); transition: color 0.2s; }
.link-quiet:hover { color: var(--teal-primary); }

/* ============================================================
   Nav — frosted (backdrop-filter is the only sanctioned depth)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--light-grey-surface) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.nav.is-stuck {
  border-bottom-color: var(--border-subtle);
  background: color-mix(in srgb, var(--white-surface) 78%, transparent);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.66px;
  color: var(--deep-dark);
}
.nav__mark {
  width: 22px; height: 22px;
  border-radius: var(--r-sm);
  background: var(--teal-primary);
  box-shadow: inset 0 0 0 4px var(--white-surface);
}
/* Real KFT logo mark in the brand lockup */
.nav__logo { height: 34px; width: auto; display: block; }
.drawer__brand .nav__logo, .foot__brand .nav__logo { height: 30px; }
/* Keep the logo legible on the dark hero nav */
.nav--on-dark .nav__logo { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
.nav__links { display: flex; gap: var(--s-lg); }
.nav__links a {
  font-size: 16px; font-weight: 500; color: var(--body-text);
  position: relative; transition: color 0.2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--teal-primary);
  transition: width 0.25s var(--ease-out);
}
.nav__links a:hover { color: var(--deep-dark); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: var(--s-md-2); }

/* ---- Floating pill nav ---- */
.nav--float {
  position: fixed;
  top: clamp(8px, 1.6vw, 16px);
  inset-inline: 0;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
}
.nav--float .nav__inner {
  height: 66px;
  padding-inline: clamp(16px, 2.4vw, 26px);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--deep-dark) 52%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
/* On dark hero */
.nav--on-dark .nav__brand,
.nav--on-dark .nav__links a,
.nav--on-dark .nav__drop-trigger { color: #fff; }
.nav--on-dark .nav__burger span { background: #fff; }
/* After scrolling past hero → light pill (near-opaque so scrolled content doesn't ghost through) */
.nav--solid .nav__inner { background: color-mix(in srgb, var(--white-surface) 97%, transparent); border-color: var(--border-subtle); box-shadow: 0 6px 24px -12px rgba(12, 30, 33, 0.28); }
.nav--solid .nav__brand { color: var(--deep-dark); }
.nav--solid .nav__links a,
.nav--solid .nav__drop-trigger { color: var(--body-text); }
.nav--solid .nav__burger span { background: var(--deep-dark); }

/* Dropdown */
.nav__drop-wrap { position: relative; }
.nav__drop-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--body-text);
}
.nav__caret { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.nav__drop-wrap:hover .nav__caret,
.nav__drop-wrap.is-open .nav__caret { transform: rotate(180deg); }
.nav__drop {
  position: absolute; top: calc(100% + 18px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px; padding: 8px;
  background: var(--white-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  box-shadow: 0 20px 44px rgba(12, 30, 33, 0.14);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  z-index: 5;
}
.nav__drop-wrap:hover .nav__drop,
.nav__drop-wrap:focus-within .nav__drop,
.nav__drop-wrap.is-open .nav__drop { opacity: 1; visibility: visible; transform: translateX(-50%); }
/* Invisible bridge over the gap so hover doesn't drop when moving to the menu */
.nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.nav__drop a { padding: 10px 14px; border-radius: var(--r-md); font-size: 15px; font-weight: 500; }
.nav__drop a::after { content: none; }
.nav__drop a:hover { background: var(--teal-background-tint); }
.nav--on-dark .nav__drop a,
.nav--solid .nav__drop a { color: var(--body-text); }
.nav--on-dark .nav__drop a:hover,
.nav--solid .nav__drop a:hover { color: var(--teal-primary); }

/* Let's-talk pill arrow */
.nav__cta { padding: 10px 10px 10px 20px; }
.nav__cta-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.nav__cta-arrow svg { width: 15px; height: 15px; }

/* Burger */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
}
.nav__burger span { width: 24px; height: 2px; border-radius: 2px; background: var(--deep-dark); transition: transform 0.25s var(--ease-out), opacity 0.2s; }

/* ---- Off-canvas drawer ---- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(12, 30, 33, 0.5); opacity: 0; transition: opacity 0.3s var(--ease-out); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(86vw, 360px);
  background: var(--white-surface);
  padding: clamp(24px, 5vw, 40px);
  display: flex; flex-direction: column; gap: var(--s-md);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close {
  align-self: flex-end; width: 44px; height: 44px;
  border: 1px solid var(--border-subtle); border-radius: 50%;
  background: none; color: var(--deep-dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.drawer__close svg { width: 20px; height: 20px; }
.drawer__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; color: var(--deep-dark); }
.drawer__links { display: flex; flex-direction: column; margin-top: var(--s-sm); }
.drawer__links a { font-size: 20px; font-weight: 600; color: var(--deep-dark); padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.drawer__links a:hover { color: var(--teal-primary); }
.drawer .btn { margin-top: auto; justify-content: center; }

/* ============================================================
   Media hero (slider)
   ============================================================ */
.hero--media { position: relative; min-height: 92vh; padding: 0; display: flex; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start;
  opacity: 0; visibility: hidden;
  transition: opacity 0.8s var(--ease-out);
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--img); background-size: cover; background-position: center;
}
/* Slide 1 photo (landscape) fills the banner; nudge the focus slightly up so
   the subject's face isn't cut off by the bottom edge. */
.hero-slide:first-child::before {
  background-position: center 30%;
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(12,30,33,0.94) 0%, rgba(12,30,33,0.72) 36%, rgba(12,30,33,0.28) 68%, rgba(12,30,33,0.5) 100%);
}
.hero-slide__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(140px, 19vh, 200px) clamp(72px, 9vh, 110px); }
.overline--light { color: #fff; }
.hero__lead.hero__lead--light { color: rgba(255, 255, 255, 0.96); }
.display--light { color: #fff; max-width: 18ch; }
.display--light .display__accent { color: #5fd6d6; }
.hero-slide__inner .display { margin-block: var(--s-md) var(--s-lg); }
.hero-slide__inner .hero__lead { max-width: 46ch; }
.hero-slide__inner .btn { margin-top: var(--s-xl-1); }
/* Hero CTA row: primary + light-outline secondary */
.hero__cta-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md-1); margin-top: var(--s-xl-1); }
.hero__cta-group .btn { margin-top: 0; }
.btn--outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.btn--outline-light:hover { background: #fff; color: var(--deep-dark); border-color: #fff; transform: translateY(-2px); }
.btn--outline-light:hover .btn__arrow { transform: translateX(4px); }
/* Hero social proof */
.hero__proof { display: flex; align-items: center; gap: 12px; margin-top: var(--s-lg); }
.hero__stars { color: #ffc24b; font-size: 18px; letter-spacing: 2px; }
.hero__proof-text { color: rgba(255, 255, 255, 0.9); font-size: 15px; font-weight: 500; }
.hero__proof-text strong { font-weight: 700; color: #fff; }
/* Free-demo guarantee line under the hero CTAs */
.hero__guarantee { margin-top: var(--s-md); font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.hero__guarantee span { color: #5fd6d6; font-weight: 700; margin-right: 6px; }
.hero__guarantee strong { color: #fff; }
/* Free-demo line in the pricing header */
.pricing__demo { font-size: clamp(1rem, 1.4vw, 18px); color: var(--body-text); max-width: 54ch; }
.pricing__demo strong { color: var(--teal-primary); }
.plans__note { text-align: center; max-width: 60ch; margin: clamp(28px, 4vw, 44px) auto 0; font-size: 16px; line-height: 1.6; color: var(--dim-text); }
.plans__note strong { color: var(--deep-dark); font-weight: 600; }

/* Active slide content entrance */
.hero-slide.is-active .hero-slide__inner > * { animation: heroIn 0.7s var(--ease-out) both; }
.hero-slide.is-active .hero-slide__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-slide.is-active .hero-slide__inner > *:nth-child(2) { animation-delay: 0.14s; }
.hero-slide.is-active .hero-slide__inner > *:nth-child(3) { animation-delay: 0.23s; }
.hero-slide.is-active .hero-slide__inner > *:nth-child(4) { animation-delay: 0.32s; }
.hero-slide.is-active .hero-slide__inner > *:nth-child(5) { animation-delay: 0.41s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---- Page-load entrance ---- */
@keyframes navSlideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes heroFadeIn   { from { opacity: 0; } to { opacity: 1; } }

/* Nav drops in first */
#nav { animation: navSlideDown 0.55s var(--ease-out) 0.05s both; }

/* Hero peripheral elements fade in after the copy */
.hero__arrow   { animation: heroFadeIn 0.45s var(--ease-out) 0.85s both; }
.hero__dots    { animation: heroFadeIn 0.45s var(--ease-out) 0.95s both; }
.hero__explore { animation: heroFadeIn 0.55s var(--ease-out) 1.05s both; }

/* On page load JS adds .is-page-entry to give hero copy longer delays
   so it enters after the nav, not at the same instant. Removed after 2.2 s. */
.hero-slide.is-active.is-page-entry .hero-slide__inner > *:nth-child(1) { animation-delay: 0.38s; }
.hero-slide.is-active.is-page-entry .hero-slide__inner > *:nth-child(2) { animation-delay: 0.54s; }
.hero-slide.is-active.is-page-entry .hero-slide__inner > *:nth-child(3) { animation-delay: 0.70s; }
.hero-slide.is-active.is-page-entry .hero-slide__inner > *:nth-child(4) { animation-delay: 0.86s; }

/* Arrows */
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.hero__arrow:hover { background: var(--teal-primary); border-color: var(--teal-primary); }
.hero__arrow svg { width: 24px; height: 24px; }
.hero__arrow--prev { left: clamp(12px, 2vw, 28px); }
.hero__arrow--next { right: clamp(12px, 2vw, 28px); }

/* Dots */
.hero__dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: width 0.25s var(--ease-out), background-color 0.25s; }
.hero__dots button.is-active { width: 28px; border-radius: 5px; background: #fff; }

/* Rotating Explore badge */
.hero__explore {
  position: absolute; right: clamp(14px, 4vw, 48px); bottom: clamp(14px, 4vw, 44px); z-index: 3;
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.hero__explore-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.hero__explore-ring text { fill: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: 2px; }
.hero__explore-arrow { width: 46px; height: 46px; border-radius: 50%; background: var(--teal-primary); display: flex; align-items: center; justify-content: center; transition: transform 0.25s var(--ease-out); }
.hero__explore-arrow svg { width: 22px; height: 22px; }
.hero__explore:hover .hero__explore-arrow { transform: translateY(3px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Stat bar ---- */
.statbar { padding-block: clamp(32px, 5vw, 56px) clamp(16px, 2.4vw, 24px); }
.statbar .metrics {
  margin-top: 0; border-top: 0; padding-top: 0;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.statbar .metric {
  text-align: center;
  padding-inline: clamp(24px, 4vw, 60px);
  border-left: 1px solid var(--border-subtle);
}
.statbar .metric:first-child { border-left: 0; }
.statbar .metric__label { color: var(--body-text); }

/* ============================================================
   Hero (legacy / unused-by-media)
   ============================================================ */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.hero__inner { display: flex; flex-direction: column; align-items: flex-start; }
.display { margin-block: var(--s-md) var(--s-lg); }
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 20px);
  font-weight: 400;
  color: var(--body-text);
  max-width: 52ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md-2);
  margin-top: var(--s-xl-1);
}

/* Flat metric row — borders, not cards */
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}
.metric__value {
  font-size: clamp(2rem, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.96px;
  line-height: 1;
  color: var(--deep-dark);
}
.metric__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--dim-text);
  margin-bottom: var(--s-md-1);
}

/* ============================================================
   Teal-tint band + cards
   ============================================================ */
.band { background: var(--teal-background-tint); padding-block: clamp(64px, 9vw, 110px); }
.band__head { margin-bottom: clamp(36px, 5vw, 56px); display: flex; flex-direction: column; gap: var(--s-md); }
.cards {
  display: grid;
  gap: var(--s-md);
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--white-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
/* Accent bar wipes in across the top on hover */
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--teal-primary);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--teal-primary);
  box-shadow: 0 22px 48px -22px rgba(12, 30, 33, 0.32);
}
.card:hover::before { transform: scaleX(1); }

/* Mouse-following spotlight (coords set in JS via --mx/--my) */
.card__glow {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--ease-out);
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 0%),
              rgba(30, 138, 138, 0.12), transparent 72%);
}
.card:hover .card__glow { opacity: 1; }

/* Ghost index number, top-right */
.card__num {
  position: absolute; top: clamp(20px, 2.6vw, 30px); right: clamp(22px, 2.8vw, 32px);
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--muted-text);
  transition: color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.card:hover .card__num { color: var(--teal-primary); transform: translateY(-2px); }

.card__icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--teal-background-tint);
  color: var(--teal-primary);
  margin-bottom: var(--s-md);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out),
              transform 0.5s var(--ease-out);
}
.card__icon svg { width: 27px; height: 27px; }
.card:hover .card__icon {
  background: var(--teal-primary);
  color: #fff;
  transform: translateY(-2px) rotate(-6deg) scale(1.07);
}
.card__title {
  font-size: 24px; font-weight: 600; letter-spacing: -0.72px;
  color: var(--deep-dark); margin-bottom: var(--s-sm);
}
.card__title a { color: inherit; text-decoration: none; }
.card:hover .card__title a, .card__title a:hover { color: var(--teal-primary); }
.card__body { font-size: 16px; color: var(--body-text); }

/* ============================================================
   Client strip
   ============================================================ */
.clients { padding-block: clamp(18px, 2.6vw, 28px) clamp(48px, 7vw, 88px); }
.clients__pill {
  display: block;
  width: fit-content;
  margin-inline: auto;
  padding: var(--s-md-2) var(--s-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  background: var(--white-surface);
  font-size: clamp(1.05rem, 1.8vw, 22px);
  font-weight: 500;
  color: var(--body-text);
}
.clients__pill strong { color: var(--deep-dark); font-weight: 600; }
.clients__count { color: var(--teal-primary); font-weight: 600; }
/* Auto-scrolling marquee of service areas */
.marquee {
  margin-top: clamp(32px, 4vw, 48px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  list-style: none;
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.clients__logo {
  flex: 0 0 auto;
  margin-right: var(--s-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(150px, 16vw, 200px);
  height: 92px;
  padding-inline: var(--s-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  background: var(--white-surface);
  color: var(--dim-text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.clients__logo:hover { color: var(--deep-dark); border-color: var(--teal-primary); }

/* ============================================================
   About me
   ============================================================ */
.about { padding-block: clamp(56px, 8vw, 110px); }
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.about__photo {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: sticky;
  top: 100px;
}
.about__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about__photo-cap {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--deep-dark) 62%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 14px; font-weight: 600;
}
.about__copy { display: flex; flex-direction: column; gap: var(--s-md); align-items: flex-start; }
.about__story { display: flex; flex-direction: column; gap: var(--s-md); }
.about__story p { font-size: clamp(1rem, 1.3vw, 18px); line-height: 1.7; color: var(--body-text); }
.about__story strong { color: var(--deep-dark); font-weight: 600; }
.about__facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-xs); }
.about__facts li {
  padding: 8px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  background: var(--white-surface);
  font-size: 14px; font-weight: 600; color: var(--body-text);
}
/* Hand-coded tech stack badges */
.about__stack { display: flex; flex-direction: column; gap: var(--s-sm); margin-top: var(--s-xs); }
.about__stack-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--dim-text);
}
.about__stack-label svg { width: 17px; height: 17px; color: var(--teal-primary); }
.stack-tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.stack-tags li {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--teal-background-tint);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2px; color: var(--teal-strong);
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.stack-tags li:hover { transform: translateY(-2px); background: #cde2e2; }
.about__copy .btn { margin-top: var(--s-sm); }

/* ============================================================
   Approach / process
   ============================================================ */
.approach { padding-block: clamp(56px, 8vw, 110px); }
.approach__head { display: flex; flex-direction: column; gap: var(--s-md); margin-bottom: clamp(36px, 5vw, 60px); }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-md);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--s-lg);
  border-top: 2px solid var(--border-subtle);
  transition: border-color 0.3s var(--ease-out);
}
.step:hover { border-top-color: var(--teal-primary); }
.step__num {
  display: block;
  font-size: clamp(2.4rem, 4vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--muted-text);
  margin-bottom: var(--s-md);
  transition: -webkit-text-stroke-color 0.3s var(--ease-out);
}
.step:hover .step__num { -webkit-text-stroke-color: var(--teal-primary); }
.step__title { font-size: 24px; font-weight: 600; letter-spacing: -0.72px; color: var(--deep-dark); margin-bottom: var(--s-sm); }
.step__body { font-size: 16px; color: var(--body-text); max-width: 30ch; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing { padding-block: clamp(56px, 8vw, 110px); }
.pricing__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-md); margin-bottom: var(--s-lg); }
.pricing__title { max-width: none; }
.pricing__title span { color: var(--muted-text); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-md); align-items: start; }
.plan {
  position: relative;
  background: var(--white-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: var(--s-md-2);
}
.plan--featured {
  background: var(--teal-primary);
  border-color: var(--teal-primary);
  color: var(--white-surface);
}
.plan__badge {
  position: absolute; top: 20px; right: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.18); color: var(--white-surface);
}
.plan__name { font-size: 32px; font-weight: 600; letter-spacing: -0.96px; color: inherit; }
.plan--featured .plan__name { color: var(--white-surface); }
.plan:not(.plan--featured) .plan__name { color: var(--deep-dark); }
.plan__tag { font-size: 16px; color: var(--dim-text); }
.plan--featured .plan__tag { color: rgba(255,255,255,0.8); }
.plan__price { display: flex; align-items: flex-end; gap: 4px; font-size: clamp(3rem, 5vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -2px; color: var(--deep-dark); margin-block: var(--s-sm); }
.plan--featured .plan__price { color: var(--white-surface); }
.plan__cur { font-size: 0.45em; font-weight: 600; align-self: flex-start; margin-top: 0.2em; }
.plan__per { font-size: 0.28em; font-weight: 500; color: var(--dim-text); letter-spacing: -0.5px; padding-bottom: 0.4em; }
.plan--featured .plan__per { color: rgba(255,255,255,0.75); }
.plan__cta {
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px 14px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--deep-dark);
}
.plan__cta:hover { border-color: var(--teal-primary); color: var(--teal-primary); }
.plan__cta--invert { background: var(--white-surface); border-color: var(--white-surface); color: var(--deep-dark); }
.plan__cta--invert:hover { color: var(--teal-primary); border-color: var(--white-surface); }
.plan__cta-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--deep-dark); color: var(--white-surface);
  transition: transform 0.25s var(--ease-out);
}
.plan__cta-arrow svg { width: 16px; height: 16px; }
.plan__cta:hover .plan__cta-arrow { transform: rotate(45deg); }
.plan__features { list-style: none; display: flex; flex-direction: column; gap: var(--s-md-1); margin-top: var(--s-sm); }
.plan__features li {
  position: relative; padding-left: 30px;
  font-size: 16px; color: var(--body-text);
}
.plan--featured .plan__features li { color: rgba(255,255,255,0.92); }
.plan__features li::before {
  content: "»"; position: absolute; left: 0; top: -1px;
  font-weight: 700; color: var(--teal-primary);
}
.plan--featured .plan__features li::before { color: var(--white-surface); }

/* Price number swap animation */
.plan__num { display: inline-block; transition: opacity 0.16s var(--ease-out), transform 0.16s var(--ease-out); }
.plan__num.is-switching { opacity: 0; transform: translateY(8px); }

/* ---- Pricing toggle ---- */
.pricing-toggle {
  display: flex;
  width: max-content;
  margin: 0 auto clamp(36px, 5vw, 60px);
  position: relative;
  background: var(--teal-background-tint);
  border-radius: 100px;
  padding: 4px;
}
.pricing-toggle__btn {
  position: relative; z-index: 1;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--dim-text);
  padding: 8px 22px;
  border-radius: 100px;
  transition: color 0.22s;
  white-space: nowrap;
}
.pricing-toggle__btn.is-active { color: var(--deep-dark); }
.pricing-toggle__pill {
  position: absolute;
  inset-block: 4px;
  left: 4px;
  background: var(--white-surface);
  border-radius: 100px;
  box-shadow: 0 1px 6px rgba(12,30,33,0.10);
  transition: transform 0.28s var(--ease-out), width 0.28s var(--ease-out);
  pointer-events: none;
}

/* ============================================================
   Portfolio
   ============================================================ */
.work { padding-block: clamp(56px, 8vw, 110px); }
.work__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-md); margin-bottom: clamp(32px, 4vw, 52px);
}
.work__head > div { display: flex; flex-direction: column; gap: var(--s-md); }
.work__filters { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.work__filter {
  padding: 9px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle); background: var(--white-surface);
  font: inherit; font-size: 15px; font-weight: 600; color: var(--body-text);
  cursor: pointer; transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.work__filter:hover { border-color: var(--teal-primary); color: var(--teal-primary); }
.work__filter.is-active { background: var(--teal-primary); border-color: var(--teal-primary); color: #fff; }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-md); }
.work-item {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--border-subtle); background: var(--white-surface);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.work-item.is-hidden { display: none; }
.work-item:hover {
  transform: translateY(-6px);
  border-color: var(--teal-primary);
  box-shadow: 0 22px 48px -22px rgba(12, 30, 33, 0.32);
}
.work-item__thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* Monogram zooms gently on hover (fallback behind the screenshot) */
.work-item__mono {
  font-size: 40px; font-weight: 700; letter-spacing: -1px; color: rgba(255, 255, 255, 0.92);
  transition: transform 0.55s var(--ease-out);
}
.work-item:hover .work-item__mono { transform: scale(1.1); }
/* Live site screenshot — covers the gradient/monogram once it loads */
.work-item__shot {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.55s var(--ease-out);
}
.work-item:hover .work-item__shot { transform: scale(1.05); }
/* Frosted category tag, always visible top-left */
.work-item__tag {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: #fff; padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* "Visit site" veil fades in on hover */
.work-item__view {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: rgba(12, 30, 33, 0.52);
  opacity: 0; transition: opacity 0.35s var(--ease-out);
}
.work-item__view svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.work-item:hover .work-item__view { opacity: 1; }
.work-item:hover .work-item__view svg { transform: translate(3px, -3px); }
.work-item__thumb[data-tint="1"] { background: linear-gradient(150deg, #1e8a8a, #0c1e21); }
.work-item__thumb[data-tint="2"] { background: linear-gradient(150deg, #2aa3a3, #14454a); }
.work-item__thumb[data-tint="3"] { background: linear-gradient(150deg, #176e6e, #0c1e21); }
.work-item__thumb[data-tint="4"] { background: linear-gradient(150deg, #0c1e21, #1e8a8a); }
.work-item__thumb[data-tint="5"] { background: linear-gradient(150deg, #14454a, #2aa3a3); }
.work-item__thumb[data-tint="6"] { background: linear-gradient(150deg, #1e8a8a, #176e6e); }
.work-item__meta { padding: var(--s-md); }
.work-item__meta h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.4px; color: var(--deep-dark); }
.work-item__meta p { font-size: 14px; font-weight: 600; color: var(--dim-text); margin-top: 4px; }

/* ============================================================
   Testimonials
   ============================================================ */
.quotes { padding-block: clamp(56px, 8vw, 110px); }
.quotes__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-md); margin-bottom: clamp(32px, 4vw, 52px); }
.quotes__head .section-heading { max-width: 22ch; }
.quotes__more { text-align: center; margin-top: clamp(28px, 4vw, 44px); }
.quotes__more a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--teal-primary); }
.quotes__more a:hover { color: var(--teal-strong); }
.quotes__more a span { transition: transform 0.25s var(--ease-out); }
.quotes__more a:hover span { transform: translateX(4px); }
.quotes__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle); background: var(--white-surface);
  font-size: 15px; font-weight: 600; color: var(--body-text);
}
.quotes__stars { color: #e6a700; letter-spacing: 1px; }
.quotes__badge strong { color: var(--deep-dark); }
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-md); }
.quote {
  position: relative; margin: 0;
  background: var(--white-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl); padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: var(--s-md);
}
.quote__mark { position: absolute; top: 14px; right: 26px; font-size: 80px; line-height: 1; color: var(--teal-background-tint); font-family: Georgia, serif; }
.quote blockquote { font-size: clamp(1rem, 1.3vw, 18px); line-height: 1.6; color: var(--body-text); position: relative; z-index: 1; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.quote figcaption strong { font-size: 16px; font-weight: 600; color: var(--deep-dark); }
.quote figcaption span { font-size: 14px; color: var(--dim-text); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { padding-block: clamp(56px, 8vw, 110px); }
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.faq__head { display: flex; flex-direction: column; gap: var(--s-md); position: sticky; top: 100px; }
.faq__lead { font-size: 16px; color: var(--body-text); }
.faq__lead a { color: var(--teal-primary); font-weight: 600; }
.faq__list { display: flex; flex-direction: column; gap: var(--s-sm); }
.faq-item { border: 1px solid var(--border-subtle); border-radius: var(--r-lg); background: var(--white-surface); overflow: hidden; transition: border-color 0.25s var(--ease-out); }
.faq-item.is-open { border-color: var(--teal-primary); }
.faq-item__q {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-md);
  padding: clamp(18px, 2vw, 24px);
  background: none; border: 0; font: inherit;
  font-size: clamp(1rem, 1.3vw, 18px); font-weight: 600; color: var(--deep-dark);
}
.faq-item__icon { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; background: var(--teal-primary); border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.faq-item__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-item__icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item.is-open .faq-item__icon::after { transform: scaleY(0); opacity: 0; }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s var(--ease-out); }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p { padding: 0 clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px); font-size: 16px; line-height: 1.65; color: var(--body-text); }

/* ============================================================
   Contact CTA
   ============================================================ */
.contact { padding-block: clamp(56px, 8vw, 100px); }
.contact__inner {
  background: var(--teal-background-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-2xl, 40px);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-md);
}
.contact__title { max-width: 20ch; }
.contact__lead { font-size: clamp(1rem, 1.4vw, 18px); color: var(--body-text); max-width: 52ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--s-md-2); justify-content: center; margin-top: var(--s-sm); }

/* ============================================================
   Project quiz (multi-step contact form)
   ============================================================ */
.quiz {
  width: 100%; max-width: 640px; margin-top: var(--s-lg);
  text-align: left;
  background: var(--white-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl, 28px);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 24px 60px -34px rgba(12, 30, 33, 0.4);
}
.quiz__progress { height: 6px; background: rgba(12, 30, 33, 0.08); border-radius: 99px; overflow: hidden; }
.quiz__bar { display: block; height: 100%; width: 20%; background: var(--teal-primary); border-radius: 99px; transition: width 0.45s var(--ease-out); }
.quiz__count { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--dim-text); margin: 12px 0 var(--s-md); }

.quiz-step { border: 0; padding: 0; margin: 0; min-inline-size: 0; display: none; }
.quiz-step.is-active { display: block; animation: quizIn 0.4s var(--ease-out) both; }
@keyframes quizIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.quiz-step--nudge { animation: quizNudge 0.4s; }
@keyframes quizNudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.quiz-step__q { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.5px; color: var(--deep-dark); margin-bottom: var(--s-md); padding: 0; }
.quiz-step__hint { display: block; font-size: 14px; font-weight: 500; color: var(--dim-text); letter-spacing: 0; margin-top: 4px; }

.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-sm); }
.quiz-opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--white-surface); border: 1px solid var(--border-subtle);
  font-size: 15px; font-weight: 600; color: var(--body-text); cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.quiz-opt:hover { border-color: var(--teal-primary); transform: translateY(-1px); }
.quiz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.quiz-opt__check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--border-subtle);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.quiz-opt:has(input[type="radio"]) .quiz-opt__check { border-radius: 50%; }
.quiz-opt__check::after {
  content: ""; width: 9px; height: 9px; border-radius: inherit; background: #fff;
  transform: scale(0); transition: transform 0.2s var(--ease-out);
}
.quiz-opt:has(input:checked) { border-color: var(--teal-primary); background: var(--teal-background-tint); }
.quiz-opt input:checked ~ .quiz-opt__check { background: var(--teal-primary); border-color: var(--teal-primary); }
.quiz-opt input:checked ~ .quiz-opt__check::after { transform: scale(1); }
.quiz-opt input:focus-visible ~ .quiz-opt__check { box-shadow: 0 0 0 3px rgba(30, 138, 138, 0.25); }

.quiz-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-md); }
.quiz-field--mt { margin-top: var(--s-md); }
.quiz-field label { font-size: 14px; font-weight: 600; color: var(--deep-dark); }
.quiz-field__opt { font-weight: 500; color: var(--dim-text); }
.quiz-input {
  padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: var(--r-md);
  font: inherit; font-size: 15px; background: var(--white-surface); color: var(--deep-dark);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.quiz-input::placeholder { color: var(--muted-text); }
.quiz-input:focus { outline: none; border-color: var(--teal-primary); box-shadow: 0 0 0 3px rgba(30, 138, 138, 0.15); }
textarea.quiz-input { resize: vertical; min-height: 84px; }
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); }

.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); margin-top: var(--s-lg); }
.quiz__next, .quiz__submit { margin-left: auto; }

.quiz-success {
  width: 100%; max-width: 520px; margin-top: var(--s-lg);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-sm);
  text-align: center; animation: quizIn 0.5s var(--ease-out) both;
}
.quiz-success[hidden] { display: none; }
.quiz-success__icon {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--teal-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.quiz-success__icon svg { width: 32px; height: 32px; }
.quiz-success__title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.6px; color: var(--deep-dark); }
.quiz-success__text { font-size: clamp(1rem, 1.4vw, 17px); color: var(--body-text); max-width: 44ch; }

/* ============================================================
   Sub-page hero + content helpers (service / location pages)
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0c1e21 0%, #14454a 58%, #1e8a8a 135%);
  color: #fff;
  padding-block: clamp(130px, 18vh, 200px) clamp(56px, 8vw, 92px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 15px);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero .overline { color: rgba(255, 255, 255, 0.85); }
.page-hero .overline__dot { background: #5fd6d6; }
.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 600; line-height: 1.04;
  letter-spacing: -1.5px; color: #fff; margin-block: var(--s-md);
}
.page-hero h1 .accent { color: #5fd6d6; }
.page-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, 0.9); line-height: 1.6; max-width: 60ch; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-md-1); margin-top: var(--s-lg); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: var(--s-md); }
.crumbs a { color: rgba(255, 255, 255, 0.7); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: rgba(255, 255, 255, 0.4); }
.crumbs [aria-current] { color: #fff; }

.section { padding-block: clamp(56px, 8vw, 100px); }
.section--tint { background: var(--teal-background-tint); }
.section__head { display: flex; flex-direction: column; gap: var(--s-md); margin-bottom: clamp(32px, 5vw, 52px); }
.lead-text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--body-text); line-height: 1.7; max-width: 68ch; }
.prose { max-width: 72ch; margin-inline: auto; }
.prose p { font-size: clamp(1rem, 1.3vw, 18px); line-height: 1.7; color: var(--body-text); margin-bottom: var(--s-md); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--deep-dark); font-weight: 600; }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.6px;
  color: var(--deep-dark); line-height: 1.2;
  margin: clamp(32px, 4vw, 48px) 0 var(--s-md);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 600; letter-spacing: -0.4px;
  color: var(--deep-dark); margin: clamp(26px, 3vw, 36px) 0 var(--s-sm);
}
.prose ul, .prose ol { margin: 0 0 var(--s-md); padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.prose li { font-size: clamp(1rem, 1.3vw, 18px); line-height: 1.65; color: var(--body-text); padding-left: 4px; }
.prose li::marker { color: var(--teal-primary); }
.prose a { color: var(--teal-primary); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--deep-dark); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; background: var(--teal-background-tint); color: var(--deep-dark); padding: 2px 6px; border-radius: 6px; }
.prose blockquote { margin: var(--s-md) 0; padding: var(--s-sm) var(--s-md); border-left: 3px solid var(--teal-primary); background: var(--teal-background-tint); border-radius: 0 var(--r-md) var(--r-md) 0; }
.prose blockquote p { margin-bottom: 0; font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-card); margin: var(--s-md) 0; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }

.checklist { list-style: none; display: grid; gap: var(--s-sm); margin-top: var(--s-md); }
.checklist li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.5; color: var(--body-text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-background-tint); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 8px; height: 5px; border-left: 2px solid var(--teal-primary); border-bottom: 2px solid var(--teal-primary); transform: rotate(-45deg); }

/* Related-services cards (Go deeper / nearby areas) */
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-md);
  margin-top: clamp(28px, 4vw, 44px);
}
.rel-card {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-md);
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--white-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  color: var(--deep-dark);
  font-size: clamp(17px, 1.3vw, 19px); font-weight: 600; letter-spacing: -0.2px; line-height: 1.3;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.rel-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-primary);
  box-shadow: 0 18px 38px -20px rgba(12, 30, 33, 0.4);
}
.rel-card__arrow {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-background-tint); color: var(--teal-primary);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.rel-card__arrow svg { width: 18px; height: 18px; }
.rel-card:hover .rel-card__arrow { background: var(--teal-primary); color: #fff; transform: translate(2px, -2px); }

/* Blog listing cards (DB-driven) */
.bloglist {
  display: grid; gap: clamp(22px, 3vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin-top: clamp(28px, 4vw, 44px);
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--white-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card); overflow: hidden;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--teal-primary); box-shadow: 0 22px 44px -24px rgba(12, 30, 33, 0.42); }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--teal-background-tint); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.2vw, 26px); }
.post-card__tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--teal-primary); background: var(--teal-background-tint);
  padding: 5px 11px; border-radius: var(--r-pill);
}
.post-card__title { font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 600; letter-spacing: -0.4px; line-height: 1.25; color: var(--deep-dark); }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--teal-primary); }
.post-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--body-text); }
.post-card__meta { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--dim-text); }

/* Single post */
.post-byline { margin-top: var(--s-md); font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.82); }
.post-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r-card); margin-bottom: clamp(28px, 4vw, 44px); }

/* Portfolio slideshow */
.pf-slider { position: relative; margin-top: clamp(28px, 4vw, 48px); max-width: 980px; margin-inline: auto; }
.pf-viewport { overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--border-subtle); box-shadow: 0 30px 60px -30px rgba(12, 30, 33, 0.4); background: var(--deep-dark); aspect-ratio: 1920 / 1440; }
.pf-track { display: flex; height: 100%; transition: transform 0.6s var(--ease-out); will-change: transform; }
.pf-slide { position: relative; flex: 0 0 100%; min-width: 100%; height: 100%; }
.pf-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  padding: clamp(28px, 5vw, 48px) clamp(18px, 3vw, 32px) clamp(16px, 2.4vw, 24px);
  color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(12, 30, 33, 0.9) 0%, rgba(12, 30, 33, 0.55) 55%, rgba(12, 30, 33, 0) 100%);
}
.pf-cap strong { font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-weight: 700; letter-spacing: -0.3px; }
.pf-cap span { font-size: clamp(0.8rem, 1.1vw, 0.95rem); font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.pf-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--white-surface) 92%, transparent);
  color: var(--deep-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px -10px rgba(12, 30, 33, 0.5); transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.pf-arrow svg { width: 22px; height: 22px; }
.pf-arrow:hover { background: var(--teal-primary); color: #fff; }
.pf-arrow--prev { left: clamp(10px, 2vw, 22px); }
.pf-arrow--next { right: clamp(10px, 2vw, 22px); }
.pf-arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.pf-arrow--next:hover { transform: translateY(-50%) translateX(2px); }
.pf-dots { display: flex; justify-content: center; gap: 10px; margin-top: var(--s-md); flex-wrap: wrap; }
.pf-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: color-mix(in srgb, var(--deep-dark) 22%, transparent); transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.pf-dots button:hover { background: color-mix(in srgb, var(--teal-primary) 60%, transparent); }
.pf-dots button[aria-selected="true"] { background: var(--teal-primary); transform: scale(1.3); }
@media (max-width: 600px) { .pf-arrow { width: 42px; height: 42px; } .pf-arrow svg { width: 18px; height: 18px; } }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 767.98px) { .split { grid-template-columns: 1fr; } }

.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.4px; color: var(--deep-dark); margin: var(--s-xl-1) 0 var(--s-sm); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--body-text); }
.legal p { margin-bottom: var(--s-sm); }
.legal ul { margin: var(--s-sm) 0 var(--s-md); padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--teal-primary); }
.legal__updated { font-size: 14px; font-weight: 600; color: var(--dim-text); margin-bottom: var(--s-lg); }

/* ============================================================
   Self-hosted video block
   ============================================================ */
.videoblk { padding-block: clamp(56px, 8vw, 100px); background: var(--light-grey-surface); }
.videoblk__frame {
  position: relative; max-width: 960px; margin: clamp(28px, 4vw, 44px) auto 0;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-card); border: 1px solid var(--border-subtle);
  background: linear-gradient(120deg, #0c1e21 0%, #14454a 60%, #1e8a8a 130%);
  box-shadow: 0 30px 60px -30px rgba(12, 30, 33, 0.4);
}
.videoblk__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.videoblk__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer;
}
.videoblk__play::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(12, 30, 33, 0.28); transition: background-color 0.3s var(--ease-out);
}
.videoblk__play:hover::before { background: rgba(12, 30, 33, 0.14); }
.videoblk__play span {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(12, 30, 33, 0.45);
  transition: transform 0.3s var(--ease-out);
}
.videoblk__play:hover span { transform: scale(1.08); }
.videoblk__play svg { width: 30px; height: 30px; margin-left: 4px; color: var(--teal-primary); }
.videoblk.is-playing .videoblk__play { display: none; }

/* ============================================================
   Dark footer
   ============================================================ */
.foot {
  position: relative;
  background: var(--deep-dark);
  color: var(--muted-text);
  padding-top: clamp(56px, 7vw, 90px);
  overflow: hidden;
}
/* Bexon's signature diagonal hatch — part of THIS brand, kept very faint */
.foot::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 34px);
  pointer-events: none;
}
.foot > * { position: relative; z-index: 1; }
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.foot__brand { display: inline-flex; align-items: center; gap: var(--s-sm); font-size: 24px; font-weight: 600; color: var(--white-surface); }
.foot__brand .nav__mark { box-shadow: inset 0 0 0 4px var(--deep-dark); }
.foot__blurb { margin-top: var(--s-md); max-width: 34ch; font-size: 16px; line-height: 1.6; }
.foot__awards { display: flex; gap: var(--s-md); margin-top: var(--s-lg); }
.foot__award {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 24px; font-weight: 700; color: var(--white-surface);
}
.foot__award small { font-size: 10px; font-weight: 600; line-height: 1.1; color: var(--muted-text); letter-spacing: 0.5px; text-transform: uppercase; }
.foot__col { display: flex; flex-direction: column; gap: var(--s-md-1); }
.foot__head { font-size: 20px; font-weight: 600; color: var(--white-surface); margin-bottom: var(--s-sm); }
.foot__col a { font-size: 16px; color: var(--muted-text); transition: color 0.2s; width: fit-content; }
.foot__col a:hover { color: var(--white-surface); }
.foot__new { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: var(--r-pill); background: var(--teal-primary); color: var(--white-surface); margin-left: 6px; }
.foot__addr { font-style: normal; font-size: 16px; line-height: 1.6; }
.foot__contact, .foot__hours { font-size: 16px; line-height: 1.6; }
.foot__office { gap: var(--s-md); }

/* Big ghosted outline wordmarks */
.foot__marquee {
  display: flex; justify-content: space-between; align-items: center;
  gap: clamp(20px, 4vw, 60px);
  border-top: 1px dashed rgba(255,255,255,0.14);
  padding-block: clamp(20px, 4vw, 48px);
  overflow: hidden;
}
.foot__ghost {
  font-size: clamp(3rem, 11vw, 150px);
  font-weight: 600;
  letter-spacing: -3px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.16);
  white-space: nowrap;
}
.foot__bar {
  display: flex; flex-wrap: wrap; gap: var(--s-md); align-items: center; justify-content: space-between;
  padding-block: clamp(20px, 3vw, 32px);
  border-top: 1px dashed rgba(255,255,255,0.14);
}
.foot__copy { font-size: 16px; }
.foot__copy strong { color: var(--white-surface); }
.foot__social { list-style: none; display: flex; gap: var(--s-sm); }
.foot__social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--muted-text); font-weight: 600;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.foot__social a:hover { background: var(--teal-primary); color: var(--white-surface); border-color: var(--teal-primary); }
.foot__legal { display: flex; gap: var(--s-sm); align-items: center; font-size: 16px; }
.foot__legal a:hover { color: var(--white-surface); }
.foot__legal span { color: rgba(255,255,255,0.3); }

/* Back-to-top */
.to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--deep-dark); color: var(--white-surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background-color 0.25s;
  z-index: 60;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--teal-primary); }

/* ============================================================
   Next-level motion
   ============================================================ */

/* Anchors clear the floating nav */
section[id], #top, [id]:target { scroll-margin-top: 96px; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 80;
  height: 3px; width: 100%;
  background: var(--teal-primary);
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* Scrollspy active nav link */
.nav__links a.is-current { color: var(--teal-primary) !important; }
.nav__links a.is-current::after { width: 100%; }

/* Ken Burns on the active hero slide's photo */
.hero-slide::before { transform: scale(1.02); }
.hero-slide.is-active::before { animation: kenburns 9s ease-out both; }
.hero-slide.is-active:nth-child(2)::before { animation-name: kenburns-alt; }
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.16) translate(-2%, -1.5%); }
}
@keyframes kenburns-alt {
  from { transform: scale(1.16) translate(-2%, 0); }
  to   { transform: scale(1.02) translate(1.5%, -1.5%); }
}

/* Heading word/line mask reveal */
.r-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.12em;
  margin-block: -0.12em;
}
.r-word__i {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.62s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 42ms);
  will-change: transform;
}
.is-revealed .r-word__i { transform: translateY(0); }

/* Process connector line that draws in */
.steps { position: relative; }
.steps__line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--teal-primary);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.9s var(--ease-out);
}
.steps__line.is-visible { transform: scaleX(1); }

/* ============================================================
   Reveal animations
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-lg); }
  .steps__line { display: none; }
  .work__head { align-items: flex-start; }
  .hero__explore { width: 96px; height: 96px; }
  .hero__explore-arrow { width: 38px; height: 38px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .quotes__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .faq__inner { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

@media (max-width: 575.98px) {
  .nav__cta { display: none; }
  .hero__arrow { width: 46px; height: 46px; }
  .hero__explore { display: none; }
  .cards { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .statbar .metrics { flex-direction: column; gap: var(--s-md); }
  .statbar .metric { border-left: 0; padding-inline: 0; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .quiz-opts { grid-template-columns: 1fr; }
  .quiz-grid { grid-template-columns: 1fr; }
  .quiz { padding: 22px; }
}

@media (max-width: 767.98px) {
  .nav__links { display: none; }
  .nav__actions .link-quiet { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__marquee { justify-content: center; }
  .foot__bar { justify-content: center; text-align: center; }
}

/* Respect reduced-motion: no entrance/scroll motion, instant visibility */
/* Reduced-motion respect — disabled when <html data-motion="full"> is set.
   The owner has opted the site into full motion; remove that attribute on
   <html> to restore automatic respect for a visitor's reduced-motion setting. */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) { scroll-behavior: auto; }
  html:not([data-motion="full"]) [data-reveal] { opacity: 1; transform: none; transition: none; }
  html:not([data-motion="full"]) :is(.btn, .card, .card__icon, .card__num, .card::before,
    .card__glow, .work-item, .work-item__mono, .work-item__shot, .work-item__view, .work-item__view svg,
    .btn__arrow, .nav__links a::after,
    .clients__logo, .plan__cta-arrow, .about__play, .to-top, .foot__social a,
    .step, .step__num, .hero__arrow, .hero__explore-arrow, .nav__caret) { transition: none !important; }
  html:not([data-motion="full"]) .hero__explore-ring { animation: none !important; }
  html:not([data-motion="full"]) #nav { animation: none; }
  html:not([data-motion="full"]) :is(.hero__arrow, .hero__dots, .hero__explore) { animation: none !important; }
  html:not([data-motion="full"]) .hero-slide { transition: opacity 0.01s; }
  html:not([data-motion="full"]) .hero-slide.is-active .hero-slide__inner > * { animation: none !important; }
  html:not([data-motion="full"]) .marquee { -webkit-mask-image: none; mask-image: none; }
  html:not([data-motion="full"]) .marquee__track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: center; row-gap: var(--s-md); }
  html:not([data-motion="full"]) .clients__logo--dup { display: none; }
  html:not([data-motion="full"]) .hero-slide.is-active::before { animation: none !important; transform: scale(1.02); }
  html:not([data-motion="full"]) .r-word__i { transform: none !important; transition: none !important; }
  html:not([data-motion="full"]) .steps__line { transform: scaleX(1); transition: none; }
  html:not([data-motion="full"]) .scroll-progress { display: none; }
}
