/* ============================================================
   MBA Investment Management SA — styles.css v3
   Palantir × Geneva Private Bank — Futuristic / Cinematic
   ============================================================ */

/* === Custom Properties === */
:root {
  --navy:      #0A1628;
  --navy-mid:  #0D1B2A;
  --navy-card: #0F1F33;
  --navy-hi:   #122037;
  --crimson:   #C41E3A;
  --crimson-dk:#A31830;
  --offwhite:  #F0EDE6;
  --white:     #FFFFFF;
  --charcoal:  #111111;
  --muted:     rgba(240,237,230,0.45);
  --muted2:    rgba(240,237,230,0.2);
  --border:    rgba(240,237,230,0.07);
  --border-c:  rgba(196,30,58,0.3);

  --font-h: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'Inter', system-ui, sans-serif;

  --nav-h:  120px;
  --sp:     clamp(80px, 10vw, 140px);
  --cpx:    clamp(24px, 5vw, 80px);
  --cmax:   1300px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:   cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:    0.18s ease;
  --t-med:     0.32s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--navy);
  color: var(--offwhite);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* === Background Technical Grid === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(13,33,55,0.88) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,33,55,0.88) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0;
  animation: grid-reveal 1.8s ease 0.6s forwards;
}
@keyframes grid-reveal { to { opacity: 1; } }

/* === Grain Noise Texture === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* === Technical grid bg (optional overlay) === */
.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(240,237,230,0.018) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(240,237,230,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* === Typography === */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-h);
  font-weight: 400;
  line-height: 1.05;
  color: var(--offwhite);
}
h1 { font-size: clamp(3.2rem, 8vw, 7rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); letter-spacing: -0.01em; }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.5rem); }
p { line-height: 1.8; max-width: 66ch; }

/* Massive display */
.display-xl {
  font-family: var(--font-h);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--offwhite);
}

/* Tech label — [ SECTION NAME ] style */
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-b);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 24px;
}
.tech-tag::before { content: '['; opacity: 0.55; }
.tech-tag::after  { content: ']'; opacity: 0.55; }

/* Standard label */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 20px;
}
.label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--crimson);
  flex-shrink: 0;
}

/* Section draw-in line */
.s-line {
  height: 1px;
  background: var(--crimson);
  width: 0;
  margin-bottom: 18px;
  opacity: 0.65;
}

/* === Scroll Progress Bar === */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--crimson);
  z-index: 99999;
  transform-origin: left;
}

/* === Custom Cursor === */
#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(196,30,58,0.85);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  opacity: 0;
  background: transparent;
  transition: width 0.22s ease, height 0.22s ease, background 0.22s ease, border-color 0.22s ease, opacity 0.3s ease;
}
#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--crimson);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.15s ease;
}
/* Hover state controlled by JS via GSAP */

/* === Vertical Scroll Indicator === */
#sv-track {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 160px;
  width: 1px;
  background: rgba(196,30,58,0.15);
  z-index: 9990;
  pointer-events: none;
}
#sv-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: var(--crimson);
  transition: height 0.12s linear;
}
#sv-dot {
  position: absolute;
  left: -3.5px;
  top: -3.5px;
  width: 8px;
  height: 8px;
  background: var(--crimson);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(196,30,58,0.5);
  transition: top 0.12s linear;
}

/* === Split Curtain Panels === */
#c-l, #c-r {
  position: fixed;
  top: 0; bottom: 0;
  width: 50%;
  background: var(--navy);
  z-index: 99998;
  pointer-events: none;
}
#c-l { left: 0; }
#c-r { right: 0; }

/* === Geometric Background Canvas ===
   z-index:-1 keeps the drifting shapes BEHIND all content. The
   navy section/hero backgrounds below are made transparent so the
   canvas (which paints over the body's navy) shows through. */
#geo-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  animation: grid-reveal 2s ease 0.8s forwards;
}

/* === Page Overlay (hidden — curtain handled by JS-created #c-l/#c-r) === */
#page-overlay { display: none; }

/* === Container === */
.container {
  width: 100%;
  max-width: var(--cmax);
  margin: 0 auto;
  padding: 0 var(--cpx);
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t-med), border-bottom var(--t-med);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar__logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  /* White background is stripped to transparent at runtime by initLogo() */
}
.navbar__logo-text {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--offwhite);
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 44px;
}
.navbar__links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.6);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--t-fast);
  white-space: nowrap;
  word-spacing: 0.1em;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--crimson);
  transition: width var(--t-med);
}
.navbar__links a:hover { color: var(--offwhite); }
.navbar__links a:hover::after,
.navbar__links a.active::after { width: 100%; }
.navbar__links a.active { color: var(--crimson); }
.navbar__links a .char { display: inline-block; transition: transform 0.25s var(--ease-out); }

/* Hamburger */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.navbar__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--offwhite);
  transition: var(--t-med);
  transform-origin: center;
}
.navbar__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.navbar__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,22,40,0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s ease;
  opacity: 0;
}
.navbar__mobile.open { max-height: 360px; opacity: 1; }
.navbar__mobile a {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.7);
  padding: 20px var(--cpx);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast), background var(--t-fast);
}
.navbar__mobile a:last-child { border-bottom: none; }
.navbar__mobile a:hover,
.navbar__mobile a.active { color: var(--crimson); background: rgba(196,30,58,0.04); }

/* === Section Utility === */
.section { padding: var(--sp) 0; }
.section--navy    { background: transparent; }            /* reveals geo-canvas (same color as body) */
.section--mid     { background: rgba(13,27,42,0.55); }    /* translucent so shapes show through */
.section--card    { background: rgba(15,31,51,0.55); }
.section--dark    { background: var(--charcoal); }

/* === HERO — General === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: transparent;          /* let geo-canvas drift behind the hero */
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(60px, 8vw, 110px);
  width: 100%;
}
.hero__eyebrow {
  font-family: var(--font-b);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: var(--crimson);
  flex-shrink: 0;
}
.hero__heading {
  font-family: var(--font-h);
  font-size: clamp(4rem, 10vw, 9.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--offwhite);
  max-width: 22ch;
  margin-bottom: 36px;
}
.hero__heading em { font-style: italic; color: var(--crimson); }
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  line-height: 1.78;
  max-width: 52ch;
  margin-bottom: 56px;
}

/* Page hero (smaller) */
.hero--page {
  min-height: 60vh;
  align-items: flex-end;
}
.hero--page .hero__content { padding-bottom: clamp(48px, 6vw, 96px); }

/* === Glitch Effect === */
.glitch { position: relative; display: block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.glitch::before {
  color: var(--crimson);
  animation: glitch-a 0.85s steps(2) forwards;
}
.glitch::after {
  color: var(--navy-mid);
  animation: glitch-b 0.85s steps(2) forwards;
}
@keyframes glitch-a {
  0%  { clip-path:polygon(0 8%,100% 8%,100% 30%,0 30%); transform:translate(-5px,1px);opacity:1; }
  20% { clip-path:polygon(0 62%,100% 62%,100% 78%,0 78%); transform:translate(5px,-2px); }
  40% { clip-path:polygon(0 22%,100% 22%,100% 48%,0 48%); transform:translate(-3px,3px); }
  60% { clip-path:polygon(0 78%,100% 78%,100% 94%,0 94%); transform:translate(4px,-3px); }
  80% { opacity:0.4; }
  100%{ opacity:0; transform:translate(0,0); }
}
@keyframes glitch-b {
  0%  { clip-path:polygon(0 58%,100% 58%,100% 76%,0 76%); transform:translate(5px,-2px);opacity:1; }
  25% { clip-path:polygon(0 4%,100% 4%,100% 22%,0 22%); transform:translate(-5px,3px); }
  50% { clip-path:polygon(0 68%,100% 68%,100% 88%,0 88%); transform:translate(3px,-4px); }
  75% { clip-path:polygon(0 32%,100% 32%,100% 54%,0 54%); transform:translate(-4px,2px); }
  90% { opacity:0.3; }
  100%{ opacity:0; transform:translate(0,0); }
}

/* === CTA Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--crimson);
  color: var(--offwhite);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 48px;
  border: 1px solid var(--crimson);
  cursor: pointer;
  transition: background var(--t-fast), transform 0.24s var(--ease-out), box-shadow var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--crimson-dk);
  border-color: var(--crimson-dk);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(196,30,58,0.28);
}
.btn-primary svg { transition: transform var(--t-fast); }
.btn-primary:hover svg { transform: translateX(5px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  color: var(--crimson);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 17px 48px;
  border: 1px solid var(--crimson);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform 0.24s var(--ease-out);
  text-decoration: none;
}
.btn-outline:hover { background: var(--crimson); color: var(--offwhite); transform: translateY(-2px); }
.btn-outline svg { transition: transform var(--t-fast); }
.btn-outline:hover svg { transform: translateX(5px); }

/* === STATS — Raw numbers, no boxes === */
.stats-raw {
  display: flex;
  align-items: flex-end;
  gap: 0;
  background: var(--navy-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.stat-raw-item {
  flex: 1;
  padding: clamp(44px, 6vw, 88px) clamp(28px, 4vw, 56px);
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-raw-item:last-child { border-right: none; }
.stat-raw-num {
  font-family: var(--font-h);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 0.88;
  color: var(--offwhite);
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 14px;
}
.stat-raw-line {
  width: 0;
  height: 2px;
  background: var(--crimson);
  margin-bottom: 16px;
  transition: none;
}
.stat-raw-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-raw-suffix { font-size: 0.7em; opacity: 0.6; }

/* === INTRO — Asymmetric === */
.intro-asym {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 0;
  align-items: start;
}
.intro-asym-left {
  padding-right: 60px;
  border-right: 1px solid var(--border);
  position: relative;
}
.intro-asym-right {
  padding-left: 60px;
}
.intro-big-num {
  font-family: var(--font-h);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 300;
  color: rgba(240,237,230,0.04);
  line-height: 0.8;
  letter-spacing: -0.05em;
  position: absolute;
  top: -0.1em;
  left: -0.1em;
  pointer-events: none;
  user-select: none;
}
.intro-body-p {
  font-size: 1.04rem;
  line-height: 1.84;
  color: var(--muted);
}

/* === LEFT-BORDER CARDS (Portrait) === */
.lcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(240,237,230,0.04);
}
.lcard {
  background: var(--navy-card);
  border-left: 3px solid rgba(196,30,58,0.3);
  padding: 56px 36px;
  min-height: 440px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.32s ease, border-left-color 0.28s ease, border-left-width 0.28s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  will-change: transform;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.lcard:hover {
  background: var(--navy-hi);
  border-left-color: var(--crimson);
  border-left-width: 5px;
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35), 0 0 32px rgba(196,30,58,0.1);
}
.lcard__num {
  font-family: var(--font-h);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 300;
  color: rgba(240,237,230,0.04);
  line-height: 1;
  letter-spacing: -0.04em;
  position: absolute;
  top: -8px;
  right: 16px;
  pointer-events: none;
  user-select: none;
  transition: color 0.32s ease;
}
.lcard:hover .lcard__num { color: rgba(196,30,58,0.09); }
.lcard__icon { width: 40px; height: 40px; color: var(--crimson); margin-bottom: 32px; }
.lcard__title {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 500;
  color: var(--offwhite);
  margin-bottom: 16px;
  line-height: 1.2;
}
.lcard__text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: none;
  margin-bottom: 32px;
}
.lcard__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  transition: gap var(--t-fast);
}
.lcard:hover .lcard__link { gap: 18px; }

/* === SERVICE NUMBERED ROWS === */
.svc-list { border-top: 1px solid var(--border); }
.svc-row {
  display: grid;
  grid-template-columns: 72px 1fr 40px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.22s ease;
  position: relative;
  scroll-margin-top: calc(var(--nav-h) + 28px);
}
.svc-row:hover { background: rgba(240,237,230,0.018); }
.svc-row-num {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 300;
  color: var(--crimson);
  opacity: 0.65;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}
.svc-row-title {
  font-family: var(--font-h);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--offwhite);
  letter-spacing: -0.015em;
  transition: color 0.22s ease;
}
.svc-row:hover .svc-row-title { color: var(--crimson); }
.svc-row-arrow {
  font-size: 1.2rem;
  color: var(--muted2);
  transition: transform 0.28s ease, color 0.22s ease;
  justify-self: end;
}
.svc-row.open .svc-row-arrow { transform: rotate(90deg); color: var(--crimson); }

/* Service expanded content */
.svc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4,0,0.2,1), padding 0.45s ease;
  padding: 0 0 0 72px;
  background: rgba(196,30,58,0.025);
  border-left: 3px solid var(--crimson);
  margin-bottom: 0;
}
.svc-content.open { max-height: 700px; padding: 32px 40px 32px 72px; }
.svc-content-body { font-size: 0.95rem; line-height: 1.82; color: var(--muted); max-width: 68ch; }

/* Sectors in service content */
.svc-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.svc-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid rgba(240,237,230,0.12);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--offwhite);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.svc-pill:hover, .svc-pill.active {
  background: var(--crimson);
  border-color: var(--crimson);
}

/* Inline expand pill panels */
.pill-panel {
  display: none;
  padding: 16px 0;
  border-left: 2px solid var(--crimson);
  padding-left: 18px;
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}
.pill-panel-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 8px;
}

/* Info boxes */
.info-box {
  padding: 22px 26px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  min-width: 160px;
}
.info-box:hover { border-color: var(--border-c); background: var(--navy-card); }
.info-box-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 8px;
  max-width: none;
}
.info-box-val { font-size: 0.88rem; color: var(--offwhite); max-width: none; }

/* === WHO WE ARE HERO — Diagonal line === */
.hero-diagonal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-diagonal::after {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 240%;
  background: var(--crimson);
  opacity: 0.25;
  top: -70%;
  left: 38%;
  transform: rotate(-18deg);
  transform-origin: top center;
}

/* === WHO WE ARE — Asymmetric Company Overview === */
.co-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.co-left {
  padding: var(--sp) 56px var(--sp) 0;
  border-right: 1px solid var(--border);
}
.co-right {
  padding: var(--sp) 0 var(--sp) 56px;
}
.co-stat-block { margin-bottom: 40px; }
.co-stat-num {
  font-family: var(--font-h);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--crimson);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.co-stat-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* === PRINCIPLE CARDS (left-border expandable) === */
.principle-list { border-top: 1px solid var(--border); }
.principle-item {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.principle-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 0;
  transition: background 0.2s ease;
}
.principle-header:hover { background: rgba(240,237,230,0.018); }
.principle-num {
  font-family: var(--font-h);
  font-size: 1rem;
  color: var(--crimson);
  opacity: 0.6;
  width: 44px;
  flex-shrink: 0;
}
.principle-title {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--offwhite);
  flex: 1;
  letter-spacing: -0.01em;
}
.principle-icon {
  width: 40px;
  height: 40px;
  color: var(--muted2);
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.3s ease;
}
.principle-item.open .principle-icon { color: var(--crimson); transform: rotate(45deg); }
.principle-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-io), padding 0.45s ease;
  padding: 0 0 0 72px;
  border-left: 3px solid var(--crimson);
  margin-left: 0;
}
.principle-body.open { max-height: 400px; padding: 24px 40px 32px 72px; }
.principle-body p { font-size: 0.95rem; line-height: 1.84; color: var(--muted); max-width: 64ch; margin: 0; }

/* === TEAM GRID — Asymmetric === */
.team-grid-asym {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
  background: rgba(240,237,230,0.04);
}
.team-grid-row2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(240,237,230,0.04);
  margin-top: 2px;
}
.team-card-outer {
  perspective: 1200px;
  cursor: pointer;
  height: 280px;
}
.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.4,0,0.2,1);
}
.team-card-inner.flipped { transform: rotateY(180deg); }
.team-card-front,
.team-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--navy-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  border-left: 3px solid transparent;
  transition: background 0.28s ease, border-left-color 0.28s ease;
}
.team-card-outer:hover .team-card-front,
.team-card-outer:hover .team-card-back {
  background: var(--navy-hi);
  border-left-color: var(--crimson);
}
.team-card-back {
  transform: rotateY(180deg);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--crimson) transparent;
}
.team-card-back::-webkit-scrollbar { width: 3px; }
.team-card-back::-webkit-scrollbar-track { background: transparent; }
.team-card-back::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 2px; }
.team-initial {
  width: 40px; height: 40px;
  border: 1px solid var(--border-c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.team-initial span {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 500;
  color: var(--crimson);
  line-height: 1;
}
.team-name {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--offwhite);
  margin-bottom: 5px;
  line-height: 1.2;
}
.team-role {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}
.team-email {
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
  transition: color var(--t-fast);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  margin-top: auto;
}
.team-email:hover { color: var(--crimson); text-decoration-color: rgba(196,30,58,0.5); }
.team-hint { font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted2); margin-top: 10px; }
.team-bio-name { font-family: var(--font-h); font-size: 1.05rem; font-weight: 600; color: var(--offwhite); margin-bottom: 4px; }
.team-bio-role { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson); margin-bottom: 14px; }
.team-bio { font-size: 0.8rem; line-height: 1.76; color: var(--muted); max-width: none; margin: 0; }

/* === VALUES MODAL === */
.values-overlay {
  position: fixed; inset: 0;
  background: rgba(10,22,40,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.values-modal {
  background: var(--navy-card);
  border: 1px solid var(--border-c);
  max-width: 600px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 96px rgba(0,0,0,0.6);
}
.values-modal-header {
  background: rgba(196,30,58,0.06);
  border-bottom: 1px solid var(--border-c);
  padding: 28px 36px;
  display: flex; align-items: center; gap: 18px;
}
.values-modal-num {
  width: 44px; height: 44px;
  border: 1px solid var(--border-c);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.values-modal-num span { font-family: var(--font-h); font-size: 1.05rem; font-weight: 500; color: var(--crimson); }
.values-modal-title { font-family: var(--font-h); font-size: 1.4rem; font-weight: 600; color: var(--offwhite); margin-bottom: 4px; padding-right: 36px; }
.values-modal-sub { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson); }
.values-modal-body { padding: 32px 36px; font-size: 0.9rem; line-height: 1.85; color: var(--muted); }
.values-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px;
  border: 1px solid var(--border-c);
  color: var(--crimson); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.values-modal-close:hover { background: var(--crimson); color: var(--offwhite); }

/* === PARTNERS MARQUEE === */
.partners-section {
  padding: 64px 0;
  background: var(--navy-card);
  overflow: hidden;
}
.partners-label-row { text-align: center; margin-bottom: 48px; }
.partners-sub { text-align: center; font-size: 0.82rem; color: var(--muted); margin: 8px auto 0; max-width: 44ch; }
.partners-carousel {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .partners-track { animation: none; } }
.partner-item {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.22; filter: grayscale(100%);
  transition: opacity var(--t-med), filter var(--t-med);
  cursor: default;
}
.partner-item:hover { opacity: 0.8; filter: grayscale(0%); }
.partner-item img { height: 48px; width: auto; max-width: 110px; object-fit: contain; }
.partner-item-name { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* === STORY PAGE === */
.story-hero {
  height: 100vh; min-height: 600px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: transparent;          /* geo-canvas shows behind story hero */
}
.story-hero-bg { position: absolute; inset: -20%; background: transparent; will-change: transform; }
.story-year-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-h);
  font-size: clamp(18vw, 30vw, 36vw);
  font-weight: 300;
  color: rgba(240,237,230,0.032);
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}
.story-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.story-hero-eyebrow {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--crimson); margin-bottom: 24px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}
.story-hero-title {
  font-family: var(--font-h);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 300; color: var(--offwhite);
  letter-spacing: -0.03em; line-height: 0.92;
  margin-bottom: 24px;
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s ease 0.32s, transform 1s ease 0.32s;
}
.story-hero-sub {
  font-family: var(--font-h);
  font-size: clamp(1rem, 2vw, 1.35rem); font-style: italic; font-weight: 300;
  color: var(--muted); margin: 0 auto 52px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.9s ease 0.56s, transform 0.9s ease 0.56s;
}
.story-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transition: opacity 0.9s ease 1s;
}
.story-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(196,30,58,0.8), transparent);
  animation: pulse-line 2.2s ease-in-out infinite;
}
.story-scroll-lbl { font-size: 0.54rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(196,30,58,0.45); }
@keyframes pulse-line { 0%,100%{opacity:0.3;transform:scaleY(0.95);}50%{opacity:1;transform:scaleY(1.05);} }
.story-show { opacity: 1 !important; transform: translateY(0) !important; }

/* Story layout */
.story-body { background: transparent; }
.story-wrap {
  max-width: 1100px; margin: 0 auto; padding: 0 var(--cpx);
  display: flex; align-items: flex-start;
}
.story-timeline {
  width: 180px; flex-shrink: 0;
  position: sticky; top: calc(var(--nav-h) + 24px);
  height: calc(100vh - var(--nav-h) - 48px);
  display: flex; align-items: center; padding-right: 8px;
}
.tl-track { position: relative; padding-left: 22px; width: 100%; }
.tl-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(196,30,58,0.2); }
.tl-dot {
  position: absolute; left: -5px; width: 11px; height: 11px;
  background: var(--crimson); border-radius: 50%; top: 0;
  transition: top 0.4s var(--ease-io);
  box-shadow: 0 0 12px rgba(196,30,58,0.4);
}
.tl-links { display: flex; flex-direction: column; gap: 20px; }
.tl-link {
  font-size: 0.54rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(240,237,230,0.2);
  text-decoration: none; transition: color var(--t-med); cursor: pointer;
}
.tl-link:hover { color: rgba(240,237,230,0.5); }
.tl-link.tl-active { color: var(--crimson); font-weight: 600; }

.story-chapters { flex: 1; padding: 88px 0 88px 64px; border-left: 1px solid rgba(196,30,58,0.1); }
.story-chapter { padding-bottom: 96px; scroll-margin-top: 100px; position: relative; }
.chapter-num-bg {
  position: absolute;
  left: -0.15em; top: -0.3em;
  font-family: var(--font-h);
  font-size: clamp(8rem, 16vw, 14rem);
  font-weight: 300;
  color: rgba(196,30,58,0.055);
  line-height: 1; pointer-events: none; user-select: none;
  letter-spacing: -0.04em;
}
.chapter-num { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--crimson); margin-bottom: 14px; }
.chapter-title {
  font-family: var(--font-h);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400; color: var(--offwhite);
  line-height: 1.18; margin-bottom: 36px; max-width: 30ch;
}
.chapter-prose p { font-size: 1rem; line-height: 1.84; color: var(--muted); margin-bottom: 24px; max-width: 64ch; }
.chapter-prose p:last-child { margin-bottom: 0; }
.gold-divider { width: 0; height: 1px; background: var(--crimson); margin-bottom: 56px; opacity: 0.5; transition: width 1.5s var(--ease-io); }
.gold-divider.expanded { width: 80px; }
.pull-quote {
  font-family: var(--font-h);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-style: italic; font-weight: 300;
  color: var(--crimson); text-align: center;
  margin: 52px auto 0; max-width: 580px;
  line-height: 1.55;
  padding: 28px 24px;
  border-top: 1px solid rgba(196,30,58,0.22);
  border-bottom: 1px solid rgba(196,30,58,0.22);
}
.pull-quote::before { content: '\201C'; }
.pull-quote::after  { content: '\201D'; }
.story-cta { background: var(--navy-card); border-top: 1px solid var(--border); padding: clamp(72px, 10vw, 130px) var(--cpx); text-align: center; }
.story-cta h2 { max-width: 26ch; margin: 0 auto 20px; }
.story-cta p  { margin: 0 auto 48px; }

/* === CONTACT — Split Screen === */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}
.cs-left {
  background: transparent;          /* geo-canvas shows behind the contact panel */
  padding: clamp(52px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cs-left::before {
  content: '';
  position: absolute;
  width: 1.5px; height: 220%;
  background: var(--crimson); opacity: 0.1;
  top: -60%; right: 15%;
  transform: rotate(-14deg);
}
.cs-left-tag { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--crimson); margin-bottom: 28px; }
.cs-big-text {
  font-family: var(--font-h);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 300; line-height: 0.95;
  letter-spacing: -0.04em; color: var(--offwhite);
  margin-bottom: 52px;
  white-space: nowrap;            /* always one line: "Let's Talk." */
}
.cs-big-text em { font-style: italic; color: var(--crimson); }
.cs-detail { margin-bottom: 28px; }
.cs-detail-lbl { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--crimson); margin-bottom: 7px; }
.cs-detail-val { font-size: 0.88rem; line-height: 1.75; color: var(--muted); max-width: none; }
.cs-detail-val a { color: var(--offwhite); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color var(--t-fast), text-decoration-color var(--t-fast); }
.cs-detail-val a:hover { color: var(--crimson); text-decoration-color: rgba(196,30,58,0.5); }

.cs-right {
  background: var(--navy-mid);
  padding: clamp(52px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cs-form-title { font-family: var(--font-h); font-size: 1.25rem; font-weight: 500; color: var(--offwhite); margin-bottom: 40px; }

/* Form with line-only inputs */
.cs-form { display: flex; flex-direction: column; gap: 0; }
.cs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.cs-form-group { display: flex; flex-direction: column; margin-bottom: 28px; }
.cs-form-lbl { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(240,237,230,0.35); margin-bottom: 10px; }
.cs-form-input,
.cs-form-textarea {
  font-family: var(--font-b);
  font-size: 0.92rem;
  color: var(--offwhite);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(240,237,230,0.18);
  padding: 10px 0;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.cs-form-textarea { resize: none; min-height: 120px; line-height: 1.65; }
.cs-form-input:focus,
.cs-form-textarea:focus { border-bottom-color: var(--crimson); }
.cs-form-input::placeholder,
.cs-form-textarea::placeholder { color: rgba(240,237,230,0.2); }
.cs-form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--crimson);
  color: var(--offwhite);
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 20px 32px;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  transition: background var(--t-fast), transform 0.24s var(--ease-out);
}
.cs-form-submit:hover { background: var(--crimson-dk); transform: translateY(-2px); }

/* === CTA Banner === */
.cta-band {
  background: var(--navy-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp) 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

/* === LEGAL PAGES === */
.legal-wrap { max-width: 800px; }
.legal-updated { font-size: 0.82rem; color: var(--muted); font-style: italic; margin-bottom: 56px; }
.legal-block { margin-bottom: 52px; }
.legal-block-title {
  font-family: var(--font-h);
  font-size: 1.35rem; font-weight: 500; color: var(--offwhite);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-c);
}
.legal-block-text { font-size: 0.9rem; line-height: 1.88; color: var(--muted); max-width: none; }
.legal-item { margin-bottom: 22px; }
.legal-item-label { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); margin-bottom: 6px; }
.legal-item-value { font-size: 0.9rem; line-height: 1.72; color: var(--muted); max-width: none; }

/* === FOOTER === */
.footer { background: var(--charcoal); border-top: 1px solid rgba(196,30,58,0.1); }
.footer__draw-line { height: 1px; background: var(--crimson); width: 0; opacity: 0.4; }
.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  gap: 60px;
  padding: 72px 0 52px;
  align-items: start;
}
.footer__logo-wrap { margin-bottom: 20px; }
.footer__logo { height: 72px; width: auto; object-fit: contain; opacity: 0.8; }
.footer__logo-text { font-family: var(--font-h); font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; color: var(--offwhite); }
.footer__addr { font-size: 0.8rem; line-height: 1.85; color: rgba(240,237,230,0.38); max-width: none; }
.footer__center-addr { font-size: 0.8rem; line-height: 1.85; color: rgba(240,237,230,0.36); text-align: center; max-width: none; }
.footer__nav { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer__nav a { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(240,237,230,0.38); transition: color var(--t-fast); }
.footer__nav a:hover, .footer__nav a.active { color: var(--crimson); }
.footer__bottom { border-top: 1px solid rgba(240,237,230,0.06); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer__copy { font-size: 0.74rem; color: rgba(240,237,230,0.22); max-width: none; }
.footer__legal { display: flex; align-items: center; gap: 24px; }
.footer__legal a { font-size: 0.7rem; color: rgba(240,237,230,0.28); transition: color var(--t-fast); }
.footer__legal a:hover { color: var(--crimson); }

/* === Reveal Animations === */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-up { opacity: 0; transform: translateY(34px); transition: opacity 0.82s ease, transform 0.82s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.05s; }
.d2 { transition-delay: 0.11s; }
.d3 { transition-delay: 0.17s; }
.d4 { transition-delay: 0.23s; }

/* Focus */
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
a, button, [role="button"] { cursor: pointer; }

/* Divider */
.divider { width: 44px; height: 1px; background: var(--crimson); margin: 28px 0; opacity: 0.55; }

/* === Responsive 1024px === */
@media (max-width:1024px) {
  .lcard-grid { grid-template-columns: 1fr 1fr; }
  .intro-asym { grid-template-columns: 1fr; gap: 0; }
  .intro-asym-left { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 48px; margin-bottom: 48px; }
  .intro-asym-right { padding-left: 0; }
  .co-grid { grid-template-columns: 1fr; }
  .co-left { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 48px; }
  .co-right { padding-left: 0; padding-top: 48px; }
  .team-grid-asym { grid-template-columns: 1fr 1fr; }
  .team-grid-row2 { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 56px 1fr 32px; }
  .contact-split { grid-template-columns: 1fr; }
  .cs-right { min-height: 70vh; }
  .story-timeline { display: none; }
  .story-chapters { padding: 56px 0; border-left: none; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__center-addr { text-align: left; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* === Responsive 768px === */
@media (max-width:768px) {
  :root { --sp: 64px; }
  .navbar__links { display: none; }
  .navbar__burger { display: flex; }
  .lcard-grid { grid-template-columns: 1fr; }
  .team-grid-asym { grid-template-columns: 1fr; }
  .team-grid-row2 { grid-template-columns: 1fr 1fr; }
  .stats-raw { flex-direction: column; }
  .stat-raw-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-raw-item:last-child { border-bottom: none; }
  .svc-row { grid-template-columns: 48px 1fr 28px; padding: 24px 0; }
  .svc-content.open { padding: 24px 24px 24px 48px; }
  .principle-body.open { padding: 20px 20px 28px 48px; }
  .footer__main { grid-template-columns: 1fr; gap: 32px; padding: 52px 0 40px; }
  .footer__nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cs-form-row { grid-template-columns: 1fr; gap: 0; }
}

/* === Responsive 480px === */
@media (max-width:480px) {
  :root { --sp: 52px; --cpx: 20px; }
  .hero__heading { font-size: clamp(3rem, 12vw, 5rem); }
  .partner-item img { height: 38px; }
  .team-grid-row2 { grid-template-columns: 1fr; }
  .footer__legal { gap: 14px; flex-wrap: wrap; }
  #sv-track { display: none; }
}

/* === Word Reveal === */
.wr-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.25em;
  margin-bottom: 0.06em;
}
.wr-inner { display: inline-block; }

/* === Clip-path Reveal === */
.clip-reveal {
  clip-path: inset(100% 0 0 0);
}
.clip-reveal.in-view {
  animation: clip-in 0.8s var(--ease-out) forwards;
}
@keyframes clip-in {
  to { clip-path: inset(0% 0 0 0); }
}

/* === Section Background Numbers === */
.sec-bg-num {
  position: absolute;
  top: 50%;
  right: var(--cpx);
  transform: translateY(-50%);
  font-family: var(--font-h);
  font-size: clamp(8rem, 16vw, 14rem);
  font-weight: 300;
  color: rgba(196,30,58,0.045);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0;
  transition: opacity 1s ease;
  white-space: nowrap;
}
.sec-bg-num.visible { opacity: 1; }

/* Hide sv-track on mobile */
@media (max-width:768px) { #sv-track { display: none; } }

/* === GPU compositing hints ===
   translateZ(0) + backface-visibility keep animated boxes on their own
   compositor layer (point 4). will-change is applied ONLY while a box is
   actually animating — toggled in JS (initCardReveal / initCardTilt) —
   except for the few elements that animate continuously, which keep it. */
.lcard,
.stat-raw-item,
.partner-item,
.hero__content {
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* Continuously animated → permanent will-change is correct here */
.partners-track,
#cursor-ring,
#cursor-dot,
#geo-canvas { will-change: transform; }
/* Promote the flip card only while it is likely to animate */
.team-card-outer:hover .team-card-inner { will-change: transform; }

/* === Paint/layout containment (point 6) ===
   Isolates repaints to these blocks. Applied ONLY to opaque blocks that
   already clip and have no outside box-shadow or decorative overflow — so
   it changes nothing visually. (Deliberately NOT on the navy sections:
   `contain:paint` there would clip the big 01/02/03 numbers and break the
   behind-content constellation bleed.) */
.partners-section,
.partners-carousel,
.cs-right,
.footer { contain: layout paint; }
