:root {
  /* Modern Clean SaaS Palette (Doodi Style) */
  --bg-dark: #f8fafc;
  /* Main background - soft off-white */
  --bg-surface: #ffffff;
  /* Card backgrounds - pure white */
  --bg-glass: rgba(255, 255, 255, 0.85);
  /* Slightly translucent white */
  --border-glass: rgba(0, 0, 0, 0.06);
  /* Very subtle gray border */
  --border-divider: #e2e8f0;

  /* Official Brand Colors */
  --primary: #06672f;
  /* Forest Green */
  --primary-rgb: 6, 103, 47;
  --primary-light: rgba(6, 103, 47, 0.08);
  --primary-dark: #044d23;
  --primary-glow: rgba(6, 103, 47, 0.15);

  --accent: #fbb414;
  /* Amber */
  --accent-rgb: 251, 180, 20;
  --accent-light: rgba(251, 180, 20, 0.12);
  --accent-dark: #d99a00;
  --accent-glow: rgba(251, 180, 20, 0.15);

  --text-primary: #0f172a;
  /* Near black for high contrast */
  --text-secondary: #334155;
  /* Dark gray for lede/subtext */
  --text-muted: #64748b;
  /* Medium gray for meta/small text */

  /* Premium Shadows */
  --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  /* Soft, large drop shadow */
  --shadow-glass: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  /* Subtle float shadow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --blur: blur(16px);
  --container: min(1200px, 92vw);

  --motion-fast: 200ms;
  --motion-base: 400ms;
  --motion-slow: 700ms;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base reset and layout primitives */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 10% 10%, var(--primary-glow) 0%, transparent 60%),
    radial-gradient(circle at 90% 10%, var(--accent-glow) 0%, transparent 60%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body.subpage-bg {
  background-color: #f8fafc;
}

.subpage-hero {
  position: relative;
  background-color: var(--bg-surface);
  background-image:
    radial-gradient(rgba(6, 103, 47, 0.05) 1.5px, transparent 1.5px),
    radial-gradient(circle at 10% 20%, var(--primary-glow) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, var(--accent-glow) 0%, transparent 60%);
  background-size: 32px 32px, 100% 100%, 100% 100%;
  border-bottom: 1px solid var(--border-divider);
}

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

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #1b2800;
  z-index: 2000;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus-visible {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 1300;
  background: rgba(0, 0, 0, 0.15);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  transition: width var(--motion-fast) linear;
}

.page-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

html.js .page-loader {
  display: flex;
}

.loader-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.8s var(--easing);
}

.loader-logo-wrapper {
  position: relative;
  margin-bottom: 2rem;
  animation: loaderPulse 2s infinite ease-in-out;
}

.loader-logo {
  position: relative;
  z-index: 2;
  width: 120px;
  height: auto;
}

.loader-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: 1;
  animation: glowExpand 3s infinite alternate ease-in-out;
}

.loader-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 2px;
}

.loader-text .char {
  display: inline-block;
  animation: charFloat 2s infinite ease-in-out;
  animation-delay: calc(var(--char-index) * 0.1s);
}

/* Character delays */
.loader-text .char:nth-child(1) { --char-index: 1; }
.loader-text .char:nth-child(2) { --char-index: 2; }
.loader-text .char:nth-child(3) { --char-index: 3; }
.loader-text .char:nth-child(4) { --char-index: 4; }
.loader-text .char:nth-child(5) { --char-index: 5; }
.loader-text .char:nth-child(6) { --char-index: 6; }
.loader-text .char:nth-child(7) { --char-index: 7; }
.loader-text .char:nth-child(8) { --char-index: 8; }
.loader-text .char:nth-child(9) { --char-index: 9; }
.loader-text .char:nth-child(10) { --char-index: 10; }
.loader-text .char:nth-child(11) { --char-index: 11; }
.loader-text .char:nth-child(12) { --char-index: 12; }
.loader-text .char:nth-child(13) { --char-index: 13; }
.loader-text .char:nth-child(14) { --char-index: 14; }
.loader-text .char:nth-child(15) { --char-index: 15; }
.loader-text .char:nth-child(16) { --char-index: 16; }
.loader-text .char:nth-child(17) { --char-index: 17; }
.loader-text .char:nth-child(18) { --char-index: 18; }
.loader-text .char:nth-child(19) { --char-index: 19; }
.loader-text .char:nth-child(20) { --char-index: 20; }
.loader-text .char:nth-child(21) { --char-index: 21; }

.loader-progress {
  width: 240px;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.loader-progress-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 10px var(--primary-glow);
  transition: width 0.4s ease;
}

.loader-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

.loader-layer.layer-1 {
  background: var(--bg-surface);
  z-index: 2;
}

.loader-layer.layer-2 {
  background: var(--primary);
  z-index: 1;
  transform: translateY(0);
}

/* Exit Animations */
.page-loader.is-closing .loader-content {
  opacity: 0;
  transform: translateY(-20px);
  filter: blur(10px);
}

.page-loader.is-closing .layer-1 {
  transform: translateY(-100%);
  transition-delay: 0.2s;
}

.page-loader.is-closing .layer-2 {
  transform: translateY(100%);
  transition-delay: 0s;
}

/* Keyframes */
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glowExpand {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes charFloat {
  0%, 100% { transform: translateY(0); color: var(--text-primary); }
  50% { transform: translateY(-5px); color: var(--primary); }
}

@keyframes loadBar {
  from {
    transform: translateX(-130%);
  }

  to {
    transform: translateX(280%);
  }
}

/* Header and navigation */
.site-header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1400px;
  z-index: 1200;
  pointer-events: none;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  padding: 0.75rem 1.8rem;
  border-radius: 4rem;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-premium);
  pointer-events: auto;
}



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

.brand img {
  filter: none;
}

.brand span {
  display: none;
  /* Removed text logo as per request */
}


.menu-toggle {
  display: none;
  /* Hidden on desktop */
  margin-left: auto;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.27rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  padding: 0;
}

@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  .header-actions {
    display: none !important;
    /* Hide right actions on small mobile if needed, or keep them in the mobile nav */
  }
}


.menu-toggle span {
  width: 1.2rem;
  height: 2px;
  background: var(--text-primary);
  margin-inline: auto;
  transition: transform var(--motion-base) var(--easing);
}

.primary-nav {
  position: static;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.3rem;
  border-radius: 3rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  opacity: 1;
  pointer-events: auto;
  box-shadow: none;
  transform: none;
}

@media (max-width: 991px) {
  .primary-nav {
    position: fixed;
    inset: 5rem 1rem auto;
    background: var(--bg-surface);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    transition: all 0.3s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
}

.primary-nav ul {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}


.primary-nav a {
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-secondary);
  border-radius: 2rem;
  text-decoration: none;
  /* Removed underlines */
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.primary-nav a:hover,
.primary-nav a.is-active,
.primary-nav .is-active-parent>a,
.has-submenu:hover>a {
  background: linear-gradient(135deg, #f0fff4 0%, #fffbea 100%);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(6, 103, 47, 0.05);
  transform: translateY(-1px);
  border: #06672f38 1px solid;
}

/* Submenu / Dropdown Styles */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-divider);
  box-shadow: var(--shadow-premium);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1000;
}

.has-submenu:hover>.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  width: 100%;
}

.submenu a {
  display: block;
  padding: 0.6rem 1rem;
  width: 100%;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.submenu a:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: none;
  box-shadow: none;
  border: none;
}

.submenu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 30px;
  border-width: 0 8px 10px 8px;
  border-style: solid;
  border-color: transparent transparent var(--bg-surface) transparent;
}

@media (max-width: 991px) {
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1.5rem;
    display: none;
    /* Controlled by JS or simplified for mobile */
  }

  .has-submenu.is-open>.submenu {
    display: flex;
  }
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link-sign-in {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link-sign-in:hover {
  color: var(--primary);
}


.button {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 0.8rem 1.8rem;
  border-radius: 3rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--primary-dark);
  box-shadow: 0 4px 14px rgba(6, 103, 47, 0.25);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.button-cta {
  padding: 1.25rem 2.8rem;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(6, 103, 47, 0.2), 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4rem;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(6, 103, 47, 0.35);
}

.button-cta:hover,
.button-cta:focus-visible {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(251, 180, 20, 0.4) !important;
}

.button-alt {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border-divider);
  box-shadow: var(--shadow-sm);
}

.button-alt:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
}



.button-ghost {
  --btn-bg: var(--bg-surface);
  --btn-fg: var(--text-primary);
  border: 1px solid var(--border-glass);
  background: var(--btn-bg);
  color: var(--btn-fg);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
}

.button-ghost:hover {
  background: var(--bg-dark);
  border-color: #d1d5db;
}

main section {
  padding: clamp(3.4rem, 7vw, 5.6rem) 0;
}

/* Hero area and ambient visual layers */
.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}


.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  transform: translateY(calc(var(--parallax-shift, 0px) * -1));
  transition: transform var(--motion-base) linear;
}

.glow-a {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  width: 60%;
  height: 60%;
}

.glow-b {
  bottom: -15%;
  right: -5%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  width: 50%;
  height: 50%;
}

/* Hero Slider Refinements */
.hero-visual-card {
  background: #fff;
  border-radius: 2.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-glass);
}

.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 1.5rem;
  overflow: hidden;
  margin-block: 2rem;
  background: #f8fafc;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.slider-track {
  display: flex;
  width: 300%;
  /* For 3 images */
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.slider-slide {
  width: 33.333%;
  height: 100%;
  flex-shrink: 0;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.slider-slide.is-active img {
  transform: scale(1.05);
}

/* Counter Pulse Effect */
@keyframes counter-pulse-dual {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0px transparent;
  }

  25% {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
    color: #fbbf24;
  }

  /* Gold */
  50% {
    transform: scale(1);
    text-shadow: 0 0 0px transparent;
  }

  75% {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
    color: #ef4444;
  }

  /* Red */
  100% {
    transform: scale(1);
    text-shadow: 0 0 0px transparent;
  }
}

.pulse-dual {
  animation: counter-pulse-dual 3s infinite ease-in-out;
}

/* Mini Slider for Dashboard Mockup */
.dashboard-mini-slider {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-divider);
  background: #06672f;
}

.dashboard-mini-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-mini-slider .slide.active {
  opacity: 1;
  transform: translateX(0);
}

.dashboard-mini-slider .slide.prev {
  transform: translateX(-100%);
}

.dashboard-mini-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Counter Pulse Animation */
@keyframes counterPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

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

.impact-strip li strong.pulse-once {
  animation: counterPulse 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--primary);
}

/* Multicolored Dashboard Metric Cards */
.metric-card-amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fff7ed 100%) !important;
  border: 1px solid #fde68a !important;
}

.metric-card-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #ecfdf5 100%) !important;
  border: 1px solid #bbf7d0 !important;
}

/* News Section Enhancements */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-divider);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.news-card-body {
  padding: 2rem;
}

.news-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, #f0fff4, #fffbea);
  color: var(--primary);
  margin-bottom: 1rem;
}

.news-card-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.news-card-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.news-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3rem;
  padding: 0.9rem 2rem;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 3rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more-cta:hover {
  gap: 0.6rem !important;
}

.read-more-cta i {
  transition: transform 0.3s ease;
}

.read-more-cta:hover i {
  transform: translateX(3px);
}




@keyframes float {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(5%, 10%) scale(1.1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--motion-slow) var(--easing), transform var(--motion-slow) var(--easing);
}

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

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(227, 241, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 241, 184, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 73%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.73rem;
}

.hero h1,
h2,
h3,
.footer-title {
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  line-height: 1.1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.55rem);
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent-400);
}

.lede {
  color: var(--text-200);
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.impact-strip {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.impact-strip li {
  border: 1px solid var(--border-divider);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 0.7rem 0.65rem;
  box-shadow: var(--shadow-sm);
}

.impact-strip strong {
  display: block;
  color: var(--primary);
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
}

.impact-strip span {
  font-size: 0.78rem;
  color: var(--text-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 1rem;
  perspective: 1200px;
}

.portrait-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: var(--blur);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-premium);
  transition: all var(--motion-base) var(--easing);
  transform-style: preserve-3d;
}

.portrait-card:first-child {
  grid-column: 2 / 11;
  grid-row: 1 / 10;
  z-index: 1;
}

.portrait-card-alt {
  grid-column: 1 / 6;
  grid-row: 7 / 13;
  z-index: 2;
  transform: translateZ(40px);
}

.portrait-card-mini {
  grid-column: 9 / 13;
  grid-row: 8 / 12;
  z-index: 3;
  transform: translateZ(80px);
  border-radius: 50%;
}

.section-head {
  max-width: 66ch;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.75rem);
}

.section-head p {
  color: var(--text-200);
}

.manifesto-grid {
  display: grid;
  gap: 0.9rem;
}

.manifesto-card {
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur);
  background: var(--bg-surface);
  border: 1px solid var(--border-divider);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-glass);
  transition: all var(--motion-base) var(--easing);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.manifesto-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.5rem;
}

.card-mission {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.card-mission .card-icon {
  color: #16a34a;
}

.card-vision {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.card-vision .card-icon {
  color: #d97706;
}

.card-mandate {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.card-mandate .card-icon {
  color: #2563eb;
}

.manifesto-card h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.7rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.manifesto-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

.manifesto-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.manifesto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  opacity: 0.8;
}

.card-mission::before {
  background: #16a34a;
}

.card-vision::before {
  background: #d97706;
}

.card-mandate::before {
  background: #2563eb;
}

/* About & Sidebar */
.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }
}

.cta-sidebar {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.cta-sidebar h3 {
  color: var(--primary);
  margin-top: 0;
}

/* Progress Bars */
.progress-container {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.progress-item {
  display: grid;
  gap: 0.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-bar {
  height: 8px;
  background: var(--border-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width 1.5s var(--easing);
}

.reveal.is-visible .progress-bar span {
  width: var(--target-width);
  /* Handled via JS or inline style */
}

/* Events */
.events-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.event-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

.event-date {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--primary);
  color: #000;
  border-radius: var(--radius-sm);
  font-weight: 800;
  margin-bottom: 1rem;
}

.countdown {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.time-part span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.time-part small {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--primary) !important;
  padding-left: 4px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  margin: 2rem 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-quote {
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  color: var(--text-secondary);
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
}

/* Team Section */
.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-glass);
  text-align: center;
  transition: transform var(--motion-base) var(--easing);
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  margin: 0;
  color: var(--text-primary);
}

.team-info p {
  margin: 0.5rem 0 0;
  color: var(--primary);
  font-weight: 600;
}

/* Bento Grid System */
.grid-bento {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

  .grid-bento>*:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .grid-bento>*:nth-child(4) {
    grid-column: span 2;
  }
}

.initiative-grid,
.news-grid {
  display: grid;
  gap: 1.5rem;
}

.initiative-card,
.news-card {
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  overflow: clip;
  box-shadow: var(--shadow-glass);
  transition: all var(--motion-base) var(--easing);
}

.initiative-card {
  padding: 1.15rem;
}

.initiative-card:hover,
.news-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-premium);
}

.initiative-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  color: var(--primary);
  background: var(--primary-light);
}

.initiative-card h3 {
  margin: 0;
}

.initiative-card p {
  color: var(--text-200);
}

.initiative-card strong {
  font-size: 0.9rem;
  color: var(--accent);
}

.news-card.skeleton {
  min-height: 315px;
  position: relative;
  overflow: hidden;
  border-color: rgba(222, 235, 164, 0.1);
}

.news-card.skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.2) 35%, rgba(255, 255, 255, 0.06) 45%);
  transform: translateX(-130%);
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(120%);
  }
}

.news-media {
  position: relative;
  min-height: 170px;
  background: rgba(12, 53, 33, 0.8);
}

.news-media img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.chip {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #273201;
  background: var(--accent);
  padding: 0.28rem 0.62rem;
}

.news-body {
  padding: 1rem;
}

.news-meta {
  margin: 0;
  color: var(--text-300);
  font-size: 0.8rem;
}

.news-body h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.1rem;
}

.news-body p {
  margin-top: 0;
  color: var(--text-200);
}

.news-body a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.gallery-strip img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 242, 183, 0.2);
  background: rgba(8, 34, 23, 0.9);
  min-height: 170px;
  object-fit: cover;
  scroll-snap-align: center;
  transition: transform var(--motion-base) var(--easing), border-color var(--motion-fast) var(--easing);
}

.gallery-strip img:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(229, 242, 183, 0.38);
}

.register-shell {
  border: 1px solid rgba(228, 241, 181, 0.2);
  border-radius: var(--radius-xl);
  padding: clamp(1.2rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 95% -10%, rgba(201, 222, 75, 0.25), transparent 35%),
    linear-gradient(140deg, rgba(14, 56, 35, 0.86), rgba(7, 33, 22, 0.94));
}

.register-shell h2 {
  margin-top: 0;
}

.register-shell p {
  color: var(--text-200);
}

.register-form {
  display: grid;
  gap: 0.8rem;
}

.register-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.register-form input,
.register-form select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(219, 237, 144, 0.32);
  background: rgba(4, 23, 14, 0.7);
  color: var(--text-100);
  min-height: 2.8rem;
  padding: 0.65rem 0.8rem;
  transition: border-color var(--motion-fast) var(--easing), box-shadow var(--motion-fast) var(--easing);
}

.register-form input:focus-visible,
.register-form select:focus-visible,
.button:focus-visible,
.menu-toggle:focus-visible,
.back-top:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 239, 140, 0.24);
}

.form-feedback {
  margin: 0.3rem 0 0;
  color: var(--accent);
  font-weight: 600;
}

/* Footer and utility controls */
.site-footer {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-dark);
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer-title {
  margin: 0;
  font-size: 1.3rem;
}

.site-footer h3 {
  margin: 0 0 0.5rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--text-200);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.footer-meta {
  width: var(--container);
  margin: 1.2rem auto 0;
  font-size: 0.82rem;
  color: var(--text-300);
  border-top: 1px dashed rgba(222, 237, 156, 0.21);
  padding-top: 1rem;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: 1px solid rgba(226, 241, 184, 0.28);
  color: var(--accent);
  background: rgba(3, 22, 14, 0.86);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--motion-base) var(--easing),
    transform var(--motion-base) var(--easing),
    visibility var(--motion-base) var(--easing);
  z-index: 1100;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.noscript-note {
  margin: 0;
  padding: 0.9rem;
  text-align: center;
  color: #221f00;
  background: #f0df6d;
}

/* Scroll reveal animation utility */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-enhanced .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--motion-slow) var(--easing), transform var(--motion-slow) var(--easing);
}

html.js-enhanced .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .button-sm {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 1.5rem;
  }

  .manifesto-grid,
  .initiative-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zonal-grid {
    grid-template-columns: 1.25fr 0.95fr;
  }

  .register-form {
    display: grid !important;
  }

  .register-form label:last-of-type {
    grid-column: 1;
  }

  .register-form button {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.7fr;
  }
}

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

  .header-shell {
    gap: 1.4rem;
  }

  .primary-nav {
    margin-left: auto;
    position: static;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .primary-nav ul {
    display: flex;
    align-items: center;
  }

  .primary-nav a {
    padding: 0.45rem 0.72rem;
  }

  .manifesto-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .initiative-grid,
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-strip {
    grid-auto-columns: minmax(240px, 1fr);
  }
}

@media (min-width: 1440px) {
  .hero-visual {
    min-height: 460px;
  }

  .portrait-card:first-child {
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* New UI Enhancements Styling */
.registration-glass input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.registration-glass input:focus,
.registration-glass select:focus {
  border-color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0 0 4px rgba(251, 180, 20, 0.2) !important;
}

.roadmap-side {
  position: sticky;
  top: 120px;
}

@media (max-width: 1024px) {
  .initiatives .container {
    grid-template-columns: 1fr !important;
  }

  .roadmap-side {
    position: static;
    margin-top: 4rem;
  }
}

@media (max-width: 768px) {
  .manifesto-wide {
    grid-template-columns: 1fr !important;
  }

  .manifesto-wide div:nth-child(2) {
    height: 350px;
  }

  .registration-glass {
    padding: 3rem 2rem !important;
    border-radius: 2rem !important;
  }
}

/* Masonry Grid */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 600px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 900px) {
  .masonry-grid {
    column-count: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transform: translateZ(0);
  /* Fix for Safari rendering */
}