/* ---------- Fonts (self-hosted, no Google request) ---------- */
@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper: #f0f0f0;
  --ink: #0d0d0d;
  --ink-soft: #55585c;
  --night: #16191c;
  --night-2: #25292d;
  --line: rgba(13, 13, 13, .14);
  --line-dark: rgba(255, 255, 255, .16);
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --text: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .98; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.label { font: 500 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50; display: flex; align-items: center; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }
.site-header.is-dark { background: rgba(22, 25, 28, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-solid, .site-header.is-light { background: rgba(240, 240, 240, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { font: 400 19px/1 var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav a { font: 500 13px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; margin-right: -8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; background: var(--paper); color: var(--ink); padding: 8px var(--gutter) 24px; box-shadow: 0 12px 24px rgba(0,0,0,.08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav a { font-size: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .site-header { background: var(--paper); color: var(--ink); }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: var(--header-h); background: var(--night); color: #fff; }
/* Always full browser width. Height = native 2.35:1, capped so the headline stays on the first screen;
   when capped, object-fit: cover trims top/bottom only – never the sides. */
.hero-frame { position: relative; width: 100%; height: clamp(calc(100vw / 2.348 * .55), calc(100svh - var(--header-h) - 260px), calc(100vw / 2.348)); background: var(--night); overflow: hidden; }
.hero-media { display: block; width: 100%; height: 100%; object-fit: cover; animation: hero-in 1.4s ease both; }
.hero-toggle { position: absolute; right: clamp(10px, 2vw, 24px); bottom: clamp(10px, 2vw, 24px); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.3); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: .7; transition: opacity .2s; }
.hero-toggle:hover { opacity: 1; }
.hero-toggle .i-play, .hero-toggle.is-paused .i-pause { display: none; }
.hero-toggle.is-paused .i-play { display: block; }
@media (max-width: 600px) { .hero-toggle { width: 30px; height: 30px; right: 8px; bottom: 8px; } .hero-toggle svg { width: 9px; } }
.hero-text { position: relative; z-index: 1; padding-bottom: clamp(56px, 8vw, 110px); }
.hero h1 { font-size: clamp(40px, 7.4vw, 112px); margin-top: -.62em; }
.hero h1 .boxed { display: inline-block; background: var(--night); padding: .12em .14em 0; margin-left: -.14em; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-top: clamp(20px, 2.4vw, 32px); }
.hero-meta p { margin: 0; max-width: 34ch; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.72); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.scroll-cue i { display: block; width: 1px; height: 40px; background: var(--line-dark); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s infinite; }
@keyframes cue { to { top: 100%; } }
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Intro ---------- */
.intro { padding: clamp(80px, 14vw, 180px) 0; }
.intro .kicker { margin-bottom: 28px; color: var(--ink-soft); }
.intro-lead { font: 400 clamp(21px, 5.2vw, 64px)/1.04 var(--display); text-transform: uppercase; max-width: 1000px; margin-bottom: clamp(32px, 5vw, 56px); }
.intro-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.intro-body p { grid-column: 6 / span 6; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.4; margin: 0; }
.intro-body strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(13,13,13,.12) 0); }
@media (max-width: 860px) { .intro-body p { grid-column: 1 / -1; } }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 24px; padding-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { font-size: clamp(36px, 6vw, 88px); }
.section-head .label { color: var(--ink-soft); white-space: nowrap; }

/* ---------- Work tiles ---------- */
.work { padding-bottom: 0; }
.tiles { list-style: none; margin: 0; padding: 0; }
.tile { position: relative; display: block; height: clamp(320px, 48vw, 720px); overflow: hidden; color: #fff; text-decoration: none; background: var(--night); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.08) 50%, transparent 100%), linear-gradient(0deg, rgba(0,0,0,.4), transparent 45%); transition: opacity .5s; }
.tile-inner { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 3.4vw, 48px) var(--gutter); }
.tile-top { display: flex; justify-content: space-between; gap: 16px; line-height: 1.4; }
.tile-top span:last-child { text-align: right; }
.tile h3 { font-size: clamp(26px, 6.2vw, 96px); max-width: 10.6em; }
.tile-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; font: 500 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.tile-cta svg { transition: transform .35s; }
a.tile:hover img, a.tile:focus-visible img { transform: scale(1.045); }
a.tile:hover .tile-cta svg, a.tile:focus-visible .tile-cta svg { transform: translateX(6px); }
.tile + .tile, li + li .tile { border-top: 1px solid rgba(255,255,255,.06); }
.badge { display: inline-block; border: 1px solid rgba(255,255,255,.7); padding: 8px 12px; }

/* ---------- Reels ---------- */
.reels { background: var(--night); color: #fff; padding: clamp(80px, 10vw, 140px) 0; }
.reels .section-head .label { color: rgba(255,255,255,.6); }
.reels-intro { max-width: 52ch; color: rgba(255,255,255,.78); margin: 0 0 clamp(32px, 4vw, 56px); font-size: 18px; }
.reel-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.reel figcaption { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.4; }
.reel figcaption b { display: block; color: #fff; font-weight: 500; }
.reel { margin: 0; }
@media (max-width: 760px) {
  .reel-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .reel-row::-webkit-scrollbar { display: none; }
  .reel { scroll-snap-align: center; }
}

/* ---------- Video facade (no Vimeo request until click) ---------- */
.video { position: relative; display: block; width: 100%; aspect-ratio: var(--ar, 16 / 9); background: #000; overflow: hidden; border: 0; padding: 0; cursor: pointer; color: #fff; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.video:hover img { transform: scale(1.03); opacity: .85; }
.video-btn { position: absolute; inset: 0; width: 100%; height: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.video .play { position: absolute; left: 50%; top: 50%; width: clamp(64px, 8vw, 96px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; transition: transform .3s; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.video:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video .play svg { width: 30%; margin-left: 8%; }
.video .dur { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.65); padding: 6px 9px; font: 500 12px/1 var(--text); letter-spacing: .06em; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-playing { cursor: default; }
.video-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.reels .video-note { color: rgba(255,255,255,.5); }

/* ---------- Statement ---------- */
.statement { padding: clamp(80px, 12vw, 170px) 0; border-top: 1px solid var(--line); }
.statement .label { color: var(--ink-soft); display: block; margin-bottom: 28px; }
.statement h2 { font-size: clamp(30px, 5.6vw, 84px); max-width: 12em; margin-bottom: clamp(32px, 4vw, 56px); }
.statement-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.statement-body div { grid-column: 6 / span 6; font-size: clamp(18px, 1.6vw, 21px); }
@media (max-width: 860px) { .statement-body div { grid-column: 1 / -1; } }

/* ---------- About ---------- */
.about { background: #e6e6e6; padding: clamp(80px, 10vw, 140px) 0; }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photos { position: relative; padding: 0 12% 18% 0; }
.about-photos .p1 { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-photos .p2 { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border: 6px solid #e6e6e6; }
.about h2 { font-size: clamp(36px, 5vw, 72px); margin-bottom: 28px; }
.about p { font-size: clamp(18px, 1.6vw, 21px); max-width: 44ch; }
.skills { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { border: 1px solid var(--ink); padding: 9px 14px; font: 500 13px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photos { max-width: 520px; } }

/* ---------- Contact ---------- */
.contact { background: var(--night); color: #fff; padding: clamp(90px, 13vw, 180px) 0 clamp(60px, 8vw, 100px); }
.contact .label { color: rgba(255,255,255,.6); display: block; margin-bottom: 28px; }
.contact h2 { font-size: clamp(44px, 9vw, 150px); margin-bottom: clamp(40px, 6vw, 80px); }
.contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.contact-links a { display: block; padding: 28px 0; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contact-links a + a { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--line-dark); }
.contact-links .label { margin-bottom: 12px; }
.contact-links strong { display: block; font: 400 clamp(18px, 2.3vw, 32px)/1.2 var(--display); text-transform: uppercase; white-space: nowrap; transition: opacity .2s; }
.contact-links a:hover strong { opacity: .7; }
@media (max-width: 700px) { .contact-links { grid-template-columns: 1fr; } .contact-links a + a { padding-left: 0; border-left: 0; } .contact-links strong { font-size: clamp(14px, 4.6vw, 28px); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.6); font-size: 14px; padding: 28px 0 36px; border-top: 1px solid var(--line-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Project page ---------- */
.project { padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 clamp(60px, 8vw, 110px); }
.project .back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-soft); margin-bottom: clamp(28px, 4vw, 48px); }
.project .back:hover { color: var(--ink); }
.project .label.type { display: block; color: var(--ink-soft); margin-bottom: 18px; }
.project h1 { font-size: clamp(26px, 7vw, 112px); margin-bottom: clamp(32px, 4vw, 56px); max-width: 11em; }
.project-player { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.project-player.is-tall { max-width: 520px; }
.project-info { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 88px); }
.project-text { grid-column: 1 / span 6; font-size: clamp(18px, 1.6vw, 21px); }
.credits { grid-column: 8 / span 5; }
.credits h2 { font-size: 22px; margin-bottom: 18px; }
.credits dl { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
.credits dt, .credits dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.credits dt { color: var(--ink-soft); padding-right: 20px; white-space: nowrap; }
@media (max-width: 860px) { .project-text, .credits { grid-column: 1 / -1; } }
@media (max-width: 420px) { .credits dl { grid-template-columns: 1fr; } .credits dt { border-bottom: 0; padding-bottom: 0; white-space: normal; } .credits dd { padding-top: 2px; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; background: var(--night); }
.pager a { position: relative; display: block; min-height: clamp(180px, 22vw, 300px); color: #fff; text-decoration: none; overflow: hidden; }
.pager img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .4s, transform 1s cubic-bezier(.2,.7,.2,1); }
.pager a:hover img { opacity: .65; transform: scale(1.04); }
.pager span { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: clamp(20px, 3vw, 40px) var(--gutter); gap: 10px; }
.pager b { font: 400 clamp(20px, 3vw, 40px)/1 var(--display); text-transform: uppercase; }
.pager a + a span { align-items: flex-end; text-align: right; }
.pager a + a { border-left: 1px solid rgba(255,255,255,.1); }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager a + a { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); } }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + clamp(48px, 7vw, 100px)) 0 clamp(80px, 10vw, 140px); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(32px, 7vw, 88px); margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 44px 0 14px; }
.legal h3 { font: 700 17px/1.3 var(--text); text-transform: none; margin: 24px 0 8px; }
.legal p, .legal li { color: #2a2c2f; }
.legal address { font-style: normal; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
