/*
Theme Name: Health Founders 2.0
Theme URI: https://healthfounders.ee
Author: Health Founders
Author URI: https://healthfounders.ee
Description: Custom single-page homepage theme for Health Founders 2.0 — an AI-native health technology accelerator. Includes the full homepage layout, team grid, mentors, portfolio, partners, and contact section.
Version: 21.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthfounders
*/

:root {
  --black: #0a0a0a;
  --white: #f5f3ee;
  --off: #1a1a1a;
  --mid: #2a2a2a;
  --muted: #888;
  --border: rgba(255,255,255,0.1);
  --lime: #BEFA4A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
  color: var(--white);
}

.hf-logo-img {
  display: block; height: 38px; width: auto; flex-shrink: 0;
  object-fit: contain;
}

.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  color: var(--muted); text-decoration: none; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--lime); color: var(--black);
  padding: 0.55rem 1.2rem; border-radius: 2px;
  text-decoration: none; font-weight: 500;
  transition: opacity 0.2s; flex-shrink: 0;
}

.nav-cta:hover { opacity: 0.85; }

/* HERO */
#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 2.5rem 5rem;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0f0f0f 0%, #0a0a0a 60%, #111 100%);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 100%, black 0%, transparent 100%);
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2rem; position: relative;
  display: flex; align-items: center; gap: 12px;
}

.hero-eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--muted); flex-shrink: 0;
}

.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 980px;
  position: relative;
  margin-bottom: 3rem;
}

.hero-h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero-sub-row {
  display: flex; align-items: flex-end; gap: 4rem; position: relative;
  flex-wrap: wrap;
}

.hero-sub {
  font-size: 1.1rem; color: rgba(245,243,238,0.75);
  max-width: 460px; line-height: 1.7;
}

.hero-cta-group {
  display: flex; gap: 1rem; align-items: center; flex-shrink: 0;
}

.btn-primary {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--lime); color: var(--black);
  padding: 0.85rem 2rem; border-radius: 2px;
  text-decoration: none; font-weight: 500;
  transition: opacity 0.2s; display: inline-block;
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--white); border-color: var(--white); }

/* ESTONIA BADGE */
.estonia-badge {
  margin-top: 2.5rem; position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lime); opacity: 0.75;
}

.estonia-badge::before {
  content: '\2605'; font-size: 0.55rem;
}

/* SECTIONS */
section { padding: 7rem 2.5rem; border-top: 1px solid var(--border); }

.section-label {
  font-family: 'DM Mono', monospace; font-size: 1rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 12px;
}

.section-label::before {
  content: attr(data-num); font-size: 0.9rem; color: #4a4a4a;
}

.section-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.7rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
}

.section-h2 em {
  font-style: normal;
  color: var(--lime);
}

/* STATS BAR */
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  margin-bottom: 3.5rem;
}

.stat-cell {
  background: var(--black); padding: 2rem 2.5rem;
}

.stat-cell .stat-num {
  font-family: 'Syne', sans-serif; font-size: 3.7rem;
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1; margin-bottom: 0.45rem; color: var(--lime);
}

.stat-cell .stat-label {
  font-family: 'DM Mono', monospace; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.8rem;
}

.stat-cell .stat-desc {
  font-size: 1rem; color: rgba(245,243,238,0.75); line-height: 1.65;
}

/* LEGACY */
.timeline-bar {
  display: flex; gap: 1px; background: var(--border);
  border: 1px solid var(--border); margin-bottom: 3.5rem;
}

.tl-step {
  flex: 1; background: var(--black); padding: 1.5rem;
}

.tl-step.active { background: var(--off); }

.tl-era {
  font-family: 'DM Mono', monospace; font-size: 0.95rem;
  letter-spacing: 0.1em; color: var(--white); margin-bottom: 0.5rem;
  font-weight: 500;
}

.tl-desc { font-family: 'DM Sans', sans-serif; font-size: 1rem; line-height: 1.45; color: rgba(245,243,238,0.8); }

.legacy-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); margin-bottom: 3.5rem;
}

.legacy-cell { background: var(--black); padding: 2.5rem; }

.legacy-cell .cell-num {
  font-family: 'Syne', sans-serif; font-size: 4.4rem;
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1; margin-bottom: 0.4rem; color: var(--lime);
}

.legacy-cell .cell-label {
  font-family: 'DM Mono', monospace; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.75rem;
}

.legacy-cell .cell-desc {
  font-size: 1rem; color: rgba(245,243,238,0.75); line-height: 1.65;
}

.activities-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}

.activity-item {
  padding: 1.5rem; border: 1px solid var(--border);
}

.activity-item h4 {
  font-family: 'Syne', sans-serif; font-size: 1.15rem;
  font-weight: 600; margin-bottom: 0.6rem; letter-spacing: -0.01em;
}

.activity-item p {
  font-size: 1rem; color: rgba(245,243,238,0.75); line-height: 1.65;
}

.activity-item a {
  color: var(--lime); text-decoration: none; font-size: 0.75rem;
  font-family: 'DM Mono', monospace; letter-spacing: 0.05em;
  display: inline-block; margin-top: 0.75rem;
  border-bottom: 1px solid rgba(190,250,74,0.3);
  padding-bottom: 1px; transition: border-color 0.2s;
}

.activity-item a:hover { border-color: var(--lime); }

/* WHAT IS IT */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}

.what-body {
  font-size: 1.1rem; color: rgba(245,243,238,0.75); line-height: 1.8;
}

.format-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem;
}

.tag {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--border); padding: 0.4rem 0.75rem; color: var(--muted);
}

.programme-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--lime);
  margin-top: 1.5rem;
}

.phase-stack {
  display: flex; flex-direction: column; gap: 1.25rem;
  margin-top: 2rem;
}

.phase-card {
  border-left: 3px solid var(--lime);
  padding: 0.25rem 0 0.25rem 1.5rem;
}

.phase-label {
  font-family: 'Syne', sans-serif; font-size: 1.05rem;
  font-weight: 600; letter-spacing: -0.01em;
  color: var(--white); margin-bottom: 0.4rem;
}

.phase-body {
  font-size: 0.98rem; color: rgba(245,243,238,0.7); line-height: 1.7;
}

/* AI NATIVE */
#ai-native { background: var(--off); }

.ai-statement {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 880px; margin-bottom: 2rem;
  border-left: 3px solid var(--lime); padding-left: 2rem;
}

.ai-body {
  font-size: 1.1rem; color: rgba(245,243,238,0.75);
  max-width: 640px; line-height: 1.8;
  padding-left: 2rem; border-left: 3px solid var(--border);
}

/* OFFER - VALUE PROPS */
.value-props-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); margin: 3rem 0;
}

.value-prop {
  background: var(--black); padding: 2rem 1.75rem; transition: background 0.2s;
}

.value-prop:hover { background: var(--off); }

.vp-num {
  font-family: 'Syne', sans-serif; font-size: 2.6rem;
  font-weight: 800; line-height: 1; margin-bottom: 1rem;
  color: var(--lime); letter-spacing: -0.03em;
}

.vp-name {
  font-family: 'DM Sans', sans-serif; font-size: 1.05rem;
  font-weight: 500; margin-bottom: 0.55rem;
}

.vp-desc { font-size: 0.95rem; color: rgba(245,243,238,0.7); line-height: 1.65; }

/* COMMUNITY EXTRAS */
.extras-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); margin-top: 2rem;
}

.extra-item {
  background: var(--off); padding: 1.5rem;
}

.extra-item h4 {
  font-family: 'DM Mono', monospace; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 0.6rem;
}

.extra-item p {
  font-size: 0.95rem; color: rgba(245,243,238,0.7); line-height: 1.6;
}

/* ELIGIBILITY */
.elig-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); margin: 3rem 0;
}

.elig-col { background: var(--black); padding: 2.5rem; }

.elig-col h3 {
  font-family: 'DM Mono', monospace; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}

.elig-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }

.elig-col ul li {
  font-size: 1.05rem; display: flex; align-items: baseline; gap: 0.75rem;
}

.elig-col ul li::before {
  content: '\2713'; font-family: 'DM Mono', monospace;
  font-size: 0.72rem; color: var(--lime); flex-shrink: 0;
}

.elig-col.no ul li::before { content: '\2717'; color: #b05050; }

.scope-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

.scope-tag {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(190, 250, 74, 0.3); color: var(--lime);
  padding: 0.4rem 0.8rem;
}

/* TIMELINE */
.tl-program {
  margin-top: 3rem; display: flex; flex-direction: column; gap: 1px;
  border: 1px solid var(--border);
}

.tl-row {
  display: flex; align-items: stretch;
  background: var(--border); gap: 1px;
}

.tl-date-col {
  background: var(--off); padding: 1.5rem 2rem;
  min-width: 160px; flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: center;
}

.tl-date-col .date {
  font-family: 'DM Mono', monospace; font-size: 0.95rem;
  letter-spacing: 0.08em; color: var(--white); font-weight: 500;
}

.tl-content-col {
  background: var(--black); padding: 1.5rem 2rem; flex: 1;
  display: flex; align-items: center; gap: 3rem;
}

.tl-phase {
  font-family: 'Syne', sans-serif; font-size: 1.15rem;
  font-weight: 600; min-width: 220px; letter-spacing: -0.01em;
}

.tl-detail { font-size: 1rem; color: rgba(245,243,238,0.75); line-height: 1.55; }

.tl-count {
  font-family: 'Syne', sans-serif; font-size: 1.85rem;
  font-weight: 800; flex-shrink: 0;
  color: var(--lime); letter-spacing: -0.03em;
  min-width: 80px;
}

/* PORTFOLIO */
.portfolio-intro {
  font-size: 1.1rem; color: rgba(245,243,238,0.75); max-width: 580px;
  line-height: 1.7; margin-bottom: 3rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px; background: #e8e8e8; border: 1px solid #e8e8e8;
}

.logo-cell {
  background: #ffffff; padding: 2rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 110px; transition: background 0.25s;
  text-decoration: none;
}

.logo-cell img {
  max-width: 100%; max-height: 60px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.logo-cell:hover img { transform: scale(1.04); }

/* Cells whose logo artwork already has a dark/colored background:
   make the whole cell dark so the logo blends in. */
.logo-cell-dark { background: #0a0a0a; }

/* Dark-green-background cells (Intelligent Assist, Mentastic, etc.) —
   match the logo artwork's own background so no white rectangle shows. */
.logo-cell-darkgreen { background: #0b3d2e; }

.logo-placeholder {
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  font-size: 0.95rem; color: #1a1a1a; letter-spacing: -0.01em;
  text-align: center;
}
#portfolio .logo-placeholder { color: #1a1a1a; }

/* PORTFOLIO — light cells, natural-colour logos, subtle hover scale.
   Specific cells override the white background only when the logo art
   itself has a coloured background (so the rectangle doesn't show). */
#portfolio .logo-grid {
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
}

#portfolio .logo-cell-darkgreen { background: #0b3d2e; }
#portfolio .logo-cell-dark { background: #0a0a0a; }

/* Essence logo should render larger than the default */
#portfolio .logo-cell-essence img { max-height: 78px; }
#portfolio .logo-cell-essence { padding: 1.25rem 1rem; }

/* MENTORS */
.mentors-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); margin-top: 3rem;
}

.mentor-card { background: var(--black); padding: 2rem; transition: background 0.2s; }
.mentor-card:hover { background: var(--off); }

.mentor-photo {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--mid); margin-bottom: 1.25rem; overflow: hidden;
}

.mentor-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%); opacity: 0.85;
  transition: filter 0.25s, opacity 0.25s;
}

.mentor-card:hover .mentor-photo img {
  filter: grayscale(0%); opacity: 1;
}

.mentor-name {
  font-family: 'Syne', sans-serif; font-size: 1.2rem;
  font-weight: 600; margin-bottom: 0.3rem; letter-spacing: -0.01em;
}

.mentor-role { font-size: 1rem; color: rgba(245,243,238,0.7); line-height: 1.55; }

/* MENTOR CTA STRIP */
.mentor-cta-strip {
  margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}

.mentor-cta-box {
  background: var(--off); padding: 2rem 2.5rem;
}

.mentor-cta-box h3 {
  font-family: 'Syne', sans-serif; font-size: 1.2rem;
  font-weight: 600; margin-bottom: 0.6rem;
}

.mentor-cta-box p {
  font-size: 1rem; color: rgba(245,243,238,0.7); line-height: 1.65; margin-bottom: 1.35rem;
}

/* TEAM */
.team-intro {
  font-size: 1.15rem; color: rgba(245,243,238,0.75); max-width: 780px;
  line-height: 1.7; margin-bottom: 0;
}

.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); margin-top: 3rem;
}

.team-card {
  background: var(--black); padding: 2.5rem;
}

.team-photo {
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--mid); margin-bottom: 1.5rem; overflow: hidden;
}

.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%); opacity: 0.9;
  transition: filter 0.25s, opacity 0.25s;
}

.team-card:hover .team-photo img {
  filter: grayscale(0%); opacity: 1;
}

.team-name {
  font-family: 'Syne', sans-serif; font-size: 1.65rem;
  font-weight: 700; margin-bottom: 0.3rem; letter-spacing: -0.015em;
}

.team-role {
  font-family: 'DM Mono', monospace; font-size: 0.88rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 1.1rem;
}

.team-bio {
  font-size: 1.05rem; color: rgba(245,243,238,0.75); line-height: 1.75;
}

.team-contacts {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
}

.team-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: 'DM Mono', monospace; font-size: 0.78rem;
  letter-spacing: 0.03em; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}

.team-link:hover { color: var(--lime); }
.team-link svg { flex-shrink: 0; }

/* PARTNERS — share the portfolio's white-cell styling so logos render in natural colors */
#partners .logo-cell img {
  max-height: 55px;
}

/* NEWSLETTER */
#newsletter {
  background: var(--off);
}

.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}

.newsletter-form {
  display: flex; gap: 0;
}

.newsletter-form input {
  flex: 1; background: var(--black); border: 1px solid var(--border);
  border-right: none; padding: 0.85rem 1.25rem;
  font-family: 'DM Mono', monospace; font-size: 0.75rem;
  color: var(--white); outline: none; letter-spacing: 0.05em;
}

.newsletter-form input::placeholder { color: var(--muted); }

.newsletter-form button {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--lime); color: var(--black);
  padding: 0.85rem 1.5rem; border: none; cursor: pointer;
  font-weight: 500; transition: opacity 0.2s;
}

.newsletter-form button:hover { opacity: 0.85; }


/* CONTACT */
#contact {
  background: var(--off);
}

.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); margin-top: 2.5rem;
}

.contact-item {
  background: var(--black); padding: 2.25rem;
}

.contact-label {
  font-family: 'DM Mono', monospace; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}

.contact-link {
  font-family: 'Syne', sans-serif; font-size: 1.25rem;
  font-weight: 600; letter-spacing: -0.01em;
  color: var(--white); text-decoration: none;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover { color: var(--lime); border-color: var(--lime); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* APPLY CTA */
#apply {
  background: var(--lime); color: var(--black);
  text-align: center; padding: 8rem 2.5rem;
}

#apply .section-label { color: rgba(0,0,0,0.4); justify-content: center; }
#apply .section-label::before { color: rgba(0,0,0,0.2); }
#apply .section-h2 { color: var(--black); }
#apply .section-h2 em { color: rgba(0,0,0,0.35); }

#apply p {
  font-size: 1.1rem; color: rgba(0,0,0,0.6); margin: 1rem auto 2.5rem;
  max-width: 480px; line-height: 1.65;
}

.btn-dark {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--black); color: var(--white);
  padding: 0.9rem 2.2rem; text-decoration: none; font-weight: 500;
  display: inline-block; transition: opacity 0.2s;
}

.btn-dark:hover { opacity: 0.8; }

.deadline {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(0,0,0,0.4); margin-top: 1.25rem;
}

/* FOOTER */
footer.site-footer {
  padding: 3rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}

.footer-logo {
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.9rem;
  color: var(--white);
}

.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }

.footer-links a {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-legal {
  font-family: 'DM Mono', monospace; font-size: 0.58rem;
  letter-spacing: 0.08em; color: #3a3a3a; text-align: right; line-height: 1.7;
}

.footer-contact {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.05em; color: var(--muted);
  line-height: 1.8; text-align: right;
  display: flex; flex-direction: column; gap: 0.1rem;
}

.footer-contact a {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer-contact a:hover {
  color: var(--lime); border-bottom-color: rgba(190,250,74,0.4);
}

.footer-contact .footer-copy {
  margin-top: 0.6rem; color: #3a3a3a; font-size: 0.6rem;
}

@media (max-width: 700px) {
  .footer-contact { text-align: left; }
}

/* BLOG */
.blog-section {
  padding-top: 9rem;
}

.blog-intro {
  font-size: 1rem; color: var(--muted); max-width: 640px;
  line-height: 1.7; margin-bottom: 3rem;
}

.blog-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  margin-bottom: 4rem;
}

.blog-card {
  background: var(--black); display: flex;
  transition: background 0.2s;
}

.blog-card:hover { background: var(--off); }

.blog-card-link {
  display: flex; flex-direction: column; text-decoration: none;
  color: inherit; height: 100%;
}

.blog-card-thumb {
  width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--mid);
}

.blog-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(40%); transition: filter 0.25s;
}

.blog-card:hover .blog-card-thumb img { filter: grayscale(0%); }

.blog-card-body {
  padding: 1.75rem; flex: 1;
  display: flex; flex-direction: column;
}

.blog-card-meta {
  display: flex; gap: 1rem;
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}

.blog-card-cat { color: var(--lime); }

.blog-card-title {
  font-family: 'Syne', sans-serif; font-size: 1.25rem;
  font-weight: 700; line-height: 1.2; letter-spacing: -0.015em;
  margin-bottom: 0.75rem; color: var(--white);
}

.blog-card-excerpt {
  font-size: 0.9rem; color: var(--muted); line-height: 1.6;
  margin-bottom: 1.25rem; flex: 1;
}

.blog-card-readmore {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lime);
}

.blog-pagination {
  margin-top: 2rem;
}

.blog-pagination .nav-links {
  display: flex; gap: 0.5rem; justify-content: center;
  font-family: 'DM Mono', monospace; font-size: 0.75rem;
}

.blog-pagination a, .blog-pagination span {
  padding: 0.5rem 0.9rem; border: 1px solid var(--border);
  color: var(--muted); text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.blog-pagination a:hover { background: var(--off); color: var(--white); }
.blog-pagination .current { background: var(--lime); color: var(--black); border-color: var(--lime); }

.blog-empty {
  font-size: 1rem; color: var(--muted); padding: 3rem 0;
}

/* SINGLE POST */
.single-post {
  max-width: 760px; margin: 0 auto; padding-top: 9rem;
}

.back-to-blog {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  display: inline-block; margin-bottom: 3rem;
  transition: color 0.2s;
}

.back-to-blog:hover { color: var(--lime); }

.post-header { margin-bottom: 2.5rem; }

.post-meta {
  display: flex; gap: 1rem;
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}

.post-cat { color: var(--lime); }

.post-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--white);
}

.post-thumb {
  margin: 0 0 2.5rem; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--mid);
}

.post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-content {
  font-size: 1.05rem; color: rgba(245,243,238,0.85);
  line-height: 1.75;
}

.post-content p { margin-bottom: 1.5rem; }
.post-content h2, .post-content h3 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  margin: 2.5rem 0 1rem; letter-spacing: -0.015em;
  color: var(--white);
}
.post-content h2 { font-size: 1.7rem; }
.post-content h3 { font-size: 1.3rem; }
.post-content a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(190,250,74,0.3); }
.post-content a:hover { text-decoration-color: var(--lime); }
.post-content img { max-width: 100%; height: auto; margin: 1.5rem 0; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
  border-left: 3px solid var(--lime); padding-left: 1.5rem;
  margin: 1.5rem 0; font-style: italic; color: var(--muted);
}

.post-footer {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: center;
}

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.post-tag {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--border); padding: 0.35rem 0.75rem;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.post-tag:hover { color: var(--lime); border-color: var(--lime); }

.post-share {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); display: flex; gap: 1rem; align-items: center;
}

.post-share a { color: var(--lime); text-decoration: none; }
.post-share a:hover { color: var(--white); }

.post-nav {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 1rem;
}

.post-nav a {
  font-family: 'DM Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.05em; color: var(--muted);
  text-decoration: none; max-width: 45%;
}

.post-nav a:hover { color: var(--lime); }
.post-nav-next { text-align: right; margin-left: auto; }

@media (max-width: 700px) {
  .post-footer { flex-direction: column; align-items: flex-start; }
  .post-nav { flex-direction: column; gap: 1rem; }
  .post-nav-next { text-align: left; margin-left: 0; }
}

/* FADE IN */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s ease forwards; opacity: 0; }
.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.35s; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .mentors-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .value-props-grid { grid-template-columns: repeat(2, 1fr); }
  .extras-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  nav.site-nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  section { padding: 5rem 1.25rem; }
  #hero { padding: 0 1.25rem 4rem; }
  .two-col, .newsletter-inner { grid-template-columns: 1fr; gap: 2rem; }
  .value-props-grid { grid-template-columns: 1fr; }
  .legacy-grid, .elig-grid, .activities-list, .mentor-cta-strip { grid-template-columns: 1fr; }
  .mentors-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-row { flex-direction: column; }
  .tl-content-col { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .tl-count { margin-left: 0; }
  footer.site-footer { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-legal { text-align: left; }
}

@media (max-width: 600px) {
  .mentors-grid, .team-grid, .extras-row { grid-template-columns: 1fr; }
  .hero-sub-row { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .timeline-bar { flex-direction: column; }
}

