/* Fetch Analytics — marketing site styles
 * Brand tokens come from /styles/tokens.css (Terain MUI theme mirror).
 * This file layers the marketing-site surface on top of those tokens.
 */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
h1, h2, h3, h4, h5, h6, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Site-level tokens ---------- */
:root {
  /* surfaces */
  --surface:        #ffffff;
  --surface-soft:   #f5f5f4;    /* warm off-white */
  --surface-mute:   #ecebe7;    /* dividers, subtle bands */
  --ink:            #1a1a1c;    /* primary text, near-black */
  --ink-2:          #515154;    /* secondary text (brand charcoal) */
  --ink-3:          #8a8a8c;    /* tertiary */
  --line:           rgba(0,0,0,0.08);
  --line-strong:    rgba(0,0,0,0.14);

  /* brand */
  --orange:         #ffa53e;
  --orange-deep:    #e58a20;
  --orange-soft:    #ffe2c2;
  --charcoal:       #2a2a2c;
  --charcoal-deep:  #161618;

  /* dark surface */
  --night:          #131316;
  --night-2:        #1c1c20;
  --night-line:     rgba(255,255,255,0.08);
  --night-line-2:   rgba(255,255,255,0.14);
  --night-ink:      rgba(255,255,255,0.92);
  --night-ink-2:    rgba(255,255,255,0.62);
  --night-ink-3:    rgba(255,255,255,0.40);

  /* layout */
  --maxw:           1280px;
  --pad:            clamp(20px, 4vw, 56px);
  --radius-lg:      20px;
  --radius-md:      14px;
  --radius-sm:      8px;

  /* footer logo block (matches Home tweak defaults) */
  --foot-logo-scale: 0.95;
  --foot-logo-gap:   18px;

  /* type */
  --display-1:      clamp(44px, 5.4vw, 82px);
  --display-2:      clamp(36px, 4.4vw, 64px);
  --display-3:      clamp(28px, 2.8vw, 40px);
  --eyebrow-size:   12px;
}

/* ---------- Whole-page dark mode ---------- */
body.theme-dark {
  --surface:      var(--night);
  --surface-soft: var(--night-2);
  --surface-mute: #25252a;
  --ink:          var(--night-ink);
  --ink-2:        var(--night-ink-2);
  --ink-3:        var(--night-ink-3);
  --line:         var(--night-line);
  --line-strong:  var(--night-line-2);
}

/* ---------- Layout primitives ---------- */
.shell { width: 100%; padding: 0 var(--pad); }
.maxw  { max-width: var(--maxw); margin: 0 auto; }

.section {
  padding: clamp(48px, 6vh, 88px) 0;
}
.section--tight { padding: clamp(28px, 3.5vh, 48px) 0; }
.section--news { padding-bottom: clamp(32px, 4vh, 56px); }
.section--soft  { background: var(--surface-soft); }
.section--dark  {
  background: var(--night);
  color: var(--night-ink);
}
.section--dark .muted { color: var(--night-ink-2); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: var(--eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--orange);
}
.section--dark .eyebrow { color: var(--night-ink-2); }

.display-1 {
  font-size: var(--display-1);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.display-1 b, .display-1 .em {
  font-weight: 600;
  letter-spacing: -0.04em;
}
.display-1 .accent { color: var(--orange); font-style: normal; }
.display-2 .accent { color: var(--orange); font-style: normal; }

.display-2 {
  font-size: var(--display-2);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display-3 {
  font-size: var(--display-3);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.muted { color: var(--ink-2); }
.mono  { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  line-height: 1;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: var(--charcoal-deep); }
body.theme-dark .btn--primary { background: var(--orange); color: #1a1a1c; }
body.theme-dark .btn--primary:hover { background: var(--orange-deep); }

.btn--accent {
  background: var(--orange);
  color: #1a1a1c;
}
.btn--accent:hover { background: var(--orange-deep); color: #fff; }

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

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.btn--ghost-light:hover { border-color: #fff; }

.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn .arrow {
  width: 14px; height: 14px;
  display: inline-block;
  transition: transform 160ms ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 88px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
  color: var(--ink);
}
.nav__brand .mark { width: 24px; height: 28px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 0;
}
.nav__link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.nav__spacer { flex: 1; }
.nav__logo { display: block; height: 30px; width: auto; }
.nav__logo--fetch { height: 80px; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__login {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__login:hover { color: var(--ink); }
.nav__login .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vh, 96px) 0 clamp(48px, 7vh, 88px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__copy { max-width: 640px; min-width: 0; }
.hero__eyebrow { margin-bottom: 24px; }
.hero__h1 { margin-bottom: 28px; }
.hero__lede { margin-bottom: 36px; }
.hero__cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero__cta .btn {
  font-size: calc(14px * var(--hero-cta-scale, 1));
  padding: calc(9px * var(--hero-cta-scale, 1)) calc(22px * var(--hero-cta-scale, 1));
}
.hero__cta .btn .arrow {
  width: calc(14px * var(--hero-cta-scale, 1));
  height: calc(14px * var(--hero-cta-scale, 1));
}
.hero__meta {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,165,62,0.18);
}

/* hero variant: centered */
.hero--centered .hero__grid { grid-template-columns: 1fr; text-align: center; }
.hero--centered .hero__copy { max-width: 920px; margin: 0 auto; }
.hero--centered .hero__lede { margin-left: auto; margin-right: auto; }
.hero--centered .hero__cta  { justify-content: center; }
.hero--centered .hero__meta { justify-content: center; }
.hero--centered .hero__visual { margin-top: 64px; }

/* hero variant: dark */
.hero--dark {
  background: var(--night);
  color: var(--night-ink);
}
.hero--dark .display-1 { color: #fff; }
.hero--dark .lede { color: var(--night-ink-2); }
.hero--dark .eyebrow { color: var(--night-ink-2); }
.hero--dark .hero__meta { color: var(--night-ink-3); }
.hero--dark .display-1 .accent { color: var(--orange); }

/* hero backdrop (grid removed) */
.hero__bg {
  display: none;
}
.hero--dark .hero__bg {
  display: none;
}

/* ---------- Hero visual: floating Terain card ---------- */
.tcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 20px 60px -20px rgba(0,0,0,0.25),
    0 6px 18px -10px rgba(0,0,0,0.12);
  overflow: hidden;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}
.hero--centered .tcard { margin: 0 auto; }
.tcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--charcoal);
  color: #fff;
}
.tcard__head h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.tcard__head .sub {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.tcard__follow {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1c;
  background: var(--orange);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.tcard__tabs {
  display: flex;
  gap: 22px;
  padding: 10px 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.tcard__tabs .tab { padding: 6px 0 10px; position: relative; }
.tcard__tabs .tab.is-active { color: var(--ink); font-weight: 600; }
.tcard__tabs .tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--orange);
}
.tcard__body { padding: 18px; }
.tcard__statrow {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 16px;
}
.tcard__stat .v {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.tcard__stat .k {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 1px;
}
.tcard__stat .yoy {
  font-size: 11px;
  font-weight: 600;
  color: #2c8a1f;
  margin-left: 6px;
}
.tcard__chartwrap {
  position: relative;
  height: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px 8px;
  background: linear-gradient(to bottom, #fff, #fafaf8);
}
.tcard__chartwrap svg { width: 100%; height: 100%; display: block; }
.tcard__pills {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.tcard__pills .pill {
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink-3);
}
.tcard__pills .pill.is-on { background: var(--orange); border-color: var(--orange); color: #1a1a1c; }

.tcard__map {
  height: 200px;
  background-image: url('../assets/lincoln-satellite.png');
  background-size: cover;
  background-position: 60% 50%;
  position: relative;
  border-top: 1px solid var(--line);
}
.tcard__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 32%, rgba(255,165,62,0.45) 0%, rgba(255,165,62,0) 14%),
    radial-gradient(circle at 56% 48%, rgba(255,165,62,0.30) 0%, rgba(255,165,62,0) 18%),
    linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18) 100%);
}
.tcard__map .pin {
  position: absolute;
  left: 62%; top: 32%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,165,62,0.35), 0 0 0 10px rgba(255,165,62,0.15);
}

/* secondary tiny stat tag floating */
.tcard__float {
  position: absolute;
  right: -18px;
  bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 12px;
}
.tcard__float .v { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.tcard__float .k { font-size: 10px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.tcard__float .yoy { font-size: 11px; color: #2c8a1f; font-weight: 600; }

/* ---------- Logo strip ---------- */
.logos {
  background: var(--surface);
}
.logos__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  padding: 28px 0;
}
.logos__label {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
  font-weight: 500;
}
.logos__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 32px);
  flex-wrap: wrap;
  row-gap: 18px;
  color: #6f6f72;
}
.logos__row .logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  white-space: nowrap;
  transition: opacity 160ms ease, transform 160ms ease;
  opacity: 0.92;
  line-height: 1;
}
.logos__row .logo:hover { opacity: 1; transform: translateY(-1px); }
.logos__row .logo img { display: block; object-fit: contain; }

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(20px, 2.4vw, 34px) clamp(20px, 2vw, 32px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat:last-child { border-right: 0; }
.stat__v {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: 'tnum';
}
.stat__v .unit { font-size: 0.5em; font-weight: 600; color: var(--orange); margin-left: 4px; vertical-align: 6px; }
.stat__k {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-3);
  font-weight: 600;
}
.stat__d {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
  line-height: 1.5;
}

/* ---------- Section heads ---------- */
.shead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.shead__left .eyebrow { margin-bottom: 16px; }
#platform .shead { grid-template-columns: 1fr; }
.shead--full { grid-template-columns: 1fr; }
.shead__title { color: var(--ink); }

/* --- Cross-page header alignment ---
   Make each subpage's opening heading sit at the same top-left spot and size
   as the Home hero h1 (display-1 + matching top padding). */
.subpage > .section:first-of-type { padding-top: 56px; }
.subpage .shead__title,
.subpage .mapmoment__copy > .display-2 {
  font-size: var(--display-1);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
/* News heading: keep the display-1 size (matches other subpages); just tighten the gap below */
.subpage .shead--news { margin-bottom: clamp(20px, 2.5vw, 32px); }

/* Give Home, Approach, News, Contact and Usage the same content-region height so
   every page's footer begins at the same point (nav + 715px ≈ Home's hero).
   Desktop only — on mobile these pages flow to their natural height. */
@media (min-width: 961px) {
  [data-active="Approach"] .subpage > .section:first-of-type,
  [data-active="Usage"] .subpage > .section:first-of-type,
  [data-active="News"] .subpage > .section:first-of-type,
  [data-active="Contact"] .subpage > .section:first-of-type,
  .hero {
    min-height: 715px;
  }
}
.shead__right { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 48ch; }
.section--dark .shead__title { color: #fff; }
.section--dark .shead__right { color: var(--night-ink-2); }

/* ---------- Platform / capability cards ---------- */
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cap {
  background: var(--surface);
  padding: clamp(22px, 1.8vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  position: relative;
}
.cap__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Capability carousel ---------- */
.capcar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.capcar__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.capcar__arrow {
  width: 48px;
  height: 48px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.capcar__arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.capcar__stage {
  position: relative;
  overflow: hidden;
}
.capcar__slide {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  gap: clamp(20px, 2.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(16px, 1.8vw, 26px);
  animation: capcarIn 0.32s ease both;
}
.capcar__media { min-width: 0; display: flex; align-items: flex-start; }
@keyframes capcarIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.capcar__viz {
  height: clamp(165px, 20vh, 230px);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.capcar__viz--big {
  width: 100%;
  height: auto;
  aspect-ratio: 1298 / 800;
}
.capcar__viz svg { width: 100%; height: 100%; display: block; }
.capcar__viz--shot { padding: 0; }
.capcar__viz--shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* real screenshots framed like the home hero card */
.capcar__viz--card {
  width: 100%;
  height: auto;
  aspect-ratio: 1298 / 800;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 20px 60px -20px rgba(0,0,0,0.25),
    0 6px 18px -10px rgba(0,0,0,0.12);
}
.capcar__viz--card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.capcar__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 18px;
  max-width: 760px;
  min-width: 0;
  min-height: 0;
  position: relative;
  /* 2fr:1fr columns → image width = 2× body width, so matching the image's
     1298×800 ratio at 1fr means aspect 1298:1600. This makes the text column
     exactly as tall as the image, so the in-feature controls (pinned to the
     column bottom) align with the image's bottom edge on desktop widths. */
  aspect-ratio: 1298 / 1600;
  text-align: right;
}
.capcar__body-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 8px;
}
.capcar__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transform: rotate(-45deg);
  transform-origin: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 64px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  user-select: none;
}
.capcar__caption {
  margin-top: var(--capcar-caption-gap, 48px);
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 42ch;
  animation: capcarIn 0.28s ease both;
}
.capcar__imgnav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.capcar__imgdots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.capcar__imgbtn {
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s ease;
}
.capcar__imgbtn:hover {
  color: var(--orange);
}
.capcar__imgcount {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
}
.capcar__title {
  font-size: var(--capcar-title-size, 32px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 1.4em;
}
.capcar__desc {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  color: var(--ink-2);
}
.capcar__dots {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.capcar__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.capcar__dot:hover { background: var(--ink-3); }
.capcar__dot.is-active {
  background: var(--orange);
  transform: scale(1.25);
}

.cap__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 0;
  line-height: 1.2;
}
.cap__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.cap__viz {
  margin-top: auto;
  height: 76px;
  position: relative;
}
.cap__viz svg { width: 100%; height: 100%; display: block; }
.cap--wide { grid-column: 1 / -1; }
.cap--wide .cap__viz { height: 110px; max-width: 760px; }
.cap__pills {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cap__pills .pill {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.cap__pills .pills-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-right: 6px;
  align-self: center;
}

/* ---------- Sectors ---------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sector {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: border-color 120ms ease, transform 160ms ease, box-shadow 200ms ease;
}
.sector:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(0,0,0,0.18);
}
.sector__icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}
.sector__icon svg { width: 18px; height: 18px; }
.sector__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sector__desc { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.sector__more {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sector__more .arrow { width: 12px; height: 12px; }
.sector__download {
  margin-top: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.3;
  transition: color 0.15s ease;
}
.sector__downloads { margin-top: auto; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.sector__download:hover { color: var(--orange); }
.sector__download svg { flex: none; }

/* ---------- Approach ---------- */
.approach__grid {
  margin-top: clamp(28px, 4vh, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(36px, 6vw, 88px);
  row-gap: clamp(20px, 3vh, 32px);
  align-items: start;
}
.principles {
  display: grid;
  gap: clamp(20px, 3vh, 32px);
  align-content: start;
  max-width: 620px;
}
.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.principle__n {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange-deep);
  padding-top: 4px;
  letter-spacing: 0.04em;
}
.principle__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.25;
}
.principle__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
}
.approach__media image-slot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.3);
}

.cs__head { max-width: 60ch; margin-bottom: clamp(28px, 4vh, 44px); }
.cs__title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
}
.cs__intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.cs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px) clamp(28px, 4vw, 56px);
}
.cs__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.cs__item .marker {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 7px;
  box-shadow: 0 0 0 4px rgba(255,165,62,0.18);
}
.cs__item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}
.cs__item-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Map moment (dark section) ---------- */
.mapmoment {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.mapmoment__copy h2 { color: var(--ink); margin-bottom: 16px; }
.mapmoment__copy p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  max-width: 48ch;
  margin-bottom: 20px;
}
.mapmoment__points {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.mapmoment__point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14px;
  color: var(--ink);
}
.mapmoment__point .marker {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 8px;
  box-shadow: 0 0 0 4px rgba(255,165,62,0.18);
}
.mapmoment__point .marker.mute { background: var(--ink-3); box-shadow: none; }
.mapmoment__point b { font-weight: 600; color: var(--ink); }
.mapmoment__point span { color: var(--ink-2); display: block; margin-top: 2px; font-size: 13px; }

/* flipped layout: image left, copy right + right-aligned */
.mapmoment--flip { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; }
.mapmoment--flip .mapviz { order: 1; }
.mapmoment--flip .mapmoment__copy { order: 2; text-align: left; }

.mapviz {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.3);
}
.mapviz img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Testimonial / quote band ---------- */
.quoteband {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 38px);
  max-width: 1000px;
  margin: clamp(44px, 6vh, 76px) 0 0;
  padding-top: clamp(30px, 4vh, 48px);
  border-top: 1px solid var(--line);
}
.quoteband__photo {
  flex: none;
  width: clamp(84px, 8vw, 104px);
  height: clamp(84px, 8vw, 104px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%);
  border: 1px solid var(--line);
}
.quoteband__main { min-width: 0; }
.quoteband__text {
  margin: 0 0 14px;
  font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1.42;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.quoteband__who { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.quoteband__name { font-weight: 600; color: var(--ink); }
.quoteband__role { color: var(--ink-2); }

/* ---------- About-page testimonial (header top-right) ---------- */
.shead--about { position: relative; align-items: stretch; }
.shead__quote {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 28px);
  margin-left: auto;
}
.aboutquote__body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  text-align: right;
  max-width: 48ch;
  margin-left: auto;
}
.aboutquote__top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.aboutquote__text {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.aboutquote__who { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.aboutquote__name { font-weight: 600; color: var(--ink); }
.aboutquote__role { color: var(--ink-2); }
.aboutquote__nav { margin-top: 14px; justify-content: flex-end; }
.aboutquote__photo {
  flex: none;
  width: clamp(88px, 8vw, 108px);
  height: clamp(88px, 8vw, 108px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%);
  border: 1px solid var(--line);
}
.aboutquote__monogram {
  filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-mute);
  color: var(--ink-2);
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: 0.02em;
}
.mapmoment__slidetext {
  margin-bottom: 22px;
  animation: capcarIn 0.3s ease both;
}
.mapmoment__slidetitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.mapmoment__slidedesc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 46ch;
}
.mapviz__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(8,8,10,0.45) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
/* location-stats callout card — sits above the Tortilla hotspot
   with a downward triangular pointer */
.mapviz__statscard {
  position: absolute;
  left: 56%;
  top: 70%;
  transform: translate(-50%, calc(-100% - 10px));
  background: #ffffff;
  color: #1a1a1c;
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 12px 26px -10px rgba(0,0,0,0.5);
  min-width: 220px;
  white-space: nowrap;
  font-feature-settings: 'tnum';
  z-index: 3;
}
.mapviz__statscard::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #ffffff;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.22));
}
.mapviz__statscard h5 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 5px;
  color: #1a1a1c;
}
.mapviz__statscard .row {
  display: flex;
  gap: 6px;
}
.mapviz__statscard .row .k {
  font-weight: 500;
  color: #515154;
}
.mapviz__statscard .row .v {
  font-weight: 600;
  color: #1a1a1c;
}
.mapviz__statscard .v-accent { color: var(--orange-deep); }

/* top-left "wide view" label */
.mapviz__wide-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(20,20,22,0.78);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.mapviz__wide-label .sub {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* zoom-level chip badges */
.mapviz__zoomtag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #1a1a1c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 4px 10px -2px rgba(0,0,0,0.35);
}

/* ---------- CTA band ---------- */
.ctaband {
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.ctaband__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ctaband h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 18px;
  text-wrap: balance;
}
.ctaband h2 .accent { color: var(--orange); }
.ctaband p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  line-height: 1.55;
  max-width: 44ch;
}
.ctaband__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.ctaband__meta {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.ctaband__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(255,165,62,0.18), transparent 45%),
    radial-gradient(ellipse at 10% 100%, rgba(255,165,62,0.08), transparent 55%);
}
.ctaband__inner--form { align-items: stretch; grid-template-columns: 1fr 1.05fr; }
.ctaband__lead { display: flex; flex-direction: column; justify-content: flex-start; align-self: stretch; gap: 10px; }
.ctaband__lead .ctaband__meta { margin-top: auto; margin-bottom: 64px; }

/* contact form */
.cform { display: flex; flex-direction: column; gap: 13px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform__field { display: flex; flex-direction: column; gap: 5px; }
.cform__field > span {
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  color: rgba(255,255,255,0.62);
}
.cform input[type="text"],
.cform input[type="email"],
.cform select,
.cform textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cform textarea { resize: vertical; min-height: 76px; line-height: 1.45; }
.cform input::placeholder,
.cform textarea::placeholder { color: rgba(255,255,255,0.38); }
.cform select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.cform select option { color: #1a1a1c; }
.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,0.09);
}
.cform__check {
  display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 10px; align-items: start;
  cursor: pointer; color: rgba(255,255,255,0.62); font-size: 13px; line-height: 1.45; text-align: right;
}
.cform__check input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--orange); cursor: pointer; }
.cform__submit { align-self: flex-end; margin-top: 2px; }
.cform__sink { display: none; }

.cform__thanks {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  justify-content: center; height: 100%; min-height: 240px;
  animation: capcarIn 0.35s ease both;
}
.cform__thanks-mark {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--charcoal);
}
.cform__thanks p {
  color: rgba(255,255,255,0.85); font-size: 18px; line-height: 1.5;
  max-width: 36ch; margin: 0;
}

/* ---------- News (master-detail) ---------- */
.news__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.55fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: start;
  margin-top: clamp(28px, 4vh, 44px);
}

/* left: list of releases */
.news__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  /* fade the last visible row to hint there's more below */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
}
.news__list::-webkit-scrollbar { width: 0; height: 0; display: none; } /* Chrome/Safari */
.news__item {
  display: block;
  width: 100%;
  position: relative;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 26px 10px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.news__item:hover { background: transparent; }
.news__item.is-active { background: transparent; }
.news__dot {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.news__item.is-active .news__dot { opacity: 1; }
.news__detail-inline { display: none; }
.news__item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.news__date {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.news__tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--orange-deep);
}
.news__item-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  line-height: 1.3;
  text-wrap: pretty;
  transition: color 0.15s ease;
}
.news__item:hover .news__item-title { color: var(--ink); }
.news__item.is-active .news__item-title { color: var(--ink); font-weight: 600; }

/* right: selected entry detail */
.news__detail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-top: 3px; /* aligns first line with the list item title (past its top padding) */
  animation: capcarIn 0.3s ease both;
}
.news__detail-kicker { margin-bottom: 18px; }
.news__detail-title {
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.news__detail-title .accent { color: var(--orange); }
.news__standfirst {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-top: 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.news__intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
  margin-top: 14px;
}
.news__body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 64ch;
  margin-top: 18px;
}

/* three proof-point stats */
.news__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0 4px;
}
.news__stat {
  padding: 18px 20px 18px 0;
  border-right: 1px solid var(--line);
}
.news__stat:last-child { border-right: 0; }
.news__stat-v {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
.news__stat.is-accent .news__stat-v { color: var(--orange-deep); }
.news__stat-k {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
  margin-top: 10px;
  max-width: 26ch;
}

/* eight markers */
.news__section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 24px 0 14px;
}
.news__markers-compact { margin-top: 4px; }
.news__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news__chip {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 8px;
}

/* closing note */
.news__closing {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 62ch;
  text-wrap: pretty;
}

.news__cta {
  margin-top: 1.65em; /* one body line-height below the last paragraph */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 24px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.foot__brand-group {
  display: flex;
  align-items: center;
  gap: 24px;
}
.foot__logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--foot-logo-gap, 28px);
}
.foot__logo-mark { display: inline-flex; align-items: center; }
.foot__logos-label {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  margin-right: 10px;
}
.foot__logo-mark img { display: block; max-width: 100%; object-fit: contain; }
.foot__legal {
  font-size: 12px;
  color: var(--ink-3);
  text-align: left;
  line-height: 1.7;
}
.foot__logo {
  display: block;
  height: 64px;
  width: auto;
  mix-blend-mode: multiply;
}
.foot__logo--terain { height: 35px; width: auto; }

/* ---------- Mobile nav (hamburger) ---------- */
/* Hidden by default; revealed at the <=960 breakpoint below. */
.nav__toggle { display: none; }
.nav__mobile { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .caps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .caps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { max-width: none; }
  .tcard { max-width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .caps { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .approach__grid { grid-template-columns: 1fr; }
  .cs__grid { grid-template-columns: 1fr; }
  .shead { grid-template-columns: 1fr; }
  .mapmoment { grid-template-columns: 1fr; }
  .ctaband__inner { grid-template-columns: 1fr; }
  .ctaband__inner--form { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }

  /* News: stack list over detail */
  .news__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .news__detail { padding-top: 0; }
  /* On mobile the selected entry expands inline under its list row (accordion);
     the separate side detail is hidden. */
  .news__layout > .news__detail { display: none; }
  .news__detail-inline { display: block; padding: 14px 8px 16px; background: var(--surface-soft); border-radius: var(--radius-sm); margin: 4px 0 10px; }
  /* full list, no scroll cap when stacked */
  .news__list {
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* --- show hamburger, hide inline links --- */
  .nav__links { display: none; }
  .nav__inner { gap: 16px; }
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: -10px;
    flex: none;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.22s ease, opacity 0.18s ease;
  }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__mobile {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
  }
  .nav__mobile.is-open { grid-template-rows: 1fr; }
  .nav__mobile-inner {
    overflow: hidden;
    min-height: 0;
  }
  .nav__mobile.is-open .nav__mobile-inner { padding-bottom: 10px; }
  .nav__mobile-link {
    display: block;
    padding: 15px 2px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
    border-top: 1px solid var(--line);
  }
  .nav__mobile-link:first-child { border-top: 0; }
  .nav__mobile-link.is-active { color: var(--ink); }

  /* CTA lead/meta spacing once the form stacks below */
  .ctaband__lead .ctaband__meta { margin-top: 16px; margin-bottom: 24px; }
}

/* ---------- Tablet / large phone ---------- */
@media (max-width: 760px) {
  /* Capability carousel: stack image over text, left-align */
  .capcar__slide { grid-template-columns: 1fr; gap: 18px; }
  .capcar__body {
    aspect-ratio: auto;
    text-align: left;
    align-items: flex-start;
  }
  .capcar__body-main { align-items: flex-start; }
  .capcar__caption {
    margin-top: 20px;
    text-align: left;
    max-width: none;
  }
  .capcar__arrow { width: 40px; height: 40px; }
  .capcar__controls { column-gap: 8px; }

  /* Logo strip on Home stacks label over row */
  .logos__inner { grid-template-columns: 1fr; gap: 14px; }

  /* Footer stacks: brand block over client logos */
  .foot__row { flex-direction: column; align-items: flex-start; gap: 26px; }
  .foot__brand-group { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot__logos { justify-content: flex-start; }

  /* About-page header quote: left-align once it's full width */
  .shead__quote { justify-content: flex-start; }
  .aboutquote__body { align-items: flex-start; text-align: left; margin-left: 0; }
  .aboutquote__top { align-items: flex-start; }
  .aboutquote__nav { justify-content: flex-start; }

  /* Hero data card: prevent the floating stat tag from overflowing */
  .tcard__float {
    position: static;
    right: auto;
    bottom: auto;
    margin: 0 18px 18px;
    box-shadow: none;
    border-top: 0;
  }
  .tcard__tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .tcard__tabs::-webkit-scrollbar { display: none; }
  .tcard__tabs .tab { white-space: nowrap; }
  .tcard__statrow { flex-wrap: wrap; gap: 14px 22px; }
  .tcard__pills { flex-wrap: wrap; }

  /* Quote band stacks photo over text */
  .quoteband { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---------- Small phone ---------- */
@media (max-width: 560px) {
  .sectors { grid-template-columns: 1fr; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .ctaband { padding: 32px 22px; }

  /* News: markers + stats to single column on small phones */
  .news__markers { grid-template-columns: 1fr; }
  .news__stats { grid-template-columns: 1fr; }
  .news__stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .news__stat:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Case study viewer — single-viewport, horizontally-paged (namespaced .cs)
   ========================================================================== */
/* Case study sits inside .subpage exactly like the other pages, so its top
   alignment + min-height match Home / Data / Approach / etc. */
.cs.section { display: flex; flex-direction: column; min-height: 620px; }
.cs__wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; }
.cs__deck { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.cs__track { display: flex; height: 100%; transition: transform 0.55s cubic-bezier(0.65, 0, 0.15, 1); will-change: transform; }
.cs__panel { flex: 0 0 100%; height: 100%; display: flex; align-items: flex-start; overflow-y: auto; }
.cs__inner { width: 100%; }
.cs__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; margin-bottom: clamp(10px, 1.4vh, 18px); }
.cs__back { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.cs__back:hover { color: var(--ink); }
.cs__foot { display: flex; align-items: center; justify-content: flex-start; gap: 16px; flex: 0 0 auto; margin-top: clamp(16px, 2vh, 28px); }
.cs__name { font-size: 13.5px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.cs__name span { color: var(--ink-3); font-weight: 500; }
.cs__nav { flex: 0 0 auto; }
.cs__nav .capcar__imgbtn:disabled { opacity: 0.3; cursor: default; color: var(--ink); }

.cs__label { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--orange-deep); margin-bottom: 16px; }
.cs__h2 { font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; font-size: clamp(30px, 4.2vw, 54px); color: var(--ink); margin-bottom: 18px; text-wrap: balance; }
.cs__lede { font-size: 15px; color: var(--ink-2); line-height: 1.55; max-width: 62ch; }

/* entrance animation — gated on the active panel + reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .cs__panel[data-active] .cs__inner > * { opacity: 0; transform: translateY(14px); animation: csRise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .cs__panel[data-active] .cs__inner > *:nth-child(2) { animation-delay: 0.06s; }
  .cs__panel[data-active] .cs__inner > *:nth-child(3) { animation-delay: 0.12s; }
  .cs__panel[data-active] .cs__inner > *:nth-child(4) { animation-delay: 0.18s; }
}
@keyframes csRise { to { opacity: 1; transform: none; } }

/* Cover */
.cs-cover { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.cs__eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 18px; }
.cs-cover__h1 { font-weight: 300; line-height: 1.02; letter-spacing: -0.015em; font-size: clamp(38px, 5.2vw, 72px); color: var(--ink); margin-bottom: 22px; text-wrap: balance; }
.cs-cover__sub { font-size: 15px; color: var(--ink-2); line-height: 1.55; max-width: 46ch; margin-bottom: 26px; }
.cs__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cs__chip { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 15px; background: var(--surface); }
.cs-cover__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.cs-cover__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Brief */
.cs-brief { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cs__card { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 34px); }
.cs__card-h { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.cs__xlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cs__xlist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.cs__xlist li::before {
  content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 5px; background: var(--orange-soft);
  background-image: linear-gradient(45deg, transparent 46%, var(--orange-deep) 46%, var(--orange-deep) 54%, transparent 54%),
                    linear-gradient(-45deg, transparent 46%, var(--orange-deep) 46%, var(--orange-deep) 54%, transparent 54%);
}

/* Approach */
.cs__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); margin-top: 12px; }
.cs__step { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2.2vw, 30px); background: var(--surface); }
.cs__step-n { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--orange-deep); margin-bottom: 14px; }
.cs__step-h { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.cs__step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* Results */
.cs__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 34px); margin-top: 34px; }
.cs__stat { border-top: 2px solid var(--orange); padding-top: 16px; }
.cs__stat-n { font-weight: 300; font-size: clamp(40px, 5vw, 68px); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.cs__stat-l { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; margin-top: 12px; max-width: 22ch; }

/* Outcome */
.cs-outcome { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 56px); align-items: start; }
.cs-outcome__label { grid-column: 1 / -1; }
.cs-outcome__side .cs__cta-row { margin-top: clamp(30px, 5vh, 56px); }
.cs__outs { display: grid; gap: 16px; }
.cs__out { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2vw, 26px); background: var(--surface); }
.cs__out h5 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.cs__out p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.cs__quote { display: flex; flex-direction: column; gap: 20px; }
.cs__quote-text { font-weight: 300; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; }
.cs__quote-who { display: flex; align-items: center; gap: 14px; }
.cs__quote-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cs__quote-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.cs__quote-role { font-size: 12.5px; color: var(--ink-3); }
.cs__cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Panel navigation reuses the Features-carousel control classes (.capcar__*) */

@media (max-width: 900px) {
  .cs-cover, .cs-brief, .cs-outcome { grid-template-columns: 1fr; gap: 24px; }
  .cs-cover__media { aspect-ratio: 16 / 10; }
  .cs__steps { grid-template-columns: 1fr; }
  .cs__stats { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .cs__panel { align-items: flex-start; }
}
@media (max-width: 560px) {
  .cs__stats { grid-template-columns: 1fr 1fr; }
  .cs__pdf-label { display: none; }
}
