:root {
  --red: #ff1a1a;
  --black: #0d0d0d;
  --white: #ffffff;
  --grey: #6b6b6b;
  --line: #e6e6e6;
  --pad: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--black); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, .logo { font-family: Unbounded, sans-serif; text-transform: uppercase; letter-spacing: -0.01em; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 18px var(--pad); color: var(--white); transition: background .25s ease, color .25s ease; }
.top.solid { background: rgba(255,255,255,.94); color: var(--black); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { font-weight: 900; font-size: 15px; }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; }
.top nav a:hover { opacity: .6; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; border: 1px solid currentColor; border-radius: 99px; padding: 6px 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #00ff5a; box-shadow: 0 0 0 0 rgba(0,255,90,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(0,255,90,0); } 100% { box-shadow: 0 0 0 0 rgba(0,255,90,0); } }

/* hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--black); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.75) 100%); }
.hero-text { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(32px, 7vh, 80px); color: var(--white); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 14px; }
.hero h1 { font-weight: 900; font-size: clamp(44px, 9.5vw, 150px); line-height: .92; }
.logline { font-size: clamp(17px, 1.6vw, 24px); max-width: 640px; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; border-radius: 99px; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-ghost { border: 1.5px solid var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }

/* client marquee */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 22px; text-transform: uppercase; color: #bdbdbd; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
section { padding: clamp(64px, 10vw, 140px) var(--pad); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head h2 { font-weight: 900; font-size: clamp(36px, 6vw, 88px); line-height: .95; }
.section-head p { max-width: 380px; color: var(--grey); }

/* work grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.media video { opacity: 0; transition: opacity .3s ease, transform .6s ease; }
.card.playing .media video { opacity: 1; }
.card:hover .media img, .card:hover .media video { transform: scale(1.03); }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.meta h3 { font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); }
.tag { flex-shrink: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border: 1px solid var(--black); border-radius: 99px; }
.card p { margin-top: 6px; color: var(--grey); font-size: 14px; }
.card:hover h3 { color: var(--red); }

/* process */
.process { background: var(--black); color: var(--white); }
.process .section-head p { color: #9a9a9a; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { border-top: 1px solid #333; padding-top: 20px; }
.steps span { font-family: Unbounded, sans-serif; font-weight: 900; color: var(--red); font-size: 14px; }
.steps h4 { font-weight: 700; font-size: 20px; margin: 10px 0 8px; }
.steps p { color: #b5b5b5; font-size: 15px; }

/* about */
.about h2 { font-weight: 900; font-size: clamp(32px, 5.4vw, 80px); line-height: .98; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; max-width: 1100px; font-size: 18px; }

/* contact */
.contact { background: var(--red); color: var(--white); padding: clamp(72px, 12vw, 160px) var(--pad) 32px; }
.mail { display: block; font-family: Unbounded, sans-serif; font-weight: 900; font-size: clamp(28px, 7vw, 110px); line-height: 1; word-break: break-all; }
.mail:hover { color: var(--black); }
.hours { margin-top: 14px; font-size: 15px; opacity: .85; }
.links { display: flex; gap: 28px; margin-top: 32px; font-weight: 600; font-size: 18px; }
.links a, .links button { border-bottom: 2px solid currentColor; }
.copy { margin-top: 80px; font-size: 13px; opacity: .8; }

/* case pages */
.case-head { padding: 120px var(--pad) 32px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.back { width: 100%; font-weight: 600; font-size: 14px; color: var(--grey); }
.back:hover { color: var(--red); }
.case-head h1 { font-weight: 900; font-size: clamp(40px, 8vw, 120px); line-height: .92; }
.case-head .tag { margin-bottom: 10px; }
.case-film { padding: 0 var(--pad); }
.film { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.case-body { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.case-meta { display: grid; gap: 18px; align-content: start; }
.case-meta dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); }
.case-meta dd { font-size: 15px; margin-top: 2px; }
.case-text p { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; max-width: 760px; }
.case-text p + p { margin-top: 18px; }
.case-extra { padding-top: 0; }
.case-extra h3 { font-weight: 900; font-size: 28px; margin-bottom: 18px; }
.stills { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 0; }
.stills img:only-child { grid-column: 1 / -1; }
.case-loops { padding-top: 0; }
.case-loops h3 { font-weight: 900; font-size: 28px; margin-bottom: 18px; }
.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.loop-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.loop-grid video:only-child { grid-column: 1 / -1; aspect-ratio: auto; }
.stills img, .stills video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #111; }
.next { display: flex; flex-direction: column; gap: 8px; padding: clamp(48px, 8vw, 110px) var(--pad); border-top: 1px solid var(--line); }
.next span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); }
.next strong { font-family: Unbounded, sans-serif; font-weight: 900; font-size: clamp(32px, 6vw, 88px); text-transform: uppercase; line-height: .95; }
.next:hover strong { color: var(--red); }
.contact-small { padding-top: clamp(56px, 8vw, 100px); }
.contact-small .mail { font-size: clamp(26px, 5vw, 72px); }

/* AI and Lab pages */
.top nav a.current { color: var(--red); }
.page-head { padding: 130px var(--pad) 24px; }
.page-head h1 { font-weight: 900; font-size: clamp(48px, 10vw, 150px); line-height: .9; }
.lead { font-size: clamp(18px, 1.7vw, 26px); line-height: 1.45; max-width: 820px; margin-top: 28px; }
.ai-projects { padding-top: 48px; }
.ai-projects .grid { grid-template-columns: repeat(4, 1fr); gap: 40px 16px; }
@media (max-width: 1100px) { .ai-projects .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .ai-projects .grid { grid-template-columns: 1fr; } }
.loops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.loops video { width: 100%; aspect-ratio: 1.385; object-fit: cover; background: #111; }
.group { font-weight: 700; font-size: clamp(18px, 2vw, 26px); margin: 48px 0 16px; }
.group span { font-family: Inter, sans-serif; font-weight: 500; font-size: 15px; text-transform: none; color: var(--grey); margin-left: 10px; }
.masonry { columns: 3 260px; column-gap: 16px; }
.masonry-4 { columns: 4 220px; }
.masonry img { width: 100%; display: block; margin-bottom: 16px; break-inside: avoid; background: #f2f2f2; }
.concepts .masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; columns: auto; }
.concepts .masonry img { aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 0; }
.concepts .masonry img.big { grid-column: 1 / -1; }
@media (max-width: 700px) { .concepts .masonry { grid-template-columns: 1fr; } }
/* columns sized by aspect ratio (9:16, 16:9, 1:1) so the three videos share one height */
.lab-motion { display: grid; grid-template-columns: .5625fr 1.778fr 1fr; gap: 16px; padding-top: 32px; padding-bottom: 0; }
.lab-motion video { display: block; width: 100%; background: #111; }
.lab-motion figcaption { margin-top: 8px; font-size: 14px; color: var(--grey); }
.lab-grid { padding-top: 32px; }
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.teaser { position: relative; min-height: 420px; overflow: hidden; display: flex; align-items: flex-end; padding: 32px; color: var(--white); background: #111; }
.teaser img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .6s ease, opacity .3s ease; }
.teaser:hover img { transform: scale(1.04); opacity: .9; }
.teaser div { position: relative; }
.teaser h3 { font-weight: 900; font-size: clamp(32px, 4.5vw, 64px); line-height: .95; }
.teaser p { margin-top: 10px; max-width: 420px; font-size: 16px; }

/* reel modal */
.reel-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: var(--pad); }
.reel-modal[hidden] { display: none; }
.reel-video { width: min(1280px, 100%); max-height: 86vh; background: #000; }
.reel-close { position: absolute; top: 14px; right: 22px; color: var(--white); font-size: 40px; line-height: 1; }

@media (max-width: 760px) {
  .top nav { display: none; }
  .status { margin-left: auto; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-cols { grid-template-columns: 1fr; font-size: 16px; }
  .case-body { grid-template-columns: 1fr; gap: 32px; }
  .teasers, .loops, .lab-motion { grid-template-columns: 1fr; }
  .teaser { min-height: 300px; }
  .stills, .loop-grid { grid-template-columns: 1fr; }
}
