:root {
  --fg: #111;
  --muted: #8a8a8a;
  --bg: #fff;
  --ph: #f1f1f1;
  --lbbg: rgba(255,255,255,.97);
  --side: 210px;
  --gap: 10px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* Film page: black everything, faded-white text that goes full white on hover */
body.dark {
  --fg: #fff;
  --muted: rgba(255,255,255,.45);
  --bg: #000;
  --ph: #111;
  --lbbg: rgba(0,0,0,.97);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: inherit; }

/* Fixed left menu */
.side {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--side);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  z-index: 10;
  transition: background .3s;
}
.brand {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  line-height: 1.2;
}
.side nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side nav a {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .15s;
}
.side nav a:hover,
.side nav a.active { color: var(--fg); }
.ig {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .15s;
}
.ig:hover { color: var(--fg); }

/* Right pane */
#stage {
  margin-left: var(--side);
  padding: 24px 24px 60px 8px;
  min-height: 100vh;
}
.view[hidden] { display: none; }

/* Masonry (columns filled in JS, so reading order runs left to right) */
.grid { display: block; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.cell { margin: 0; }
.tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ph);
  cursor: pointer;
  overflow: hidden;
}
.tile img, .tile video { display: block; width: 100%; height: auto; }
.tile.film { aspect-ratio: 16 / 9; }
.tile.film img, .tile.film video { height: 100%; object-fit: cover; }
.tile .play-unused {
  position: absolute;
  left: 50%; top: 50%;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: rgba(0,0,0,.25);
  pointer-events: none;
}
.tile .play::after {
  content: "";
  position: absolute;
  left: 21px; top: 16px;
  border-left: 17px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.tile img { opacity: 0; transition: opacity .4s; }
.tile img.loaded { opacity: 1; }

/* Film titles */
.caption {
  display: block;
  margin: 10px 0 18px;
  padding: 0;
  border: 0;
  background: none;
  font: 300 12px/1.3 var(--font);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s;
}
.caption:hover,
.cell:hover .caption { color: var(--fg); }

/* Text pages */
.text { max-width: 640px; padding: 24px 0 0 40px; }
.text h1 { font-weight: 300; font-size: 28px; margin: 0 0 28px; }
.text h2 { font-weight: 400; font-size: 14px; margin: 28px 0 4px; }
.text p { font-size: 14px; line-height: 1.7; margin: 0 0 14px; color: #444; }
.text h2 + p { margin-top: 0; }
.text .small { font-size: 11px; color: var(--muted); margin-top: 40px; }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0;
  background: var(--lbbg);
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
}
#lightbox[hidden] { display: none; }
.lb-body { max-width: 92vw; max-height: 90vh; display: flex; }
.lb-body img, .lb-body video { max-width: 92vw; max-height: 90vh; display: block; background: #000; }
#lightbox button {
  position: absolute;
  background: none; border: 0;
  font: 300 44px/1 var(--font);
  color: var(--fg);
  cursor: pointer;
  padding: 12px 18px;
}
.lb-close { top: 6px; right: 10px; }
.lb-prev { left: 6px; top: 50%; margin-top: -30px; }
.lb-next { right: 6px; top: 50%; margin-top: -30px; }

/* Phone / small tablet: same idea as benjoarwas.com. The menu stays fixed on
   the left, slimmer, and the content is a single column beside it. */
@media (max-width: 800px) {
  :root { --side: 92px; --gap: 8px; }
  .side { padding: 16px 0 16px 14px; }
  .brand { font-size: 11px; letter-spacing: .05em; max-width: 64px; }
  .side nav { margin-top: 28px; gap: 10px; }
  .side nav a { font-size: 10px; letter-spacing: .1em; }
  .ig { font-size: 9px; letter-spacing: .1em; }
  #stage { padding: 14px 12px 40px 0; }
  .text { padding: 14px 0 0 0; }
  .text h1 { font-size: 22px; margin-bottom: 20px; }
  .text p { font-size: 13px; }
  .caption { font-size: 10px; letter-spacing: .1em; margin: 8px 0 14px; }
  .tile .play-unused { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .tile .play::after { left: 15px; top: 11px; border-left-width: 13px; border-top-width: 9px; border-bottom-width: 9px; }
  .lb-body, .lb-body img, .lb-body video { max-width: 100vw; }
  #lightbox button { font-size: 36px; padding: 10px 12px; }
}

/* Visually hidden but readable by screen readers and search engines */
.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Home: chunks of tiles broken up by full-screen highlights */
.grid.stack { display: block; }
.chunk { display: flex; gap: var(--gap); align-items: stretch; }
.chunk > .col { justify-content: space-between; }
.tile.ar img { height: 100%; object-fit: cover; }
.feature { margin: 24px 0; height: calc(100vh - 48px); height: calc(100svh - 48px); }
.feature .tile.featured { height: 100%; background: var(--ph); }
.feature video { width: 100%; height: 100%; object-fit: cover; }
.feature img.fg { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .feature { margin: 16px 0; height: calc(100svh - 32px); } }

/* Play-button cursor over films (desktop): small frosted-glass disc */
@media (hover: hover) and (pointer: fine) { .tile.vid, .cell:has(.tile.vid) .caption { cursor: none; } }
#pcursor { position: fixed; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px) saturate(170%); backdrop-filter: blur(10px) saturate(170%); border: 1px solid rgba(255,255,255,.45); box-shadow: 0 2px 10px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35); pointer-events: none; z-index: 40; opacity: 0; transition: opacity .15s; will-change: transform; }
#pcursor::after { content: ""; position: absolute; left: 15px; top: 12px; border-left: 11px solid rgba(255,255,255,.95); border-top: 7px solid transparent; border-bottom: 7px solid transparent; filter: drop-shadow(0 0 2px rgba(0,0,0,.25)); }
#pcursor.on { opacity: 1; }
.tile video.hv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.tile video.hv.show { opacity: 1; }

/* Highlight photo: edge to edge across the pane, at its own (portrait) proportions */
.feature.photo { height: auto; }
.feature.photo .tile.featured { display: block; width: 100%; height: auto; background: var(--ph); }
.feature.photo img.fg { width: 100%; height: auto; object-fit: initial; }

.feature.wide { height:auto; }
.feature.wide .tile.featured { display:block; width:100%; aspect-ratio:16/9; }
.feature.wide.photo .tile.featured { aspect-ratio:auto; }