@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f2eee6;
  --bg-elev: #ece7dd;
  --panel: #e9e3d7;
  --panel-2: #e2dbcd;
  --line: rgba(28, 25, 20, 0.13);
  --line-strong: rgba(28, 25, 20, 0.3);
  --text: #1c1914;
  --muted: #5b554b;
  --muted-2: #7d776c;
  --accent: #2c46cf;
  --accent-hover: #1f37b0;
  --accent-soft: rgba(44, 70, 207, 0.1);
  --green: #2f8a52;
  --ink: #141311;
  --on-ink: #efebe2;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --max: 1320px;
  --gutter: clamp(20px, 4.2vw, 56px);
}

/* Dark objects on the paper page: re-scope the tokens inside them. */
.render-frame,
.project-featured-visual,
.project-media,
.media-badge,
.video-toggle {
  --text: #efebe2;
  --muted: #a9a49a;
  --muted-2: #8a857c;
  --line: rgba(239, 235, 226, 0.14);
  --line-strong: rgba(239, 235, 226, 0.28);
  --accent: #8fa2ff;
  --accent-soft: rgba(143, 162, 255, 0.14);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  font-stretch: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("assets/noise.svg");
  opacity: 0.05;
  mix-blend-mode: soft-light;
}

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

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

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

button {
  font: inherit;
  color: inherit;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 90%;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

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

.wrap {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(242, 238, 230, 0);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(242, 238, 230, 0.86);
  border-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: var(--accent);
  color: #f7f4ee;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-role {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link[aria-current="true"] {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link[aria-current="true"]::after {
  width: 100%;
}

.nav-external {
  margin-left: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--text);
}

.nav-external::after {
  display: none;
}

.nav-external:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.menu-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 14px;
}

.menu-bars i {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bars i:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars i:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: clamp(120px, 15vh, 172px) 0 clamp(56px, 7vw, 92px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -12%;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(44, 70, 207, 0.07), transparent 66%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.hero-head {
  position: relative;
  margin-bottom: clamp(38px, 4.6vw, 60px);
  animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy {
  animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}

.hero-visual {
  animation: fade-up 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s both;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 138, 82, 0.14);
}

.eyebrow-sep {
  color: var(--muted-2);
}

.hero h1 {
  margin: 26px 0 0;
  max-width: 15ch;
  font-size: clamp(3.2rem, 8.4vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.hero-break {
  display: none;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  max-width: 54ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.68;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #f7f4ee;
  font-weight: 500;
}

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

.button-ghost {
  background: transparent;
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(28, 25, 20, 0.05);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 46px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.hero-facts dd {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}

.render-frame {
  position: relative;
  border: 1px solid var(--line);
  background: #0c0c0d;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55);
}

.render-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.render-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.rec-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.render-spec {
  white-space: nowrap;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1422;
}

.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.22));
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(244, 241, 234, 0.28);
  background: rgba(8, 8, 8, 0.74);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0.8;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.video-controls {
  position: absolute;
  right: 28px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.video-controls .video-toggle {
  position: static;
}

.video-sound[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.video-toggle:hover {
  opacity: 1;
  border-color: var(--accent);
  background: rgba(8, 8, 8, 0.9);
}

.video-toggle-icon {
  font-size: 10px;
  letter-spacing: -0.08em;
}

.frame-corner {
  position: absolute;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-color: rgba(244, 241, 234, 0.45);
  border-style: solid;
  pointer-events: none;
}

.frame-corner--tl {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}

.frame-corner--tr {
  top: 10px;
  right: 10px;
  border-width: 1px 1px 0 0;
}

.frame-corner--bl {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 1px 1px;
}

.frame-corner--br {
  bottom: 10px;
  right: 10px;
  border-width: 0 1px 1px 0;
}

.timeline {
  --progress: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.timecode {
  flex: 0 0 auto;
  white-space: nowrap;
}

.timeline-track {
  position: relative;
  flex: 1;
  height: 16px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.timeline-fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(var(--progress) * 100%);
  height: 1px;
  background: var(--accent);
  transition: width 0.12s linear;
}

.timeline-head {
  position: absolute;
  top: calc(50% - 4px);
  left: calc(var(--progress) * 100%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(143, 162, 255, 0.18);
  transform: translateX(-50%);
  transition: left 0.12s linear;
}

.timeline-ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(244, 241, 234, 0.24) 0 1px, transparent 1px 10px);
  opacity: 0.55;
}

.render-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.render-meta span {
  white-space: nowrap;
}

.render-meta b {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-weight: 400;
}

.visual-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted-2);
}

.visual-note strong {
  color: var(--text);
  font-weight: 500;
}

.note-mark {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  margin-top: 6px;
  background: var(--accent);
}

.toolchain {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toolchain-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 15px 0;
}

.toolchain-label {
  margin-right: 4px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.toolchain-inner > span:not(.toolchain-label) {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.work,
.about,
.contact {
  padding: clamp(88px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.work {
  border-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 390px);
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(38px, 5vw, 62px);
}

.section-index {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.section-head h2,
.about-intro h2,
.contact h2 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.section-lede {
  max-width: 42ch;
  padding-bottom: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.project-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(28, 25, 20, 0.02), transparent 46%),
    var(--bg-elev);
}

.project-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
}

.project-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.project-kicker span {
  color: var(--project-accent, var(--accent));
}

.project-featured h3 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 5.3vw, 5.1rem);
  line-height: 0.9;
  letter-spacing: -0.058em;
  font-stretch: 87%;
}

.project-tagline {
  max-width: 22ch;
  margin-bottom: 18px;
  font-size: clamp(1.12rem, 1.8vw, 1.48rem);
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--text);
}

.project-body {
  max-width: 53ch;
  font-size: 14px;
  line-height: 1.68;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.facts strong {
  display: block;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.facts span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.project-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.project-featured-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 0%, rgba(143, 162, 255, 0.08), transparent 44%),
    var(--ink);
}

.pipeline {
  display: flex;
  flex-direction: column;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: #101012;
}

.pipeline-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

.pipeline-step strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.pipeline-step div span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted-2);
}

.pipeline-tag {
  padding: 4px 5px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.pipeline-connector {
  height: 16px;
  margin-left: 25px;
  border-left: 1px dashed var(--line-strong);
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070707;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(28, 25, 20, 0.13);
  background: var(--ink);
}

.project-media--ink {
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 36px);
  background:
    radial-gradient(circle at 80% 10%, rgba(143, 162, 255, 0.16), transparent 50%),
    var(--ink);
}

.terminal--card {
  width: 100%;
  max-width: 560px;
}

.ports-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ports-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.ports-list a,
.ports-private {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.ports-private {
  color: var(--muted);
}

.ports-list p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.also {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.also ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 40px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.also a {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

.also a:hover {
  color: var(--accent);
}

.project-body code {
  font-family: var(--mono);
  font-size: 0.86em;
}

.terminal-bar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #363636;
}

.terminal-bar span:first-child {
  background: var(--accent);
}

.terminal-bar em {
  margin-left: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.terminal pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #cfccc5;
}

.t-prompt,
.t-ok {
  color: var(--accent);
}

.t-ok {
  color: var(--green);
}

.t-dim {
  color: var(--muted-2);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.project-card:hover {
  border-color: rgba(28, 25, 20, 0.32);
  background: var(--panel-2);
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.project-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0d0d0e;
}

.span-7 .project-media {
  aspect-ratio: 16 / 9;
}

.span-5 .project-media {
  aspect-ratio: 4 / 3;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.project-card:hover .project-media img {
  transform: scale(1.025);
}

.project-media--clipfactory img {
  object-position: 18% top;
}

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 7px;
  border: 1px solid rgba(244, 241, 234, 0.22);
  background: rgba(8, 8, 8, 0.82);
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 26px;
}

.project-card h3 {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-stretch: 89%;
}

.project-card .project-kicker {
  margin-bottom: 0;
}

.project-card .project-tagline {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.45;
}

.project-card .project-body {
  font-size: 13px;
  line-height: 1.65;
}

.project-card .project-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.tags li {
  padding: 5px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.work-more {
  margin-top: 28px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.work-more a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
}

.work-more a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.about {
  background:
    radial-gradient(circle at 10% 10%, rgba(44, 70, 207, 0.035), transparent 34%),
    var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
  margin-bottom: clamp(48px, 7vw, 80px);
}

.about-quote {
  max-width: 28ch;
  margin-top: 30px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.about-copy p {
  max-width: 60ch;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
}

.about-copy p:first-child {
  font-size: 17px;
  line-height: 1.66;
  color: var(--text);
}

.about-copy p:last-of-type {
  margin-bottom: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.now-grid p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.now-grid strong {
  color: var(--text);
  font-weight: 500;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability {
  padding: 24px 22px 28px;
  border-left: 1px solid var(--line);
}

.capability:first-child {
  padding-left: 0;
  border-left: 0;
}

.capability h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-stretch: 95%;
}

.capability p {
  max-width: 30ch;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: minmax(100px, 0.55fr) repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.principles p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.principles strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.contact {
  background:
    radial-gradient(circle at 82% 20%, rgba(44, 70, 207, 0.07), transparent 42%),
    var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
}

.contact h2 {
  max-width: 11ch;
}

.contact-copy > p {
  max-width: 40ch;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  font-size: clamp(1.28rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.15;
  color: var(--text);
  transition: color 0.2s ease, border-color 0.2s ease;
  overflow-wrap: anywhere;
}

.email-link:hover {
  color: var(--accent);
  border-color: var(--text);
}

.copy-email {
  display: inline-flex;
  margin-top: 18px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.copy-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.copy-email.is-copied {
  color: var(--green);
  border-color: var(--green);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-links a {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.error-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 140px 0 80px;
}

.error-main h1 {
  max-width: 10ch;
  margin: 0 0 24px;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.error-copy {
  max-width: 38ch;
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.footer-inner a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: var(--accent);
}

.footer-note {
  color: var(--muted-2);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html.js .project-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}

html.js .project-grid .reveal:nth-child(3) {
  transition-delay: 160ms;
}

html.js .project-grid .reveal:nth-child(4) {
  transition-delay: 240ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 1080px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .section-lede {
    max-width: 52ch;
  }

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

  .project-featured-visual {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-quote {
    margin-top: 22px;
  }

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

  .capability:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .capability:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .principles > .mono {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-visual {
    width: min(100%, 760px);
  }
}

@media (max-width: 840px) {
  body.menu-open {
    overflow: hidden;
  }

  .header-inner {
    height: 68px;
  }

  .brand-role {
    display: none;
  }

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

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px var(--gutter) 40px;
    overflow-y: auto;
    background: rgba(242, 238, 230, 0.98);
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-link {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: clamp(2.1rem, 8vw, 3.4rem);
    font-weight: 500;
    font-stretch: 90%;
    line-height: 1;
    letter-spacing: -0.045em;
    text-transform: none;
    color: var(--text);
  }

  .site-nav .nav-link::after {
    display: none;
  }

  .site-nav .nav-external {
    margin: 18px 0 0;
    padding: 16px;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .hero {
    padding-top: 122px;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 12vw, 5.8rem);
  }

  .hero-break {
    display: inline;
  }

  .hero-head {
    margin-bottom: 34px;
  }

  .hero-facts {
    gap: 12px;
  }

  .hero-facts dd {
    font-size: 11px;
  }

  .span-7,
  .span-5 {
    grid-column: span 12;
  }

  .span-7 .project-media,
  .span-5 .project-media,
  .project-media {
    aspect-ratio: 16 / 10;
  }

  .work-more {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .eyebrow {
    font-size: 11px;
    gap: 7px;
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 58px;
  }

  .hero h1 {
    margin-top: 22px;
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    padding-inline: 12px;
    font-size: 11px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 34px;
  }

  .hero-facts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(28, 25, 20, 0.08);
  }

  .hero-facts div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hero-facts dd {
    margin: 0;
    text-align: right;
  }

  .render-chrome {
    font-size: 10px;
    padding: 10px 11px;
  }

  .render-spec {
    display: none;
  }

  .render-meta {
    font-size: 10px;
    padding-inline: 11px;
  }

  .timeline {
    font-size: 10px;
    padding-inline: 11px;
  }

  .video-controls {
    right: 22px;
    bottom: 10px;
  }

  .frame-corner {
    width: 12px;
    height: 12px;
  }

  .toolchain-inner {
    gap: 8px 16px;
    padding: 13px 0;
  }

  .toolchain-label {
    width: 100%;
    margin-bottom: 2px;
  }

  .work,
  .about,
  .contact {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2,
  .about-intro h2,
  .contact h2 {
    font-size: clamp(2.2rem, 10.5vw, 3.35rem);
  }

  .project-featured-copy {
    padding: 24px 20px 26px;
  }

  .project-featured h3 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .project-tagline {
    font-size: 1.08rem;
  }

  .facts {
    gap: 10px;
  }

  .facts strong {
    font-size: 1.45rem;
  }

  .project-featured-visual {
    padding: 20px;
  }

  .pipeline-step {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .pipeline-tag {
    display: none;
  }

  .pipeline-connector {
    margin-left: 21px;
  }

  .terminal pre {
    font-size: 11px;
  }

  .project-grid {
    gap: 14px;
    margin-top: 14px;
  }

  .project-card-body {
    padding: 20px 18px 22px;
  }

  .project-card h3 {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
  }

  .project-card .project-tagline {
    font-size: 14px;
  }

  .about-grid {
    margin-bottom: 38px;
  }

  .about-copy p:first-child {
    font-size: 15px;
  }

  .now-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .capability,
  .capability:first-child,
  .capability:nth-child(3) {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .capability:first-child {
    border-top: 0;
  }

  .capability p {
    max-width: 42ch;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
  }

  .principles > .mono {
    grid-column: auto;
  }

  .contact-copy > p {
    font-size: 14px;
  }

  .email-link {
    font-size: clamp(1.2rem, 7vw, 1.9rem);
  }

  .contact-links {
    gap: 14px 18px;
    margin-top: 26px;
  }

  .footer-inner {
    justify-content: flex-start;
    gap: 10px 18px;
  }

  .footer-note {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

.agent-demo {
  margin: 20px 0 0;
}

.agent-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #0b0b0c;
}

.agent-demo figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.timeline-scrub {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.timeline-track:has(.timeline-scrub:focus-visible) .timeline-head {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.timeline.is-scrubbing .timeline-fill,
.timeline.is-scrubbing .timeline-head {
  transition: none;
}
