/* =====================================================================
   Laminar Growth Partners — site styles
   Brand values live in colors_and_type.css (copied from the design system).
   This file maps them onto the layout. Change brand colours there, not here.
   ===================================================================== */
:root {
  /* Surfaces */
  --surface-dark-deep: var(--navy-950);   /* footer */
  --surface-dark: var(--navy-900);        /* hero, kinetic, CTA card */
  --surface-dark-raised: var(--navy-800);
  --surface-light: var(--paper);          /* default light section */
  --surface-light-warm: var(--paper-warm);
  --surface-card: var(--white);

  /* Laminar flow dots + atmospheric glow (hex values — read by main.js).
     Kept quiet on purpose: the brand guide rules out neon glows. */
  --particle-a: #315A43;                  /* green-600, back of sphere */
  --particle-b: #A8C2B1;                  /* green-300, front of sphere */
  --particle-accent: #C89E2D;             /* gold — the sun */
  --glow: rgba(74, 122, 93, 0.16);

  /* Type sizes for this layout */
  --text-display: clamp(2.5rem, 1.2rem + 4.4vw, 5.25rem);
  --text-heading-lg: clamp(2rem, 1.3rem + 2.3vw, 3.25rem);
  --text-heading: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  --text-story: clamp(2.25rem, 1.2rem + 4vw, 5.5rem);

  /* Layout */
  --gutter: clamp(16px, 4vw, 32px);
  --section-gap: clamp(64px, 9vw, 128px);
  --card-pad: clamp(24px, 3vw, 32px);
  --header-height: 76px;
}

/* Light and dark scopes: flip the semantic text colours from the design system */
.on-light {
  background-color: var(--surface-light);
  color: var(--fg-2);
}
.on-dark {
  --fg-1: #FFFFFF;
  --fg-2: rgba(251, 250, 247, 0.78);
  --fg-3: rgba(251, 250, 247, 0.62);
  --fg-4: rgba(251, 250, 247, 0.45);
  --hairline: rgba(251, 250, 247, 0.12);
  --hairline-strong: rgba(251, 250, 247, 0.22);
  --accent: var(--green-300);
  background-color: var(--surface-dark);
  color: var(--fg-2);
}
.section-white { background-color: var(--surface-card); }
.section-warm { background-color: var(--surface-light-warm); }

/* =====================================================================
   BASE
   ===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--surface-light);
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a, a:hover { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-md);
  background: var(--paper); color: var(--navy-800); font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* =====================================================================
   TYPOGRAPHY
   Headings: Inter 600, tight tracking. Kinetic text + stats: Archivo Narrow.
   Sentence case everywhere except 12px eyebrow labels.
   ===================================================================== */
.display,
.heading-lg,
.heading {
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  text-wrap: balance;
}
/* h1.display is uppercase Archivo Narrow in colors_and_type.css; the marketing
   kit sets the hero in Inter, sentence case — match that here.
   For the condensed uppercase look instead, delete the next rule. */
h1.display { font-family: var(--font-sans); text-transform: none; }
.display    { font-size: var(--text-display);    line-height: 1.05; letter-spacing: -0.03em; }
.heading-lg { font-size: var(--text-heading-lg); line-height: 1.1;  letter-spacing: -0.025em; }
.heading    { font-size: var(--text-heading);    line-height: 1.2;  letter-spacing: -0.015em; }

.lead {
  color: var(--fg-1);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* .eyebrow base comes from colors_and_type.css; add the gold underline */
.eyebrow {
  display: inline-block;
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--gold-600);
  line-height: 1.4;
}
.eyebrow-plain { padding-bottom: 0; border-bottom: 0; }
.eyebrow-gold { color: var(--gold-500); }

/* =====================================================================
   BUTTONS + LINKS  (4px radius, darken on hover, no lift)
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.btn-arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary { background-color: var(--green-700); color: var(--white); }
.btn-primary:hover { background-color: var(--green-800); color: var(--white); }
.btn-primary:active { background-color: var(--green-900); }

.btn-secondary { border-color: var(--navy-800); color: var(--navy-800); }
.btn-secondary:hover { background-color: var(--navy-800); color: var(--white); }

.btn-inverse { background-color: var(--paper); color: var(--navy-800); }
.btn-inverse:hover { background-color: var(--navy-100); color: var(--navy-800); }
.btn-inverse:active { background-color: var(--navy-200); }

.btn-outline-light { border-color: rgba(251, 250, 247, 0.4); color: var(--paper); }
.btn-outline-light:hover { background-color: var(--paper); border-color: var(--paper); color: var(--navy-800); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.icon-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--green-700);
  color: var(--white);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.icon-btn svg { transition: transform var(--dur-base) var(--ease-out); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  color: var(--fg-1);
  font-size: 15px;
  font-weight: var(--fw-semibold);
}
.text-link:hover .icon-btn { background: var(--green-800); }
.text-link:hover .icon-btn svg { transform: translateX(2px); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.site-header.is-scrolled,
.site-header.nav-open {
  background-color: var(--surface-dark);
  background-color: color-mix(in srgb, var(--surface-dark) 88%, transparent);
  border-bottom-color: var(--hairline);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
}

.logo { display: inline-flex; justify-self: start; }
.logo img { width: auto; height: 40px; }

.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: var(--fw-medium);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--fg-1); }
.nav-link:hover::after { transform: scaleX(1); background: var(--hairline-strong); }
.nav-link.is-active { color: var(--fg-1); }
.nav-link.is-active::after { transform: scaleX(1); background: var(--gold-600); }

.header-cta { justify-self: end; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 1.5px;
  background: var(--paper);
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-of-type  { transform: translateY(-3.75px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(100vh, 760px);
  min-height: max(100svh, 760px);
  padding-top: calc(var(--header-height) + clamp(56px, 11vh, 128px));
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(55% 45% at 50% 100%, var(--glow), transparent 70%),
    radial-gradient(50% 40% at 50% 0%, var(--surface-dark-raised), transparent 80%);
}

/* Laminar flow field across the lower part of the hero */
.hero-flow {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -2;
  width: 100%;
  height: 46%;
  /* dots dissolve toward the top so they never compete with the buttons */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 12%;
  background: linear-gradient(to bottom, transparent, var(--surface-dark));
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-content .eyebrow { align-self: center; }
.hero-title span { display: block; }
.hero-title .accent { color: var(--green-300); }
.hero-sub {
  max-width: 64ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* =====================================================================
   CLIENT LOGOS
   ===================================================================== */
.logos-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 40px;
  border-bottom: 1px solid var(--hairline);
}
.logos-inner .eyebrow { color: var(--fg-3); }
.logo-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 36px 40px;
  align-items: center;
  justify-items: center;
}
.logo-list li {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 40px;
}
/* One flat navy tone for every mark: the logo file is used as a mask (shape only),
   so the colour comes from here, not from the file. */
.logo-mark {
  display: block;
  /* natural width = height × aspect ratio, but never wider than its grid cell */
  width: min(100%, calc(var(--h, 32px) * var(--ar, 3)));
  height: auto;
  aspect-ratio: var(--ar, 3);
  min-width: 0;
  background-color: var(--navy-800);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  opacity: 0.45;
  transition: opacity 220ms var(--ease-out);
}
.logo-list li:hover .logo-mark { opacity: 1; }

/* =====================================================================
   SECTIONS (shared)
   ===================================================================== */
.section { padding-block: var(--section-gap); }

/* =====================================================================
   ABOUT + STATS
   ===================================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
  margin-top: 24px;
}
/* sits right under the logo strip, so it needs less top space than a normal section */
.intro {
  padding-top: clamp(40px, 4.5vw, 64px);
  padding-bottom: clamp(40px, 4vw, 56px);
}
.intro-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 28px;
}
.intro-statement {
  max-width: 34ch;
  color: var(--fg-1);
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.625rem);
  font-weight: var(--fw-medium);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 64px);
  margin-top: clamp(56px, 7vw, 96px);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-strong);
}
.stat-value {
  color: var(--fg-1);
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.2rem + 2.6vw, 4.5rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat-value::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 16px;
  background: var(--gold-600);
}
.stat-label {
  color: var(--fg-1);
  font-size: 17px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}
.stat-detail {
  display: block;
  max-width: 34ch;
  margin-top: 4px;
  color: var(--fg-3);
  font-size: 15px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
}
.stats-tagline {
  margin-top: clamp(40px, 5vw, 64px);
  color: var(--fg-1);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* =====================================================================
   WHAT WE DO — stacked heading, three services side by side
   ===================================================================== */
.services { padding-top: clamp(48px, 5vw, 72px); }
.services-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.services-intro {
  max-width: 52ch;
  color: var(--fg-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(32px, 4vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-strong);
}
/* short gold accent sitting on the rule, the same device as the stats */
.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-600);
}
.service-title {
  color: var(--fg-1);
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.service-copy {
  font-size: 16px;
  line-height: 1.65;
}

/* =====================================================================
   KINETIC TEXT
   ===================================================================== */
/* Static layout first (no JS / reduced motion): it reads as normal text */
.story { position: relative; }
.story-sticky {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 60vw, 640px);
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 80px);
}
.story-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 90%, transparent 100%);
}
.story-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(32px, 5vw, 56px);
  text-align: center;
}

.story-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
  max-width: 1100px;
}
.story-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
}
.story-lead,
.story-final {
  color: var(--fg-1);
  font-size: var(--text-story);
  font-weight: var(--fw-semibold);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.story-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(20px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-words li {
  color: var(--green-300);
  font-size: clamp(1.125rem, 0.8rem + 1.5vw, 2.125rem);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.story-dots {
  color: var(--fg-4);
  letter-spacing: 0.02em;
  clip-path: inset(0 calc((1 - var(--dots, 1)) * 100%) 0 0);
}
.story-highlight {
  color: var(--fg-1);
  background: linear-gradient(var(--gold-600), var(--gold-600)) no-repeat 0 92% / var(--underline, 100%) 3px;
}

/* Animated: the section is tall, the stage pins, and scroll drives the sequence */
.story.is-animated { height: 460vh; }
.story.is-animated .story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding-block: 0;
}
/* all three beats share one spot and cross-fade */
.story.is-animated .story-stage { gap: 0; align-content: center; }
.story.is-animated .story-phase,
.story.is-animated .story-final { grid-area: 1 / 1; opacity: 0; }

/* each word pops: up, into focus, then dims when the next one arrives */
.story.is-animated .story-words li {
  opacity: 0;
  transform: translateY(0.5em) scale(0.96);
  filter: blur(8px);
  transition:
    opacity 420ms var(--ease-out),
    transform 420ms var(--ease-out),
    filter 420ms var(--ease-out),
    color 420ms var(--ease-out);
}
.story.is-animated .story-words li.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
.story.is-animated .story-words li.is-dim {
  opacity: 0.5;
  color: var(--paper);
}

/* the two closing lines share one spot: the first fades out, then the second lands */
.story.is-animated .story-final {
  display: grid;
  justify-items: center;
  gap: 0;
}
.story.is-animated .story-final-line { grid-area: 1 / 1; }
.story.is-animated .story-final-first {
  transform: scale(0.97);
  transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out);
}
.story.is-animated .story-final-first.is-shown { transform: none; }
.story.is-animated .story-final-last {
  opacity: 0;
  transform: translateY(0.25em);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}
.story.is-animated .story-final.is-landed .story-final-last { opacity: 1; transform: none; }
.story.is-animated .story-highlight { --underline: 0%; transition: background-size 700ms var(--ease-out) 300ms; }
.story.is-animated .story-final.is-landed .story-highlight { --underline: 100%; }

/* =====================================================================
   TEAM — founding partners (portrait placeholders) + growth partners
   ===================================================================== */
/* the CTA card carries its own generous padding, so close up the space before it */
.team { padding-bottom: clamp(32px, 4vw, 56px); }
#contact.section { padding-top: clamp(32px, 4vw, 56px); }

.team-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: clamp(28px, 3.2vw, 44px);
}
/* one shared introduction, running the width of the photos below */
.team-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 92ch;
  margin-top: 4px;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Portrait frame: navy placeholder with initials and a faint logo mark.
   Drop an <img> inside and it fills the frame instead. */
.partner-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
}
/* only on empty placeholder frames — never over a real photo */
.partner-photo:not(:has(img))::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -8%;
  width: 78%;
  aspect-ratio: 640 / 473;
  background: url("../assets/logo-mark-on-light.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.07;
  pointer-events: none;
}
.partner-photo span {
  color: rgba(251, 250, 247, 0.9);
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 5rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}
.partner-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* on the shorter mobile frame, keep the crop high enough to hold the head */
  object-position: 50% 35%;
}
.partner-name {
  color: var(--fg-1);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.partner-role {
  margin-top: 4px;
  color: var(--accent);
  font-size: 14px;
  font-weight: var(--fw-semibold);
}
/* name and role on the left, LinkedIn mark at the right edge of the photo */
.partner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.partner-linkedin {
  flex: none;
  display: inline-flex;
  color: var(--navy-400);
  transition: color var(--dur-fast) var(--ease-out);
}
.partner-linkedin svg { width: 24px; height: 24px; }
.partner-linkedin:hover { color: var(--navy-800); }

/* contact links under each partner */
.partner-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 14px 0 0;
  /* rule closes off each partner, running the full width of their photo */
  padding: 0 0 20px;
  border-bottom: 1px solid var(--hairline-strong);
  list-style: none;
}
.partner-contact a {
  display: inline-block;
  padding-bottom: 2px;
  color: var(--fg-2);
  font-size: 15px;
  background: linear-gradient(var(--gold-600), var(--gold-600)) no-repeat 0 100% / 0 2px;
  transition: color var(--dur-fast) var(--ease-out), background-size var(--dur-fast) var(--ease-out);
}
.partner-contact a:hover {
  color: var(--fg-1);
  background-size: 100% 2px;
}

.growth-partners {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 780px;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--hairline-strong);
}
.growth-copy {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
}
.expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.expertise-list li {
  padding: 8px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--fg-1);
  font-size: 14px;
  font-weight: var(--fw-medium);
}

/* =====================================================================
   LEGAL PAGE (disclaimer / privacy / cookies)
   ===================================================================== */
.legal { padding-top: calc(var(--header-height) + clamp(48px, 6vw, 88px)); }
.legal-title { margin-top: 20px; }
.legal-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--hairline-strong);
}
.legal-section p { max-width: 72ch; font-size: 17px; line-height: 1.7; }
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover { color: var(--accent-hover); }
.legal-updated {
  margin-top: clamp(40px, 5vw, 64px);
  color: var(--fg-3);
  font-size: 14px;
}

/* =====================================================================
   CTA (dark block on light section)
   ===================================================================== */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 88px);
  border-radius: var(--radius-xl);
}
.cta-watermark {
  position: absolute;
  right: -6%;
  bottom: -18%;
  z-index: -1;
  width: min(560px, 70%);
  height: auto;
  opacity: 0.06;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 720px;
}
.cta-copy { max-width: 52ch; font-size: 17px; line-height: 1.6; }
.cta .btn { margin-top: 10px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 104px);
  background-color: var(--surface-dark-deep);
}
.footer-watermark {
  position: absolute;
  right: -4%;
  bottom: -30%;
  z-index: -1;
  width: min(760px, 90vw);
  height: auto;
  opacity: 0.04;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.footer-brand p { max-width: 30ch; margin-top: 20px; font-size: 15px; }
.footer-col .eyebrow { color: var(--fg-3); }
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.footer-col a,
.footer-bottom a {
  font-size: 15px;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: color var(--dur-fast) var(--ease-out), background-size var(--dur-fast) var(--ease-out);
}
.footer-col a:hover,
.footer-bottom a:hover { color: var(--fg-1); background-size: 100% 1px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}
.footer-bottom p { color: var(--fg-3); font-size: 14px; }
.footer-bottom ul { display: flex; gap: 24px; }
.footer-bottom a { font-size: 14px; }

/* =====================================================================
   SCROLL REVEAL (only when JS is running) — 12px rise + fade
   ===================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 700ms var(--ease-out) var(--delay, 0ms),
    transform 700ms var(--ease-out) var(--delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .logo-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-height: 64px; }

  .header-inner { grid-template-columns: 1fr auto; }
  .logo img { height: 34px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px var(--gutter) 28px;
    border-top: 1px solid var(--hairline);
    background: var(--surface-dark);
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    display: block;
    padding-block: 16px;
    border-bottom: 1px solid var(--hairline);
    font-size: 16px;
  }
  .nav-link::after { display: none; }
  .nav-link.is-active { box-shadow: inset 2px 0 0 var(--gold-600); padding-left: 12px; }
  .nav-cta-mobile { display: block; margin-top: 24px; }
  .nav-cta-mobile .btn { width: 100%; }

  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }

}

@media (max-width: 560px) {
  /* less top space, and room underneath so the flow sits below the buttons */
  .hero { padding-top: calc(var(--header-height) + 40px); padding-bottom: 260px; }
  .hero-flow { height: 300px; }
  .logo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .logo-mark { width: min(100%, calc(var(--h, 32px) * 0.8 * var(--ar, 3))); }
  .hero-actions { flex-direction: column; align-self: stretch; }
  .hero-actions .btn { width: 100%; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .partner-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .partner-photo { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta .btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity 300ms linear; }
}