/* ==========================================================================
   ANKARSA TECHNOLOGIES — VISUAL-FIRST 3D & SCROLL-TRIGGER DESIGN SYSTEM
   Aligned to Official ANKARSA Brand Book v1.1 (November 2026):
   - Core Brand Palette:
     * Ankarsa Navy (#06254B) — Primary anchor, headlines, dark surfaces
     * Growth Blue (#007DD5) — Supporting blue, charts, larger graphics
     * Swoosh Cyan (#21D0FF) — Bright accent, highlights on navy
     * Keystone Gold (#FFBE0B) — Selective accent, milestones and details
     * Technology Slate (#495963) — Text neutral, secondary copy on white
     * White (#FFFFFF) — Support neutral, light layouts, logo panel
   - Typography:
     * Avenir Next + Inter (Display / Section headings / Labels in Avenir Next, Body in Inter)
   ========================================================================== */

@view-transition {
  navigation: auto;
}

:root {
  /* Official Brand Book v1.1 Core Tokens */
  --ankarsa-navy: #06254B;
  --growth-blue: #007DD5;
  --swoosh-cyan: #21D0FF;
  --keystone-gold: #FFBE0B;
  --tech-slate: #495963;
  --brand-white: #FFFFFF;

  /* Navy-led Dark Theme Defaults */
  --bg-obsidian: #041935;
  --bg-navy-deep: #06254B;
  --bg-navy-surface: #093161;
  --bg-navy-elevated: #0D3D77;
  --bg-glass: rgba(6, 37, 75, 0.82);
  --bg-glass-strong: rgba(6, 37, 75, 0.90);
  --bg-glass-heavy: rgba(4, 25, 53, 0.96);

  --brand-navy: #06254B;
  --brand-navy-mid: #0B386E;

  --blue-primary: #007DD5;
  --blue-confident: #007DD5;
  --blue-electric: #21D0FF;
  --blue-glow: rgba(33, 208, 255, 0.32);

  --gold-primary: #FFBE0B;
  --gold-champagne: #FFD24C;
  --gold-warm: #E5A800;
  --gold-border: rgba(255, 190, 11, 0.45);
  --gold-glow: rgba(255, 190, 11, 0.28);

  --emerald-ok: #10B981;
  --rose-alert: #F43F5E;

  --text-primary: #FFFFFF;
  --text-secondary: #D8E6F3;
  --text-muted: #9FB6CD;
  --text-dim: #7A95B0;

  --border-subtle: rgba(33, 208, 255, 0.18);
  --border-blue: rgba(33, 208, 255, 0.38);

  /* Brand Book v1.1 Typography: Avenir Next + Inter */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Avenir Next', 'Avenir', 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono: 'Avenir Next', 'Avenir', 'JetBrains Mono', sans-serif;

  --shadow-3d: 0 24px 48px -12px rgba(2, 12, 28, 0.82),
               0 0 1px 1px rgba(33, 208, 255, 0.16);
  --shadow-gold: 0 22px 55px -10px rgba(0, 125, 213, 0.32),
                 0 0 30px -5px rgba(33, 208, 255, 0.28);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container-max: 1360px;
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-navy-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-navy-deep);
  background-image:
    radial-gradient(circle at 15% 12%, rgba(0, 125, 213, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 85% 22%, rgba(33, 208, 255, 0.14) 0%, transparent 38%),
    radial-gradient(circle at 50% 75%, rgba(255, 190, 11, 0.08) 0%, transparent 45%);
  overflow-x: hidden;
  position: relative;
}

main {
  flex: 1;
}

p {
  line-height: 1.5;
}

/* Global Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: var(--scroll-pct, 0%);
  background: linear-gradient(90deg, var(--growth-blue), var(--swoosh-cyan), var(--keystone-gold));
  z-index: 999;
  box-shadow: 0 0 12px var(--swoosh-cyan);
  transition: width 0.08s linear;
}

.ambient-grid-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 64px 64px;
  background-image:
    linear-gradient(to right, rgba(33, 208, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33, 208, 255, 0.04) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 40%, transparent 100%);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  font-weight: 700;
}

h2, h3 {
  font-weight: 600;
}

/* Short Labels: Avenir Next Demi Bold, spaced capitals */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--swoosh-cyan);
  background: rgba(33, 208, 255, 0.12);
  border: 1px solid rgba(33, 208, 255, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--keystone-gold);
  box-shadow: 0 0 10px var(--keystone-gold);
  animation: pulseDot 2.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--swoosh-cyan) 0%, #7CE2FF 52%, var(--keystone-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #FFFFFF 0%, #8FDFFF 48%, var(--swoosh-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-Ribbon {
  background: linear-gradient(90deg, #041935 0%, #06254B 50%, #041935 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 101;
}

.top-ribbon-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ribbon-pillars {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ribbon-pillars .gold-sep {
  color: var(--keystone-gold);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald-ok);
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-ok);
  box-shadow: 0 0 8px var(--emerald-ok);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(6, 37, 75, 0.90);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Brand Book v1.1 Logo Placement Standard:
   Horizontal logo default for website headers (min 240px wide on desktop, clear space equal to gold star height).
   Transparent original on white; solid white panel (#FFFFFF) on dark, colored or busy surfaces. */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 6px 0;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-logo-img {
  width: 248px;
  height: auto;
  object-fit: contain;
  display: block;
  transition: all 0.25s ease;
}

html[data-theme="dark"] .brand-logo-img {
  background: #FFFFFF;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(2, 12, 28, 0.45);
}

.footer-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-full-logo {
  width: 248px;
  height: auto;
  object-fit: contain;
  display: block;
  background: #FFFFFF;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(2, 12, 28, 0.38);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.05;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--keystone-gold);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(4, 25, 53, 0.78);
  border: 1px solid var(--border-subtle);
  padding: 5px;
  border-radius: 999px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link .nav-num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.6;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(33, 208, 255, 0.12);
}

.nav-link.active {
  color: var(--ankarsa-navy);
  background: linear-gradient(135deg, var(--swoosh-cyan), #6FE0FF);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(33, 208, 255, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

/* Brand Book Text Pairing: Navy on Gold or White on Blue/Navy */
.btn-primary {
  background: linear-gradient(135deg, #FFCA3A 0%, var(--keystone-gold) 100%);
  color: var(--ankarsa-navy);
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 26px -6px rgba(255, 190, 11, 0.42);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -6px rgba(255, 190, 11, 0.60);
}

.btn-secondary {
  background: rgba(9, 49, 97, 0.82);
  color: var(--brand-white);
  border: 1px solid var(--swoosh-cyan);
}

.btn-secondary:hover {
  background: var(--growth-blue);
  color: var(--brand-white);
  border-color: var(--swoosh-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.82rem;
  border-radius: 999px;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-navy-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   GRADIENT GLASSMORPHIC IMAGE CARDS (HEADLINE-ONLY + CLICK TO EXPAND)
   ========================================================================== */
.card-3d {
  position: relative;
  background: linear-gradient(155deg, rgba(9, 49, 97, 0.84) 0%, rgba(4, 25, 53, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
  transition: transform 0.2s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-3d);
  overflow: hidden;
  cursor: pointer;
}

.card-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(33, 208, 255, 0.18),
    rgba(0, 125, 213, 0.10) 42%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.card-3d:hover {
  border-color: var(--swoosh-cyan);
  box-shadow: var(--shadow-gold);
}

.card-3d:hover::before {
  opacity: 1;
}

/* Media Image Tile Header */
.tile-media-wrap {
  position: relative;
  width: 100%;
  height: 195px;
  overflow: hidden;
  background: var(--ankarsa-navy);
}

.tile-media-wrap.tall-media {
  height: 245px;
}

.tile-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05) brightness(0.86);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.card-3d:hover .tile-media-img {
  transform: scale(1.08);
  filter: saturate(1.18) contrast(1.08) brightness(0.96);
}

.tile-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 37, 75, 0.12) 0%,
    rgba(6, 37, 75, 0.55) 60%,
    rgba(4, 25, 53, 0.96) 100%
  );
}

.tile-floating-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--swoosh-cyan);
  background: rgba(6, 37, 75, 0.88);
  border: 1px solid rgba(33, 208, 255, 0.42);
  backdrop-filter: blur(8px);
  padding: 5px 11px;
  border-radius: 999px;
}

/* Headline-Only Card Body */
.tile-body {
  padding: 20px 22px 22px;
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.tile-headline {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.24;
}

.tile-subpill {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--swoosh-cyan);
  letter-spacing: 0.12em;
}

.tile-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(33, 208, 255, 0.14);
}

.expand-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ankarsa-navy);
  background: var(--keystone-gold);
  border: 1px solid var(--keystone-gold);
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.card-3d:hover .expand-btn-pill,
.expand-btn-pill:hover {
  background: var(--swoosh-cyan);
  color: var(--ankarsa-navy);
  border-color: var(--swoosh-cyan);
  box-shadow: 0 0 18px rgba(33, 208, 255, 0.45);
}

.plus-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-blue);
  background: rgba(0, 125, 213, 0.24);
  color: var(--swoosh-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.card-3d:hover .plus-icon-circle {
  transform: rotate(90deg) scale(1.08);
  background: var(--keystone-gold);
  border-color: var(--keystone-gold);
  color: var(--ankarsa-navy);
}

/* ==========================================================================
   SCROLL-TRIGGER REVEAL & STICKY STACKING SECTIONS
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--stagger-delay, 0ms);
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Sticky Scroll-Trigger Stack Container */
.sticky-scroll-deck {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  padding-bottom: 30px;
}

.sticky-card-layer {
  position: sticky;
  top: calc(var(--header-height) + 28px + var(--stack-offset, 0px));
  background: linear-gradient(145deg, rgba(6, 37, 75, 0.95), rgba(4, 25, 53, 0.98));
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(2, 12, 28, 0.65), var(--shadow-gold);
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  min-height: 310px;
  transition: transform 0.35s ease, border-color 0.3s ease;
  cursor: pointer;
}

.sticky-card-layer:hover {
  border-color: var(--swoosh-cyan);
}

.sticky-card-media {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.sticky-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.sticky-card-layer:hover .sticky-card-media img {
  transform: scale(1.06);
}

.sticky-card-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.sticky-card-content h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

/* ==========================================================================
   3D SOLAR SYSTEM STAGE & HERO LAYOUT
   ========================================================================== */
.page-hero {
  padding: 40px 0 56px;
  position: relative;
  z-index: 2;
}

.hero-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 40px;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 16px;
}

.hero-subheadline {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 26px;
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.stage-3d-box {
  position: relative;
  height: 540px;
  width: 100%;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 50%, rgba(0, 125, 213, 0.28) 0%, rgba(6, 37, 75, 0.96) 74%);
  border: 1px solid var(--border-blue);
  box-shadow: var(--shadow-gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stage-3d-box canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  z-index: 1;
}

.stage-3d-box canvas:active {
  cursor: grabbing;
}

.stage-hud-top,
.stage-hud-bottom {
  position: relative;
  z-index: 3;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.stage-hud-bottom {
  background: linear-gradient(to top, rgba(4, 25, 53, 0.95) 0%, rgba(4, 25, 53, 0.5) 75%, transparent 100%);
  align-items: flex-end;
}

.hud-title-chip {
  background: rgba(6, 37, 75, 0.90);
  border: 1px solid var(--border-blue);
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--swoosh-cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.camera-mode-controls {
  display: flex;
  gap: 5px;
  pointer-events: auto;
  background: rgba(6, 37, 75, 0.90);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.cam-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.cam-btn.active {
  background: var(--swoosh-cyan);
  color: var(--ankarsa-navy);
  font-weight: 700;
}

.node-inspector-card {
  pointer-events: auto;
  background: rgba(6, 37, 75, 0.94);
  border: 1px solid var(--border-blue);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 310px;
}

/* ==========================================================================
   SLIDE-OVER 3D DEEP-DIVE DRAWER (OPENS ON CARD OR BUTTON CLICK)
   ========================================================================== */
.deep-dive-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 25, 53, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  display: flex;
  justify-content: flex-end;
}

.deep-dive-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.deep-dive-drawer {
  width: 100%;
  max-width: 640px;
  height: 100vh;
  background: linear-gradient(165deg, #06254B 0%, #041935 100%);
  border-left: 1px solid var(--border-blue);
  box-shadow: -24px 0 60px rgba(2, 12, 28, 0.85);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.deep-dive-backdrop.open .deep-dive-drawer {
  transform: translateX(0);
}

.drawer-hero-media {
  position: relative;
  height: 250px;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.drawer-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 37, 75, 0.25), rgba(4, 25, 53, 0.98));
}

.drawer-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 37, 75, 0.90);
  border: 1px solid var(--swoosh-cyan);
  color: var(--swoosh-cyan);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.drawer-close-btn:hover {
  transform: rotate(90deg) scale(1.08);
  background: var(--keystone-gold);
  border-color: var(--keystone-gold);
  color: var(--ankarsa-navy);
}

.drawer-body {
  padding: 28px 34px 44px;
  flex: 1;
}

.drawer-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ankarsa-navy);
  background: var(--keystone-gold);
  border: 1px solid var(--keystone-gold);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.drawer-flow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 14px;
  background: rgba(4, 25, 53, 0.65);
  border: 1px solid var(--border-blue);
  border-radius: 12px;
}

.drawer-copy-section {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.5;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.drawer-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.drawer-metric-box {
  padding: 14px;
  border-radius: 10px;
  background: rgba(9, 49, 97, 0.55);
  border: 1px solid var(--border-subtle);
}

.drawer-metric-box strong {
  display: block;
  color: var(--swoosh-cyan);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.drawer-metric-box span {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   GRIDS & SECTIONS
   ========================================================================== */
.visual-section {
  padding: 56px 0;
  position: relative;
  z-index: 2;
}

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

.section-head-compact h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bento-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.span-2 {
  grid-column: span 2;
}

/* Vocabulary Marquee */
.vocabulary-ribbon-section {
  padding: 18px 0;
  background: rgba(4, 25, 53, 0.92);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.vocab-track-wrapper {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.vocab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin: 0 6px;
  border-radius: 999px;
  background: rgba(9, 49, 97, 0.65);
  border: 1px solid rgba(33, 208, 255, 0.22);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap;
}

.vocab-pill .diamond {
  color: var(--keystone-gold);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Synthesizer & Pipeline Pills */
.pathway-node-pill {
  padding: 7px 13px;
  border-radius: 8px;
  background: rgba(0, 125, 213, 0.24);
  border: 1px solid var(--swoosh-cyan);
  font-family: var(--font-display);
  font-size: 0.74rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pathway-arrow {
  color: var(--keystone-gold);
  font-family: var(--font-display);
  font-weight: 700;
}

.synth-chip {
  background: rgba(9, 49, 97, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.22s ease;
}

.synth-chip.selected {
  background: var(--growth-blue);
  border-color: var(--swoosh-cyan);
  color: #FFFFFF;
  box-shadow: 0 0 18px rgba(0, 125, 213, 0.35);
}

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

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(4, 25, 53, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

/* Footer (Always Navy-led with Solid White Logo Panel per Brand Book Page 04) */
.site-footer {
  background: var(--ankarsa-navy);
  border-top: 1px solid rgba(33, 208, 255, 0.2);
  padding: 48px 0 32px;
  position: relative;
  z-index: 2;
  margin-top: 40px;
  color: #FFFFFF;
}

.trademark-compliance-box {
  padding: 14px 18px;
  background: rgba(4, 25, 53, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #D8E6F3;
}

@media (max-width: 1100px) {
  .hero-split,
  .sticky-card-layer {
    grid-template-columns: 1fr;
  }
  .bento-grid-3,
  .bento-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .top-Ribbon { display: none; }
  .main-nav { display: none; }
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    background: var(--bg-navy-deep);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-md);
    padding: 16px;
  }
  .mobile-menu-btn { display: inline-flex; }
  .brand-logo-img {
    width: 196px;
  }
  .bento-grid-3,
  .bento-grid-4,
  .bento-grid-2,
  .form-row,
  .drawer-metrics-grid {
    grid-template-columns: 1fr;
  }
  .stage-3d-box {
    height: 440px;
  }
}

/* ==========================================================================
   SINGLE CIRCLE ICON THEME SWITCH & WHITE-LED THEME (html[data-theme="light"])
   Brand Book Page 04:
   "White-led: White canvas (#FFFFFF), navy headlines (#06254B), slate body copy (#495963).
    Use blue (#007DD5) for graphics and gold (#FFBE0B) for key details."
   ========================================================================== */
.theme-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 49, 97, 0.85);
  border: 1px solid var(--swoosh-cyan);
  color: var(--keystone-gold);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.theme-circle-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 16px rgba(33, 208, 255, 0.32);
}

html[data-theme="light"] {
  --bg-obsidian: #FFFFFF;
  --bg-navy-deep: #FFFFFF;
  --bg-navy-surface: #FFFFFF;
  --bg-navy-elevated: #F4F8FC;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --bg-glass-strong: rgba(244, 248, 252, 0.96);
  --bg-glass-heavy: rgba(255, 255, 255, 0.98);

  --brand-navy: #06254B;
  --brand-navy-mid: #007DD5;

  --blue-primary: #007DD5;
  --blue-confident: #007DD5;
  --blue-electric: #007DD5;
  --blue-glow: rgba(0, 125, 213, 0.16);

  --gold-primary: #FFBE0B;
  --gold-champagne: #06254B;
  --gold-warm: #E5A800;
  --gold-border: rgba(0, 125, 213, 0.26);
  --gold-glow: rgba(255, 190, 11, 0.24);

  --text-primary: #06254B;
  --text-secondary: #495963;
  --text-muted: #495963;
  --text-dim: #64748B;

  --border-subtle: rgba(6, 37, 75, 0.11);
  --border-blue: rgba(0, 125, 213, 0.28);

  --shadow-3d: 0 20px 42px -12px rgba(6, 37, 75, 0.10),
               0 0 1px 1px rgba(6, 37, 75, 0.08);
  --shadow-gold: 0 22px 48px -10px rgba(0, 125, 213, 0.20),
                 0 0 24px -5px rgba(33, 208, 255, 0.18);
}

html[data-theme="light"] body {
  background-color: #FFFFFF;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(0, 125, 213, 0.06) 0%, transparent 42%),
    radial-gradient(circle at 85% 22%, rgba(33, 208, 255, 0.08) 0%, transparent 38%),
    radial-gradient(circle at 50% 75%, rgba(255, 190, 11, 0.06) 0%, transparent 45%);
}

html[data-theme="light"] .ambient-grid-backdrop {
  background-image:
    linear-gradient(to right, rgba(6, 37, 75, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 37, 75, 0.035) 1px, transparent 1px);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(6, 37, 75, 0.10);
}

html[data-theme="light"] .main-nav {
  background: #F4F8FC;
  border-color: rgba(6, 37, 75, 0.10);
}

html[data-theme="light"] .nav-link {
  color: #495963;
  font-weight: 600;
}

html[data-theme="light"] .nav-link:hover {
  color: #06254B;
  background: rgba(0, 125, 213, 0.08);
}

html[data-theme="light"] .nav-link.active {
  background: #06254B;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(6, 37, 75, 0.22);
}

html[data-theme="light"] .theme-circle-btn {
  background: #FFFFFF;
  color: #06254B;
  border: 1.5px solid rgba(6, 37, 75, 0.20);
  box-shadow: 0 4px 12px rgba(6, 37, 75, 0.08);
}

html[data-theme="light"] .theme-circle-btn:hover {
  background: #06254B;
  color: #FFBE0B;
  border-color: #06254B;
}

/* Primary & Secondary Buttons in White-led Mode (Ankarsa Navy, Growth Blue & Keystone Gold) */
html[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #06254B 0%, #007DD5 100%);
  color: #FFFFFF;
  border-color: rgba(33, 208, 255, 0.4);
  box-shadow: 0 10px 24px -6px rgba(0, 125, 213, 0.32);
}

html[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #007DD5 0%, #06254B 100%);
  color: #FFFFFF;
  border-color: #21D0FF;
  box-shadow: 0 14px 30px -6px rgba(0, 125, 213, 0.45);
}

html[data-theme="light"] .btn-secondary {
  background: #FFFFFF;
  color: #06254B;
  border: 1.5px solid #007DD5;
  box-shadow: 0 4px 12px rgba(6, 37, 75, 0.06);
  font-weight: 600;
}

html[data-theme="light"] .btn-secondary:hover {
  background: #007DD5;
  color: #FFFFFF;
  border-color: #007DD5;
  box-shadow: 0 8px 20px rgba(0, 125, 213, 0.24);
}

html[data-theme="light"] .eyebrow {
  background: rgba(0, 125, 213, 0.08);
  border-color: rgba(0, 125, 213, 0.28);
  color: #007DD5;
}

html[data-theme="light"] .eyebrow-dot {
  background: #FFBE0B;
  box-shadow: 0 0 8px rgba(255, 190, 11, 0.85);
}

html[data-theme="light"] .text-gradient-gold {
  background: linear-gradient(135deg, #06254B 0%, #007DD5 55%, #21D0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="light"] .text-gradient-blue {
  background: linear-gradient(135deg, #06254B 0%, #007DD5 60%, #21D0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="light"] .card-3d {
  background: linear-gradient(155deg, #FFFFFF 0%, #F7FAFD 100%);
  border-color: rgba(6, 37, 75, 0.11);
}

html[data-theme="light"] .card-3d:hover {
  border-color: #007DD5;
  box-shadow: 0 22px 45px -12px rgba(0, 125, 213, 0.18);
}

html[data-theme="light"] .tile-media-overlay {
  background: linear-gradient(
    to bottom,
    rgba(6, 37, 75, 0.04) 0%,
    rgba(6, 37, 75, 0.18) 65%,
    rgba(6, 37, 75, 0.55) 100%
  );
}

html[data-theme="light"] .tile-floating-badge {
  background: rgba(6, 37, 75, 0.92);
  color: #21D0FF;
  border-color: rgba(33, 208, 255, 0.45);
}

html[data-theme="light"] .tile-subpill {
  color: #007DD5;
}

html[data-theme="light"] .expand-btn-pill {
  background: #FFBE0B;
  color: #06254B;
  border-color: #FFBE0B;
  font-weight: 700;
}

html[data-theme="light"] .card-3d:hover .expand-btn-pill,
html[data-theme="light"] .expand-btn-pill:hover {
  background: #06254B;
  color: #FFFFFF;
  border-color: #06254B;
  box-shadow: 0 6px 16px rgba(6, 37, 75, 0.25);
}

html[data-theme="light"] .plus-icon-circle {
  background: rgba(0, 125, 213, 0.08);
  color: #007DD5;
  border-color: rgba(0, 125, 213, 0.28);
}

html[data-theme="light"] .card-3d:hover .plus-icon-circle {
  background: #FFBE0B;
  color: #06254B;
  border-color: #FFBE0B;
}

html[data-theme="light"] .sticky-card-layer {
  background: linear-gradient(145deg, #FFFFFF 0%, #F7FAFD 100%);
  border-color: rgba(6, 37, 75, 0.14);
  box-shadow: 0 -10px 35px rgba(6, 37, 75, 0.08), var(--shadow-3d);
}

html[data-theme="light"] .stage-3d-box {
  background: radial-gradient(circle at 50% 50%, rgba(0, 125, 213, 0.12) 0%, #F2F7FC 74%);
  border-color: rgba(0, 125, 213, 0.24);
}

html[data-theme="light"] .stage-hud-bottom {
  background: linear-gradient(to top, rgba(242, 247, 252, 0.96) 0%, rgba(242, 247, 252, 0.55) 75%, transparent 100%);
}

html[data-theme="light"] .hud-title-chip,
html[data-theme="light"] .camera-mode-controls,
html[data-theme="light"] .node-inspector-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(6, 37, 75, 0.14);
  color: #06254B;
  box-shadow: 0 8px 24px rgba(6, 37, 75, 0.08);
}

html[data-theme="light"] .cam-btn {
  color: #495963;
  font-weight: 600;
}

html[data-theme="light"] .cam-btn.active {
  background: #06254B;
  color: #FFFFFF;
}

html[data-theme="light"] .vocabulary-ribbon-section {
  background: #F4F8FC;
}

html[data-theme="light"] .vocab-pill,
html[data-theme="light"] .synth-chip {
  background: #FFFFFF;
  color: #06254B;
  border-color: rgba(6, 37, 75, 0.18);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(6, 37, 75, 0.04);
}

html[data-theme="light"] .synth-chip:hover {
  background: rgba(0, 125, 213, 0.08);
  border-color: #007DD5;
  color: #06254B;
}

html[data-theme="light"] .synth-chip.selected {
  background: #06254B;
  color: #FFFFFF;
  border-color: #007DD5;
  box-shadow: 0 6px 16px rgba(6, 37, 75, 0.20);
}

html[data-theme="light"] .pathway-node-pill {
  background: rgba(0, 125, 213, 0.08);
  color: #06254B;
  border-color: rgba(0, 125, 213, 0.35);
  font-weight: 600;
}

html[data-theme="light"] .deep-dive-drawer {
  background: linear-gradient(165deg, #FFFFFF 0%, #F4F8FC 100%);
  border-left-color: rgba(6, 37, 75, 0.16);
}

html[data-theme="light"] .drawer-badge {
  background: #FFBE0B;
  color: #06254B;
  border-color: #FFBE0B;
}

html[data-theme="light"] .drawer-close-btn {
  background: #FFFFFF;
  color: #06254B;
  border-color: rgba(6, 37, 75, 0.22);
  box-shadow: 0 4px 12px rgba(6, 37, 75, 0.12);
}

html[data-theme="light"] .drawer-flow-pills,
html[data-theme="light"] .drawer-metric-box,
html[data-theme="light"] .form-control {
  background: #F7FAFD;
  border-color: rgba(6, 37, 75, 0.16);
  color: #06254B;
}

html[data-theme="light"] .drawer-metric-box strong {
  color: #007DD5;
}

html[data-theme="light"] .site-footer {
  background: #06254B;
  color: #FFFFFF;
}

html[data-theme="light"] .trademark-compliance-box {
  background: rgba(255, 255, 255, 0.06);
  color: #D8E6F3;
  border-color: rgba(33, 208, 255, 0.25);
}

html[data-theme="light"] .footer-bottom {
  color: #D8E6F3;
}
