:root {
  --bg: #0B0B0C;
  --surface: #151517;
  --tile: #1C1C1F;
  --line: #2A2A2D;
  --line-soft: rgba(237, 235, 230, 0.08);
  --text: #EDEBE6;
  --text-2: #D6D4CF;
  --muted: #B5B3AE;
  --quiet: #9A9893;
  --accent: #FF5A1F;
  --sans: 'Gantari', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: 40px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
img, video, iframe { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.quiet { color: var(--quiet); }
.accent { color: var(--accent); }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; }

/* ---------- Pinned nav ---------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.nav-bar {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(11, 11, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-name { font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; min-height: 44px; display: flex; align-items: center; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { min-height: 44px; display: flex; align-items: center; }
.nav-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 4px; background: none; border: 0; color: var(--text); cursor: pointer; }
.menu-btn .icon-close { display: none; }
.site-nav.open .menu-btn .icon-open { display: none; }
.site-nav.open .menu-btn .icon-close { display: block; }
.mobile-menu { display: none; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: 8px; padding-bottom: 28px; }
.mobile-menu a.big { display: block; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid #1F1F22; }
.mobile-menu a.big:last-of-type { border-bottom: 0; }
.mobile-menu .mail { display: flex; align-items: center; min-height: 44px; margin-top: 18px; text-transform: none; color: var(--muted); }
.site-nav.open .mobile-menu { display: block; }

/* ---------- Hero (full-screen reel) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 420px; overflow: hidden; background: var(--surface); }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster { object-fit: cover; }
.hero-video { overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.8s ease; }
.hero-video.ready { opacity: 1; }
/* cover-fit a 16:9 iframe */
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; min-width: 177.78svh; transform: translate(-50%, -50%); border: 0; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(11,11,12,.32) 0%, rgba(11,11,12,0) 60%), linear-gradient(180deg, rgba(11,11,12,0) 75%, rgba(11,11,12,.5) 100%); }
.scroll-cue { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; justify-content: center; width: 64px; height: 48px; color: rgba(237,235,230,.75); animation: cue 2.4s ease-in-out infinite; }
.scroll-cue:hover { color: #fff; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); opacity: .7; } 50% { transform: translate(-50%, 8px); opacity: 1; } }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--text); background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.btn:hover { background: var(--text); color: var(--bg); }

/* centered title over the reel */
.hero-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); pointer-events: none; text-shadow: 0 1px 24px rgba(0,0,0,.35); }
.hero-name { margin: 0; font-size: 38px; line-height: 1; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; }
.hero-tag { margin: 16px 0 0; font-size: 12px; color: rgba(237,235,230,.82); }

/* menu bar stays hidden over the reel, slides in once you scroll past it */
.site-nav { transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s ease; }
.site-nav.over-hero:not(.open) { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.site-nav.over-hero:focus-within { transform: none; opacity: 1; pointer-events: auto; }

/* ---------- Intro ---------- */
.intro { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 140px; padding-bottom: 96px; }
.intro-bio { margin: 0 auto; max-width: 34em; font-size: 21px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.intro-links { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; font-size: 12px; }
.intro-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); }
.intro-links a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.section-head h2, .h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
#work { padding-top: 24px; padding-bottom: 64px; }
.rule { border-top: 1px solid var(--line); padding-top: 56px; }

/* full-bleed project grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); column-gap: 3px; row-gap: 40px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-media { position: relative; overflow: hidden; background: var(--tile); aspect-ratio: 21 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-text { display: flex; flex-direction: column; gap: 6px; padding: 0 20px; }
.card-title { font-size: 18px; font-weight: 500; letter-spacing: -0.005em; line-height: 1.3; }
.card-meta { font-family: var(--mono); font-size: 12px; color: var(--quiet); letter-spacing: 0.04em; }

.special { padding-top: 64px; padding-bottom: 64px; }
.special-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 32px; }
.special-card { display: flex; flex-direction: column; gap: 16px; }
.placeholder { aspect-ratio: 4 / 3; background: var(--tile); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #6F6F73; }
.special-card .t { font-size: 26px; font-weight: 500; letter-spacing: -0.015em; }

.uw-band { padding-top: 32px; padding-bottom: 96px; }
.uw-inner { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.uw-inner .copy { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.uw-inner h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.015em; }
.uw-inner p { margin: 0; color: var(--muted); }

.site-footer { padding-bottom: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer .bio { margin: 0; max-width: 620px; font-size: 20px; color: var(--text-2); }
.site-footer .links { display: flex; flex-direction: column; gap: 10px; text-transform: none; }

/* ---------- Project page ---------- */
.project-head { padding-top: calc(var(--nav-h) + 72px); padding-bottom: 40px; display: grid; gap: 14px; }
.project-head h1 { margin: 0; font-size: 38px; font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; max-width: 18ch; }
.media-stack { display: flex; flex-direction: column; gap: 3px; }
.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-info { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; padding-top: 64px; padding-bottom: 72px; }
.project-info .body p { margin: 0 0 1.1em; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 64ch; }
.credits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--muted); line-height: 1.5; }
.credits li.role { color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.gallery > * { width: 100%; height: auto; background: var(--tile); }
.gallery .wide { grid-column: 1 / -1; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--line); margin-top: 96px; }
.next .t { font-size: 28px; font-weight: 500; letter-spacing: -0.015em; }

/* ---------- Unlock page ---------- */
.unlock { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 24px; }
.unlock form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.unlock h1 { margin: 0; font-size: 38px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; }
.unlock .row { display: flex; gap: 8px; }
.unlock input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; background: var(--surface); border: 1px solid #3A3A3D; color: var(--text); font: inherit; font-size: 16px; }
.unlock button { height: 52px; padding: 0 22px; background: var(--text); color: var(--bg); border: 0; cursor: pointer; }
.unlock .error { color: #FF8A5C; font-size: 15px; margin: 0; }

/* ---------- Reel dialog ---------- */
.reel-dialog { width: min(1280px, 94vw); padding: 0; border: 0; background: #000; color: var(--text); }
.reel-dialog::backdrop { background: rgba(0, 0, 0, 0.88); }
.reel-dialog .close { position: absolute; top: -52px; right: 0; min-height: 44px; background: none; border: 0; color: var(--text); cursor: pointer; }
.reel-dialog[open] { overflow: visible; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; --nav-h: 64px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .intro { min-height: 0; padding-top: 88px; padding-bottom: 88px; }
  .hero-name { font-size: 26px; }
  .hero-tag { font-size: 11px; letter-spacing: 0.05em; }
  .intro-bio { font-size: 18px; }
  .project-head h1 { font-size: 30px; }
  .project-info { grid-template-columns: 1fr; gap: 40px; }
  .project-info .body p { font-size: 17px; }
  .gallery { grid-template-columns: 1fr; }
  .card-text { padding: 0 var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
  html { scroll-behavior: auto; }
  .card-media img { transition: none; }
  .hero-video { display: none; }
  .scroll-cue { animation: none; }
}
