/* ==========================================================================
   IMPACT DIGIT GIRLS — Shared design system
   ========================================================================== */

:root{
  /* Brand palette sampled from the official IMPACT DIGIT GIRLS logo */
  --navy: #3B2A55;          /* deep plum-charcoal (replaces generic navy everywhere) */
  --navy-deep: #241635;     /* darkest shade, footer */
  --navy-light: #5B3E82;
  --pink: #E0508E;          /* logo pink ("IMPACT DIGIT") */
  --pink-light: #FF8CBE;
  --purple: #6B2FA0;        /* logo purple (background of the badge) */
  --teal: #8B3F9E;          /* magenta-purple tone, replaces teal accent */
  --orange: #D8285C;        /* red tone, replaces orange accent */
  --green: #A63D6B;         /* deep rose tone, replaces green accent */
  --yellow: #F2C94C;
  --red: #E31C3D;           /* logo red ("Girls") */
  --cream: #FDF3F8;
  --bg: #ffffff;
  --bg-soft: #FAF6FB;
  --text: #241a33;
  --text-soft: #5c5470;
  --border: #ece3ee;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(59,42,85,0.28);
  --shadow-sm: 0 8px 24px -12px rgba(59,42,85,0.24);
  --container: 1200px;
  --ff-head: 'Blinker', 'Segoe UI', sans-serif;
  --ff-body: 'Blinker', 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--ff-head); line-height:1.15; margin:0 0 .5em; color: var(--navy); font-weight:700; }
p{ margin:0 0 1em; }
.container{ max-width: var(--container); margin:0 auto; padding:0 24px; }
section{ position:relative; }
.section-pad{ padding: 96px 0; }
.section-pad-sm{ padding: 64px 0; }

@media (max-width: 780px){
  .section-pad{ padding: 64px 0; }
  .section-pad-sm{ padding: 44px 0; }
}

/* ---------- Utility ---------- */
.bg-soft{ background: var(--bg-soft); }
.bg-navy{ background: var(--navy); color:#fff; }
.bg-navy h1,.bg-navy h2,.bg-navy h3,.bg-navy h4{ color:#fff; }
.bg-cream{ background: var(--cream); }
.text-center{ text-align:center; }
.mw-720{ max-width:720px; }
.mw-860{ max-width:860px; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.grad-underline{
  display:inline-block; position:relative; padding-bottom:6px;
}
.grad-underline::after{
  content:""; position:absolute; left:0; bottom:0; height:4px; width:64px;
  border-radius:4px;
  background: linear-gradient(90deg,var(--pink),var(--purple));
}
.text-center .grad-underline::after{ left:50%; transform:translateX(-50%); }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--ff-head); font-weight:700; font-size:.75rem;
  letter-spacing:.14em; text-transform:uppercase;
  color: var(--pink);
  background: rgba(224,80,142,0.09);
  border:1px solid rgba(224,80,142,0.24);
  padding:7px 16px; border-radius:100px;
  margin-bottom:18px;
}
.eyebrow.alt{ color: var(--teal); background: rgba(139,63,158,0.09); border-color: rgba(139,63,158,0.24); }
.eyebrow.purple{ color: var(--purple); background: rgba(107,47,160,0.09); border-color: rgba(107,47,160,0.24); }
.eyebrow.orange{ color: var(--orange); background: rgba(216,40,92,0.09); border-color: rgba(216,40,92,0.24); }
.eyebrow.light{ color:#fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }

.lead{ font-size:1.15rem; color: var(--text-soft); }
.tagline{ font-family: var(--ff-head); font-weight:600; font-style:italic; color: var(--purple); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family: var(--ff-head); font-weight:600; font-size:.98rem;
  padding:15px 30px; border-radius:100px; border:2px solid transparent;
  cursor:pointer; transition: all .25s ease; white-space:nowrap;
}
.btn-primary{ background: linear-gradient(90deg,var(--pink),var(--purple)); color:#fff; box-shadow: 0 12px 28px -10px rgba(224,80,142,0.5); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(224,80,142,0.6); }
.btn-outline{ border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover{ background: var(--navy); color:#fff; }
.btn-white{ background:#fff; color: var(--navy); }
.btn-white:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.35); }
.btn-ghost-white{ border-color: rgba(255,255,255,0.6); color:#fff; }
.btn-ghost-white:hover{ background: rgba(255,255,255,0.15); }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 20px; font-size:.85rem; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top:0; z-index:1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px; max-width: var(--container); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; font-family: var(--ff-head); font-weight:800; color: var(--navy); font-size:1.05rem; }
.brand .dot{ width:12px; height:12px; border-radius:50%; background: linear-gradient(135deg,var(--pink),var(--purple)); display:inline-block; }
.brand small{ display:block; font-weight:500; font-size:.62rem; letter-spacing:.12em; color: var(--text-soft); text-transform:uppercase; }
.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{ font-weight:600; font-size:.92rem; color: var(--navy); position:relative; padding:6px 0; }
.nav-links a.active, .nav-links a:hover{ color: var(--pink); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.burger{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.burger span{ width:26px; height:3px; background: var(--navy); border-radius:2px; }

@media (max-width: 980px){
  .nav-links{
    position:fixed; inset:64px 0 0 0; background:#fff; flex-direction:column;
    padding:30px 24px; gap:22px; align-items:flex-start; transform:translateX(100%);
    transition: transform .3s ease; overflow-y:auto;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-cta .btn-outline{ display:none; }
  .burger{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative; color:#fff; display:flex; align-items:center;
  min-height:88vh; overflow:hidden;
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media video, .hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-overlay{
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(36,22,53,0.80) 0%, rgba(59,42,85,0.62) 45%, rgba(36,22,53,0.93) 100%);
}
.hero-content{ position:relative; z-index:2; max-width: var(--container); margin:0 auto; padding:120px 24px 80px; width:100%; }
.hero h1{ color:#fff; font-size:clamp(2.2rem,5vw,3.6rem); max-width:820px; }
.hero .lead{ color: rgba(255,255,255,0.88); max-width:640px; }
.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; margin-top:32px; }
.page-hero{ min-height:56vh; }
.page-hero .hero-content{ padding-top:150px; padding-bottom:70px; }

/* ---------- Grid helpers ---------- */
.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
.grid-5{ grid-template-columns: repeat(5,1fr); }
@media (max-width: 980px){ .grid-3,.grid-4,.grid-5{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2,.grid-3,.grid-4,.grid-5{ grid-template-columns: 1fr; } }

.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
@media (max-width: 900px){ .two-col{ grid-template-columns:1fr; gap:32px; } }
.two-col.reverse .col-img{ order:2; }

.col-img img{ border-radius: var(--radius); box-shadow: var(--shadow); width:100%; height:100%; object-fit:cover; }
.img-frame{ border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); }

/* ---------- Cards ---------- */
.card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding:32px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover{ transform: translateY(-5px); box-shadow: var(--shadow); }
.card .icon{
  width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; margin-bottom:18px;
}
.icon-pink{ background: rgba(230,0,126,0.12); color: var(--pink); }
.icon-purple{ background: rgba(123,44,191,0.12); color: var(--purple); }
.icon-teal{ background: rgba(15,155,150,0.12); color: var(--teal); }
.icon-orange{ background: rgba(242,153,74,0.16); color: var(--orange); }
.icon-green{ background: rgba(63,145,66,0.14); color: var(--green); }

.card-flush{ padding:0; overflow:hidden; }
.card-flush img{ width:100%; height:220px; object-fit:cover; }
.card-flush .body{ padding:24px; }

/* ---------- Stats ---------- */
.stats-bar{ background: var(--navy); color:#fff; padding:56px 0; }
.stat{ text-align:center; }
.stat .num{ font-family: var(--ff-head); font-weight:800; font-size:clamp(1.8rem,3.4vw,2.6rem); }
.stat .label{ font-size:.85rem; color: rgba(255,255,255,0.75); margin-top:6px; text-transform:uppercase; letter-spacing:.06em; }
.stat.c-pink .num{ color: var(--pink-light); }
.stat.c-orange .num{ color: var(--orange); }
.stat.c-teal .num{ color: #5fe0d8; }
.stat.c-purple .num{ color: #c093ef; }
.stat.c-green .num{ color: #8bd58d; }

/* ---------- Timeline (Our Model) ---------- */
.pathway{ position:relative; margin-top:40px; }
.pathway::before{
  content:""; position:absolute; left:29px; top:10px; bottom:10px; width:3px;
  background: linear-gradient(180deg,var(--purple),var(--pink),var(--teal),var(--green),var(--orange));
  border-radius:3px;
}
@media (max-width: 780px){ .pathway::before{ left:23px; } }
.stage{ position:relative; padding-left:80px; margin-bottom:64px; } /* anchor offset for sticky header+subnav */
.stage{ scroll-margin-top:150px; }
@media (max-width: 780px){ .stage{ padding-left:60px; } }
.stage:last-child{ margin-bottom:0; }
.stage-num{
  position:absolute; left:0; top:0; width:60px; height:60px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#fff;
  font-family: var(--ff-head); font-weight:800; font-size:1.3rem; box-shadow: var(--shadow-sm);
  border:4px solid #fff;
}
@media (max-width: 780px){ .stage-num{ width:46px; height:46px; font-size:1rem; } }
.stage-tag{ font-family: var(--ff-head); font-weight:700; font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:6px; }
.stage-body{ background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding:32px; box-shadow: var(--shadow-sm); }
.stage-body .slogan{ font-family: var(--ff-head); font-weight:600; font-style:italic; margin-bottom:14px; }
.stage-gallery{ display:grid; grid-template-columns: repeat(4,1fr); gap:10px; margin-top:22px; }
.stage-gallery img{ border-radius:10px; height:110px; object-fit:cover; width:100%; }
@media (max-width:640px){ .stage-gallery{ grid-template-columns: repeat(2,1fr);} }

/* ---------- Values ---------- */
.value-card{ text-align:center; padding:30px 22px; }
.value-card .emoji{ font-size:2rem; margin-bottom:14px; }

/* ---------- Quote / testimonial ---------- */
.quote-block{
  border-left:4px solid var(--pink); padding:6px 0 6px 26px; margin:28px 0;
  font-family: var(--ff-head); font-style:italic; font-size:1.15rem; color: var(--navy);
}
.testimonial{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding:34px; box-shadow: var(--shadow-sm); position:relative;
}
.testimonial .mark{ font-size:3rem; font-family: var(--ff-head); color: var(--pink); line-height:0; position:relative; top:22px; opacity:.5; }
.testimonial .who{ margin-top:18px; font-weight:700; color: var(--navy); font-size:.9rem; }
.testimonial .who span{ display:block; font-weight:400; color: var(--text-soft); font-size:.82rem; }

/* ---------- Impact story ---------- */
.story-card{ background:#fff; border-radius: var(--radius); overflow:hidden; border:1px solid var(--border); box-shadow: var(--shadow-sm); }
.story-hero{ position:relative; }
.story-hero img{ width:100%; height:340px; object-fit:cover; }
.story-hero .tag{
  position:absolute; top:20px; left:20px; background: rgba(13,43,78,0.85); color:#fff;
  padding:8px 16px; border-radius:100px; font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
}
.story-body{ padding:40px; }
@media (max-width:640px){ .story-body{ padding:26px; } }
.data-table{ width:100%; border-collapse: collapse; margin:20px 0; font-size:.92rem; }
.data-table tr{ border-bottom:1px solid var(--border); }
.data-table td{ padding:11px 8px; vertical-align:top; }
.data-table td:first-child{ font-weight:700; color: var(--navy); width:38%; white-space:nowrap; }
.mini-gallery{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:20px 0; }
.mini-gallery img{ height:100px; object-fit:cover; border-radius:8px; width:100%; }
@media (max-width:640px){ .mini-gallery{ grid-template-columns:repeat(2,1fr);} }

/* ---------- Video / Gallery ---------- */
.video-card{ position:relative; border-radius: var(--radius); overflow:hidden; cursor:pointer; box-shadow: var(--shadow-sm); background:#000; }
.video-card img{ width:100%; height:210px; object-fit:cover; opacity:.85; transition: opacity .2s; }
.video-card:hover img{ opacity:.65; }
.video-card .play{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
}
.video-card .play span{
  width:60px; height:60px; border-radius:50%; background: rgba(255,255,255,0.92);
  display:flex; align-items:center; justify-content:center; color: var(--pink); font-size:1.3rem;
  box-shadow:0 8px 20px rgba(0,0,0,0.35);
}
.video-card .cap{ position:absolute; left:0; right:0; bottom:0; padding:16px; color:#fff; font-weight:600; background: linear-gradient(0deg,rgba(0,0,0,0.75),transparent); }

.gallery{ display:grid; grid-template-columns: repeat(4,1fr); gap:12px; }
.gallery img{ height:190px; width:100%; object-fit:cover; border-radius:12px; cursor:pointer; transition: transform .25s; }
.gallery img:hover{ transform: scale(1.03); }
@media (max-width:900px){ .gallery{ grid-template-columns: repeat(3,1fr);} }
@media (max-width:640px){ .gallery{ grid-template-columns: repeat(2,1fr);} }

.lightbox{
  position:fixed; inset:0; background: rgba(24,14,36,0.95); z-index:3000;
  display:none; align-items:center; justify-content:center; padding:30px;
}
.lightbox.open{ display:flex; }
.lightbox img, .lightbox video{ max-width:92vw; max-height:88vh; border-radius:12px; }
.lightbox-close{
  position:absolute; top:24px; right:30px; color:#fff; font-size:2rem; background:none; border:none; cursor:pointer;
}

/* ---------- Forms ---------- */
.form-card{ background:#fff; border-radius: var(--radius); box-shadow: var(--shadow); padding:44px; border:1px solid var(--border); }
@media (max-width:640px){ .form-card{ padding:26px; } }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }
.field{ margin-bottom:20px; }
.field.full{ grid-column: 1 / -1; }
.field label{ display:block; font-weight:600; font-size:.88rem; margin-bottom:7px; color: var(--navy); }
.field input, .field select, .field textarea{
  width:100%; padding:13px 15px; border-radius:10px; border:1.5px solid var(--border);
  font-family: var(--ff-body); font-size:.96rem; background: var(--bg-soft); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--pink); background:#fff; }
.radio-row{ display:flex; flex-direction:column; gap:12px; }
.radio-option{ display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border:1.5px solid var(--border); border-radius:12px; cursor:pointer; }
.radio-option:hover{ border-color: var(--pink); }
.radio-option input{ width:auto; margin-top:4px; }
.radio-option strong{ display:block; color: var(--navy); }
.radio-option span.d{ font-size:.85rem; color: var(--text-soft); }
.form-note{ font-size:.85rem; color: var(--text-soft); margin-top:16px; }
.form-success{ display:none; text-align:center; padding:50px 20px; }
.form-success.show{ display:block; }
.form-success .check{ width:70px; height:70px; border-radius:50%; background: rgba(63,145,66,0.12); color: var(--green); display:flex; align-items:center; justify-content:center; font-size:2rem; margin:0 auto 20px; }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(120deg,var(--navy) 0%, var(--purple) 100%);
  color:#fff; border-radius: 28px; padding:64px 48px; text-align:center; position:relative; overflow:hidden;
}
.cta-band h2{ color:#fff; }
.cta-band .lead{ color: rgba(255,255,255,0.85); }
@media (max-width:640px){ .cta-band{ padding:44px 24px; } }

/* ---------- Pill list ---------- */
.pill-list{ display:flex; flex-wrap:wrap; gap:12px; }
.pill{ background: var(--bg-soft); border:1px solid var(--border); padding:9px 18px; border-radius:100px; font-size:.86rem; font-weight:600; color: var(--navy); }

/* ---------- Founder ---------- */
.founder-wrap{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap:56px; align-items:center; }
@media (max-width:900px){ .founder-wrap{ grid-template-columns:1fr; } }

/* ---------- Footer ---------- */
footer{ background: var(--navy-deep); color: rgba(255,255,255,0.85); padding:70px 0 26px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:40px; }
@media (max-width:900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns: 1fr; } }
footer h4{ color:#fff; font-size:.95rem; margin-bottom:18px; }
footer a{ display:block; margin-bottom:10px; font-size:.9rem; color: rgba(255,255,255,0.7); }
footer a:hover{ color: var(--pink-light); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.12); margin-top:50px; padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.82rem; color: rgba(255,255,255,0.55); }
.footer-brand p{ color: rgba(255,255,255,0.65); font-size:.92rem; max-width:320px; }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{ width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; margin:0; }

/* ---------- Breadcrumb / sub-nav ---------- */
.subnav{ background: var(--bg-soft); border-bottom:1px solid var(--border); position:sticky; top:73px; z-index:900; }
.subnav .container{ display:flex; gap:26px; overflow-x:auto; padding:14px 24px; }
.subnav a{ font-size:.85rem; font-weight:700; color: var(--text-soft); white-space:nowrap; }
.subnav a:hover, .subnav a.active{ color: var(--pink); }

/* ---------- Animations ---------- */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- Misc ---------- */
.divider{ height:1px; background: var(--border); margin:60px 0; }
.badge-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }

/* ==========================================================================
   Brand logo, minimalist icon system, mega-menu, language switch
   ========================================================================== */

.brand{ display:flex; align-items:center; }
.brand-logo{ height:40px; width:auto; display:block; }
.brand-logo-footer{ height:46px; }
.footer-brand-logo-wrap{ display:inline-flex; margin-bottom:16px; }

/* Minimalist SVG icon system (injected via data-icon in main.js) */
[data-icon] svg, i.icon-svg svg{ width:100%; height:100%; display:block; }
.icon{ }
.icon svg{ width:26px; height:26px; }
.icon-inline{ display:inline-flex; width:16px; height:16px; vertical-align:-3px; margin-right:6px; color: var(--pink); }
.icon-inline svg{ width:100%; height:100%; }
.value-card .emoji{ width:40px; height:40px; margin:0 auto 14px; color: var(--pink); display:flex; align-items:center; justify-content:center; }
.value-card .emoji svg{ width:32px; height:32px; }
.video-card .play span svg{ width:22px; height:22px; margin-left:3px; }
.stage-num svg{ width:0; height:0; } /* stage numbers use text, not icons */

/* Chevron on submenu toggles */
.sub-toggle{ width:16px; height:16px; color: currentColor; transition: transform .2s ease; }
.sub-toggle svg{ width:100%; height:100%; }
.sub-toggle.open{ transform: rotate(180deg); }

/* ---------- Mega-menu (desktop dropdown / mobile accordion) ---------- */
.nav-links li.has-sub{ display:flex; align-items:center; gap:6px; position:relative; }
.sub-toggle{ background:none; border:none; cursor:pointer; padding:4px; display:flex; align-items:center; justify-content:center; }

@media (min-width: 981px){
  .sub-menu{
    display:block; visibility:hidden; opacity:0; pointer-events:none;
    position:absolute; top:100%; left:-16px; margin-top:16px;
    background:#fff; border:1px solid var(--border); border-radius:14px;
    box-shadow: var(--shadow); padding:10px; min-width:250px; z-index:1200;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    transform: translateY(4px);
  }
  .sub-menu.open{ visibility:visible; opacity:1; pointer-events:auto; transform:translateY(0); }
  .sub-menu li a{ display:block; padding:10px 14px; border-radius:9px; font-size:.85rem; font-weight:600; color: var(--navy); }
  .sub-menu li a:hover{ background: var(--bg-soft); color: var(--pink); }
}

@media (max-width: 980px){
  .nav-links li.has-sub{ flex-wrap:wrap; width:100%; justify-content:space-between; border-bottom:1px solid var(--border); padding-bottom:14px; }
  .nav-links li.has-sub > a{ flex:1; }
  .sub-menu{
    flex-basis:100%; width:100%; max-height:0; overflow:hidden;
    transition: max-height .3s ease; margin-top:0;
  }
  .sub-menu.open{ max-height:600px; margin-top:10px; }
  .sub-menu li a{ display:block; padding:9px 0 9px 14px; font-size:.86rem; font-weight:500; color: var(--text-soft); border-left:2px solid var(--border); }
  .sub-menu li a:hover{ color: var(--pink); border-left-color: var(--pink); }
}

/* ---------- Language switch ---------- */
.lang-switch{ display:flex; align-items:center; gap:6px; font-family: var(--ff-head); font-weight:700; font-size:.78rem; letter-spacing:.03em; }
.lang-switch a, .lang-switch span{ padding:5px 9px; border-radius:7px; color: var(--text-soft); }
.lang-switch span.active{ color: var(--pink); background: rgba(224,80,142,0.1); }
.lang-switch a:hover{ color: var(--pink); }
.lang-switch .sep{ color: var(--border); }
@media (max-width:980px){
  .lang-switch{ order:-1; margin-right:auto; }
}

/* icon wrapper robustness (svg nested inside <i data-icon>) */
.icon i, .icon-inline i, .value-card .emoji i, .sub-toggle i, .video-card .play span i{
  display:flex; align-items:center; justify-content:center; width:100%; height:100%;
}

/* ---------- Interactive Model Snapshot (home page) ---------- */
.mini-pathway{ max-width:960px; margin:0 auto; }
.mp-steps{
  display:flex; flex-wrap:nowrap; overflow-x:auto; gap:10px; padding-bottom:10px;
  -webkit-overflow-scrolling:touch; scrollbar-width:thin;
}
.mp-step{
  flex:0 0 auto; display:flex; align-items:center; gap:10px; background:#fff;
  border:1.5px solid var(--border); border-radius:100px; padding:8px 18px 8px 8px;
  cursor:pointer; font-family:var(--ff-head); font-weight:600; font-size:.86rem;
  color:var(--text-soft); transition:all .25s ease; white-space:nowrap;
}
.mp-step .mp-num{
  width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--pink),var(--purple)); color:#fff; font-weight:800;
  font-size:.85rem; flex-shrink:0; transition:all .25s ease;
}
.mp-step:hover{ border-color:var(--pink); color:var(--navy); }
.mp-step.active{ background:linear-gradient(135deg,var(--pink),var(--purple)); border-color:transparent; color:#fff; box-shadow:var(--shadow-sm); }
.mp-step.active .mp-num{ background:rgba(255,255,255,0.25); color:#fff; }
.mp-arrow{ display:flex; align-items:center; color:var(--border); flex:0 0 auto; }
.mp-arrow svg{ width:16px; height:16px; }
.mp-panels{
  position:relative; margin-top:22px; background:#fff; border:1px solid var(--border);
  border-radius:var(--radius); padding:36px; box-shadow:var(--shadow-sm); min-height:130px;
}
.mp-panel{ display:none; }
.mp-panel.active{ display:flex; gap:18px; align-items:flex-start; animation:mpFade .35s ease; }
.mp-panel .mp-badge{
  width:44px; height:44px; border-radius:12px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--pink),var(--purple)); color:#fff; font-weight:800; font-family:var(--ff-head);
}
.mp-panel h4{ margin-bottom:6px; }
.mp-panel p{ margin-bottom:0; color:var(--text-soft); }
@keyframes mpFade{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:none;} }
@media (max-width:640px){ .mp-panels{ padding:24px; } }

/* ---------- Colored variant of the mini-pathway (used on model.html) ---------- */
.mini-pathway .mp-step .mp-num{ background: var(--step-clr, linear-gradient(135deg,var(--pink),var(--purple))); }
.mini-pathway .mp-step.active{ background: var(--step-clr, linear-gradient(135deg,var(--pink),var(--purple))); }
.mini-pathway .mp-panel .mp-badge{ background: var(--step-clr, linear-gradient(135deg,var(--pink),var(--purple))); }
.mp-panel .mp-jump{
  display:inline-flex; align-items:center; gap:6px; margin-top:10px; font-family:var(--ff-head);
  font-weight:700; font-size:.82rem; color: var(--pink);
}
.mp-panel .mp-jump svg{ width:14px; height:14px; }

/* ---------- Interactive Impact Dashboard (impact.html) ---------- */
.dash-tabs{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:0 0 28px; }
.dash-tab{
  display:inline-flex; align-items:center; gap:9px;
  padding:12px 22px; border-radius:100px; border:1.5px solid var(--border);
  background:#fff; font-family:var(--ff-head); font-weight:700; font-size:.88rem;
  color:var(--text-soft); cursor:pointer; transition:all .25s ease;
}
.dash-tab .ic{ width:18px; height:18px; display:flex; flex-shrink:0; }
.dash-tab .ic svg{ width:100%; height:100%; }
.dash-tab:hover{ border-color:var(--pink); color:var(--pink); }
.dash-tab.active{ background:linear-gradient(135deg,var(--pink),var(--purple)); border-color:transparent; color:#fff; box-shadow:var(--shadow-sm); }
.dash-panels{ position:relative; }
.dash-panel{ display:none; }
.dash-panel.active{ display:block; animation:mpFade .4s ease; }
.dash-card{
  background:#fff; border:1.5px solid var(--border); border-radius:var(--radius);
  padding:26px; text-align:center; transition:transform .25s ease, box-shadow .25s ease;
  border-top:4px solid var(--pink);
}
.dash-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-sm); }
.dash-card .num{ font-family:var(--ff-head); font-weight:800; font-size:1.7rem; color:var(--navy); }
.dash-card .lbl{ font-weight:700; margin:4px 0 6px; color:var(--navy); font-size:.98rem; }
.dash-card .d{ font-size:.85rem; color:var(--text-soft); margin:0; }
.dash-card.c-orange{ border-top-color:var(--orange); }
.dash-card.c-purple{ border-top-color:var(--purple); }
.dash-card.c-teal{ border-top-color:var(--teal); }
.dash-card.c-pink{ border-top-color:var(--pink); }
.dash-card.c-green{ border-top-color:var(--green); }
.dash-flow{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; margin:10px 0 26px; }
.dash-flow .step{
  background:var(--bg-soft); border:1px solid var(--border); border-radius:100px;
  padding:10px 18px; font-family:var(--ff-head); font-weight:700; font-size:.84rem; color:var(--navy);
}
.dash-flow .arrow{ display:flex; color:var(--border); flex-shrink:0; }
.dash-flow .arrow svg{ width:16px; height:16px; }
.dash-panel .mp-jump{ display:inline-flex; }

/* ---------- Site credit bar ---------- */
.site-credit{ background: var(--navy-deep); border-top:1px solid rgba(255,255,255,0.08); padding:14px 0; }
.site-credit .container{ display:flex; justify-content:flex-end; }
.site-credit span{ font-size:.85rem; color: rgba(255,255,255,0.55); }
.site-credit a{ color:#F2C94C; font-weight:700; text-decoration:underline; }
.site-credit a:hover{ color:#fff; }
