:root {
  --bg: #0a0a0a;
  --panel: #151517;
  --text: #ecebe8;
  --muted: #8f8d88;
  --line: #3a3a3e;
  --accent: #f4f1ea; /* soft warm white */
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
body.no-scroll { overflow: hidden; }

/* ---------- Top bar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 16px 3vw;
  background: rgba(10,10,10,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 34px; letter-spacing: 1.5px; }
.brand-role { font-size: 16px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: #e4e2dd; margin-top: 6px; }
#menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 28px; }
#menu a, #menu button {
  background: none; border: none; cursor: pointer; padding: 4px 0;
  font: 400 12px var(--body); letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
#menu a:hover, #menu button:hover { color: var(--text); }
#menu .active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Work: a row of three stills per job ---------- */
main { padding: 110px 3vw 40px; }
.grid { display: flex; flex-direction: column; gap: 34px; }
.job {
  display: block; width: 100%; cursor: pointer; text-align: center;
  background: none; border: none; color: inherit; font: inherit;
}
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border-radius: 2px;
}
.frame .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.job:hover .img, .job:focus-visible .img { transform: scale(1.04); }
.job .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 22px; opacity: 0; transition: opacity .3s; pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.job:hover .frame:nth-child(2) .play { opacity: 1; }
.job h3 {
  margin-top: 12px; font-family: var(--display); font-weight: 400;
  font-size: 24px; letter-spacing: 1.5px; line-height: 1.1;
}
.job .sub { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.job:hover h3 { color: var(--accent); }
.empty { color: var(--muted); text-align: center; padding: 60px 0; }

/* ---------- Sections ---------- */
.section { padding: 90px 3vw; border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(36px, 5vw, 56px); letter-spacing: 1px; line-height: 1; margin-bottom: 24px;
}
.kit { column-width: 300px; column-gap: 44px; margin-bottom: 30px; }
.kit-group { break-inside: avoid; margin-bottom: 24px; }
.kit-group h4 {
  font-size: 12px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; line-height: 1.4;
  color: var(--accent); padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.kit-group ul { list-style: none; }
.kit-group li { padding: 2px 0; font-size: 14px; line-height: 1.55; color: #c9c7c2; }
.kit-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 14px 28px; margin-bottom: 24px; }
.kit-head h2 { margin-bottom: 0; }
#kit-pdf { display: inline-flex; }
#kit-pdf[hidden] { display: none; }

.about-body { min-width: 0; }
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 7vw; align-items: start; }
.about-media { position: sticky; top: 100px; }
.about-photo { aspect-ratio: 1120 / 1253; border-radius: 3px; background: var(--panel) center / cover no-repeat; }
.about-cap { margin-top: 14px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.about-body .eyebrow { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; margin-bottom: 18px; }
.section .about-lead { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.25; letter-spacing: 0.04em; margin-bottom: 18px; max-width: 30em; }
#bio p { color: #c9c7c2; font-size: 17px; line-height: 1.7; margin-bottom: 18px; max-width: 58ch; }
.about-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin: 46px 0 56px; padding-top: 0; border-top: none; }
.about-lists h4 { font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.about-lists ul { list-style: none; }
.about-lists li { font-size: 14.5px; line-height: 1.5; padding: 3px 0; color: #c9c7c2; }
.about-contact { padding-top: 0; border-top: none; }
.contact-rows { max-width: 520px; }
.crow { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.crow .cicon { display: flex; align-items: center; color: var(--muted); }
.crow a { transition: color .2s; }
.crow a:hover { color: var(--accent); }

footer {
  padding: 30px 3vw; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px; letter-spacing: 1px;
}

/* ---------- Pop-up viewer ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: #050506; overflow-y: auto;
  animation: fade .25s ease;
}
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-close {
  position: fixed; top: 18px; right: 24px; z-index: 2;
  background: none; border: none; color: var(--text);
  font-size: 44px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--accent); }
.modal-body { max-width: 1200px; margin: 0 auto; padding: 39px 5vw 60px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; margin: 0 auto 24px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 4px; }
.modal h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 38px); letter-spacing: 0.02em; line-height: 1.05; }
.credits { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 8px 0 18px; color: var(--muted); font-size: 13px; }
.credits b { color: var(--text); font-weight: 500; }
.stills { display: grid; gap: 14px; }
.stills img { display: block; max-width: 100%; max-height: 92vh; width: auto; height: auto; margin: 0 auto; border-radius: 3px; }

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  /* phones: brand and a Menu button on one line; the menu opens as a tidy list underneath */
  .nav { flex-wrap: wrap; align-items: center; gap: 0; padding: 12px 16px; }
  .nav.open { max-height: 100vh; overflow-y: auto; }
  .menu-toggle {
    display: block; background: none; color: var(--text); cursor: pointer;
    border: 1px solid #4a4a50; border-radius: 2px; padding: 10px 18px;
    font: 500 12px var(--body); letter-spacing: 3px; text-transform: uppercase;
  }
  #menu { display: none; flex-basis: 100%; flex-direction: column; flex-wrap: nowrap; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
  .nav.open #menu { display: flex; }
  #menu a, #menu button {
    width: 100%; text-align: left; padding: 17px 2px; font-size: 15px; letter-spacing: 3px;
    border-bottom: 1px solid var(--line);
  }
  #menu .active { color: #fff; border-bottom-color: var(--line); }
  #menu .active::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 12px; }
  .brand-name { font-size: 28px; }
  main { padding: 125px 16px 30px; }
  .grid { gap: 52px; }
  .section { padding: 70px 16px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-media { position: static; max-width: 420px; }
  .about-body { order: -1; }
  .about-lists { grid-template-columns: 1fr 1fr; }
  .crow { grid-template-columns: 40px 1fr; }
  .strip { grid-template-columns: 1fr; gap: 8px; }
  /* on phones the three stills stack: middle first, then left, then right */
  .strip .frame { order: var(--po); }
  /* on phones the title goes above the pictures */
  .job { display: flex; flex-direction: column; }
  .job h3 { order: -1; margin: 0 0 12px; }
  .job .play { opacity: 1; }
  footer { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame .img { transition: none; }
}
.kit-group h4 .lc { text-transform: none; letter-spacing: 0.04em; }
.about-lists:empty { display: none; }
.about-lists:empty + .about-contact { margin-top: 46px; }
.about-lead:empty { display: none; }
.about-body .eyebrow { font-weight: 700; color: var(--text); }
.video-row { display: flex; flex-direction: column; gap: 18px; align-items: center; margin: 0 auto 30px; }
.video-row .video { flex: none; width: 100%; min-width: 0; margin: 0; }
@media (max-width: 600px) {
  /* extra videos become a row you can swipe sideways */
}
@media (max-width: 900px) {
  /* room under the taller two-line phone menu */
  main.page-off + #about, #about.page-off + #equipment { padding-top: 130px; }
}
.modal .credits { margin-bottom: 18px; }
.page-off { display: none !important; }
main.page-off + #about, #about.page-off + #equipment { border-top: none; padding-top: 140px; }

/* production / DOP / title over the pictures on hover (laptops only) */
.hover-info { display: none; }
@media (hover: hover) and (min-width: 901px) {
  .hover-info {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: rgba(5,5,6,.76); opacity: 0; transition: opacity .35s ease; pointer-events: none; padding: 0 6%; text-align: center;
  }
  .job:hover .hover-info, .job:focus-visible .hover-info { opacity: 1; }
  .hover-info span { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
  .hover-info i { font-style: normal; color: #b5b3ad; margin-right: 10px; }
  .job:hover .play { opacity: 0; }
  .job .t-full { display: none; }
  .job h3 { font-size: 17px; letter-spacing: .22em; margin-top: 14px; }
}

.job .t-full { display: none; }
@media (min-width: 901px) { .menu-toggle { display: none; } }

/* phones: FX (the haze machine) goes last in the equipment list */
@media (max-width: 900px) {
  .kit { display: flex; flex-direction: column; column-width: auto; }
  .kit-fx { order: 99; }
}

/* a single list (Clients) runs across columns instead of one long column */
.about-lists.one { display: block; }
.about-lists.one ul { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 5), auto); grid-auto-columns: max-content; column-gap: 56px; width: fit-content; max-width: 100%; }
@media (max-width: 900px) { .about-lists.one ul { grid-template-rows: repeat(var(--rows-m, 7), auto); column-gap: 40px; } }

/* phoneRow: a different main-page picture for phones only */
.frame .phone-img { display: none; }
@media (max-width: 900px) {
  .frame.has-alt .desk { display: none; }
  .frame.has-alt .phone-img { display: block; }
}

/* main-page pictures: dark panel first, then fade the picture in when it has loaded */
.frame .img[data-src] { opacity: 0; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.frame .img[data-src].ready { opacity: 1; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
