:root {
  --bg: #0a0a0a;
  --fg: #f2f1ec;
  --grey: #8c8d8f;
  --line: rgba(242, 241, 236, 0.14);
  --accent: #d7ff3a;
  --accent-ink: #d7ff3a;
  --surface: #151515;
  --white: #f2f1ec;
  --gap: 6px;
  --pad: clamp(14px, 2.2vw, 32px);
  --ff: "Inter Tight", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
video, img { display: block; width: 100%; height: 100%; object-fit: cover; }
::selection { background: var(--accent); color: #000; }

/* ---------- header ---------- */
.header {
  color: #fff;
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  mix-blend-mode: difference;
  font-weight: 600; font-size: 14px; letter-spacing: 0.01em; text-transform: uppercase;
}
.logo { font-weight: 800; letter-spacing: -0.01em; font-size: 16px; }
.nav { display: flex; gap: clamp(14px, 2.5vw, 34px); align-items: center; }
.nav a { opacity: 0.75; transition: opacity 0.2s; }
.nav a:hover, .nav a.active { opacity: 1; }
.nav .cta { opacity: 1; border: 1px solid currentColor; padding: 7px 14px; border-radius: 99px; }

/* ---------- hero ---------- */
.hero, .card, .p-hero, .next, .player, .lightbox { color: var(--white); }
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.hero video { position: absolute; inset: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.75) 100%);
}
.hero-copy {
  position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); z-index: 2;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
}
.hero h1 {
  font-size: clamp(38px, 7.4vw, 124px); line-height: 0.9; letter-spacing: -0.045em; font-weight: 700;
  max-width: 13ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.hero-side p { color: rgba(242,241,236,.8); max-width: 30ch; font-size: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: #000; padding: 12px 20px; border-radius: 99px;
  font-weight: 600; font-size: 14px; transition: transform .3s var(--ease), background .2s;
}
.pill:hover { transform: scale(1.04); background: var(--accent); }
.pill .tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.scroll-hint { position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; opacity: .6; }

/* ---------- work ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap;
  padding: 56px var(--pad) 18px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.04em; line-height: 1; font-weight: 700; }
.section-head h2 sup { font-size: .35em; color: var(--grey); letter-spacing: 0; vertical-align: top; margin-left: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  border: 1px solid var(--line); border-radius: 99px; padding: 7px 13px; font-size: 13px; color: var(--grey);
  transition: all .2s;
}
.filters button span { opacity: .55; margin-left: 4px; font-size: 11px; }
.filters button:hover { color: var(--fg); border-color: var(--grey); }
.filters button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding: 0 var(--gap) var(--gap);
  grid-auto-flow: dense;
}
.card {
  position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 10;
  grid-column: span 4; isolation: isolate; display: block;
}
.card video { position: absolute; inset: 0; }
.card.w8 { grid-column: span 8; aspect-ratio: auto; }
.card.w6 { grid-column: span 6; }
.card.w12 { grid-column: span 12; aspect-ratio: 21 / 9; }
.card video { transition: transform 1.1s var(--ease), filter .6s; transform: scale(1.001); }
.card:hover video { transform: scale(1.045); }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
  transition: opacity .4s;
}
.card .meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
  padding: clamp(12px, 1.4vw, 20px);
}
.card h3 {
  font-size: clamp(18px, 1.9vw, 30px); line-height: 1; letter-spacing: -0.03em; font-weight: 700;
  transform: translateY(0); transition: transform .5s var(--ease);
}
.card.w8 h3, .card.w12 h3 { font-size: clamp(22px, 3vw, 46px); }
.card .sub { display: flex; gap: 8px; font-size: 12px; color: rgba(242,241,236,.75); white-space: nowrap; }
.card .sub .dot { opacity: .5; }
.card .view {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  background: var(--white); color: #000; padding: 6px 10px; border-radius: 99px;
  opacity: 0; transform: translateY(-6px); transition: all .35s var(--ease);
}
.card:hover .view { opacity: 1; transform: none; }
.card:hover h3 { transform: translateY(-3px); }
.card.hide { display: none; }
.card .num { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; color: rgba(242,241,236,.7); font-variant-numeric: tabular-nums; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; margin-top: 60px; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: mq 38s linear infinite; }
.marquee span { font-size: clamp(26px, 3.6vw, 52px); font-weight: 700; letter-spacing: -0.04em; color: var(--grey); white-space: nowrap; }
.marquee span:nth-child(odd) { color: var(--fg); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px var(--pad); padding: 90px var(--pad) 40px; }
.studio .bio { grid-column: 1 / span 8; font-size: clamp(26px, 3.3vw, 52px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.studio .bio .g { color: var(--grey); }
.studio .reel-mini { grid-column: 9 / span 4; align-self: start; aspect-ratio: 4/5; position: relative; overflow: hidden; background: var(--surface); }
.cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 26px; }
.cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); font-weight: 600; margin-bottom: 12px; }
.cols li { list-style: none; font-size: 15px; line-height: 1.6; }
.cols a:hover { color: var(--accent-ink); }

/* ---------- contact footer ---------- */
.contact { padding: 110px var(--pad) 28px; border-top: 1px solid var(--line); margin-top: 60px; }
.contact .kicker { color: var(--grey); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.contact .big {
  display: block; font-size: clamp(44px, 10.5vw, 190px); line-height: .86; letter-spacing: -0.06em; font-weight: 700;
  transition: color .3s;
}
.contact .big:hover { color: var(--accent-ink); }
.contact .big .arrow { display: inline-block; transition: transform .5s var(--ease); }
.contact .big:hover .arrow { transform: translate(12px, -12px); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 70px; font-size: 12px; color: var(--grey); }
.foot a:hover { color: var(--fg); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.96); display: none; align-items: center; justify-content: center; padding: 60px var(--pad) var(--pad); }
.lightbox.open { display: flex; }
.lightbox video, .lightbox img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .close { position: absolute; top: 16px; right: var(--pad); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ---------- project page ---------- */
.p-hero { position: relative; height: 100svh; min-height: 520px; background: #000; overflow: hidden; }
.p-hero .player { position: absolute; inset: 0; }
.p-title {
  position: absolute; left: var(--pad); bottom: var(--pad); right: var(--pad); z-index: 3; pointer-events: none;
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  transition: opacity .5s;
}
.p-title h1 { font-size: clamp(40px, 8vw, 140px); line-height: .88; letter-spacing: -0.05em; font-weight: 700; max-width: 14ch; }
.p-title .sub { display: flex; gap: 10px; font-size: 14px; color: rgba(242,241,236,.8); white-space: nowrap; }
.p-hero.playing .p-title { opacity: 0; }

.player { position: relative; background: var(--surface); overflow: hidden; }
.player video { object-fit: cover; }
.player.contain video { object-fit: contain; background: #000; }
.player::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
  transition: opacity .4s;
}
.player.playing::after, .player.playing .play { opacity: 0; pointer-events: none; }
.play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: clamp(64px, 7vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(242,241,236,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(242,241,236,.35);
  display: grid; place-items: center;
  transition: transform .4s var(--ease), background .25s, opacity .3s;
}
.play::before { content: ""; margin-left: 5px; border-left: 18px solid var(--white); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.player:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); border-color: var(--accent); }
.player:hover .play::before { border-left-color: #000; }
.player .dur { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 11px; color: rgba(242,241,236,.8); font-variant-numeric: tabular-nums; transition: opacity .3s; }
.player.playing .dur { opacity: 0; }
.p-hero .play { width: clamp(84px, 9vw, 132px); }
.p-hero .play::before { border-left-width: 24px; border-top-width: 14px; border-bottom-width: 14px; margin-left: 7px; }

.p-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px var(--pad); padding: 40px var(--pad) 30px; }
.p-body .credits { grid-column: 1 / span 5; }
.p-body .credits dl { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; border-top: 1px solid var(--line); }
.p-body dt, .p-body dd { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.p-body dt { color: var(--grey); padding-right: 12px; }
.p-body .intro { grid-column: 7 / span 6; font-size: clamp(20px, 2.1vw, 32px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
.p-body .intro .g { color: var(--grey); }
.p-body h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); font-weight: 600; margin-bottom: 12px; }

.media { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: 0 var(--gap); }
.media > * { grid-column: span 12; aspect-ratio: 16 / 9; }
.media > .half { grid-column: span 6; aspect-ratio: 4 / 5; }
.media .img { cursor: zoom-in; overflow: hidden; background: var(--surface); }
.media .img img { transition: transform 1s var(--ease); }
.media .img:hover img { transform: scale(1.03); }

.next { position: relative; display: block; height: 70svh; min-height: 380px; margin-top: var(--gap); overflow: hidden; }
.next::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); transition: background .5s; }
.next:hover::after { background: rgba(0,0,0,.2); }
.next .lbl { position: absolute; z-index: 2; left: var(--pad); top: var(--pad); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.next h2 { position: absolute; z-index: 2; left: var(--pad); bottom: var(--pad); font-size: clamp(40px, 8vw, 140px); line-height: .88; letter-spacing: -0.05em; font-weight: 700; max-width: 14ch; }
.next video { transition: transform 1.2s var(--ease); }
.next:hover video { transform: scale(1.04); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .card, .card.w6 { grid-column: span 6; }
  .card.w8, .card.w12 { grid-column: span 12; aspect-ratio: 16 / 9; }
  .studio .bio { grid-column: 1 / -1; }
  .studio .reel-mini { grid-column: 1 / -1; aspect-ratio: 16/9; }
  .cols { grid-template-columns: repeat(2, 1fr); }
  .p-body .credits, .p-body .intro { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gap: 4px; }
  .nav a:not(.cta):not(.keep) { display: none; }
  .card, .card.w6, .card.w8, .card.w12 { grid-column: span 12; aspect-ratio: 16 / 10; }
  .card .view { opacity: 1; transform: none; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero-side { align-items: flex-start; text-align: left; }
  .media > .half { grid-column: span 12; }
  .p-title { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .rv { opacity: 1; transform: none; }
}

.player.playing video { object-fit: contain; background: #000; }
.p-hero .dur { display: none; }
.dur:empty { display: none; }
.player video[poster] { background: var(--surface); }

/* touch devices: no hover, keep labels readable, big tap targets */
@media (hover: none) {
  .card .view { opacity: 1; transform: none; }
  .card:hover video, .next:hover video, .media .img:hover img { transform: none; }
}
@media (max-width: 640px) {
  .header { padding: 12px 16px; font-size: 12px; }
  .logo { font-size: 14px; }
  .nav { gap: 10px; }
  .nav .cta { padding: 8px 12px; }
  .hero { height: 88svh; }
  .hero h1 { font-size: clamp(36px, 11.5vw, 60px); }
  .scroll-hint { display: none; }
  .section-head { padding: 40px 16px 14px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; width: calc(100% + 32px); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; padding: 9px 14px; }
  .card h3 { font-size: 22px; }
  .card .num { display: none; }
  .card .view { top: auto; bottom: 14px; right: 14px; display: none; }
  .studio { padding: 60px 16px 20px; gap: 28px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .contact { padding: 70px 16px 24px; }
  .foot { flex-direction: column; margin-top: 44px; }
  .p-hero { height: 70svh; min-height: 420px; }
  .p-title h1 { font-size: clamp(34px, 11vw, 56px); }
  .p-body { padding: 28px 16px 20px; }
  .media > * { aspect-ratio: 16 / 10; }
  .media > .half { aspect-ratio: 4 / 5; }
  .next { height: 52svh; }
  .next h2 { font-size: clamp(34px, 11vw, 56px); }
  .lightbox { padding: 56px 0 0; }
}

section[id] { scroll-margin-top: 56px; }
.studio .reel-mini video { position: absolute; inset: 0; }

/* ---------- theme toggle (minimal switch) ---------- */
.theme-toggle { position: relative; width: 34px; height: 18px; border: 1px solid currentColor; border-radius: 99px; padding: 0; flex: none; }
.theme-toggle span { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: currentColor; transition: transform .35s var(--ease); }
[data-theme="light"] .theme-toggle span { transform: translateX(16px); }
.theme-toggle::after { content: ""; position: absolute; inset: -13px -6px; } /* 44px touch target */
body { transition: background-color .4s var(--ease), color .4s var(--ease); }

[data-theme="light"] {
  --bg: #f6f5f1; --fg: #0c0c0c; --grey: #75767a; --line: rgba(12, 12, 12, 0.14);
  --accent-ink: #4d5c00; --surface: #e6e5e0;
}
