:root {
  --ink: #080a0d;
  --ink-2: #10141a;
  --paper: #f5f3ec;
  --paper-dim: #b8b9b3;
  --line: rgba(245, 243, 236, 0.16);
  --line-strong: rgba(245, 243, 236, 0.32);
  --lime: #d8ff45;
  --cyan: #67e8f9;
  --orange: #ff714a;
  --violet: #a78bfa;
  --project-accent: #d8ff45;
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 36px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --header-h: 76px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-theme="light"] {
  --ink: #eef0e8;
  --ink-2: #ffffff;
  --paper: #101319;
  --paper-dim: #5c6168;
  --line: rgba(16, 19, 25, 0.14);
  --line-strong: rgba(16, 19, 25, 0.28);
  --shadow: 0 30px 80px rgba(35, 39, 45, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--project-accent) var(--ink);
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--ink);
  background-size: 76px 76px;
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  max-width: 100%;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 14% 15%, color-mix(in srgb, var(--project-accent) 16%, transparent), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(103, 232, 249, 0.10), transparent 30%);
  pointer-events: none;
}

::selection {
  color: #070a0c;
  background: var(--project-accent);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--project-accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: #080a0d;
  background: var(--project-accent);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 860px);
  margin-inline: auto;
}

.section {
  padding: 112px 0;
  position: relative;
}

.section.compact {
  padding: 72px 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--container));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 30px;
  aspect-ratio: 1;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--project-accent);
  transform: rotate(45deg);
}

.brand-mark::after {
  inset: 11px;
  background: var(--project-accent);
}

.brand small {
  color: var(--paper-dim);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.nav-action {
  min-height: 42px;
  padding: 9px 14px;
  display: inline-grid;
  place-items: center;
  color: var(--paper-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.nav-action:hover {
  color: var(--paper);
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 5%, transparent);
}

.nav-action {
  width: 42px;
  padding: 0;
}

.menu-toggle {
  display: none;
}

.network-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .55;
  pointer-events: none;
}

.cursor-glow {
  width: 420px;
  height: 420px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  opacity: .13;
  border-radius: 50%;
  background: var(--project-accent);
  filter: blur(120px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
}

.page-wipe span {
  background: var(--project-accent);
  transform: scaleY(0);
  transform-origin: bottom;
}

.page-wipe.is-active span {
  animation: wipe-in .58s var(--ease) forwards;
}

.page-wipe span:nth-child(2) { animation-delay: .035s; }
.page-wipe span:nth-child(3) { animation-delay: .07s; }
.page-wipe span:nth-child(4) { animation-delay: .105s; }
.page-wipe span:nth-child(5) { animation-delay: .14s; }
.page-wipe span:nth-child(6) { animation-delay: .175s; }

@keyframes wipe-in {
  to { transform: scaleY(1); }
}

.hero {
  min-height: 100svh;
  padding: calc(var(--header-h) + 72px) 0 56px;
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.eyebrow {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-dim);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--project-accent);
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--project-accent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--project-accent) 13%, transparent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 13px transparent; }
}

.display {
  max-width: 850px;
  margin: 0;
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(4rem, 9.2vw, 9.6rem);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.display .line {
  display: block;
}

.display .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
}

.display .accent {
  color: var(--project-accent);
  font-style: italic;
}

.display.project-display {
  max-width: 900px;
  font-size: clamp(3.15rem, 6.7vw, 7.1rem);
  line-height: .86;
  letter-spacing: -.067em;
}

.hero-copy {
  max-width: 670px;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.hero-copy strong {
  color: var(--paper);
}

.micro-index {
  color: var(--project-accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.button-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #080a0d;
  background: var(--project-accent);
  border: 1px solid var(--project-accent);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px color-mix(in srgb, var(--project-accent) 22%, transparent);
}

.button.ghost {
  color: var(--paper);
  background: transparent;
  border-color: var(--line-strong);
}

.button.small {
  min-height: 42px;
  padding: 9px 15px;
  font-size: .8rem;
}

.arrow {
  display: inline-block;
  transition: transform .2s ease;
}

a:hover .arrow,
button:hover .arrow {
  transform: translate(3px, -3px);
}

.portrait-stage {
  min-height: 580px;
  position: relative;
  display: grid;
  place-items: center;
}

.portrait-ring {
  width: min(78vw, 430px);
  aspect-ratio: .82;
  padding: 12px;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 220px 220px 28px 28px;
  transform: rotate(2deg);
}

.portrait-ring::before,
.portrait-ring::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.portrait-ring::before {
  inset: -22px;
  border: 1px dashed color-mix(in srgb, var(--project-accent) 56%, transparent);
  animation: orbit 22s linear infinite;
}

.portrait-ring::after {
  width: 14px;
  height: 14px;
  top: 5%;
  left: 2%;
  background: var(--project-accent);
  box-shadow: 0 0 24px var(--project-accent);
}

@keyframes orbit { to { transform: rotate(360deg); } }

.portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 205px 205px 18px 18px;
  filter: saturate(.82) contrast(1.04);
}

.portrait-label {
  position: absolute;
  right: -18px;
  bottom: 72px;
  padding: 12px 15px;
  color: #080a0d;
  background: var(--project-accent);
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.orbit-label {
  position: absolute;
  left: -34px;
  top: 48%;
  color: var(--paper-dim);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  transform: rotate(-90deg);
}

.stat-rack {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.stat {
  min-height: 120px;
  padding: 22px 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  background: color-mix(in srgb, var(--ink-2) 72%, transparent);
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat-number {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.06em;
}

.stat-label {
  max-width: 100px;
  color: var(--paper-dim);
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ticker {
  width: 100%;
  max-width: 100vw;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  overflow: clip;
  contain: inline-size layout paint;
  background: var(--project-accent);
  color: #080a0d;
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 26px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: ticker 24s linear infinite;
}

@keyframes ticker { to { transform: translateX(-50%); } }

.ticker-star { opacity: .48; }

.section-head {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: end;
  gap: 28px;
}

.section-index {
  padding-bottom: 8px;
  color: var(--project-accent);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-title {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 880;
  line-height: .94;
  letter-spacing: -.065em;
}

.section-lede {
  max-width: 650px;
  margin: 22px 0 0 128px;
  color: var(--paper-dim);
  font-size: 1.05rem;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(48px, 9vw, 130px);
  align-items: start;
}

.manifesto-sticky {
  position: sticky;
  top: 130px;
}

.manifesto-quote {
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 5.5rem);
  font-weight: 850;
  line-height: .96;
  letter-spacing: -.055em;
}

.manifesto-quote em {
  color: var(--project-accent);
  font-style: normal;
}

.bio-panel {
  border-top: 1px solid var(--line-strong);
}

.bio-row {
  padding: 26px 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.bio-row dt {
  color: var(--paper-dim);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bio-row dd {
  margin: 0;
  font-size: 1.08rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-card {
  min-height: 500px;
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  isolation: isolate;
  transition: transform .38s var(--ease), border-color .25s ease;
}

.project-card:nth-child(1),
.project-card:nth-child(6) {
  grid-column: span 8;
}

.project-card:hover {
  border-color: var(--card-accent, var(--project-accent));
  transform: translateY(-8px);
}

.project-card[hidden] { display: none; }

.project-card-media {
  min-height: 250px;
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #d9d9d9;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(.2) contrast(1.03);
  transition: transform .7s var(--ease), filter .4s ease;
}

.project-card:hover .project-card-media img {
  transform: scale(1.045);
  filter: grayscale(0);
}

.project-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 10, 13, .78));
}

.project-number {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #080a0d;
  background: var(--card-accent, var(--project-accent));
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 900;
}

.project-card-body {
  min-height: 220px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--paper-dim);
  font-size: .66rem;
  font-weight: 780;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.project-card h3 {
  max-width: 530px;
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.project-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--card-accent, var(--project-accent));
  font-size: .8rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.filter-bar {
  margin: 34px 0 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 15px;
  color: var(--paper-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #080a0d;
  background: var(--project-accent);
  border-color: var(--project-accent);
}

.rubric-band {
  padding: 44px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--ink-2) 86%, transparent);
}

.rubric-score {
  align-self: center;
  font-size: clamp(5rem, 11vw, 10rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.09em;
  color: var(--project-accent);
}

.rubric-score small {
  display: block;
  margin-top: 18px;
  color: var(--paper-dim);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.rubric-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.rubric-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.rubric-item strong {
  display: block;
  margin-bottom: 4px;
}

.rubric-item span {
  color: var(--paper-dim);
  font-size: .82rem;
}

.page-hero {
  min-height: 62svh;
  padding: calc(var(--header-h) + 90px) 0 80px;
  display: flex;
  align-items: end;
}

.page-hero h1 {
  max-width: 1030px;
  margin: 0;
  font-size: clamp(3.4rem, 8.4vw, 8.8rem);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.075em;
}

.page-hero p {
  max-width: 680px;
  margin: 30px 0 0 14%;
  color: var(--paper-dim);
  font-size: 1.08rem;
}

.project-hero {
  min-height: 92svh;
  padding: calc(var(--header-h) + 74px) 0 64px;
  display: flex;
  align-items: end;
  position: relative;
  overflow: hidden;
}

.project-hero::after {
  content: attr(data-number);
  position: absolute;
  right: -2vw;
  bottom: -11vw;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  font-size: min(43vw, 620px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.12em;
}

.project-hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 390px);
  gap: 72px;
  align-items: end;
}

.project-breadcrumb {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--paper-dim);
  font-size: .7rem;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-breadcrumb b { color: var(--project-accent); }

.project-hero h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(3.4rem, 7.8vw, 8.5rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.076em;
}

.project-hero .lede {
  max-width: 750px;
  margin: 30px 0 0;
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

.project-meta-box {
  padding: 24px;
  border-top: 3px solid var(--project-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  background: color-mix(in srgb, var(--ink-2) 86%, transparent);
  box-shadow: var(--shadow);
}

.project-meta-row {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.project-meta-row:last-child { border-bottom: 0; }
.project-meta-row span { color: var(--paper-dim); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.project-meta-row strong { font-size: .9rem; }

.case-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: start;
}

.case-rail {
  position: sticky;
  top: 116px;
}

.case-rail-title {
  margin-bottom: 18px;
  color: var(--paper-dim);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-rail a {
  padding: 10px 0;
  display: block;
  color: var(--paper-dim);
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
  transition: color .2s ease, padding .2s ease;
}

.case-rail a:hover {
  padding-left: 7px;
  color: var(--project-accent);
}

.case-content > section {
  margin-bottom: 104px;
  scroll-margin-top: 112px;
}

.case-kicker {
  margin: 0 0 12px;
  color: var(--project-accent);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.case-title {
  max-width: 800px;
  margin: 0 0 28px;
  font-size: clamp(2.2rem, 4.6vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.case-intro {
  max-width: 820px;
  color: var(--paper-dim);
  font-size: 1.08rem;
}

.fact-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.fact-card {
  min-height: 190px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ink-2) 74%, transparent);
}

.fact-card .icon {
  color: var(--project-accent);
  font-size: 1.3rem;
}

.fact-card strong {
  display: block;
  font-size: 1.04rem;
}

.fact-card p {
  margin: 8px 0 0;
  color: var(--paper-dim);
  font-size: .86rem;
}

.steps {
  margin-top: 34px;
  counter-reset: step;
}

.step {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.step:last-child { border-bottom: 1px solid var(--line); }

.step::before {
  content: "0" counter(step);
  color: var(--project-accent);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.step h3 { margin: 0 0 7px; font-size: 1.28rem; }
.step p { margin: 0; color: var(--paper-dim); }

.evidence-frame {
  margin-top: 34px;
  padding: 14px;
  position: relative;
  background: #e8e8e5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.evidence-frame::before {
  content: "SOURCE / VERIFIED";
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  padding: 7px 9px;
  color: #080a0d;
  background: var(--project-accent);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .11em;
}

.evidence-frame img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  object-position: center top;
  border-radius: 12px;
}

.evidence-frame.zoom-art {
  height: 720px;
  display: grid;
  place-items: center;
}

.evidence-frame.zoom-art img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 46%;
  transform: scale(1.42);
}

.caption {
  margin-top: 14px;
  color: var(--paper-dim);
  font-size: .78rem;
}

.code-panel {
  margin-top: 28px;
  padding: 24px;
  color: #dce4e9;
  background: #0b1015;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  font: .9rem/1.75 Consolas, "Courier New", monospace;
  overflow: auto;
}

.code-panel .folder { color: var(--project-accent); }
.code-panel .comment { color: #71808b; }

.query-stack {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.query-card {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  color: #dce4e9;
  background: #0b1015;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  font-family: Consolas, "Courier New", monospace;
  font-size: .82rem;
}

.query-card b { color: var(--project-accent); }

.copy-query {
  padding: 7px 9px;
  color: #dce4e9;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  cursor: pointer;
}

.source-table-wrap {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.source-table th,
.source-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.source-table th {
  color: var(--project-accent);
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.source-table td { font-size: .88rem; }
.source-table tr:last-child td { border-bottom: 0; }
.stars { color: var(--project-accent); letter-spacing: .08em; }

.prompt-lab {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: color-mix(in srgb, var(--ink-2) 80%, transparent);
}

.prompt-tabs {
  padding: 12px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.prompt-tab {
  flex: 1;
  padding: 12px;
  color: var(--paper-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.prompt-tab[aria-selected="true"] {
  color: #080a0d;
  background: var(--project-accent);
}

.prompt-pane {
  min-height: 360px;
  padding: 32px;
}

.prompt-pane[hidden] { display: none; }
.prompt-pane h3 { margin-top: 0; font-size: 1.5rem; }
.prompt-text { color: var(--paper-dim); font-size: 1rem; }

.prompt-meter {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.meter-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.meter-item span {
  display: block;
  color: var(--paper-dim);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.meter-bar {
  height: 4px;
  margin-top: 12px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.meter-bar i {
  height: 100%;
  display: block;
  width: var(--value);
  background: var(--project-accent);
}

.pipeline {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pipeline-card {
  min-height: 250px;
  padding: 24px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.pipeline-card::after {
  content: attr(data-step);
  position: absolute;
  right: -12px;
  bottom: -50px;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  font-size: 8rem;
  font-weight: 900;
}

.pipeline-card h3 { margin: 40px 0 10px; }
.pipeline-card p { color: var(--paper-dim); font-size: .88rem; }
.pipeline-tool { color: var(--project-accent); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.kanban {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kanban-lane {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ink-2) 72%, transparent);
}

.kanban-title {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  color: var(--paper-dim);
  font-size: .7rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.kanban-note {
  margin-top: 10px;
  padding: 16px;
  color: #080a0d;
  background: var(--project-accent);
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 700;
  transform: rotate(var(--note-rotate, 0deg));
}

.tool-matrix {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tool-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tool-card h3 { margin: 0 0 18px; font-size: 1.35rem; }
.tool-card dl { margin: 0; }
.tool-card dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.tool-card dt { color: var(--paper-dim); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tool-card dd { margin: 5px 0 0; font-size: .86rem; }

.principle-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.principle {
  min-height: 220px;
  padding: 24px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ink-2) 78%, transparent);
}

.principle-index {
  color: var(--project-accent);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.principle h3 { margin: 35px 0 9px; font-size: 1.2rem; }
.principle p { margin: 0; color: var(--paper-dim); font-size: .87rem; }

.checklist {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.check-row {
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.check-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--project-accent);
}

.check-row:has(input:checked) {
  border-color: var(--project-accent);
  background: color-mix(in srgb, var(--project-accent) 7%, transparent);
}

.quote-panel {
  margin-top: 34px;
  padding: clamp(28px, 5vw, 58px);
  border-left: 4px solid var(--project-accent);
  background: color-mix(in srgb, var(--project-accent) 8%, var(--ink-2));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.quote-panel blockquote {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 3.4rem);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.quote-panel cite {
  margin-top: 22px;
  display: block;
  color: var(--paper-dim);
  font-style: normal;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pdf-viewer {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e8e8e5;
}

.pdf-toolbar {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #e7edf1;
  background: #10151b;
  font-size: .78rem;
}

.pdf-viewer iframe {
  width: 100%;
  height: 720px;
  display: block;
  border: 0;
}

.project-next {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.next-link span {
  color: var(--paper-dim);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.next-link strong {
  max-width: 820px;
  display: block;
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.next-arrow {
  width: 80px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #080a0d;
  background: var(--project-accent);
  border-radius: 50%;
  font-size: 2rem;
  transition: transform .3s var(--ease);
}

.next-link:hover .next-arrow { transform: rotate(-35deg) scale(1.06); }

.reflection-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(48px, 9vw, 130px);
}

.reflection-aside {
  position: sticky;
  top: 120px;
  align-self: start;
}

.reflection-orb {
  width: min(100%, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.reflection-orb::before,
.reflection-orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--project-accent);
}

.reflection-orb::before { inset: 13%; animation: orbit 17s linear reverse infinite; }
.reflection-orb::after { inset: 29%; background: color-mix(in srgb, var(--project-accent) 12%, transparent); }
.reflection-orb strong { z-index: 1; font-size: 4rem; letter-spacing: -.08em; }

.reflection-block {
  padding: 0 0 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.reflection-block h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.reflection-block p {
  color: var(--paper-dim);
  font-size: 1.05rem;
}

.roadmap {
  display: grid;
  gap: 0;
}

.roadmap-item {
  padding: 25px 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 25px;
  border-top: 1px solid var(--line);
}

.roadmap-item time { color: var(--project-accent); font-weight: 850; }
.roadmap-item h3 { margin: 0 0 5px; }
.roadmap-item p { margin: 0; font-size: .9rem; }

.site-footer {
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink-2) 75%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 72px;
}

.footer-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 6.5rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.065em;
}

.footer-title em { color: var(--project-accent); font-style: normal; }

.footer-links {
  display: grid;
  align-content: end;
}

.footer-links a {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--paper-dim);
}

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

.footer-bottom {
  margin-top: 70px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--paper-dim);
  border-top: 1px solid var(--line);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.command-dialog {
  width: min(calc(100% - 28px), 620px);
  padding: 0;
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.command-dialog::backdrop {
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(6px);
}

.command-head {
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.command-head input {
  flex: 1;
  color: var(--paper);
  background: transparent;
  border: 0;
  outline: 0;
}

.command-close {
  padding: 4px 7px;
  color: var(--paper-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: .68rem;
  line-height: 1.35;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.command-close:hover {
  color: var(--ink);
  background: var(--project-accent);
  border-color: var(--project-accent);
}

.command-list {
  padding: 10px;
  max-height: 420px;
  overflow: auto;
}

.command-list a {
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  border-radius: 10px;
}

.command-list a:hover { background: color-mix(in srgb, var(--project-accent) 10%, transparent); }
.command-list small { color: var(--paper-dim); }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .project-hero-inner,
  .reflection-grid,
  .manifesto-grid,
  .footer-grid,
  .rubric-band {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; }
  .portrait-stage { min-height: 520px; }
  .manifesto-sticky,
  .reflection-aside { position: relative; top: auto; }
  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(6) { grid-column: span 6; }
  .case-layout { grid-template-columns: 1fr; }
  .case-rail { display: none; }
  .fact-grid,
  .pipeline,
  .tool-matrix { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(3, minmax(240px, 1fr)); overflow-x: auto; padding-bottom: 12px; }
  .project-hero { min-height: auto; }
  .project-meta-box { max-width: 520px; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body { background-size: 44px 44px; }
  .container,
  .narrow,
  .header-inner { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .cursor-glow { display: none; }
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 12px auto;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { justify-content: start; }
  .nav-action.command-open { display: none; }
  .display { font-size: clamp(3.5rem, 18vw, 6rem); }
  .display.project-display { font-size: clamp(2.65rem, 12.7vw, 4.65rem); line-height: .9; }
  .hero-copy { grid-template-columns: 1fr; gap: 8px; }
  .portrait-stage { min-height: 470px; }
  .portrait-ring { width: min(82vw, 360px); }
  .stat-rack { grid-template-columns: 1fr; }
  .stat { min-height: 100px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .section-lede { margin-left: 0; }
  .bio-row { grid-template-columns: 1fr; gap: 7px; }
  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(6) { grid-column: 1 / -1; }
  .project-card { min-height: 480px; }
  .rubric-band { padding: 26px; }
  .rubric-list { grid-template-columns: 1fr; }
  .page-hero { min-height: 55svh; padding-bottom: 56px; }
  .page-hero p { margin-left: 0; }
  .project-hero h1 { font-size: clamp(3.2rem, 15vw, 5.5rem); }
  .fact-grid,
  .principle-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 45px 1fr; }
  .query-card { grid-template-columns: 30px 1fr; }
  .copy-query { display: none; }
  .prompt-tabs { flex-direction: column; }
  .prompt-meter { grid-template-columns: 1fr; }
  .evidence-frame.zoom-art { height: 520px; }
  .pdf-viewer iframe { height: 540px; }
  .next-arrow { width: 58px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .network-canvas,
  .cursor-glow { display: none; }
  .reveal { opacity: 1; transform: none; }
}
