/* =====================================================================
   FuSaLogix — style.css
   Premium engineering theme. 60-30-10 palette:
     60% Anthracite Black (dominant)
     30% Off White + Charcoal (secondary)
     10% Signal Red + Ember Orange (accent)
===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* 60% Dominant — Anthracite Black */
  --bg-0: #1A1A1A;
  /* page background */
  --bg-1: #222222;
  /* faint elevation */
  --bg-2: #2C2C2C;
  /* Charcoal — elevated surfaces, scrolled nav */
  --line: #3a3a3a;
  /* subtle borders */

  /* 10% Accent — Signal Red + Ember Orange */
  --accent: #C0392B;
  /* Signal Red — primary CTA, focus, key emphasis */
  --accent-2: #D35400;
  /* Ember Orange — gradient partner, secondary highlight */
  --accent-3: #8E2A20;
  /* Deep Signal Red — tertiary (market pins, etc.) */

  /* 30% Secondary — Off White + Charcoal-on-dark text scale */
  --white: #F5F5F5;
  /* Off White — primary text */
  --muted: #D8D6D2;
  /* warm muted text */
  --dim: #9A9794;
  /* warm dim text */

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1520px;

  --shadow-1: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-2: 0 20px 60px rgba(0, 0, 0, .55);
  --glow: 0 0 0 1px rgba(192, 57, 43, .22), 0 0 40px rgba(192, 57, 43, .14);

  --grad-1: linear-gradient(135deg, #D35400 0%, #C0392B 100%);
  --grad-soft: linear-gradient(135deg, rgba(192, 57, 43, .12), rgba(211, 84, 0, .06));
  --grad-text: linear-gradient(90deg, #D35400, #C0392B 70%);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 180ms var(--ease);
  --t-med: 320ms var(--ease);
  --t-slow: 600ms var(--ease);

  --font-sans: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --font-disp: 'Montserrat', 'Roboto', system-ui, sans-serif;

  --fs-h1: clamp(2.6rem, 5.2vw + .5rem, 5rem);
  --fs-h2: clamp(1.9rem, 2.6vw + .6rem, 2.9rem);
  --fs-h3: clamp(1.15rem, .6vw + .9rem, 1.35rem);
  --fs-lede: clamp(1.02rem, .35vw + .95rem, 1.18rem);
  --fs-body: 1rem;
  --fs-small: .88rem;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  font-family: var(--font-sans);
  color: var(--muted);
  background: var(--bg-0);
  line-height: 1.6;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%
}

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

button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer
}

ul {
  list-style: none;
  margin: 0;
  padding: 0
}

h1,
h2 {
  font-family: var(--font-disp);
  color: var(--white);
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-weight: 600
}

h3,
h4 {
  font-family: var(--font-sans);
  color: var(--white);
  margin: 0;
  letter-spacing: -.005em;
  line-height: 1.2;
  font-weight: 600
}

p {
  margin: 0 0 1rem
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: .6rem 1rem;
  z-index: 1000;
  border-radius: 6px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem
}

::selection {
  background: rgba(192, 57, 43, .35);
  color: #F5F5F5
}

/* =====================================================================
   FIXED BACKGROUND — connected-mobility photo + cinematic vignette
   Two layers:
     ::before  bumped to 10% opacity for a touch more presence
     ::after   radial vignette darkens edges, anchoring the eye to
               the content column without dimming the reading area.
===================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url('images/bg_connected_mobility.png');
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  mix-blend-mode: luminosity;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 42%,
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.32) 78%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

html.low-power body::before,
html.low-power body::after {
  display: none
}

/* =====================================================================
   UNIFIED CARD HOVER — accent left-border slides in
   Applies to every editorial surface across all sections.
===================================================================== */
.ind-card,
.cap,
.svc,
.off,
.badge,
.train,
.case,
.logos li {
  position: relative;
}

.ind-card::before,
.cap::before,
.svc::before,
.off::before,
.badge::before,
.train::before,
.case::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 280ms cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}

.ind-card:hover::before,
.cap:hover::before,
.svc:hover::before,
.off:hover::before,
.badge:hover::before,
.train:hover::before,
.case:hover::before {
  transform: scaleY(1);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 32px)
}

.section {
  padding: clamp(20px, 3vw, 48px) 0;
  position: relative
}

/* Keep anchor targets out from under the fixed nav (74px). */
section[id] {
  scroll-margin-top: 84px
}

.section__head {
  max-width: none;
  margin: 0 0 18px;
  text-align: left;
  padding-bottom: 12px;
  border-bottom: 1px solid #2e2e2e;
  position: relative;
}

/* Compliance heading: oversized editorial display */
.compliance .section__title {
  font-size: clamp(2.4rem, 3.6vw + .6rem, 3.8rem);
  max-width: none;
  line-height: 1.05;
}

/* §XX italic number sits inline with the eyebrow on the same baseline. */
.section__num {
  display: inline-block;
  vertical-align: baseline;
  margin-right: 4px;
  font-family: var(--font-disp);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.01em;
}

.section__num::before {
  content: "§ "
}

.section__head .eyebrow {
  margin: 0
}

.section__title {
  font-size: var(--fs-h2);
  letter-spacing: -.025em;
  max-width: none;
  margin: 22px 0 0;
}

.section__sub {
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 80ch;
  font-family: var(--font-sans);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  margin: 0 0 22px;
  position: relative;
  padding-left: 18px;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* Editorial emphasis: solid accent + italic, not gradient text. */
.grad {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

/* Editorial bullets — short hairline dash instead of glowing dot */
.bullets {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0
}

.bullets li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75rem;
  width: .7rem;
  height: 1px;
  background: var(--accent);
}

/* Editorial card primitive: flat charcoal, no blur, single hairline border */
.glass {
  background: #1f1f1f;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
  padding: 20px;
  position: relative;
  transition: border-color var(--t-med);
}

.glass:hover {
  border-color: #4a3a36
}

.card__kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .95rem;
  font-weight: 500;
}

/* Buttons — editorial: solid fills, no shadows, no gradients */
.btn {
  --bh: 48px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  height: var(--bh);
  padding: 0 1.4rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .01em;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #F5F5F5;
  border: 1px solid var(--accent);
}

.btn--primary:hover {
  background: #a8311f;
  border-color: #a8311f
}

.btn--ghost {
  background: none;
  color: var(--white);
  border: 1px solid #3a3a3a;
}

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

/* Reveal-on-scroll (subtle fade only, no Y-translate flourish) */
.reveal {
  opacity: 0;
  transition: opacity 500ms ease-out
}

.reveal.is-in {
  opacity: 1
}

html:not(.js) .reveal {
  opacity: 1
}

/* =====================================================================
   NAVIGATION
===================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #1a1a1a;
  border-bottom: 1px solid #2e2e2e;
}

/* Override the container max-width so nav content spans the full viewport. */
.nav .nav__inner.container {
  max-width: none;
  padding: 0 40px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 74px;
  width: 100%;
}

.nav__brand {
  display: inline-flex;
  align-items: center
}

.nav__wordmark {
  font-family: var(--font-disp);
  font-weight: 500;
  color: var(--white);
  font-size: 1.2rem;
  letter-spacing: -.01em;
}

.nav__wordmark strong {
  font-weight: 700
}

.nav__wordmark span {
  color: var(--accent);
  font-weight: 500
}

.nav__links {
  display: flex;
  gap: 8px;
  align-items: center
}

.nav__links a {
  font-size: .92rem;
  color: var(--muted);
  padding: .55rem .85rem;
  border-radius: 8px;
  font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, .05)
}

.nav__cta {
  height: 42px;
  font-size: .88rem
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
  pointer-events: none
}

.nav__mobile {
  display: block;
  padding: 20px 32px 30px;
  background: #1a1a1a;
  border-bottom: 1px solid #2e2e2e;
}

.nav__mobile[hidden] {
  display: none
}

.nav__mobile a {
  display: block;
  padding: .85rem 0;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.nav__mobile .btn {
  margin-top: 14px;
  width: 100%
}

/* =====================================================================
   HERO (editorial — typography + blueprint diagram, asymmetric grid)
===================================================================== */
.hero {
  position: relative;
  min-height: auto;
  padding: 96px 0 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Isometric ECU illustration sits behind everything in the hero,
   anchored to the lower-left. Pointer-events off, fades to bg at edges. */
.hero__iso {
  position: absolute;
  left: -40px;
  bottom: -30px;
  width: min(620px, 60vw);
  height: auto;
  color: var(--accent);
  opacity: .16;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(135deg, #000 35%, transparent 90%);
  -webkit-mask-image: linear-gradient(135deg, #000 35%, transparent 90%);
}

.hero__inner {
  position: relative;
  z-index: 1
}

html.low-power .hero__iso {
  display: none
}

.hero__inner {
  position: relative;
  max-width: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.hero__text {
  grid-column: 1;
  grid-row: 1
}

.hero__diagram {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
}

.hero__svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  background: #171717;
  border: 1px solid #2e2e2e;
}

.hero__svg .bp-title,
.about__svg .bp-title {
  font-family: var(--font-sans);
  font-size: 9px;
  fill: var(--accent);
  letter-spacing: .22em;
  font-weight: 500;
}

.hero__svg .bp-meta,
.about__svg .bp-meta {
  font-family: var(--font-sans);
  font-size: 9px;
  fill: var(--dim);
  letter-spacing: .18em;
  font-weight: 500;
}

.hero__svg .bp-num,
.about__svg .bp-num {
  font-family: var(--font-disp);
  font-style: italic;
  font-size: 11px;
  fill: var(--accent);
  font-weight: 500;
}

.hero__svg .bp-tag,
.about__svg .bp-tag {
  font-family: var(--font-sans);
  font-size: 8px;
  fill: var(--dim);
  letter-spacing: .14em;
  font-weight: 500;
}

.hero__svg .bp-vcu,
.about__svg .bp-vcu {
  font-family: var(--font-sans);
  font-size: 10px;
  fill: #1a1a1a;
  font-weight: 600;
  letter-spacing: .08em;
}

.hero__svg .bp-legend,
.about__svg .bp-legend {
  font-family: var(--font-sans);
  font-size: 8px;
  fill: var(--dim);
  letter-spacing: .18em;
  font-weight: 500;
}

.about__diagram {
  margin: 18px 0 0;
  padding: 12px;
  background: #171717;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
}

.about__svg {
  width: 100%;
  height: auto;
  display: block
}

@media (max-width: 820px) {
  .about__diagram {
    padding: 10px
  }

  .about__svg .bp-meta {
    display: none
  }
}

.hero__diagram-caption {
  margin-top: 10px;
  color: var(--dim);
  font-size: .78rem;
  font-style: italic;
  letter-spacing: .01em;
  line-height: 1.4;
  text-align: right;
}

/* Stats span full hero width below both columns */
.hero__inner .hero__stats {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 40px
}

.hero__kicker {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 32px;
  padding-left: 18px;
  position: relative;
}

.hero__kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin: 0 0 28px;
  max-width: 18ch;
}

.hero__sub {
  font-size: var(--fs-lede);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #2e2e2e;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.stat__num {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(2rem, 2.8vw + .7rem, 3.2rem);
  color: var(--white);
  letter-spacing: -.025em;
  line-height: 1;
}

.stat__num--text {
  font-family: var(--font-disp);
  color: var(--accent)
}

.stat__label {
  color: var(--dim);
  font-size: .84rem;
  letter-spacing: .02em;
  line-height: 1.4
}

/* =====================================================================
   ABOUT
===================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start
}

.about__lede .eyebrow {
  margin-bottom: 18px
}

.about__lede .section__title {
  font-size: clamp(2rem, 2.6vw + .8rem, 3rem);
  letter-spacing: -.025em;
  margin-bottom: 32px;
  max-width: none;
}

.about__lede p {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  max-width: none
}

.about__sig {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-disp);
  font-weight: 500;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: -.005em;
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #2e2e2e
}

.about__cards .glass {
  background: none;
  border: none;
  border-bottom: 1px solid #2e2e2e;
  border-radius: 0;
  padding: 24px 0;
}

.about__cards .glass:hover {
  border-color: #2e2e2e
}

.about__cards .card__kicker {
  background: none;
  padding: 0;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .22em;
  font-weight: 500;
}

.about__cards .glass p {
  color: var(--muted);
  margin: 0;
  font-size: .96rem;
  line-height: 1.55
}

.about__cards .glass .bullets {
  margin-top: 6px
}

.about__cards .glass .bullets li {
  font-size: .92rem;
  padding-left: 1.1rem
}

.about__cards .glass .bullets li::before {
  background: var(--accent);
  box-shadow: none;
  width: .4rem;
  height: .4rem;
  top: .65rem;
  border-radius: 0;
}

/* =====================================================================
   GLOBAL PRESENCE
===================================================================== */
.presence__wrap {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 28px;
  align-items: stretch;
}

.presence__map {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 50% 45%, rgba(192, 57, 43, .06), transparent 70%),
    linear-gradient(180deg, rgba(44, 44, 44, .45), rgba(26, 26, 26, .55));
  border: 1px solid rgba(255, 255, 255, .07);
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
}

/* Aspect-locked viewport so the SVG never letterboxes inside the container
   and pins (positioned in % of this box) stay glued to the right continents
   on every screen width. */
.presence__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 500;
}

.presence__svg {
  width: 100%;
  height: 100%;
  display: block
}

/* Continent dotted silhouettes: hint of warm tint to feel intentional */
.continents path {
  filter: drop-shadow(0 0 6px rgba(192, 57, 43, .08));
}

/* Static connection arcs (no flow animation) */
.connections path {
  stroke-dasharray: 3 6;
  opacity: .5;
}

/* =====================================================================
   PINS
===================================================================== */
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  z-index: 2;
}

.pin__dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-1);
  box-shadow:
    0 0 0 3px rgba(26, 26, 26, 1),
    0 0 0 5px rgba(192, 57, 43, .45),
    0 0 16px rgba(192, 57, 43, .55);
}

.pin__pulse {
  display: none
}

/* HQ — bigger, double-ring, distinct */
.pin--hq {
  width: 18px;
  height: 18px;
  z-index: 3
}

.pin--hq .pin__dot {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 30% 30%, #F5F5F5 0%, #D35400 35%, #C0392B 100%);
  box-shadow:
    0 0 0 3px rgba(26, 26, 26, 1),
    0 0 0 6px rgba(192, 57, 43, .55),
    0 0 0 9px rgba(192, 57, 43, .18),
    0 0 22px rgba(192, 57, 43, .65);
}

.pin--hq .pin__pulse {
  width: 18px;
  height: 18px;
  border-color: rgba(211, 84, 0, .65);
  animation-duration: 3.2s;
}

/* Market — smaller, subtler */
.pin--market {
  width: 10px;
  height: 10px;
  z-index: 1
}

.pin--market .pin__dot {
  width: 9px;
  height: 9px;
  background: var(--accent-2);
  box-shadow:
    0 0 0 2px rgba(26, 26, 26, 1),
    0 0 0 4px rgba(211, 84, 0, .35),
    0 0 10px rgba(211, 84, 0, .45);
}

.pin--market .pin__pulse {
  width: 10px;
  height: 10px;
  border-color: rgba(211, 84, 0, .45);
  animation-duration: 3.4s;
}

/* Persistent label tag — variant positions so labels don't collide */
.pin__tag {
  position: absolute;
  background: rgba(26, 26, 26, .95);
  color: var(--white);
  font-family: var(--font-disp);
  border: 1px solid rgba(192, 57, 43, .30);
  border-radius: 10px;
  padding: .4rem .6rem;
  white-space: nowrap;
  pointer-events: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.15;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pin__tag strong {
  display: block;
  color: var(--white)
}

.pin__tag small {
  display: block;
  color: var(--dim);
  font-weight: 400;
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.pin__tag::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: inherit;
  border-right: 1px solid rgba(192, 57, 43, .30);
  border-bottom: 1px solid rgba(192, 57, 43, .30);
}

/* Tag positions */
.pin__tag--right {
  left: 160%;
  top: 50%;
  transform: translateY(-50%)
}

.pin__tag--right::after {
  left: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(135deg);
  border-top: none;
  border-left: none
}

.pin__tag--left {
  right: 160%;
  top: 50%;
  transform: translateY(-50%)
}

.pin__tag--left::after {
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  border-top: none;
  border-left: none
}

.pin__tag--top {
  left: 50%;
  bottom: 180%;
  transform: translateX(-50%)
}

.pin__tag--top::after {
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%) rotate(45deg);
  border-top: none;
  border-left: none
}

.pin:hover .pin__tag {
  border-color: rgba(211, 84, 0, .55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 1px rgba(211, 84, 0, .25);
}

/* =====================================================================
   LEGEND STRIP
===================================================================== */
.presence__legend {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 6px 6px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-family: var(--font-disp);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.leg-item {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.leg-item--meta {
  margin-left: auto;
  color: var(--dim);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase
}

.leg-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 1);
}

.leg-dot--hq {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 30% 30%, #F5F5F5 0%, #D35400 35%, #C0392B 100%);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 1), 0 0 0 4px rgba(192, 57, 43, .45);
}

.leg-dot--office {
  background: var(--grad-1)
}

.leg-dot--market {
  background: var(--accent-2);
  width: 8px;
  height: 8px
}

/* =====================================================================
   PRESENCE SIDE PANEL
===================================================================== */
.presence__panel {
  align-self: stretch;
  background: linear-gradient(180deg, rgba(44, 44, 44, .55), rgba(34, 34, 34, .55));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.presence__panel h3 {
  font-family: var(--font-disp);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.presence__panel h3:not(:first-child) {
  margin-top: 22px
}

.presence__list {
  display: grid;
  gap: 10px
}

.presence__list li {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05);
  position: relative;
}

.presence__list strong {
  color: var(--white);
  font-family: var(--font-disp);
  font-weight: 600
}

.presence__list span {
  color: var(--dim);
  font-size: .85rem;
  margin-top: 2px
}

.presence__list--hq {
  border-color: rgba(192, 57, 43, .35);
  background: linear-gradient(180deg, rgba(192, 57, 43, .09), rgba(192, 57, 43, .02));
}

.presence__list--hq::after {
  content: "HQ";
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-disp);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--accent);
  padding: .2rem .45rem;
  border-radius: 4px;
  background: rgba(192, 57, 43, .18);
  border: 1px solid rgba(192, 57, 43, .35);
}

.presence__markets-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}

.presence__markets-list li {
  font-family: var(--font-disp);
  font-size: .88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.presence__markets-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  flex: none;
  box-shadow: 0 0 8px rgba(211, 84, 0, .45);
}

.presence__stats {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.presence__stats div {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.presence__stats strong {
  font-family: var(--font-disp);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
}

.presence__stats span {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim)
}

/* =====================================================================
   INDUSTRIES
===================================================================== */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: #2e2e2e;
  border: 1px solid #2e2e2e
}

.ind-card {
  padding: 22px 20px;
  color: var(--muted);
  background: var(--bg-0);
  border-radius: 0;
  border: none;
  transition: background var(--t-med)
}

.ind-card:hover {
  background: #1f1f1f;
  transform: none;
  box-shadow: none
}

.ind-card h3 {
  font-size: 1.15rem;
  margin: 18px 0 10px;
  font-weight: 600
}

.ind-card p {
  font-size: .94rem;
  margin: 0;
  color: var(--dim)
}

.ind-card__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: none;
  border: none;
}

.ind-card__icon svg {
  width: 30px;
  height: 30px
}

/* =====================================================================
   CAPABILITIES
===================================================================== */
/* Capabilities as an editorial numbered list, not a card grid */
/* Uniform-padding grid. Cell dividers are produced by a 1px gap painted
   from the parent's background — so every cap has identical padding and
   the layout auto-adapts to any number of columns at any breakpoint. */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2e2e2e;
  border: 1px solid #2e2e2e;
}

.cap {
  position: relative;
  padding: 22px 22px;
  background: var(--bg-0);
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: baseline;
}

.cap__num {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.cap h3,
.cap p {
  grid-column: 2;
}

.cap:hover {
  background: #1f1f1f;
}

.cap__num {
  display: block;
  font-family: var(--font-disp);
  font-weight: 500;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1;
  font-feature-settings: "lnum";
}

.cap h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
  font-weight: 600
}

.cap p {
  font-size: .9rem;
  color: var(--dim);
  margin: 0;
  line-height: 1.5
}

/* =====================================================================
   SERVICES
===================================================================== */
/* Services: editorial hierarchy — first two cards span full width emphasis */
.services {
  position: relative;
  overflow: hidden;
  isolation: isolate
}

.services .container {
  position: relative;
  z-index: 1
}

.svc__iso {
  position: absolute;
  right: -40px;
  top: 60px;
  width: min(540px, 48vw);
  height: auto;
  color: var(--accent);
  opacity: .13;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(225deg, #000 35%, transparent 90%);
  -webkit-mask-image: linear-gradient(225deg, #000 35%, transparent 90%);
}

html.low-power .svc__iso {
  display: none
}

@media (max-width: 980px) {

  /* Stack-mode: the iso conflicts with service cards; hide */
  .svc__iso {
    display: none
  }
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #2e2e2e;
  border: 1px solid #2e2e2e
}

.svc {
  position: relative;
  padding: 24px 22px;
  background: var(--bg-0);
  transition: background var(--t-med);
}

.svc:hover {
  background: #1f1f1f
}

.svc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2e2e2e;
}

.svc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.svc__icon svg {
  width: 32px;
  height: 32px
}

.svc__index {
  font-family: var(--font-disp);
  font-size: .95rem;
  color: var(--accent);
  font-feature-settings: "lnum";
  font-style: italic;
}

.svc h3 {
  font-size: 1.4rem;
  margin: 0 0 .55rem;
  font-weight: 600;
  letter-spacing: -.01em
}

.svc>p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.5
}

/* =====================================================================
   V-MODEL DIAGRAM
===================================================================== */
.vmodel__figure {
  margin: 0;
  padding: 24px 0 0
}

.vmodel__svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 640px;
  overflow: visible
}

.vmodel__svg text {
  font-family: var(--font-sans);
  fill: var(--white)
}

.vmodel__svg .v-step {
  font-family: var(--font-disp);
  font-style: italic;
  font-size: 18px;
  fill: var(--accent);
  font-weight: 500;
}

.vmodel__svg .v-label {
  font-size: 19px;
  font-weight: 600;
  fill: var(--white)
}

.vmodel__svg .v-sub {
  font-size: 15px;
  fill: var(--dim);
  letter-spacing: .02em
}

.vmodel__svg .v-apex {
  font-family: var(--font-disp);
  font-size: 22px;
  fill: #1A1A1A;
  font-weight: 600;
  letter-spacing: .02em;
}

.vmodel__svg .v-side {
  font-family: var(--font-sans);
  font-size: 15px;
  fill: var(--dim);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
}

.vmodel__caption {
  margin-top: 18px;
  color: var(--dim);
  font-size: .85rem;
  font-style: italic;
  max-width: 60ch;
  line-height: 1.5;
}

/* Mobile fallback list — hidden by default */
.vmodel__list {
  display: none
}

@media (max-width: 720px) {

  /* SVG text becomes unreadable below this width — swap in stacked list */
  .vmodel__svg {
    display: none
  }

  .vmodel__list {
    display: grid;
    gap: 0;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    border-top: 1px solid #2e2e2e;
  }

  .vmodel__step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #2e2e2e;
    align-items: start;
  }

  .vmodel__num {
    font-family: var(--font-disp);
    font-style: italic;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--accent);
    line-height: 1;
    padding-top: 2px;
    min-width: 32px;
  }

  .vmodel__step div {
    display: flex;
    flex-direction: column;
    gap: 4px
  }

  .vmodel__step strong {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -.005em;
  }

  .vmodel__step small {
    font-family: var(--font-sans);
    font-size: .82rem;
    color: var(--dim);
    line-height: 1.5;
  }

  .vmodel__step--apex {
    background: rgba(192, 57, 43, .08);
    padding-left: 14px;
    padding-right: 14px;
    border-left: 2px solid var(--accent);
  }

  .vmodel__step--apex strong {
    color: var(--accent)
  }

  .vmodel__step--apex .vmodel__num {
    color: #6e6964
  }
}

/* =====================================================================
   TURNKEY OFFERINGS
===================================================================== */
/* Turnkey offerings: editorial two-column list */
.off-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid #2e2e2e;
}

.off {
  padding: 24px;
  border-bottom: 1px solid #2e2e2e;
  background: transparent;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
}

.off__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.off h3,
.off p {
  grid-column: 2;
}

.off:not(:nth-child(3n)) {
  border-right: 1px solid #2e2e2e
}

.off:hover {
  background: rgba(255, 255, 255, .012)
}

.off__icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.off__icon svg {
  width: 24px;
  height: 24px
}

.off h3 {
  font-size: .98rem;
  margin-bottom: 4px;
  font-weight: 600
}

.off p {
  font-size: .85rem;
  color: var(--dim);
  margin: 0;
  line-height: 1.5
}

/* =====================================================================
   COMPLIANCE
===================================================================== */
/* Compliance: two-column layout — standards grid left, ASIL pyramid right */
.compliance__layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid #2e2e2e;
  border-bottom: 1px solid #2e2e2e;
  align-self: start
}

.comp-grid .badge {
  border-bottom: 1px solid #2e2e2e
}

.comp-grid .badge:nth-last-child(-n+2) {
  border-bottom: none
}

.comp-grid .badge:nth-child(odd) {
  border-right: 1px solid #2e2e2e
}

.comp-grid .badge:last-child {
  border-right: none
}

.asil {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.asil__svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 460px;
  margin: 0 auto;
  overflow: visible
}

.asil__svg .asil-letter {
  font-family: var(--font-disp);
  font-size: 26px;
  fill: #F5F5F5;
  font-weight: 600;
  letter-spacing: -.01em;
}

.asil__svg .asil-axis {
  font-family: var(--font-sans);
  font-size: 9px;
  fill: var(--dim);
  letter-spacing: .22em;
  font-weight: 500;
}

.asil__svg .asil-anno text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  fill: var(--dim);
  letter-spacing: .04em;
}

.asil__caption {
  margin-top: 14px;
  color: var(--dim);
  font-size: .8rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  max-width: 32ch;
  align-self: center;
}

@media (max-width: 900px) {
  .compliance__layout {
    grid-template-columns: 1fr;
    gap: 48px
  }

  .comp-grid {
    grid-template-columns: 1fr 1fr
  }
}

.badge {
  text-align: left;
  padding: 22px 20px;
  background: transparent;
  transition: background var(--t-med);
}

/* Right-border handled by .comp-grid .badge:nth-child(odd) — see compliance__layout */
.badge:hover {
  background: rgba(255, 255, 255, .012)
}

.badge__ring {
  width: auto;
  height: auto;
  border-radius: 0;
  margin: 0 0 18px;
  display: block;
  background: none;
  position: static;
}

.badge__ring::before {
  display: none
}

.badge__ring span,
.badge__ring strong {
  display: block;
  position: static;
  font-family: var(--font-disp);
  letter-spacing: -.01em;
}

.badge__ring span {
  font-size: .7rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: .22em;
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: 6px;
}

.badge__ring strong {
  font-size: 2rem;
  font-weight: 500;
  color: var(--white)
}

.badge h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 600
}

.badge p {
  color: var(--dim);
  font-size: .88rem;
  margin: 0;
  line-height: 1.5
}

.comp-support {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.comp-support li {
  padding: 0;
  border: none;
  background: none;
  border-top: 2px solid var(--accent);
  padding-top: 10px;
}

.comp-support span {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  font-size: .98rem;
}

.comp-support p {
  margin: 0;
  color: var(--dim);
  font-size: .88rem;
  line-height: 1.5
}

/* =====================================================================
   TRAINING
===================================================================== */
.train-wrap {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 24px;
  align-items: stretch
}

.train-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid #2e2e2e
}

.train {
  padding: 14px 0;
  border-bottom: 1px solid #2e2e2e;
  background: none;
  border: none;
  position: relative;
  padding-left: 18px;
}

.train:nth-child(odd) {
  padding-right: 18px;
  border-right: 1px solid #2e2e2e
}

.train:nth-child(even) {
  padding-left: 18px
}

.train:hover {
  background: rgba(255, 255, 255, .012)
}

.train h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 600
}

.train p {
  margin: 0;
  color: var(--dim);
  font-size: .88rem;
  line-height: 1.5
}

.train__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 22px;
  text-align: left;
  background: #1f1f1f;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
}

.bigstat {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(3.6rem, 5.5vw + 1rem, 6rem);
  line-height: .95;
  color: var(--white);
  letter-spacing: -.03em;
  margin: .4rem 0 1rem;
}

.bigstat span {
  color: var(--accent)
}

/* =====================================================================
   CLIENTS — continuous marquee (logos to be added later)
===================================================================== */
.logos-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #2e2e2e;
  border-bottom: 1px solid #2e2e2e;
  padding: 6px 0;
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.logos__track {
  display: flex;
  width: max-content;
  animation: logos-scroll 45s linear infinite;
  will-change: transform;
}

.logos-marquee:hover .logos__track {
  animation-play-state: paused;
}

.logos {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex-shrink: 0;
}

.logos li {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 40px;
  white-space: nowrap;
  font-family: var(--font-disp);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -.005em;
  color: var(--muted);
  transition: color var(--t-med);
}

.logos li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .65;
  transition: transform var(--t-med), opacity var(--t-med);
}

.logos li:hover {
  color: var(--white);
}

.logos li:hover::before {
  opacity: 1;
  transform: scale(1.4);
}

/* Items move toward the right; second (duplicate) list keeps the loop seamless. */
@keyframes logos-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .logos__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logos__track > .logos[aria-hidden="true"] {
    display: none;
  }
  .logos {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .logos li {
    padding: 16px 24px;
    font-size: 1rem;
  }
  .logos__track {
    animation-duration: 32s;
  }
}

/* =====================================================================
   CASE STUDIES
===================================================================== */
/* Case studies: editorial-essay shape */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid #2e2e2e
}

.case {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  background: transparent;
  position: relative;
}

.case:not(:last-child) {
  border-right: 1px solid #2e2e2e
}

.case:hover {
  background: rgba(255, 255, 255, .012)
}

.case__image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #2e2e2e;
  background: var(--bg-1);
}

.case__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(40%) contrast(1.05);
  transition: transform var(--t-slow), filter var(--t-med);
}

.case:hover .case__img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.05);
}

.case__head {
  margin-bottom: 14px
}

.case__tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}

.case__head h3 {
  font-family: var(--font-disp);
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.01em
}

.case__body {
  margin: 0 0 24px;
  display: grid;
  gap: 18px
}

.case__body div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: none;
  border: none
}

.case__body dt {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent)
}

.case__body dd {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55
}

.case__metric {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #2e2e2e
}

.case__bar {
  display: none
}

.case__metric p {
  margin: 0;
  font-size: .85rem;
  color: var(--dim)
}

.case__metric strong {
  color: var(--white);
  font-family: var(--font-disp);
  font-size: 1.8rem;
  margin-right: 10px;
  font-weight: 500;
  letter-spacing: -.02em
}

.case__metric p {
  display: flex;
  align-items: baseline;
  gap: 8px
}

/* =====================================================================
   LEADERSHIP
===================================================================== */
.leader {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  padding: 0;
  background: none;
  border: none;
  border-top: 1px solid #2e2e2e;
  padding-top: 24px;
}

.leader::before {
  display: none
}

.leader__media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #222222
}

.leader__media svg {
  width: 100%;
  height: auto;
  display: block
}

.leader__plate {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  background: rgba(26, 26, 26, .7);
  padding: .35rem .55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .06);
}

.leader__body h3 {
  font-family: var(--font-disp);
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem);
  margin: 0 0 .4rem;
  font-weight: 600;
  letter-spacing: -.015em
}

.leader__lede {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.5
}

/* Editorial pull-quote */
.leader__quote {
  margin: 0 0 18px;
  padding: 14px 0 14px 24px;
  border-left: 2px solid var(--accent);
  position: relative;
}

.leader__quote p {
  font-family: var(--font-disp);
  font-size: clamp(1.05rem, .7vw + .9rem, 1.3rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--white);
  margin: 0 0 10px;
  letter-spacing: -.01em;
  max-width: 48ch;
}

.leader__quote footer {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
}

.leader__quote-role {
  display: block;
  margin-top: 4px;
  color: #6e6964;
  letter-spacing: .08em;
  font-size: .7rem;
}

.leader__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.leader__cols h4 {
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 500
}

.leader__cols .bullets {
  gap: .25rem;
}

.leader__cols .bullets li {
  font-size: .92rem;
  line-height: 1.4;
}

.leader__chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 0
}

.leader__chips span {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--dim);
  padding: .4rem 0;
  margin-right: 18px;
  border: none;
  background: none;
}

.leader__chips span:not(:last-child)::after {
  content: "·";
  margin-left: 18px;
  color: #4a4a4a
}

/* =====================================================================
   CONTACT
===================================================================== */
.contact {
  position: relative;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(192, 57, 43, .12), transparent 60%),
    linear-gradient(180deg, rgba(44, 44, 44, .35), rgba(26, 26, 26, .55));
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: start
}

.contact__form {
  padding: 22px
}

.contact__form h3 {
  font-size: 1.1rem;
  margin-bottom: 14px
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px
}

.field>span {
  font-family: var(--font-disp);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}

.field>span em {
  color: var(--accent);
  font-style: normal;
  margin-left: 2px
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--white);
  background: rgba(26, 26, 26, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: .75rem .9rem;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  background-color: rgba(26, 26, 26, .55);
  padding-right: 2.4rem;
}

.field select option {
  background: #222222;
  color: var(--white)
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a8884
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(26, 26, 26, .85);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, .15);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .12);
}

.field__error {
  color: #fca5a5;
  font-size: .8rem;
  margin-top: 2px
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.form-status {
  margin: 14px 0 0;
  min-height: 1.4em;
  font-size: .92rem;
}

.form-status.is-ok {
  color: #86efac
}

.form-status.is-err {
  color: #fca5a5
}

.form-status.is-busy {
  color: var(--accent)
}

.form-fineprint {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: .8rem;
}

.contact__side {
  display: flex;
  flex-direction: column;
  gap: 18px
}

.contact__side .glass {
  padding: 22px
}

.contact__side h3 {
  font-size: .85rem;
  font-family: var(--font-disp);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.contact__list {
  display: grid;
  gap: 14px
}

.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.contact__label {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

.contact__list a {
  color: var(--white);
  font-family: var(--font-disp);
  font-weight: 500;
  transition: color var(--t-fast);
}

.contact__list a:hover {
  color: var(--accent)
}

.contact__offices ul {
  display: grid;
  gap: 10px
}

.contact__offices li {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05)
}

.contact__offices strong {
  color: var(--white);
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: .95rem
}

.contact__offices span {
  color: var(--dim);
  font-size: .82rem
}

.contact__sla .eyebrow {
  margin-bottom: 10px
}

.contact__sla p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem
}

.contact__sla strong {
  color: var(--white)
}

/* =====================================================================
   FOOTER — editorial
===================================================================== */
.footer {
  padding: 40px 0 20px;
  background: var(--bg-0);
  border-top: 1px solid #2e2e2e;
}

/* Large editorial manifesto across the top of the footer */
.footer__manifesto {
  border-bottom: 1px solid #2e2e2e;
  padding-bottom: 28px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: end;
}

.footer__motto {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(1.8rem, 2.6vw + .8rem, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--white);
  margin: 0;
  max-width: 18ch;
}

.footer__motto em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400
}

.footer__about {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 46ch;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__brand .nav__brand {
  margin-bottom: 24px
}

.footer__spec {
  display: grid;
  gap: 8px;
  margin: 0
}

.footer__spec div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: baseline
}

.footer__spec dt {
  font-family: var(--font-sans);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin: 0;
}

.footer__spec dd {
  font-family: var(--font-sans);
  font-size: .86rem;
  color: var(--muted);
  margin: 0;
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}

.footer ul li {
  margin-bottom: .65rem
}

.footer ul a {
  color: var(--muted);
  font-size: .92rem;
  transition: color var(--t-fast);
  position: relative;
  padding-left: 0;
}

.footer ul a:hover {
  color: var(--accent)
}

.footer__offices li {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  margin-bottom: 14px;
  gap: 2px
}

.footer__offices strong {
  font-family: var(--font-disp);
  font-weight: 500;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: -.005em
}

.footer__offices span {
  color: var(--dim);
  font-size: .76rem;
  font-family: var(--font-sans);
  letter-spacing: .04em;
  font-feature-settings: "tnum";
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #2e2e2e;
  color: var(--dim);
  font-size: .82rem;
}

.footer__copy {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-family: var(--font-sans);
}

.footer__sep {
  color: #4a4a4a
}

.footer__rev {
  font-family: var(--font-disp);
  font-style: italic;
  color: var(--accent);
  letter-spacing: .04em;
  font-size: .78rem;
}

.footer__social {
  display: flex;
  gap: 0;
  align-items: center
}

.footer__social li {
  margin: 0
}

.footer__social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  background: none;
  border: none;
  border-left: 1px solid #2e2e2e;
  transition: color var(--t-fast);
}

.footer__social li:last-child a {
  border-right: 1px solid #2e2e2e
}

.footer__social a:hover {
  color: var(--accent)
}

/* =====================================================================
   RESPONSIVE
===================================================================== */
/* =====================================================================
   RESPONSIVE — universal guards
===================================================================== */
/* Hard guard against any element creating horizontal scroll on phones */
html,
body {
  overflow-x: hidden
}

/* Inline SVGs everywhere shouldn't overflow their wrappers */
svg {
  max-width: 100%
}

/* Tables, pre, images — opt-in shrink */
img,
video,
iframe,
table {
  max-width: 100%
}

@media (max-width: 1280px) {

  /* Compact the hero on smaller laptops so stats stay in view */
  .hero {
    padding: 88px 0 28px;
  }

  .hero__inner {
    gap: 32px
  }

  .hero__img {
    max-height: 440px;
  }

  .hero__title {
    margin-bottom: 20px;
  }

  .hero__kicker {
    margin-bottom: 22px;
  }

  .hero__inner .hero__stats {
    margin-top: 28px;
  }

  .hero__stats {
    margin-top: 28px;
    padding-top: 14px;
  }
}

/* Short laptop screens (14"/15" at 1366x768, scaled 1080p, etc.) — */
/* compact hero vertically so the full first-fold renders in view.   */
@media (max-height: 820px) and (min-width: 981px) {
  .hero {
    padding: 84px 0 22px;
    min-height: auto;
  }

  .hero__inner {
    gap: 28px;
  }

  .hero__img {
    max-height: 360px;
  }

  .hero__kicker {
    margin-bottom: 16px;
  }

  .hero__title {
    margin-bottom: 18px;
  }

  .hero__cta {
    margin-top: 18px;
  }

  .hero__inner .hero__stats {
    margin-top: 22px;
  }

  .hero__stats {
    margin-top: 22px;
    padding-top: 12px;
    gap: 18px;
  }

  .stat__num {
    font-size: clamp(1.7rem, 1.8vw + .5rem, 2.3rem);
  }
}

@media (max-width: 1180px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .off-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width: 1024px) {
  .nav__links {
    display: none
  }

  .nav__cta {
    display: none
  }

  .nav__toggle {
    display: inline-flex
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .presence__wrap {
    grid-template-columns: 1fr
  }

  .svc-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .comp-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .comp-support {
    grid-template-columns: repeat(2, 1fr)
  }

  .train-wrap {
    grid-template-columns: 1fr
  }

  .case-grid {
    grid-template-columns: 1fr 1fr
  }

  /* Case-grid was 3-col → 2-col. Override the :not(:last-child) border rule
     which now puts a right border on case #2 pointing into empty space. */
  .case:not(:last-child) {
    border-right: none
  }

  .case:nth-child(odd) {
    border-right: 1px solid #2e2e2e
  }

  .case:nth-child(n+3) {
    border-top: 1px solid #2e2e2e
  }

  /* Offerings 3-col → still 3-col at 1180, but on tablet sub-1024 needs care */
  .off-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .off:not(:nth-child(3n)) {
    border-right: none
  }

  .off:nth-child(odd) {
    border-right: 1px solid #2e2e2e
  }

  .leader {
    grid-template-columns: 220px 1fr;
    padding: 28px
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px
  }

  .footer__manifesto {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start
  }

  .life {
    grid-template-columns: 1fr;
    gap: 14px
  }

  .life__rail {
    display: none
  }
}

@media (max-width: 980px) {

  /* Hero stacks: text first, diagram second, stats last */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px
  }

  .hero__diagram {
    grid-column: 1;
    grid-row: 2;
    padding-top: 0
  }

  .hero__svg {
    max-height: 480px
  }

  .hero__inner .hero__stats {
    grid-row: 3;
    margin-top: 48px
  }

  /* Iso ECU would overlap the stacked stats — hide; page grid keeps 3D feel */
  .hero__iso {
    display: none
  }
}

@media (max-width: 600px) {

  /* Below ~600px the micro-annotations inside the blueprint render <6px and
     become unreadable noise. Hide them and bump the remaining labels so the
     diagram still reads as an engineering drawing. */
  .hero__svg .bp-tag {
    display: none
  }

  .hero__svg .bp-legend {
    display: none
  }

  .hero__svg .bp-meta {
    display: none
  }

  .hero__svg .bp-title {
    font-size: 13px;
    letter-spacing: .18em
  }

  .hero__svg .bp-num {
    font-size: 14px
  }

  .hero__svg .bp-vcu {
    font-size: 13px
  }

  .hero__diagram-caption {
    text-align: left
  }
}

@media (max-width: 760px) {

  /* Tight mobile container padding — was eating ~1cm each side on phones */
  .container {
    padding: 0 14px
  }

  .nav .nav__inner.container {
    padding: 0 14px
  }

  .nav__mobile {
    padding: 16px 14px 22px
  }

  .hero {
    padding-top: 120px
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px
  }

  .about__cards {
    grid-template-columns: 1fr
  }

  .industries__grid {
    grid-template-columns: 1fr 1fr
  }

  .cap-grid {
    grid-template-columns: 1fr 1fr
  }

  .svc-grid {
    grid-template-columns: 1fr
  }

  .off-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .comp-grid {
    grid-template-columns: 1fr 1fr
  }

  .comp-support {
    grid-template-columns: 1fr
  }

  .train-grid {
    grid-template-columns: 1fr
  }

  .case-grid {
    grid-template-columns: 1fr
  }

  .leader {
    grid-template-columns: 1fr;
    padding: 24px
  }

  .leader__cols {
    grid-template-columns: 1fr
  }

  .contact__form {
    padding: 24px
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr
  }

  .footer__bottom {
    flex-direction: column;
    gap: 14px
  }
}

@media (max-width: 760px) {

  /* Phone-sized maps: persistent tags collide; reveal on tap/hover instead. */
  .pin__tag {
    opacity: 0;
    transition: opacity var(--t-fast)
  }

  .pin:hover .pin__tag,
  .pin:focus .pin__tag,
  .pin:active .pin__tag {
    opacity: 1
  }

  .presence__legend {
    gap: 14px
  }

  .leg-item--meta {
    margin-left: 0;
    width: 100%
  }

  /* Touch targets — bump everything tappable to ≥44px (WCAG AAA) */
  .btn {
    --bh: 48px;
    padding: 0 1.5rem;
    font-size: .95rem
  }

  .nav__mobile a {
    padding: 1rem 0;
    font-size: 1rem
  }

  .nav__toggle {
    width: 48px;
    height: 48px
  }

  .footer ul a {
    display: inline-block;
    padding: .35rem 0;
    min-height: 32px
  }

  .footer__social a {
    width: 44px;
    height: 44px
  }

  .field input,
  .field select,
  .field textarea {
    padding: .95rem 1rem;
    font-size: 1rem
  }

  .field>span {
    font-size: .82rem
  }
}

@media (max-width: 760px) {
  .nav .nav__inner.container {
    padding: 0 14px
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px
  }

  .nav .nav__inner.container {
    padding: 0 12px
  }

  .industries__grid {
    grid-template-columns: 1fr
  }

  .cap-grid {
    grid-template-columns: 1fr
  }

  .off-grid {
    grid-template-columns: 1fr
  }

  .comp-grid {
    grid-template-columns: 1fr
  }

  .footer__grid {
    grid-template-columns: 1fr
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px
  }

  .btn {
    padding: 0 1.1rem;
    font-size: .9rem
  }

  .presence__markets-list {
    grid-template-columns: 1fr
  }

  /* 1-column: drop every column-divider border-right that was added by nth-child rules.
     (cap-grid no longer needs this — it uses gap-as-border now and auto-adapts.) */
  .off,
  .off:nth-child(odd),
  .case,
  .case:nth-child(odd),
  .comp-grid .badge,
  .comp-grid .badge:nth-child(odd),
  .train,
  .train:nth-child(odd) {
    border-right: none
  }

  /* Also normalise train padding which was column-aware */
  .train:nth-child(odd),
  .train:nth-child(even) {
    padding-left: 20px;
    padding-right: 0
  }

  /* Section header tightens on phones */
  .section__head {
    margin-bottom: 20px;
    padding-bottom: 14px
  }

  .section__num {
    font-size: 1.2rem
  }

  /* Hero title needs more room at this width */
  .hero__title {
    max-width: none;
    font-size: clamp(2.1rem, 9vw, 2.8rem)
  }

  .hero__sub {
    font-size: 1rem
  }

  .hero__kicker {
    margin-bottom: 24px
  }

  /* Footer copy stacks cleanly */
  .footer__copy {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start
  }

  .footer__sep {
    display: none
  }

  /* Pull quote scales down */
  .leader__quote {
    padding-left: 18px
  }

  /* Train cards: same border cleanup, plus left-pad reset */
  .train {
    padding-top: 20px;
    padding-bottom: 20px
  }
}

@media (max-width: 360px) {

  /* Very small phones — squeeze further */
  .container {
    padding: 0 10px
  }

  .nav .nav__inner.container {
    padding: 0 10px
  }

  .hero {
    padding-top: 88px;
    padding-bottom: 40px
  }

  .hero__title {
    font-size: 2rem
  }

  .stat__num {
    font-size: 1.9rem
  }

  .section__title {
    font-size: 1.6rem
  }

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

  .hero__cta .btn {
    width: 100%
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important
  }

  .reveal {
    opacity: 1;
    transform: none
  }

  .hero__canvas {
    display: none
  }

  .pin__pulse {
    display: none
  }

  .connections path {
    animation: none;
    opacity: .4
  }
}

/* =====================================================================
   PERFORMANCE — initial paint cost
   content-visibility lets the browser skip layout/paint of off-screen
   sections until the user nears them. Massive first-paint win on
   low-end devices; gracefully ignored where unsupported.
===================================================================== */
.section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

/* Don't defer the hero (above the fold), the footer, or the contact
   section (jumped to from every primary CTA on the page). */
.hero,
.footer,
.contact {
  content-visibility: visible
}

/* =====================================================================
   LOW-POWER MODE
   Triggered by JS (saveData, low deviceMemory/CPU, 2g, etc).
   Strips out the expensive bits while keeping the design language.
===================================================================== */
html.low-power .hero__canvas {
  display: none
}

html.low-power .hero__glow {
  animation: none;
  filter: blur(40px);
  opacity: .35
}

html.low-power .hero__grid {
  background-size: 60px 60px;
  opacity: .6
}

html.low-power body::before {
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(192, 57, 43, .08), transparent 60%),
    var(--bg-0);
}

html.low-power body::after {
  display: none
}

html.low-power .glass,
html.low-power .nav__mobile {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: linear-gradient(180deg, rgba(44, 44, 44, .92), rgba(34, 34, 34, .92));
}

html.low-power .pin__pulse {
  display: none
}

html.low-power .connections path {
  animation: none;
  opacity: .4
}

html.low-power .badge__ring {
  /* conic-gradient ring is fillrate-heavy — flatten it */
  background: radial-gradient(circle at center, rgba(192, 57, 43, .18), rgba(192, 57, 43, .04) 70%);
}

html.low-power .badge__ring::before {
  inset: 3px
}

html.low-power .svc::before {
  display: none
}

html.low-power .leader::before {
  display: none
}

html.low-power .hero__scroll span {
  animation: none;
  opacity: .6
}

html.low-power {
  scroll-behavior: auto
}

/* Cheaper hover shadows — keep the lift, drop the glow blur */
html.low-power .glass:hover,
html.low-power .cap:hover,
html.low-power .svc:hover,
html.low-power .off:hover,
html.low-power .badge:hover,
html.low-power .train:hover,
html.low-power .case:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

/* Containment hints help the browser isolate paint regions on every device,
   not just low-power — cheap and safe. */
.glass,
.cap,
.svc,
.off,
.badge,
.train,
.case,
.ind-card,
.logos li {
  contain: layout paint;
}

/* =====================================================================
   HERO DIAGRAM IMAGE  (.hero__img)
   Replaces the prior inline SVG schematic with the rendered diagram.
   Inherits .hero__diagram grid placement; sized to match prior SVG.
===================================================================== */
.hero__img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: contain;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

/* =====================================================================
   PRELOADER  —  brand reveal on load / reload
   Hard 1.5s total: letters in (≤0.85s), bar fills (≤1.2s), fade (1.2–1.5s).
   Pure CSS handles everything; JS is just an early-dismiss optimization.
   Gated behind html.js so no-JS users see content immediately.
===================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, #262626 0%, var(--bg-0) 65%);
  opacity: 1;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
  /* Self-dismissing animation — fires regardless of JS. Hits opacity 0
     and pointer-events:none at exactly 1.5s so the page is never trapped. */
  animation: preAutoHide .3s var(--ease) 1.2s forwards;
}
@keyframes preAutoHide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
html.js .preloader { display: flex; }

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
  padding: 0 1rem;
}

.preloader__wordmark {
  font-family: var(--font-disp);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  letter-spacing: -.01em;
  line-height: 1;
  display: inline-flex;
}

.preloader__letter {
  display: inline-block;
  color: var(--white);
  opacity: 0;
  transform: translateY(24px) scale(.94);
  filter: blur(5px);
  animation: preLetterIn .5s var(--ease) forwards;
  animation-delay: calc(var(--i) * 40ms);
  will-change: transform, opacity, filter;
}
.preloader__letter--strong { font-weight: 700; }
.preloader__letter--accent {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(192, 57, 43, .38);
}

@keyframes preLetterIn {
  0%   { opacity: 0; transform: translateY(24px) scale(.94); filter: blur(5px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.preloader__tagline {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  animation: preFadeUp .35s var(--ease) forwards;
  animation-delay: .5s;
}

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

.preloader__bar {
  position: relative;
  width: min(260px, 56vw);
  height: 2px;
  background: rgba(245, 245, 245, .08);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: preFadeUp .3s var(--ease) forwards;
  animation-delay: .55s;
}
.preloader__bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-1);
  box-shadow: 0 0 12px rgba(192, 57, 43, .45);
  animation: preBarFill .65s cubic-bezier(.4, 0, .2, 1) forwards;
  animation-delay: .6s;
}
@keyframes preBarFill {
  from { width: 0% }
  to   { width: 100% }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__letter,
  .preloader__tagline,
  .preloader__bar,
  .preloader__bar > span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .preloader { animation: preAutoHide .2s linear .4s forwards; }
}
