:root {
  --bg: #080a0f;
  --bg-elevated: #0d1017;
  --bg-soft: #11151d;
  --surface: rgba(18, 22, 31, 0.72);
  --surface-strong: #151a24;
  --line: rgba(236, 239, 248, 0.11);
  --line-strong: rgba(236, 239, 248, 0.2);
  --text: #f4f4ef;
  --text-soft: #c4c7d0;
  --text-muted: #858b99;
  --accent: #ff876c;
  --accent-soft: rgba(255, 135, 108, 0.15);
  --mint: #74e4c8;
  --mint-soft: rgba(116, 228, 200, 0.12);
  --blue: #7f91ff;
  --blue-soft: rgba(127, 145, 255, 0.14);
  --gold: #f7c96f;
  --gold-soft: rgba(247, 201, 111, 0.13);
  --red: #ff6d7f;
  --red-soft: rgba(255, 109, 127, 0.13);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shell: min(1240px, calc(100vw - 48px));
  --header-height: 76px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -12%, rgba(127, 145, 255, 0.1), transparent 35%),
    linear-gradient(180deg, #090b10 0%, #07090d 55%, #080a0f 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,.35) 65%, transparent 100%);
  z-index: -4;
}

button,
input,
a {
  font: inherit;
}

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

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

button {
  color: inherit;
}

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

::selection {
  background: var(--accent);
  color: #111318;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.section-narrow {
  padding-top: 108px;
  padding-bottom: 108px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transition: transform .2s ease;
}

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

.ambient {
  position: fixed;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .11;
  pointer-events: none;
  z-index: -3;
}

.ambient-one {
  top: 6vh;
  right: -18vw;
  background: var(--accent);
}

.ambient-two {
  bottom: 8vh;
  left: -22vw;
  background: var(--blue);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

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

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

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

.site-header.is-scrolled {
  background: rgba(8, 10, 15, .78);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: visible;
}

.brand-mark circle {
  fill: var(--text);
}

.brand-mark circle:first-child {
  fill: var(--accent);
  filter: drop-shadow(0 0 10px rgba(255, 135, 108, .5));
}

.brand-mark path {
  fill: none;
  stroke: rgba(244, 244, 239, .55);
  stroke-width: 1.15;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: .93rem;
  letter-spacing: -.01em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.primary-navigation {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-navigation a {
  position: relative;
  padding: 8px 0;
  color: var(--text-soft);
  font-size: .83rem;
  font-weight: 560;
  transition: color .2s ease;
}

.primary-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transition: right .25s var(--ease);
}

.primary-navigation a:hover {
  color: var(--text);
}

.primary-navigation a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .025);
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.language-switch:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
  transition: transform .25s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  color: #0b0d12;
  box-shadow: 0 10px 30px rgba(255, 255, 255, .08);
}

.button-primary:hover {
  background: #fff;
  box-shadow: 0 14px 38px rgba(255, 255, 255, .14);
}

.button-secondary,
.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .025);
  color: var(--text);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .05);
}

.button-small {
  min-height: 38px;
  padding: 0 15px;
  font-size: .76rem;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 780;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.2rem, 4.5vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 590;
}

.section-heading > p:last-child {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 1.7;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: end;
  gap: 60px;
}

.split-heading > p:last-child {
  margin: 0 0 7px;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 74px) 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(500px, 1.04fr);
  align-items: center;
  gap: 66px;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--text-soft);
  font-size: .71rem;
  letter-spacing: .02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(116, 228, 200, .08), 0 0 16px rgba(116, 228, 200, .55);
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.7rem, 6.8vw, 7.4rem);
  line-height: .91;
  font-weight: 560;
  letter-spacing: -.075em;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(100deg, #f4f4ef 8%, #aeb9ff 50%, #ff947b 94%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lede {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 650px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-metrics div {
  min-width: 0;
}

.hero-metrics strong {
  display: block;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -.03em;
}

.hero-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: .68rem;
  line-height: 1.3;
}

.hero-visual {
  min-width: 0;
}

.constellation {
  position: relative;
  min-height: 630px;
  border: 1px solid var(--line);
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 49%, rgba(127, 145, 255, .15), transparent 22%),
    radial-gradient(circle at 17% 17%, rgba(116, 228, 200, .08), transparent 23%),
    radial-gradient(circle at 80% 30%, rgba(255, 135, 108, .1), transparent 24%),
    rgba(12, 15, 22, .64);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(10px);
}

.constellation::before,
.constellation::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
  pointer-events: none;
}

.constellation::before {
  width: 420px;
  height: 420px;
  left: 150px;
  top: 85px;
}

.constellation::after {
  width: 250px;
  height: 250px;
  left: 235px;
  top: 170px;
}

.constellation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.flow-path {
  fill: none;
  stroke: url(#lineA);
  stroke-width: 1.3;
  stroke-dasharray: 7 8;
  opacity: .72;
}

.flow-path.strong {
  stroke-width: 1.8;
  opacity: 1;
}

.flow-path.return {
  stroke: rgba(255, 208, 120, .4);
}

.flow-path.quiet {
  stroke: rgba(255, 255, 255, .18);
  opacity: .7;
}

.node-card {
  position: absolute;
  z-index: 2;
  width: 200px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 19, 27, .85);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .26);
  backdrop-filter: blur(12px);
  transition: transform .3s var(--ease), border-color .3s ease;
}

.node-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.node-card strong {
  display: block;
  margin-top: 7px;
  font-size: .9rem;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.node-card small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: .69rem;
}

.node-kicker {
  color: var(--text-muted);
  font-size: .58rem;
  font-weight: 720;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.node-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--mint);
  font-size: .59rem;
  font-weight: 650;
}

.node-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.node-state-accent {
  color: var(--gold);
}

.node-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.node-icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.node-signal {
  top: 68px;
  left: 38px;
}

.node-finance {
  bottom: 60px;
  left: 38px;
}

.node-event {
  width: 216px;
  min-height: 166px;
  top: 222px;
  left: 50%;
  transform: translateX(-50%);
  border-color: rgba(127, 145, 255, .3);
  background: linear-gradient(145deg, rgba(31, 36, 54, .96), rgba(14, 18, 27, .92));
  box-shadow: 0 20px 70px rgba(63, 76, 165, .22), inset 0 1px 0 rgba(255,255,255,.06);
}

.node-event:hover {
  transform: translateX(-50%) translateY(-4px);
}

.node-core {
  top: 118px;
  right: 28px;
}

.node-research {
  width: 216px;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
}

.node-research:hover {
  transform: translateX(-50%) translateY(-4px);
}

.visual-caption {
  position: absolute;
  right: 25px;
  bottom: 20px;
  color: var(--text-muted);
  font-size: .61rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.boundary-strip {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
}

.boundary-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px auto;
  align-items: center;
  gap: 30px;
}

.boundary-inner p {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 530;
  letter-spacing: -.025em;
}

.boundary-inner > span {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong), transparent);
}

.boundary-inner small {
  color: var(--text-muted);
  font-size: .67rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boundary-card {
  position: relative;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.boundary-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .11;
}

.is-card::after {
  background: var(--mint);
}

.is-not-card::after {
  background: var(--red);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: .66rem;
}

.boundary-card h3 {
  margin: 28px 0 20px;
  font-size: 1.45rem;
  letter-spacing: -.035em;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: .91rem;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.is-not-card .clean-list li::before {
  background: var(--red);
}

.thesis-section {
  overflow: hidden;
}

.thesis-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, var(--line), transparent);
  opacity: .45;
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.thesis-card {
  position: relative;
  min-height: 245px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 21, 30, .86), rgba(11, 14, 20, .7));
  overflow: hidden;
}

.thesis-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 145, 255, .45), transparent);
}

.card-number {
  color: var(--text-muted);
  font-size: .7rem;
  letter-spacing: .1em;
}

.thesis-card h3 {
  margin: 56px 0 14px;
  font-size: 1.55rem;
  letter-spacing: -.04em;
}

.thesis-card p {
  max-width: 510px;
  margin: 0;
  color: var(--text-soft);
  font-size: .93rem;
  line-height: 1.68;
}

.research-question {
  margin: 70px 0 0;
  padding: 55px 60px;
  border: 1px solid rgba(255, 135, 108, .22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 135, 108, .1), transparent 30%),
    linear-gradient(135deg, rgba(27, 22, 22, .88), rgba(15, 17, 25, .82));
  box-shadow: var(--shadow);
}

.research-question span {
  color: var(--accent);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.research-question p {
  max-width: 960px;
  margin: 20px 0 0;
  font-size: clamp(1.75rem, 3.4vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: -.05em;
  font-weight: 520;
}

.method-section {
  background: linear-gradient(180deg, rgba(255,255,255,.014), rgba(255,255,255,0));
  border-top: 1px solid var(--line);
}

.lifecycle {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  list-style: none;
  overflow: hidden;
  background: rgba(13, 16, 23, .7);
}

.lifecycle li {
  position: relative;
  min-height: 210px;
  padding: 22px 20px 25px;
  border-right: 1px solid var(--line);
}

.lifecycle li:last-child {
  border-right: 0;
}

.lifecycle li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: -9px;
  top: 47px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: .68rem;
}

.lifecycle-index {
  color: var(--text-muted);
  font-size: .64rem;
  letter-spacing: .1em;
}

.lifecycle div {
  margin-top: 68px;
}

.lifecycle strong {
  display: block;
  font-size: .87rem;
  letter-spacing: -.02em;
}

.lifecycle small {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: .69rem;
  line-height: 1.5;
}

.method-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.method-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .018);
}

.method-label {
  color: var(--mint);
  font-size: .62rem;
  font-weight: 730;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.method-card:nth-child(2) .method-label {
  color: var(--gold);
}

.method-card:nth-child(3) .method-label {
  color: var(--blue);
}

.method-card h3 {
  margin: 24px 0 13px;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -.035em;
}

.method-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: .86rem;
  line-height: 1.68;
}

.status-section {
  padding-top: 20px;
}

.status-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(14, 17, 24, .72);
  box-shadow: var(--shadow);
}

.status-column {
  min-height: 360px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.status-column:last-child {
  border-right: 0;
}

.status-column header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-column header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-column h3 {
  margin: 0;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.status-column ul {
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.status-column li {
  position: relative;
  padding: 14px 0 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: .86rem;
  line-height: 1.55;
}

.status-column li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 23px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}

.status-column.observed {
  background: linear-gradient(180deg, var(--mint-soft), transparent 34%);
}

.status-column.observed header span,
.status-column.observed h3 {
  color: var(--mint);
  background: var(--mint);
}

.status-column.observed h3 {
  background: none;
}

.status-column.testing {
  background: linear-gradient(180deg, var(--gold-soft), transparent 34%);
}

.status-column.testing header span,
.status-column.testing h3 {
  color: var(--gold);
  background: var(--gold);
}

.status-column.testing h3 {
  background: none;
}

.status-column.not-established {
  background: linear-gradient(180deg, var(--blue-soft), transparent 34%);
}

.status-column.not-established header span,
.status-column.not-established h3 {
  color: var(--blue);
  background: var(--blue);
}

.status-column.not-established h3 {
  background: none;
}

.trace-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 55%);
}

.trace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.trace-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .018);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 680;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.trace-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(320px, 100%);
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
}

.trace-search svg {
  width: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.trace-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: .76rem;
}

.trace-search input::placeholder {
  color: var(--text-muted);
}

.trace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.trace-card {
  position: relative;
  min-height: 340px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 22, 31, .84), rgba(11, 14, 20, .72));
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s ease, background .25s ease;
}

.trace-card:not(.trace-loading) {
  cursor: pointer;
}

.trace-card:not(.trace-loading):hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(22, 27, 38, .9), rgba(12, 15, 22, .8));
}

.trace-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--trace-accent, var(--blue));
  opacity: .65;
}

.trace-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.trace-kind,
.trace-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .58rem;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trace-kind {
  color: var(--trace-accent, var(--blue));
  border-color: color-mix(in srgb, var(--trace-accent, var(--blue)) 28%, transparent);
  background: color-mix(in srgb, var(--trace-accent, var(--blue)) 8%, transparent);
}

.trace-status {
  white-space: nowrap;
}

.trace-card h3 {
  margin: 34px 0 12px;
  max-width: 580px;
  font-size: 1.42rem;
  line-height: 1.22;
  letter-spacing: -.04em;
}

.trace-id {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .67rem;
}

.trace-summary {
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: .87rem;
  line-height: 1.68;
}

.trace-footer {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 27px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .64rem;
}

.trace-footer span:last-child {
  color: var(--text-soft);
}

.trace-loading {
  pointer-events: none;
}

.trace-loading span {
  display: block;
  height: 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04));
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}

.trace-loading span:nth-child(1) { width: 28%; }
.trace-loading span:nth-child(2) { width: 80%; height: 28px; margin-top: 55px; }
.trace-loading span:nth-child(3) { width: 64%; }

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.empty-state {
  margin: 36px 0 0;
  padding: 32px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
}

.workbench-section {
  padding-top: 80px;
}

.workbench-shell {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 88% 0%, rgba(127, 145, 255, .09), transparent 30%),
    rgba(13, 16, 23, .82);
  box-shadow: var(--shadow);
}

.workbench-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.workbench-heading h2 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -.052em;
  font-weight: 570;
}

.prototype-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(247, 201, 111, .25);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: .6rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workbench-intro {
  max-width: 900px;
  margin: 24px 0 34px;
  color: var(--text-soft);
  font-size: .93rem;
  line-height: 1.7;
}

.workbench-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.workbench-tabs button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: .71rem;
  font-weight: 680;
  cursor: pointer;
}

.workbench-tabs button[aria-selected="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.workbench-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0b0e14;
}

.window-chrome {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #10141c;
}

.window-chrome > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}

.window-chrome > span:nth-child(1) { background: rgba(255, 109, 127, .75); }
.window-chrome > span:nth-child(2) { background: rgba(247, 201, 111, .75); }
.window-chrome > span:nth-child(3) { background: rgba(116, 228, 200, .7); }

.window-chrome small {
  margin-left: 8px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .58rem;
}

.workbench-panel[hidden] {
  display: none;
}

.workbench-panel {
  min-height: 570px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-right: 1px solid var(--line);
  background: #0d1118;
}

.mock-sidebar strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #111318;
  font-size: .65rem;
}

.mock-nav {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.mock-nav.is-active {
  border-color: rgba(127, 145, 255, .35);
  background: var(--blue-soft);
}

.mock-content {
  padding: 0 28px 30px;
}

.mock-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.mock-header div {
  display: flex;
  flex-direction: column;
}

.mock-header small {
  color: var(--text-muted);
  font-size: .59rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mock-header strong {
  margin-top: 4px;
  font-size: .78rem;
}

.mock-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: var(--text-soft);
  font-size: .59rem;
  font-weight: 740;
}

.mock-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 31px 0 20px;
}

.mock-title-row h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -.04em;
}

.mock-title-row p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: .69rem;
}

.mock-count {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: .65rem;
  font-weight: 700;
}

.mock-event-card {
  max-width: 780px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #111620;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}

.mock-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: .58rem;
}

.event-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .54rem;
  font-weight: 740;
  letter-spacing: .05em;
}

.type-change {
  background: var(--blue-soft);
  color: var(--blue);
}

.mock-event-card h4 {
  max-width: 650px;
  margin: 28px 0 11px;
  font-size: 1.13rem;
  line-height: 1.35;
  letter-spacing: -.03em;
}

.mock-event-card > p {
  max-width: 650px;
  margin: 0;
  color: var(--text-soft);
  font-size: .73rem;
  line-height: 1.65;
}

.mock-event-meta {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.mock-event-meta span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-muted);
  font-size: .55rem;
}

.mock-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mock-actions button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: .57rem;
}

.mock-actions .mock-primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.relation-card {
  max-width: 920px;
}

.trace-state {
  color: var(--gold);
}

.relation-row {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) auto minmax(220px, 1.3fr);
  align-items: center;
  gap: 10px;
  margin: 24px 0;
}

.relation-node {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(127, 145, 255, .25);
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .61rem;
}

.relation-node.muted {
  border-color: var(--line);
  background: rgba(255,255,255,.025);
  color: var(--text-muted);
}

.relation-edge {
  color: var(--accent);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.mock-event-card .mock-callout {
  max-width: none;
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  color: #e6d6ad;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.audit-grid article {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111620;
}

.audit-grid small {
  color: var(--text-muted);
  font-size: .56rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audit-grid strong {
  margin-top: 30px;
  font-size: .75rem;
  line-height: 1.45;
}

.audit-state {
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: .51rem;
  font-weight: 700;
}

.audit-state.good { background: var(--mint-soft); color: var(--mint); }
.audit-state.partial { background: var(--gold-soft); color: var(--gold); }
.audit-state.neutral { background: var(--blue-soft); color: var(--blue); }

.product-observation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 135, 108, .2);
  border-radius: 14px;
  background: var(--accent-soft);
}

.product-observation span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .55rem;
}

.product-observation p {
  margin: 0;
  color: var(--text-soft);
  font-size: .69rem;
  line-height: 1.6;
}

.architecture-section {
  overflow: hidden;
}

.architecture-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.architecture-map > article {
  position: relative;
  min-height: 390px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 19, 27, .73);
  overflow: hidden;
}

.architecture-map > article::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  opacity: .45;
}

.architecture-map > article.architecture-core::after {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .8;
}

.architecture-map > article:last-of-type::after {
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.architecture-core {
  background:
    radial-gradient(circle at 80% 5%, rgba(255, 135, 108, .11), transparent 34%),
    rgba(18, 21, 30, .9) !important;
  border-color: rgba(255, 135, 108, .2) !important;
}

.architecture-index {
  color: var(--text-muted);
  font-size: .63rem;
  letter-spacing: .1em;
}

.architecture-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: var(--mint);
}

.architecture-core .architecture-icon {
  color: var(--accent);
}

.architecture-map > article:last-of-type .architecture-icon {
  color: var(--blue);
}

.architecture-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.architecture-map h3 {
  margin: 25px 0 12px;
  font-size: 1.35rem;
  letter-spacing: -.04em;
}

.architecture-map p {
  margin: 0;
  color: var(--text-soft);
  font-size: .83rem;
  line-height: 1.65;
}

.architecture-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}

.architecture-tags span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: .54rem;
}

.architecture-arrow {
  display: grid;
  place-items: center;
}

.architecture-arrow svg {
  width: 44px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.relation-vocabulary {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 60px;
  margin-top: 28px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
}

.relation-vocabulary h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.35;
  letter-spacing: -.04em;
}

.relation-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.relation-tags span {
  padding: 8px 10px;
  border: 1px solid rgba(127, 145, 255, .2);
  border-radius: 8px;
  background: var(--blue-soft);
  color: #b9c1ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .58rem;
}

.principles-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.014), transparent 65%);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.principle {
  min-height: 280px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 16, 23, .72);
}

.principle:nth-child(3n) {
  border-right: 0;
}

.principle:nth-child(n+4) {
  border-bottom: 0;
}

.principle > span {
  color: var(--text-muted);
  font-size: .62rem;
  letter-spacing: .1em;
}

.principle h3 {
  margin: 65px 0 13px;
  font-size: 1.2rem;
  letter-spacing: -.035em;
}

.principle p {
  margin: 0;
  color: var(--text-soft);
  font-size: .83rem;
  line-height: 1.65;
}

.questions-section {
  padding-bottom: 105px;
}

.questions-layout {
  display: grid;
  grid-template-columns: minmax(300px, .6fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 90px;
}

.sticky-heading {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  margin-bottom: 0;
}

.sticky-heading h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.9rem);
}

.question-list {
  border-top: 1px solid var(--line);
}

.question-item {
  border-bottom: 1px solid var(--line);
}

.question-item summary {
  min-height: 96px;
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  gap: 18px;
  padding: 0 4px;
  cursor: pointer;
  list-style: none;
}

.question-item summary::-webkit-details-marker {
  display: none;
}

.question-item summary > span {
  color: var(--text-muted);
  font-size: .65rem;
  letter-spacing: .08em;
}

.question-item summary strong {
  font-size: 1.15rem;
  letter-spacing: -.025em;
  font-weight: 570;
}

.question-item summary svg {
  width: 17px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.4;
  transition: transform .25s ease;
}

.question-item[open] summary svg {
  transform: rotate(180deg);
}

.question-item p {
  max-width: 720px;
  margin: -6px 0 30px 60px;
  color: var(--text-soft);
  font-size: .91rem;
  line-height: 1.7;
}

.log-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.014), transparent 60%);
}

.research-log {
  border-top: 1px solid var(--line);
}

.log-entry {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 130px;
  align-items: start;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.log-date {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .66rem;
}

.log-entry h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -.025em;
}

.log-entry p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.65;
}

.log-version {
  justify-self: end;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .58rem;
}

.log-loading {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 30px;
  padding: 30px 0;
}

.log-loading span {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.closing-section {
  padding-top: 55px;
}

.closing-card {
  position: relative;
  padding: 75px;
  border: 1px solid rgba(127, 145, 255, .2);
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(127, 145, 255, .18), transparent 30%),
    radial-gradient(circle at 10% 100%, rgba(255, 135, 108, .12), transparent 30%),
    linear-gradient(135deg, #141824, #0e1118);
  box-shadow: var(--shadow);
}

.closing-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 27px;
  pointer-events: none;
}

.closing-card h2 {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0;
  font-size: clamp(2.4rem, 5.4vw, 5.45rem);
  line-height: 1;
  letter-spacing: -.065em;
  font-weight: 540;
}

.closing-card > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.closing-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.site-footer {
  padding: 80px 0 28px;
  border-top: 1px solid var(--line);
  background: #07090d;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.3fr);
  gap: 90px;
}

.footer-brand > p {
  max-width: 430px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 6px;
  color: var(--text);
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--text-muted);
  font-size: .75rem;
  transition: color .2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 70px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .65rem;
}

.footer-bottom p {
  margin: 0;
}

.trace-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #10141c;
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
}

.trace-dialog::backdrop {
  background: rgba(4, 5, 8, .75);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  position: relative;
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 42px;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}

.dialog-close svg {
  width: 15px;
  fill: none;
  stroke: var(--text-soft);
  stroke-width: 1.5;
}

.dialog-kicker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.dialog-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.05em;
  font-weight: 570;
}

.dialog-summary {
  margin: 23px 0 0;
  color: var(--text-soft);
  font-size: .96rem;
  line-height: 1.72;
}

.dialog-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.dialog-meta div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.02);
}

.dialog-meta small {
  display: block;
  color: var(--text-muted);
  font-size: .54rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dialog-meta strong {
  display: block;
  margin-top: 7px;
  font-size: .7rem;
}

.dialog-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.dialog-section h3 {
  margin: 0 0 14px;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dialog-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dialog-section li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--text-soft);
  font-size: .83rem;
  line-height: 1.6;
}

.dialog-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

.dialog-section.caution li::before {
  background: var(--gold);
}

.dialog-reference {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-reference span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .58rem;
}

.noscript-message {
  position: fixed;
  z-index: 999;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: #211c12;
  color: #f1ddb2;
  font-size: .8rem;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .trace-kind {
    border-color: var(--line-strong);
    background: rgba(127, 145, 255, .08);
  }
}

@media (max-width: 1160px) {
  :root {
    --shell: min(100% - 36px, 1100px);
  }

  .primary-navigation {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .hero-copy {
    max-width: 860px;
  }

  .hero-visual {
    max-width: 850px;
    width: 100%;
    margin-inline: auto;
  }

  .constellation {
    min-height: 600px;
  }

  .lifecycle {
    grid-template-columns: repeat(3, 1fr);
  }

  .lifecycle li {
    border-bottom: 1px solid var(--line);
  }

  .lifecycle li:nth-child(3n) {
    border-right: 0;
  }

  .lifecycle li:nth-child(n+4) {
    border-bottom: 0;
  }

  .lifecycle li:nth-child(3)::after {
    display: none;
  }

  .architecture-map {
    grid-template-columns: 1fr;
  }

  .architecture-map > article {
    min-height: auto;
  }

  .architecture-arrow {
    height: 42px;
  }

  .architecture-arrow svg {
    transform: rotate(90deg);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .primary-navigation {
    position: fixed;
    top: var(--header-height);
    left: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(12, 15, 22, .97);
    box-shadow: var(--shadow);
    transform: translateY(-15px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }

  .primary-navigation.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .primary-navigation a {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
  }

  .primary-navigation a:last-child {
    border-bottom: 0;
  }

  .primary-navigation a::after {
    display: none;
  }

  .header-actions {
    position: absolute;
    right: 62px;
  }

  .header-actions .button {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(2) {
    transform: translateY(3px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(3) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .section {
    padding: 96px 0;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .boundary-inner {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 20px 0;
  }

  .boundary-inner > span {
    display: none;
  }

  .boundary-grid,
  .thesis-grid,
  .method-panels,
  .status-board,
  .trace-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .status-board,
  .principles-grid {
    overflow: visible;
    border: 0;
    background: transparent;
    gap: 14px;
  }

  .status-column,
  .principle {
    min-height: auto;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
  }

  .principle h3 {
    margin-top: 40px;
  }

  .workbench-shell {
    padding: 22px;
  }

  .workbench-heading {
    flex-direction: column;
  }

  .workbench-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .workbench-tabs button {
    flex: 0 0 auto;
  }

  .audit-grid {
    grid-template-columns: 1fr;
  }

  .audit-grid article {
    min-height: 120px;
  }

  .relation-row {
    grid-template-columns: 1fr;
  }

  .relation-edge {
    padding-left: 4px;
  }

  .relation-vocabulary {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .relation-tags {
    justify-content: flex-start;
  }

  .questions-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sticky-heading {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100vw - 28px);
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .hero {
    padding-top: calc(var(--header-height) + 55px);
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15vw, 5.2rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .constellation {
    min-height: 720px;
    border-radius: 26px;
  }

  .constellation::before {
    width: 380px;
    height: 380px;
    left: -10px;
    top: 175px;
  }

  .constellation::after {
    width: 240px;
    height: 240px;
    left: 61px;
    top: 245px;
  }

  .constellation-lines {
    display: none;
  }

  .node-card {
    width: calc(100% - 42px);
    left: 21px !important;
    right: auto !important;
    top: auto;
    bottom: auto;
    transform: none !important;
  }

  .node-signal { top: 22px; }
  .node-finance { top: 158px; }
  .node-event { top: 294px; min-height: 145px; }
  .node-core { top: 462px; }
  .node-research { top: 598px; }

  .node-card::after {
    content: "↓";
    position: absolute;
    left: 50%;
    bottom: -26px;
    color: var(--text-muted);
    font-size: .7rem;
  }

  .node-research::after {
    display: none;
  }

  .visual-caption {
    display: none;
  }

  .boundary-inner {
    grid-template-columns: 1fr;
  }

  .boundary-inner small {
    margin-top: 2px;
  }

  .boundary-card,
  .thesis-card,
  .method-card,
  .status-column,
  .trace-card {
    padding: 25px;
  }

  .research-question {
    padding: 38px 28px;
    margin-top: 44px;
  }

  .lifecycle {
    grid-template-columns: 1fr;
  }

  .lifecycle li {
    min-height: 145px;
    border-right: 0;
    border-bottom: 1px solid var(--line) !important;
  }

  .lifecycle li:last-child {
    border-bottom: 0 !important;
  }

  .lifecycle li::after {
    content: "↓" !important;
    right: auto !important;
    left: 28px;
    top: auto !important;
    bottom: -9px;
  }

  .lifecycle div {
    margin-top: 32px;
  }

  .trace-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .trace-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .trace-search {
    width: 100%;
  }

  .trace-card {
    min-height: 390px;
  }

  .trace-card-header {
    align-items: flex-start;
  }

  .trace-footer {
    left: 25px;
    right: 25px;
    bottom: 23px;
  }

  .workbench-shell {
    width: calc(100% + 8px);
    margin-left: -4px;
    padding: 16px;
    border-radius: 25px;
  }

  .prototype-badge {
    white-space: normal;
  }

  .workbench-panel {
    min-height: 620px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .mock-content {
    padding: 0 14px 20px;
  }

  .mock-sidebar strong {
    width: 26px;
    height: 26px;
  }

  .mock-nav {
    width: 18px;
    height: 18px;
  }

  .mock-header {
    min-height: 66px;
  }

  .mock-header strong {
    max-width: 190px;
    font-size: .66rem;
  }

  .mock-title-row {
    margin-top: 23px;
  }

  .mock-title-row h3 {
    font-size: 1.15rem;
  }

  .mock-event-card {
    padding: 16px;
  }

  .mock-actions {
    flex-wrap: wrap;
  }

  .mock-actions button {
    flex: 1;
  }

  .product-observation {
    grid-template-columns: 1fr;
  }

  .architecture-map > article {
    padding: 25px;
  }

  .relation-vocabulary {
    padding: 25px;
  }

  .question-item summary {
    grid-template-columns: 30px 1fr 20px;
    gap: 10px;
    min-height: 88px;
  }

  .question-item summary strong {
    font-size: 1rem;
  }

  .question-item p {
    margin-left: 40px;
  }

  .log-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .log-version {
    justify-self: start;
  }

  .closing-card {
    padding: 46px 27px;
    border-radius: 29px;
  }

  .closing-card::after {
    inset: 10px;
    border-radius: 20px;
  }

  .closing-card h2 {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .closing-actions {
    flex-direction: column;
  }

  .closing-actions .button {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .dialog-shell {
    padding: 38px 22px 28px;
  }

  .dialog-meta {
    grid-template-columns: 1fr;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
