:root {
  --bg: #000;
  --tile: #141416;
  --tile-2: #1c1c1f;
  --text: #f5f5f7;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #2997ff;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1200px;
  --r: 24px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-snap-type: y mandatory; }
/* every scene locks into place; taller blocks (the statement lock, flat sections) scroll freely inside */
main > .scene, .lock, .flat { scroll-snap-align: start; scroll-snap-stop: always; }
#work > .scene { scroll-snap-align: start; scroll-snap-stop: always; }
.footer { scroll-snap-align: end; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

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

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--text); color: #000; font-weight: 600; font-size: 16px; transition: transform 0.35s var(--ease), background 0.3s; white-space: nowrap; }
.pill:hover { transform: scale(1.03); background: #fff; }
.pill-sm { padding: 8px 16px; font-size: 14px; }
.pill-xl { padding: 18px 32px; font-size: 18px; width: 100%; }
.link { color: var(--blue); font-weight: 500; font-size: 17px; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.chev { font-size: 1.2em; line-height: 1; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(0,0,0,.45); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: rgba(245,245,247,.8); }
.nav-links a:hover { color: #fff; }

/* ---------- scenes: the film ---------- */
/* Each scene is sticky, so the next one slides up and covers it — a cut. */
.scene[hidden] { display: none; }
.scene { position: sticky; top: 0; height: 100svh; min-height: 600px; overflow: hidden; background: var(--bg); display: flex; align-items: flex-end; box-shadow: 0 -40px 120px rgba(0,0,0,.6); }
.scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease), opacity 1s; }
.scene.in .scene-video { transform: scale(1); }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); }
.scene-copy { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 9vh, 110px); opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) 0.25s, transform 1s var(--ease) 0.25s; }
.scene.in .scene-copy { opacity: 1; transform: none; }
.scene .eyebrow { color: rgba(245,245,247,.75); margin-bottom: 16px; }
.hero-title, .scene-title { font-size: clamp(40px, 6.4vw, 88px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; max-width: 13ch; }
.hero-sub, .scene-sub { font-size: clamp(18px, 1.9vw, 24px); color: rgba(245,245,247,.85); margin: 18px 0 28px; max-width: 38ch; letter-spacing: -0.01em; }
.hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: still-in 2.6s var(--ease) both, still-out 1.3s var(--ease) 3.2s both; }
@media (max-width: 860px) { .hero-still { object-position: 50% 30%; } }
@keyframes still-in { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes still-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.hero.in .scene-video { animation: vid-in 1.8s var(--ease) 3.2s both; }
@keyframes vid-in { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero .hero-title { font-size: clamp(40px, 7.2vw, 108px); letter-spacing: -0.045em; max-width: none; }
.hero .scene-copy { transition-delay: 0.6s; text-align: center; padding-bottom: 40px; }
.hero .hero-title { transform-origin: 50% 100%; animation: shrink 1.4s var(--ease) 6s both; }
.hero .scene-shade { animation: shade-out 1.6s var(--ease) 5.4s both; }
@keyframes shrink { to { transform: scale(0.16); opacity: 0.85; } }
@keyframes shade-out { to { opacity: 0.35; } }
.scene-index { position: absolute; top: 76px; left: var(--gutter); font-size: 13px; font-weight: 600; color: rgba(245,245,247,.6); letter-spacing: 0.04em; }
.scene-meta { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.scene .play-btn { display: inline-flex; align-items: center; gap: 10px; }
.scroll-hint { display: none; position: absolute; left: 50%; bottom: 22px; width: 1px; height: 44px; margin-left: -0.5px; background: rgba(255,255,255,.18); overflow: hidden; }
.scroll-hint span { position: absolute; inset: 0; background: #fff; transform: translateY(-100%); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { to { transform: translateY(100%); } }

/* title cards (black, centered text) */
.scene.card { align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); }
.statement-text, .card-title { font-size: clamp(30px, 4.2vw, 60px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; max-width: 20ch; margin: 0 auto; color: var(--muted); opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 1.1s var(--ease) 0.2s, transform 1.1s var(--ease) 0.2s; }
.card-title { color: var(--text); }
.card-kicker { position: absolute; top: 40%; left: 0; right: 0; transform: translateY(-120px); color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.scene.in .statement-text, .scene.in .card-title { opacity: 1; transform: none; }
.lock { position: relative; height: 280svh; }
.lock .scene { top: 0; }
.statement-text .w { color: rgba(245,245,247,.18); transition: color 0.35s var(--ease); }
.statement-text .w.on { color: var(--text); }

/* film scenes: the clip is the whole screen */
.scene.film-scene .scene-copy { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.film-kind { font-size: 14px; font-weight: 600; color: rgba(245,245,247,.7); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.film-client { color: rgba(245,245,247,.8); font-size: clamp(17px, 1.6vw, 22px); margin-top: 12px; }
.play-btn { padding: 14px 22px 14px 18px; }
.play-btn svg { width: 14px; fill: #000; }

/* ---------- flat sections ---------- */
.flat { position: relative; background: var(--bg); padding: clamp(80px, 10vw, 140px) 0; z-index: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.01em; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.section-head.center h2 { max-width: 16ch; }

/* service tiles */
#services { padding-top: 0; margin-top: -1px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 400px; padding: 32px; border-radius: var(--r); background: var(--tile); overflow: hidden; color: inherit; transition: transform 0.6s var(--ease); }
.tile:hover { transform: scale(1.01); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; transition: opacity 0.6s, transform 1.4s var(--ease); }
.tile:hover img { opacity: 0.55; transform: scale(1.04); }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.75)); }
.tile > * { position: relative; }
.tile .eyebrow { color: rgba(245,245,247,.7); }
.tile h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 10px 0; }
.tile p { color: rgba(245,245,247,.85); max-width: 30ch; font-size: 16px; }
.tile ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tile li { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tile-cta { margin-top: 20px; }

/* reels carousel */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--tile); color: var(--text); border: 0; cursor: pointer; transition: background 0.3s, color 0.3s; }
.tab:hover { background: var(--tile-2); }
.tab[aria-selected="true"] { background: var(--text); color: #000; }
.reels-scroller { display: flex; gap: 16px; overflow-x: auto; padding: 4px var(--gutter) 24px; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; }
.reels-scroller::-webkit-scrollbar { display: none; }
.reel { position: relative; flex: none; width: clamp(220px, 22vw, 300px); aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: var(--tile); border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; transition: transform 0.5s var(--ease); animation: rise 0.8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.reel:hover { transform: scale(1.02); }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.8)); }
.play { position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; transition: background 0.3s; }
.play svg { width: 14px; margin-left: 2px; fill: #fff; }
.reel:hover .play { background: var(--text); }
.reel:hover .play svg { fill: #000; }
.reel-meta { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; }
.reel-title { display: block; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; line-height: 1.2; }
.reel-client { display: block; color: rgba(245,245,247,.7); font-size: 13px; margin-top: 4px; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); margin-bottom: 1em; letter-spacing: -0.01em; }
.about-copy p:first-of-type { color: var(--text); font-size: clamp(20px, 2vw, 26px); font-weight: 500; }
.about-links { display: flex; gap: 24px; margin: 8px 0 24px; }
.credit { font-size: 12px !important; color: var(--muted); margin: 0 !important; }

/* contact */
.contact { z-index: 2; }
.composer { max-width: 640px; margin: 0 auto; background: var(--tile); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); }
.to { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.to strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.to span { display: block; font-size: 13px; color: var(--muted); }
.composer fieldset { border: 0; margin: 0; padding: 0; }
.composer legend, .fields label > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: block; padding: 9px 16px; border-radius: 999px; background: var(--tile-2); font-size: 15px; font-weight: 500; transition: background 0.25s, color 0.25s; }
.chip:hover span { background: #27272b; }
.chip input:checked + span { background: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.fields input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--tile-2); border: 1px solid transparent; border-radius: 12px; padding: 13px 14px; transition: border-color 0.2s; }
.fields input::placeholder { color: var(--muted); }
.fields input:focus { outline: none; border-color: var(--blue); }
.thread { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin: 0 0 22px; }
.bubble { background: #0a84ff; color: #fff; border-radius: 20px; border-bottom-right-radius: 6px; padding: 10px 14px; max-width: 86%; font-size: 16px; line-height: 1.35; }
.bubble p::after { content: ""; display: inline-block; width: 2px; height: 1em; background: rgba(255,255,255,.8); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.delivered { font-size: 12px; color: var(--muted); padding-right: 6px; }
.fallback { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
.fallback a { color: var(--blue); }

/* footer */
.footer { position: relative; z-index: 2; background: var(--bg); max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 120px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer nav { display: flex; gap: 20px; }
.footer a:hover { color: var(--text); }

/* player */
.player { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; color: var(--text); }
.player::backdrop { background: rgba(0,0,0,.9); backdrop-filter: blur(10px); }
.player[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; animation: rise 0.5s var(--ease); }
.player-frame { width: min(92vw, 1280px); aspect-ratio: 16 / 9; background: #000; border-radius: 18px; overflow: hidden; }
.player-frame.vertical { width: auto; height: min(84vh, 860px); aspect-ratio: 9 / 16; max-width: 92vw; }
.player-frame.ig { width: min(420px, 92vw); height: min(84vh, 760px); aspect-ratio: auto; background: var(--tile); }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-meta { font-size: 13px; color: var(--muted); text-align: center; padding: 0 16px; }
.player-meta a { color: var(--blue); }
.player-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 16px; cursor: pointer; }
.player-close:hover { background: rgba(255,255,255,.25); }

/* mobile */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .scene { min-height: 560px; }
  .scene.film-scene .scene-copy { flex-direction: column; align-items: flex-start; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 320px; padding: 24px; }
  .about { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav .pill-sm { display: none; }
  .reel { width: 68vw; }
  .scene-copy, .hero-copy { padding-bottom: 110px; }
  .mobile-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; padding: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.6); transform: translateY(160%); transition: transform 0.5s var(--ease); }
  .mobile-cta.show { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .scene-copy, .statement-text, .card-title { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
