:root {
  --bg: #131110;
  --bg-2: #1b1716;
  --bg-3: #241f1d;
  --ink: #f2ece4;
  --muted: #c9beb4;
  --dim: #8a7f76;
  --line: #3a3330;
  --red: #e0483d;
  --red-deep: #8e1b16;
  --paper: #f2ece4;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em, h1 em, h2 em { font-style: italic; color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s 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) }
}

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(38px, 5.4vw, 76px); }
.eyebrow, .label {
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red);
}
.label { color: var(--muted); }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 46ch; }
.slate {
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red);
  display: inline-flex; gap: 12px; align-items: center; margin-bottom: 18px;
}
.slate span { color: var(--dim); }
.slate::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.slate-light, .slate-light span { color: #f2c9bf; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #ea5a4f; }
.btn-ghost { border: 1px solid rgba(242,236,228,.35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: 14px; background: var(--red); color: #fff; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--edge);
  transition: background .3s ease, padding .3s ease;
}
.nav.scrolled { background: rgba(19,17,16,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: 12px; }
.nav-name { font-family: var(--serif); font-size: 22px; text-decoration: none; }
.nav-name i { color: var(--red); }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(19,17,16,1) 0%, rgba(19,17,16,.75) 32%, rgba(19,17,16,.2) 70%, rgba(19,17,16,.45) 100%),
    linear-gradient(to right, rgba(19,17,16,.7) 0%, rgba(19,17,16,0) 65%);
}
.hero-inner { position: relative; padding-bottom: clamp(56px, 10vh, 120px); padding-top: 140px; }
.hero h1 { font-size: clamp(44px, 7.6vw, 116px); max-width: 13ch; margin: 18px 0 24px; }
.hero-sub { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.viewfinder { position: absolute; inset: clamp(70px, 9vh, 96px) max(8px, calc(var(--edge) - 28px)) clamp(20px, 4vh, 40px); pointer-events: none; }
.vf { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(242,236,228,.55); }
.vf.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vf-rec, .vf-tc { position: absolute; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: rgba(242,236,228,.8); }
.vf-rec { top: 6px; right: 42px; display: flex; align-items: center; gap: 8px; }
.vf-rec b { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s steps(1) infinite; }
.vf-tc { bottom: 6px; right: 42px; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 600px) { .vf-tc { display: none; } }

/* clients */
.clients { padding: 40px 0 72px; border-bottom: 1px solid var(--line); }
.clients .label { margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 92px; width: 168px; object-fit: contain; padding: 18px 26px; background: var(--paper); border-radius: 6px;
}
.marquee-track img.on-red { background: #b5211b; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 56px; }
.stats dt, .big-stats dt, .olympics-stats dt { font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); color: var(--red); line-height: 1; }
.stats dd, .big-stats dd, .olympics-stats dd { color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats div:last-child { grid-column: span 2; } }

/* sections */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.section-head .slate { margin-bottom: 0; }

/* films */
.film { position: relative; display: block; width: 100%; overflow: hidden; background: #000; aspect-ratio: 16/9; text-decoration: none; border-radius: 4px; }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.film video { opacity: 0; }
.film.previewing video { opacity: 1; }
.film:hover img { transform: scale(1.04); }
.play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(19,17,16,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 9px 16px 9px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink);
  transition: background .2s;
}
.play svg { width: 18px; height: 18px; fill: var(--red); }
.play-link { padding-left: 16px; }
.film:hover .play { background: var(--red); }
.film:hover .play svg { fill: #fff; }

.case { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(72px, 9vw, 120px); }
.case-flip > :first-child { order: 2; }
.case-text h3 { font-size: clamp(34px, 3.6vw, 52px); margin: 12px 0 14px; }
.case-text p { color: var(--muted); margin-top: 12px; max-width: 54ch; }
.case-text p b { color: var(--ink); }
.case-text .case-brief { color: var(--ink); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; margin-top: 0; }
.meta { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 20px 0 8px; display: grid; gap: 6px; }
.meta div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 15px; }
.meta dt { font-weight: 700; color: var(--red); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; padding-top: 3px; }
.meta dd { color: var(--muted); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case-flip > :first-child { order: 0; } }

.more-films { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
figure figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }
figure figcaption b { display: block; color: var(--ink); font-size: 17px; }
@media (max-width: 700px) { .more-films { grid-template-columns: 1fr; } }

/* approach */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; counter-reset: s; }
.steps li { background: var(--bg); padding: 32px 28px 36px; border-top: 3px solid var(--red-deep); transition: border-color .3s; }
.steps li:hover { border-color: var(--red); }
.steps span { font-family: var(--serif); font-size: 40px; color: var(--red); }
.steps h3 { font-family: var(--sans); font-weight: 700; font-size: 22px; margin: 14px 0 10px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.fastest { margin: clamp(56px, 7vw, 96px) 0; }
.fastest-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.fastest-row div { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); padding-left: 22px; }
.fastest-row b { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--red); }
.fastest-row span { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .fastest-row { grid-template-columns: 1fr; } }

.why-title { font-size: clamp(30px, 3vw, 42px); margin-bottom: 28px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-grid > div { background: var(--bg); padding: 30px 30px 32px; border-left: 3px solid var(--red-deep); }
.why-grid h4 { font-size: 20px; margin-bottom: 8px; }
.why-grid p { color: var(--muted); font-size: 15px; }
.why-grid .proof { color: var(--red); font-family: var(--serif); font-style: italic; font-size: 17px; margin-top: 12px; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* reels */
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 12px;
  max-width: calc(var(--max)); margin: 0 auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.reels figure { scroll-snap-align: start; }
.film.reel { aspect-ratio: 9/16; }
.film.reel .play { padding: 10px; }
.reels-inline { padding: 0; margin-top: 28px; grid-auto-columns: minmax(200px, 260px); }
@media (max-width: 700px) { .reels { grid-auto-columns: 62vw; } }

/* AI */
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.big-stats div { border-top: 3px solid var(--red); padding-top: 18px; }
.big-stats dt { font-size: clamp(56px, 8vw, 120px); }
.big-stats dd { font-size: 17px; }
.pipeline { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 48px 0 18px; }
.pipeline li { background: var(--bg-3); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; display: flex; align-items: center; }
.pipeline li:not(:last-child)::after { content: "→"; color: var(--red); margin-left: 16px; }
.pipeline li:last-child { background: var(--red); color: #fff; }
.stack { color: var(--muted); font-size: 15px; }
.stack b { color: var(--ink); }
.sub { font-family: var(--sans); font-weight: 700; font-size: 20px; margin: 64px 0 22px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.sub span { font-weight: 400; color: var(--dim); font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-ai { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid-ai { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-ai { grid-template-columns: 1fr; } .big-stats { grid-template-columns: 1fr; } }

/* cinema */
.still-case { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(72px, 9vw, 120px); }
.stills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stills img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.stills .still-main { grid-column: span 2; }
@media (max-width: 900px) { .still-case { grid-template-columns: 1fr; } .still-case.case-flip > :first-child { order: 0; } }

.film-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.film-strip img { width: 100%; aspect-ratio: 2/1; object-fit: cover; border-radius: 3px; filter: saturate(.9); transition: filter .4s; }
.film-strip figure:hover img { filter: saturate(1.1); }
.film-strip figcaption { color: var(--ink); font-family: var(--serif); font-size: 18px; margin-top: 10px; }
@media (max-width: 760px) { .film-strip { grid-template-columns: 1fr 1fr; } }

/* olympics */
.olympics { background: var(--red-deep); color: #f7f0e8; padding: clamp(80px, 11vw, 140px) 0; }
.olympics-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.olympics h2 em { color: #f7f0e8; }
.olympics .lede { color: #f7f0e8; margin: 18px 0 28px; }
.olympics p { color: #f2c9bf; }
.olympics-stats { display: flex; gap: 48px; border-top: 1px solid #b5463f; padding-top: 22px; margin-bottom: 22px; }
.olympics-stats dt { color: #f7f0e8; }
.olympics-stats dd { color: #f2c9bf; }
.olympics-img { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: end; }
.olympics-img img { width: 100%; object-fit: cover; border-radius: 3px; }
.olympics-img img:first-child { aspect-ratio: 3/2; }
.olympics-img img:last-child { aspect-ratio: 3/4; }
@media (max-width: 900px) { .olympics-inner { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about-portrait { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; }
.about h2 { margin-bottom: 24px; }
.about p { color: var(--muted); margin-top: 14px; max-width: 54ch; font-size: 18px; }
.about .langs { color: var(--dim); font-size: 15px; }
.onset { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: clamp(56px, 7vw, 96px); padding: 0 8px; }
.onset img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(.25); transition: filter .4s; }
.onset img:hover { filter: none; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .onset { grid-template-columns: repeat(3, 1fr); } .onset img:nth-child(n+4) { display: none; } }

/* contact */
.contact { padding: clamp(100px, 14vw, 180px) 0; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 80% 0%, rgba(142,27,22,.45), transparent 60%), var(--bg); }
.contact h2 { font-size: clamp(48px, 9vw, 140px); margin-bottom: 22px; }
.contact h2 em, .hero h1 em { white-space: nowrap; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 56px; }
.contact-list { list-style: none; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 56px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-list span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.contact-list a { text-decoration: none; font-size: 17px; border-bottom: 1px solid transparent; transition: border-color .2s; overflow-wrap: anywhere; }
.contact-list a:hover { border-color: var(--red); }
@media (max-width: 900px) { .contact-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .contact-list { grid-template-columns: 1fr; } }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--edge); color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); max-width: none; }

/* player */
dialog#player {
  width: min(1200px, 94vw); max-height: 94vh; margin: auto; background: #0b0a09; color: var(--ink);
  border: 0; border-radius: 8px; padding: 0; overflow: hidden;
}
dialog#player::backdrop { background: rgba(8,7,6,.9); backdrop-filter: blur(6px); }
dialog#player.vertical { width: min(440px, 94vw); }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px 12px 20px; }
.player-bar p { font-weight: 700; font-size: 15px; }
.player-bar button { width: 40px; height: 40px; border-radius: 50%; font-size: 18px; background: var(--bg-3); flex: none; }
.player-bar button:hover { background: var(--red); }
.player-stage { position: relative; aspect-ratio: 16/9; background: #000; }
dialog#player.vertical .player-stage { aspect-ratio: 9/16; max-height: calc(94vh - 64px); margin: 0 auto; }
.player-stage video, .player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee-track, .vf-rec b { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 600px) { body { font-size: 16px; } .hero-cta .btn { flex: 1 1 auto; justify-content: center; } }
