/**
 * ==============================================================================
 * TOWARDS MY BHARAT (TMB) — MASTER DESIGN SYSTEM & COMPONENT STYLESHEET
 * ==============================================================================
 *
 * ARCHITECTURAL ROLE:
 * - Serves as the central CSS design system for the entire web platform.
 * - Powers `index.html`, `blog.html`, `all-blogs.html`, and provides shared base
 *   tokens consumed by `about.css`.
 *
 * DESIGN SYSTEM FOUNDATIONS:
 * 1. Semantic Color Tokens:
 *    - All colors are declared as CSS Custom Properties (variables) in `:root`.
 *    - Primary Palette: Earthy Indian forest greens (`#2E5D3A`), soft herbal sage
 *      accents (`#A7C957`), and calming organic light canvases (`#F6FAF4`).
 * 2. Theme Modes (Light & Dark):
 *    - Light Mode (Default `:root`): Clean, high-legibility parchment green aesthetic.
 *    - Dark Mode (`html[data-theme="dark"]`): Deep luxury forest obsidian (`#111A14`),
 *      soft luminescence, and muted green borders (`#344B38`).
 * 3. Typography Hierarchy:
 *    - Serif: 'Cormorant Garamond' (Classical, civilizational, literary elegance).
 *    - Sans-Serif: 'Manrope' (Contemporary, crisp, highly legible editorial body).
 * 4. Motion Curves:
 *    - Standardized cubic-bezier easing `cubic-bezier(0.16, 1, 0.3, 1)` provides
 *      deliberate, high-end deceleration (similar to Apple iOS / macOS physics).
 *
 * RELATIONSHIP TO OTHER SYSTEM COMPONENTS:
 * - `theme.js`: Dynamically switches between `:root` (light) and `html[data-theme="dark"]`.
 * - `script.js`: Applies interactive states (`.is-active`, `.is-open`, transforms).
 * - `about.css`: Inherits typography and brand color tokens while layering dedicated
 *   sticky story card stacking rules.
 *
 * KEY CONCEPTS & TERMINOLOGY FOR ONBOARDING DEVELOPERS:
 * - Design Tokens: Reusable key-value pairs (`--color-primary`, `--space-md`) that enforce
 *   visual consistency across all pages and components.
 * - Backwards-Compatibility Aliases: Legacy variable names (e.g. `--bg-obsidian`, `--primary-gold`)
 *   mapped directly to semantic tokens to avoid breaking legacy templates.
 * - Smooth Scrolling: `scroll-behavior: smooth` provides animated scrolling for anchor jumps.
 * ==============================================================================
 */

:root {
  /* --------------------------------------------------------------------------
     1. LIGHT MODE COLOR TOKENS (Default Theme)
     -------------------------------------------------------------------------- */
  color-scheme: light;
  --color-background: #F6FAF4;
  /* Primary page canvas */
  --color-background-soft: #DDEBD6;
  /* Subtle container / section background */
  --color-surface: #F6FAF4;
  /* Card & modal foreground surface */
  --color-card: #DDEBD6;
  /* Elevated card background */
  --color-primary: #2E5D3A;
  /* Deep Forest Green (Brand Primary) */
  --color-text: #2E5D3A;
  /* Primary reading text color */
  --color-text-muted: #5B705D;
  /* Secondary supporting text */
  --color-text-on-accent: #2E5D3A;
  /* Contrast text on accent backgrounds */
  --color-accent: #A7C957;
  /* Vibrant Herbal Sage (Brand Accent) */
  --color-border: #DDEBD6;
  /* Structural hairline border */
  --shadow-card: 0 4px 14px rgba(46, 93, 58, 0.12);
  --shadow-card-hover: 0 10px 28px rgba(46, 93, 58, 0.18);

  /* Contact Section Design Tokens (Harmonized with TMB Forest & Sage Theme) */
  --contact-bg: var(--color-background);
  /* Matches page canvas seamlessly (#F6FAF4) */
  --contact-box-border: var(--color-border);
  /* #DDEBD6 */
  --contact-card-bg: #FFFFFF;
  /* Clean elevated card canvas */
  --contact-card-border: var(--border-gold-subtle);
  /* rgba(221, 235, 214, 0.85) */
  --contact-card-shadow: var(--shadow-card);
  /* 0 4px 14px rgba(46, 93, 58, 0.08) */
  --contact-card-shadow-hover: var(--shadow-card-hover);
  /* 0 10px 28px rgba(46, 93, 58, 0.18) */
  --contact-accent: var(--color-primary);
  /* #2E5D3A Deep Forest Green */
  --contact-accent-soft: rgba(167, 201, 87, 0.2);
  /* Soft herbal sage */
  --contact-sun: #DDEBD6;
  /* Herbal sage sun backdrop matching --color-background-soft */
  --contact-heading: var(--color-primary);
  /* #2E5D3A Deep forest green headline */
  --contact-body-text: var(--color-text-muted);
  /* #5B705D */
  --contact-line-art: var(--color-primary);
  /* #2E5D3A */
  --contact-flourish: rgba(46, 93, 58, 0.45);
  /* Delicate forest green decorative line */
  --contact-foliage-stroke: var(--color-primary);
  /* #2E5D3A */

  /* Testimonials Corner Artwork Tokens (Temple Gopuram & Celestial Sun) */
  --temple-sun: #D97736;
  /* Terracotta/Ochre Sun in Light Theme */
  --temple-sun-glow: rgba(217, 119, 54, 0.25);
  --temple-stroke: var(--color-primary);
  /* #2E5D3A Deep Forest Green line-art */
  --temple-stroke-subtle: rgba(46, 93, 58, 0.35);
  --temple-accent-bar: var(--color-primary);
  /* #2E5D3A */
  --temple-wash-start: rgba(221, 235, 214, 0.55);

  /* --------------------------------------------------------------------------
     2. BACKWARDS-COMPATIBILITY TOKEN ALIASES (Used by legacy component rules)
     -------------------------------------------------------------------------- */
  --bg-obsidian: var(--color-background);
  --bg-canvas: var(--color-background);
  --bg-surface-low: var(--color-card);
  --bg-surface: var(--color-background-soft);
  --bg-surface-high: var(--color-card);
  --bg-surface-highest: var(--color-surface);

  --primary-gold: var(--color-primary);
  --earth-gold: var(--color-accent);
  --earth-gold-dim: var(--color-primary);
  --gold-glow: rgba(167, 201, 87, 0.22);

  --tricolor-saffron: var(--color-accent);
  --tricolor-white: var(--color-surface);
  --tricolor-green: var(--color-primary);
  --patriot-ivory: var(--color-background);

  --deep-navy: var(--color-primary);
  --navy-surface: var(--color-background-soft);

  --text-main: var(--color-text);
  --text-muted: var(--color-text-muted);
  --text-subtle: var(--color-text-muted);
  --text-on-gold: var(--color-text-on-accent);
  --text-white: var(--color-surface);

  --border-gold: var(--color-border);
  --border-gold-subtle: rgba(221, 235, 214, 0.72);
  --border-gold-bright: rgba(46, 93, 58, 0.42);
  --border-muted: var(--color-border);

  /* --------------------------------------------------------------------------
     3. TYPOGRAPHY TOKENS
     -------------------------------------------------------------------------- */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --------------------------------------------------------------------------
     4. SPACING SCALES
     -------------------------------------------------------------------------- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-xxl: 5.5rem;

  /* --------------------------------------------------------------------------
     5. LAYOUT & TRANSITIONS
     -------------------------------------------------------------------------- */
  --max-width: 1280px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------------------------
   6. DARK MODE THEME OVERRIDES (Activated by theme.js via html[data-theme="dark"])
   ---------------------------------------------------------------------------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --color-background: #111A14;
  /* Deep Obsidian Forest */
  --color-background-soft: #18271D;
  /* Dark moss background */
  --color-surface: #1D2C22;
  /* Elevated surface tone */
  --color-card: #223629;
  /* Deep card surface */
  --color-primary: #A7C957;
  /* Vibrant Sage Accent as primary text */
  --color-text: #E7EFE5;
  /* High-legibility off-white text */
  --color-text-muted: #B1C2B0;
  /* Muted sage-grey subtitle text */
  --color-text-on-accent: #18271D;
  /* Dark text on light accent pills */
  --color-accent: #A7C957;
  /* Bright sage highlights */
  --color-border: #344B38;
  /* Low-contrast organic border */
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.18);
  --shadow-card-hover: 0 10px 28px rgba(0, 0, 0, 0.28);

  /* Dark Mode Contact Section Overrides (Deep Obsidian & Sage Glow) */
  --contact-bg: var(--color-background);
  /* #111A14 Obsidian forest */
  --contact-box-border: var(--color-border);
  /* #344B38 */
  --contact-card-bg: var(--color-card);
  /* #18271D */
  --contact-card-border: var(--color-border);
  /* #344B38 */
  --contact-card-shadow: var(--shadow-card);
  --contact-card-shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(167, 201, 87, 0.15);
  --contact-accent: var(--color-accent);
  /* #A7C957 Vibrant Sage */
  --contact-accent-soft: rgba(167, 201, 87, 0.2);
  --contact-sun: rgba(167, 201, 87, 0.25);
  /* Glowing sage sun circle */
  --contact-heading: var(--color-text);
  /* #E7EFE5 */
  --contact-body-text: var(--color-text-muted);
  /* #B1C2B0 */
  --contact-line-art: #E1EBE0;
  --contact-flourish: rgba(167, 201, 87, 0.45);
  --contact-foliage-stroke: var(--color-accent);
  /* #A7C957 */

  --gold-glow: rgba(167, 201, 87, 0.14);
  --text-subtle: #9AAF99;
  --border-gold-subtle: rgba(52, 75, 56, 0.78);
  --border-gold-bright: rgba(167, 201, 87, 0.5);

  /* Dark Mode Testimonials Corner Artwork Tokens */
  --temple-sun: #E09F3E;
  /* Radiant Amber Ochre in Dark Theme */
  --temple-sun-glow: rgba(224, 159, 62, 0.35);
  --temple-stroke: #E7EFE5;
  /* Crisp off-white & sage line-art */
  --temple-stroke-subtle: rgba(167, 201, 87, 0.35);
  --temple-accent-bar: #A7C957;
  /* Vibrant sage bar */
  --temple-wash-start: rgba(24, 39, 29, 0.65);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-weight: 500;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  line-height: 1.625;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

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

::selection {
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* --------------------------------------------------------------------------
   2. REUSABLE UTILITIES & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

/* Typography Classes */
.font-serif {
  font-family: var(--font-serif);
}

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

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

.text-white {
  color: #ffffff;
}

.italic {
  font-style: italic;
}

.section-title {
  text-wrap: balance;
}

/* Badges & Tags */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-background-soft);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  border-left: 3px solid var(--tricolor-saffron);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.pulse-dot {
  width: 0.45rem;
  height: 0.45rem;
  background-color: var(--primary-gold);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {

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

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.85rem 1.85rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background-color: var(--earth-gold);
  color: var(--color-text-on-accent);
  border-color: var(--earth-gold);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px var(--gold-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-background-soft);
  border-color: var(--color-primary);
  color: var(--color-text);
}

.btn:focus-visible,
.nav-link:focus-visible,
.nav-cta-btn:focus-visible,
.theme-toggle:focus-visible,
.mobile-nav-link:focus-visible,
.mobile-cta:focus-visible,
.work-glimpse-card:focus-visible,
.program-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  color: var(--color-text-muted);
  background-color: var(--color-background-soft);
  border-color: var(--color-border);
  cursor: not-allowed;
  opacity: 0.7;
}

input,
select,
textarea {
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(247, 250, 245, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold-subtle);
  transition: all 0.3s ease;
}

html[data-theme="dark"] .site-header {
  background: rgba(17, 26, 20, 0.96);
}

.site-header::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 3px;
  background: var(--color-border);
  opacity: 1;
}

.nav-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand img {
  height: 44px;
  width: auto;
  object-contain: contain;
  transition: transform 0.3s ease;
}

.nav-brand:hover img {
  transform: scale(1.05);
}

.nav-brand-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.nav-brand:hover .nav-brand-text {
  color: var(--color-text-muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--color-card);
  border-color: var(--color-primary);
}

.theme-toggle .material-symbols-outlined {
  font-size: 1.25rem;
}

.nav-cta-btn {
  display: none;
  background-color: var(--earth-gold);
  color: var(--color-text-on-accent);
  border: 1px solid var(--color-accent);
  padding: 0.65rem 1.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .nav-cta-btn {
    display: inline-flex;
  }
}

.nav-cta-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  color: var(--color-primary);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-nav-drawer {
  display: none;
  background: var(--bg-surface-low);
  border-bottom: 1px solid var(--border-gold);
  padding: 1.5rem;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-primary);
}

.mobile-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   4. HERO SECTION & SLIDESHOW
   -------------------------------------------------------------------------- */
.hero-section,
html[data-theme="light"] .hero-section,
html[data-theme="dark"] .hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 81px);
  min-height: calc(100svh - 81px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 0;
  overflow: hidden;
  background-color: #11100F !important;
  border-bottom: 1px solid rgba(247, 244, 239, 0.08);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero-slideshow {
    left: 40%;
    right: 0;
    width: 60%;
    z-index: 1;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: grayscale(80%) contrast(1.08) brightness(0.92);
  transition: opacity 1.2s ease-in-out;
  will-change: opacity, filter;
}

.hero-slide-people {
  filter: grayscale(35%) contrast(1.05) brightness(1.12);
}

.hero-slide.active {
  opacity: 1;
}

.hero-vignette-linear,
html[data-theme="light"] .hero-vignette-linear,
html[data-theme="dark"] .hero-vignette-linear {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(to right,
      #11100F 0%,
      #11100F 40%,
      rgba(17, 16, 15, 0.95) 43%,
      rgba(17, 16, 15, 0.72) 48%,
      rgba(17, 16, 15, 0.36) 53%,
      rgba(17, 16, 15, 0.08) 58%,
      transparent 62%),
    linear-gradient(to bottom, #11100F 0%, transparent 6%, transparent 94%, #11100F 100%) !important;
  pointer-events: none;
}

@media (max-width: 899px) {

  .hero-vignette-linear,
  html[data-theme="light"] .hero-vignette-linear,
  html[data-theme="dark"] .hero-vignette-linear {
    background: linear-gradient(to bottom,
        rgba(17, 16, 15, 0.96) 0%,
        rgba(17, 16, 15, 0.9) 60%,
        rgba(17, 16, 15, 0.82) 85%,
        #11100F 100%) !important;
  }
}

.hero-content {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 1rem;
}

/* Entrance Motion Animation */
@keyframes heroEditorialFadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {

  .hero-section .container.hero-content,
  .hero-content {
    width: clamp(560px, 58vw, 860px) !important;
    max-width: 62% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: clamp(2.5rem, 5vw, 5.5rem) !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box !important;
  }

  .hero-title,
  .hero-editorial-headline,
  .hero-actions-row {
    max-width: 100%;
    width: 100%;
  }

  .hero-phrase-modern,
  .hero-headline-line {
    white-space: nowrap;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .hero-slideshow {
    left: 40%;
    right: 0;
    width: 60%;
    z-index: 1;
  }

  .hero-vignette-linear,
  html[data-theme="light"] .hero-vignette-linear,
  html[data-theme="dark"] .hero-vignette-linear {
    background:
      linear-gradient(to right,
        #100F0E 0%,
        #100F0E 38%,
        rgba(16, 15, 14, 0.94) 44%,
        rgba(16, 15, 14, 0.6) 52%,
        rgba(16, 15, 14, 0.15) 60%,
        transparent 68%),
      linear-gradient(to bottom, #100F0E 0%, transparent 6%, transparent 94%, #100F0E 100%) !important;
  }

  .hero-section .container.hero-content,
  .hero-content {
    width: 62% !important;
    max-width: 62% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: clamp(1.5rem, 3vw, 2.5rem) !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 767px) {
  .hero-content {
    width: 100%;
    padding: 1.25rem;
  }
}

/* Minimalist Editorial Subbrand */
.hero-subbrand {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.35rem, 1.65vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C8C5C1 !important;
  line-height: 2.6;
  margin-left: clamp(0.35rem, 0.6vw, 0.65rem);
  margin-bottom: clamp(1.15rem, 1.8vh, 1.6rem);
  animation: heroEditorialFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#rotatingBharatWord {
  display: inline-block;
  min-width: 3.2em;
  transition: opacity 0.25s ease;
  color: #F7F3ED;
}

/* Master Editorial Headline - Inter ExtraBold 800 + Instrument Serif Italic (Tight Editorial Leading) */
.hero-title,
.hero-editorial-headline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.2vw, 4.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #F7F3ED !important;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.02em;
  text-shadow: none !important;
  text-align: left;
}

.hero-editorial-headline {
  font-size: calc(clamp(2.4rem, 4.2vw, 4.5rem) + 2px);
  margin-bottom: 2rem;
}

/* Deliberate 4-line Composition with Compact Editorial Flow */
.hero-headline-line {
  display: block;
  color: #F7F3ED !important;
  line-height: 0.90;
  letter-spacing: -0.04em;
  font-weight: 800;
  animation: heroEditorialFadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-line-1 {
  animation-delay: 0.08s;
}

.hero-line-2 {
  animation-delay: 0.16s;
}

.hero-line-3 {
  animation-delay: 0.24s;
}

.hero-line-4 {
  animation-delay: 0.32s;
}

/* Secondary Typeface: Expressive Italic Serif */
.hero-accent-serif,
.hero-word-bridge {
  font-family: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
  color: #F7F3ED !important;
  font-size: 1.1em;
  line-height: 0.88;
  display: inline-block;
  vertical-align: baseline;
  margin-right: 0.12em;
  text-transform: none;
  font-feature-settings: 'liga' 1, 'swsh' 1;
}

/* Supporting Understated Description */
.hero-editorial-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.6;
  color: #C8C5C1 !important;
  max-width: 480px;
  margin: 0 0 1.65rem 0;
  animation: heroEditorialFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

@media (max-width: 767px) {
  .hero-subbrand {
    font-size: 1.1rem;
    margin-bottom: 1.15rem;
  }

  .hero-title,
  .hero-editorial-headline {
    font-size: clamp(2.3rem, 10vw, 3.6rem);
    line-height: 0.90;
    letter-spacing: -0.035em;
    gap: 0.02em;
    margin-bottom: 1.2rem;
  }

  .hero-editorial-headline {
    font-size: calc(clamp(2.3rem, 10vw, 3.6rem) + 2px);
    margin-bottom: 2rem;
  }

  .hero-headline-line {
    line-height: 0.92;
    letter-spacing: -0.035em;
    white-space: normal;
  }

  .hero-accent-serif,
  .hero-word-bridge {
    font-size: 1.08em;
    line-height: 0.90;
  }

  .hero-editorial-desc {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-subbrand,
  .hero-headline-line,
  .hero-editorial-desc,
  .hero-actions,
  .hero-social-links {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hero Actions Row - Align social icons and Udyam button straight in a horizontal row */
.hero-actions-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0.25rem;
  animation: heroEditorialFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

.hero-actions-row .hero-social-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: auto;
  margin: 0;
  animation: none;
}

.hero-actions-row .hero-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: auto !important;
  margin: 0;
  animation: none;
}

.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0 0 1.25rem 0;
  animation: heroEditorialFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

.hero-social-links .social-btn {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(247, 244, 239, 0.28) !important;
  background-color: transparent !important;
  color: #F7F4EF !important;
  transition: all 0.2s ease;
}

.hero-social-links .social-btn svg {
  width: 0.88rem;
  height: 0.88rem;
  fill: currentColor;
}

.hero-social-links .social-btn:hover {
  border-color: #000000 !important;
  background-color: rgb(110, 153, 84) !important;
  color: #FFFFFF !important;
  transform: translateY(-1.5px);
}

.hero-social-links .social-btn:focus-visible {
  outline: 2px solid #F7F4EF !important;
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .hero-social-links {
    width: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0;
  animation: heroEditorialFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both;
}

.hero-credential {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: rgba(247, 244, 239, 0.05) !important;
  border: 1px solid rgba(247, 244, 239, 0.2) !important;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  color: #F7F4EF !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.hero-credential:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.6) !important;
  background-color: rgb(110, 153, 84) !important;
}

.hero-credential:focus-visible {
  outline: 2px solid #F7F4EF !important;
  outline-offset: 3px;
}

.hero-credential .material-symbols-outlined {
  color: #F7F4EF !important;
  font-size: 0.85rem;
}



.credential-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.credential-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.credential-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 11, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.credential-modal-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 36rem);
  max-height: 92vh;
  overflow: auto;
  background: rgba(20, 30, 24, 0.98);
  border: 1px solid rgba(167, 201, 87, 0.45);
  border-radius: 14px;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.45);
  padding: 1.25rem;
}

.credential-modal-label {
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.credential-modal-image {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.credential-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.credential-modal-close:hover,
.credential-modal-close:focus-visible {
  border-color: rgba(167, 201, 87, 0.8);
  color: var(--color-accent);
  outline: none;
}

@media (min-width: 640px) {
  .hero-btn-group {
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   5. WHO WE ARE & WHY WE ARE SECTION
   -------------------------------------------------------------------------- */
.about-section {
  width: 100%;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  padding: 3.5rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-gold-subtle);
}

@media (min-width: 768px) {
  .about-section {
    padding: 5.5rem 0;
  }
}

.section-header-compact {
  max-width: 48rem;
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.125rem, 4.5vw, 3.25rem);
  background: linear-gradient(105deg, var(--color-primary) 0%, var(--color-text) 58%, var(--color-accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-top: 0.5rem;
}

.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  perspective: 1200px;
}

@media (min-width: 768px) {
  .about-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.about-card {
  overflow: hidden;
  padding: 2rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem 1.5rem 1.5rem 0.35rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.about-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  border-color: var(--border-gold-bright);
  box-shadow: var(--shadow-card-hover);
}


.about-card-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 500;
}

.about-card-footer {
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Continuum Roadmap Bar */
.continuum-bar {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0.65rem;
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .continuum-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.continuum-step {
  position: relative;
  overflow: hidden;
  padding: 0.65rem 0.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.continuum-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(167, 201, 87, 0.18) 0%, transparent 85%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.continuum-step:hover {
  background: var(--color-background-soft);
  border-color: var(--primary-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.continuum-step:hover::before {
  opacity: 1;
}

.continuum-step .step-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 700;
  display: block;
  color: var(--primary-gold);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}

.continuum-step:hover .step-num {
  transform: scale(1.15);
  color: var(--color-primary);
}

.continuum-step .step-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  color: var(--color-text);
  transition: color 0.35s ease, letter-spacing 0.35s ease;
}

.continuum-step:hover .step-label {
  color: var(--primary-gold);
  letter-spacing: 0.25em;
}

.continuum-step.active {
  background: var(--color-accent);
  border-color: var(--color-primary);
  box-shadow: 0 4px 18px var(--gold-glow);
}

.continuum-step.active .step-num {
  color: var(--color-text-on-accent);
}

.continuum-step.active .step-label {
  color: var(--color-text-on-accent);
}

/* 4 Core Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 640px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.pillar-card:nth-child(1) {
  grid-column: 1;
}

.pillar-card:nth-child(2) {
  grid-column: 2;
}

.pillar-card:nth-child(3) {
  grid-column: 3;
}

.pillar-card:nth-child(4) {
  grid-column: 4;
}

.pillar-card.is-active {
  display: flex;
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(167, 201, 87, 0.14) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.pillar-card:hover {
  background: var(--color-background-soft);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(167, 201, 87, 0.2);
  transition: border-color 0.35s ease;
}

.pillar-card:hover .pillar-header {
  border-color: rgba(167, 201, 87, 0.5);
}

.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  height: 2.25rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(167, 201, 87, 0.3);
  border-radius: 0.5rem;
  background: rgba(167, 201, 87, 0.08);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-gold);
  font-style: italic;
  font-weight: 600;
  transition: transform 0.35s ease, color 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.pillar-card:hover .pillar-num {
  transform: translateY(-2px) scale(1.08);
  color: var(--primary-gold);
  background: rgba(167, 201, 87, 0.14);
  border-color: var(--primary-gold);
  box-shadow: inset 0 0 0 1px rgba(167, 201, 87, 0.25), 0 0 18px rgba(46, 93, 58, 0.08);
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(167, 201, 87, 0.25);
  border-radius: 50%;
  background: rgba(167, 201, 87, 0.06);
  color: var(--primary-gold);
  font-size: 1.25rem;
  opacity: 0.85;
  transition: transform 0.35s ease, color 0.35s ease, opacity 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.12);
  color: var(--primary-gold);
  background: rgba(167, 201, 87, 0.12);
  border-color: rgba(167, 201, 87, 0.5);
  opacity: 1;
}

.pillar-card h3 {
  font-size: 0.875rem;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.35rem;
  transition: color 0.3s ease;
}

.pillar-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pillar-footer {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-muted);
  font-size: 0.625rem;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.pillar-card:hover .pillar-footer {
  color: var(--color-primary);
  border-color: var(--color-border);
}

/* --------------------------------------------------------------------------
   6. WHAT WORK WE DO — INTERACTIVE 3D SLIDER
   -------------------------------------------------------------------------- */
.work-section {
  width: 100%;
  background-color: var(--navy-surface);
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 2.5vh, 2rem) 0 clamp(1.5rem, 3.5vh, 2.5rem);
  border-top: 1px solid var(--border-gold);
  overflow: hidden;
  position: relative;
  scroll-margin-top: 80px;
  box-sizing: border-box;
}

@media (min-height: 650px) and (min-width: 768px) {
  .work-section {
    min-height: calc(100vh - 80px);
    height: auto;
  }
}

.work-section .container {
  max-width: 1480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: clamp(0.5rem, 1.2vh, 0.9rem);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .work-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.work-header-copy {
  max-width: 44rem;
}

.work-header-copy .section-badge {
  margin-bottom: 0.25rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.625rem;
}

.work-header-copy .section-title {
  font-size: clamp(1.65rem, 2.3vw, 2.25rem);
  line-height: 1.15;
}

.work-subtext {
  color: var(--text-muted);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.45;
  margin-top: 0.25rem;
}

.work-slider-nav-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.45rem;
}

.slider-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
}

.slider-counter-badge .counter-current {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  color: var(--primary-gold);
}

.slider-counter-badge .counter-divider {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  opacity: 0.6;
}

.slider-counter-badge .counter-total {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.slider-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-arrow-btn .material-symbols-outlined {
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.slider-arrow-btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(40, 93, 59, 0.25);
}

.slider-arrow-btn.prev-btn:hover:not(:disabled) .material-symbols-outlined {
  transform: translateX(-3px);
}

.slider-arrow-btn.next-btn:hover:not(:disabled) .material-symbols-outlined {
  transform: translateX(3px);
}

.slider-arrow-btn:active:not(:disabled) {
  transform: translateY(0);
}

.slider-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--color-border);
  background: var(--color-background-soft);
  color: var(--color-text-muted);
}

/* 3D Slider Container & Stage */
.work-3d-slider-container {
  width: 100%;
  perspective: 1200px;
  position: relative;
  padding: 0.5rem 0 1.75rem;
  user-select: none;
  touch-action: pan-y pinch-zoom;
  overflow: visible;
}

.work-3d-stage {
  position: relative;
  width: 100%;
  height: clamp(310px, 35vh, 360px);
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D Slider Card (Horizontal Rectangle Ratio) */
.work-3d-card {
  --card-w: min(86vw, clamp(340px, 30vw, 440px));
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  aspect-ratio: 16 / 10;
  height: auto;
  margin-left: calc(-1 * var(--card-w) / 2);
  margin-top: calc(-1 * var(--card-w) * 5 / 16);
  transform-style: preserve-3d;
  border-radius: 18px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease,
    filter 0.6s ease,
    box-shadow 0.6s ease;
  cursor: pointer;
  outline: none;
}

.work-3d-card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-gold-subtle);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.05rem 1.15rem;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  background-color: #111A14;
}


/* Background Image */
.work-3d-card .card-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  z-index: 1;
}

/* Subtle image zoom when active card is hovered — gives life without excess */
.work-3d-card.is-active:hover .card-bg-image {
  transform: scale(1.04);
}

/* Glassmorphic Dark Tint Overlay - Semi-Transparent */
.work-3d-card .card-glass-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(17, 26, 20, 0.25) 0%,
      rgba(17, 26, 20, 0.50) 45%,
      rgba(17, 26, 20, 0.92) 100%);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  z-index: 2;
}

.work-3d-card.is-active .card-glass-overlay {
  background: linear-gradient(180deg,
      rgba(17, 26, 20, 0.12) 0%,
      rgba(17, 26, 20, 0.40) 45%,
      rgba(17, 26, 20, 0.90) 100%);
}

/* Active card base state (Centered & Foremost) */
.work-3d-card.is-active .card-inner {
  border-color: var(--color-accent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.50), 0 0 24px rgba(168, 217, 79, 0.22);
}

.work-3d-card.is-active .card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 20%, transparent 58%);
  transform-origin: left center;
  animation: work-page-turn 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes work-page-turn {
  from {
    opacity: 0.65;
    clip-path: inset(0 100% 0 0);
    transform: perspective(900px) rotateY(-12deg);
  }

  to {
    opacity: 0;
    clip-path: inset(0);
    transform: perspective(900px) rotateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-3d-card.is-active .card-inner::after {
    animation: none;
  }
}

/* All cards: accent border on hover */
.work-3d-card:hover .card-inner {
  border-color: var(--color-accent);
}

/*
 * Non-active card hover: subtle lift + sharper shadow to signal it is being
 * pulled toward the front. This state is brief (transition is ~0.6 s) but
 * prevents a jarring jump by easing the card-inner independently.
 */
.work-3d-card:not(.is-active):hover .card-inner {
  border-color: var(--color-accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), 0 0 18px rgba(168, 217, 79, 0.18);
  transform: translateY(-3px);
}

/* Active (center) card hover: gentle extra lift — no glow overload */
.work-3d-card.is-active:hover .card-inner {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.52), 0 0 28px rgba(168, 217, 79, 0.26);
}

.work-3d-card:hover .card-explore-hint {
  background: #254F36;
  border-color: rgba(168, 217, 79, 0.7);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.work-3d-card:hover .card-explore-hint .material-symbols-outlined {
  transform: translateX(4px);
  color: var(--color-accent);
}

.work-3d-card:focus-visible .card-inner {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Ensure all card contents are placed above background & overlay */
.work-3d-card .card-top-bar,
.work-3d-card .card-content-bottom {
  position: relative;
  z-index: 3;
}

/* Card Top Bar */
.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.card-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 700;
  color: var(--color-accent);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1;
}

.card-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(17, 26, 20, 0.75);
  border: 1px solid rgba(168, 217, 79, 0.45);
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.25rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFDF7;
}

.card-tag-pill:empty {
  display: none !important;
}

.card-tag-pill .pulse-dot {
  width: 5px;
  height: 5px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse-dot-anim 2s infinite ease-in-out;
}

@keyframes pulse-dot-anim {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Card Bottom Content */
.card-content-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.35vw, 1.28rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.card-desc {
  font-size: 0.8rem;
  color: #E2E8F0;
  line-height: 1.45;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.card-footer-cta {
  margin-top: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.card-explore-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  padding: 0.32rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-explore-hint .material-symbols-outlined {
  font-size: 0.95rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   INTERACTIVE SLIDE TABS & PAGINATION BAR
   ========================================================================== */
.work-slider-tabs-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: clamp(0.5rem, 1.2vh, 0.85rem);
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.work-slider-tabs {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1.35rem);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.3rem 0.5rem;
  max-width: 100%;
}

.work-slider-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 1.15rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: var(--color-primary);
  cursor: pointer;
  position: relative;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.work-slider-tab .tab-num {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 700;
  color: var(--color-primary);
  transition: color 0.25s ease;
}

.work-slider-tab .tab-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  transition: color 0.25s ease;
}

/* Hover & Active States — Dark Forest Green Capsule Pill */
.work-slider-tab:hover,
.work-slider-tab.is-active {
  background: #254F36;
  border-color: #254F36;
  box-shadow: 0 4px 16px rgba(37, 79, 54, 0.28);
  transform: translateY(-1px);
}

.work-slider-tab:hover .tab-num,
.work-slider-tab.is-active .tab-num {
  color: #A8D94F;
}

.work-slider-tab:hover .tab-label,
.work-slider-tab.is-active .tab-label {
  color: #FFFFFF;
}

/* Dark Mode Overrides */
html[data-theme="dark"] .work-slider-tab {
  color: #DDEBD6;
}

html[data-theme="dark"] .work-slider-tab .tab-num {
  color: var(--color-accent);
}

html[data-theme="dark"] .work-slider-tab .tab-label {
  color: #DDEBD6;
}

html[data-theme="dark"] .work-slider-tab:hover,
html[data-theme="dark"] .work-slider-tab.is-active {
  background: #254F36;
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 14px rgba(168, 217, 79, 0.25);
}

html[data-theme="dark"] .work-slider-tab:hover .tab-num,
html[data-theme="dark"] .work-slider-tab.is-active .tab-num {
  color: var(--color-accent);
}

html[data-theme="dark"] .work-slider-tab:hover .tab-label,
html[data-theme="dark"] .work-slider-tab.is-active .tab-label {
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .work-slider-tabs {
    gap: 0.35rem;
    padding: 0.2rem 0;
  }

  .work-slider-tab {
    padding: 0.38rem 0.8rem;
    border-radius: 9999px;
  }

  .work-slider-tab .tab-num {
    font-size: 0.82rem;
  }

  .work-slider-tab .tab-label {
    font-size: 0.65rem;
  }
}

.work-action-footer {
  margin-top: 2.5rem;
  text-align: center;
}

/* ==========================================================================
   WORK INITIATIVE DETAIL POPUP MODAL
   ========================================================================== */
.work-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 26, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.work-detail-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.work-detail-modal-container {
  position: relative;
  width: min(100%, 780px);
  max-height: 88vh;
  background-color: var(--color-surface);
  border: 1px solid var(--border-gold-bright);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 32px var(--gold-glow);
  overflow-y: auto;
  padding: 2.25rem;
  transform: scale(0.92) translateY(18px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-detail-modal-backdrop.is-open .work-detail-modal-container {
  transform: scale(1) translateY(0);
}

.work-detail-modal-backdrop.has-featured-story .work-detail-modal-container {
  width: min(100%, 980px);
}


.work-modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.work-modal-close-btn:hover {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
  transform: rotate(90deg);
}

/* Modal Content Typography & Structure */
.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.modal-num-badge {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 700;
  color: var(--primary-gold);
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.65rem;
}

.modal-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-gold);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.work-detail-modal-backdrop.has-featured-story .modal-title {
  font-size: clamp(0.72rem, 1.8vw, 1.25rem);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.modal-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-gold);
  margin-bottom: 1.25rem;
}

.modal-overview {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-gold-subtle);
  padding-bottom: 1.25rem;
}

.modal-story-copy {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.modal-story-copy p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.modal-course-copy {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-course-copy section {
  display: grid;
  gap: 0.35rem;
}

.modal-course-copy h3 {
  color: var(--color-text);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
}

.modal-course-copy p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.modal-image-gallery {
  margin-bottom: 1.5rem;
}

.modal-image-gallery .modal-pillars-heading {
  margin-bottom: 0.75rem;
}

.modal-image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.modal-gallery-image {
  min-width: 0;
  margin: 0;
}

.modal-gallery-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  object-fit: cover;
}

.modal-gallery-image figcaption {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 0.45rem;
}

.modal-ending-note {
  border-top: 1px solid var(--border-gold-subtle);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 1.75rem;
  padding-top: 1.1rem;
  text-align: center;
}

.modal-course-closing {
  border-top: 1px solid var(--border-gold-subtle);
  padding-top: 1rem;
}

.modal-explore {
  border-top: 1px solid var(--border-gold-subtle);
  border-bottom: 1px solid var(--border-gold-subtle);
  padding: 1rem 0;
  margin-bottom: 1.4rem;
}

.modal-section-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.modal-explore h3 {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.modal-featured {
  margin-bottom: 1.4rem;
}

.modal-featured-title {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
}

.modal-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.modal-featured-item {
  min-width: 0;
  margin: 0;
}

.modal-featured-play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 13;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-background-soft);
  cursor: pointer;
}

.modal-featured-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.modal-featured-play:hover img,
.modal-featured-play:focus-visible img {
  transform: scale(1.04);
}

.modal-featured-play:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.modal-featured-play-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(17, 26, 20, 0.72);
  color: #FFFFFF;
  font-size: 1.65rem;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-featured-play:hover .modal-featured-play-icon {
  background: #254F36;
  transform: translate(-50%, -50%) scale(1.08);
}

.modal-featured-item figcaption {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.45rem;
}

.modal-more-discover {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  border-top: 1px solid var(--border-gold-subtle);
  padding: 1.25rem 0 0.25rem;
  text-align: center;
}

.modal-more-discover h3 {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0;
}

.modal-more-discover p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

.modal-social-links {
  display: flex;
  gap: 0.5rem;
}

.modal-social-links a {
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.modal-social-links a:hover {
  background: var(--color-background-soft);
  border-color: var(--color-primary);
}

.modal-pillars-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .modal-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .modal-image-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.modal-pillar-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-pillar-item h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-pillar-item h4 .material-symbols-outlined {
  font-size: 1.15rem;
  color: var(--primary-gold);
}

.modal-pillar-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.modal-meta-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .modal-meta-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-meta-strip-two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.modal-meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.modal-meta-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.modal-section-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}

.modal-section-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-card);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.modal-section-link:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.modal-section-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.modal-section-link-index {
  flex: 0 0 auto;
  color: var(--primary-gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 700;
}

.modal-section-link-copy {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.modal-section-link-copy strong {
  color: var(--color-text);
  font-size: 0.88rem;
}

.modal-section-link-copy>span {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.modal-section-link>.material-symbols-outlined {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--primary-gold);
  font-size: 1.15rem;
}

@media (max-width: 600px) {
  .modal-section-links {
    grid-template-columns: 1fr;
  }
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gold-subtle);
}

.modal-btn-close {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.65rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn-close:hover {
  background: var(--color-background-soft);
  border-color: var(--color-primary);
}

.work-reel-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 26, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.work-reel-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.work-reel-modal-panel {
  width: min(100%, 440px);
  max-height: 94vh;
  overflow: hidden;
  border: 1px solid var(--border-gold-bright);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.work-reel-modal.is-open .work-reel-modal-panel {
  transform: translateY(0) scale(1);
}

.work-reel-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.8rem 0.65rem 1rem;
}

.work-reel-modal-header h2 {
  overflow: hidden;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-reel-modal-close {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-background-soft);
  color: var(--color-text);
  cursor: pointer;
}

.work-reel-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: min(78vh, 720px);
  overflow-y: auto;
  background: #000000;
}

.work-reel-frame blockquote {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 540px !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.work-reel-frame iframe {
  display: block;
  width: 100%;
  height: min(78vh, 720px) !important;
  border: 0;
}

.work-reel-fallback {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 0.78rem;
  text-align: center;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {

  .work-reel-modal,
  .work-reel-modal-panel,
  .modal-featured-play img,
  .modal-featured-play-icon {
    transition: none;
  }
}

@media (max-width: 640px) {
  .work-detail-modal-container {
    padding: 1.5rem;
    max-height: 92vh;
  }

  .modal-featured-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .work-detail-modal-backdrop.has-featured-story .modal-title {
    font-size: 1.1rem;
    white-space: normal;
  }

  .work-section {
    padding: 1.25rem 0 1.75rem;
    min-height: auto;
    height: auto;
    max-height: none;
  }

  .work-3d-stage {
    height: clamp(230px, 58vw, 275px);
  }

  .work-3d-card {
    --card-w: min(88vw, 360px);
    width: var(--card-w);
    height: auto;
    aspect-ratio: 16 / 10;
    margin-left: calc(-1 * var(--card-w) / 2);
    margin-top: calc(-1 * var(--card-w) * 5 / 16);
  }

  .work-3d-card .card-inner {
    padding: 1rem 1.05rem;
  }

  .card-heading {
    font-size: 1.15rem;
  }
}

/* --------------------------------------------------------------------------
   7. FIELD GALLERY (MOVING IMAGE MARQUEE)
   -------------------------------------------------------------------------- */
.field-gallery-section {
  width: 100%;
  background: var(--bg-canvas);
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-gold-subtle);
  overflow: hidden;
}

.field-gallery-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .field-gallery-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.field-gallery-header p {
  max-width: 30rem;
  color: var(--text-muted);
}

.field-gallery-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0.75rem 0 1.5rem;
}

.field-gallery-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: gallery-scroll var(--gallery-duration, 38s) linear infinite;
}

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

@keyframes gallery-scroll {
  0% {
    transform: translateX(0);
  }

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

.field-gallery-slide {
  position: relative;
  width: 290px;
  min-height: 340px;
  margin-right: 1rem;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #17241b;
  border: 1px solid rgba(167, 201, 87, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

@media (min-width: 768px) {
  .field-gallery-slide {
    width: 370px;
    min-height: 390px;
  }
}

.field-gallery-slide:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover);
}

.field-gallery-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #17241b;
}

.field-gallery-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(17, 26, 20, 0.12) 0%, rgba(17, 26, 20, 0.04) 30%, rgba(17, 26, 20, 0.88) 100%),
    linear-gradient(90deg, rgba(17, 26, 20, 0.28), transparent 70%);
  pointer-events: none;
}

.field-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-gallery-slide:hover .field-gallery-image img {
  transform: scale(1.05);
}

.field-gallery-number,
.field-gallery-tag {
  position: absolute;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.field-gallery-number {
  top: 1.1rem;
  left: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4vw, 3.6rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
}

.field-gallery-tag {
  top: 1.35rem;
  right: 1.25rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(17, 26, 20, 0.3);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field-gallery-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.9rem;
  margin-top: auto;
  padding: 5rem 1.5rem 1.4rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(17, 26, 20, 0.16) 18%, rgba(17, 26, 20, 0.72) 100%);
}

.field-gallery-copy strong {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
}

.field-gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   BLOG PAGE STYLES
   -------------------------------------------------------------------------- */
.blog-page-hero {
  width: 100%;
  background: var(--color-background-soft);
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border-gold-subtle);
}

.blog-page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 48rem;
}

.blog-page-content {
  width: 100%;
  background: var(--bg-obsidian);
  padding: 4rem 0 5rem;
}

.blog-page-intro {
  margin-bottom: 1.5rem;
}

.blog-page-intro h2 {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  background: linear-gradient(105deg, var(--color-primary) 0%, var(--color-text) 58%, var(--color-accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 0.98;
  font-weight: 700;
}

.blog-category-section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 92% 6%, rgba(167, 201, 87, 0.13), transparent 30rem),
    var(--color-background);
  border-bottom: 1px solid var(--border-muted);
}

.blog-category-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.blog-category-heading h1,
.blog-page-intro h1 {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--color-text);
}

.blog-category-heading h1 span {
  color: var(--color-primary);
  font-style: italic;
}

.blog-category-heading>p {
  max-width: 32rem;
  margin: 0 0 0.3rem auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.blog-category-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.blog-category-card {
  position: relative;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  background: #17241b;
  border: 1px solid rgba(167, 201, 87, 0.25);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.blog-category-spiritual,
.blog-category-political {
  grid-column: span 7;
}

.blog-category-cultural,
.blog-category-historical {
  grid-column: span 5;
}

.blog-category-card:hover,
.blog-category-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover);
}

.blog-category-card:focus-visible,
.blog-category-filter:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.blog-category-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #17241b;
}

.blog-category-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(17, 26, 20, 0.12) 0%, rgba(17, 26, 20, 0.04) 30%, rgba(17, 26, 20, 0.88) 100%),
    linear-gradient(90deg, rgba(17, 26, 20, 0.28), transparent 70%);
  pointer-events: none;
}

.blog-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-category-card:hover .blog-category-image img,
.blog-category-card:focus-visible .blog-category-image img {
  transform: scale(1.05);
}

.blog-category-number,
.blog-category-lens {
  position: absolute;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.blog-category-number {
  top: 1.1rem;
  left: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
}

.blog-category-lens {
  top: 1.35rem;
  right: 1.25rem;
  bottom: auto;
  left: auto;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(17, 26, 20, 0.3);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-category-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding: 5rem clamp(1.25rem, 3vw, 2rem) 1.5rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(17, 26, 20, 0.16) 18%, rgba(17, 26, 20, 0.72) 100%);
}

.blog-category-copy h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.blog-category-copy p {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  line-height: 1.7;
}

.blog-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-category-link .material-symbols-outlined {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.blog-category-card:hover .blog-category-link .material-symbols-outlined,
.blog-category-card:focus-visible .blog-category-link .material-symbols-outlined {
  transform: translateX(4px);
}

.blog-page-intro h1,
.blog-page-intro h2 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
}

.blog-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: -0.35rem;
  margin-bottom: 2rem;
}

.blog-category-filter {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  color: var(--text-muted);
  background: var(--bg-surface-low);
  border: 1px solid var(--border-muted);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.blog-category-filter:hover,
.blog-category-filter.is-active {
  color: var(--color-text-on-accent);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.blog-page-content .blog-grid .blog-card {
  background: var(--color-background-soft);
  border: 0;
  box-shadow: none;
}

.blog-page-content .blog-grid .blog-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.blog-page-content .blog-grid .blog-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 25%;
}

.blog-page-content .blog-grid .blog-card-body {
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.blog-page-content .blog-grid .journal-meta {
  gap: 1rem;
  font-size: 0.68rem;
}

.blog-page-content .blog-grid .blog-card-body h2,
.blog-page-content .blog-grid .blog-card-body h3 {
  margin: 0.25rem 0 0.65rem;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.2;
  font-family: var(--font-serif);
  color: var(--color-primary);
}

.blog-page-content .blog-grid .blog-card-body h2 a,
.blog-page-content .blog-grid .blog-card-body h3 a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-page-content .blog-grid .blog-card-body h2 a:hover,
.blog-page-content .blog-grid .blog-card-body h3 a:hover {
  color: var(--color-accent);
}

.blog-page-content .blog-grid .blog-card-body p {
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.blog-page-content .blog-grid .journal-read-link {
  margin-top: auto;
  padding-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-explore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .blog-category-card {
    grid-column: span 1;
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .blog-category-heading {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .blog-category-heading>p {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .blog-category-grid {
    grid-template-columns: 1fr;
  }

  .blog-category-card {
    min-height: 340px;
  }

  .blog-category-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.3rem 0.2rem 0.7rem;
    scrollbar-width: thin;
  }

  .blog-category-filter {
    flex: 0 0 auto;
  }
}

.blog-slideshow {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  border: 1px solid var(--border-muted);
  background: var(--bg-surface-low);
  margin-bottom: 2rem;
}

.blog-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.blog-slide.active {
  opacity: 1;
}

.blog-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card {
  position: relative;
  cursor: pointer;
  background: var(--bg-surface-low);
  border: 1px solid var(--border-muted);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-card-hover);
}

.blog-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.blog-card-clickable-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blog-card .journal-read-link,
.blog-card .blog-card-title a {
  position: relative;
  z-index: 2;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-card-title a:hover {
  color: var(--color-primary);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center 25%;
}

.featured-blog {
  grid-column: auto;
  display: flex;
}

@media (min-width: 900px) {
  .featured-blog {
    grid-template-columns: none;
  }

  .featured-blog img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.blog-card-body h2,
.blog-card-body h3 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-size: clamp(1.4rem, 1.8vw, 1.85rem);
}

.blog-card-body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 0.98rem;
}

.blog-card .journal-meta {
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   8. FIELD JOURNAL & INSIGHTS
   -------------------------------------------------------------------------- */
.journal-section {
  width: 100%;
  background: var(--bg-obsidian);
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-gold-subtle);
}

.journal-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .journal-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.journal-index-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .journal-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.journal-feature {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
}

.journal-image-link img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.journal-feature-copy {
  padding: 1.75rem;
}

.journal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.6875rem;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.journal-feature-copy h3 {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.journal-feature-copy p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.journal-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  transition: gap 0.2s ease;
}

.journal-read-link:hover {
  gap: 0.65rem;
  color: var(--color-primary);
}

.journal-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.journal-post {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-surface-low);
  border: 1px solid var(--border-muted);
}

.journal-post img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.journal-post h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.journal-post p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   9. COURSES & PROGRAMS SECTION (3D Creative Layout)
   -------------------------------------------------------------------------- */
.courses-section,
.programs-section {
  width: 100%;
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(circle at 3% 48%, rgba(216, 235, 215, 0.55) 0%, transparent 26%),
    radial-gradient(circle at 97% 45%, rgba(216, 235, 215, 0.5) 0%, transparent 26%);
  padding: clamp(3rem, 4.5vw, 4.5rem) 0;
  border-top: 1px solid var(--border-gold-subtle);
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .courses-section {
  background-image:
    radial-gradient(circle at 3% 48%, rgba(52, 75, 56, 0.45) 0%, transparent 26%),
    radial-gradient(circle at 97% 45%, rgba(52, 75, 56, 0.4) 0%, transparent 26%);
}

.courses-container {
  position: relative;
  z-index: 2;
}

/* Flanking Decorative Motifs (Learned Books Stack & Academic Mortarboard) */
.courses-flank-motif {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.flank-motif-left {
  left: max(0.5rem, calc((100vw - var(--max-width)) / 2 - 130px));
  top: 36%;
  transform: translateY(-50%);
  width: clamp(120px, 11vw, 175px);
  max-width: 180px;
}

.courses-section.courses-motif-entered .flank-motif-left {
  animation: coursesLeafEnterFromLeft 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes coursesLeafEnterFromLeft {
  from {
    transform: translate(-115%, -50%);
  }

  to {
    transform: translateY(-50%);
  }
}

.flank-motif-right {
  right: max(0.5rem, calc((100vw - var(--max-width)) / 2 - 130px));
  top: 64%;
  transform: translateY(-50%) rotate(180deg);
  width: clamp(120px, 11vw, 175px);
  max-width: 180px;
}

.courses-motif-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(46, 93, 58, 0.08));
}

html[data-theme="dark"] .courses-motif-img {
  filter: drop-shadow(0 4px 20px rgba(167, 201, 87, 0.25));
  opacity: 0.92;
}

@media (max-width: 1260px) {
  .flank-motif-left {
    left: -20px;
    opacity: 0.45;
  }

  .flank-motif-right {
    right: -20px;
    opacity: 0.45;
  }
}

@media (max-width: 1024px) {
  .courses-flank-motif {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .courses-section.courses-motif-entered .flank-motif-left {
    animation: none;
  }
}

/* Courses Title Ornamental Lotus Flourish */
.courses-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.courses-title-lotus {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  color: var(--color-primary);
  opacity: 0.85;
}

.lotus-flourish-wing {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.lotus-flourish-icon {
  width: 22px;
  height: 15px;
  display: block;
}

/* Courses Header */
.courses-header,
.programs-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.4rem, 2vw, 2.25rem);
}

@media (min-width: 768px) {

  .courses-header,
  .programs-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.courses-intro,
.programs-intro {
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Course and program grids - 3 IN A ROW */
.courses-3d-grid,
.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) and (max-width: 900px) {
  .courses-3d-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .course-3d-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (min-width: 901px) {
  .courses-3d-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .course-3d-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
  }
}

/* Course Card Architecture */
.course-3d-card,
.program-card {
  position: relative;
  display: flex;
  width: 100%;
}

.course-card-glass {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1.35rem;
  padding: 1.45rem 1.45rem 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  min-height: 480px;
}

.course-3d-card {
  cursor: pointer;
}

.course-3d-card:hover .course-card-glass {
  /* transform: translateY(-8px); */
  border-color: #C9A227;
  box-shadow: 0 20px 44px rgba(201, 162, 39, 0.16), 0 0 24px rgba(201, 162, 39, 0.18);
}

html[data-theme="dark"] .course-3d-card:hover .course-card-glass {
  border-color: #C9A227;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 28px rgba(201, 162, 39, 0.28);
  background: #1C2D22;
}

.course-3d-card:hover .course-card-glow {
  opacity: 1;
}

.course-3d-card:hover .course-card-image {
  transform: scale(1.06);
}

.course-3d-card:hover .course-card-glass::after {
  height: 5px;
  opacity: 1;
}

.course-3d-card:hover .course-card-title {
  color: var(--color-primary);
}

html[data-theme="dark"] .course-3d-card:hover .course-card-title {
  color: #A8D94F;
}

html[data-theme="dark"] .course-card-glass {
  background: #18271D;
  border-color: #2D4434;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* Dynamic top border highlight */
.course-card-glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0.65;
  transition: opacity 0.35s ease, height 0.35s ease;
}

/* Subtle Inner Ambient Glow */
.course-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(167, 201, 87, 0.15), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Featured / Highlighted Card */
.course-featured-3d .course-card-glass {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, var(--color-card) 0%, var(--color-background-soft) 100%);
  box-shadow: 0 8px 24px -6px rgba(46, 93, 58, 0.15);
}

html[data-theme="dark"] .course-featured-3d .course-card-glass {
  background: linear-gradient(180deg, #1F3326 0%, #16241B 100%);
  border-color: var(--color-accent);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.5);
}

.course-popular-tag {
  position: absolute;
  top: 0;
  right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #18271D;
  background: var(--color-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 3px 10px rgba(167, 201, 87, 0.3);
  z-index: 3;
}

/* Card Top Bar & Badges */
.course-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

/* Course Image Container */
.course-card-image-wrap {
  width: 100%;
  height: 165px;
  border-radius: 0.95rem;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(46, 93, 58, 0.12);
  background: var(--color-background-soft);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

html[data-theme="dark"] .course-card-image-wrap {
  border-color: rgba(167, 201, 87, 0.2);
}

.course-card-img,
.course-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card-glass:hover .course-card-image {
  transform: scale(1.05);
}

.course-badge-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.course-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  width: fit-content;
}

.status-active {
  background: rgba(46, 93, 58, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(46, 93, 58, 0.3);
}

html[data-theme="dark"] .status-active {
  background: rgba(167, 201, 87, 0.15);
  color: var(--color-accent);
  border-color: rgba(167, 201, 87, 0.35);
}

.status-upcoming {
  background: rgba(224, 159, 62, 0.14);
  color: #9C6615;
  border: 1px solid rgba(224, 159, 62, 0.4);
}

html[data-theme="dark"] .status-upcoming {
  background: rgba(224, 159, 62, 0.2);
  color: #F4C46A;
  border-color: rgba(224, 159, 62, 0.45);
}

.status-pipeline {
  background: rgba(46, 93, 58, 0.08);
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
}

html[data-theme="dark"] .status-pipeline {
  background: rgba(177, 194, 176, 0.1);
  color: #B1C2B0;
  border-color: #344B38;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50% !important;
  background-color: currentColor;
  display: inline-block;
  animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {

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

  50% {
    opacity: 0.35;
    transform: scale(1.35);
  }
}

.course-audience-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Card Icon Box */
.course-3d-icon-box {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-card) 100%);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(46, 93, 58, 0.08);
  color: var(--color-primary);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html[data-theme="dark"] .course-3d-icon-box {
  background: linear-gradient(135deg, #223629 0%, #152219 100%);
  border-color: #344B38;
  color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.course-icon {
  font-size: 1.65rem;
}

/* Course Card Body */
.course-card-body {
  margin-bottom: 0.75rem;
}

.course-index-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  opacity: 0.95;
}

.course-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.22;
  background: linear-gradient(105deg, var(--color-primary) 0%, var(--color-text) 58%, var(--color-accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

/* Civilizational Sanskrit Motto */
.course-sanskrit-tag {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0.88;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.32rem;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .course-sanskrit-tag {
  color: var(--color-accent);
  opacity: 0.95;
}

.course-sanskrit-tag .sanskrit-char {
  color: var(--color-primary);
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
}

html[data-theme="dark"] .course-sanskrit-tag .sanskrit-char {
  color: var(--color-accent);
}

.course-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Feature Chips */
.course-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(46, 93, 58, 0.15);
  color: var(--color-text);
  border-radius: 999px;
  transition: all 0.25s ease;
}

html[data-theme="dark"] .feature-chip {
  background: rgba(29, 44, 34, 0.7);
  border-color: rgba(167, 201, 87, 0.2);
  color: #E7EFE5;
}

.feature-chip .material-symbols-outlined {
  font-size: 0.88rem;
  color: var(--color-primary);
}

html[data-theme="dark"] .feature-chip .material-symbols-outlined {
  color: var(--color-accent);
}

.feature-chip:hover {
  border-color: var(--color-primary);
  background: var(--color-surface);
  transform: translateY(-2px);
}

html[data-theme="dark"] .feature-chip:hover {
  border-color: var(--color-accent);
}

/* Card Footer & Clean CTA Buttons */
.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-gold-subtle);
  margin-top: auto;
}

.course-meta-info {
  display: flex;
  flex-direction: column;
}

.course-meta-info .meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

.course-meta-info .meta-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
}

.course-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary-3d {
  background: var(--color-primary);
  color: #F6FAF4;
  border: 1px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(46, 93, 58, 0.25);
}

html[data-theme="dark"] .btn-primary-3d {
  background: var(--color-accent);
  color: #111A14;
  border-color: var(--color-accent);
}

.btn-primary-3d:hover {
  background: #1e3f27;
  box-shadow: 0 8px 20px rgba(46, 93, 58, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

html[data-theme="dark"] .btn-primary-3d:hover {
  background: #bce067;
  color: #111A14;
}

.btn-featured-3d {
  background: var(--color-primary);
  color: #F6FAF4;
  border: 1px solid var(--color-primary);
  box-shadow: 0 6px 16px rgba(46, 93, 58, 0.3);
}

html[data-theme="dark"] .btn-featured-3d {
  background: var(--color-accent);
  color: #111A14;
  border-color: var(--color-accent);
}

.btn-featured-3d:hover {
  background: #1e3f27;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(46, 93, 58, 0.45);
  color: #fff;
}

html[data-theme="dark"] .btn-featured-3d:hover {
  background: #bce067;
  color: #111A14;
}

.btn-outline-3d {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline-3d:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #F6FAF4;
  transform: translateY(-2px);
}

html[data-theme="dark"] .btn-outline-3d:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #111A14;
}

.course-action-btn .material-symbols-outlined {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.course-action-btn:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* Institutional Collaboration Banner */
.courses-contact-banner {
  margin-top: clamp(1.75rem, 2.5vw, 2.25rem);
  padding: 1.4rem 1.85rem;
  background: linear-gradient(135deg, var(--color-background-soft) 0%, var(--color-card) 100%);
  border: 1px solid var(--color-border);
  border-radius: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.courses-contact-banner:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover);
}

@media (min-width: 768px) {
  .courses-contact-banner {
    flex-direction: row;
    align-items: center;
  }
}

html[data-theme="dark"] .courses-contact-banner {
  background: linear-gradient(135deg, #18271D 0%, #1D2C22 100%);
  border-color: #344B38;
}

/* Banner Artistic Watermark */
.courses-banner-watermark {
  position: absolute;
  left: -15px;
  bottom: -20px;
  width: 140px;
  height: 100px;
  pointer-events: none;
  color: var(--color-primary);
  opacity: 0.12;
  transition: opacity 0.3s ease;
}

html[data-theme="dark"] .courses-banner-watermark {
  color: var(--color-accent);
  opacity: 0.15;
}

.courses-contact-content {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  position: relative;
  z-index: 2;
}

.courses-contact-content .banner-icon {
  font-size: 2.15rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

html[data-theme="dark"] .courses-contact-content .banner-icon {
  color: var(--color-accent);
}

.courses-contact-content h4 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.courses-contact-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.courses-banner-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.courses-banner-btn .material-symbols-outlined {
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.courses-banner-btn:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   9B. ASYMMETRIC LIFE AT TMB GALLERY SECTION
   -------------------------------------------------------------------------- */
.gallery-section {
  width: 100%;
  background: var(--color-background);
  padding: 5.5rem 0;
  border-top: 1px solid var(--border-gold-subtle);
  position: relative;
  overflow: hidden;
}

.gallery-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 768px) {
  .gallery-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.gallery-intro {
  max-width: 32rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Asymmetric Grid Layout */
.asymmetric-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .asymmetric-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asymmetric-gallery-grid .item-tall {
    height: 380px;
  }

  .asymmetric-gallery-grid .gallery-col-stack {
    height: 380px;
  }

  .asymmetric-gallery-grid .item-wide {
    grid-column: span 2;
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .asymmetric-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .asymmetric-gallery-grid .item-tall {
    height: 470px;
  }

  .asymmetric-gallery-grid .gallery-col-stack {
    height: 470px;
  }

  .asymmetric-gallery-grid .item-wide {
    grid-column: span 2;
    height: 320px;
  }
}

/* Gallery Items Architecture */
.gallery-item {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 201, 87, 0.45);
  box-shadow: var(--shadow-card-hover), 0 0 20px rgba(167, 201, 87, 0.12);
}

.gallery-col-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.gallery-col-stack .item-stacked {
  flex: 1;
  min-height: 0;
  height: calc(50% - 0.625rem);
}

/* Image Wrappers */
.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.05);
}

/* Card Gradient Overlay */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 18, 13, 0.85) 0%,
      rgba(10, 18, 13, 0.35) 28%,
      rgba(10, 18, 13, 0.05) 55%,
      transparent 100%);
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 0.95;
}

/* Captions */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  z-index: 2;
  pointer-events: none;
}

.gallery-caption-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: rgba(167, 201, 87, 0.16);
  border: 1px solid rgba(167, 201, 87, 0.3);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gallery-caption-text {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  transition: transform var(--transition-smooth), color var(--transition-smooth);
}

.gallery-item:hover .gallery-caption-text {
  transform: translateX(2px);
}

/* Mobile specific styling */
@media (max-width: 639px) {
  .asymmetric-gallery-grid .item-tall {
    height: 320px;
  }

  .asymmetric-gallery-grid .gallery-col-stack {
    height: auto;
  }

  .asymmetric-gallery-grid .gallery-col-stack .item-stacked,
  .asymmetric-gallery-grid .item-stacked {
    flex: none;
    height: 240px;
  }

  .asymmetric-gallery-grid .item-wide {
    height: 250px;
  }
}

/* --------------------------------------------------------------------------
   10. INSIGHTS SECTION
   -------------------------------------------------------------------------- */
.insights-section {
  width: 100%;
  background: var(--bg-canvas);
  padding: 5.5rem 0;
  border-top: 1px solid var(--border-gold-subtle);
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.insight-card {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
}

.insight-image-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.insight-copy {
  padding: 1.5rem;
}

.insight-copy h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.insight-copy p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.programs-course-line {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-gold-subtle);
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.programs-course-line a {
  color: var(--primary-gold);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.impact-metrics-section {
  width: 100%;
  background: var(--color-background);
  border-top: 1px solid var(--border-gold-subtle);
  border-bottom: 1px solid var(--border-gold-subtle);
  padding: clamp(2.25rem, 3.4vw, 3rem) 0;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

html[data-theme="dark"] .impact-metrics-section {
  background: var(--color-background);
}

.impact-metrics-inner {
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   BADGE + EXTENDING LINE (Tightened spacing)
   -------------------------------------------------------------------------- */
.impact-badge-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(0.85rem, 1.4vw, 1.25rem);
}

.impact-badge {
  border: 1px solid rgba(46, 93, 58, 0.4);
  padding: 0.36rem 0.95rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: transparent;
  display: inline-block;
  line-height: 1.2;
  transition: all 0.25s ease;
}

.impact-badge:hover {
  border-color: var(--color-primary);
  background: rgba(167, 201, 87, 0.1);
}

html[data-theme="dark"] .impact-badge {
  border-color: rgba(167, 201, 87, 0.45);
  color: var(--color-accent);
  background: transparent;
}

html[data-theme="dark"] .impact-badge:hover {
  border-color: var(--color-accent);
  background: rgba(167, 201, 87, 0.1);
}

.impact-badge-line {
  height: 1px;
  width: clamp(80px, 14vw, 180px);
  background: linear-gradient(to right, rgba(46, 93, 58, 0.35), rgba(46, 93, 58, 0.05));
  transition: background 0.25s ease;
}

html[data-theme="dark"] .impact-badge-line {
  background: linear-gradient(to right, rgba(167, 201, 87, 0.4), rgba(167, 201, 87, 0.05));
}

/* --------------------------------------------------------------------------
   MAIN 3-COLUMN LAYOUT: LEFT (Movement) | CENTER (Landscape Scenery) | RIGHT (Stats)
   -------------------------------------------------------------------------- */
.impact-simple-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1.2fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 3vw, 3.25rem);
  align-items: center;
}

/* COLUMN 1: Movement & Big Counter */
.impact-col-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.impact-kicker {
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 0.9vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.45rem;
}

html[data-theme="dark"] .impact-kicker {
  color: var(--color-accent);
}

.impact-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  line-height: 0.9;
  user-select: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.impact-number-wrap:hover {
  transform: scale(1.015);
}

.impact-total {
  font-family: var(--font-sans);
  font-size: clamp(5.2rem, 8.2vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: var(--color-primary);
  font-feature-settings: "tnum" 1, "kern" 1;
}

html[data-theme="dark"] .impact-total {
  color: var(--color-text);
}

.impact-plus {
  font-family: var(--font-sans);
  font-size: clamp(3.6rem, 5.6vw, 5.2rem);
  font-weight: 800;
  line-height: 0.88;
  color: #C85A32;
  margin-left: 0.2rem;
}

html[data-theme="dark"] .impact-plus {
  color: #E26E38;
}

.impact-caption {
  margin-top: 0.85rem;
  max-width: 23rem;
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 1.6vw, 1.45rem);
  line-height: 1.35;
  color: var(--color-text);
}

.caption-serif-italic {
  font-style: italic;
  font-weight: 600;
  color: var(--color-primary);
}

html[data-theme="dark"] .caption-serif-italic {
  color: #FFFFFF;
}

.caption-bharat {
  font-style: italic;
  font-weight: 700;
  color: #C85A32;
}

html[data-theme="dark"] .caption-bharat {
  color: #E26E38;
}

/* COLUMN 2: Shorter, Wider Landscape Scenery (1.6:1 Aspect Ratio) */
.impact-col-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0;
}

.impact-tree-frame {
  position: relative;
  width: 100%;
  max-width: clamp(280px, 26vw, 360px);
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.35s ease;
  user-select: none;
}

.impact-tree-frame:hover {
  transform: translateY(-2px);
}

html[data-theme="dark"] .impact-tree-frame {
  background: transparent;
  border: none;
  box-shadow: none;
}

html[data-theme="dark"] .impact-tree-frame:hover {
  border: none;
  box-shadow: none;
  transform: translateY(-2px);
}

.impact-tree-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

/* Warm golden sunrise aura behind the tree crown */
.impact-tree-sun-aura {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%, 0) scale(0.9);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 180, 60, 0.32) 0%, rgba(226, 110, 56, 0.14) 45%, transparent 72%);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}

html[data-theme="dark"] .impact-tree-sun-aura {
  background: radial-gradient(circle, rgba(212, 163, 115, 0.30) 0%, rgba(167, 201, 87, 0.14) 45%, transparent 72%);
}

.impact-tree-svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  overflow: visible;
}

/* Tree Woodwork & Roots Palette for Light & Dark mode */
#treeWoodwork,
.tree-roots path {
  transition: fill 0.3s ease, stroke 0.3s ease;
}

html[data-theme="dark"] #treeWoodwork {
  fill: #E8DCC8;
  stroke: #E8DCC8;
}

html[data-theme="dark"] .tree-roots {
  stroke: #E8DCC8;
}

/* Dynamic Foliage Leaf Element */
.tree-dynamic-leaf {
  will-change: transform, opacity;
  pointer-events: none;
}

/* Subtle glow / highlight state when numbers reach completed peak */
.impact-total.is-peak {
  text-shadow: 0 0 24px rgba(46, 93, 58, 0.24);
  transition: text-shadow 0.4s ease;
}

html[data-theme="dark"] .impact-total.is-peak {
  text-shadow: 0 0 28px rgba(167, 201, 87, 0.4);
}

.impact-stat-number.is-peak {
  color: var(--color-primary);
  text-shadow: 0 0 14px rgba(46, 93, 58, 0.16);
  transition: text-shadow 0.4s ease;
}

html[data-theme="dark"] .impact-stat-number.is-peak {
  color: #FFFFFF;
  text-shadow: 0 0 16px rgba(167, 201, 87, 0.28);
}

/* COLUMN 3: Vertical Divider & Compact Stats Table */
.impact-col-right {
  border-left: 1px solid rgba(46, 93, 58, 0.22);
  padding-left: clamp(1.25rem, 2.8vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html[data-theme="dark"] .impact-col-right {
  border-left-color: rgba(167, 201, 87, 0.28);
}

.impact-stats-table {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.impact-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(0.55rem, 0.9vw, 0.8rem) 0;
  border-bottom: 1px solid rgba(46, 93, 58, 0.2);
  transition: border-color 0.25s ease;
}

html[data-theme="dark"] .impact-stat-line {
  border-bottom-color: rgba(167, 201, 87, 0.25);
}

.impact-stat-line:hover {
  border-bottom-color: var(--color-primary);
}

html[data-theme="dark"] .impact-stat-line:hover {
  border-bottom-color: var(--color-accent);
}

.impact-stat-name {
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 0.85vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

html[data-theme="dark"] .impact-stat-name {
  color: var(--color-text-muted);
}

.impact-stat-number {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  font-feature-settings: "tnum" 1;
}

html[data-theme="dark"] .impact-stat-number {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .impact-metrics-section {
    padding: 2.5rem 0;
  }

  .impact-simple-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .impact-col-center {
    order: 2;
  }

  .impact-cinematic-arch {
    max-width: 380px;
    margin: 0 auto;
  }

  .impact-col-right {
    order: 3;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(46, 93, 58, 0.22);
    padding-top: 1.25rem;
  }

  html[data-theme="dark"] .impact-col-right {
    border-top-color: rgba(167, 201, 87, 0.28);
  }
}

@media (max-width: 540px) {
  .impact-metrics-section {
    padding: 2rem 0;
  }

  .impact-total {
    font-size: 4.6rem;
  }

  .impact-plus {
    font-size: 3.2rem;
  }

  .impact-caption {
    font-size: 1.15rem;
  }

  .impact-stat-line {
    padding: 0.7rem 0;
  }

  .impact-stat-number {
    font-size: 3rem;
  }
}

.testimonials-section {
  width: 100%;
  background: var(--bg-surface-low);
  border-top: 1px solid var(--border-gold-subtle);
  padding: 3.75rem 0 4.25rem;
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Left Corner Architectural Artwork (Dravidian Temple Gopuram & Celestial Sun)
   Matches reference sketch format with brand colors
   -------------------------------------------------------------------------- */
.testimonials-corner-artwork {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: clamp(90px, 11vw, 155px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 1;
  opacity: 0.94;
  transition: opacity 0.35s ease;
}

.temple-gopuram-svg {
  width: 100%;
  height: 92%;
  max-height: 540px;
  display: block;
}

.temple-art-bar {
  fill: var(--temple-accent-bar);
  transition: fill 0.3s ease;
}

.temple-art-sun {
  fill: var(--temple-sun);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), fill 0.3s ease, filter 0.3s ease;
  transform-origin: 72px 132px;
}

.testimonials-section:hover .temple-art-sun {
  transform: scale(1.06);
  filter: drop-shadow(0 0 16px var(--temple-sun-glow));
}

.temple-art-stroke {
  stroke: var(--temple-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

@media (max-width: 1024px) {
  .testimonials-corner-artwork {
    width: clamp(70px, 9vw, 110px);
    opacity: 0.65;
  }
}

@media (max-width: 640px) {
  .testimonials-corner-artwork {
    width: 60px;
    opacity: 0.4;
  }
}

.testimonials-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.testimonials-header h2 {
  margin-top: 1rem;
  max-width: 42rem;
}

.testimonials-intro {
  max-width: 30rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.testimonial-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  padding: 0.5rem 0 1rem;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0.5rem;
  box-sizing: border-box;
}

.testimonial-pairs {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.testimonial-pair-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 1 1 0;
  max-width: 540px;
}

.testimonial-image-col {
  position: relative;
  width: 190px;
  height: 240px;
  flex-shrink: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(46, 93, 58, 0.14);
  background: var(--bg-surface-high);
  z-index: 1;
}

html[data-theme="dark"] .testimonial-image-col {
  border-color: rgba(167, 201, 87, 0.2);
}

.testimonial-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-pair-row:hover .testimonial-image-col img {
  transform: scale(1.04);
}

.testimonial-card-col {
  position: relative;
  z-index: 2;
  width: 360px;
  max-width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  padding: 1.55rem 1.65rem 1.45rem;
  border: 1px solid rgba(167, 201, 87, 0.22);
  border-radius: 1.25rem;
  background: #223629;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35), 0 0 20px rgba(167, 201, 87, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Pair 1: Photo on left, Card overlapping on right */
.testimonial-pair-normal .testimonial-card-col {
  margin-left: -2.75rem;
}

/* Pair 2: Card on left, Photo overlapping on right */
.testimonial-pair-reverse .testimonial-card-col {
  margin-right: -2.75rem;
}

.testimonial-pair-row:hover .testimonial-card-col {
  border-color: #A7C957;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 26px rgba(167, 201, 87, 0.18);
}

.testimonial-card-col h3 {
  margin-bottom: 0.35rem;
  color: #E7EFE5;
  line-height: 1.2;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.testimonial-featured-role {
  display: block;
  margin-bottom: 0.85rem;
  color: #A7C957;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.testimonial-card-col blockquote {
  color: #B1C2B0;
  font-family: var(--font-sans);
  line-height: 1.6;
  font-style: italic;
  font-size: 0.92rem;
  margin: 0 0 1.15rem;
  min-height: 3.8rem;
}

.testimonial-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
}

.testimonial-social-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 201, 87, 0.12);
  border: 1px solid rgba(167, 201, 87, 0.28);
  color: #A7C957;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.testimonial-social-btn:hover,
.testimonial-social-btn:focus-visible {
  transform: translateY(-2px);
  background: #A7C957;
  border-color: #A7C957;
  color: #111A14;
  outline: none;
}

.testimonial-social-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Controls matching website color theme */
.testimonial-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.testimonial-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(46, 93, 58, 0.2);
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(46, 93, 58, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.testimonial-nav-btn:hover,
.testimonial-nav-btn:focus-visible {
  transform: translateY(-2px);
  background: #C9A227;
  border-color: #C9A227;
  color: #FFFFFF;
  outline: none;
}

.testimonial-nav-btn .material-symbols-outlined {
  font-size: 1.4rem;
}

.testimonial-indicators {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.testimonial-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(46, 93, 58, 0.25);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.3s ease, background 0.3s ease;
}

.testimonial-indicator:hover {
  background: rgba(46, 93, 58, 0.45);
}

.testimonial-indicator.is-active {
  width: 26px;
  border-radius: 4px;
  background: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Dark Mode Overrides for Testimonial Cards & Carousel Controls
   -------------------------------------------------------------------------- */
html[data-theme="dark"] .testimonial-card-col {
  background: #223629;
  border-color: rgba(167, 201, 87, 0.25);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 20px rgba(167, 201, 87, 0.08);
}

html[data-theme="dark"] .testimonial-pair-row:hover .testimonial-card-col {
  border-color: var(--color-accent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 26px rgba(167, 201, 87, 0.18);
}

html[data-theme="dark"] .testimonial-card-col h3 {
  color: #E7EFE5;
}

html[data-theme="dark"] .testimonial-featured-role {
  color: #A7C957;
}

html[data-theme="dark"] .testimonial-card-col blockquote {
  color: #B1C2B0;
}

html[data-theme="dark"] .testimonial-social-btn {
  background: rgba(167, 201, 87, 0.12);
  border-color: rgba(167, 201, 87, 0.28);
  color: #A7C957;
}

html[data-theme="dark"] .testimonial-social-btn:hover,
html[data-theme="dark"] .testimonial-social-btn:focus-visible {
  background: #A7C957;
  border-color: #A7C957;
  color: #111A14;
}

html[data-theme="dark"] .testimonial-nav-btn {
  background: #18271D;
  border-color: rgba(167, 201, 87, 0.3);
  color: #E7EFE5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .testimonial-nav-btn:hover,
html[data-theme="dark"] .testimonial-nav-btn:focus-visible {
  background: #C9A227;
  border-color: #C9A227;
  color: #FFFFFF;
}

html[data-theme="dark"] .testimonial-indicator {
  background: rgba(167, 201, 87, 0.28);
}

html[data-theme="dark"] .testimonial-indicator:hover {
  background: rgba(167, 201, 87, 0.55);
}

html[data-theme="dark"] .testimonial-indicator.is-active {
  background: #A7C957;
}

@media (max-width: 1040px) {
  .testimonial-pairs {
    gap: 1rem;
  }

  .testimonial-image-col {
    width: 155px;
    height: 215px;
  }

  .testimonial-card-col {
    width: 320px;
    padding: 1.15rem 1.2rem 1.1rem;
  }

  .testimonial-pair-normal .testimonial-card-col {
    margin-left: -2.25rem;
  }

  .testimonial-pair-reverse .testimonial-card-col {
    margin-right: -2.25rem;
  }

  .testimonial-card-col h3 {
    font-size: 1.35rem;
  }

  .testimonial-card-col blockquote {
    font-size: 0.88rem;
    min-height: 3.5rem;
  }
}

@media (max-width: 820px) {
  .testimonial-pairs {
    flex-direction: column;
    gap: 2rem;
    max-width: 520px;
  }

  .testimonial-pair-row {
    max-width: 100%;
    width: 100%;
  }

  .testimonial-image-col {
    width: 180px;
    height: 220px;
  }

  .testimonial-card-col {
    width: 340px;
  }
}

@media (max-width: 600px) {
  .testimonial-pairs {
    gap: 2.25rem;
  }

  .testimonial-pair-row {
    flex-direction: column;
    max-width: 100%;
  }

  .testimonial-image-col {
    width: min(100%, 280px);
    height: 200px;
    border-radius: 1.15rem;
  }

  .testimonial-card-col {
    width: min(100%, 340px);
    max-width: 100%;
    margin: -2.25rem auto 0 !important;
    padding: 1.35rem 1.25rem 1.2rem;
    border-radius: 1.15rem;
  }

  .testimonial-pair-reverse {
    flex-direction: column;
  }

  .testimonial-pair-reverse .testimonial-image-col {
    order: -1;
  }
}

@media (min-width: 768px) {
  .testimonials-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .testimonial-mini-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonial-mini-card img {
    grid-column: 1;
    grid-row: 1;
    height: clamp(16rem, 65vw, 24rem);
  }

  .testimonial-mini-copy {
    grid-column: 1;
    grid-row: 1;
    width: calc(100% - 1rem);
    margin: auto 0 -2rem auto;
    padding: 1.5rem;
    align-self: end;
  }

  .impact-metric:hover,
  .about-card:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .about-card,
  .impact-metric,
  .impact-metric::after,
  .testimonial-arrow {
    transition: none;
  }

  .about-card:hover,
  .impact-metric:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   11.5 CONTACT / ENGAGEMENT SECTION (Inspired by reference mockup & TMB design system)
   -------------------------------------------------------------------------- */
.contact-section {
  width: 100%;
  background: var(--contact-bg);
  border-top: 1px solid var(--border-gold-subtle);
  border-bottom: 1px solid var(--border-gold-subtle);
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-smooth);
}

.contact-frame-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* Top Brand Row */
.contact-brand-row {
  display: flex;
  align-items: center;
  margin-bottom: 2.25rem;
}

.contact-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  text-decoration: none;
}

.contact-brand-logo {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--contact-accent);
  line-height: 1;
}

.contact-brand-divider {
  width: 1px;
  height: 1.45rem;
  background: var(--contact-box-border);
  display: inline-block;
}

.contact-brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--contact-heading);
  opacity: 0.85;
}

/* Main Split Row */
.contact-main-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 1200px) {
  .contact-main-grid {
    grid-template-columns: 330px 1fr;
    gap: 3.25rem;
  }
}

/* Left Intro Column */
.contact-intro-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-right: 0.5rem;
}

.contact-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-background-soft);
  border: 1px solid var(--border-gold);
  border-left: 3px solid var(--color-accent);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

html[data-theme="dark"] .contact-pill-badge {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

.contact-display-title {
  font-size: clamp(2.6rem, 3.8vw, 3.6rem);
  line-height: 1.08;
  margin: 0;
  color: var(--contact-heading);
  letter-spacing: -0.025em;
}

.contact-title-lead {
  display: block;
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--contact-heading);
}

.contact-title-accent {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--contact-accent);
  font-size: 1.08em;
}

.contact-accent-dash {
  width: 42px;
  height: 2px;
  background: var(--color-accent);
  margin: 1.5rem 0 1.35rem;
  border-radius: 1px;
}

.contact-intro-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--contact-body-text);
  margin: 0;
  max-width: 320px;
}

/* Right Cards Grid */
.contact-cards-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  background: var(--contact-card-bg);
  border: 1px solid var(--contact-card-border);
  border-radius: 1.25rem;
  padding: 1.85rem 1.6rem 1.6rem;
  box-shadow: var(--contact-card-shadow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: var(--contact-card-shadow-hover);
}

.contact-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.contact-card-step {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--contact-accent);
}

.step-dash {
  display: inline-block;
  margin-left: 0.35rem;
  letter-spacing: -0.1em;
  opacity: 0.6;
}

.contact-card-art {
  width: 100%;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 1.25rem;
  position: relative;
}

.contact-card-illustration {
  width: 100%;
  height: 100%;
  max-height: 116px;
  object-fit: contain;
}

.contact-card-illustration .art-sun {
  fill: var(--contact-sun);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform-origin: center;
}

.contact-card:hover .contact-card-illustration .art-sun {
  transform: scale(1.08);
}

.contact-card-illustration .art-stroke {
  stroke: var(--contact-line-art);
  fill: none;
}

.contact-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-card-heading {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--contact-heading);
  margin: 0 0 0.65rem 0;
  letter-spacing: -0.01em;
}

.contact-card-heading em {
  font-style: italic;
  font-weight: 600;
  color: var(--contact-accent);
}

.contact-card-summary {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--contact-body-text);
  margin: 0 0 1.75rem 0;
}

.contact-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--contact-accent);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.25s ease, gap 0.25s ease;
}

.contact-card-action .action-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover .contact-card-action {
  color: var(--color-accent);
  gap: 0.8rem;
}

html[data-theme="dark"] .contact-card:hover .contact-card-action {
  color: #FFFFFF;
}


/* Bottom Decorative Flourish */
.contact-decor-footer {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 3.5rem;
  padding-bottom: 0.5rem;
  color: var(--contact-flourish);
}

.contact-decor-sparkle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--contact-accent);
}

.contact-decor-line-wrap {
  flex-grow: 1;
  display: flex;
  align-items: center;
  position: relative;
  height: 24px;
  margin-left: 0.75rem;
  margin-right: 7rem;
}

.contact-decor-line-svg {
  width: 100%;
  height: 24px;
  display: block;
  color: var(--contact-flourish);
}

.contact-decor-foliage {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 140px;
  height: 110px;
  pointer-events: none;
  color: var(--contact-foliage-stroke);
  opacity: 0.85;
}

.contact-foliage-svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

  .contact-intro-col {
    max-width: 600px;
  }

  .contact-intro-desc {
    max-width: 560px;
  }

  .contact-decor-line-wrap {
    margin-right: 5rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 3.75rem 0 3.25rem;
  }

  .contact-frame-container {
    padding: 0 1.25rem;
  }

  .contact-cards-col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-card {
    padding: 1.6rem 1.4rem;
  }

  .contact-card-art {
    height: 100px;
  }

  .contact-decor-footer {
    margin-top: 2.25rem;
  }

  .contact-decor-foliage {
    width: 100px;
    height: 80px;
    right: -0.5rem;
    bottom: -0.5rem;
    opacity: 0.55;
  }
}

/* --------------------------------------------------------------------------
   11.6 DEDICATED CONTACT PAGE EXTENSIONS (Form, direct channels & FAQ)
   -------------------------------------------------------------------------- */
.contact-page-header {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  text-align: center;
  background: var(--contact-bg);
}

.contact-inquiry-section {
  width: 100%;
  background: var(--color-background);
  padding: 4.5rem 0 5.5rem;
  position: relative;
}

.contact-inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-channels-card {
  background: var(--contact-card-bg);
  border: 1px solid var(--contact-card-border);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  box-shadow: var(--contact-card-shadow);
}

.contact-channels-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--contact-heading);
  margin-bottom: 0.75rem;
}

.contact-channels-card p {
  color: var(--contact-body-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.direct-channels-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.direct-channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--contact-bg);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 0.75rem;
  transition: border-color var(--transition-fast);
}

.direct-channel-item:hover {
  border-color: var(--color-accent);
}

.channel-info-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

html[data-theme="dark"] .channel-info-col h4 {
  color: var(--color-accent);
}

.channel-info-col a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--contact-heading);
  text-decoration: none;
}

.channel-copy-btn {
  background: transparent;
  border: 1px solid var(--border-gold-subtle);
  color: var(--contact-heading);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.channel-copy-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Contact Form Card */
.contact-form-card {
  background: var(--contact-card-bg);
  border: 1px solid var(--contact-card-border);
  border-radius: 1.25rem;
  padding: 2.5rem 2.25rem;
  box-shadow: var(--contact-card-shadow);
}

.contact-form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--contact-heading);
  margin-bottom: 0.5rem;
}

.contact-form-card p {
  color: var(--contact-body-text);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--contact-heading);
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--contact-bg);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--contact-heading);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--contact-accent-soft);
}

html[data-theme="dark"] .contact-form-input:focus,
html[data-theme="dark"] .contact-form-select:focus,
html[data-theme="dark"] .contact-form-textarea:focus {
  border-color: var(--color-accent);
}

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

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-smooth);
  margin-top: 0.5rem;
}

.contact-submit-btn:hover {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--contact-accent-soft);
}

html[data-theme="dark"] .contact-submit-btn {
  background: var(--color-accent);
  color: #111A14;
}

html[data-theme="dark"] .contact-submit-btn:hover {
  background: #FFFFFF;
  color: #111A14;
}

.form-success-banner {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(167, 201, 87, 0.2);
  border: 1px solid var(--color-accent);
  border-radius: 0.65rem;
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}

html[data-theme="dark"] .form-success-banner {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .contact-inquiry-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* --------------------------------------------------------------------------
   12. FOOTER (Exact Match with Reference Photo)
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  background-color: #111A14;
  /* Dark mode background across both modes */
  border-top: 1px solid rgba(167, 201, 87, 0.22);
  padding-top: 4.5rem;
  padding-bottom: 1.5rem;
  overflow: hidden;
  color: #E7EFE5;
  position: relative;
}

html[data-theme="dark"] .site-footer,
html[data-theme="light"] .site-footer {
  background-color: #111A14;
  border-top-color: rgba(167, 201, 87, 0.22);
  color: #E7EFE5;
}

.footer-inner {
  display: flex;
  flex-direction: column;
}

/* Main 3-Column Grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-main-grid {
    grid-template-columns: 1.45fr 1fr 1.35fr;
    gap: 3.5rem;
  }
}

/* Column 1: Brand Info */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .nav-brand,
.footer-brand,
.footer-brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  text-decoration: none;
}

.site-footer .nav-brand img,
.footer-brand img,
.footer-brand-img,
.footer-brand-logo-img {
  height: 28px;
  width: auto;
  max-width: 30px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.site-footer .nav-brand:hover img,
.footer-brand:hover img,
.footer-brand-logo-link:hover img {
  transform: scale(1.06);
}

.site-footer .nav-brand-text,
.footer-brand-name,
.footer-brand .nav-brand-text {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF !important;
  transition: color 0.2s ease;
}

.site-footer .nav-brand:hover .nav-brand-text,
.footer-brand:hover .footer-brand-name,
.footer-brand:hover .nav-brand-text,
.footer-brand-logo-link:hover .footer-brand-name {
  color: var(--color-accent) !important;
}

.footer-brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #A0B2A0;
  max-width: 21rem;
  margin-bottom: 1.75rem;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 201, 87, 0.35);
  border-radius: 50%;
  color: #A7C957;
  background: rgba(167, 201, 87, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-social-icon:focus-visible {
  outline: 2px solid #A7C957;
  outline-offset: 3px;
}

.footer-social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.footer-social-icon:hover {
  color: #111A14;
  border-color: #A7C957;
  background: #A7C957;
  transform: translateY(-2px);
}

.footer-social-icon:hover svg {
  transform: scale(1.08);
}

/* Headings for Column 2 and 3 */
.footer-heading {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #A7C957;
  margin-bottom: 1.5rem;
}

/* Column 2: Vertical Pages Navigation */
.footer-vertical-links {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.footer-vertical-links a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: #E2E8DF;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.footer-vertical-links a:hover {
  color: #A7C957;
  transform: translateX(4px);
}

/* Column 3: Contacts & Emails */
.footer-col-contact {
  display: flex;
  flex-direction: column;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.35rem;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: #8C9E8C;
}

.footer-email-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-heritage-img {
  display: block;
  width: min(100%, 440px);
  height: auto;
  aspect-ratio: 1100 / 360;
  object-fit: fill;
  margin-top: 1rem;
  margin-left: -1.75rem;
}

.footer-email-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: #7fad69;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

.footer-email-link:hover {
  color: #384f01;
}

.footer-copy-btn {
  background: none;
  border: none;
  padding: 0.2rem;
  cursor: pointer;
  color: #B1C2B0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-copy-btn .material-symbols-outlined {
  font-size: 1.1rem;
}

.footer-copy-btn:hover {
  color: #A7C957;
  transform: scale(1.15);
}

.footer-careers-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-top: 0.15rem;
  width: fit-content;
}

.footer-careers-link .careers-arrow {
  transition: transform 0.25s ease;
  display: inline-block;
}

.footer-careers-link:hover {
  color: #A7C957;
}

.footer-careers-link:hover .careers-arrow {
  transform: translateX(4px);
}

/* Column 3: Visionary Heritage Quote (Seamlessly Merged with Footer Background) */
.footer-quote-card {
  margin-top: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 440px;
  position: relative;
}

.footer-quote-card:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  transform: none;
}

.footer-quote-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.footer-quote-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(167, 201, 87, 0.16), rgba(197, 160, 89, 0.12));
  border: 1px solid rgba(167, 201, 87, 0.25);
  color: #D5EDB0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 10px rgba(167, 201, 87, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.footer-quote-card:hover .footer-quote-icon {
  transform: scale(1.08) rotate(-4deg);
  border-color: rgba(167, 201, 87, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 14px rgba(167, 201, 87, 0.25);
  color: #FFFFFF;
}

.footer-quote-icon .material-symbols-outlined {
  font-size: 1.05rem;
}

.footer-quote-text {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #F2F7EF;
  letter-spacing: 0.015em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: color 0.25s ease;
}

.footer-quote-card:hover .footer-quote-text {
  color: #FFFFFF;
}

.footer-quote-author-wrap {
  display: flex;
  align-items: center;
  padding-top: 0.5rem;
  position: relative;
}

.footer-quote-author-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, rgba(167, 201, 87, 0.4) 0%, rgba(197, 160, 89, 0.25) 55%, transparent 100%);
}

.footer-quote-author {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #E2F3CD 0%, #C5A059 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: opacity 0.2s ease;
}

.footer-quote-author::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1.5px;
  background: linear-gradient(90deg, #A7C957, #C5A059);
  border-radius: 2px;
  -webkit-text-fill-color: initial;
}

.footer-quote-card:hover .footer-quote-author {
  opacity: 0.95;
}

/* Right-side Cameo Portrait of Swami Vivekananda */
.footer-quote-portrait-wrap {
  flex: 0 0 94px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #A7C957 0%, #C5A059 60%, rgba(167, 201, 87, 0.3) 100%);
  box-shadow: 0 0 18px rgba(197, 160, 89, 0.25), 0 8px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.footer-quote-card:hover .footer-quote-portrait-wrap {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 0 26px rgba(197, 160, 89, 0.4), 0 10px 24px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, #D5EDB0 0%, #E76F51 70%, #C5A059 100%);
}

.footer-quote-portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
  background-color: #0d140f;
}

@media (max-width: 480px) {
  .footer-quote-card {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.85rem;
    padding-right: 0.85rem;
  }

  .footer-quote-portrait-wrap {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
  }
}


/* --------------------------------------------------------------------------
   FOOTER BOTTOM BAR & GIANT BRAND WORDMARK
   -------------------------------------------------------------------------- */
/* Bottom Bar: Copyright & Made in India */
.footer-meta-bar {
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #B1C2B0;
}

@media (min-width: 640px) {
  .footer-meta-bar {
    flex-direction: row;
    align-items: center;
  }
}

/* Giant Gradient Brand Wordmark at the Bottom */
.footer-wordmark {
  width: 100%;
  max-width: 100%;
  margin-top: clamp(1rem, 2vw, 1.85rem);
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 1.25rem clamp(0.75rem, 1.75vw, 1.5rem);
  overflow: visible;
  font-family: 'Inter', var(--font-sans);
  font-size: clamp(2rem, 7.4vw, 7.8rem);
  font-weight: 700;
  font-variation-settings: 'wght' 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(96deg, #A7C957 0%, #D5EDB0 30%, #FFFFFF 48%, #A8D568 70%, #6F9E45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
  opacity: 1;
  box-sizing: border-box;
}

html[data-theme="dark"] .footer-wordmark,
html[data-theme="light"] .footer-wordmark {
  background: linear-gradient(96deg, #A7C957 0%, #D5EDB0 30%, #FFFFFF 48%, #A8D568 70%, #6F9E45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
  opacity: 1;
}

/* ==========================================================================
   MINIMAL CINEMATIC PAGE TRANSITION LOADER SYSTEM
   Towards My Bharat (TMB) Web Platform
   ========================================================================== */

/* 1. Native View Transitions */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 180ms cubic-bezier(0.16, 1, 0.3, 1) both tmbViewFadeOut;
}

::view-transition-new(root) {
  animation: 240ms cubic-bezier(0.16, 1, 0.3, 1) both tmbViewFadeIn;
}

@keyframes tmbViewFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes tmbViewFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 2. Fullscreen Minimal Cinematic Page Loader */
.tmb-page-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #06090e;
  /* Dark theme deep obsidian canvas */
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

/* Light Mode Canvas */
html[data-theme="light"] .tmb-page-loader {
  background-color: #F6FAF4;
  /* Soft warm ivory light theme canvas */
}

.tmb-page-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Centered Content Container */
.tmb-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  text-align: center;
  transform: translateY(0);
}

/* Centered Tracked-out Brand Title */
.tmb-loader-title {
  font-family: var(--font-sans, 'Inter', 'Manrope', -apple-system, sans-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  /* Offsets trailing letter spacing to keep text dead-center */
  text-transform: uppercase;
  color: #C5A059;
  /* Brand Luxury Gold (matches user screenshot) */
  line-height: 1.2;
  transition: color 0.3s ease;
}

html[data-theme="light"] .tmb-loader-title {
  color: #2E5D3A;
  /* Brand Forest Green in light theme */
}

/* Minimal Horizontal Loading Bar Track */
.tmb-loader-line-track {
  position: relative;
  width: clamp(140px, 18vw, 180px);
  height: 2.5px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  overflow: hidden;
}

html[data-theme="light"] .tmb-loader-line-track {
  background: rgba(46, 93, 58, 0.16);
}

/* Animated Active Line Fill */
.tmb-loader-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #C5A059;
  /* Brand Luxury Gold */
  border-radius: 2px;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

html[data-theme="light"] .tmb-loader-line-fill {
  background: #2E5D3A;
  /* Brand Forest Green in light theme */
  box-shadow: 0 0 8px rgba(46, 93, 58, 0.35);
}

/* Page Exit Physics */
.tmb-page-leaving {
  opacity: 0.92;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}