:root {
  --bg: #10120e;
  --bg-elev: #171910;
  --cream: #efe8d8;
  --muted: #9a9c8e;
  --lime: #c8f542;
  --lime-ink: #14170c;
  --line: rgba(239, 232, 216, 0.12);
  --danger: #e07a5f;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.btn-lime {
  background: var(--lime);
  color: var(--lime-ink);
}

.btn-lime:hover { filter: brightness(1.05); }

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
}

.btn-ghost:hover { border-color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) 0 4rem;
}

.hero-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elev);
  aspect-ratio: 16 / 10;
}

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

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 1rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38ch;
  margin: 1.25rem 0 1.5rem;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
}

.chip {
  font-family: var(--mono);
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: var(--cream);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.arrow { font-size: 1.1em; line-height: 1; }

section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.work-list {
  display: grid;
  gap: 0;
}

.work-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.work-row:hover .work-title {
  color: var(--lime);
}

.idx {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.8rem;
}

.work-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
}

.work-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.work-go {
  color: var(--lime);
  font-size: 1.4rem;
}

.jobs {
  display: grid;
  gap: 0;
}

.job {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.job time,
.job .when {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.job h3 {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.job .org {
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.job p {
  margin: 0;
  color: var(--cream);
  max-width: 65ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.stat {
  background: var(--bg-elev);
  padding: 1.4rem 1.2rem;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.about-grid p {
  font-size: 1.12rem;
  max-width: 48ch;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--pad) 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.case-hero {
  padding: 3rem 0 1rem;
}

.case-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.95;
  max-width: 14ch;
}

.case-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back:hover { color: var(--cream); }

.shot {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 1.5rem 0 3rem;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.prose {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.25rem 2rem;
  max-width: 860px;
}

.prose h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  padding-top: 0.2rem;
}

.prose p, .prose ul {
  margin: 0 0 2rem;
  color: var(--cream);
}

.prose ul {
  padding-left: 1.1rem;
}

.prose li + li { margin-top: 0.4rem; }

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 3rem;
}

@media (max-width: 860px) {
  .hero,
  .about-grid,
  .job,
  .prose,
  .work-row {
    grid-template-columns: 1fr;
  }

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

  .work-go { display: none; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--pad);
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.25rem;
  }

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

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