:root {
  --page-bg: rgb(247 249 251);
  --page-bg-rgb: 247 249 251;
  --page-fg: rgb(20 35 58);
  --page-fg-rgb: 20 35 58;
  --page-muted: rgb(90 105 125);
  --page-muted-rgb: 90 105 125;
  --page-accent: rgb(35 95 223);
  --page-accent-rgb: 35 95 223;
  --accent: var(--page-accent);
  --line-color: rgb(204 213 225);
  --line-color-rgb: 204 213 225;
  --surface-color: rgb(255 255 255 / .46);
  --scroll-progress: 0;
  --header-height: 78px;
  --font-display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", Consolas, "Liberation Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  transition: background-color 120ms linear, color 120ms linear;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-image:
    linear-gradient(rgb(var(--page-accent-rgb) / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--page-accent-rgb) / .07) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  opacity: .55;
  transition: opacity 180ms ease, background-image 180ms ease;
}

body::after {
  z-index: -3;
  background:
    radial-gradient(circle at 12% calc(10% + var(--scroll-progress) * 40%), rgb(var(--page-accent-rgb) / .11), transparent 28%),
    radial-gradient(circle at 90% calc(78% - var(--scroll-progress) * 24%), rgb(var(--page-accent-rgb) / .08), transparent 30%);
  opacity: .8;
  transition: background 120ms linear;
}

body.is-dark::before { opacity: .26; }

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

button,
a { font: inherit; }

a { color: inherit; }

button { color: inherit; }

::selection { background: var(--page-accent); color: var(--page-bg); }

:focus-visible {
  outline: 2px solid var(--page-accent);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--page-fg);
  color: var(--page-bg);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: none; }

#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .72;
  mix-blend-mode: multiply;
}

.is-dark #ambient-canvas { mix-blend-mode: screen; opacity: .46; }

.container {
  width: min(100%, 1320px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgb(var(--page-fg-rgb) / .14);
  background: rgb(var(--page-bg-rgb) / .74);
  color: var(--page-fg);
  backdrop-filter: blur(18px) saturate(1.12);
  transition: background-color 160ms linear, color 160ms linear, border-color 160ms linear;
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  flex: 0 0 40px;
  border: 1px solid currentColor;
}

.brand-mark img {
  width: 74px;
  height: 74px;
  max-width: none;
  transform: translate(-17px, -11px);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.brand-wordmark span { color: var(--page-accent); }

.nav-main {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.3vw, 34px);
}

.nav-link {
  position: relative;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--page-accent);
  transition: right 220ms cubic-bezier(.2, 0, 0, 1);
}

.nav-link:hover::after,
.nav-link.is-active::after { right: 0; }

.nav-link.is-active { color: var(--page-accent); }

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(var(--page-fg-rgb) / .62);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--page-accent);
  box-shadow: 0 0 14px rgb(var(--page-accent-rgb) / .72);
  content: "";
}

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 18px;
  height: 1px;
  margin-inline: auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-button::before { transform: translateY(-5px); }
.menu-button::after { transform: translateY(5px); }
.menu-button[aria-expanded="true"]::before { transform: translateY(1px) rotate(45deg); }
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::after { transform: translateY(-1px) rotate(-45deg); }

main,
footer { position: relative; z-index: 1; }

.scene { position: relative; }

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--page-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-marker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgb(var(--page-fg-rgb) / .62);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-marker::before {
  width: 34px;
  height: 1px;
  background: var(--page-accent);
  content: "";
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-top: calc(var(--header-height) + 22px);
  padding-bottom: clamp(34px, 6vh, 78px);
}

.hero-grid {
  min-height: calc(100svh - var(--header-height) - 22px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(40px, 8vw, 150px);
}

.hero-copy { position: relative; z-index: 2; }

.hero-copy .eyebrow { margin-bottom: 28px; }

.hero-title {
  max-width: 9.5ch;
  margin-bottom: 0;
  font-size: clamp(58px, 7.4vw, 112px);
  letter-spacing: -.045em;
  line-height: .88;
}

.hero-title em {
  display: block;
  color: var(--page-accent);
  font-style: normal;
}

.hero-lead {
  max-width: 48ch;
  margin: clamp(28px, 4vh, 44px) 0 0;
  color: var(--page-muted);
  font-size: clamp(16px, 1.35vw, 18px);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--page-fg);
  background: var(--page-fg);
  color: var(--page-bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms cubic-bezier(.2, 0, 0, 1);
}

.button:hover {
  border-color: var(--page-accent);
  background: var(--page-accent);
  color: var(--page-bg);
}

.button-outline {
  border-color: var(--line-color);
  background: transparent;
  color: var(--page-fg);
}

.button-outline:hover {
  border-color: var(--page-fg);
  background: rgb(var(--page-fg-rgb) / .08);
  color: var(--page-fg);
}

.hero-techline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  color: rgb(var(--page-fg-rgb) / .52);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-techline span::before { color: var(--page-accent); content: "// "; }

.hero-visual-wrap {
  position: relative;
  min-height: min(68vh, 720px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual-wrap::before,
.hero-visual-wrap::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero-visual-wrap::before {
  inset: 9% -2% 6% 10%;
  border: 1px solid rgb(var(--page-fg-rgb) / .16);
  clip-path: polygon(50% 0, 100% 18%, 93% 78%, 54% 100%, 0 76%, 7% 21%);
  transform: translate3d(0, calc(var(--hero-progress, 0) * -26px), 0);
}

.hero-visual-wrap::after {
  top: 15%;
  right: -7%;
  width: 14px;
  height: 62%;
  background: var(--page-accent);
  transform: skewY(-28deg) translateY(calc(var(--hero-progress, 0) * 24px));
}

.hero-visual {
  position: relative;
  width: min(100%, 650px);
  aspect-ratio: 1 / 1.03;
  overflow: hidden;
  background: rgb(8 17 33);
  clip-path: polygon(
    calc(50% + var(--hero-clip-shift, 0%)) 0%,
    100% 15%,
    calc(92% - var(--hero-clip-shift, 0%)) 82%,
    48% 100%,
    0% 77%,
    8% 22%
  );
  transform: translate3d(0, var(--hero-media-y, 0px), 0) scale(var(--hero-media-scale, 1));
  transition: clip-path 60ms linear;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
  filter: saturate(.62) contrast(1.22) brightness(.88);
  transform: scale(1.1);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero-visual::before {
  background:
    linear-gradient(125deg, rgb(6 15 31 / .56), transparent 42%),
    linear-gradient(0deg, rgb(7 17 32 / .45), transparent 42%),
    rgb(var(--page-accent-rgb) / .18);
  mix-blend-mode: multiply;
}

.hero-visual::after {
  background-image: linear-gradient(rgb(255 255 255 / .08) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(135deg, transparent 5%, black 48%, transparent 92%);
  opacity: .3;
}

.visual-label {
  position: absolute;
  right: 9%;
  bottom: 10%;
  z-index: 2;
  display: grid;
  gap: 5px;
  color: white;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}

.visual-label strong {
  color: rgb(255 255 255 / .78);
  font-size: 12px;
  font-weight: 400;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgb(var(--page-fg-rgb) / .6);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue::after {
  width: 46px;
  height: 1px;
  background: var(--page-accent);
  box-shadow: 0 0 12px rgb(var(--page-accent-rgb) / .55);
  content: "";
}

.proof-strip {
  border-block: 1px solid var(--line-color);
  background: rgb(var(--page-fg-rgb) / .035);
}

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

.proof-item {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 32px;
  border-right: 1px solid var(--line-color);
}

.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border-right: 0; }

.proof-item strong {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.05;
}

.proof-item span {
  margin-top: 8px;
  color: var(--page-muted);
  font-size: 12px;
}

.section-pad {
  padding-block: clamp(88px, 12vh, 160px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 70px;
}

.section-heading h2 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(44px, 5.5vw, 80px);
  letter-spacing: -.045em;
  line-height: .94;
}

.section-heading p:not(.eyebrow) {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--page-muted);
  font-size: 18px;
}

.systems {
  min-height: 150vh;
}

.systems-layout {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
  gap: clamp(50px, 10vw, 170px);
  align-items: start;
}

.systems-intro {
  position: sticky;
  top: calc(var(--header-height) + 42px);
}

.systems-intro h2 {
  max-width: 7ch;
  margin-bottom: 24px;
  font-size: clamp(48px, 5vw, 78px);
  letter-spacing: -.045em;
  line-height: .92;
}

.systems-intro p {
  max-width: 32ch;
  margin-bottom: 26px;
  color: var(--page-muted);
}

.systems-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgb(var(--page-fg-rgb) / .58);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
}

.systems-counter strong { color: var(--page-accent); font-size: 16px; }

.architecture {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  min-height: auto;
  display: grid;
  align-content: center;
  padding: 24px 0 0;
  border-block: 1px solid var(--line-color);
  background: transparent;
  overflow: visible;
}

.architecture-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-inline: 2px;
}

.architecture-header h3 {
  margin-bottom: 0;
  color: var(--page-fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.architecture-header span {
  color: var(--page-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.architecture-map {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.architecture-node {
  position: relative;
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px 22px 20px;
  border-left: 1px solid var(--line-color);
  opacity: .58;
  transition: opacity 220ms ease, background-color 220ms ease, border-color 180ms linear;
}

.architecture-node:first-child { border-left: 0; }

.architecture-node.is-active {
  background: rgb(var(--page-accent-rgb) / .08);
  opacity: 1;
}

.architecture-node.is-past { opacity: .82; }

.architecture-node.is-active h4 { color: var(--page-accent); }

.architecture-node code {
  color: var(--page-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.architecture-node h4 {
  margin: 0;
  font-size: clamp(20px, 2vw, 29px);
  letter-spacing: -.02em;
}

.architecture-branches {
  display: grid;
  gap: 7px;
  margin-top: -2px;
}

.architecture-branches span {
  color: var(--page-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.architecture-branches span::before { color: var(--page-accent); content: "—  "; }

.architecture-node p {
  margin: 0;
  color: var(--page-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
  text-transform: uppercase;
}

.system-list {
  position: relative;
  margin-top: 44px;
  border-top: 1px solid var(--line-color);
}

.system-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-color);
  opacity: .68;
  transform: translateX(18px);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(.2, 0, 0, 1), border-color 180ms linear;
}

.system-item.is-active,
.system-item:hover { opacity: 1; transform: none; }

.system-item .section-marker { align-items: start; padding-top: 4px; }
.system-item .section-marker::before { width: 24px; }

.system-item h3 {
  margin-bottom: 8px;
  font-size: clamp(26px, 2.4vw, 38px);
  letter-spacing: -.035em;
  line-height: .98;
}

.system-item p {
  max-width: 54ch;
  margin: 0;
  color: var(--page-muted);
  font-size: 14px;
}

.experience {
  min-height: 190vh;
  color: var(--page-fg);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(260px, .74fr) minmax(0, 1.26fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: start;
}

.experience-sticky {
  position: sticky;
  top: calc(var(--header-height) + 50px);
}

.experience-sticky h2 {
  max-width: 8ch;
  margin-bottom: 26px;
  font-size: clamp(50px, 6vw, 84px);
  letter-spacing: -.05em;
  line-height: .9;
}

.experience-sticky > p:not(.eyebrow) {
  max-width: 34ch;
  margin-bottom: 42px;
  color: var(--page-muted);
}

.experience-current {
  min-height: 170px;
  padding-top: 22px;
  border-top: 1px solid var(--page-accent);
}

.experience-current small {
  color: var(--page-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.experience-current h3 {
  margin: 12px 0 8px;
  font-size: clamp(23px, 2.5vw, 34px);
  letter-spacing: -.03em;
  line-height: .95;
}

.experience-current p {
  margin: 0;
  color: var(--page-muted);
  font-size: 13px;
}

.experience-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-color);
}

.experience-list::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 112px;
  width: 1px;
  background: var(--line-color);
  content: "";
}

.experience-item {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 48px;
  min-height: 230px;
  padding-block: 34px;
  opacity: .62;
  transition: opacity 240ms ease;
}

.experience-item::before {
  position: absolute;
  top: 46px;
  left: 108px;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 1px solid var(--page-bg);
  background: var(--page-accent);
  box-shadow: 0 0 0 5px var(--page-bg), 0 0 18px rgb(var(--page-accent-rgb) / .72);
  content: "";
  opacity: 0;
  transform: scale(.4);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(.2, 0, 0, 1);
}

.experience-item.is-active,
.experience-item.is-past { opacity: 1; }

.experience-item.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.experience-date {
  padding-top: 4px;
  color: var(--page-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.experience-body { grid-column: 2; }

.experience-body h3 {
  max-width: 15ch;
  margin-bottom: 12px;
  font-size: clamp(27px, 3vw, 46px);
  letter-spacing: -.035em;
  line-height: .96;
}

.experience-body p {
  max-width: 53ch;
  margin-bottom: 18px;
  color: var(--page-muted);
  font-size: 15px;
}

.role-index {
  display: inline-block;
  margin-right: 12px;
  color: var(--page-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  vertical-align: middle;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 8px;
  border: 1px solid var(--line-color);
  color: var(--page-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.work {
  min-height: 340vh;
  padding-bottom: 0;
}

.work-intro {
  padding-bottom: 70px;
}

.work-intro h2 { max-width: 9ch; }

.work-showcase {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.work-showcase::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 36%, rgb(var(--page-accent-rgb) / .14), transparent 34%);
  content: "";
  pointer-events: none;
}

.work-showcase-inner {
  position: relative;
  min-height: 82svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
}

.work-visual {
  position: relative;
  min-height: min(70vh, 700px);
  overflow: hidden;
  border: 1px solid var(--line-color);
  background: rgb(var(--page-fg-rgb) / .04);
  isolation: isolate;
}

.work-visual::before,
.work-visual::after { position: absolute; pointer-events: none; content: ""; }

.work-visual::before {
  inset: 9%;
  border: 1px solid rgb(var(--page-accent-rgb) / .42);
  clip-path: polygon(0 12%, 82% 0, 100% 72%, 14% 100%);
  transform: translate3d(calc(var(--work-progress, 0) * 24px), calc(var(--work-progress, 0) * -10px), 0) rotate(calc(var(--work-progress, 0) * -2deg));
}

.work-visual::after {
  right: 13%;
  bottom: 12%;
  width: 40%;
  height: 1px;
  background: var(--page-accent);
  box-shadow: 0 0 24px rgb(var(--page-accent-rgb) / .75);
  transform: rotate(-28deg);
}

.work-visual-image {
  background: rgb(8 17 33);
}

.work-visual-image img {
  width: 100%;
  height: 100%;
  min-height: min(70vh, 700px);
  object-fit: cover;
  filter: saturate(.42) contrast(1.28) brightness(.7);
  opacity: .74;
  transform: scale(calc(1.04 + var(--work-progress, 0) * .12)) translateX(calc(var(--work-progress, 0) * -3%));
  transition: transform 70ms linear;
}

.work-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 420ms ease, transform 760ms cubic-bezier(.2, 0, 0, 1);
}

.work-art.is-active { opacity: 1; transform: scale(1); }

.work-art > .work-visual-grid { z-index: 1; }
.work-art > .work-visual-code { z-index: 2; }

.work-visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / .1) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .1) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(115deg, black, transparent 82%);
  opacity: .28;
}

.work-visual-code {
  position: absolute;
  inset: 13% 12%;
  display: grid;
  align-content: space-between;
  color: rgb(255 255 255 / .66);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.work-visual-code strong {
  display: block;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 110px);
  letter-spacing: -.07em;
  line-height: .82;
}

.work-copy { position: relative; z-index: 2; }

.work-copy .work-number {
  color: var(--page-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
}

.work-copy h3 {
  max-width: 9ch;
  margin: 20px 0;
  font-size: clamp(48px, 6vw, 90px);
  letter-spacing: -.05em;
  line-height: .88;
}

.work-copy > p {
  max-width: 42ch;
  margin-bottom: 24px;
  color: var(--page-muted);
  font-size: 16px;
}

.work-facts {
  display: grid;
  gap: 13px;
  margin: 0 0 26px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-color);
}

.work-fact {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  color: var(--page-muted);
  font-size: 12px;
}

.work-fact dt {
  color: var(--page-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.work-fact dd { margin: 0; }

.work-nav {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: 8vh;
  left: clamp(20px, 4vw, 64px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
}

.work-nav-line {
  height: 1px;
  flex: 1;
  background: var(--line-color);
}

.work-nav-progress {
  height: 1px;
  width: calc(var(--work-progress, 0) * 100%);
  max-width: 100%;
  margin-top: -1px;
  background: var(--page-accent);
  transform-origin: left;
}

.work-nav-label {
  min-width: 55px;
  color: var(--page-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
}

.work-chapter { display: none; }
.work-chapter.is-active { display: block; }
html:not(.js) .work { min-height: auto; }
html:not(.js) .work-showcase { position: relative; }
html:not(.js) .work-chapter { display: block; }
html:not(.js) .work-art:not(.is-active) { display: none; }

.lab {
  min-height: 140vh;
  color: var(--page-fg);
}

.lab-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 62px;
}

.lab-heading h2 {
  max-width: 9ch;
  margin-bottom: 0;
  font-size: clamp(52px, 6.5vw, 100px);
  letter-spacing: -.055em;
  line-height: .86;
}

.lab-heading p {
  max-width: 36ch;
  margin-bottom: 4px;
  color: var(--page-muted);
}

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

.lab-card {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line-color);
  background: rgb(var(--page-fg-rgb) / .045);
  overflow: hidden;
  transition: border-color 220ms ease, transform 280ms cubic-bezier(.2, 0, 0, 1), background-color 220ms ease;
}

.lab-card:hover {
  border-color: var(--page-accent);
  background: rgb(var(--page-fg-rgb) / .09);
  transform: translateY(-7px);
}

.lab-preview {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgb(var(--page-fg-rgb) / .14);
  background: rgb(5 11 24);
}

.lab-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 270px;
  border: 0;
  opacity: .88;
  transform: scale(1.02);
  transform-origin: center;
}

.lab-preview::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(var(--page-accent-rgb) / .42);
  box-shadow: inset 0 0 50px rgb(0 0 0 / .42);
  content: "";
  pointer-events: none;
}

.lab-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.lab-index {
  color: var(--page-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
}

.lab-meta h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.04em;
}

.lab-card p {
  margin: 12px 0 16px;
  color: var(--page-muted);
  font-size: 13px;
}

.lab-card .tag-list { margin-top: auto; }

.lab-card .tag-list li { border-color: rgb(var(--page-fg-rgb) / .22); }

.lab-open {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lab-card:hover .lab-open,
.lab-card:focus-within .lab-open { opacity: 1; transform: none; }

.stack {
  min-height: 115vh;
}

.stack-layout {
  display: grid;
  grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: start;
}

.stack-intro { position: sticky; top: calc(var(--header-height) + 46px); }

.stack-intro h2 {
  max-width: 7ch;
  margin-bottom: 20px;
  font-size: clamp(50px, 6vw, 88px);
  letter-spacing: -.05em;
  line-height: .88;
}

.stack-intro p { max-width: 31ch; color: var(--page-muted); }

.stack-matrix {
  border-top: 1px solid var(--line-color);
}

.stack-row {
  display: grid;
  grid-template-columns: minmax(135px, .45fr) 1fr;
  gap: 32px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-color);
  transition: padding 220ms ease, border-color 180ms linear;
}

.stack-row:hover { padding-inline: 12px; border-color: var(--page-accent); }

.stack-row h3 {
  margin: 0;
  color: var(--page-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-items li {
  position: relative;
  padding-right: 18px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: -.04em;
  line-height: 1;
}

.stack-items li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--page-accent);
  content: "";
  transform: translateY(-50%);
}

.education {
  min-height: 90vh;
  display: grid;
  align-items: center;
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: clamp(45px, 10vw, 150px);
  align-items: start;
}

.education h2 {
  max-width: 6ch;
  margin-bottom: 20px;
  font-size: clamp(54px, 6.5vw, 98px);
  letter-spacing: -.055em;
  line-height: .84;
}

.education-intro p { max-width: 31ch; color: var(--page-muted); }

.education-card {
  padding: 34px 0;
  border-block: 1px solid var(--line-color);
}

.education-card h3 {
  max-width: 18ch;
  margin-bottom: 14px;
  font-size: clamp(28px, 3.2vw, 46px);
  letter-spacing: -.04em;
  line-height: .95;
}

.education-card p { margin: 8px 0 0; color: var(--page-muted); }

.contact {
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.contact-panel {
  position: relative;
  min-height: min(72vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 8vw, 120px);
  border: 1px solid var(--line-color);
  background: rgb(var(--page-fg-rgb) / .035);
  isolation: isolate;
}

.contact-panel::before {
  position: absolute;
  top: -22%;
  right: 9%;
  z-index: -1;
  width: 30px;
  height: 145%;
  background: var(--page-accent);
  box-shadow: 0 0 50px rgb(var(--page-accent-rgb) / .4);
  content: "";
  opacity: calc(.45 + var(--contact-progress, 0) * .55);
  transform: rotate(27deg) translateX(calc(var(--contact-progress, 0) * -100px));
  transform-origin: center;
}

.contact-panel::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 1px;
  background: var(--line-color);
  content: "";
}

.contact-panel h2 {
  max-width: 8ch;
  margin-bottom: 26px;
  font-size: clamp(56px, 7.5vw, 112px);
  letter-spacing: -.06em;
  line-height: .84;
}

.contact-panel > p {
  max-width: 46ch;
  margin-bottom: 32px;
  color: var(--page-muted);
}

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 44px;
  color: var(--page-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--page-accent); }

.copy-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--page-accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.side-index {
  position: fixed;
  top: 50%;
  right: clamp(14px, 2.4vw, 36px);
  z-index: 30;
  display: grid;
  gap: 13px;
  transform: translateY(-50%);
}

.side-index a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgb(var(--page-fg-rgb) / .45);
  font-family: var(--font-mono);
  font-size: 9px;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.side-index a::before {
  width: 15px;
  height: 1px;
  background: var(--line-color);
  content: "";
  transition: width 180ms ease, background-color 180ms ease;
}

.side-index a:hover,
.side-index a.is-active {
  color: var(--page-accent);
  transform: translateX(-5px);
}

.side-index a.is-active::before { width: 26px; background: var(--page-accent); }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--page-accent);
  border-radius: 50%;
  color: var(--page-accent);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .08em;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  transition: opacity 160ms ease, transform 180ms cubic-bezier(.2, 0, 0, 1), width 180ms ease, height 180ms ease;
}

.cursor.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-engaged { width: 48px; height: 48px; background: rgb(var(--page-accent-rgb) / .1); }

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

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms cubic-bezier(.2, 0, 0, 1), transform 700ms cubic-bezier(.2, 0, 0, 1);
}

.js .reveal.is-in { opacity: 1; transform: none; }

footer { padding: 34px 0 48px; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-color);
  color: var(--page-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--page-accent); }

@media (max-width: 1040px) {
  .nav-status { display: none; }
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr); gap: 38px; }
  .hero-title { font-size: clamp(56px, 8vw, 96px); }
  .systems-layout,
  .experience-layout,
  .stack-layout,
  .education-layout { gap: 48px; }
  .work-showcase-inner { gap: 48px; }
  .experience-list::before { left: 96px; }
  .experience-item { grid-template-columns: 66px 1fr; gap: 44px; }
  .experience-item::before { left: 92px; }
}

@media (max-width: 900px) {
  :root { --header-height: 66px; }
  .site-header { background: rgb(var(--page-bg-rgb) / .88); }
  .nav { min-height: var(--header-height); }
  .nav-main {
    position: absolute;
    top: calc(var(--header-height) - 1px);
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line-color);
    background: var(--page-bg);
    box-shadow: 0 18px 45px rgb(0 0 0 / .14);
  }
  .nav-main.is-open { display: flex; }
  html:not(.js) .nav-main { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  html:not(.js) .nav-link { min-height: 40px; padding-inline: 5px; font-size: 9px; }
  html:not(.js) .menu-button { display: none; }
  .nav-link { min-height: 46px; display: flex; align-items: center; padding-inline: 12px; }
  .nav-link::after { display: none; }
  .menu-button { display: grid; place-items: center; }
  .hero { padding-top: calc(var(--header-height) + 12px); }
  .hero-grid,
  .systems-layout,
  .experience-layout,
  .stack-layout,
  .education-layout,
  .work-showcase-inner { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; align-items: start; gap: 42px; }
  .hero-copy { padding-top: 7vh; }
  .hero-title { max-width: 9.5ch; font-size: clamp(54px, 15vw, 86px); }
  .hero-visual-wrap { min-height: 76vw; max-width: 620px; margin-inline: auto; }
  .hero-visual { width: 88%; }
  .scroll-cue { position: relative; inset: auto; justify-self: center; margin-top: 18px; transform: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item,
  .proof-item:first-child { min-height: 94px; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line-color); }
  .proof-item:last-child { border-bottom: 0; }
  .section-pad { padding-block: 92px; }
  .systems,
  .experience,
  .work,
  .lab,
  .stack { min-height: auto; }
  .systems-intro,
  .architecture,
  .experience-sticky,
  .stack-intro { position: static; }
  .systems-intro h2,
  .experience-sticky h2,
  .stack-intro h2 { max-width: 9ch; }
  .architecture { min-height: auto; margin-top: 20px; padding: 20px 0 0; }
  .architecture-map { grid-template-columns: 1fr; }
  .architecture-node { min-height: 84px; grid-template-columns: 65px 1fr; gap: 12px; padding: 17px 18px; border-top: 1px solid var(--line-color); border-left: 0; }
  .architecture-node:first-child { border-top: 0; }
  .architecture-node p { display: none; }
  .experience-current { display: none; }
  .experience-list::before { left: 11px; }
  .experience-item { grid-template-columns: 1fr; gap: 8px; min-height: auto; padding: 36px 0 36px 42px; }
  .experience-item::before { top: 43px; left: 7px; }
  .experience-date { padding-top: 0; text-align: left; }
  .experience-body { grid-column: 1; }
  .work-intro { padding-bottom: 50px; }
  .work-showcase { position: relative; min-height: auto; }
  .work-showcase-inner { min-height: auto; padding-block: 30px 88px; }
  .work-visual { min-height: 68vw; max-height: 520px; }
  .work-visual-image img { min-height: 68vw; }
  .work-copy h3 { max-width: 10ch; }
  .work-nav { position: relative; right: auto; bottom: auto; left: auto; margin-top: -50px; padding-bottom: 22px; }
  .lab-heading { display: block; }
  .lab-heading p { margin-top: 28px; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-card { min-height: 390px; }
  .lab-preview,
  .lab-preview iframe { min-height: 240px; }
  .stack-row { grid-template-columns: 1fr; gap: 18px; padding-block: 24px; }
  .stack-row:hover { padding-inline: 0; }
  .contact { min-height: 82svh; }
  .contact-panel { min-height: 650px; padding: 34px 24px; }
  .contact-panel h2 { font-size: clamp(54px, 15vw, 88px); }
  .side-index { display: none; }
  .cursor { display: none; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .brand-wordmark { font-size: 17px; }
  .hero-copy { padding-top: 5vh; }
  .hero-title { font-size: clamp(52px, 16vw, 74px); }
  .hero-actions .button,
  .contact-actions .button { width: 100%; }
  .architecture { padding: 22px 18px; }
  .architecture-node { min-height: 66px; padding-left: 16px; }
  .work-fact { grid-template-columns: 76px 1fr; }
}

@media (hover: none), (pointer: coarse) {
  #ambient-canvas { opacity: .38; }
}

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