/* =====================================================================
   SparksAI landing page – styles
   Palette and type follow the SparksAX site; depth/motion follow Commit AI.
   ===================================================================== */

/* ---------- fonts (self-hosted variable fonts, latin + latin-ext) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* palette */
  --navy: #0b1e4a;
  --navy-deep: #071535;
  --navy-soft: #13306d;
  --ink: #10141c;
  --cream: #faf8f3;
  --sand: #f3efe6;
  --lime: #7ed957;
  --lime-dark: #3f9d28;
  --blue: #1f4fd8;
  --blue-bright: #2f6bff;
  --teal: #1b9aaa;
  --coral: #ffb4a2;
  --slate: #5c6573;
  --slate-light: #c9d6ea;
  --white: #ffffff;

  /* type */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  /* layout */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;

  --shadow-card: 0 20px 50px -24px rgba(7, 21, 53, 0.55), 0 2px 6px rgba(7, 21, 53, 0.08);
  --shadow-card-hover: 0 40px 70px -30px rgba(7, 21, 53, 0.6), 0 6px 14px rgba(7, 21, 53, 0.1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
main,
.cover,
.hero,
.section {
  overflow-x: clip;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--lime);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime-dark);
  margin-bottom: 18px;
}
.section--dark .eyebrow,
.section--navy .eyebrow,
.hero .eyebrow {
  color: var(--lime);
}
.hero .eyebrow {
  font-size: clamp(22px, 2.3vw, 31px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: none;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.section-title {
  font-size: clamp(32px, 4.4vw, 54px);
  max-width: 32ch;
  text-wrap: balance;
}
.section-subtitle {
  margin-top: 18px;
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 60ch;
  color: var(--slate);
}
.section--dark .section-subtitle,
.section--navy .section-subtitle {
  color: rgba(255, 255, 255, 0.72);
}
.section-head {
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head--center {
  text-align: center;
}
.section-head--center .section-title,
.section-head--center .section-subtitle {
  margin-inline: auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--lime);
  color: var(--navy);
  box-shadow: 0 10px 28px -10px rgba(126, 217, 87, 0.7);
}
.btn--primary:hover {
  background: #8fe56a;
  box-shadow: 0 16px 36px -12px rgba(126, 217, 87, 0.85);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.btn--small {
  padding: 10px 18px;
  font-size: 14px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  z-index: 100;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-header.is-scrolled {
  background: rgba(11, 30, 74, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(126, 217, 87, 0.35));
}
.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}
.brand__tagline {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  opacity: 0.7;
  margin-top: 4px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav__link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  position: relative;
  transition: color 0.25s, background 0.25s;
}
.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.site-nav__cta {
  margin-left: 10px;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
}
.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- cover (first page) ---------- */
.cover {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(90% 70% at 78% 35%, rgba(19, 48, 109, 0.85) 0%, transparent 58%),
    radial-gradient(120% 90% at 20% 10%, var(--navy-soft) 0%, var(--navy) 42%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: var(--header-h);
}
.cover--animated .cover__network {
  display: none;
}
.cover__network {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    radial-gradient(circle at 62% 28%, rgba(120, 190, 255, 0.55) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 78% 42%, rgba(126, 217, 87, 0.35) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 88% 22%, rgba(120, 190, 255, 0.4) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 70% 58%, rgba(120, 190, 255, 0.35) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 92% 55%, rgba(126, 217, 87, 0.28) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 55% 48%, rgba(255, 255, 255, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 72%, rgba(120, 190, 255, 0.3) 0 1.2px, transparent 2.2px),
    linear-gradient(118deg, transparent 49.7%, rgba(120, 190, 255, 0.12) 50%, transparent 50.3%),
    linear-gradient(28deg, transparent 49.7%, rgba(120, 190, 255, 0.1) 50%, transparent 50.3%),
    linear-gradient(72deg, transparent 49.7%, rgba(126, 217, 87, 0.08) 50%, transparent 50.3%);
  background-size:
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    380px 380px, 520px 520px, 440px 440px;
  background-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, rgba(0, 0, 0, 0.55) 62%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, rgba(0, 0, 0, 0.55) 62%, #000 100%);
}
.cover__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(48px, 10vh, 110px);
  max-width: 920px;
  margin-left: max(var(--gutter), calc((100% - var(--container)) / 2));
  margin-right: var(--gutter);
}
.cover__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--lime);
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.cover__title {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.08;
  color: var(--white);
}
.cover__title span {
  display: block;
}
@media (min-width: 641px) {
  .cover__title span {
    white-space: nowrap;
  }
}
.cover__title em {
  font-style: normal;
  color: var(--lime);
}
.cover__body {
  margin-top: clamp(36px, 5vw, 64px);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 42ch;
}
.cover__body strong {
  font-weight: 700;
  color: var(--white);
}
.cover__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  --shift-x: -50%;
}

/* ---------- hero (PAGE 1 ALTERNATIVE – kept in code; hidden:true in content.js) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 90% at 70% 20%, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: var(--header-h);
}
/* Must beat .hero { display:flex } so a hidden alternative doesn't leave a blank page */
.hero[hidden] {
  display: none !important;
}
/* background media (image or video) – sits under the particle canvas */
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: brightness(var(--media-brightness, 0.85)) saturate(1.05);
}
.hero__media-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center; /* keeps the figure/network on the right, headline on the left */
}
.hero__media-el--kenburns {
  transform-origin: 60% 45%;
  animation: kenburns 36s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, 1%, 0);
  }
}
/* layered hero: background plate + person cut-out */
.hero__media--layered {
  perspective: 1200px;
}
.hero__layer {
  position: absolute;
  will-change: transform;
}
.hero__layer--bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.08);
}
.hero__layer--person-wrap {
  bottom: -2%;
  /* left + height are set from content.js (layers.personLeft / personHeight) */
  width: auto;
  pointer-events: none;
}
.hero__layer--person {
  height: 100%;
  width: auto;
  transform-origin: 50% 100%;
  animation: breathe 7s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(7, 21, 53, 0.9)) drop-shadow(0 0 2px rgba(120, 190, 255, 0.35));
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.012) rotate(0.3deg);
  }
}
/* glow where the hand touches the network */
.hero__layer--handglow {
  width: 26vmin;
  height: 26vmin;
  margin: -13vmin 0 0 -13vmin;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(126, 217, 87, 0.45) 0%, rgba(47, 160, 255, 0.3) 30%, transparent 68%);
  mix-blend-mode: screen;
  animation: handglow 3.2s ease-in-out infinite;
}
@keyframes handglow {
  0%,
  100% {
    opacity: 0.55;
    scale: 0.92;
  }
  50% {
    opacity: 1;
    scale: 1.08;
  }
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: screen;
}
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* darken the left side so the headline stays readable over the media */
    linear-gradient(90deg, rgba(7, 21, 53, 0.92) 0%, rgba(7, 21, 53, 0.72) 32%, rgba(7, 21, 53, 0.25) 60%, rgba(7, 21, 53, 0.1) 100%),
    radial-gradient(40% 50% at 78% 45%, rgba(31, 79, 216, 0.22), transparent 70%),
    linear-gradient(to bottom, rgba(11, 30, 74, 0.55), transparent 28%, transparent 68%, rgba(7, 21, 53, 0.95));
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(56px, 10vh, 120px);
  transform: translateY(-6vh);
  container-type: inline-size;
  max-width: none;
  margin-left: max(var(--gutter), calc((100% - var(--container)) / 2));
  margin-right: var(--gutter);
}
.hero__top-title {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: clamp(11px, 1.1vw, 13px);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: clamp(14px, 1.8vw, 20px);
  text-transform: uppercase;
}
.hero__top-title span {
  display: block;
}
@media (min-width: 641px) {
  .hero__top-title span {
    white-space: nowrap;
  }
}
.hero__top-title em {
  font-style: normal;
  color: var(--lime);
}
.hero__title {
  /* same typeface and size as .hero__subtitle */
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.3;
}
.hero__title span {
  display: block;
}
.hero__title span:last-child {
  font-size: clamp(36px, 4.2vw, 58px);
}
@media (min-width: 961px) {
  .hero__title span {
    white-space: nowrap;
  }
}
.hero__title em {
  font-style: normal;
  color: var(--lime);
}
.hero__subtitle {
  margin-top: clamp(44px, 5.5vw, 72px);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--lime);
  max-width: 36ch;
  text-shadow: 0 2px 18px rgba(7, 21, 53, 0.6);
}
/* scroll hint: label + three cascading chevrons, clickable */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  transition: background 0.25s, transform 0.25s var(--ease-out);
  animation: scroll-float 2.6s ease-in-out infinite;
}
.scroll-hint:hover {
  background: rgba(255, 255, 255, 0.07);
}
/* in the hero: pinned to the bottom centre */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  --shift-x: -50%;
}
/* inside a section: sits in the flow under the content */
.section__scroll {
  margin: 44px auto 0;
  width: max-content;
  --shift-x: 0px;
}
.scroll-hint__text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(7, 21, 53, 0.9);
}
.scroll-hint__chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.scroll-hint__chevrons i {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2.5px solid var(--lime);
  border-bottom: 2.5px solid var(--lime);
  transform: rotate(45deg);
  margin-top: -8px;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(126, 217, 87, 0.8));
  animation: chevron-cascade 1.8s ease-in-out infinite;
}
.scroll-hint__chevrons i:nth-child(2) {
  animation-delay: 0.18s;
}
.scroll-hint__chevrons i:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes chevron-cascade {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-6px, -6px);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(6px, 6px);
  }
}
@keyframes scroll-float {
  0%,
  100% {
    transform: translateX(var(--shift-x, 0px)) translateY(0);
  }
  50% {
    transform: translateX(var(--shift-x, 0px)) translateY(6px);
  }
}

/* cover + hero entrance */
.cover [data-stagger],
.hero [data-stagger] {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 1s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 0.14s + 0.15s);
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 140px);
}
.section--cream {
  background: var(--cream);
}
.section--sand {
  background: var(--sand);
}
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.help {
  padding-top: clamp(28px, 4vw, 56px);
}
#how-we-help .section-head {
  margin-bottom: clamp(16px, 2vw, 28px);
}
.flow.value-flow {
  max-width: 1040px;
  margin: 0 auto clamp(20px, 2.75vw, 32px);
  padding: clamp(14px, 2vw, 22px) clamp(16px, 2.5vw, 28px) clamp(14px, 2vw, 20px);
  border-radius: 16px;
  border: 1px solid rgba(126, 217, 87, 0.28);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(26, 57, 111, 0.55), transparent 70%),
    rgba(8, 22, 52, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 36px -18px rgba(0, 0, 0, 0.55);
}
.value-flow__title {
  margin: 0 0 4px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--lime);
}
.value-flow__canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1040 / 198;
}
.value-flow .flow__phase {
  margin-top: 0;
  padding-bottom: 0;
  gap: 10px;
  grid-template-columns: 1fr auto minmax(140px, 0.8fr) auto 1fr;
}
.value-flow .flow__arrow {
  min-width: 140px;
}
.value-flow .flow__cap--mid {
  align-self: center;
  margin-top: 0;
  transform: translateY(-18px);
}
.value-flow__outcomes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  min-height: 40px;
}
.value-flow__out {
  min-width: min(100%, 200px);
  max-width: 220px;
  text-align: center;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #2ec4b6;
  background: #0f3a45;
  color: #e8fffb;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  box-shadow: 0 0 16px rgba(46, 196, 182, 0.18);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.value-flow__out.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.help__boxes {
  margin-top: 0;
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
}
.help__boxes .phase {
  padding: 16px 18px 16px 24px;
  min-height: 0;
}
.help__boxes .phase__head {
  margin-bottom: 6px;
  gap: 8px;
}
.help__boxes .phase__icon {
  width: 28px;
  height: 28px;
  padding: 5px;
}
.help__boxes .phase__title {
  font-size: 15px;
}
.help__boxes .phase__text {
  font-size: 13px;
  line-height: 1.35;
}
.section--dark {
  background: radial-gradient(90% 70% at 20% 10%, #0f2a66 0%, var(--navy) 40%, var(--navy-deep) 100%);
  color: var(--white);
}
.section--dark::before {
  /* subtle network texture */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 12% 30%, rgba(126, 217, 87, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 20%, rgba(47, 107, 255, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 80%, rgba(126, 217, 87, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 90%, rgba(47, 107, 255, 0.25) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 70%, rgba(255, 255, 255, 0.2) 0 1.5px, transparent 2.5px),
    linear-gradient(115deg, transparent 49.6%, rgba(255, 255, 255, 0.05) 50%, transparent 50.4%),
    linear-gradient(35deg, transparent 49.6%, rgba(255, 255, 255, 0.04) 50%, transparent 50.4%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 420px 420px, 560px 560px;
}
.section > .container {
  position: relative;
  z-index: 1;
}

/* reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ---------- 3D-tilt cards ---------- */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.tilt.is-tilting {
  transition: box-shadow 0.35s var(--ease-out);
}

/* ---------- phases (section 2) ---------- */
.phases {
  padding-top: clamp(20px, 2.5vw, 32px);
}
.phases .section-head,
.phases .section-title,
.phase {
  text-align: left;
}
.phases .section-head {
  margin-bottom: clamp(18px, 2.4vw, 32px);
}
.phases .section-head {
  container-type: inline-size;
}
.phases .section-lead {
  margin: 0 0 clamp(22px, 3vw, 36px);
  font-family: var(--font-display);
  font-weight: 500;
  /* sized from the column width so the first row never wraps */
  font-size: min(58px, 3.6cqi);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--lime);
}
.phases .section-lead span {
  display: block;
  white-space: nowrap;
}
.phases .section-title {
  font-size: clamp(28px, 3.6vw, 46px);
}
.phases__grid {
  display: grid;
  gap: 18px;
}
.section-title__line {
  display: block;
}

/* bottleneck animation (top of section 2) */
.flow {
  max-width: 1040px;
  margin: 0 auto;
}
.flow__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.13;
  text-align: center;
  margin-bottom: clamp(12px, 2vw, 24px);
}
.flow__title em {
  font-style: normal;
  color: var(--lime);
}
.flow__canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1040 / 200; /* JS overrides per viewport for mobile readability */
}
.flow__phase {
  display: grid;
  grid-template-columns: 1fr auto minmax(300px, auto) auto 1fr;
  grid-template-areas: "cap-left before arrow after cap-right";
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding-bottom: 34px;
  position: relative;
}
.flow__cap--left {
  grid-area: cap-left;
}
.flow__pill--before {
  grid-area: before;
}
.flow__arrow {
  grid-area: arrow;
}
.flow__pill--after {
  grid-area: after;
}
.flow__cap--right {
  grid-area: cap-right;
}
.flow__cap--mid {
  grid-area: arrow;
  justify-self: center;
  align-self: start;
}
.flow__pill {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #abc0dd;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #4d6992;
  background: #122f58;
  opacity: 0.45;
  transform: scale(0.92);
  transition: all 0.55s ease;
}
.flow__pill.is-on {
  opacity: 1;
  transform: scale(1.06);
}
.flow__pill--before.is-on {
  border-color: #ff8a5c;
  color: #ffd9c8;
  box-shadow: 0 0 18px rgba(255, 138, 92, 0.19);
}
.value-flow .flow__pill--before.is-on {
  border-color: #7aa0c8;
  color: #d7e6f8;
  box-shadow: none;
}
.flow__pill--after.is-on {
  border-color: #a1eb7a;
  background: #163c3b;
  color: #dcf7d0;
  box-shadow: 0 0 18px rgba(149, 222, 120, 0.19);
}
.flow__arrow {
  position: relative;
  height: 1px;
  min-width: 300px;
  background: #4d6992;
}
.flow__arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  border: 5px solid transparent;
  border-left: 8px solid #4d6992;
  border-right: 0;
}
.flow__cap {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.45s;
}
.flow__cap.is-on {
  opacity: 1;
}
.flow__cap span {
  color: #a1eb7a;
}
.flow__cap--left {
  text-align: right;
}
.flow__cap--right {
  text-align: left;
}
.flow__cap--mid {
  position: relative;
  white-space: nowrap;
  margin-top: 18px;
  z-index: 1;
}
.phases__sep {
  width: min(240px, 40%);
  height: 1px;
  margin: clamp(16px, 2vw, 24px) auto;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(126, 217, 87, 0.6), transparent);
}
.phases__layout {
  display: grid;
  /* 0.9fr: the cards take 90% of the remaining width; the pair stays centered */
  grid-template-columns: auto minmax(0, 0.9fr);
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
}
.phases__layout .section-head {
  margin-bottom: 0;
  container-type: normal;
}
.phases__layout .section-title__line {
  white-space: nowrap;
}
.phases__layout .phases__stuck {
  gap: 12px;
}
.phases__layout .phase {
  padding: 14px 16px 14px 20px;
}
.phases__layout .phase__head {
  gap: 10px;
  margin-bottom: 6px;
}
.phases__layout .phase__icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 8px;
}
.phases__layout .phase__title {
  font-size: 15px;
}
.phases__layout .phase__text {
  font-size: 13.5px;
  line-height: 1.4;
}
.phases__stuck {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.phase {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  color: var(--ink);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 22px 24px 24px 30px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -3px 0 rgba(11, 30, 74, 0.07),
    0 1px 2px rgba(3, 10, 30, 0.25),
    0 10px 20px -8px rgba(3, 10, 30, 0.45),
    0 30px 60px -24px rgba(3, 10, 30, 0.7);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.phase:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -3px 0 rgba(11, 30, 74, 0.07),
    0 2px 4px rgba(3, 10, 30, 0.25),
    0 18px 30px -10px rgba(3, 10, 30, 0.5),
    0 44px 80px -28px rgba(3, 10, 30, 0.8),
    0 0 0 1px rgba(126, 217, 87, 0.35);
}
.phase::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(to bottom, var(--lime), var(--teal));
  box-shadow: 2px 0 10px rgba(126, 217, 87, 0.45);
}
.phase::after {
  /* soft sheen across the top of the card */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.phase > * {
  position: relative;
  z-index: 1;
}
.phase__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--navy);
}
.phase__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 11px;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-soft) 0%, var(--navy) 60%, var(--navy-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 14px -6px rgba(11, 30, 74, 0.75);
}
.phase__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--lime);
}
.phase__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--navy);
}
.phase__text {
  font-size: 15px;
  line-height: 1.55;
  color: #3a4352;
}

.phases .section__scroll {
  margin-top: clamp(12px, 1.6vw, 22px);
}
.help .section__scroll {
  margin-top: clamp(48px, 7vw, 80px);
}

/* ---------- why (section 4) ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.why__card {
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  border-radius: 14px;
  border: 1px solid rgba(11, 30, 74, 0.06);
  padding: 16px 16px 16px 20px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 0 rgba(11, 30, 74, 0.05),
    0 1px 2px rgba(7, 21, 53, 0.08),
    0 10px 20px -10px rgba(7, 21, 53, 0.22),
    0 24px 40px -24px rgba(7, 21, 53, 0.4);
  position: relative;
  overflow: hidden;
}
.why__card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 0 rgba(11, 30, 74, 0.05),
    0 2px 4px rgba(7, 21, 53, 0.1),
    0 14px 24px -12px rgba(7, 21, 53, 0.28),
    0 32px 48px -24px rgba(7, 21, 53, 0.45);
}
.why__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--lime), var(--teal));
}
.why__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(11, 30, 74, 0.06);
  color: var(--navy);
  margin-bottom: 10px;
  transform: translateZ(24px);
}
.why__icon svg {
  width: 18px;
  height: 18px;
}
.why__title {
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 4px;
  color: var(--navy) !important;
  transform: translateZ(18px);
}
.why__text {
  color: var(--slate);
  font-size: 13.5px;
  line-height: 1.4;
  transform: translateZ(12px);
}

/* ---------- testimonials (section 5) ---------- */
.testimonials__slider {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}
.testimonials__track {
  position: relative;
  min-height: 260px;
}
.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px) scale(0.98);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}
.testimonial.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}
.testimonial.is-leaving {
  transform: translateX(-30px) scale(0.98);
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.35;
  color: var(--navy);
}
.testimonial__quote::before {
  content: "“";
  color: var(--lime-dark);
  margin-right: 2px;
}
.testimonial__quote::after {
  content: "”";
  color: var(--lime-dark);
}
.testimonial__who {
  margin-top: 22px;
  font-size: 14px;
  color: var(--slate);
}
.testimonial__who strong {
  color: var(--ink);
  display: block;
  font-size: 15px;
}
.testimonials__controls {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.testimonials__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(11, 30, 74, 0.2);
  background: var(--white);
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.testimonials__btn:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.testimonials__btn svg {
  width: 18px;
  height: 18px;
}
.testimonials__dots {
  display: flex;
  gap: 8px;
}
.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(11, 30, 74, 0.2);
  transition: width 0.3s, background 0.3s;
}
.testimonials__dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--lime-dark);
}

/* ---------- why + clients share one continuous dark page ---------- */
.why {
  padding-bottom: clamp(28px, 4vw, 48px);
}

/* ---------- clients logo marquee ---------- */
.clients {
  padding-top: clamp(12px, 2vw, 24px);
  padding-bottom: clamp(64px, 8vw, 100px);
  overflow: hidden;
}
.clients__head {
  margin-bottom: clamp(36px, 5vw, 56px);
}
.clients__banner {
  text-align: center;
  width: min(960px, 100%);
  max-width: none;
  margin-inline: auto;
  padding: clamp(32px, 4.5vw, 52px) clamp(28px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}
.clients__banner-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--white);
}
.clients__banner-line {
  display: block;
}
.clients__marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  animation: clients-marquee 70s linear infinite;
}
.clients--static .clients__track {
  animation: none;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.clients__item {
  flex: none;
  display: grid;
  place-items: center;
  width: 220px;
  height: 128px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(11, 30, 74, 0.06);
  box-shadow: 0 10px 28px -18px rgba(7, 21, 53, 0.35);
}
.clients__logo {
  max-width: 100%;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes clients-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .clients__track {
    animation: none;
  }
}
@media (max-width: 640px) {
  .clients__item {
    width: 180px;
    height: 108px;
    padding: 8px 12px;
  }
  .clients__logo {
    max-height: 80px;
  }
  .clients__track {
    gap: 12px;
    animation-duration: 55s;
  }
}

/* ---------- contact (section 6) ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 14ch;
}
@media (min-width: 641px) {
  .contact__title span {
    white-space: nowrap;
  }
}
.contact__title span {
  display: block;
}
.contact__title em {
  font-style: normal;
  color: var(--lime);
}
.contact__text {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.5;
  max-width: 36ch;
}
.contact__meta {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 18px 48px;
  justify-content: start;
}
.contact__meta-item span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201, 214, 234, 0.75);
  margin-bottom: 6px;
}
.contact__meta-item a {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.contact__meta-item a:hover {
  border-color: var(--lime);
}
.contact__form {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: clamp(26px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  backdrop-filter: blur(8px);
}
.contact__form-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 4px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.88);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9d6ea' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.field select:invalid,
.field select option[value=""] {
  color: rgba(255, 255, 255, 0.4);
}
.field select option {
  color: var(--ink);
  background: var(--white);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.25);
  background: rgba(255, 255, 255, 0.09);
}
.contact__submit {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  margin-top: 6px;
  padding: 16px 24px;
  font-size: 16px;
  gap: 10px;
}
.contact__submit-arrow {
  font-size: 1.05em;
  line-height: 1;
}
.contact__privacy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.contact__status {
  grid-column: 1 / -1;
  font-size: 14px;
  min-height: 1.4em;
  color: var(--lime);
}
.contact__status.is-error {
  color: var(--coral);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 48px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.footer__blurb {
  margin-top: 16px;
  font-size: 14px;
  max-width: 48ch;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: flex-end;
  font-size: 14px;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}
.footer__links a:hover {
  color: var(--lime);
  border-color: var(--lime);
}
.footer__bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .phases__layout {
    grid-template-columns: 1fr;
  }
  .phases__layout .section-head {
    margin-bottom: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--navy);
    z-index: 101;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease-out);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  }
  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .site-nav__link {
    padding: 12px 10px;
    font-size: 16px;
  }
  .site-nav__cta {
    margin: 10px 0 0;
    justify-self: start;
  }
  .site-header {
    background: rgba(11, 30, 74, 0.86);
    backdrop-filter: blur(14px);
  }
  .nav-toggle {
    margin-right: -8px;
  }
  .cover__inner {
    max-width: none;
    margin-right: var(--gutter);
  }
  .cover--animated {
    align-items: flex-start;
  }
  .cover--animated .cover__inner {
    padding-bottom: 42vh;
  }
  /* tablets: text in the upper part, person lower-right so they don't overlap */
  .hero {
    align-items: flex-start;
  }
  .hero__inner {
    max-width: none;
    margin-right: var(--gutter);
    padding-top: 56px;
    padding-bottom: 42vh;
    transform: none;
  }
  .hero__layer--person-wrap {
    left: 50% !important;
    height: 64% !important;
    bottom: -1%;
  }
  .hero__glow {
    background:
      linear-gradient(180deg, rgba(7, 21, 53, 0.9) 0%, rgba(7, 21, 53, 0.75) 45%, rgba(7, 21, 53, 0.3) 65%, rgba(7, 21, 53, 0.96) 100%);
  }
  .contact__grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__links {
    justify-content: flex-start;
  }
  .why__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  :root {
    --header-h: 64px;
    --radius: 14px;
  }
  body {
    font-size: 15px;
  }
  .section {
    padding-block: 64px;
  }
  .phases {
    padding-top: 18px;
  }
  .phases .section-head {
    margin-bottom: 16px;
  }
  .help {
    padding-top: 32px;
  }
  #how-we-help .section-head {
    margin-bottom: 16px;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .section-title {
    font-size: 30px;
    max-width: none;
  }
  .phases .section-lead {
    font-size: 3.7cqi;
    margin-bottom: 18px;
  }
  .phases .section-title {
    font-size: 26px;
  }
  .section-subtitle {
    font-size: 16px;
  }
  .eyebrow {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .hero .eyebrow {
    font-size: 17px;
    margin-bottom: 28px;
  }
  .cover__eyebrow {
    font-size: 16px;
    margin-bottom: 22px;
  }
  .cover__title {
    font-size: clamp(34px, 9vw, 44px);
    max-width: none;
  }
  .cover__body {
    font-size: 16px;
    margin-top: 28px;
    max-width: none;
  }
  .cover__inner {
    margin-left: var(--gutter);
    margin-right: var(--gutter);
    padding-top: 40px;
  }
  .cover__scroll {
    bottom: 14px;
  }

  /* header */
  .brand__logo {
    width: 38px;
    height: 38px;
  }
  .brand__name {
    font-size: 18px;
  }
  .brand__tagline {
    display: none;
  }
  .site-nav {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav__link {
    padding: 14px 10px;
    font-size: 17px;
    border-radius: 10px;
  }
  .site-nav__cta {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  /* hero: text on top, person lower-right, strong top-down darkening */
  .hero {
    min-height: 100svh;
    align-items: flex-start;
  }
  .hero__inner {
    padding-top: 40px;
    padding-bottom: 46vh; /* leave the lower part of the hero to the person */
    max-width: none;
    margin-left: var(--gutter);
    margin-right: var(--gutter);
  }
  .hero__top-title {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .hero__title {
    font-size: clamp(22px, 5.6vw, 26px);
    line-height: 1.3;
  }
  .hero__title span:last-child {
    font-size: clamp(28px, 7.2vw, 34px);
  }
  .hero__title span {
    text-wrap: balance;
  }
  .hero__subtitle {
    font-size: clamp(22px, 5.6vw, 26px);
    margin-top: 36px;
  }
  .hero__scroll {
    bottom: 14px;
    padding: 8px 14px;
  }
  .scroll-hint__text {
    font-size: 11px;
  }
  .section__scroll {
    margin-top: 28px;
  }
  .phases .section__scroll {
    margin-top: 12px;
  }
  .hero__media-el {
    object-position: 62% center;
  }
  .hero__layer--bg {
    object-position: 70% center;
  }
  .hero__layer--person-wrap {
    left: 42% !important;
    height: 56% !important;
    bottom: -1%;
  }
  .hero__layer--handglow {
    display: none;
  }
  .hero__glow {
    background:
      linear-gradient(180deg, rgba(7, 21, 53, 0.9) 0%, rgba(7, 21, 53, 0.78) 42%, rgba(7, 21, 53, 0.35) 65%, rgba(7, 21, 53, 0.97) 100%);
  }

  /* phases / bottleneck flow */
  .flow__phase {
    grid-template-columns: auto auto auto;
    grid-template-areas:
      "cap cap cap"
      "before arrow after";
    justify-content: center;
    justify-items: center;
    gap: 10px 12px;
    margin-top: 28px;
    padding-bottom: 0;
    min-height: 88px;
  }
  .flow__cap--left,
  .flow__cap--right,
  .flow__cap--mid {
    grid-area: cap;
    position: relative;
    inset: auto;
    transform: none;
    width: auto;
    max-width: 22ch;
    text-align: center;
    white-space: normal;
    font-size: 14px;
    line-height: 1.35;
    padding-inline: 8px;
    margin-top: 0;
    align-self: center;
    justify-self: center;
  }
  .flow__pill--before {
    grid-area: before;
  }
  .flow__arrow {
    grid-area: arrow;
    min-width: 36px;
    width: 36px;
    align-self: center;
  }
  .flow__pill--after {
    grid-area: after;
  }
  .flow__pill {
    font-size: 11px;
    padding: 6px 10px;
  }
  .phases__stuck {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .phase {
    padding: 18px 18px 20px 24px;
  }
  .phase__head {
    margin-bottom: 10px;
  }
  /* why */
  .why__grid {
    gap: 12px;
  }
  .why__card {
    padding: 14px 14px 14px 18px;
  }
  .why__title {
    font-size: 16px;
  }

  /* testimonials */
  .testimonials__track {
    min-height: 0;
  }
  .testimonial {
    padding: 22px 20px;
  }
  .testimonial__quote {
    font-size: 18px;
  }
  .testimonials__btn {
    width: 44px;
    height: 44px;
  }

  /* contact: 16px inputs stop iOS from zooming on focus */
  .contact__form {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 12px;
  }
  .field--full {
    grid-column: 1;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
    padding: 13px 14px;
  }
  .contact__title {
    max-width: none;
    font-size: clamp(32px, 9vw, 42px);
  }
  .contact__submit {
    width: 100%;
    padding: 15px;
    font-size: 16px;
  }
  .contact__text {
    font-size: 16px;
    max-width: none;
  }
  .contact__meta {
    margin-top: 26px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact__meta-item a {
    font-size: 16px;
    word-break: break-all;
  }

  /* footer */
  .site-footer {
    padding-block: 36px 28px;
  }
  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
  .footer__links a {
    padding: 4px 0;
  }
}

/* very small phones */
@media (max-width: 380px) {
  .hero__layer--person-wrap {
    left: 48% !important;
    height: 50% !important;
  }
}

/* short landscape phones: don't force a full-height cover/hero */
@media (max-height: 520px) and (orientation: landscape) {
  .cover,
  .hero {
    min-height: 0;
    padding-bottom: 48px;
  }
  .cover__inner,
  .hero__inner {
    padding-bottom: 24px;
  }
  .hero__layer--person-wrap {
    height: 85% !important;
    left: 58% !important;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal],
  .cover [data-stagger],
  .hero [data-stagger] {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .hero__media-el--kenburns,
  .hero__layer--person,
  .hero__layer--handglow,
  .scroll-hint,
  .scroll-hint__chevrons i {
    animation: none;
  }
  .tilt {
    transition: none;
  }
  .scroll-hint__chevrons i {
    opacity: 1;
  }
  .cover__scroll,
  .hero__scroll {
    transform: translateX(-50%);
  }
}

