/* ============================================================
   THE NEXT MARKET — design system
   Boutique strategy, marketing & growth advisory
   Palette: ink navy / brand navy / silver / warm paper
   Type: Fraunces (display) · Inter (body) · IBM Plex Mono (kickers)
   ============================================================ */

:root {
  --ink: #070e20;
  --ink-2: #0a142e;
  --navy: #101d3d;
  --brand: #22306b;
  --blue-mist: #8ea4cd;
  --silver: #aeb7c6;
  --platinum: #dfe4ec;
  --paper: #f5f3ee;
  --paper-2: #edecE5;
  --white: #ffffff;

  --t-dark: #e9eef7;
  --t-dark-muted: rgba(233, 238, 247, 0.66);
  --t-light: #131a2c;
  --t-light-muted: #5b6474;

  --line-dark: rgba(233, 238, 247, 0.14);
  --line-light: #dcd9cf;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --pad-x: clamp(22px, 5.5vw, 92px);
  --header-h: 84px;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--t-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brand); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* film-grain overlay for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 420;
  letter-spacing: -0.028em;
  color: inherit;
}

.h-hero {
  font-size: clamp(46px, 7.4vw, 112px);
  line-height: 0.98;
  font-variation-settings: "opsz" 144;
}

.h-xl {
  font-size: clamp(38px, 5.2vw, 78px);
  line-height: 1.02;
  font-variation-settings: "opsz" 144;
}

.h-lg {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.06;
  font-variation-settings: "opsz" 100;
}

.h-md {
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.14;
  font-variation-settings: "opsz" 72;
}

.h-sm {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.22;
}

em.tilt {
  font-style: italic;
  font-weight: 380;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: var(--blue-mist);
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.on-light .kicker { color: var(--brand); }

.lead {
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.5;
  font-weight: 400;
  max-width: 56ch;
}

.on-dark .lead { color: var(--t-dark-muted); }
.on-light .lead { color: var(--t-light-muted); }

.body-copy p { max-width: 62ch; }
.body-copy p + p { margin-top: 1.2em; }

.serif-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  letter-spacing: -0.015em;
}

/* ------------------------------------------------------------
   Layout shells
   ------------------------------------------------------------ */
.section {
  padding: clamp(84px, 9.5vw, 150px) var(--pad-x);
  position: relative;
}

.section--tight { padding-top: clamp(64px, 6.5vw, 100px); padding-bottom: clamp(64px, 6.5vw, 100px); }

.on-dark { background: var(--ink); color: var(--t-dark); }
.on-dark-2 { background: var(--ink-2); color: var(--t-dark); }
.on-light { background: var(--paper); color: var(--t-light); }
.on-white { background: var(--white); color: var(--t-light); }

.wrap { max-width: 1360px; margin: 0 auto; }
.wrap--narrow { max-width: 980px; margin: 0 auto; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--line-light);
  margin: clamp(56px, 6vw, 96px) 0;
}
.on-dark .rule, .on-dark-2 .rule { background: var(--line-dark); }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background 0.4s var(--ease-soft), border-color 0.4s, height 0.4s;
  border-bottom: 1px solid transparent;
  color: var(--t-dark);
}

.header.is-scrolled {
  background: rgba(7, 14, 32, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line-dark);
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
}

.brand-mark { width: 58px; height: auto; overflow: visible; }

.brand-mark .ribbon {
  fill: none;
  stroke: url(#markGrad);
  stroke-width: 5;
  stroke-linecap: round;
}

.brand-word {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--t-dark);
  white-space: nowrap;
}
.brand-word .x { color: var(--silver); font-weight: 600; }

.brand-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--t-dark-muted);
  border-left: 1px solid var(--line-dark);
  padding-left: 13px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 14px;
  font-weight: 500;
}

.nav a { position: relative; padding: 6px 0; opacity: 0.82; transition: opacity 0.25s; }

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-mist), var(--silver));
  transition: right 0.35s var(--ease-out);
}

.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav a.is-active { opacity: 1; }

.nav .nav-cta {
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 10px 22px;
  opacity: 1;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--t-dark); color: var(--ink); border-color: var(--t-dark); }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  position: relative;
  z-index: 130;
  color: inherit;
}
.menu-btn span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s, opacity 0.3s;
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 29px; }
.menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 420;
  letter-spacing: -0.02em;
  color: var(--t-dark);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.mobile-nav a::after { content: "→"; font-size: 0.55em; opacity: 0.4; }
.menu-open .mobile-nav a { transform: none; opacity: 1; }
.menu-open .mobile-nav a:nth-child(1) { transition-delay: 0.06s; }
.menu-open .mobile-nav a:nth-child(2) { transition-delay: 0.1s; }
.menu-open .mobile-nav a:nth-child(3) { transition-delay: 0.14s; }
.menu-open .mobile-nav a:nth-child(4) { transition-delay: 0.18s; }
.menu-open .mobile-nav a:nth-child(5) { transition-delay: 0.22s; }
.menu-open .mobile-nav a:nth-child(6) { transition-delay: 0.26s; }
.menu-open .mobile-nav a:nth-child(7) { transition-delay: 0.3s; }
.menu-open { overflow: hidden; }

/* ------------------------------------------------------------
   Buttons & links
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 17px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn .arr { transition: transform 0.3s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }

.btn--light { background: var(--t-dark); color: var(--ink); }
.btn--light:hover { box-shadow: 0 14px 40px rgba(233, 238, 247, 0.18); }

.btn--ink { background: var(--ink); color: var(--t-dark); }
.btn--ink:hover { box-shadow: 0 16px 40px rgba(7, 14, 32, 0.28); }

.btn--ghost-dark { border-color: var(--line-dark); color: var(--t-dark); }
.btn--ghost-dark:hover { background: rgba(233, 238, 247, 0.07); }

.btn--ghost-light { border-color: #c9c5b8; color: var(--t-light); }
.btn--ghost-light:hover { background: rgba(19, 26, 44, 0.05); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 3px;
  position: relative;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.3s;
}
.link-arrow .arr { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .arr { transform: translateX(5px); }
.link-arrow:hover::after { opacity: 1; }

/* ------------------------------------------------------------
   Hero (home)
   ------------------------------------------------------------ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) var(--pad-x) clamp(60px, 7vh, 90px);
  background:
    radial-gradient(1100px 640px at 78% 8%, rgba(34, 48, 107, 0.55), transparent 62%),
    radial-gradient(900px 700px at 8% 100%, rgba(16, 29, 61, 0.7), transparent 60%),
    var(--ink);
  color: var(--t-dark);
}

.hero-ribbon {
  position: absolute;
  inset: -4% -10%;
  width: 120%;
  height: 108%;
  pointer-events: none;
  opacity: 0.9;
}

.hero-inner { position: relative; z-index: 2; max-width: 1360px; margin: 0 auto; width: 100%; }

.hero .h-hero { max-width: 13ch; margin-bottom: 34px; }
.hero .h-hero .accent { color: var(--blue-mist); }

.hero-sub {
  max-width: 58ch;
  font-size: clamp(17px, 1.75vw, 21px);
  color: var(--t-dark-muted);
  margin-bottom: 44px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-foot {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  margin: clamp(48px, 7vh, 84px) auto 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-dark-muted);
}

.hero-foot .scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.hero-foot .scroll-cue::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(var(--t-dark-muted), transparent);
  animation: cueDrop 2.2s var(--ease-soft) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* word-by-word headline reveal */
.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-words .w > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.9s var(--ease-out);
}
.split-words.is-in .w > span { transform: none; }

/* ------------------------------------------------------------
   Inner-page hero
   ------------------------------------------------------------ */
.page-hero {
  padding: calc(var(--header-h) + clamp(64px, 10vh, 130px)) var(--pad-x) clamp(64px, 8vw, 110px);
  background:
    radial-gradient(1000px 560px at 85% 0%, rgba(34, 48, 107, 0.5), transparent 62%),
    var(--ink);
  color: var(--t-dark);
  position: relative;
  overflow: hidden;
}
.page-hero .h-xl { max-width: 17ch; }
.page-hero .lead { margin-top: 28px; }

.page-hero-ribbon {
  position: absolute;
  right: -12%;
  top: -30%;
  width: 62%;
  min-width: 520px;
  opacity: 0.5;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Marquee (representative organizations)
   ------------------------------------------------------------ */
.marquee-block { padding: clamp(52px, 5vw, 74px) 0; overflow: hidden; }

.marquee-label {
  padding: 0 var(--pad-x);
  margin-bottom: 34px;
}

.marquee {
  display: flex;
  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: clamp(48px, 6vw, 110px);
  padding-right: clamp(48px, 6vw, 110px);
  flex: none;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--t-dark);
  opacity: 0.42;
  transition: opacity 0.3s;
  display: inline-flex;
  align-items: center;
  gap: clamp(48px, 6vw, 110px);
}
.marquee-track span::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-mist);
  opacity: 0.6;
}
.marquee-track span:hover { opacity: 0.95; }

@keyframes marquee { to { transform: translateX(-100%); } }

/* ------------------------------------------------------------
   Stat band
   ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.on-light .stats, .on-white .stats { background: var(--line-light); border-color: var(--line-light); }

.stat {
  background: var(--ink);
  padding: clamp(34px, 3.6vw, 56px) clamp(22px, 2.6vw, 44px);
}
.on-light .stat { background: var(--paper); }
.on-white .stat { background: var(--white); }

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  font-variation-settings: "opsz" 144;
}
.stat b sup { font-size: 0.5em; vertical-align: super; color: var(--blue-mist); }
.stat > span {
  font-size: 14.5px;
  color: var(--t-dark-muted);
  display: block;
  max-width: 24ch;
}
.on-light .stat > span { color: var(--t-light-muted); }

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 18px;
  padding: clamp(28px, 2.6vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(7, 14, 32, 0.09);
  border-color: #cfccc0;
}

.card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--blue-mist);
}

.card h3 { color: var(--ink); }
.card p { color: var(--t-light-muted); font-size: 15.5px; }

.card ul {
  list-style: none;
  margin-top: 4px;
  display: grid;
  gap: 9px;
}
.card ul li {
  font-size: 14.5px;
  color: var(--t-light);
  padding-left: 22px;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 12px; height: 1px;
  background: var(--brand);
}

/* dark cards */
.on-dark .card, .on-dark-2 .card {
  background: rgba(233, 238, 247, 0.04);
  border-color: var(--line-dark);
}
.on-dark .card:hover, .on-dark-2 .card:hover {
  border-color: rgba(233, 238, 247, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.on-dark .card h3, .on-dark-2 .card h3 { color: var(--t-dark); }
.on-dark .card p, .on-dark-2 .card p { color: var(--t-dark-muted); }
.on-dark .card ul li, .on-dark-2 .card ul li { color: var(--t-dark); }
.on-dark .card ul li::before, .on-dark-2 .card ul li::before { background: var(--blue-mist); }

/* ------------------------------------------------------------
   Case studies (results)
   ------------------------------------------------------------ */
.case {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(34px, 5vw, 90px);
  padding: clamp(44px, 5vw, 72px) 0;
  border-top: 1px solid var(--line-light);
  align-items: start;
}
.case:last-of-type { border-bottom: 1px solid var(--line-light); }
.on-dark .case, .on-dark-2 .case { border-color: var(--line-dark); }

.case-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.on-dark .case-meta { color: var(--blue-mist); }

.case h3 { color: var(--ink); margin-bottom: 18px; max-width: 22ch; }
.on-dark .case h3 { color: var(--t-dark); }

.case .case-body { display: grid; gap: 14px; }
.case .case-body p { color: var(--t-light-muted); font-size: 15.5px; max-width: 58ch; }
.on-dark .case .case-body p { color: var(--t-dark-muted); }
.case .case-body p b { color: var(--t-light); font-weight: 600; }
.on-dark .case .case-body p b { color: var(--t-dark); }

.case-outcome {
  border-left: 2px solid var(--brand);
  padding: 6px 0 6px 24px;
}
.on-dark .case-outcome { border-color: var(--blue-mist); }

.case-outcome .big {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  font-variation-settings: "opsz" 144;
}
.on-dark .case-outcome .big { color: var(--t-dark); }

.case-outcome .lesson {
  font-size: 14.5px;
  color: var(--t-light-muted);
  font-style: italic;
  max-width: 34ch;
}
.on-dark .case-outcome .lesson { color: var(--t-dark-muted); }

/* ------------------------------------------------------------
   Approach — reading the lines
   ------------------------------------------------------------ */
.steps { position: relative; display: grid; gap: 0; }

.step {
  display: grid;
  grid-template-columns: minmax(90px, 170px) minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 3vw, 60px);
  padding: clamp(36px, 4vw, 60px) 0;
  border-top: 1px solid var(--line-dark);
  align-items: start;
}
.on-light .step, .on-white .step { border-color: var(--line-light); }
.step:last-child { border-bottom: 1px solid var(--line-dark); }
.on-light .step:last-child, .on-white .step:last-child { border-color: var(--line-light); }

.step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--blue-mist);
  padding-top: 8px;
}
.on-light .step .step-num { color: var(--brand); }

.step h3 { max-width: 16ch; }
.step p { color: var(--t-dark-muted); font-size: 16px; max-width: 52ch; }
.on-light .step p { color: var(--t-light-muted); }

/* ------------------------------------------------------------
   Big quote block
   ------------------------------------------------------------ */
.quote-block { text-align: center; }
.quote-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 0 auto;
  font-variation-settings: "opsz" 144;
}
.quote-block cite {
  display: block;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-mist);
}

/* ------------------------------------------------------------
   Insights
   ------------------------------------------------------------ */
.insight {
  border-top: 1px solid var(--line-light);
  padding: clamp(34px, 3.6vw, 54px) 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
}
.insight:last-of-type { border-bottom: 1px solid var(--line-light); }
.insight h3 { color: var(--ink); max-width: 20ch; }
.insight p {
  color: var(--t-light-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
}
.insight .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 14px;
}

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(96px, 11vw, 170px) var(--pad-x);
}
.cta-band .h-xl { max-width: 18ch; margin: 0 auto 26px; }
.cta-band .lead { margin: 0 auto 44px; }
.cta-ribbon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  min-width: 900px;
  transform: translate(-50%, -50%);
  opacity: 0.16;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Contact page
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(44px, 6vw, 110px);
  align-items: start;
}

.contact-list { display: grid; gap: 0; margin-top: 10px; }
.contact-list .item {
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 4px;
}
.contact-list .item:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-list .item .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--t-dark-muted);
}
.contact-list .item .value { font-size: 17px; font-weight: 500; }
.contact-list .item a.value:hover { color: var(--blue-mist); }

.form-card {
  background: rgba(233, 238, 247, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  padding: clamp(28px, 3.4vw, 52px);
}

.field { display: grid; gap: 9px; margin-bottom: 22px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-dark-muted);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 15.5px;
  color: var(--t-dark);
  background: rgba(7, 14, 32, 0.5);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 15px 18px;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(233, 238, 247, 0.32); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue-mist);
  box-shadow: 0 0 0 3px rgba(142, 164, 205, 0.16);
}
.field select { appearance: none; -webkit-appearance: none; }
.field .select-wrap { position: relative; }
.field .select-wrap::after {
  content: "↓";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--t-dark-muted);
  pointer-events: none;
  font-size: 14px;
}
.form-note {
  font-size: 13px;
  color: var(--t-dark-muted);
  margin-top: 18px;
  line-height: 1.5;
}

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline send result, under the submit button. */
.form-status {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px;
  min-height: 0;
}
.form-status:empty { margin-top: 0; }
.form-status.ok  { color: #7fd1a8; }
.form-status.err { color: #ff9b8a; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--ink);
  color: var(--t-dark);
  padding: clamp(70px, 8vw, 120px) var(--pad-x) 40px;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 5vw, 100px);
  padding-bottom: clamp(48px, 5vw, 80px);
  border-bottom: 1px solid var(--line-dark);
  max-width: 1360px;
  margin: 0 auto;
}

.footer-word {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  margin-bottom: 20px;
}
.footer-word .x { color: var(--silver); }

.footer-tag { color: var(--t-dark-muted); max-width: 40ch; font-size: 15.5px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(30px, 4vw, 70px);
  justify-content: end;
}

.footer-cols .col { display: grid; gap: 12px; align-content: start; }
.footer-cols .col b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--t-dark-muted);
  margin-bottom: 6px;
}
.footer-cols .col a { font-size: 14.5px; opacity: 0.85; transition: opacity 0.25s, color 0.25s; }
.footer-cols .col a:hover { opacity: 1; color: var(--blue-mist); }

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: rgba(233, 238, 247, 0.42);
}
.footer-bottom .mantra { font-style: italic; font-family: var(--font-display); font-size: 14px; }

/* ------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-line {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
}
.reveal-line.is-in { transform: scaleX(1); }

/* ------------------------------------------------------------
   Ribbon SVG animation
   ------------------------------------------------------------ */
.ribbon-path {
  fill: none;
  stroke-linecap: round;
}

.js .draw-on-load .ribbon-path {
  stroke-dasharray: var(--len, 4000);
  stroke-dashoffset: var(--len, 4000);
  animation: drawRibbon 2.8s var(--ease-soft) 0.25s forwards;
}
@keyframes drawRibbon { to { stroke-dashoffset: 0; } }

.pulse-dot { opacity: 0; animation: pulseIn 1s 2.6s forwards; }
@keyframes pulseIn { to { opacity: 1; } }

/* ------------------------------------------------------------
   Utility
   ------------------------------------------------------------ */
.center { text-align: center; }
.center .lead, .center .kicker { margin-left: auto; margin-right: auto; }
.center .kicker { justify-content: center; }
.mt-lg { margin-top: clamp(44px, 5vw, 80px); }
.mt-md { margin-top: clamp(28px, 3vw, 48px); }
.mt-sm { margin-top: 18px; }
.max-60 { max-width: 60ch; }

.section-head { margin-bottom: clamp(44px, 5vw, 84px); }
.section-head .h-xl, .section-head .h-lg { max-width: 22ch; }
.section-head .lead { margin-top: 22px; }

/* two-col editorial text */
.ed-cols {
  columns: 2;
  column-gap: clamp(36px, 4vw, 72px);
  font-size: 16.5px;
  color: var(--t-light-muted);
}
.ed-cols p { break-inside: avoid; margin-bottom: 1.15em; }
.on-dark .ed-cols { color: var(--t-dark-muted); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
/* The hero ribbon is a 1440x800 viewBox drawn with preserveAspectRatio
   "slice" (= cover), so a box that isn't ~1.8:1 crops the artwork instead of
   scaling it. On phones and portrait tablets the box is taller than it is
   wide (as low as 0.83:1), which cropped the infinity down to an
   unrecognisable sliver of two arcs running straight through the headline.
   Giving the box the artwork's own aspect ratio makes "slice" fit rather than
   crop, so the whole mark reads, and the lower opacity keeps it behind the
   copy. Positioned with left/width and never transform — the scroll parallax
   in main.js writes to transform and would overwrite it. */
@media (max-width: 1080px) {
  .hero-ribbon {
    inset: auto;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1440 / 800;
    top: 42%;
    opacity: .32;
  }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .brand-tag { display: none; }
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { justify-content: start; }
}

@media (max-width: 780px) {
  .split, .case, .insight, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .step .step-num { padding-top: 0; }
  .form-row { grid-template-columns: 1fr; }
  .ed-cols { columns: 1; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 18px; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 34px; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-line, .split-words .w > span { transition: none !important; transform: none !important; opacity: 1 !important; }
  .js .draw-on-load .ribbon-path { animation: none; stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
  .hero-foot .scroll-cue::after { animation: none; }
  * { animation-duration: 0.001s !important; }
}
