:root {
  --swatch-gray-000: #fff;
  --swatch-gray-050: #faf9f5;
  --swatch-gray-100: #f5f4ed;
  --swatch-gray-150: #f0eee6;
  --swatch-gray-200: #e8e6dc;
  --swatch-gray-250: #dedcd1;
  --swatch-gray-300: #d1cfc5;
  --swatch-gray-350: #c2c0b6;
  --swatch-gray-400: #b0aea5;
  --swatch-gray-450: #9c9a92;
  --swatch-gray-500: #87867f;
  --swatch-gray-550: #73726c;
  --swatch-gray-600: #5e5d59;
  --swatch-gray-650: #4d4c48;
  --swatch-gray-700: #3d3d3a;
  --swatch-gray-750: #30302e;
  --swatch-gray-800: #262624;
  --swatch-gray-850: #1f1e1d;
  --swatch-gray-900: #1a1918;
  --swatch-gray-950: #141413;
  --swatch-gray-1000: #000;
  --swatch-oat: #e3dacc;
  --swatch-olive: #788c5d;
  --swatch-cactus: #bcd1ca;
  --swatch-sky: #6a9bcc;
  --swatch-heather: #cbcadb;
  --swatch-fig: #c46686;
  --swatch-coral: #ebcece;
  --swatch-clay: #d97757;
  --swatch-clay-interactive: #c96442;
  --page: var(--swatch-gray-050);
  --surface: var(--swatch-gray-150);
  --surface-strong: var(--swatch-gray-200);
  --ink: var(--swatch-gray-950);
  --ink-soft: var(--swatch-gray-750);
  --muted: var(--swatch-gray-500);
  --line: var(--swatch-gray-300);
  --accent: var(--swatch-clay);
  --accent-active: var(--swatch-clay-interactive);
  --max-width: 1180px;
  --shadow: 0 24px 70px rgb(20 20 19 / 0.14);
  --motion-x: 0px;
  --motion-y: 0px;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

main,
section,
article,
div {
  min-width: 0;
}

p,
h1,
h2,
h3,
a,
span,
strong {
  overflow-wrap: anywhere;
}

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

button {
  border: 0;
  font: inherit;
}

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

.scroll-progress {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 3px;
  background: var(--swatch-clay);
  transform-origin: left center;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  display: flex;
  width: min(calc(100% - 32px), var(--max-width));
  height: 68px;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  color: var(--ink);
  animation: header-in 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.site-header::before {
  position: absolute;
  inset: 8px 0;
  z-index: -1;
  border: 1px solid var(--swatch-gray-250);
  border-radius: 8px;
  background: rgb(250 249 245 / 0.88);
  box-shadow: 0 16px 40px rgb(20 20 19 / 0.1);
  content: "";
}

.brand,
.site-nav,
.nav-toggle {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 18px;
  font-weight: 700;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--swatch-clay);
  box-shadow: 0 0 0 5px var(--swatch-coral);
  animation: soft-pulse 2600ms ease-in-out infinite;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 10px;
}

.site-nav a {
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 12px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--swatch-gray-150);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--swatch-gray-150);
  color: var(--ink);
}

.nav-toggle svg,
.button svg,
.note-item svg,
.project-card svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 86svh;
  align-items: center;
  padding: 112px max(24px, calc((100vw - var(--max-width)) / 2)) 72px;
  overflow: hidden;
  background: var(--page) url("assets/claude-workspace.png") center right / cover no-repeat;
  background-position: calc(100% + var(--motion-x)) calc(50% + var(--motion-y));
  animation: hero-breathe 9000ms ease-in-out infinite;
  isolation: isolate;
}

.tech-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
}

.hero-motion {
  position: absolute;
  top: 22%;
  right: max(24px, calc((100vw - var(--max-width)) / 2));
  display: grid;
  gap: 16px;
  width: min(30vw, 360px);
  pointer-events: none;
  transform: translate3d(calc(var(--motion-x) * -1), calc(var(--motion-y) * -1), 0);
}

.hero-motion span {
  display: block;
  width: 72%;
  height: 16px;
  border-radius: 999px;
  opacity: 0.92;
  transform-origin: left center;
  animation: signal-slide 4200ms cubic-bezier(0.55, 0, 0.15, 1) infinite;
}

.hero-motion span:nth-child(1) {
  justify-self: end;
  background: var(--swatch-clay);
}

.hero-motion span:nth-child(2) {
  width: 84%;
  background: var(--swatch-olive);
  animation-delay: 420ms;
}

.hero-motion span:nth-child(3) {
  width: 62%;
  justify-self: center;
  background: var(--swatch-sky);
  animation-delay: 840ms;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  min-width: 0;
}

.hero-copy > * {
  animation: rise-in 820ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 110ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 220ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 330ms;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-active);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.25rem;
  font-weight: 500;
  line-height: 0.96;
}

.hero-lede {
  max-width: min(620px, 100%);
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 1.25rem;
  word-break: break-word;
}

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

.button {
  --magnet-x: 0px;
  --magnet-y: 0px;
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  font-weight: 700;
  padding: 11px 18px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button::after {
  position: absolute;
  inset: 0;
  background: var(--swatch-coral);
  content: "";
  opacity: 0;
  transform: translateX(-70%) skewX(-16deg);
  transition: opacity 180ms ease;
}

.button:hover::after,
.button:focus-visible::after {
  opacity: 0.24;
  animation: button-sweep 760ms ease;
}

.button > * {
  position: relative;
  z-index: 1;
}

.button:hover,
.button:focus-visible {
  transform: translate(var(--magnet-x), calc(var(--magnet-y) - 1px));
  box-shadow: 0 10px 28px rgb(20 20 19 / 0.12);
}

.button-primary {
  background: var(--accent-active);
  color: var(--page);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent);
}

.button-secondary {
  border-color: var(--line);
  background: rgb(250 249 245 / 0.72);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--swatch-gray-150);
}

.button-dark {
  border-color: var(--swatch-gray-650);
  background: var(--swatch-gray-850);
  color: var(--page);
}

.hero-console {
  width: min(100%, 520px);
  margin-top: 28px;
  border: 1px solid var(--swatch-gray-300);
  border-radius: 8px;
  background: rgb(250 249 245 / 0.82);
  box-shadow: 0 18px 56px rgb(20 20 19 / 0.13);
  overflow: hidden;
}

.console-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--swatch-gray-250);
  background: var(--swatch-gray-100);
  padding: 10px 12px;
}

.console-topline span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.console-topline span:nth-child(1) {
  background: var(--swatch-clay);
}

.console-topline span:nth-child(2) {
  background: var(--swatch-oat);
}

.console-topline span:nth-child(3) {
  background: var(--swatch-olive);
}

.console-topline strong {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-console pre {
  min-height: 70px;
  margin: 0;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 16px;
  white-space: pre-wrap;
}

.prompt {
  color: var(--swatch-clay);
  font-weight: 800;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 3px;
  background: var(--swatch-clay);
  vertical-align: -0.18em;
  animation: caret-blink 920ms steps(1) infinite;
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--swatch-gray-250);
}

.console-metrics span {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.console-metrics span + span {
  border-left: 1px solid var(--swatch-gray-250);
}

.console-metrics strong {
  color: var(--swatch-clay);
  font-size: 1.1rem;
}

[data-tilt] {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

[data-tilt].is-tilting {
  transition-duration: 40ms;
}

.section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 88px 0;
}

.lab-section {
  position: relative;
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.tech-board {
  position: relative;
  display: grid;
  min-height: 420px;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--swatch-gray-700);
  border-radius: 8px;
  background: var(--swatch-gray-950);
  color: var(--page);
  overflow: hidden;
  padding: 28px;
}

.tech-board::before,
.tech-board::after {
  position: absolute;
  inset: auto auto 28px 28px;
  width: 170px;
  height: 170px;
  border: 1px solid var(--swatch-gray-700);
  border-radius: 50%;
  content: "";
  opacity: 0.44;
}

.tech-board::after {
  inset: 32px 32px auto auto;
  width: 120px;
  height: 120px;
  border-color: var(--swatch-clay);
  animation: orbit-pulse 3200ms ease-in-out infinite;
}

.orbit {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid var(--swatch-gray-700);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  position: absolute;
  inset: 14%;
  border: 1px solid var(--swatch-gray-650);
  border-radius: 50%;
  content: "";
}

.orbit::after {
  inset: 29%;
  border-color: var(--swatch-gray-550);
}

.orbit span,
.orbit i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform-origin: -86px 0;
}

.orbit span:nth-child(1) {
  background: var(--swatch-clay);
  animation: orbit-spin 5000ms linear infinite;
}

.orbit span:nth-child(2) {
  background: var(--swatch-sky);
  animation: orbit-spin 7200ms linear infinite reverse;
}

.orbit span:nth-child(3) {
  background: var(--swatch-olive);
  animation: orbit-spin 6400ms linear infinite;
  transform-origin: -52px 0;
}

.orbit i {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border: 1px solid var(--swatch-clay);
  background: var(--swatch-gray-900);
  box-shadow: 0 0 0 12px var(--swatch-gray-850);
  transform-origin: center;
}

.board-copy {
  position: relative;
  z-index: 1;
}

.board-copy p {
  max-width: 420px;
  margin: 0;
  color: var(--swatch-gray-200);
  font-size: 1.18rem;
}

.board-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.board-tags span {
  border: 1px solid var(--swatch-gray-650);
  border-radius: 8px;
  color: var(--swatch-gray-200);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 10px;
}

.pipeline {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--swatch-gray-100);
  overflow: hidden;
  padding: 22px;
}

.pipeline-track {
  position: absolute;
  top: 48px;
  bottom: 48px;
  left: 42px;
  width: 2px;
  background: var(--swatch-gray-300);
}

.pipeline-track::before {
  position: absolute;
  inset: 0;
  background: var(--swatch-clay);
  content: "";
  transform-origin: top;
  animation: pipeline-flow 3800ms ease-in-out infinite;
}

.pipeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--swatch-gray-250);
  border-radius: 8px;
  background: var(--page);
  color: var(--ink);
  font-weight: 800;
  padding: 16px;
  animation: step-glow 3800ms ease-in-out infinite;
}

.pipeline-step:nth-child(3) {
  animation-delay: 300ms;
}

.pipeline-step:nth-child(4) {
  animation-delay: 600ms;
}

.pipeline-step:nth-child(5) {
  animation-delay: 900ms;
}

.pipeline-step svg {
  width: 22px;
  height: 22px;
  color: var(--swatch-clay);
}

.intro-band {
  width: 100%;
  max-width: none;
  background: var(--ink);
  color: var(--page);
  padding: 0;
}

.intro-grid {
  display: grid;
  width: min(calc(100% - 32px), var(--max-width));
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 48px;
  align-items: center;
  margin: 0 auto;
  padding: 48px 0;
}

.intro-grid p {
  margin: 0;
  color: var(--swatch-gray-200);
  font-size: 1.25rem;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--swatch-gray-700);
  border-radius: 8px;
  overflow: hidden;
}

.quick-stats div {
  min-width: 0;
  padding: 22px;
  transform: translateY(0);
  transition: background-color 180ms ease, transform 180ms ease;
}

.quick-stats div:hover {
  background: var(--swatch-gray-900);
  transform: translateY(-2px);
}

.quick-stats div + div {
  border-left: 1px solid var(--swatch-gray-700);
}

.quick-stats strong {
  display: block;
  color: var(--swatch-clay);
  font-size: 2rem;
  line-height: 1;
}

.quick-stats span {
  display: block;
  margin-top: 8px;
  color: var(--swatch-gray-350);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  font-weight: 500;
  line-height: 1.04;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 700;
  padding: 8px 14px;
}

.filter:hover,
.filter:focus-visible,
.filter.is-active {
  border-color: var(--accent-active);
  background: var(--swatch-coral);
  color: var(--ink);
}

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

.project-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--swatch-gray-100);
  overflow: hidden;
  padding: 24px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent-active);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms ease;
}

.project-card:hover {
  border-color: var(--accent-active);
  box-shadow: var(--shadow);
  --lift: -5px;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card.is-hidden {
  display: none;
}

.project-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: dot-breathe 2600ms ease-in-out infinite;
}

.dot-clay {
  background: var(--swatch-clay);
}

.dot-olive {
  background: var(--swatch-olive);
}

.dot-sky {
  background: var(--swatch-sky);
}

.project-card h3 {
  margin: 34px 0 0;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.18;
}

.project-card p {
  margin: 18px 0 28px;
  color: var(--ink-soft);
}

.project-card a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--accent-active);
  font-weight: 800;
}

.notes-section {
  width: 100%;
  max-width: none;
  background: var(--surface);
  padding-right: max(16px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(16px, calc((100vw - var(--max-width)) / 2));
}

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

.note-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 24px;
  gap: 18px;
  align-items: center;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 180ms ease, padding-left 180ms ease;
}

.note-item:hover,
.note-item:focus-visible {
  background: var(--swatch-gray-100);
  padding-left: 10px;
}

.note-item span {
  color: var(--accent-active);
  font-weight: 800;
}

.note-item strong {
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
}

.note-item svg {
  color: var(--muted);
  transition: transform 160ms ease, color 160ms ease;
}

.note-item:hover svg {
  color: var(--accent-active);
  transform: translateX(4px);
}

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

.stack-column {
  min-height: 220px;
  background: var(--page);
  padding: 28px;
  transition: transform 200ms ease, background-color 200ms ease;
}

.stack-column:hover {
  transform: translateY(-4px);
}

.stack-column:nth-child(2) {
  background: var(--swatch-oat);
}

.stack-column:nth-child(3) {
  background: var(--swatch-cactus);
}

.stack-column h3 {
  margin: 0 0 54px;
  color: var(--ink);
  font-size: 1.15rem;
}

.stack-column p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: none;
  background: var(--ink);
  color: var(--page);
  margin-top: 30px;
  padding-right: max(16px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(16px, calc((100vw - var(--max-width)) / 2));
}

.contact-section h2 {
  max-width: 780px;
  color: var(--page);
  white-space: nowrap;
}

.contact-section .eyebrow {
  color: var(--swatch-clay);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.will-reveal {
  opacity: 0;
  transform: translateY(26px);
}

.will-reveal[data-tilt] {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(26px);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.will-reveal.is-visible[data-tilt] {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-breathe {
  0%,
  100% {
    background-size: 100%;
  }

  50% {
    background-size: 104%;
  }
}

@keyframes signal-slide {
  0%,
  100% {
    opacity: 0.34;
    transform: translateX(0) scaleX(0.72);
  }

  45% {
    opacity: 0.92;
    transform: translateX(-28px) scaleX(1);
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px var(--swatch-coral);
  }

  50% {
    box-shadow: 0 0 0 8px var(--swatch-coral);
  }
}

@keyframes dot-breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.28);
  }
}

@keyframes button-sweep {
  from {
    transform: translateX(-80%) skewX(-16deg);
  }

  to {
    transform: translateX(110%) skewX(-16deg);
  }
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg) translateX(86px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(86px) rotate(-360deg);
  }
}

@keyframes orbit-pulse {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.06);
  }
}

@keyframes pipeline-flow {
  0%,
  100% {
    transform: scaleY(0.12);
  }

  55% {
    transform: scaleY(1);
  }
}

@keyframes step-glow {
  0%,
  100% {
    border-color: var(--swatch-gray-250);
    transform: translateX(0);
  }

  50% {
    border-color: var(--swatch-clay);
    transform: translateX(4px);
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: 82svh;
    background-position: calc(64% + var(--motion-x)) calc(50% + var(--motion-y));
  }

  .hero-motion {
    right: -38px;
    width: 260px;
  }

  .hero-console {
    max-width: 460px;
  }

  .lab-grid,
  .tech-board {
    grid-template-columns: 1fr;
  }

  .pipeline {
    min-height: 360px;
  }

  .hero h1 {
    font-size: 4rem;
  }

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

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

  .project-card,
  .stack-column {
    min-height: auto;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    right: 10px;
    left: 10px;
    width: auto;
    transform: none;
    animation-name: header-in-mobile;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--page);
    padding: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 78svh;
    padding: 108px 20px 54px;
    background-position: left center;
    animation: none;
  }

  .hero-motion {
    display: none;
  }

  .tech-canvas {
    opacity: 0.34;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: 3.15rem;
  }

  .hero-copy,
  .hero-lede {
    width: min(100%, 19.5rem);
    max-width: 19.5rem;
  }

  .hero-lede {
    line-break: anywhere;
    word-break: break-all;
  }

  .hero-lede,
  .intro-grid p {
    font-size: 1.08rem;
  }

  .intro-grid p {
    max-width: 19.5rem;
    line-break: anywhere;
    word-break: break-all;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-console {
    width: min(100%, 19.5rem);
    margin-top: 20px;
  }

  .console-metrics {
    grid-template-columns: 1fr;
  }

  .console-metrics span + span {
    border-top: 1px solid var(--swatch-gray-250);
    border-left: 0;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 2.35rem;
  }

  .intro-grid {
    gap: 28px;
    padding: 42px 0;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .lab-grid {
    gap: 14px;
  }

  .tech-board {
    min-height: auto;
    padding: 20px;
  }

  .orbit {
    width: min(100%, 210px);
  }

  .board-copy p {
    font-size: 1rem;
  }

  .pipeline {
    padding: 16px;
  }

  .quick-stats div + div {
    border-top: 1px solid var(--swatch-gray-700);
    border-left: 0;
  }

  .note-item {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 10px;
    min-height: 108px;
  }

  .note-item strong {
    font-size: 1.05rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 0;
  }
}

@keyframes header-in-mobile {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-picker {
  position: relative;
  margin-left: 4px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0 10px;
  transition: background-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: var(--swatch-gray-150);
  color: var(--ink);
}

.lang-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

.lang-chevron {
  transition: transform 200ms ease;
}

.lang-picker.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  min-width: 170px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lang-picker.is-open .lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  border-radius: 6px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  transition: background-color 140ms ease, color 140ms ease;
}

.lang-option:hover {
  background: var(--swatch-gray-150);
  color: var(--ink);
}

.lang-option.is-active {
  color: var(--accent-active);
}


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

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