:root {
  --bg: #F4F4F2;
  --fg: #111111;
  --muted: #5E5E5B;
  --ph: #E2E2DF;
  --line: #CFCFCB;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --fg: #EDEDEA;
    --muted: #A3A3A0;
    --ph: #222221;
    --line: #333332;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .6; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 28px; padding-bottom: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.mono {
  width: 44px; height: 44px; border: 1px solid var(--fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; letter-spacing: 1px;
}
.brand-name, .nav, .eyebrow, .btn {
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
}
.nav { display: flex; flex-wrap: wrap; gap: 28px; letter-spacing: 1px; }

/* Placeholder boxes (shown until a photo is added) */
.ph {
  background: var(--ph); color: var(--muted);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; overflow: hidden;
}

/* Hero */
.hero-img { height: min(620px, 70vh); }
.hero-text {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 24px; padding-top: 48px;
}
h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6vw, 72px); line-height: 1.02; max-width: 760px;
}
.lede { margin: 0; max-width: 340px; color: var(--muted); }

/* Sections */
section { padding-top: 120px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 32px;
}
.section-head h2 { margin: 0; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 500; }
.muted { color: var(--muted); }

/* Work grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile .ph { height: 440px; }
.tile.short .ph { height: 340px; }
.tile-meta { display: flex; justify-content: space-between; font-size: 14px; }

/* Films */
.film { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.film-player { flex: 2 1 560px; aspect-ratio: 16 / 9; gap: 14px; }
.film-player iframe { width: 100%; height: 100%; border: 0; }
.film-copy { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.serif-lg { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.12; }

/* Projects */
.card { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card .eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.card-title { font-family: var(--serif); font-size: 32px; line-height: 1.1; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 48px; border-top: 1px solid var(--line); padding-top: 48px; }
.about-photo { flex: 1 1 320px; height: 440px; }
.about-copy { flex: 2 1 480px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.about-copy p.muted { max-width: 560px; margin: 0; }

/* Contact */
.contact { text-align: center; padding-top: 140px; padding-bottom: 120px; }
.contact h2 {
  margin: 0 auto; max-width: 820px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.5vw, 64px); line-height: 1.05;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; margin-top: 36px; padding: 0 32px;
  border: 1px solid var(--fg); letter-spacing: 2px;
}
.btn:hover { background: var(--fg); color: var(--bg); opacity: 1; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--muted);
}
.site-footer .links { display: flex; gap: 24px; }

@media (max-width: 640px) {
  section { padding-top: 80px; }
  .tile .ph, .tile.short .ph { height: 380px; }
  .about-photo { height: 360px; }
}
