/* =========================================================
   Neptari — Shared site styles (subpages)
   Loaded by /work/ and /work/[slug]/ pages.
   Mirrors the design tokens from index.html so subpages
   look like part of the same site without duplicating the
   1000+ lines of styles that only the home page needs.
   ========================================================= */

:root {
  /* Surface — light */
  --bg:        #FFFFFF;
  --bg-warm:   #FAFAF7;
  --bg-soft:   #F4F2EC;

  /* Surface — dark */
  --ink:       #07101F;
  --ink-2:     #0C1A2E;
  --ink-3:     #142540;
  --ink-line:  rgba(255, 255, 255, 0.08);
  --ink-line-2:rgba(255, 255, 255, 0.05);

  /* Brand */
  --teal:      #0D9488;
  --teal-deep: #0F766E;
  --cyan:      #22D3EE;
  --cyan-soft: rgba(34, 211, 238, 0.12);

  /* Text */
  --text:        #1A2433;
  --text-muted:  #5C6B7E;
  --text-light:  #94A3B8;
  --text-on-dark:        #FFFFFF;
  --text-on-dark-muted:  rgba(255, 255, 255, 0.68);
  --text-on-dark-soft:   rgba(255, 255, 255, 0.45);

  --border:        #E8E5DD;
  --border-soft:   #EFEDE6;

  --container:        1200px;
  --container-narrow: 920px;
  --container-prose:  720px;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(11, 37, 64, 0.04);
  --shadow:    0 8px 24px -8px rgba(11, 37, 64, 0.10);
  --shadow-lg: 0 24px 60px -20px rgba(11, 37, 64, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink); }
p { margin: 0; }
ul { padding: 0; margin: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Typography */
h1, h2, h3.serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 4.4vw + 1rem, 4.4rem); }
h2 { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.8rem); letter-spacing: -0.02em; }
h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 10px;
}
h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal);
  padding: 6px 14px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: var(--r-pill);
  background: rgba(13, 148, 136, 0.06);
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  animation: pulse 2.4s var(--ease) infinite;
}
.eyebrow-dark {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
}
.eyebrow-dark .pulse {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.2); }
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }
.container-prose  { max-width: var(--container-prose); }

section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section-warm { background: var(--bg-warm); }
.section-soft { background: var(--bg-soft); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(7,16,31,0.06), 0 1px 2px rgba(7,16,31,0.04);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo span { font-family: 'Instrument Serif', serif; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); }
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(7,16,31,0.08);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nav-cta:hover {
  color: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 2px 12px rgba(13,148,136,0.14);
}
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-warm); color: var(--ink); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Page-level header (used on /work/) */
.page-header {
  padding: clamp(64px, 8vw, 120px) 0 clamp(40px, 5vw, 60px);
  text-align: center;
  background: var(--bg);
}
.page-header .eyebrow { margin-bottom: 22px; }
.page-header h1 { margin: 0 0 22px; }
.page-header p.lede {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Crumb (breadcrumb on case study) */
.crumb {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.crumb a { color: var(--text-muted); font-weight: 500; }
.crumb a:hover { color: var(--teal); }
.crumb span { margin: 0 8px; color: var(--text-light); }

/* Case study listing grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.work-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  text-decoration: none;
  color: var(--text);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 20px 50px -20px rgba(11, 37, 64, 0.16);
  color: var(--text);
}
.work-card .work-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  background: rgba(13, 148, 136, 0.08);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.work-card h2 {
  font-size: clamp(1.4rem, 1.6vw + 0.8rem, 1.8rem);
  margin: 0 0 12px;
  line-height: 1.15;
}
.work-card .summary {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 22px;
}
.work-card .work-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.work-card .work-meta .arrow {
  margin-left: auto;
  color: var(--teal);
  transition: transform .25s var(--ease);
}
.work-card:hover .work-meta .arrow { transform: translateX(4px); }

/* "Coming soon" stub card */
.work-stub {
  border: 1px dashed var(--border);
  background: var(--bg-warm);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  color: var(--text-muted);
}
.work-stub h3 {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.work-stub p { font-size: 0.93rem; }

/* Case study article */
.cs-hero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 52px);
  background: var(--bg);
}
.cs-hero .work-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  background: rgba(13, 148, 136, 0.08);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.cs-hero h1 {
  margin-bottom: 20px;
  max-width: 22ch;
}
.cs-hero p.lede {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 60ch;
  line-height: 1.55;
}

/* Stat strip */
.stat-strip {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.stat .stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 2.6vw + 0.8rem, 3rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat .stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* Prose body for case study */
.prose {
  max-width: var(--container-prose);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 24px;
}
.prose section { padding: 0; margin-bottom: 48px; }
.prose section:last-child { margin-bottom: 0; }
.prose h2 {
  font-size: clamp(1.6rem, 1.6vw + 0.8rem, 2.1rem);
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}
.prose h3 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
  color: var(--ink);
}
.prose p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.prose p:last-child { margin-bottom: 0; }
.prose ul.bullets {
  margin: 12px 0 20px;
}
.prose ul.bullets li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
}
.prose ul.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.prose ol.numbered { margin: 12px 0 20px; counter-reset: item; }
.prose ol.numbered li {
  padding-left: 38px;
  position: relative;
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.65;
  counter-increment: item;
}
.prose ol.numbered li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--teal);
  width: 28px;
}
.prose blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--teal);
  background: var(--bg-warm);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
}
.prose code, .prose .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-warm);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}

/* Architecture diagram (text-based) */
.arch {
  margin: 28px 0;
  padding: 28px 24px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.arch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.93rem;
}
.arch-row + .arch-row { margin-top: 14px; }
.arch-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-weight: 500;
  color: var(--ink);
}
.arch-node.accent {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--teal-deep);
}
.arch-arrow {
  color: var(--text-light);
  font-weight: 600;
}

/* Inline factor table */
.factors {
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
}
.factor-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 80px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.94rem;
}
.factor-row:last-child { border-bottom: none; }
.factor-row .name { font-weight: 600; color: var(--ink); }
.factor-row .source { color: var(--text-muted); font-size: 0.88rem; }
.factor-row .weight {
  text-align: right;
  font-family: 'Instrument Serif', serif;
  color: var(--teal-deep);
  font-size: 18px;
}
.factor-header {
  background: var(--bg-warm);
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}
.factor-header .weight { font-family: 'Manrope', sans-serif; font-size: 11px; color: var(--text-muted); }

/* CTA band shared with home */
.cta-band {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(64px, 8vw, 100px) 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 18% 30%, rgba(34, 211, 238, 0.26), transparent 60%),
    radial-gradient(40% 60% at 85% 70%, rgba(13, 148, 136, 0.26), transparent 60%);
  z-index: -1;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: var(--text-on-dark-muted); font-size: 1.05rem; margin-bottom: 28px; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F4F8 100%);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, var(--shadow);
}
.cta-band .btn-primary:hover { transform: translateY(-1px); color: var(--ink); }
.cta-band .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Footer */
footer {
  background: var(--ink);
  color: var(--text-on-dark-muted);
  border-top: 1px solid var(--ink-line);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--text-on-dark-soft);
  font-size: 0.92rem;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-on-dark-muted);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-on-dark-soft);
  font-size: 0.85rem;
}
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a { color: var(--text-on-dark-soft); }
.footer-bottom .legal a:hover { color: var(--cyan); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 22px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(11,37,64,0.10);
    gap: 18px;
    align-items: stretch;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .factor-row { grid-template-columns: 1.5fr 80px; }
  .factor-row .source { grid-column: 1 / -1; padding-top: 4px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .arch-row { flex-direction: column; align-items: flex-start; }
  .arch-arrow { transform: rotate(90deg); }
}

/* =========================================================
   MISSION PAGE — editorial layout
   Inspired by Meta/Apple/Google "about" pages: massive
   centered hero, alternating image+copy cards, generous
   vertical rhythm, restrained color.
   ========================================================= */

/* Hero */
.mission-hero {
  padding: clamp(96px, 14vw, 200px) 0 clamp(56px, 8vw, 120px);
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.mission-hero .eyebrow { margin-bottom: clamp(28px, 4vw, 40px); }
.mission-hero h1 {
  font-size: clamp(3rem, 7vw + 0.5rem, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 0 auto clamp(28px, 4vw, 40px);
}
.mission-hero h1 em {
  font-style: italic;
  color: var(--teal-deep);
}
.mission-hero p.lede {
  font-size: clamp(1.1rem, 1vw + 0.85rem, 1.4rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* Manifesto (dark band, centered prose) */
.manifesto {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.manifesto::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 15% 30%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(50% 70% at 85% 70%, rgba(13, 148, 136, 0.16), transparent 60%);
  z-index: -1;
}
.manifesto-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.manifesto p {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.5rem, 2.2vw + 0.6rem, 2.4rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 24px;
}
.manifesto p:last-child { margin-bottom: 0; }
.manifesto p .accent { color: var(--cyan); font-style: italic; }

/* Editorial — alternating image+copy cards */
.editorial {
  padding: clamp(80px, 10vw, 140px) 0;
}
.editorial + .editorial { padding-top: 0; }
.editorial-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.editorial.reverse .editorial-inner > :first-child { order: 2; }
.editorial-copy .eyebrow { margin-bottom: 24px; }
.editorial-copy h2 {
  font-size: clamp(2rem, 2.6vw + 0.9rem, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  max-width: 14ch;
}
.editorial-copy p {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 18px;
}
.editorial-copy p:last-of-type { margin-bottom: 28px; }
.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.editorial-link:hover { border-color: var(--teal); gap: 12px; color: var(--teal); }

/* Editorial visuals — typographic compositions in a tinted panel */
.editorial-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(11, 37, 64, 0.22);
  border: 1px solid var(--border);
}
.ev-warm { background: linear-gradient(135deg, #FAFAF7 0%, #F0EEE6 100%); }
.ev-ink {
  background:
    radial-gradient(55% 80% at 20% 20%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(55% 80% at 85% 80%, rgba(13, 148, 136, 0.20), transparent 60%),
    linear-gradient(135deg, #07101F 0%, #0C1A2E 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}
.ev-soft { background: linear-gradient(135deg, #F4F2EC 0%, #E8E5DD 100%); }

.ev-content {
  position: absolute;
  inset: 0;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
}

/* Visual 1: dashboard metric with question */
.ev-metric {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(5rem, 11vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.ev-metric-sub {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.ev-metric-trend { color: #B91C1C; font-weight: 600; }
.ev-question {
  margin-top: auto;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 1.6vw + 0.7rem, 1.7rem);
  color: var(--ink);
  line-height: 1.25;
}
.ev-question::after {
  content: '?';
  display: block;
  font-style: normal;
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--teal);
  line-height: 1;
  margin-top: 6px;
}

/* Visual 2: weights.json on dark */
.ev-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
}
.ev-code .ln {
  display: inline-block;
  width: 26px;
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}
.ev-code .k { color: #A5F3FC; }
.ev-code .v { color: #FBBF24; }
.ev-code .c { color: rgba(255, 255, 255, 0.38); font-style: italic; }
.ev-code .h {
  background: rgba(34, 211, 238, 0.12);
  border-left: 2px solid var(--cyan);
  margin-left: -18px;
  padding-left: 16px;
  display: block;
}
.ev-filename {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ev-filename::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* Visual 3: audit log */
.ev-log-title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ev-log-title::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}
.ev-log-row {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 37, 64, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text);
}
.ev-log-row:last-child { border-bottom: none; }
.ev-log-time { color: var(--text-muted); }
.ev-log-actor { color: var(--teal-deep); font-weight: 600; }
.ev-log-change { color: var(--ink); }

/* Values — 4-up grid */
.values {
  background: var(--bg-warm);
  padding: clamp(80px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.values-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.values-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}
.values-header h2 {
  font-size: clamp(2rem, 2.4vw + 1rem, 2.8rem);
  margin-bottom: 16px;
}
.values-header p {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.value {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.value:nth-child(4n) { border-right: none; }
.value .value-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--teal);
  margin-bottom: 18px;
  display: block;
}
.value h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.value p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Founder note */
.founder {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg);
  text-align: center;
}
.founder-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.founder .eyebrow { margin-bottom: 28px; }
.founder p.quote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.5rem, 1.6vw + 0.9rem, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 32px;
}
.founder .signature {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.founder .signature strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .editorial-inner { grid-template-columns: 1fr; gap: 36px; }
  .editorial.reverse .editorial-inner > :first-child { order: 0; }
  .editorial-visual { aspect-ratio: 4 / 3; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(4n) { border-right: 1px solid var(--border); }
  .value:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  .value, .value:nth-child(2n) { border-right: none; }
}

/* =========================================================
   MOTION & INTERACTIVITY (mission page + future subpages)
   - .reveal: fades up when in viewport
   - .ev-* states: visuals animate when scrolled into view
   - Background orbs gently drift
   - All motion suppressed by prefers-reduced-motion
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

/* Hero — kinetic underline on the emphasised word */
.mission-hero h1 em {
  position: relative;
  display: inline-block;
}
.mission-hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.08em;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s;
  border-radius: 2px;
  opacity: 0.5;
}
body.loaded .mission-hero h1 em::after { transform: scaleX(1); }

/* Hero background drift orb */
.mission-hero::before {
  content: '';
  position: absolute;
  top: 45%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.10) 0%, transparent 55%),
    radial-gradient(circle at 65% 60%, rgba(13, 148, 136, 0.08) 0%, transparent 55%);
  z-index: 0;
  pointer-events: none;
  animation: hero-drift 18s ease-in-out infinite;
}
.mission-hero > * { position: relative; z-index: 1; }
@keyframes hero-drift {
  0%, 100% { transform: translate(-50%, -50%) translate3d(0, 0, 0); }
  50%      { transform: translate(-50%, -50%) translate3d(40px, -28px, 0); }
}

/* Manifesto — orbs drift slowly */
.manifesto::before {
  animation: manifesto-drift 22s ease-in-out infinite;
  background:
    radial-gradient(50% 70% at 15% 30%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(50% 70% at 85% 70%, rgba(13, 148, 136, 0.16), transparent 60%);
}
@keyframes manifesto-drift {
  0%, 100% {
    background:
      radial-gradient(50% 70% at 15% 30%, rgba(34, 211, 238, 0.16), transparent 60%),
      radial-gradient(50% 70% at 85% 70%, rgba(13, 148, 136, 0.16), transparent 60%);
  }
  50% {
    background:
      radial-gradient(55% 75% at 22% 38%, rgba(34, 211, 238, 0.20), transparent 60%),
      radial-gradient(55% 75% at 78% 62%, rgba(13, 148, 136, 0.20), transparent 60%);
  }
}

/* Editorial visual: counter (card 1) */
.ev-metric-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.ev-metric-sub {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.55s var(--ease) 0.1s, transform 0.55s var(--ease) 0.1s;
}
.ev-metric-sub.show { opacity: 1; transform: none; }
.ev-question {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.ev-question.show { opacity: 1; transform: none; }
.ev-question::after {
  display: block;
  font-style: normal;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--teal);
  line-height: 1;
  margin-top: 6px;
  transition: transform 0.4s var(--ease);
}
.ev-question.show::after {
  animation: q-pulse 3.6s ease-in-out 1s infinite;
}
@keyframes q-pulse {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-6px) rotate(-3deg); }
}

/* Editorial visual: typewriter code (card 2) */
.ev-code > div {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.ev-code > div.show { opacity: 1; transform: none; }
.ev-code > div.h.show {
  animation: highlight-pulse 2.8s ease-in-out 2s infinite;
}
@keyframes highlight-pulse {
  0%, 100% { background: rgba(34, 211, 238, 0.12); }
  50%      { background: rgba(34, 211, 238, 0.26); }
}
.ev-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--cyan);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: cursor-blink 1.1s steps(2, end) infinite;
  border-radius: 1px;
}
@keyframes cursor-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.ev-code.typing-done .ev-cursor { display: none; }

/* Editorial visual: audit log (card 3) */
.ev-log-row {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.ev-log-row.show { opacity: 1; transform: none; }
.ev-log-live {
  position: absolute;
  top: clamp(28px, 4vw, 48px);
  right: clamp(28px, 4vw, 48px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.ev-log-live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.2s var(--ease) infinite;
}

/* Values — hover lift */
.value { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.value:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(11, 37, 64, 0.20);
  z-index: 1;
}
.value .value-num { transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.value:hover .value-num { color: var(--teal-deep); transform: scale(1.08); }

/* Editorial visual subtle hover */
.editorial-visual { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.editorial-visual:hover {
  transform: translateY(-3px);
  box-shadow: 0 40px 100px -30px rgba(11, 37, 64, 0.28);
}

/* Editorial link arrow movement on hover already set; add gentle nudge */
.editorial-link:hover span { transform: translateX(3px); display: inline-block; }

/* Reduced motion: kill all of the above */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ev-metric-sub, .ev-question, .ev-code > div, .ev-log-row { opacity: 1; transform: none; transition: none; }
  .ev-question::after, .ev-cursor, .ev-log-live::before { animation: none; }
  .mission-hero::before, .manifesto::before { animation: none; }
  .mission-hero h1 em::after { transform: scaleX(1); transition: none; }
  .ev-code > div.h.show { animation: none; background: rgba(34, 211, 238, 0.18); }
}
