/* ═══════════════════════════════════════════════════════════
   BERDE RENEWABLES — REDESIGN
   style.css — Design System + All Section Styles
   Mobile-first | Apple minimalism | Bento Grid
   ═══════════════════════════════════════════════════════════ */

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

/* ── 1. CORE DESIGN TOKENS (Berde x Palantir OS) ── */
:root {
  /* Core Colors: Premium Filipino Solar */
  --c-dark: #0A1C12;
  /* Deep forest green / dark mode bg */
  --c-dark-card: #0E281A;
  /* Slightly elevated dark surface */
  --c-dark-2: #111827;
  /* Near black text for light mode */

  --c-body: #F7F9F8;
  /* High-contrast off-white/grey for light sections */
  --c-white: #FFFFFF;
  /* Pure white cards */

  --c-accent: #22C55E;
  /* Berde Official Green */
  --c-accent-hover: #16A34A;
  --c-accent-dim: rgba(34, 197, 94, 0.12);
  /* Subdued green */

  /* Additional Forest Greens */
  --c-primary: #0A2F1D;
  --c-primary-light: #164A31;

  /* Text Colors */
  --c-text: #05160E;
  /* Main text (dark) */
  --c-text-body: #374151;
  /* Body text */
  --c-text-muted: #4b5563;
  /* Darkened for WCAG AA compliance (4.5:1+) */
  /* Gray for secondary or utility labels */
  --c-text-light: rgba(255, 255, 255, 0.95);
  /* Readability on dark */
  --c-text-dimmer: rgba(255, 255, 255, 0.7);
  /* Better contrast for dim text */

  /* Borders */
  --c-border: rgba(0, 0, 0, 0.08);
  --c-border-light: rgba(255, 255, 255, 0.15);

  /* Layout */
  --gap: 24px;

  /* Typography (Editorial Style + Technical) */
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  /* Wide, impactful like Palantir */
  --font-body: 'Inter', sans-serif;
  /* Clean paragraph */
  --font-mono: 'JetBrains Mono', monospace;
  /* Palantir tech utility */

  /* Type scale (Palantir Editorial Sizing) */
  --text-hero: clamp(2.2rem, 7vw, 5.5rem);
  /* Adjusted mobile min to 2.2rem */
  --text-h1: clamp(1.8rem, 4vw, 3.5rem);
  /* Adjusted mobile min to 1.8rem */
  --text-body: 1.125rem;
  /* Larger readability */
  --font-body-weight: 450;
  /* Slightly heavier for anti-aliasing on all screens */
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;
  /* Technical utilities */
  --text-label: 0.6875rem;
  --text-stat: clamp(2.5rem, 5vw, 4rem);

  /* Radius (24px+ requested) */
  --r-sm: 12px;
  --r-md: 24px;
  /* Default soft edges starting at 24px */
  --r-lg: 32px;
  /* Large cards */
  --r-xl: 40px;
  --r-pill: 100px;

  /* Shadows (Minimal, Apple/Palantir style soft drops) */
  --shadow-card:
    0 4px 6px -1px rgba(10, 47, 29, 0.08),
    0 10px 15px -3px rgba(10, 47, 29, 0.12),
    0 0 32px rgba(10, 47, 29, 0.06);
  /* Added spread for subtle section theme shadow */
  --shadow-hover:
    0 10px 15px -3px rgba(10, 47, 29, 0.12),
    0 20px 25px -5px rgba(10, 47, 29, 0.08),
    0 0 45px rgba(10, 47, 29, 0.10);
  --shadow-green: 0 8px 24px rgba(0, 229, 255, 0.25);

  /* Spacing */
  --section-py: clamp(80px, 10vw, 140px);
  /* Palantir loves breathing room */
  --gap: 24px;
  --container: 1280px;
  --px: clamp(20px, 5vw, 80px);
}

/* ════════════════════════════════════════════════════
   1b. DARK MODE — Variable Overrides + Component Fixes
   Applied via  body.dark-mode  (set by JS + localStorage)
   FOUC prevention: documentElement also gets dark-mode
   ════════════════════════════════════════════════════ */

/* Smooth theme transition on all surfaces */
*,
*::before,
*::after {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Override design tokens for dark mode */
.dark-mode {
  /* Level 0: Main site background (Deep Forest Midnight) */
  --c-body:        #0D1410;   
  /* Level 2: Cards and elevated surfaces (Soft Forest Green) */
  --c-white:       #1B2921;   
  /* Flipped High-Contrast text/headings */
  --c-dark:        #E2EAE5;   
  /* Level 1: Elevated dark surface (Section separation) */
  --c-dark-card:   #131D17;   
  /* Level -1: Deep backdrop for footers */
  --c-dark-2:      #08100B;   
  /* Level 3: High-emphasis / Interactive Surface */
  --c-primary-light: #24382D; 

  /* Refined Text Contrast (WCAG AA Compliant) */
  --c-text:        #E2EAE5;   /* Headings: Crisp off-white */
  --c-text-body:   #C0D4CA;   /* Body text: Slightly brighter green-grey */
  --c-text-muted:  #88B996;   /* Labels/Captions: Forest Mint */
  --c-text-dimmer: #A3C9AE;   /* Muted text: Brighter than muted */
  --c-text-light:  #E2EAE5;   /* Footer/Dark text context */

  /* Surface Accents */
  --c-primary:       #131D17; 

  /* Border & Separation Tools */
  --c-border:       rgba(255, 255, 255, 0.05); 
  --c-border-light: rgba(255, 255, 255, 0.10);

  /* Elevation Shadows (Green-tinted for depth) */
  --shadow-card:
    0 4px 12px -2px rgba(0, 0, 0, 0.60),
    0 0 1px rgba(34, 197, 94, 0.15);
  --shadow-hover:
    0 20px 25px -5px rgba(0, 0, 0, 0.50),
    0 0 3px rgba(34, 197, 94, 0.25);
}

/* ── Component overrides: things that aren't purely variable-driven ── */

/* Body background */
.dark-mode body { background: var(--c-body); color: var(--c-text-body); }

/* Hero section is exempted from dark mode refinements to keep its original aesthetic */
.dark-mode .hero {
  --c-dark:        #0A1C12;
  --c-white:       #FFFFFF;
  --c-dark-card:   #0E281A;
  --c-dark-2:      #111827;
  --c-text:        #05160E;
  --c-text-body:   #374151;
  --c-border:      rgba(255, 255, 255, 0.1);
}

.dark-mode .hero__sub {
  color: rgba(255, 255, 255, 0.7);
}

.dark-mode .hero__stat-pill .stat-sub {
  color: rgba(255, 255, 255, 0.6);
}

/* Ensure navbar on hero (unscrolled) also keeps its 'light mode' look in dark mode */
.dark-mode .navbar:not(.scrolled) {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.dark-mode .navbar:not(.scrolled) .navbar__nav a,
.dark-mode .navbar:not(.scrolled) .navbar__logo {
  color: var(--c-dark);
}
.dark-mode .navbar:not(.scrolled) .navbar__logo img {
  filter: none;
}

/* Section Separation Strategy (Alternating Levels) */
.dark-mode .section--grey,
.dark-mode .marquee-section,
.dark-mode .boot { 
  background: var(--c-dark-card); 
}

/* Inherently DARK sections (Stay dark to avoid eye strain) */
.dark-mode .section--dark,
.dark-mode .join-team,
.dark-mode .cta-banner {
  background: var(--c-dark-2); 
  color: var(--c-dark);
}

.dark-mode .section:not(.section--dark):not(.section--grey):not(.hero):not(.cta-banner):not(.marquee-section):not(.boot):not(.join-team) {
  background: var(--c-body);
}

/* Navbar ── Scrolled state glass on dark */
.dark-mode .navbar {
  background: rgba(13, 20, 16, 0.85); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.dark-mode .navbar.scrolled {
  background: rgba(13, 20, 16, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Bento grid refinements (Soft Dark Surface Level 2/3) */
.dark-mode .bento-tile--light {
  background: var(--c-dark-card); 
  color: var(--c-text);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dark-mode .bento-tile--dark {
  background: var(--c-white); /* Level 2 */
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dark-mode .bento-tile--dark .tech-spec-desc {
  color: var(--c-text-body);
}

/* Careers Section (Critical Contrast Overrides) */
.dark-mode .career-row__title { color: var(--c-text) !important; }
.dark-mode .career-row__index { color: var(--c-accent); opacity: 0.8; }
.dark-mode .career-row__desc { color: var(--c-text-body); }
.dark-mode .career-row__content { border-top-color: rgba(255, 255, 255, 0.08); }
.dark-mode .career-row:hover { background: var(--c-white); }
.dark-mode .join-team .body-text { color: var(--c-text-body); }

/* Projects Section */
.dark-mode .project-card__title { color: #FFFFFF !important; }
.dark-mode .project-card__meta { color: rgba(255, 255, 255, 0.8) !important; }

/* Hero Carousel Highlights */
.dark-mode .slide-title { color: #FFFFFF !important; }
.dark-mode .slide-tag { background: rgba(34, 197, 94, 0.9); color: #0A1C12; }
.dark-mode .slide-list li { color: rgba(255, 255, 255, 0.9); }

/* Impact & Dashboard Contrast */
.dark-mode .bento-stat-lbl { color: var(--c-text-muted); }
.dark-mode .tech-spec-title { color: var(--c-text-muted); }
.dark-mode .bento-overline { color: var(--c-accent); opacity: 0.9; }

/* Cards & News soften */
.dark-mode .card,
.dark-mode .news-card {
  background: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Client logos: boost visibility on dark */
.dark-mode .client-logo img,
.dark-mode .marquee-item img {
  filter: grayscale(100%) brightness(2.5) contrast(0.6);
  opacity: 0.75;
}

/* Footer: Level -1 */
.dark-mode .footer { 
  background: var(--c-dark-2); 
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Miscellaneous refinements */
.dark-mode hr { border-color: rgba(255, 255, 255, 0.06); }
.dark-mode .impact-banner__overlay { background: rgba(0, 0, 0, 0.65); }

/* ── Theme Toggle Button ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: var(--c-text-body);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* On non-hero scrolled navbar (white bg in light mode), use darker border */
.navbar.scrolled .theme-toggle {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--c-text-body);
}
.navbar.scrolled .theme-toggle:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-dim);
}

/* Sun visible by default (light mode) */
.theme-toggle__sun  { display: block; }
.theme-toggle__moon { display: none;  }

/* In dark mode: swap to moon icon */
.dark-mode .theme-toggle__sun  { display: none;  }
.dark-mode .theme-toggle__moon { display: block; }

/* Dark mode toggle button styling */
.dark-mode .theme-toggle {
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--c-accent);
}
.dark-mode .theme-toggle:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--c-accent);
}

/* ── 2. RESET & BASE ── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-body-weight);
  color: var(--c-text-body);
  background: var(--c-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

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

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ── 3. LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--px);
}

.section {
  padding-block: var(--section-py);
}

.section--dark {
  background: var(--c-dark);
  color: var(--c-white);
}

.section--grey {
  background: var(--c-body);
  box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.015), 0 -10px 30px rgba(0, 0, 0, 0.02);
  /* subtle accessibility separation */
}

.section--darkcard {
  background: var(--c-dark-2);
  color: var(--c-white);
}

/* ── 4. TYPOGRAPHY UTILITIES ── */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.overline::before {
  content: '';
  display: inline-block;
  width: 32px; /* Increased to a 'Long Dash' for more premium look */
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}

.heading-display {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.heading-display--light {
  color: var(--c-white);
}

.heading-h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.heading-h1--light {
  color: var(--c-white);
}

.heading-h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.heading-h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
}

.body-text {
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--c-text-body);
  max-width: 56ch;
}

.bento-stat-val {
  font-size: var(--text-stat);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.bento-stat-lbl {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.body-text--light {
  color: var(--c-text-light);
}

.text-muted {
  color: var(--c-text-muted);
}

.text-accent {
  color: var(--c-accent);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-stat);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ── 5. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96) !important;
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-dark);
}

.btn-primary:hover {
  background: var(--c-accent-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-green);
}

.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
}

.btn-ghost--dark {
  color: var(--c-text);
  border-color: rgba(0, 0, 0, 0.18);
}

.btn-ghost--dark:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.btn-icon {
  font-size: 1.1em;
}

/* ── 6. CARDS ── */
.card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 3vw, 36px);
  transition: transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.30s ease,
    border-color 0.30s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(34, 197, 94, 0.20);
}

.card:active {
  transform: translateY(-2px) scale(0.98);
}

.card--dark {
  background: var(--c-dark-card);
  border-color: var(--c-border-light);
}

.card--accent {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-hover) 100%);
  border-color: transparent;
}

.card--glass {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--c-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.card-icon--light {
  background: rgba(255, 255, 255, 0.15);
}

.stat-bar {
  width: 40px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  margin: 10px 0 8px;
}

.stat-bar--light {
  background: rgba(255, 255, 255, 0.5);
}

/* ── 7. NAVIGATION ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--c-text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--c-accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.navbar__logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  display: block;
  line-height: 1;
}

.navbar__nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.navbar__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-body);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--c-accent);
  background: var(--c-accent-dim);
}

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

.navbar__btn {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  padding: 4px;
  /* Minimum 44x44px touch target (WCAG 2.5.5) */
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 26, 15, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-text-light);
  padding: 10px 24px;
  border-radius: var(--r-md);
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--c-accent);
}

.mobile-nav .btn {
  margin-top: 20px;
  font-size: 1rem;
  padding: 16px 40px;
}

@media (min-width: 900px) {
  .navbar__nav {
    display: flex;
  }

  .navbar__hamburger {
    display: none;
  }
}

/* ── 8. HERO ── */
/* ── 8. HERO (Mobile First) ── */
.hero {
  position: relative;
  min-height: 100dvh;
  /* dvh = dynamic viewport height — excludes mobile browser chrome */
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-dark);
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 100px;
  /* 100px bottom padding guarantees scroll icon never stacks on content */
  z-index: 1;
}

.hero__bg-container {
  position: absolute;
  /* Extend 30% beyond hero on each side — gives the parallax JS
     room to translate the video without showing the dark bg below it.
     hero's overflow:hidden clips everything outside the section. */
  top: -30%;
  bottom: -30%;
  left: 0;
  right: 0;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: saturate(0.8) brightness(0.6);
  transition: transform 0.05s linear;
  will-change: transform;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero__text-col {
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-white);
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  color: var(--c-accent);
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 480px) {
  .hero__ctas {
    flex-direction: row;
  }
}

/* Interactive Container (Mobile) */
.hero__interactive-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

/* Hero Stats (Mobile) */
.hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

@media (min-width: 480px) {
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero__stat-pill {
  max-width: 410px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: 16px 20px;
  text-align: center;
}

.hero__stat-pill .stat-main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 2px;
}

.hero__stat-pill .stat-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* Hero Portal (Desktop receives Carousel here) */
#hero-portal {
  display: none;
}

/* Desktop Overrides for Hero */
@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    align-items: center;
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .hero__content {
    flex-direction: column;
    gap: 48px;
    /* Align title and interactive container vertically */
    width: 100%;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero__text-col {
    max-width: 800px;
    flex: 1 1 300px;
    /* Allow shrinking */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero__ctas {
    flex-direction: row;
  }

  .hero__interactive-container {
    flex-direction: row;
    align-items: center;
    /* Align stats and thumbnail carousel */
    gap: 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero__stats {
    display: flex;
    flex-direction: column;
  }

  .is-hero-expanded .hero__interactive-container {
    flex-direction: column;
    align-items: stretch;
    flex-shrink: 0;
  }

  .is-hero-expanded .hero__text-col {
    /* Shrink the text visual to make room */
    transform: scale(0.85);
    transform-origin: left center;
    width: 100%;
  }

  .is-hero-expanded .hero__stats {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 24px;
    gap: 16px;
  }

  .is-hero-expanded .hero__stat-pill {
    flex: 1;
    max-width: none;
    padding: 12px 16px;
  }

  #hero-portal {
    display: block;
    width: 100%;
  }

  .is-hero-expanded #hero-portal {
    width: 100%;
    display: flex;
  }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.2em;
  z-index: 100;
  /* Ensure it stays on top of everything */
  pointer-events: none;
  /* Don't block mouse interactions */
}

.hero__scroll-dot {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-white);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

/* ── 9. MARQUEE ── */
.marquee-section {
  background: var(--c-white);
  border-block: 1px solid var(--c-border);
  padding-block: 24px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  /* z-index keeps it above the fixed hero bg, preventing bleed-through */
}

.marquee-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-align: center;
  margin-bottom: 18px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  /* backface-visibility eliminates the white-gap flash at the loop boundary */
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.marquee-item:hover {
  color: var(--c-accent);
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-33.33%, 0, 0);
  }

  /* -33.33% = exactly 1 of 3 groups. Group 2 is identical,
     so when the animation resets from -33.33% back to 0 it is seamless.
     Changing to -50% broke the loop because 3 groups * 50% = 1.5 groups,
     which is not a clean boundary. */
}

/* ── 10. IMPACT DASHBOARD (12-Col Bento) ── */
.impact {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: block;
  margin: 0;
  padding: clamp(60px, 8vw, 100px) 0;
  /* Reduced padding to fit more content in 100vh */
  background: var(--c-body);
  overflow: visible;
}

.impact__header {
  margin-bottom: clamp(0px, 3vw, 32px);
}

.bento-grid-12 {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  /* Mobile First: 1 column */
}

.bento-col-4 {
  grid-column: span 12;
  /* Default Mobile */
}

.bento-col-8 {
  grid-column: span 12;
  /* Default Mobile */
}

.bento-col-12 {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .bento-grid-12 {
    grid-template-columns: repeat(12, 1fr);
  }

  .bento-col-4 {
    grid-column: span 4;
  }

  .bento-col-8 {
    grid-column: span 8;
  }
}

.bento-tile {
  background: var(--c-white);
  border-radius: 24px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 229, 255, 0.2);
}

.bento-tile:active {
  transform: translateY(-1px) scale(0.98);
}

.bento-tile--dark {
  background: var(--c-dark-card);
  color: var(--c-white);
  border-color: var(--c-border-light);
}

.bento-tile--accent {
  background: linear-gradient(135deg, var(--c-primary), var(--c-dark));
  color: var(--c-white);
  border: none;
}

/* Interior Bento Components */
.bento-overline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.bento-stat-group {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 32px);
  /* Fluid gap to avoid overflow on narrow screens */
  margin-top: auto;
  padding-top: clamp(16px, 4vw, 32px);
}

.bento-stat {
  display: flex;
  flex-direction: column;
}

.bento-stat-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: 8px;
}

.bento-stat-val span {
  color: var(--c-accent);
}

.bento-stat-lbl {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--c-text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: inherit;
  /* FIX: inherit color from parent (white on dark tiles) */
  line-height: 1.4;
  margin-bottom: 24px;
}

.bento-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.bento-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--c-primary);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.bento-author-info {
  font-size: var(--text-sm);
  line-height: 1.3;
}

.bento-author-info strong {
  color: var(--c-text);
  display: block;
}

.bento-author-info span {
  color: var(--c-text-muted);
  font-size: var(--text-xs);
}

/* Technical Specs */
.bento-tech-specs {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile-first: single column prevents X-axis overflow at 320px */
  gap: clamp(20px, 3vw, 32px);
  margin-top: 24px;
}

@media (min-width: 640px) {
  .bento-tech-specs {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.tech-spec-item {
  border-left: 2px solid var(--c-accent);
  padding-left: 16px;
}

.tech-spec-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tech-spec-desc {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text);
}

.bento-tile--dark .tech-spec-desc {
  color: var(--c-white);
}

.join-team .heading-h1 {
  color: var(--c-white);
}

/* ── 11. BOOT MODEL ── */
.boot {
  background: var(--c-white);
  position: relative;
  z-index: 10;
}

.boot__inner {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.boot__image {
  height: 100%;
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.boot__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Mobile-first: Keep content centered */
  transition: transform 0.6s ease;
}

@media (min-width: 1024px) {
  .boot__image img {
    object-position: right bottom;
    /* Desktop: Anchor to corner for balance */
  }
}

.boot__image:hover img {
  transform: scale(1.04);
}

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

.boot__step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.boot__step-num {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-accent-dim);
  border: 1.5px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--c-accent);
  flex-shrink: 0;
}

.boot__step-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 4px;
}

.boot__step-desc {
  font-size: var(--text-sm);
  color: var(--c-text-body);
  line-height: 1.6;
}

.boot__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-dark);
  color: var(--c-white);
  border-radius: var(--r-lg);
  padding: 14px 22px;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.boot__badge-icon {
  width: 28px;
  height: 28px;
  background: var(--c-accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .boot__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 12. SERVICES CAROUSEL (Mobile First) ── */
.services-mobile-container {
  background: var(--c-white);
  padding-block: 60px;
}

.hero-interaction-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 10;
}

.hero-carousel-title {
  display: none; /* Replaced by .overline + .heading-h1 for consistency */
}

.hero-dashboard {
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-dark-card);
}

.dashboard-carousel {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Scrollable Chips (Mobile) */
.carousel-nav {
  padding: 20px var(--px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(10, 26, 15, 0.4);
}

.carousel-nav::-webkit-scrollbar {
  display: none;
}

.carousel-tabs-container {
  display: flex;
  gap: 12px;
  width: max-content;
}

.carousel-tab {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.carousel-tab.active {
  background: var(--c-accent);
  color: var(--c-dark);
  border-color: var(--c-accent);
}

.carousel-nav-cta {
  display: none;
  /* Hide on mobile chips bar */
}

/* Horizontal Scroll (Mobile) */
.carousel-slides {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  /* overflow-y: hidden clamps varying image heights on mobile */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 16px;
  align-items: stretch;
  /* stretch ensures all slides are the same height */
}

.carousel-slides::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  /* First card fills visible width; next card peeks at the right */
  flex: 0 0 calc(100% - 2 * var(--px));
  scroll-snap-align: start;
  position: relative;
  height: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1 !important;
  /* Always visible on mobile scroll */
  visibility: visible !important;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.slide-content {
  position: relative;
  z-index: 10;
  padding: 24px;
}

.slide-tag {
  display: inline-block;
  width: fit-content;
  /* was width:100% — now wraps to text only */
  padding: 5px 14px;
  background: var(--c-accent);
  /* was c-accent-dim (barely visible) — solid green now */
  border: none;
  color: var(--c-dark);
  /* dark text on bright green for contrast */
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.slide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide-list li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.slide-list li::before {
  content: '✓';
  color: var(--c-accent);
  font-weight: 900;
}

/* Nav Controls (Mobile: Dots emphasized) */
.carousel-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--c-accent);
  width: 24px;
  border-radius: 4px;
}

.carousel-btn {
  display: none;
  /* Hide arrows on mobile */
}

/* Desktop Overrides for Carousel */
@media (min-width: 1024px) {
  .hero-interaction-wrapper {
    position: absolute;
    bottom: 10%;
    width: 600px;
    align-items: flex-end;
    margin: 0;
    padding: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  }

  .is-hero-expanded .hero-interaction-wrapper {
    width: 100%;
    right: 0;
    align-items: center;
  }

  .hero-dashboard {
    height: 270px;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  }

  .is-hero-expanded .hero-dashboard {
    height: 600px;
    max-width: 1200px;
  }

  .carousel-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 32px;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    background: transparent;
  }

  .is-hero-expanded .carousel-nav {
    opacity: 1;
    visibility: visible;
  }

  .carousel-tabs-container {
    gap: 8px;
  }

  .carousel-tab {
    background: rgba(255, 255, 255, 0.9);
    color: var(--c-text-muted);
    border-radius: 0;
    /* Boxy desktop style */
  }

  .carousel-tab.active {
    background: var(--c-dark);
    color: var(--c-white);
    position: relative;
    overflow: hidden;
  }

  /* Timed Progress Animation (Palantir style) */
  .carousel-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--c-accent);
    width: 0;
    animation: tabProgress 5s linear forwards;
  }

  @keyframes tabProgress {
    from {
      width: 0;
    }

    to {
      width: 100%;
    }
  }

  .carousel-nav-cta {
    display: block;
    padding: 10px 24px;
    border: 1px solid var(--c-white);
    color: var(--c-white);
    font-size: 0.75rem;
    font-weight: 700;
  }

  .carousel-slides {
    overflow: hidden;
    padding: 0;
    height: 100%;
    gap: 0;
  }

  .carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: none;
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    padding: 40px 64px 80px;
  }

  .carousel-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .slide-bg::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  }

  .slide-content {
    max-width: 600px;
  }

  .slide-title {
    font-size: 2.2rem;
  }

  .carousel-controls {
    display: flex;
    justify-content: space-between;
    padding-inline: 40px;
    bottom: 30px;
  }

  .carousel-dots {
    display: none;
  }

  .carousel-btn {
    display: flex;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--c-white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .carousel-btn:hover {
    background: var(--c-accent);
    color: var(--c-dark);
    border-color: var(--c-accent);
  }
}

/* ── 13. CAREERS SECTION (Mobile First) ── */
.career-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 32px;
  border-bottom: 1px solid var(--c-border-light);
  transition: all 0.4s ease;
}

.career-row__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.career-row__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.career-row__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  /* Larger, accessible tap targets */
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
}

.career-row__index {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--c-accent);
  opacity: 0.6;
}

.career-row__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge--dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--c-text-dimmer);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 600;
}

.career-row__desc {
  font-size: 0.95rem;
  color: var(--c-text-dimmer);
  line-height: 1.5;
}

.career-row__cta .btn {
  width: 100%;
  /* Full-width buttons for mobile ergonomics */
  justify-content: center;
  padding-block: 16px;
}

@media (min-width: 900px) {
  .career-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-inline: 0;
  }

  .career-row__content {
    max-width: 70%;
  }

  .career-row__cta .btn {
    width: auto;
  }
}

/* (Consolidated into Section 12) */

/* ── 13. WHY BERDE ── */
.why {
  background: var(--c-white);
  position: relative;
  z-index: 10;
}

.why__inner {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.why__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.why__item:hover {
  background: var(--c-accent-dim);
  border-color: var(--c-accent);
}

.why__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--c-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--c-accent);
}

.why__item-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-text);
  margin-bottom: 3px;
}

.why__item-desc {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
}

.why__compare {
  background: var(--c-body);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.compare-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-col-head {
  padding: 16px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  text-align: center;
}

.compare-col-head--epc {
  background: var(--c-body);
  color: var(--c-text-muted);
}

.compare-col-head--ppa {
  background: var(--c-accent);
  color: var(--c-dark);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-border);
}

.compare-cell {
  padding: 14px 20px;
  font-size: var(--text-sm);
  line-height: 1.5;
  text-align: center;
}

.compare-cell--ppa {
  background: rgba(34, 197, 94, 0.06);
  font-weight: 600;
  color: var(--c-dark);
}

@media (min-width: 768px) {
  .why__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 14. PROJECTS ── */
.projects {
  background: var(--c-body);
}

.projects__header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.projects-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.project-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--c-dark-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.project-card:active {
  transform: translateY(-2px) scale(0.98);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.project-card:hover .project-card__img {
  opacity: 0.45;
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 15, 0.95) 0%, transparent 55%);
}

.project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.project-card__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.badge {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--green {
  background: var(--c-accent);
  color: var(--c-dark);
}

.badge--glass {
  background: rgba(255, 255, 255, 0.15);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-white);
  margin-bottom: 4px;
}

.project-card__meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ── 15. CLIENTS ── */
.clients {
  background: var(--c-white);
}

.clients__header {
  margin-bottom: clamp(32px, 4vw, 52px);
}

.clients-grid {
  display: flex;
  /* Changed from grid to flex */
  flex-wrap: wrap;
  /* Allows items to move to the next line */
  justify-content: center;
  /* This is the "magic" that centers the last row */
  gap: 16px;
  max-width: 1200px;
  /* Adjust this to fit your design */
  margin: 0 auto;
  /* Centers the whole container */
}

.client-logo {
  /* This calculation ensures ~5 items per row on desktop (20% minus gap) */
  flex: 0 1 calc(20% - 16px);
  min-width: 160px;
  /* Prevents them from getting too squished, also adjust base on logo size */

  aspect-ratio: 2/1;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.65rem, 1.5vw, 0.9rem);
  color: var(--c-text-muted);
  letter-spacing: 0.05em;
  text-align: center;
  transition: all 0.25s ease;
}

.client-logo:hover {
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--c-accent);
  background: var(--c-accent-dim);
}

.client-logo:active {
  transform: scale(0.95);
}

@media (min-width: 640px) {
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (min-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* ── 16. TESTIMONIALS ── */
.testimonials {
  background: var(--c-dark);
}

.testimonials__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-white);
  position: relative;
  padding-left: 24px;
}

.testimonial-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  height: calc(100% - 8px);
  width: 3px;
  background: var(--c-accent);
  border-radius: 2px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-dark-card);
  border: 2px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-accent);
}

.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-white);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--c-text-dimmer);
}

.testimonial-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.testimonial-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
}

.testimonial-stat .stat-number {
  color: var(--c-accent);
  font-size: 2.2rem;
}

.testimonial-stat .text-muted {
  color: var(--c-text-dimmer);
  font-size: var(--text-xs);
}

@media (min-width: 900px) {
  .testimonials__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 17. NEWS ── */
.news {
  background: var(--c-body);
}

.news__header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.news-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.news-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.news-card:hover .news-card__img img {
  transform: scale(1.06);
}

.news-card__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card__date {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card__cat {
  display: inline-block;
  background: var(--c-accent-dim);
  color: var(--c-accent);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.4;
}

.news-card__excerpt {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
}

.news-card__link {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.news-card:hover .news-card__link {
  gap: 10px;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ── 12. WHY BERDE REDESIGN ── */
.why__inner.redesign-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .why__inner.redesign-layout {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.why__check-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.why__check-list li {
  position: relative;
  padding-left: 36px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-text-body);
}

.why__check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--c-accent-dim);
  color: var(--c-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.why__image-container {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.why__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.why__image-container:hover .why__image {
  transform: scale(1.05);
}

/* ── 13. JOIN OUR TEAM ── */
.join-team {
  background: var(--c-dark);
  color: var(--c-white);
  overflow: hidden;
}

.join-team__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .join-team__inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.join-team__image {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.join-team__content {
  padding-block: 40px;
}

/* ── 18. CTA BANNER ── */
.cta-banner {
  position: relative;
  background: var(--c-dark);
  overflow: hidden;
  text-align: center;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?w=1400&q=70') center/cover;
  opacity: 0.10;
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
}

.cta-banner .heading-h1 {
  color: var(--c-white);
  margin-bottom: 16px;
}

.cta-banner .body-text {
  color: var(--c-text-dimmer);
  margin-inline: auto;
  margin-bottom: 36px;
}

.cta-banner__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── 19. CONTACT ── */
.contact {
  background: var(--c-white);
}

.contact__inner {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact__item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--c-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.contact__item-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}

.contact__item-value {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--c-text);
  line-height: 1.6;
}

.contact__map {
  border-radius: var(--r-xl);
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--c-border);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-border);
  background: var(--c-body);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--c-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
  background: var(--c-white);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--c-border);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-radio:has(input:checked) {
  border-color: var(--c-accent);
  background: var(--c-accent-dim);
  color: var(--c-accent);
}

.form-radio input {
  display: none;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  font-size: var(--text-sm);
  justify-content: center;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* ── 14. CAREER PERKS & JOBS ── */
.career-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.perk-card {
  background: var(--c-white);
  padding: 32px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  text-align: center;
  transition: all 0.3s ease;
}

.perk-card:hover {
  transform: translateY(-5px);
  border-color: var(--c-accent);
  box-shadow: var(--shadow-hover);
}

.perk-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-item {
  display: flex;
  flex-direction: column;
  /* Mobile stack */
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--c-white);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .job-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.job-item:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-dim);
}

.impact-banner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  padding: clamp(24px, 6vw, 60px);
  /* Fluid padding -- no overflow at 320px */
  text-align: center;
}

.impact-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.impact-banner__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* ── 15. UTILITIES ── */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--c-white) !important;
}

.mb-8 {
  margin-bottom: 32px;
}

.mb-16 {
  margin-bottom: 64px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-8 {
  margin-top: 32px;
}

.mt-24 {
  margin-top: 96px;
}

.flex-between {
  display: flex;
  flex-wrap: wrap;
  /* Prevents links being pushed off-screen at 320px */
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.font-700 {
  font-weight: 700;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

.btn-white {
  background: var(--c-white);
  color: var(--c-dark);
}

.btn-white:hover {
  background: var(--c-accent);
  color: var(--c-dark);
  box-shadow: var(--shadow-green);
}

/* ── 15. CONTACT ALIGNMENT FIX ── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
  }
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.contact__item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--c-accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Contrast Fixes */
.impact-banner__content {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.join-team .body-text {
  color: var(--c-text-body);
}

/* ── 20. FOOTER ── */
.footer {
  background: var(--c-dark-2);
  color: var(--c-text-light);
  padding-block: clamp(48px, 6vw, 80px) 24px;
}

.footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand .navbar__logo {
  gap: 10px;
}

.footer__brand .navbar__logo-sub {
  color: rgba(255, 255, 255, 0.4);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--c-text-dimmer);
  margin-top: 12px;
  max-width: 28ch;
  line-height: 1.7;
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  color: var(--c-text-light);
}

.footer__social:hover {
  background: var(--c-accent);
  color: var(--c-dark);
}

.footer__col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--c-white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--c-text-dimmer);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--c-accent);
}

.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: var(--c-accent);
}

@media (min-width: 640px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ── 21. REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-group .reveal:nth-child(1) {
  transition-delay: 0s;
}

.reveal-group .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-group .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal-group .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal-group .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.reveal-group .reveal:nth-child(6) {
  transition-delay: 0.40s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 22. MISC UTILITIES ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}

.mb-12 {
  margin-bottom: 48px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

/* ── 23. SCROLL PROGRESS INDICATOR ── */
.scroll-progress-indicator {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  z-index: 9999;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.progress-sun {
  width: 100%;
  height: 100%;
  transform-origin: center;
  /* GSAP handles rotation */
}

@media (max-width: 768px) {
  .scroll-progress-indicator {
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
  }
}

/* ═══════════════════════════════════════
   11. CAREERS REDESIGN (PALANTIR STYLE)
═══════════════════════════════════════ */
.careers-stack {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  border-top: 1px solid var(--c-border-light);
}

.career-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--c-border-light);
  transition: all 0.4s var(--ease-out);
  position: relative;
  gap: 3rem;
  cursor: pointer;
}

.career-row:hover {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 2rem;
  padding-right: 2rem;
}

.career-row__content {
  flex: 1;
}

.career-row__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.career-row__title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-white);
  margin: 0;
  transition: transform 0.4s var(--ease-out);
}

.career-row__index {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-accent);
  /* Green index for high visibility */
  opacity: 0.9;
  margin-top: 0.5rem;
}

.career-row__meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.badge--dark {
  background: var(--c-accent-dim);
  color: var(--c-accent);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.career-row__desc {
  max-width: 650px;
  font-size: clamp(1rem, 1.25rem, 1.35rem);
  color: var(--c-text-dimmer);
  line-height: 1.6;
  margin: 0;
}

.career-row__cta {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.btn-modern {
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  padding: 1.1rem 2.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-modern:hover {
  background: var(--c-text);
  color: var(--c-white);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .career-row {
    flex-direction: column;
    padding: 2.5rem 0;
    gap: 1.5rem;
  }

  .career-row__header {
    flex-direction: column-reverse;
  }

  .career-row__index {
    margin-bottom: 0.5rem;
    margin-top: 0;
  }

  .career-row__title {
    font-size: 2.5rem;
  }
}

/* ═══════════════════════════════════════
   9. DYNAMIC CAROUSEL (HERO)
═══════════════════════════════════════ */
/* hero-carousel-title is retired and replaced by overline + heading-h1 in index.html */
.hero-carousel-title { display: none !important; }

.hero-interaction-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 10;
}

.hero-dashboard {
  position: relative;
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-dark-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.dashboard-carousel {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.carousel-nav {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 26, 15, 0.95);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.carousel-tabs-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.carousel-tabs-container::-webkit-scrollbar {
  display: none;
}

.carousel-tab {
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
}

.carousel-tab:hover {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.1);
}

.carousel-tab.active {
  color: var(--c-dark);
  background: var(--c-white);
  border-color: transparent;
}

.carousel-nav-cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: all 0.3s ease;
  display: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media(min-width: 768px) {
  .carousel-nav-cta {
    display: block;
  }
}

.carousel-nav-cta:hover {
  color: var(--c-white);
}

.carousel-slides {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 450px;
  overflow: hidden;
  gap: 0;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  overflow: hidden;
}

.carousel-slide.active {
  display: flex;
  animation: slideFadeIn 0.5s ease;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 6s ease-out;
}

.carousel-slide.active .slide-bg {
  transform: scale(1.05);
  animation: kenBurnsZoom 8s ease-in-out infinite alternate;
}

@keyframes kenBurnsZoom {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.15);
  }
}

.slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 15, 0.95) 0%, rgba(10, 26, 15, 0.4) 50%, rgba(10, 26, 15, 0.1) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  width: 100%;
  pointer-events: none;
  /* Let clicks pass through */
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  /* was width:100%/max-width:400px — now text-width only */
  padding: 5px 14px;
  background: var(--c-accent);
  /* solid green — was transparent and barely visible */
  border: none;
  color: var(--c-dark);
  /* dark text for contrast on bright green */
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.slide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slide-list li {
  position: relative;
  padding-left: 28px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.slide-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-accent);
  font-weight: bold;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 5;
  pointer-events: none;
}

.carousel-dots {
  display: none;
  /* Hidden on desktop */
}

.carousel-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
}

.carousel-btn:hover {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-dark);
}

/* ── DEFAULT SMALL STATE (Desktop) ── */
@media (min-width: 1024px) {

  /* OVERRIDING BASE CAROUSEL FOR SMALL STATE */
  .hero:not(.is-hero-expanded) .hero-carousel-title {
    display: none !important;
  }

  .hero:not(.is-hero-expanded) .hero-dashboard {
    width: 380px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }

  .hero:not(.is-hero-expanded) .carousel-nav,
  .hero:not(.is-hero-expanded) .carousel-controls {
    display: none !important;
  }

  .hero:not(.is-hero-expanded) .carousel-slides {
    min-height: auto;
  }

  /* Show only the active slide in small state */
  .hero:not(.is-hero-expanded) .carousel-slide.active {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 20px;
    cursor: pointer;
  }

  .hero:not(.is-hero-expanded) .carousel-slide:not(.active) {
    display: none !important;
  }

  .hero:not(.is-hero-expanded) .slide-bg {
    position: relative;
    inset: auto;
    width: 120px;
    height: 120px;
    border-radius: var(--r-md);
    flex-shrink: 0;
    opacity: 1;
    overflow: hidden;
    transform: none;
    /* remove hover zoom from inactive state */
    transition: transform 0.4s ease;
  }

  .hero:not(.is-hero-expanded) .hero-dashboard:hover .slide-bg {
    transform: scale(1.05);
    /* slightly zoom image on card hover */
  }

  .hero:not(.is-hero-expanded) .slide-bg::after {
    display: none;
    /* Clean image */
  }

  .hero:not(.is-hero-expanded) .slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: static;
    max-width: none;
    width: auto;
    pointer-events: auto;
  }

  .hero:not(.is-hero-expanded) .slide-tag,
  .hero:not(.is-hero-expanded) .slide-list {
    display: none !important;
  }

  .hero:not(.is-hero-expanded) .slide-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
    color: var(--c-white);
  }
}

/* ── EXPANDED STATE (Desktop) ── */
@media (min-width: 1024px) {
  .hero.is-hero-expanded .hero-carousel-title {
    display: none !important;
  }

  .hero.is-hero-expanded .hero-dashboard {
    position: relative;
    width: 100%;
    height: 480px;
    z-index: 20;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
    padding: 0;
    border-radius: var(--r-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--c-dark);
  }

  .hero.is-hero-expanded .carousel-nav {
    display: flex !important;
  }

  .hero.is-hero-expanded .carousel-controls {
    display: flex !important;
  }

  .hero.is-hero-expanded .carousel-slide {
    display: none !important;
  }

  .hero.is-hero-expanded .carousel-slide.active {
    display: flex !important;
  }
}

/* ── Carousel Mobile Styles ── */
@media (max-width: 1023px) {
  .hero-carousel-title {
    display: none !important;
  }

  .hero-dashboard {
    min-height: 480px;
    background: var(--c-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .carousel-nav {
    display: flex;
    overflow-x: auto;
    padding: 12px 16px;
  }

  .carousel-tabs-container {
    gap: 4px;
  }

  .carousel-slides {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 24px;
    /* Visible gap between full-bleed slides as user scrolls */
  }

  .carousel-slide {
    display: flex !important;
    flex: 0 0 100% !important;
    height: 420px !important;
    border-radius: 0 !important;
    /* Full-bleed — no rounded corners on mobile */
    scroll-snap-align: center;
    padding: 12px 16px !important;
  }

  .slide-title {
    font-size: 1.1rem !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
  }

  .slide-list li {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    padding: 4px 0 !important;
  }

  .slide-bg {
    position: absolute !important;
    inset: 0 !important;
    background-size: cover !important;
    background-position: center !important;
  }

  /* ── Mobile carousel controls: CSS Grid solution ──
     Grid:  [prev-btn] [ empty ] [next-btn]   ← row 1 (flex height)
            [prev-btn] [  dots ] [next-btn]   ← row 2 (auto height)
     Buttons span both rows → vertically centered on sides.
     Dots live in col-2 row-2 → bottom-center of the middle column. */
  .carousel-controls {
    display: grid !important;
    grid-template-columns: 40px 1fr 40px;
    grid-template-rows: 1fr auto;
    position: absolute !important;
    top: 56px !important;
    /* clear the nav tab bar */
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    padding: 0 12px 16px;
    pointer-events: none;
    z-index: 10;
  }

  /* prev button — col 1, spans both rows, vertically centered */
  .carousel-controls .prev-btn {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    pointer-events: auto;
  }

  /* next button — col 3, spans both rows, vertically centered */
  .carousel-controls .next-btn {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    pointer-events: auto;
  }

  .carousel-btn.next {
    grid-column: 3;
    grid-row: 1;
  }

  .carousel-btn.prev {
    grid-column: 1;
    grid-row: 1;
  }

  /* dots — col 2, row 2 only → sits at bottom-center */
  .carousel-dots {
    grid-column: 2;
    grid-row: 2;
    display: flex !important;
    gap: 6px;
    justify-content: center;
    align-self: end;
    pointer-events: auto;
    /* clear any legacy absolute/transform rules */
    position: static !important;
    transform: none !important;
  }

  .carousel-btn {
    display: flex !important;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--c-white);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
  }

  .carousel-btn:hover,
  .carousel-btn:active {
    background: var(--c-accent);
    color: var(--c-dark);
    border-color: var(--c-accent);
  }

  .slide-bg::after {
    background: linear-gradient(to top, rgba(10, 26, 15, 0.98) 0%, rgba(10, 26, 15, 0.6) 60%, rgba(10, 26, 15, 0.2) 100%);
  }
}