:root {
  --ink: #14161c;
  --paper: #f2f4f0;
  --paper-deep: #e7eae4;
  --white: #fcfdf9;
  --muted: #626a70;
  --line: #cfd5ce;
  --blue: #3657f3;
  --coral: #ff704d;
  --mint: #a8e7d3;
  --signal: #dfff56;
  --night: #171820;
  --map: #07131e;
  --display: "Avenir Next Condensed", "Arial Narrow", "PingFang SC", sans-serif;
  --body: "Avenir Next", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "Courier New", monospace;
  --radius-xl: 46px;
  --radius-lg: 30px;
  --radius-md: 20px;
  --shadow: 0 30px 80px rgba(20, 22, 28, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 89% 6%, rgba(54, 87, 243, 0.14), transparent 25rem),
    radial-gradient(circle at 7% 22%, rgba(255, 112, 77, 0.09), transparent 22rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(20, 22, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 28, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

a { color: inherit; }

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

button { font: inherit; }

::selection { background: var(--signal); color: var(--ink); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  text-decoration: none;
}

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

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--coral), var(--signal));
}

.section-shell,
.site-header,
.site-footer {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid rgba(20, 22, 28, 0.16);
  background: rgba(242, 244, 240, 0.84);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  width: max-content;
  font: 900 25px/1 var(--display);
  letter-spacing: -0.07em;
  text-decoration: none;
}

.brand span { color: var(--blue); }

.header-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 10px/1 var(--mono);
  letter-spacing: 0.11em;
}

.live-dot,
.stage-live,
.availability i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49b978;
  box-shadow: 0 0 0 6px rgba(73, 185, 120, 0.12);
}

.site-header nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  text-decoration: none;
}

.site-header nav a:not(.nav-github)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-github {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding-block: 44px 60px;
  border-bottom: 1px solid var(--line);
}

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

.eyebrow {
  margin: 0;
  color: var(--muted);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin: 28px 0 34px;
  font: 750 clamp(55px, 6vw, 102px) / 0.9 var(--display);
  letter-spacing: -0.075em;
}

.marked {
  position: relative;
  display: inline-block;
  z-index: 0;
  white-space: nowrap;
}

.marked::after {
  position: absolute;
  right: -0.02em;
  bottom: 0.02em;
  left: 0.01em;
  z-index: -1;
  height: 0.16em;
  border-radius: 999px;
  content: "";
  background: var(--signal);
  transform: rotate(-1.5deg);
}

.hero-lead {
  max-width: 710px;
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.68;
  letter-spacing: -0.02em;
}

.hero-actions,
.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions { margin-top: 36px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button-dark { background: var(--ink); color: white; }
.button-dark:hover { box-shadow: 0 12px 30px rgba(20, 22, 28, 0.18); }
.button-ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.5); }
.button-light { background: var(--signal); color: var(--ink); }
.button-map { background: #63efc0; color: var(--map); }
.button-race { background: #ffdf4f; color: #111820; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}

.hero-proof span,
.proof-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  font: 10px/1.1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orbit-showcase {
  position: relative;
  justify-self: end;
  width: min(620px, 100%);
  aspect-ratio: 1;
}

.orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit-lines circle,
.orbit-lines path {
  fill: none;
  stroke: rgba(20, 22, 28, 0.2);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.orbit-lines > circle:first-child { stroke-dasharray: none; }

.orbit-lines .signal {
  fill: var(--signal);
  stroke: var(--ink);
  stroke-width: 2;
}

.showreel-core {
  position: absolute;
  top: 11%;
  left: 18.5%;
  z-index: 3;
  width: 63%;
  min-height: 78%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background: var(--night);
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.showreel-bar,
.stage-toolbar,
.stage-status,
.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font: 9px/1 var(--mono);
  letter-spacing: 0.1em;
}

.showreel-bar { height: 42px; padding: 0 16px; color: #b8bcc6; }
.showreel-bar span:first-child { display: flex; align-items: center; gap: 7px; }
.showreel-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal); }

.media-stack {
  position: relative;
  height: 275px;
  background: #080a0f;
  overflow: hidden;
}

.media-pane {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 450ms ease, transform 700ms cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}

.media-pane.is-active { opacity: 1; transform: scale(1); }

.media-pane img,
.media-pane video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-media video { object-position: center 64%; }

.reel-caption { min-height: 144px; padding: 20px 21px 22px; }
.reel-caption p:first-child { margin: 0 0 10px; color: var(--mint); font: 9px/1.3 var(--mono); letter-spacing: 0.1em; }
.reel-caption h2 { margin: 0; font: 650 24px/1.1 var(--display); letter-spacing: -0.04em; }
.reel-caption p:last-child { margin: 12px 0 0; color: #aeb3bd; font-size: 11px; line-height: 1.5; }

.media-control {
  position: absolute;
  top: 54px;
  right: 12px;
  z-index: 5;
  min-width: 62px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.66);
  color: white;
  cursor: pointer;
  font: 9px/1 var(--mono);
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.orbit-node {
  position: absolute;
  z-index: 4;
  width: 158px;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(252, 253, 249, 0.88);
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 22, 28, 0.06);
  transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  backdrop-filter: blur(12px);
}

.orbit-node:hover { transform: translateY(-4px); }
.orbit-node.is-active { background: var(--ink); color: white; box-shadow: 0 16px 36px rgba(20, 22, 28, 0.2); }
.orbit-node span { display: block; margin-bottom: 6px; color: var(--muted); font: 9px/1 var(--mono); letter-spacing: 0.1em; }
.orbit-node.is-active span { color: var(--signal); }
.orbit-node strong { font-size: 14px; }
.node-learn { top: 8%; left: -2%; }
.node-play { top: 7%; right: -2%; }
.node-accompany { bottom: 0; left: -3%; }
.node-see { right: -2%; bottom: 0; }

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font: 9px/1 var(--mono);
  letter-spacing: 0.14em;
}

.scroll-cue span { position: relative; width: 48px; height: 1px; background: var(--line); overflow: hidden; }
.scroll-cue span::after { position: absolute; inset: 0; content: ""; background: var(--ink); transform: translateX(-100%); animation: scan 2s ease-in-out infinite; }

.practice-intro { padding-block: clamp(90px, 10vw, 160px); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(200px, 0.58fr) minmax(500px, 1.2fr) minmax(250px, 0.62fr);
  gap: 40px;
  align-items: start;
}

.section-heading h2,
.work-header h2,
.contact h2 {
  margin: 0;
  font: 680 clamp(42px, 6vw, 88px) / 0.98 var(--display);
  letter-spacing: -0.06em;
}

.section-heading > p:last-child,
.work-header > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.build-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.build-loop li {
  position: relative;
  min-height: 230px;
  border-right: 1px solid var(--line);
  padding: 22px 24px 30px 0;
}

.build-loop li:not(:first-child) { padding-left: 24px; }
.build-loop li:last-child { border-right: 0; }
.build-loop li::before { position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border: 2px solid var(--paper); border-radius: 50%; content: ""; background: var(--blue); }
.build-loop li:not(:first-child)::before { left: 24px; }
.build-loop li:nth-child(2)::before { background: var(--coral); }
.build-loop li:nth-child(3)::before { background: var(--mint); }
.build-loop li:nth-child(4)::before { background: var(--signal); }
.build-loop span { color: var(--muted); font: 10px/1 var(--mono); }
.build-loop strong { display: block; margin-top: 70px; font: 650 27px/1 var(--display); }
.build-loop p { max-width: 250px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.work { padding-bottom: 120px; }

.work-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: end;
  padding: 80px 0 52px;
  border-top: 1px solid var(--line);
}

.work-header .eyebrow { margin-bottom: 22px; }
.work-header > p { max-width: 500px; justify-self: end; }

.case-study { margin-bottom: 56px; }

.case-pet {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 84px);
  min-height: 880px;
  border-radius: var(--radius-xl);
  background: var(--night);
  color: white;
  padding: clamp(34px, 5vw, 76px);
  overflow: hidden;
}

.case-copy { align-self: center; }

.case-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font: 9px/1.4 var(--mono);
  letter-spacing: 0.1em;
}

.case-pet .case-topline { color: #aeb3bd; }

.case-copy h3 {
  margin: 28px 0 12px;
  font: 700 clamp(56px, 6vw, 94px) / 0.9 var(--display);
  letter-spacing: -0.065em;
}

.case-thesis {
  margin: 0;
  font: 600 clamp(26px, 3vw, 43px) / 1.1 var(--display);
  letter-spacing: -0.045em;
}

.case-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: #bbc0c9;
  font-size: 16px;
  line-height: 1.78;
}

.evidence-list { margin: 34px 0 0; }
.evidence-list > div { display: grid; grid-template-columns: 82px 1fr; gap: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 15px 0; }
.evidence-list dt { color: var(--mint); font: 9px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.evidence-list dd { margin: 0; color: #d1d4db; font-size: 13px; line-height: 1.65; }

.proof-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.case-pet .proof-chips span { border-color: rgba(255, 255, 255, 0.18); color: #b9bec7; }
.case-actions { margin-top: 30px; }
.text-link { font-size: 12px; text-underline-offset: 5px; }

.pet-evidence {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 730px;
}

.phone-frame {
  position: relative;
  align-self: center;
  grid-row: 1 / 3;
  aspect-ratio: 9 / 17;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 34px;
  background: #0d0e13;
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.phone-top { height: 30px; padding: 0 8px; color: #8e939e; }
.phone-top span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.phone-frame video { width: 100%; height: calc(100% - 30px); border-radius: 25px; object-fit: cover; }
.media-control-light { top: 54px; }

.evidence-card {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #25262f;
  overflow: hidden;
}

.evidence-card img { width: 100%; height: 68%; object-fit: cover; object-position: top; }
.matting-card img { object-fit: contain; background: #f0eeea; }
.evidence-card figcaption { padding: 15px; color: #c6cad1; font-size: 11px; line-height: 1.55; }
.evidence-card figcaption span { display: block; margin-bottom: 6px; color: var(--coral); font: 9px/1 var(--mono); }
.panel-card img { object-fit: cover; object-position: top center; }

.case-sentinel {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(420px, 0.84fr);
  gap: clamp(40px, 5vw, 84px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(252, 253, 249, 0.72);
  padding: clamp(26px, 4vw, 58px);
  overflow: hidden;
}

.sentinel-stage {
  position: relative;
  align-self: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid #20354a;
  border-radius: 30px;
  background: var(--map);
  color: white;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(7, 19, 30, 0.22);
}

.stage-toolbar { height: 50px; padding: 0 17px; color: #87a0b6; }
.stage-toolbar > div:first-child { display: flex; align-items: center; gap: 9px; }
.stage-live { background: #63efc0; box-shadow: 0 0 0 5px rgba(99, 239, 192, 0.1); }
.view-switch { display: flex; gap: 4px; }
.view-switch button { min-width: 44px; min-height: 44px; border: 1px solid #27425a; border-radius: 999px; background: transparent; color: #8da3b5; cursor: pointer; font: 9px/1 var(--mono); }
.view-switch button.is-active { background: #63efc0; border-color: #63efc0; color: var(--map); }

.map-frames { position: absolute; inset: 50px 0 45px; background: #030a11; overflow: hidden; }
.map-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity 500ms ease, transform 850ms ease; }
.map-frames img.is-active { opacity: 1; transform: scale(1); }
.stage-status { position: absolute; right: 0; bottom: 0; left: 0; height: 45px; padding: 0 17px; color: #6d879b; }
.stage-status span:first-child { color: #63efc0; }

.case-sentinel .case-copy h3 { font-size: clamp(48px, 5vw, 78px); }
.case-sentinel .case-thesis { font-size: clamp(25px, 2.7vw, 40px); }
.case-sentinel .case-summary { color: var(--muted); }

.benchmark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--line);
}

.benchmark-grid div { min-height: 112px; background: var(--white); padding: 16px; }
.benchmark-grid strong { display: block; color: var(--blue); font: 700 22px/1 var(--display); }
.benchmark-grid span { display: block; margin-top: 10px; color: var(--muted); font: 9px/1.55 var(--mono); text-transform: uppercase; }

.architecture-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 20px; }
.architecture-flow span { border-radius: 8px; background: var(--ink); color: white; padding: 8px 9px; font: 8px/1 var(--mono); }
.architecture-flow i { color: var(--muted); font-style: normal; }
.case-boundary { margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.private-note { color: var(--muted); font: 9px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

.experiments { padding-top: 90px; }
.experiments-head { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 40px; align-items: start; margin-bottom: 36px; }
.experiments-head h3 { margin: 0; font: 680 clamp(38px, 5vw, 72px) / 1 var(--display); letter-spacing: -0.055em; }
.experiment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.experiment-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(252, 253, 249, 0.78); overflow: hidden; }
.experiment-media { position: relative; aspect-ratio: 16 / 10; background: #080b12; overflow: hidden; }
.experiment-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 350ms ease, transform 700ms ease; }
.experiment-card:hover .experiment-media > img { transform: scale(1.025); }
.mce-media > img { opacity: 0; }
.mce-media > img.is-active { opacity: 1; }
.media-tabs { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 5px; border-radius: 999px; background: rgba(6, 8, 13, 0.72); padding: 4px; backdrop-filter: blur(10px); }
.media-tabs button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: #c9ced8; padding: 8px 12px; cursor: pointer; font-size: 10px; }
.media-tabs button.is-active { background: white; color: var(--ink); }

.race-hud { position: absolute; right: 20px; bottom: 18px; left: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #8ceeff; font: 9px/1 var(--mono); text-shadow: 0 0 12px #19a7c8; }
.race-hud b { color: #ffdf4f; }
.experiment-copy { padding: 28px; }
.experiment-copy h4 { margin: 22px 0 8px; font: 700 40px/1 var(--display); letter-spacing: -0.05em; }
.experiment-thesis { margin: 0; font-size: 19px !important; font-weight: 650; color: var(--ink) !important; }
.experiment-copy > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.experiment-copy ul { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.experiment-copy li { border-bottom: 1px solid var(--line); padding: 10px 0; color: var(--muted); font: 9px/1.3 var(--mono); text-transform: uppercase; }

.compounding {
  padding-block: 110px;
  border-top: 1px solid var(--line);
}

.compounding .section-heading { grid-template-columns: 0.65fr 1.35fr; }
.skill-chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 70px; }
.skill-chain article { min-height: 260px; border-top: 2px solid var(--ink); background: rgba(252, 253, 249, 0.66); padding: 24px 20px; }
.skill-chain article:nth-of-type(1) { border-color: var(--blue); }
.skill-chain article:nth-of-type(2) { border-color: var(--coral); }
.skill-chain article:nth-of-type(3) { border-color: #4fbf9b; }
.skill-chain article:nth-of-type(4) { border-color: var(--ink); }
.skill-chain > i { align-self: center; color: var(--muted); font-style: normal; }
.skill-chain article > span { color: var(--muted); font: 9px/1 var(--mono); letter-spacing: 0.1em; }
.skill-chain h3 { margin: 42px 0 12px; font: 650 25px/1 var(--display); }
.skill-chain p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.skill-chain strong { display: block; margin-top: 24px; font-size: 11px; line-height: 1.5; }

.build-log { display: grid; grid-template-columns: 0.7fr 1fr; margin-top: 96px; border-top: 1px solid var(--ink); }
.build-log-title { grid-row: 1 / 4; border-right: 1px solid var(--line); padding: 28px 40px 0 0; }
.build-log-title span { font: 10px/1 var(--mono); letter-spacing: 0.1em; }
.build-log-title p { max-width: 300px; margin-top: 20px; color: var(--muted); line-height: 1.7; }
.build-log article { display: grid; grid-template-columns: 90px 1fr; gap: 24px; border-bottom: 1px solid var(--line); padding: 26px 0 26px 38px; }
.build-log time { color: var(--blue); font: 10px/1 var(--mono); }
.build-log h3 { margin: 0; font: 650 21px/1.1 var(--display); }
.build-log article p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.contact {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 70px;
  align-items: end;
  border-radius: var(--radius-xl);
  background: var(--blue);
  color: white;
  padding: clamp(38px, 7vw, 100px);
  overflow: hidden;
}

.contact .eyebrow { color: #c9d1ff; }
.contact h2 { margin-top: 24px; font-size: clamp(48px, 7vw, 98px); }
.contact-main > p:not(.eyebrow) { max-width: 680px; color: #d9deff; font-size: 16px; line-height: 1.75; }
.contact-mail { display: inline-flex; justify-content: space-between; gap: 40px; width: min(100%, 620px); margin-top: 32px; border-bottom: 2px solid var(--signal); padding: 0 0 14px; font: 650 clamp(18px, 2.4vw, 33px) / 1 var(--display); text-decoration: none; }
.contact-mail span { color: var(--signal); }
.contact-aside { border-top: 1px solid rgba(255, 255, 255, 0.45); padding-top: 22px; }
.contact-aside > span { color: #c9d1ff; font: 10px/1 var(--mono); letter-spacing: 0.1em; }
.contact-aside ul { margin: 30px 0 40px; padding: 0; list-style: none; }
.contact-aside li { border-bottom: 1px solid rgba(255, 255, 255, 0.18); padding: 14px 0; font-size: 13px; }
.availability { display: flex; align-items: flex-start; gap: 14px; color: #d9deff; font: 10px/1.6 var(--mono); text-transform: uppercase; }
.availability i { flex: 0 0 auto; margin-top: 4px; background: var(--signal); box-shadow: 0 0 0 6px rgba(223, 255, 86, 0.12); }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  min-height: 170px;
  padding-block: 42px;
}

.site-footer > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.site-footer strong { font: 850 28px/1 var(--display); letter-spacing: -0.06em; }
.site-footer > div:first-child span { color: var(--muted); font: 9px/1 var(--mono); letter-spacing: 0.08em; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; color: var(--muted); font: 10px/1 var(--mono); }
.footer-meta a { text-underline-offset: 4px; }
.visit-mini em { font-style: normal; opacity: 0.7; }

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

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

@keyframes scan {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

@media (max-width: 1240px) {
  .hero { grid-template-columns: 1fr 520px; }
  .orbit-showcase { width: 540px; }
  .orbit-node { width: 145px; }
  .node-learn, .node-accompany { left: -1%; }
  .node-play, .node-see { right: -1%; }
  .case-pet { grid-template-columns: 0.85fr 1.15fr; }
  .pet-evidence { grid-template-columns: 1fr 1fr; }
  .case-sentinel { grid-template-columns: 1fr; }
  .sentinel-stage { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr 1fr; }
  .header-note { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-top: 30px; }
  .orbit-showcase { justify-self: center; width: min(660px, 92vw); margin-top: 24px; }
  .scroll-cue { display: none; }
  .section-heading { grid-template-columns: 1fr 2fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .case-pet { grid-template-columns: 1fr; }
  .case-pet .case-copy { max-width: 780px; }
  .pet-evidence { min-height: 760px; }
  .experiment-grid { grid-template-columns: 1fr; }
  .experiment-card { display: grid; grid-template-columns: 1.1fr 0.9fr; }
  .experiment-media { aspect-ratio: auto; min-height: 480px; }
  .skill-chain { grid-template-columns: 1fr 1fr; }
  .skill-chain > i { display: none; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section-shell,
  .site-header,
  .site-footer { width: min(100% - 32px, 1440px); }

  .site-header { min-height: 64px; }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: 12px; }
  .site-header nav a:nth-child(2),
  .nav-github { display: none; }

  .hero { padding-block: 34px 64px; }
  .hero h1 { margin-top: 22px; font-size: clamp(52px, 15vw, 88px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { min-height: 50px; }
  .hero-proof { display: none; }

  .orbit-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    aspect-ratio: auto;
  }
  .orbit-lines { display: none; }
  .showreel-core { position: relative; top: auto; left: auto; grid-column: 1 / 3; grid-row: 2; width: 100%; min-height: 500px; border-radius: 26px; }
  .orbit-node { position: static; width: 100%; min-height: 64px; }
  .node-learn, .node-play { grid-row: 1; }
  .node-accompany, .node-see { grid-row: 3; }
  .media-stack { height: 300px; }

  .practice-intro { padding-block: 92px; }
  .section-heading,
  .work-header,
  .experiments-head,
  .compounding .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-heading > p:last-child { grid-column: auto; }
  .section-heading h2,
  .work-header h2 { font-size: 47px; }
  .build-loop { grid-template-columns: 1fr 1fr; }
  .build-loop li:nth-child(2) { border-right: 0; }
  .build-loop li:nth-child(3),
  .build-loop li:nth-child(4) { border-top: 1px solid var(--line); }

  .work-header { gap: 28px; padding-top: 70px; }
  .work-header > p { justify-self: start; }
  .case-pet,
  .case-sentinel { margin-inline: -8px; border-radius: 30px; padding: 30px 22px; }
  .case-copy h3 { font-size: 58px; }
  .case-thesis { font-size: 29px; }
  .pet-evidence { grid-template-columns: 1fr; grid-template-rows: 660px auto auto; min-height: 0; }
  .phone-frame { grid-row: auto; }
  .evidence-card { min-height: 360px; }
  .sentinel-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .map-frames img { object-fit: cover; object-position: center; }
  .stage-status span:last-child { display: none; }
  .benchmark-grid { grid-template-columns: 1fr 1fr; }
  .benchmark-grid div { min-height: 120px; }

  .experiments { padding-top: 70px; }
  .experiment-card { display: block; }
  .experiment-media { min-height: 300px; }
  .experiment-copy { padding: 24px 20px 28px; }
  .skill-chain { grid-template-columns: 1fr; }
  .skill-chain article { min-height: 210px; }
  .build-log { grid-template-columns: 1fr; }
  .build-log-title { grid-row: auto; border-right: 0; padding: 24px 0 30px; }
  .build-log article { grid-template-columns: 65px 1fr; padding-left: 0; }

  .contact { margin-inline: 16px; width: calc(100% - 32px); border-radius: 30px; padding: 44px 26px; }
  .contact h2 { font-size: 51px; }
  .contact-mail { gap: 14px; font-size: 17px; }
  .site-footer { align-items: flex-start; flex-direction: column; min-height: 210px; }
  .footer-meta { justify-content: flex-start; }
}

@media (max-width: 470px) {
  .hero h1 { font-size: 50px; }
  .showreel-core { min-height: 470px; }
  .media-stack { height: 272px; }
  .reel-caption h2 { font-size: 21px; }
  .orbit-node { padding-inline: 11px; }
  .orbit-node strong { font-size: 12px; }
  .build-loop { grid-template-columns: 1fr; }
  .build-loop li, .build-loop li:not(:first-child) { min-height: 180px; border-right: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .build-loop li:not(:first-child)::before { left: 0; }
  .build-loop strong { margin-top: 45px; }
  .pet-evidence { grid-template-rows: 590px auto auto; }
  .benchmark-grid { grid-template-columns: 1fr; }
  .architecture-flow i { display: none; }
  .architecture-flow span { width: 100%; text-align: center; }
  .experiment-media { min-height: 245px; }
}

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