:root {
  --ink: #0e0f12;
  --graphite: #17191e;
  --line: #ffffff1a;
  --bone: #ece8df;
  --grey: #b4b7bf;
  --amber: #f2b84b;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --tl-h: calc(56px + 28px + env(safe-area-inset-bottom));
  --edge: max(var(--pad), calc((100vw - 1360px) / 2 + var(--pad)));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--bone);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased; padding-bottom: var(--tl-h);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 200; background: var(--bone); color: var(--ink); padding: 8px 14px; }

/* Top bar */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 6px var(--edge); color: #fff; background: #0e0f12e6; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s; }
body.on-hero .top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
body.on-hero .top-cta { text-shadow: 0 1px 12px #000; }
.brand { transition: opacity .4s; }
body.on-hero .brand { opacity: 0; pointer-events: none; }
.brand { font: 600 1.05rem var(--display); letter-spacing: -.01em; }
.top-cta { font-size: .95rem; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: radial-gradient(120% 90% at 75% 20%, #3a2f1a 0%, var(--graphite) 45%, var(--ink) 100%); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transform: scale(1.04); animation: settle 2.4s var(--ease) forwards; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0e0f1266 0%, #0e0f1200 35%, #0e0f12cc 80%, var(--ink) 100%); }
.hero-inner { position: relative; width: 100%; max-width: 1360px; margin: 0 auto; padding: 120px var(--pad) calc(var(--tl-h) + 20px); }
.hero-role { font-size: 1rem; color: var(--bone); opacity: .8; margin-bottom: 8px; }
.hero-name {
  font: 700 clamp(3.6rem, 15.5vw, 14rem)/.84 var(--display);
  font-variation-settings: "wdth" 82, "opsz" 96;
  letter-spacing: -.015em; overflow: hidden; padding-bottom: .06em;
}
.hero-name span { display: block; transform: translateY(105%); animation: rise 1.1s .15s var(--ease) forwards; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: clamp(20px, 3vw, 36px); padding-top: 20px; border-top: 1px solid var(--line); }
.tagline { max-width: 36ch; font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--bone); }
.reel { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; background: var(--bone); color: var(--ink); font-weight: 500; border-radius: 3px; transition: background .25s, transform .25s var(--ease); }
.reel:hover { background: #fff; transform: translateY(-2px); }
.reel-dot { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.anim { opacity: 0; animation: fadein .9s 1s var(--ease) forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes settle { to { transform: scale(1); } }

/* Blocks */
.block { padding: clamp(72px, 10vw, 140px) 0 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; margin-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
h2 { font: 600 clamp(2rem, 4.5vw, 3.4rem)/1 var(--display); font-variation-settings: "wdth" 80; letter-spacing: -.03em; }
.count { display: flex; gap: 18px; color: var(--grey); font-size: .95rem; font-variant-numeric: tabular-nums; }
.count .in { font-weight: 500; color: var(--amber); }

/* Films */
.video-grid { display: grid; align-items: start; grid-template-columns: 1fr; gap: clamp(28px, 3.5vw, 48px) clamp(16px, 2vw, 28px); }
@media (min-width: 760px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
.video-card { display: block; text-align: left; width: 100%; }
.thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--graphite); border-radius: 3px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: brightness(.88); }
.video-card:hover .thumb img { transform: scale(1.04); filter: brightness(1); }
.play {
  position: absolute; left: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--bone); display: grid; place-items: center; transition: transform .35s var(--ease), background .25s;
}
.play::before { content: ""; margin-left: 3px; border-left: 14px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.video-card:hover .play { transform: scale(1.12); background: var(--amber); }
.vmeta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.vmeta h3 { font: 500 1.2rem/1.25 var(--display); letter-spacing: -.01em; }
.vmeta span { color: var(--grey); font-size: 1rem; white-space: nowrap; }

/* Photographs: contact sheet */
.gallery { columns: 3 300px; column-gap: 8px; }
.gallery button { display: block; position: relative; width: 100%; margin-bottom: 8px; overflow: hidden; break-inside: avoid; background: var(--graphite); }
.gallery img { width: 100%; height: auto; transition: transform .8s var(--ease), filter .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery:hover button:not(:hover) img { filter: brightness(.55); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.about.has-portrait { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.portrait { aspect-ratio: 4/5; background: var(--graphite) center/cover; border-radius: 3px; }
.statement { font: 400 clamp(1.5rem, 3.2vw, 2.4rem)/1.3 var(--display); letter-spacing: -.015em; max-width: 30em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; margin-top: clamp(36px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { color: var(--grey); font-size: 1rem; margin-bottom: 6px; }
.facts dd { font-size: 1.02rem; line-height: 1.5; }

/* Contact */
.contact { padding-bottom: clamp(56px, 8vw, 100px); }
.contact-lead { color: var(--grey); margin-bottom: 14px; }
.mega { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font: 600 clamp(2rem, 7.4vw, 6.4rem)/1 var(--display); font-variation-settings: "wdth" 78; letter-spacing: -.04em; border-bottom: 2px solid var(--bone); padding-bottom: .06em; transition: color .25s, border-color .25s; }
.mega:hover { color: var(--amber); border-color: var(--amber); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4vw, 48px); }
.contact-links a { padding: 12px 20px; border: 1px solid #ffffff33; border-radius: 3px; transition: background .25s, color .25s, border-color .25s; }
.contact-links a:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--grey); font-size: 1rem; }

/* Timeline (navigation + scroll timecode) */
.timeline {
  position: fixed; z-index: 60; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(780px, calc(100% - 24px)); height: 56px; display: flex; align-items: stretch; gap: 14px;
  padding: 6px 8px 6px 16px; background: #17191eed; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 8px; transition: opacity .25s;
}
body.lb-open .timeline { opacity: 0; pointer-events: none; }
.tc { align-self: center; font: 500 .95rem var(--display); font-variant-numeric: tabular-nums; color: var(--amber); min-width: 6.8em; letter-spacing: .02em; }
.track { position: relative; flex: 1; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.clips { display: grid; grid-template-columns: repeat(5, 1fr); height: 100%; }
.clip {
  position: relative; display: flex; align-items: center; min-width: 0; padding: 0 8px;
  font-size: .9rem; color: rgb(236 232 223 / .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 1px solid var(--line); border-top: 2px solid transparent; transition: background .2s, color .2s;
}
.clip:first-child { border-left: 0; }
.clip.past { background: #ffffff0a; }
.clip.active { background: #ffffff14; border-top-color: var(--amber); color: var(--bone); }
.clip:hover { color: var(--bone); background: #ffffff1c; }
.playhead { position: absolute; top: -3px; bottom: -3px; left: 0; width: 2px; margin-left: -1px; background: var(--amber); pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: 0; left: -5px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--amber); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #08090bf2; display: none; place-items: center; }
.lightbox.open { display: grid; animation: fadein .25s forwards; opacity: 0; }
.lb-content { width: min(1180px, 92vw); max-height: 86vh; display: grid; place-items: center; }
.lb-content iframe { width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
.lb-content img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lb-close { position: absolute; top: 14px; right: 22px; font-size: 2.6rem; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 10px 16px; opacity: .65; }
.lb-nav:hover { opacity: 1; }
.lb-nav.prev { left: 6px; } .lb-nav.next { right: 6px; }
.lightbox.single .lb-nav { display: none; }

@media (max-width: 760px) {
  .about.has-portrait { grid-template-columns: 1fr; }
  .tc { font-size: .85rem; min-width: 4.6em; }
  .timeline { gap: 10px; padding: 6px 6px 6px 12px; }
  .clip { padding: 0 6px; }
  .vmeta { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .anim { opacity: 1; } .hero-name span { transform: none; } .hero-img { transform: none; }
}

/* ---- Apple-review pass (remove this block to revert) ---- */
/* 44px minimum tap targets */
.top-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }
.lb-close { min-width: 44px; min-height: 44px; }
.lb-nav { min-width: 44px; min-height: 64px; opacity: .8; }
.contact-links a { display: inline-flex; align-items: center; min-height: 48px; }
/* Contact: first link is the primary action */
.contact-links a:first-child { background: var(--bone); color: var(--ink); border-color: var(--bone); font-weight: 500; }
.contact-links a:first-child:hover { background: var(--amber); border-color: var(--amber); }
/* Hero: stronger shade so name, tagline and button stay legible over the photo */
.hero-shade { background: linear-gradient(180deg, #0e0f1280 0%, #0e0f1226 22%, #0e0f12b3 52%, #0e0f12ee 82%, var(--ink) 100%); }
.hero-name, .tagline, .hero-role { text-shadow: 0 2px 24px #0e0f12b3; }
/* Thumbnails: soft placeholder while YouTube images load (aspect ratio already reserves the space) */
.thumb { background: linear-gradient(135deg, var(--graphite), #20232a); }
/* Visible keyboard focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
/* Timeline hint: whole bar reads as interactive */
.clip { cursor: pointer; }

/* Hero loop fades in over the still once it is actually playing */
.hero-video { opacity: 0; transition: opacity 1s var(--ease); }
.hero-video.on { opacity: 1; }
