:root {
  --bg: #0b0b0d;
  --bg-alt: #131316;
  --surface: #1a1a1e;
  --line: #2a2a30;
  --text: #f2f2f0;
  --muted: #a3a3a8;
  --silver: #c9ccd3;
  --accent: #e8e9ec;
  --radius: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 4px; }

.kicker {
  font: 600 12px/1.4 var(--font); letter-spacing: .16em; text-transform: uppercase;
  color: var(--silver); margin: 0 0 12px;
}
.display { font-size: clamp(44px, 8vw, 104px); letter-spacing: -0.035em; margin: 0 0 28px; }
.display-sm { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 40px; }
.lead { color: var(--muted); font-size: 19px; max-width: 52ch; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 15px; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: #fff; }
.link { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: var(--text); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(11, 11, 13, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; }
.wordmark {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px;
  font: 700 22px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(180deg, #f7f8fa 0%, #d7dae0 40%, #8e929b 52%, #c9ccd3 70%, #eef0f3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark span { font-size: 9.5px; font-weight: 600; letter-spacing: .52em; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  font: 600 13px/1 var(--font); letter-spacing: .08em; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s;
}
.lang:hover { border-color: var(--silver); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero slider */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 1000px; overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; display: flex; align-items: flex-end; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active img { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.25) 55%, rgba(11,11,13,.95) 100%);
}
.slide-text { position: relative; z-index: 2; width: 100%; padding-bottom: 110px; }
.slide-text .display { max-width: 14ch; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 44px; display: flex; gap: 10px; }
.dot { width: 34px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.3); cursor: pointer; border-radius: 2px; transition: background .3s, width .3s; }
.dot.is-active { background: var(--text); width: 56px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose p { color: #d4d4d8; }
.prose h3 { margin-top: 1.6em; }

/* Projects grid */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  font: 500 14px/1 var(--font); color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--silver); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform .3s; }
.card[hidden] { display: none; }
.card:hover { transform: translateY(-4px); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; }
.card-body h3 { font-size: 19px; margin: 0; }
.tag { font: 600 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 6px 9px; border-radius: 6px; white-space: nowrap; }

/* About */
.stats { display: grid; gap: 24px; margin-top: 40px; }
.stat { border-top: 1px solid var(--line); padding-top: 16px; }
.stat strong { display: block; font: 700 44px/1 var(--display); letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 15px; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li { display: flex; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font: 600 clamp(19px, 2vw, 24px)/1.3 var(--display); letter-spacing: -0.01em; }
.num { font: 500 13px/1 var(--font); color: var(--muted); min-width: 24px; }
.hub {
  margin-top: clamp(48px, 7vw, 88px); padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(120% 140% at 100% 0%, #2a2a31 0%, var(--surface) 55%);
}
.hub h3 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.025em; }
.hub p:not(.kicker) { color: #d4d4d8; font-size: clamp(17px, 1.6vw, 20px); max-width: 68ch; margin: 0; }

/* Clients */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.clients li { aspect-ratio: 1; display: grid; place-items: center; background: #f2f2f0; border-radius: var(--radius); padding: 18%; }
.clients img { width: 100%; height: auto; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.clients li:hover img { filter: none; opacity: 1; }

/* Join */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.join-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.join-card p:not(.kicker) { color: #d4d4d8; }
.join-card .link { font-weight: 600; font-size: 18px; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 24px; }
.big-link { font: 700 clamp(20px, 2.4vw, 30px)/1.2 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.big-link:hover { border-color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner p { margin: 0; font-size: 14px; }
.site-footer .wordmark { font-size: 18px; }
.site-footer .wordmark span { font-size: 7.8px; }
.footer-social { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.footer-social a:hover { color: var(--text); }

/* Project page */
.project-hero { position: relative; height: 78svh; min-height: 480px; max-height: 820px; display: flex; align-items: flex-end; overflow: hidden; }
.project-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 35%, rgba(11,11,13,.96) 100%); }
.project-hero-text { position: relative; z-index: 2; width: 100%; padding-bottom: 32px; }
.project-hero .display { margin: 0; max-width: 16ch; }
.back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.back:hover { color: var(--text); }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.project-layout .prose { font-size: 18px; max-width: 70ch; }
.project-layout .prose > p:first-child { font-size: 22px; line-height: 1.5; color: var(--text); }
.credits-box { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.credits-box dl { margin: 0; }
.credit { padding: 12px 0; border-top: 1px solid var(--line); }
.credit:first-child, .season + .credit { border-top: 0; }
.credit dt { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.credit dd { margin: 0; font-weight: 500; }
.season { font: 700 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--silver); padding: 18px 0 8px; border-top: 1px solid var(--line); margin-top: 8px; }
.season:first-child { padding-top: 0; border: 0; margin: 0; }
.award { width: 120px; margin-top: 20px; }
.media { margin-top: 48px; }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; object-fit: cover; }
.cast { margin-top: 48px; }
.cast ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 24px; }
.cast li { color: #d4d4d8; font-size: 16px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.next-project { position: relative; display: block; overflow: hidden; padding: clamp(72px, 10vw, 120px) 0; }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; transition: opacity .4s, transform .8s; }
.next-project:hover img { opacity: .45; transform: scale(1.03); }
.next-project .wrap { position: relative; }
.next-project .display-sm { margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .project-layout { grid-template-columns: 1fr; }
  .credits-box { position: static; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav ul {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0;
    background: var(--bg); height: calc(100svh - 76px); overflow-y: auto;
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav ul.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav li a { display: block; padding: 14px 0; font-size: 20px; color: var(--text); border-bottom: 1px solid var(--line); }
  .site-header:has(.is-open) { background: var(--bg); }
  .two-col, .join, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .slide-text { padding-bottom: 96px; }
  .wordmark { font-size: 19px; }
  .wordmark span { font-size: 8.2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Legal notice */
.legal { padding-top: clamp(120px, 14vw, 170px); }
.legal .display-sm { margin-bottom: 8px; }
.legal-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; margin-top: 40px; }
.legal-layout .credits-box { top: 100px; }
.legal-layout .credit dd { overflow-wrap: anywhere; }
.legal .prose { max-width: 70ch; }
.legal .prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.6em 0 .6em; }
.legal .prose h2:first-child { margin-top: 0; }
.legal-list { list-style: none; margin: 0; padding: 0; }
.legal-list li { color: #d4d4d8; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-list li:first-child { padding-top: 0; }
.legal-list strong { color: var(--text); font-weight: 600; }
.footer-link { font-size: 14px; color: var(--muted); }
.footer-link:hover { color: var(--text); }
@media (max-width: 1000px) { .legal-layout { grid-template-columns: 1fr; } }
