:root {
  --bg: #07090d;
  --ink: #e8eef6;
  --muted: #9aa8bb;
  --line: rgba(232, 238, 246, 0.12);
  --accent: #7ec8ff;
  --accent-2: #c9b27c;
  --card: #10151c;
  --max: 1100px;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.skip {
  position: absolute; left: -999px;
}
.skip:focus { left: 1rem; top: 1rem; background: #000; padding: .5rem 1rem; z-index: 20; }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .85rem 6vw;
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mark {
  font-weight: 700; letter-spacing: .28em;
  color: var(--ink); text-decoration: none; font-size: .8rem;
}
.nav nav { display: flex; gap: 1.25rem; flex: 1; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav nav a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.15rem; border-radius: 999px;
  text-decoration: none; font-size: .9rem; font-weight: 600;
  border: 1px solid var(--line);
}
.btn.solid { background: var(--accent); color: #071018; border-color: transparent; }
.btn.ghost { color: var(--ink); }

.hero {
  position: relative; min-height: 88vh;
  display: grid; align-items: end;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,13,.25) 0%, rgba(7,9,13,.55) 45%, rgba(7,9,13,.96) 100%);
}
.hero-copy {
  position: relative; z-index: 1;
  padding: 12vh 6vw 8vh;
  max-width: 52rem;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: var(--accent-2); margin: 0 0 .75rem;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.08; font-weight: 500; margin: 0 0 1rem;
}
h1 em { font-style: italic; color: var(--accent); }
.lede, .section-lede { color: var(--muted); font-size: 1.12rem; max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

.strip {
  border-block: 1px solid var(--line);
  padding: .8rem 6vw;
  color: var(--muted); font-size: .88rem; letter-spacing: .04em;
}

.about, .work, .thesis, .hire {
  padding: 5.5rem 6vw;
  max-width: calc(var(--max) + 12vw);
  margin: 0 auto;
}
.about {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) 1fr;
  gap: 3rem;
  align-items: center;
}
.about figure {
  margin: 0;
  width: 100%;
}
.about figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500; margin: 0 0 1rem;
}
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.facts li { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.facts span { color: var(--muted); }

.card {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 2rem; margin-top: 2.5rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.card.reverse { grid-template-columns: 1fr 1.1fr; }
.card.reverse img { order: 2; }
.card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.card > div { padding: 1.6rem 1.6rem 1.8rem; }
.tag { color: var(--accent-2); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; margin: 0 0 .6rem; }
h3 { margin: 0 0 .4rem; font-size: 1.35rem; }
.note { color: var(--muted); font-size: .9rem; }
code { font-size: .88em; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid article {
  padding: 1.3rem 1.35rem 1.4rem;
  border: 1px solid var(--line); background: var(--card); border-radius: 8px;
}
.grid p { color: var(--muted); margin: .4rem 0 0; }

.hire { text-align: left; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 1.25rem; }

footer {
  padding: 2rem 6vw 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}

@media (max-width: 860px) {
  .nav nav { display: none; }
  .about, .card, .card.reverse, .grid, .grid.three {
    grid-template-columns: 1fr;
  }
  .card.reverse img { order: 0; }
  .hero { min-height: 78vh; }
}
