/* ================================================================
   CARE Institute — main.css
   Methodology: MOBILE-FIRST (base = 375px)
   Breakpoints: min-width: 768px (tablet), min-width: 1024px (desktop)
   ================================================================ */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/newsreader-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/newsreader-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/newsreader-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/geist-var.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/geist-mono-var.woff2') format('woff2-variations');
}

:root {
  --midnight: #0B1120;
  --deep: #0F172A;
  --surface: #161D2F;
  --teal: #00D4AA;
  --teal-glow: rgba(0, 212, 170, 0.12);
  --teal-dim: rgba(0, 212, 170, 0.35);
  --teal-border: rgba(0, 212, 170, 0.2);
  --warm: #FAFAF8;
  --cream: #F5F5F0;
  --sand: #EDECE6;
  --tx-w: #E2E8F0;
  --tx-m: #8B95A5;
  --tx-d: #1A1F2E;
  --tx-dim: #52525B;
  --bd-dark: rgba(255, 255, 255, 0.07);
  --bd-light: #E2E0DA;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'SF Mono', Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--warm);
  color: var(--tx-d);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }

/* accessibility: skip-nav link */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--teal);
  color: var(--midnight);
  font-weight: 600;
  z-index: 10000;
}
.skip-nav:focus { left: 8px; top: 8px; outline: 2px solid var(--midnight); }

.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;
}

/* focus states: visible on dark and light surfaces */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==== NAV (mobile base) ==== */
nav.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
nav.topnav.scrolled { background: rgba(11, 17, 32, 0.95); backdrop-filter: blur(16px); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  border: 1.5px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px; color: var(--teal); font-weight: 500;
}
.logo-name { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }

.nav-links { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--bd-dark);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle:hover { border-color: var(--teal-border); }
.nav-toggle span { width: 18px; height: 1.5px; background: var(--tx-w); margin: 0 auto; transition: transform 0.2s; }

.nav-mobile {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 12px; right: 12px;
  background: var(--surface);
  border: 1px solid var(--bd-dark);
  border-radius: 12px;
  padding: 8px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  color: var(--tx-w);
  text-decoration: none;
  font-size: 15px;
  border-radius: 8px;
  min-height: 44px;
  line-height: 20px;
}
.nav-mobile a:hover, .nav-mobile a:focus-visible { background: rgba(255, 255, 255, 0.04); color: var(--teal); }
.nav-mobile .group-label {
  padding: 8px 16px 4px;
  color: var(--tx-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

/* ==== HERO (mobile base) ==== */
.hero {
  background: var(--midnight);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 96px 0 48px;
}
.hero::before {
  content: ''; position: absolute;
  top: -20%; right: -30%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,170,0.05), transparent 65%);
  pointer-events: none;
}
.hero-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px var(--teal-dim);
}
.hero-eyebrow span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero h1 .em { color: var(--teal); font-style: italic; }
.hero-sub {
  font-size: 15px;
  color: var(--tx-m);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}
.hero-ctas { display: flex; flex-direction: column; gap: 10px; }

.btn-p, .btn-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 48px;
  font-weight: 500;
}
.btn-p { background: var(--teal); color: var(--midnight); font-weight: 600; }
.btn-p:hover { background: #00E8BB; transform: translateY(-1px); }
.btn-g { border: 1px solid var(--bd-dark); color: var(--tx-w); }
.btn-g:hover { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.03); }

/* routing viz — simplified 3-node stack on mobile */
.viz {
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.vn {
  position: relative;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--bd-dark);
  background: var(--surface);
  color: var(--tx-m);
  opacity: 0;
  animation: vnIn 0.5s ease-out forwards;
}
.vn.on {
  border-color: var(--teal-border);
  color: var(--teal);
  box-shadow: 0 0 20px var(--teal-glow);
}
.vn-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
  opacity: 0.6;
}
.vn-val { font-size: 13px; font-weight: 500; font-family: var(--sans); }

: "hide lower viz nodes on mobile (routing animation is desktop-only spectacle)";
.viz .vn.desktop-only { display: none; }

.vn:nth-child(1) { animation-delay: 0.1s; }
.vn:nth-child(2) { animation-delay: 0.3s; }
.vn:nth-child(3) { animation-delay: 0.5s; }

/* ==== STATS (mobile: 2x2) ==== */
.stats { background: var(--deep); border-top: 1px solid var(--bd-dark); padding: 32px 0; }
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  text-align: center;
}
.stats-row > div { position: relative; padding: 0 8px; }
.s-num { font-family: var(--serif); font-size: 30px; color: var(--teal); letter-spacing: -0.03em; line-height: 1.1; }
.s-lab { font-size: 10px; color: var(--tx-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* ==== PILLARS (mobile: single column) ==== */
.pillars-sec { padding: 56px 0; background: var(--warm); }
.sec-intro { text-align: center; margin-bottom: 32px; }
.sec-intro h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.sec-intro p { font-size: 14px; color: var(--tx-m); font-weight: 300; }
.four-pillars { display: grid; grid-template-columns: 1fr; gap: 12px; }
.fp {
  border: 1px solid var(--bd-light);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
  background: #fff;
}
.fp:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,170,0.08); }
.fp:hover .fp-icon { background: var(--teal); color: var(--midnight); }
.fp-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-family: var(--mono);
  font-size: 16px; color: var(--tx-m);
  transition: all 0.3s;
  font-weight: 500;
}
.fp h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 6px; font-weight: 400; }
.fp p { font-size: 14px; color: var(--tx-m); line-height: 1.6; font-weight: 300; }
.fp-tension {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--teal);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==== USE CASES (mobile: single column) ==== */
.cases-sec { padding: 0 0 56px; background: var(--warm); }
.cases-sec h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cases-sec .lead { font-size: 14px; color: var(--tx-m); font-weight: 300; margin-bottom: 32px; }
.cases-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.case-card {
  background: var(--cream);
  border: 1px solid var(--bd-light);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s;
}
.case-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.case-env {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 10px;
  font-weight: 500;
}
.case-quote { font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.5; margin-bottom: 12px; color: var(--tx-d); }
.case-who { font-size: 13px; color: var(--tx-m); font-weight: 400; }
.case-detail {
  font-size: 13px;
  color: var(--tx-m);
  line-height: 1.6;
  margin-top: 12px;
  font-weight: 300;
  padding-top: 12px;
  border-top: 1px solid var(--bd-light);
}

/* ==== RESEARCH (mobile: single column) ==== */
.research-sec { padding: 40px 0 56px; background: var(--warm); border-top: 1px solid var(--bd-light); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.sec-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.sec-head a { font-size: 13px; color: var(--teal); text-decoration: none; font-weight: 500; }
.r-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--bd-light);
  border: 1px solid var(--bd-light);
  border-radius: 10px;
  overflow: hidden;
}
.r-card {
  background: var(--warm);
  padding: 24px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 44px;
}
.r-card:hover, .r-card:focus-visible { background: var(--cream); }
.r-venue {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 6px;
  font-weight: 500;
}
.r-title { font-family: var(--serif); font-size: 18px; line-height: 1.3; margin-bottom: 6px; font-weight: 400; }
.r-desc { font-size: 14px; color: var(--tx-m); line-height: 1.6; font-weight: 300; }

/* ==== RESIDENCY (dark band, mobile stacked) ==== */
.residency-sec {
  background: var(--midnight);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.residency-sec::before {
  content: ''; position: absolute;
  top: 0; right: -50%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,170,0.04), transparent 60%);
  pointer-events: none;
}
.res-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.res-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.residency-sec h2 {
  font-family: var(--serif);
  font-size: 26px;
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.residency-sec p { font-size: 15px; color: var(--tx-m); line-height: 1.7; font-weight: 300; margin-bottom: 20px; }
.res-details { display: grid; grid-template-columns: 1fr; gap: 10px; }
.res-detail { background: var(--surface); border: 1px solid var(--bd-dark); border-radius: 10px; padding: 14px 16px; }
.res-detail-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.res-detail-val { font-size: 14px; color: var(--tx-w); font-weight: 400; }
.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--teal);
  color: var(--midnight);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 16px;
  min-height: 48px;
}

/* ==== SUPPORT + NEWSLETTER (mobile stacked) ==== */
.support-sec { padding: 48px 0; background: var(--warm); border-top: 1px solid var(--bd-light); }
.support-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
.support-col h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin-bottom: 8px; }
.support-col p { font-size: 14px; color: var(--tx-m); line-height: 1.6; font-weight: 300; margin-bottom: 16px; }
.btn-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--tx-d);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  min-height: 48px;
}
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-form input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--bd-light);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--sans);
  background: #fff;
  outline: none;
  min-height: 48px;
}
.nl-form input:focus { border-color: var(--teal); }
.nl-form button {
  padding: 14px 20px;
  background: var(--tx-d);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
}

/* ==== FOOTER ==== */
footer { background: var(--deep); padding: 32px 0; border-top: 1px solid var(--bd-dark); }
.ft-inner { display: flex; flex-direction: column; gap: 12px; }
.ft-left { font-size: 13px; color: var(--tx-dim); }
.ft-links { display: flex; gap: 16px; flex-wrap: wrap; }
.ft-links a { font-size: 13px; color: var(--tx-dim); text-decoration: none; transition: color 0.2s; }
.ft-links a:hover, .ft-links a:focus-visible { color: var(--tx-w); }

/* ==== ARTICLE / POST page ==== */
.post { padding: 120px 0 64px; background: var(--warm); }
.post-inner { max-width: 720px; margin: 0 auto; }
.post h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.post-meta { font-family: var(--mono); font-size: 11px; color: var(--tx-m); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px; }
.post-body { font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--tx-d); }
.post-body p { margin-bottom: 20px; }
.post-body h2 { font-family: var(--serif); font-size: 24px; margin: 40px 0 12px; font-weight: 500; }
.post-body h3 { font-family: var(--serif); font-size: 20px; margin: 28px 0 8px; font-weight: 500; }
.post-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote {
  border-left: 3px solid var(--teal);
  padding-left: 20px;
  margin: 24px 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--tx-m);
}
.post-body code { font-family: var(--mono); font-size: 0.9em; background: var(--sand); padding: 2px 6px; border-radius: 4px; }
.post-body pre { background: var(--midnight); color: var(--tx-w); padding: 16px; border-radius: 10px; overflow-x: auto; margin: 20px 0; }
.post-body pre code { background: transparent; padding: 0; color: inherit; }

/* answer block (GEO pattern, first 200 words) */
.answer-block {
  border-left: 3px solid var(--teal);
  background: var(--cream);
  padding: 16px 20px;
  margin: 0 0 28px;
  font-size: 15px;
  font-weight: 400;
}
.answer-block strong { font-weight: 600; color: var(--tx-d); }

.updated-line { font-size: 12px; color: var(--tx-dim); margin-top: 32px; font-family: var(--mono); }

/* ==== LIST page ==== */
.list-sec { padding: 120px 0 64px; background: var(--warm); }
.list-sec h1 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin-bottom: 24px; letter-spacing: -0.02em; }
.list-sec .lead { font-size: 15px; color: var(--tx-m); font-weight: 300; margin-bottom: 40px; max-width: 640px; }
.list-items { display: grid; grid-template-columns: 1fr; gap: 16px; }
.list-item {
  padding: 20px;
  border: 1px solid var(--bd-light);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: block;
}
.list-item:hover { border-color: var(--teal); transform: translateY(-1px); }
.list-item h2 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 4px; line-height: 1.3; }
.list-item .meta { font-family: var(--mono); font-size: 11px; color: var(--tx-m); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.list-item .summary { font-size: 14px; color: var(--tx-m); line-height: 1.6; font-weight: 300; }

/* ==== 404 page ==== */
.errpage { background: var(--midnight); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.errpage-inner { max-width: 480px; }
.errpage h1 { font-family: var(--serif); font-size: 64px; color: var(--teal); margin-bottom: 16px; font-weight: 400; }
.errpage p { font-size: 16px; color: var(--tx-m); margin-bottom: 24px; line-height: 1.6; }
.errpage a { display: inline-flex; padding: 12px 24px; background: var(--teal); color: var(--midnight); border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; min-height: 44px; align-items: center; }

/* ==== keyframes ==== */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vnIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.hero-eyebrow, .hero h1, .hero-sub, .hero-ctas { animation: fadeUp 0.7s ease-out both; }
.hero h1 { animation-delay: 0.15s; }
.hero-sub { animation-delay: 0.3s; }
.hero-ctas { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ================================================================
   TABLET — min-width: 768px
   ================================================================ */
@media (min-width: 768px) {
  .container { padding: 0 28px; max-width: 900px; }

  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .nav-links a { color: var(--tx-m); text-decoration: none; font-size: 14px; font-weight: 400; transition: color 0.2s; }
  .nav-links a:hover, .nav-links a:focus-visible { color: #fff; }
  .nav-involve { position: relative; }
  .nav-cta-btn {
    background: var(--teal);
    color: var(--midnight);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
  }
  .nav-dropdown {
    position: absolute;
    top: calc(100% + 6px); right: 0;
    background: var(--surface);
    border: 1px solid var(--bd-dark);
    border-radius: 10px;
    padding: 8px;
    min-width: 200px;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
  }
  .nav-involve:hover .nav-dropdown,
  .nav-involve:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav-dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--tx-m);
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
  }
  .nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: rgba(255,255,255,0.04); color: #fff; }
  .nav-mobile { display: none !important; }

  .hero h1 { font-size: 40px; }
  .hero-ctas { flex-direction: row; }

  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .stats-row > div:not(:last-child)::after {
    content: ''; position: absolute;
    right: 0; top: 15%;
    height: 70%; width: 1px;
    background: var(--bd-dark);
  }

  .four-pillars { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .r-grid { grid-template-columns: 1fr 1fr; }
  .support-layout { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nl-form { flex-direction: row; }
  .res-details { grid-template-columns: 1fr 1fr; }
  .ft-inner { flex-direction: row; justify-content: space-between; align-items: center; }

  .post h1, .list-sec h1 { font-size: 40px; }
  .list-items { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   DESKTOP — min-width: 1024px
   ================================================================ */
@media (min-width: 1024px) {
  .container { max-width: 1140px; padding: 0 32px; }

  nav.topnav { padding: 14px 0; }

  .hero { padding: 120px 0 80px; }
  .hero-layout { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .hero h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
  .hero-sub { font-size: 16px; max-width: 440px; margin-bottom: 32px; }

  .viz { position: relative; height: 420px; display: block; }
  .viz .vn.desktop-only { display: block; }
  .viz .vn {
    position: absolute;
    animation-delay: 0s;
  }
  .viz .vn:nth-child(1) { top: 20px; left: 38%; animation-delay: 0.1s; }
  .viz .vn:nth-child(2) { top: 120px; left: 8%;  animation-delay: 0.3s; }
  .viz .vn:nth-child(3) { top: 120px; right: 8%; animation-delay: 0.4s; }
  .viz .vn:nth-child(4) { top: 230px; left: 5%;  animation-delay: 0.6s; }
  .viz .vn:nth-child(5) { top: 230px; left: 38%; animation-delay: 0.7s; }
  .viz .vn:nth-child(6) { top: 230px; right: 5%; animation-delay: 0.8s; }
  .viz .vn:nth-child(7) { top: 330px; left: 30%; animation-delay: 1.0s; }

  .pillars-sec { padding: 80px 0; }
  .sec-intro h2 { font-size: 34px; }
  .sec-intro p { font-size: 15px; }
  .four-pillars { grid-template-columns: repeat(4, 1fr); }

  .cases-sec { padding-bottom: 80px; }
  .cases-sec h2 { font-size: 34px; }
  .cases-sec .lead { font-size: 15px; max-width: 500px; margin-bottom: 40px; }
  .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .research-sec { padding: 60px 0 80px; }
  .sec-head h2 { font-size: 28px; }
  .r-grid { grid-template-columns: 1fr 1fr; }

  .residency-sec { padding: 72px 0; }
  .res-layout { grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
  .residency-sec h2 { font-size: 32px; }

  .support-sec { padding: 72px 0; }
  .support-col h3 { font-size: 24px; }

  .post h1, .list-sec h1 { font-size: 44px; }
  .post-body { font-size: 18px; }
  .list-items { grid-template-columns: 1fr 1fr; gap: 20px; }

  .errpage h1 { font-size: 96px; }
}
