:root {
  --bg: #f7f4ee;
  --fg: #1c1b19;
  --muted: #7d786f;
  --line: #e3ddd2;
  --card: #ebe6dc;
  --radius: 4px;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s;
}
.has-hero .nav:not(.solid) {
  color: #fff;
  background: linear-gradient(rgba(0,0,0,.4), transparent);
}
.nav.solid {
  background: rgba(247,244,238,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-name { font-weight: 500; letter-spacing: .01em; }
.nav-links { display: flex; gap: 28px; font-size: 13px; }
.nav-links a { opacity: .7; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 72vh;
  min-height: 420px;
  display: flex; align-items: flex-end;
  padding: 0 var(--pad) clamp(48px, 9vh, 96px);
  overflow: hidden;
}
.has-hero .hero { height: 100vh; height: 100svh; color: #fff; background: #111; }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-shade { display: none; }
.has-hero .hero-shade {
  display: block;
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.15) 100%);
}
.hero-text { position: relative; max-width: 900px; }
.hero h1 {
  font-size: clamp(40px, 8vw, 104px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -0.03em;
}
.hero p {
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--muted);
}
.has-hero .hero p { color: rgba(255,255,255,.8); }
.hero-down {
  position: absolute; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  opacity: .5;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  max-width: 1000px;
  padding: clamp(64px, 10vw, 120px) var(--pad);
}
.about-photo {
  width: 160px; aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo.initials {
  display: grid; place-items: center;
  font-size: 44px; font-weight: 300; color: var(--muted);
}
.about h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.about-meta { color: var(--muted); margin-top: 4px; font-size: 14px; }
.about-bio { margin-top: 20px; white-space: pre-line; max-width: 62ch; color: #3d3a35; }
.about-links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-links a {
  display: inline-block;
  font-size: 13px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.about-links a:hover { border-color: var(--fg); }

/* ---------- Showreel ---------- */
.reel { padding: 0 var(--pad) clamp(64px, 10vw, 120px); }
.reel-player {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.reel-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ---------- Sections ---------- */
.cat {
  padding: 48px var(--pad) 56px;
  border-top: 1px solid var(--line);
}
.grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 24px;
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease, filter .3s ease;
}
.play {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%) scale(.9);
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s, transform .25s;
}
.play::after {
  content: ""; position: absolute; left: 21px; top: 17px;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.grid a:hover .thumb img { transform: scale(1.04); filter: brightness(.88); }
.grid a:hover .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dur {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 12px; font-variant-numeric: tabular-nums;
  padding: 1px 6px; border-radius: 3px;
}
.title { display: block; margin-top: 12px; font-size: 14px; line-height: 1.4; font-weight: 500; }
.date { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

.empty { color: var(--muted); padding: 40px 0; }
.empty.wrap { padding: 40px var(--pad); }

.foot {
  padding: 40px var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Modal (stays dark: better for watching) ---------- */
.modal {
  border: 0; padding: 0;
  max-width: none; max-height: none;
  width: 100vw; height: 100vh;
  background: rgba(10,10,10,.96);
  color: #f2f2f2;
}
.modal::backdrop { background: rgba(0,0,0,.6); }
.modal[open] { display: grid; place-items: center; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-inner { width: min(1280px, 92vw); }
.modal-inner video { display: block; width: 100%; max-height: 80vh; background: #000; border-radius: var(--radius); }
.modal-title { margin-top: 14px; font-size: 15px; }
.modal-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: 0; color: inherit;
  cursor: pointer; opacity: .7; padding: 6px;
}
.modal-close:hover { opacity: 1; }

/* ---------- Single video page (/v/...) ---------- */
.watch { max-width: 1200px; margin: 0 auto; padding: 32px var(--pad) 64px; }
.back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.back:hover { color: var(--fg); }
.player { background: #000; border-radius: var(--radius); overflow: hidden; }
.player video { display: block; width: 100%; max-height: 80vh; background: #000; }
.watch h1 { font-size: 20px; font-weight: 500; margin-top: 20px; }
.desc { color: var(--muted); margin-top: 8px; max-width: 70ch; white-space: pre-line; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav-links { gap: 18px; }
  .nav-links a[href="#about"] { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-photo { width: 112px; }
}
