:root {
  --bg: #050505;
  --panel: #0e0e10;
  --text: #f5f5f2;
  --muted: #8b8b8b;
  --faint: #4a4a4a;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #2b59ff;
  /* Primary: Helvetica Neue Bold. Secondary accent: the blue italic. */
  /* Apple devices keep Helvetica Neue; everyone else gets Hanken Grotesk instead of Arial */
  --display: "Helvetica Neue", Helvetica, "Hanken Grotesk", Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, "Hanken Grotesk", Arial, sans-serif;
  --script: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.blue { color: var(--blue); }
::selection { background: var(--blue); color: #fff; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  color: var(--muted); margin: 0 0 24px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }

/* Display type: Helvetica Neue Bold, tight */
.hero-title, .big, .contact-title, .loader-count, .marquee-track span, .logo, .loader-brand, .next-cat b {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.045em;
}

.split { display: inline-block; }
.char { display: inline-block; will-change: transform; }
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--gutter);
}
.loader-brand { font-size: 13px; letter-spacing: .24em; color: var(--muted); }
.loader-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  height: clamp(150px, 26vh, 260px); width: auto;
}
.loader-count {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) + 18px);
  font-size: clamp(40px, 5vw, 72px); line-height: 1; font-variant-numeric: tabular-nums;
}
.loader-bar { margin-top: auto; }
.loader-bar { height: 1px; background: var(--line); }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--blue); }

/* ---------- Progress + cursor ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .25s;
}
.cursor-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; opacity: 0; color: #fff; transition: opacity .2s; }
.cursor.is-active { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--blue); mix-blend-mode: normal; }
.cursor.is-active .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: transform .5s var(--ease), background .4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: rgba(5, 5, 5, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo { display: block; line-height: 0; }
.logo img { height: 48px; width: auto; transition: transform .5s var(--ease); }
.logo:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .logo img { height: 40px; } }
.nav-links { display: flex; gap: clamp(20px, 4vw, 56px); }
.nav-links a {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--text); color: #050505;
  padding: 6px 6px 6px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .4s var(--ease);
}
.pill-btn:hover { transform: translateY(-2px); }
.pill-arrow {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-style: normal; font-size: 16px;
  transition: transform .4s var(--ease);
}
.pill-btn:hover .pill-arrow { transform: rotate(-45deg); }

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav .pill-btn span { display: none; }
  .nav .pill-btn { padding: 4px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
/* Headshot sits on the right and melts into the black page on the left/bottom */
.hero-frame { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
/* Desktop: headshot slightly smaller (88% tall), anchored bottom-right, edges fade to black */
.hero-photo {
  position: absolute; bottom: 0; right: 0; height: 88%; width: 64%;
  object-fit: cover; object-position: 50% 30%;
  will-change: transform;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 36%, rgba(5,5,5,.85) 44%, rgba(5,5,5,0) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5,5,5,0) 26%),
    linear-gradient(180deg, var(--bg) 12%, rgba(5,5,5,0) 30%),
    linear-gradient(270deg, rgba(5,5,5,.5) 0%, rgba(5,5,5,0) 12%);
}
.hero-content {
  position: absolute; left: var(--gutter); bottom: clamp(28px, 5vh, 56px);
  width: min(54%, 760px);
}
.hero-intro {
  margin: 28px 0 0; max-width: 30em;
  font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; color: rgba(255,255,255,.72);
}
.hero-intro b { color: var(--text); font-weight: 700; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-tags a {
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 10px 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s;
}
.hero-tags a:hover { background: var(--blue); border-color: var(--blue); }
@media (max-width: 760px) {
  .hero-photo { top: 0; bottom: auto; width: 100%; height: 58%; object-position: 50% 22%; }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--bg) 44%, rgba(5,5,5,.7) 52%, rgba(5,5,5,0) 64%),
      linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 18%);
  }
  .hero-content { width: auto; right: var(--gutter); bottom: max(28px, env(safe-area-inset-bottom)); }
  .hero-intro { margin-top: 16px; font-size: 15px; }
  .hero-tags { margin-top: 18px; gap: 8px; }
  .hero-tags a { padding: 9px 15px; font-size: 11px; }
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.8);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(43,89,255,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43,89,255,0); } 100% { box-shadow: 0 0 0 0 rgba(43,89,255,0); } }
.hero-title { margin: 0; font-size: clamp(56px, 9.5vw, 176px); line-height: 0.9; text-transform: uppercase; }
.sq { display: inline-block; width: 0.16em; height: 0.16em; background: var(--blue); margin-left: 0.05em; vertical-align: baseline; }
.badge { position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 96px); width: clamp(110px, 12vw, 170px); aspect-ratio: 1; }
.badge svg { width: 100%; height: 100%; overflow: visible; }
.badge-bg { fill: var(--blue); }
.badge text { fill: #fff; font-size: 15.5px; letter-spacing: 3.2px; font-family: var(--body); font-weight: 700; }
.badge-star { fill: #fff; }
.badge svg text { transform-origin: 100px 100px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--blue), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  /* Tucked top-right under the nav, clear of the face and chain */
  .badge { top: calc(var(--nav-h) + 12px); bottom: auto; right: var(--gutter); width: 76px; }
  .hero-title { font-size: clamp(52px, 16vw, 76px); }
  .hero-kicker { font-size: 10px; letter-spacing: .14em; white-space: nowrap; margin-bottom: 14px; }
  .scroll-cue { display: none; }
}

/* ---------- About ---------- */
.about { padding: 0 var(--gutter) clamp(80px, 14vh, 160px); max-width: 1280px; margin: 0 auto; }
.reveal-text { margin: 0; font-size: clamp(28px, 4.4vw, 64px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; }
.reveal-text .w { opacity: 0.14; }
.reveal-text .w.accent { font-family: var(--script); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--blue); }
.services { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.services li { border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.82); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span { font-size: clamp(40px, 7vw, 108px); line-height: 1; text-transform: uppercase; padding-right: 0.3em; }
.marquee-track em { font-style: normal; color: var(--blue); font-size: .5em; vertical-align: middle; padding: 0 .3em; }

/* ---------- Work: category switcher ---------- */
.work { padding: clamp(80px, 12vh, 140px) var(--gutter) 40px; }
.cat-bar {
  position: sticky; top: calc(var(--nav-h) + 8px); z-index: 40;
  display: flex; justify-content: center; margin-bottom: clamp(40px, 8vh, 80px);
  transition: top .5s var(--ease);
  pointer-events: none;
}
body.nav-up .cat-bar { top: 14px; }
.cat-tabs {
  pointer-events: auto;
  position: relative; display: inline-flex; gap: 4px; padding: 5px;
  background: rgba(14, 14, 16, 0.78); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.cat-pill {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0;
  background: var(--text); border-radius: 999px; z-index: 0;
  transition: transform .55s var(--ease), width .55s var(--ease);
}
.cat-tab {
  position: relative; z-index: 1;
  padding: 12px clamp(16px, 2.6vw, 30px); border-radius: 999px;
  font-size: clamp(12px, 1.1vw, 14px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.7); transition: color .4s var(--ease);
}
.cat-tab:hover { color: #fff; }
.cat-tab.is-active { color: #050505; }

.cat-head { display: flex; align-items: flex-end; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 48px; }
.big { margin: 0; line-height: .86; font-size: clamp(64px, 13vw, 220px); text-transform: uppercase; overflow: hidden; padding-bottom: .04em; }
.script { font-family: var(--script); font-style: italic; font-size: clamp(24px, 3vw, 44px); color: var(--blue); margin: 0 0 .35em; }
.cat-count { font-variant-numeric: tabular-nums; margin: 0 0 1.1em auto; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
@media (max-width: 760px) { .cat-count { margin-left: 0; } }

.work-body { min-height: 60vh; }
.lib-block { margin-bottom: 72px; }
.lib-block[hidden] { display: none; }

/* ---------- Film grid (no titles) ---------- */
/* Count-aware: never leave an orphan card or an empty half-row.
   Wide: 2 columns; with an odd count the first film becomes a full-width feature. */
.film-grid { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.film-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.film-grid.wide > .film-card.is-feature { grid-column: 1 / -1; }
.film-grid.wide .film-card.is-feature .film-thumb { aspect-ratio: 21 / 9; }
/* Tall: as many columns as reels (max 5), capped width so a pair reads as a deliberate group */
.film-grid.tall { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); max-width: calc(var(--n, 5) * 300px); }
@media (max-width: 1100px) { .film-grid.tall { grid-template-columns: repeat(min(var(--n, 3), 3), minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .film-grid.wide { grid-template-columns: minmax(0, 1fr); }
  .film-grid.wide .film-card.is-feature .film-thumb { aspect-ratio: 16 / 9; }
  .film-grid.tall { grid-template-columns: repeat(min(var(--n, 2), 3), minmax(0, 1fr)); gap: 8px; }
  .film-grid.tall[style*="--n: 4"], .film-grid.tall[style*="--n: 5"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.film-card { position: relative; cursor: pointer; }
.film-card[hidden] { display: none; }
.film-thumb { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel); aspect-ratio: 16 / 9; }
.tall .film-thumb { aspect-ratio: 9 / 16; }
.film-thumb img, .film-thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), opacity .5s;
}
.film-thumb video { opacity: 0; }
.film-card.is-playing .film-thumb video { opacity: 1; }
.film-card:hover .film-thumb img, .film-card:hover .film-thumb video { transform: scale(1.04); }
/* Minimal play mark: thin ring + small SVG triangle (no emoji) */
.film-play {
  position: absolute; left: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease);
}
.film-play svg { display: block; margin-left: 2px; width: 12px; height: 12px; }
.film-card:hover .film-play { background: var(--blue); border-color: var(--blue); transform: scale(1.06); }
.film-card.is-playing .film-play { opacity: .0; transform: scale(.8); }
@media (max-width: 760px) { .film-play { left: 10px; bottom: 10px; width: 32px; height: 32px; } .film-play svg { width: 10px; height: 10px; } }

/* ---------- Stills masonry (no labels) ---------- */
.masonry { columns: 4 280px; column-gap: 14px; }
.ph { break-inside: avoid; margin: 0 0 14px; position: relative; overflow: hidden; border-radius: 14px; background: var(--panel); cursor: zoom-in; }
.ph img { width: 100%; height: auto; }
@media (max-width: 760px) { .masonry { columns: 2; column-gap: 8px; } .ph { margin-bottom: 8px; border-radius: 10px; } }

/* ---------- Next category ---------- */
.next-cat { display: flex; justify-content: center; padding: 40px 0 20px; }
.next-cat button {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.next-cat small { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.next-cat b { font-size: clamp(48px, 9vw, 150px); line-height: .9; text-transform: uppercase; transition: color .4s var(--ease); }
.next-cat b i { font-style: normal; color: var(--blue); display: inline-block; transition: transform .5s var(--ease); }
.next-cat button:hover b { color: var(--blue); }
.next-cat button:hover b i { transform: translateX(.15em); color: #fff; }

/* ---------- Contact ---------- */
.contact { padding: clamp(120px, 20vh, 220px) var(--gutter) clamp(60px, 10vh, 120px); border-top: 1px solid var(--line); margin-top: 80px; }
.contact-title { margin: 0 0 64px; text-transform: uppercase; font-size: clamp(44px, 10vw, 170px); line-height: .9; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-info { display: flex; flex-direction: column; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 860px) { .contact-info { position: static; } }
.contact-label { margin: 0 0 6px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.contact-name { margin: 0; font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; letter-spacing: -.03em; }
.contact-sub { margin: 4px 0 0; color: rgba(255,255,255,.65); font-size: 15px; }

.contact-form { display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.form-intro { margin: 0 0 6px; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: -.02em; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; outline: none; resize: vertical;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: rgba(43,89,255,.06); }
.field.is-invalid input, .field.is-invalid textarea { border-color: rgba(255,255,255,.6); }
.field.is-invalid > span { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-foot .pill-btn { border: 0; cursor: pointer; }
.form-foot .pill-btn:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-size: 15px; color: var(--muted); max-width: 32em; }
.form-status[data-state="ok"] { color: var(--text); }
.form-status[data-state="ok"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 10px; vertical-align: middle; }
.form-status[data-state="error"] { color: var(--text); }
.big-btn { font-size: 15px; padding: 8px 8px 8px 28px; }
.big-btn .pill-arrow { width: 52px; height: 52px; font-size: 20px; }

.footer { display: flex; justify-content: space-between; align-items: center; padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.contact-label-gap { margin-top: 32px; }
.contact-email {
  display: inline-flex; align-items: baseline; gap: 8px; width: fit-content;
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; letter-spacing: -.01em;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size .5s var(--ease);
}
.contact-email i { font-style: normal; color: var(--blue); transition: transform .4s var(--ease); }
.contact-email:hover { background-size: 100% 1px; }
.contact-email:hover i { transform: translate(2px, -2px); }
.footer { gap: 16px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; }
.footer-email { display: inline-flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-email { order: 3; width: 100%; } }
.footer-brand img { height: 34px; width: auto; opacity: .9; }
.footer a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.94);
  display: grid; place-items: center; opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.lb-body { width: min(92vw, 1600px); height: 82vh; display: grid; place-items: center; }
.lb-body img, .lb-body video { max-width: 100%; max-height: 82vh; border-radius: 12px; object-fit: contain; }
.lb-body video { width: 100%; background: #000; }
.lb-body video.vertical { width: auto; height: 82vh; }
.lb-close { position: absolute; top: 22px; right: var(--gutter); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; z-index: 2; }
.lb-close:hover { background: var(--blue); border-color: var(--blue); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; z-index: 2; background: rgba(0,0,0,.4); }
.lb-nav:hover { background: var(--blue); border-color: var(--blue); }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
.lightbox.is-video .lb-nav { display: none; }
.lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: #9a9a9a; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .lb-nav { top: auto; bottom: 56px; transform: none; }
  .lb-body video.vertical { height: 74vh; }
}

/* ---------- Typography finish ---------- */
h1, h2, .reveal-text, .form-intro { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Media framing: hairline + soft vignette so work feels framed, not pasted ---------- */
.film-thumb::after, .ph::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  background: linear-gradient(0deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 34%);
  transition: opacity .5s var(--ease);
}
.ph::after { background: none; }
.film-play { z-index: 2; }
.film-card.is-playing .film-thumb::after { opacity: .35; }
.film-thumb, .ph { box-shadow: 0 24px 60px -28px rgba(0,0,0,.9); }

/* ---------- Film grain (very subtle, cinematic) ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Focus: visible for keyboard users only ---------- */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.pill-btn:focus-visible, .hero-tags a:focus-visible, .cat-tab:focus-visible, .lb-close:focus-visible, .lb-nav:focus-visible { border-radius: 999px; }
.film-card:focus-visible, .ph:focus-visible { outline-offset: 3px; border-radius: var(--radius); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.ph:focus-visible { border-radius: 14px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .badge svg text, .dot-live, .scroll-cue i, .grain { animation: none; }
}
.reduced .loader { display: none; }
