/* FRONT LINE Ltd — Redesign 2026
 * Type: Geist (UI) + Instrument Serif (editorial accents) + Geist Mono (labels)
 * Color: Deep Navy / Steel Blue / Sky / luminous cyan accent
 */

:root {
  --navy: #0A1F3D;
  --navy-2: #102a4f;
  --steel: #2C5F8D;
  --sky: #7FB3D5;
  --sky-soft: #C9DEEC;
  --ink: #0B1726;
  --ink-2: #2A3B52;
  --muted: #6B7B90;
  --line: #E3E8EF;
  --line-2: #D2DBE5;
  --bg: #F6F8FB;
  --paper: #FFFFFF;
  --warm: #F2EEE6;
  --accent: oklch(0.78 0.12 230);
  --accent-ink: oklch(0.42 0.12 230);
  --shadow-sm: 0 1px 2px rgba(10, 31, 61, 0.06), 0 1px 1px rgba(10, 31, 61, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(10, 31, 61, 0.16), 0 2px 6px rgba(10, 31, 61, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(10, 31, 61, 0.28);
  /* Motion: decisive start, long soft settle (quint-out) / symmetric in-out */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

.serif { font-family: 'Instrument Serif', 'Noto Serif Display', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; }

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

/* -------- Loading splash -------- */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 32px;
  transition: opacity 0.6s ease 0.2s, visibility 0.6s ease 0.2s;
}
.splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-mark { width: 64px; height: 64px; position: relative; }
.splash-mark svg { width: 100%; height: 100%; }
/* Splash content drifts up and out as the overlay fades */
.splash-mark, .splash-bar, .splash-text { transition: transform 0.5s var(--ease-io), opacity 0.4s ease; }
.splash.done .splash-mark, .splash.done .splash-bar, .splash.done .splash-text { transform: translateY(-12px); opacity: 0; }
.splash-mark { animation: fl-splash-in 0.7s var(--ease-out) backwards; }
.splash-bar  { animation: fl-splash-in 0.7s var(--ease-out) 0.08s backwards; }
.splash-text { animation: fl-splash-in 0.7s var(--ease-out) 0.16s backwards; }
@keyframes fl-splash-in { from { opacity: 0; transform: translateY(14px); } }
.splash-bar {
  width: 220px; height: 1px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden;
}
.splash-bar::after {
  content: ''; position: absolute; inset: 0; background: var(--sky);
  transform: translateX(-100%); animation: load 1.6s var(--ease-io) forwards;
}
@keyframes load { to { transform: translateX(0); } }
.splash-text { font-size: 11px; letter-spacing: 0.2em; color: rgba(255,255,255,0.5); text-transform: uppercase; }

/* -------- Top nav -------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 36px;
  padding: 18px 40px;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: blur(14px); border-bottom-color: var(--line); padding: 12px 40px; }
.nav.dark { color: white; }
.nav.dark.scrolled { background: rgba(10, 31, 61, 0.92); border-bottom-color: rgba(255,255,255,0.08); }

.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-mark { width: 32px; height: 32px; }
.brand-logo { height: 56px; width: auto; display: block; transition: opacity 0.2s; }
.brand-logo.light { display: none; }
.nav.dark:not(.scrolled) .brand-logo.dark { display: none; }
.nav.dark:not(.scrolled) .brand-logo.light { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .l1 { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.brand-text .l2 { font-size: 10px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.nav.dark:not(.scrolled) .brand-text .l2 { color: rgba(255,255,255,0.6); }

.nav-links { display: flex; align-items: center; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-right { margin-left: auto; }
.nav-link {
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  position: relative; transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(10,31,61,0.06); }
.nav.dark:not(.scrolled) .nav-link:hover { background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--accent-ink); }
.nav.dark:not(.scrolled) .nav-link.active { color: var(--sky); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(10,31,61,0.05); border-radius: 999px; padding: 3px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
}
.nav.dark:not(.scrolled) .lang-toggle { background: rgba(255,255,255,0.08); }
.lang-btn {
  padding: 5px 11px; border-radius: 999px; color: var(--muted);
  transition: all 0.2s;
}
.lang-btn.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.nav.dark:not(.scrolled) .lang-btn { color: rgba(255,255,255,0.6); }
.nav.dark:not(.scrolled) .lang-btn.active { background: var(--sky); color: var(--navy); }

.cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 18px; border-radius: 999px;
  background: var(--navy); color: white;
  font-size: 13px; font-weight: 500;
  transition: transform 0.35s var(--ease-out), background 0.25s ease;
}
.cta-pill:hover { background: var(--steel); transform: translateY(-1px); }
.cta-pill.outline { background: transparent; border: 1px solid currentColor; color: inherit; }
.cta-pill.outline:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.cta-pill .arrow { width: 14px; height: 14px; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 4px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--steel); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-2); background: white; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-sky:hover { background: var(--sky-soft); }

/* -------- Layout primitives -------- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 24px;
}
.section-eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }

/* -------- HERO -------- */
.hero {
  position: relative;
  /* Default the hero to the "90% browser-zoom" look: shrink the whole
     composition (headline, globe, rail, readout, stats) ~10% uniformly.
     min-height is divided by the same factor so the section still fills
     the viewport after zoom instead of leaving a gap below it. */
  zoom: 0.9;
  min-height: calc(100vh / 0.9);
  background: #061634;
  color: white;
  overflow: hidden;
  padding: 140px 40px 0;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
}
.hero-anim { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-readout {
  position: absolute; top: 110px; right: 40px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 10px; letter-spacing: 0.16em;
  color: rgba(207,230,245,0.7);
  z-index: 1;
}
.hero-readout-line { display: flex; gap: 10px; }
.hero-readout-dim { color: rgba(127,179,213,0.45); }
.hero-readout-tel { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(127,179,213,0.35); padding-bottom: 1px; transition: border-color 160ms ease, color 160ms ease; }
.hero-readout-tel:hover { color: rgba(255,255,255,0.95); border-bottom-color: rgba(127,179,213,0.7); }

.hero-waves {
  position: absolute; bottom: 0; left: 0; right: 0;
  width: 100%; height: 120px; z-index: 1;
  pointer-events: none;
}
.hero-wave-1 { animation: hero-wave-shift 14s ease-in-out infinite; transform-origin: center; }
.hero-wave-2 { animation: hero-wave-shift 18s ease-in-out infinite reverse; transform-origin: center; }
.hero-wave-3 { animation: hero-wave-shift 22s ease-in-out infinite; transform-origin: center; }
@keyframes hero-wave-shift {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(-30px); }
}
.hero-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; width: 100%; }
.hero-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 80px; padding-top: 24px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}
/* On desktop the vessel-desk indicator lives in .hero-readout (under TEL).
   It's restored here on tablet/phone where .hero-readout is hidden. */
.hero-top .live { display: none; align-items: center; gap: 8px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 12px #4ADE80; animation: pulse 2s ease infinite; }
.hero-readout-live {
  align-items: center; gap: 7px;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(127,179,213,0.18);
  text-transform: uppercase;
  color: rgba(207,230,245,0.85);
}
.hero-readout-live .live-dot { width: 5px; height: 5px; box-shadow: 0 0 10px #4ADE80; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero h1 {
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 18ch;
  margin-bottom: 32px;
}
.hero h1 .serif { font-style: italic; color: var(--sky); }
.hero p.lede {
  font-size: 19px; line-height: 1.55; max-width: 52ch; color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
}
.hero-content { padding-right: 220px; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { background: var(--sky-soft); }
.btn-ghost-dark { color: white; border: 1px solid rgba(255,255,255,0.2); background: transparent; }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }

.hero-meta {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 40px;
  margin: 80px -40px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-item .num { font-size: 32px; font-weight: 400; letter-spacing: -0.02em; }
.meta-item .num .serif { color: var(--sky); }
.meta-item .lab { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* Hero rail of services */
.hero-rail {
  position: absolute; top: 50%; right: 40px; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0;
  z-index: 2;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.rail-item {
  padding: 14px 0 14px 18px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: relative; transition: color 0.3s, padding 0.3s;
  cursor: pointer;
}
.rail-item::before {
  content: ''; position: absolute; left: -1px; top: 50%; transform: translateY(-50%);
  width: 0; height: 1px; background: var(--sky); transition: width 0.3s;
}
.rail-item:hover, .rail-item.active { color: white; padding-left: 28px; }
.rail-item:hover::before, .rail-item.active::before { width: 18px; }

/* Connect to Portal — sits under the hero rail (future use) */
.rail-portal {
  margin-top: 14px;
  margin-left: -1px;
  padding: 11px 14px 11px 16px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.78); text-decoration: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.rail-portal:hover {
  color: white;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.4);
}
.rail-portal-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 3px rgba(127,179,213,0.18);
  flex: none;
}
.rail-portal-label { white-space: nowrap; }
.rail-portal svg { opacity: 0.6; transition: transform 0.2s, opacity 0.2s; }
.rail-portal:hover svg { opacity: 1; transform: translateX(2px); }

/* Mobile twin of the portal button. The .hero-rail it normally lives in is
   hidden ≤1100px, so a second copy rides in .hero-actions on small screens.
   Hidden on desktop; the ≤1100px block (below) switches it on. */
.hero-portal-mobile { display: none; }

/* -------- Section headers -------- */
.section { padding: 120px 0; position: relative; }
.section-light { background: var(--paper); }
.section-bg { background: var(--bg); }
.section-warm { background: var(--warm); }
.section-dark { background: var(--navy); color: white; }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.section-head h2 .serif { font-style: italic; color: var(--steel); }
.section-head .desc { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.section-head .desc.right { justify-self: end; }

/* -------- Why FrontLine — value rows -------- */
.values { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.value {
  padding: 40px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  transition: background 0.3s;
}
.value:nth-child(3n) { border-right: none; }
.value:hover { background: var(--bg); }
.value--interactive { display: flex; flex-direction: column; }
.value--interactive p { flex: 1; }
.value-cta {
  margin-top: 24px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.value-cta:hover { background: var(--ink); color: var(--bg, #fff); }
.value-cta:hover svg { transform: translateX(2px); }
.value-cta svg { transition: transform 0.2s ease; }
.value-num { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--steel); margin-bottom: 32px; }
.value h3 { font-size: 24px; margin-bottom: 14px; letter-spacing: -0.015em; }
.value p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.value-glyph { width: 36px; height: 36px; margin-bottom: 24px; color: var(--navy); }

/* -------- Audience tabs -------- */
.audience {
  display: grid; grid-template-columns: 360px 1fr; gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 480px;
}
.aud-tabs { border-right: 1px solid var(--line); padding: 32px 0; background: var(--bg); }
.aud-tab {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  font-size: 18px; font-weight: 500; color: var(--muted);
  text-align: left; width: 100%;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}
.aud-tab:hover { color: var(--ink); background: rgba(255,255,255,0.5); }
.aud-tab.active { color: var(--navy); background: var(--paper); border-left-color: var(--navy); }
.aud-tab .arr { opacity: 0; transform: translateX(-6px); transition: all 0.2s; }
.aud-tab.active .arr { opacity: 1; transform: translateX(0); }
.aud-panel { padding: 56px 64px; display: block; }
.aud-panel-content { display: flex; flex-direction: column; }
.aud-panel h3 { font-size: 36px; margin-bottom: 20px; letter-spacing: -0.02em; }
.aud-panel .pitch { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-bottom: 32px; }
.aud-panel ul { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.aud-panel li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.aud-panel li::before { content: '→'; color: var(--steel); font-family: 'Geist Mono', 'JetBrains Mono', monospace; flex-shrink: 0; margin-top: 1px; }
.aud-panel .visual { background: var(--bg); border: 1px solid var(--line); position: relative; min-height: 320px; }

/* -------- Services grid -------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-card {
  padding: 36px 28px 32px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: background 0.35s ease, color 0.35s ease;
  cursor: pointer;
  min-height: 280px;
}
.svc-card:hover { background: var(--navy); color: white; }
.svc-icon { width: 40px; height: 40px; color: var(--steel); transition: color 0.3s; }
.svc-card:hover .svc-icon { color: var(--sky); }
.svc-card h3 { font-size: 20px; letter-spacing: -0.015em; }
.svc-card p { font-size: 14px; line-height: 1.55; color: var(--ink-2); transition: color 0.3s; }
.svc-card:hover p { color: rgba(255,255,255,0.75); }
.svc-num { position: absolute; top: 18px; right: 22px; font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--muted); transition: color 0.3s; }
.svc-card:hover .svc-num { color: rgba(255,255,255,0.5); }
.svc-arrow { margin-top: auto; font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); display: flex; align-items: center; gap: 8px; transition: color 0.3s, gap 0.3s; }
.svc-card:hover .svc-arrow { color: var(--sky); gap: 14px; }
.svc-sub { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--steel); font-weight: 400; text-transform: uppercase; }
.svc-card:hover .svc-sub { color: var(--sky); }
.svc-readmore { background: none; border: none; padding: 0; font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: gap 200ms ease, color 200ms ease; align-self: flex-start; margin-top: auto; }
.svc-readmore:hover { color: var(--sky); gap: 9px; }
.svc-card.is-open .svc-readmore { color: var(--sky); }
.svc-subs { list-style: none; padding: 0; margin: 4px 0 16px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.svc-subs li { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; line-height: 1.45; }
.svc-sub-t { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.svc-sub-p { font-size: 12.5px; color: var(--ink-2); }
.svc-card:hover .svc-subs { border-top-color: rgba(255,255,255,0.16); }
.svc-card:hover .svc-sub-t { color: var(--sky); }
.svc-card:hover .svc-sub-p { color: rgba(255,255,255,0.7); }

/* -------- Timeline (vertical workflow) -------- */
.timeline-flow {
  position: relative;
  max-width: 960px;
  margin: 8px auto 0;
}
.timeline-spine {
  position: absolute;
  top: 6px; bottom: 6px;
  left: 50%;
  width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent 0, var(--line-2) 6%, var(--line-2) 94%, transparent 100%);
}
.tl-item {
  position: relative;
  width: 50%;
  padding: 20px 46px;
}
.tl-item.tl-right { margin-left: 50%; }
.tl-item + .tl-item { margin-top: -40px; }
.tl-node {
  position: absolute;
  top: 40px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--steel);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line-2);
  z-index: 2;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.tl-item.tl-left  .tl-node { right: -8px; }
.tl-item.tl-right .tl-node { left: -8px; }
.tl-item:hover .tl-node {
  box-shadow: 0 0 0 6px rgba(44, 95, 141, 0.15);
  transform: scale(1.12);
}
.tl-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.25s ease;
}
.tl-item:hover .tl-card {
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.tl-card::before {
  content: '';
  position: absolute;
  top: 45px;
  width: 30px; height: 1px;
  background: var(--line-2);
}
.tl-item.tl-left  .tl-card::before { right: -30px; }
.tl-item.tl-right .tl-card::before { left: -30px; }
.timeline-year { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.18em; color: var(--steel); margin-bottom: 10px; }
.tl-card h4 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.tl-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* -------- Departments -------- */
.depts-section { background: var(--navy); color: white; }
.depts-section .section-eyebrow { color: var(--sky); }
.depts-section h2 .serif { color: var(--sky); }
.depts-section .desc.right { color: rgba(255,255,255,0.7); }
.depts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
}
.dept {
  position: relative;
  padding: 36px 32px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  min-height: 280px;
  display: flex; flex-direction: column;
  cursor: default;
  transition: background 0.35s ease;
  overflow: hidden;
}
.dept:hover { background: rgba(127, 179, 213, 0.08); }
.dept-num {
  font-size: 11px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}
.dept-icon { width: 44px; height: 44px; color: var(--sky); margin-bottom: 28px; transition: transform 0.5s var(--ease-out), color 0.3s; }
.dept-glyph { width: 100%; height: 100%; }
.dept:hover .dept-icon { transform: translateY(-4px); color: white; }
.dept-name {
  font-size: 22px; letter-spacing: -0.015em; font-weight: 500;
  margin-top: auto;
  transition: transform 0.5s var(--ease-out);
}
.dept:hover .dept-name { transform: translateY(-90px); }
.dept-desc {
  position: absolute; left: 32px; right: 32px; bottom: 32px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
  pointer-events: none;
}
.dept-desc p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.78); }
.dept:hover .dept-desc { opacity: 1; transform: translateY(0); }
.dept-corner {
  position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid; border-width: 0 18px 18px 0;
  border-color: transparent var(--sky) transparent transparent;
  opacity: 0; transition: opacity 0.3s ease;
}
.dept:hover .dept-corner { opacity: 1; }

@media (max-width: 1024px) {
  .depts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .depts { grid-template-columns: 1fr; }
  .dept { min-height: 220px; }
  .dept:hover .dept-name { transform: none; }
  .dept-desc { position: relative; left: 0; right: 0; bottom: 0; opacity: 1; transform: none; margin-top: 16px; }
}

/* -------- Network map -------- */
.network {
  background: var(--navy);
  color: white;
  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
}
.network .container { position: relative; z-index: 2; }
.network-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 72px; }
.network h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 400; }
.network h2 .serif { font-style: italic; color: var(--sky); }
.network .section-eyebrow { color: var(--sky); }
.network-stats { display: flex; gap: 56px; }
.network-stat .num { font-size: 48px; letter-spacing: -0.02em; }
.network-stat .num .serif { color: var(--sky); }
.network-stat .lab { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; color: rgba(255,255,255,0.55); margin-top: 4px; }

.map-wrap { position: relative; height: 540px; margin-top: 32px; }
.map-svg { width: 100%; height: 100%; }
.map-dot { fill: var(--sky); cursor: pointer; transition: r 0.3s, fill 0.3s; }
.map-dot:hover { fill: white; }
.map-pulse { fill: var(--sky); opacity: 0.4; transform-origin: center; animation: ping 2.4s ease infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(3); opacity: 0; } }
.map-tooltip {
  position: absolute; padding: 14px 18px; background: white; color: var(--ink);
  border-radius: 4px; box-shadow: var(--shadow-lg);
  font-size: 13px;
  pointer-events: none;
  opacity: 0; transition: opacity 0.2s;
  transform: translate(-50%, -120%);
  white-space: nowrap;
}
.map-tooltip.visible { opacity: 1; }
.map-tooltip strong { display: block; font-size: 14px; margin-bottom: 2px; letter-spacing: -0.01em; }
.map-tooltip .meta { color: var(--muted); font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }

.country-list {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  margin: 64px -40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.country {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: background 0.2s;
}
.country:last-child { border-right: none; }
.country:hover, .country.active { background: rgba(127,179,213,0.08); }
.country .flag { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--sky); margin-bottom: 8px; }
.country h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.country .city { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* -------- ESG / Compliance -------- */
.esg-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.esg-card {
  background: var(--paper);
  padding: 36px 32px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 320px;
}
.esg-card .badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 12px; background: var(--bg); border-radius: 4px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em;
  color: var(--steel);
}
.esg-card h3 { font-size: 22px; letter-spacing: -0.015em; }
.esg-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.esg-card .certs { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.cert-tag {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px;
  padding: 6px 10px; border: 1px solid var(--line-2);
  letter-spacing: 0.1em;
}

/* -------- Team -------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo {
  aspect-ratio: 4/5;
  background: repeating-linear-gradient(135deg, #d8e2ec 0 2px, #e3ebf3 2px 14px);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.team-photo .ph-label {
  position: absolute; top: 16px; left: 16px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.18em; color: var(--steel); text-transform: uppercase;
}
.team-photo .initials {
  font-family: 'Instrument Serif', 'Noto Serif Display', serif;
  font-size: 80px; color: var(--steel); opacity: 0.4;
  letter-spacing: -0.04em;
}
.team-info { padding: 22px 24px 26px; }
.team-info h4 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 4px; }
.team-info .role { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

/* -------- News -------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.45s var(--ease-out);
  overflow: hidden;
}
.news-card:hover { border-color: var(--steel); transform: translateY(-3px); }
.news-card .img {
  aspect-ratio: 16/10;
  background: repeating-linear-gradient(135deg, #d8e2ec 0 2px, #e3ebf3 2px 14px);
  position: relative;
}
.news-card .img .ph-label {
  position: absolute; bottom: 14px; left: 14px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.18em; color: var(--steel); text-transform: uppercase;
  background: rgba(255,255,255,0.7); padding: 4px 8px;
}
.news-card .body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card .meta { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; color: var(--steel); display: flex; gap: 12px; text-transform: uppercase; }
.news-card .meta .live-pill { color: #16a34a; }
.news-card h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 4px; }
.news-card.featured h3 { font-size: 26px; }
.news-card p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.news-card .read-more { margin-top: auto; padding-top: 16px; font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }

/* -------- Testimonials -------- */
.testimonials {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.testi {
  padding: 48px 48px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px;
}
.testi:nth-child(2n) { border-right: none; }
.testi:nth-last-child(-n+2) { border-bottom: none; }
.testi blockquote {
  font-family: 'Instrument Serif', 'Noto Serif Display', serif;
  font-size: 26px; line-height: 1.3;
  color: var(--ink); letter-spacing: -0.01em;
  font-weight: 400;
}
.testi blockquote::before { content: '"'; color: var(--steel); margin-right: 4px; }
.testi blockquote::after { content: '"'; color: var(--steel); }
.testi-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.testi-author { display: flex; flex-direction: column; gap: 2px; }
.testi-author strong { font-size: 14px; font-weight: 500; }
.testi-author .role { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.testi-date { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--steel); }

/* -------- Contact -------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--paper); border: 1px solid var(--line); }
.contact-form { padding: 56px 56px 48px; }
.contact-form h3 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 12px; font-weight: 400; }
.contact-form p { font-size: 15px; color: var(--ink-2); margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.form-field input, .form-field textarea, .form-field select {
  font-family: inherit; font-size: 15px;
  padding: 12px 0; border: none; border-bottom: 1px solid var(--line-2);
  background: transparent; color: var(--ink);
  transition: border-color 0.2s;
  outline: none; resize: none;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-bottom-color: var(--navy); }
.form-field.full { grid-column: span 2; }
.form-submit { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; }
.form-status { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--steel); }
.contact-map { background: var(--navy); color: white; padding: 56px 56px 48px; position: relative; overflow: hidden; }
.contact-map h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 24px; font-weight: 500; }
.contact-info { display: grid; gap: 24px; margin-bottom: 32px; }
.contact-row { display: flex; flex-direction: column; gap: 4px; }
.contact-row .lab { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; color: rgba(255,255,255,0.55); text-transform: uppercase; }
.contact-row .val { font-size: 15px; color: white; }
.contact-row a:hover { color: var(--sky); }
.mini-map {
  position: relative;
  height: 360px;
  background: linear-gradient(180deg, #0b2547 0%, #0A1F3D 100%);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.mini-map svg { width: 100%; height: 100%; }
.mini-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}
.mini-map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pin-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 8px rgba(127,179,213,0.2); animation: pulse 2s ease infinite; }
.pin-label { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: white; background: var(--steel); padding: 4px 8px; }

/* -------- Footer -------- */
footer {
  background: var(--navy);
  color: white;
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-brand .brand-text .l1 { font-size: 18px; }
.foot-brand .brand-text .l2 { color: rgba(255,255,255,0.6); }
.foot-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.65); margin: 24px 0; max-width: 38ch; }
.foot-social { display: flex; gap: 8px; }
.foot-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s; }
.foot-social a:hover { background: var(--sky); color: var(--navy); border-color: var(--sky); }
.foot-col h5 { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-bottom: 20px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-col li a { font-size: 14px; color: rgba(255,255,255,0.78); transition: color 0.2s; }
.foot-col li a:hover { color: var(--sky); }
.foot-bot { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.foot-bot-links { display: flex; gap: 24px; }
.foot-bot-links a:hover { color: white; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* -------- Quote / Mission line -------- */
.mission {
  padding: 140px 0; background: var(--paper);
  text-align: center;
}
.mission .container { max-width: 1080px; }
.mission p {
  font-family: 'Instrument Serif', 'Noto Serif Display', serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 400;
}
.mission p em { color: var(--steel); }
.mission .signature { margin-top: 40px; font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }

/* -------- Services teaser (replaces old mission line) -------- */
.mission-services {
  padding: 120px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mission-services--compact {
  padding: 100px 0;
  text-align: center;
}
.mission-services--compact .container { max-width: 820px; }
.mission-services--compact .section-eyebrow { justify-content: center; margin-bottom: 28px; }
.mission-services--compact .section-eyebrow::before { display: none; }
.mission-services-headline {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 24px;
}
.mission-services-headline .serif { font-style: italic; color: var(--steel); }
.mission-services-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 auto 36px;
}
.mission-services .section-head { margin-bottom: 48px; }
.mission-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
}
.mission-svc {
  background: white;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 120px;
  transition: background 0.2s;
}
.mission-svc:hover { background: var(--sky-soft, #f3f7fb); }
.mission-svc-num {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.mission-svc-t {
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.25;
}
.mission-services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.mission-services-note {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  max-width: 48ch;
  text-align: right;
}
@media (max-width: 900px) {
  .mission-services { padding: 80px 0; }
  .mission-services-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-services-cta { justify-content: flex-start; }
  .mission-services-note { text-align: left; }
}

/* Page wrappers (sub-pages) */
.page-hero {
  padding: 180px 0 80px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.03em; line-height: 1;
  font-weight: 400;
  max-width: 18ch;
  margin-bottom: 24px;
}
.page-hero h1 .serif { font-style: italic; color: var(--steel); }
.page-hero .lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }

.breadcrumb { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-bottom: 32px; }
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--navy); }

/* Page transitions */
.page { display: none; }
.page.active { display: block; animation: fl-page-in 0.55s var(--ease-out); }
@keyframes fl-page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .nav { padding: 14px 24px; }
  .container { padding: 0 24px; }
  .hero { padding: 130px 24px 60px; }
  .hero-meta { padding: 24px; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .values, .svc-grid { grid-template-columns: 1fr 1fr; }
  .audience { grid-template-columns: 1fr; }
  .aud-tabs { display: flex; overflow-x: auto; padding: 0; border-right: none; border-bottom: 1px solid var(--line); }
  .aud-tab { padding: 16px 20px; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .aud-tab.active { border-left: none; border-bottom-color: var(--navy); }
  .aud-panel { padding: 32px; grid-template-columns: 1fr; }
  .esg-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .testi { border-right: none; }
  .testi:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .testi:last-child { border-bottom: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .country-list { grid-template-columns: repeat(2, 1fr); margin: 48px 0 0; }
  .country { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links { display: none; }
  .hero-rail { display: none; }
  /* Rail is gone here, so reveal the portal twin in the hero actions instead. */
  .hero-portal-mobile { display: inline-flex; margin: 4px 0 0; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   Motion system — staggered reveals, hero entrance, panel swaps.
   Entrances are CSS animations with `backwards` fill (not transitions)
   so each card's own hover transition keeps working after it lands.
   `:where()` keeps specificity at .reveal level.
   ============================================================ */

@keyframes fl-reveal-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes fl-fade-in   { from { opacity: 0; } }
@keyframes fl-panel-in  { from { opacity: 0; transform: translateY(12px); } }

/* Grid/list reveals: the container stops moving as one slab — its direct
   children rise in sequence instead. Containers listed here only. */
.reveal:where(.section-head, .network-head, .netmap-head, .values, .svc-grid,
  .depts, .network-stats, .country-list, .esg-grid, .team-grid, .news-grid,
  .testimonials, .mission-services-grid, .certs-row, .policy-tabs,
  .contact-grid, .netmap-list, .nr-list) {
  opacity: 1; transform: none; transition: none;
}
.reveal:where(.section-head, .network-head, .netmap-head, .values, .svc-grid,
  .depts, .network-stats, .country-list, .esg-grid, .team-grid, .news-grid,
  .testimonials, .mission-services-grid, .certs-row, .policy-tabs,
  .contact-grid, .netmap-list, .nr-list):not(.in) > * {
  opacity: 0;
}
.reveal:where(.section-head, .network-head, .netmap-head, .values, .svc-grid,
  .depts, .network-stats, .country-list, .esg-grid, .team-grid, .news-grid,
  .testimonials, .mission-services-grid, .certs-row, .policy-tabs,
  .contact-grid, .netmap-list, .nr-list).in > * {
  animation: fl-reveal-up 0.75s var(--ease-out) backwards;
  animation-delay: var(--fl-stagger, 0ms);
}
/* --fl-stagger is inert on non-staggered reveal children (nothing reads it) */
.reveal.in > :nth-child(2) { --fl-stagger: 60ms; }
.reveal.in > :nth-child(3) { --fl-stagger: 120ms; }
.reveal.in > :nth-child(4) { --fl-stagger: 180ms; }
.reveal.in > :nth-child(5) { --fl-stagger: 240ms; }
.reveal.in > :nth-child(6) { --fl-stagger: 300ms; }
.reveal.in > :nth-child(7) { --fl-stagger: 360ms; }
.reveal.in > :nth-child(8) { --fl-stagger: 420ms; }
.reveal.in > :nth-child(n+9) { --fl-stagger: 480ms; }

/* Hero entrance — sequenced once the splash lifts (html.fl-splash-done set
   by Splash). Hero remounts on client-side nav, so the cascade replays. */
html:not(.fl-splash-done) :is(.hero-content > *, .hero-rail, .hero-meta, .hero-readout) { opacity: 0; }
html.fl-splash-done .hero-content > * { animation: fl-reveal-up 0.9s var(--ease-out) backwards; }
html.fl-splash-done .hero-content > .hero-top { animation-name: fl-fade-in; animation-duration: 1s; }
html.fl-splash-done .hero-content > h1 { animation-name: fl-hero-title; animation-duration: 1s; animation-delay: 0.1s; }
html.fl-splash-done .hero-content > .lede { animation-delay: 0.26s; }
html.fl-splash-done .hero-content > .hero-actions { animation-delay: 0.4s; }
html.fl-splash-done .hero-rail { animation: fl-rail-in 0.9s var(--ease-out) 0.5s backwards; }
html.fl-splash-done .hero-meta { animation: fl-reveal-up 0.9s var(--ease-out) 0.6s backwards; }
html.fl-splash-done .hero-readout { animation: fl-fade-in 1s ease 0.7s backwards; }
@keyframes fl-hero-title {
  from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fl-rail-in { from { opacity: 0; transform: translateX(24px); } }

/* Tab/accordion panel swaps (elements remount via React key) */
.aud-panel { animation: fl-panel-in 0.5s var(--ease-out); }
.svc-subs { animation: fl-panel-in 0.45s var(--ease-out); }
