/* 
 * ST PRO ALUMINIUM: CORE DESIGN SYSTEM STYLESHEET
 * Premium B2B Architectural Tier
 */

/* ---------------------------------------------------- */
/* 1. Variables & Design Tokens                         */
/* ---------------------------------------------------- */
:root {
  /* Adaptive Semantic Colors - Anodized Dark Theme (Default Version) */
  --bg-primary: #0A0C0F;
  --bg-surface: #14171D;
  --text-primary: #E8ECEF;
  --text-muted: #8F9CAE;
  --accent-action: #4D9FFF;
  --accent-action-hover: #79B5FF;
  --border-color: rgba(232, 236, 239, 0.08);
  --glass-bg: rgba(10, 12, 15, 0.45);
  --glass-border: rgba(232, 236, 239, 0.06);

  /* Metallic Visual Gradients & Patterns for Dark Theme */
  --metallic-silver: linear-gradient(135deg, #F1F5F9 0%, #CBD5E1 45%, #94A3B8 55%, #64748B 100%);
  --metallic-chrome: linear-gradient(90deg, #F8FAFC 0%, #E2E8F0 25%, #94A3B8 50%, #E2E8F0 75%, #F8FAFC 100%);
  --metallic-dark: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  --metallic-border: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.15) 100%);
  --metallic-text: linear-gradient(135deg, #FFFFFF 0%, #D1D5DB 35%, #9CA3AF 65%, #F3F4F6 100%);
  --brushed-texture: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 4px);

  /* Typography & Button Variables */
  --hero-desc-color: rgba(232, 232, 232, 0.8);
  --btn-primary-text: #0A0C0F;
  --btn-secondary-border: rgba(255, 255, 255, 0.2);
  --btn-secondary-text: #E8ECEF;
  --btn-secondary-bg: rgba(255, 255, 255, 0.03);
  --link-underline-color: rgba(255, 255, 255, 0.7);

  /* Canvas and Video overlays for Dark Mode */
  --hero-canvas-opacity: 0.45;
  --hero-overlay-gradient: linear-gradient(180deg, rgba(10, 12, 15, 0.4) 0%, rgba(10, 12, 15, 0.7) 100%);
  --hero-mobile-overlay-gradient: linear-gradient(180deg, rgba(10, 12, 15, 0.6) 0%, rgba(10, 12, 15, 0.85) 100%);
  --hero-text-overlay: linear-gradient(90deg, rgba(10, 12, 15, 0.85) 0%, rgba(10, 12, 15, 0.6) 45%, rgba(10, 12, 15, 0) 100%);

  /* Rem-Based Fluid Spacing Scale */
  --space-xs: 0.25rem;
  /* 4px */
  --space-sm: 0.5rem;
  /* 8px */
  --space-md: 1.0rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2.0rem;
  /* 32px */
  --space-2xl: 4.0rem;
  /* 64px */
  --space-3xl: 6.0rem;
  /* 96px */

  /* Font Families */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-label: 'Space Grotesk', sans-serif;

  /* Header Height */
  --header-height: 80px;
}

/* Light Theme Variables Switch */
[data-theme="light"] {
  /* Adaptive Semantic Colors - Light Theme (Triggered by Switch) */
  --bg-primary: #F8F9FA;
  --bg-surface: #FFFFFF;
  --text-primary: #1A1D23;
  --text-muted: #334155;
  --accent-action: #0056B3;
  --accent-action-hover: #004085;
  --border-color: rgba(26, 29, 35, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(0, 0, 0, 0.05);

  /* Metallic Visual Gradients & Patterns for Light Theme */
  --metallic-silver: linear-gradient(135deg, #475569 0%, #334155 45%, #1e293b 55%, #0f172a 100%);
  --metallic-chrome: linear-gradient(90deg, #1e293b 0%, #334155 25%, #475569 50%, #334155 75%, #1e293b 100%);
  --metallic-dark: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  --metallic-border: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.03) 50%, rgba(0, 0, 0, 0.15) 100%);
  --metallic-text: linear-gradient(135deg, #0f172a 0%, #1e293b 35%, #334155 65%, #475569 100%);
  --brushed-texture: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0px, rgba(0, 0, 0, 0.02) 1px, transparent 1px, transparent 4px);

  /* Typography & Button Variables */
  --hero-desc-color: rgba(30, 41, 59, 0.8);
  --btn-primary-text: #FFFFFF;
  --btn-secondary-border: rgba(0, 0, 0, 0.2);
  --btn-secondary-text: #1A1D23;
  --btn-secondary-bg: rgba(0, 0, 0, 0.03);
  --link-underline-color: rgba(0, 0, 0, 0.7);

  /* Canvas and Video overlays for Light Mode */
  --hero-canvas-opacity: 0.95;
  --hero-overlay-gradient: linear-gradient(180deg, rgba(248, 249, 250, 0.1) 0%, rgba(248, 249, 250, 0.6) 100%);
  --hero-mobile-overlay-gradient: linear-gradient(180deg, rgba(248, 249, 250, 0.6) 0%, rgba(248, 249, 250, 0.85) 100%);
  --hero-text-overlay: linear-gradient(90deg, rgba(248, 249, 250, 0.95) 0%, rgba(248, 249, 250, 0.65) 45%, rgba(248, 249, 250, 0) 100%);
}

/* ---------------------------------------------------- */
/* 2. Global Resets & Base Styles                      */
/* ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Disabled to prevent conflicts with GSAP ScrollTrigger pinning which causes jumping on mobile/desktop */
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---------------------------------------------------- */
/* 3. Sticky Precision Header & Navigation              */
/* ---------------------------------------------------- */
.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding-block: var(--space-sm);
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, padding-block 0.4s ease, box-shadow 0.4s ease;
}

/* Scroll Active State class */
.main-header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.header-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--space-md);
  width: 100%;
}

/* Brand Logo Layout (Cols 1-3) */
.brand-logo {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  user-select: none;
}

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

/* Nav Menu Layout */
.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  /* Theme adaptive muted text color */
  transition: color 0.3s ease;
  position: relative;
  padding-block: var(--space-xs);
}

.nav-link:hover {
  color: var(--text-primary);
  /* Theme adaptive primary text color */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-action);
  /* Theme adaptive accent color */
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link.active {
  color: var(--text-primary);
  /* Theme adaptive primary text color */
}

.nav-link.active::after {
  width: 100%;
}

/* Header Actions Layout */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}



/* Header Contact CTA Button */
.cta-button {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  transition: background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.2s ease, color 0.3s ease;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: var(--accent-action);
  color: #FFFFFF;
  transform: translateY(-1px);
}

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

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1020;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------------------------------------------------- */
/* 4. Parallax Hero Viewport Section                    */
/* ---------------------------------------------------- */
.parallax-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
}

/* Gradient text contrast overlay */
.parallax-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-text-overlay);
  z-index: 2;
  pointer-events: none;
}


/* Hero Background Video (Parallax Layer) Styling */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  /* Height greater than 100% to allow vertical translation space for parallax */
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background-color: transparent;
}

/* On desktops, overlay the canvas wireframe lines on top of the text block for a 3D blueprint depth effect */
@media (min-width: 768px) {
  .hero-video-wrapper {
    z-index: 4;
  }
}

/* Brushed metal overlay simulating micro-textures on polished aluminium */
.hero-video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brushed-texture), var(--hero-overlay-gradient);
  mix-blend-mode: overlay;
  opacity: 0.25;
  z-index: 2;
  pointer-events: none;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: var(--hero-canvas-opacity);
  /* Dynamic blend based on active theme */
}

/* Mobile Background Helpers and Animations */
.hero-mobile-bg-wrapper {
  display: none;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1.05);
  }
}

@keyframes lightSweep {
  0% {
    transform: translateX(-100%) skewX(-25deg);
  }

  50% {
    transform: translateX(100%) skewX(-25deg);
  }

  100% {
    transform: translateX(100%) skewX(-25deg);
  }
}

/* Content Frame Centering & Left Padding (The 75% Rule) */
.hero-container {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: auto auto;
  padding-inline: var(--space-md);
  width: 100%;
}

.hero-content {
  max-width: 70%;
  /* The 70% Rule for better column proportions */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.hero-tagline {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-action);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.5vw, 4.8rem);
  /* Responsive fluid header */
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: var(--metallic-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  max-width: 580px;
}

.hero-title span {
  display: block;
}

.hero-title .line-2 {
  font-weight: 500;
  letter-spacing: 0.05em;
  background: var(--metallic-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  opacity: 1;
}

.hero-description {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--hero-desc-color);
  margin-top: var(--space-sm);
  max-width: 600px;
}

/* CTA buttons Layout Grid/Flex Row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

/* Secondary subtle inline links */
.hero-secondary-links {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: var(--space-sm);
}

.link-secondary {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding-block: var(--space-xs);
  transition: color 0.3s ease, transform 0.3s ease;
}

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

.link-secondary .link-icon {
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.link-secondary:hover .link-icon {
  transform: translateY(-1px);
}

.link-separator {
  color: var(--border-color);
  font-weight: 300;
  user-select: none;
}

/* Visibility safety fallback — GSAP animates FROM opacity:0, so if JS fails mid-sequence,
   these stay invisible. This ensures buttons are always rendered. */
#heroPrimaryCta,
#heroSecondaryCta,
#heroCatalogCta {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.95rem 1.85rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary {
  background: var(--metallic-silver);
  color: var(--btn-primary-text);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 4px 15px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Brushed metal effect inside the button */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brushed-texture);
  opacity: 0.35;
  pointer-events: none;
}

/* Subtle metal shine overlay for technical CTA buttons */
.btn-shine-overlay {
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 2;
}

.btn-primary:hover {
  background: var(--metallic-chrome);
  color: var(--btn-primary-text);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8),
    0 6px 20px rgba(77, 159, 255, 0.25);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-secondary {
  border: 1px solid var(--btn-secondary-border);
  color: var(--btn-secondary-text);
  background: var(--btn-secondary-bg);
  box-shadow: inset 0 1px 0px rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0px rgba(255, 255, 255, 0.1), 0 6px 16px rgba(255, 255, 255, 0.1);
}

.link-underline {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--link-underline-color);
  border-bottom: 1px solid var(--link-underline-color);
  padding-bottom: 2px;
  margin-left: var(--space-sm);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.link-underline:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
}



/* ---------------------------------------------------- */
/* 6. Full-Screen Interactive Quote Modal               */
/* ---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: var(--space-md);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 100%;
  max-width: 650px;
  padding: var(--space-xl);
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 2rem;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #FFFFFF;
}

.modal-header {
  margin-bottom: var(--space-lg);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-xs);
}

.modal-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: #FFFFFF;
  padding: 0.85rem var(--space-md);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-action);
  box-shadow: 0 0 0 2px rgba(77, 159, 255, 0.15);
}

.modal-form .submit-btn {
  background-color: var(--accent-action);
  color: #FFFFFF;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem;
  border-radius: 6px;
  margin-top: var(--space-sm);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-form .submit-btn:hover {
  background-color: var(--accent-action-hover);
  transform: translateY(-1px);
}

/* Nav Drawer default (desktop flex wrapper) */
.nav-drawer {
  grid-column: 4 / span 9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-xl);
}

.drawer-footer {
  display: none;
}

/* ---------------------------------------------------- */
/* 7. Responsive Breakpoints & Mobile Rules             */
/* ---------------------------------------------------- */

/* Desktop & Large Screen margins */
@media (min-width: 768px) {

  .header-container,
  .hero-container,
  .bottom-bar-container {
    padding-inline: var(--space-xl);
  }
}

/* Tablet Screens Reflow (< 768px) */
@media (max-width: 767px) {
  .hero-container {
    transform: translateY(-35px);
  }

  .header-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-logo {
    grid-column: span 1;
  }

  .nav-menu {
    display: none;
    /* Collapses under hamburger */
  }

  .header-actions {
    display: none;
    /* Collapses under hamburger */
  }

  .mobile-toggle {
    display: flex;
    justify-self: end;
  }

  /* Drawer Backdrop Overlay using main-header pseudo-element */
  .main-header::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1005;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .main-header.mobile-open::before {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile Sidebar Drawer Styling */
  .nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 85vw);
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-surface);
    border-left: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    z-index: 1010;
    padding: 120px 40px 40px 40px;
  }

  html:not(.js-enabled) .nav-drawer {
    transform: translate3d(100%, 0, 0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html:not(.js-enabled) .main-header.mobile-open .nav-drawer {
    transform: translate3d(0, 0, 0);
  }

  /* Override the display: none of the nested components inside drawer */
  .nav-drawer .nav-menu {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: var(--space-lg);
  }

  .nav-drawer .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
    width: 100%;
  }

  .nav-drawer .nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-block: var(--space-xs);
    width: 100%;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .nav-drawer .nav-link:hover,
  .nav-drawer .nav-link.active {
    color: var(--text-primary);
    transform: translateX(8px);
  }

  .nav-drawer .nav-link::after {
    display: none;
    /* Hide desktop underline active effect */
  }

  .nav-drawer .header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-lg);
  }

  .nav-drawer .cta-button {
    width: 100%;
    text-align: center;
    padding: 0.95rem 1.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    background-color: var(--accent-action);
    color: #FFFFFF;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .nav-drawer .cta-button:hover {
    background-color: var(--accent-action-hover);
    transform: translateY(-2px);
  }

  /* Drawer Footer elements visible inside mobile drawer only */
  .nav-drawer .drawer-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    /* Push to bottom of viewport height */
    gap: var(--space-md);
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-lg);
    width: 100%;
  }

  .nav-drawer .drawer-contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .nav-drawer .drawer-contact-info .info-label {
    font-family: var(--font-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-action);
    font-weight: 700;
  }

  .nav-drawer .drawer-contact-info .info-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
  }

  .nav-drawer .drawer-contact-info .info-link:hover {
    color: #FFFFFF;
  }

  .nav-drawer .drawer-copyright {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.15);
  }

  /* Hamburger transform when menu is active */
  .main-header.mobile-open .mobile-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .main-header.mobile-open .mobile-toggle span:nth-child(2) {
    opacity: 0;
  }

  .main-header.mobile-open .mobile-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Mobile Screens Reflow (< 768px) */
@media (max-width: 767px) {
  .hero-content {
    max-width: 100%;
  }

  .hero-canvas {
    display: none !important;
  }

  /* Stable Cinematic Background Wrapper on Mobile */
  .hero-mobile-bg-wrapper {
    display: block;
    width: 100%;
    height: 120%;
    /* Vertical space for subtle parallax scroll */
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    will-change: transform;
    z-index: 1;
  }

  /* Ken Burns Zoom Effect */
  .hero-mobile-bg {
    width: 100%;
    height: 100%;
    background-image: url('Assets/Pictures/Hero Mobile dark.jpg');
    background-position: center;
    background-size: cover;
    animation: kenBurns 25s ease-in-out infinite alternate;
    will-change: transform;
    position: relative;
  }

  [data-theme="light"] .hero-mobile-bg {
    background-image: url('Assets/Pictures/Hero mobile Bright.png');
  }

  /* Soft Metallic Light Sweep Reflection */
  .hero-mobile-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.0) 30%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.0) 70%,
        rgba(255, 255, 255, 0) 100%);
    animation: lightSweep 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
    pointer-events: none;
  }

  /* Darker gradient overlay for superior readability on mobile */
  .hero-video-wrapper::after {
    background: var(--hero-mobile-overlay-gradient) !important;
    opacity: 0.85 !important;
    mix-blend-mode: normal !important;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: var(--space-md);
  }

  .btn {
    display: flex !important;
    width: 100% !important;
  }


  /* Bulletproof visibility fallback for mobile hero CTAs (only if JS is disabled) */
  html:not(.js-enabled) .btn-primary,
  html:not(.js-enabled) .btn-secondary {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .hero-secondary-links {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: var(--space-sm);
    gap: var(--space-md);
  }

  .link-secondary {
    font-size: 0.8rem;
    padding-inline: var(--space-xs);
  }

  .link-underline {
    margin-left: 0;
    text-align: center;
    margin-top: var(--space-sm);
  }

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



/* ---------------------------------------------------- */
/* 8. Accessibility Motion Overrides                    */
/* ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  /* Instantly suspends GSAP scroll pins, parallax offsets, and count-up loops */
  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .hero-bg-image,
  .competency-card,
  .milestone-number {
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------- */
/* 9. Day/Night Pill Toggle Theme Switcher              */
/* ---------------------------------------------------- */

/* Pill toggle wrapper */
.theme-pill-toggle {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Hidden checkbox */
.theme-pill-checkbox {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* =========================================
   THE PILL TRACK — Dark Mode (checked)
   ========================================= */
.theme-pill-track {
  position: relative;
  display: flex;
  align-items: center;
  width: 124px;
  height: 40px;
  border-radius: 999px;
  background: #1e2028;
  border: 2px solid #2e3140;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: visible;
}

/* =========================================
   THE SLIDING KNOB
   ========================================= */
.theme-pill-knob {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.4s ease,
    box-shadow 0.4s ease;
  z-index: 3;
}

/* =========================================
   ICONS
   ========================================= */
.theme-icon {
  width: 16px;
  height: 16px;
  position: absolute;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode (checked): Moon visible, Sun hidden */
.icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
  color: #f59e0b;
}

.icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #3b4262;
}

/* =========================================
   LABEL TEXT
   ========================================= */
.theme-pill-label {
  font-family: var(--font-label);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

/* "DAY MODE" — hidden in dark */
.label-day {
  right: 12px;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
}

/* "NIGHT MODE" — visible in dark, right of the knob */
.label-night {
  left: 40px;
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

/* =========================================
   LIGHT MODE (checkbox unchecked)
   ========================================= */
.theme-pill-checkbox:not(:checked)~.theme-pill-track {
  background: #d8dce5;
  border-color: #c0c6d2;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Knob slides right */
.theme-pill-checkbox:not(:checked)~.theme-pill-track .theme-pill-knob {
  left: calc(100% - 35px);
  background: #ffffff;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Show sun, hide moon */
.theme-pill-checkbox:not(:checked)~.theme-pill-track .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #e88a04;
}

.theme-pill-checkbox:not(:checked)~.theme-pill-track .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}

/* Swap labels */
.theme-pill-checkbox:not(:checked)~.theme-pill-track .label-day {
  opacity: 1;
  right: auto;
  left: 12px;
  color: rgba(0, 0, 0, 0.45);
}

.theme-pill-checkbox:not(:checked)~.theme-pill-track .label-night {
  opacity: 0;
}

/* =========================================
   INTERACTION STATES
   ========================================= */

/* Hover — subtle border brighten + deeper shadow */
.theme-pill-toggle:hover .theme-pill-track {
  border-color: #3d4460;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-pill-checkbox:not(:checked)~.theme-pill-track:hover {
  border-color: #a8b0c0;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Active press */
.theme-pill-toggle:active .theme-pill-knob {
  transform: translateY(-50%) scale(0.92);
}

/* Focus ring */
.theme-pill-checkbox:focus-visible~.theme-pill-track {
  outline: 2px solid var(--accent-action);
  outline-offset: 3px;
}

/* ---------------------------------------------------- */
/* 10. Smooth Theme Transition System                   */
/* ---------------------------------------------------- */
html.theme-in-transition,
html.theme-in-transition *,
html.theme-in-transition *::before,
html.theme-in-transition *::after {
  transition: background-color 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    opacity 0.5s ease !important;
}

/* ---------------------------------------------------- */
/* 11. Core Competencies Section Styles                 */
/* ---------------------------------------------------- */
:root {
  --grid-glow: rgba(77, 159, 255, 0.14);
  --grid-line: rgba(255, 255, 255, 0.035);
  --card-bg-gradient: linear-gradient(135deg, #14171D 0%, #0D0F12 100%);
  --card-border-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.12) 100%);
  --card-border-hover-gradient: linear-gradient(135deg, #4D9FFF 0%, rgba(77, 159, 255, 0.25) 50%, #79B5FF 100%);
  --sweep-color: rgba(255, 255, 255, 0.2);
  --card-spotlight: rgba(77, 159, 255, 0);
  --card-grid-line: rgba(255, 255, 255, 0.015);
}

[data-theme="light"] {
  --grid-glow: rgba(0, 86, 179, 0.05);
  --grid-line: rgba(26, 29, 35, 0.035);
  --card-bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #EAEFF5 100%);
  /* Slightly deeper slate-blue tint */
  --card-border-gradient: linear-gradient(135deg, rgba(0, 86, 179, 0.18) 0%, rgba(0, 86, 179, 0.05) 50%, rgba(0, 86, 179, 0.12) 100%);
  /* Blue-tinted border for higher contrast */
  --card-border-hover-gradient: linear-gradient(135deg, #0056B3 0%, rgba(0, 86, 179, 0.25) 50%, #004085 100%);
  --sweep-color: rgba(255, 255, 255, 0.45);
  --card-spotlight: rgba(0, 86, 179, 0);
  --card-grid-line: rgba(0, 0, 0, 0.015);
}

.competencies-section {
  padding-block: clamp(3.5rem, 8vh, 5.5rem);
  /* Increased vertical padding */
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--bg-surface) 0%, var(--bg-primary) 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .competencies-section {
    align-items: center;
    padding-top: var(--header-height);
    padding-bottom: 0;
  }
}

/* Dynamic glow backdrop */
.competencies-glow-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 90vw);
  height: min(800px, 90vw);
  background: radial-gradient(circle, var(--grid-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

/* Parallax blueprint nodes styling */
.blueprint-parallax-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  /* Enabled globally by default */
  opacity: 0.08;
  /* Subtle opacity for mobile */
}

@media (min-width: 1024px) {
  .blueprint-parallax-elements {
    opacity: 0.12;
    /* Slightly higher visibility on desktop */
  }
}

.blueprint-element {
  position: absolute;
  width: clamp(160px, 22vw, 280px);
  height: clamp(160px, 22vw, 280px);
  opacity: 0.45;
  color: var(--text-primary);
  will-change: transform, opacity;
}

.blueprint-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: opacity 0.3s ease;
  will-change: transform, opacity;
  opacity: 0.7;
}

.blueprint-element svg {
  width: 100%;
  height: 100%;
}

/* Distribute elements across 4 corners */
.blueprint-element.elem-1 {
  top: 15%;
  left: 8%;
}

.blueprint-element.elem-2 {
  top: 75%;
  left: 5%;
}

.blueprint-element.elem-3 {
  top: 12%;
  right: 8%;
}

.blueprint-element.elem-4 {
  top: 78%;
  right: 6%;
}

/* Volumetric Blueprint Radar Background Element styling */
.blueprint-radar-wrapper {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(750px, 85vw);
  height: min(750px, 85vw);
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  color: var(--text-primary);
  display: none;
}

.blueprint-radar {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

@media (min-width: 1024px) {
  .blueprint-radar-wrapper {
    display: block;
  }
}

/* Typography Splitting Spans */
.text-split {
  transform-style: preserve-3d;
}

.word-span {
  display: inline-block;
  white-space: nowrap;
  transform-style: preserve-3d;
}

.char-span {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* 3D Volumetric Setup for Accordion List */
@media (min-width: 1024px) {
  .competencies-accordion-list {
    perspective: 1500px;
    transform-style: preserve-3d;
  }
}

.competencies-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--space-md);
  width: 100%;
}

@media (min-width: 1024px) {
  .competencies-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-2xl);
    /* Balanced gap between description and accordion */
    align-items: center;
  }
}

.competencies-header {
  max-width: 100%;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

@media (min-width: 1024px) {
  .competencies-header {
    grid-column: span 5;
    margin-bottom: 0;
    /* Sits side-by-side on desktop */
  }
}

.competencies-header .section-tagline {
  font-family: var(--font-label);
  font-size: clamp(0.85rem, 1.2vw, 1.0rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-action);
  text-transform: uppercase;
}

.competencies-header .section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.competencies-header .section-description {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 750px;
}

/* Competencies Accordion Layout */
.competencies-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Align rows closely so borders form a clean list */
  width: 100%;
  max-width: 100%;
  /* Spans full width of the grid column */
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .competencies-accordion-list {
    grid-column: span 7;
  }
}

.competency-accordion-item {
  position: relative;
  background: transparent;
  border: none;
  padding-top: 1.1rem;
  /* Restored breathing room */
  padding-bottom: 0;
  /* Bottom spacing handled by line wrapper margin */
  overflow: hidden;
  cursor: pointer;
}

.competency-header-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.competency-number {
  font-family: var(--font-label);
  font-size: 1.1rem;
  /* Larger, premium number size */
  font-weight: 700;
  color: var(--accent-action);
  transition: color 0.3s ease;
}

.competency-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  /* Increased title size to look grand */
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.competency-line-wrapper {
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  /* Default separator line */
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin-top: 1.1rem;
  /* More breathing room */
}

.competency-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-action), var(--accent-action-hover));
  box-shadow: 0 0 8px var(--accent-action);
}

.competency-content-pane {
  height: 0;
  opacity: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding-left: 2.8rem;
  /* Adjusted indentation for larger content layout */
}

.competency-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  /* Restored to normal state */
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 800px;
  padding-top: var(--space-xs);
  padding-bottom: var(--space-sm);
}

/* Focus and active styles */
.competency-accordion-item:hover .competency-line-wrapper {
  background-color: rgba(77, 159, 255, 0.3);
  /* Subtle hover guide line */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .competency-line {
    width: 100% !important;
  }

  .competency-content-pane {
    height: auto !important;
    opacity: 1 !important;
  }
}

/* ---------------------------------------------------- */
/* 12. Meet the Founder Section Styles                  */
/* ---------------------------------------------------- */
.founder-section {
  padding-block: clamp(2.5rem, 6vh, 7.0rem);
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Animated accent line under the section tagline */
.founder-content .section-tagline {
  position: relative;
}

/* Floating glow orb behind the image */
.founder-visual::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 159, 255, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  animation: founderGlowPulse 4s ease-in-out infinite;
}

@keyframes founderGlowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

/* Rotating ring accent behind image */
.founder-visual::after {
  content: '';
  position: absolute;
  width: 105%;
  height: 105%;
  border-radius: 14px;
  border: 1px solid rgba(77, 159, 255, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 0;
  pointer-events: none;
  animation: founderRingRotate 18s linear infinite;
}

@keyframes founderRingRotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Animated divider width reveal */
.founder-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-action), rgba(77, 159, 255, 0.2));
  margin-block: var(--space-xs);
  position: relative;
  overflow: hidden;
}

.founder-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: dividerShimmer 3s ease-in-out 1.5s infinite;
}

@keyframes dividerShimmer {
  0% {
    left: -100%;
  }

  50% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* Animated quote border pulse */
.founder-quote .quote-text {
  border-left: 3px solid var(--accent-action);
  animation: quoteBorderPulse 3s ease-in-out infinite;
}

@keyframes quoteBorderPulse {

  0%,
  100% {
    border-left-color: var(--accent-action);
  }

  50% {
    border-left-color: var(--accent-action-hover);
  }
}

.founder-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--space-md);
  width: 100%;
}

.founder-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

/* Text Content Styling */
.founder-content {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  z-index: 2;
}

.founder-content .section-tagline {
  font-family: var(--font-label);
  font-size: clamp(0.85rem, 1.2vw, 1.0rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-action);
  text-transform: uppercase;
}

.founder-content .section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  background: var(--metallic-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-xs);
}

/* founder-divider styles merged above */

.founder-quote {
  position: relative;
  margin-block: var(--space-md);
}

.founder-quote .quote-mark {
  display: block;
  /* Render as a block element above text to prevent overlap */
  font-family: var(--font-heading);
  font-size: 3.5rem;
  /* Balanced size */
  line-height: 1;
  color: var(--accent-action);
  opacity: 0.15;
  font-weight: 900;
  margin-bottom: var(--space-xs);
  /* Elegant spacing to integrate quote body */
  margin-top: -10px;
  margin-left: 0;
  /* Left aligned with container */
  user-select: none;
}

.founder-quote .quote-text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-muted);
  padding-left: var(--space-lg);
  /* border-left managed by animation above */
}

.founder-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.founder-meta .founder-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.founder-meta .founder-title {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-action);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

/* Image Visual Column Styling */
.founder-visual {
  grid-column: span 5;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.founder-image-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.15;
  /* elegant portrait aspect ratio */
  border-radius: 12px;
  background: var(--card-bg-gradient);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  /* matching geometric theme */
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.founder-image-frame:hover {
  transform: translateY(-6px) scale(1.02);
  /* Pop up and zoom container, avoiding image transform conflicts */
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

/* Border overlay for custom shape */
.founder-image-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card-border-gradient);
  z-index: 2;
  pointer-events: none;
}

.founder-image-frame::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  clip-path: polygon(19px 0, 100% 0, 100% calc(100% - 19px), calc(100% - 19px) 100%, 0 100%, 0 19px);
  z-index: 1;
  pointer-events: none;
}

.founder-img {
  width: 100%;
  height: 120%;
  /* Increased vertical height to support scroll-triggered parallax translate */
  object-fit: cover;
  display: block;
  z-index: 0;
  will-change: transform;
  /* Optimize layer paint performance */
}

/* Light mode overrides for shadows and background */
[data-theme="light"] .founder-image-frame {
  box-shadow:
    0 16px 40px rgba(0, 86, 179, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .founder-image-frame:hover {
  box-shadow:
    0 26px 50px rgba(0, 86, 179, 0.12),
    0 8px 20px rgba(0, 86, 179, 0.04);
}

/* Volumetric background glow */
.founder-tech-backdrop {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--grid-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Responsive Rules */
@media (max-width: 1023px) {
  .founder-grid {
    gap: var(--space-lg);
  }
}

@media (max-width: 767px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .founder-content {
    grid-column: span 1;
    order: 2;
  }

  .founder-visual {
    grid-column: span 1;
    order: 1;
  }

  .founder-image-frame {
    max-width: 200px;
    /* Tighter on mobile so it doesn't overflow */
    aspect-ratio: 1 / 1.1;
  }

  /* Shrink the glow orb on mobile */
  .founder-visual::before {
    width: 220px;
    height: 220px;
  }

  .founder-quote .quote-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .founder-meta .founder-name {
    font-size: 1.3rem;
  }
}

/* Founder Section Blueprint Background Elements */
.founder-blueprint-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  display: block;
}

.founder-element {
  position: absolute;
  width: clamp(160px, 22vw, 280px);
  height: clamp(160px, 22vw, 280px);
  color: var(--text-primary);
  will-change: transform, opacity;
}

.founder-element.elem-f1 {
  bottom: 8%;
  left: 5%;
}

.founder-element.elem-f2 {
  top: 8%;
  right: 5%;
}

/* --- 3D Tunnel Shift & Parallax Layout Enhancements --- */
.competencies-container,
.founder-container {
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.founder-grid {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.founder-visual {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.founder-image-frame {
  will-change: transform;
  transform-style: preserve-3d;
}

.founder-img {
  will-change: transform;
  backface-visibility: hidden;
}

/* ---------------------------------------------------- */
/* 13. Milestones & Achievements Section Styles         */
/* ---------------------------------------------------- */
.milestones-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: var(--bg-primary);
  display: flex;
  align-items: flex-start;
  /* top-aligned for absolute positioning lock */
  justify-content: center;
  perspective: 1200px;
  padding-top: 80px;
  /* Clear header bar offset */
}

.milestones-container {
  max-width: 1200px;
  width: 100%;
  padding-inline: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: flex-start;
  z-index: 5;
  gap: var(--space-xl);
  margin-top: 40px;
  /* Safety top margin */
}

.milestones-header {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.milestones-header .section-tagline {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-action);
  text-transform: uppercase;
}

.milestones-header .section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.milestones-header .section-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 420px;
}

/* Card Wheel Layout */
.milestones-wheel-wrapper {
  grid-column: span 7;
  position: relative;
  width: 100%;
  height: 500px;
  /* Tight height to fit shorter viewports */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.milestones-wheel {
  position: absolute;
  top: 100px;
  width: 100%;
  height: 500px;
  transform-origin: center 750px;
  /* Pivots around a point 750px below card top */
  will-change: transform;
  z-index: 2;
}

.milestone-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: 270px;
  height: 360px;
  margin-left: -135px;
  /* Half of width to center it */
  padding: var(--space-lg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  transform-origin: center 750px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  will-change: transform, filter, box-shadow;
  transition: border-color 0.4s ease, filter 0.4s ease;
  user-select: none;
}

/* Base state: Slightly blurred and opaque when inactive */
.milestone-card:not(.active) {
  filter: blur(2px);
  opacity: 0.75;
}

.milestone-card.active {
  z-index: 10;
  filter: blur(0px);
  opacity: 1;
}

/* Pastel/metallic background gradients matching the image style */
/* Premium anodized metallic architectural finishes */
.milestone-card.card-silver {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 50%, #CBD5E1 100%);
  color: #0F172A;
  border-color: rgba(255, 255, 255, 0.4);
}

.milestone-card.card-blue {
  background: linear-gradient(135deg, #E3F2FD 0%, #90CAF9 100%);
  color: #0F172A;
  border-color: rgba(66, 165, 245, 0.2);
}

.milestone-card.card-gold {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFE082 100%);
  color: #0F172A;
  border-color: rgba(255, 224, 130, 0.2);
}

.milestone-card.card-dark {
  background: linear-gradient(135deg, #475569 0%, #1E293B 100%);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Adjust child elements inside dark card for premium styling and readability */
.milestone-card.card-dark .card-icon {
  background-color: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
}

.milestone-card.card-dark .stat-number {
  color: #F8FAFC;
}

.milestone-card.card-dark .card-desc {
  opacity: 0.8;
}

.milestone-card.card-dark .card-action-pill {
  background-color: rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.milestone-card.card-dark:hover .card-action-pill {
  background-color: rgba(255, 255, 255, 0.25);
}


.milestone-card .card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(30, 41, 59, 0.08);
  color: #0F172A;
  margin-bottom: var(--space-sm);
}

.milestone-card .card-icon svg {
  width: 22px;
  height: 22px;
}

.milestone-card .card-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.8;
  text-transform: uppercase;
}

.milestone-card .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-block: var(--space-xs);
  color: #0F172A;
}

.milestone-card .card-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: var(--space-md);
}

.milestone-card .card-action-pill {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  background-color: #FFFFFF;
  color: #0F172A;
  align-self: flex-start;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.milestone-card:hover .card-action-pill {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.milestones-hud-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.milestones-hud-bg .hud-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  opacity: 0.12;
}

.milestones-hud-bg .ring-outer {
  width: 1560px;
  height: 1560px;
  top: 70px;
  left: 50%;
  margin-left: -780px;
  border-style: dashed;
}

.milestones-hud-bg .ring-middle {
  width: 1500px;
  height: 1500px;
  top: 100px;
  left: 50%;
  margin-left: -750px;
}

.milestones-hud-bg .ring-inner {
  width: 1380px;
  height: 1380px;
  top: 160px;
  left: 50%;
  margin-left: -690px;
}

.milestones-hud-bg .hud-dial {
  position: absolute;
  width: 1500px;
  height: 1500px;
  top: 100px;
  left: 50%;
  margin-left: -750px;
  color: var(--text-primary);
  opacity: 0.06;
  will-change: transform;
}

.milestones-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ambient-glow-color, rgba(148, 163, 184, 0.22)) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}



/* Responsiveness via CSS Scaling */
@media (max-width: 1023px) {
  .milestones-section {
    height: auto;
    padding-block: clamp(3rem, 8vh, 8rem);
  }

  .milestones-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
  }

  .milestones-header {
    grid-column: span 1;
    align-items: center;
    text-align: center;
  }

  .milestones-header .section-description {
    max-width: 500px;
  }

  .milestones-wheel-wrapper {
    grid-column: span 1;
    height: 480px;
    transform: scale(0.85);
    transform-origin: top center;
    margin-bottom: -40px;
  }
}

@media (max-width: 767px) {
  .milestones-wheel-wrapper {
    transform: scale(0.65);
    margin-bottom: -130px;
    height: 410px;
  }
}

/* ---------------------------------------------------- */
/* 14. Site Footer                                      */
/* ---------------------------------------------------- */
.site-footer {
  background:
    var(--brushed-texture),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-surface) 100%);
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: clamp(2rem, 4vw, 3.25rem) var(--space-md) var(--space-md);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: clamp(1.5rem, 5vw, 5rem);
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--text-primary);
}

.footer-logo span {
  color: var(--accent-action);
  letter-spacing: 0.08em;
}

.footer-description {
  margin-top: var(--space-md);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.footer-heading {
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-action);
  margin-bottom: var(--space-md);
}

.footer-list {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}

.footer-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--text-primary);
}

.footer-whatsapp {
  color: var(--accent-action) !important;
}

.footer-bottom {
  max-width: 1200px;
  margin: clamp(1.5rem, 4vw, 2.25rem) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  color: var(--text-muted);
}

.footer-bottom p {
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--btn-secondary-bg);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--accent-action);
  border-color: var(--accent-action);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-socials a:nth-child(2) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

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

@media (max-width: 640px) {
  .site-footer {
    padding-inline: var(--space-lg);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-heading {
    margin-bottom: var(--space-md);
  }

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

/* Short Viewport Heights Layout Adjustments (Laptops) */
@media (max-height: 800px) and (min-width: 1024px) {
  .competencies-section {
    padding-block: var(--space-xl);
  }
  .competencies-header {
    margin-bottom: var(--space-md);
  }
  .competency-accordion-item {
    padding-top: 0.8rem;
  }
  .competency-line-wrapper {
    margin-top: 0.8rem;
  }

  .milestones-section {
    padding-top: var(--header-height);
  }
  .milestones-container {
    margin-top: var(--space-md);
    gap: var(--space-md);
  }
  .milestones-wheel-wrapper {
    height: 420px;
  }
  .milestones-wheel {
    top: 40px;
    transform-origin: center 650px;
  }
  .milestone-card {
    height: 320px;
    width: 250px;
    margin-left: -125px;
    transform-origin: center 650px;
  }
  
  /* Aligned to new pivot point at top: 40px + transform-origin: 650px = 690px */
  .milestones-hud-bg .ring-outer {
    top: -90px; /* 690 - 1560/2 */
  }
  .milestones-hud-bg .ring-middle {
    top: -60px; /* 690 - 1500/2 */
  }
  .milestones-hud-bg .ring-inner {
    top: 0px; /* 690 - 1380/2 */
  }
  .milestones-hud-bg .hud-dial {
    top: -60px; /* 690 - 1500/2 */
  }
}