/* ============================================
   ПОЛИ·НАЙМ — Design tokens
   ============================================ */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F2EC;        /* warm cream */
  --bg-deep: #EFE9DF;       /* deeper cream */
  --bg-peach: #FFE9D6;      /* soft peach — accents only, not large fills */
  /* Large surfaces use warm neutrals so orange stays an accent rather than
     a background colour */
  --bg-card: #FBF8F3;       /* milky warm — big cards */
  --bg-card-2: #F7F2EA;     /* one step deeper, for gradients/fades */
  /* Cool neutral — used where a block must read as a different surface than
     the warm cards next to it (leaders vs. expertise) */
  --bg-card-cool: #ECECE9;
  --line-cool: #DCDBD7;
  --ink: #1F1814;           /* warm coffee-black */
  --ink-2: #3A2F27;         /* warm dark brown */
  --muted: #6F6358;
  --muted-2: #9A8F84;
  --line: #E6DED2;          /* warm hairline */
  --line-2: #D6CDBE;

  --orange: #E85D04;
  --orange-hover: #C84F03;
  --orange-soft: rgba(232, 93, 4, 0.08);

  /* Secondary cool accent (paired w/ orange for contrast) */
  --petrol: #0F3D4B;
  --petrol-soft: rgba(15, 61, 75, 0.08);

  --dark: #1F1814;
  --dark-2: #3A2F27;

  --ff-display: "Unbounded", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1280px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(52px, 6vw, 88px);

  /* Display scale (Unbounded) — one step per heading level, no ad-hoc sizes */
  --fs-h1: clamp(34px, 3.8vw, 56px);
  --fs-h2: clamp(28px, 3vw, 48px);
  --fs-h3: clamp(22px, 2.3vw, 32px);
  --fs-h4: 19px;
  --fs-display-sm: clamp(22px, 2.2vw, 30px);  /* stat numbers in cards */

  /* Body scale (Inter) */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 19px;

  /* Line heights */
  --lh-display: 1.05;
  --lh-tight: 1.35;
  --lh-body: 1.55;

  /* Radii — 5 steps, everything snaps to one of these */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;

  /* Borders */
  --bw: 1px;
  --bw-thick: 2px;

  /* Icon sizes */
  --icon-sm: 24px;
  --icon-md: 32px;
  --icon-lg: 40px;

  /* Vertical rhythm */
  --gap-eyebrow: 20px;   /* small CAPS label -> H2 */
  --gap-head: 40px;      /* section head -> content */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html {
  scroll-behavior: smooth;
  /* the header is sticky, so anchor targets must stop below it instead of
     sliding underneath — header height (76px / 64px on small screens) + air */
  scroll-padding-top: 96px;
}
@media (max-width: 560px) {
  html { scroll-padding-top: 80px; }
}
/* Belt and braces: a section landed on directly (deep link, back/forward)
   also needs the offset, not just smooth in-page jumps. */
section[id], main[id] { scroll-margin-top: 96px; }
@media (max-width: 560px) {
  section[id], main[id] { scroll-margin-top: 80px; }
}
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  font-size: var(--fs-md);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--orange); color: white; }

/* Present to assistive tech, invisible on screen */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Display type */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--orange { color: var(--orange); }
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: var(--fs-base);
  letter-spacing: -0.01em;
  transition: background-color 240ms var(--ease), color 240ms var(--ease), transform 240ms var(--ease), border-color 240ms var(--ease);
}
.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover { background: var(--orange-hover); }
.btn--primary .btn__arrow { transition: transform 280ms var(--ease); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: var(--bw) solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--inverse {
  background: #fff;
  color: var(--ink);
}
.btn--inverse:hover { background: #f0f0f0; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: var(--bw) solid transparent;
  transition: border-color 240ms var(--ease);
}
/* Once the page is scrolled there is content passing underneath, so the bar
   goes nearly opaque — at 0.85 the text below showed through as a smear. */
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.97);
}
/* Where backdrop-filter is unsupported the translucency has nothing to blur,
   so fall back to a solid bar rather than letting content read through. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: #fff; }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: var(--fs-lg);
  color: var(--ink);
}
.brand__mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  transform: translateY(-1px);
  margin-right: 2px;
}
.brand__sep { color: var(--muted-2); margin: 0 6px; font-weight: 400; }

.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav a {
  font-size: var(--fs-base);
  color: var(--ink-2);
  font-weight: 450;
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: var(--orange); }

.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.header-cta .btn { padding: 10px 18px; font-size: var(--fs-base); }

@media (max-width: 900px) {
  .nav { display: none; }
}
@media (max-width: 560px) {
  .site-header__inner { height: 64px; }
  .brand { font-size: var(--fs-base); gap: 8px; }
  .brand__mark { width: 28px; height: 28px; flex: 0 0 28px; }
  .header-cta .btn { padding: 9px 14px; font-size: var(--fs-sm); }
  .header-cta .btn__arrow { display: none; }
}
@media (max-width: 380px) {
  .header-cta .btn { padding: 8px 12px; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding-top: clamp(32px, 3vw, 48px);
  padding-bottom: clamp(24px, 2.2vw, 32px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(255, 220, 190, 0.26) 0%, rgba(255, 220, 190, 0) 60%),
    radial-gradient(ellipse 45% 60% at 100% 100%, rgba(255, 200, 160, 0.16) 0%, rgba(255, 200, 160, 0) 62%),
    linear-gradient(180deg, #FAF7F4 0%, #FFFFFF 35%, #FFFFFF 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { margin-bottom: 32px; }
.hero__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: none;
}
/* Anim only kicks in when JS adds .is-animating to body */
body.is-animating .hero__eyebrow { animation: rise 700ms var(--ease-out) 80ms backwards; }
body.is-animating .hero__title   { animation: rise 900ms var(--ease-out) 180ms backwards; }
body.is-animating .hero__sub     { animation: rise 900ms var(--ease-out) 320ms backwards; }
body.is-animating .hero__actions { animation: rise 900ms var(--ease-out) 440ms backwards; }
body.is-animating .hero__facts   { animation: rise 900ms var(--ease-out) 600ms backwards; }
.hero__title em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}
.hero__sub {
  margin-top: 32px;
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  line-height: 1.5;
}
.hero__actions {
  margin-top: 44px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hero__facts {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hero__fact-card {
  background: #FFFCF7;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  /* Icon and headline figure share the top row as one unit; the caption runs
     full width beneath. Stacking all three made the card tall and read as
     three unrelated elements. */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  /* cards stretch to the tallest sibling — pack the rows to the top so the
     caption stays under its figure instead of drifting to the bottom edge */
  align-content: start;
  column-gap: 12px;
  row-gap: 6px;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.hero__fact-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -30px rgba(232, 93, 4, 0.4);
}
.hero__fact-icon {
  width: var(--icon-md);
  height: var(--icon-md);
  padding: 0;
  margin: 0;
  grid-column: 1;
  grid-row: 1;
}
.hero__fact-card strong {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-display-sm);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: var(--lh-display);
}
.hero__fact-card strong .accent { color: var(--orange); }
.hero__fact-card span {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: var(--lh-tight);
}
.hero__verticals {
  margin-top: 14px;
  padding-top: 12px;
  border-top: var(--bw) solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.hero__verticals span { display: inline-flex; align-items: center; gap: 18px; }
.hero__verticals span:not(:last-child)::after { content: "·"; color: var(--line-2, rgba(31,24,20,0.25)); letter-spacing: 0; }
@media (max-width: 720px) {
  .hero__facts { grid-template-columns: 1fr; gap: 14px; }
  .hero__verticals { font-size: var(--fs-xs); letter-spacing: 0.14em; gap: 6px 12px; }
  .hero__verticals span { gap: 12px; }
}
.hero__fact { display: flex; flex-direction: column; gap: 6px; }
.hero__fact strong {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.hero__fact strong .accent { color: var(--orange); }
.hero__fact span {
  font-size: var(--fs-base);
  color: var(--muted);
  max-width: 28ch;
}
@media (max-width: 720px) {
  .hero__facts { grid-template-columns: 1fr; gap: 24px; }
}

/* Decorative SVG layer */
.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* ====== Brand orbit graphic ====== */
.hero__orbit {
  position: absolute;
  top: 46%;
  right: -4%;
  width: clamp(320px, 40vw, 620px);
  transform: translateY(-50%);
}
.hero__orbit svg { width: 100%; height: auto; overflow: visible; }
.hero__orbit-core {
  transform-origin: 320px 320px;
  animation: core-pulse 3.6s ease-in-out infinite;
}
.hero__orbit-ring {
  transform-origin: 320px 320px;
  animation: spin 46s linear infinite;
}

/* Wavy route lines */
.hero__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes core-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.88; }
}
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

@media (max-width: 900px) {
  .hero__orbit { top: 18%; right: -34%; width: 380px; opacity: 0.3; }
}
@media (max-width: 600px) {
  .hero__orbit { top: 12%; right: -46%; width: 320px; opacity: 0.18; }
  .hero__waves { opacity: 0.5; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* ============================================
   Section base
   ============================================ */
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
/* Default cream blocks — soft linear fade in/out of white (the previous look) */
.section--alt {
  background: linear-gradient(180deg,
    #FFFFFF 0%,
    var(--bg-alt) 11%,
    var(--bg-alt) 89%,
    #FFFFFF 100%);
}
/* Top block (process) keeps the fully seamless radial wash — no horizontal edge */
#process.section--alt {
  background:
    radial-gradient(135% 92% at 50% 50%,
      var(--bg-alt) 0%,
      var(--bg-alt) 42%,
      rgba(246, 242, 236, 0.55) 74%,
      rgba(246, 242, 236, 0) 100%);
}
.section--dark { background: var(--dark); color: #F5F5F5; }
.section__head {
  margin-bottom: var(--gap-head);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-eyebrow);
}
.section__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* ============================================
   Block 2 — Process snake
   ============================================ */
.process {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 1000px) {
  .process { grid-template-columns: 1fr; gap: 48px; }
}

.process__intro .eyebrow { margin-bottom: var(--gap-eyebrow); }
.process__lede {
  margin-top: 0;
  color: var(--ink-2);
  max-width: 47ch;
  font-size: var(--fs-md);
}
.advantages {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.advantage {
  padding: 28px 0;
  border-top: var(--bw) solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
  transition: padding 240ms var(--ease);
}
.advantage__icon {
  width: 40px;
  height: 40px;
  color: var(--orange);
  margin-top: 2px;
}
.advantage:last-child { border-bottom: var(--bw) solid var(--line); }
.advantage__num {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--orange);
  padding-top: 4px;
  letter-spacing: 0.04em;
}
.advantage h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.advantage p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.55;
  max-width: 38ch;
}

/* Snake stage */
.snake {
  position: relative;
  min-height: 720px;
}
.snake__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.snake__path-track {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 3 7;
}
.snake__path-fill {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  /* stroke-dasharray/offset set in JS */
}

/* Snake node */
.snake__node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(220px, 22vw, 280px);
  pointer-events: auto;
}
.snake__node-inner {
  position: relative;
  background: #fff;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 18px 40px -28px rgba(0,0,0,0.15);
  transition: border-color 320ms var(--ease), box-shadow 320ms var(--ease), transform 320ms var(--ease);
}
.snake__node-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: var(--bw-thick) solid var(--line-2);
  top: -7px;
  left: 20px;
  transition: background 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease), transform 320ms var(--ease);
}
.snake__node-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.snake__node-num {
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: color 320ms var(--ease);
}
.snake__node-icon {
  width: 18px; height: 18px;
  color: var(--muted);
  transition: color 320ms var(--ease);
}
.snake__node-title {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.snake__node-desc {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* State: passed */
.snake__node[data-state="passed"] .snake__node-dot {
  background: var(--ink);
  border-color: var(--ink);
}
.snake__node[data-state="passed"] .snake__node-inner {
  border-color: var(--line-2);
}
.snake__node[data-state="passed"] .snake__node-num { color: var(--ink-2); }

/* State: active */
.snake__node[data-state="active"] .snake__node-dot {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(232,93,4,0.15);
}
.snake__node[data-state="active"] .snake__node-inner {
  border-color: var(--orange);
  box-shadow: 0 1px 0 rgba(232,93,4,0.06), 0 24px 50px -24px rgba(232,93,4,0.4);
  transform: translateY(-2px);
}
.snake__node[data-state="active"] .snake__node-num { color: var(--orange); }
.snake__node[data-state="active"] .snake__node-icon { color: var(--orange); }

/* Mobile snake (vertical, no absolute positioning of nodes) */
.snake--mobile { display: none; }
@media (max-width: 1000px) {
  .snake { display: none; }
  .snake--mobile {
    display: block;
    position: relative;
    padding-left: 56px;
  }
  .snake--mobile .snake__vline {
    position: absolute;
    left: 22px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--orange) 0%, var(--orange) var(--vfill, 0%), var(--line-2) var(--vfill, 0%), var(--line-2) 100%);
    border-radius: 2px;
    background-size: 100% 100%;
  }
  .snake--mobile .mnode {
    position: relative;
    padding: 16px 0 28px;
  }
  .snake--mobile .mnode::before {
    content: "";
    position: absolute;
    left: -41px;
    top: 22px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: var(--bw-thick) solid var(--line-2);
    border-radius: 50%;
    transition: all 320ms var(--ease);
  }
  .snake--mobile .mnode[data-state="passed"]::before {
    background: var(--ink); border-color: var(--ink);
  }
  .snake--mobile .mnode[data-state="active"]::before {
    background: var(--orange); border-color: var(--orange);
    box-shadow: 0 0 0 5px rgba(232,93,4,0.18);
  }
  .snake--mobile .mnode__inner {
    background: #fff;
    border: var(--bw) solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 18px;
    transition: border-color 320ms var(--ease);
  }
  .snake--mobile .mnode[data-state="active"] .mnode__inner {
    border-color: var(--orange);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg-alt);
  border: var(--bw) solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  transition: border-color 240ms var(--ease), color 240ms var(--ease), background-color 240ms var(--ease);
}
.section--alt .chip { background: #fff; border-color: var(--line); }
.chip:hover {
  border-color: var(--accent, var(--orange));
  color: var(--accent, var(--orange));
}
.section__head--split {
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 800px) {
  .section__head--split { grid-template-columns: 1fr; gap: 16px; }
}
.section__head-lede {
  max-width: 48ch;
  color: var(--ink-2);
  font-size: var(--fs-md);
  margin: 0;
  padding-bottom: 8px;
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .expertise__grid { grid-template-columns: 1fr; gap: 18px; } }

.ex-card {
  --accent: var(--orange);
  position: relative;
  padding: 32px 28px 26px;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: var(--bw) solid #F0E3D2;
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
}
/* The collapse wrapper is the flex child, so it has to carry the growth —
   otherwise margin-top:auto on the footer inside it never resolves and the
   footers land at ragged heights with voids underneath. */
.ex-card__collapse {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.ex-card[data-accent="orange"] { --accent: var(--orange); }
.ex-card[data-accent="petrol"] { --accent: var(--petrol); }
.ex-card[data-accent="ink"]    { --accent: var(--ink); }

/* Decorative "halo" behind the glyph */
.ex-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.035;
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}
.ex-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -28px rgba(31, 24, 20, 0.22);
}
.ex-card:hover::before { opacity: 0.07; transform: scale(1.1); }

.ex-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ex-card__num {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: var(--r-pill);
}
.ex-card__badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(31, 24, 20, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  position: relative;
  z-index: 1;
}
.ex-card__badge svg { width: var(--icon-md); height: var(--icon-md); }
.ex-card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: var(--lh-display);
  margin: 0;
  color: var(--ink);
  /* two-word titles wrap to 2 lines, one-word to 1 — reserve the taller of the
     two so all three card bodies start on the same baseline */
  min-height: calc(var(--fs-h3) * var(--lh-display) * 2);
}
.ex-card__sub {
  font-size: var(--fs-base);
  color: var(--muted);
  margin: 0;
  line-height: var(--lh-tight);
  min-height: calc(var(--fs-base) * var(--lh-tight) * 2);
}
.ex-card .chips { margin-top: 4px; }
.ex-card__foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: var(--bw) solid var(--line);
  display: flex;
  gap: 32px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.ex-card__foot strong {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--ink);
  font-size: var(--fs-md);
  display: block;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

/* ============================================
   Leaders — cool grey surface
   ============================================ */
.leaders {
  margin-top: 56px;
  padding: 56px;
  /* Cool grey, not the warm card tint: stacked on mobile this block sits
     directly under the expertise cards and shared their colour exactly. */
  background: var(--bg-card-cool);
  border: var(--bw) solid var(--line-cool);
  color: var(--ink);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 6fr 7fr;
  gap: 56px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .leaders { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
}
.leaders__heading { position: relative; z-index: 1; }
.leaders__heading .eyebrow { margin-bottom: var(--gap-eyebrow); }
.leaders__heading h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.leaders__heading p {
  color: var(--ink-2);
  font-size: var(--fs-base);
  margin: 0 0 28px;
  max-width: 45ch;
  line-height: 1.55;
}
.leaders__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: var(--fs-base);
  color: var(--ink);
  border-bottom: var(--bw) solid var(--ink);
  padding-bottom: 4px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.leaders__link:hover { color: var(--orange); border-color: var(--orange); }
.leaders__link svg { transition: transform 240ms var(--ease); }
.leaders__link:hover svg { transform: translateX(3px); }

.leaders__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.leaders__list li {
  padding: 22px 0;
  border-top: var(--bw) solid rgba(31, 24, 20, 0.12);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-base);
  color: var(--ink);
}
.leaders__list li:nth-child(1), .leaders__list li:nth-child(2) {
  border-top-color: rgba(31, 24, 20, 0.18);
}
.leader-item__num {
  font-family: var(--ff-display);
  color: var(--orange);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.leaders__li-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: var(--bw) solid rgba(31, 24, 20, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.leaders__li-icon svg { width: 21px; height: 21px; }
.leaders__note {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.leaders__note svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  background: #FFFFFF;
  border: var(--bw) solid rgba(31, 24, 20, 0.08);
  border-radius: var(--r-md);
  flex-shrink: 0;
}
@media (max-width: 600px) { .leaders__list { grid-template-columns: 1fr; } }

/* ============================================
   Clients — color logos carousel
   ============================================ */
.clients-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.clients-marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
  align-items: center;
  animation: marquee 70s linear infinite;
}
.clients-marquee:hover .clients-marquee__track { animation-play-state: paused; }
.client-logo {
  flex: 0 0 auto;
  width: 132px;
  height: 104px;
  border-radius: var(--r-xl);
  background: #fff;
  border: var(--bw) solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease);
}
.client-logo:hover {
  transform: translateY(-4px);
  border-color: rgba(232,93,4,0.4);
  box-shadow: 0 18px 36px -24px rgba(31,24,20,0.25);
}
.client-logo__name {

  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-md);
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Legacy logo grid styles (kept just in case some block still uses them) */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: var(--bw) solid var(--line);
  border-left: var(--bw) solid var(--line);
}
@media (max-width: 900px) { .clients__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .clients__grid { grid-template-columns: repeat(2, 1fr); } }
.client {
  aspect-ratio: 5 / 3;
  border-right: var(--bw) solid var(--line);
  border-bottom: var(--bw) solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--muted);
  transition: color 240ms var(--ease), background-color 240ms var(--ease);
}
.client:hover { color: var(--ink); background: #fff; }
.client svg { max-height: 32px; width: auto; }

/* ============================================
   Cases
   ============================================ */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .cases__grid { grid-template-columns: 1fr; } }

.case {
  position: relative;
  background: #fff;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  overflow: hidden;
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--orange);
  transition: height 480ms var(--ease);
}
.case:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 24px 50px -28px rgba(232,93,4,0.25);
}
.case:hover::before { height: 100%; }

.case__tag {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  padding: 5px 10px;
  background: var(--orange-soft);
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.case__title {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.15;
}
.case__result {
  color: var(--ink-2);
  font-size: var(--fs-base);
  margin-bottom: 24px;
  line-height: 1.55;
}
.case__quote {
  margin: 0;
  padding-top: 22px;
  border-top: var(--bw) solid var(--line);
  font-size: var(--fs-base);
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}
.case__quote::before { content: "« "; color: var(--orange); font-style: normal; }
.case__quote::after { content: " »"; color: var(--orange); font-style: normal; }

/* ============================================
   Team
   ============================================ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .team__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team__grid { grid-template-columns: 1fr; } }

.member {
  background: #fff;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 240ms var(--ease);
}
.member:hover { border-color: var(--ink); }
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--ink-2);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.member__name {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.member__role {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 4px;
}
.member__spec {
  font-size: var(--fs-xs);
  color: var(--orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}
.member__links {
  display: flex; gap: 10px;
  padding-top: 16px;
  border-top: var(--bw) solid var(--line);
}
.member__links a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.member__links a:hover { color: var(--orange); border-color: var(--orange); }
.member__links svg { width: 15px; height: 15px; }

/* ============================================
   Contact (final) — light themed
   ============================================ */
.contact {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-alt) 45%, var(--bg-alt) 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  /* the team grid above already ends on plenty of air — the full section
     padding on top of it read as a dead band under the header */
  padding-top: clamp(32px, 3vw, 44px);
}
.contact::before {
  content: "";
  position: absolute;
  top: -340px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.10) 0%, rgba(232, 93, 4, 0) 58%);
  pointer-events: none;
}
.contact::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -180px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 61, 75, 0.14) 0%, rgba(15, 61, 75, 0) 70%);
  pointer-events: none;
}
.contact > .container { position: relative; z-index: 1; }
.contact h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: var(--lh-display);
  margin-bottom: 40px;
  max-width: 14ch;
  color: var(--ink);
}
.contact h2 .accent { color: var(--orange); }
.contact__layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .contact__layout { grid-template-columns: 1fr; gap: 40px; } }

.form { display: flex; flex-direction: column; gap: 0; }
.field {
  position: relative;
  /* asymmetric: the top space is where the floated label parks, so it stays
     inside this field's own box instead of colliding with the divider above */
  padding: 32px 0 14px;
  border-bottom: var(--bw) solid var(--line-2);
  transition: border-color 240ms var(--ease);
}
.field:focus-within { border-bottom-color: var(--orange); }
.field label {
  position: absolute;
  top: 32px;
  left: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.4;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 240ms var(--ease), color 240ms var(--ease);
}
.field input, .field textarea {
  display: block; /* kills the inline baseline gap under the textarea */
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--fs-base);
  line-height: 1.4;
  color: var(--ink);
  padding: 0;
  margin: 0;
  font-family: var(--ff-body);
  resize: none;
}
.field textarea { min-height: 72px; }
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  /* scale instead of font-size so the transform stays GPU-cheap and the
     label lands at a predictable 10px from the top of the field */
  transform: translateY(-22px) scale(0.857);
  color: var(--orange);
}
.form__submit {
  margin-top: 28px;
  align-self: flex-start;
}
.form__submit[disabled] { opacity: 0.7; cursor: default; }

.field--honeypot {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; border: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.form__consent input { margin-top: 3px; accent-color: var(--orange); flex-shrink: 0; }
.form__consent a { color: var(--ink-2); text-decoration: underline; }

/* Grouped contact fields — either one satisfies the requirement, so they
   share a legend, a hint and one error slot. */
.field-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.field__req { color: var(--orange); margin-left: 2px; }

/* Invalid state: red hairline + red label, matching the existing underline
   treatment rather than adding a box around the field. */
.field.is-invalid { border-bottom-color: #C0392B; }
.field.is-invalid label { color: #C0392B; }
.field-group.is-invalid .field { border-bottom-color: #C0392B; }
.form__consent.is-invalid span { color: #C0392B; }
.form__consent.is-invalid input { outline: 2px solid #C0392B; outline-offset: 2px; }

.field__error {
  margin: 6px 0 0;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: #C0392B;
}
.field__error:empty { margin: 0; }

.form__status {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: var(--fs-sm);
}
.form__status[data-state="error"] { color: #C0392B; }
.form__status[data-state="ok"] { color: #2E7D32; }

.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #FFFCF7;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
}
.contact__direct-title {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 24px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: var(--bw) solid var(--line);
  color: var(--ink);
  transition: color 200ms var(--ease), padding-left 240ms var(--ease);
}
.contact-link:hover { color: var(--orange); padding-left: 6px; }
.contact-link__icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border-radius: var(--r-pill);
  flex-shrink: 0;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.contact-link:hover .contact-link__icon { background: var(--orange); color: #fff; }
.contact-link svg { width: 17px; height: 17px; }
.contact-link__label {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 3px;
}
.contact-link__value {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ============================================
   Footer — kept dark, but warm
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--muted-2);
  padding: 56px 0 36px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) { .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer__brand {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-md);
  color: #F5F5F5;
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer__brand .brand__dot { width: 6px; height: 6px; transform: translateY(-1px); }
.footer__about {
  font-size: var(--fs-sm);
  max-width: 40ch;
  line-height: 1.55;
}
.footer h5 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: var(--fs-sm); color: #D5D5D5; }
.footer ul a:hover { color: var(--orange); }
.footer__base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: var(--bw) solid #3A2F27;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--fs-xs);
}
@media (max-width: 600px) {
  .footer { padding: 40px 0 28px; }
  .footer__inner { gap: 28px 20px; }
  .footer__brand { font-size: var(--fs-md); margin-bottom: 10px; }
  .footer__about { font-size: var(--fs-xs); line-height: 1.5; }
  .footer h5 { font-size: var(--fs-xs); margin: 0 0 10px; letter-spacing: 0.16em; }
  .footer ul { gap: 7px; }
  .footer ul a, .footer ul li { font-size: var(--fs-sm); line-height: 1.45; }
  .footer__base { margin-top: 32px; padding-top: 18px; flex-direction: column; align-items: flex-start; gap: 6px; font-size: var(--fs-xs); }
  .footer__base a { font-size: var(--fs-xs); }
}

/* ============================================
   Tweaks panel
   ============================================ */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: #fff;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.02);
  padding: 18px 18px 16px;
  width: 280px;
  display: none;
  font-family: var(--ff-body);
}
.tweaks-panel.is-open { display: block; }
.tweaks-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tweaks-panel__title {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tweaks-panel__close {
  width: 24px; height: 24px;
  border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.tweaks-panel__close:hover { background: var(--bg-alt); color: var(--ink); }

.tweaks-panel__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.tweaks-panel__radio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: 4px;
}
.tweaks-panel__radio button {
  padding: 8px 10px;
  font-size: var(--fs-xs);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  transition: all 200ms var(--ease);
}
.tweaks-panel__radio button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ============================================
   Authored line breaks (desktop only)
   ============================================ */
.lb { display: none; }
@media (min-width: 1024px) { .lb { display: inline; } }

/* ============================================
   Client logos — real marks
   ============================================ */
.client-logo__img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

/* ============================================
   Testimonials
   ============================================ */
.tcards {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1080px) { .tcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .tcards { grid-template-columns: 1fr; } }
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px 24px 20px;
  overflow: hidden;
  transition: border-color 280ms var(--ease), transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.tcard::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 420ms var(--ease);
}
.tcard:hover { transform: translateY(-4px); border-color: rgba(232,93,4,0.45); box-shadow: 0 24px 50px -30px rgba(232,93,4,0.28); }
.tcard:hover::before { transform: scaleY(1); }
.tcard__quote { width: 22px; height: 17px; color: rgba(232,93,4,0.32); margin-bottom: 12px; flex-shrink: 0; }
.tcard__body {
  position: relative;
  max-height: 122px;
  overflow: hidden;
  transition: max-height 480ms var(--ease);
}
.tcard__body::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 90%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}
.tcard.is-clamped .tcard__body::after { opacity: 1; }
.tcard.is-open .tcard__body { max-height: 1600px; }
.tcard.is-open .tcard__body::after { opacity: 0; }
.tcard__body p {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.62;
  color: var(--ink-2);
}
.tcard__more {
  align-self: flex-start;
  margin-top: 14px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: var(--bw) solid rgba(232,93,4,0.4);
  color: var(--orange);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color 200ms var(--ease);
}
.tcard__more:hover { border-color: var(--orange); }
.tcard__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.tcard__avatar {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: rgba(232,93,4,0.10);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}
.tcard__name {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tcard__role { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }

/* ============================================
   Team — photo grid
   ============================================ */
.team__photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .team__photos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team__photos { grid-template-columns: 1fr; } }
.team-photo { margin: 0; }
.team__photos--grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.team-photo__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
  cursor: default;
  transition: transform 320ms var(--ease);
}
.team-photo__img:hover { transform: scale(1.03); }
@media (max-width: 900px) { .team__photos--grid { grid-template-columns: repeat(4, 1fr); } }


/* ============================================
   Mobile hardening — nothing escapes the screen
   ============================================ */
@media (max-width: 720px) {
  .contact h2 { word-break: break-word; hyphens: auto; }
  .contact__direct, .contact-link { min-width: 0; max-width: 100%; }
  .contact-link { align-items: flex-start; }
  .contact-link > span:last-child { min-width: 0; flex: 1; }
  .contact-link__value {
    font-size: var(--fs-sm);
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.4;
  }
  .footer__inner a, .footer__inner li { overflow-wrap: anywhere; }
  .form, .field, .field input, .field textarea { min-width: 0; max-width: 100%; }
  /* Hard 16px (not a token): below 16 iOS Safari zooms the page on focus */
  .field input, .field textarea { font-size: 16px; }
  .field textarea { min-height: 88px; }
  .form__consent { margin-top: 24px; }
  .tcard, .tcard__body p { overflow-wrap: anywhere; }
  .chip { max-width: 100%; overflow-wrap: anywhere; }
  .section__title, .hero__title, .leaders__heading h3, .ex-card__title { overflow-wrap: break-word; }
}


/* "Show more" toggles are a mobile-only affordance: cards are fully expanded
   on desktop, so the buttons stay hidden there. These must sit BEFORE the
   media queries below — same specificity means source order decides, and
   living after them silently killed the mobile `display: block`. */
.ex-card__more { display: none; }
.tcards__more { display: none; }

/* ============================================
   Mobile compaction pass (blocks 1–7)
   ============================================ */
@media (max-width: 900px) {
  .hero__orbit { opacity: 0.55; }
}
@media (max-width: 720px) {
  /* Block 1 — hero: tighter rhythm, orbit more visible */
  .hero { padding-top: 20px; padding-bottom: 28px; }
  .hero__eyebrow { margin-bottom: 14px; }
  .hero__sub { margin-top: 14px; }
  .hero__actions { margin-top: 20px; gap: 10px; }
  .hero__facts { margin-top: 22px; gap: 10px; }
  .hero__fact-card { padding: 14px 16px; column-gap: 10px; row-gap: 4px; }
  .hero__fact-icon { width: var(--icon-sm); height: var(--icon-sm); }
  .hero__fact-card strong { font-size: var(--fs-display-sm); }
  .hero__fact-card span { font-size: var(--fs-xs); }
  .hero__verticals { margin-top: 14px; padding-top: 12px; }
  .hero__orbit { top: 6%; right: -18%; width: 220px; opacity: 0.5; }
  .hero__waves { opacity: 0.6; }

  /* Block 2 — process */
  .section#process, section#process { padding-top: 28px; padding-bottom: 28px; }
  #process .section__head { margin-bottom: 20px; gap: 10px; }
  .process__lede { margin-top: 0; }
  .advantages { margin-top: 20px; }
  .advantage { padding: 12px 0; gap: 12px; }
  .advantage h3 { margin-bottom: 4px; }
  .snake--mobile { padding-left: 40px; gap: 0; }
  .snake--mobile .mnode { padding: 8px 0 14px; }

  /* Block 3 — expertise */
  #expertise .section__head { margin-bottom: 24px; }
  .section__head--split { gap: 10px; }
  .expertise__grid { gap: 14px; }
  .ex-card { padding: 18px 18px 16px; gap: 10px; }
  .ex-card__head { margin-bottom: 4px; }
  .ex-card__badge { width: 44px; height: 44px; }
  .ex-card__badge svg { width: var(--icon-sm); height: var(--icon-sm); }
  /* The reserved title/subtitle heights exist only to line the three desktop
     cards up on one row. Stacked on mobile they just add dead space. */
  .ex-card__title, .ex-card__sub { min-height: 0; }
  .chips { gap: 6px; margin-top: 8px; }
  .ex-card__foot { margin-top: 14px; padding-top: 14px; }

  /* Block 4 — expertise cards collapse like reviews */
  .ex-card__collapse {
    position: relative;
    max-height: 168px;
    overflow: hidden;
    transition: max-height 420ms var(--ease);
  }
  .ex-card__collapse::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 48px;
    background: linear-gradient(180deg, rgba(247,242,234,0) 0%, var(--bg-card-2) 88%);
    opacity: 1;
    transition: opacity 300ms var(--ease);
    pointer-events: none;
  }
  .ex-card.is-clamped .ex-card__collapse::after { opacity: 1; }
  .ex-card.is-open .ex-card__collapse { max-height: 1400px; }
  .ex-card.is-open .ex-card__collapse::after { opacity: 0; }
  .ex-card__more {
    display: block;
    margin-top: 12px;
    padding: 0;
    background: none;
    border: 0;
    border-bottom: var(--bw) solid rgba(232,93,4,0.4);
    color: var(--orange);
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    cursor: pointer;
  }

  /* Block 5 — leaders */
  .leaders { margin-top: 28px; padding: 24px 18px; gap: 24px; }
  .leaders__heading .eyebrow { margin-bottom: 10px; }
  .leaders__heading h3 { margin: 0 0 10px; }
  .leaders__heading p { margin: 0 0 16px; }
  .leaders__list li { padding: 12px 0; }
  .leaders__note { margin-top: 16px; }

  /* Block 6 — reviews: show 3, rest behind toggle */
  .tcards { margin-top: 32px; gap: 12px; }
  .tcards .tcard:nth-child(n+4) { display: none; }
  .tcards.is-expanded .tcard:nth-child(n+4) { display: flex; }
  .tcards__more {
    display: inline-flex;
    margin: 20px auto 0;
    padding: 12px 24px;
    border: var(--bw) solid var(--line);
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--ink);
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    cursor: pointer;
  }

  /* Two full section paddings met between these blocks — ~104px of dead air
     on a phone. Halved on both sides of the seam. */
  #expertise { padding-bottom: 32px; }
  #cases { padding-top: 32px; padding-bottom: 32px; }
  #team { padding-top: 32px; }

  /* Block 7 — team: instagram-style grid, non-clickable */
  .team__photos--grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .team-photo__img { aspect-ratio: 1 / 1; border-radius: var(--r-sm); }
}

/* ============================================
   Desktop rhythm — lower half of the page
   ============================================ */
/* Coach-partner → clients → team → contact ran on full --section-y at both
   ends of every seam (176px of nothing). Halve them so the run reads as one
   flow; mobile keeps its own compaction pass below 721px. */
@media (min-width: 721px) {
  #expertise { padding-bottom: 48px; }
  #cases { padding-top: 48px; padding-bottom: 48px; }
  #team { padding-top: 48px; padding-bottom: 40px; }
}


/* ============================================
   Keyboard focus
   ============================================ */
/* The inputs clear their outline to keep the underline-only look; that also
   removed the only focus indicator a keyboard user gets. Put a ring back for
   keyboard focus specifically, so mouse clicks stay visually quiet. */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-radius: 2px;
}

/* ============================================
   Print
   ============================================ */
@media print {
  .site-header, .hero__decor, .clients-marquee, .team__photos,
  .form, .footer__nav, .snake, .snake--mobile { display: none !important; }
  .section, .hero { padding: 12px 0 !important; }
  body { background: #fff; color: #000; }
  .section--alt, .contact { background: none !important; }
  .contact::before, .contact::after { display: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; }
}
