/* =========================================================
   True North Strategy & Consulting
   Palette — Minnesota state flag:
     Navy   #002B5C   (field)
     Sky    #58C8E7   (fly)
     White  #FFFFFF   (star)
   ========================================================= */

:root {
  --navy: #002B5C;
  --navy-deep: #001835;
  --navy-mid: #0A3A73;
  --sky: #58C8E7;
  --sky-soft: #EAF7FC;
  --sky-mist: #F5FBFE;
  /* accessible accent: teal-deep passes 4.5:1 on white for text */
  --teal-deep: #1D7A85;
  --white: #FFFFFF;
  --ink: #12263F;
  --ink-soft: #44586F;
  --line: rgba(0, 43, 92, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* anchor jumps land clear of the fixed header (2.4.3) */
  scroll-padding-top: 5.5rem;
}

/* Visible focus for keyboard users on every surface (2.4.7 / 1.4.11).
   Two-tone ring: the white inner ring carries contrast on dark surfaces,
   the navy-mid outer ring on light ones, so no composited background can
   drop the indicator below 3:1. */
:focus-visible {
  outline: 3px solid var(--navy-mid);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
}

/* Screen-reader-only utility */
.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: first tab stop, hidden until focused (2.4.1) */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible,
.skip-link:focus {
  transform: none;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

::selection { background: var(--sky); color: var(--navy); }

/* =========== Preloader =========== */
/* .js (set inline in <head>) shows the overlay from first paint; the CSS
   failsafe animation self-dismisses it even if js/main.js never loads. */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy);
  display: none;
  place-items: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.js .preloader {
  display: grid;
  animation: preloaderFailsafe 0.5s ease 3s forwards;
}
@keyframes preloaderFailsafe { to { opacity: 0; visibility: hidden; } }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__star-shape {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: starDraw 1.1s var(--ease-out) forwards;
}
@keyframes starDraw { to { stroke-dashoffset: 0; } }

/* =========== Header =========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 130;
  padding: 0.75rem 0;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.header.is-solid {
  /* Solid, not translucent: WebKit fails to paint alpha backgrounds on this
     fixed header (verified: 0.98 alpha lets page text bleed through the nav
     on Safari engines; opaque renders correctly). The blur served no purpose
     at full opacity and was itself implicated, so it is gone. */
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(0, 24, 53, 0.08);
  padding: 0.45rem 0;
}
.header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Brand lockup: the light logo shows over the hero, the dark one over the
   solid (scrolled) header. Both are stacked so the swap is a clean crossfade. */
.brand {
  display: block;
  position: relative;
  flex: none;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out);
}
.brand:hover { transform: translateY(-1px); }
.brand__logo {
  display: block;
  height: 60px;
  width: auto;
  transition: opacity 0.4s;
}
.brand__logo--dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.header.is-solid .brand__logo--light { opacity: 0; }
.header.is-solid .brand__logo--dark { opacity: 1; }

.brand--footer .brand__logo { height: 56px; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav__link {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  padding: 0.6rem 0;
  transition: color 0.4s;
}
.header.is-solid .nav__link { color: var(--ink-soft); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header.is-solid .nav__link.is-active { color: var(--navy); }

.nav__cta {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.62rem 1.3rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s;
}
.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(88, 200, 231, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  z-index: 120;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: currentColor;
  color: var(--white);
  transition: transform 0.35s var(--ease-out), opacity 0.3s, background 0.4s;
}
.header.is-solid .nav-toggle span { color: var(--navy); background: var(--navy); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Header over the open mobile menu: stay transparent, force light colors */
body.menu-open .header {
  background: transparent;
  box-shadow: none;
}
/* Over the open (dark) menu the light logo must win, even if the header
   had been scrolled into its solid state. */
body.menu-open .header .brand__logo--light,
body.menu-open .header.is-solid .brand__logo--light { opacity: 1; }
body.menu-open .header .brand__logo--dark,
body.menu-open .header.is-solid .brand__logo--dark { opacity: 0; }
body.menu-open .header .nav-toggle span,
body.menu-open .header.is-solid .nav-toggle span { color: var(--white); background: var(--white); }

/* =========== Mobile menu =========== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--navy-deep);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  /* visibility flips instantly on open (so focus can move in) and after the fade on close */
  transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease-out), visibility 0s;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 1.4rem; text-align: center; }
.mobile-menu__nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu__nav a:hover { color: var(--sky); }
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 0.38s; }
.mobile-menu__cta { color: var(--sky) !important; }

/* =========== Buttons =========== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}
.btn--ghost {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-3px); }
.btn--sm { padding: 0.7rem 1.5rem; font-size: 0.85rem; }
.btn--lg { padding: 1.1rem 2.4rem; font-size: 1rem; }

/* =========== Hero =========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 55%, #003A75 100%);
  color: var(--white);
  overflow: hidden;
}
.hero__chevron {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  background: linear-gradient(135deg, rgba(88, 200, 231, 0.16), rgba(88, 200, 231, 0.05) 60%);
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 32% 100%, 0 50%);
  pointer-events: none;
}
.hero__starfield, .contact__starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__starfield .dot, .contact__starfield .dot {
  position: absolute;
  border-radius: 50%;
  background: var(--white);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.65; }
}
.hero__star {
  position: absolute;
  right: clamp(-6rem, 2vw, 6rem);
  top: 50%;
  translate: 0 -50%;
  width: clamp(300px, 42vw, 620px);
  color: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  /* bottom padding keeps the CTAs clear of the scroll cue at common
     laptop heights */
  padding: clamp(7rem, 16vh, 10rem) var(--gutter) 7.75rem;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: clamp(0.92rem, 0.78rem + 0.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.8rem;
}
.hero__eyebrow-line { width: 44px; height: 1.5px; background: var(--sky); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  /* rem term keeps the size tracking user font-size settings (1.4.4) */
  font-size: clamp(2.6rem, calc(1.2rem + 4.7vw), 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 1.8rem;
  max-width: 14em;
  overflow-wrap: break-word;
}
.hero__title-line { display: block; }
/* reveal clipping only while the JS intro runs; released after (1.4.12) */
.js-anim .hero__title-line {
  overflow: hidden;
  /* room for descenders (y, g, p) inside the overflow-hidden reveal wrapper */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.js-anim .hero--intro-done .hero__title-line { overflow: visible; }
.hero__title-line > span { display: block; text-wrap: balance; }
.hero__title--long {
  font-size: clamp(1.85rem, calc(0.9rem + 2.3vw), 3.25rem);
  line-height: 1.16;
  max-width: 23em;
}
/* the former headline lives on as a signature line under the tagline */
.hero__sub.hero__sub--signature {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.6vw, 1.4rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: none;
}
.hero__sub.hero__sub--signature em {
  font-style: normal;
  color: var(--sky);
  font-weight: 500;
}
.hero__title-line--accent { color: var(--sky); font-weight: 500; }
.hero__sub {
  max-width: 560px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.6rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  z-index: 2;
}
.hero__scroll-text {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero__scroll-line {
  width: 1.5px; height: 48px;
  background: rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sky);
  animation: scrollDrip 2s var(--ease-out) infinite;
}
@keyframes scrollDrip {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
/* On short viewports the cue would collide with the hero CTAs */
@media (max-height: 820px) {
  .hero__scroll { display: none; }
}

/* =========== Stats =========== */
.stats {
  background: var(--navy-deep);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.4rem 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.stat__number {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, calc(1.2rem + 3vw), 3.6rem);
  font-weight: 500;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat__suffix { font-size: 0.45em; font-weight: 600; }
.stat__label {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 24ch;
  display: block;
}

/* =========== Sections (shared) =========== */
.section { padding: clamp(5rem, 11vw, 8.5rem) 0; position: relative; }
.section--light { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--sky { background: var(--sky-mist); }

.section__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section__eyebrow::before {
  content: "";
  width: 36px; height: 1.5px;
  background: var(--sky);
}
.section__eyebrow--sky { color: var(--sky); }
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance; /* no single-word last lines in display type */
  font-size: clamp(1.9rem, calc(1rem + 2.4vw), 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.section__title--onNavy { color: var(--white); }

.section__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.section__intro { position: sticky; top: 7rem; }
.section__body p + p { margin-top: 1.3rem; }
.section__body { color: var(--ink-soft); }
.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--navy);
  font-weight: 500;
}

/* =========== Marquee =========== */
.marquee {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  border-block: 1px solid var(--line);
  padding: 1.35rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--navy-mid);
  white-space: nowrap;
}
.marquee__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sky); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* =========== Why Now =========== */
.why { overflow: hidden; }
.why__chevron {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 34%;
  background: linear-gradient(115deg, rgba(88, 200, 231, 0.14), transparent 70%);
  clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%);
  pointer-events: none;
}
.why__statement {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
  font-size: clamp(1.7rem, calc(0.9rem + 2.6vw), 3rem);
  line-height: 1.28;
  max-width: 21em;
  margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  z-index: 1;
}
.why__statement .w {
  /* unlit floor stays >=3:1 on navy for large text (1.4.3); 0.18 computed 1.72:1 */
  opacity: 0.45;
  display: inline-block;
  transition: opacity 0.4s ease;
}
.why__statement .w.is-lit { opacity: 1; }
.why__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  position: relative;
  z-index: 1;
}
.why__cols p {
  border-top: 1.5px solid rgba(88, 200, 231, 0.4);
  padding-top: 1.4rem;
}

/* "When organizations call us" scenario grid */
.why__cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  position: relative;
  z-index: 1;
}
.why__case {
  border-top: 1.5px solid rgba(88, 200, 231, 0.4);
  padding-top: 1.4rem;
}
.why__case h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
  text-wrap: balance;
}
.why__case p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
}

/* =========== Services =========== */
.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
}
.services__intro { color: var(--ink-soft); max-width: 46ch; justify-self: end; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.card {
  position: relative;
  background: var(--sky-mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem 2rem;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(0, 43, 92, 0.14);
  border-color: rgba(88, 200, 231, 0.7);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.card:hover::before { transform: scaleX(1); }
.card__num {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: rgba(0, 43, 92, 0.66); /* 4.80:1 on the card background (1.4.3) */
  font-weight: 600;
}
.card__icon {
  width: 44px; height: 44px;
  color: var(--navy-mid);
  margin-bottom: 1.4rem;
  transition: transform 0.45s var(--ease-out), color 0.45s;
}
.card:hover .card__icon { transform: translateY(-3px) scale(1.06); color: var(--navy); }
.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.card__text { font-size: 0.92rem; color: var(--ink-soft); }
.card__text + .card__text { margin-top: 0.8rem; }
.card__list {
  margin: 0.6rem 0 0 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.3rem;
}
.card__list li::marker { color: var(--teal-deep); }
.card__bestfor {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.card__bestfor strong { color: var(--navy); }

.card--cta {
  background: var(--navy);
  border-color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.card--cta .card__title { color: var(--white); }
.card--cta .card__text { color: rgba(255, 255, 255, 0.75); margin-bottom: 1rem; }
.card--cta .btn { margin-top: auto; }
.card--cta:hover { box-shadow: 0 26px 60px rgba(0, 24, 53, 0.35); }

/* Closing CTA spans the full grid width beneath the four products.
   Must come after .card--cta so the row layout wins. */
.card--cta-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding: 1.9rem;
}
.card--cta-wide .card__title { margin-bottom: 0; flex: 0 0 auto; }
.card--cta-wide .card__text { margin-bottom: 0; flex: 1 1 300px; }
.card--cta-wide .btn { margin-top: 0; flex: 0 0 auto; }

/* =========== Advantage =========== */
.advantage__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.advantage__sticky { position: sticky; top: 7rem; }
.advantage__lead { color: rgba(255, 255, 255, 0.78); margin-top: 1.2rem; }
.advantage__list { list-style: none; display: grid; gap: 0; }
.advantage__item {
  display: flex;
  gap: 1.3rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.advantage__item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.advantage__marker {
  width: 22px;
  height: 2px;
  margin-top: 0.85rem;
  background: var(--sky);
  flex: none;
}
.advantage__item h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.advantage__item p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); }
.advantage__item p + p { margin-top: 0.55rem; }
.advantage__lead + .advantage__lead { margin-top: 0.9rem; }

/* =========== Who We Help =========== */
.serve__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
.serve__item p + p { margin-top: 0.8rem; }
.serve__item {
  border-top: 2px solid var(--sky);
  padding-top: 1.6rem;
}
.serve__index {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--teal-deep); /* 5.03:1 on white; sky was 1.94:1 (1.4.3) */
  font-weight: 600;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.9rem;
}
.serve__item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.serve__item p { font-size: 0.94rem; color: var(--ink-soft); }

/* =========== Founder =========== */
.founder__grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.founder__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 43, 92, 0.25);
}
.founder__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88, 200, 231, 0.25), transparent 55%);
}
/* real portrait sits above the gradient/sheen layer */
.founder__photo img { z-index: 1; }
.founder__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.founder__role {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin: -0.4rem 0 1.4rem;
}
.founder__bio p:not(.section__eyebrow):not(.founder__role) {
  color: var(--ink-soft);
}
.founder__bio p + p { margin-top: 1.2rem; }

/* =========== Team (practitioners) =========== */
.team__intro { margin-bottom: clamp(3rem, 6vw, 5rem); }
.team__intro-text {
  max-width: 62ch;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}
.team { margin-top: clamp(4rem, 9vw, 7rem); }
/* headshot placeholder until the photo arrives: monogram on the brand gradient */
.team__photo.team__photo--pending {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.team__photo.team__photo--pending span {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.team__member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.team__member:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0, 43, 92, 0.13);
}
.team__photo {
  aspect-ratio: 3 / 2;
  background: var(--navy);
  overflow: hidden;
}
.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.team__body { padding: 1.8rem 1.8rem 2rem; }
.team__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.team__role {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 1.1rem;
}
.team__body p:not(.team__role) { font-size: 0.93rem; color: var(--ink-soft); }
.team__body p + p { margin-top: 1rem; }
.team__note {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* =========== Contact =========== */
.contact {
  position: relative;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 70%);
  color: var(--white);
  padding: clamp(6rem, 13vw, 10rem) 0;
  text-align: center;
  overflow: hidden;
}
.contact__inner { position: relative; z-index: 1; }
.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.3rem;
}
.contact__text {
  max-width: 560px;
  margin: 0 auto 1.4rem;
  color: rgba(255, 255, 255, 0.78);
}
.contact__text:last-of-type { margin-bottom: 2.6rem; }
.contact__legal {
  margin-top: 1.8rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

/* =========== Footer =========== */
.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__nav a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.3s;
  /* enlarged hit area without visual change */
  padding: 0.5rem 0.25rem;
  margin: -0.5rem -0.25rem;
}
.footer__nav a:hover { color: var(--sky); }
.footer__legal {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  line-height: 1.7;
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline; /* link not distinguished by color alone (1.4.1) */
  text-underline-offset: 2px;
}
.footer__legal a:hover { color: var(--sky); }

/* =========== Motion pause control (2.2.2) =========== */
.motion-toggle {
  display: none;
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 95;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(88, 200, 231, 0.55);
  background: rgba(0, 24, 53, 0.85);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.js-anim .motion-toggle,
.js-late .motion-toggle { display: flex; }
/* Until the viewport truly clears the button (62px needed; gutters cap at
   48px below ~1280px), the floating button would sit on top of the text
   column or footer, so it docks beside the marquee band it governs. */
@media (max-width: 1280px) {
  .motion-toggle {
    position: absolute;
    right: var(--gutter);
    bottom: 0.85rem;
    width: 40px;
    height: 40px;
  }
}
.motion-toggle:hover { background: var(--navy); border-color: var(--sky); }
.motion-toggle svg { width: 18px; height: 18px; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon--pause { display: none; }
.motion-toggle[aria-pressed="false"] .motion-toggle__icon--play { display: none; }

/* one class pauses every ambient animation; GSAP tweens paused in JS */
body.motion-paused .marquee__track,
body.motion-paused .hero__starfield .dot,
body.motion-paused .contact__starfield .dot,
body.motion-paused .hero__scroll-line::after {
  animation-play-state: paused;
}

/* =========== Reveal (JS-driven) =========== */
.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
}

/* =========== Responsive =========== */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .brand__logo { height: 46px; }
  .brand--footer .brand__logo { height: 46px; }
  .section__grid, .advantage__grid, .founder__grid { grid-template-columns: 1fr; }
  .section__intro, .advantage__sticky { position: static; }
  .services__head { grid-template-columns: 1fr; }
  .services__intro { justify-self: start; }
  .why__cols { grid-template-columns: 1fr; }
  .why__cases { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .serve__grid { grid-template-columns: 1fr; }
  .founder__portrait { max-width: 380px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__legal { text-align: left; }
}
@media (max-width: 620px) {
  .services__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__star { opacity: 0.5; }
  .hero__scroll { display: none; }
  .hero__content { padding-bottom: 4rem; }
  .brand__logo { height: 40px; }
  .brand--footer .brand__logo { height: 42px; }
  /* long email CTA must never overflow the viewport (1.4.10);
     break-word + the <wbr> after info@ give it a clean break point
     instead of orphaning single letters */
  .btn--lg {
    max-width: 100%;
    overflow-wrap: break-word;
    padding: 1rem 1.4rem;
    font-size: 0.92rem;
  }
}
@media (max-width: 430px) {
  .btn--lg { font-size: 0.85rem; padding: 0.95rem 1.2rem; }
}
@media (max-width: 360px) {
  .btn--lg { font-size: 0.78rem; }
}

/* =========== Reduced motion =========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  .js-anim [data-reveal] { opacity: 1; transform: none; }
  .why__statement .w { opacity: 1; }
  /* nothing is moving, so the pause control is meaningless here */
  .motion-toggle { display: none !important; }
}
