:root {
  --paper: #e8e8e3;
  --paper-2: #f5f4ed;
  --ink: #111111;
  --muted: #6f6f68;
  --faint: #d7d7cf;
  --olive: #303d23;
  --clay: #b65d38;
  --blue: #8aa4b8;
  --lilac: #c8b7d5;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(17,17,17,.04) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(0deg, rgba(17,17,17,.035) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 28%), rgba(182,93,56,.13), transparent 19rem),
    radial-gradient(circle at calc(var(--mx, 50%) + 18%) calc(var(--my, 28%) + 12%), rgba(48,61,35,.1), transparent 18rem);
  transition: opacity .2s ease;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .05;
  background-image: repeating-radial-gradient(circle at 35% 25%, #111 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.cursor-lens {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 75;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(17,17,17,.045) 10px),
    rgba(245,244,237,.08);
  mix-blend-mode: multiply;
  transition: opacity .18s ease, width .2s ease, height .2s ease;
}

.cursor-lens.is-active {
  opacity: .7;
}

.cursor-lens.is-reading {
  width: 250px;
  height: 250px;
}

.scroll-meter {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: 3px;
  background: rgba(17,17,17,.08);
  pointer-events: none;
}

.scroll-meter span {
  display: block;
  width: var(--scroll-pct, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--olive), var(--clay), var(--blue));
  transform-origin: left center;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: 226px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 22px 28px;
  border-right: 1px solid rgba(17,17,17,.09);
  background: rgba(232,232,227,.72);
  backdrop-filter: blur(18px);
}

.mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
  border-radius: 2px;
}

.rail nav {
  align-self: start;
  display: grid;
  gap: 14px;
  margin-top: 66px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.rail a {
  width: fit-content;
  transition: color .2s ease, transform .2s ease;
}

.rail a:hover,
.rail a:focus-visible {
  color: var(--ink);
  transform: translateX(4px);
}

.rail nav a.is-active {
  color: var(--ink);
}

.rail nav a.is-active::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 4px;
  background: currentColor;
}

.rail-bottom {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

main {
  position: relative;
  z-index: 1;
  margin-left: 226px;
  overflow-x: hidden;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 104px);
  padding: clamp(34px, 5vw, 72px);
}

.kicker,
.section-label,
.work-meta,
.number,
.papers span {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 26px;
  color: var(--muted);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 9.8ch;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: clamp(82px, 8vw, 150px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.lede {
  max-width: 620px;
  margin-bottom: 30px;
  color: #33332f;
  font-size: clamp(19px, 1.55vw, 25px);
  font-weight: 600;
  line-height: 1.35;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.links a {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(17,17,17,.14);
  background: rgba(245,244,237,.62);
  box-shadow: 0 1px 0 rgba(17,17,17,.08);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.links a:hover {
  transform: translateY(-2px);
  border-color: rgba(17,17,17,.32);
  background: var(--paper-2);
}

.canvas {
  position: relative;
  min-height: min(72svh, 720px);
  border: 12px solid var(--olive);
  background:
    radial-gradient(circle at 34% 36%, rgba(255,255,255,.92) 0 9%, transparent 10%),
    linear-gradient(135deg, #f3f1e8 0 34%, #cdd3d1 34% 35%, #eee8dc 35% 66%, #d7d7cf 66%);
  box-shadow: 0 38px 90px rgba(17,17,17,.18);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .18s ease, box-shadow .24s ease;
}

.canvas::before {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(17,17,17,.13);
}

.canvas::after {
  content: "";
  position: absolute;
  inset: -26%;
  background:
    conic-gradient(from 140deg at 50% 50%, transparent 0 16%, rgba(48,61,35,.12) 17% 18%, transparent 19% 48%, rgba(182,93,56,.14) 49% 50%, transparent 51% 100%);
  animation: slowScan 18s linear infinite;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.portrait-card {
  position: absolute;
  left: 9%;
  bottom: 10%;
  width: min(42%, 300px);
  aspect-ratio: 4 / 5;
  padding: 10px;
  background: var(--paper-2);
  box-shadow: 18px 20px 0 rgba(17,17,17,.11);
  transform: rotate(-3deg);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 25%;
  filter: contrast(1.02) saturate(1.04);
}

.stamp {
  position: absolute;
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(17,17,17,.16);
  background: rgba(245,244,237,.84);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  box-shadow: 10px 10px 0 rgba(17,17,17,.08);
}

.stamp-one {
  right: 14%;
  top: 17%;
  background: #f5e7a8;
}

.stamp-two {
  right: 7%;
  bottom: 25%;
  background: #d8dfca;
}

.stamp-three {
  left: 18%;
  top: 18%;
  background: #e3c9ba;
}

.pixel-field {
  position: absolute;
  right: 16%;
  bottom: 10%;
  width: 168px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.pixel-field i {
  aspect-ratio: 1;
  background: rgba(17,17,17,.08);
  animation: pixelBreath 4.6s ease-in-out infinite;
}

.pixel-field i:nth-child(4n) { background: var(--clay); }
.pixel-field i:nth-child(5n) { background: var(--blue); }
.pixel-field i:nth-child(7n) { background: var(--olive); }

@keyframes pixelBreath {
  50% { transform: translateY(-5px); opacity: .64; }
}

.systems-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.map-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(17,17,17,.16);
  border-radius: 50%;
  background: rgba(245,244,237,.72);
  box-shadow: 8px 8px 0 rgba(17,17,17,.08);
  color: #262622;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: uppercase;
  animation: nodeDrift 7s ease-in-out infinite;
}

.node-law {
  right: 19%;
  top: 35%;
}

.node-ai {
  right: 33%;
  top: 54%;
  background: rgba(216,223,202,.82);
  animation-delay: -2s;
}

.node-people {
  right: 10%;
  top: 57%;
  background: rgba(227,201,186,.82);
  animation-delay: -4s;
}

.map-line {
  position: absolute;
  right: 17%;
  top: 45%;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17,17,17,.28), transparent);
  transform-origin: right center;
  animation: linePulse 4.8s ease-in-out infinite;
}

.line-one { --angle: 22deg; transform: rotate(var(--angle)); }
.line-two { --angle: -18deg; top: 58%; right: 20%; transform: rotate(var(--angle)); animation-delay: -1.6s; }
.line-three { --angle: 84deg; top: 50%; right: 8%; width: 130px; transform: rotate(var(--angle)); animation-delay: -3.2s; }

@keyframes slowScan {
  to { transform: rotate(1turn); }
}

@keyframes nodeDrift {
  50% { transform: translate3d(5px, -8px, 0); }
}

@keyframes linePulse {
  50% { opacity: .34; transform: rotate(var(--angle, 22deg)) scaleX(.74); }
}

.strip {
  overflow: hidden;
  border-block: 1px solid rgba(17,17,17,.1);
  background: var(--paper-2);
}

.strip-track {
  width: max-content;
  display: flex;
  gap: 36px;
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  animation: slide 29s linear infinite;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: clamp(70px, 9vw, 138px) clamp(28px, 6vw, 96px);
  border-bottom: 1px solid rgba(17,17,17,.08);
}

.section-label {
  margin-bottom: 30px;
  color: var(--muted);
}

.profile-grid,
.research-layout,
.elsewhere-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.large-line {
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(54px, 7vw, 110px);
  line-height: .93;
}

.facts {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(17,17,17,.12);
  background: rgba(17,17,17,.12);
}

.facts p {
  margin: 0;
  padding: 20px;
  background: rgba(245,244,237,.7);
  color: #33332f;
  font-size: 17px;
  line-height: 1.45;
}

.facts strong {
  color: var(--ink);
}

.signal-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(26px, 5vw, 62px);
  border: 1px solid rgba(17,17,17,.12);
  background: rgba(17,17,17,.12);
}

.signal-stack span {
  position: relative;
  min-height: 94px;
  display: flex;
  align-items: end;
  padding: 16px;
  overflow: hidden;
  background: rgba(245,244,237,.72);
  color: #343430;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.signal-stack span::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17,17,17,.18);
  background:
    linear-gradient(90deg, transparent 47%, rgba(17,17,17,.18) 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(17,17,17,.18) 48% 52%, transparent 53%);
  transform: rotate(0deg);
  transition: transform .35s ease, background-color .25s ease;
}

.signal-stack span:hover::before {
  transform: rotate(45deg);
  background-color: rgba(182,93,56,.16);
}

.work-list {
  display: grid;
  border-top: 1px solid rgba(17,17,17,.18);
}

.work-stage {
  display: grid;
  grid-template-columns: minmax(560px, .95fr) minmax(460px, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(190px, 300px);
  gap: clamp(18px, 4vw, 56px);
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid rgba(17,17,17,.16);
  isolation: isolate;
  transition: padding-left .28s ease, background .28s ease;
}

.work-row::after {
  content: "";
  position: absolute;
  inset: 18px auto 18px 72px;
  z-index: 1;
  width: 0;
  background: var(--olive);
  transition: width .28s ease;
}

.work-row:hover::after {
  width: 6px;
}

.work-row::before {
  content: attr(data-preview);
  position: absolute;
  right: clamp(0px, 3vw, 32px);
  top: 50%;
  z-index: 0;
  width: 172px;
  aspect-ratio: 1.18;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,17,17,.12);
  background:
    linear-gradient(90deg, rgba(17,17,17,.055) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(17,17,17,.04) 1px, transparent 1px) 0 0 / 18px 18px,
    rgba(245,244,237,.72);
  color: rgba(17,17,17,.3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(18px, -50%, 0) rotate(2deg);
  transition: opacity .24s ease, transform .28s ease;
}

.work-row > * {
  position: relative;
  z-index: 2;
}

.work-row:hover,
.work-row:focus-within,
.work-row.is-selected {
  padding-left: 18px;
  background: rgba(245,244,237,.42);
}

.work-row:hover::before,
.work-row:focus-within::before,
.work-row.is-selected::before {
  opacity: 1;
  transform: translate3d(0, -50%, 0) rotate(-2deg);
}

.work-row.is-selected::after {
  width: 6px;
}

.work-row.is-clickable {
  cursor: pointer;
}

.work-row h2 a {
  transition: color .2s ease;
}

.work-row h2 a:hover,
.work-row.is-clickable:hover h2 a {
  color: var(--olive);
}

.number {
  color: var(--muted);
}

.work-row h2,
.research-layout h2,
.elsewhere-layout h2,
.contact-grid h2 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: 0;
}

.work-row p {
  max-width: 790px;
  margin: 0;
  color: #343430;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.35;
}

.work-meta {
  color: var(--muted);
}

.work-board {
  --board-accent: var(--clay);
  position: sticky;
  top: 32px;
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,.14);
  background:
    radial-gradient(circle at 70% 22%, color-mix(in srgb, var(--board-accent) 28%, transparent), transparent 11rem),
    linear-gradient(135deg, rgba(245,244,237,.86), rgba(232,232,227,.62));
  box-shadow: 18px 22px 0 rgba(17,17,17,.07);
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}

.work-board.is-changing {
  transform: translateY(-5px) rotate(-.7deg);
  box-shadow: 24px 28px 0 rgba(17,17,17,.08);
}

.board-top {
  display: flex;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid rgba(17,17,17,.12);
}

.board-top span {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(17,17,17,.16);
  background: rgba(245,244,237,.84);
}

.board-top span:first-child {
  background: var(--board-accent);
}

.board-grid {
  position: absolute;
  inset: 70px 18px 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  opacity: .52;
}

.board-grid i {
  border: 1px solid rgba(17,17,17,.09);
  background:
    linear-gradient(90deg, rgba(17,17,17,.04) 1px, transparent 1px) 0 0 / 12px 12px,
    rgba(245,244,237,.44);
  animation: tileSignal 5.6s ease-in-out infinite;
}

.board-grid i:nth-child(3n) {
  background-color: color-mix(in srgb, var(--board-accent) 22%, rgba(245,244,237,.5));
}

.board-grid i:nth-child(4n) {
  animation-delay: -1.8s;
}

.board-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 34px 24px 24px;
}

.board-kicker,
.board-copy span,
.board-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.board-kicker {
  margin-bottom: 14px;
  color: var(--muted);
}

.board-copy h3 {
  max-width: 9.8ch;
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(50px, 4.9vw, 86px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: 0;
}

.board-copy span {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  padding: 7px 10px;
  background: color-mix(in srgb, var(--board-accent) 28%, rgba(245,244,237,.8));
  color: #23231f;
}

.board-copy p:last-child {
  margin: 18px 0 0;
  color: #343430;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.42;
}

.board-orbit {
  position: absolute;
  inset: 92px 34px auto auto;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(17,17,17,.12);
  border-radius: 50%;
  animation: boardTurn 18s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17,17,17,.13);
  background: color-mix(in srgb, var(--board-accent) 50%, rgba(245,244,237,.84));
  box-shadow: 7px 7px 0 rgba(17,17,17,.06);
}

.dot-one { left: 20px; top: 18px; }
.dot-two { right: 0; top: 86px; background: rgba(245,244,237,.84); }
.dot-three { left: 66px; bottom: -2px; }

.orbit-line {
  position: absolute;
  left: 54px;
  top: 58px;
  width: 116px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17,17,17,.3), transparent);
  transform: rotate(27deg);
}

.orbit-two {
  left: 48px;
  top: 126px;
  transform: rotate(-38deg);
}

.board-link {
  position: relative;
  z-index: 2;
  min-height: 46px;
  display: grid;
  place-items: center;
  margin: 0 18px 18px;
  border: 1px solid rgba(17,17,17,.14);
  background: rgba(245,244,237,.72);
  transition: transform .2s ease, background .2s ease;
}

.board-link:hover {
  transform: translateY(-2px);
  background: var(--paper-2);
}

@keyframes tileSignal {
  50% {
    transform: translateY(-4px);
    opacity: .6;
  }
}

@keyframes boardTurn {
  to { transform: rotate(1turn); }
}

.small-note {
  max-width: 860px;
  margin: 28px 0 0 72px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.research {
  background:
    linear-gradient(90deg, rgba(48,61,35,.08) 0 50%, transparent 50%),
    var(--paper);
}

.research-layout h2,
.elsewhere-layout h2,
.contact-grid h2 {
  max-width: 760px;
}

.papers {
  display: grid;
  gap: 16px;
}

.papers article {
  padding: 20px;
  border: 1px solid rgba(17,17,17,.12);
  background: rgba(245,244,237,.78);
  box-shadow: 10px 10px 0 rgba(17,17,17,.05);
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.papers article:hover {
  transform: translateY(-4px);
  background: rgba(245,244,237,.92);
  box-shadow: 14px 14px 0 rgba(48,61,35,.12);
}

.papers span {
  display: block;
  margin-bottom: 16px;
  color: var(--olive);
}

.elsewhere {
  background:
    radial-gradient(circle at 18% 26%, rgba(227,201,186,.34), transparent 22rem),
    var(--paper);
}

.elsewhere-layout h2 {
  margin: 0;
}

.elsewhere-list {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(17,17,17,.12);
  background: rgba(17,17,17,.12);
}

.elsewhere-list article {
  position: relative;
  padding: 20px;
  overflow: hidden;
  background: rgba(245,244,237,.72);
  transition: background .22s ease, transform .22s ease;
}

.elsewhere-list article::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(17,17,17,.12);
  background:
    radial-gradient(circle, rgba(48,61,35,.2) 0 18%, transparent 19%),
    linear-gradient(135deg, transparent 48%, rgba(182,93,56,.28) 49% 52%, transparent 53%);
  opacity: .45;
  transform: rotate(-8deg);
  transition: transform .28s ease, opacity .22s ease;
}

.elsewhere-list article:hover {
  transform: translateX(-6px);
  background: rgba(245,244,237,.94);
}

.elsewhere-list article:hover::after {
  opacity: .85;
  transform: rotate(18deg) scale(1.08);
}

.elsewhere-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.elsewhere-list p {
  margin: 0;
  color: #343430;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.papers p,
.contact-copy p {
  margin: 0;
  color: #343430;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.contact {
  min-height: 86svh;
  background:
    linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px) 0 0 / 54px 54px,
    var(--paper-2);
}

.contact-copy .links {
  margin-top: 24px;
}

.reveal {
  opacity: 1;
  transform: none;
  animation: riseIn .72s cubic-bezier(.2,.72,.16,1) both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

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

  .cursor-lens {
    display: none;
  }
}

@media (max-width: 1040px) {
  .rail {
    position: sticky;
    top: 0;
    width: auto;
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(17,17,17,.09);
  }

  .rail nav {
    justify-self: end;
    display: flex;
    gap: 12px;
    margin: 0;
    min-width: 0;
  }

  .rail-bottom {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .hero,
  .profile-grid,
  .work-stage,
  .research-layout,
  .elsewhere-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .canvas {
    min-height: 520px;
  }

  .signal-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-board {
    position: relative;
    top: auto;
    order: -1;
    min-height: 390px;
  }

  .board-orbit {
    inset: 76px 26px auto auto;
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 680px) {
  body {
    background-size: 58px 58px;
  }

  .rail nav {
    gap: 10px;
    font-size: 12px;
  }

  .hero,
  .section {
    padding-inline: 18px;
  }

  h1 {
    max-width: none;
    font-size: 56px;
    line-height: .9;
  }

  .lede {
    max-width: 34ch;
    font-size: 17px;
  }

  .canvas {
    min-height: 430px;
    border-width: 8px;
  }

  .portrait-card {
    width: 52%;
  }

  .stamp {
    min-height: 38px;
    padding: 9px 11px;
    font-size: 9px;
  }

  .stamp-two {
    right: 4%;
  }

  .pixel-field {
    width: 116px;
    right: 10%;
  }

  .systems-map {
    opacity: .8;
  }

  .map-node {
    width: 50px;
    height: 50px;
    font-size: 8px;
  }

  .map-line {
    width: 112px;
  }

  .large-line,
  .work-row h2,
  .research-layout h2,
  .elsewhere-layout h2,
  .contact-grid h2 {
    font-size: clamp(42px, 13vw, 68px);
  }

  .work-row {
    grid-template-columns: 44px 1fr;
  }

  .work-row::before {
    display: none;
  }

  .work-row:hover,
  .work-row:focus-within,
  .work-row.is-selected {
    padding-left: 0;
  }

  .work-row.is-selected::after {
    left: 44px;
  }

  .work-meta {
    grid-column: 2;
  }

  .work-board {
    min-height: 340px;
    box-shadow: 10px 12px 0 rgba(17,17,17,.06);
  }

  .board-grid {
    inset: 64px 14px 116px;
    gap: 6px;
  }

  .board-copy {
    padding: 24px 18px 18px;
  }

  .board-copy h3 {
    font-size: 46px;
  }

  .board-orbit {
    width: 116px;
    height: 116px;
    opacity: .72;
  }

  .orbit-dot {
    width: 24px;
    height: 24px;
  }

  .small-note {
    margin-left: 0;
  }

  .signal-stack {
    grid-template-columns: 1fr;
  }
}

.case-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 0%, rgba(108,135,151,.2), transparent 34rem),
    radial-gradient(circle at 70% 26%, rgba(182,93,56,.12), transparent 26rem),
    #090d0e;
  color: #eef0ea;
}

.detail-page {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(17,17,17,.04) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(0deg, rgba(17,17,17,.035) 1px, transparent 1px) 0 0 / 88px 88px,
    radial-gradient(circle at 70% 8%, rgba(138,164,184,.22), transparent 26rem),
    var(--paper);
  color: var(--ink);
}

.detail-back {
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 30;
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid rgba(17,17,17,.12);
  background: rgba(245,244,237,.76);
  backdrop-filter: blur(18px);
  color: #343430;
  font-size: 14px;
  font-weight: 800;
}

.detail-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 86px clamp(18px, 5vw, 56px) 120px;
  overflow: visible;
}

.detail-hero {
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(34px, 7vw, 104px);
  align-items: center;
}

.detail-kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.detail-hero h1 {
  max-width: 9.6ch;
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(72px, 9vw, 142px);
  font-weight: 400;
  line-height: .86;
}

.detail-lede {
  max-width: 720px;
  margin: 0;
  color: #33332f;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.35;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.detail-actions a {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(17,17,17,.14);
  background: rgba(245,244,237,.74);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}

.detail-actions a:hover {
  transform: translateY(-2px);
  background: var(--paper-2);
}

.detail-visual {
  position: relative;
  min-height: 520px;
  border: 12px solid var(--olive);
  background: var(--paper-2);
  box-shadow: 0 38px 90px rgba(17,17,17,.16);
  overflow: hidden;
}

.detail-visual::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(17,17,17,.12);
}

.legally-visual {
  background:
    radial-gradient(circle at 72% 20%, rgba(245,231,168,.8), transparent 8rem),
    linear-gradient(135deg, #f8f5e9 0 48%, #d8dfca 48% 49%, #eee8dc 49%);
}

.state-board {
  position: absolute;
  inset: 56px 46px auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.state-board span,
.discovery-map span,
.matrix span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,17,17,.13);
  background: rgba(245,244,237,.72);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.score-slip {
  position: absolute;
  left: 50px;
  right: 50px;
  bottom: 54px;
  padding: 24px;
  background: #303d23;
  color: var(--paper-2);
  box-shadow: 14px 14px 0 rgba(17,17,17,.12);
}

.score-slip p,
.founder-card p {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.score-slip strong {
  display: block;
  font-family: var(--serif);
  font-size: 66px;
  font-weight: 400;
  line-height: .9;
}

.buerk-visual {
  background:
    radial-gradient(circle at 30% 30%, rgba(227,201,186,.9), transparent 9rem),
    linear-gradient(135deg, #f5f4ed 0 42%, #cfd8ca 42% 43%, #eee8dc 43%);
}

.discovery-map {
  position: absolute;
  inset: 58px 48px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.discovery-map span:nth-child(3) {
  background: #e3c9ba;
}

.discovery-map span:nth-child(4) {
  background: #f5e7a8;
}

.founder-card {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 58px;
  padding: 26px;
  background: var(--ink);
  color: var(--paper-2);
  box-shadow: 16px 16px 0 rgba(17,17,17,.12);
}

.founder-card p:last-child {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 70px;
  line-height: .9;
  text-transform: none;
}

.policy-matrix-visual {
  background:
    radial-gradient(circle at 68% 28%, rgba(138,164,184,.58), transparent 10rem),
    linear-gradient(135deg, #f5f4ed 0 38%, #d7d7cf 38% 39%, #eee8dc 39%);
}

.matrix {
  position: absolute;
  inset: 58px 44px;
  display: grid;
  grid-template-columns: .72fr 1fr 1fr;
  gap: 8px;
  align-content: center;
}

.matrix span:nth-child(3n + 1) {
  background: var(--olive);
  color: var(--paper-2);
}

.matrix span:nth-child(3n) {
  background: #e3c9ba;
}

.detail-overview {
  display: grid;
  grid-template-columns: minmax(230px, 340px) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 96px);
  padding: clamp(70px, 9vw, 120px) 0;
  border-top: 1px solid rgba(17,17,17,.14);
}

.detail-meta {
  display: grid;
  gap: 26px;
}

.detail-meta span,
.detail-grid span,
.detail-band p {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.detail-meta p {
  margin: 0;
  color: #343430;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
}

.detail-meta a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.detail-copy h2,
.detail-band h2 {
  max-width: 860px;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 400;
  line-height: .92;
}

.detail-copy p {
  max-width: 780px;
  margin: 0 0 18px;
  color: #343430;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 700;
  line-height: 1.45;
}

.detail-band {
  margin: 20px 0 56px;
  padding: clamp(44px, 7vw, 82px);
  border: 1px solid rgba(17,17,17,.12);
  background:
    radial-gradient(circle at 82% 22%, rgba(182,93,56,.16), transparent 16rem),
    rgba(245,244,237,.72);
  text-align: center;
}

.detail-band h2 {
  margin: 0 auto;
}

.product-thinking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(28px, 6vw, 80px);
  padding: 24px 0 clamp(56px, 8vw, 96px);
}

.thinking-steps {
  display: grid;
  gap: 10px;
}

.thinking-steps article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(17,17,17,.12);
  background: rgba(245,244,237,.68);
  box-shadow: 8px 8px 0 rgba(17,17,17,.05);
}

.thinking-steps span {
  font-family: var(--serif);
  font-size: 46px;
  line-height: .9;
  color: var(--olive);
}

.thinking-steps p {
  margin: 0;
  color: #343430;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(58px, 8vw, 100px);
}

.screenshot-gallery figure {
  margin: 0;
  border: 1px solid rgba(17,17,17,.12);
  background: rgba(245,244,237,.78);
  box-shadow: 12px 12px 0 rgba(17,17,17,.06);
}

.screenshot-gallery .shot-large {
  grid-column: 1 / -1;
}

.screenshot-gallery img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid rgba(17,17,17,.12);
}

.screenshot-gallery figcaption {
  padding: 14px 16px 16px;
  color: #343430;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
}

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

.detail-grid article {
  min-height: 240px;
  padding: 22px;
  border: 1px solid rgba(17,17,17,.12);
  background: rgba(245,244,237,.68);
  box-shadow: 10px 10px 0 rgba(17,17,17,.05);
}

.detail-grid p {
  margin: 0;
  color: #343430;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .detail-hero,
  .detail-overview,
  .product-thinking,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: auto;
    padding-top: 48px;
  }

  .detail-hero h1 {
    max-width: none;
    font-size: clamp(58px, 15vw, 90px);
  }

  .detail-visual {
    min-height: 440px;
    border-width: 8px;
  }

  .score-slip strong,
  .founder-card p:last-child {
    font-size: 54px;
  }

  .detail-grid article {
    min-height: 0;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery .shot-large {
    grid-column: auto;
  }

  .thinking-steps article {
    grid-template-columns: 54px minmax(0, 1fr);
  }
}

.case-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background:
    linear-gradient(90deg, rgba(238,240,234,.18) 1px, transparent 1px) 0 0 / 70px 70px,
    linear-gradient(0deg, rgba(238,240,234,.14) 1px, transparent 1px) 0 0 / 70px 70px;
}

.case-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 18%, rgba(138,164,184,.18), transparent 34rem);
  filter: blur(20px);
}

.case-back {
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 20;
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid rgba(238,240,234,.08);
  border-radius: 999px;
  background: rgba(238,240,234,.07);
  color: rgba(238,240,234,.76);
  backdrop-filter: blur(18px);
  font-size: 14px;
  font-weight: 800;
}

.case-main {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 86px 22px 120px;
  overflow: visible;
}

.case-hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding-top: 18px;
}

.case-kicker {
  margin: 0 0 18px;
  color: rgba(238,240,234,.52);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.case-hero h1 {
  max-width: 11ch;
  margin: 0 auto 18px;
  color: rgba(238,240,234,.94);
  text-shadow: 0 0 28px rgba(138,164,184,.25);
  font-size: clamp(68px, 10vw, 142px);
  line-height: .88;
}

.case-lede {
  max-width: 760px;
  margin: 0 auto 38px;
  color: rgba(238,240,234,.68);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.36;
}

.case-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(238,240,234,.1);
  border-radius: 24px;
  background: rgba(238,240,234,.05);
  box-shadow: 0 46px 130px rgba(0,0,0,.34);
}

.case-image img {
  width: 100%;
  display: block;
}

.hero-image {
  width: min(900px, 100%);
  max-height: 46vh;
}

.case-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0 54px;
}

.case-image figcaption {
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(238,240,234,.08);
  color: rgba(238,240,234,.66);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.42;
  text-align: left;
}

.case-device {
  width: min(920px, 100%);
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(238,240,234,.08);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(238,240,234,.08), rgba(238,240,234,.025));
  box-shadow: 0 50px 150px rgba(0,0,0,.5);
}

.device-window {
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(238,240,234,.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 66%, rgba(238,240,234,.18), transparent 9rem),
    linear-gradient(135deg, rgba(238,240,234,.08), rgba(9,13,14,.72));
}

.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(238,240,234,.06);
  background: rgba(0,0,0,.18);
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(238,240,234,.22);
}

.flight-panel {
  position: relative;
  min-height: 418px;
  display: grid;
  grid-template-columns: 180px minmax(260px, 1fr) 120px;
  gap: 24px;
  align-items: center;
  padding: 48px;
}

.flight-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -76px;
  width: 360px;
  height: 190px;
  border-radius: 180px 180px 0 0;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 31% 44%, #131718 0 20px, transparent 21px),
    radial-gradient(circle at 69% 44%, #131718 0 20px, transparent 21px),
    linear-gradient(180deg, #d8ddd7, #9da59e);
  filter: drop-shadow(0 28px 42px rgba(0,0,0,.42));
  opacity: .84;
}

.signal-card,
.conversation-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(238,240,234,.1);
  border-radius: 16px;
  background: rgba(238,240,234,.07);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  text-align: left;
}

.signal-card {
  padding: 18px;
}

.signal-card span,
.case-meta span,
.case-grid span,
.process-list span {
  display: block;
  margin-bottom: 10px;
  color: rgba(238,240,234,.5);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.signal-card strong {
  color: #f2b18d;
  font-size: 32px;
}

.conversation-card {
  padding: 24px;
}

.conversation-card p {
  margin: 0 0 14px;
  color: rgba(238,240,234,.78);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.38;
}

.conversation-card p:last-child {
  margin-bottom: 0;
  color: rgba(238,240,234,.56);
}

.guardrail-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.guardrail-stack i {
  height: 42px;
  border: 1px solid rgba(238,240,234,.1);
  border-radius: 12px;
  background: rgba(138,164,184,.16);
}

.guardrail-stack i:nth-child(2n) {
  background: rgba(48,61,35,.4);
}

.guardrail-stack i:nth-child(3n) {
  background: rgba(182,93,56,.28);
}

.case-overview,
.case-process {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 104px);
  padding: 86px 0;
}

.case-meta {
  display: grid;
  gap: 28px;
  color: rgba(238,240,234,.64);
}

.case-meta p {
  margin: 0;
  color: rgba(238,240,234,.72);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.case-copy h2,
.case-band h2 {
  max-width: 880px;
  margin: 0 0 22px;
  color: rgba(238,240,234,.92);
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: .94;
}

.case-copy p {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(238,240,234,.68);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 700;
  line-height: 1.45;
}

.case-band {
  margin: 34px 0;
  padding: clamp(48px, 8vw, 92px);
  border: 1px solid rgba(238,240,234,.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 30%, rgba(182,93,56,.18), transparent 20rem),
    rgba(238,240,234,.05);
  text-align: center;
}

.case-band p {
  margin: 0 0 20px;
  color: rgba(238,240,234,.48);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.case-band h2 {
  margin: 0 auto;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 60px 0;
}

.case-grid article,
.process-list div {
  border: 1px solid rgba(238,240,234,.08);
  border-radius: 18px;
  background: rgba(238,240,234,.055);
  padding: 22px;
}

.case-grid p,
.process-list p {
  margin: 0;
  color: rgba(238,240,234,.66);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.process-list {
  display: grid;
  gap: 12px;
}

.muted-band {
  background:
    radial-gradient(circle at 20% 20%, rgba(138,164,184,.16), transparent 20rem),
    rgba(238,240,234,.035);
}

@media (max-width: 820px) {
  .case-main {
    padding-top: 84px;
  }

  .case-hero {
    min-height: auto;
    padding: 28px 0 58px;
  }

  .case-hero h1 {
    font-size: clamp(56px, 16vw, 82px);
  }

  .flight-panel,
  .case-overview,
  .case-process,
  .case-grid,
  .case-image-grid {
    grid-template-columns: 1fr;
  }

  .flight-panel {
    padding: 24px;
  }

  .device-window {
    min-height: 560px;
  }

  .flight-panel::before {
    width: 260px;
    height: 138px;
  }

  .case-band {
    padding: 36px 22px;
  }
}
