/* ═══════════════════════════════════════════════════
   BRIDGE® X:CELLERATOR — Swiss International Style
   ═══════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --darknavy:  #060E2A;
  --navy:      #0C2054;
  --blue:      #1D51D3;
  --softblue:  #E8EDFB;
  --white:     #FFFFFF;
  --lgray:     #F5F7FA;
  --mgray:     #D0D5DD;
  --dgray:     #667085;

  --font-display: 'Inter', Arial, sans-serif;
  --font-body:    'Inter', Arial, sans-serif;

  --ease-snappy: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-base:   cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 10px; }

body {
  background: var(--darknavy);
  color: var(--darknavy);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  overflow-x: hidden;
  letter-spacing: 0.01rem;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 120px;
  position: relative;
  z-index: 1;
}

/* ─── NAV (shared) ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.6rem 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

/* ─── NAV: transparent (hero) ─── */
.nav--top {
  top: 16px;
  left: 120px;
  right: 120px;
  background: transparent;
  transition: opacity 500ms var(--ease-base) 300ms;
}

.nav--top.hidden {
  opacity: 0;
  pointer-events: none;
  transition-delay: 0ms;
}

.nav--top .nav-logo {
  position: relative;
}

/* ─── NAV: sticky (on scroll) ─── */
.nav--sticky {
  top: 16px;
  left: 120px;
  right: 120px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(6, 14, 42, 0.12), 0 2px 8px rgba(6, 14, 42, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-base);
}

.nav--sticky.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav--sticky .nav-logo-img {
  height: 40px;
  filter: invert(1);
}

.nav--sticky .nav-link {
  font-size: 14px;
  line-height: 20px;
  color: rgba(6,14,42,0.6);
}

.nav--sticky .nav-link:hover {
  color: var(--darknavy);
}

.nav--sticky .nav-cta {
  font-size: 14px;
  line-height: 20px;
  padding: 8px 16px;
  color: var(--white);
  background: var(--darknavy);
}

.nav--sticky .nav-cta:hover {
  background: var(--navy);
}


.nav-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 0.8rem 1.6rem;
  transition: color 150ms;
}

.nav-link:hover { color: var(--white); }

.nav-cta {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  padding: 16px 24px;
  margin-left: 1rem;
  border-radius: 4px;
  transition: background 150ms;
}

.nav-cta:hover { background: #1641b0; }

/* ─── NAV FLYOUT DROPDOWNS ─── */
.nav-dropdown {
  position: relative;
}

.nav-link--has-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: none;
}

.nav-chevron {
  transition: transform 300ms var(--ease-snappy);
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-flyout {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(6, 14, 42, 0.14), 0 4px 12px rgba(6, 14, 42, 0.06);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease-base), transform 250ms var(--ease-snappy);
  z-index: 110;
}

.nav-flyout::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-flyout,
.nav-dropdown.open .nav-flyout {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-flyout-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border-radius: 6px;
  transition: background 180ms var(--ease-base);
}

.nav-flyout-link:hover {
  background: var(--lgray);
}

.nav-flyout-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--darknavy);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.nav-flyout-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--dgray);
  line-height: 1.4;
}

.nav-flyout-link:hover .nav-flyout-label {
  color: var(--blue);
}

/* Sticky nav flyout adjustments */
.nav--sticky .nav-flyout {
  top: calc(100% + 8px);
}

.nav--sticky .nav-link--has-sub {
  font-size: 14px;
  line-height: 20px;
  color: rgba(6,14,42,0.6);
}

.nav--sticky .nav-link--has-sub:hover {
  color: var(--darknavy);
}

/* Top nav button text inherits nav-link style */
.nav--top .nav-link--has-sub {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 0.8rem 1.6rem;
  transition: color 150ms;
}

.nav--top .nav-link--has-sub:hover {
  color: var(--white);
}

/* ─── HERO ─── */
.hero {
  min-height: 100lvh;
  background: transparent;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 120px 120px 160px;
}

/* Blob canvas background */
.blob-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob-canvas--global {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.hero-grid-overlay {
  display: none;
}

/* Blue vertical rule — Swiss accent */
.hero-rule {
  display: none;
}

/* Radial glow */
.hero-glow {
  position: absolute;
  width: 70vw; height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,81,211,0.18) 0%, transparent 65%);
  top: -20vw; right: -10vw;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 3.2rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-snappy) 0.1s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: max(4.8rem, min(8.8vw, 12rem));
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--white);
  margin-bottom: 4.8rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-snappy) 0.2s forwards;
}

.hero-title .accent { color: var(--blue); font-weight: 400; }

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-snappy) 0.35s forwards;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  color: rgba(255,255,255,0.8);
  max-width: 80%;
  letter-spacing: 0.01em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--blue);
  color: var(--white);
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 150ms, transform 150ms;
}

.hero-cta:hover { background: #1641b0; transform: translateY(-2px); }

.hero-cta-arrow { width: 20px; height: 20px; transition: transform 150ms; }
.hero-cta:hover .hero-cta-arrow { transform: translate(3px, -3px); }

/* ─── HERO — LIGHT THEME VARIANT ─── */
.hero--light {
  background: var(--lgray);
}

.hero--light .hero-glow {
  opacity: 0.4;
}

.hero--light .hero-title {
  color: var(--navy);
}

.hero--light .hero-sub {
  color: var(--dgray);
}

.hero--light .hero-cta.ghost {
  background: rgba(12, 32, 84, 0.06);
  border: none;
  color: var(--navy);
}
.hero--light .hero-cta.ghost:hover {
  background: rgba(12, 32, 84, 0.1);
  border: none;
  color: var(--blue);
  transform: translateY(-2px);
}

/* ─── INLINE CTA (text link + sliding arrow) ─── */
.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 18px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: gap 200ms var(--ease-snappy);
}
.inline-cta:hover { gap: 1rem; }
.inline-cta.on-dark { color: rgba(255,255,255,0.7); }
.inline-cta.on-dark:hover { color: var(--white); }
.inline-cta svg { width: 18px; height: 18px; }

/* ─── SECTION BASES ─── */
.s-light     { background: var(--lgray);    padding: 160px 0; position: relative; overflow: hidden; }
.s-white     { background: var(--white);    padding: 160px 0; position: relative; overflow: hidden; }
.s-dark      { background: transparent; padding: 160px 0; position: relative; overflow: hidden; z-index: 1; }
.s-navy      { background: var(--navy);     padding: 160px 0; position: relative; overflow: hidden; }
.s-blue      { background: var(--blue);     padding: 160px 0; position: relative; overflow: hidden; }
.s-softblue  { background: var(--softblue); padding: 160px 0; position: relative; overflow: hidden; }

/* ─── SECTION PADDING UTILITIES ─── */
.pt-0    { padding-top: 0 !important; }
.pb-0    { padding-bottom: 0 !important; }
.pt-half { padding-top: 80px !important; }
.pb-half { padding-bottom: 80px !important; }
.pt-2x   { padding-top: 320px !important; }
.pb-2x   { padding-bottom: 320px !important; }
.h-2x    { min-height: 600px !important; }
.w-full { max-width: 100% !important; }
.text-center { text-align: center !important; align-items: center !important; }

/* ─── FLOATING CARD SECTION ─── */
.s-card-wrap {
  background: transparent;
  padding: 80px 40px 160px;
  position: relative;
  z-index: 1;
}

/* image-card theme="light": card floats on a solid light field. The base rule
   already raises the wrapper above the fixed blob canvas (z-index:1); this adds
   the field colour, keeping its own established 80px bottom padding rather
   than the base rule's 160px. The card interior is unchanged (always on-dark). */
.s-card-wrap--light {
  background: var(--lgray);
  padding-bottom: 80px;
}

.s-card {
  border-radius: 8px;
  padding: 120px 120px;
  position: relative;
  overflow: hidden;
}

.s-card.card-navy { background: var(--navy); }
.s-card.card-dark { background: var(--darknavy); }
.s-card.card-blue { background: var(--blue); }
.s-card.card-white { background: var(--white); }
.s-card.card-light { background: var(--lgray); }

/* ─── IMAGE CARD ─── */
.s-card.card-image {
  background: var(--darknavy);
  padding-top: 160px;
  padding-bottom: 160px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,14,42,0.2) 0%, rgba(6,14,42,0.85) 70%);
  border-radius: 8px;
}

.card-image-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ─── EYEBROW LABEL ─── */
.label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}

.label::before {
  display: none;
}

.label.on-dark  { color: rgba(255,255,255,0.8); }
.label.on-blue  { color: rgba(255,255,255,0.65); }
.label.on-blue::before { background: rgba(255,255,255,0.65); }

/* ─── DISPLAY TYPE ─── */
.display-xl {
  font-family: var(--font-display);
  font-size: max(4rem, min(5.2vw, 7.2rem));
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.display-xl.on-dark { color: var(--white); }
.display-xl.on-blue { color: var(--white); }

.display-lg {
  font-family: var(--font-display);
  font-size: max(4rem, min(6vw, 9rem));
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.display-lg.on-dark { color: var(--white); }
.display-lg.on-blue { color: var(--white); }

.display-md {
  font-family: var(--font-display);
  font-size: max(2.4rem, 2.8vw);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: rgba(12,32,84,0.8);
}

.display-md.on-dark { color: rgba(255,255,255,0.8); }

.body-copy {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  color: var(--dgray);
  letter-spacing: 0.01em;
}

.body-copy.on-dark { color: rgba(255,255,255,0.8); }
.body-copy.on-blue { color: rgba(255,255,255,0.65); }

/* ─── 2-COL HEADER LAYOUT ─── */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 6rem;
}

/* ─── INTRO ─── */
.intro-copy {
  font-family: var(--font-display);
  font-size: max(2.8rem, min(3.6vw, 5rem));
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 96rem;
}

.intro-copy .muted { color: rgba(12,32,84,0.8); }

.badge-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 4rem;
}

.badge {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--mgray);
  padding: 0.55rem 1.4rem;
  transition: border-color 150ms, background 150ms;
}

.badge:hover { border-color: var(--blue); color: var(--blue); }

.badge.filled {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.badge.filled:hover { background: var(--blue); border-color: var(--blue); }

/* ─── METRICS — bordered grid ─── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--mgray);
}

.metric-cell {
  border-right: 1px solid var(--mgray);
  border-top: 1px solid var(--mgray);
  border-bottom: 1px solid var(--mgray);
  padding: 5rem 3.6rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: default;
  transition: background 250ms var(--ease-base);
  position: relative;
  background: var(--white);
}

.metric-cell:hover { background: var(--navy); }
.metric-cell:hover .metric-num   { color: rgba(255,255,255,0.12); }
.metric-cell:hover .metric-label { color: rgba(255,255,255,0.8); }
.metric-cell:hover .metric-pip   { background: var(--blue); }

.metric-pip {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.5;
  margin-bottom: 0.8rem;
  transition: background 250ms, opacity 250ms;
}

.metric-num {
  font-family: var(--font-display);
  font-size: max(5rem, 7.5vw);
  font-weight: 200;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: rgba(12,32,84,0.12);
  transition: color 250ms;
}

.metric-num sup {
  font-size: 0.35em;
  vertical-align: top;
  margin-top: 0.3em;
  font-weight: 500;
  font-family: var(--font-body);
}

.metric-label {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dgray);
  transition: color 250ms;
  margin-top: 0.4rem;
}

/* ─── 6D LOGIC ─── */
.sixd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sixd-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 2.8rem 0;
  display: flex;
  gap: 2.4rem;
  align-items: flex-start;
  cursor: default;
  transition: padding 200ms var(--ease-snappy);
}

.sixd-item:hover { padding-left: 1.2rem; }
.sixd-item:hover .sixd-num   { color: var(--blue); }
.sixd-item:hover .sixd-title { color: var(--white); }

.sixd-num {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
  padding-top: 0.5rem;
  transition: color 200ms;
  min-width: 2.8rem;
}

.sixd-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.8);
  line-height: 1;
  margin-bottom: 0.8rem;
  transition: color 200ms;
}

.sixd-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255,255,255,0.8);
}

/* ─── SOLUTIONS CARDS ─── */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--mgray);
  border: 1px solid var(--mgray);
}

.solution-card {
  background: var(--white);
  aspect-ratio: 674/420;
  padding: 4.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background 280ms var(--ease-base);
}

.solution-card:hover { background: var(--navy); }
.solution-card:hover .sol-label  { color: var(--blue); }
.solution-card:hover .sol-num    { color: rgba(255,255,255,0.06); }
.solution-card:hover .sol-title  { color: var(--white); }
.solution-card:hover .sol-copy   { color: rgba(255,255,255,0.8); }

.solution-card.blue-card { background: var(--blue); }
.solution-card.blue-card:hover { background: #1641b0; }
.solution-card.blue-card .sol-label { color: rgba(255,255,255,0.8); }
.solution-card.blue-card .sol-num   { color: rgba(255,255,255,0.08); }
.solution-card.blue-card .sol-title { color: var(--white); }
.solution-card.blue-card .sol-copy  { color: rgba(255,255,255,0.8); }

/* Dark theme — grid on a dark section. blue-card variant is unaffected (sets its own bg). */
.solutions-grid.on-dark { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); }
.solutions-grid.on-dark .solution-card { background: rgba(255,255,255,0.04); }
.solutions-grid.on-dark .sol-label { color: rgba(255,255,255,0.6); }
.solutions-grid.on-dark .sol-num   { color: rgba(255,255,255,0.1); }
.solutions-grid.on-dark .sol-title { color: var(--white); }
.solutions-grid.on-dark .sol-copy  { color: rgba(255,255,255,0.7); }

.sol-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color 280ms;
}

.sol-num {
  font-family: var(--font-display);
  font-size: max(9rem, 13vw);
  font-weight: 200;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: rgba(12,32,84,0.07);
  margin-top: auto;
  margin-bottom: -1.5rem;
  transition: color 280ms;
}

.sol-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.2rem;
  transition: color 280ms;
}

.sol-copy {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--dgray);
  max-width: 34rem;
  transition: color 280ms;
}

/* Solution grid — auto column count (1–4), emitted by <solution-grid>.
   Base .solutions-grid (1fr 1fr) is left intact for non-migrated pages. */
.solutions-grid.cols-1 { grid-template-columns: 1fr; }
.solutions-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.solutions-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.solutions-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* 3/4-up cards are much narrower than the 2-up default. Size to content
   (grid row-stretch keeps cards in a row equal-height) so variable-length
   copy never clips, and scale the ghost number + padding down so the number
   reads as an accent rather than overflowing the narrow card. */
.solutions-grid.cols-3 .solution-card,
.solutions-grid.cols-4 .solution-card {
  aspect-ratio: auto;
  min-height: 30rem;
  padding: 3.6rem 3.2rem;
}
.solutions-grid.cols-3 .sol-num,
.solutions-grid.cols-4 .sol-num {
  font-size: 7rem;
}

/* ─── CARD MOSAIC ─── */
/* NEW COMPONENT: card-mosaic — not yet in the component library. See the
   doc comment above CardMosaic in js/components.js for markup and rules.
   Each card is a real floating card (radius + border), not the flush
   hairline-grid look used by solution-grid/metrics-grid/team-grid —
   the mosaic's mixed 1/3 and 2/3 widths read better as distinct tiles
   than as cells in one flat table. Border/radius/background pairing
   mirrors .tab-panel (the system's other white-card-on-light /
   translucent-card-on-dark treatment).
   ONE shared 3-column grid for every row (js/components.js assigns each
   card an explicit grid-column span + grid-row) — not one grid per row.
   That's what keeps a 1/3 card's edges lined up with a 2/3 card's edge
   in a different row; per-row grids would each compute their own "1/3"
   from a different gap count and drift apart. */
.card-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.mosaic-card {
  background: var(--white);
  border: 1px solid var(--mgray);
  border-radius: 8px;
  min-height: 30rem;
  padding: 3.6rem 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 280ms var(--ease-base), border-color 280ms var(--ease-base);
}

.mosaic-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* mosaic-card-link: hover-revealed corner button, only rendered when the
   <li> has href="…". Frosted glass (not a flat fill) since it floats over
   whatever the card's background is — white card, dark card, blue card, or
   a photo — and needs to read the same way over all of them. */
.mosaic-card-link {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  z-index: 2;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--darknavy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px) scale(0.9);
  transition: opacity 220ms var(--ease-snappy), transform 220ms var(--ease-snappy), background 200ms;
}
.mosaic-card-link svg { width: 18px; height: 18px; }
.mosaic-card-link:hover { background: var(--blue); color: var(--white); }
.mosaic-card:hover .mosaic-card-link { opacity: 1; transform: translateY(0) scale(1); }

.mosaic-card:hover { background: var(--navy); border-color: var(--navy); }
.mosaic-card:hover .sol-label { color: var(--blue); }
.mosaic-card:hover .sol-title { color: var(--white); }
.mosaic-card:hover .sol-copy  { color: rgba(255,255,255,0.8); }

/* Dark theme — cards on a dark section. */
.card-mosaic.on-dark .mosaic-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.card-mosaic.on-dark .mosaic-card:hover { background: var(--navy); border-color: var(--navy); }
.card-mosaic.on-dark .mosaic-card .sol-label { color: rgba(255,255,255,0.6); }
.card-mosaic.on-dark .mosaic-card .sol-title { color: var(--white); }
.card-mosaic.on-dark .mosaic-card .sol-copy  { color: rgba(255,255,255,0.7); }

/* mosaic-card--image: reuses .card-image-bg/.card-image-overlay from
   <image-card>. Text always renders on-dark regardless of theme — same
   deliberate exception as <image-card> (text sits over a photo), forced
   with !important since it must win over both the plain and .on-dark
   sol-label/sol-title/sol-copy rules above. */
.mosaic-card--image {
  background: transparent;
  border-color: transparent;
  justify-content: flex-end;
}
.mosaic-card--image:hover { background: transparent; border-color: transparent; }
.mosaic-card--image .sol-label,
.mosaic-card--image .sol-title { color: var(--white) !important; }
.mosaic-card--image .sol-copy { color: rgba(255,255,255,0.85) !important; }
.mosaic-card--image:hover .sol-label { color: var(--white) !important; }
.solutions-grid.cols-3 .sol-title,
.solutions-grid.cols-4 .sol-title {
  font-size: 2.1rem;
}

/* ─── IMPACT LIST ─── */
/* Base = light (inline component; page section owns the background). */
.impact-item {
  display: grid;
  grid-template-columns: 3.2rem 1fr 1.4fr 1.6rem;
  gap: 3rem;
  align-items: center;
  border-bottom: 1px solid var(--mgray);
  padding: 2.4rem 2.8rem;
  cursor: default;
  transition: background 200ms, transform 200ms;
}
.impact-item:first-child { border-top: 1px solid var(--mgray); }
.impact-item:hover { background: var(--navy); transform: translateX(0.5rem); }
.impact-item:hover .impact-num   { color: var(--blue); }
.impact-item:hover .impact-title { color: var(--white); }
.impact-item:hover .impact-desc  { color: rgba(255,255,255,0.8); }
.impact-item:hover .impact-arr   { opacity: 1; color: var(--blue); }

.impact-num {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--mgray);
  transition: color 200ms;
}
.impact-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
  transition: color 200ms;
}
.impact-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--dgray);
  transition: color 200ms;
}
.impact-arr {
  width: 18px; height: 18px;
  color: var(--mgray);
  opacity: 0;
  transition: opacity 200ms, color 200ms;
}

/* Dark theme = the original impact-list look. */
.impact-list.on-dark { border-top: 1px solid rgba(255,255,255,0.1); }
.impact-list.on-dark .impact-item {
  grid-template-columns: 3.2rem 1fr 1.2fr 1.6rem;
  align-items: flex-start;
  border-top: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 2.4rem 0;
  transition: padding 200ms var(--ease-snappy), background 200ms;
}
.impact-list.on-dark .impact-item:first-child { border-top: none; }
.impact-list.on-dark .impact-item:hover {
  padding-left: 1.2rem;
  background: rgba(29,81,211,0.08);
  transform: none;
}
.impact-list.on-dark .impact-item:hover .impact-num   { color: var(--blue); }
.impact-list.on-dark .impact-item:hover .impact-title { color: var(--white); }
.impact-list.on-dark .impact-item:hover .impact-arr   { opacity: 1; color: var(--blue); transform: translate(0,0); }
.impact-list.on-dark .impact-num   { color: rgba(255,255,255,0.8); }
.impact-list.on-dark .impact-title { font-size: 20px; letter-spacing: -0.025em; color: rgba(255,255,255,0.8); line-height: 1.2; }
.impact-list.on-dark .impact-desc  { font-size: 16px; color: rgba(255,255,255,0.8); }
.impact-list.on-dark .impact-arr   { color: var(--blue); transform: translate(-4px, 4px); transition: opacity 200ms, transform 200ms; }

/* ─── TEAM ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--mgray);
  border: 1px solid var(--mgray);
  margin-bottom: 1px;
}

.team-card {
  background: var(--softblue);
  padding: 3.2rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  cursor: default;
  transition: background 250ms;
}

.team-card:hover { background: var(--navy); }
.team-card:hover .team-avatar { background: var(--blue); }
.team-card:hover .team-initials { color: var(--white); }
.team-card:hover .team-name   { color: var(--white); }
.team-card:hover .team-role   { color: var(--blue); }
.team-card:hover .team-bio    { color: rgba(255,255,255,0.8); }

.team-avatar {
  width: 5.6rem; height: 5.6rem;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 250ms;
}

.team-initials {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--navy);
  transition: color 250ms;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
  transition: color 250ms;
}

.team-role {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 8px;
  transition: color 250ms;
}

.team-bio {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--dgray);
  transition: color 250ms;
}

/* ─── EXPERTS BAND ─── */
.experts-band {
  background: var(--blue);
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: center;
}

.experts-num {
  font-family: var(--font-display);
  font-size: max(7rem, 10vw);
  font-weight: 200;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}

.experts-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255,255,255,0.8);
}

/* ─── FOOTER ─── */
footer {
  background: transparent;
  padding: 160px 120px 116px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6rem;
}

.footer-headline {
  font-family: var(--font-display);
  font-size: max(3rem, 3.8vw);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 2rem;
}

.footer-sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 3.2rem;
  max-width: 40rem;
}

.footer-btns { display: flex; gap: 1rem; }

.footer-btn {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--white);
  background: var(--darknavy);
  padding: 16px 24px;
  border-radius: 4px;
  transition: background 150ms;
}

.footer-btn:hover { background: var(--navy); }

.footer-btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
}

.footer-btn.ghost:hover { border-color: var(--blue); color: var(--blue); background: transparent; }

.footer-nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: max(1.8rem, 1.8vw);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--white);
  transition: color 150ms, padding-left 200ms;
}

.footer-nav-item:hover { color: var(--navy); padding-left: 0.8rem; }

.footer-nav-arrow { width: 24px; height: 24px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 0 0;
  margin: 1px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  height: 64px;
  width: auto;
  opacity: 0.8;
}

.footer-legal {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.8);
  text-align: right;
  line-height: 1.9;
  text-transform: uppercase;
}

/* footer theme="light" — field around the card, the card's own background,
   and the primary CTA all shift; card text colors (already white/on-blue)
   already read fine on navy too, so those stay untouched. !important on
   the card/CTA overrides since .footer-inner carries .card-blue at equal
   selector specificity — this is a deliberate one-off theme exception,
   same reasoning as .mosaic-card--image/--blue's !important overrides. */
footer.footer--light { background: var(--lgray); }
.footer--light .footer-bottom { border-top-color: rgba(6,14,42,0.08); }
.footer--light .footer-legal { color: rgba(6,14,42,0.65); }
.footer--light .footer-logo { filter: invert(1); }
.footer--light .footer-inner { background: var(--navy) !important; }
.footer--light .footer-btn:not(.ghost) { background: var(--blue) !important; }
.footer--light .footer-btn:not(.ghost):hover { background: #1641b0 !important; }
.footer--light .footer-nav-item:hover { color: var(--blue) !important; }

/* ─── SPLIT SECTION (50/50 text + image) ─── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.8rem;
  align-items: center;
}

.split-section.reversed .split-section-text {
  order: 2;
}

.split-section-text {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.split-section-text .label {
  margin-bottom: 0;
}

.split-section-text .hero-cta {
  margin-top: 0.8rem;
  align-self: flex-start;
}

.split-section-image {
  overflow: hidden;
  border-radius: 8px;
}

.split-section-image img {
  width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(2.4rem);
  transition: opacity 0.75s var(--ease-snappy), transform 0.75s var(--ease-snappy);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(2.4rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── CHAT PROMPT (floating bar) ─── */
.chat-prompt {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  z-index: 200;
  width: min(728px, calc(100vw - 80px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease-base), transform 600ms var(--ease-snappy);
}

.chat-prompt.entered {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.chat-prompt.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(24px);
  pointer-events: none;
}

.chat-prompt-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 8px 8px 8px 24px;
  box-shadow: 0 8px 32px rgba(6, 14, 42, 0.12), 0 2px 8px rgba(6, 14, 42, 0.06);
}

.chat-prompt-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  color: var(--darknavy);
}

.chat-prompt-input::placeholder {
  color: rgba(6, 14, 42, 0.4);
}

.chat-prompt-send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--darknavy);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 150ms;
}

.chat-prompt-send:hover {
  background: var(--blue);
}

.chat-prompt-send svg {
  width: 18px;
  height: 18px;
}

/* ─── CHAT PANEL ─── */
.chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 14, 42, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-base);
}

.chat-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.chat-panel {
  width: 80vw;
  max-height: 88%;
  min-height: 88vh;
  background: var(--lgray);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  transform: scale(0.97);
  transition: transform 400ms var(--ease-base);
}

.chat-overlay.open .chat-panel {
  transform: scale(1);
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid rgba(6, 14, 42, 0.06);
}

.chat-panel-title {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--darknavy);
  letter-spacing: 0.04em;
}

.chat-panel-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--dgray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms, color 150ms;
}

.chat-panel-close:hover {
  background: var(--lgray);
  color: var(--darknavy);
}

.chat-panel-close svg {
  width: 18px;
  height: 18px;
}

.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 32px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--darknavy);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--lgray);
  color: var(--darknavy);
  border-bottom-left-radius: 4px;
}

.chat-panel-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 40px;
  border-top: 1px solid rgba(6, 14, 42, 0.06);
}

.chat-panel-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 32px;
  color: var(--darknavy);
}

.chat-panel-input::placeholder {
  color: rgba(6, 14, 42, 0.4);
}

.chat-panel-send {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--darknavy);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 150ms;
}

.chat-panel-send:hover {
  background: var(--blue);
}

.chat-panel-send svg {
  width: 16px;
  height: 16px;
}

/* ─── HAMBURGER (hidden on desktop) ─── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0;
  z-index: 10;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 300ms var(--ease-snappy), opacity 200ms;
}

.nav--sticky .hamburger-line {
  background: var(--darknavy);
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--darknavy);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-base);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 24px;
  flex-shrink: 0;
}

.mobile-menu-header .nav-logo-img {
  height: 48px;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.close-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: absolute;
}

.close-line:first-child {
  transform: rotate(45deg);
}

.close-line:last-child {
  transform: rotate(-45deg);
}

.mobile-menu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px 80px;
}

.mobile-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 200ms;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  color: var(--blue);
}

.mobile-menu-cta {
  color: var(--blue);
}

.mobile-menu-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 400ms var(--ease-snappy), color 200ms;
  flex-shrink: 0;
}

.mobile-menu-arrow svg {
  width: 28px;
  height: 28px;
}

.mobile-menu-item.open .mobile-menu-arrow {
  transform: rotate(180deg);
  color: var(--blue);
}

.mobile-menu-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms var(--ease-snappy);
}

.mobile-menu-item.open .mobile-menu-sub {
  grid-template-rows: 1fr;
}

.mobile-menu-sub > * {
  overflow: hidden;
}

/* Inner wrapper for sub items */
.mobile-menu-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height 500ms var(--ease-snappy);
}

.mobile-menu-item.open .mobile-menu-sub {
  max-height: 600px;
}

.mobile-sub-link {
  display: block;
  padding: 12px 0 12px 8px;
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 200ms, padding-left 200ms var(--ease-snappy);
}

.mobile-sub-link:hover,
.mobile-sub-link:active {
  color: var(--white);
  padding-left: 16px;
}

.mobile-sub-link:last-child {
  padding-bottom: 24px;
}

/* ─── MOBILE BREAKPOINT ─── */
@media (max-width: 768px) {

  /* Show hamburger, hide desktop nav-right & flyouts */
  .nav-hamburger {
    display: flex;
  }

  .nav-right {
    display: none;
  }

  .nav-flyout {
    display: none;
  }

  /* Both navs: use sticky style on mobile */
  .nav--top {
    top: 0;
    left: 0;
    right: 0;
    padding: 2.4rem 16px;
  }

  .nav--top .nav-logo-img {
    height: 40px;
  }

  .nav--top .hamburger-line {
    background: var(--white);
  }

  .nav--sticky {
    top: 0;
    left: 8px;
    right: 8px;
    top: 8px;
    padding: 1rem 16px;
  }

  .nav--sticky .nav-logo-img {
    height: 36px;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding: 200px 24px 64px;
  }

  .hero-content {
    padding-left: 0;
  }

  .hero-title {
    font-size: max(3.5rem, 9.6vw);
    margin-bottom: 3.2rem;
  }

  .hero-eyebrow {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.4rem;
  }

  .hero-sub {
    font-size: 18px;
    line-height: 26px;
    max-width: 100%;
  }

  .hero-cta {
    font-size: 16px;
    padding: 14px 20px;
  }

  /* Cards mobile */
  .s-card-wrap {
    padding: 40px 12px 0;
  }

  .s-card {
    padding: 48px 24px;
    border-radius: 6px;
  }

  .s-dark {
    padding: 80px 0;
  }

  .container {
    padding: 0 24px;
  }

  /* Intro */
  .intro-copy {
    font-size: max(2.4rem, 7vw);
  }

  .badge-row {
    margin-top: 2.4rem;
  }

  .badge {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  /* Metrics */
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 48px !important;
  }

  .metric-cell {
    padding: 3rem 2rem 2.4rem;
  }

  .metric-num {
    font-size: max(4rem, 14vw);
  }

  .metric-label {
    font-size: 0.85rem;
  }

  /* Display type */
  .display-xl {
    font-size: max(3rem, 8vw);
  }

  .body-copy {
    font-size: 18px;
    line-height: 26px;
  }

  .section-head {
    gap: 24px;
    margin-bottom: 4rem;
  }

  /* 6D grid */
  .sixd-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sixd-title {
    font-size: 2rem;
  }

  .sixd-desc {
    font-size: 16px;
    line-height: 22px;
  }

  /* Solutions */
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  /* Beat the .cols-N specificity so <solution-grid> also collapses to 1-up. */
  .solutions-grid.cols-1,
  .solutions-grid.cols-2,
  .solutions-grid.cols-3,
  .solutions-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .solution-card {
    aspect-ratio: auto;
    padding: 3.2rem 2.4rem;
  }

  .solutions-grid.cols-3 .solution-card,
  .solutions-grid.cols-4 .solution-card {
    aspect-ratio: auto;
    min-height: 0;
  }

  .sol-num {
    font-size: max(6rem, 20vw);
  }

  .sol-title {
    font-size: 2rem;
  }

  /* Card mosaic — collapse to 1-up, in card order. !important beats each
     card's explicit inline grid-column/grid-row set in js/components.js. */
  .card-mosaic {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .mosaic-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-height: 0;
    padding: 3.2rem 2.4rem;
  }

  .mosaic-card--image {
    min-height: 22rem;
  }

  .sol-copy {
    font-size: 16px;
    line-height: 22px;
  }

  /* Impact */
  .impact-item {
    grid-template-columns: 2.4rem 1fr 1.6rem;
    gap: 1.2rem;
  }

  .impact-desc {
    display: none;
  }

  .impact-title {
    font-size: 18px;
  }

  .impact-list:not(.on-dark) .impact-item { padding: 2rem 1.2rem; }
  .impact-list:not(.on-dark) .impact-title { font-size: 1.6rem; }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    padding: 2.4rem 2rem;
  }

  /* Experts band */
  .experts-band {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.2rem 2.4rem;
  }

  .experts-num {
    font-size: max(5rem, 16vw);
  }

  /* Image card */
  .s-card.card-image {
    min-height: 400px;
    padding-top: 120px;
    padding-bottom: 48px;
  }

  /* Footer */
  footer {
    padding: 40px 12px 96px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .footer-headline {
    font-size: max(2.8rem, 7vw);
  }

  .footer-btns {
    flex-direction: column;
  }

  .footer-btn {
    text-align: center;
    font-size: 16px;
    padding: 14px 20px;
  }

  .footer-nav-item {
    font-size: max(1.8rem, 5vw);
    padding: 1.2rem 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 2rem;
    padding: 40px 0 0;
    align-items: flex-start;
  }

  .footer-logo {
    height: 48px;
  }

  .footer-legal {
    font-size: 0.9rem;
    text-align: left;
  }

  /* Chat prompt */
  .chat-prompt {
    bottom: 24px;
    width: calc(100vw - 32px);
  }

  .chat-panel {
    width: 96vw;
    min-height: 80vh;
  }

  .chat-panel-messages {
    padding: 24px 20px;
  }

  .chat-panel-input-wrap {
    padding: 16px 20px;
  }

  .chat-msg {
    font-size: 18px;
    line-height: 26px;
  }

  .chat-panel-input {
    font-size: 18px;
    line-height: 26px;
  }

  /* Split section */
  .split-section {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .split-section-image {
    order: -1;
  }

  .split-section-image img {
    aspect-ratio: 1 / 1;
  }

  .split-section.reversed .split-section-text {
    order: unset;
  }
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 400ms cubic-bezier(0.16,1,0.3,1);
}

.cookie-banner--visible { transform: translateY(0); }
.cookie-banner--hidden  { transform: translateY(100%); transition-duration: 300ms; }

.cookie-banner-inner {
  background: rgba(10,10,30,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2.4rem 6.4rem;
}

.cookie-collapsed {
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.cookie-text { flex: 1; }

.cookie-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.cookie-body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: rgba(255,255,255,0.65);
}

.cookie-body a {
  color: var(--blue);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms;
  border: 1px solid transparent;
  white-space: nowrap;
}

.cookie-btn.primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.cookie-btn.primary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.cookie-btn.ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.cookie-btn.ghost:hover {
  border-color: var(--white);
}

.cookie-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  white-space: nowrap;
}

.cookie-link:hover { color: var(--white); }

/* ── Preferences (expanded) ── */
.cookie-preferences .cookie-title { margin-bottom: 2rem; }

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.cookie-category {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1.6rem;
}

.cookie-category:last-child { border-bottom: none; }

.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.cookie-cat-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.cookie-cat-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: rgba(255,255,255,0.5);
}

/* ── Toggle ── */
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 200ms;
  flex-shrink: 0;
  padding: 0;
}

.cookie-toggle.on { background: var(--blue); }
.cookie-toggle.locked { cursor: default; opacity: 0.5; }
.cookie-toggle.locked.on { opacity: 1; background: var(--blue); }

.cookie-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: left 200ms;
}

.cookie-toggle.on .cookie-toggle-knob { left: 23px; }

.cookie-note {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .cookie-banner-inner { padding: 2rem; }

  .cookie-collapsed {
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-btn { text-align: center; }
  .cookie-link { text-align: center; padding: 0.5rem 0; }
}

/* ─── UTILITIES ─── */
.mt-sm { margin-top: 2rem; }
.mt-md { margin-top: 4rem; }

/* ═══════════════════════════════════════════════════
   CLIENT STRIPE — auto-scrolling client logo marquee
   Animation DURATION is set inline by <client-stripe> (js/components.js)
   so timing scales with logo count; keep it out of here.
   ═══════════════════════════════════════════════════ */
@keyframes stripe-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-stripe-track-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 2.8rem 0;
}

.client-stripe {
  display: flex;
  align-items: center;
  gap: 6.4rem;
  width: max-content;
  will-change: transform;
}

.client-stripe:hover { animation-play-state: paused; }

/* Static fallback: too few logos to fill the strip, or reduced motion. */
.client-stripe.is-static {
  width: 100%;
  justify-content: center;
}

.client-stripe-descriptor {
  font-size: max(1.4rem, 1.4vw);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--darknavy);
  margin-bottom: 4rem;
}

/* placeholder only — remove once real logos are in */
.client-stripe-logo-placeholder {
  width: 140px;
  height: 48px;
  flex-shrink: 0;
  background: var(--lgray);
  border-radius: 4px;
}

/* real logos */
.client-stripe-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  display: block;
  filter: brightness(0);
  transition: filter 200ms var(--ease-snappy);
}
.client-stripe-logo:hover { filter: none; }

@media (max-width: 768px) {
  .client-stripe { gap: 4rem; }
  .client-stripe-track-wrapper { padding: 2rem 0; }
}

/* ═══════════════════════════════════════════════════
   INTRO STATEMENT — on-dark + centered variants
   (base .intro-copy / .intro-copy .muted live above; these were page-local)
   ═══════════════════════════════════════════════════ */
.intro-copy.on-dark { color: var(--white); }
.intro-copy.on-dark .muted { color: rgba(255,255,255,0.5); }

.intro-centered {
  text-align: center;
  max-width: 80rem;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   HERO GHOST CTA — secondary hero button (was page-local)
   ═══════════════════════════════════════════════════ */
.hero-cta.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
}
.hero-cta.ghost:hover {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

/* ═══════════════════════════════════════════════════
   TAB SECTION — vertical-tab rail (25%, min 320px) + flexible card panel (75%)
   Component: <tab-section> (js/components.js). Reversible via [reversed].
   ═══════════════════════════════════════════════════ */
.tab-section {
  display: grid;
  grid-template-columns: minmax(320px, 25%) 1fr;   /* rail 25% (min 320px) · panel rest */
  gap: 4rem;
  align-items: start;
}
.tab-section.reversed { grid-template-columns: 1fr minmax(320px, 25%); }
.tab-section.reversed .tab-rail   { order: 2; }
.tab-section.reversed .tab-panels { order: 1; }

.tab-panels { position: relative; }

.tab-rail { display: flex; flex-direction: column; gap: 0.4rem; }

.tab-btn {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  padding: 2rem 2.4rem;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--ease-snappy), background var(--ease-snappy), opacity var(--ease-snappy);
}
.tab-btn-title { font-size: 2rem; font-weight: 600; line-height: 1.2; }
.tab-btn-sub   { font-size: 1.4rem; font-weight: 400; line-height: 1.4; }

/* dark theme rail (default) */
.s-dark .tab-btn          { color: rgba(255,255,255,0.55); }
.s-dark .tab-btn:hover    { color: var(--white); }
.s-dark .tab-btn.is-active{ color: var(--white); border-left-color: var(--blue); background: rgba(255,255,255,0.04); }
.s-dark .tab-btn .tab-btn-sub { color: rgba(255,255,255,0.45); }

/* light theme rail */
.s-light .tab-btn          { color: var(--dgray); }
.s-light .tab-btn:hover    { color: var(--navy); }
.s-light .tab-btn.is-active{ color: var(--navy); border-left-color: var(--blue); background: var(--lgray); }
.s-light .tab-btn .tab-btn-sub { color: var(--dgray); }

/* panel card — crossfade: outgoing panel overlaps in place (absolute) while
   fading out; incoming panel fades in and (once active) drives layout height. */
.tab-panel {
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--ease-base) 0.5s;
}
.tab-panel.is-active { opacity: 1; position: relative; z-index: 1; }
.tab-panel:not(.is-active):not([hidden]) { position: absolute; inset: 0; pointer-events: none; }
.tab-panel img { display: block; width: 100%; height: auto; }
.s-dark  .tab-panel { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.s-light .tab-panel { background: var(--white); border: 1px solid var(--mgray); }

@media (prefers-reduced-motion: reduce) {
  .tab-panel { transition: none; }
  .tab-btn { transition: none; }
}

/* ─── horizontal layout (layout="horizontal"): tab bar on top, panel below ─── */
.tab-section--horizontal {
  grid-template-columns: 1fr;   /* single column: bar stacked above panel */
  gap: 2.4rem;
}
.tab-section--horizontal.reversed { grid-template-columns: 1fr; }
.tab-section--horizontal .tab-rail {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--mgray);
}
.tab-section--horizontal .tab-btn {
  flex: 0 1 auto;
  border-left: 0;
  border-bottom: 2px solid transparent;
}
.tab-section--horizontal .tab-btn.is-active {
  border-left-color: transparent;
  border-bottom-color: var(--blue);
  background: transparent;
}
/* reversed + horizontal: tab bar below the panel */
.tab-section--horizontal.reversed .tab-rail   { order: 2; border-bottom: 0; border-top: 1px solid var(--mgray); }
.tab-section--horizontal.reversed .tab-panels { order: 1; }

/* tab-align="center" — horizontal layout only. Centers the whole block: the
   section heading (label + heading) and the tab bar (group + each tab's text) —
   but NOT the panel content. The class lives on the component's .container so it
   can reach .section-head, which is a sibling of .tab-section. Deliberately no
   text-align on the container itself (text-align inherits and would leak into
   the panel content); each element is centered explicitly instead. */
.tab-section--tabs-center .section-head { align-items: center; text-align: center; }
.tab-section--tabs-center .tab-rail     { justify-content: center; }
.tab-section--tabs-center .tab-btn      { align-items: center; text-align: center; }

/* responsive: rail becomes a horizontal scrolling strip above the panel */
@media (max-width: 768px) {
  .tab-section,
  .tab-section.reversed { grid-template-columns: 1fr; gap: 2.4rem; }
  /* scoped to exclude --horizontal: its own .reversed order rules (above) must
     keep winning at mobile widths too, otherwise this reset (equal specificity,
     later in source) would cancel the horizontal-reversed bar-below-panel order */
  .tab-section.reversed:not(.tab-section--horizontal) .tab-rail,
  .tab-section.reversed:not(.tab-section--horizontal) .tab-panels { order: initial; }
  .tab-rail {
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    border-bottom: 1px solid var(--mgray);
  }
  .tab-btn {
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .tab-btn.is-active { border-left-color: transparent; border-bottom-color: var(--blue); background: transparent; }
  /* horizontal layout on mobile: scroll on one row like the plain strip (don't wrap).
     2-class selectors tie the desktop horizontal rules and win by later source order;
     overflow-x:auto is inherited from the .tab-rail rule above. */
  .tab-section--horizontal .tab-rail { flex-wrap: nowrap; }
  .tab-section--horizontal .tab-btn  { flex: 0 0 auto; }
}
