/* ============ Ascendiz — shared styles ============ */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-800-normal.woff2) format('woff2');
}

:root {
  --blue: #0369CD;
  --blue-dark: #024E9B;
  --blue-light: #3E8DE0;
  --indigo: #4D54CE;
  --navy: #091E42;
  --ink: #0C1626;
  --ink-soft: #1d1f24;
  --body: #464748;
  --line: #DEE3EC;
  --card: #EAEFFF;
  --card-2: #DDF3FB;
  --white: #FFFFFF;
  --bg: #FBFCFF;

  /* .nav is position: fixed here, so it overlays the hero band */
  --nav-overlay-offset: 36px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  /* iOS-like drawer curve (Ionic) */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--blue); color: #fff; }

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 350ms var(--ease-in-out), box-shadow 350ms var(--ease-in-out);
}

.nav.on-blue { }

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(9,30,66,0.08);
}

.nav.scrolled .nav-link { color: var(--navy); }

.nav.scrolled .talk-btn {
  background: var(--blue);
  color: #fff;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  transition: transform 160ms var(--ease-out);
}
.logo:active { transform: scale(0.96); }

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

/* The nav sits transparent over the blue hero and turns white on scroll, so the
   lockup has to swap with it. Both variants are stacked and cross-faded on the
   same 350ms curve as the nav background, so the two read as one change. The
   white one stays in flow and sizes the link; the dark one is layered over it. */
/* ascendiz-white.svg has a wider aspect ratio than the default black/white PNG
   lockup, so pin it to the default's rendered width instead of width:auto —
   otherwise the nav grows wider whenever this variant is visible. */
.nav .logo-on-dark {
  width: 117px;
  object-fit: contain;
}

.logo-on-light {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}
.logo-on-dark,
.logo-on-light { transition: opacity 350ms var(--ease-in-out); }

.nav.scrolled .logo-on-dark { opacity: 0; }
.nav.scrolled .logo-on-light { opacity: 1; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  position: relative;
  transition: color 300ms ease, opacity 200ms ease;
}
.nav-link.active { opacity: 1; }
.nav-link:hover { opacity: 0.75; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

.talk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  transition: transform 160ms var(--ease-out), background 250ms ease, color 250ms ease;
}
.talk-btn:hover { background: rgba(255,255,255,0.28); }
.talk-btn:active { transform: scale(0.95); }

/* dark-on-white variant for inner pages after scroll uses .scrolled above */

/* ---------- HERO BAND ---------- */
.hero-band {
  background: linear-gradient(160deg, var(--blue) 0%, #0459AE 60%, #033f85 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 90px;
}

.hero-band::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 0;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 800ms var(--ease-out) 80ms forwards;
}

/* A hero with no eyebrow above it: the title has to clear the fixed nav on its
   own, and it should not sit through the beat the eyebrow used to fill. */
.hero-inner > .hero-title:first-child {
  margin-top: calc(22px + var(--nav-overlay-offset));
}
.hero-inner > .hero-title:first-child .solid { animation-delay: 80ms; }
.hero-inner > .hero-title:first-child .outline { animation-delay: 220ms; }

.hero-title {
  margin-top: 22px;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-title .solid {
  opacity: 0;
  display: inline-block;
  transform: translateY(16px);
  animation: fadeUp 900ms var(--ease-out) 180ms forwards;
}

.hero-title .outline {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.55);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 900ms var(--ease-out) 320ms forwards;
}

.hero-flex {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-sub {
  max-width: 480px;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255,255,255,0.92);
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 900ms var(--ease-out) 440ms forwards;
}

.hero-stats {
  display: flex;
  gap: 48px;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 900ms var(--ease-out) 560ms forwards;
}

.hero-stat .num {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stat .label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
  max-width: 160px;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-media {
  margin-top: 56px;
  position: relative;
  border-radius: 22px;
  overflow: visible;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: fadeUp 1000ms var(--ease-out) 680ms forwards;
}

.hero-media-frame {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 21/8;
  background: linear-gradient(120deg, #0a2d5c, #08488f 45%, #1c63b8 100%);
  position: relative;
  border: 1px solid rgba(255,255,255,0.18);
}

.hero-media-frame .deco {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.14), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(77,84,206,0.5), transparent 45%);
}

/* ---------- HERO SCENE: loose inputs -> one product ----------
   Choreography runs in CSS so it stays smooth while the page is still loading.
   Timeline (ms, after the frame itself starts fading in at 680):
     900  input cards land        1350 threads draw toward the ring
     2050 ring appears            2200 single thread leaves the ring
     2450 product panels settle   2700 bars grow, results count up
     3400 pulses start looping along the input threads                 */
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.scene-inputs  { transform: translate(40px, 55px); }
.scene-ring    { transform: translate(400px, 150px); }
.scene-outputs { transform: translate(520px, 45px); }
.scene-threads-v { display: none; }

.sc-paper { fill: rgba(255,255,255,0.10); stroke: rgba(255,255,255,0.42); stroke-width: 1; }
.sc-line  { stroke: rgba(255,255,255,0.72); stroke-width: 2; stroke-linecap: round; }
.sc-line-faint { stroke: rgba(255,255,255,0.36); }
.sc-grid  { stroke: rgba(255,255,255,0.22); stroke-width: 1; }
.sc-cell-flag { fill: rgba(45,212,191,0.28); }
.sc-dot   { fill: rgba(255,255,255,0.55); }
.sc-scribble { fill: none; stroke: rgba(255,255,255,0.4); stroke-width: 1.5; stroke-linecap: round; }

.sc-thread { fill: none; stroke: rgba(255,255,255,0.45); stroke-width: 1.5; stroke-linecap: round; }
.sc-thread-out { stroke: #2DD4BF; stroke-width: 2.5; }
.sc-pulse { fill: #2DD4BF; opacity: 0; }

.sc-ring { fill: none; stroke: #2DD4BF; stroke-width: 2; }
.sc-ring-core { fill: #2DD4BF; }

.sc-panel { fill: rgba(255,255,255,0.09); stroke: rgba(255,255,255,0.34); stroke-width: 1; }
.sc-pill  { fill: rgba(255,255,255,0.16); }
.sc-accent-fill { fill: #2DD4BF; }
.sc-gridline { stroke: rgba(255,255,255,0.16); stroke-width: 1; stroke-dasharray: 3 4; }
.sc-gridline-strong { stroke: rgba(255,255,255,0.4); stroke-dasharray: none; }
.sc-bar { fill: rgba(255,255,255,0.55); }
.sc-bar-accent { fill: #2DD4BF; }
.sc-phone-body { fill: #082a56; stroke: rgba(255,255,255,0.4); stroke-width: 1; }
.sc-tile-bg { fill: #ffffff; }
.sc-tile-num { font-size: 19px; font-weight: 800; fill: #0a2d5c; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sc-tile-label { font-size: 9px; font-weight: 600; fill: #0a2d5c; opacity: 0.6; letter-spacing: 0.02em; }

/* entrances */
.sc-card, .sc-product, .sc-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.sc-card { transform: translateY(8px); animation: sceneRise 600ms var(--ease-out) forwards; }
.sc-card-1 { animation-delay: 900ms; }
.sc-card-2 { animation-delay: 980ms; }
.sc-card-3 { animation-delay: 1060ms; }
.sc-dot { animation: sceneFade 500ms var(--ease-out) 1200ms forwards; }

.sc-scribble, .sc-thread { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sc-scribble { animation: sceneDraw 700ms var(--ease-in-out) 1150ms forwards; }
.sc-thread { animation: sceneDraw 800ms var(--ease-in-out) forwards; }
.scene-threads path:nth-of-type(1) { animation-delay: 1350ms; }
.scene-threads path:nth-of-type(2) { animation-delay: 1440ms; }
.scene-threads path:nth-of-type(3) { animation-delay: 1530ms; }
.sc-thread-out { animation-duration: 500ms; animation-delay: 2200ms; }

.sc-ring, .sc-ring-core {
  opacity: 0;
  transform: scale(0.6);
  transform-box: fill-box;
  transform-origin: center;
  animation: sceneSettle 400ms var(--ease-out) 2050ms forwards;
}
.sc-ring-core { animation-delay: 2150ms; }

.sc-product { transform: scale(0.96); animation: sceneSettle 600ms var(--ease-out) forwards; }
.sc-dashboard { animation-delay: 2450ms; }
.sc-phone { animation-delay: 2550ms; }
.sc-tile-1 { animation-delay: 2650ms; }
.sc-tile-2 { animation-delay: 2750ms; }

.sc-bar {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: sceneGrow 500ms var(--ease-out) forwards;
}
.sc-bar:nth-of-type(1) { animation-delay: 2700ms; }
.sc-bar:nth-of-type(2) { animation-delay: 2760ms; }
.sc-bar:nth-of-type(3) { animation-delay: 2820ms; }
.sc-bar:nth-of-type(4) { animation-delay: 2880ms; }
.sc-bar:nth-of-type(5) { animation-delay: 2940ms; }
.sc-bar:nth-of-type(6) { animation-delay: 3000ms; }

@keyframes sceneRise   { to { opacity: 1; transform: translateY(0); } }
@keyframes sceneFade   { to { opacity: 1; } }
@keyframes sceneDraw   { to { stroke-dashoffset: 0; } }
@keyframes sceneSettle { to { opacity: 1; transform: scale(1); } }
@keyframes sceneGrow   { to { transform: scaleY(1); } }

/* Phones: the wide strip is too short to read, so the scene stacks top-to-bottom
   (script.js swaps the viewBox to match). */
@media (max-width: 640px) {
  .hero-media-frame { aspect-ratio: 400 / 470; }
  .scene-inputs  { transform: translate(80px, 18px); }
  .scene-ring    { transform: translate(200px, 232px); }
  .scene-outputs { transform: translate(100px, 262px); }
  .scene-threads-h { display: none; }
  .scene-threads-v { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-card, .sc-product, .sc-dot, .sc-ring, .sc-ring-core, .sc-bar,
  .sc-scribble, .sc-thread {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
  .sc-pulse { display: none; }
}

/* rotating contact badge */
.contact-badge {
  position: absolute;
  right: 28px;
  bottom: -48px;
  width: 160px; height: 160px;
}
@media (max-width: 640px) { .contact-badge { width: 119px; height: 119px; right: 16px; bottom: -32px; } }

.contact-badge svg#badgeRing {
  width: 100%; height: 100%;
  overflow: visible;
  animation: spin 14s linear infinite;
  filter: drop-shadow(0 10px 24px rgba(9,30,66,0.28));
}

.contact-badge .badge-center {
  position: absolute;
  /* 23.2% puts the blue core at r=30 in the SVG's units. The ring text was
     pulled inward to widen the gap to the white rim, so the core gives way by
     the same amount — otherwise that outer gain would come straight out of the
     clearance on this side. */
  inset: 23.2%;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(9,30,66,0.25);
  transition: transform 200ms var(--ease-out);
}
.contact-badge:hover .badge-center { transform: scale(1.08); }
.contact-badge .badge-center svg { width: 34%; height: 34%; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-badge svg#badgeRing { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.15s !important; }
}

/* ---------- SECTIONS ---------- */
section { padding: 48px 0; }
section.stat-overview { padding: 64px 0; }
.section-tight { padding: 32px 0; }
.section-loose { padding: 80px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.12;
}

.kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}

.section-lead {
  font-size: 18px;
  color: var(--body);
  max-width: 620px;
}

.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head-center .section-lead { margin: 0 auto; }

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 60px;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- CLIENTS MARQUEE ----------
   Constant motion, not an entrance — linear easing, no start/stop cues.
   Two identical logo groups sit back to back in one flex track; the
   keyframe moves exactly -50% (one group's width), so the moment group 2
   lines up where group 1 started, the loop restarts invisibly. */
.clients-section { overflow: hidden; padding-top: 64px; padding-bottom: 64px; }
.clients-section .container { text-align: center; }

.clients-marquee {
  margin-top: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 100s linear infinite;
}
.clients-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  flex-shrink: 0;
}
.client-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 88px;
  padding: 0 22px;
  background: var(--white);
  border-radius: 12px;
  flex-shrink: 0;
}
.clients-marquee .client-logo-card {
  box-shadow: 0 1px 4px rgba(9,30,66,0.06);
}
.client-logo-card img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  display: block;
}
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* Pausable on hover so a visitor who spots a logo they want to read can
   actually stop and look, rather than chasing a constantly-moving strip. */
@media (hover: hover) and (pointer: fine) {
  .clients-marquee:hover .clients-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
  .clients-group[aria-hidden="true"] { display: none; }
  .clients-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Static (non-marquee) logo row for industry pages: a handful of relevant
   clients, not the full roster, so a wrapped flex row reads better than
   motion built for a long, looping list. */
.client-logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* ---------- SERVICE / VALUE CARDS ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.svc-card {
  display: block;
  background: var(--card);
  border-radius: 20px;
  padding: 34px 30px;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.svc-card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .svc-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(9,30,66,0.08); }
  .svc-card:hover .arrow-link svg { transform: translateX(3px); }
}

.svc-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}
.svc-icon svg, .svc-icon img { width: 48px; height: 48px; }

.svc-card h3 { font-size: 20px; margin-bottom: 12px; }
.svc-card p { font-size: 15px; line-height: 1.6; }

.svc-divider { height: 1px; background: rgba(9,30,66,0.1); margin: 14px 0 16px; }

/* ---------- ABOUT / STORY ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; gap: 32px; } }

.about-visual {
  aspect-ratio: 4/3.3;
  border-radius: 24px;
  background: linear-gradient(150deg, var(--navy), #123a72 60%, var(--blue) 130%);
  position: relative;
  overflow: hidden;
}
.about-visual svg,
.about-visual img { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-visual img { object-fit: cover; }

/* ---------- PROJECTS ---------- */
.projects-band {
  background: linear-gradient(180deg, #ffffff 0%, #EAF1FF 55%, #ffffff 100%);
}

.proj-card {
  display: block;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .proj-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(9,30,66,0.12); }
}

.proj-thumb {
  aspect-ratio: 16/11;
  position: relative;
  overflow: hidden;
}
.proj-thumb svg,
.proj-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; }
.proj-thumb img { object-fit: cover; transition: transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .proj-card:hover .proj-thumb img { transform: scale(1.04); }
}

.proj-tags {
  position: absolute;
  left: 14px; bottom: 14px;
  display: flex;
  gap: 8px;
}
.tag-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.proj-body { padding: 20px 22px 24px; }
.proj-body h3 { font-size: 19px; margin-bottom: 8px; }
.proj-body p { font-size: 14.5px; }

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 160ms var(--ease-out), background 220ms ease, color 220ms ease;
}
.view-all-btn:hover { background: var(--blue); color: #fff; }
.view-all-btn:active { transform: scale(0.95); }
.view-all-btn .arrow-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: currentColor;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: background 220ms ease;
}
/* Two stacked arrows: hover slides the current one up and out while an
   identical copy slides up into its place from below, instead of a static
   icon swap. */
.view-all-btn .arrow-circle svg {
  position: absolute;
  width: 12px; height: 12px;
  transition: transform 320ms var(--ease-out), color 220ms ease;
}
.view-all-btn .arrow-circle .arrow-cur { transform: translateY(0); }
.view-all-btn .arrow-circle .arrow-next { transform: translateY(160%); }
.view-all-btn:hover .arrow-circle .arrow-cur { transform: translateY(-160%); }
.view-all-btn:hover .arrow-circle .arrow-next { transform: translateY(0); }
.view-all-btn:not(:hover) .arrow-circle svg { color: var(--white); }
.view-all-btn:hover .arrow-circle svg { color: var(--blue); }
.view-all-btn:not(:hover) .arrow-circle { background: var(--blue); }
.view-all-btn:hover .arrow-circle { background: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .view-all-btn .arrow-circle svg { transition: color 220ms ease; }
}

/* ---------- PROCESS ---------- */
.process-list { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(9,30,66,0.08);
}
.process-step:first-child { padding-top: 0; }
.process-step:last-child { border-bottom: none; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.process-step h3 { font-size: 22px; color: var(--blue); margin-bottom: 8px; }
.process-step p { font-size: 15.5px; max-width: 480px; }

.process-visual {
  border-radius: 20px;
  aspect-ratio: 3/3.6;
  background: linear-gradient(160deg, #123a72, var(--blue));
  position: relative;
  transform: rotate(3deg);
  overflow: hidden;
}
.process-visual svg,
.process-visual img { position: absolute; inset: 0; width: 100%; height: 100%; }
.process-visual img { object-fit: cover; }

.process-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } .process-visual { order: -1; max-width: 320px; margin: 0 auto; transform: rotate(0); } }

/* ---------- VALUES / TEAM ---------- */
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; }
/* Only about.html supplies artwork; the same .value-card is used by careers
   and the services data files without one, so the icon is an optional first
   child rather than part of the card's required shape. alt="" because the
   heading beside it already names the value. */
.value-icon { width: 58px; height: 58px; display: block; margin-bottom: 16px; margin-left: -4px; }
.value-card .num { font-size: 14px; font-weight: 800; color: var(--blue); letter-spacing: 0.06em; }
.value-card h3 { font-size: 20px; margin: 12px 0 10px; }
.value-card p { font-size: 15px; }

.team-card { text-align: left; }
.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--indigo), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
}
.team-card h4 { font-size: 17px; color: var(--navy); }
.team-card .role { font-size: 13.5px; color: var(--blue); font-weight: 600; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.faq-q .plus {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--card);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 300ms var(--ease-in-out), background 200ms ease;
}
.faq-item[data-open="true"] .plus { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a {
  font-size: 15px;
  color: var(--body);
  max-width: 640px;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms var(--ease-in-out);
}
.faq-a > div { overflow: hidden; }
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding-top: 14px; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.field input, .field textarea {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(3,105,205,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 220ms ease;
}
.submit-btn:hover { background: var(--blue-dark); }
.submit-btn:active { transform: scale(0.96); }
.submit-btn.is-sent { background: #1c8a4a; }

.submit-btn-icon {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.submit-btn-icon svg {
  position: absolute;
  inset: 0;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.submit-btn-icon .icon-check { opacity: 0; transform: scale(0.85); }
.submit-btn.is-sent .icon-arrow { opacity: 0; transform: scale(0.85); }
.submit-btn.is-sent .icon-check { opacity: 1; transform: scale(1); }

.info-card {
  background: var(--card);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.info-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--white);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; }
.info-card h4 { font-size: 15.5px; color: var(--navy); margin-bottom: 4px; }
.info-card p { font-size: 14.5px; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--navy);
  border-radius: 32px;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 640px) { .cta-band { padding: 48px 26px; } }

.cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 48px);
  max-width: 640px;
}

/* ---------- CTA BAND: pixel globe ----------
   A dot-matrix Earth drawn to a canvas by script.js: land cells sampled on a
   5-degree grid, projected onto a sphere and redrawn each frame as it spins.
   Canvas rather than SVG because the rotation is a real 3D projection — there
   is no CSS transform that turns a flat map into a turning globe. The wrapper
   supplies the light; the canvas only ever paints the dots. */
.cta-band.has-globe {
  padding: 78px 48px;
  background:
    radial-gradient(118% 150% at 86% 50%, rgba(62,141,224,0.26) 0%, rgba(3,105,205,0.10) 44%, rgba(3,105,205,0) 70%),
    var(--navy);
}

/* Stacking the copy frees the right half for the globe. Side-by-side, the
   button lands directly on the sphere and both read as clutter; the globe
   only holds together when its disc is unbroken. */
.cta-band.has-globe .cta-flex {
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  /* 58% suits the globe alone. Re-enabling the flow overlay (see below) means
     dropping this to 50% so the input chips get clear space. */
  max-width: 58%;
}

/* Manual-to-AI overlay: input chips on the left, flowing into a single node
   on the globe. Sits above the canvas (later in the DOM, no z-index needed)
   but below .cta-flex, which carries z-index: 1 so copy always wins.

   CURRENTLY OFF — cta-band.html defaults `flow` to false, so none of the
   .cta-flow / .cf-* markup is emitted anywhere. Kept deliberately, not dead
   code: pass `flow: true` to the partial to bring the scene back, and drop
   .cta-flex's max-width to 50% so the input chips get clear space. */
.cta-flow {
  position: absolute;
  top: 50%;
  right: -34px;
  width: 480px;
  height: 300px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease-out) 320ms;
}
.cta-band.is-visible .cta-flow { opacity: 1; }

.cf-chip {
  fill: rgba(255,255,255,0.10);
  stroke: rgba(255,255,255,0.30);
  stroke-width: 1.1;
}
.cf-glyph {
  fill: none;
  stroke: rgba(255,255,255,0.84);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Same two-layer trick as the globe's routes: the path is always faintly
   drawn, and a lit segment travels it so the direction of flow is legible. */
.cf-line {
  stroke: rgba(255,255,255,0.30);
  stroke-width: 1.3;
  stroke-linecap: round;
}
.cf-pulse {
  stroke: var(--blue-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 0.3 1;
  stroke-dashoffset: 0.3;
  animation: ctaFlowPulse 3.6s var(--ease-in-out) infinite;
}
.cf-pulse:nth-of-type(2) { animation-delay: 1.2s; }
.cf-pulse:nth-of-type(3) { animation-delay: 2.4s; }

/* The node lands on the busiest part of the globe, so it carries its own
   darkened backdrop — without it the dots read straight through and the
   "everything resolves here" beat is lost. */
.cf-node-bg {
  fill: rgba(9,30,66,0.72);
}
.cf-core {
  fill: url(#ctaNodeFill);
  stroke: rgba(255,255,255,0.7);
  stroke-width: 1.2;
}
.cf-spark { fill: #fff; }
.cf-halo {
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: ctaNodePulse 3.6s var(--ease-out) infinite;
}

@keyframes ctaFlowPulse { 0% { stroke-dashoffset: 0.3; } 70%, 100% { stroke-dashoffset: -1; } }
@keyframes ctaNodePulse {
  0%        { transform: scale(1);   opacity: 0.8; }
  60%, 100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-pulse, .cf-halo { animation: none; }
  .cf-pulse { display: none; }
  .cf-halo { opacity: 0; }
}

/* The overlay is a fixed 480px wide; below this the band is too narrow to fit
   it beside the copy, so the globe carries the right side on its own. */
@media (max-width: 1040px) {
  .cta-flow { display: none; }
}

.cta-globe {
  position: absolute;
  top: 50%;
  right: -34px;
  width: 380px;
  max-width: 44%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1000ms var(--ease-out) 180ms, transform 700ms var(--ease-out);
}
.cta-band.is-visible .cta-globe { opacity: 1; }

/* Atmosphere: a soft sphere of light the dots sit inside, so the globe reads
   as a lit volume instead of a flat scatter of squares. */
.cta-globe::before {
  content: '';
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 64% 38%, rgba(62,141,224,0.32) 0%, rgba(3,105,205,0.13) 46%, rgba(3,105,205,0.04) 66%, transparent 74%);
}
.cta-globe-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .cta-band.has-globe:hover .cta-globe { transform: translateY(-50%) scale(1.04); }
}

/* Phones: the globe would sit under the headline and cost contrast, so it
   shrinks into the top-right corner and drops to a faint texture. */
@media (max-width: 860px) {
  .cta-band.has-globe { padding: 56px 30px; }
  .cta-band.has-globe .cta-flex { max-width: 100%; gap: 26px; }
  .cta-globe { width: 300px; max-width: 78%; right: -86px; top: 0; transform: translateY(-22%); }
  .cta-band.is-visible .cta-globe { opacity: 0.45; }
  .cta-band.has-globe:hover .cta-globe { transform: translateY(-22%); }
}

/* ---------- BUTTONS (generic) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform 160ms var(--ease-out), background 220ms ease, color 220ms ease;
}
.btn:active { transform: scale(0.95); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #eef1f7; }
.btn-outline-white { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  position: relative;
}
/* Edge-to-edge divider: .footer-top only spans the 1180px container, so a
   plain border-bottom stops short of the viewport edges. Breaking out with
   the 50vw/negative-margin trick keeps the line full width without
   restructuring the footer's markup. */
.footer-top::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  margin-left: -50vw;
  margin-right: -50vw;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { max-width: 320px; }

.footer-tagline { margin-top: 14px; font-size: 15px; }

.footer-contact { margin-top: 22px; display: flex; flex-direction: column; gap: 24px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  color: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-contact-icon svg { width: 15px; height: 15px; }
.footer-contact-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.footer-contact-item p { font-size: 14.5px; line-height: 1.6; }
.footer-contact-item a { color: inherit; transition: color 200ms ease; }
.footer-contact-item a:hover { color: #fff; }

.footer-links h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; }
.footer-link-grid a { font-size: 14.5px; transition: color 200ms ease; }
.footer-link-grid a:hover { color: #fff; }

.footer-social-links { margin-top: 22px; display: flex; gap: 12px; }
.footer-social-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.footer-social-icon svg { width: 16px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .footer-social-icon:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
}
.footer-social-icon:active { transform: scale(0.94); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 36px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-legal-group { display: flex; align-items: center; gap: 8px; }
.footer-bottom-legal-group .dot-sep { opacity: 0.45; }
.footer-bottom-legal { color: inherit; transition: color 200ms ease; }
.footer-bottom-legal:hover { color: #fff; }
@media (max-width: 640px) {
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- misc ---------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ---------- TEAM CARD (clickable) ---------- */
section[id] { scroll-margin-top: 84px; }

.team-card {
  display: block;
  text-align: left;
  transition: transform 260ms var(--ease-out);
}
.team-card:active { transform: scale(0.98); }

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: linear-gradient(150deg, var(--indigo), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(9,30,66,0.06);
  transition: box-shadow 260ms var(--ease-out);
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}

/* the "view profile" chevron — hidden until intent is shown */
.team-card .name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.team-card .name-row svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover { transform: translateY(-4px); }
  .team-card:hover .team-avatar { box-shadow: 0 18px 34px rgba(9,30,66,0.14); }
  .team-card:hover .team-avatar img { transform: scale(1.04); }
  .team-card:hover .name-row svg { opacity: 1; transform: translateX(0); }
}

/* touch devices never hover — keep the affordance visible instead */
@media (hover: none) {
  .team-card .name-row svg { opacity: 0.5; transform: none; }
}

.team-card:focus-visible {
  outline: none;
}
.team-card:focus-visible .team-avatar {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- PROFILE (team detail) ---------- */
.profile-hero { padding-bottom: 150px; }
/* The hero's own top padding is 70px. A `position: fixed` .nav is out of flow and
   overlays the band, so the profile hero needs to clear it; a `position: sticky`
   .nav occupies flow and needs no extra offset (set the token to 0px). */
.profile-hero .hero-inner { padding-top: calc(70px + var(--nav-overlay-offset)); }

.back-link {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 800ms var(--ease-out) 40ms forwards;
  transition: color 200ms ease;
}
.back-link svg {
  width: 15px; height: 15px;
  transition: transform 200ms var(--ease-out);
}
.back-link:hover { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .back-link:hover svg { transform: translateX(-3px); }
}

.profile-hero .hero-title { font-size: clamp(34px, 5.4vw, 60px); }

.profile-role {
  margin-top: 14px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 900ms var(--ease-out) 380ms forwards;
}

.profile-intro-section { padding-top: 0; }

.profile-intro {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
  margin-top: -110px;
}
@media (max-width: 860px) {
  .profile-intro { grid-template-columns: 1fr; gap: 32px; margin-top: -90px; }
}

.profile-photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(150deg, var(--indigo), var(--blue));
  box-shadow: 0 24px 60px rgba(9,30,66,0.24);
  border: 5px solid var(--white);
}
@media (max-width: 860px) { .profile-photo { max-width: 300px; } }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

/* .profile-intro is pulled up 110px so the portrait overlaps the hero band,
   so this padding is what actually decides the copy's clearance below that
   band: 168 - 110 = 58px. At the old 124 it cleared by 14px and read cramped.
   Move the overlap and this has to move with it. */
.profile-lead { padding-top: 168px; }
@media (max-width: 860px) { .profile-lead { padding-top: 0; } }

.profile-bio {
  font-size: 18px;
  line-height: 1.65;
  color: var(--body);
}

.profile-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 960px) { .profile-body { grid-template-columns: 1fr; gap: 48px; } }

.profile-body h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 22px; }

/* rich text */
.rich p { font-size: 16.5px; line-height: 1.7; }
.rich p + p { margin-top: 16px; }
.rich strong { color: var(--navy); font-weight: 700; }

/* education */
.edu-card {
  margin-top: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
}
.edu-card .kicker { margin-bottom: 8px; }
.edu-card h4 { font-size: 16.5px; }
.edu-card p { font-size: 14.5px; margin-top: 4px; }

/* experience list */
.exp-list { display: flex; flex-direction: column; }

.exp-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
}
.exp-item + .exp-item { border-top: 1px solid var(--line); }
.exp-item:first-child { padding-top: 0; }

.exp-logo {
  width: 52px; height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.exp-logo img { width: 100%; height: 100%; object-fit: contain; }

.exp-role { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.exp-meta { font-size: 14px; margin-top: 4px; }
.exp-meta .company { color: var(--blue); font-weight: 600; }
.exp-meta .years { color: var(--body); font-variant-numeric: tabular-nums; }

/* ---------- MOBILE MENU ---------- */
.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.16);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  place-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  transition: transform 160ms var(--ease-out), background 250ms ease, border-color 250ms ease;
}
.menu-btn:active { transform: scale(0.94); }
.nav.scrolled .menu-btn { background: var(--blue); border-color: var(--blue); }

.menu-bar {
  display: block;
  width: 17px; height: 2px;
  border-radius: 2px;
  background: #fff;
  /* the bars morph into an X — transform only, so it stays off the main thread */
  transition: transform 220ms var(--ease-out), opacity 160ms var(--ease-out);
}
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav .talk-btn { display: none; }
}

.m-menu { position: fixed; inset: 0; z-index: 1100; }
.m-menu[hidden] { display: none; }

.m-menu-scrim {
  position: absolute; inset: 0;
  background: rgba(9,30,66,0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}
.m-menu.is-open .m-menu-scrim { opacity: 1; }

.m-menu-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  background: var(--white);
  padding: 92px 26px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 50px rgba(9,30,66,0.2);
  /* translateX by its own width, so it works at any panel size */
  transform: translateX(100%);
  transition: transform 300ms var(--ease-drawer);
}
.m-menu.is-open .m-menu-panel { transform: translateX(0); }

/* The panel covers the hamburger while it is open, so it has to carry its own
   dismiss. It sits in the 92px of top padding the panel already reserves, and
   `data-close` is all the wiring it needs — script.js binds every element
   carrying that attribute to closeMenu. */
.m-menu-close {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.m-menu-close svg { width: 18px; height: 18px; }
.m-menu-close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .m-menu-close:hover { background: var(--card); border-color: var(--blue); color: var(--blue); }
}

.m-nav { list-style: none; display: flex; flex-direction: column; }
.m-nav-link {
  display: block;
  /* No divider rule — spacing alone separates the links. Padding carries a
     little more than it did when a border did the work. */
  padding: 15px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.m-nav-link.active { color: var(--blue); }
.m-nav-link:active { transform: scale(0.98); }

.m-menu-cta { margin-top: 26px; justify-content: center; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }

/* exit is faster than enter — the system responding, not the user deciding */
.m-menu.is-closing .m-menu-panel { transition-duration: 200ms; }
.m-menu.is-closing .m-menu-scrim { transition-duration: 200ms; }

@media (prefers-reduced-motion: reduce) {
  .m-menu-panel { transition: opacity 150ms ease; transform: none; opacity: 0; }
  .m-menu.is-open .m-menu-panel { opacity: 1; }
}

/* ---------- FOOTER COLUMNS ---------- */
.footer-links { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 20px; }
.footer-col-links { display: flex; flex-direction: column; gap: 14px; }
.footer-col-links a { font-size: 14.5px; transition: color 200ms ease; }
.footer-col-links a:hover { color: #fff; }
@media (max-width: 640px) { .footer-links { gap: 40px; } }

/* ---------- PAGE HERO (inner pages) ---------- */
/* Flat gradient, no photo underneath — Homepage is deliberately excluded;
   its hero already carries the animated scene. */
.page-hero {
  padding-bottom: 80px;
  background-image: linear-gradient(160deg, #0369CD 0%, #04599E 60%, #033F85 100%);
}
.page-hero .hero-inner { padding-top: calc(70px + var(--nav-overlay-offset)); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 800ms var(--ease-out) 40ms forwards;
}
.breadcrumb a { transition: color 200ms ease; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: #fff; }

/* ---------- SECTION BLOCKS ---------- */
/* .prose is also the text column inside prose-overview, split-intro and
   stat-overview's two-column layouts, so its own width/alignment has to stay
   generic (left-aligned, no auto margin) — those sections size and place it
   themselves. Widening/centering it here would drag the text column out of
   line with the heading beside it on every one of those pages. */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 17px; line-height: 1.75; }
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--navy); font-weight: 700; }
.prose ul { margin: 18px 0 18px 22px; }
.prose li { font-size: 17px; line-height: 1.75; margin-bottom: 10px; }
/* Legal pages (privacy policy, terms of service) run .prose as the whole
   column — wider and centred — with the hero's breadcrumb/title constrained
   to that same width so both line up on one left edge. */
.policy-hero-inner, .policy-prose { max-width: 820px; margin: 0 auto; }

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; gap: 36px; } }

/* problem list */
.problem-list { display: flex; flex-direction: column; gap: 14px; }
.problem-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
/* A filled triangle rather than a hairline "!": at this size a 2.6px stroke
   reads as a faint smudge, and these are the page's warning signals. The
   exclamation is punched out with evenodd so the badge tint shows through,
   which keeps the glyph correct if that tint ever changes. */
.problem-item .mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #FCDAD5;
  color: #C62D1F;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.problem-item .mark svg { width: 17px; height: 17px; }
.problem-item p { font-size: 15px; }

/* deliverables */
.deliver-list { display: flex; flex-direction: column; gap: 0; }
.deliver-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
}
.deliver-item + .deliver-item { border-top: 1px solid var(--line); }
.deliver-item:first-child { padding-top: 0; }
.deliver-item .tick {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  margin-top: 2px;
}
.deliver-item .tick svg { width: 12px; height: 12px; }
.deliver-item h4 { font-size: 16px; margin-bottom: 4px; }
.deliver-item p { font-size: 14.5px; }

/* tech stack chips */
.stack-group + .stack-group { margin-top: 24px; }
.stack-group .label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
/* Equal-sized cards, not content-width pills. The 200px column floor is
   derived, not picked: the widest lockup is PostgreSQL at 6.68:1, which needs
   174px to render at the shared 26px height, plus 14px padding a side. Narrow
   the column and that logo silently shrinks instead of the card clipping. */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* Fixed width, not a grid track: auto-fill tracks always pack to the left,
     so the row could not be centred. 216px keeps the 188px of content the
     widest lockup needs to hold its 26px height. */
  width: 216px;
  max-width: 100%;
  min-height: 112px;
  padding: 18px 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(9,30,66,0.06);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--navy);
  text-align: center;
  transition: box-shadow 200ms ease, color 200ms ease;
}
/* Only some technologies have artwork (see src/data/tech-logos.js), so a chip
   has to look deliberate either way: the logo is an optional prefix and the
   label stays the constant.
   The artwork is trimmed to its content bounds, so a shared height is enough
   to make every logo read at the same visual weight — width follows from the
   file's own ratio. Pinning the width instead would squash the wide wordmarks
   (PostgreSQL is 6.7:1) down to nothing. */
.chip.has-logo img {
  height: 26px;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
}

/* Phones: two per row instead of one. The 216px desktop card no longer fits,
   and the logo has to come down with it — at ~151px of card on a 360px phone
   only ~19px of height keeps the widest lockup (6.68:1) inside its padding.
   Leave it at 26px and that one logo shrinks on its own, breaking the uniform
   height the cards exist to hold. */
@media (max-width: 560px) {
  .chips { gap: 10px; }
  .chip {
    width: calc((100% - 10px) / 2);
    min-height: 96px;
    padding: 14px 10px;
    gap: 9px;
    font-size: 13px;
  }
  .chip.has-logo img { height: 19px; }
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { box-shadow: 0 8px 20px rgba(9,30,66,0.12); color: var(--blue); }
}

/* numbered process — a vertical timeline. The numbered circle holds a fixed
   left rail; title and body sit in the column beside it; the arrow connector
   drops down that same rail between steps, so the numbers, the arrows and the
   copy each keep one continuous edge. The arrow reuses the arch-figure's
   line+chevron language (round caps, 2px stroke, #0369CD) rotated to
   vertical, so the two arrow styles read as one system. */
.steps-track {
  --step-rail: 52px;
  --step-gap: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 620px;
  margin: 0 auto;
}
.step-item {
  /* Grid, not a flex row: the markup is flat (circle, h4 and p are siblings),
     so the circle spans both text rows rather than becoming a third column. */
  position: relative;
  display: grid;
  grid-template-columns: var(--step-rail) 1fr;
  column-gap: 20px;
  align-items: start;
  text-align: left;
}
/* The arrow is drawn on the step itself, not by the .step-connector siblings
   in the flow. A flowed connector sits after the copy, so its distance from
   the circle above grew with the paragraph while its distance to the circle
   below stayed fixed. Anchoring it here — top offset from the circle, bottom
   offset from the padding edge — keeps --step-gap on both sides whatever the
   copy does. The line is a stretchy gradient; the chevron is a fixed-size
   background pinned to the bottom, matching the arch-figure arrow language. */
.steps-track .step-item:not(:last-child) { padding-bottom: 48px; }
.steps-track .step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(var(--step-rail) / 2 - 7px);
  top: calc(var(--step-rail) + var(--step-gap));
  bottom: var(--step-gap);
  width: 14px;
  background:
    /* viewBox is cropped to the stroke's own ink box (round caps add 1 unit
       past each end point) so the chevron tip sits flush with the bottom of
       the background box — otherwise the empty slack inside the box reads as
       extra clearance and the arrow looks off-centre between the circles. */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230369CD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center bottom / 14px 8px,
    linear-gradient(var(--blue), var(--blue)) no-repeat center top / 2px calc(100% - 11px);
}
.step-circle {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: var(--step-rail); height: var(--step-rail);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.step-item h4 { grid-column: 2; font-size: 18px; margin-bottom: 8px; }
.step-item p { grid-column: 2; font-size: 15px; }

/* Narrow-column variant of the numbered process — used where steps sit next
   to a photo in a half-width split (e.g. careers' hiring process), too
   narrow for the horizontal arrow timeline above at any viewport width. */
.steps { display: flex; flex-direction: column; }
.step-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step-row:last-child { border-bottom: none; }
.step-row .n {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.step-row h4 { font-size: 17px; margin-bottom: 5px; }
.step-row p { font-size: 15px; }

/* ---------- LINK CARDS (services / industries hub) ---------- */
.link-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms ease;
}
.link-card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .link-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 22px 44px rgba(9,30,66,0.11); }
  .link-card:hover .arrow-link svg { transform: translateX(3px); }
}
.link-card .svc-icon { background: var(--card); }
.link-card h3 { font-size: 20px; margin-bottom: 10px; }
.link-card p { font-size: 15px; line-height: 1.6; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.arrow-link svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }

/* media card with photo */
.photo-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.photo-card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .photo-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(9,30,66,0.13); }
  .photo-card:hover .photo-frame img { transform: scale(1.04); }
}
.photo-frame {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy), var(--blue));
  position: relative;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease-out); }
.photo-card .body { padding: 22px 24px 26px; }
.photo-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.photo-card p {
  font-size: 14.5px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* eyebrow tag on a card */
.card-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- RESULTS / METRICS ---------- */
.results-band.hero-results {
  margin-top: 40px;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
@media (max-width: 640px) { .results-band.hero-results { margin-top: 28px; } }

.results-band {
  background: var(--navy);
  border-radius: 24px;
  padding: 40px 38px;
  position: relative;
}
@media (max-width: 640px) { .results-band { padding: 30px 24px; } }
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.results-head h3 { color: #fff; font-size: 20px; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.result { padding: 0 28px; }
.result:first-child { padding-left: 0; }
.result:last-child { padding-right: 0; }
.result:not(:first-child) { border-left: 1px solid rgba(255,255,255,0.22); }
@media (max-width: 640px) {
  .results-grid { grid-template-columns: 1fr; gap: 20px; }
  .result { padding: 16px 0 0; }
  .result:first-child { padding-top: 0; }
  .result:not(:first-child) { border-left: none; border-top: 1px solid rgba(255,255,255,0.22); }
}
.result .num {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.result .label { font-size: 14px; color: rgba(255,255,255,0.72); margin-top: 6px; }

/* honesty marker for unverified numbers */
.illustrative {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.88);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.illustrative svg { width: 12px; height: 12px; }
.illustrative.on-light {
  background: #FFF4E5;
  border-color: #FFD9A0;
  color: #8A5A00;
}

.pending-note {
  font-size: 13px;
  color: var(--body);
  font-style: italic;
}

/* testimonial */
.quote-card {
  background: var(--card);
  border-radius: 20px;
  padding: 34px 32px;
}
.quote-card blockquote {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.quote-card .attrib { margin-top: 18px; font-size: 14px; color: var(--body); }
.quote-card .attrib strong { color: var(--navy); display: block; font-size: 15px; }

/* ---------- FILTER BAR (case studies) ----------
   Three native <select>s in one row rather than three rows of pill
   buttons — same filtering power, a fraction of the vertical space,
   and a native select gives touch/keyboard users a real picker for
   free instead of a wall of buttons to scan. */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-select { position: relative; display: flex; align-items: center; }
.filter-select select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 34px 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.filter-select select:active { transform: scale(0.98); }
.filter-select .chevron {
  position: absolute;
  right: 13px;
  width: 13px;
  height: 13px;
  color: var(--body);
  pointer-events: none;
  transition: color 200ms ease;
}
.filter-select select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.filter-select.is-active select { border-color: var(--blue); color: var(--blue); background: var(--card); }
.filter-select.is-active .chevron { color: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .filter-select select:hover { border-color: var(--blue); }
}

/* Phones: a select is as wide as its longest option, not its selected one, so
   "Industry: All" was carrying the width of "Industry: E-Commerce & Retail
   Tech" and each filter claimed its own row. Pinning them to a two-up grid and
   letting the label clip turns three rows into two shorter ones. */
@media (max-width: 560px) {
  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
  }
  .filter-select { min-width: 0; }
  .filter-select select {
    width: 100%;
    padding: 7px 26px 7px 12px;
    font-size: 12.5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .filter-select .chevron { right: 10px; width: 12px; height: 12px; }
}

/* filtered-out cards leave; the grid reflows underneath */
.case-item { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.case-item[hidden] { display: none; }
.case-item.is-leaving { opacity: 0; transform: scale(0.97); }

.empty-state {
  padding: 48px 0;
  text-align: center;
  color: var(--body);
  font-size: 15.5px;
}
.empty-state[hidden] { display: none; }

/* ---------- ARCHITECTURE DIAGRAM ---------- */
.arch-figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.arch-figure svg { width: 100%; height: auto; display: block; }

/* Two renderings of the same diagram: the hand-drawn SVG for wide screens, and
   a stacked list below 720px, where the SVG's fixed 980-unit layout shrinks its
   12px labels past legibility. Swapping with display (not visibility) keeps the
   hidden one out of the accessibility tree. */
.arch-stack { display: none; }

@media (max-width: 720px) {
  .arch-figure { padding: 20px 16px; }
  .arch-wide { display: none; }
  .arch-stack { display: block; list-style: none; }

  .arch-step {
    background: var(--white);
    box-shadow: 0 1px 4px rgba(9,30,66,0.06);
    border-radius: 14px;
    padding: 14px 14px 12px;
  }
  /* The gap carries the connector, so it belongs to the following step. Same
     line+chevron path style as the desktop SVG's connectors (round caps,
     2px stroke, #0369CD), just rotated to vertical, so the two renderings
     of the diagram share one arrow language instead of two. */
  .arch-step + .arch-step { margin-top: 34px; position: relative; }
  .arch-step + .arch-step::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -30px;
    width: 20px;
    height: 26px;
    transform: translateX(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 26' fill='none'%3E%3Cpath d='M10 2v14' stroke='%230369CD' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 12l6 6 6-6' stroke='%230369CD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  }

  .arch-step-label {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--blue);
    margin-bottom: 10px;
  }
  .arch-step-items { list-style: none; display: flex; flex-direction: column; gap: 7px; }
  .arch-step-items li {
    background: var(--card);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--navy);
    text-align: center;
  }
}
.arch-figure figcaption {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--body);
  text-align: center;
}

/* ---------- INSIGHTS ---------- */
/* The share rail is a flex sibling of .article-wrap, not an absolutely
   positioned overlay, so its containing block's height is exactly the
   article's height — position: sticky then naturally keeps it pinned while
   the article scrolls and releases it at the article's top/bottom edges,
   with no manual scroll math. */
/* The insight hero lines up with the article column rather than the full
   container: 860px of content plus .container's 24px gutters, so the headline
   starts exactly where the body copy below it does. Keep the 860 in step with
   .article-layout's max-width. */
.article-hero .hero-inner { max-width: 908px; }

.article-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.article-share {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.article-share-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.share-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--body);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.share-btn svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) {
  .share-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
}
.share-btn:active { transform: scale(0.92); }

.share-tooltip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  white-space: nowrap;
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.share-btn:hover .share-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }
.share-btn.is-copied .share-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (max-width: 900px) {
  .article-share { display: none; }
}

.article-wrap { flex: 1 1 auto; max-width: 780px; margin: 0 auto; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--body);
  flex-wrap: wrap;
}
.article-meta .dot-sep { opacity: 0.45; }

.article-body h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 14px; }
.article-body h3 { font-size: 19px; margin: 28px 0 10px; }
.article-body p { font-size: 17px; line-height: 1.75; }
.article-body p + p { margin-top: 18px; }
.article-body ul, .article-body ol { margin: 16px 0 16px 22px; }
.article-body li { font-size: 16.5px; line-height: 1.7; margin-bottom: 8px; }
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--blue);
  background: var(--card);
  border-radius: 0 14px 14px 0;
  font-size: 16.5px;
  color: var(--navy);
}
.article-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--card);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--blue-dark);
}

/* ---------- CAREERS ---------- */
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
}
.benefit-card .ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--card);
  color: var(--blue);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.benefit-card .ico svg { width: 21px; height: 21px; }
.benefit-card h3 { font-size: 17px; margin-bottom: 8px; }
.benefit-card p { font-size: 14.5px; }

.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  flex-wrap: wrap;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms var(--ease-out);
}
.role-row + .role-row { margin-top: 10px; }
.role-row:active { transform: scale(0.995); }
@media (hover: hover) and (pointer: fine) {
  .role-row:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 12px 26px rgba(3,105,205,0.1); }
  .role-row:hover .arrow-link svg { transform: translateX(3px); }
}
.role-row h4 { font-size: 16.5px; }
.role-row .role-meta { font-size: 13.5px; color: var(--body); margin-top: 4px; }

/* ---------- MISC ---------- */
.stat-row { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-row .num { font-size: clamp(26px,3.2vw,34px); font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-row .label { font-size: 13.5px; color: var(--body); margin-top: 3px; max-width: 150px; }

.note-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #FFF4E5;
  border: 1px solid #FFD9A0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 32px;
}
.note-banner svg { width: 18px; height: 18px; color: #8A5A00; flex-shrink: 0; margin-top: 1px; }
.note-banner p { font-size: 14px; color: #6B4600; }
.mt-32 { margin-top: 32px; }

/* ---------- TEAM GROUPS (About) ----------
   Five people don't divide into the 4-up grid, so the section is split into two
   labelled groups instead. The label sits in a left rail at desktop and stacks
   above its grid below 1040px, where the rail would squeeze the cards too far. */
.team-group {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.team-group + .team-group { margin-top: 60px; }

.team-group-label .num {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.06em;
}
.team-group-label h3 {
  font-size: 19px;
  margin-top: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1040px) {
  .team-group { grid-template-columns: 1fr; gap: 22px; }
  .team-group + .team-group { margin-top: 48px; }
}

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Stays two-up on phones rather than dropping to one: a single column made
   each portrait full-bleed and pushed the rest of the team a screen away.
   The card's type and gaps tighten instead so two still fit comfortably. */
@media (max-width: 560px) {
  .team-grid { gap: 14px; }
  .team-avatar { border-radius: 14px; margin-bottom: 12px; }
  .team-card h4 { font-size: 15px; }
  .team-card .name-row { gap: 4px; }
  .team-card .name-row svg { width: 13px; height: 13px; }
  .team-card .role { font-size: 12.5px; }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(9,30,66,0.22);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), background 160ms var(--ease-out), visibility 220ms;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); }
.back-to-top:active { transform: scale(0.94); }
@media (max-width: 640px) {
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ---------- COOKIE NOTICE ---------- */
.cookie-notice {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(9,30,66,0.18);
  padding: 20px 22px;
  z-index: 1200;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.cookie-notice.is-visible { opacity: 1; transform: translateY(0); }
.cookie-notice p { font-size: 14px; color: var(--body); margin-bottom: 14px; }
.cookie-notice-actions { display: flex; gap: 10px; margin-bottom: 10px; }
.cookie-notice-actions button {
  flex: 1; padding: 10px 16px; border-radius: 10px; font-size: 14px;
  font-weight: 600; cursor: pointer; border: none;
  transition: transform 160ms var(--ease-out);
}
.cookie-notice-actions button:active { transform: scale(0.97); }
.cookie-notice-actions [data-decline] { background: var(--white); border: 1px solid var(--line); color: var(--navy); }
.cookie-notice-actions [data-accept] { background: var(--blue); color: #fff; }
.cookie-notice a { font-size: 13px; color: var(--blue); }
@media (prefers-reduced-motion: reduce) {
  .cookie-notice { transition: opacity 200ms ease; transform: none; }
}
