/* ─── tokens ───────────────────────────────────────────── */
:root {
  --bg: #FAFAF7;
  --bg-alt: #F2EFE8;
  --fg: #111;
  --muted: #5a5a55;
  --line: #e5e1d6;
  --accent: #B23A2F;
  --accent-hover: #8c2c23;
  --max: 1120px;
  --narrow: 720px;
  --pad-y: clamp(64px, 10vw, 128px);
  --pad-x: 24px;
  --radius: 6px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-head: "Inter", var(--font-body);
}

/* ─── reset-ish ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--fg); text-decoration: none; border-bottom: 1px solid transparent; transition: color 200ms ease, border-color 200ms ease; }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }
button { font: inherit; cursor: pointer; }

/* ─── typography ───────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--fg);
}
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4.2vw, 42px); }
h3 { font-size: 20px; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.lede { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 8px 0 0; }

/* ─── layout ───────────────────────────────────────────── */
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }
.container.narrow { max-width: var(--narrow); }

main > section { padding-block: var(--pad-y); }
.hero + .work { padding-top: clamp(24px, 4vw, 48px); }
.work.alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }

/* ─── header / nav ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav {
  max-width: var(--max);
  margin-inline: auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: none;
}
.brand:hover { color: var(--accent); border: none; }
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.nav-menu a {
  font-size: 14px;
  color: var(--muted);
  border: none;
}
.nav-menu a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fg);
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ─── hero ─────────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 40px); }
.hero-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.hero h1 { margin-bottom: 16px; }
.tagline { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 60ch; margin: 0 0 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--fg);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.btn-secondary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ─── about ────────────────────────────────────────────── */
.about { padding-block: clamp(40px, 6vw, 72px); }
.about p { font-size: clamp(18px, 2vw, 22px); color: var(--fg); line-height: 1.55; margin: 0; }

/* ─── videos ───────────────────────────────────────────── */
.video-grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shorts-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.video { margin: 0; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-frame.vertical { aspect-ratio: 9 / 16; max-width: 100%; }
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── photo subsections + grid ─────────────────────────── */
.photo-subsection + .photo-subsection {
  margin-top: clamp(48px, 6vw, 80px);
}
.sub-head { margin-bottom: clamp(20px, 3vw, 32px); }
.sub-head h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.sub-lede {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  max-width: 60ch;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(12px, 2vw, 20px);
}
.photo {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  transition: transform 200ms ease;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo:hover { transform: translateY(-2px); }
.photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── side projects ────────────────────────────────────── */
.projects-grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--fg);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: #cfc8b6;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  color: var(--fg);
}
.project-shot {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.project-shot img { width: 100%; height: 100%; object-fit: cover; }
.project-meta { padding: 20px 22px 22px; }
.project-meta h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.project-tag {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1;
}
.project-meta p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.project-link {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ─── lightbox ─────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 100;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--bg);
  font-size: 28px;
  line-height: 1;
  padding: 8px;
}

/* ─── contact ──────────────────────────────────────────── */
.contact { text-align: center; }
.contact h2 { margin-bottom: 24px; }
.contact-lines { font-size: 18px; line-height: 2; color: var(--muted); margin: 0; }
.contact-lines a { color: var(--fg); }

/* ─── footer ───────────────────────────────────────────── */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}
.site-footer small { font-size: 13px; }

/* ─── responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
  .shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .headshot { width: 120px; height: 120px; order: -1; }
  .video-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a { display: block; padding: 14px 0; font-size: 16px; }
}
