/* ============================================
   MARIANA MATRIC — DESIGN SYSTEM
   ============================================ */

/* --- FONTS --- */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

@font-face {
  font-family: "Vastago Grotesk";
  src: local("Vastago Grotesk");
  font-weight: 100 900;
  font-display: swap;
}

/* --- THEME REGISTRATION (For Smooth Variable Transitions) --- */
@property --theme-primary { syntax: '<color>'; inherits: true; initial-value: #006cff; }
@property --theme-secondary { syntax: '<color>'; inherits: true; initial-value: #04c6c5; }
@property --theme-accent { syntax: '<color>'; inherits: true; initial-value: #04d4fc; }
@property --theme-wave-1 { syntax: '<color>'; inherits: true; initial-value: #a4d8ff; }
@property --theme-wave-2 { syntax: '<color>'; inherits: true; initial-value: #167ad8; }
@property --theme-wave-3 { syntax: '<color>'; inherits: true; initial-value: #1c7ed9; }
@property --theme-wave-4 { syntax: '<color>'; inherits: true; initial-value: #024890; }
@property --theme-wave-5 { syntax: '<color>'; inherits: true; initial-value: #0048e9; }
@property --theme-wave-6 { syntax: '<color>'; inherits: true; initial-value: #0133b8; }
@property --theme-bg-gradient-1 { syntax: '<color>'; inherits: true; initial-value: #0033cc; }
@property --theme-bg-gradient-2 { syntax: '<color>'; inherits: true; initial-value: #00ccff; }
@property --theme-bg-gradient-3 { syntax: '<color>'; inherits: true; initial-value: #cae5ec; }
@property --theme-water-1 { syntax: '<color>'; inherits: true; initial-value: #6f8bc9; }
@property --theme-water-2 { syntax: '<color>'; inherits: true; initial-value: #054fee; }
@property --theme-water-3 { syntax: '<color>'; inherits: true; initial-value: #000520; }

/* --- CSS VARIABLES --- */
:root {
  --blue: #0133b8;
  --blue-light: #1a4fd4;
  --blue-glow: rgba(1, 51, 184, 0.35);
  --orange: #fb5500;
  --orange-glow: rgba(251, 85, 0, 0.25);
  --cyan: #04d4fc;
  --cyan-glow: rgba(4, 212, 252, 0.2);
  --dark-1: #070017;
  --dark-2: #0a0030;
  --dark-3: #0d0042;
  --dark-card: #0c003a; /* Opaque background as requested */
  --text-primary: #ffffff;
  --text-secondary: #a0b4e0;
  --text-muted: #6b7faa;
  --font-head: "Vastago Grotesk", "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --section-pad: clamp(80px, 12vw, 160px);
  --side-pad: 32px;
  --max-w: 1920px;
  --radius: 16px;
  --radius-sm: 10px;
  --button-font-size: 18px;
  --button-font-weight: 600;
  --button-radius: 999px;
  --button-pad-y: 18px;
  --button-pad-x: 30px;
  --button-gap: 10px;
  --button-hover-scale: 1.1;
  --button-magnet-range: 15px;
  --button-motion: 0.42s cubic-bezier(0.2, 1.35, 0.28, 1);
  --button-spring: cubic-bezier(0.2, 1.45, 0.24, 1);
  --button-icon-size: 54px;
  --button-icon-glyph: 26px;
  --button-menu-line-width: 18px;
  --button-menu-line-height: 2px;
  --button-menu-line-gap: 7px;

  /* Theme Colors (Default: Ocean) */
  --theme-primary: #006cff;
  --theme-secondary: #04c6c5;
  --theme-accent: #04d4fc;
  --theme-wave-1: #a4d8ff;
  --theme-wave-2: #167ad8;
  --theme-wave-3: #1c7ed9;
  --theme-wave-4: #024890;
  --theme-wave-5: #0048e9;
  --theme-wave-6: #0133b8;
  --theme-bg-gradient-1: #0033cc;
  --theme-bg-gradient-2: #00ccff;
  --theme-bg-gradient-3: #cae5ec;
  --theme-water-1: #6f8bc9;
  --theme-water-2: #054fee;
  --theme-water-3: #000520;

  /* Transitions */
  --theme-transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Transition for Smooth Theme Switching */
*, *::before, *::after {
  transition: 
    background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
    background 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
    color 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
    fill 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
    stop-color 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific fix for SVG Gradient Stops */
stop {
  transition: stop-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sunset Theme */
.sunset-theme {
  --theme-primary: #ff7300; /* Orange */
  --theme-secondary: #fe9900; /* Yellow-orange */
  --theme-accent: #ffb700; /* Bright yellow-orange */
  --theme-wave-1: #ffb700; /* Bright orange */
  --theme-wave-2: #fe9900; /* Yellow-orange */
  --theme-wave-3: #ff7300; /* Orange */
  --theme-wave-4: #fd4401; /* Red-orange */
  --theme-wave-5: #fd4401; /* Red-orange */
  --theme-wave-6: #ff2700; /* Red */
  --theme-bg-gradient-1: #ff7300; /* Orange */
  --theme-bg-gradient-2: #fe9900; /* Yellow-orange */
  --theme-bg-gradient-3: #ffb700; /* Bright yellow */
  --theme-water-1: #ff7300; /* Orange */
  --theme-water-2: #fd4401; /* Red-orange */
  --theme-water-3: #000520; /* Keep dark */
}

/* Night Theme */
.night-theme {
  --theme-primary: #006cff; /* Light Blue */
  --theme-secondary: #0133b8; /* Deep Blue */
  --theme-accent: #a864fd; /* Purple */
  --theme-wave-1: #a864fd; /* Purple */
  --theme-wave-2: #0133b8; /* Deep Blue */
  --theme-wave-3: #000000; /* Black */
  --theme-wave-4: #000000; /* Black */
  --theme-wave-5: #0133b8; /* Deep Blue */
  --theme-wave-6: #000000; /* Black */
  --theme-bg-gradient-1: #0133b8; /* Deep Blue */
  --theme-bg-gradient-2: #000000; /* Black */
  --theme-bg-gradient-3: #1a0033; /* Dark Purple */
  --theme-water-1: #001a4d; /* Darkest Blue */
  --theme-water-2: #000000; /* Black */
  --theme-water-3: #000000; /* Black */
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: #000000;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 1200px;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  line-height: 1;
}
ul {
  list-style: none;
}

/* --- UTILITY --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  width: 100%;
}

/* Redesigned Reveal Logic for solid sliding */
.reveal {
  transform: translateY(60px);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.reveal.visible {
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* --- SECTION LABEL --- */
.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--theme-accent);
  margin-bottom: 24px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-body {
  font-size: clamp(16px, 1.15vw, 19px);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 540px;
}

/* --- AI & TECHNOLOGY ZIG-ZAG --- */
/* ==========================================================================
   SYSTEM FLOW SECTION (Storytelling Path)
   ========================================================================== */
/* ==========================================================================
   SYSTEM FLOW SECTION (Storytelling Path)
   ========================================================================== */
.system-flow {
  position: relative;
  padding: 160px 0;
  background: var(--bg-dark);
  overflow: hidden;
}

.flow-header {
  margin-bottom: 120px;
  text-align: center;
  max-width: 100%;
  padding: 0 40px;
}

.flow-header .section-title {
  font-size: 140px; /* Large cinematic size */
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 30px;
}

.flow-header .section-body {
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.7;
}

.flow-viz-wrapper {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  min-height: 1200px;
}

/* SVG Line Pathing */
.flow-line-stage {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100%;
  z-index: 1;
}

.flow-svg {
  width: 100%;
  height: 100%;
  fill: none;
}

.flow-path-bg {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2;
  stroke-dasharray: 8 8;
}

.flow-path-fill {
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  stroke-dasharray: 5000;
  stroke-dashoffset: 5000;
}

/* Steps Container & Rows */
.flow-steps-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 80px; /* Balanced spacing */
}

.flow-step-row {
  display: flex;
  align-items: center;
  width: 100%;
  transition: opacity 0.4s ease;
  min-height: 400px; /* Ensure trigger space */
}

/* Only one active step at a time logic relies on JS, but CSS handles the state */
.flow-side {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.side-left { justify-content: flex-end; }
.side-right { justify-content: flex-start; }

.flow-node-anchor {
  flex: 0 0 140px; /* Consistent center channel for the path */
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.flow-node {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1.1);
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: scale(0);
}

/* Active Node State */
.flow-step-row.active .flow-node {
  opacity: 1;
  background: #fff;
  transform: scale(1.5);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

/* Card Styling & Presence */
.flow-image-card,
.flow-text-card {
  width: 100%;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  transition: 
    opacity 0.6s ease,
    visibility 0.6s ease,
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1.1);
}

.flow-image-card {
  max-width: 480px;
  aspect-ratio: 16/10;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.flow-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.flow-text-card {
  max-width: 380px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

/* Hidden Positonal Offsets for Bounce-In */
.side-left .flow-text-card,
.side-left .flow-image-card {
  transform: translateX(-140px) rotateY(15deg) scale(0.9);
}

.side-right .flow-text-card,
.side-right .flow-image-card {
  transform: translateX(140px) rotateY(-15deg) scale(0.9);
}

/* Reveal Active State */
.flow-step-row.active .flow-text-card,
.flow-step-row.active .flow-image-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) rotateY(0) scale(1);
}

/* Specific delay for text card to follow image card */
.flow-step-row.active .flow-text-card {
  transition-delay: 0.15s;
}

.flow-card-idx {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 12px;
  display: block;
}

.flow-card-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.flow-card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

/* Footer & Responsive */
.flow-footer-text {
  margin-top: 180px;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.flow-footer-text p {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.2vw, 58px); /* Matches reveal intro style */
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Responsive Flow */
@media (max-width: 1024px) {
  .flow-line-stage {
    left: 40px;
    transform: none;
  }
  .flow-node-anchor {
    flex: 0 0 80px;
    justify-content: flex-start;
    padding-left: 31px;
  }
  .flow-side-content:first-child {
    display: none; /* Hide empty side on mobile */
  }
  .flow-step-row {
    flex-direction: row !important;
  }
  .flow-card {
    max-width: 100%;
  }
}

.ai-tech {
  position: relative;
  /* ... rest ... */
  z-index: 4;
  padding: clamp(90px, 12vw, 170px) 0 clamp(80px, 10vw, 140px);
}

.ai-tech .container {
  max-width: none;
  padding-left: 164px;
  padding-right: 164px;
}

.ai-tech-header {
  max-width: 860px;
  margin: 0 auto clamp(70px, 8vw, 120px);
  text-align: center;
}

.ai-tech-header .section-title {
  font-size: 82px;
  margin-bottom: 22px;
}

.ai-tech-header .section-body {
  margin: 0 auto;
  max-width: 760px;
}

.ai-tech-stack {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: clamp(70px, 9vw, 130px);
}

.ai-tech-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 40px;
  align-items: center;
}

.ai-tech-block--reverse {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ai-tech-copy {
  grid-column: 1 / span 3;
  width: 100%;
  max-width: none;
  justify-self: start;
}

.ai-tech-block--reverse .ai-tech-copy {
  grid-column: 4 / span 3;
  justify-self: start;
}

.ai-tech-visual {
  grid-column: 4 / span 3;
  width: 100%;
}

.ai-tech-block--reverse .ai-tech-visual {
  grid-column: 1 / span 3;
  width: 100%;
}

.ai-tech-copy h3 {
  font-family: var(--font-head);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 22px;
}

.ai-tech-copy p {
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.75;
  color: var(--text-secondary);
}

.ai-tech-visual {
  min-height: 360px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tech-accent) 30%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(4, 10, 34, 0.82);
}

.ai-tech-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.7;
}

.ai-tech-block--ai {
  --tech-accent: #b48cff;
}

.ai-tech-block--data {
  --tech-accent: #5ea7ff;
}

.ai-tech-block--cloud {
  --tech-accent: #76e6b3;
}

.tech-node,
.tech-line,
.data-card,
.data-bar,
.cloud-panel,
.cloud-orbit {
  position: absolute;
  display: block;
}

.tech-node {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--tech-accent) 34%, rgba(180, 140, 255, 0.08) 70%);
  box-shadow: 0 0 34px color-mix(in srgb, var(--tech-accent) 80%, transparent);
}

.tech-node--1 { left: 18%; top: 22%; }
.tech-node--2 { right: 22%; top: 18%; width: 54px; height: 54px; }
.tech-node--3 { left: 36%; bottom: 22%; width: 96px; height: 96px; }
.tech-node--4 { right: 16%; bottom: 26%; width: 44px; height: 44px; }

.tech-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tech-accent) 70%, transparent), transparent);
  transform-origin: left center;
}

.tech-line--1 { left: 26%; top: 33%; width: 42%; transform: rotate(-8deg); }
.tech-line--2 { left: 42%; top: 55%; width: 34%; transform: rotate(18deg); }
.tech-line--3 { left: 28%; bottom: 35%; width: 48%; transform: rotate(-24deg); }

.data-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.data-card--1 { left: 12%; top: 18%; width: 34%; height: 30%; }
.data-card--2 { right: 12%; top: 28%; width: 36%; height: 26%; }
.data-card--3 { left: 24%; bottom: 16%; width: 52%; height: 26%; }

.data-bar {
  left: 31%;
  bottom: 24%;
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, var(--tech-accent));
}

.data-bar--1 { height: 70px; transform: translateX(-42px); opacity: 0.75; }
.data-bar--2 { height: 112px; opacity: 0.95; }
.data-bar--3 { height: 86px; transform: translateX(42px); opacity: 0.82; }

.cloud-panel {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.cloud-panel--1 { left: 16%; top: 22%; width: 46%; height: 28%; }
.cloud-panel--2 { right: 14%; top: 38%; width: 38%; height: 24%; }
.cloud-panel--3 { left: 28%; bottom: 16%; width: 48%; height: 22%; }

.cloud-orbit {
  border: 1px solid color-mix(in srgb, var(--tech-accent) 55%, transparent);
  border-radius: 50%;
  opacity: 0.55;
}

.cloud-orbit--1 { left: 18%; top: 16%; width: 64%; height: 64%; }
.cloud-orbit--2 { left: 30%; top: 26%; width: 40%; height: 40%; }

/* --- Scroll Reveal Sentence --- */
.reveal-sentence-section {
  position: relative;
  z-index: 6;
  padding: 300px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20vh;
}

.reveal-sentence-wrap {
  position: relative;
  display: block;
  text-align: center;
  width: 95%;
  max-width: 1000px; /* Tightened for vertical stack balance */
  margin: 0 auto;
}

.reveal-sentence {
  font-family: var(--font-head);
  font-size: 120px; /* Adjusted to 120px as requested */
  font-weight: 700;
  line-height: 1.0; /* Tighter line height for large text impact */
  letter-spacing: -0.04em;
  color: transparent;
  margin: 0;
  display: block;
}

.rs-word {
  display: inline;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.5s ease;
  white-space: nowrap;
}

.rs-word::after {
  content: ' ';
}

.rs-word.revealed {
  color: #fff;
}

.rs-highlight {
  /* base state, color inherited from .rs-word */
}

.rs-highlight.revealed {
  color: #fff;
}

.rs-underline {
  display: block;
  position: absolute;
  bottom: -15px;
  right: 0;
  height: 4px;
  width: 0%;
  background: #fff;
  border-radius: 2px;
  transition: width 0.2s ease;
}

.capabilities {
  position: relative;
  z-index: 4;
  margin-top: -700px;
  padding: clamp(20px, 4vw, 64px) 0 clamp(120px, 12vw, 180px);
}

.showcase + .capabilities {
  margin-top: 200px;
}

.capabilities-intro {
  max-width: 1080px;
  margin-bottom: 52px;
}

.capabilities-intro-copy {
  font-size: clamp(21px, 1.9vw, 33px);
  line-height: 1.5;
  color: #f3f7ff;
  letter-spacing: -0.02em;
}

.capabilities-header {
  max-width: 1000px;
  margin-bottom: 60px;
  margin-left: clamp(40px, 12vw, 160px); /* Nudged right as requested */
  text-align: left;
}

.capabilities-intro {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.03em;
}

.capabilities-grid {
  display: flex;
  gap: 24px;
  align-items: center; 
  margin-left: clamp(40px, 10vw, 120px); /* Balanced side gutters */
  margin-right: clamp(40px, 10vw, 120px);
  margin-top: 100px;
  padding-bottom: 120px; /* Also increased bottom padding for better section breathing */
}

.capability-card-anchor {
  flex: 1;
}

.capability-card {
  width: 100%;
  position: relative;
  height: 400px; /* Synchronized height for all cards */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.1s ease;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.capability-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.capability-card:active {
  transform: scale(0.97); /* Click Feedback */
}

/* Specific Wave Sequence (1: Mid, 2: Lowest, 3: Highest, 4: Low-Mid) */
.capability-card-anchor:nth-child(1) { transform: translateY(0); }
.capability-card-anchor:nth-child(2) { transform: translateY(80px); }
.capability-card-anchor:nth-child(3) { transform: translateY(-60px); }
.capability-card-anchor:nth-child(4) { transform: translateY(40px); }

.capability-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-align: left;
  margin: 0;
}

.capability-desc {
  max-width: 92%;
  margin: 0;
  margin-top: auto;
  text-align: left;
  font-family: var(--font-body);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

.capability-card--violet { --card-accent: #b48cff; }
.capability-card--blue { --card-accent: #5ea7ff; }
.capability-card--green { --card-accent: #76e6b3; }
.capability-card--orange { --card-accent: #ff9d00; }



@media (max-width: 1024px) {
  .capabilities-grid {
    margin-left: 28px;
    margin-right: 28px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 24px;
    gap: 16px;
  }
  .capability-card {
    flex: 0 0 280px;
    height: 360px !important; /* Uniform height for clean mobile scrolling */
  }
  .capabilities-grid::-webkit-scrollbar {
    display: none;
  }
}



@media (max-width: 1280px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ai-tech .container {
    padding-left: var(--side-pad);
    padding-right: var(--side-pad);
  }

  .ai-tech-stack {
    grid-template-columns: 1fr;
  }

  .ai-tech-block,
  .ai-tech-block--reverse {
    grid-template-columns: 1fr;
  }

  .ai-tech-copy,
  .ai-tech-visual,
  .ai-tech-block--reverse .ai-tech-copy,
  .ai-tech-block--reverse .ai-tech-visual {
    grid-column: auto;
  }

  .ai-tech-block--reverse .ai-tech-copy {
    order: -1;
  }

  .ai-tech-visual {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .ai-tech {
    padding-top: 80px;
  }

  .ai-tech-header .section-title {
    font-size: 44px;
  }

  .ai-tech-visual {
    min-height: 260px;
    border-radius: 24px;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 260px;
  }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--button-gap);
  font-family: var(--font-body);
  font-weight: var(--button-font-weight);
  font-size: var(--button-font-size);
  line-height: 1;
  border: none;
  cursor: pointer;
  border-radius: var(--button-radius);
  padding: var(--button-pad-y) var(--button-pad-x);
  --mx: 0px;
  --my: 0px;
  --button-scale: 1;
  transform: translate3d(var(--mx), var(--my), 0) scale(var(--button-scale));
  transition:
    background-color var(--button-motion),
    border-color var(--button-motion),
    color var(--button-motion),
    box-shadow var(--button-motion),
    transform var(--button-motion);
  position: relative;
  overflow: hidden;
  margin: 8px 0; /* Safety margin so they don't touch stuff */
  will-change: transform;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 24px var(--orange-glow);
}

.btn-primary:hover {
  --button-scale: var(--button-hover-scale);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  --button-scale: var(--button-hover-scale);
}

.btn-arrow::after {
  content: "→";
  transition: transform 0.3s ease;
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* Theme Toggle Button (Circular Icon) */
.btn-theme-toggle {
  background: var(--theme-primary);
  color: #fff;
  border: none;
  width: var(--button-icon-size);
  height: var(--button-icon-size);
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color var(--button-motion),
    border-color var(--button-motion),
    box-shadow var(--button-motion),
    transform var(--button-motion);
  position: relative;
  overflow: hidden;
  z-index: 1000;
}

body.menu-open .btn-theme-toggle {
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.btn-theme-toggle:hover {
  --button-scale: var(--button-hover-scale);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-theme-toggle svg {
  width: var(--button-icon-glyph);
  height: var(--button-icon-glyph);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-theme-toggle.sunset-mode {
  background: #E85D04; /* Strong sunset orange */
  border: none;
}

.btn-theme-toggle.night-mode {
  background: #111827; /* Deep night blue/purple */
  border: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2100;
  padding: 20px 0;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  background: transparent;
}

.navbar.scrolled {
  background: transparent;
  backdrop-filter: none;
  padding: 14px 0;
  border-bottom: none;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  text-decoration: none;
  margin-left: 8px;
  overflow: hidden;
}

.brand-logo {
  height: 60px;
  width: auto;
}

.brand-name-mask {
  display: inline-flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  margin-left: 0;
}

.brand-name {
  height: 60px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  transform: translateX(-100%);
  filter: brightness(0) invert(1);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.brand-open .brand-name-mask,
.nav-brand:hover .brand-name-mask {
  max-width: 400px;
}

.navbar.brand-open .brand-name,
.nav-brand:hover .brand-name {
  transform: translateX(0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 16px;
}
.nav-cta {
  padding: var(--button-pad-y) var(--button-pad-x) !important;
  font-size: var(--button-font-size) !important;
  font-weight: var(--button-font-weight) !important;
  line-height: 1 !important;
  background: #fff !important;
  color: #010e40 !important;
  position: relative;
  z-index: 2200;
}

.btn-jiggle {
  animation: btnJiggleAnim 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes btnJiggleAnim {
  0%   { transform: scale(1)    translate(var(--mx, 0), var(--my, 0)); }
  15%  { transform: scale(1.14) translate(var(--mx, 0), var(--my, 0)); }
  30%  { transform: scale(0.91) translate(calc(var(--mx, 0) - 2px), calc(var(--my, 0) + 2px)); }
  45%  { transform: scale(1.07) translate(calc(var(--mx, 0) + 1px), calc(var(--my, 0) - 1px)); }
  60%  { transform: scale(0.96) translate(calc(var(--mx, 0) - 1px), calc(var(--my, 0) + 1px)); }
  75%  { transform: scale(1.03) translate(var(--mx, 0), var(--my, 0)); }
  88%  { transform: scale(0.99) translate(var(--mx, 0), var(--my, 0)); }
  100% { transform: scale(1)    translate(var(--mx, 0), var(--my, 0)); }
}

.nav-menu-btn {
  width: var(--button-icon-size);
  height: var(--button-icon-size);
  border-radius: 50%;
  background: #0048E9;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition:
    background-color var(--button-motion),
    border-color var(--button-motion),
    box-shadow var(--button-motion),
    transform var(--button-motion);
  position: relative;
  z-index: 2000;
}

.nav-menu-btn b {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: var(--button-menu-line-width);
  height: var(--button-menu-line-height);
  background-color: #fff;
  transform-origin: center;
  transition:
    top 0.34s cubic-bezier(0.2, 1.35, 0.28, 1),
    opacity 0.2s ease,
    transform 0.42s cubic-bezier(0.2, 1.45, 0.24, 1);
}
.nav-menu-btn b:nth-child(1) {
  top: calc(50% - var(--button-menu-line-gap));
}
.nav-menu-btn b:nth-child(2) {
  top: 50%;
}
.nav-menu-btn b:nth-child(3) {
  top: calc(50% + var(--button-menu-line-gap));
}

/* Open State (Close Icon Transition) */
body.menu-open .nav-menu-btn b:nth-child(1),
.nav-menu-btn.active b:nth-child(1) {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}
body.menu-open .nav-menu-btn b:nth-child(2),
.nav-menu-btn.active b:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}
body.menu-open .nav-menu-btn b:nth-child(3),
.nav-menu-btn.active b:nth-child(3) {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

/* --- Cinematic Diving Layers --- */
.hero-sky {
  position: absolute;
  top: 0;
  left: -1vw;
  width: 102vw;
  height: 100%;
  background: linear-gradient(180deg, #0033cc 0%, #00ccff 50%, #cae5ec 70%); /* Default Ocean */
  z-index: 1;
  will-change: transform;
  overflow: hidden;
}

.hero-sky::after,
.hero-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Sunset Layer */
.hero-sky::after {
  background: linear-gradient(180deg, #ff7300 0%, #fe9900 30%, #ffb700 50%, #f5cbff 80%);
  z-index: 1;
}

/* Night Layer */
.hero-sky::before {
  background: linear-gradient(0deg, #0133b8 0%, #000000 70%, #1a0033 100%);
  z-index: 2;
}

.sunset-theme .hero-sky::after { opacity: 1; }
.night-theme .hero-sky::before { opacity: 1; }

/* --- Wind System (Static Background) --- */
.wind-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1; /* Behind clouds */
}

.wind {
  position: absolute;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
  opacity: 0.3; /* Subtle background presence */
}

.wind--1 {
  top: 10%;
  left: 0;
  width: 100%;
  height: auto;
}

.wind--2 {
  top: 40%;
  right: 0;
  width: 80%;
  height: auto;
  opacity: 0.2;
}

/* --- Cloud System --- */
.cloud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2; /* In front of wind */
}

/* --- Mountain System --- */
.mountain-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3; /* In front of clouds, behind waves */
}

.mountain {
  position: absolute;
  bottom: 20%; /* Near sea level */
  left: 90%;
  transform: translateX(-50%);
  width: 20%;
  opacity: 1;
  mix-blend-mode: screen; /* Blend with sky aesthetic */
}

/* --- Submarine --- */
.submarine-layer {
  position: absolute;
  top: -190px;
  left: 55%;
  z-index: 10;
  pointer-events: none;
}

.submarine {
  width: clamp(400px, 8vw, 140px);
  animation: submarine-bob 6s ease-in-out infinite;
}

@keyframes submarine-bob {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-1.5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.cloud {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
  mix-blend-mode: screen;
  will-change: transform, filter;
  transition: transform 0.1s linear, filter 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sunset-theme .cloud {
  /* Default subtle orange for all clouds first */
  filter: brightness(0.7) sepia(1) hue-rotate(-20deg) saturate(10) contrast(1.1);
  opacity: 1; /* Bring all clouds to full opacity for a dramatic sunset */
}

.sunset-theme .cloud--1,
.sunset-theme .cloud--2 {
  /* High contrast filter: Maps white to bright #ff2700 red and pale blue to a darker red */
  /* This darker red simulates lower opacity when combined with mix-blend-mode: screen */
  filter: brightness(0.4) contrast(3) sepia(1) hue-rotate(-55deg) saturate(15);
  opacity: 1;
}

.sunset-theme .cloud--3,
.sunset-theme .cloud--4,
.sunset-theme .cloud--5,
.sunset-theme .cloud--6 {
  /* Soft Lavender filter (#f5cbff) for an ethereal twilight effect */
  filter: brightness(0.9) sepia(0.5) hue-rotate(220deg) saturate(6) contrast(1.1);
  opacity: 1;
}

/* Night Theme Clouds */
.night-theme .cloud--1,
.night-theme .cloud--2 {
  /* Deep Blue Night clouds */
  filter: brightness(0.4) sepia(1) hue-rotate(210deg) saturate(10) contrast(1.3);
}

.night-theme .cloud--3,
.night-theme .cloud--4,
.night-theme .cloud--5,
.night-theme .cloud--6 {
  /* Deep Purple atmospheric layers */
  filter: brightness(0.5) sepia(1) hue-rotate(260deg) saturate(12) contrast(1.2);
}

/* Cloud 1 — Top-left, small, high in sky */
.cloud--1 {
  top: 40%;
  left: -15%;
  width: clamp(180px, 22vw, 320px);
  opacity: 1;
  animation: cloud-drift-1 90s linear infinite;
}

/* Cloud 2 — Mid-right, medium */
.cloud--2 {
  top: 22%;
  right: -8%;
  width: clamp(200px, 25vw, 380px);
  opacity: 1;
  animation: cloud-drift-2 110s linear infinite;
}

/* Cloud 3 — Low-left, near wave line — peeks behind waves */
.cloud--3 {
  top: 60%;
  left: -0%;
  width: clamp(620px, 28vw, 400px);
  opacity: 0.35;
  animation: cloud-drift-3 80s linear infinite;
}

/* Cloud 4 — Center-ish, higher */
.cloud--4 {
  top: -11%;
  left: -8%;
  width: clamp(160px, 18vw, 280px);
  opacity: 0.4;
  animation: cloud-drift-4 120s linear infinite;
}

/* Cloud 5 — Low-right, large, near wave line */
.cloud--5 {
  top: 60%;
  right: 2%;
  width: clamp(280px, 32vw, 480px);
  opacity: 0.5;
  animation: cloud-drift-5 100s linear infinite;
}

/* Cloud 6 — Very high, far right, subtle */
.cloud--6 {
  top: 5%;
  right: 15%;
  width: clamp(140px, 16vw, 240px);
  opacity: 0.35;
  animation: cloud-drift-6 130s linear infinite;
}

/* Slow, organic drift keyframes — each cloud drifts at its own pace */
@keyframes cloud-drift-1 {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8vw);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes cloud-drift-2 {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10vw);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes cloud-drift-3 {
  0% {
    transform: scaleX(-1) translateX(0);
  }
  50% {
    transform: scaleX(-1) translateX(6vw);
  }
  100% {
    transform: scaleX(-1) translateX(0);
  }
}

@keyframes cloud-drift-4 {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5vw);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes cloud-drift-5 {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-7vw);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes cloud-drift-6 {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4vw);
  }
  100% {
    transform: translateX(0);
  }
}

.hero-water {
  position: absolute;
  top: 78%;
  left: -1vw;
  width: 102vw;
  height: 600vh;
  background: linear-gradient(180deg, rgb(255, 255, 255) 0%, #054fee 10%, #054fee 30%, #000520 60%, #000000 100%); /* Default Ocean with misted top */
  background-position: 0 -80px;
  background-size: 100% calc(100% + 80px);
  z-index: 3;
  will-change: transform;
}

.hero-water::after,
.hero-water::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sunset Water */
.hero-water::after {
  background: linear-gradient(180deg, #ff7300 0%, #fd4401 30%, #000520 60%, #000000 70%);
  z-index: 1;
}

/* Night Water */
.hero-water::before {
  background: linear-gradient(180deg, #001a4d 0%, #000000 50%, #000000 100%);
  z-index: 2;
}

.sunset-theme .hero-water::after { opacity: 1; }
.night-theme .hero-water::before { opacity: 1; }

.hero-waves-container {
  position: absolute;
  top: -220px;
  left: 0;
  width: 100%;
  height: 400px;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
  -webkit-mask-image: linear-gradient(
    180deg,
      start: "top 95%",
      end: "bottom 5%",
      scrub: 4,ansparent 100%
  );
  mask-image: linear-gradient(180deg, white 0%, white 40%, transparent 100%);
}

#causticCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200vh;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.6; /* Increased slightly since blur is gone */
  will-change: transform;
}

/* --- Unified Platform Scroll Carousel --- */
.unified-platform {
  position: relative;
  z-index: 5;
  height: 360vh;
  overflow: hidden;
  color: #fff;
}

.unified-sticky {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.unified-title-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1320px, calc(100vw - 48px));
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 2;
  will-change: transform;
}

.unified-title {
  font-family: var(--font-head);
  font-size: clamp(56px, 6.8vw, 118px);
  line-height: 0.98;
  letter-spacing: 0em;
  margin: 0;
}

.unified-carousel {
  --unified-card-width: min(calc(30vw - 40px), 420px);
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.unified-card-track {
  position: absolute;
  left: calc(50% - (var(--unified-card-width) / 2));
  top: 58%;
  display: flex;
  gap: 0;
  align-items: center;
  transform: translate(112vw, -50%);
  will-change: transform;
  backface-visibility: hidden;
}

.unified-card {
  flex: 0 0 var(--unified-card-width);
  height: min(64vh, 680px);
  padding: clamp(10px, 1.2vw, 16px);
  border-radius: clamp(18px, 2vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle border for all cards */
  background: linear-gradient(150deg, rgba(8, 20, 52, 1), rgba(2, 6, 20, 1)); /* Dark navy inner gradient */
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  contain: layout paint;
  backface-visibility: hidden;
  transform: translateZ(0);
  pointer-events: none;
}

.unified-card-visual {
  position: relative;
  height: 100%; /* Now takes full height for image cards */
  overflow: hidden;
  border-radius: clamp(8px, 1vw, 14px);
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.58), transparent 18%),
    linear-gradient(135deg, var(--card-a), var(--card-b));
}

.unified-card-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.unified-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 36, 0.25); /* Subtle dark overlay so they do not overpower text cards */
  z-index: 1;
}

.unified-card--student {
  --card-a: #08080d;
  --card-b: #000000;
}

.unified-card--student .unified-card-visual {
  background: #000;
}

.unified-card--student .visual-orb,
.unified-card--student .visual-line {
  display: none;
}

.unified-card--teacher {
  --card-a: #16b980;
  --card-b: #046f72;
}

.unified-card--teacher .visual-orb,
.unified-card--teacher .visual-line {
  display: none;
}

.unified-card--teacher .unified-card-image {
  /* Inherit uniform scaling */
}

.unified-card--school {
  --card-a: #9b66ff;
  --card-b: #3820a8;
}

.unified-card--school .visual-orb,
.unified-card--school .visual-line {
  display: none;
}

.unified-card--school .unified-card-image {
  /* Inherit uniform scaling */
}

.unified-card-visual h3 {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 1.6vw, 26px);
  width: calc(100% - 48px);
  max-width: none;
  margin: 0;
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-align: center;
  color: #fff;
  transform: translateX(-50%);
  z-index: 2;
}

.unified-card--content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  margin-right: 60px; /* Increased gap to the next product pair */
}

.unified-card--image {
  margin-right: -4px; /* Reduced gap between matching image and text */
  padding: 0; /* Remove padding so it reaches the card edges */
}

.unified-card--image .unified-card-visual {
  border-radius: clamp(18px, 2vw, 30px); /* Match outer card radius */
}

.unified-card-content-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.unified-card-content-inner h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(28px, 3.0vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: left; /* Left align */
  color: #fff;
  align-self: flex-start; /* Move title to top left */
}

.unified-card p,
.unified-card-content-inner p {
  margin: 0;
  max-width: 100%;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.5;
  text-align: left; /* Left align */
  color: #fff;
  align-self: flex-start; /* Move description to bottom left */
}

.visual-orb,
.visual-line {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.visual-orb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.visual-orb--large {
  width: 34%;
  aspect-ratio: 1;
  right: 8%;
  top: 12%;
}

.visual-orb--small {
  width: 15%;
  aspect-ratio: 1;
  left: 10%;
  top: 18%;
}

.visual-line {
  left: 12%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.visual-line--one {
  top: 42%;
  transform: rotate(-8deg);
}

.visual-line--two {
  top: 58%;
  transform: rotate(7deg);
}

.unified-explore-cta {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: var(--button-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  background: #fff;
  color: #07194e;
  text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  --mx: 0px;
  --my: 0px;
  --button-scale: 1;
  transform: translate3d(var(--mx), var(--my), 0) scale(var(--button-scale));
  will-change: width, transform;
  transition:
    width 0.68s var(--button-spring),
    transform 0.68s var(--button-spring);
}

.unified-explore-cta:hover {
  width: 190px;
  --button-scale: var(--button-hover-scale);
  justify-content: flex-start;
  padding-left: 28px;
  padding-right: 44px;
}

.unified-explore-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  line-height: 1;
  opacity: 0;
  transition:
    max-width 0.58s var(--button-spring),
    opacity 0.2s ease 0.08s;
}

.unified-explore-cta:hover .unified-explore-text {
  max-width: 120px;
  opacity: 1;
}

.unified-explore-arrow {
  position: absolute;
  left: 50%;
  width: 26px;
  height: 26px;
  display: block;
  flex: 0 0 auto;
  fill: #07194e;
  transform: translateX(-50%);
  transition: left 0.68s var(--button-spring), transform 0.68s var(--button-spring);
}

.unified-explore-arrow path {
  stroke: #07194e;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.unified-explore-cta:hover .unified-explore-arrow {
  left: calc(100% - 34px);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .unified-platform {
    height: 320vh;
  }

  .unified-title {
    font-size: clamp(38px, 12vw, 58px);
  }

  .unified-carousel {
    --unified-card-width: 82vw;
  }

  .unified-card {
    height: min(48vh, 420px);
    padding: 16px;
  }

  .unified-card-visual {
    height: 72%;
  }

  .unified-card-visual h3 {
    max-width: 84%;
    font-size: clamp(28px, 8vw, 40px);
  }

  .unified-card p {
    max-width: 92%;
    font-size: 14px;
  }
}

/* --- Showcase Section (Pinned Scroll) --- */
.showcase {
  position: relative;
  color: var(--text-primary);
  height: 400vh; /* Scroll room (100vh * 4 roughly) */
  z-index: 5;
  overflow: hidden; /* Prevent any horizontal leaks */
  width: 100%;
}

.showcase-sticky {
  position: relative;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  contain: layout paint;
}

.showcase-container {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr; /* 38% / 62% balance */
  align-items: center; /* Center columns vertically */
  gap: 40px;
  height: 100vh;
  padding: 0 clamp(40px, 6vw, 100px);
}

/* Left Side: Navigation */
.showcase-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-left: clamp(40px, 8vw, 120px); /* Nudged right as requested */
}

/* Right Side: Primary Content */
.showcase-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.showcase-visual-stage {
  position: relative; /* Changed from absolute to flow withflex */
  width: 100%;
  max-width: 680px; /* Reduced scale as requested */
  height: min(45vh, 440px);
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
  z-index: 2;
  margin-top: -80px; /* Pull visual higher */
  margin-bottom: 30px; /* Space between visual and description */
}

.showcase-visual-item {
  position: absolute;
  inset: 0;
  visibility: hidden;
  will-change: opacity, filter;
}

.showcase-visual-item.active {
  visibility: visible;
  filter: brightness(1);
}

.showcase-visual-item.inactive {
  filter: brightness(0.55);
}

.showcase-slide-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px; /* Align width with smaller image */
  min-height: 180px; /* Prevent collapse for absolute children */
  z-index: 1;
}

.showcase-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.showcase-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: translateZ(0);
}

.showcase-info {
  width: 100%;
  max-width: 100%; /* Align fully with container */
  display: flex;
  flex-direction: column;
}

.showcase-item-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  margin: 12px 0 20px;
  line-height: 1.1;
  color: #fff;
}

.showcase-item-desc {
  font-size: 19px; /* Slightly larger as requested */
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  line-height: 1.6;
}

.showcase-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.showcase-bullets li {
  font-size: 14px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.showcase-bullets li::before {
  content: "—";
  opacity: 0.5;
}

/* Right Side: Fixed Indicator Titles */
.showcase-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-left: 88px;
}

.showcase-titles {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Even tighter spacing for larger text */
  will-change: transform;
}

.showcase-title-item {
  font-family: var(--font-head);
  font-size: 110px; /* Large cinematic size */
  font-weight: 700;
  color: #fff;
  opacity: 0.12; /* More muted inactive */
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  line-height: 0.85; /* Tighter for 140px text impact */
  user-select: none;
  white-space: nowrap;
  transform: scale(0.7); /* Scale down inactive */
  transform-origin: left center;
}

.showcase-title-item.active {
  opacity: 1;
  transform: translateX(15px) scale(1.3); /* Hits roughly 140px visual impact */
}


#bubbleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 420vh; /* Match the extended water depth */
  pointer-events: none;
  z-index: 10; /* In front of caustics */
  mix-blend-mode: screen;
  opacity: 1; /* Always visible since it moves out of view at top */
  background: transparent;
  will-change: transform;
  transform: translateZ(0);
}

/* --- Internal Water Volume Textures --- */
.hero-water-textures {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.water-texture {
  position: absolute;
  left: -25%;
  width: 150%;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(4, 212, 252, 0.07) 0%,
    transparent 70%
  );
  transform: rotate(-20deg);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.water-texture--1 {
  top: -100px;
  animation: waterFlow 20s infinite linear alternate;
}
.water-texture--2 {
  top: 400px;
  animation: waterFlow 25s infinite linear reverse;
  opacity: 0.5;
}
.water-texture--3 {
  top: 800px;
  animation: waterFlow 30s infinite linear alternate-reverse;
}
.water-texture--4 {
  top: 1400px;
  animation: waterFlow 35s infinite linear;
  opacity: 0.4;
}

@keyframes waterFlow {
  0% {
    transform: translate(0, 0) rotate(-20deg) scale(1);
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
    transform: translate(10%, 50px) rotate(-15deg) scale(1.1);
  }
  100% {
    transform: translate(-5%, 100px) rotate(-25deg) scale(0.95);
    opacity: 0.3;
  }
}

.hero-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%; /* Slight overflow for surging */
}

.hero-wave--back {
  opacity: 1;
}
.hero-wave--mid {
  opacity: 1;
}
#wavePathFront {
  opacity: 1;
}

#wavePathBackShine,
#wavePathMidShine,
#wavePathFrontShine {
  mix-blend-mode: plus-lighter;
  pointer-events: none;
}

#wavePathFrontMid {
  mix-blend-mode: screen;
  pointer-events: none;
}

/* --- God Rays (Underwater Light Beams) --- */
.god-rays {
  position: absolute;
  top: -120px;
  left: -10vw;
  width: 120vw;
  height: 200vh;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
  /* Soft gradient mask to fade in the rays from the top */
  -webkit-mask-image: linear-gradient(to bottom, transparent 120px, black 300px);
  mask-image: linear-gradient(to bottom, transparent 120px, black 300px);
}

.god-ray {
  position: absolute;
  top: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(0, 213, 255, 0.15) 50%,
    transparent 100%
  );
  transform-origin: top center;
  mix-blend-mode: screen;
  will-change: height, opacity;
  transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme-specific God Ray Colors */
.sunset-theme .god-ray {
  background: linear-gradient(
    180deg,
    rgba(255, 183, 0, 0.4) 0%,
    rgba(255, 68, 0, 0.15) 50%,
    transparent 100%
  );
}

.night-theme .god-ray {
  background: linear-gradient(
    180deg,
    rgba(168, 100, 253, 0.3) 0%,
    rgba(1, 51, 184, 0.1) 50%,
    transparent 100%
  );
}

/* Large ray */
.god-ray--1 {
  left: 20%;
  width: 700px;
  height: 100vh;
  transform: rotate(-20deg) scaleY(0.8);
  animation: godray-breathe-1 18s ease-in-out infinite;
}

/* Medium ray */
.god-ray--2 {
  left: 55%;
  width: 20px;
  height: 80vh;
  transform: rotate(-20deg) scaleY(0.6);
  animation: godray-breathe-2 22s ease-in-out infinite 3s;
}

/* Short rays */
.god-ray--3 {
  left: 8%;
  width: 50px;
  height: 50vh;
  transform: rotate(-20deg) scaleY(0.5);
  animation: godray-breathe-3 15s ease-in-out infinite 6s;
}

.god-ray--4 {
  left: 72%;
  width: 600px;
  height: 60vh;
  transform: rotate(-20deg) scaleY(0.7);
  animation: godray-breathe-1 20s ease-in-out infinite 8s;
}

.god-ray--5 {
  left: 42%;
  width: 45px;
  height: 45vh;
  transform: rotate(-20deg) scaleY(0.5);
  animation: godray-breathe-2 16s ease-in-out infinite 11s;
}

.god-ray--6 {
  left: 30%;
  width: 15px;
  height: 70vh;
  transform: rotate(-22deg) scaleY(0.6);
  animation: godray-breathe-3 14s ease-in-out infinite 2s;
}

.god-ray--7 {
  left: 85%;
  width: 40px;
  height: 90vh;
  transform: rotate(-18deg) scaleY(0.8);
  animation: godray-breathe-1 19s ease-in-out infinite 4s;
}

.god-ray--8 {
  left: 12%;
  width: 25px;
  height: 55vh;
  transform: rotate(-25deg) scaleY(0.5);
  animation: godray-breathe-2 21s ease-in-out infinite 7s;
}

.god-ray--9 {
  left: 65%;
  width: 300px;
  height: 75vh;
  transform: rotate(-20deg) scaleY(0.7);
  animation: godray-breathe-3 17s ease-in-out infinite 9s;
}

.god-ray--10 {
  left: 95%;
  width: 10px;
  height: 40vh;
  transform: rotate(-15deg) scaleY(0.4);
  animation: godray-breathe-1 15s ease-in-out infinite 12s;
}

@keyframes godray-breathe-1 {
  0% {
    transform: rotate(-20deg) scaleY(0.6);
    opacity: 0.5;
  }
  20% {
    transform: rotate(-20deg) scaleY(0.9);
    opacity: 0.8;
  }
  40% {
    transform: rotate(-20deg) scaleY(1);
    opacity: 1;
  }
  60% {
    transform: rotate(-20deg) scaleY(0.85);
    opacity: 0.7;
  }
  80% {
    transform: rotate(-20deg) scaleY(0.5);
    opacity: 0.4;
  }
  100% {
    transform: rotate(-20deg) scaleY(0.6);
    opacity: 0.5;
  }
}

@keyframes godray-breathe-2 {
  0% {
    transform: rotate(-20deg) scaleY(0.5);
    opacity: 0.4;
  }
  15% {
    transform: rotate(-20deg) scaleY(0.7);
    opacity: 0.7;
  }
  35% {
    transform: rotate(-20deg) scaleY(1);
    opacity: 1;
  }
  55% {
    transform: rotate(-20deg) scaleY(0.8);
    opacity: 0.8;
  }
  75% {
    transform: rotate(-20deg) scaleY(0.4);
    opacity: 0.35;
  }
  100% {
    transform: rotate(-20deg) scaleY(0.5);
    opacity: 0.4;
  }
}

@keyframes godray-breathe-3 {
  0% {
    transform: rotate(-20deg) scaleY(0.4);
    opacity: 0.4;
  }
  25% {
    transform: rotate(-20deg) scaleY(0.8);
    opacity: 0.85;
  }
  50% {
    transform: rotate(-20deg) scaleY(1);
    opacity: 1;
  }
  75% {
    transform: rotate(-20deg) scaleY(0.6);
    opacity: 0.6;
  }
  100% {
    transform: rotate(-20deg) scaleY(0.4);
    opacity: 0.4;
  }
}

.hero-discovery-container {
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  position: relative;
  z-index: 2; /* Between sky and water surface */
  padding: 0 160px;
  padding-bottom: 200px;
}

.hero-discovery {
  text-align: left;
  max-width: 1100px;
  will-change: transform;
  transform: translateY(0);
}

.hero-discovery h1 {
  font-family: var(--font-head);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero-discovery h1 .sub-text {
  display: block;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0em;
  opacity: 0.9;
  margin: 0;
  padding: 0;
  line-height: 0.9;
}

.hero-discovery h1 .accent {
  display: block;
  font-size: 160px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.9;
  margin-left: -6px;
  margin-top: -24px;
}

.hero-discovery-sub {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.25vw, 24px);
  color: #ffffff;
  max-width: 600px;
  margin-top: 20px;
  line-height: 1.6;
  opacity: 1;
  font-weight: 520;
}

/* ============================================
   UNDERWATER CONTENT
   ============================================ */
.underwater-content {
  position: absolute;
  top: 100vh; /* Moved lower */
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5; /* Above water layer */
  padding: 0 80px;
}

.underwater-grid {
  display: grid;
  grid-template-columns: 450px 800px; /* Using px instead of % */
  width: 100%;
  max-width: 1920px;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.underwater-left {
  text-align: left;
}

.underwater-title {
  font-family: var(--font-head);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
}

.title-line {
  display: block;
  font-size: 140px; /* Reduced from 140px */
}

.underwater-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 400px;
  margin-left: 393.69px; /* Push content more to the right */
  margin-top: -220px; /* Raise the description and CTA together */
}

.underwater-description {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8); /* Slightly muted */
  line-height: 1.6;
  margin-bottom: 40px; /* Increased gap before the button */
}

.btn-underwater-cta {
  background: #fff;
  color: #000;
  padding: var(--button-pad-y) var(--button-pad-x);
  margin-top: 0;
  border-radius: var(--button-radius);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  line-height: 1;
  text-decoration: none;
}

.btn-underwater-cta:hover {
  background: rgba(255, 255, 255, 0.9);
  --button-scale: var(--button-hover-scale);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 350px;
    margin-top: 40px;
  }

  .underwater-content {
    padding: 0 40px;
  }

  .underwater-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .underwater-left {
    text-align: center;
  }

  .underwater-right {
    align-items: center;
    text-align: center;
  }

  .title-line {
    font-size: 80px;
  }
}
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 350px;
    margin-top: 40px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   WHO IT'S FOR SECTION (Roles Grid)
   ========================================================================== */
.roles {
  padding: 140px 0;
  background: var(--bg-dark);
}

.roles-header {
  max-width: 980px;
  margin: 0 auto 72px;
  text-align: center;
}

.roles-header .section-title {
  font-size: clamp(54px, 5.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.roles-header .section-body {
  max-width: 660px;
  margin: 24px auto 0;
  font-size: clamp(17px, 1.18vw, 20px);
  line-height: 1.65;
}

.roles-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  gap: 48px;
  align-items: center;
}

.roles-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.role-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.role-card:hover,
.role-card.is-active {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.role-card-copy {
  flex: 1;
}

.role-card-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.role-card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.role-progress {
  height: 4px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.role-progress span {
  display: block;
  width: var(--role-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1E6BFF, #3A8DFF);
}

.roles-visual {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #05070B;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.roles-visual-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.48s ease,
    transform 0.58s cubic-bezier(0.2, 1.1, 0.24, 1);
}

.roles-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  filter: saturate(0.82) contrast(1.08) brightness(0.78);
  transition: transform 0.56s cubic-bezier(0.2, 1.12, 0.24, 1);
}

.roles-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(5, 7, 11, 0.28);
  z-index: 1;
}

.roles-visual-panel.is-active .roles-visual-img {
  transform: scale(1.02);
}

.roles-visual-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.roles-visual-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(58, 141, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 141, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.34;
}

.roles-dashboard,
.roles-lesson-card,
.roles-learning-path {
  position: absolute;
  display: block;
  border-radius: 20px;
  background: #0A0F1C;
  border: 1px solid rgba(58, 141, 255, 0.2);
}

.roles-dashboard--wide {
  width: 64%;
  height: 42%;
  left: 12%;
  top: 18%;
}

.roles-dashboard--mid {
  width: 46%;
  height: 22%;
  right: 10%;
  bottom: 16%;
}

.roles-lesson-card--one {
  width: 58%;
  height: 30%;
  left: 12%;
  top: 18%;
}

.roles-lesson-card--two {
  width: 58%;
  height: 30%;
  right: 10%;
  bottom: 18%;
}

.roles-learning-path {
  width: 70%;
  height: 8px;
  left: 14%;
  top: 50%;
  background: #1E6BFF;
}

.roles-learning-dot {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #0A0F1C;
  border: 1px solid rgba(58, 141, 255, 0.32);
}

.roles-learning-dot--one {
  left: 18%;
  top: 34%;
}

.roles-learning-dot--two {
  right: 18%;
  top: 47%;
}

.roles-stat {
  position: absolute;
  padding: 13px 18px;
  border-radius: 999px;
  background: #1E6BFF;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
}

.roles-stat--one {
  left: 12%;
  bottom: 12%;
}

.roles-stat--two {
  right: 12%;
  top: 12%;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */
.final-cta {
  padding: 180px 0;
  background: var(--bg-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(1, 51, 184, 0.1) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(48px, 6vw, 100px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 32px;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-title-line {
  display: block;
}

.cta-title-line--soft {
  font-weight: 520;
}

.cta-rotating-word {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 1.04em;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
}

.cta-rotating-word span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(120%);
  transition:
    transform 0.78s cubic-bezier(0.2, 1.35, 0.28, 1),
    opacity 0.28s ease;
  will-change: transform, opacity;
}

.cta-rotating-word span.is-active {
  opacity: 1;
  transform: translateY(0);
}

.cta-rotating-word span.is-exiting {
  opacity: 0;
  transform: translateY(-120%);
}

.cta-subtitle {
  font-size: clamp(18px, 1.5vw, 22px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 650px;
  margin: 0 auto 52px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* ==========================================================================
   FOOTER (Split Layout)
   ========================================================================== */
.footer {
  background: #030308;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.footer {
  padding: 80px 40px;
  background: transparent; /* Background removed */
  position: relative;
  z-index: 10;
}

.footer-outer-container {
  max-width: 1600px;
  margin: 0 auto;
}

.footer-inner-box {
  background: transparent; /* Background removed */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Slightly stronger border for definition */
  border-radius: 24px;
  padding: 80px 60px 40px;
  position: relative;
  overflow: hidden;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 80px;
}

.footer-zone {
  flex: 1;
}

/* Zone 1: Left Utility */
.footer-zone-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 280px;
}

.footer-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-contact-link:hover {
  color: #fff;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px; /* Matched to main buttons */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 60px; /* Matched to main buttons */
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  line-height: 1;
  transition: all 0.3s ease;
  margin: 5px 0; /* Prevention from touching other UI elements */
}

.footer-social-pill:hover {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
  transform: scale(1.03);
}

/* Zone 2: Center (Main Focal Area) */
/* ============================================
   TESTIMONIAL SHOWCASE (Standalone Section)
   ============================================ */
.testimonial-showcase {
  background: transparent;
  padding: 300px 40px 140px;
  position: relative;
  overflow: hidden;
  border: none;
}

.testimonial-outer-container {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  padding: 0;
}

.testimonial-box {
  flex: 1;
  position: relative;
  width: 100%;
}

.message-stack {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.message-stack-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  transition:
    min-height 0.62s cubic-bezier(0.2, 1.2, 0.24, 1),
    transform 0.52s cubic-bezier(0.2, 1.2, 0.24, 1),
    opacity 0.38s ease,
    filter 0.38s ease,
    border-color 0.36s ease;
}

.message-stack:has(.message-stack-card.is-open) .message-stack-card:not(.is-open) {
  opacity: 0.42;
  filter: saturate(0.72) brightness(0.72);
}

.message-stack-card + .message-stack-card {
  margin-top: 18px;
}

.message-stack-card:hover {
  opacity: 1 !important;
  filter: none !important;
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
}

.message-stack-card.is-open {
  min-height: 620px;
  z-index: 4;
}

.message-stack-trigger {
  width: 100%;
  min-height: 112px;
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.message-stack-name {
  font-family: var(--font-head);
  font-size: clamp(44px, 4vw, 72px);
  font-weight: 760;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
}

.message-stack-role {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 20px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.message-stack-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.8fr);
  gap: 40px;
  min-height: 0;
  max-height: 0;
  padding: 0 56px;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 0.62s cubic-bezier(0.2, 1.2, 0.24, 1),
    opacity 0.34s ease,
    padding 0.62s cubic-bezier(0.2, 1.2, 0.24, 1);
}

.message-stack-card.is-open .message-stack-panel {
  max-height: 520px;
  padding: 0 56px 46px;
  opacity: 1;
  pointer-events: auto;
}

.message-stack-copy {
  display: flex;
  align-items: flex-end;
  min-height: 430px;
}

.message-stack-copy p {
  max-width: 860px;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.24vw, 22px);
  line-height: 1.58;
  color: #fff;
  letter-spacing: -0.01em;
}

.message-stack-visual {
  position: relative;
  min-height: 430px;
}

.message-stack-image,
.message-stack-avatar {
  position: absolute;
  right: -70px;
  bottom: -46px;
  z-index: 2;
}

.message-stack-image {
  width: auto;
  max-width: 126%;
  max-height: 590px;
  object-fit: contain;
}

.message-stack-image--eelian {
  right: 60px;
  max-height: 650px;
}

.message-stack-image--robert {
  right: 30px;
}

.message-stack-image--stephen {
  right: -115px;
  bottom: 20px;
  max-width: 140%;
}

.message-stack-image--goh {
  right: 35px;
}

.message-stack-avatar {
  width: min(440px, 90%);
  height: min(440px, 90%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-card);
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(110px, 9vw, 180px);
  font-weight: 800;
}

.premium-testimonial {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.75fr);
  align-items: stretch;
  gap: 42px;
  width: 100%;
}

.testimonial-pfp-box {
  width: 100%;
  min-height: 100%;
  position: relative;
}

.circular-pfp {
  width: 100%;
  height: 100%;
  border: 0;
  box-shadow: none;
}

.testimonial-pfp-box .robert-avatar {
  position: absolute;
  left: auto;
  right: -6px;
  bottom: 0;
  z-index: 2;
  width: min(560px, 100%);
  height: min(560px, 100%);
  transform: none;
  background: var(--dark-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 80px;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
}

.testimonial-text-box {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.45;
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  max-width: 640px;
}

.testimonial-quote--light {
  font-weight: 300;
}

.testimonial-header {
  margin-top: 0;
}

.testimonial-header .author-name {
  font-family: var(--font-head);
  font-size: clamp(82px, 7.8vw, 132px);
  line-height: 1;
  font-weight: 760;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0;
}

.testimonial-header .author-role {
  font-family: var(--font-body);
  font-size: clamp(22px, 1.6vw, 30px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin: 12px 0 0;
}

.robert-avatar {
  background: var(--dark-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  font-size: 20px;
}

.ceo-message-card {
  min-height: 620px;
  padding: 56px 56px 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, #0048E9 0%, #001C70 100%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.ceo-message-visual {
  display: block;
  overflow: visible;
  order: 2;
}

.ceo-shape {
  display: none;
}

.ceo-shape--one {
  width: 76%;
  left: 8%;
  top: 21%;
  background: var(--blue);
}

.ceo-shape--two {
  width: 54%;
  left: 24%;
  top: 44%;
  background: var(--blue-light);
}

.ceo-shape--three {
  width: 38%;
  left: 12%;
  top: 64%;
  background: var(--dark-3);
}

.ceo-person-image {
  position: absolute;
  left: auto;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: auto;
  max-width: 128%;
  max-height: 660px;
  object-fit: contain;
  transform: none;
}

.ceo-person-image--wide {
  max-width: 140%;
}

.ceo-person-image--eelian {
  max-width: 140%;
  height: 700px;
  max-height: none;
}

.ceo-message-copy {
  justify-content: flex-start;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  order: 1;
  align-items: flex-start;
  text-align: left;
}

.ceo-message-label {
  order: 1;
  margin-bottom: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ceo-message-copy .testimonial-header {
  order: 1;
  align-self: flex-start;
}

.ceo-message-copy .testimonial-quote {
  order: 2;
  margin-top: auto;
  margin-bottom: 0;
  font-size: clamp(17px, 1.2vw, 22px);
  line-height: 1.58;
  letter-spacing: -0.01em;
  max-width: 850px;
}

.ceo-message-copy .testimonial-quote::before {
  content: "\"";
}

.ceo-message-copy .testimonial-quote::after {
  content: "\"";
}

.ceo-message-copy .testimonial-quote strong {
  display: inline-block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 700;
}

/* Common Carousel Structure */
.footer-carousel {
  width: 100%;
  position: relative;
}

.footer-carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  width: 100%;
}

.footer-person-card {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(30px);
  pointer-events: none;
}

.footer-person-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Nav Overlay */
.testimonial-nav-overlay {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Nav Arrows */
.testimonial-nav-arrow {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.2);
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  z-index: 8;
  transform: translateY(-50%);
}

.testimonial-nav-arrow:hover {
  color: var(--cyan);
  transform: translateY(-50%) scale(1.2);
}

.testimonial-nav-prev {
  left: 26px;
}

.testimonial-nav-next {
  right: 26px;
}

.testimonial-nav-arrow svg {
  width: 100%;
  height: 100%;
}

/* Zone 2: Center (Brand Anchor) */
.footer-zone-center {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-brand-focus {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.btg-footer-brand-logo {
  height: 160px;
  width: auto;
  margin: 0 auto;
  display: block;
  opacity: 1;
}

/* Zone 3: Right (Navigation) */
.footer-zone-right {
  display: flex;
  justify-content: flex-end;
  max-width: 320px;
}

.footer-nav-grid {
  display: flex;
  gap: 60px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-col a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.footer-nav-col a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-zone-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

/* Inner Bottom Bar */
.footer-inner-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-brand-logo-small {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: -0.02em;
}

/* Responsive Cleanup */
@media (max-width: 1024px) {
  .testimonial-showcase {
    padding: 100px 24px;
  }

  .testimonial-outer-container {
    gap: 18px;
  }

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

  .testimonial-pfp-box {
    min-height: 300px;
  }

  .ceo-person-image {
    max-height: 300px;
  }

  .ceo-message-copy {
    text-align: center;
    align-items: center;
  }

  .testimonial-quote {
    max-width: 680px;
  }

  .footer-layout { flex-direction: column; align-items: center; text-align: center; }
  .footer-zone { max-width: 100%; width: 100%; padding: 0; }
  .footer-zone-left { order: 2; align-items: center; margin-top: 40px; }
  .footer-zone-center { order: 1; }
  .footer-zone-right { order: 3; justify-content: center; margin-top: 40px; }
  .footer-inner-bottom { flex-direction: column; gap: 20px; }
}

/* ============================================
   MENU OVERLAY (LIQUID WAVE)
   ============================================ */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Left-aligned */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
  background: transparent;
  padding: 0 20px; /* Extreme left */
}
.menu-overlay.active {
  visibility: visible;
  opacity: 1;
}
.menu-wave-svg-container {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 250vh;
  z-index: -1;
  pointer-events: none;
  transform: translateY(100vh);
  will-change: transform;
}
.menu-wave-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.menu-link {
  font-family: var(--font-head);
  font-size: clamp(40px, 8.5vw, 100px); /* Smaller, more balanced size */
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  line-height: 1.05;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  opacity: 1; /* Solid by default */
  margin: 15px 0;
  position: relative;
  z-index: 1;
  transition:
    opacity 0.4s ease,
    filter 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.4s ease;
  text-align: left;
}
.menu-link:hover {
  transform: scale(1.05) translateX(15px) !important;
  color: #fff;
}

/* --- Hover Focus: Make others near-transparent when hovering one --- */
.menu-nav:has(.menu-link:hover) .menu-link:not(:hover):not(.current) {
  opacity: 0.08 !important; /* Dim others but keep current */
  transform: scale(0.96) !important;
}

/* Ensure current link is subtle but distinctive */
.menu-card .menu-link.current {
  opacity: 0.5 !important;
  color: #fff !important;
  pointer-events: none;
}

.menu-card .menu-link.current .menu-link-triangle {
  display: none !important;
}

/* --- Menu Image Preview (Left Side) --- */
.menu-preview {
  position: absolute;
  right: -3vw; /* Nudged further right for dynamic overflow */
  top: 50%;
  transform: translateY(-50%);
  width: 45vw;
  height: 60vh;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.preview-layer {
  position: absolute;
  top: 100%; /* Start from bottom (Cut-In) */
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  transition: top 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.preview-layer.active {
  top: 0; /* Cut in! */
}

/* Ensure the newest layer is always on top (handled via JS append but good to have fallback) */
.preview-layer:last-child {
  z-index: 2;
}

.menu-preview.active .preview-box {
  transform: translateY(0);
}

.preview-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.1);
}

.preview-placeholder svg {
  width: 64px;
  height: 64px;
}

.menu-body {
  width: 100%;
  flex-grow: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: auto; /* Push to left */
}

/* --- Menu Footer --- */
.menu-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  color: #fff;
  font-family: var(--font-body);
}

.menu-footer-content {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}

.menu-footer-content a {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #fff;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.menu-footer-content a:hover {
  opacity: 0.7;
}

.menu-footer-content span {
  color: rgba(255, 255, 255, 0.5);
}

.menu-footer-socials {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.menu-footer-socials a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  text-decoration: none;
}

.menu-footer-socials a:hover {
  color: #fff;
}

/* Base starting position without CSS transitions (GSAP controls slide) */
.menu-footer-item {
  transform: translateY(200px);
}

/* Floating overlay menu card */
.menu-overlay {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  z-index: 2050;
  display: block;
  padding: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.menu-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 8, 30, 0.58);
  backdrop-filter: none;
}

.menu-card {
  position: fixed;
  top: clamp(100px, calc(13vh - 10px), 140px);
  right: clamp(0px, calc(4.2vw - 20px), 52px);
  z-index: 3;
  width: min(430px, calc(100vw - 32px));
  min-height: auto;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 24px;
  background: #001c70;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #fff;
  overflow: hidden;
  transform-origin: top right;
  will-change: transform, opacity;
}

.menu-card .menu-nav {
  padding-top: 0;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition:
    transform 0.36s cubic-bezier(0.2, 1.45, 0.24, 1),
    background 0.24s ease,
    border-color 0.24s ease;
}

.menu-close:hover,
.menu-close:focus-visible {
  transform: rotate(8deg) scale(1.05);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
}

.menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-eyebrow {
  position: relative;
  z-index: 2;
  margin: 0 0 42px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.menu-card .menu-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.7vh, 18px);
  align-items: stretch;
  margin: 0;
}

.menu-card .menu-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0 0 0 10px; /* Extreme left text alignment */
  min-height: clamp(46px, 6.2vh, 62px);
  font-family: var(--font-head);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  opacity: 1;
  filter: none;
  text-align: left;
  transform: none !important;
  transition:
    color 0.24s ease,
    opacity 0.24s ease;
}

.menu-card .menu-link:hover,
.menu-card .menu-link:focus-visible {
  color: #fff;
  transform: none !important;
  outline: none;
}

.menu-card .menu-link.current {
  color: #fff !important;
  opacity: 0.5 !important;
  pointer-events: none;
  cursor: default;
}

.menu-card .menu-link-label {
  display: block;
  will-change: transform;
  transition: transform 0.42s var(--button-spring);
}

.menu-link-triangle {
  width: 16px;
  height: 16px;
  position: absolute;
  left: -5px; /* Sit right at the boundary */
  top: 50%;
  margin-top: -8px; /* Center shift */
  opacity: 0;
  transform: translateX(-16px) scale(0.82);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
  will-change: transform, opacity;
  transition:
    transform 0.42s var(--button-spring),
    opacity 0.22s ease;
}

.menu-link-triangle svg {
  display: block;
  width: 100%;
  height: 100%;
}

.menu-card .menu-link:not(.current):hover .menu-link-triangle,
.menu-card .menu-link:not(.current):focus-visible .menu-link-triangle {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.menu-card .menu-link:not(.current):hover .menu-link-label,
.menu-card .menu-link:not(.current):focus-visible .menu-link-label {
  transform: translateX(22px);
}

/* Conflicting hover rules removed to honor specific .current and .not-current dimming logic */

.menu-overlay .menu-wave-svg-container {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 250vh;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100vh);
  will-change: transform, opacity;
}

.menu-overlay.is-transitioning .menu-wave-svg-container {
  opacity: 1;
}

.menu-overlay .menu-wave-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 720px) {
  .menu-card {
    top: 78px;
    right: 14px;
    left: 14px;
    width: auto;
    min-height: auto;
    padding: 30px 24px 34px;
    border-radius: 28px;
  }

  .menu-card .menu-link {
    font-size: clamp(34px, 11vw, 48px);
    min-height: 48px;
  }

  .menu-eyebrow {
    margin-bottom: 32px;
  }
}

/* Global Cleanup */
html {
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}

.site-scroll-indicator {
  position: fixed;
  top: clamp(96px, 14vh, 150px);
  right: clamp(10px, 1vw, 20px);
  bottom: clamp(88px, 12vh, 130px);
  width: 40px;
  z-index: 99998;
  pointer-events: auto;
  opacity: 0.95;
  cursor: grab;
  touch-action: none;
}

.site-scroll-track {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08); /* Subtle grey background restored */
  box-shadow: none; /* Strokes remain removed */
  overflow: hidden;
}

.site-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 48px;
  border-radius: 100px;
  background: #fff;
  transform: translate3d(0, 0, 0);
  will-change: transform, height;
  pointer-events: auto;
  touch-action: none;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.site-scroll-indicator.dragging {
  cursor: grabbing;
}

.site-scroll-ticks {
  display: none; /* Removed the lines on the left side as requested */
}

.site-scroll-ticks span {
  display: none;
}

/* --- Cohesive Subpage System --- */
.subpage-body {
  background: #020612;
}

.subpage-main {
  color: #fff;
  overflow: hidden;
}

.subpage-container {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
}

.subpage-hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 150px 0 90px;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

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

.subpage-kicker {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.subpage-hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--font-head);
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0;
}

.subpage-hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  line-height: 1.65;
}

.subpage-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.subpage-section {
  padding: 90px 0;
}

.role-panel,
.purpose-panel,
.contact-layout,
.belief-grid article,
.feature-grid article,
.insight-grid article,
.credibility-strip {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--dark-card);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.18);
}

.role-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  padding: 42px;
  border-radius: 8px;
}

.role-panel--alt {
  background: var(--dark-3);
}

.role-intro span,
.belief-grid span,
.faq-grid span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role-intro h2,
.split-section h2,
.purpose-panel h2,
.belief-grid h2,
.subpage-final-cta h2,
.faq-heading {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.role-intro p,
.split-section p,
.purpose-panel p,
.belief-grid p,
.feature-grid p,
.insight-grid p,
.faq-grid p,
.contact-info p,
.contact-info a {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.role-grid,
.feature-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.role-grid article,
.feature-grid article,
.faq-grid article {
  padding: 26px;
  border-radius: 8px;
  background: #020612;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.role-grid h3,
.feature-grid h3,
.faq-grid h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0;
}

.role-grid p,
.feature-grid p,
.faq-grid p {
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.split-section > p {
  margin: 38px 0 0;
  font-size: 19px;
}

.feature-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.insight-grid article {
  padding: 32px;
  border-radius: 8px;
}

.insight-grid h2 {
  margin: 10px 0 18px;
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.insight-grid ul {
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.68);
}

.belief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.belief-grid article,
.purpose-panel {
  padding: 42px;
  border-radius: 8px;
}

.purpose-panel {
  max-width: 980px;
}

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
}

.credibility-strip div {
  padding: 28px;
  background: var(--dark-card);
}

.credibility-strip strong,
.credibility-strip span {
  display: block;
}

.credibility-strip span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  padding: 36px;
  border-radius: 8px;
}

.contact-info a {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.contact-form label:has(textarea),
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #020612;
  color: #fff;
  padding: 14px 16px;
  font: inherit;
}

.subpage-final-cta {
  padding: 96px 0;
  text-align: center;
}

.subpage-final-cta h2 {
  max-width: 760px;
  margin: 0 auto;
}

.subpage-final-cta .subpage-cta-row {
  justify-content: center;
}

.faq-heading {
  margin-bottom: 34px;
}

/* --- Subpage Block Layout Upgrade --- */
.subpage-hero--grid {
  min-height: 86vh;
}

.subpage-hero-grid,
.subpage-split-block,
.subpage-editorial-grid,
.contact-layout--blocks {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: stretch;
}

.subpage-hero-copy {
  align-self: center;
}

.subpage-hero-copy h1 {
  max-width: 930px;
}

.subpage-hero-blocks,
.subpage-card-cluster,
.subpage-feature-cluster {
  display: grid;
  gap: 18px;
}

.subpage-hero-blocks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
}

.subpage-hero-blocks--contact {
  grid-template-columns: 1fr;
}

.subpage-metric-card,
.subpage-panel,
.subpage-mini-card,
.subpage-card-cluster article,
.subpage-feature-cluster article,
.subpage-dashboard-block,
.subpage-quote-block,
.subpage-form-card,
.subpage-contrast-cta {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: var(--dark-card);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.16);
}

.subpage-metric-card,
.subpage-panel,
.subpage-mini-card,
.subpage-card-cluster article,
.subpage-feature-cluster article,
.subpage-dashboard-block,
.subpage-quote-block {
  padding: clamp(24px, 3vw, 38px);
}

.subpage-metric-card--large,
.subpage-card-wide,
.subpage-feature-wide {
  grid-column: 1 / -1;
}

.subpage-metric-card span,
.subpage-card-cluster span,
.subpage-mini-card span,
.subpage-panel span,
.subpage-feature-cluster span,
.subpage-quote-block span {
  display: block;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.subpage-metric-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  color: #fff;
}

.subpage-metric-card p,
.subpage-panel p,
.subpage-mini-card p,
.subpage-card-cluster p,
.subpage-feature-cluster p,
.subpage-quote-block p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.subpage-panel h2,
.subpage-card-cluster h3,
.subpage-feature-cluster h3,
.subpage-mini-card h3 {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: 0;
  color: #fff;
}

.subpage-panel h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.03;
}

.subpage-panel ul {
  margin: 22px 0 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.subpage-card-cluster h3,
.subpage-feature-cluster h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
}

.subpage-panel--tall {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.subpage-panel--soft {
  display: flex;
  align-items: flex-end;
  background: var(--dark-3);
}

.subpage-panel--contrast,
.subpage-contrast-cta {
  background: #001c70;
  border-color: rgba(255, 255, 255, 0.16);
}

.subpage-split-block--reverse {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.02fr);
}

.subpage-card-cluster {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subpage-card-cluster--compact article {
  min-height: 150px;
}

.subpage-mosaic {
  display: grid;
  grid-template-columns: 1.15fr repeat(2, minmax(0, 0.58fr));
  gap: 18px;
  align-items: stretch;
}

.subpage-mosaic .subpage-panel--contrast {
  grid-row: span 2;
}

.subpage-mosaic--product {
  grid-template-columns: 1.2fr 0.8fr;
}

.subpage-section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.subpage-section-head h2 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.subpage-feature-cluster {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subpage-feature-cluster article {
  min-height: 240px;
  transition:
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    background 0.28s ease;
}

.subpage-feature-cluster article:hover,
.subpage-card-cluster article:hover,
.subpage-mini-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--dark-3);
}

.subpage-feature-wide {
  min-height: 190px;
}

.subpage-dashboard-block {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--dark-card);
  overflow: hidden;
}

.subpage-dashboard-top {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.subpage-dashboard-top strong {
  color: var(--cyan);
}

.subpage-dashboard-bars {
  display: grid;
  gap: 14px;
}

.subpage-dashboard-bars i {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: #1a4fd4;
}

.subpage-dashboard-bars i:nth-child(1) { width: 82%; }
.subpage-dashboard-bars i:nth-child(2) { width: 62%; }
.subpage-dashboard-bars i:nth-child(3) { width: 92%; }
.subpage-dashboard-bars i:nth-child(4) { width: 48%; }

.subpage-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.subpage-dashboard-grid span {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-radius: 8px;
  background: #020612;
  color: #fff;
  font-weight: 800;
}

.subpage-quote-block {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--dark-card);
}

.subpage-quote-block p {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  color: #fff;
}

.subpage-editorial-grid {
  grid-template-columns: 1fr 1fr;
}

.subpage-contrast-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(30px, 5vw, 58px);
}

.subpage-contrast-cta h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.contact-layout--blocks {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.contact-layout--blocks .contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
}

.subpage-form-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--dark-card);
}

.faq-accordion-section {
  max-width: 1120px;
}

.faq-accordion-header {
  max-width: 720px;
  margin-bottom: 34px;
}

.faq-accordion {
  display: grid;
  gap: 14px;
}

.faq-accordion-item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: var(--dark-card);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.12);
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.42s cubic-bezier(0.2, 1.42, 0.24, 1);
  will-change: transform;
}

.faq-accordion-item:hover,
.faq-accordion-item.is-open {
  background: var(--dark-3);
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-accordion-item.is-bouncing {
  transform: translateY(-2px);
}

.faq-accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.faq-accordion-trigger:focus-visible {
  outline: 2px solid rgba(4, 198, 197, 0.75);
  outline-offset: -6px;
}

.faq-accordion-copy {
  display: grid;
  gap: 8px;
}

.faq-category {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-question {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.faq-accordion-icon {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #020612;
  transition:
    transform 0.56s cubic-bezier(0.2, 1.32, 0.24, 1),
    border-color 0.28s ease,
    background 0.28s ease;
}

.faq-accordion-icon::before,
.faq-accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.56s cubic-bezier(0.2, 1.32, 0.24, 1);
}

.faq-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-accordion-item.is-open .faq-accordion-icon {
  transform: rotate(180deg);
  border-color: rgba(4, 198, 197, 0.45);
  background: #020612;
}

.faq-accordion-item.is-open .faq-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-accordion-panel {
  height: 0;
  overflow: hidden;
  opacity: 1;
  transition:
    height 0.52s ease-in-out,
    opacity 0.32s ease;
}

.faq-accordion.is-enhanced .faq-accordion-panel {
  transition: none;
}

.faq-accordion-panel p {
  max-width: 760px;
  margin: 0;
  padding: 0 28px 26px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.7;
}

.faq-accordion-item.is-open .faq-accordion-panel {
  opacity: 1;
}

@media (max-width: 1100px) {
  .role-panel,
  .split-section,
  .contact-layout,
  .subpage-hero-grid,
  .subpage-split-block,
  .subpage-split-block--reverse,
  .subpage-editorial-grid,
  .contact-layout--blocks {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage-feature-cluster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage-mosaic,
  .subpage-mosaic--product {
    grid-template-columns: 1fr 1fr;
  }

  .subpage-mosaic .subpage-panel--contrast {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .subpage-container {
    width: min(100% - 28px, 1320px);
  }

  .subpage-hero h1 {
    font-size: 46px;
  }

  .subpage-hero p {
    font-size: 17px;
  }

  .role-grid,
  .feature-grid,
  .insight-grid,
  .belief-grid,
  .credibility-strip,
  .faq-grid,
  .contact-form,
  .subpage-hero-blocks,
  .subpage-card-cluster,
  .subpage-feature-cluster,
  .subpage-mosaic,
  .subpage-mosaic--product {
    grid-template-columns: 1fr;
  }

  .role-panel,
  .belief-grid article,
  .purpose-panel,
  .contact-layout {
    padding: 24px;
  }

  .contact-layout--blocks {
    padding: 0;
  }

  .subpage-panel--tall,
  .subpage-dashboard-block,
  .subpage-quote-block,
  .contact-layout--blocks .contact-info {
    min-height: auto;
  }

  .subpage-contrast-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .faq-accordion-trigger {
    padding: 22px;
    align-items: flex-start;
  }

  .faq-accordion-panel p {
    padding: 0 22px 24px;
  }
}

body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}
body.menu-open {
  overflow: hidden;
}

body.menu-open .site-scroll-indicator {
  opacity: 0;
  pointer-events: none;
}

/* --- Strict Blue/Black Subpage Refinement --- */
.subpage-body {
  --subpage-bg: #05070B;
  --subpage-surface: #0A0F1C;
  --subpage-surface-2: #0D1324;
  --subpage-blue: #1E6BFF;
  --subpage-blue-2: #3A8DFF;
  --subpage-blue-glow: rgba(30, 107, 255, 0.15);
  --subpage-border: rgba(255, 255, 255, 0.05);
  --subpage-text: #FFFFFF;
  --subpage-text-2: rgba(255, 255, 255, 0.6);
  --subpage-text-3: rgba(255, 255, 255, 0.3);
  background: var(--subpage-bg);
}

.subpage-body .subpage-main,
.subpage-body .subpage-hero,
.subpage-body .footer,
.subpage-body .footer-inner-box,
.subpage-body .testimonial-showcase {
  background: var(--subpage-bg);
}

.subpage-body .subpage-hero::before {
  background: none;
}

.subpage-body .subpage-kicker,
.subpage-body .role-intro span,
.subpage-body .belief-grid span,
.subpage-body .faq-grid span,
.subpage-body .subpage-metric-card span,
.subpage-body .subpage-card-cluster span,
.subpage-body .subpage-mini-card span,
.subpage-body .subpage-panel span,
.subpage-body .subpage-feature-cluster span,
.subpage-body .subpage-quote-block span,
.subpage-body .faq-category,
.subpage-body .subpage-dashboard-top strong {
  color: var(--subpage-blue-2);
}

.subpage-body .subpage-hero h1,
.subpage-body .subpage-section-head h2,
.subpage-body .subpage-panel h2,
.subpage-body .subpage-card-cluster h3,
.subpage-body .subpage-feature-cluster h3,
.subpage-body .subpage-mini-card h3,
.subpage-body .faq-heading,
.subpage-body .faq-question {
  color: var(--subpage-text);
}

.subpage-body .subpage-hero p,
.subpage-body .subpage-panel p,
.subpage-body .subpage-mini-card p,
.subpage-body .subpage-card-cluster p,
.subpage-body .subpage-feature-cluster p,
.subpage-body .subpage-quote-block p,
.subpage-body .contact-info p,
.subpage-body .contact-info a,
.subpage-body .faq-accordion-panel p,
.subpage-body .credibility-strip span {
  color: var(--subpage-text-2);
}

.subpage-body .subpage-metric-card,
.subpage-body .subpage-panel,
.subpage-body .subpage-mini-card,
.subpage-body .subpage-card-cluster article,
.subpage-body .subpage-feature-cluster article,
.subpage-body .subpage-dashboard-block,
.subpage-body .subpage-quote-block,
.subpage-body .subpage-form-card,
.subpage-body .subpage-contrast-cta,
.subpage-body .contact-layout,
.subpage-body .credibility-strip,
.subpage-body .faq-accordion-item {
  background: var(--subpage-surface);
  border: 1px solid var(--subpage-border);
  border-radius: 16px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

.subpage-body .subpage-panel--soft,
.subpage-body .role-panel--alt,
.subpage-body .subpage-dashboard-grid span,
.subpage-body .credibility-strip div,
.subpage-body .faq-accordion-panel {
  background: var(--subpage-surface-2);
}

.subpage-body .subpage-panel--contrast,
.subpage-body .subpage-contrast-cta {
  background: #0A0F1C;
  border-color: rgba(30, 107, 255, 0.24);
}

.subpage-body .subpage-feature-cluster article:hover,
.subpage-body .subpage-card-cluster article:hover,
.subpage-body .subpage-mini-card:hover,
.subpage-body .faq-accordion-item:hover {
  background: color-mix(in srgb, var(--subpage-surface) 86%, var(--subpage-blue) 14%);
  border-color: rgba(30, 107, 255, 0.28);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.26);
}

.subpage-body .btn-primary:not(.nav-cta) {
  background: linear-gradient(135deg, var(--subpage-blue) 0%, var(--subpage-blue-2) 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 30px var(--subpage-blue-glow);
}

.subpage-body .btn-primary:not(.nav-cta):hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 36px rgba(30, 107, 255, 0.18);
}

.subpage-body .btn-outline {
  background: transparent;
  border-color: rgba(30, 107, 255, 0.52);
  color: #fff;
}

.subpage-body .btn-outline:hover {
  background: rgba(30, 107, 255, 0.08);
  border-color: var(--subpage-blue-2);
  color: #fff;
}

.subpage-body .subpage-dashboard-bars i {
  background: var(--subpage-blue);
  box-shadow: none;
}

.subpage-body .contact-form input,
.subpage-body .contact-form select,
.subpage-body .contact-form textarea {
  background: #05070B;
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.subpage-body .contact-form input:focus,
.subpage-body .contact-form select:focus,
.subpage-body .contact-form textarea:focus {
  outline: none;
  border-color: rgba(30, 107, 255, 0.55);
}

/* --- Subpage Image + Layout Art Direction --- */
.subpage-body .subpage-container {
  width: min(100% - 160px, 1360px);
}

.subpage-body .subpage-section {
  padding: 130px 0;
}

.subpage-body .subpage-hero {
  min-height: 86vh;
  padding: 170px 0 110px;
}

.subpage-body .subpage-hero-grid,
.subpage-body .subpage-split-block,
.subpage-body .subpage-editorial-grid,
.subpage-body .contact-layout--blocks {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.subpage-body .subpage-split-block--reverse {
  grid-template-columns: minmax(420px, 1.08fr) minmax(0, 0.92fr);
}

.subpage-body .subpage-hero-copy,
.subpage-body .subpage-panel,
.subpage-body .contact-info {
  max-width: 600px;
}

.subpage-body .subpage-hero h1 {
  max-width: 780px;
  font-size: clamp(58px, 6vw, 104px);
  letter-spacing: -0.04em;
}

.subpage-body .subpage-hero p,
.subpage-body .subpage-panel p {
  max-width: 560px;
}

.subpage-body .subpage-hero-blocks,
.subpage-body .subpage-card-cluster,
.subpage-body .subpage-feature-cluster,
.subpage-body .subpage-mosaic,
.subpage-body .subpage-editorial-grid,
.subpage-body .contact-layout--blocks,
.subpage-body .credibility-strip,
.subpage-body .subpage-dashboard-block,
.subpage-body .subpage-quote-block {
  position: relative;
  overflow: hidden;
}

.subpage-body .subpage-hero-blocks::before,
.subpage-body .subpage-card-cluster::before,
.subpage-body .subpage-feature-cluster::before,
.subpage-body .subpage-mosaic::before,
.subpage-body .subpage-editorial-grid::before,
.subpage-body .contact-layout--blocks::before,
.subpage-body .credibility-strip::before,
.subpage-body .subpage-dashboard-block::before,
.subpage-body .subpage-quote-block::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0.55;
  background:
    linear-gradient(rgba(58, 141, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 141, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
}

.subpage-body .subpage-hero-blocks::after,
.subpage-body .subpage-card-cluster::after,
.subpage-body .subpage-feature-cluster::after,
.subpage-body .subpage-mosaic::after,
.subpage-body .subpage-editorial-grid::after,
.subpage-body .contact-layout--blocks::after,
.subpage-body .credibility-strip::after,
.subpage-body .subpage-dashboard-block::after,
.subpage-body .subpage-quote-block::after {
  content: "";
  position: absolute;
  right: clamp(22px, 4vw, 70px);
  bottom: clamp(18px, 3vw, 52px);
  width: clamp(130px, 20vw, 300px);
  height: clamp(90px, 13vw, 190px);
  z-index: 0;
  border-radius: 20px;
  border: 1px solid rgba(58, 141, 255, 0.22);
  background: #0D1324;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  pointer-events: none;
  transition: transform 0.46s cubic-bezier(0.2, 1.12, 0.24, 1);
}

.subpage-body .subpage-hero-blocks:hover::after,
.subpage-body .subpage-card-cluster:hover::after,
.subpage-body .subpage-feature-cluster:hover::after,
.subpage-body .subpage-mosaic:hover::after,
.subpage-body .subpage-editorial-grid:hover::after,
.subpage-body .contact-layout--blocks:hover::after,
.subpage-body .credibility-strip:hover::after,
.subpage-body .subpage-dashboard-block:hover::after,
.subpage-body .subpage-quote-block:hover::after {
  transform: scale(1.03);
}

.subpage-body .subpage-hero-blocks > *,
.subpage-body .subpage-card-cluster > *,
.subpage-body .subpage-feature-cluster > *,
.subpage-body .subpage-mosaic > *,
.subpage-body .subpage-editorial-grid > *,
.subpage-body .contact-layout--blocks > *,
.subpage-body .credibility-strip > *,
.subpage-body .subpage-dashboard-block > *,
.subpage-body .subpage-quote-block > * {
  position: relative;
  z-index: 1;
}

.subpage-body .subpage-dashboard-block {
  min-height: 440px;
}

.subpage-body .subpage-hero-blocks {
  min-height: 460px;
  padding: 28px;
  border-radius: 20px;
  background: #0A0F1C;
  border: 1px solid var(--subpage-border);
}

.subpage-body .subpage-card-cluster,
.subpage-body .subpage-feature-cluster,
.subpage-body .subpage-mosaic,
.subpage-body .subpage-editorial-grid,
.subpage-body .contact-layout--blocks {
  border-radius: 20px;
}

.subpage-body .subpage-card-cluster {
  min-height: 520px;
}

.subpage-body .subpage-feature-cluster {
  padding: 24px;
  background: #05070B;
  border: 1px solid var(--subpage-border);
}

.subpage-body .subpage-mosaic {
  min-height: 520px;
}

.subpage-body .subpage-panel,
.subpage-body .subpage-mini-card,
.subpage-body .subpage-card-cluster article,
.subpage-body .subpage-feature-cluster article,
.subpage-body .subpage-metric-card {
  transition:
    transform 0.46s cubic-bezier(0.2, 1.12, 0.24, 1),
    border-color 0.32s ease,
    background-color 0.32s ease;
}

@media (max-width: 1100px) {
  .subpage-body .subpage-container {
    width: min(100% - 48px, 1360px);
  }

  .subpage-body .subpage-hero-grid,
  .subpage-body .subpage-split-block,
  .subpage-body .subpage-split-block--reverse,
  .subpage-body .subpage-editorial-grid,
  .subpage-body .contact-layout--blocks {
    grid-template-columns: 1fr;
  }

  .subpage-body .subpage-hero-blocks,
  .subpage-body .subpage-card-cluster,
  .subpage-body .subpage-mosaic,
  .subpage-body .subpage-dashboard-block {
    min-height: auto;
  }
}
