/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Open Sauce Sans"; src: url("assets/fonts/open-sauce-sans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("assets/fonts/open-sauce-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("assets/fonts/open-sauce-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("assets/fonts/open-sauce-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("assets/fonts/open-sauce-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Bebas Neue ships as one (already heavy) weight; map it to 700 so the browser never fakes a bolder version */
@font-face { font-family: "Bebas Neue"; src: url("assets/fonts/bebas-neue-400.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --fg: #0b0b0b;
  --muted: #77736c;
  --dim: #d6d3cd;
  --line: #ecebe8;
  --accent: #7a1414;            /* dark red */
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Open Sauce Sans", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 44px);
  --corner: clamp(16px, 1.8vw, 26px);   /* inset for corner items */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-synthesis: none;
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: var(--corner);
  background: linear-gradient(to bottom, rgba(255,255,255,.95), rgba(255,255,255,0));
}
/* About on the far left, big logo centred, Contact on the far right */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
.nav-left { justify-self: start; }
.nav-right { justify-self: end; }
/* logo-black.png: transparent, trimmed to the letters */
.logo { margin-top: clamp(6px, 1vw, 14px); }
.logo img { height: clamp(19px, 2.62vw, 40px); width: auto; display: block; }
.nav-side {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  padding: 0 0 7px; border-bottom: 1.5px solid transparent; transition: border-color .3s;
}
.nav-side:hover, .nav-side.is-active { border-color: var(--accent); }

/* Pages that must fit on one screen */
@media (min-width: 761px) {
  body.no-scroll { height: 100vh; height: 100svh; overflow: hidden; }
}

/* ---------- Homepage: list + sphere ---------- */
.roster {
  position: relative; height: 100vh; height: 100svh;
  padding: clamp(110px, 11vw, 150px) var(--corner) 70px; display: flex; align-items: center;
}
.roster-col { position: relative; z-index: 3; }
.roster-list { position: relative; }
.roster-item a {
  display: inline-block; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, min(4.8vw, 7.4vh), 84px); line-height: .95; letter-spacing: -.005em;
  transition: color .35s ease;
}
.roster.has-active .roster-item a { color: var(--dim); }
.roster.has-active .roster-item.is-active a { color: var(--fg); }
/* Hovered category grows a touch (scaled from its left edge so it doesn't shift) */
.roster-item a { transform-origin: left center; transition: color .35s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.roster-item.is-active a { transform: scale(1.07); }

.sphere {
  position: absolute; top: clamp(100px, 10vw, 140px); bottom: 20px; right: 0; width: 52%;
  z-index: 1; pointer-events: none;
}
.tile {
  position: absolute; left: 0; top: 0; overflow: hidden; background: #eee;
  transform-origin: center; will-change: transform, opacity;
  transition: filter .5s ease;
}
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.roster.has-active .tile:not(.is-match) { filter: grayscale(1) opacity(.18); }

/* ---------- Shared page intro (category pages) ---------- */
.intro { padding: clamp(150px, 13vw, 190px) var(--corner) 0; max-width: 1400px; }
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow a:hover { color: var(--fg); }
.title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.005em; text-transform: uppercase;
  font-size: clamp(56px, 8vw, 112px); line-height: .95;
}
.lede { margin-top: 22px; max-width: 680px; font-size: 14px; line-height: 1.75; color: #55524d; }

/* ---------- About / Contact ---------- */
.section-title { font-family: var(--display); font-weight: 700; letter-spacing: -.005em; text-transform: uppercase; font-size: clamp(40px, 5.6vw, 80px); line-height: 1; }
.body { margin-top: 24px; max-width: 540px; font-size: 15px; line-height: 1.8; color: #55524d; font-weight: 300; }
.facts { display: flex; gap: clamp(28px, 6vw, 80px); margin-top: 52px; flex-wrap: wrap; }
.facts li { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts span { display: block; font-family: var(--display); font-weight: 700; letter-spacing: -.005em; font-size: 56px; letter-spacing: 0; color: var(--fg); line-height: 1; margin-bottom: 8px; }
.contact-link { display: block; font-family: var(--display); font-weight: 700; letter-spacing: -.005em; text-transform: uppercase; font-size: clamp(34px, 5.6vw, 80px); transition: color .3s; }
.contact-link:hover { color: var(--accent); }
.contact-email { display: inline-block; margin-top: 20px; font-size: 14px; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--dim); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.contact-email:hover { color: var(--fg); border-color: var(--accent); }
.contact-email + .body { margin-top: 28px; }

.site-footer {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  padding: var(--corner);
}
.site-footer .socials { margin: 0; }
.footer-place {
  margin: 0 0 0 auto; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--fg);
}
@media (max-width: 760px) {
  .footer-place { display: none; }
}
/* one-screen pages: the footer sits in the corners, exactly like the homepage socials */
@media (min-width: 761px) {
  body.no-scroll .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; pointer-events: none; }
  body.no-scroll .site-footer > * { pointer-events: auto; }
}

/* ---------- Category page ---------- */

.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 18px; padding: 18px var(--corner) 110px;
}
.card { display: block; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 0; }
.card { cursor: pointer; width: 100%; }
.card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f1f0ed; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.card-media video { opacity: 0; }
.card.is-live .card-media video { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.96); display: grid; place-items: center; padding: 60px var(--pad); }
.lightbox[hidden] { display: none; }
.lightbox-frame { width: min(100%, 1400px); aspect-ratio: 16/9; background: #000; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute; top: 24px; right: var(--pad); background: none; border: 0; color: var(--fg); cursor: pointer;
  font: 500 12px var(--body); letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .roster { flex-direction: column-reverse; align-items: stretch; justify-content: flex-end; padding-top: 80px; }
  .sphere { position: relative; top: 0; width: 100%; height: 92vw; margin-bottom: 12px; }
  .logo img { height: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Social links ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: clamp(20px, 3.5vh, 36px); }
.socials a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--fg);
  transition: color .3s;
}
.socials a[href]:hover { color: var(--accent); }
.socials a[aria-disabled] { cursor: default; }
.socials svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.socials-lg { flex-direction: column; gap: 16px; }
.socials-lg a { font-size: 13px; }
.socials-lg svg { width: 16px; height: 16px; }

/* ---------- About / Contact: one screen, text left, film right ---------- */
.split {
  height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr); gap: clamp(28px, 5vw, 80px);
  align-items: center; padding: clamp(120px, 11vw, 160px) var(--corner) 76px;
}
.split-text .section-title { font-size: clamp(36px, min(5vw, 8vh), 76px); }
.split-text .body { margin-top: clamp(14px, 2.4vh, 24px); font-size: clamp(13px, 1.9vh, 15px); }
.split-text .facts { margin-top: clamp(22px, 4.5vh, 52px); }
.split-text .facts span { font-size: clamp(36px, 6vh, 56px); }
.split-text .contact-link { font-size: clamp(34px, min(5vw, 8vh), 76px); line-height: 1.05; }
.split-media { position: relative; height: min(70vh, calc(100% - 34px)); aspect-ratio: 4 / 5; max-width: 100%; justify-self: end; align-self: center; }
.split-media video { width: 100%; height: 100%; object-fit: cover; display: block; background: #f1f0ed; }
.split-media figcaption {
  position: absolute; left: 0; bottom: -26px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

@media (max-width: 760px) {
  .split { height: auto; grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 100px; }
  .split-media { height: auto; width: 100%; justify-self: stretch; margin-bottom: 40px; }
  .nav-side { font-size: 11px; letter-spacing: .12em; }
}

/* Homepage socials sit in the bottom-left corner */
.socials.corner { position: fixed; left: var(--corner); bottom: var(--corner); margin: 0; z-index: 40; }
@media (max-width: 760px) { .socials.corner { position: static; margin-top: 28px; } }

/* ---------- Simple film cards: frame + one caption line ---------- */
.selected-label { padding: clamp(48px, 7vh, 80px) var(--corner) 0; margin: 0; }
.card-caption { margin-top: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }
.card-caption strong { font-weight: 500; color: var(--fg); }
.card-caption span { color: var(--muted); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .grid { grid-template-columns: 1fr; } }

/* ---------- Page transitions: fade out on click, fade in on arrival ---------- */
html.fade-ready body { opacity: 0; transition: opacity .45s ease; }
html.fade-ready body.is-shown { opacity: 1; }
html.fade-ready body.is-leaving { opacity: 0; transition-duration: .35s; }
@media (prefers-reduced-motion: reduce) {
  html.fade-ready body { opacity: 1; }
}

/* Play mark on cards; lightbox shows the film, or its thumbnail until a link is added */
.card-play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; z-index: 2;
  border-radius: 50%; background: rgba(255,255,255,.88); opacity: 0; transform: scale(.9);
  transition: opacity .3s ease, transform .3s ease;
}
.card-play::after {
  content: ""; position: absolute; left: 22px; top: 18px;
  border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--fg);
}
.card:hover .card-play, .card:focus-visible .card-play { opacity: 1; transform: none; }
.lightbox { grid-template-rows: auto auto; align-content: center; gap: 14px; }
.lightbox-frame { position: relative; }
.lightbox-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-frame [hidden] { display: none; }
.lightbox-caption { width: min(100%, 1400px); margin: 0; }

/* Card hover: the thumbnail eases in a little; nothing plays */
.card-media img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.05); }


/* ---------- Contact: one big line, then the email ---------- */
.contact { padding: clamp(150px, 13vw, 190px) var(--corner) 90px; }
.contact-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em;
  font-size: clamp(56px, 8vw, 112px); line-height: .95; margin: 0;
}
.contact-block { margin-top: clamp(28px, 5vh, 48px); }
.contact-block .eyebrow { margin-bottom: 12px; }
.contact-mail {
  display: inline-block; font-size: 14px; letter-spacing: .02em; color: var(--fg);
  border-bottom: 1px solid var(--accent); padding-bottom: 3px; transition: color .3s;
}
.contact-mail:hover { color: var(--accent); }
.contact-note { font-size: 14px; line-height: 1.75; color: #55524d; margin: 0; }

/* Film player (Bunny Stream / MP4) */
.lightbox-frame video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }

/* Short pages: keep the footer at the bottom of the screen */
body[data-page="work"] { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body[data-page="work"] > main { flex: 1 0 auto; }

/* "Selected content coming soon": same typeface as the category title, one size down */
.selected-label.coming-soon {
  font-family: var(--display); font-weight: 700; letter-spacing: -.005em; text-transform: uppercase;
  font-size: clamp(32px, 4vw, 56px); line-height: 1; color: var(--fg);
}

.lede-note { margin-top: 14px; }

/* About: headshot replaces the loop; full photo shown (2:3), no caption */
.split-media.headshot { aspect-ratio: 2 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; background: #f1f0ed; }
/* About holds a longer bio: let the page grow past one screen when it needs to */
body[data-page="about"] .split { height: auto; min-height: 100vh; min-height: 100svh; padding-bottom: 40px; }
body[data-page="about"] .split-media { height: min(72vh, 760px); }
