/* ═══════════════════════════════════════════════
   PERPETUAL PICTURES — Cartoon Movie Theme
   Palette: Burnt Orange + Olive Green + Warm Cream
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Backgrounds */
  --bg-base:        #FFFDF6;
  --bg-surface:     #F6F1E7;
  --bg-elevated:    #EDE7D8;
  --bg-card:        #FFFFFF;

  /* Brand Colors */
  --orange:         #C84B0F;
  --orange-light:   #E8622A;
  --orange-pale:    #FFF0E8;
  --olive:          #5C7A2E;
  --olive-light:    #7A9E3E;
  --olive-pale:     #EEF4E4;
  --cream:          #FFFDF6;
  --warm-brown:     #3D2A0F;

  /* Gradients */
  --grad-hero:      radial-gradient(ellipse 90% 70% at 10% 0%, rgba(200,75,15,0.12) 0%, transparent 60%),
                    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(92,122,46,0.1) 0%, transparent 60%),
                    #FFFDF6;
  --grad-orange:    linear-gradient(135deg, #C84B0F, #E8622A);
  --grad-olive:     linear-gradient(135deg, #5C7A2E, #7A9E3E);
  --grad-warm:      linear-gradient(135deg, #C84B0F, #D4780A);
  --grad-card-border-orange: linear-gradient(135deg, rgba(200,75,15,0.5), rgba(232,98,42,0.3));
  --grad-card-border-olive:  linear-gradient(135deg, rgba(92,122,46,0.5), rgba(122,158,62,0.3));

  /* Typography */
  --font-display:   'Baloo 2', 'Comic Sans MS', cursive;
  --font-body:      'Nunito', system-ui, sans-serif;

  /* Text */
  --text-primary:   #2A1A08;
  --text-secondary: #5C4020;
  --text-muted:     #9A7A50;

  /* Borders */
  --border-subtle:  rgba(200,75,15,0.15);
  --border-glow:    rgba(200,75,15,0.4);

  /* Sizing */
  --max-width:      1200px;
  --nav-height:     72px;
  --radius-card:    20px;
  --radius-pill:    100px;

  /* Transitions */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle warm paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Typography Scale ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
}
.body-lg  { font-size: 1.1rem;  line-height: 1.75; color: var(--text-secondary); font-weight: 400; }
.body-md  { font-size: 0.975rem; line-height: 1.7;  color: var(--text-secondary); }
.body-sm  { font-size: 0.85rem;  line-height: 1.6;  color: var(--text-muted); }

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .eyebrow { margin-bottom: 0.875rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 580px; margin: 0 auto; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(255,253,246,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 0 rgba(200,75,15,0.1), 0 4px 24px rgba(200,75,15,0.06);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo img {
  height: 36px;
  width: auto;
  display: none;
}
.nav-logo-text { color: var(--orange); }
.nav-logo-text span { color: var(--olive); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: var(--orange); background: var(--orange-pale); }
.nav-link.active { color: var(--orange); background: var(--orange-pale); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--orange);
  border-radius: 3px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,253,246,0.97);
  backdrop-filter: blur(20px);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-mobile.open { opacity: 1; pointer-events: all; }
.nav-mobile .nav-link { font-size: 1.5rem; padding: 0.75rem 2.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s, background 0.25s;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(200,75,15,0.3);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(200,75,15,0.45); }

.btn-olive {
  background: var(--grad-olive);
  color: #fff;
  box-shadow: 0 4px 20px rgba(92,122,46,0.25);
}
.btn-olive:hover { box-shadow: 0 8px 30px rgba(92,122,46,0.4); }

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid rgba(200,75,15,0.35);
}
.btn-outline:hover { border-color: var(--orange); background: var(--orange-pale); }

.btn-outline-olive {
  background: transparent;
  color: var(--olive);
  border: 2px solid rgba(92,122,46,0.35);
}
.btn-outline-olive:hover { border-color: var(--olive); background: var(--olive-pale); }

.btn-outline-white {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.7); }

.btn-ghost {
  background: rgba(200,75,15,0.07);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
}
.btn-ghost:hover { background: var(--orange-pale); color: var(--orange); }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1.5px solid rgba(200,75,15,0.12);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(200,75,15,0.12);
  border-color: rgba(200,75,15,0.3);
}

/* ── Mouse light source ── */
.glow-section {
  position: relative;
  overflow: hidden;
}
.glow-section::after {
  content: '';
  pointer-events: none;
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(200, 75, 15, 0.35) 0%,
    rgba(200, 75, 15, 0.18) 30%,
    rgba(200, 75, 15, 0.06) 55%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  left: var(--mouse-x, -9999px);
  top: var(--mouse-y, -9999px);
  transition: left 0.05s linear, top 0.05s linear;
  z-index: 0;
}
.glow-section > .container {
  position: relative;
  z-index: 1;
}

/* ── Glowing card border effect ── */
.card-glow-wrap {
  position: relative;
}
.glow-container {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  --active: 0;
  --start: 0;
  --spread: 70;
  --border-width: 2.5px;
}
.glow-inner {
  border-radius: inherit;
}
.glow-inner::after {
  content: '';
  border-radius: inherit;
  position: absolute;
  inset: calc(-1 * var(--border-width));
  border: var(--border-width) solid transparent;
  background:
    radial-gradient(circle, #E8622A 15%, #E8622A00 40%),
    radial-gradient(circle at 40% 40%, #C84B0F 10%, #C84B0F00 35%),
    radial-gradient(circle at 60% 60%, #7A9E3E 15%, #7A9E3E00 40%),
    radial-gradient(circle at 40% 60%, #D4780A 15%, #D4780A00 40%),
    repeating-conic-gradient(
      from 236.84deg at 50% 50%,
      #E8622A 0%,
      #C84B0F calc(25% / 5),
      #7A9E3E calc(50% / 5),
      #D4780A calc(75% / 5),
      #E8622A calc(100% / 5)
    );
  background-attachment: fixed;
  opacity: calc(var(--active) * 1.0);
  transition: opacity 400ms;
  filter: brightness(2.0) saturate(1.5) blur(0.4px);
  -webkit-mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in;
  -webkit-mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start) - var(--spread)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--spread) * 2deg)
    );
  mask-clip: padding-box, border-box;
  mask-composite: intersect;
  mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start) - var(--spread)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--spread) * 2deg)
    );
}

/* ── Scroll Video Hero ── */

/* ── Scroll-scrubbed video hero (sentinel-graph pattern) ── */
.scroll-section {
  position: relative;
  height: 600vh;
}

.sticky-hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-base);
  transition: opacity 0.3s ease;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.bg-image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ── Hero intro overlay (visible on load, fades as scroll begins) ── */
.hero-intro {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--bg-base);
}
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-intro-sub {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(30,20,10,0.4);
  white-space: nowrap;
  pointer-events: none;
}

/* ── Hero text overlay (behind video, revealed on fade) ── */
.hero-ui {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-base);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-ui .eyebrow {
  margin-bottom: 1.1rem;
}
.hero-ui h1 {
  margin-bottom: 1.25rem;
}
.hero-ui .body-lg {
  margin-bottom: 2.25rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ui .hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-hint-arrow {
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%       { transform: translateY(7px); opacity: 1; }
}

/* Page hero (non-homepage inner pages) */
.page-hero {
  padding: calc(var(--nav-height) + 5rem) 0 6rem;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C200,60 400,0 600,30 C800,60 1000,0 1200,30 L1200,60 L0,60 Z' fill='%23FFFDF6'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.page-hero-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.page-hero h1 { margin-bottom: 1.25rem; }

/* Orbs used on inner page heroes */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 9s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb-1 { width: 500px; height: 500px; background: rgba(200,75,15,0.12); top: -150px; right: -80px; animation-delay: 0s; }
.hero-orb-2 { width: 350px; height: 350px; background: rgba(92,122,46,0.09); bottom: -80px; left: -60px; animation-delay: -4s; }

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(25px, -25px) scale(1.04); }
  66%       { transform: translate(-15px, 18px) scale(0.97); }
}

/* Page hero */
.page-hero {
  padding: calc(var(--nav-height) + 5rem) 0 6rem;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C200,60 400,0 600,30 C800,60 1000,0 1200,30 L1200,60 L0,60 Z' fill='%23FFFDF6'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.page-hero-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.page-hero h1 { margin-bottom: 1.25rem; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--bg-surface);
  border-top: 2px solid rgba(200,75,15,0.1);
  border-bottom: 2px solid rgba(200,75,15,0.1);
  padding: 2.25rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* ── Problem Cards ── */
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.problem-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.875rem;
  color: var(--orange);
  opacity: 0.18;
}
.problem-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.625rem; color: var(--text-primary); }

/* ── Ecosystem Cards ── */
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.eco-card { text-align: center; }
.eco-layer-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  background: var(--olive-pale);
  border: 1.5px solid rgba(92,122,46,0.25);
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.eco-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 0.4rem; color: var(--text-primary); }
.eco-card .eco-sub { font-size: 0.85rem; color: var(--orange); font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.02em; }
.eco-card ul { text-align: left; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.eco-card ul li { font-size: 0.875rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.eco-card ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); flex-shrink: 0; }

/* ── Partners Strip ── */
.partners-strip {
  border-top: 2px dashed rgba(200,75,15,0.15);
  border-bottom: 2px dashed rgba(200,75,15,0.15);
  padding: 3rem 0;
  background: var(--bg-surface);
}
.partners-label { text-align: center; margin-bottom: 1.75rem; }
.partners-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.875rem; }
.partner-pill {
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1.5px solid rgba(200,75,15,0.2);
  color: var(--text-secondary);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.partner-pill:hover { color: var(--orange); border-color: var(--orange); background: var(--orange-pale); }

/* ── CTA Block ── */
.cta-block {
  text-align: center;
  background: var(--orange-pale);
  border: 2px solid rgba(200,75,15,0.2);
  border-radius: 28px;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 50%; height: 3px;
  background: var(--grad-orange);
  border-radius: 0 0 4px 4px;
}
.cta-block h2 { margin-bottom: 1rem; }
.cta-block p { margin-bottom: 2rem; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--orange), var(--olive), rgba(92,122,46,0));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 2.75rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem; top: 0.3rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(200,75,15,0.2);
}
.timeline-year { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.375rem; }
.timeline-item h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }

/* ── Quote Block ── */
.quote-block {
  border-left: 4px solid var(--orange);
  padding: 1.5rem 2rem;
  background: var(--orange-pale);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin: 2rem 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Grid Layouts ── */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.four-col  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.six-col   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ── Layer Cards (Ecosystem) ── */
.layer-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(200,75,15,0.14);
  border-radius: 22px;
  padding: 2.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 2.5rem;
  align-items: start;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
  margin-bottom: 1.5rem;
  position: relative;
}
.layer-card:hover {
  border-color: rgba(200,75,15,0.35);
  box-shadow: 0 20px 56px rgba(200,75,15,0.1);
  transform: translateX(5px);
}
.layer-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
  opacity: 0.18;
}
.layer-content h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; margin-bottom: 0.3rem; color: var(--text-primary); }
.layer-content .layer-sub { color: var(--olive); font-size: 0.9rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: 0.04em; }
.layer-content ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
.layer-content ul li { font-size: 0.875rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.layer-content ul li::before { content: '→'; color: var(--orange); font-size: 0.85rem; }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 1.375rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--olive), rgba(92,122,46,0));
}
.step { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1.5rem; align-items: start; padding: 1.5rem 0; position: relative; }
.step-num {
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-pale);
  border: 2px solid rgba(200,75,15,0.25);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--orange);
  flex-shrink: 0;
  z-index: 1;
}
.step-content h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; padding-top: 0.5rem; color: var(--text-primary); }

/* ── Founders ── */
.founder-card { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; align-items: start; }
.founder-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--grad-orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.founder-info h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text-primary); }
.founder-info .founder-role { font-size: 0.78rem; color: var(--olive); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 0.75rem; display: block; }

/* ── Values ── */
.value-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.value-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }

/* ── Recognition ── */
.award-card {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, var(--orange-pale), #FFF8E8);
  border: 2px solid rgba(200,75,15,0.2);
}
.award-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.award-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--orange); }

.partner-card { text-align: center; }
.partner-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text-primary); }
.partner-type { font-size: 0.72rem; color: var(--olive); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; display: block; }

/* ── Roadmap ── */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.roadmap-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(200,75,15,0.14);
  border-radius: var(--radius-card);
  padding: 2rem;
  position: relative;
}
.roadmap-phase { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.5rem; }
.roadmap-card.present .roadmap-phase { color: var(--olive); }
.roadmap-card.near    .roadmap-phase { color: var(--orange); }
.roadmap-card.far     .roadmap-phase { color: #D4780A; }
.roadmap-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.roadmap-card ul { display: flex; flex-direction: column; gap: 0.5rem; }
.roadmap-card ul li { font-size: 0.875rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 0.5rem; }
.roadmap-card ul li::before { content: '·'; color: var(--orange); font-size: 1.2rem; line-height: 1.2; flex-shrink: 0; }

/* ── Impact ── */
.impact-item {
  padding: 1.25rem;
  text-align: center;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1.5px solid rgba(200,75,15,0.12);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  font-family: var(--font-display);
}
.impact-item:hover { background: var(--orange-pale); border-color: var(--orange); color: var(--orange); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }

.contact-form {
  background: var(--bg-card);
  border: 1.5px solid rgba(200,75,15,0.15);
  border-radius: 22px;
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.825rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid rgba(200,75,15,0.18);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(200,75,15,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-success { display: none; text-align: center; padding: 2rem; color: var(--olive); font-weight: 700; }

.office-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text-primary); }
.office-type { font-size: 0.72rem; color: var(--olive); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; display: block; }
.office-detail { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.375rem; }
.office-email { font-size: 0.875rem; color: var(--orange); font-weight: 600; }
.office-email:hover { text-decoration: underline; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg-card); border: 1.5px solid rgba(200,75,15,0.12); border-radius: 14px; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left;
  padding: 1.125rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.925rem; font-weight: 700;
  color: var(--text-primary);
  background: none; cursor: pointer;
  transition: color 0.25s;
}
.faq-question:hover { color: var(--orange); }
.faq-icon { font-size: 1.3rem; color: var(--orange); flex-shrink: 0; transition: transform 0.3s var(--ease-out); line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out), padding 0.3s; }
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 1.25rem; }
.faq-answer p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* Quick Links */
.quick-links { display: flex; flex-direction: column; gap: 0.75rem; }
.quick-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1.5px solid rgba(200,75,15,0.12);
  border-radius: 12px;
  transition: border-color 0.25s, background 0.25s;
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;
}
.quick-link:hover { border-color: var(--orange); background: var(--orange-pale); color: var(--orange); }
.quick-link span { color: var(--orange); font-size: 1rem; }

/* ── Footer ── */
footer {
  background: var(--warm-brown);
  color: rgba(255,253,240,0.9);
  padding: 4.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 0.875rem; display: inline-flex; }
.footer-brand .nav-logo-text { color: #FFA96A; }
.footer-brand .nav-logo-text span { color: #9EC45A; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,253,240,0.6); line-height: 1.65; max-width: 280px; margin-bottom: 1rem; }
.footer-offices { display: flex; flex-direction: column; gap: 0.375rem; }
.footer-office { font-size: 0.8rem; color: rgba(255,253,240,0.5); }

.footer-col h4 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,253,240,0.4); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,253,240,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: #FFA96A; }

.footer-bottom {
  border-top: 1px solid rgba(255,253,240,0.1);
  padding-top: 1.75rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,253,240,0.35); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .layer-card { grid-template-columns: 1fr; }
  .layer-num { font-size: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-height: 62px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }

  .hero { min-height: 100svh; }
  .hero::after { display: none; }
  .hero-content { text-align: center; }
  .hero-ctas { justify-content: center; }

  .section { padding: 4rem 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .six-col { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .layer-card { padding: 2rem; gap: 1rem; }
  .layer-content ul { grid-template-columns: 1fr; }
  .founder-card { grid-template-columns: 60px 1fr; }
  .founder-avatar { width: 60px; height: 60px; font-size: 1.2rem; }

  .page-hero { padding: calc(var(--nav-height) + 3rem) 0 4rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .six-col { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-olive  { color: var(--olive); }
.text-gradient-orange {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}

.badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--olive-pale);
  color: var(--olive);
  border: 1.5px solid rgba(92,122,46,0.3);
  font-family: var(--font-body);
}
.badge-orange {
  background: var(--orange-pale);
  color: var(--orange);
  border-color: rgba(200,75,15,0.3);
}
