/* ─────────────────────────────────────────
   Terra Reform – Design System
   ───────────────────────────────────────── */
:root {
  --bg:        #03080f;
  --bg-1:      #05101c;
  --bg-card:   #070e1c;
  --bg-card-2: #0c1628;
  --green:     #00df6b;
  --green-d:   #00b358;
  --blue:      #3b82f6;
  --text:      #dce9f2;
  --text-2:    #6a8098;
  --border:    rgba(255,255,255,0.06);
  --border-2:  rgba(255,255,255,0.11);
  --radius:    14px;
  --radius-lg: 22px;
  --ease:      cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Space Grotesk', system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 5%; }
.section    { padding: 112px 0; }
.section-alt { background: var(--bg-1); }

/* ── Label ── */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.71rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--green); margin-bottom: 14px;
}

/* ─────────────────────────────────────────
   Navigation
   ───────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(3,8,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 8px 40px rgba(0,0,0,0.5); }

.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 5%;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
}
.nav-logo img { height: 32px; width: 32px; border-radius: 7px; object-fit: contain; }

.nav-links a {
  color: var(--text-2); font-size: 0.9rem; font-weight: 500;
  margin-left: 32px; transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────
   Hero
   ───────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background-color: var(--bg);
}

.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.044) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-grid::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 78% 0%,   rgba(0,223,107,0.13) 0%, transparent 52%),
    radial-gradient(ellipse at 4%  98%,  rgba(59,130,246,0.07) 0%, transparent 44%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}

.hero-globe {
  position: absolute; top: 50%; right: -160px;
  transform: translateY(-50%);
  width: 720px; height: 720px;
  max-width: 60vw; max-height: 60vw;
  pointer-events: none; z-index: 0;
}
@media (max-width: 1180px) {
  .hero-globe { right: -240px; opacity: 0.6; }
}
@media (max-width: 860px) {
  .hero-globe { display: none; }
}

.hero-inner { position: relative; z-index: 1; padding: 100px 0 120px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,223,107,0.07); border: 1px solid rgba(0,223,107,0.22);
  border-radius: 999px; padding: 6px 16px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green); margin-bottom: 32px;
}
.pulse-dot {
  width: 6px; height: 6px; background: var(--green);
  border-radius: 50%; animation: pdot 2s ease-in-out infinite;
}
@keyframes pdot {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  font-weight: 800; line-height: 0.88; letter-spacing: -0.045em;
  margin-bottom: 30px;
  background: linear-gradient(138deg, #ffffff 45%, #00df6b 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-2); max-width: 560px;
  line-height: 1.7; margin-bottom: 44px;
}

.hero-stats {
  display: flex; align-items: center; gap: 32px; margin-bottom: 44px;
}
.h-stat { display: flex; flex-direction: column; gap: 3px; }
.h-stat-n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem; font-weight: 700; color: #fff;
}
.h-stat-l {
  font-size: 0.7rem; font-weight: 500; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.h-stat-div { width: 1px; height: 36px; background: var(--border-2); }

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

/* ─────────────────────────────────────────
   Buttons
   ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600;
  transition: all 0.22s var(--ease);
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-green { background: var(--green); color: #020a10; }
.btn-green:hover { background: var(--green-d); transform: translateY(-2px); }

.btn-ghost { border-color: var(--border-2); color: var(--text-2); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-sm {
  padding: 8px 18px; font-size: 0.84rem;
  background: transparent; border-color: var(--border-2); color: var(--text-2);
}
.btn-sm:hover { border-color: var(--green); color: var(--green); }

.text-link {
  font-size: 0.87rem; font-weight: 600; color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.text-link:hover { color: var(--green); }

/* ─────────────────────────────────────────
   Section headings
   ───────────────────────────────────────── */
.s-head {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.s-sub {
  font-size: 1rem; color: var(--text-2);
  max-width: 600px; margin-bottom: 56px; line-height: 1.7;
}

/* ── Testimonial ── */
.testimonial {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.testimonial p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem; font-weight: 500; line-height: 1.6;
  color: var(--text); margin-bottom: 24px;
}
.testimonial footer { display: flex; flex-direction: column; gap: 2px; }
.testimonial-name { font-weight: 700; color: var(--green); }
.testimonial-role { font-size: 0.85rem; color: var(--text-2); }

/* ─────────────────────────────────────────
   About
   ───────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: stretch; }
.about-text h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.03em; margin-bottom: 20px;
}
.about-text p { font-size: 1.02rem; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }

.about-cards { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.info-card:hover { border-color: rgba(0,223,107,0.22); box-shadow: 0 0 28px rgba(0,223,107,0.05); }
.info-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
}
.info-card p:not(.info-label) { font-size: 1rem; color: var(--text-2); line-height: 1.7; }

.values-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.v-pill {
  padding: 7px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-2); white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.v-pill:hover { border-color: var(--border-2); color: var(--text); }

/* ─────────────────────────────────────────
   Impact – Icon Cards
   ───────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

.icon-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px;
  transition: all 0.25s var(--ease);
}
.icon-card:hover {
  border-color: rgba(0,223,107,0.22);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,223,107,0.07);
}
.icon-box {
  width: 42px; height: 42px;
  background: rgba(0,223,107,0.08); border: 1px solid rgba(0,223,107,0.16);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--green);
}
.icon-box svg { width: 19px; height: 19px; }
.icon-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.icon-card p  { font-size: 0.89rem; color: var(--text-2); line-height: 1.6; }

/* ─────────────────────────────────────────
   Projects
   ───────────────────────────────────────── */
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.28s var(--ease);
}
.project-card:hover {
  border-color: rgba(0,223,107,0.2);
  transform: translateY(-7px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,223,107,0.07);
}

.proj-thumb {
  height: 180px; position: relative; overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 22px 22px;
  background-color: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}
.proj-thumb::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--c, var(--green));
  z-index: 1;
}
.proj-thumb::before {
  content: '';
  position: absolute; top: -30px; left: -30px;
  width: 160px; height: 160px;
  background: var(--c, var(--green));
  border-radius: 50%; opacity: 0.07;
  filter: blur(40px);
}
.proj-cat {
  display: block;
  font-size: 0.67rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--green); margin-bottom: 8px;
}
.proj-body-c { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.proj-body-c h3 { font-size: 1.03rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.proj-body-c > p { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; flex: 1; }
.proj-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}
.prog-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--green); }

/* ─────────────────────────────────────────
   Explore More (homepage page links)
   ───────────────────────────────────────── */
.explore-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.explore-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all 0.25s var(--ease);
}
.explore-card:hover {
  border-color: rgba(0,223,107,0.22);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,223,107,0.07);
}
.explore-card h3 { font-size: 1.02rem; font-weight: 700; }
.explore-card p { font-size: 0.87rem; color: var(--text-2); line-height: 1.6; flex: 1; }
.explore-card .text-link { margin-top: 4px; }

/* ─────────────────────────────────────────
   "More coming" faded cards
   ───────────────────────────────────────── */
.more-card {
  border: 1.5px dashed var(--border-2);
  border-radius: var(--radius-lg);
  background: transparent;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: 12px; padding: 40px 28px; min-height: 220px;
  opacity: 0.75;
  transition: all 0.25s var(--ease);
}
.more-card:hover { opacity: 1; border-color: rgba(0,223,107,0.35); }
.more-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px dashed rgba(0,223,107,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 1.4rem; font-weight: 400;
  font-family: 'Space Grotesk', sans-serif;
}
.more-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.more-card p { font-size: 0.87rem; color: var(--text-2); line-height: 1.6; max-width: 280px; }

/* ─────────────────────────────────────────
   Team / Founders
   ───────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; align-items: start; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.25s var(--ease);
}
.team-card:hover { border-color: rgba(0,223,107,0.18); }
.team-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.team-avatar {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem;
  background: rgba(0,223,107,0.1); border: 1px solid rgba(0,223,107,0.22); color: var(--green);
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.team-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 0.8rem; color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.team-link:hover { color: var(--green); }
.team-link svg { width: 14px; height: 14px; }
.team-name { font-size: 1.15rem; font-weight: 700; }
.team-role { font-size: 0.84rem; color: var(--text-2); margin-top: 2px; }
.team-bio p { font-size: 0.97rem; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.team-projects { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.team-projects .p-tag { transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.team-projects .p-tag:hover { color: var(--green); border-color: rgba(0,223,107,0.4); }
.team-bio p:last-child { margin-bottom: 0; }
.studio-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--text);
}
.studio-badge img { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
a.studio-badge:hover { color: var(--green); }
.studio-links { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; }
.studio-links a { display: inline-flex; color: var(--text-2); transition: color 0.2s var(--ease); }
.studio-links a:hover { color: var(--green); }
.studio-links svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ─────────────────────────────────────────
   Programs
   ───────────────────────────────────────── */
.program-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: all 0.22s var(--ease);
}
.program-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.prog-n { font-size: 0.68rem; font-weight: 700; color: var(--green); letter-spacing: 1px; margin-bottom: 10px; }
.program-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.program-card p  { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; }

/* ─────────────────────────────────────────
   Join
   ───────────────────────────────────────── */
.join-box {
  max-width: 700px;
  background: linear-gradient(135deg, rgba(0,223,107,0.05) 0%, rgba(59,130,246,0.04) 100%);
  border: 1px solid rgba(0,223,107,0.14);
  border-radius: 26px; padding: 64px 60px;
}
.join-box h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.03em; margin-bottom: 18px;
}
.join-box p { font-size: 1.02rem; color: var(--text-2); margin-bottom: 14px; line-height: 1.7; }
.join-box .btn-green { margin-top: 16px; }

/* ─────────────────────────────────────────
   Contact
   ───────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 600px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}

/* ─────────────────────────────────────────
   Forms, steps & FAQ
   ───────────────────────────────────────── */
.form-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px; max-width: 640px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-2);
}
.form-field input, .form-field textarea, .form-field select {
  background: var(--bg-1); border: 1px solid var(--border-2);
  border-radius: 10px; padding: 11px 14px;
  font-family: 'Inter', sans-serif; font-size: 0.93rem; color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--green);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.78rem; color: var(--text-2); margin-top: 12px; }

.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; position: relative;
}
.step-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 800;
  color: var(--green); opacity: 0.85; margin-bottom: 10px; display: block;
}
.step-card h3 { font-size: 0.99rem; font-weight: 700; margin-bottom: 7px; }
.step-card p { font-size: 0.87rem; color: var(--text-2); line-height: 1.6; }

.faq-list { max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-size: 0.97rem; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.3rem; color: var(--green); flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--green); }
.faq-item p { padding: 0 22px 18px; font-size: 0.92rem; color: var(--text-2); line-height: 1.7; }
.contact-card h3 {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-2); margin-bottom: 12px;
}
.contact-card a { color: var(--green); font-weight: 600; font-size: 0.97rem; }
.contact-card a:hover { text-decoration: underline; }
.social-list { display: flex; flex-direction: column; gap: 10px; }
.social-row {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-2); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s var(--ease);
}
.social-row:hover { color: var(--text); }
.social-row svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─────────────────────────────────────────
   Footer
   ───────────────────────────────────────── */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 30px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
}
.footer-brand img { height: 28px; width: 28px; border-radius: 6px; object-fit: contain; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: var(--text-2); transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p, .footer-bottom a { font-size: 0.81rem; color: var(--text-2); }
.footer-bottom a { transition: color 0.2s var(--ease); }
.footer-bottom a:hover { color: var(--green); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { display: inline-flex; color: var(--text-2); }
.footer-social svg { width: 18px; height: 18px; }
.footer-social a:hover { color: var(--green); }

/* ─────────────────────────────────────────
   Generic Page Hero (About / Programs / Join / Contact)
   ───────────────────────────────────────── */
.page-hero {
  padding: 88px 0 64px; position: relative; overflow: hidden;
  background: var(--bg-1); border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 480px; height: 480px;
  background: var(--green);
  border-radius: 50%; opacity: 0.05; filter: blur(100px);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .label { margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 16px; max-width: 720px;
}
.page-hero p { font-size: 1.05rem; color: var(--text-2); max-width: 640px; line-height: 1.7; }

/* ─────────────────────────────────────────
   Project Pages
   ───────────────────────────────────────── */
.proj-hero {
  padding: 72px 0 64px; position: relative; overflow: hidden;
  background: var(--bg-1); border-bottom: 1px solid var(--border);
}
.proj-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 480px; height: 480px;
  background: var(--c, #00df6b);
  border-radius: 50%; opacity: 0.055; filter: blur(90px);
  pointer-events: none;
}
.proj-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.proj-hero .container { position: relative; z-index: 1; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem; font-weight: 500; color: var(--text-2);
  transition: color 0.2s var(--ease); margin-bottom: 30px;
}
.back-link:hover { color: var(--green); }

.proj-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.p-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
}
.p-tag.prog { background: rgba(0,223,107,0.1); border: 1px solid rgba(0,223,107,0.2); color: var(--green); }
.p-tag.cat  { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-2); }

.proj-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 20px; max-width: 720px;
}
.proj-sub { font-size: 1.1rem; color: var(--text-2); max-width: 600px; line-height: 1.65; margin-bottom: 26px; }
.proj-status {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px;
  font-size: 0.8rem; color: var(--text-2);
}

.proj-hero-art {
  position: absolute; bottom: 24px; right: 5%;
  width: clamp(120px, 14vw, 180px); height: auto;
  color: var(--c, #00df6b); opacity: 0.35;
  pointer-events: none; z-index: 0;
}
@media (max-width: 1100px) { .proj-hero-art { display: none; } }

.proj-page-body { padding: 80px 0; }
.proj-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }

.proj-main h2 {
  font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em;
  margin: 44px 0 14px; color: var(--text);
}
.proj-main h2:first-child { margin-top: 0; }
.proj-main p { font-size: 0.99rem; color: var(--text-2); line-height: 1.78; margin-bottom: 14px; }

.aspect-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.aspect-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.97rem; color: var(--text-2); line-height: 1.6;
}
.aspect-list li::before {
  content: ''; width: 6px; height: 6px; margin-top: 8px;
  background: var(--green); border-radius: 50%; flex-shrink: 0;
}

.proj-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 88px; }
.proj-poster {
  width: 100%; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); line-height: 0;
  cursor: zoom-in; transition: border-color 0.2s var(--ease);
}
.proj-poster:hover { border-color: rgba(0,223,107,0.4); }
.proj-poster img { width: 100%; height: auto; display: block; }
.proj-poster-cap {
  font-size: 0.7rem; color: var(--text-2); text-align: center;
  margin-top: 8px; letter-spacing: 0.4px;
}
.proj-poster-cap::after { content: ' · click to enlarge'; opacity: 0.7; }

.founders-photo { max-width: 420px; margin: 0 auto 56px; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(5, 10, 8, 0.92); padding: 32px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 2.2rem; line-height: 1; color: #fff; opacity: 0.7;
}
.lightbox-close:hover { opacity: 1; }
.detail-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.detail-card h3 {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-2); margin-bottom: 8px;
}
.detail-card p  { font-size: 0.91rem; color: var(--text); line-height: 1.6; }
.detail-card a  { font-size: 0.91rem; color: var(--green); font-weight: 600; }
.detail-card a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   Scroll Reveal
   ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─────────────────────────────────────────
   Responsive – 1024px
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .explore-grid { grid-template-columns: repeat(2,1fr); }
  .proj-layout { grid-template-columns: 1fr; gap: 48px; }
  .proj-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .detail-card { flex: 1; min-width: 180px; }
  .proj-poster, .proj-poster-cap { width: 100%; }
}

/* ─────────────────────────────────────────
   Responsive – 768px
   ───────────────────────────────────────── */
@media (max-width: 768px) {
  .explore-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none; position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(3,8,15,0.99);
    flex-direction: column;
    padding: 10px 5% 22px;
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { margin: 0; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3    { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 100%; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .join-box { padding: 40px 28px; }
  .footer-top    { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .h-stat-div { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

/* ─────────────────────────────────────────
   Responsive – 540px
   ───────────────────────────────────────── */
@media (max-width: 540px) {
  .section { padding: 80px 0; }
  .hero h1 { letter-spacing: -0.025em; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* ─────────────────────────────────────────
   Timeline — central line, alternating cards
   ───────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 920px;
  margin: 56px auto 0;
  padding: 10px 0 30px;
}
.tl-line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.tl-line-fill {
  width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--green), #06b6d4);
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(0,223,107,0.55);
  transition: height 0.15s linear;
}
.tl-item {
  position: relative;
  width: 50%;
  padding: 0 48px 56px 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.tl-item.lit { opacity: 1; transform: translateY(0); }
.tl-item:nth-child(even of .tl-item) {
  left: 50%;
  padding: 0 0 56px 48px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  top: 22px; right: -9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid rgba(255,255,255,0.18);
  z-index: 2;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s, transform 0.4s;
}
.tl-item:nth-child(even of .tl-item) .tl-dot { right: auto; left: -9px; }
.tl-item.lit .tl-dot {
  border-color: var(--c, var(--green));
  background: var(--c, var(--green));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--green)) 18%, transparent), 0 0 16px var(--c, var(--green));
  transform: scale(1.1);
}

.tl-year {
  position: absolute;
  top: 16px; left: calc(100% + 34px);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-2);
  opacity: 0;
  transition: opacity 0.5s, color 0.5s;
}
.tl-item:nth-child(even of .tl-item) .tl-year { left: auto; right: calc(100% + 34px); }
.tl-item.lit .tl-year { opacity: 1; color: var(--c, var(--green)); }

.tl-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
a.tl-card:hover {
  transform: translateY(-4px);
  border-color: var(--c, var(--green));
  box-shadow: 0 14px 36px rgba(0,0,0,0.45), 0 0 0 1px color-mix(in srgb, var(--c, var(--green)) 35%, transparent);
}
a.tl-card:hover .text-link { letter-spacing: 0.4px; }
.tl-date {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--c, var(--green));
  margin-bottom: 8px;
}
.tl-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.tl-card p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 8px;
}
.tl-card .text-link { font-size: 0.85rem; transition: letter-spacing 0.3s; }
.tl-card > .text-link { display: inline-block; }

.tl-milestone .tl-card {
  background: linear-gradient(135deg, rgba(0,223,107,0.10), var(--bg-card-2));
  border-color: rgba(0,223,107,0.35);
}

@media (max-width: 760px) {
  .tl-line { left: 9px; transform: none; }
  .tl-item,
  .tl-item:nth-child(even of .tl-item) {
    width: 100%;
    left: 0;
    padding: 0 0 44px 44px;
  }
  .tl-dot,
  .tl-item:nth-child(even of .tl-item) .tl-dot { left: 1px; right: auto; }
  .tl-year,
  .tl-item:nth-child(even of .tl-item) .tl-year {
    position: static;
    display: block;
    margin-bottom: 6px;
  }
}

/* ─────────────────────────────────────────
   Recognition strip
   ───────────────────────────────────────── */
.recog-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  padding: 26px 0;
}
.recog-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 32px;
}
.recog-item { display: flex; flex-direction: column; gap: 3px; }
.recog-k {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--green);
}
.recog-v { font-size: 0.92rem; font-weight: 600; color: var(--text); }

/* ─────────────────────────────────────────
   Newsletter
   ───────────────────────────────────────── */
.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.newsletter-form input[type="email"] {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  padding: 13px 18px;
  font: inherit;
  font-size: 0.95rem;
  min-width: 280px;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--green);
}

/* ─────────────────────────────────────────
   Light theme
   ───────────────────────────────────────── */
[data-theme="light"] {
  --bg:        #f4f7fa;
  --bg-1:      #eaeff5;
  --bg-card:   #ffffff;
  --bg-card-2: #f0f4f8;
  --green:     #00a854;
  --green-d:   #007a3d;
  --text:      #16222e;
  --text-2:    #51626f;
  --border:    rgba(10,30,50,0.10);
  --border-2:  rgba(10,30,50,0.18);
}
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] .nav { background: rgba(244,247,250,0.92); }
[data-theme="light"] .tl-line { background: rgba(10,30,50,0.12); }
[data-theme="light"] .tl-dot { background: var(--bg-1); border-color: rgba(10,30,50,0.25); }
[data-theme="light"] a.tl-card:hover { box-shadow: 0 14px 36px rgba(10,30,50,0.14); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  width: 36px; height: 36px;
  margin-left: 24px;
  cursor: pointer;
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--green); border-color: var(--green); }
.theme-toggle svg { width: 17px; height: 17px; }

.lang-toggle {
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  height: 36px;
  padding: 0 12px;
  margin-left: 12px;
  cursor: pointer;
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.lang-toggle:hover { color: var(--green); border-color: var(--green); }

/* Light theme: fix hardcoded whites */
[data-theme="light"] .hero h1 {
  background: linear-gradient(138deg, #16222e 45%, #00a854 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .h-stat-n { color: var(--text); }
[data-theme="light"] .proj-cat { color: var(--green-d); }
[data-theme="light"] .more-icon { color: var(--text); }
[data-theme="light"] .hero-grid {
  background-image: radial-gradient(circle, rgba(10,30,50,0.10) 1px, transparent 1px);
}
[data-theme="light"] .page-hero,
[data-theme="light"] .proj-hero {
  background-image:
    linear-gradient(rgba(10,30,50,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,30,50,0.05) 1px, transparent 1px);
}

/* ── Project card poster thumbnails ── */
.proj-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}

/* ── News page ── */
.news-list { max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.news-item h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  margin: 4px 0 10px;
}
.news-item p { color: var(--text-2); font-size: 0.92rem; line-height: 1.7; margin-bottom: 10px; }

/* ── Form feedback ── */
.form-success {
  color: var(--green);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  padding: 20px 0;
}
.form-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .tl-item { opacity: 1 !important; transform: none !important; }
}
