/* ============================================================
   SPARK site stylesheet - shared across every page.
   Sits on top of the SPARK Design System tokens (colors,
   typography, spacing). Dark-mode overrides derived from the
   same neutral/blue/gold scale already defined in tokens/colors.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--space-6); }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--action-primary); color: var(--action-primary-text);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-md);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--color-brand-blue);
  display: inline-block;
  margin-bottom: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-normal) var(--ease-bounce),
              box-shadow var(--duration-normal) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard);
  text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
  background: var(--action-primary);
  color: var(--action-primary-text);
  box-shadow: var(--shadow-glow-blue);
}
.btn-primary:hover { background: var(--action-primary-hover); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: var(--border-width-thick) solid var(--border-default);
}
.btn-ghost:hover { border-color: var(--color-brand-blue); color: var(--color-brand-blue); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--surface-page) 88%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: var(--border-width-thin) solid var(--border-subtle);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; flex: none; }
.brand img { height: 34px; width: auto; }
.brand span {
  font-family: var(--font-display); font-weight: var(--weight-extrabold);
  font-size: var(--text-lg); color: var(--text-primary); letter-spacing: var(--tracking-tight);
}
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a {
  font-weight: var(--weight-bold); font-size: var(--text-sm); text-decoration: none;
  color: var(--text-secondary); transition: color var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-brand-blue); }
.nav-links a[aria-current="page"] { color: var(--color-brand-blue); }
.nav-cta { display: flex; align-items: center; gap: var(--space-4); flex: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--text-primary); cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--surface-page);
    flex-direction: column; align-items: flex-start; gap: var(--space-6);
    padding: var(--space-8) var(--space-6); transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-standard); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: var(--text-lg); }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { padding: var(--space-3) var(--space-5); font-size: var(--text-sm); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-standard), transform 0.7s var(--ease-standard); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: var(--space-16) 0 var(--space-20); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-16); align-items: center;
}
.hero h1 {
  font-family: var(--font-display); font-weight: var(--weight-extrabold);
  font-size: clamp(2.5rem, 5vw, var(--text-5xl)); line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight); color: var(--text-primary); margin-bottom: var(--space-5);
}
.hero h1 em {
  font-style: normal; color: var(--color-brand-blue);
  background: linear-gradient(180deg, transparent 62%, var(--gold-200) 62%);
  padding: 0 2px;
}
.hero p.lede {
  font-size: var(--text-lg); color: var(--text-secondary); max-width: 46ch;
  line-height: var(--leading-relaxed); margin-bottom: var(--space-8);
}
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; position: relative;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -32px; bottom: -28px;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--surface-card); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; padding: var(--space-4);
  animation: float 5s var(--ease-standard) infinite;
}
.hero-badge img { width: 100%; height: 100%; object-fit: contain; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin-inline: auto; }
  .hero-badge { width: 96px; height: 96px; left: -18px; bottom: -18px; }
}

/* ---------- Page header (subpages) ---------- */
.page-header { padding: var(--space-16) 0 var(--space-12); }
.page-header h1 {
  font-family: var(--font-display); font-weight: var(--weight-extrabold);
  font-size: clamp(2rem, 4vw, var(--text-4xl)); line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight); color: var(--text-primary); margin-bottom: var(--space-4);
}
.page-header p { font-size: var(--text-lg); color: var(--text-secondary); max-width: 56ch; line-height: var(--leading-relaxed); }

/* ---------- Manifesto / full-width quote ---------- */
.manifesto { padding: var(--space-20) 0; background: var(--surface-brand); color: var(--text-on-brand); text-align: center; }
.manifesto blockquote {
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: clamp(1.6rem, 3.4vw, var(--text-3xl)); line-height: var(--leading-snug);
  max-width: 22ch; margin: 0 auto;
}
.manifesto .who { margin-top: var(--space-6); font-weight: var(--weight-semibold); font-size: var(--text-sm); opacity: 0.85; }

/* ---------- Generic section rhythm ---------- */
.section { padding: var(--space-20) 0; }
.section-head { max-width: 56ch; margin-bottom: var(--space-12); }
.section-head h2 {
  font-family: var(--font-display); font-weight: var(--weight-extrabold);
  font-size: clamp(1.8rem, 3vw, var(--text-2xl)); color: var(--text-primary);
  letter-spacing: var(--tracking-tight); margin-bottom: var(--space-3);
}
.section-head p { color: var(--text-secondary); font-size: var(--text-md); }
.section-foot { margin-top: var(--space-10); }

/* ---------- Pillars bento (Perspective / Action / Solution) ---------- */
.pillar-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--space-6);
}
.pillar-card {
  border-radius: var(--radius-xl); padding: var(--space-8); background: var(--surface-card);
  border: var(--border-width-thin) solid var(--border-subtle); box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-bounce), box-shadow var(--duration-normal) var(--ease-standard);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar-card.lead { grid-row: 1 / 3; background: linear-gradient(160deg, var(--blue-50), var(--surface-card) 60%); display: flex; flex-direction: column; justify-content: center; }
.pillar-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: var(--space-5); color: var(--text-on-brand);
}
.pillar-card.lead .pillar-icon { background: var(--color-brand-blue); }
.pillar-card:nth-of-type(2) .pillar-icon { background: var(--color-brand-gold); color: var(--text-on-accent); }
.pillar-card:nth-of-type(3) .pillar-icon { background: var(--neutral-800); }
.pillar-card h3 { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-xl); margin-bottom: var(--space-3); color: var(--text-primary); }
.pillar-card p { color: var(--text-secondary); line-height: var(--leading-relaxed); }

@media (max-width: 780px) {
  .pillar-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .pillar-card.lead { grid-row: auto; }
}

/* ---------- Vision / Mission pair (about) ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.vm-card { padding: var(--space-8); border-radius: var(--radius-xl); background: var(--surface-card); border: var(--border-width-thin) solid var(--border-subtle); }
.vm-num { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: var(--text-xs); color: var(--color-brand-blue); letter-spacing: var(--tracking-wider); margin-bottom: var(--space-4); }
.vm-card h3 { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-xl); color: var(--text-primary); margin-bottom: var(--space-4); line-height: var(--leading-snug); }
.vm-card p { color: var(--text-secondary); line-height: var(--leading-relaxed); margin-bottom: var(--space-4); }
.vm-card p:last-child { margin-bottom: 0; }
@media (max-width: 780px) { .vm-grid { grid-template-columns: 1fr; } }

/* ---------- Programs duo panel ---------- */
.duo { padding: 0; }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; }
.duo-panel { padding: var(--space-20) var(--space-10); }
.duo-panel.blue { background: var(--blue-50); }
.duo-panel.gold { background: var(--gold-50); }
.duo-panel .pillar-icon { width: 56px; height: 56px; font-size: 28px; margin-bottom: var(--space-6); }
.duo-panel.blue .pillar-icon { background: var(--color-brand-blue); color: var(--text-on-brand); }
.duo-panel.gold .pillar-icon { background: var(--color-brand-gold); color: var(--text-on-accent); }
.duo-panel h3 { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: var(--text-2xl); margin-bottom: var(--space-4); color: var(--text-primary); }
.duo-panel p { color: var(--text-secondary); font-size: var(--text-md); line-height: var(--leading-relaxed); max-width: 40ch; margin-bottom: var(--space-6); }
.duo-panel a.link {
  font-weight: var(--weight-bold); text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--text-link); transition: gap var(--duration-fast) var(--ease-standard);
}
.duo-panel a.link:hover { gap: var(--space-3); }
@media (max-width: 780px) { .duo-grid { grid-template-columns: 1fr; } .duo-panel { padding: var(--space-12) var(--space-6); } }

/* ---------- Projects carousel (home preview) ---------- */
.projects-track {
  display: flex; gap: var(--space-6); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--space-4); margin: 0 calc(var(--space-6) * -1); padding-inline: var(--space-6);
  scrollbar-width: thin;
}
.project-card {
  scroll-snap-align: start; flex: 0 0 min(340px, 82vw);
  border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-card);
  box-shadow: var(--shadow-md); border: var(--border-width-thin) solid var(--border-subtle);
}
.project-photo { aspect-ratio: 16 / 11; position: relative; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.project-tag {
  position: absolute; top: var(--space-4); left: var(--space-4);
  background: var(--surface-card); color: var(--text-primary); font-weight: var(--weight-bold);
  font-size: var(--text-xs); padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
}
.project-body { padding: var(--space-6); }
.project-body h3 { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); margin-bottom: var(--space-2); color: var(--text-primary); }
.project-body p { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-relaxed); }

/* ---------- Project feature sections (project.html detail) ---------- */
.project-feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; padding: var(--space-16) 0; }
.project-feature.reverse .pf-media { order: 2; }
.pf-media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.pf-media img { width: 100%; height: 100%; object-fit: cover; }
.pf-tag { font-weight: var(--weight-bold); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-brand-blue); margin-bottom: var(--space-3); display: inline-block; }
.project-feature h2 { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: clamp(1.6rem, 3vw, var(--text-2xl)); color: var(--text-primary); margin-bottom: var(--space-4); }
.project-feature p { color: var(--text-secondary); font-size: var(--text-md); line-height: var(--leading-relaxed); max-width: 46ch; }
@media (max-width: 860px) {
  .project-feature { grid-template-columns: 1fr; gap: var(--space-8); padding: var(--space-10) 0; }
  .project-feature.reverse .pf-media { order: 0; }
}

.project-stack { background: var(--surface-inverse); color: var(--neutral-0); padding: var(--space-20) 0; }
.project-stack .pf-tag { color: var(--gold-400); }
.project-stack h2 { color: var(--neutral-0); }
.project-stack-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-12); align-items: center; }
.project-stack p { color: var(--neutral-300); font-size: var(--text-md); line-height: var(--leading-relaxed); max-width: 46ch; }
.project-stack .pf-media { aspect-ratio: 5/4; }
@media (max-width: 860px) { .project-stack-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* ---------- Vox Mundi editorial spotlight (home preview) ---------- */
.journal { background: var(--surface-sunken); }
.journal-inner { display: grid; grid-template-columns: auto 1fr; gap: var(--space-8); align-items: flex-start; }
.journal-rule { width: var(--border-width-thick); background: var(--color-brand-gold); align-self: stretch; border-radius: var(--radius-pill); min-height: 100%; }
.journal blockquote {
  font-family: var(--font-display); font-weight: var(--weight-semibold); font-style: normal;
  font-size: clamp(1.35rem, 2.6vw, var(--text-2xl)); line-height: var(--leading-snug);
  color: var(--text-primary); max-width: 42ch; margin-bottom: var(--space-6);
}
.journal-byline { font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--text-primary); }
.journal-byline span { display: block; font-weight: var(--weight-regular); color: var(--text-muted); font-size: var(--text-xs); margin-top: 2px; }
.journal-inner .link { margin-top: var(--space-6); display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-bold); color: var(--text-link); text-decoration: none; }
@media (max-width: 700px) { .journal-inner { grid-template-columns: 1fr; } .journal-rule { width: 100%; height: var(--border-width-thick); min-height: 0; } }

/* ---------- Article (vox-mundi.html full read) ---------- */
.article { max-width: 68ch; }
.article .meta { font-size: var(--text-sm); color: var(--text-muted); font-weight: var(--weight-semibold); margin-bottom: var(--space-6); }
.article h2 {
  font-family: var(--font-display); font-weight: var(--weight-extrabold);
  font-size: clamp(1.6rem, 3vw, var(--text-2xl)); color: var(--text-primary); margin-bottom: var(--space-6); line-height: var(--leading-snug);
}
.article p { color: var(--text-secondary); font-size: var(--text-md); line-height: var(--leading-relaxed); margin-bottom: var(--space-5); }
.article blockquote {
  border-left: var(--border-width-thick) solid var(--color-brand-gold); padding-left: var(--space-6);
  font-family: var(--font-display); font-weight: var(--weight-semibold); font-style: normal;
  font-size: var(--text-lg); color: var(--text-primary); margin: var(--space-8) 0; line-height: var(--leading-snug);
}
.author-box {
  display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-10);
  padding-top: var(--space-8); border-top: var(--border-width-thin) solid var(--border-subtle);
}
.author-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); flex: none; }
.author-box .name { font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--text-primary); }
.author-box .school { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* ---------- Team grid (executives + leadership, unified) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.team-card { background: var(--surface-card); border: var(--border-width-thin) solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; box-shadow: var(--shadow-sm); transition: transform var(--duration-normal) var(--ease-bounce); }
.team-card:hover { transform: translateY(-4px); }
.team-avatar {
  width: 128px; height: 128px; border-radius: 50%; margin: 0 auto var(--space-5);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-2xl); color: var(--text-on-brand);
}
.team-avatar-photo {
  width: 128px; height: 128px; border-radius: 50%; margin: 0 auto var(--space-5);
  object-fit: cover; box-shadow: var(--shadow-md);
  border: var(--border-width-thick) solid var(--surface-card);
  outline: var(--border-width-thin) solid var(--border-subtle);
}
.team-card h3 { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-md); color: var(--text-primary); margin-bottom: var(--space-1); }
.team-role { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-brand-blue); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.team-school { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-muted); margin-bottom: var(--space-3); }
.team-card p { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-16); align-items: flex-start; }
.contact-side h2 { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: var(--text-2xl); color: var(--text-primary); margin-bottom: var(--space-4); }
.contact-side p { color: var(--text-secondary); line-height: var(--leading-relaxed); margin-bottom: var(--space-6); }
.contact-fact { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-4); }
.contact-fact .ph { font-size: 20px; color: var(--color-brand-blue); margin-top: 2px; }
.contact-fact div { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); }
.contact-fact strong { display: block; color: var(--text-primary); font-weight: var(--weight-bold); margin-bottom: 2px; }

.form-card { background: var(--surface-card); border: var(--border-width-thin) solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-primary); }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  font-family: var(--font-body); font-size: var(--text-base); color: var(--text-primary);
  background: var(--surface-page); border: var(--border-width-thin) solid var(--border-default);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--border-focus); box-shadow: var(--focus-ring);
}
.field textarea { resize: vertical; min-height: 120px; }
.type-toggle { display: flex; gap: var(--space-3); }
.type-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.type-toggle label {
  flex: 1; text-align: center; padding: var(--space-3) var(--space-4); border-radius: var(--radius-pill);
  border: var(--border-width-thick) solid var(--border-default); font-weight: var(--weight-bold); font-size: var(--text-sm);
  cursor: pointer; transition: all var(--duration-fast) var(--ease-standard); color: var(--text-secondary);
}
.type-toggle input:checked + label { border-color: var(--color-brand-blue); color: var(--color-brand-blue); background: var(--blue-50); }
.type-toggle input:focus-visible + label { box-shadow: var(--focus-ring); }
.form-card .btn { width: 100%; justify-content: center; margin-top: var(--space-2); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--surface-inverse); color: var(--neutral-0); text-align: center; padding: var(--space-20) 0; }
.cta-band h2 { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: clamp(1.9rem, 3.4vw, var(--text-3xl)); margin-bottom: var(--space-4); }
.cta-band p { color: var(--neutral-300); font-size: var(--text-md); max-width: 48ch; margin: 0 auto var(--space-8); }

/* ---------- Footer ---------- */
footer { background: var(--neutral-950); color: var(--neutral-300); padding: var(--space-16) 0 var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-12); margin-bottom: var(--space-12); }
.footer-brand { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.footer-brand img { height: 30px; }
.footer-brand span { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: var(--text-md); color: var(--neutral-0); }
.footer-grid p { max-width: 34ch; line-height: var(--leading-relaxed); font-size: var(--text-sm); }
.footer-col h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--neutral-500); font-weight: var(--weight-extrabold); margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { text-decoration: none; color: var(--neutral-300); font-size: var(--text-sm); transition: color var(--duration-fast); }
.footer-col a:hover { color: var(--color-brand-blue); }
.footer-bottom { border-top: var(--border-width-thin) solid var(--neutral-800); padding-top: var(--space-6); font-size: var(--text-xs); color: var(--neutral-500); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* ---------- Dark mode (derived from the same token scale) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --surface-page: var(--neutral-950);
    --surface-card: var(--neutral-900);
    --surface-sunken: var(--neutral-900);
    --surface-inverse: var(--neutral-0);
    --text-primary: var(--neutral-50);
    --text-secondary: var(--neutral-300);
    --text-muted: var(--neutral-500);
    --text-on-brand: var(--neutral-950);
    --border-subtle: var(--neutral-800);
    --border-default: var(--neutral-700);
    --action-primary-text: var(--neutral-950);
  }
  .hero h1 em { background: linear-gradient(180deg, transparent 62%, oklch(45% 0.09 80 / 55%) 62%); }
  .pillar-card.lead { background: linear-gradient(160deg, oklch(28% 0.05 226), var(--surface-card) 65%); }
  .duo-panel.blue { background: oklch(24% 0.05 226); }
  .duo-panel.gold { background: oklch(24% 0.06 80); }
  .type-toggle input:checked + label { background: oklch(24% 0.05 226); }
  .cta-band { background: var(--neutral-900); }
  .cta-band p { color: var(--neutral-400); }
  .project-stack { background: var(--neutral-900); }
  footer { background: #000; }
}
