@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Outfit:wght@300;400;500;600;700&family=Roboto+Condensed:wght@400;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Press+Start+2P&family=Asimovian&display=swap');
@import "tailwindcss";

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (HIGH-CONTRAST TECH-EDITORIAL THEME)
   ========================================================================== */

:root {
  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Colors - Ultra-Minimal high-contrast (Bright light gray/white) */
  --bg-primary: #f6f6f6;
  --bg-secondary: #ffffff;
  --border-color: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.03);

  --text-primary: #121212;
  --text-secondary: #5a5a5a;
  --text-light: #909090;

  --color-accent: #111111;
  /* Clean black buttons */
  --color-accent-hover: #333333;
  --color-dot-green: #10b981;
  /* Small status indicator */

  /* Transition and Easing */
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 1.2s var(--ease-out-quint);
  --transition-medium: 0.6s var(--ease-out-quint);
  --transition-fast: 0.2s ease;
}

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

/* Landing page body styles — scoped so admin panel is unaffected */
html:has(.scroll-container),
html:has(.scroll-container) body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

/* Virtual Scroll Container */
.scroll-container {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* Hide scrollbar entirely */
  position: relative;
  background-color: var(--bg-secondary);
  transition: background-color 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   BACKGROUND TECH LINES
   ========================================================================== */
.bg-grid-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.grid-line {
  position: absolute;
  background-color: var(--border-color);
}

.grid-line-v1 {
  left: 10%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.grid-line-v2 {
  left: 35%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.grid-line-v3 {
  left: 75%;
  top: 0;
  bottom: 0;
  width: 1px;
}

/* ==========================================================================
   NAVIGATION & BRANDING (EDITORIAL HEADER)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  padding: 0 3.5rem;
  background: rgba(253, 250, 244, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  pointer-events: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

header * {
  pointer-events: auto;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 2.2;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  cursor: pointer;
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
}

/* ==========================================================================
   STORY SECTIONS (THE TECH-GRID LAYOUT)
   ========================================================================== */
.story-section {
  width: 100%;
  height: 100vh;
  position: absolute;
  /* Absolute stacking */
  top: 0;
  left: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background: transparent !important;
  /* Let parent background show through */
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-section.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 5;
}

.section-bg {
  display: none;
  /* Handled by parent container transition */
}

/* Parallax Canvas */
.parallax-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* GIANT BACKGROUND WATERMARK TEXT */
.watermark-bg {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19vw;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--border-light);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  white-space: nowrap;
  /* Prevent line breaks on translation */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Hero Video Avatar styling - right aligned, lowered down, reduced scale */
.hero-avatar-container {
  position: absolute;
  top: 55%;
  left: 65%;
  width: 48%;
  height: 70vh;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  will-change: transform;
}

.hero-avatar-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.06));
  pointer-events: auto;
}

/* ==========================================================================
   MASCOT ENTITY & FLOATING (THE 3D CENTERED STYLING)
   ========================================================================== */
.mascot-container {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  will-change: transform;
}

.mascot-image {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.12));
  animation: hover-drift 6s infinite ease-in-out;
}

@keyframes hover-drift {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

/* OVERLAPPING FLOATING DATA CARD (SLIDE-IN LOOK) */
.floating-info-card {
  position: absolute;
  z-index: 15;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 4px;
  max-width: 240px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-secondary);
  will-change: transform;
}

.floating-info-card strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.floating-card-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-dot-green);
  margin-right: 0.5rem;
}

/* Position cards offset from mascot */
#meadow .floating-info-card {
  bottom: 15%;
  right: -5%;
}

#canopy .floating-info-card {
  top: 10%;
  left: -10%;
}

#thermals .floating-info-card {
  bottom: 10%;
  left: -8%;
}

#sanctuary .floating-info-card {
  top: 15%;
  right: -5%;
}

/* ==========================================================================
   EDITORIAL SECTION DETAILS (LEFT / RIGHT INFO)
   ========================================================================== */
.editorial-container {
  width: 100%;
  height: 100%;
  padding: 0 3.5rem;
  display: grid;
  grid-template-columns: 35% 40% 25%;
  align-items: center;
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.editorial-container * {
  pointer-events: auto;
}

/* Left panel content */
.story-content-box {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  text-align: left;
}

.chapter-indicator {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chapter-indicator::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--text-light);
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow) 0.1s, transform var(--transition-slow) 0.1s;
}

.story-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow) 0.2s, transform var(--transition-slow) 0.2s;
}

.story-actions {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow) 0.3s, transform var(--transition-slow) 0.3s;
}

/* Right status coordinates */
.status-panel {
  grid-column: 3;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 2;
  color: var(--text-light);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-end;
}

.status-num {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-primary);
}

/* Active transitions */
.story-section.active .story-title,
.story-section.active .story-text,
.story-section.active .story-actions {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   BUTTONS (WITH DYNAMIC WATER FILLING HOVER EFFECT)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-text {
  position: relative;
  z-index: 5;
  transition: color 0.4s ease;
  pointer-events: none;
  /* Let clicks pass to the button */
}

/* Water fill wave base structures */
.btn::before,
.btn::after,
.search-bar button::before,
.search-bar button::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center center;
  transition: top 0.8s cubic-bezier(0.25, 1, 0.35, 1);
  z-index: 2;
  pointer-events: none;
}

/* Back Wave */
.btn::before,
.search-bar button::before {
  top: calc(100% + 380px);
  border-radius: 38%;
  animation: rotate-wave-before 10s infinite linear;
}

/* Front Wave */
.btn::after,
.search-bar button::after {
  top: calc(100% + 380px);
  border-radius: 43%;
  animation: rotate-wave-after 5s infinite linear;
  z-index: 3;
}

/* Slide up waves on hover */
.btn:hover::before,
.btn:hover::after,
.btn.btn-hovered::before,
.btn.btn-hovered::after,
.search-bar button:hover::before,
.search-bar button:hover::after,
.search-bar button.btn-hovered::before,
.search-bar button.btn-hovered::after {
  top: -200px;
}

/* Clockwise rotation for back wave */
@keyframes rotate-wave-before {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Counter-clockwise rotation for front wave (opposing movement) */
@keyframes rotate-wave-after {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* PRIMARY BUTTON STYLING (Solid black idle, fills with white water) */
.btn-primary {
  background-color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-primary .btn-text {
  color: #ffffff;
}

.btn-primary::before {
  background-color: rgba(255, 255, 255, 0.28);
}

.btn-primary::after {
  background-color: #ffffff;
}

/* Primary Button Hover Override */
.btn-primary:hover,
.btn-primary.btn-hovered {
  background-color: var(--color-accent);
  /* Keep base background black under the wave */
  border-color: var(--color-accent);
}

.btn-primary:hover .btn-text,
.btn-primary.btn-hovered .btn-text {
  color: var(--color-accent);
  /* Text becomes black on white water */
}

/* SECONDARY BUTTON STYLING (Transparent idle, fills with black water) */
.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--text-primary);
  margin-left: 0.75rem;
}

.btn-secondary .btn-text {
  color: var(--text-primary);
}

.btn-secondary::before {
  background-color: rgba(18, 18, 18, 0.28);
}

.btn-secondary::after {
  background-color: #121212;
  /* Solid black water */
}

/* Secondary Button Hover Override */
.btn-secondary:hover,
.btn-secondary.btn-hovered {
  background-color: transparent;
  /* Keep background transparent, wave fills it */
  border-color: var(--text-primary);
}

.btn-secondary:hover .btn-text,
.btn-secondary.btn-hovered .btn-text {
  color: #ffffff;
  /* Text becomes white on black water */
}

/* ==========================================================================
   SCROLL AND OTHER LAYOUT DETAILS
   ========================================================================== */
.scroll-indicator {
  position: absolute;
  bottom: 2.25rem;
  right: 3.5rem;
  z-index: 5;
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float-arrow 2s infinite ease-in-out;
  pointer-events: none;
}

.scroll-indicator.hide {
  opacity: 0;
}

.scroll-indicator svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--text-light);
  stroke-width: 2;
}

@keyframes float-arrow {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ==========================================================================
   OVERLAY PANELS (SLIDEOUT GLASS DESIGN)
   ========================================================================== */
.overlay-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #f6f6f6 !important;
  /* Solid high-contrast canvas — 100% blocks background text bleed */
  z-index: 200;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.overlay-panel.active {
  opacity: 1 !important;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* UI/UX Segmented Controls & High-Contrast Metric Cards */
.segmented-control-bar {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.4rem;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.segmented-control-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #5a5a5a;
  cursor: pointer;
  transition: all 0.25s ease;
}

.segmented-control-btn:hover {
  color: #121212;
}

.segmented-control-btn.active {
  background-color: #121212;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kpi-metric-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.kpi-metric-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kpi-metric-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #121212;
}

.program-journey-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  padding: 2.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.program-journey-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

/* Staggered Content Reveals */
.overlay-panel .overlay-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.1s;
}

.overlay-panel.active .overlay-header {
  opacity: 1;
  transform: translateY(0);
}

.overlay-panel .c-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.overlay-panel.active .c-card {
  opacity: 1;
  transform: translateY(0);
}

.overlay-panel.active .c-card:nth-child(1) {
  transition-delay: 0.2s;
}

.overlay-panel.active .c-card:nth-child(2) {
  transition-delay: 0.3s;
}

.overlay-panel.active .c-card:nth-child(3) {
  transition-delay: 0.4s;
}

.overlay-panel.active .c-card:nth-child(4) {
  transition-delay: 0.5s;
}

.overlay-panel.active .c-card:nth-child(5) {
  transition-delay: 0.6s;
}

.overlay-panel.active .c-card:nth-child(6) {
  transition-delay: 0.7s;
}

.overlay-panel .verification-box,
.overlay-panel .demo-container,
.overlay-panel .faq-accordion {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.2s;
}

.overlay-panel.active .verification-box,
.overlay-panel.active .demo-container,
.overlay-panel.active .faq-accordion {
  opacity: 1;
  transform: translateY(0);
}

.close-btn {
  position: fixed;
  top: 2.25rem;
  right: 3.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 210;
  transition: all 0.25s ease;
}

.close-btn svg {
  width: 16px;
  height: 16px;
  stroke: #121212;
  stroke-width: 2.5;
  transition: transform 0.3s ease, stroke 0.25s ease;
}

.close-btn:hover {
  background-color: #121212;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.close-btn:hover svg {
  stroke: #ffffff;
  transform: rotate(90deg);
}

.close-btn:hover {
  background-color: var(--text-primary);
}

.close-btn:hover svg {
  stroke: #fff;
  transform: rotate(90deg);
}

.overlay-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 2.5rem 6rem 2.5rem;
}

.overlay-header {
  margin-bottom: 4rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.overlay-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: block;
}

.overlay-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* Grids and Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.c-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.c-card::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background-color: var(--text-primary);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.c-card:hover {
  transform: translateY(-6px);
  border-color: var(--text-primary);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.05);
}

.c-card:hover::before {
  width: 100%;
}

.card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.c-card:hover .card-icon {
  transform: translate(2px, -2px) rotate(8deg);
  background-color: var(--text-primary);
  color: #ffffff;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: stroke 0.4s ease;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  padding: 0.25rem 0.5rem;
}

.tag-accent {
  color: #fff;
  background-color: var(--text-primary);
}

/* ==========================================================================
   OPPOSING PARALLAX GALLERY
   ========================================================================== */
.gallery-scroll-wrapper {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 1.75rem;
  height: 64vh;
  width: 520px;
  overflow: hidden;
  position: relative;
  align-items: center;
  justify-content: center;
  margin-left: 2rem;
  pointer-events: auto;
  /* enable hovering on cards */
}

.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Offset columns initially for opposing flow visual variance */
.col-left {
  transform: translateY(-40px);
}

.col-right {
  transform: translateY(40px);
}

.gallery-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 245px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: var(--text-primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.gallery-img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}

.gallery-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
}

.gallery-info h4 {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.gallery-info span {
  font-size: 0.6rem;
  color: var(--text-light);
}

/* Certificate Verification Portal */
.verification-box {
  max-width: 580px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 3rem;
  text-align: left;
}

.search-bar {
  display: flex;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--text-primary);
  background-color: #fff;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.search-bar button {
  border: none;
  background-color: var(--text-primary);
  padding: 0 1.5rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.search-bar button .btn-text {
  color: #ffffff;
  position: relative;
  z-index: 5;
  transition: color 0.4s ease;
  pointer-events: none;
}

/* Wave colors for search button (same as btn-primary) */
.search-bar button::before {
  background-color: rgba(255, 255, 255, 0.28);
}

.search-bar button::after {
  background-color: #ffffff;
}

.search-bar button:hover,
.search-bar button.btn-hovered {
  background-color: var(--text-primary);
  /* Keep base black under the wave */
}

.search-bar button:hover .btn-text,
.search-bar button.btn-hovered .btn-text {
  color: var(--text-primary);
  /* Text becomes black on white wave */
}

.verification-result {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s var(--ease-out-quint);
}

.verification-result.show {
  max-height: 400px;
  opacity: 1;
  margin-top: 2rem;
}

.cert-card {
  border: 1px solid var(--text-primary);
  background-color: var(--bg-secondary);
  padding: 2.25rem;
  position: relative;
}

.cert-card::before {
  content: "AUTHENTIC";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  padding: 0.25rem 0.5rem;
}

.cert-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.cert-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  text-transform: uppercase;
}

.cert-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cert-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.error-message {
  font-family: var(--font-mono);
  color: #c0392b;
  font-size: 0.75rem;
  margin-top: 1rem;
  display: none;
}

/* Book Demo Form */
.form-box {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--border-color);
  outline: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--text-primary);
}

.success-box {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.success-box svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-primary);
  stroke-width: 2;
  margin-bottom: 1.5rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-summary {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-summary svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-light);
  stroke-width: 2;
  transition: transform var(--transition-medium);
}

.faq-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-quint);
}

.faq-details-content {
  padding-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-item.open .faq-details {
  max-height: 250px;
}

.faq-item.open .faq-summary svg {
  transform: rotate(45deg);
  stroke: var(--text-primary);
}

/* Footer Row */
.footer-row {
  margin-top: 6rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 3rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   ABOUT US INTERACTION PANEL
   ========================================================================== */
/* ==========================================================================
   ABOUT US INTERACTION PANEL
   ========================================================================== */
/* ==========================================================================
   ABOUT US INTERACTION PANEL
   ========================================================================== */
.about-layout {
  max-width: 1100px;
  padding: 4.5rem 3.5rem 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 10;
}

.about-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Pull achievements tight under the team slider */
.about-achievements-section {
  margin-top: -1.5rem;
}

/* BACKGROUND GLOW BLOBS SYSTEM */
.about-glow-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.about-glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
  will-change: transform, background-color;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background-color 1s ease;
}

.blob-1 {
  top: 5%;
  left: -10%;
  background: radial-gradient(circle, #4f46e5 0%, rgba(79, 70, 229, 0) 70%);
  animation: blob-float-1 25s infinite ease-in-out;
}

.blob-2 {
  top: 40%;
  right: -15%;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  animation: blob-float-2 30s infinite ease-in-out;
}

.blob-3 {
  bottom: 10%;
  left: 5%;
  background: radial-gradient(circle, #d946ef 0%, rgba(217, 70, 239, 0) 70%);
  animation: blob-float-1 22s infinite ease-in-out reverse;
}

@keyframes blob-float-1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes blob-float-2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-40px, 40px) scale(1.15);
  }
}

/* SECTION 1: BIO BLOCK & NEURAL NEXUS SVG */
.bio-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary) 30%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bio-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  width: 100%;
}

.bio-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  border-right: 1px solid var(--border-color);
  padding-right: 2rem;
}

.bio-nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bio-nav-link::after {
  content: ' //';
  opacity: 0;
  margin-left: 4px;
  transition: opacity 0.3s ease;
  color: #4f46e5;
}

.bio-nav-link.active {
  color: var(--text-primary);
  font-weight: 700;
  padding-left: 6px;
}

.bio-nav-link.active::after {
  opacity: 1;
}

.bio-nav-link:hover {
  color: var(--text-primary);
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bio-text p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* SECTION 2: QUOTE BLOCK */
.about-quote-section {
  align-items: center;
  justify-content: center;
}

.quote-wrapper {
  position: relative;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 4rem;
  margin: 0 auto;
}

.quote-text {
  font-family: 'Georgia', serif;
  font-size: 2.15rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0;
  position: relative;
  z-index: 2;
}

.quote-author {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-style: normal;
}

.quote-mark {
  font-family: 'Georgia', serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.05);
  position: absolute;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.mark-open {
  top: -1rem;
  left: 0;
}

.mark-close {
  bottom: -2rem;
  right: 0;
  display: block;
}

/* SECTION 3: THE TEAM BLOCK */
.team-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #4f46e5;
  border-top: 1px solid var(--border-color);
  padding-top: 0.6rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-heading::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #06b6d4;
  border-radius: 50%;
}

.team-slider-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.25rem 0;
}

.team-slider-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  z-index: 5;
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.team-slider-track::-webkit-scrollbar {
  display: none;
}

.team-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 2; /* Wider ratio so slide + milestones fit in one viewport */
  height: auto;
  scroll-snap-align: start;
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background-color: #faf8f5;
  background-image: 
    radial-gradient(rgba(0, 0, 0, 0.035) 1.5px, transparent 1.5px),
    linear-gradient(rgba(0, 0, 0, 0.008) 1px, transparent 1px);
  background-size: 24px 24px, 100% 24px;
  box-sizing: border-box;
  overflow: hidden;
  container-type: inline-size;
}

/* Newspaper Top Metadata Header Strip */
.team-slide-header {
  position: absolute;
  left: 5.9%;
  right: 6.04%;
  top: 5.5%;
  display: flex;
  justify-content: space-between;
  border-top: 1.5px solid #000000;
  border-bottom: 1.5px solid #000000;
  padding: 0.5% 0;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.8cqw;
  text-transform: uppercase;
  color: #000000;
  z-index: 4;
}

.news-meta-vol,
.news-meta-title,
.news-meta-date {
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.news-meta-title {
  font-weight: 800;
  letter-spacing: 0.15em;
}

/* Background Name text from Figma coordinates */
.team-bg-name {
  position: absolute;
  left: 5.97%;
  top: 33.44%;
  width: 88%;
  height: 33.11%;
  font-family: MontserratUnderline;
  font-weight: 800;
  font-size: 13.88cqw;
  line-height: 1.22;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000000;
  z-index: 1;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

.team-bg-name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0.08em;
  background-color: #000000;
  top: 83%;
  transform: translateY(-50%);
  z-index: 2;
}

/* Centered Portrait Image wrapper from Figma coordinates */
.about-hero-image {
  position: absolute;
  left: 24.1%;
  top: 17.22%;
  width: 51.7%;
  height: 82.78%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.visionary-img {
  width: auto;
  height: 72%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) contrast(1.3) brightness(0.92);
  transition: filter 0.5s ease;
}

/* Shashank's image has built-in transparent spacing, so it remains at 100% height */
.about-hero-image img[src*="shashank"] {
  height: 100%;
}

/* Left Content block (Badge + Name) from Figma coordinates */
.team-slide-left {
  position: absolute;
  left: 5.9%;
  top: 62.67%;
  display: flex;
  flex-direction: column;
  gap: 0.83vh;
  z-index: 3;
  text-align: left;
}

.founder-badge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.78cqw;
  line-height: 1.22;
  color: #000000;
  text-transform: uppercase;
  margin: 0;
}

.founder-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 1.39cqw;
  line-height: 1.15;
  color: #000000;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.05em;
}

/* Right Content block (Bio + Divider + Socials) from Figma coordinates */
.team-slide-right {
  position: absolute;
  right: 6.04%;
  top: 62.67%;
  width: 29.72%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3.5vh;
  z-index: 3;
}

.founder-bio {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 1.39cqw;
  line-height: 1.25;
  text-align: right;
  color: #000000;
  margin: 0;
}

.founder-socials-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5cqw;
  width: 100%;
}

.founder-divider-line {
  width: 19.23cqw;
  height: 0;
  border-bottom: 2px solid #000000;
}

.founder-socials {
  display: flex;
  gap: 1.25cqw;
  align-items: center;
}

.social-icon-link {
  color: #000000;
  width: 1.67cqw;
  height: 1.67cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.social-icon-link:hover {
  color: #4f46e5;
}

.brand-icon {
  width: 100%;
  height: 100%;
}

.team-slide:hover .visionary-img {
  filter: grayscale(0%) contrast(1.1) brightness(1);
}

.team-slider-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.6rem;
  width: 100%;
  z-index: 10;
  position: relative;
}

/* SECTION 4: GLASSMORPHIC MILESTONES & ACHIEVEMENTS */
.about-achievements-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
}

.glass-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.5s ease;
  z-index: 5;
}

.achievement-card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, rgba(79, 70, 229, 0) 70%);
  pointer-events: none;
  z-index: 1;
  transition: all 0.5s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 70, 229, 0.25);
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 20px 40px rgba(79, 70, 229, 0.05),
    0 1px 0px rgba(255, 255, 255, 0.8) inset;
}

.glass-card:hover .achievement-card-glow {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0) 75%);
  width: 160px;
  height: 160px;
}

.achievement-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  border-radius: 8px;
  z-index: 2;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.glass-card:hover .achievement-icon {
  background-color: #4f46e5;
  color: #ffffff;
  transform: rotate(6deg) scale(1.05);
}

.achievement-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.glass-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 2;
  position: relative;
}

.glass-card p {
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  z-index: 2;
  position: relative;
}

/* Staggered Animations inside active overlay */
.overlay-panel .bio-heading,
.overlay-panel .bio-grid,
.overlay-panel .quote-grid-container,
.overlay-panel .team-heading,
.overlay-panel .team-slider-container,
.overlay-panel .about-achievements-section {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-panel.active .bio-heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.overlay-panel.active .bio-grid {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.overlay-panel.active .quote-grid-container {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.overlay-panel.active .team-heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.overlay-panel.active .team-slider-container {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.overlay-panel.active .about-achievements-section {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  .editorial-container {
    grid-template-columns: 45% 10% 45%;
  }

  .status-panel {
    display: none;
    /* Hide coords on tablet/mobile */
  }

  .mascot-container {
    left: 70%;
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1.5rem 2rem;
  }

  nav {
    display: none;
    /* Hide top links on mobile */
  }

  .bg-grid-lines {
    display: none;
  }

  .editorial-container {
    grid-template-columns: 100%;
    padding: 0 2rem;
  }

  .story-content-box {
    grid-column: 1;
    max-width: 100%;
    justify-content: center;
    height: 100%;
    padding-top: 4rem;
  }

  .mascot-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 250px;
    height: 250px;
    margin: 2rem auto 0 auto;
  }

  .floating-info-card {
    display: none;
    /* Hide float info cards on mobile for neat layout */
  }

  /* Responsive Team Slider styles */
  .team-slide-header {
    display: none !important;
  }

  .team-slide {
    height: auto;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    background-color: #ffffff;
  }

  .team-slide-left,
  .team-slide-center,
  .team-slide-right {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  .founder-badge {
    font-size: 1.8rem;
    line-height: 1.25;
    text-align: center;
  }

  .founder-name {
    font-size: 1.1rem;
    line-height: 1.3;
    text-align: center;
  }

  .about-hero-image {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 240px;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .visionary-img {
    max-height: 220px;
  }

  .team-bg-name {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 90%;
    height: auto;
    transform: translate(-50%, -50%);
    font-size: clamp(3rem, 11vw, 4.5rem);
    line-height: 1.1;
    text-decoration-thickness: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .founder-bio {
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .founder-socials-wrap {
    justify-content: center;
    gap: 15px;
    margin-top: 0.5rem;
  }

  .founder-divider-line {
    width: 80px;
  }

  .founder-socials {
    gap: 15px;
  }

  .social-icon-link {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   CHAPTER 6: MYNA TRIBE SECTION & FULL-SCREEN LAYOUT
   ========================================================================== */
#myna-tribe {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

/* Full-screen wrapper body for cardless content layout */
.myna-section-body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  perspective: 1000px;
  opacity: 0;
  transform: scale(0.97) translateY(20px);
  transition: opacity 1.2s var(--ease-out-quint), transform 1.2s var(--ease-out-quint);
  z-index: 10;
  pointer-events: auto;
  /* Allow interactions on inner elements */
}

#myna-tribe.active .myna-section-body {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Mockup Header */
.myna-card-header {
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  z-index: 10;
  background: #ffffff;
  pointer-events: auto;
}

.myna-card-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.myna-card-logo svg {
  width: 20px;
  height: 20px;
  stroke: #0f172a;
  fill: none;
}

.myna-card-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.myna-card-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: none;
  letter-spacing: 0;
  transition: color var(--transition-fast);
}

.myna-card-nav a:hover {
  color: #0f172a;
}

.myna-card-nav a.myna-card-btn-nav {
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.myna-card-nav a.myna-card-btn-nav:hover {
  background-color: #334155;
  transform: translateY(-1px);
}

/* Override the editorial styling for this specific centered box */
#myna-tribe .story-content-box {
  grid-column: unset;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  gap: 1rem;
  /* Visual hierarchy: label → heading → text → CTA */
  z-index: 1;
  /* Below image by default — pops above on hover */
  padding: 1.75rem 2.5rem 2rem;
  position: relative;
  border-radius: 20px;

  /* Up-flow animation: starts below, then settles in the top whitespace */
  transform: translateY(8vh);
  transition: transform 1.2s var(--ease-out-quint);
}

#myna-tribe.active .story-content-box {
  transform: translateY(0px);
  /* Resting position: top of section, above the characters */
  transition: transform 0.8s var(--ease-out-quint);
}

/* Hover interaction: content pops above image and slides to center with glass */
#myna-tribe.active .story-content-box:hover {
  z-index: 5;
  transform: translateY(calc(50vh - 50% - 5rem));
}

/* Frosted glass backdrop — readability safety layer over parallax-shifted content.
   Radial gradient fades from opaque center to transparent edge, matching the
   white negative space in the image. backdrop-filter adds depth like Linear/Apple. */
#myna-tribe .story-content-box::before {
  content: '';
  position: absolute;
  inset: -1rem;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.78) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  z-index: -1;
  pointer-events: none;
  /* Hidden by default — revealed on hover */
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-quint);
}

/* Glass backdrop fades in only on content hover */
#myna-tribe .story-content-box:hover::before {
  opacity: 1;
}

/* Extra breathing room before CTA — separates action from body copy */
#myna-tribe .myna-card-actions {
  margin-top: 0.5rem;
}

#myna-tribe .story-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  /* Reduced from 3.5rem */
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  text-transform: none;
  /* Keep Title Case as mockup */
  letter-spacing: -0.03em;
}

#myna-tribe .story-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  /* Reduced from 1.05rem */
  color: #475569;
  line-height: 1.4;
  max-width: 500px;
  margin: 0 auto;
}

.myna-card-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Custom Buttons matching the mockup spec */
.myna-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-quint);
}

.myna-card-btn-primary {
  background-color: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
}

.myna-card-btn-primary:hover {
  background-color: #1e293b;
  border-color: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.myna-card-btn-secondary {
  background-color: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.myna-card-btn-secondary:hover {
  background-color: #f8fafc;
  border-color: rgba(15, 23, 42, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Avatar stack */
.myna-avatar-stack {
  display: flex;
  align-items: center;
  margin-right: 0.25rem;
}

.myna-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  background-size: cover;
  background-position: center;
  margin-right: -5px;
}

.myna-avatar:last-child {
  margin-right: 0;
}

/* Parallax Group Photo */
/* Parallax Group Photo container spanning full viewport */
.myna-card-image-wrap {
  width: 100%;
  max-width: none;
  height: 100%;
  /* Spans the entire screen height */
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  /* Above content by default — content pops above on hover */
  pointer-events: none;
  overflow: hidden;

  /* Entrance animation: slides up from off-screen */
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1.2s var(--ease-out-quint), opacity 1.2s var(--ease-out-quint);
}

#myna-tribe.active .myna-card-image-wrap {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 1.2s;
  /* Increased delay to match text */
}

.myna-card-img {
  width: 100%;
  height: auto;
  min-width: 1300px;
  /* Ensures the group photo covers the screen even on wider resolutions */
  position: absolute;
  bottom: 0;
  left: 50%;
  will-change: transform;
  /* Center horizontally and align to bottom, with scroll parallax */
  transform: translate(-50%, calc(var(--section-progress) * -4%)) scale(1.02);
  transform-origin: center bottom;
  filter: drop-shadow(0 -10px 30px rgba(15, 23, 42, 0.04));
  transition: transform 0.15s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Interactive Floating Badges */
.myna-floating-badge {
  position: absolute;
  z-index: 8;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  will-change: transform;

  /* Initial state: hidden */
  opacity: 0;
  transition: transform 0.15s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.8s ease;
}

#myna-tribe.active .myna-floating-badge {
  opacity: 1;
  transition-delay: 2s;
  /* Delayed until after the main group photo and text finish sliding */
}

.myna-floating-badge.badge-left {
  bottom: 32%;
  left: 12%;
  /* Adjusted inwards to match image container width */
}

.myna-floating-badge.badge-right {
  bottom: 42%;
  right: 12%;
  /* Adjusted inwards to match image container width */
}

.myna-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
}

/* Responsive Overrides for Chapter 6 Full-Screen Section */
@media (max-width: 1140px) {
  .myna-floating-badge.badge-left {
    left: 4%;
  }

  .myna-floating-badge.badge-right {
    right: 4%;
  }
}

@media (max-width: 1024px) {
  .myna-section-body {
    padding-top: 4.5rem;
  }

  .myna-card-image-wrap {
    max-width: 720px;
    height: 300px;
  }

  .myna-floating-badge.badge-left {
    left: 3%;
    bottom: 30%;
  }

  .myna-floating-badge.badge-right {
    right: 3%;
    bottom: 40%;
  }
}

@media (max-width: 768px) {
  #myna-tribe {
    padding: 0;
  }

  .myna-section-body {
    padding-top: 5rem;
  }

  #myna-tribe .story-content-box {
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0.75rem;
  }

  #myna-tribe .story-content-box::before {
    inset: -0.5rem;
  }

  #myna-tribe .story-title {
    font-size: 1.6rem;
  }

  #myna-tribe .story-text {
    font-size: 0.8rem;
    max-width: 320px;
  }

  .myna-card-image-wrap {
    max-width: 100%;
    height: 240px;
  }

  .myna-floating-badge {
    display: none;
  }
}

/* ==========================================================================
   PROGRAM PAGE (CURRICULUM PROCESS WAVE LAYOUT)
   ========================================================================== */
.program-layout {
  position: relative;
  max-width: 1200px;
  padding: 4.5rem 3.5rem 3rem 3.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Ambient glow blobs */
.program-glow-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.program-glow-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.06;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-blob-1 {
  top: 10%;
  right: -10%;
  background: radial-gradient(circle, #4f46e5 0%, rgba(79, 70, 229, 0) 70%);
}

.p-blob-2 {
  bottom: 10%;
  left: -10%;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
}

/* Watermark Background */
.program-watermark-bg {
  position: absolute;
  right: 3.5rem;
  top: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15rem;
  line-height: 0.8;
  color: rgba(15, 23, 42, 0.008);
  user-select: none;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

/* Header Group styling */
.program-header-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  z-index: 5;
}

.program-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0066cc;
  letter-spacing: 0.1em;
}

.program-main-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.blue-dot {
  color: #0066cc;
  text-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

/* Selectors */
.program-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  z-index: 5;
  margin-top: 1rem;
}

.filter-row-program,
.filter-row-level {
  display: flex;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.prog-select-btn,
.level-select-btn {
  background: transparent;
  border: none;
  padding: 0.6rem 1.8rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--text-secondary);
}

.prog-select-btn:hover,
.level-select-btn:hover {
  color: var(--text-primary);
}

.prog-select-btn.active,
.level-select-btn.active {
  background-color: #ffffff;
  color: #0066cc;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.1);
}

/* Summary Box */
.program-curriculum-summary {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0.5rem 2rem;
  margin: 0 auto;
  z-index: 5;
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.sum-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #0066cc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sum-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sum-value-divider {
  width: 1px;
  height: 32px;
  background-color: var(--border-color);
  display: block;
}

/* Journey Vertical Timeline container & SVG styling */
.curriculum-journey-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 2200px;
  margin: 3rem auto 0 auto;
  z-index: 5;
  padding: 0;
  display: block;
  background-image: radial-gradient(rgba(0, 102, 204, 0.035) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  background-position: center;
}

/* Floating Journey Progress Ring */
.journey-progress-indicator {
  position: fixed;
  right: 3.5rem;
  bottom: 3.5rem;
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 210;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Make it visible only when program panel is active */
.overlay-panel:not(.active) .journey-progress-indicator {
  opacity: 0;
}

.progress-ring-svg {
  transform: rotate(-90deg);
}

.progress-ring-active {
  transition: stroke-dashoffset 0.1s ease;
}

.progress-ring-text {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* SVG Roadmap styling */
.journey-vertical-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Active path glow and trace setup */
#journey-active-path {
  stroke-dasharray: 2300;
  stroke-dashoffset: 2300;
}

/* Nodes styling */
.roadmap-node {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.roadmap-node .node-outer {
  transition: fill 0.3s ease, stroke 0.3s ease, r 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), stroke-width 0.4s ease;
}

.roadmap-node .node-inner {
  transition: fill 0.3s ease, r 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.roadmap-node .node-halo {
  transition: r 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.3s ease;
}

/* Completed nodes are filled */
.roadmap-node.completed .node-outer {
  fill: #0066cc;
  stroke: #0066cc;
}

.roadmap-node.completed .node-inner {
  fill: #ffffff;
}

.roadmap-node.completed .node-halo {
  fill: rgba(0, 102, 204, 0.05);
  r: 32px;
}

/* Active node glows */
.roadmap-node.active {
  filter: url(#node-glow);
}

.roadmap-node.active .node-outer {
  r: 22px;
  stroke-width: 3.5px;
}

.roadmap-node.active .node-inner {
  r: 10px;
}

.roadmap-node.active .node-halo {
  r: 38px;
  fill: rgba(0, 102, 204, 0.08);
}


/* Milestone Cards (Apple/Google Glassmorphism Redesign) */
.milestone-card {
  position: absolute;
  width: 360px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.25rem 2rem;
  border-radius: 16px;
  box-shadow: 
    0 15px 35px rgba(15, 23, 42, 0.03), 
    0 1px 3px rgba(15, 23, 42, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  z-index: 10;
  transform-style: preserve-3d;
  perspective: 1000px;
  transform: translateY(40px) rotateX(-15deg);
  opacity: 0;
  pointer-events: auto;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, opacity;
}

/* Active milestone indicator bar on the left edge */
.milestone-card::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 3px;
  background: #0066cc;
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transform: scaleY(0.4);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-card.active-milestone::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Staggered transition state */
.milestone-card.reveal {
  transform: translateY(0) rotateX(0deg);
  opacity: 1;
}

.milestone-card:hover {
  border-color: rgba(0, 102, 204, 0.25);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 
    0 25px 50px rgba(0, 102, 204, 0.06), 
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Left vs Right alignments for Desktop */
.milestone-card.start-card {
  top: 50px;
  left: 50%;
  transform: translate(-50%, -50%) translateY(40px);
  opacity: 0;
  width: 440px;
  text-align: center;
}

.milestone-card.start-card::before {
  display: none;
}

.milestone-card.start-card.reveal {
  transform: translate(-50%, -50%);
  opacity: 1;
}

/* Alignment for Alternate columns */
.curriculum-week-item.pos-week-1 {
  position: absolute;
  top: 300px;
  right: calc(50% + 160px);
  width: auto;
  height: auto;
}

.curriculum-week-item.pos-week-2 {
  position: absolute;
  top: 650px;
  left: calc(50% + 160px);
  width: auto;
  height: auto;
}

.curriculum-week-item.pos-week-3 {
  position: absolute;
  top: 1000px;
  right: calc(50% + 160px);
  width: auto;
  height: auto;
}

.curriculum-week-item.pos-week-4 {
  position: absolute;
  top: 1350px;
  left: calc(50% + 160px);
  width: auto;
  height: auto;
}

/* Static milestone card alignments */
.milestone-card.prototype-card {
  top: 1700px;
  right: calc(50% + 160px);
  transform: translateY(40px) rotateX(-15deg);
}

.milestone-card.completion-card {
  top: 2050px;
  left: 50%;
  transform: translate(-50%, -50%) translateY(40px);
  opacity: 0;
  width: 480px;
}

.milestone-card.completion-card::before {
  display: none;
}

.milestone-card.completion-card.reveal {
  transform: translate(-50%, -50%);
  opacity: 1;
}

/* Card details and structure */
.milestone-indicator {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #0066cc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.milestone-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.milestone-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.milestone-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-light);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.75rem;
}

.meta-tag {
  color: var(--text-secondary);
}

.completion-indicator {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.4s ease;
}

.milestone-card.unlocked .completion-indicator {
  color: #10b981;
}

/* Active milestone styles */
.milestone-card.active-milestone {
  border-color: #0066cc;
  box-shadow: 0 15px 45px rgba(0, 102, 204, 0.08);
}

/* Floating popover slide layout */
.week-popover {
  position: absolute;
  width: 320px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 102, 204, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 15px 45px rgba(0, 102, 204, 0.08);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Position popovers next to cards */
.pos-week-1 .week-popover,
.pos-week-3 .week-popover,
.prototype-card .week-popover {
  top: 0;
  left: 380px;
  transform: translateX(-15px);
}

.pos-week-2 .week-popover,
.pos-week-4 .week-popover {
  top: 0;
  right: 380px;
  transform: translateX(15px);
}

/* Trigger popovers on hover */
.curriculum-week-item:hover .week-popover,
.milestone-card:hover .week-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.week-sessions-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #0066cc;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(0, 102, 204, 0.15);
  padding-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.week-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.session-item h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.session-item p {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

/* Achievement Badges and Locking mechanism */
.achievement-badge {
  position: absolute;
  top: -14px;
  right: 2rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.25;
  filter: grayscale(100%);
  scale: 0.92;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  letter-spacing: 0.05em;
}

.milestone-card.unlocked .achievement-badge {
  opacity: 1;
  filter: none;
  scale: 1;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 102, 204, 0.2);
  color: #0066cc;
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.08);
}

/* Glow Particle effects */
.glow-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: #00ffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 0 8px #00ffff;
}

/* Celebration card inner designs */
.celebration-box {
  text-align: center;
}

.celebration-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.celebration-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.skills-earned h5 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #0066cc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.skills-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: rgba(0, 102, 204, 0.05);
  color: #0066cc;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* Week large background number indicators */
.week-bg-num {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: rgba(15, 23, 42, 0.015);
  user-select: none;
  z-index: -1;
  transition: color 0.4s ease;
}

.milestone-card:hover .week-bg-num {
  color: rgba(0, 102, 204, 0.03);
}

.mobile-session-trigger {
  display: none;
}

/* Responsive Program Page vertical timeline stacking */
@media (max-width: 1024px) {
  .curriculum-journey-container {
    height: 2200px;
  }

  .journey-vertical-svg {
    left: 40px;
    transform: none;
    width: 100px;
  }

  /* Float Progress Indicator moves to bottom center on mobile */
  .journey-progress-indicator {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 58px;
    height: 58px;
  }

  /* All Cards align left-to-right */
  .curriculum-week-item {
    position: absolute !important;
    left: 120px !important;
    right: 1.5rem !important;
    width: auto !important;
    height: auto !important;
  }

  .milestone-card {
    position: absolute !important;
    left: 120px !important;
    right: 1.5rem !important;
    width: auto !important;
    transform: translateY(40px) !important;
  }

  .milestone-card.reveal {
    transform: translateY(0) !important;
  }

  .milestone-card.start-card {
    left: 120px !important;
    right: 1.5rem !important;
    width: auto !important;
    transform: translateY(40px) !important;
    text-align: left;
  }

  .milestone-card.start-card.reveal {
    transform: translateY(0) !important;
  }

  .milestone-card.completion-card {
    left: 120px !important;
    right: 1.5rem !important;
    width: auto !important;
    transform: translateY(40px) !important;
  }

  .milestone-card.completion-card.reveal {
    transform: translateY(0) !important;
  }

  /* Popover becomes standard hover reveal under the card on larger displays or collapses */
  .pos-week-1 .week-popover,
  .pos-week-2 .week-popover,
  .pos-week-3 .week-popover,
  .pos-week-4 .week-popover,
  .prototype-card .week-popover {
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    margin-top: 10px;
    transform: translateY(15px);
  }

  .curriculum-week-item:hover .week-popover,
  .milestone-card:hover .week-popover {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .program-main-title {
    font-size: 2.25rem;
  }

  .program-watermark-bg {
    font-size: 10rem;
    right: 1.5rem;
    top: 1.5rem;
  }

  .program-curriculum-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .sum-value-divider {
    display: none;
  }

  .journey-vertical-svg {
    left: 10px;
  }

  .curriculum-week-item,
  .milestone-card {
    left: 80px !important;
    right: 1rem !important;
  }

  .mobile-session-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0066cc;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 0.5rem;
    width: fit-content;
    gap: 0.5rem;
    transition: all 0.3s ease;
  }

  .mobile-session-trigger svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
  }

  .curriculum-week-item.mobile-open .mobile-session-trigger {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
  }

  .curriculum-week-item.mobile-open .mobile-session-trigger svg {
    transform: rotate(45deg);
  }

  /* Popover becomes accordion on mobile click */
  .week-popover {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  }

  .curriculum-week-item.mobile-open .week-popover {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px dashed var(--border-color) !important;
  }

  .week-bg-num {
    right: 1rem;
    top: 0.5rem;
    font-size: 3.5rem;
  }
}

/* ==========================================================================
   OVERLAY NAVBAR (CONSISTENT HEADER INSIDE EVERY OVERLAY PANEL)
   ========================================================================== */
.overlay-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3.5rem;
  background: rgba(246, 246, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.overlay-nav-logo {
  pointer-events: auto;
}

.overlay-nav-links ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.overlay-nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.overlay-nav-links a:hover,
.overlay-nav-links a.overlay-nav-active {
  color: var(--text-primary);
}

.overlay-nav-close {
  position: static !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.overlay-nav-close:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.overlay-nav-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Ensure overlay-panel uses flex column so sticky nav works */
.overlay-panel {
  display: flex !important;
  flex-direction: column;
}

/* Old floating close-btn: hide when overlay-nav-close is present */
.overlay-panel .overlay-nav ~ .close-btn,
.overlay-panel .overlay-nav + .close-btn {
  display: none;
}

/* Push overlay content below the sticky nav (already accounted for by sticky) */
.overlay-panel .overlay-container {
  padding-top: 3rem;
}

/* Programs overlay has its own container layout — keep its padding */
.overlay-panel .program-layout {
  padding-top: 2rem;
}

/* ==========================================================================
   FOOTER SECTION (CHAPTER 7 — DEDICATED FULL SECTION)
   ========================================================================== */
.footer-story-section {
  background: var(--bg-primary) !important;
  overflow-y: auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.footer-section-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Brand row — logo + nav */
.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.15rem;
}

.footer-top-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-top-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer-top-nav a:hover {
  color: var(--text-primary);
}

/* Horizontal divider */
.footer-section-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

/* 4-column links grid */
.footer-columns-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding: 0.5rem 0;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

/* CTA column */
.footer-cta-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-cta-text {
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  max-width: 220px;
}

.footer-cta-btn {
  border-radius: 2px;
  font-size: 0.72rem;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-contact-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.footer-contact-links a:hover {
  color: var(--text-primary);
}

/* Bottom row */
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

.footer-bottom-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-dot-green);
  box-shadow: 0 0 6px var(--color-dot-green);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  text-decoration: none;
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* Watermark behind footer content */
.footer-story-section .watermark-bg {
  opacity: 0.35;
}

/* Responsive footer */
@media (max-width: 900px) {
  .footer-columns-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top-nav ul {
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .footer-section-inner {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-columns-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .overlay-nav {
    padding: 0.9rem 1.5rem;
  }

  .overlay-nav-links {
    display: none;
  }
}

/* ==========================================================================
   BOOK A DEMO — SENIOR UI/UX EDITORIAL SPLIT DESIGN
   ========================================================================== */

/* Two-column master split layout */
.demo-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Editorial Header */
.demo-header {
  text-align: center;
  margin-bottom: 3rem;
}

.demo-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.demo-subline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  font-weight: 400;
}

/* Two-column master grid layout */
.demo-split-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

/* Left Column: Form Card */
.demo-form-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 3rem 2.75rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.06), 0 10px 20px -10px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.4s var(--ease-out-quint), box-shadow 0.4s var(--ease-out-quint);
}

/* Right Column: Background-less Visual Stage */
.demo-visual-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
  width: 100%;
}

/* Main Student Character (Right side image) */
.demo-student-img {
  max-height: 480px;
  width: auto;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.12));
  animation: floatStudent 7s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes floatStudent {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Futuristic Robot Car Mascot (Car element preserved) */
.demo-car-mascot {
  position: absolute;
  left: 10px;
  bottom: 0px;
  width: 180px;
  height: auto;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
  animation: floatCar 5s ease-in-out infinite;
  transition: transform 0.4s var(--ease-out-quint);
}

.demo-car-mascot:hover {
  transform: scale(1.08) translateY(-6px) rotate(-2deg);
}

@keyframes floatCar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1.5deg); }
}

/* Side-by-side form fields */
.demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Floating label inputs */
.floating-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-group input,
.floating-group textarea {
  width: 100%;
  padding: 1.15rem 0.25rem 0.45rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  outline: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.floating-group textarea {
  resize: none;
  height: 80px;
}

.floating-group label {
  position: absolute;
  left: 0.25rem;
  top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-light);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label,
.floating-group textarea:focus ~ label,
.floating-group textarea:not(:placeholder-shown) ~ label {
  top: 0.1rem;
  font-size: 0.52rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.floating-group input:focus,
.floating-group textarea:focus {
  border-bottom-color: var(--text-primary);
}

/* Section titles inside form */
.selection-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.65rem;
  display: block;
  font-weight: 700;
}

/* Chips — domain, audience, class, and course */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.chip-item {
  padding: 0.55rem 1.1rem;
  background: #f4f4f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.chip-item:hover {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  background: #e4e4e7;
}

.chip-item.selected {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* CTA button */
.btn-demo-cta {
  position: relative;
  width: 100%;
  padding: 1.1rem;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-demo-cta:hover {
  transform: translateY(-2px);
  background: #000000;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}

.btn-demo-cta:active {
  transform: translateY(0);
}

.btn-demo-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.6s;
}

.btn-demo-cta:hover::after {
  left: 150%;
  transition: 0.8s ease-in-out;
}

.btn-demo-cta-text {
  position: relative;
  z-index: 2;
}

/* Success State */
.demo-success-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.demo-success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.demo-success-icon svg {
  width: 26px;
  height: 26px;
}

.demo-success-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.demo-success-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Trust bar — minimal horizontal strip */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(0, 0, 0, 0.08);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .demo-split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .demo-visual-card {
    min-height: 480px;
    padding: 2rem;
  }

  .demo-student-img {
    max-height: 360px;
  }

  .demo-car-mascot {
    width: 145px;
  }
}

@media (max-width: 640px) {
  .demo-form-card {
    padding: 2rem 1.5rem;
    border-radius: 18px;
  }

  .demo-headline {
    font-size: 2.2rem;
  }

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

  .badge-top-right, .badge-bottom-right {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    margin-bottom: 0.5rem;
  }

  .demo-showcase-stage {
    flex-direction: column;
    align-items: center;
  }

  .demo-car-mascot {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: -30px;
  }

  .trust-bar {
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .trust-divider {
    display: none;
  }
}

/* Blog Card Hover & Animation */
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Public Blog Post HTML Content Styles */
.post-content h1, .post-content h2, .post-content h3 { color: #ffffff; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; }
.post-content h1 { font-size: 2.25rem; }
.post-content h2 { font-size: 1.75rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 0.5rem; }
.post-content h3 { font-size: 1.4rem; }
.post-content p { margin-top: 0; margin-bottom: 1.5rem; }
.post-content ul, .post-content ol { margin-top: 0; margin-bottom: 1.5rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 4px solid #6366f1; color: #94a3b8; font-style: italic; background: rgba(99,102,241,0.02); padding-top: 0.5rem; padding-bottom: 0.5rem; }
.post-content pre { background-color: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 0.5rem; overflow-x: auto; font-family: monospace; margin: 1.5rem 0; }
.post-content code { font-family: monospace; background-color: rgba(255,255,255,0.05); padding: 0.2rem 0.4rem; border-radius: 0.25rem; color: #f8fafc; font-size: 0.9em; }
.post-content img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 2rem 0; }
.post-content a { color: #6366f1; text-decoration: none; border-bottom: 1px solid rgba(99, 102, 241, 0.4); padding-bottom: 1px; }
.post-content a:hover { color: #818cf8; border-color: #818cf8; }

/* ==========================================================================
   ADMIN PANEL — Markdown Preview (Industrial Monochrome)
   ========================================================================== */
.admin-markdown-preview h1 { font-size: 1.8rem; margin-top: 0; margin-bottom: 1rem; color: #000; font-weight: 700; border-bottom: 1px solid #e5e5e5; padding-bottom: 0.5rem; }
.admin-markdown-preview h2 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.75rem; color: #111; font-weight: 700; }
.admin-markdown-preview h3 { font-size: 1.2rem; margin-top: 1.25rem; margin-bottom: 0.5rem; color: #333; font-weight: 600; }
.admin-markdown-preview p { margin-top: 0; margin-bottom: 1rem; color: #444; }
.admin-markdown-preview ul, .admin-markdown-preview ol { margin-top: 0; margin-bottom: 1rem; padding-left: 1.5rem; color: #444; }
.admin-markdown-preview li { margin-bottom: 0.25rem; }
.admin-markdown-preview blockquote { margin: 1rem 0; padding: 0.75rem 1rem; border-left: 3px solid #000; color: #666; background: #fafafa; }
.admin-markdown-preview pre { background-color: #f5f5f5; border: 1px solid #e5e5e5; padding: 1rem; overflow-x: auto; font-family: monospace; font-size: 0.85rem; margin: 1rem 0; }
.admin-markdown-preview code { font-family: monospace; background-color: #f0f0f0; padding: 0.15rem 0.35rem; font-size: 0.9em; color: #111; }
.admin-markdown-preview img { max-width: 100%; height: auto; margin: 1.5rem 0; }
.admin-markdown-preview a { color: #000; text-decoration: underline; text-underline-offset: 2px; }
.admin-markdown-preview a:hover { color: #555; }

/* ==========================================================================
   APPLE & GOOGLE STYLE FLUID ANIMATIONS (PUBLIC BLOG THEME)
   ========================================================================== */

@keyframes appleFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes googleFloatGlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-apple-fade-in {
  animation: appleFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.apple-card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  will-change: transform, box-shadow;
}

.apple-card-hover:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.apple-card-hover:hover .card-zoom-img {
  transform: scale(1.06);
}

.card-zoom-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chip-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.chip-btn:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   SINGLE ROW SEGMENTED CONTROL & APPLE STEP CARDS
   ========================================================================== */

.single-row-segmented-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.single-row-segmented-bar::-webkit-scrollbar {
  display: none;
}

.single-row-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 0 0.25rem;
}

.apple-step-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.5rem;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
}

.apple-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: #121212;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.step-illustration-box {
  width: 100%;
  height: 180px;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.step-illustration-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.apple-step-card:hover .step-illustration-img {
  transform: scale(1.05);
}
/* Floating Contact Actions */
.floating-action-btn:hover { transform: translateY(-4px) scale(1.05); }
.whatsapp-btn:hover { box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6) !important; }
.call-btn:hover { box-shadow: 0 6px 16px rgba(0, 123, 255, 0.6) !important; }
@media (max-width: 768px) { .floating-contact-actions { bottom: 1.5rem !important; right: 1.5rem !important; } .floating-action-btn { width: 48px !important; height: 48px !important; } .floating-action-btn svg { width: 24px !important; height: 24px !important; } }
/* Process Timeline Component */
.process-section-light {
  background-color: #f7f9fc !important;
  color: #1a1a1a !important;
}
.process-section-light .section-bg {
  background-color: #f7f9fc !important;
  background-image: none !important;
}
.process-section-light .story-title {
  color: #0b1a30 !important;
}
.process-section-light .story-text {
  color: #555 !important;
}
.process-section-light .chapter-indicator, 
.process-section-light .status-panel {
  color: #777 !important;
}
.process-section-light .status-panel .status-num {
  color: rgba(0,0,0,0.05) !important;
}

.process-timeline-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.process-timeline-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}
.process-timeline-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0b1a30;
  margin: 0;
}
.process-timeline-header .subtitle {
  font-size: 0.9rem;
  color: #007bff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: lowercase;
}
.process-timeline-header .subtitle::before,
.process-timeline-header .subtitle::after {
  content: '';
  width: 20px;
  height: 2px;
  background-color: #007bff;
}
.process-timeline-header .watermark {
  position: absolute;
  top: -2rem;
  right: 0;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(0,0,0,0.03);
  line-height: 1;
}

.process-timeline-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
}

.process-curve-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}
.process-curve-path {
  fill: none;
  stroke: #007bff;
  stroke-width: 3;
  filter: drop-shadow(0 8px 12px rgba(0, 123, 255, 0.4));
}

.process-node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  width: 220px;
}
.process-node .node-bg-num {
  position: absolute;
  font-size: 7rem;
  font-weight: 800;
  color: rgba(0,0,0,0.04);
  z-index: -1;
  line-height: 1;
}
.process-node .hexagon-wrapper {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
}
.process-node .node-hexagon {
  width: 50px;
  height: 50px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.process-node svg.node-icon {
  width: 20px;
  height: 20px;
  fill: #007bff;
}
/* Process Timeline Component */
.process-section-light {
  background-color: #f7f9fc !important;
  color: #1a1a1a !important;
}
.process-section-light .section-bg {
  background-color: #f7f9fc !important;
  background-image: none !important;
}
.process-section-light .story-title {
  color: #0b1a30 !important;
}
.process-section-light .story-text {
  color: #555 !important;
}
.process-section-light .chapter-indicator, 
.process-section-light .status-panel {
  color: #777 !important;
}
.process-section-light .status-panel .status-num {
  color: rgba(0,0,0,0.05) !important;
}

.process-timeline-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.process-timeline-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}
.process-timeline-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0b1a30;
  margin: 0;
}
.process-timeline-header .subtitle {
  font-size: 0.9rem;
  color: #007bff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: lowercase;
}
.process-timeline-header .subtitle::before,
.process-timeline-header .subtitle::after {
  content: '';
  width: 20px;
  height: 2px;
  background-color: #007bff;
}
.process-timeline-header .watermark {
  position: absolute;
  top: -2rem;
  right: 0;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(0,0,0,0.03);
  line-height: 1;
}

.process-timeline-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
}

.process-curve-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}
.process-curve-path {
  fill: none;
  stroke: #007bff;
  stroke-width: 3;
  filter: drop-shadow(0 8px 12px rgba(0, 123, 255, 0.4));
}

.process-node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  width: 220px;
}
.process-node .node-bg-num {
  position: absolute;
  font-size: 7rem;
  font-weight: 800;
  color: rgba(0,0,0,0.04);
  z-index: -1;
  line-height: 1;
}
.process-node .hexagon-wrapper {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
}
.process-node .node-hexagon {
  width: 50px;
  height: 50px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.process-node svg.node-icon {
  width: 20px;
  height: 20px;
  fill: #007bff;
}
.process-node .node-content {
  text-align: left;
}
.process-node .node-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.process-node .node-content p {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.4;
  margin: 0;
}

/* Text placements for generic peaks and troughs */
.process-node.pos-trough .node-content {
  position: absolute;
  top: -45px;
  right: 60px;
  width: 180px;
  text-align: right;
}
.process-node.pos-trough .node-bg-num {
  top: -65px;
  right: 140px;
}

.process-node.pos-peak .node-content {
  position: absolute;
  top: 60px;
  left: -20px;
  width: 180px;
  text-align: left;
}
.process-node.pos-peak .node-bg-num {
  top: 10px;
  right: 30px;
}

@media (max-width: 768px) {
  .process-timeline-wrapper { height: auto; padding: 2rem 0; display: flex; flex-direction: column; gap: 2rem; }
  .process-curve-svg { display: none; }
  .process-node { position: relative; left: 0 !important; top: 0 !important; transform: none; width: 100%; flex-direction: row; gap: 1rem; }
  .process-node .node-content { position: relative !important; top: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; text-align: left; }
  .process-node .node-bg-num { top: -20px !important; left: -10px !important; right: auto !important; transform: none; font-size: 5rem; }
}

/* ==========================================================================
   HORIZONTAL SCROLL SYSTEM (PROGRAMS PAGE)
   ========================================================================== */
html:has(.horizontal-scroll-container),
html:has(.horizontal-scroll-container) body {
  overflow: hidden; /* Hide native vertical scrolling */
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.horizontal-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  height: 100vh;
  overflow: hidden; /* GSAP translates it */
  position: relative;
}

/* Process Timeline Component */
.process-section-light {
  background-color: #f7f9fc !important;
  color: #1a1a1a !important;
}
.process-section-light .section-bg {
  background-color: #f7f9fc !important;
  background-image: none !important;
}
.process-section-light .story-title {
  color: #0b1a30 !important;
}
.process-section-light .story-text {
  color: #555 !important;
}
.process-section-light .chapter-indicator, 
.process-section-light .status-panel {
  color: #777 !important;
}
.process-section-light .status-panel .status-num {
  color: rgba(0,0,0,0.05) !important;
}

.process-timeline-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.process-timeline-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}
.process-timeline-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0b1a30;
  margin: 0;
}
.process-timeline-header .subtitle {
  font-size: 0.9rem;
  color: #007bff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: lowercase;
}
.process-timeline-header .subtitle::before,
.process-timeline-header .subtitle::after {
  content: '';
  width: 20px;
  height: 2px;
  background-color: #007bff;
}
.process-timeline-header .watermark {
  position: absolute;
  top: -2rem;
  right: 0;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(0,0,0,0.03);
  line-height: 1;
}

.process-timeline-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
}

.process-curve-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}
.process-curve-path {
  fill: none;
  stroke: #007bff;
  stroke-width: 3;
  filter: drop-shadow(0 8px 12px rgba(0, 123, 255, 0.4));
}

.process-node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  width: 220px;
}
.process-node .node-bg-num {
  position: absolute;
  font-size: 7rem;
  font-weight: 800;
  color: rgba(0,0,0,0.04);
  z-index: -1;
  line-height: 1;
}
.process-node .hexagon-wrapper {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
}
.process-node .node-hexagon {
  width: 50px;
  height: 50px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.process-node svg.node-icon {
  width: 20px;
  height: 20px;
  fill: #007bff;
}
.process-node .node-content {
  text-align: left;
}
.process-node .node-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.process-node .node-content p {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.4;
  margin: 0;
}

/* Text placements for generic peaks and troughs */
.process-node.pos-trough .node-content {
  position: absolute;
  top: -45px;
  right: 60px;
  width: 180px;
  text-align: right;
}
.process-node.pos-trough .node-bg-num {
  top: -65px;
  right: 140px;
}

.process-node.pos-peak .node-content {
  position: absolute;
  top: 60px;
  left: -20px;
  width: 180px;
  text-align: left;
}
.process-node.pos-peak .node-bg-num {
  top: 10px;
  right: 30px;
}

@media (max-width: 768px) {
  .process-timeline-wrapper { height: auto; padding: 2rem 0; display: flex; flex-direction: column; gap: 2rem; }
  .process-curve-svg { display: none; }
  .process-node { position: relative; left: 0 !important; top: 0 !important; transform: none; width: 100%; flex-direction: row; gap: 1rem; }
  .process-node .node-content { position: relative !important; top: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; text-align: left; }
  .process-node .node-bg-num { top: -20px !important; left: -10px !important; right: auto !important; transform: none; font-size: 5rem; }
}

/* ==========================================================================
   HORIZONTAL SCROLL SYSTEM (PROGRAMS PAGE)
   ========================================================================== */
html:has(.horizontal-scroll-container),
html:has(.horizontal-scroll-container) body {
  overflow: hidden; /* Hide native vertical scrolling */
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.horizontal-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  height: 100vh;
  overflow: hidden; /* GSAP translates it */
  position: relative;
}

.horizontal-panel {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow-y: hidden;
  overflow-x: hidden;
}

/* Ensure inner content can scroll vertically if needed */
.horizontal-panel .editorial-container {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}
.horizontal-panel .editorial-container::-webkit-scrollbar {
  display: none;
}

/* Ensure process timeline can stretch horizontally */
.horizontal-panel .process-timeline-container {
  width: 100%;
  max-width: none;
  min-width: 900px;
}

/* ==========================================================================
   FAQ ACCORDION & KNOWLEDGE BASE STYLES
   ========================================================================== */

.faq-page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.faq-header {
  text-align: left;
  margin-bottom: 3rem;
}

.faq-pretitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.faq-subline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.faq-summary {
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  pointer-events: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  pointer-events: none;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: #111111;
  color: #ffffff;
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
  padding: 0 1.75rem 1.5rem;
}

.faq-answer {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 1rem;
}

.faq-answer a {
  color: #111111;
  font-weight: 600;
  text-decoration: underline;
}

/* Category Filter Tabs */
.faq-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.faq-tab-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.faq-tab-btn:hover {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

.faq-tab-btn.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   HORIZONTAL GALLERY VIRTUAL SCROLL SYSTEM
   ========================================================================== */
html:has(.gallery-scroll-container),
html:has(.gallery-scroll-container) body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

.gallery-scroll-container {
  display: flex;
  flex-direction: row;
  width: max-content;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-secondary);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background-color 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-story-section {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0.3;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-story-section.active {
  opacity: 1;
  z-index: 5;
}

/* Centered Layout for Gallery Sections */
.gallery-story-section .editorial-container {
  width: 100%;
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  position: relative;
  z-index: 5;
  grid-template-columns: none; /* Override standard 3-column grid */
}

.gallery-story-section .story-content-box {
  flex: 0 0 380px;
  max-width: 380px;
}

/* Horizontal Gallery Cards Showcase Container */
.gallery-cards-showcase {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  width: 100%;
  max-width: 760px;
  align-items: center;
}

@media (max-width: 900px) {
  .gallery-cards-showcase {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}

.gallery-showcase-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  position: relative;
}

.gallery-showcase-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.2);
}

.gallery-showcase-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.gallery-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-showcase-card:hover .gallery-showcase-img {
  transform: scale(1.06);
}

.gallery-showcase-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
}

.gallery-showcase-body {
  padding: 1.15rem 1.35rem;
}

.gallery-showcase-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.gallery-showcase-desc {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: #5a5a5a;
  line-height: 1.45;
}

/* Horizontal Scroll Controls Bar */
.horizontal-scroll-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.horizontal-nav-btn {
  background: transparent;
  border: none;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.horizontal-nav-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: scale(1.1);
}

.horizontal-scroll-track {
  width: 140px;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.horizontal-scroll-thumb {
  height: 100%;
  width: 14.28%;
  background: #111111;
  border-radius: 2px;
  transition: transform 0.4s ease;
}

.horizontal-scroll-prompt-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #5a5a5a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Lightbox Styling */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 920px;
  width: 100%;
  background: #121212;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 65vh;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-caption {
  padding: 1.75rem 2rem;
  color: #ffffff;
  background: #121212;
}

.lightbox-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.footer-bottom-links a {
  color: #707070;
  text-decoration: none;
  pointer-events: auto !important;
  opacity: 1 !important;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #111111;
  text-decoration: underline;
}


