@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url(fonts/inter-tight-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url(fonts/inter-tight-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url(fonts/inter-tight-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #fff;
  --fg: #0e0e0d;
  --muted: #8a8a8a;
  --gutter: clamp(16px, 1.9vw, 28px);
  --gap: clamp(56px, 9vw, 140px);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.4;
       -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
img, video { display: block; width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center;
       padding: 18px var(--gutter); background: var(--bg); font-size: 13px; font-weight: 500;
       letter-spacing: .04em; text-transform: uppercase; }
.logo { font-weight: 600; }
.top nav { display: flex; gap: clamp(18px, 2.4vw, 32px); }
.top nav a[aria-current] { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
/* On the work page the header floats over the films, A24-style */
.page-work .top { position: fixed; left: 0; right: 0; background: none; color: #fff; transition: color .2s; }
.page-work .top.on-light { color: var(--fg); }

/* ---------- stacking film panels ---------- */
.stack { position: relative; }
.panel { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #111; color: #fff; }
.media, .media video, .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
                background: linear-gradient(to top, rgba(0,0,0,.28), rgba(0,0,0,0) 45%); }
.hit { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.hit:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

.panel-content { position: absolute; top: 0; left: 0; right: 0; height: 100%; height: 100svh; z-index: 2; pointer-events: none; display: flex; flex-direction: column;
                 justify-content: flex-end; padding: 96px var(--gutter) clamp(20px, 4vw, 44px); }
.panel-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(10px, 1.6vw, 22px); }
.meta { font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.meta .sep { margin: 0 .6em; opacity: .6; }
.cta { flex-shrink: 0; border: 1px solid currentColor; padding: 10px 14px 9px; font-size: 13px; font-weight: 500;
       letter-spacing: .05em; text-transform: uppercase; transition: background .2s, color .2s; }
.cta .arr { display: inline-block; margin-left: .4em; transition: transform .2s; }
.panel:hover .cta { background: #fff; color: #000; }
.panel:hover .cta .arr { transform: translateX(3px); }
.note { max-width: 40ch; font-size: 15px; margin-bottom: 14px; opacity: .9; }

.big { font-weight: 500; line-height: .8; letter-spacing: -.05em; white-space: nowrap;
       font-size: 18vw; /* JS fits it exactly to the width */ margin-left: -.04em; }
.big span { display: inline-block; padding-top: .06em; }
.big.wrap { white-space: normal; }
.empty { padding: 140px var(--gutter); color: var(--muted); }

/* ---------- about ---------- */
.about { padding: clamp(28px, 6vw, 90px) var(--gutter) var(--gap); }
.about-lead { font-weight: 500; font-size: clamp(44px, 9vw, 170px); line-height: .82; letter-spacing: -.05em;
              margin-bottom: clamp(36px, 6vw, 96px); }
.about-lead span { color: var(--muted); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.about-grid.no-photo { grid-template-columns: 1fr; }
.about-grid figure img { aspect-ratio: 4 / 5; object-fit: cover; }
.about-text { font-size: clamp(19px, 1.9vw, 30px); line-height: 1.22; letter-spacing: -.015em; max-width: 30em; }
.about-text p + p { margin-top: 1em; }
.about-text a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin-top: 2em;
           padding-top: 20px; border-top: 1px solid var(--fg); font-size: 16px; line-height: 1.4; letter-spacing: 0; }
.contact dt { color: var(--muted); }

/* ---------- legal ---------- */
.legal { padding: clamp(28px, 5vw, 72px) var(--gutter) var(--gap); max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin: 0 0 24px; }
.legal p { margin-bottom: 1em; }
.legal h1:not(:first-child) { margin-top: 72px; }

/* ---------- footer ---------- */
.bottom { position: relative; z-index: 30; background: var(--bg); padding: 0 var(--gutter) 24px; }
.foot-big { font-weight: 500; font-size: clamp(48px, 15vw, 300px); line-height: .8; letter-spacing: -.055em;
            padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); white-space: nowrap; margin-left: -.04em; }
.foot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: 13px; font-weight: 500;
            letter-spacing: .04em; text-transform: uppercase; border-top: 1px solid var(--fg); padding-top: 14px; }
.foot-row ul { list-style: none; }
.foot-row ul:last-child { text-align: right; }
.foot-row a[href^="mailto"] { text-transform: none; letter-spacing: 0; }
.muted { color: var(--muted); }

/* ---------- player overlay ---------- */
.player { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; align-items: center; justify-content: center;
          padding: 64px var(--gutter) var(--gutter); }
.player[hidden] { display: none; }
.player .stage { width: 100%; max-width: calc((100vh - 110px) * var(--ar, 1.7778)); }
.player .stage > * { width: 100%; aspect-ratio: var(--ar-css, 16 / 9); background: #000; border: 0; display: block; }
.player .close { position: absolute; top: 16px; right: var(--gutter); color: #fff; font-size: 13px; font-weight: 500;
                 letter-spacing: .05em; text-transform: uppercase; padding: 6px 0; }
.player .close:hover { text-decoration: underline; }
body.locked { overflow: hidden; }

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  .top { padding-top: 16px; padding-bottom: 16px; }
  .panel-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .meta { font-size: 11px; }
  .cta { padding: 8px 12px 7px; font-size: 11px; }
  .about-grid { grid-template-columns: 1fr; }
  .foot-row { grid-template-columns: 1fr 1fr; }
  .foot-row ul:last-child { grid-column: 1 / -1; text-align: left; display: flex; gap: 16px; }
  .player { padding: 56px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .cta .arr { transition: none; }
}

/* ---------- photo projects ---------- */
.is-photo .media img { opacity: 0; transition: opacity 1.4s ease; }
.is-photo .media img.on { opacity: 1; }

.gallery { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; }
.gallery[hidden] { display: none; }
.g-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 24px;
         padding: 18px var(--gutter); font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.g-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-count { font-variant-numeric: tabular-nums; opacity: .7; }
.g-close { color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.g-close:hover { text-decoration: underline; }
.g-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
           scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always;
           display: flex; align-items: center; justify-content: center; padding: 60px var(--gutter) 40px; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; }
@media (hover: hover) { .g-track { cursor: e-resize; } }
.g-prev, .g-next { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 56px; height: 56px;
                   border: 1px solid rgba(255,255,255,.6); color: #fff; font-size: 20px; transition: background .2s, color .2s; }
.g-prev { left: var(--gutter); } .g-next { right: var(--gutter); }
.g-prev:hover, .g-next:hover { background: #fff; color: #000; }
.gallery.single .g-prev, .gallery.single .g-next, .gallery.single .g-count { display: none; }
@media (hover: none), (max-width: 700px) {
  .g-prev, .g-next { display: none; }           /* swipe instead */
  .g-slide { padding: 56px 0 24px; }
}
.g-close:focus:not(:focus-visible), .player .close:focus:not(:focus-visible) { outline: none; }

/* desktop: one photo at a time, crossfade (phones keep swipe) */
.gallery:not(.swipe) .g-track { overflow: hidden; scroll-snap-type: none; }
.gallery:not(.swipe) .g-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden;
                                transition: opacity .35s ease, visibility 0s linear .35s; }
.gallery:not(.swipe) .g-slide.cur { opacity: 1; visibility: visible; transition: opacity .35s ease; }

/* poster still sits under the video until the loop is actually playing */
.media .poster { z-index: 0; }
.media video { z-index: 1; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.legal h2 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; margin: 40px 0 10px; }

/* privacy notice before loading Vimeo / YouTube */
.consent { aspect-ratio: auto !important; max-width: 520px; margin: 0 auto; padding: 0 var(--gutter); color: #fff; font-size: 15px; line-height: 1.45; }
.consent p { margin-bottom: 18px; opacity: .9; }
.consent a { text-decoration: underline; }
.consent label { display: flex; gap: 8px; align-items: center; font-size: 13px; opacity: .75; margin-bottom: 22px; }
.consent-ok { border: 1px solid #fff; color: #fff; padding: 12px 18px 11px; font-size: 13px; font-weight: 500;
              letter-spacing: .05em; text-transform: uppercase; }
.consent-ok:hover { background: #fff; color: #000; }
.consent-ok:focus:not(:focus-visible) { outline: none; }

/* ---------- snapping: scroll freely; when you let go the page settles on the panel that covers most of the screen ---------- */
html.html-work { scroll-snap-type: y mandatory; }
.snap { height: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.html-work .bottom { scroll-snap-align: end; }
@media (prefers-reduced-motion: reduce) { html.html-work { scroll-snap-type: none; } }
