:root {
  --bg: #0a0a0a;
  --fg: #f2f0ea;
  --muted: #8b8880;
  --line: #222;
  --gold: #f0c24e;
  --pad: clamp(16px, 4vw, 56px);
  --display: "Saira", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .label, .role, nav a, .tabs button, button[type=submit] {
  font-family: var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
h2 { font-size: clamp(14px, 1.4vw, 16px); margin: 0; color: var(--muted); }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); transition: background .3s, padding .3s; }
.top.solid { background: rgba(10,10,10,.92); backdrop-filter: blur(8px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.brand img { height: 30px; width: auto; }
nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }
nav a { font-size: 12px; text-decoration: none; opacity: .85; }
nav a:hover, nav a[aria-current] { color: var(--gold); opacity: 1; }
.top:not(.solid) nav > a, .top:not(.solid) .drop-head { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
nav a.minor { color: #c9c6be; }
nav a.minor:hover { color: var(--gold); }
.menu-btn { display: none; }

/* dropdowns: Photo in the nav (hover / focus) and the filter on the photo page (click) */
.drop { position: relative; }
.drop-head { display: inline-flex; align-items: center; gap: 6px; }
.caret { font-size: 9px; }
.drop-menu { position: absolute; top: 100%; right: 0; min-width: 210px; padding: 8px 0; margin-top: 10px; background: #111; border: 1px solid var(--line);
  display: none; z-index: 30; }
.drop-menu::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; } /* hover bridge */
nav .drop:hover .drop-menu, nav .drop:focus-within .drop-menu, .drop.open .drop-menu { display: block; }
.drop-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 16px; font: 500 13px var(--body); text-transform: none; letter-spacing: 0;
  color: var(--fg); text-decoration: none; opacity: 1; }
.drop-menu a:hover, .drop-menu a[aria-current] { color: var(--gold); background: #181818; }
.drop-menu .n { color: var(--muted); }
.drop.filter .drop-head { background: none; border: 1px solid var(--line); color: var(--fg); padding: 9px 14px; cursor: pointer;
  font: 700 12px var(--display); font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; }
.drop.filter .drop-head:hover, .drop.filter.open .drop-head { border-color: var(--gold); }
.drop.filter .drop-menu { margin-top: 6px; }

/* hero */
.hero { position: relative; overflow: hidden; background: #000; }
.hero-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.hero.bare { min-height: clamp(260px, 30vw, 360px); background: radial-gradient(120% 90% at 20% 100%, #1a1710 0%, #0a0a0a 60%); }
.hero-reels .still { display: block; overflow: hidden; aspect-ratio: 9 / 13.5; }
.hero-reels .still img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-in-out infinite alternate; }
.hero-reels .still:nth-child(even) img { animation-direction: alternate-reverse; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -2%); } }
.hero-reels video { width: 100%; aspect-ratio: 9 / 13.5; object-fit: cover; object-position: 50% 35%; } /* clips are pre-cropped above the burned-in captions */
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 16%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,.8) 100%),
              linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 60%); }
.hero-text { position: absolute; z-index: 1; left: var(--pad); bottom: clamp(24px, 5vw, 56px); }
.label { color: var(--gold); font-size: 12px; margin: 0 0 8px; }
.hero h1 { margin: 0; font-size: clamp(26px, 4.4vw, 60px); line-height: 1.02; max-width: 22ch; }

/* work */
.work, .about, .contact { padding: clamp(56px, 8vw, 110px) var(--pad) 0; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs { display: flex; gap: 6px; }
.tabs button { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 8px 10px; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button[aria-selected=true] { color: var(--fg); border-color: var(--gold); }
.tabs button:hover { color: var(--fg); }
.tabs .n { color: var(--muted); margin-left: 6px; font-weight: 500; }

.grid { display: grid; gap: clamp(10px, 1.4vw, 18px); margin-bottom: clamp(10px, 1.4vw, 18px); }
.grid.vertical { grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr)); }
.grid.horizontal { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
/* even rows (sizes set by app.js fitGrid / justify) */
.grid.fit { grid-auto-flow: row dense; }
.card.feat { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.grid.fit .card.feat .frame { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }  /* beats .card.v/.card.h .frame */
.grid.c2.vertical .card.feat .frame { aspect-ratio: 9 / 16; }
.grid.c2.horizontal .card.feat .frame { aspect-ratio: 16 / 9; }
.jgrid { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 18px); }
.jrow { display: flex; gap: clamp(10px, 1.4vw, 18px); }
.jrow .card { min-width: 0; width: auto; }
.grid.photo { display: block; columns: 4 260px; column-gap: clamp(10px, 1.4vw, 18px); }
.grid.photo .card { break-inside: avoid; margin-bottom: clamp(10px, 1.4vw, 18px); }
.grid.photo-ph { grid-template-columns: repeat(auto-fill, minmax(min(46%, 260px), 1fr)); }
/* home page: one row per category */
.home-sec + .home-sec { margin-top: clamp(48px, 6vw, 84px); }
.grid.row-v, .grid.row-p { grid-template-columns: repeat(4, 1fr); }
.grid.row-h { grid-template-columns: repeat(2, 1fr); }
.grid.row-p .frame { aspect-ratio: 4 / 5 !important; }  /* home row: even tiles, the photo page keeps natural shapes */
.work-head h2 .n { color: var(--muted); font-weight: 500; margin-left: 6px; }
.more { font: 700 12px var(--display); font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--fg); }
.more:hover { color: var(--gold); }
.more span { color: var(--gold); }

.card { position: relative; display: block; width: 100%; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; text-align: left; font: inherit; }
.card .frame { position: relative; display: block; overflow: hidden; background: #141414; }
.card.v .frame { aspect-ratio: 9 / 16; }
.card.h .frame { aspect-ratio: 16 / 9; }
.card.p .frame { aspect-ratio: 3 / 2; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.card video { opacity: 0; }
.card.playing video { opacity: 1; }
.card:hover img, .card:hover video { transform: scale(1.03); }
.card .cap { display: block; padding: 10px 2px 0; font-size: 13px; line-height: 1.35; }
.card .cap b { display: block; font-weight: 500; }
.card .cap span { color: var(--muted); }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.card.placeholder { cursor: default; }
.card.placeholder .frame { display: grid; place-items: center; color: #3a3a3a; font: 700 11px var(--display); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; }

/* about */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 56px; margin-top: 28px; max-width: 1000px; }
.role { color: var(--gold); font-size: 12px; margin: 0 0 6px; }
.person h3 { margin: 0 0 8px; font-size: clamp(20px, 2.4vw, 28px); }
.person p:last-child { margin: 0; color: var(--muted); max-width: 38ch; }

/* about page */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 5vw, 72px); max-width: 1240px;
  margin: 0 auto; text-align: center; }
.member .bio { margin-inline: auto !important; }
.member img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #141414; margin-bottom: 24px; }
.member h3 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 36px); line-height: 1.05; }
.member .bio { margin: 0; color: #c9c6be; font-size: 17px; line-height: 1.6; max-width: 46ch; }

/* contact page */
.intake { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); max-width: 1180px; margin: 0 auto; }
.intake-copy .email { margin-top: 6px; }
.intake-copy .note { color: var(--muted); margin: 18px 0 0; max-width: 30ch; }
.intake-form { max-width: none; }
.intake-form .opt { color: #5f5d58; margin-left: 6px; }
.intake-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.intake-form legend { font-size: 12px; color: var(--muted); padding: 0; margin-bottom: 8px; }
.chip { display: inline-block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); color: var(--fg); font-size: 14px; transition: border-color .15s, color .15s; }
.chip:hover span { border-color: #444; }
.chip input:checked + span { border-color: var(--gold); color: var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.send-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.send-row button:disabled { opacity: .5; cursor: default; }
.status { margin: 0; font-size: 14px; color: var(--muted); }
.status.ok { color: var(--gold); }
.status.err { color: #e8826f; }
input.hp { position: absolute; left: -9999px; }
@media (max-width: 760px) { .intake { grid-template-columns: 1fr; } }

/* contact */
.contact h2 { font-size: 12px; }
.email { display: inline-block; overflow-wrap: anywhere; margin: 14px 0 8px; font: 700 clamp(17px, 2.2vw, 28px)/1.1 var(--display); font-stretch: 125%; text-decoration: none; }
.email:hover { color: var(--gold); }
form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 820px; }
label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
label.wide { grid-column: 1 / -1; }
input, textarea { background: #111; border: 1px solid var(--line); color: var(--fg); font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 0; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
button[type=submit] { justify-self: start; background: var(--gold); color: #0a0a0a; border: 0; padding: 14px 28px; font-size: 12px; cursor: pointer; }
button[type=submit]:hover { background: var(--fg); }
.hp { display: none; }

footer { display: flex; align-items: center; justify-content: space-between; padding: clamp(56px, 8vw, 110px) var(--pad) 32px; color: var(--muted); font-size: 12px; }
footer img { height: 18px; width: auto; opacity: .7; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.96); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lb-stage { width: min(94vw, 1500px); height: min(84vh, 100%); display: grid; place-items: center; }
.lb-stage video, .lb-stage img { max-width: 100%; max-height: 84vh; width: auto; height: auto; background: #000; }
.lb-close, .lb-nav { position: absolute; background: none; border: 0; color: var(--fg); font-size: 40px; line-height: 1; cursor: pointer; padding: 12px 18px; opacity: .8; }
.lb-close:hover, .lb-nav:hover { color: var(--gold); opacity: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; font-size: 13px; color: var(--muted); }
.lb-cap b { color: var(--fg); font-weight: 500; }

@media (max-width: 960px) {
  /* nav collapses into a menu */
  .menu-btn { display: grid; gap: 6px; background: none; border: 0; padding: 10px 4px; cursor: pointer; }
  .menu-btn span { display: block; width: 24px; height: 2px; background: var(--fg); transition: transform .2s; }
  .menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,10,10,.97); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 18px; }
  .menu-open nav { display: flex; }
  .menu-open { background: rgba(10,10,10,.97); }
  nav > a, nav .drop-head { padding: 12px 0; font-size: 14px; }
  nav .drop-menu { display: block; position: static; margin: 0 0 6px; padding: 0; border: 0; background: none; min-width: 0; }
  nav .drop-menu a { padding: 8px 0 8px 16px; color: var(--muted); }
  nav .caret { display: none; }
}
@media (max-width: 760px) {
  .hero-reels { grid-template-columns: repeat(3, 1fr); }
  .hero-reels > :nth-child(n+4) { display: none; }
  .hero-reels video, .hero-reels .still { aspect-ratio: 9 / 19; }
  .hero.bare { min-height: 340px; }
  .grid.row-v, .grid.row-p { grid-template-columns: repeat(2, 1fr); }
  .grid.row-h { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav { gap: 14px; }
  .brand img { height: 24px; }
  .lb-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card img, .card video { transition: none; }
}
