/* =========================================================
   OMNI HOUSE — site styles
   Colors & fonts live in :root so they're easy to change.
   ========================================================= */
:root {
  --ink: #090909;          /* page background */
  --panel: #151515;        /* card background */
  --paper: #f2f0eb;        /* main text */
  --muted: #a9a7a1;        /* secondary text */
  --dim: #777570;          /* tertiary text */
  --lime: #d5ff00;         /* accent */
  --display: "Big Shoulders", "Big Shoulders Display", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --pad: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- small type helpers ---------- */
.eyebrow {
  font: 600 11px/1 var(--body);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lime);
}
.display {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: .86;
}

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 0 var(--pad);
  background: rgba(9, 9, 9, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav__brand { font: 700 14px/1 var(--body); letter-spacing: 1px; }
.nav__links { display: flex; gap: 20px; }
.nav__links a {
  position: relative;
  font: 500 12px/1 var(--body); letter-spacing: .8px;
  padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--lime); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px;
  border-radius: 2px;
  font: 700 12px/1 var(--body); letter-spacing: .7px; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--paper); }
.btn--ghost { border: 1px solid var(--paper); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 96px 0; }

/* ---------- media frames (hover zoom) ---------- */
.frame { position: relative; overflow: hidden; border-radius: 2px; background: var(--panel); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.frame:hover img { transform: scale(1.04); }

/* =========================================================
   HOME — HERO
   ========================================================= */
.hero {
  position: relative;
  margin: 0; /* full width: background reaches the screen edges */
  min-height: calc(100svh - 46px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))) 32px; /* keeps text in line with the page column */
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.hero__bg video { opacity: 1; }
.hero__bg::after { /* soft fade at the bottom so the tagline reads */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(9,9,9,0) 55%, rgba(9,9,9,.85) 100%);
}
.hero .hero__bg::after { /* reel: darken the left (title) and bottom (credits) so text stays readable on bright shots */
  background:
    linear-gradient(90deg, rgba(9,9,9,.62) 0%, rgba(9,9,9,.28) 45%, rgba(9,9,9,0) 75%),
    linear-gradient(to bottom, rgba(9,9,9,.35) 0%, rgba(9,9,9,0) 28%, rgba(9,9,9,0) 48%, rgba(9,9,9,.88) 100%);
}
.hero > *:not(.hero__bg) { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(84px, 13vw, 150px); font-weight: 800; letter-spacing: -3px; line-height: .72; margin: 18px 0 24px; padding-top: .1em; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* hero credits: brands + artists */
.credits { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 56px; margin-top: 26px; }
.hero__foot .credits__label { font: 600 10px/1 var(--body); letter-spacing: 1.4px; text-transform: uppercase; color: rgba(242,240,235,.62); margin-bottom: 12px; }
.credits__logos { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; min-height: 26px; }
.credits__logos li { display: flex; align-items: center; opacity: .92; transition: opacity .25s; }
.credits__logos li:hover { opacity: 1; }
.credits__logos img { display: block; width: auto; }
.credits .credits__mcd { width: 27px; height: 24px; background: #fff; }
.hero__foot .credits__names { font: 700 21px/1 var(--display); letter-spacing: .4px; text-transform: uppercase; color: var(--paper); min-height: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; }
.credits__names i { font-style: normal; color: rgba(242,240,235,.38); font-weight: 600; }
.hero__foot p { font-size: 16px; line-height: 1.35; }
.hero__foot .tagline { color: var(--lime); }
.scroll-cue { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--body); letter-spacing: 1px; }
.scroll-cue svg { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* hero intro: image settles in, copy rises */
.intro .hero__bg img { animation: settle 1.8s var(--ease) both; }
.intro .hero__bg video { animation: settle-full 1.8s var(--ease) both; }
.intro [data-intro] { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
@keyframes settle { from { opacity: 0; transform: scale(1.12); } to { opacity: .7; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* =========================================================
   HOME — FRAMES GALLERY
   ========================================================= */
.frames .eyebrow { margin-bottom: 56px; }
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.frames .feature { aspect-ratio: 1136 / 520; margin-bottom: 12px; }
.frames .grid--3 .frame { aspect-ratio: 368 / 250; }
.frames .grid--2 { margin-top: 16px; }
.frames .grid--2 .frame { aspect-ratio: 560 / 360; }
/* staggered offsets, like the original */
.stagger > :nth-child(2) { margin-top: 16px; }
.stagger > :nth-child(3) { margin-top: 32px; }

/* =========================================================
   HOME — SELECTED WORK
   ========================================================= */
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 60px; }
.work__head h2 { font-size: clamp(56px, 7vw, 72px); font-weight: 700; letter-spacing: -1px; }
.work__head .eyebrow { font-weight: 500; font-size: 12px; }

.chapter { border-top: 1px solid rgba(242,240,235,.14); padding-top: 24px; margin-bottom: 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.chapter h3 { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: .82; text-transform: uppercase; }

/* commercial */
.commercial { display: grid; grid-template-columns: 453fr 659fr; gap: 24px; align-items: end; }
.commercial h3 { font-family: var(--display); font-size: 56px; line-height: .9; text-transform: uppercase; margin-bottom: 12px; }
.commercial p { color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 453px; }
.commercial video { width: 100%; aspect-ratio: 659 / 390; object-fit: cover; border-radius: 2px; }

.brands { margin: 40px 0 56px; text-align: center; }
.brands .eyebrow { color: var(--dim); margin-bottom: 26px; }
.brands__row { display: flex; justify-content: center; align-items: center; gap: 20px 48px; flex-wrap: wrap; }
.brand { height: 58px; display: flex; align-items: center; justify-content: center; opacity: .9; transition: opacity .3s, transform .3s var(--ease); }
.brand:hover { opacity: 1; transform: translateY(-3px); }
.brand img { height: 100%; width: 100%; object-fit: cover; }
.brand--mcd { width: 58px; }
.brand--mcd span, .credits__mcd { /* McDonald’s arches drawn with a CSS mask */
  display: block; width: 58px; height: 58px; background: #ffc72c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath transform='translate(0 1.011)' d='M11.495.993C12.873.993 13.99 6.803 13.99 13.979H16C16 6.253 13.972 0 11.489 0 10.071 0 8.818 1.873 7.991 4.818 7.163 1.874 5.91 0 4.503 0 2.021 0 0 6.248 0 13.973h2.009c0-7.175 1.106-12.98 2.483-12.98s2.494 5.367 2.494 11.987h1.998c0-6.62 1.123-11.987 2.5-11.987Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath transform='translate(0 1.011)' d='M11.495.993C12.873.993 13.99 6.803 13.99 13.979H16C16 6.253 13.972 0 11.489 0 10.071 0 8.818 1.873 7.991 4.818 7.163 1.874 5.91 0 4.503 0 2.021 0 0 6.248 0 13.973h2.009c0-7.175 1.106-12.98 2.483-12.98s2.494 5.367 2.494 11.987h1.998c0-6.62 1.123-11.987 2.5-11.987Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.brand--snickers { width: 150px; }
.brand--turbotax { position: relative; width: 188px; }
.brand--turbotax img { filter: brightness(0) invert(1); }
.brand--turbotax .mark { position: absolute; left: 0; top: 7px; width: 44px; height: 44px; border-radius: 50%; background: #d8322a; display: grid; place-items: center; }
.brand--walmart { width: 112px; }

.stills-label { margin: 0 0 24px; }
.stills .frame { aspect-ratio: 368 / 260; }
.stills { margin-bottom: 56px; }

/* video cards (YouTube, click to play) */
.player { position: relative; background: #000; border-radius: 2px; overflow: hidden; cursor: pointer; }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player img { transition: transform 1.2s var(--ease), opacity .4s; }
.player:hover img { transform: scale(1.03); }
.player__btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; border: 0; border-radius: 12px;
  background: rgba(9,9,9,.8); cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, transform .25s var(--ease);
}
.player:hover .player__btn { background: var(--lime); transform: translate(-50%, -50%) scale(1.08); }
.player__btn svg { fill: var(--paper); transition: fill .25s; }
.player:hover .player__btn svg { fill: var(--ink); }
.player.is-playing { cursor: default; }

/* looping clip blocks (music video + narrative) */
.reel { position: relative; background: #000; border-radius: 2px; overflow: hidden; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.mv .reel { aspect-ratio: 16 / 9; }
.narrative .reel { aspect-ratio: 16 / 9; }
.reel__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0 28px; }
.reel__meta h3 { font: 600 14px/1 var(--body); letter-spacing: .3px; text-transform: uppercase; }
.watch {
  display: inline-flex; gap: 6px; align-items: center;
  font: 600 11px/1 var(--body); letter-spacing: 1px; color: var(--lime);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color .25s, gap .25s var(--ease);
}
.watch:hover { border-color: var(--lime); gap: 10px; }

.card { background: var(--panel); }
.mv .player { aspect-ratio: 1136 / 600; }
.mv__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; }
.mv__meta h3 { font: 600 14px/1 var(--body); letter-spacing: .3px; text-transform: uppercase; }
.mv__meta p { font: 500 11px/1 var(--body); letter-spacing: .8px; color: var(--muted); }
.mv { margin-bottom: 44px; }

.narrative { padding: 20px 20px 24px; }
.narrative__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.narrative__head h3 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6vw, 68px); letter-spacing: -1px; line-height: .84; text-transform: uppercase; }
.narrative .player { aspect-ratio: 1096 / 420; margin-bottom: 16px; }
.narrative .stills-label { margin-bottom: 16px; }
.narrative .grid--2 { gap: 16px; }
.narrative .grid--2 .frame { aspect-ratio: 540 / 260; }
.narrative .grid--2 > :nth-child(2n) { margin-top: 0; }
.narrative .grid--2 > :nth-child(3) { margin-top: 28px; }
.narrative .grid--2 > :nth-child(4) { margin-top: 28px; transform: translateY(8px); }

/* =========================================================
   HOME — THE HOUSE (lime)
   ========================================================= */
.house { background: var(--lime); color: var(--ink); padding: 96px max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); }
.house__top { display: grid; grid-template-columns: 175px 1fr; gap: 0; margin-bottom: 88px; }
.house__top .eyebrow { color: var(--ink); font-weight: 700; font-size: 12px; }
.house__top h2 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 60px); letter-spacing: -1px; line-height: .92; text-transform: uppercase; max-width: 660px; }
.house .frame { aspect-ratio: 1136 / 480; margin-bottom: 36px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 0 16px; }
.pillar { border-top: 1px solid rgba(9,9,9,.3); padding-top: 18px; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .3s; }
.pillar:hover { border-color: var(--ink); }
.pillar span { font: 600 12px/1 var(--body); }
.pillar strong { font: 700 16px/1.1 var(--body); letter-spacing: .3px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { max-width: var(--max); margin: 0 auto; padding: 96px var(--pad) 36px; }
.footer h2 { font-size: clamp(64px, 10vw, 112px); font-weight: 800; letter-spacing: -2px; line-height: .76; padding-top: .1em; margin-bottom: 32px; }
.footer__cta { margin-bottom: 56px; }
.footer h2 em { font-style: normal; }
.footer__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.footer__contact { font: 500 14px/1.5 var(--body); letter-spacing: .4px; }
.footer__contact a:hover { color: var(--lime); }
.footer__follow { font: 600 11px/1 var(--body); letter-spacing: 1px; display: inline-flex; gap: 8px; align-items: center; }
.footer__follow:hover { color: var(--lime); }
.footer__legal { font: 500 10px/1 var(--body); letter-spacing: 1px; color: var(--dim); }

/* =========================================================
   STUDIO PAGE
   ========================================================= */
.s-hero { position: relative; min-height: 720px; padding: 64px max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.s-hero .hero__bg img { opacity: 1; }
.s-hero .hero__bg::after { background: linear-gradient(to bottom, rgba(9,9,9,.55), rgba(9,9,9,.1) 45%, rgba(9,9,9,.75)); }
.s-hero > *:not(.hero__bg) { position: relative; z-index: 1; }
.intro .s-hero .hero__bg img { animation-name: settle-full; }
@keyframes settle-full { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
.s-hero h1 { font-size: clamp(84px, 11vw, 132px); font-weight: 800; letter-spacing: -2px; line-height: .75; margin-top: 14px; padding-top: .1em; max-width: 640px; }
.s-hero__foot { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.s-hero__foot p { max-width: 410px; font-size: 16px; line-height: 1.4; }

.rooms__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.rooms__head h2 { font-size: clamp(56px, 7vw, 72px); font-weight: 700; letter-spacing: -1px; max-width: 460px; }
.rooms .tall { aspect-ratio: 560 / 620; }
.rooms .wide { aspect-ratio: 560 / 380; }

.ready { background: var(--lime); color: var(--ink); padding: 96px max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); display: grid; grid-template-columns: 468px 1fr; }
.ready h2 { font-size: 72px; font-weight: 800; letter-spacing: -1px; line-height: .82; }
.ready p { font-size: 17px; line-height: 1.45; max-width: 440px; margin-bottom: 20px; }

/* =========================================================
   SCROLL REVEAL — elements fade up as they enter the screen.
   Add  data-reveal  to any element; data-reveal="40" sets the rise distance.
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--rise, 28px));
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .section { padding: 72px 0; }
  .commercial { grid-template-columns: 1fr; }
  .commercial video { order: -1; }
  .house__top { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .ready { grid-template-columns: 1fr; gap: 28px; }
  .ready h2 { font-size: 64px; }
}
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .nav__links { gap: 14px; }
  .hero { margin-top: 0; min-height: 88svh; }
  .hero h1 { letter-spacing: -2px; }
  .grid--3, .grid--2, .pillars { grid-template-columns: 1fr; }
  .stagger > :nth-child(n) { margin-top: 0 !important; transform: none !important; }
  .frames .grid--2 { margin-top: 16px; }
  .chapter h3 { font-size: 34px; }
  .chapter { flex-direction: column-reverse; align-items: flex-start; }
  .narrative { padding: 14px; }
  .narrative__head { flex-direction: column; align-items: flex-start; }
  .narrative .player, .mv .player { aspect-ratio: 16 / 9; }
  .pillars { gap: 0; padding: 0; }
  .pillar { min-height: 92px; padding-bottom: 18px; }
  .house { padding: 64px var(--pad); }
  .s-hero { min-height: 88svh; padding-top: 40px; }
  .s-hero__foot { gap: 20px; }
  .rooms .tall { aspect-ratio: 4 / 5; }
  .brands__row { gap: 24px 32px; }
  .brand { height: 44px; }
  .brand--mcd, .brand--mcd span { width: 44px; height: 44px; }
  .credits { gap: 18px; margin-top: 20px; }
  .credits__logos { gap: 12px 16px; flex-wrap: nowrap; }
  .credits__logos img[alt="Snickers"] { height: 16px !important; }
  .credits__logos img[alt="TurboTax"] { height: 19px !important; }
  .credits__logos img[alt="Walmart"] { height: 18px !important; }
  .credits .credits__mcd { width: 23px; height: 20px; }
  .hero__foot .credits__names { font-size: 18px; }
  .hero .scroll-cue { display: none; }
  .brand--turbotax { width: 143px; }
  .brand--turbotax .mark { width: 34px; height: 34px; top: 5px; }
  .brand--turbotax .mark svg { width: 17px; height: 17px; }
  .brand--snickers { width: 114px; }
  .brand--walmart { width: 85px; }
}
