/* ==========================================================================
   AMOG TECH (A-TECH) - Apple-Grade Design System & Kinetic Motion
   3D Inward-Tilted Perspective Stage, Upward Gliding Product Stream,
   Particle Networks, Magnetic Physics & Frosted Glass Nav.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans+Myanmar:wght@400;500;600;700;800;900&display=swap');

:root {
  --apple-bg: #FFFFFF;
  --apple-subtle-bg: #F5F5F7;
  --apple-card-bg: #FFFFFF;
  --apple-text-primary: #1D1D1F;
  --apple-text-secondary: #86868B;
  --apple-border: rgba(0, 0, 0, 0.08);
  --apple-accent: #211D67;
  --apple-accent-hover: #191652;
  --apple-accent-vibrant: #2E288F;
  --apple-accent-glow: rgba(33, 29, 103, 0.25);
  --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --apple-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --apple-spring-tactile: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base smooth ergonomics */
html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  background-color: var(--apple-bg);
  color: var(--apple-text-primary);
  overflow-x: clip;
}

/* ==========================================================================
   MYANMAR TYPOGRAPHY ERGONOMICS (Prevents Diacritic Clipping & Text Collisions)
   ========================================================================== */
html[lang="my"] * {
  letter-spacing: 0 !important; /* Critical: Myanmar script must NEVER have negative tracking */
}

html[lang="my"] body,
html[lang="my"] input,
html[lang="my"] textarea,
html[lang="my"] select,
.lang-mm {
  font-family: 'Noto Sans Myanmar', -apple-system, BlinkMacSystemFont, 'Pyidaungsu', sans-serif !important;
  line-height: 1.62;
}

/* Hero Headline Typography - Harmonized Optical Scale */
.hero-title {
  font-size: clamp(1.85rem, 5.0vw, 3.65rem); /* ~29px on mobile to ~58px desktop */
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 800;
}

/* Scaled Display Headlines for Myanmar Script (Cupertino Pro Proportions) */
html[lang="my"] .hero-title {
  font-family: 'Noto Sans Myanmar', -apple-system, BlinkMacSystemFont, 'Pyidaungsu', sans-serif !important;
  font-size: clamp(1.85rem, 5.0vw, 3.65rem) !important; /* Matches English hero scale 1:1 */
  line-height: 1.30 !important;
  letter-spacing: 0 !important;
  font-weight: 800 !important;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

html[lang="my"] h1 {
  font-family: 'Noto Sans Myanmar', -apple-system, BlinkMacSystemFont, 'Pyidaungsu', sans-serif !important;
  line-height: 1.30 !important;
  letter-spacing: 0 !important;
}

html[lang="my"] h2 {
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

html[lang="my"] h3 {
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.42 !important;
  letter-spacing: 0 !important;
}

html[lang="my"] h4 {
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

/* Weight Harmonization: Matches English typography scale 1:1 across all weights */
html[lang="my"] .font-black {
  font-weight: 900 !important;
}

html[lang="my"] .font-extrabold,
html[lang="my"] h1.font-extrabold,
html[lang="my"] h2.font-extrabold {
  font-weight: 800 !important;
}

html[lang="my"] .font-bold,
html[lang="my"] h2.font-bold,
html[lang="my"] h3.font-bold {
  font-weight: 700 !important;
}

html[lang="my"] .font-semibold,
html[lang="my"] h4.font-semibold {
  font-weight: 600 !important;
}

html[lang="my"] p {
  line-height: 1.72 !important;
}

html[lang="my"] .hero-subtitle {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  max-width: 820px;
}

html[lang="my"] .apple-button,
html[lang="my"] button {
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  /* Component padding remains intact to prevent height jump */
}

html[lang="my"] .banner-tab-pill {
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

/* Segmented Language Switcher Pill */
.lang-switch-container {
  display: inline-flex;
  align-items: center;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  color: #86868B;
  transition: all 0.2s var(--apple-ease);
  cursor: pointer;
  border: none;
  background: transparent;
}

.lang-btn.active {
  background: #FFFFFF;
  color: #1D1D1F;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.lang-btn:hover:not(.active) {
  color: #1D1D1F;
}

::selection {
  background: #211D67;
  color: #FFFFFF;
}

.font-mono-code {
  font-family: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Precision Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #F5F5F7;
}
::-webkit-scrollbar-thumb {
  background: #D1D1D6;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8E8E93;
}

/* Hide scrollbar for clean horizontal ribbon scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Apple Frosted Glass / Translucency */
.apple-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

/* Permanent zero-jump border on navbar */
#navbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s var(--apple-ease);
}

/* Global Nav Backdrop Overlay */
#nav-backdrop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.25s var(--apple-ease), visibility 0.25s;
}

#nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Apple-style Smooth Nav Dropdown (Zero Jump) */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 20px;
  background: transparent;
}

.apple-dropdown-menu {
  position: absolute;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transform-origin: top center;
  transition: opacity 0.2s var(--apple-ease), transform 0.2s var(--apple-ease), visibility 0.2s;
  pointer-events: none;
  will-change: transform, opacity;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.nav-dropdown-wrapper:hover .apple-dropdown-menu,
.nav-dropdown-wrapper:focus-within .apple-dropdown-menu,
.apple-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.apple-dropdown-menu a {
  opacity: 0.95;
  transition: all 0.2s var(--apple-ease);
}
.apple-dropdown-menu a:hover {
  opacity: 1;
  transform: translateX(4px);
  background-color: #F5F5F7;
}

/* ==========================================================================
   Apple iOS Mobile Navigation Drawer Animation
   ========================================================================== */
#mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transform-origin: top center;
  transition: 
    max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.38s;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.14);
  will-change: max-height, opacity, transform;
}

#mobile-menu.open {
  max-height: 85vh;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Staggered entrance for menu links */
#mobile-menu.open .mobile-nav-link {
  animation: mobileNavCascade 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.04s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.08s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.12s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.16s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { animation-delay: 0.20s; }

@keyframes mobileNavCascade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger & Close Icon Morphing */
#mobile-toggle .hamburger-icon,
#mobile-toggle .close-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

#mobile-toggle.is-active .hamburger-icon {
  display: none !important;
}

#mobile-toggle.is-active .close-icon {
  display: block !important;
  transform: rotate(90deg);
}

/* Prevent background scroll when mobile nav is open */
body.mobile-nav-locked {
  overflow: hidden !important;
  touch-action: none;
}

/* Subtle Apple Grid Pattern */
.bg-apple-grid {
  background-size: 64px 64px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* ==========================================================================
   3D INWARD-TILTED PERSPECTIVE STAGE & UPWARD GLIDING CARDS
   ========================================================================== */

.perspective-stage {
  perspective: 1400px;
  perspective-origin: 50% 30%;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 85%, transparent 100%);
}

.tilted-inward-container {
  transform: rotateX(22deg) scale(0.94) translateY(-24px);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Infinite Upward Gliding Stream */
@keyframes glide-upwards-slow {
  0% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-50%);
  }
}

.glide-up-col-1 {
  animation: glide-upwards-slow 34s linear infinite;
  animation-delay: -8s;
  will-change: transform;
}

.glide-up-col-2 {
  animation: glide-upwards-slow 28s linear infinite;
  animation-delay: -15s;
  will-change: transform;
}

.glide-up-col-3 {
  animation: glide-upwards-slow 38s linear infinite;
  animation-delay: -6s;
  will-change: transform;
}

/* Column pause only on direct column hover, preventing stage-wide stutter */
.glide-up-col-1:hover,
.glide-up-col-2:hover,
.glide-up-col-3:hover {
  animation-play-state: paused;
}

/* 3D Product Card with Inward Elevation (Auto-scaled for 3 Columns on Mobile & Desktop) */
.product-3d-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 0.5rem !important;
  box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.05);
  transition: transform 0.45s var(--apple-spring), box-shadow 0.45s var(--apple-spring), border-color 0.25s var(--apple-ease);
  overflow: hidden;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Card inner image container */
.product-3d-card > div:first-child {
  height: 4.5rem !important; /* ~72px on mobile */
  border-radius: 10px !important;
  margin-bottom: 0.35rem !important;
}

/* Hide floating badge on small mobile */
.product-3d-card > div:first-child > span {
  display: none !important;
}

/* Status row */
.product-3d-card > div:nth-child(2) {
  font-size: 8px !important;
  margin-bottom: 2px !important;
}

/* Title */
.product-3d-card h4 {
  font-size: 11px !important;
  line-height: 1.25 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Long description paragraph (hidden on mobile for compact tile look) */
.product-3d-card p {
  display: none !important;
}

/* Footer spec & button */
.product-3d-card > div:last-child {
  margin-top: 0.35rem !important;
  padding-top: 0.35rem !important;
}

.product-3d-card > div:last-child > span:first-child {
  font-size: 8.5px !important;
}

.product-3d-card > div:last-child > span:last-child {
  display: none !important;
}

/* Mobile Stage Ergonomics */
@media (max-width: 639px) {
  .perspective-stage {
    perspective: 800px;
    height: 440px !important;
  }
  .tilted-inward-container {
    transform: rotateX(16deg) scale(0.97) translateY(-10px);
  }
  .product-3d-card h4,
  html[lang="my"] .product-3d-card h4 {
    font-size: 9.5px !important;
    line-height: 1.32 !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .product-3d-card > div:nth-child(2),
  html[lang="my"] .product-3d-card > div:nth-child(2) {
    font-size: 7.5px !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
  }
  .product-3d-card > div:last-child > span:first-child,
  html[lang="my"] .product-3d-card > div:last-child > span:first-child {
    font-size: 7.5px !important;
    line-height: 1.2 !important;
  }
}

/* Tablet Scaling */
@media (min-width: 640px) {
  .perspective-stage {
    height: 520px !important;
  }
  .product-3d-card {
    border-radius: 18px;
    padding: 0.85rem !important;
  }
  .product-3d-card > div:first-child {
    height: 7.5rem !important; /* 120px */
    border-radius: 14px !important;
    margin-bottom: 0.65rem !important;
  }
  .product-3d-card > div:first-child > span {
    display: inline-block !important;
  }
  .product-3d-card > div:nth-child(2),
  html[lang="my"] .product-3d-card > div:nth-child(2) {
    font-size: 10px !important;
    margin-bottom: 3px !important;
  }
  .product-3d-card h4,
  html[lang="my"] .product-3d-card h4 {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }
  .product-3d-card p,
  html[lang="my"] .product-3d-card p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 11px !important;
  }
  .product-3d-card > div:last-child {
    margin-top: 0.65rem !important;
    padding-top: 0.5rem !important;
  }
  .product-3d-card > div:last-child > span:first-child,
  html[lang="my"] .product-3d-card > div:last-child > span:first-child {
    font-size: 10px !important;
  }
  .product-3d-card > div:last-child > span:last-child {
    display: inline-flex !important;
  }
}

/* Desktop Scaling (Cupertino Pro Flagship) */
@media (min-width: 1024px) {
  .perspective-stage {
    height: 580px !important;
    perspective: 1400px;
  }
  .tilted-inward-container {
    transform: rotateX(22deg) scale(0.94) translateY(-24px);
  }
  .product-3d-card {
    border-radius: 24px;
    padding: 1.25rem !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
  }
  .product-3d-card > div:first-child {
    height: 10rem !important; /* 160px */
    border-radius: 16px !important;
    margin-bottom: 1rem !important;
  }
  .product-3d-card > div:nth-child(2),
  html[lang="my"] .product-3d-card > div:nth-child(2) {
    font-size: 12px !important;
  }
  .product-3d-card h4,
  html[lang="my"] .product-3d-card h4 {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
  .product-3d-card p,
  html[lang="my"] .product-3d-card p {
    font-size: 12px !important;
  }
  .product-3d-card > div:last-child {
    margin-top: 1rem !important;
    padding-top: 0.75rem !important;
  }
  .product-3d-card > div:last-child > span:first-child,
  html[lang="my"] .product-3d-card > div:last-child > span:first-child {
    font-size: 11px !important;
  }
}

/* Prevent internal child element flickering */
.product-3d-card * {
  pointer-events: none;
}
.product-3d-card a,
.product-3d-card button {
  pointer-events: auto;
}

.product-3d-card:hover {
  transform: translateZ(24px) scale(1.02);
  border-color: rgba(33, 29, 103, 0.35);
  box-shadow: 0 24px 48px -12px rgba(33, 29, 103, 0.14), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
  z-index: 30;
}

/* Infinite Marquee Ticker */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* Floating Physics */
@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

.animate-float {
  animation: float-gentle 5s ease-in-out infinite;
}

/* Bento Cards */
.bento-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 28px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.45s var(--apple-spring), border-color 0.3s var(--apple-ease);
  overflow: hidden;
  will-change: transform;
}

.bento-card:hover {
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.09), 0 8px 16px -4px rgba(0, 0, 0, 0.03);
  border-color: rgba(33, 29, 103, 0.28);
}

/* Magnetic Button */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.35s var(--apple-spring);
  will-change: transform;
}

/* Apple Specular Industrial Card (Eliminates AI Slop Flashlight Cursor) */
.specular-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.45s var(--apple-spring), box-shadow 0.45s var(--apple-spring), border-color 0.3s var(--apple-ease);
}

.specular-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(33, 29, 103, 0.15);
  border-color: rgba(33, 29, 103, 0.25);
}

/* Authorized Technology Alliances Wall (Stationary Cupertino Engineering Tier) */
.alliance-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 1.5rem;
  transition: transform 0.45s var(--apple-spring), box-shadow 0.45s var(--apple-spring), border-color 0.25s var(--apple-ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.alliance-card:hover {
  background: #FFFFFF;
  border-color: rgba(33, 29, 103, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(33, 29, 103, 0.15);
}

/* Scroll Scrubbing Storytelling Typography */
.scrub-text span {
  display: inline;
}

.scrub-word {
  opacity: 0.28;
  color: #86868B;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, color;
}

.scrub-word.active {
  opacity: 1;
  color: #1D1D1F;
}

.scrub-word.scrub-word-brand.active {
  opacity: 1;
  color: #211D67 !important;
}

/* Apple Buttons */
.apple-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: 9999px;
  transition: transform 0.35s var(--apple-spring), background-color 0.25s var(--apple-ease), box-shadow 0.35s var(--apple-spring);
  position: relative;
  overflow: hidden;
}

.apple-button:hover {
  transform: translateY(-2px) scale(1.01);
}

.apple-button:active {
  transform: scale(0.97) translateY(0);
  transition-duration: 0.12s;
}

/* Subtle Accent Badge */
.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   INTERACTIVE SCROLL TIMELINE (Apple Precision History & Milestones)
   ========================================================================== */
.timeline-track {
  position: relative;
}

/* Base inactive track */
.timeline-track::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 19px;
  width: 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
}

/* Active glowing progress bar that fills dynamically with scroll */
.timeline-progress-bar {
  position: absolute;
  top: 24px;
  left: 19px;
  width: 2px;
  height: 0%;
  max-height: calc(100% - 48px);
  background: linear-gradient(to bottom, #211D67, #2E288F);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(33, 29, 103, 0.6);
  transition: height 0.12s linear;
  z-index: 1;
}

@media (min-width: 768px) {
  .timeline-track::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .timeline-progress-bar {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Timeline Item & Kinetic Node Beacon */
.timeline-item {
  position: relative;
}

.timeline-node {
  position: absolute;
  top: 1.5rem;
  left: -2.4rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 3px solid #D1D1D6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s var(--apple-spring);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.timeline-node-inner {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #D1D1D6;
  transition: all 0.4s var(--apple-spring);
}

@media (min-width: 768px) {
  .timeline-node {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Milestone Card Initial Hidden States */
.timeline-card {
  opacity: 0;
  transition: opacity 0.75s var(--apple-ease), transform 0.75s var(--apple-spring), box-shadow 0.35s var(--apple-ease), border-color 0.35s var(--apple-ease);
  will-change: opacity, transform;
}

/* Mobile: slide up */
@media (max-width: 767px) {
  .timeline-card {
    transform: translateY(28px);
  }
}

/* Desktop Left: slide in from left */
@media (min-width: 768px) {
  .timeline-item-left .timeline-card {
    transform: translateX(-40px);
  }
  /* Desktop Right: slide in from right */
  .timeline-item-right .timeline-card {
    transform: translateX(40px);
  }
}

/* Active State Triggered on Scroll */
.timeline-item.is-active .timeline-card {
  opacity: 1;
  transform: translate(0, 0);
}

.timeline-item.is-active .timeline-node {
  border-color: #211D67;
  box-shadow: 0 0 0 6px rgba(33, 29, 103, 0.16), 0 4px 14px rgba(33, 29, 103, 0.3);
  transform: scale(1.15);
}

@media (min-width: 768px) {
  .timeline-item.is-active .timeline-node {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.timeline-item.is-active .timeline-node-inner {
  background: #211D67;
  transform: scale(1.25);
}

/* Scroll Reveal Inview Animation Classes */
.motion-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--apple-ease), transform 0.8s var(--apple-ease);
  will-change: opacity, transform;
}

.motion-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   APPLE INTERACTIVE KEYNOTE BANNER THEATER
   ========================================================================== */
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

/* The outgoing previous slide stays fully visible at z-index 1 so NO black dip occurs */
.banner-slide.previous {
  opacity: 1 !important;
  z-index: 1 !important;
  pointer-events: none;
}

/* The active incoming slide dissolves on top at z-index 2 */
.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.banner-slide img.banner-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transform: scale(1.05);
  transition: transform 9s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.banner-slide.active img.banner-bg-img {
  transform: scale(1.0);
}

.banner-content-pane {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
  pointer-events: none;
  will-change: opacity, transform;
}

.banner-content-pane.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.banner-content-pane h2 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.banner-content-pane p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

/* Apple Segmented Tab Pills */
.banner-tab-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s var(--apple-ease);
  overflow: hidden;
  user-select: none;
}

.banner-tab-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.banner-tab-pill.active {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #211D67;
  width: 0%;
  transition: width 0.1s linear;
}

.banner-tab-pill.active .banner-tab-progress {
  background: #FFFFFF;
}
