/* =========================================================
   CAELEN SIOW PORTFOLIO — DESIGN SYSTEM
   Editorial · Warm · Confident
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* ----- Surfaces (warm cream system) ----- */
  --bg-primary: #FAF8F4;        /* page bg */
  --bg-secondary: #F7F4EF;      /* section bg */
  --bg-tertiary: #F1ECE3;       /* deeper cream */
  --bg-card: #FFFCF7;           /* warm white cards */
  --on-dark: #FAF8F4;

  /* ----- Text ----- */
  --primary-deep: #172A3A;
  --text-body: #1F2933;
  --primary-slate: #4B5563;
  --text-label: #5C7257;        /* Darkened from #6F9278 — passes WCAG AA 4.95:1 on cream */
  --text-muted: #6B7280;        /* Darkened from #94A3B8 — passes WCAG AA 5.4:1 on cream */

  /* ----- Sage (primary accent) -----
     Darkened from #6F9278 (3.27:1) to #5C7257 (4.95:1) so any text colored
     with --sage passes WCAG AA on cream backgrounds. Backgrounds and decorative
     uses still read as sage; just a slightly deeper, more saturated green. */
  --sage: #5C7257;
  --sage-mid: #8FAF9B;
  --sage-light: #A7BFA8;
  --sage-soft: #D8E4D9;
  --sage-glow: rgba(92, 114, 87, 0.22);

  /* ----- Moon blue (secondary accent) ----- */
  --moon-deep: #8EAECF;
  --moon: #C9D9E8;
  --moon-light: #DDEAF5;
  --moon-glow: rgba(142, 174, 207, 0.22);

  /* ----- Gold (highlight only) ----- */
  --accent-gold: #C8A45D;
  --gold-light: #D6B76C;
  --gold-glow: rgba(200, 164, 93, 0.20);

  /* Aliases (kept for backwards compatibility) */
  --accent-coral: #E8826B;
  --accent-sage: var(--sage);

  /* ----- Functional ----- */
  --border-subtle: #E8E2D6;
  --border-medium: #C9C0B0;
  --error: #C44536;
  --link: var(--sage);
  --link-hover: var(--sage-mid);

  /* Spacing (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;
  --space-10: 160px;

  /* Type scale */
  --fs-h1: clamp(2.5rem, 5vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --fs-h4: 1.125rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.8125rem;
  --fs-stat: clamp(3rem, 6vw, 5rem);

  /* Layout */
  --max-content: 1240px;
  --max-text: 1080px;
  --max-prose: 680px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s var(--ease);
  --t-med: 0.3s var(--ease);
  --t-slow: 0.6s var(--ease);

  /* Shadow */
  --shadow-card: 0 2px 8px rgba(26, 43, 61, 0.04);
  --shadow-hover: 0 12px 40px rgba(26, 43, 61, 0.10);
  --shadow-cta: 0 4px 12px rgba(201, 151, 75, 0.25);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: var(--link); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--link-hover); }
ul, ol { list-style: none; }
input, textarea { font-family: inherit; font-size: inherit; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter Display', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-h4); line-height: 1.4; font-weight: 500; }
p { max-width: 65ch; }
.eyebrow {
  display: inline-block;
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
}
.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--primary-slate);
  max-width: 60ch;
}
.muted { color: var(--text-muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 4. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 64px; } }
.container-narrow { max-width: var(--max-text); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-bg-cream { background: var(--bg-secondary); }
.section-bg-dark { background: var(--primary-deep); color: var(--on-dark); }
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3 { color: var(--on-dark); }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--t-fast);
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--sage);
  color: var(--on-dark);
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(23, 42, 58, 0.04);
}
.btn-primary:hover {
  background: var(--sage-mid);
  color: var(--on-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--sage-glow);
}
.btn-secondary {
  background: var(--bg-card);
  border: 1.5px solid var(--sage);
  color: var(--sage);
  border-radius: 999px;
}
.btn-secondary:hover {
  background: var(--sage);
  color: var(--on-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--sage-glow);
}
.btn-secondary.on-dark {
  border-color: var(--sage-mid);
  color: var(--on-dark);
  background: transparent;
}
.btn-secondary.on-dark:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--on-dark);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-deep);
  font-weight: 500;
  font-size: var(--fs-small);
}
.text-link .arrow {
  display: inline-block;
  transition: transform var(--t-fast);
}
.text-link:hover { color: var(--accent-gold); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- 6. NAV ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(255, 252, 247, 0.65);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(232, 226, 214, 0.6);
  border-radius: 999px;
  box-shadow: 0 2px 14px rgba(23, 42, 58, 0.04);
  transition: all var(--t-med);
  max-width: calc(var(--max-content) - 32px);
  margin: 0 auto;
}
.nav.scrolled {
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 8px 28px rgba(23, 42, 58, 0.08);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav-inner { padding: 0 40px; } }
@media (min-width: 1024px) { .nav-inner { padding: 0 64px; } }
.nav-logo {
  font-family: 'Sora', 'Inter Display', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--primary-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-logo:hover { color: var(--primary-deep); }
.nav-logo .dot { color: var(--accent-gold); }
.nav-logo .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
}
.nav-logo .mark svg { display: block; }
.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-deep);
  position: relative;
  padding: 6px 0;
}
.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent-gold);
}
.nav-cta {
  background: var(--sage);
  color: var(--on-dark) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9375rem;
  transition: all var(--t-fast);
  box-shadow: 0 2px 0 rgba(23, 42, 58, 0.04);
}
.nav-cta:hover {
  background: var(--sage-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--sage-glow);
}
.nav-cta::after { display: none !important; }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-right: -10px;
}
@media (min-width: 768px) { .nav-burger { display: none; } }
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-deep);
  transition: all var(--t-fast);
}
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: 80%;
  max-width: 320px;
  background: var(--bg-primary);
  z-index: 99;
  padding: 96px 32px 32px;
  transform: translateX(100%);
  transition: transform var(--t-med);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-deep);
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 43, 61, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
  z-index: 98;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------- 7. HERO ---------- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 80px; }
}
.hero-eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 24px; max-width: 14ch; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, transparent 0% 60%, rgba(201, 151, 75, 0.25) 60% 95%, transparent 95%);
}
.hero-sub { margin-bottom: 40px; }
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  color: var(--primary-slate);
}
.hero-meta .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-sage);
  position: relative;
}
.hero-meta .pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-sage);
  opacity: 0.3;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

.hero-portrait {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-hover);
}
.hero-portrait .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 151, 75, 0.18), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(232, 130, 107, 0.14), transparent 50%),
    linear-gradient(135deg, var(--bg-secondary), #EDE6D8);
  font-family: 'Inter Display', sans-serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: rgba(26, 43, 61, 0.12);
  letter-spacing: -0.05em;
}
.hero-portrait .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: inherit;
}
.about-portrait { padding: 0; overflow: hidden; }
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.hero-portrait .badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: var(--fs-small);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(26, 43, 61, 0.08);
}
.hero-portrait .badge-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

/* ---------- 8. STATS BAR ---------- */
.stats-bar { padding: 80px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(5, 1fr); gap: 48px 32px; } }
.stat {
  text-align: left;
  padding-right: 16px;
}
@media (min-width: 1024px) {
  .stat:not(:last-child) { border-right: 1px solid rgba(250, 248, 244, 0.12); }
}
.stat-number {
  font-family: 'Inter Display', sans-serif;
  font-size: var(--fs-stat);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.stat-label {
  font-size: var(--fs-small);
  color: rgba(250, 248, 244, 0.7);
  line-height: 1.4;
}

/* ---------- 9. VIDEO BLOCK ---------- */
.video-block {
  max-width: 840px;
  margin: 0 auto;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--primary-deep);
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  transition: transform var(--t-med);
}
.video-frame:hover { transform: translateY(-4px); }
.video-thumb {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 43, 61, 0.55), rgba(45, 74, 92, 0.45)),
    radial-gradient(circle at 30% 40%, rgba(201, 151, 75, 0.35), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform var(--t-fast);
}
.video-frame:hover .play-btn { transform: scale(1.08); }
.play-btn svg { color: var(--primary-deep); margin-left: 4px; }
.video-caption {
  margin-top: 24px;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--primary-slate);
}

/* ---------- 10. SECTION HEADERS ---------- */
.section-header {
  margin-bottom: 64px;
  max-width: 760px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-header.center p { margin-left: auto; margin-right: auto; }
.section-header .eyebrow {
  margin-bottom: 18px;
  font-size: 1rem;
  letter-spacing: 0.14em;
}
.section-header h2 { margin-bottom: 20px; }

/* ---------- 11. PROJECT CARDS ---------- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; } }

.project-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.project-cover {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}
.project-cover .visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter Display', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: rgba(26, 43, 61, 0.5);
  transition: transform var(--t-med);
}
.project-card:hover .visual { transform: scale(1.04); }
.project-cover.ai {
  background: linear-gradient(135deg, #1A2B3D 0%, #2D4A5C 100%);
  color: white;
}
.project-cover.ai .visual { color: rgba(255, 255, 255, 0.9); }
.project-cover.curriculum {
  background: linear-gradient(135deg, #C9974B 0%, #E8826B 100%);
  color: white;
}
.project-cover.curriculum .visual { color: white; }
.project-cover.systems {
  background: linear-gradient(135deg, #7A9B7E 0%, #5C7A66 100%);
  color: white;
}
.project-cover.systems .visual { color: white; }
.project-cover.modality {
  background: linear-gradient(135deg, #F4F1EC 0%, #C9C0B0 100%);
}

.project-cover .corner-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-label);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
@media (min-width: 768px) { .project-body { padding: 40px; } }
.project-label {
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
}
.project-card h3 { color: var(--primary-deep); }
.project-impact {
  color: var(--primary-slate);
  font-size: 1rem;
}
.project-stats {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 8px 0;
}
.project-stat .num {
  font-family: 'Inter Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.project-stat .lbl {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  margin-top: 4px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: var(--bg-secondary);
  color: var(--text-label);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.project-card .text-link { margin-top: auto; padding-top: 8px; }

/* ---------- 11b. FEATURED ROWS (editorial layout) ---------- */
.featured-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vw, 140px);
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
  }
  /* Alternate sides: even rows place content left, visual right */
  .feature-row:nth-child(even) .feature-visual { order: 2; }
  .feature-row:nth-child(even) .feature-content { order: 1; }
}
.feature-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #DCE6EF 0%, #F4F1EC 100%);
  /* Lock to 16:9 — don't let the grid row stretch the panel taller than
     its banner aspect. Vertically center the panel so it sits in the
     middle of the row (same position across all 5 cards). */
  align-self: center;
  width: 100%;
}
.feature-visual.tone-cool {
  background: linear-gradient(135deg, #DCE6EF 0%, #F4F1EC 95%);
}
.feature-visual.tone-warm {
  background: linear-gradient(135deg, #F4ECDA 0%, #E5EBF1 100%);
}
.feature-visual.tone-sage {
  background: linear-gradient(135deg, #E4ECE4 0%, #F4F1EC 100%);
}
.feature-visual.tone-coral {
  background: linear-gradient(135deg, #F4E4DC 0%, #ECECF1 100%);
}
.feature-num {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--primary-deep);
  z-index: 2;
}
.feature-orb {
  position: absolute;
  bottom: 14%;
  right: 14%;
  width: clamp(48px, 9%, 80px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 35%, rgba(184, 197, 214, 0.85) 75%, rgba(140, 160, 185, 0.95) 100%);
  box-shadow:
    0 18px 36px rgba(26, 42, 58, 0.22),
    inset -6px -6px 14px rgba(140, 160, 185, 0.35);
}
.feature-content { padding-top: 8px; }
.feature-meta {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-slate);
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.feature-title {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--primary-deep);
  margin-bottom: 28px;
}
.feature-desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 32px;
  max-width: 56ch;
}
.feature-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.feature-tag {
  border: 1px solid var(--border-medium);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.9375rem;
  color: var(--text-body);
  background: transparent;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  transition: all var(--t-fast);
}
.feature-tag.tag-sage { border-color: var(--accent-sage); color: var(--accent-sage); }
.feature-tag.tag-gold { border-color: var(--accent-gold); color: var(--accent-gold); }
.feature-tag:hover { background: var(--bg-secondary); }
.feature-link {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--primary-deep);
  border-bottom: 1px solid var(--primary-deep);
  padding-bottom: 4px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  transition: gap var(--t-fast);
}
.feature-link:hover {
  color: var(--primary-deep);
  gap: 18px;
}
.feature-link .arrow { font-style: normal; }

/* ---------- 12. ARTICLE CARDS ---------- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.article-cover {
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  position: relative;
}
.article-cover.c1 { background: linear-gradient(135deg, #1A2B3D, #2D4A5C); }
.article-cover.c2 { background: linear-gradient(135deg, #F4F1EC, #C9974B); }
.article-cover.c3 { background: linear-gradient(135deg, #7A9B7E, #2D4A5C); }
.article-cover .pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 16px 16px;
}
.article-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.article-meta {
  display: flex;
  gap: 12px;
  font-size: var(--fs-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-card h3 { font-size: 1.25rem; line-height: 1.3; }
.article-card p { font-size: var(--fs-small); color: var(--primary-slate); }

.article-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 64px;
  transition: all var(--t-med);
}
.article-featured:hover { box-shadow: var(--shadow-hover); border-color: transparent; }
@media (min-width: 768px) { .article-featured { grid-template-columns: 1.1fr 1fr; } }
.article-featured .article-cover { aspect-ratio: auto; min-height: 320px; }
.article-featured .article-body {
  padding: 48px;
  justify-content: center;
}
.article-featured h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; }
.article-featured p { font-size: 1.0625rem; }

/* ---------- 13. LOOKING-FOR BLOCK ---------- */
.looking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .looking-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.looking-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}
.looking-card .icon {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 20px;
}
.looking-card h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
  font-weight: 500;
  margin-bottom: 12px;
}
.looking-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.looking-card ul li {
  font-size: var(--fs-small);
  color: var(--primary-slate);
  padding: 6px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.looking-card ul li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.looking-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  justify-content: center;
}

/* Soft-card CTA (under "I'm looking for") */
.looking-cta-card {
  margin-top: 64px;
  background:
    radial-gradient(140% 100% at 50% 0%, #DCE6EF 0%, #F4F1EC 55%, #FAF8F4 100%);
  border-radius: 32px;
  padding: clamp(72px, 10vw, 128px) clamp(32px, 6vw, 80px);
  text-align: center;
  border: 1px solid var(--border-subtle);
}
.looking-cta-card h3 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 2.875rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--primary-deep);
  margin: 0 auto 48px;
  max-width: 22ch;
}
.pill-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-pill {
  border-radius: 999px;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.btn-pill-primary {
  background: var(--primary-deep);
  color: var(--on-dark);
}
.btn-pill-primary:hover {
  background: var(--primary-deep);
  color: var(--on-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(23, 42, 58, 0.25);
}
.btn-pill-secondary {
  background: var(--bg-primary);
  color: var(--primary-deep);
  border: 1px solid var(--border-subtle);
}
.btn-pill-secondary:hover {
  background: white;
  color: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 42, 58, 0.10);
}

/* ---------- 14. FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  background: var(--bg-primary);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-meta {
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.footer-social { display: flex; gap: 20px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-deep);
  transition: all var(--t-fast);
}
.footer-social a:hover {
  background: var(--accent-gold);
  color: white;
  transform: translateY(-2px);
}

/* ---------- 15. ABOUT PAGE ---------- */
.about-hero {
  min-height: 60vh;
  padding: 160px 0 80px;
  display: flex;
  align-items: center;
}
.prose { max-width: var(--max-prose); }
.prose p + p { margin-top: 1.5em; }
.prose p { font-size: 1.0625rem; line-height: 1.7; color: var(--text-body); }

/* Cross-cultural block */
.cultural-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.cultural-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 32px;
  gap: 16px;
}
@media (min-width: 768px) {
  .cultural-row {
    grid-template-columns: 200px 1fr;
    padding: 40px 48px;
    gap: 32px;
  }
}
.cultural-row + .cultural-row { border-top: 1px solid var(--border-subtle); }
.cultural-label {
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
  font-weight: 500;
  padding-top: 4px;
}
.cultural-content {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cultural-pill {
  padding: 10px 18px;
  background: var(--bg-secondary);
  border-radius: 12px;
  font-size: var(--fs-small);
  font-weight: 500;
}
.cultural-pill .lvl {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
  font-size: var(--fs-caption);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-subtle);
}
.timeline-item {
  position: relative;
  padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-gold);
}
.timeline-date {
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
  font-weight: 500;
  margin-bottom: 8px;
}
.timeline-item h3 { font-size: 1.25rem; margin-bottom: 4px; }
.timeline-item .role-org {
  font-size: var(--fs-small);
  color: var(--text-label);
  margin-bottom: 12px;
  font-weight: 500;
}
.timeline-item p { font-size: var(--fs-small); color: var(--primary-slate); }

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(4, 1fr); } }
.skill-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
}
.skill-block .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.skill-block h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.skill-block ul li {
  font-size: var(--fs-small);
  color: var(--primary-slate);
  padding: 4px 0;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}
.testimonial .quote-mark {
  color: var(--accent-gold);
  font-family: 'Inter Display', sans-serif;
  font-size: 4rem;
  line-height: 1;
  margin-bottom: -16px;
  opacity: 0.4;
}
.testimonial blockquote {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 24px;
}
.testimonial cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  margin-top: auto;
}
.testimonial .name { font-weight: 600; color: var(--primary-deep); }
.testimonial .role { font-size: var(--fs-small); color: var(--text-muted); }

/* Awards row */
.awards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .awards-row { grid-template-columns: repeat(2, 1fr); } }
.award {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}
.award .icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}
.award h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.award p { font-size: var(--fs-small); color: var(--primary-slate); }

/* CTA banner — moonlit gradient (matches Final CTA / Featured Projects panels) */
.cta-banner {
  position: relative;
  background:
    radial-gradient(circle at 82% 14%, rgba(221, 234, 245, 0.85), transparent 42%),
    radial-gradient(circle at 14% 82%, rgba(143, 175, 155, 0.32), transparent 48%),
    linear-gradient(160deg, #FFFCF7 0%, #F4F1EC 55%, #E4ECE4 100%);
  color: var(--text-body);
  padding: clamp(56px, 8vw, 96px) clamp(32px, 6vw, 80px);
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(232, 226, 214, 0.7);
  box-shadow: 0 20px 60px rgba(142, 174, 207, 0.18);
}
.cta-banner h2 { color: var(--primary-deep); margin-bottom: 20px; }
.cta-banner p { color: var(--primary-slate); max-width: 56ch; margin: 0 auto 32px; }

/* ---------- 16. PROJECTS PAGE ---------- */
.page-hero {
  padding: 160px 0 80px;
}
.page-hero h1 { margin-bottom: 24px; max-width: 16ch; }
.page-hero p { max-width: 56ch; }

/* (Orphan rules from the removed projects.html — intentionally left empty.) */

.project-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
@media (min-width: 1024px) { .project-hero-grid { grid-template-columns: 1.2fr 1fr; gap: 80px; } }

.project-hero-cover {
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter Display', sans-serif;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  text-align: center;
  padding: 32px;
}

.project-quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 48px 0;
}
@media (min-width: 768px) { .project-quick-stats { grid-template-columns: repeat(4, 1fr); } }
.quick-stat .num {
  font-family: 'Inter Display', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 8px;
}
.quick-stat .lbl {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) { .project-content-grid { grid-template-columns: 220px 1fr; gap: 80px; } }
.section-label {
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
  font-weight: 500;
  position: sticky;
  top: 100px;
}

.glance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .glance-grid { grid-template-columns: repeat(2, 1fr); } }
.glance-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
}
.glance-block h4 {
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
  font-weight: 500;
  margin-bottom: 12px;
}
.glance-block p { font-size: var(--fs-small); color: var(--text-body); }

.built-list { display: flex; flex-direction: column; gap: 16px; }
.built-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1rem;
  color: var(--text-body);
}
.built-list li:last-child { border-bottom: none; }
.built-list .num {
  font-family: 'Inter Display', sans-serif;
  color: var(--accent-gold);
  font-weight: 600;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.impact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .impact-split { grid-template-columns: 1fr 1fr; } }
.impact-block { padding: 32px; background: var(--bg-secondary); border-radius: 16px; }
.impact-block h4 {
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
  font-weight: 500;
  margin-bottom: 16px;
}
.impact-block ul li {
  font-size: var(--fs-small);
  color: var(--text-body);
  padding: 8px 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.impact-block ul li::before {
  content: '→';
  color: var(--accent-gold);
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--fs-small);
  border: 1px solid var(--border-subtle);
  transition: transform var(--t-med);
}
.gallery-item:hover { transform: scale(1.02); }

.next-project {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.next-project .label {
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.next-project a { font-size: 1.125rem; font-weight: 500; }

/* ---------- 17. NEWSLETTER ---------- */
.newsletter {
  background: var(--bg-secondary);
  padding: clamp(56px, 8vw, 96px) clamp(32px, 6vw, 80px);
  border-radius: 24px;
  text-align: center;
}
.newsletter h2 { margin-bottom: 16px; }
.newsletter p { max-width: 56ch; margin: 0 auto 32px; color: var(--primary-slate); }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-medium);
  border-radius: 8px;
  background: white;
  outline: none;
  transition: border-color var(--t-fast);
}
.newsletter-form input:focus { border-color: var(--accent-gold); }

/* ---------- 18. SCROLL ANIMATIONS ---------- */
/* Fade-up reveal removed — sections appear immediately without translate.
   `.in` class is still added by the IntersectionObserver (used elsewhere
   for `.count-trigger` etc.) but has no visual effect on .fade-up itself. */
.fade-up {
  opacity: 1;
  transform: none;
  transition: none;
}
.fade-up.in {
  opacity: 1;
  transform: none;
}
.stagger > * {
  opacity: 1;
  transform: none;
  transition: none;
}
.stagger.in > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up, .stagger > * { opacity: 1; transform: none; }
}

/* ---------- 19. SKIP LINK & FOCUS ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-deep);
  color: white;
  padding: 12px 16px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* Keyboard focus indicator — WCAG 2.4.7 compliant (3px solid + 3px offset
   in a high-contrast gold against any background). */
:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 5px rgba(200, 164, 93, 0.20);
}
/* Remove default-only outline for mouse users while keeping :focus-visible */
:focus:not(:focus-visible) { outline: none; }

/* =========================================================
   MOONLIT SAGE LAYER
   Glows, motifs, polished sections
   ========================================================= */

/* ---------- Background motifs ---------- */
.bg-glow {
  position: relative;
  isolation: isolate;
}
.bg-glow::before,
.bg-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}
.bg-glow.glow-hero::before {
  top: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--moon-glow) 0%, transparent 70%);
}
.bg-glow.glow-hero::after {
  bottom: -120px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--sage-glow) 0%, transparent 70%);
}
.bg-glow.glow-soft::before {
  top: 10%;
  left: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--moon-glow) 0%, transparent 70%);
}

/* Tiny gold star sprinkles */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.stars span {
  position: absolute;
  color: var(--accent-gold);
  opacity: 0.55;
  animation: twinkle 4s ease-in-out infinite;
}
.stars span:nth-child(1) { top: 18%; left: 8%; font-size: 14px; animation-delay: 0s; }
.stars span:nth-child(2) { top: 64%; left: 12%; font-size: 10px; animation-delay: 1.2s; }
.stars span:nth-child(3) { top: 22%; right: 14%; font-size: 12px; animation-delay: 0.6s; }
.stars span:nth-child(4) { top: 78%; right: 22%; font-size: 9px;  animation-delay: 2.1s; }
.stars span:nth-child(5) { top: 42%; left: 48%; font-size: 8px;  animation-delay: 1.8s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 0.7; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stars span { animation: none; opacity: 0.5; }
}

/* Constellation dotted divider */
.constellation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
  opacity: 0.55;
}
.constellation span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--sage);
}
.constellation span:nth-child(2),
.constellation span:nth-child(4) { background: var(--accent-gold); }
.constellation .dash {
  width: 36px; height: 1px; background: var(--border-subtle); border-radius: 0;
}

/* ---------- Hero refinements ---------- */
.hero { padding-top: 160px; }
.hero-portrait {
  border-radius: 28px;
  background: linear-gradient(160deg, var(--moon-light) 0%, var(--bg-secondary) 60%, var(--sage-soft) 100%);
  box-shadow: 0 30px 60px rgba(142, 174, 207, 0.18), 0 8px 18px rgba(23, 42, 58, 0.06);
}
.hero-portrait .placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(circle at 70% 80%, var(--sage-glow), transparent 50%),
    transparent;
  color: rgba(23, 42, 58, 0.18);
}
.hero-portrait .moon {
  position: absolute;
  top: 14%;
  right: 14%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #FFFCF7 0%, var(--moon-light) 35%, var(--moon) 75%, var(--moon-deep) 100%);
  box-shadow:
    0 18px 40px rgba(142, 174, 207, 0.35),
    inset -8px -10px 18px rgba(142, 174, 207, 0.30);
}
.hero-portrait .leaf {
  position: absolute;
  bottom: 22%;
  left: 14%;
  color: var(--sage);
  opacity: 0.7;
}
.hero-portrait .badge {
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 226, 214, 0.7);
  border-radius: 16px;
}
.hero-portrait .badge-icon {
  background: var(--sage-soft);
  color: var(--sage);
  border-radius: 999px;
}

/* ---------- What I Design ---------- */
.what-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .what-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .what-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.what-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
}
.what-card::before {
  content: '';
  position: absolute;
  inset: -40% -40% auto auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--sage-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}
.what-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(23, 42, 58, 0.08);
}
.what-card:hover::before { opacity: 1; }
.what-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.what-card:nth-child(2) .what-icon { background: var(--moon-light); color: var(--moon-deep); }
.what-card:nth-child(3) .what-icon { background: var(--gold-glow); color: var(--accent-gold); }
.what-card:nth-child(4) .what-icon { background: var(--sage-soft); color: var(--sage); }
.what-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.what-card p {
  font-size: var(--fs-small);
  color: var(--primary-slate);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* ---------- Metric tiles (replacement for dark stats bar) ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 1024px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.metric-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
}
.metric-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(23, 42, 58, 0.08);
  border-color: transparent;
}
.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--moon-light);
  color: var(--moon-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.metric-tile:nth-child(2) .metric-icon { background: var(--sage-soft); color: var(--sage); }
.metric-tile:nth-child(3) .metric-icon { background: var(--gold-glow); color: var(--accent-gold); }
.metric-tile:nth-child(4) .metric-icon { background: var(--sage-soft); color: var(--sage); }
.metric-num {
  font-family: 'Sora', 'Inter Display', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary-deep);
  font-variant-numeric: tabular-nums;
}
.metric-num .unit {
  font-size: 0.5em;
  color: var(--sage);
  margin-left: 4px;
  font-weight: 500;
}
.metric-label {
  font-size: var(--fs-small);
  color: var(--primary-slate);
  line-height: 1.5;
}

/* ---------- Design Philosophy section ---------- */
.philosophy {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}
.philosophy::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--moon-glow), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.philosophy::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-glow), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) { .philosophy-grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.philosophy-quote {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.25;
  color: var(--primary-deep);
  letter-spacing: -0.005em;
  margin-bottom: 32px;
}
.philosophy-pillars {
  display: grid;
  gap: 20px;
}
.pillar {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all var(--t-med);
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 42, 58, 0.06);
}
.pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--sage);
  flex-shrink: 0;
  padding-top: 4px;
}
.pillar h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.pillar p {
  font-size: var(--fs-small);
  color: var(--primary-slate);
  line-height: 1.5;
}

/* Visual orb cluster */
.orb-cluster {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--moon-light) 0%, var(--sage-soft) 100%);
  border: 1px solid var(--border-subtle);
}
.orb-cluster .orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95), var(--moon-deep) 80%);
  box-shadow: 0 20px 40px rgba(142, 174, 207, 0.3);
}
.orb-cluster .orb-1 { top: 20%; left: 22%; width: 38%; height: 38%; }
.orb-cluster .orb-2 {
  top: 56%; right: 20%; width: 22%; height: 22%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95), var(--sage) 80%);
  box-shadow: 0 14px 28px var(--sage-glow);
}
.orb-cluster .orb-3 {
  top: 14%; right: 16%; width: 14%; height: 14%;
  background: radial-gradient(circle at 30% 28%, var(--gold-light), var(--accent-gold) 80%);
  box-shadow: 0 10px 22px var(--gold-glow);
}
.orb-cluster .line {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}

/* ---------- About preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .about-preview { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.about-preview::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-glow), transparent 70%);
  pointer-events: none;
}
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sage-soft), var(--moon-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  color: rgba(23, 42, 58, 0.18);
  letter-spacing: -0.05em;
}
.about-content { position: relative; z-index: 1; }
.about-content h2 { margin-bottom: 24px; max-width: 18ch; }
.about-content p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
}

/* ---------- Refined footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--primary-slate);
  max-width: 30ch;
  line-height: 1.5;
}
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: var(--fs-small);
  color: var(--primary-slate);
}
.footer-col a:hover { color: var(--sage); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Section header refinement ---------- */
.section-header h2 {
  font-family: 'Sora', 'Inter Display', sans-serif;
}
.section-header.center .constellation { margin-bottom: 16px; }

/* ---------- Existing stats bar (deprecated — kept for safety) ---------- */
.section-bg-dark.stats-bar {
  background: linear-gradient(160deg, var(--bg-secondary), var(--bg-tertiary));
  color: var(--primary-deep);
}
.section-bg-dark.stats-bar .stat-number { color: var(--primary-deep); }
.section-bg-dark.stats-bar .stat-label { color: var(--primary-slate); }

/* ---------- 20. UTILITY ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }

/* =========================================================
   FLOW LAYER — soft motion · constellation pathways · process
   温柔流动 · 星轨引路 · 结构清晰 · 动中有序
   ========================================================= */

/* ---------- Breathing glow behind hero portrait ---------- */
.hero-portrait-wrap {
  position: relative;
  isolation: isolate;
}
.hero-portrait-wrap .breathe-glow {
  position: absolute;
  inset: -10% -8% -10% -8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--moon-glow), transparent 65%),
    radial-gradient(circle at 70% 70%, var(--sage-glow), transparent 65%);
  filter: blur(48px);
  z-index: -1;
  opacity: 0.85;
  animation: breatheGlow 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breatheGlow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.08); opacity: 0.95; }
}

/* ---------- Typed role line ---------- */
.typed-role {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--primary-slate);
  margin-bottom: 32px;
  min-height: 1.6em;
}
.typed-role .typed-prefix {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  color: var(--text-label);
  text-transform: uppercase;
  font-weight: 500;
}
.typed-role .typed-text { color: var(--primary-deep); font-weight: 500; }
.typed-role .typed-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--sage);
  margin-left: 2px;
  transform: translateY(2px);
  animation: typedCaret 1.1s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(143, 175, 155, 0.5);
}
/* Softer fade blink (not a hard on/off) — feels like a real text cursor */
@keyframes typedCaret {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.15; }
}
/* Sparkle next to the caret that pulses whenever a new phrase begins */
.typed-role .typed-spark {
  display: inline-block;
  color: var(--accent-gold);
  font-size: 0.6em;
  margin-left: 8px;
  vertical-align: 0.3em;
  opacity: 0.45;
  transform: scale(1) rotate(0deg);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.typed-role .typed-spark.pulse {
  animation: typedSparkPulse 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes typedSparkPulse {
  0%   { opacity: 0.4; transform: scale(0.85) rotate(0deg);   filter: drop-shadow(0 0 0 transparent); }
  35%  { opacity: 1;   transform: scale(1.5)  rotate(45deg);  filter: drop-shadow(0 0 8px rgba(200, 164, 93, 0.8)); }
  100% { opacity: 0.4; transform: scale(1)    rotate(0deg);   filter: drop-shadow(0 0 0 transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .typed-role .typed-caret { animation: none; opacity: 1; }
  .typed-role .typed-spark { animation: none; opacity: 0.45; transform: none; }
}

/* ---------- Constellation pathway dividers ---------- */
.path-divider {
  --path-stroke: rgba(111, 146, 120, 0.45);
  --path-star: var(--accent-gold);
  position: relative;
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 64px) 24px;
  pointer-events: none;
}
.path-divider svg {
  display: block;
  width: 100%;
  height: clamp(56px, 9vw, 96px);
  overflow: visible;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.path-divider.in svg { clip-path: inset(0 0 0 0); }
.path-divider .line {
  fill: none;
  stroke: var(--path-stroke);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1.5 7;
  opacity: 0.7;
}
.path-divider .star {
  fill: var(--path-star);
  opacity: 0.85;
}
.path-divider .star.large { r: 3.2; }
@media (prefers-reduced-motion: reduce) {
  .path-divider svg { clip-path: none; transition: none; }
}

/* ---------- Process timeline (Analyze → Evaluate) ---------- */
.process {
  margin-top: 48px;
  position: relative;
}
.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 720px)  { .process-timeline { grid-template-columns: repeat(3, 1fr); gap: 40px 16px; } }
@media (min-width: 1024px) { .process-timeline { grid-template-columns: repeat(6, 1fr); gap: 0 8px; } }

/* Dashed connector line behind nodes (desktop) */
.process-timeline::before {
  content: '';
  display: none;
}
@media (min-width: 1024px) {
  .process-timeline::before {
    display: block;
    position: absolute;
    top: 22px;
    left: 8.33%;
    right: 8.33%;
    height: 1px;
    background-image: linear-gradient(to right, var(--sage) 0 4px, transparent 4px 12px);
    background-size: 12px 1px;
    background-repeat: repeat-x;
    opacity: 0.55;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  }
  .process.in .process-timeline::before { transform: scaleX(1); }
}
.process-step {
  position: relative;
  text-align: center;
  padding: 0 8px;
  cursor: default;
  transition: transform var(--t-med);
}
.process-step:hover { transform: translateY(-3px); }
.process-step .node {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-med);
  z-index: 1;
}
.process-step .node::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
  transition: all var(--t-med);
}
.process-step:nth-child(2) .node::before { background: var(--moon-deep); }
.process-step:nth-child(3) .node::before { background: var(--accent-gold); }
.process-step:nth-child(4) .node::before { background: var(--sage); }
.process-step:nth-child(5) .node::before { background: var(--moon-deep); }
.process-step:nth-child(6) .node::before { background: var(--accent-gold); }
.process-step:hover .node {
  border-color: transparent;
  box-shadow: 0 6px 20px var(--sage-glow), 0 0 0 6px rgba(111, 146, 120, 0.10);
  transform: scale(1.06);
}
.process-step:hover .node::before { transform: scale(1.25); }
.process-step h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-deep);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--primary-slate);
  max-width: 18ch;
  margin: 0 auto;
  opacity: 0.55;
  transition: opacity var(--t-med);
}
.process-step:hover p { opacity: 1; }
@media (max-width: 1023px) {
  .process-step p { opacity: 1; max-width: 24ch; }
}

/* ---------- Project feature visual — slow ambient gradient drift ---------- */
@property --feat-a {
  syntax: '<color>';
  inherits: false;
  initial-value: #DCE6EF;
}
@property --feat-b {
  syntax: '<color>';
  inherits: false;
  initial-value: #F4F1EC;
}

.feature-visual {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(135deg, var(--feat-a) 0%, var(--feat-b) 100%);
}
.feature-row:hover .feature-visual { transform: scale(1.015); }
.feature-orb { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.feature-row:hover .feature-orb { transform: scale(1.08) translate(-2%, -2%); }

/* Each tone drifts slowly through its own palette. Staggered durations + delays
   keep the four cards from breathing in sync. */
.feature-visual.tone-cool  { animation: driftCool  42s ease-in-out infinite; }
.feature-visual.tone-warm  { animation: driftWarm  46s ease-in-out -8s infinite; }
.feature-visual.tone-sage  { animation: driftSage  44s ease-in-out -16s infinite; }
.feature-visual.tone-coral { animation: driftCoral 48s ease-in-out -22s infinite; }

@keyframes driftCool {
  0%, 100% { --feat-a: #DCE6EF; --feat-b: #F4F1EC; }
  25%      { --feat-a: #D8E4D9; --feat-b: #DDEAF5; }
  50%      { --feat-a: #DDEAF5; --feat-b: #E4ECE4; }
  75%      { --feat-a: #C9D9E8; --feat-b: #F0EBE0; }
}
@keyframes driftWarm {
  0%, 100% { --feat-a: #F4ECDA; --feat-b: #E5EBF1; }
  33%      { --feat-a: #F0E1C8; --feat-b: #DDEAF5; }
  66%      { --feat-a: #E8D8BC; --feat-b: #E4ECE4; }
}
@keyframes driftSage {
  0%, 100% { --feat-a: #E4ECE4; --feat-b: #F4F1EC; }
  33%      { --feat-a: #DCE8DC; --feat-b: #DDEAF5; }
  66%      { --feat-a: #D8E4D9; --feat-b: #E8E0CC; }
}
@keyframes driftCoral {
  0%, 100% { --feat-a: #F4E4DC; --feat-b: #ECECF1; }
  33%      { --feat-a: #F0DDD0; --feat-b: #DDEAF5; }
  66%      { --feat-a: #EAD5C5; --feat-b: #E4ECE4; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-visual.tone-cool,
  .feature-visual.tone-warm,
  .feature-visual.tone-sage,
  .feature-visual.tone-coral { animation: none; }
}

/* ---------- Soft flowing background wave (subtle, behind philosophy) ---------- */
.philosophy .flow-wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.philosophy .flow-wave svg { width: 100%; height: 100%; }
.philosophy .flow-wave path {
  fill: none;
  stroke: rgba(142, 174, 207, 0.28);
  stroke-width: 1;
  stroke-dasharray: 2 10;
}

/* ---------- Hero — taller, more screen presence ---------- */
.hero {
  min-height: clamp(720px, 100vh, 960px);
}
.hero h1 { max-width: 16ch; }

/* Make the first path divider feel like it descends out of the hero */
.path-divider.path-from-hero {
  margin-top: -40px;
  padding-top: 0;
}
.path-divider.path-from-hero svg { height: clamp(80px, 12vw, 140px); }

/* ---------- Learning Design Constellation (connectors between cards) ---------- */
.constellation-grid {
  position: relative;
}
.constellation-grid .connectors {
  position: absolute;
  inset: 24px 0;
  width: 100%;
  height: calc(100% - 48px);
  pointer-events: none;
  z-index: 0;
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}
@media (min-width: 1024px) {
  .constellation-grid .connectors { display: block; }
}
.constellation-grid.in .connectors { opacity: 0.7; transform: none; }
.constellation-grid .connectors svg { width: 100%; height: 100%; overflow: visible; }
.constellation-grid .connectors path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1;
  stroke-dasharray: 1.5 7;
  opacity: 0.55;
}
.constellation-grid .connectors circle {
  fill: var(--accent-gold);
  opacity: 0.85;
}
.constellation-grid .what-grid { position: relative; z-index: 1; }

/* Tiny gold star above each card title — subtle constellation node feel */
.what-card { position: relative; }
.what-card .node-star {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  opacity: 0.6;
  box-shadow: 0 0 8px var(--gold-glow);
  transition: all var(--t-med);
}
.what-card:hover .node-star {
  opacity: 1;
  transform: scale(1.4);
}

/* ---------- Impact Orbit ---------- */
.impact-orbit { position: relative; }
.impact-orbit .orbit-line {
  position: absolute;
  inset: 12% 6%;
  pointer-events: none;
  z-index: 0;
  display: none;
  opacity: 0;
  transition: opacity 1.4s ease-out;
}
.impact-orbit.in .orbit-line { opacity: 0.4; }
@media (min-width: 768px) {
  .impact-orbit .orbit-line { display: block; }
}
.impact-orbit .orbit-line svg { width: 100%; height: 100%; overflow: visible; }
.impact-orbit .orbit-line path {
  fill: none;
  stroke: var(--moon-deep);
  stroke-width: 1;
  stroke-dasharray: 2 8;
  opacity: 0.7;
}
.impact-orbit .orbit-line circle {
  fill: var(--accent-gold);
  opacity: 0.85;
}
.impact-orbit .metrics-grid { position: relative; z-index: 1; }
.metric-num .ministar {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-6px);
  box-shadow: 0 0 6px var(--gold-glow);
}

/* ---------- Project Portals (2x2 grid) ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) {
  .portal-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
.portal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  text-decoration: none;
  color: inherit;
  position: relative;
}
.portal:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(23, 42, 58, 0.10);
  border-color: transparent;
  color: inherit;
}
.portal-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.portal-thumb-art {
  position: absolute;
  inset: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.portal:hover .portal-thumb-art { transform: scale(1.05); }
.portal-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 42, 58, 0.16) 100%);
  pointer-events: none;
}
.portal-thumb.tone-systems  { background: linear-gradient(135deg, #DDEAF5 0%, #E4ECE4 100%); }
.portal-thumb.tone-ai-edu   { background: linear-gradient(135deg, #1F3447 0%, #34556F 100%); }
.portal-thumb.tone-prompts  { background: linear-gradient(135deg, #F4ECDA 0%, #E5EBF1 100%); }
.portal-thumb.tone-dei      { background: linear-gradient(135deg, #F3DDD0 0%, #DCE6EF 100%); }
.portal-thumb svg.deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.portal-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 252, 247, 0.92);
  color: var(--sage);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.portal-tag.on-dark {
  background: rgba(255, 252, 247, 0.16);
  color: #FAF8F4;
  border: 1px solid rgba(250, 248, 244, 0.3);
}
.portal-spark {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--accent-gold);
  font-size: 12px;
  line-height: 1;
  opacity: 0.45;
  z-index: 2;
  filter: drop-shadow(0 0 3px rgba(200, 164, 93, 0.35));
  transition:
    opacity 0.3s var(--ease),
    transform 0.4s var(--ease),
    filter 0.4s var(--ease);
}
.portal:hover .portal-spark,
.portal:focus-visible .portal-spark {
  opacity: 1;
  transform: scale(1.5) rotate(20deg);
  filter:
    drop-shadow(0 0 8px rgba(200, 164, 93, 0.75))
    drop-shadow(0 0 16px rgba(200, 164, 93, 0.4));
}
.portal-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.portal-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.portal-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--primary-deep);
  margin: 0;
}
.portal-body p {
  font-size: var(--fs-small);
  color: var(--primary-slate);
  line-height: 1.55;
  flex: 1;
  max-width: 50ch;
}
.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--sage);
  margin-top: 8px;
  transition: gap var(--t-fast), color var(--t-fast);
}
.portal-link .arrow { transition: transform var(--t-fast); }
.portal:hover .portal-link { gap: 12px; color: var(--sage-mid); }
.portal:hover .portal-link .arrow { transform: translateX(4px); }

/* ---------- Final CTA — Moonlit Invitation (sage + moon-blue + cream) ---------- */
.cta-final {
  margin-top: 80px;
  position: relative;
  border-radius: 36px;
  padding: clamp(72px, 10vw, 140px) clamp(32px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(221, 234, 245, 0.85), transparent 42%),
    radial-gradient(circle at 14% 82%, rgba(143, 175, 155, 0.32), transparent 48%),
    linear-gradient(160deg, #FFFCF7 0%, #F4F1EC 55%, #E4ECE4 100%);
  color: var(--primary-deep);
  border: 1px solid rgba(232, 226, 214, 0.7);
  /* Panel-wide breathing glow — soft moon-blue + sage halo that pulses slowly */
  box-shadow:
    0 30px 80px rgba(142, 174, 207, 0.22),
    0 0 0 0 rgba(143, 175, 155, 0);
  animation: ctaPanelBreathe 10s ease-in-out infinite;
}
@keyframes ctaPanelBreathe {
  0%, 100% {
    box-shadow:
      0 30px 80px rgba(142, 174, 207, 0.22),
      0 0 60px 0 rgba(143, 175, 155, 0.08);
  }
  50% {
    box-shadow:
      0 36px 96px rgba(142, 174, 207, 0.32),
      0 0 80px 12px rgba(143, 175, 155, 0.22);
  }
}
.cta-final .constellation { margin-bottom: 16px; position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .cta-final { animation: none; }
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 164, 93, 0.55) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: 12px 18px;
  opacity: 0.20;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
          mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  pointer-events: none;
}
.cta-final .crescent {
  position: absolute;
  top: clamp(28px, 4vw, 48px);
  right: clamp(28px, 4vw, 56px);
  width: clamp(56px, 8vw, 84px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #FFFCF7 0%, var(--moon-light) 40%, var(--moon) 78%);
  box-shadow:
    inset -10px -8px 0 6px #FAF8F4,
    0 14px 36px rgba(142, 174, 207, 0.35);
  opacity: 0.92;
  animation: breatheGlow 9s ease-in-out infinite;
  pointer-events: none;
}
.cta-final .stars-mini {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-final .stars-mini span {
  position: absolute;
  color: var(--accent-gold);
  font-size: 10px;
  opacity: 0.7;
  animation: twinkle 5s ease-in-out infinite;
}
.cta-final .stars-mini span:nth-child(1) { top: 22%; left: 14%; animation-delay: 0.4s; font-size: 11px; }
.cta-final .stars-mini span:nth-child(2) { top: 64%; left: 22%; animation-delay: 1.6s; }
.cta-final .stars-mini span:nth-child(3) { top: 30%; right: 18%; animation-delay: 2.4s; font-size: 13px; }
.cta-final .stars-mini span:nth-child(4) { top: 72%; right: 14%; animation-delay: 0.9s; }
.cta-final .stars-mini span:nth-child(5) { top: 50%; left: 56%; animation-delay: 3.1s; font-size: 9px; }
.cta-final h3 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.875rem, 3.8vw, 3rem);
  line-height: 1.2;
  color: var(--primary-deep);
  margin: 0 auto 24px;
  max-width: 22ch;
  position: relative;
  z-index: 2;
}
.cta-final .cta-sub {
  font-size: 1.0625rem;
  color: var(--primary-slate);
  max-width: 52ch;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
}
.cta-final .pill-row { position: relative; z-index: 2; }
.cta-final .btn-pill-primary {
  background: var(--sage);
  color: var(--on-dark);
}
.cta-final .btn-pill-primary:hover {
  background: var(--sage-mid);
  color: var(--on-dark);
  box-shadow: 0 12px 28px var(--sage-glow);
}
.cta-final .btn-pill-secondary {
  background: var(--bg-card);
  border: 1.5px solid var(--sage-mid);
  color: var(--primary-deep);
}
.cta-final .btn-pill-secondary:hover {
  background: white;
  color: var(--primary-deep);
  border-color: var(--sage);
  box-shadow: 0 8px 22px var(--sage-glow);
}

/* ---------- Footer — dotted divider + soft botanical accent ---------- */
.footer { position: relative; }
.footer-bottom {
  border-top: none;
  position: relative;
  padding-top: 32px;
}
.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-image: linear-gradient(to right, var(--border-medium) 0 4px, transparent 4px 12px);
  background-size: 12px 1px;
  opacity: 0.55;
}
.footer-leaf {
  position: absolute;
  bottom: 24px;
  right: 32px;
  color: var(--sage);
  opacity: 0.35;
  pointer-events: none;
  display: none;
}
@media (min-width: 1024px) { .footer-leaf { display: block; } }

/* ---------- Constellation hub (center node) ---------- */
.constellation-grid { padding-top: 88px; }
.constellation-hub {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid rgba(143, 175, 155, 0.45);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(142, 174, 207, 0.18), 0 0 0 6px rgba(221, 234, 245, 0.4);
  z-index: 2;
  white-space: nowrap;
}
.constellation-hub .hub-icon {
  color: var(--accent-gold);
  font-size: 14px;
  filter: drop-shadow(0 0 4px var(--gold-glow));
}
.constellation-hub .hub-label {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--primary-deep);
}
.constellation-grid .connectors { inset: 0; height: 100%; }

/* Lines brighten when any card is hovered (CSS :has) */
.constellation-grid:has(.what-card:hover) .connectors path,
.constellation-grid:has(.constellation-hub:hover) .connectors path {
  stroke: var(--sage);
  stroke-opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(111, 146, 120, 0.45));
}
.constellation-grid:has(.what-card:hover) .connectors circle,
.constellation-grid:has(.constellation-hub:hover) .connectors circle {
  opacity: 1;
  r: 4;
}

/* ---------- Project section — Moonlit gradient (mirrors Final CTA panel) ---------- */
.section-projects-galaxy {
  position: relative;
  background:
    radial-gradient(circle at 82% 14%, rgba(221, 234, 245, 0.85), transparent 42%),
    radial-gradient(circle at 14% 82%, rgba(143, 175, 155, 0.32), transparent 48%),
    linear-gradient(160deg, #FFFCF7 0%, #F4F1EC 55%, #E4ECE4 100%);
  color: var(--text-body);
  overflow: hidden;
}
/* Subtle gold sparkle overlay — matches the CTA's quiet feel */
.section-projects-galaxy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 164, 93, 0.55) 1px, transparent 1px);
  background-size: 90px 90px;
  background-position: 18px 24px;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.section-projects-galaxy .container { position: relative; z-index: 1; }

/* Default dark text reads fine on this light gradient; sage glow on hover */
.section-projects-galaxy .feature-row:hover .feature-visual {
  box-shadow:
    0 22px 48px rgba(111, 146, 120, 0.20),
    0 0 0 1px rgba(143, 175, 155, 0.30);
}

/* Quiet gold sparkles — same calm vibe as the Final CTA */
.section-projects-galaxy .stars-mini {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.section-projects-galaxy .stars-mini span {
  position: absolute;
  color: var(--accent-gold);
  font-size: 10px;
  opacity: 0.5;
  animation: twinkle 5s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(200, 164, 93, 0.35));
}
.section-projects-galaxy .stars-mini span:nth-child(1) { top: 16%; left: 8%;  animation-delay: 0s; }
.section-projects-galaxy .stars-mini span:nth-child(2) { top: 28%; right: 12%; animation-delay: 1.4s; font-size: 12px; }
.section-projects-galaxy .stars-mini span:nth-child(3) { top: 64%; left: 14%; animation-delay: 2.6s; }
.section-projects-galaxy .stars-mini span:nth-child(4) { top: 78%; right: 18%; animation-delay: 0.8s; }
.section-projects-galaxy .stars-mini span:nth-child(5) { top: 50%; left: 50%; animation-delay: 3.4s; font-size: 8px; }

/* ---------- AI Learning Engine ---------- */
.ai-engine {
  position: relative;
  overflow: hidden;
}
.ai-engine::before,
.ai-engine::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.ai-engine::before {
  top: -120px;
  left: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--moon-glow), transparent 70%);
}
.ai-engine::after {
  bottom: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--sage-glow), transparent 70%);
}
.ai-engine .container { position: relative; z-index: 1; }

.ai-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (min-width: 1024px) { .ai-panel { grid-template-columns: 1.05fr 1fr; gap: 56px; } }

.ai-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: center;
  padding: 8px;
}
.ai-chips .ai-link-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}
.ai-chips .ai-link-svg path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1;
  stroke-dasharray: 1.5 7;
}
.ai-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1.5px solid rgba(143, 175, 155, 0.35);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary-deep);
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 14px rgba(142, 174, 207, 0.08);
}
.ai-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moon-deep);
  box-shadow: 0 0 8px var(--moon-glow);
  transition: all var(--t-fast);
}
.ai-chip:hover {
  transform: translateY(-3px);
  border-color: var(--sage);
  box-shadow: 0 14px 32px var(--sage-glow);
}
.ai-chip:hover .chip-dot { background: var(--sage); box-shadow: 0 0 10px var(--sage-glow); }
.ai-chip.active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--on-dark);
  box-shadow: 0 12px 28px var(--sage-glow);
}
.ai-chip.active .chip-dot { background: var(--accent-gold); box-shadow: 0 0 12px var(--gold-glow); }

/* Soft AI dashboard card */
.ai-dashboard {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 50px rgba(23, 42, 58, 0.08);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.ai-dashboard::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-glow), transparent 70%);
  pointer-events: none;
}
.ai-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-subtle);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.ai-dashboard-head .eyebrow { color: var(--text-label); }
.ai-dashboard-head .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(111, 146, 120, 0.18);
  animation: pulse 2.4s ease-out infinite;
}
.ai-dashboard h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.625rem;
  line-height: 1.25;
  color: var(--primary-deep);
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
  transition: opacity 0.4s var(--ease);
}
.ai-dashboard p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--primary-slate);
  flex: 1;
  position: relative;
  z-index: 1;
  transition: opacity 0.4s var(--ease);
  max-width: 50ch;
}
.ai-dashboard .ai-mini-diagram {
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.ai-dashboard .ai-mini-diagram svg { width: 100%; height: 80px; overflow: visible; }
.ai-dashboard .ai-mini-diagram path { fill: none; stroke: var(--sage); stroke-width: 1; stroke-dasharray: 2 5; opacity: 0.55; }
.ai-dashboard .ai-mini-diagram circle { fill: var(--bg-card); stroke: var(--sage); stroke-width: 1.5; }
.ai-dashboard .ai-mini-diagram circle.gold { fill: var(--accent-gold); stroke: none; opacity: 0.85; }
.ai-dashboard .ai-mini-diagram text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  fill: var(--primary-slate);
  text-anchor: middle;
}
.ai-dashboard.swap h3,
.ai-dashboard.swap p { opacity: 0; }

/* ---------- Curved Process Pathway ---------- */
.process { position: relative; }
.process-curve {
  position: absolute;
  top: 22px;
  left: 6%;
  width: 88%;
  height: 60px;
  pointer-events: none;
  display: none;
  z-index: 0;
  overflow: visible;
}
@media (min-width: 1024px) { .process-curve { display: block; } }
.process-curve path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.2;
  stroke-dasharray: 1.5 7;
  opacity: 0.55;
  stroke-linecap: round;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.process.in .process-curve path { stroke-dashoffset: 0; }
@media (min-width: 1024px) {
  /* Hide the old straight dashed line in favor of the curve */
  .process-timeline::before { display: none; }
}
.process-timeline { position: relative; z-index: 1; }

/* Pathway brightens on any node hover */
.process:has(.process-step:hover) .process-curve path {
  stroke: var(--sage-mid);
  stroke-opacity: 0.95;
  filter: drop-shadow(0 0 4px rgba(111, 146, 120, 0.5));
}

/* ---------- Moonlit Guidance Path — one continuous constellation thread ---------- */
main { position: relative; }
.moonlit-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
  /* clip-path bottom inset is set by JS as user scrolls — reveals the path top-down */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.25s linear;
}
.moonlit-line {
  fill: none;
  stroke: #8FAF9B;          /* sage-mid — brief-specified */
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2 7;    /* thin dotted thread */
  opacity: 0.75;
}
.moonlit-nodes circle {
  fill: #C8A45D;            /* muted gold — brief-specified */
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(200, 164, 93, 0.35));
  transition: opacity 0.5s var(--ease), r 0.4s var(--ease), filter 0.4s var(--ease);
}
.moonlit-nodes circle.glowing {
  opacity: 1;
  r: 5.5;
  filter: drop-shadow(0 0 10px rgba(200, 164, 93, 0.75)) drop-shadow(0 0 18px rgba(200, 164, 93, 0.4));
}
@media (prefers-reduced-motion: reduce) {
  .moonlit-path { clip-path: none; transition: none; }
  .moonlit-nodes circle { transition: none; }
}

/* ---------- Atmosphere — moonlight that follows the scroll ---------- */
@property --moon-x {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 85%;
}
@property --moon-y {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 18%;
}
@property --moon-color {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(221, 234, 245, 0.55);
}
@property --moon-accent {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(143, 175, 155, 0.18);
}

body {
  isolation: isolate;
  transition: background-color 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.atmosphere {
  position: fixed;
  inset: -8vh -8vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at var(--moon-x) var(--moon-y), var(--moon-color), transparent 65%),
    radial-gradient(ellipse 60% 55% at calc(100% - var(--moon-x)) calc(100% - var(--moon-y)), var(--moon-accent), transparent 70%);
  transition:
    --moon-x 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    --moon-y 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    --moon-color 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    --moon-accent 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .atmosphere { transition: none; }
  body { transition: none; }
}

/* ---------- Journey Rail — fixed chapter index ---------- */
.journey-rail {
  position: fixed;
  right: clamp(20px, 2.5vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: none;
}
@media (min-width: 1280px) { .journey-rail { display: block; } }
.journey-rail ol {
  list-style: none;
  margin: 0;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.journey-rail ol::before {
  content: '';
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  background-image: linear-gradient(to bottom, var(--border-medium) 0 4px, transparent 4px 12px);
  background-size: 1px 12px;
  opacity: 0.45;
  pointer-events: none;
}
.journey-rail a {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  text-decoration: none;
  outline: none;
}
.journey-rail .rail-dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-medium);
  transition: all var(--t-med);
  position: relative;
  z-index: 1;
}
.journey-rail .rail-label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 18px rgba(23, 42, 58, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.journey-rail .rail-label .ch-num {
  color: var(--accent-gold);
  margin-right: 8px;
  font-weight: 600;
}
.journey-rail a:hover .rail-dot,
.journey-rail a:focus-visible .rail-dot {
  border-color: var(--sage);
  background: var(--sage-soft);
}
.journey-rail a:hover .rail-label,
.journey-rail a:focus-visible .rail-label,
.journey-rail a.active .rail-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.journey-rail a.active .rail-dot {
  background: var(--sage);
  border-color: var(--sage);
  box-shadow: 0 0 0 5px var(--sage-glow), 0 0 14px var(--sage-glow);
}
.journey-rail a.active .rail-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  opacity: 0.6;
  animation: railPulse 2.4s ease-out infinite;
}
@keyframes railPulse {
  0%   { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* On the navy section, the rail tooltip needs to read against dark — auto handled by mix-blend-mode? Leave as cream pill which still pops. Adjust dot border to be brighter when over dark sections via prefers? Skip — cream pill on any bg works. */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .journey-rail a.active .rail-dot::after { animation: none; opacity: 0; }
  .journey-rail .rail-label { transition: opacity var(--t-fast); transform: translateY(-50%); }
}

/* ---------- Per-section interaction polish ---------- */

/* Learning Constellation — icon reacts on hover */
.what-card .what-icon {
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.what-card:hover .what-icon { transform: scale(1.08) rotate(-3deg); }
.what-card:nth-child(1):hover .what-icon { box-shadow: 0 0 0 6px rgba(143, 175, 155, 0.18); }
.what-card:nth-child(2):hover .what-icon { box-shadow: 0 0 0 6px rgba(142, 174, 207, 0.18); }
.what-card:nth-child(3):hover .what-icon { box-shadow: 0 0 0 6px rgba(200, 164, 93, 0.18); }
.what-card:nth-child(4):hover .what-icon { box-shadow: 0 0 0 6px rgba(143, 175, 155, 0.18); }

/* Impact Orbit — orbit line softly glows once the section enters view */
.impact-orbit.in .orbit-line {
  filter: drop-shadow(0 0 14px rgba(142, 174, 207, 0.40));
}
.impact-orbit.in .orbit-line path {
  animation: orbitBreathe 7s ease-in-out infinite;
}
@keyframes orbitBreathe {
  0%, 100% { stroke-opacity: 0.55; }
  50%      { stroke-opacity: 0.95; }
}

/* Project Portals — feature-row activation on hover */
.feature-visual {
  box-shadow: 0 0 0 0 rgba(111, 146, 120, 0);
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s var(--ease);
}
.feature-row:hover .feature-visual {
  box-shadow:
    0 30px 60px rgba(23, 42, 58, 0.18),
    0 16px 32px rgba(111, 146, 120, 0.22),
    0 0 0 1px rgba(143, 175, 155, 0.30);
}

/* "Breathing" project-card hover — the whole row scales slightly, the visual
   panel deepens its shadow, and the image inside subtly zooms. */
.feature-row {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-row:hover {
  transform: scale(1.02);
}
.feature-image {
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.feature-row:hover .feature-image {
  transform: scale(1.05) translate(0, 0) !important;
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .feature-row, .feature-row:hover { transform: none; }
  .feature-row:hover .feature-image { transform: none !important; }
}

/* =========================================================
   Per-project glyph micro-animations on hover
   Each project's SVG glyph animates in a way that mirrors
   its concept (layers, constellation, spark, tree, moons).
   ========================================================= */

/* Default glyph element transitions — give each child a starting state
   so individual project rules can override on hover. */
.feature-glyph rect,
.feature-glyph line,
.feature-glyph circle {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              stroke-opacity 0.5s ease,
              opacity 0.5s ease;
}

/* ----- Project 01 — Layers (4 rectangles drift apart and re-stack, loop) ----- */
.featured-stack > .feature-row:nth-child(1) .feature-glyph rect:nth-of-type(1) {
  animation: layerShift01 6s cubic-bezier(0.55, 0.05, 0.45, 0.95) infinite;
}
.featured-stack > .feature-row:nth-child(1) .feature-glyph rect:nth-of-type(2) {
  animation: layerShift02 6s cubic-bezier(0.55, 0.05, 0.45, 0.95) infinite;
}
.featured-stack > .feature-row:nth-child(1) .feature-glyph rect:nth-of-type(3) {
  animation: layerShift03 6s cubic-bezier(0.55, 0.05, 0.45, 0.95) infinite;
}
.featured-stack > .feature-row:nth-child(1) .feature-glyph rect:nth-of-type(4) {
  animation: layerShift04 6s cubic-bezier(0.55, 0.05, 0.45, 0.95) infinite;
}
/* Hover intensifies the spread */
.featured-stack > .feature-row:nth-child(1):hover .feature-glyph rect:nth-of-type(1) { animation-duration: 3s; }
.featured-stack > .feature-row:nth-child(1):hover .feature-glyph rect:nth-of-type(2) { animation-duration: 3s; }
.featured-stack > .feature-row:nth-child(1):hover .feature-glyph rect:nth-of-type(3) { animation-duration: 3s; }
.featured-stack > .feature-row:nth-child(1):hover .feature-glyph rect:nth-of-type(4) { animation-duration: 3s; }
@keyframes layerShift01 { 0%,70%,100% { transform: translate(0,0); } 35% { transform: translate(-8px, -6px); } }
@keyframes layerShift02 { 0%,70%,100% { transform: translate(0,0); } 35% { transform: translate( 8px, -6px); } }
@keyframes layerShift03 { 0%,70%,100% { transform: translate(0,0); } 35% { transform: translate(-8px,  6px); } }
@keyframes layerShift04 { 0%,70%,100% { transform: translate(0,0); } 35% { transform: translate( 8px,  6px); } }

/* ----- Project 02 — Constellation (lines + dots pulse in slow loop) ----- */
.featured-stack > .feature-row:nth-child(2) .feature-glyph line {
  animation: constellationGlow 5s ease-in-out infinite;
}
.featured-stack > .feature-row:nth-child(2) .feature-glyph circle {
  animation: constellationPulse 5s ease-in-out infinite;
}
@keyframes constellationGlow {
  0%, 70%, 100% { stroke-opacity: 0.55; stroke-width: 1.4; }
  35%           { stroke-opacity: 1;    stroke-width: 2.2; }
}
@keyframes constellationPulse {
  0%, 70%, 100% { transform: scale(1); }
  35%           { transform: scale(1.25); }
}

/* ----- Project 03 — Concentric (center spark pulses on loop) ----- */
.featured-stack > .feature-row:nth-child(3) .feature-glyph circle:nth-of-type(4) {
  animation: sparkPulseOnce 4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.featured-stack > .feature-row:nth-child(3) .feature-glyph circle:nth-of-type(1),
.featured-stack > .feature-row:nth-child(3) .feature-glyph circle:nth-of-type(2),
.featured-stack > .feature-row:nth-child(3) .feature-glyph circle:nth-of-type(3) {
  animation: concentricRipple 4s ease-out infinite;
}
@keyframes sparkPulseOnce {
  0%, 60%, 100% { transform: scale(1);   filter: drop-shadow(0 0 0 currentColor); }
  25%           { transform: scale(1.9); filter: drop-shadow(0 0 12px currentColor); }
}
@keyframes concentricRipple {
  0%, 60%, 100% { transform: scale(1);    stroke-opacity: 1; }
  25%           { transform: scale(1.04); stroke-opacity: 0.55; }
}

/* ----- Project 04 — Tree (gold lines continuously trace top → bottom) ----- */
/* Use a continuous dasharray loop so the lines feel like they're being
   drawn over and over, top-down. */
.featured-stack > .feature-row:nth-child(4) .feature-glyph line {
  stroke: var(--accent-gold);
  stroke-dasharray: 200;
  animation: treeDraw 4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.featured-stack > .feature-row:nth-child(4) .feature-glyph line:nth-of-type(1) { animation-delay: 0s; }
.featured-stack > .feature-row:nth-child(4) .feature-glyph line:nth-of-type(2) { animation-delay: 0.10s; }
.featured-stack > .feature-row:nth-child(4) .feature-glyph line:nth-of-type(3) { animation-delay: 0.50s; }
.featured-stack > .feature-row:nth-child(4) .feature-glyph line:nth-of-type(4) { animation-delay: 0.60s; }
.featured-stack > .feature-row:nth-child(4) .feature-glyph line:nth-of-type(5) { animation-delay: 0.50s; }
.featured-stack > .feature-row:nth-child(4) .feature-glyph line:nth-of-type(6) { animation-delay: 0.60s; }
@keyframes treeDraw {
  0%   { stroke-dashoffset: 200; stroke-opacity: 0.25; }
  35%  { stroke-dashoffset: 0;   stroke-opacity: 1;    }
  65%  { stroke-dashoffset: 0;   stroke-opacity: 1;    }
  100% { stroke-dashoffset: 200; stroke-opacity: 0.25; }
}

/* ----- Project 05 — Moon phases / Timeline (4 dots cycle one step forward, then back, loop) ----- */
.featured-stack > .feature-row:nth-child(5) .feature-glyph circle:nth-of-type(1) {
  animation: moonShift05 5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.featured-stack > .feature-row:nth-child(5) .feature-glyph circle:nth-of-type(2) {
  animation: moonShift05 5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s infinite;
}
.featured-stack > .feature-row:nth-child(5) .feature-glyph circle:nth-of-type(3) {
  animation: moonShift05 5s cubic-bezier(0.22, 1, 0.36, 1) 0.24s infinite;
}
.featured-stack > .feature-row:nth-child(5) .feature-glyph circle:nth-of-type(4) {
  animation: moonShift05 5s cubic-bezier(0.22, 1, 0.36, 1) 0.36s infinite;
}
@keyframes moonShift05 {
  0%, 70%, 100% { transform: translate(0, 0);     filter: drop-shadow(0 0 0 transparent); }
  35%           { transform: translate(60px, 80px); filter: drop-shadow(0 0 8px var(--accent-gold)); }
}

/* Reduced-motion respects all glyph hover animations */
@media (prefers-reduced-motion: reduce) {
  .feature-glyph rect,
  .feature-glyph line,
  .feature-glyph circle {
    animation: none !important;
    transition: none !important;
  }
}
.feature-num { transition: color var(--t-med); }
.feature-row:hover .feature-num { color: var(--sage); }

/* Clarity Pathway — node hover/focus reveal */
.process-step .node {
  transition: all var(--t-med), box-shadow var(--t-med);
}
.process-step:hover .node,
.process-step:focus-visible .node {
  border-color: var(--sage);
  background: var(--bg-card);
  box-shadow: 0 0 0 6px rgba(111, 146, 120, 0.16), 0 6px 18px var(--sage-glow);
  transform: scale(1.08);
}
.process-step:hover h4,
.process-step:focus-within h4 { color: var(--sage); }
.process-step:focus-visible {
  outline: none;
}
.process-step:focus-visible .node::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  opacity: 0.55;
}

/* Final CTA — arrow on the primary button slides on hover */
.cta-final .btn-pill span[aria-hidden="true"] {
  display: inline-block;
  transition: transform var(--t-fast);
}
.cta-final .btn-pill:hover span[aria-hidden="true"] {
  transform: translateX(5px);
}

/* Reduced motion — disable the orbit breathing animation */
@media (prefers-reduced-motion: reduce) {
  .impact-orbit.in .orbit-line path { animation: none; }
}

/* ---------- Reduced motion (brief-requested rule) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .fade-up, .stagger > * { opacity: 1; transform: none; }
  .path-divider svg { clip-path: none; }
  .process-timeline::before { transform: scaleX(1); }
  .process-curve path { stroke-dashoffset: 0; }
  .constellation-grid .connectors { opacity: 0.6; }
  .impact-orbit .orbit-line { opacity: 0.35; }
}

/* =========================================================
   v3 homepage additions — small overrides that extend the
   existing design system without altering it.
   ========================================================= */

/* Stats bar: 5-column variant at desktop */
@media (min-width: 1024px) {
  .metrics-grid.metrics-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .metrics-grid.metrics-grid-5 .metric-tile { padding: 28px 22px; }
  .metrics-grid.metrics-grid-5 .metric-num { font-size: clamp(2rem, 3.2vw, 2.75rem); }
}

/* "What I Do": 3-column variant + lead-in / closing line */
@media (min-width: 1024px) {
  .what-grid.what-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.whatido-leadin {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--sage);
  text-align: center;
  margin: 8px auto 36px;
  letter-spacing: 0.01em;
}
.whatido-close {
  text-align: center;
  margin: 48px auto 0;
  max-width: 82ch;
  color: var(--primary-slate);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.whatido-close strong { color: var(--primary-deep); font-weight: 600; }

/* =========================================================
   Enablement page — workshops, corporate cards, hybrid metrics
   ========================================================= */
.enablement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px)  { .enablement-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .enablement-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.enablement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  position: relative;
}
.enablement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.enablement-num {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}
.enablement-card h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--primary-deep);
  margin: 0;
}
.enablement-meta { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.enablement-meta > div { display: grid; grid-template-columns: 1fr; gap: 4px; }
.enablement-meta dt {
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.enablement-meta dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-body);
}

.confidentiality-note {
  font-size: 0.9375rem;
  color: var(--primary-slate);
  background: var(--bg-secondary);
  border-left: 3px solid var(--sage-light);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin-top: 16px;
}

.corporate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) { .corporate-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.corporate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex;
  flex-direction: column;
}
.corporate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.corporate-card-head {
  padding: 28px 28px 16px;
  background:
    radial-gradient(circle at 20% 20%, var(--moon-glow), transparent 55%),
    radial-gradient(circle at 80% 80%, var(--sage-glow), transparent 55%),
    linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-bottom: 1px solid var(--border-subtle);
}
.corporate-card-eyebrow {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}
.corporate-card-head h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--primary-deep);
  margin: 0;
}
.corporate-card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 18px; }
.corporate-card-body p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}
.corporate-meta { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.corporate-meta > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: baseline; }
.corporate-meta dt {
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
}
.corporate-meta dd {
  margin: 0;
  font-size: var(--fs-caption);
  color: var(--primary-slate);
  line-height: 1.5;
}

.metric-num.metric-num-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--primary-deep);
  letter-spacing: -0.01em;
}

/* =========================================================
   Background sparkles — slow-twinkling starfield on every section
   ========================================================= */
.bg-sparkles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-sparkles span {
  position: absolute;
  display: block;
  line-height: 1;
  color: var(--sage);
  opacity: 0;
  font-family: 'Inter', sans-serif;
  user-select: none;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  will-change: opacity, transform;
  /* Subtle glow so stars feel like they emit a tiny light */
  filter: drop-shadow(0 0 3px currentColor);
}
/* Base twinkle: dim → bright cycle with a touch of rotation.
   Bumped opacity range to keep stars clearly visible on bright displays. */
.bg-sparkles span { animation-name: bgSparkleTwinkle; }
@keyframes bgSparkleTwinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.85) rotate(0deg); }
  45%      { opacity: 1;    transform: scale(1.30) rotate(20deg); }
  55%      { opacity: 1;    transform: scale(1.30) rotate(20deg); }
}
/* Halo variant — bigger glow in dark-yellow + dark-blue tones */
.bg-sparkles span.halo {
  filter:
    drop-shadow(0 0 6px currentColor)
    drop-shadow(0 0 16px rgba(184, 134, 11, 0.70))
    drop-shadow(0 0 32px rgba(30, 58, 95, 0.55))
    drop-shadow(0 0 48px rgba(201, 162, 39, 0.35));
}
/* Drift variant — adds a slow translation to ~30% of stars so they
   appear to gently float instead of just blink in place. */
.bg-sparkles span.drift { animation-name: bgSparkleTwinkle, bgSparkleDrift; }
@keyframes bgSparkleDrift {
  0%, 100% { translate: 0 0; }
  50%      { translate: 14px -12px; }
}
/* Dust variant — tiny dim points that fill in between the larger stars */
.bg-sparkles span.dust {
  filter: none;
  font-size: 5px;
}
.bg-sparkles span.dust { animation-name: bgDustTwinkle; }
@keyframes bgDustTwinkle {
  0%, 100% { opacity: 0.40; }
  50%      { opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-sparkles span { animation: none; opacity: 0.18; transform: none; translate: 0; }
}

/* Selected Work — force the section heading + lead to a single line on wider viewports */
#projects .section-header h2 { max-width: none; }
#projects .section-header .lead { max-width: none; }
@media (min-width: 900px) {
  #projects .section-header h2,
  #projects .section-header .lead { white-space: nowrap; }
}
/* What I Do — same single-line treatment for the capabilities lead */
#approach .section-header .lead { max-width: none; }
@media (min-width: 1000px) {
  #approach .section-header .lead { white-space: nowrap; }
}
/* Selected Work eyebrow inherits the global bigger size; no override needed */

/* Selected Work: make project cards clickable as a whole, and let
   the 5th card span the full width on desktop for editorial rhythm */
.project-card { position: relative; }
.project-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-indent: -9999px;
  overflow: hidden;
  border-radius: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.project-card .corner-tag {
  text-transform: uppercase;
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
}
@media (min-width: 768px) {
  .project-card-wide { grid-column: 1 / -1; }
  .project-card-wide .project-cover { aspect-ratio: 21 / 6; }
}

/* =========================================================
   Case-study modal (Work page)
   ========================================================= */

/* Buttons styled as text/feature links — reset native button chrome */
button.text-link,
button.feature-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

/* Modal container — hidden by default */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.project-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 42, 58, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.project-modal-card {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 80px rgba(23, 42, 58, 0.25);
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px);
  transform: translateY(20px) scale(0.985);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.project-modal.open .project-modal-card { transform: translateY(0) scale(1); }

/* Close button (top-right of modal card) */
.project-modal-close {
  position: sticky;
  top: 0;
  left: 100%;
  margin-left: auto;
  margin-bottom: -32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--primary-deep);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  z-index: 2;
  float: right;
  margin-top: -8px;
  margin-right: -8px;
}
.project-modal-close:hover {
  background: var(--primary-deep);
  color: var(--bg-primary);
  transform: rotate(90deg);
}

/* When a modal is open, lock body scroll */
body.modal-open { overflow: hidden; }

/* Compact spacing inside the modal — tighter than the full project block */
.project-modal .project-block-header { margin-top: 4px; margin-bottom: 24px; }
.project-modal .project-block-number { font-size: clamp(2.25rem, 5vw, 4rem); margin-bottom: 8px; line-height: 1; }
.project-modal .project-block-category { margin-bottom: 14px; }
.project-modal .project-block-header h2 { font-size: clamp(1.625rem, 3vw, 2.5rem); margin: 0 0 14px; line-height: 1.15; }
.project-modal .project-block-subtitle { font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.5; }
.project-modal .project-section { margin-top: 24px; }
/* Bigger, more prominent subsection labels ("Outcomes at a Glance", "The Decision", etc.) */
.project-modal .project-section-label {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--primary-deep);
  margin-bottom: 12px;
}
.project-modal .role-scope-row { padding: 10px 18px; }
.project-modal .outcomes-table th { padding: 12px 18px; }
.project-modal .outcomes-table td { padding: 12px 18px; }
/* Prose — paragraphs sit tight, no big gap between them */
.project-modal .project-prose p { font-size: 1rem; line-height: 1.6; margin: 0; }
.project-modal .project-prose p + p { margin-top: 0; }
.project-modal .bullet-list { gap: 6px; }
.project-modal .visual-evidence { margin-top: 24px; }
.project-modal .visual-evidence-placeholder { min-height: 220px; padding: clamp(24px, 3vw, 40px); }
.project-modal figcaption { margin-top: 12px; font-size: 0.875rem; }

/* Reduced motion — skip the scale-in animation */
@media (prefers-reduced-motion: reduce) {
  .project-modal, .project-modal-card { transition: none; }
  .project-modal-card { transform: none; }
}

/* Feature-row case-study images — banner fills the entire visual panel,
   vertically and horizontally centered. With object-fit: cover the image
   scales up to fill any aspect-ratio mismatch instead of leaving a
   letterbox band. */
.feature-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  opacity: 0;
  transform: translate(0, 0);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  will-change: transform, opacity;
}
.feature-row.in .feature-image,
.feature-row .feature-image { opacity: 1; }

/* === Per-image ambient motion ===
   Translate-only drift so the full banner is always in view — no
   scaling past 100%, no cropping. Five slightly different rhythms
   keep the rows from moving in lockstep. */
.feature-image.drift-a { animation: imgDriftA 22s ease-in-out infinite; }
.feature-image.drift-b { animation: imgDriftB 26s ease-in-out infinite; }
.feature-image.drift-c { animation: imgDriftC 24s ease-in-out infinite; }
.feature-image.drift-d { animation: imgDriftD 28s ease-in-out infinite; }
.feature-image.drift-e { animation: imgDriftE 30s ease-in-out infinite; }

@keyframes imgDriftA {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-0.8%, -1.2%); }
}
@keyframes imgDriftB {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(1%, -1%); }
}
@keyframes imgDriftC {
  0%, 100% { transform: translate(-0.6%, 0.4%); }
  50%      { transform: translate(0.8%, -1%); }
}
@keyframes imgDriftD {
  0%, 100% { transform: translate(0, -0.6%); }
  50%      { transform: translate(-1%, 0.8%); }
}
@keyframes imgDriftE {
  0%, 100% { transform: translate(0.4%, 0); }
  50%      { transform: translate(-1%, -1%); }
}

/* Pause the drift on hover so the image settles */
.feature-row:hover .feature-image { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .feature-image { animation: none; transform: none; }
}

/* Image-ready project cover (Work page) — neutral slot with a
   placeholder hint until a real <img> is dropped in. */
.project-cover-image {
  background:
    radial-gradient(circle at 20% 20%, var(--moon-glow), transparent 55%),
    radial-gradient(circle at 80% 80%, var(--sage-glow), transparent 55%),
    linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.project-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--t-med);
}
.project-card:hover .project-cover-image img { transform: scale(1.03); }
.project-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--sage);
  opacity: 0.55;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.project-cover-placeholder svg { opacity: 0.7; }

/* Writing: article-card is an <a> — keep typography from the base styles */
a.article-card { color: inherit; text-decoration: none; }
a.article-card h3 { color: var(--primary-deep); }
.article-cover .corner-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-label);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-footer-link {
  text-align: center;
  margin-top: 48px;
}

/* Training & Media teaser — centered, compact */
.training-teaser {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.training-teaser .constellation { justify-content: center; margin-bottom: 16px; }
.training-teaser h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--primary-deep);
  margin: 12px 0 20px;
}
.training-teaser .lead {
  max-width: 60ch;
  margin: 0 auto 24px;
}

/* Recognition awards inherit existing .award styles; just give the inner
   wrapper a column layout so headline + paragraph stack cleanly. */
.awards-row .award > div:last-child { display: flex; flex-direction: column; }

/* Simplified footer for v3 (one row: © left, links right) */
.footer-bottom-simple {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.footer-bottom-simple::before { display: none; }
.footer-bottom-simple .footer-meta { white-space: nowrap; }
.footer-links-row { display: flex; flex-wrap: nowrap; gap: 28px; align-items: center; }
.footer-social.footer-links-row a {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.footer-social.footer-links-row a:hover {
  background: transparent;
  color: var(--accent-gold);
  transform: none;
}
.footer-text-link {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
}
.footer-text-link:hover { color: var(--sage); }

/* Footer moon-phase indicator — tiny crescent that reflects today's real
   lunar phase. Calculated client-side from the date. */
.moon-phase {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.95em;
  vertical-align: -1px;
  cursor: help;
  filter: saturate(0.85) brightness(0.95);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter var(--t-fast);
}
.moon-phase:hover {
  transform: scale(1.25) rotate(-6deg);
  filter: saturate(1) brightness(1);
}

/* Hero portrait — smaller, centered within its grid column */
.hero-portrait-wrap { width: 100%; max-width: 360px; justify-self: center; margin-inline: auto; }
@media (min-width: 1024px) {
  .hero-portrait-wrap { max-width: 380px; }
}

/* =========================================================
   v3 ABOUT-PAGE additions
   ========================================================= */

/* About hero — match home hero starfield treatment */
.about-hero { position: relative; padding: clamp(120px, 14vw, 180px) 0 clamp(72px, 8vw, 96px); overflow: hidden; }
.about-hero .prose { max-width: 760px; position: relative; z-index: 1; }
.about-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
.about-hero .lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--primary-slate); line-height: 1.55; max-width: 60ch; }

/* Hero pull-quote — chrome removed; just typography + highlighter. */
.hero-quote {
  position: relative;
  max-width: 640px;
  margin: 40px 0 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  isolation: isolate;
}
.hero-quote-bar { display: none; }
.hero-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.4;
  color: var(--primary-deep);
}
.hero-quote blockquote strong {
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.005em;
}
.hero-quote blockquote p { margin: 0; max-width: none; }
.hero-quote blockquote p + p { margin-top: 12px; }

/* Highlighter-style key phrases — a soft warm wash behind the words,
   like an editor's marker stroke. */
.hero-quote .hl {
  background: linear-gradient(180deg, transparent 55%, rgba(200, 164, 93, 0.32) 55%, rgba(200, 164, 93, 0.32) 92%, transparent 92%);
  padding: 0 2px;
  border-radius: 1px;
  font-style: italic;
  font-weight: 500;
  color: var(--primary-deep);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* About hero — fun decorations */
.about-hero-crescent {
  position: absolute;
  top: clamp(80px, 10vw, 140px);
  right: clamp(40px, 6vw, 120px);
  width: clamp(60px, 8vw, 110px);
  height: clamp(60px, 8vw, 110px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--moon-light), var(--moon)) ;
  box-shadow:
    inset -16px -10px 0 var(--bg-primary),
    0 0 60px var(--moon-glow);
  opacity: 0.85;
  animation: breatheGlow 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-spark {
  display: inline-block;
  color: var(--accent-gold);
  font-size: 0.55em;
  margin-left: 6px;
  vertical-align: 0.35em;
  animation: sparkPulse 2.4s ease-in-out infinite;
}
@keyframes sparkPulse {
  0%, 100% { opacity: 0.6; transform: scale(1) rotate(0); }
  50%      { opacity: 1;   transform: scale(1.25) rotate(20deg); }
}

.about-typed { margin-top: 24px; }

/* Hero fun chips — small playful stats row */
.hero-fun-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.fun-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--primary-slate);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.fun-chip:hover {
  transform: translateY(-2px);
  border-color: var(--sage-light);
  box-shadow: 0 6px 20px rgba(143, 175, 155, 0.18);
}
.fun-chip-num {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--sage);
  font-variant-numeric: tabular-nums;
}
.fun-chip-lbl { letter-spacing: 0.01em; }

/* Hero divider — a little starfield ribbon at the bottom of the hero */
.hero-divider {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--accent-gold);
  font-size: 12px;
  opacity: 0.85;
}
.hero-divider-line {
  width: clamp(40px, 6vw, 80px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-medium), transparent);
}

/* Wiggle on language pill hover */
@keyframes pillWiggle {
  0%, 100% { transform: translateY(-3px) rotate(0); }
  25%      { transform: translateY(-3px) rotate(-2.5deg); }
  75%      { transform: translateY(-3px) rotate(2.5deg); }
}
.languages-pills .cultural-pill {
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  cursor: default;
}
.languages-pills .cultural-pill:hover {
  animation: pillWiggle 0.5s ease-in-out;
  border-color: var(--sage);
  box-shadow: 0 6px 20px var(--sage-glow);
}

/* =========================================================
   v3 PROJECTS-PAGE additions
   ========================================================= */

/* Page hero shared with other inner pages */
.page-hero { position: relative; padding: clamp(120px, 14vw, 180px) 0 clamp(56px, 6vw, 88px); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px; max-width: 18ch; }
.page-hero h1 em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--sage); }
.page-hero .lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--primary-slate); line-height: 1.6; max-width: 70ch; }

/* Project sub-navigation — sticky strip */
.project-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}
.project-subnav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.project-subnav-list::-webkit-scrollbar { display: none; }
.project-subnav-list li { flex-shrink: 0; }
.project-subnav-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--primary-slate);
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.project-subnav-list a:hover { background: var(--bg-card); color: var(--primary-deep); }
.psn-num {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
}

/* Project block — each project is its own section */
.project-block {
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
}
.project-block + .project-block { border-top: 1px solid var(--border-subtle); }
.project-block.section-bg-cream + .project-block,
.project-block + .project-block.section-bg-cream { border-top: none; }

.project-block-header {
  max-width: 880px;
  margin-bottom: 56px;
}
.project-block-number {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--sage);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
  opacity: 0.85;
}
.project-block-category {
  display: inline-block;
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}
.project-block-header h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary-deep);
  margin: 0 0 20px;
}
.project-block-subtitle {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--primary-slate);
  max-width: 64ch;
  margin: 0;
}

/* Generic section spacing within a project block */
.project-section { margin-top: 56px; max-width: 880px; }
.project-section-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-label);
  margin: 0 0 20px;
}

/* Outcomes table */
.outcomes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.outcomes-table th {
  text-align: left;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.outcomes-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
  vertical-align: top;
}
.outcomes-table tbody tr:last-child td { border-bottom: none; }
.outcomes-table .oc-change {
  color: var(--accent-gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Outcomes cards (project 04 + project 03's compact variant) */
.outcomes-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .outcomes-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .outcomes-cards { grid-template-columns: repeat(4, 1fr); } }

.outcomes-cards-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) { .outcomes-cards-2col { grid-template-columns: repeat(4, 1fr); } }

.outcome-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.outcome-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(23,42,58,0.06); }
.outcome-card-tall { padding: 28px 24px; gap: 10px; }
.outcome-card-eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
}
.outcome-card-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary-slate);
}
.outcome-card-num {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.outcome-card-lbl {
  font-size: var(--fs-caption);
  color: var(--primary-slate);
  line-height: 1.5;
  margin-top: 4px;
}

/* Role + Scope strip */
.role-scope {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px 0;
  margin: 0;
}
.role-scope-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
@media (min-width: 640px) {
  .role-scope-row { grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline; }
}
.role-scope-row:last-child { border-bottom: none; }
.role-scope-row dt {
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
}
.role-scope-row dd {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-body);
  line-height: 1.55;
}

/* Skills demonstrated pills — sage outline */
.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--sage-light);
  color: var(--sage);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.skill-pill:hover { background: var(--sage-soft); color: var(--sage); }

/* Visual evidence placeholder */
.visual-evidence {
  margin: 56px 0 0;
  max-width: 100%;
}
.visual-evidence-placeholder {
  background:
    radial-gradient(circle at 20% 20%, var(--moon-glow), transparent 55%),
    radial-gradient(circle at 80% 80%, var(--sage-glow), transparent 55%),
    linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  min-height: 280px;
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-evidence figcaption {
  margin-top: 16px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--primary-slate);
  text-align: center;
}

/* VE: 4-box flow diagram (project 01) */
.visual-evidence-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ve-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 22px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary-deep);
  box-shadow: 0 6px 18px rgba(23,42,58,0.06);
}
.ve-arrow { color: var(--sage); font-size: 1.5rem; font-weight: 300; }

/* VE: module chips (project 02) */
.visual-evidence-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  width: 100%;
}
.ve-module {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--primary-deep);
  font-family: 'Sora', sans-serif;
  font-weight: 500;
}

/* VE: 3-page flow (project 03) */
.visual-evidence-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
}
.ve-page {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  text-align: left;
}
.ve-page-num {
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}
.ve-page-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--primary-deep);
}
.ve-page-sub { font-size: 0.8125rem; color: var(--primary-slate); }
.ve-page-arrow { color: var(--sage); font-size: 1.5rem; display: flex; align-items: center; }
.ve-page-featured {
  background: var(--sage-soft);
  border-color: var(--sage-light);
}
.ve-page-featured .ve-page-num { color: var(--sage); }

/* VE: hierarchy tree (project 04) */
.visual-evidence-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 460px;
}
.ve-tier {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 28px;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  color: var(--primary-deep);
}
.ve-tier-1 { background: var(--sage-soft); border-color: var(--sage-light); color: var(--sage); font-weight: 600; }
.ve-tier-2 { width: 80%; }
.ve-tier-3 { width: 70%; }
.ve-tier-4 { width: 60%; font-size: 0.875rem; color: var(--primary-slate); }
.ve-tier-line {
  width: 1px;
  height: 14px;
  background: var(--border-medium);
}

/* VE: longitudinal timeline (project 05) */
.visual-evidence-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.ve-cohort {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--sage);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ve-cohort-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}
.ve-cohort-module {
  font-size: 0.9375rem;
  color: var(--primary-deep);
  font-weight: 500;
}

/* Project prose — body sections (Problem, Built, Decision, etc.) */
.project-prose p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 68ch;
  margin: 0;
}
.project-prose p + p { margin-top: 1.25em; }
.project-prose strong { color: var(--primary-deep); font-weight: 600; }
.project-prose em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--primary-deep);
  font-weight: 500;
}

/* Bullet list with sage markers */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bullet-list li {
  position: relative;
  padding-left: 22px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-body);
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

/* Pull quote (project 03) */
.pull-quote {
  margin: 48px 0 0;
  padding: 40px clamp(24px, 5vw, 64px);
  text-align: center;
  position: relative;
}
.pull-quote-mark {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.6;
  color: var(--sage);
  opacity: 0.5;
  margin-bottom: 12px;
}
.pull-quote p {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  font-weight: 400;
  color: var(--primary-deep);
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0 auto;
}
.pull-quote em {
  font-style: italic;
  color: var(--sage);
}

/* Big stat emphasis (projects 02 and 05) */
.stat-emphasis {
  margin: 48px 0 0;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-emphasis::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, var(--gold-glow), transparent 55%),
    radial-gradient(circle at 80% 80%, var(--moon-glow), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}
.stat-emphasis-num {
  position: relative;
  font-family: 'Sora', sans-serif;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}
.stat-emphasis-of {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--primary-slate);
  margin: 0 8px;
}
.stat-emphasis-lbl {
  position: relative;
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--primary-slate);
  letter-spacing: 0.02em;
}

/* Mobile — outcomes table collapses to stacked cards */
@media (max-width: 640px) {
  .outcomes-table, .outcomes-table tbody, .outcomes-table tr, .outcomes-table td, .outcomes-table thead { display: block; }
  .outcomes-table thead { display: none; }
  .outcomes-table tr {
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
  }
  .outcomes-table tr:last-child { border-bottom: none; }
  .outcomes-table td {
    border: none;
    padding: 4px 20px;
  }
  .outcomes-table td:first-child {
    font-weight: 600;
    color: var(--primary-deep);
    padding-top: 14px;
  }
}

/* Languages & Places — pills + closing line */
.languages-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 28px;
  max-width: 640px;
}
.languages-pills .cultural-pill {
  padding: 12px 22px;
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--primary-deep);
}
.languages-closing {
  text-align: center;
  color: var(--primary-slate);
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  max-width: 640px;
  margin: 0 auto;
}

/* Career timeline — Current pill highlight */
.timeline-item-current .timeline-date {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.current-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Education — two clean cards */
.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) { .education-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--t-med);
}
.education-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.education-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}
.education-year {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  text-transform: uppercase;
}
.education-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--primary-deep);
  margin: 0;
}
.education-card .education-program {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--sage);
  font-weight: 500;
}
.education-card .role-org {
  font-size: var(--fs-small);
  color: var(--primary-slate);
}

/* Skills grid — 5-card variant: all 5 in one row on desktop */
@media (min-width: 1024px) {
  .skills-grid.skills-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }
  .skills-grid.skills-grid-5 .skill-block { padding: 22px 20px; }
  .skills-grid.skills-grid-5 .skill-block ul li { font-size: 0.875rem; }
}

/* Sage green bullet dots beside each skill */
.skill-block ul { list-style: none; padding: 0; margin: 0; }
.skill-block ul li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.skill-block ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
  transform: translateY(-1px);
}

/* A Little Recognition — image + body cards */
.recognition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px)  { .recognition-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 960px)  { .recognition-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.recognition-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-med);
}
.recognition-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.recognition-image {
  background: var(--bg-secondary);
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: block;
  border-bottom: 1px solid var(--border-subtle);
}
.recognition-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--t-med);
}
.recognition-card:hover .recognition-image img { transform: scale(1.02); }
.recognition-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recognition-body h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--primary-deep);
  margin: 0;
}
.recognition-body p {
  font-size: var(--fs-small);
  color: var(--primary-slate);
  margin: 0;
}
