/* All colours, fonts and spacing live here. Change a variable, change it everywhere. */
:root {
  color-scheme: dark;
  --bg: #0a0f1f;
  --surface: #111833;
  --ink: #e9edf8;
  --muted: #97a1bd;
  --line: #1f2a4a;
  --accent: #7ea6ff;
  --accent-soft: #172350;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1040px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 19px; text-decoration: none; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 96px 24px 72px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); max-width: 14ch; letter-spacing: -0.02em; }
.lede { font-size: 20px; color: var(--muted); max-width: 40ch; margin: 24px 0 48px; }
.lede strong { color: var(--ink); font-weight: 600; }
.proof {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.proof li { padding: 18px 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.proof-k { font-size: 13px; color: var(--muted); }
.proof-v { font-weight: 500; font-size: 15px; }

/* Sections */
.section { padding: 72px 24px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { font-size: 36px; }
.section-head p { margin: 0; color: var(--muted); }
.section-head a { color: var(--accent); text-decoration: none; }

/* Work timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.tl-meta { display: flex; flex-direction: column; gap: 6px; }
.tl-tag { align-self: flex-start; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 99px; }
.tl-when { color: var(--muted); font-size: 14px; }
.tl-body h3 { font-size: 24px; }
.role { font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.tl-body p { margin: 10px 0 0; max-width: 62ch; }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media span { font-family: var(--serif); font-size: 28px; color: var(--accent); }
.media-jarvis { background: radial-gradient(circle at 50% 60%, #3b5bdb 0, #1a1f4a 55%, #0d0f22 100%); }
.media-jarvis span { color: #fff; }
.media-game { background: repeating-linear-gradient(45deg, var(--accent-soft) 0 14px, transparent 14px 28px); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 24px; }
.card-body p { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 2px 9px; border-radius: 99px; }
.learn { color: var(--muted); font-size: 15px; }
.learn strong { color: var(--ink); font-weight: 600; }
.more { margin-top: auto; padding-top: 8px; color: var(--accent); text-decoration: none; font-weight: 500; }
.more.muted { color: var(--muted); }
.placeholder { border-style: dashed; }

/* Investing */
.invest { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.invest h3 { font-size: 24px; margin-bottom: 10px; }
.invest p { margin: 0 0 16px; max-width: 52ch; }
.logos-text { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.logos-text li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-weight: 500; }

/* Press */
.press { list-style: none; margin: 0; padding: 0; }
.press a { display: grid; grid-template-columns: 240px 1fr auto; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.press a:hover .title { color: var(--accent); }
.outlet { font-weight: 600; font-size: 15px; }
.title { font-family: var(--serif); font-size: 20px; }
.kind { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

/* Contact */
.contact h2 { font-size: 44px; }
.contact p { color: var(--muted); max-width: 48ch; margin: 16px 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { background: var(--ink); color: var(--bg); text-decoration: none; padding: 12px 22px; border-radius: 99px; font-weight: 500; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; padding: 32px 24px 48px; border-top: 1px solid var(--line); }

/* Phone */
@media (max-width: 760px) {
  .nav nav { gap: 14px; }
  .nav nav a:nth-child(n+4) { display: none; }
  .hero { padding: 56px 16px 48px; }
  .wrap, .section { padding-left: 16px; padding-right: 16px; }
  .proof { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 12px; }
  .cards, .invest { grid-template-columns: 1fr; }
  .press a { grid-template-columns: 1fr; gap: 4px; }
  .foot { flex-direction: column; gap: 6px; }
}

/* Headshot and wide card (added) */
.hero-grid { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: center; }
.headshot { width: 280px; height: 280px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }
.card.wide { grid-column: 1 / -1; flex-direction: row; }
.card.wide .card-media { flex: 0 0 45%; aspect-ratio: auto; min-height: 220px; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .headshot { order: -1; width: 128px; height: 128px; }
  .card.wide { flex-direction: column; }
  .card.wide .card-media { aspect-ratio: 16 / 9; min-height: 0; }
}
