/* ═══════════════════════════════════════════════
   SDGDC HL — Master Stylesheet
   Dark theme · Horizontal scroll · Parallax
   ═══════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────────── */
:root {
  --black:      #000000;
  --off-black:  #080808;
  --white:      #ffffff;
  --red:        #CC1C2E;
  --red-vivid:  #E82035;
  --muted:      rgba(255,255,255,0.45);
  --dim:        rgba(255,255,255,0.10);
  --font:       'Space Grotesk', sans-serif;
  --mono:       'Space Mono', monospace;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fly:   cubic-bezier(0.4, 0, 0.2, 1);
  --hdr-h:      64px;
}

/* ── RESET ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  overflow: hidden;           /* horizontal scroll controlled via JS */
  overscroll-behavior: none;
}
body.pre-intro { overflow: hidden; }
body.ready     { overflow: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* Thin custom scrollbar for panels (Webkit) */
.panel::-webkit-scrollbar { width: 4px; }
.panel::-webkit-scrollbar-track { background: transparent; }
.panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}
.panel::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
/* Firefox */
.panel { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }


/* ════════════════════════════════════════════════
   INTRO OVERLAY
   ════════════════════════════════════════════════ */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* shared phase base */
.phase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
}

/* ── Phase 1 ── */
#phase-powered {
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-out) 0.3s forwards;
}

.powered-label {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.ngnav-brand {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 20px);
}

#ngn-icon {
  width: clamp(90px, 10vw, 145px);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(91,200,232,0.35));
}

.ngnav-wordmark {
  font-size: clamp(22px, 3.8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #c8f0f8 0%, #5bc8e8 45%, #2499bb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Phase 2 ── */
#phase-title {
  gap: clamp(10px, 1.8vw, 20px);
}

#p2-ring-wrap {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
#p2-ring-wrap.show {
  opacity: 1;
  transform: scale(1);
}
#p2-ring {
  width: clamp(80px, 11vw, 160px);
  height: auto;
}

#p2-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#p2-sdg {
  font-size: clamp(20px, 3.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
#p2-sdg.show { opacity: 1; transform: translateY(0); }

#p2-hl {
  font-size: clamp(16px, 2.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--red-vivid);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out) 0.12s, transform 0.6s var(--ease-out) 0.12s;
}
#p2-hl.show { opacity: 1; transform: translateY(0); }

#p2-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-top: clamp(20px, 3vw, 40px);
}
#p2-loader.show { opacity: 1; }

#p2-track {
  width: clamp(140px, 20vw, 280px);
  height: 2px;
  background: var(--dim);
  border-radius: 2px;
  overflow: hidden;
}
#p2-bar {
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 2px;
  transition: width 0.1s linear;
}
#p2-status {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
}

/* ── Phase 3 (Morph) ── */
#phase-morph {
  align-items: center;
  justify-content: center;
}

#morph-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
#morph-block.show {
  opacity: 1;
  transform: scale(1);
}
#morph-block.fly-to-corner {
  transition: opacity 0.5s var(--ease-fly), transform 0.7s var(--ease-fly);
}

#morph-ring {
  width: clamp(64px, 9vw, 128px);
  height: auto;
}

#morph-text {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
#morph-sdgdc {
  font-size: clamp(26px, 4.2vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}
#morph-hl {
  font-size: clamp(26px, 4.2vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--red-vivid);
}


/* ════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ════════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-vivid));
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#scroll-progress.ready { opacity: 1; }


/* ════════════════════════════════════════════════
   SITE HEADER
   ════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hdr-h);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dim);
}
#site-header.ready {
  opacity: 1;
  pointer-events: auto;
}

.hdr-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  height: 100%;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ── Logo — fixed top-right, always visible across all panels ── */
#hdr-logo {
  position: fixed;
  top: 0;
  right: clamp(16px, 4vw, 48px);
  height: var(--hdr-h);
  z-index: 2000;           /* above header (1000) and drawer (2000 ties; fine) */
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
#hdr-logo.show {
  opacity: 1;
  pointer-events: auto;
}
#hdr-ring {
  width: 28px;
  height: auto;
}
#hdr-brand {
  display: flex;
  gap: 4px;
  align-items: baseline;
}
#hdr-sdgdc {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
#hdr-hl {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--red-vivid);
}

/* Desktop nav */
#main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  flex: 1;          /* pushes CTA + logo to the right */
}
#main-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}
#main-nav a:hover { color: var(--white); }

.hdr-cta {
  padding: 8px 20px;
  margin-right: clamp(100px, 12vw, 150px); /* clear the fixed logo on the right */
  background: var(--red);
  color: var(--white);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.hdr-cta:hover { background: var(--red-vivid); transform: scale(1.03); }

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 6px;
}
#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav drawer */
#nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 85vw);
  height: 100vh;
  background: #0a0a0a;
  border-left: 1px solid var(--dim);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
}
#nav-drawer.open { transform: translateX(0); }
#drawer-close {
  color: var(--muted);
  font-size: 20px;
  align-self: flex-end;
  margin-bottom: 16px;
  transition: color 0.2s;
}
#drawer-close:hover { color: var(--white); }
.drawer-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 8px;
  border-bottom: 1px solid var(--dim);
  transition: color 0.2s;
}
.drawer-link:hover { color: var(--white); }
.drawer-cta {
  margin-top: 16px;
  padding: 14px 20px;
  background: var(--red);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  border-bottom: none;
}
.drawer-cta:hover { background: var(--red-vivid); }

#drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
#drawer-overlay.open { opacity: 1; pointer-events: auto; }


/* ════════════════════════════════════════════════
   HORIZONTAL SCROLL SYSTEM
   ════════════════════════════════════════════════ */
#scroll-wrapper {
  position: fixed;
  inset: 0;
  top: var(--hdr-h);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
#scroll-wrapper.ready { opacity: 1; }

#panels-track {
  display: flex;
  height: 100%;
  width: calc(8 * 100vw);   /* 8 panels */
  transform: translateX(0);
  will-change: transform;
}

.panel {
  position: relative;
  width: 100vw;
  height: 100%;
  overflow-y: auto;       /* allow vertical scroll if content > viewport */
  overflow-x: hidden;
  display: flex;
  align-items: flex-start; /* don't clip content by centering */
  justify-content: center;
  flex-shrink: 0;
  scroll-behavior: smooth;
}

/* Parallax background number */
.parallax-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  overflow: hidden;
}
.bg-num {
  font-family: var(--mono);
  font-size: clamp(160px, 26vw, 400px);
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  margin-right: -0.08em;
  user-select: none;
  will-change: transform;
}

/* Panel inner content */
.panel-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  /* Vertical padding scales with viewport height */
  padding: clamp(16px, 3.5dvh, 52px) clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8dvh, 22px);
  box-sizing: border-box;
  /* Ensure centred panels fill at least the screen height */
  min-height: calc(100dvh - var(--hdr-h));
  justify-content: center;
}


/* ════════════════════════════════════════════════
   SHARED TYPOGRAPHY
   ════════════════════════════════════════════════ */
.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 32, 53, 0.75);
  font-family: var(--mono);
}

.section-heading {
  font-size: clamp(26px, 4.2vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
}

.section-body {
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 620px;
}


/* ════════════════════════════════════════════════
   PANEL 0 — HERO
   ════════════════════════════════════════════════ */
.hero-inner {
  gap: clamp(10px, 1.6dvh, 18px);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-vivid);
  font-family: var(--mono);
}

.hero-tagline {
  display: flex;
  gap: 0.2em;
  font-size: clamp(44px, 7.5vw, 110px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  flex-wrap: wrap;
}
.tag-word { color: var(--white); }
.tag-red  { color: var(--red-vivid); }

.hero-sub {
  font-size: clamp(14px, 1.6vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  font-weight: 400;
}
.hero-sub strong { color: var(--white); font-weight: 500; }

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: var(--red-vivid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204,28,46,0.35);
}
.btn-primary.large { padding: 16px 40px; font-size: 16px; }
.btn-primary.small { padding: 9px 20px; font-size: 13px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--dim);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

/* Live status pill */
.live-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* Hero badge row */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
/* Hero stat row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: clamp(16px, 2.5vw, 32px);
}
.hero-stat:not(:first-child) {
  padding-left: clamp(16px, 2.5vw, 32px);
}
.stat-value {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}
/* First stat (Free) gets green accent */
.hero-stat:first-child .stat-value {
  color: #22c55e;
}
.stat-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-family: var(--mono);
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--dim);
  flex-shrink: 0;
}

/* About facts table */
.about-facts {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--dim);
  margin-top: 4px;
}
.fact-row {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 32px);
  padding: 8px 0;
  border-bottom: 1px solid var(--dim);
}
.fact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-family: var(--mono);
  min-width: clamp(60px, 8vw, 90px);
  flex-shrink: 0;
}
.fact-val {
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
/* Free row gets a green value */
.fact-row:first-child .fact-val {
  color: #22c55e;
  font-weight: 500;
}

/* Free banner in register panel */
.register-free-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.07);
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--white);
  max-width: 480px;
}
.free-star {
  color: #22c55e;
  font-size: 18px;
  flex-shrink: 0;
}
.register-free-banner strong { color: #22c55e; }


/* ════════════════════════════════════════════════
   PANEL 1 — ABOUT
   ════════════════════════════════════════════════ */
.three-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.5vw, 20px);
  margin-top: 4px;
}

.point {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: clamp(12px, 1.5vw, 20px);
  border: 1px solid var(--dim);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.point:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.pt-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--red-vivid);
}
.pt-title {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pt-desc {
  font-size: clamp(12px, 1.1vw, 13px);
  line-height: 1.6;
  color: var(--muted);
}


/* ════════════════════════════════════════════════
   PANEL 2 — EDITIONS
   ════════════════════════════════════════════════ */
.edition-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px);
  margin-top: 8px;
}

.edition-card {
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid var(--dim);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s ease;
}
.active-card {
  border-color: rgba(204,28,46,0.4);
  background: rgba(204,28,46,0.04);
}
.coming-card { opacity: 0.6; }

.card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-family: var(--mono);
  width: fit-content;
}
.card-badge.live {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
}
.card-badge.coming {
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  border: 1px solid var(--dim);
}

.edition-card h3 {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.edition-card p {
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--muted);
  line-height: 1.65;
}
.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.card-list li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.card-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red-vivid);
  font-size: 10px;
}


/* ════════════════════════════════════════════════
   PANEL 3 — HOW IT WORKS
   ════════════════════════════════════════════════ */
.how-steps {
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, 1.2vw, 16px);
  flex-wrap: nowrap;
  margin-top: 4px;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 140px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 700;
  margin-bottom: 6px;
}
.step-content p {
  font-size: clamp(12px, 1.1vw, 13px);
  color: var(--muted);
  line-height: 1.6;
}

.step-arrow {
  color: var(--dim);
  font-size: 24px;
  margin-top: 8px;
  flex-shrink: 0;
}


/* ════════════════════════════════════════════════
   PANEL 4 — WHY JOIN
   ════════════════════════════════════════════════ */

/* Subtle SDG ring watermark — right side of panel */
.why-sdg-watermark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 42vw, 580px);
  height: auto;
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  filter: grayscale(30%);
  z-index: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.5vw, 18px);
  margin-top: 4px;
}

.why-card {
  padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) clamp(18px, 2.2vw, 28px);
  border: none;
  border-left: 2px solid var(--dim);
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s ease;
}
.why-card:hover {
  border-left-color: rgba(255,255,255,0.3);
}
.why-card h3 {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.why-card p {
  font-size: clamp(12px, 1.1vw, 13px);
  color: var(--muted);
  line-height: 1.6;
}

.pathway-note {
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(204,28,46,0.25);
  border-radius: 12px;
  background: rgba(204,28,46,0.04);
  margin-top: 4px;
}
.pathway-note h3 {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  margin-bottom: 8px;
}
.pathway-note p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.pathway-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ptag {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border: 1px solid var(--dim);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
}
.ptag em {
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.08em;
}
.ptag.active {
  border-color: rgba(34,197,94,0.4);
  background: rgba(34,197,94,0.06);
}
.ptag.ptag-international {
  border-color: rgba(91,200,232,0.35);
  background: rgba(91,200,232,0.05);
}


/* ════════════════════════════════════════════════
   PANEL 5 — FAQ
   ════════════════════════════════════════════════ */
.faq-inner {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--dim);
}

.faq-item { border-bottom: 1px solid var(--dim); }

.faq-q {
  width: 100%;
  text-align: left;
  padding: clamp(14px, 1.6vw, 18px) 0;
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s ease;
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-q.open::after { transform: rotate(45deg); color: var(--red-vivid); }
.faq-q:hover { color: var(--red-vivid); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease-out), padding 0.35s ease;
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--muted);
  line-height: 1.7;
  padding: 0 0;
}
.faq-a.open {
  max-height: 200px;
  padding: 0 0 16px 0;
}


/* ════════════════════════════════════════════════
   PANEL 6 — RECOGNITION
   ════════════════════════════════════════════════ */
.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.tl-step {
  display: flex;
  gap: clamp(12px, 1.8vw, 24px);
  position: relative;
  padding-bottom: clamp(14px, 2vw, 28px);
}
.tl-step:last-child { padding-bottom: 0; }

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dim);
  border: 2px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 2;
}
.active-step .tl-dot {
  background: #22c55e;
  border-color: rgba(34,197,94,0.5);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}

.tl-step:not(:last-child) .tl-dot::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--dim);
  height: calc(100% + clamp(20px, 2.5vw, 36px) - 12px);
}

.tl-content { flex: 1; }
.tl-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-vivid);
  font-family: var(--mono);
}
.active-step .tl-tag { color: #22c55e; }
.tl-content h3 {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
}
.tl-content p {
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--muted);
  line-height: 1.65;
}


/* ════════════════════════════════════════════════
   PANEL 7 — REGISTER + FOOTER
   ════════════════════════════════════════════════ */
.register-inner {
  align-items: flex-start;
  /* Override the centred min-height — register panel is top-aligned */
  justify-content: flex-start;
  /* Allow the footer to be pushed down on tall screens */
  min-height: calc(100dvh - var(--hdr-h));
  padding-top: clamp(16px, 3dvh, 48px);
  padding-bottom: clamp(20px, 4dvh, 48px);
}

.register-heading {
  /* Scale by viewport HEIGHT so it doesn't dominate on tall/wide screens */
  font-size: clamp(28px, min(5.5vw, 7dvh), 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.register-sub {
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
}

.register-free {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #22c55e;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: -6px;
}
.register-free::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.register-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer brand row: SDGDC left, NextGenNav right */
.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* NextGenNav logo inside footer flow */
.footer-ngn-logo {
  width: clamp(80px, 10vw, 130px);
  height: auto;
  opacity: 0.5;
  filter: drop-shadow(0 0 8px rgba(91,200,232,0.15));
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}
.footer-ngn-logo:hover { opacity: 0.8; }

/* Footer */
#site-footer {
  width: 100%;
  margin-top: auto;
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--dim);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}
.footer-ring { width: 28px; height: auto; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}

/* Footer bottom row: links + socials side by side */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Social icons */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
  text-decoration: none;
}
.social-icon:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
/* Instagram hover — gradient border trick via box-shadow */
.social-icon.instagram:hover {
  border-color: #e1306c;
  color: #e1306c;
  background: rgba(225,48,108,0.07);
}
/* LinkedIn hover */
.social-icon.linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
  background: rgba(10,102,194,0.07);
}


/* ════════════════════════════════════════════════
   SIDE DOTS NAV
   ════════════════════════════════════════════════ */
#side-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#side-dots.ready {
  opacity: 1;
  pointer-events: auto;
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.25s ease, transform 0.25s ease;
  padding: 0;
}
.dot:hover, .dot.active {
  background: var(--red-vivid);
  transform: scale(1.5);
}
.dot-tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid var(--dim);
}
.dot:hover .dot-tip { opacity: 1; }


/* ════════════════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}


/* ════════════════════════════════════════════════
   RESPONSIVE — fit to screen
   ════════════════════════════════════════════════ */

/* ── Short screens (viewport height < 780px) — desktop/laptop ── */
@media (max-height: 780px) and (min-width: 769px) {
  .panel-inner {
    padding: clamp(12px, 2dvh, 32px) clamp(24px, 5vw, 72px);
    gap: clamp(8px, 1.2dvh, 16px);
    min-height: unset;      /* don't force min 100dvh — let it be smaller */
    justify-content: flex-start;
    padding-top: max(16px, 3dvh);
  }
  .hero-inner { justify-content: center; min-height: calc(100dvh - var(--hdr-h)); }

  .hero-tagline   { font-size: clamp(32px, 5.5dvh, 80px); }
  .section-heading { font-size: clamp(22px, 3.5dvh, 48px); }
  .register-heading { font-size: clamp(24px, 4dvh, 56px); }

  .section-body { font-size: clamp(12px, 1.6dvh, 15px); }
  .hero-sub     { font-size: clamp(12px, 1.6dvh, 16px); }

  /* Tighter cards */
  .point, .edition-card, .why-card {
    padding: clamp(10px, 1.5dvh, 16px);
  }
  .pt-title, .edition-card h3 { font-size: clamp(13px, 1.6dvh, 17px); }
  .pt-desc, .edition-card p   { font-size: clamp(11px, 1.3dvh, 13px); }

  .step-num { width: 32px; height: 32px; font-size: 13px; }
  .step-content h3 { font-size: 13px; }
  .step-content p  { font-size: 12px; }

  /* Timeline tighter */
  .tl-content h3 { font-size: clamp(13px, 1.6dvh, 17px); margin: 2px 0 4px; }
  .tl-content p  { font-size: clamp(11px, 1.3dvh, 13px); }

  /* Hero stats */
  .stat-value { font-size: clamp(15px, 2dvh, 22px); }
  .hero-stats { margin-top: 0; }

  /* Fact rows tighter */
  .fact-row { padding: 6px 0; }

  /* Register free banner smaller */
  .register-free-banner { padding: 10px 16px; font-size: 13px; }

  /* Footer in register panel more compact */
  #site-footer { padding-top: clamp(12px, 2dvh, 24px); }
}

/* ── Very short screens (< 640px height) ── */
@media (max-height: 640px) and (min-width: 769px) {
  .panel-inner {
    gap: clamp(6px, 1dvh, 12px);
    padding-top: max(12px, 2dvh);
    padding-bottom: max(12px, 2dvh);
  }
  .hero-tagline    { font-size: clamp(28px, 5dvh, 60px); }
  .section-heading { font-size: clamp(20px, 3.2dvh, 38px); }
  .register-heading { font-size: clamp(22px, 3.8dvh, 48px); }
  .section-eyebrow { font-size: 10px; }
}

/* ── Mid-size desktops / small laptops (900–1200px) ── */
@media (max-width: 1200px) {
  .panel-inner {
    max-width: 820px;
    padding: clamp(14px, min(3.5vw, 3.5dvh), 52px) clamp(20px, 4vw, 56px);
    gap: clamp(10px, min(1.8vw, 1.8dvh), 20px);
  }

  .hero-tagline {
    font-size: clamp(40px, min(7.5vw, 9dvh), 100px);
  }

  .section-heading {
    font-size: clamp(24px, min(4vw, 5dvh), 56px);
  }

  .three-points { gap: clamp(10px, 1.8vw, 20px); }
  .edition-cards { gap: clamp(10px, 1.5vw, 18px); }
  .how-steps { gap: clamp(6px, 1vw, 12px); }
  .register-heading { font-size: clamp(28px, min(5.5vw, 6dvh), 68px); }

  .hdr-cta { margin-right: clamp(90px, 11vw, 140px); }
}

/* ── Compact desktops / large tablets (769–900px) ── */
@media (max-width: 900px) {
  .panel-inner {
    max-width: 100%;
    padding: clamp(14px, min(3vw, 3dvh), 36px) clamp(20px, 3.5vw, 40px);
    gap: clamp(10px, min(1.6vw, 1.8dvh), 18px);
  }

  .hero-tagline {
    font-size: clamp(36px, min(7vw, 8dvh), 72px);
  }

  .section-heading {
    font-size: clamp(22px, min(4.5vw, 5dvh), 48px);
  }

  /* Switch grids to 2 cols max */
  .three-points {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .edition-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* How steps wrap 2×2 */
  .how-steps { flex-wrap: wrap; gap: 14px; }
  .how-step  { min-width: calc(50% - 7px); flex: none; }
  .step-arrow { display: none; }

  .stat-value { font-size: clamp(16px, 2vw, 22px); }
  .hdr-cta {
    margin-right: clamp(80px, 10vw, 120px);
    padding: 7px 14px;
    font-size: 12px;
  }
}

/* ════════════════════════════════════════════════
   MOBILE (≤768px) — vertical scroll layout
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Body: enable vertical scrolling ── */
  html {
    overflow-x: hidden;
  }
  body,
  body.pre-intro,
  body.ready {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: auto;
  }

  /* ── Scroll wrapper: sit below the fixed header ── */
  #scroll-wrapper {
    position: relative;
    inset: auto;
    top: 0;
    margin-top: var(--hdr-h);
    width: 100%;
    height: auto;
    overflow: visible;
    opacity: 1 !important;
  }

  /* ── Track: stack panels vertically ── */
  #panels-track {
    flex-direction: column;
    width: 100%;
    height: auto;
    transform: none !important;
    will-change: auto;
  }

  /* ── Each panel: full-width, natural height ── */
  .panel {
    width: 100%;
    height: auto;
    min-height: unset;           /* no forced full-screen height */
    overflow-y: visible;
    overflow-x: hidden;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    flex-shrink: unset;
    scroll-behavior: auto;
  }

  /* ── Panel inner: consistent padding, no min-height ── */
  .panel-inner {
    width: 100%;
    max-width: 100%;
    min-height: unset;
    justify-content: flex-start;
    /* Top pad accounts for header clearance on first load */
    padding: 36px 22px 48px;
    gap: 20px;
    box-sizing: border-box;
  }

  /* ── Header ── */
  #main-nav  { display: none; }
  .hdr-cta   { display: none; }
  #hamburger { display: flex; }
  #hdr-logo  { right: 52px; }
  #hdr-ring  { width: 20px; }
  #hdr-sdgdc,
  #hdr-hl    { font-size: 12px; }

  /* ── Hero inner: flex-start, no forced min-height ── */
  .hero-inner {
    justify-content: flex-start;
    min-height: unset;
    gap: 18px;
  }

  /* ── Typography ── */
  .eyebrow,
  .section-eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero-tagline {
    font-size: clamp(36px, 11vw, 60px);
    line-height: 0.96;
    letter-spacing: -0.04em;
  }

  .hero-sub {
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
  }

  .section-heading {
    font-size: clamp(24px, 7vw, 38px);
    letter-spacing: -0.03em;
    line-height: 1.1;
  }

  .section-body {
    font-size: 14px;
    line-height: 1.7;
    max-width: 100%;
  }

  .register-heading {
    font-size: clamp(28px, 8.5vw, 44px);
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  /* ── CTAs: full-width stack ── */
  .hero-ctas,
  .register-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 0;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
  }

  /* ── Hero stats: bordered pill row ── */
  .hero-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 0;
    border: 1px solid var(--dim);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
  }
  .hero-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 12px 6px;
  }
  .hero-stat:not(:last-child) {
    border-right: 1px solid var(--dim);
  }
  .stat-divider { display: none; }
  .stat-value {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.03em;
  }
  .stat-label {
    font-size: 9px;
    text-align: center;
    line-height: 1.3;
  }

  /* ── Live status ── */
  .live-status { font-size: 11px; }

  /* ── About panel: facts table ── */
  .three-points {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .point { padding: 16px; }
  .about-facts { margin-top: 0; }
  .fact-row {
    gap: 16px;
    padding: 9px 0;
    align-items: flex-start;
  }
  .fact-label {
    min-width: 80px;
    font-size: 10px;
    padding-top: 1px;
  }
  .fact-val { font-size: 13px; line-height: 1.5; }

  /* ── Editions panel ── */
  .edition-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .edition-card { padding: 18px; }

  /* ── How It Works: horizontal row layout ── */
  .how-steps {
    flex-direction: column;
    gap: 0;
    flex-wrap: nowrap;
  }
  .how-step {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--dim);
    min-width: unset;
  }
  .how-step:last-child { border-bottom: none; }
  .step-num {
    width: 32px;
    height: 32px;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .step-content h3 { font-size: 15px; margin-bottom: 4px; }
  .step-content p  { font-size: 13px; line-height: 1.55; }
  .step-arrow      { display: none; }

  /* ── Why Join ── */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .why-card {
    padding: 16px 16px 16px 20px;
  }
  .why-card h3 { font-size: 15px; }
  .why-card p  { font-size: 13px; }

  /* ── FAQ ── */
  .faq-q {
    font-size: 14px;
    padding: 14px 0;
  }
  .faq-a { font-size: 13px; }

  /* ── Recognition timeline ── */
  .tl-content h3 { font-size: 15px; }
  .tl-content p  { font-size: 13px; }

  /* ── Register panel: normal block flow ── */
  .register-inner {
    min-height: unset;
    justify-content: flex-start;
  }
  .register-sub {
    font-size: 14px;
    max-width: 100%;
  }
  .register-free-banner {
    font-size: 14px;
    padding: 12px 16px;
    max-width: 100%;
  }

  /* ── Footer ── */
  #site-footer {
    margin-top: 32px;      /* consistent gap from content above */
    padding-top: 24px;
  }
  .footer-brand-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .footer-ngn-logo   { width: 70px; opacity: 0.35; flex-shrink: 0; }
  .footer-links      { gap: 10px 16px; }
  .footer-links a    { font-size: 12px; }
  .footer-copy       { font-size: 11px; }
  .footer-bottom     { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-socials    { gap: 10px; }
  .social-icon       { width: 30px; height: 30px; font-size: 13px; }

  /* ── Hide decorative elements ── */
  #side-dots         { display: none; }
  #scroll-progress   { display: none; }
  .parallax-bg       { display: none; }
  .why-sdg-watermark { display: none; }
}

/* ════════════════════════════════════════════════
   SMALL MOBILE (≤480px)
   ════════════════════════════════════════════════ */
@media (max-width: 480px) {

  .panel-inner {
    padding: 28px 18px 44px;
    gap: 16px;
  }

  .hero-tagline {
    font-size: clamp(32px, 10.5vw, 50px);
    line-height: 0.96;
  }

  .hero-sub { font-size: 14px; }

  /* Stats box: tighter padding */
  .hero-stat  { padding: 10px 5px; }
  .stat-value { font-size: 17px; }
  .stat-label { font-size: 9px; }

  /* Fact rows: stack label above value */
  .fact-row {
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
  }
  .fact-label { min-width: unset; font-size: 9px; }
  .fact-val   { font-size: 14px; font-weight: 500; }

  .edition-card { padding: 14px; }
  .how-step     { padding: 12px 0; gap: 12px; }
  .register-free-banner { font-size: 13px; padding: 10px 14px; }
  .footer-links { gap: 8px 12px; }
}
