@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: oklch(11% 0 0);
  --panel: oklch(13% 0 0);
  --ink: oklch(96% 0 0);
  --mute: oklch(72% 0 0);
  --dim: oklch(50% 0 0);
  --line: oklch(23% 0 0);
  --pad: clamp(18px, 3.4vw, 48px);
  --nav: 64px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--mute);
  font: 400 17px/1.5 Geist, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='1' height='1' fill='%23fff'/%3E%3C/svg%3E");
}

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

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 12;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus { transform: none; }

a {
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 var(--dim);
}

a:hover {
  color: var(--bg);
  background: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 6;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  box-shadow: none;
}

.brand:hover {
  color: var(--ink);
  background: none;
  box-shadow: none;
}

.brand img {
  width: 22px;
  height: 22px;
  display: block;
}

.wordmark {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.03em;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--mute);
  box-shadow: none;
  font-size: 14px;
}

nav a:hover { color: var(--bg); }

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  min-height: calc(100dvh - var(--nav));
  padding: 64px var(--pad) 64px;
}

.contour {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 8%, #000 55%);
  -webkit-mask-image: linear-gradient(to right, transparent 8%, #000 55%);
}

.hero-copy {
  max-width: 36rem;
}

h1 {
  margin: 0 0 20px -0.04em;
  color: var(--ink);
  font-size: clamp(72px, 12vw, 168px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.lede {
  margin: 0 0 30px;
  max-width: 34ch;
  font-size: 19px;
  line-height: 1.45;
}

.lede em {
  color: var(--ink);
  font-style: italic;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
  box-shadow: none;
}

.btn:active { transform: translateY(1px); }

.mark-wrap img {
  display: block;
  width: min(34vw, 440px);
  height: auto;
}

/* Work */

.work {
  padding: 88px var(--pad) 96px;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--nav);
}

.work-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin-bottom: 40px;
}

.work h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.work-copy {
  max-width: 34rem;
  padding-top: 6px;
}

.work-copy p {
  margin: 0 0 18px;
  max-width: 52ch;
}

.facts {
  margin: 0;
  color: var(--dim);
}

/* Terminal frame. Background matches the screenshot exactly so the image has no edge. */

.shot {
  --shell: #0c0c0c;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--shell);
}

.shot-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
}

.shot-bar span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-body {
  position: relative;
  padding: 18px 20px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.shot-body::-webkit-scrollbar { display: none; }

.shot-body img {
  display: block;
  width: min(100%, 1024px);
  height: auto;
}

.shot figcaption {
  padding: 12px 16px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line);
  color: var(--dim);
}

.foot-home {
  color: var(--mute);
  box-shadow: none;
}

.foot-home:hover {
  color: var(--bg);
}

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

.foot-links a {
  font-size: 14px;
}

/* 404 */

.lost {
  min-height: calc(100dvh - var(--nav));
  display: grid;
  align-content: center;
  padding: 48px var(--pad) 80px;
  max-width: 40rem;
}

.lost-mark {
  width: 72px;
  height: auto;
  margin-bottom: 22px;
}

.lost h1 {
  margin-bottom: 10px;
  font-size: clamp(48px, 8vw, 96px);
}

.lost p { margin: 0 0 28px; }

/* Motion */

.hero .reveal { opacity: 0; }
html.is-ready .hero-copy { animation: snap-in 420ms steps(4, end) 40ms both; }
html.is-ready .mark-wrap { animation: snap-in 560ms steps(4, end) 140ms both; }

.work .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 480ms steps(4, end), transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.work-copy.reveal { transition-delay: 70ms; }
.shot.reveal { transition-delay: 140ms; }

html:not(.is-ready) .lost > * { opacity: 0; }
html.is-ready .lost > * { animation: snap-in 400ms steps(4, end) var(--d, 0ms) both; }

@keyframes snap-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile */

@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    align-content: space-between;
    padding: 36px var(--pad) 40px;
    gap: 40px;
  }

  .contour {
    mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
  }

  .mark-wrap { order: -1; }

  .mark-wrap img { width: 120px; }

  h1 { font-size: clamp(64px, 20vw, 96px); }

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

  .work { padding: 56px var(--pad) 64px; }

  .work-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }

  .work-copy { padding-top: 0; }

  .shot-body { padding: 14px; }

  /* Keep the text legible: hold the image near native size and let it pan. */
  .shot-body img {
    width: 880px;
    max-width: none;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .hero .reveal,
  .work .reveal,
  html.is-ready .lost > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .btn:active { transform: none; }
}
