@import url('/assets/fonts/fonts.css');

/* ── tokens ──────────────────────────────────────────────────────────────
   Three values. No fourth. No tints, no opacity variants of the pink.
   --ink is the design file's near-black for type; --black is the true
   black of the footer band. Both come from the frozen design.           */
:root {
  --white: #ffffff;
  --pink:  #ec3e96;
  --black: #000000;
  --ink:   #141414;
  --gutter: 6px;
  --margin: clamp(20px, 6.9vw, 88px);
  --band-gap: 48px;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Archivo, Helvetica, Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* skip link — keyboard users land here first */
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--pink); color: var(--white);
  padding: 10px 16px; font-size: 10px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
  transition: top .12s;
}
.skip:focus { top: 8px; }

/* ── masthead ─────────────────────────────────────────────────────────── */
.masthead {
  height: 150px; padding: 0 var(--margin);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.wordmark {
  font-family: 'Big Shoulders Display', Helvetica, sans-serif;
  font-weight: 800; font-size: 30px; line-height: 0.9;
  letter-spacing: 0.01em; color: var(--pink);
}
.byline {
  margin-top: 10px; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500; color: var(--ink);
  white-space: nowrap;
}
.nav {
  display: flex; align-items: center; gap: 22px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.11em;
  text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.nav a { padding: 10px 0; }
.nav a[aria-current="page"] {
  background: var(--pink); color: var(--white); padding: 10px 18px;
}

/* ── shared grid furniture ────────────────────────────────────────────── */
main { padding: 0 var(--margin) 64px; }
.grid { display: grid; gap: var(--gutter); align-items: start; }
.tile { display: flex; flex-direction: column; }
.tile__frame {
  position: relative; overflow: hidden; background: var(--white);
  width: 100%;
}
.tile__frame picture { display: block; width: 100%; height: 100%; }
.tile__frame img,
.tile__frame > video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.tile__frame > video {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .18s linear;
}
.tile__frame > video.is-playing { opacity: 1; }
.ar-16x9 .tile__frame { aspect-ratio: 16 / 9; }
.ar-9x16 .tile__frame { aspect-ratio: 9 / 16; }
.tile__label {
  padding: 8px 0 14px; font-size: 10px; font-weight: 500;
  letter-spacing: 0.11em; line-height: 1.4;
  text-transform: uppercase; color: var(--ink);
}

/* The tile is a real link to the video, so it works with JS off and
   supports middle-click. JS intercepts it and opens the lightbox instead.
   No scale, no shadow, no lift on hover: the loop starting is the
   interaction. */
.tile a.tile__frame { display: block; cursor: pointer; }

/* mobile autoplay progress bar */
.tile__bar {
  position: absolute; left: 0; bottom: 0; height: 5px; width: 0;
  background: var(--pink); z-index: 2;
}

/* ── page: home ───────────────────────────────────────────────────────── */
.page-home .grid { grid-template-columns: repeat(4, 1fr); }

/* ── page: commercial (banded) ────────────────────────────────────────── */
.band + .band { margin-top: var(--band-gap); }
.band-landscape .grid { grid-template-columns: repeat(4, 1fr); }
.band-vertical  .grid { grid-template-columns: repeat(7, 1fr); }

/* ── page: ugc ────────────────────────────────────────────────────────── */
.page-ugc .grid { grid-template-columns: repeat(8, 1fr); }

/* ── page: film & tv — 66/34, off-grid ────────────────────────────────── */
.film { display: flex; gap: var(--gutter); align-items: stretch; }
.film__col { display: flex; flex-direction: column; }
.film__col--wide   { flex: 0 0 66%; gap: 12px; }
.film__col--narrow { flex: 1 1 auto; justify-content: space-between; }

/* ── page: contact ────────────────────────────────────────────────────── */
.bio {
  font-weight: 400; font-size: 15px; line-height: 1.65;
  max-width: 720px; padding-bottom: 64px;
}
.bio em { font-style: italic; }

/* ── footer ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--black); padding: 64px var(--margin);
  display: flex; flex-direction: column; gap: 36px;
}
.footer__email {
  font-family: 'Big Shoulders Display', Helvetica, sans-serif;
  font-weight: 800; font-size: 56px; line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.005em; color: var(--white);
  align-self: flex-start; padding-bottom: 8px;
  border-bottom: 6px solid transparent;
}
.footer__email:hover, .footer__email:focus-visible { border-bottom-color: var(--pink); }
.footer__email .at-break { display: none; }
.footer__clients {
  font-size: 10px; font-weight: 500; letter-spacing: 0.11em;
  line-height: 2.2; text-transform: uppercase; color: var(--white);
  max-width: 900px;
}
.footer__social {
  display: flex; gap: 36px; font-size: 10px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--white);
}
.footer__social a { padding-bottom: 4px; border-bottom: 2px solid transparent; }
.footer__social a:hover, .footer__social a:focus-visible { border-bottom-color: var(--pink); }

/* ── load: staggered fade-in, once, ~300ms total ──────────────────────── */
.tile { opacity: 0; }
.js .tile { animation: fade .28s ease-out forwards; animation-delay: var(--d, 0ms); }
.no-js .tile { opacity: 1; }
@keyframes fade { to { opacity: 1; } }

/* ── lightbox ─────────────────────────────────────────────────────────── */
.lb[hidden] { display: none; }
.lb {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, .92);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px;
}
.lb__stage { width: min(1100px, 100%); }
.lb__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--black); }
.lb--vertical .lb__stage {
  width: auto; display: flex; flex-direction: column; align-items: center;
}
.lb--vertical .lb__frame { aspect-ratio: 9 / 16; height: min(78vh, 900px); width: auto; }
.lb--vertical .lb__caption { text-align: center; }
.lb__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb__caption {
  margin-top: 14px; font-size: 10px; font-weight: 500; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--white); text-align: left;
}
.lb__bar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--margin);
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.lb__bar button {
  background: none; border: 0; color: var(--white); font: inherit;
  letter-spacing: inherit; text-transform: inherit; cursor: pointer;
  padding: 12px; min-width: 44px; min-height: 44px;
}
.lb__bar button:hover { color: var(--pink); }
.lb__nav { display: flex; gap: 8px; }

/* ── mobile ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .masthead {
    height: auto; padding: 26px var(--margin) 0;
    flex-direction: column; align-items: flex-start; gap: 0;
  }
  .wordmark { font-size: 26px; }
  .byline { margin-top: 9px; font-size: 9px; }

  /* full-width row of four. Never a hamburger: the pink fill is the only
     wayfinding this site has, and hiding it breaks navigation. */
  .nav {
    width: 100%; margin-top: 18px; gap: 0;
    font-size: 9px; letter-spacing: 0.06em;
  }
  .nav a {
    flex: 1 1 auto; text-align: center; padding: 14px 2px;
    display: flex; align-items: center; justify-content: center;
    min-height: 44px;
  }
  .nav a[aria-current="page"] { padding: 14px 2px; }

  main { padding: 18px var(--margin) 40px; }
  .page-home    main { padding-left: 0; padding-right: 0; }
  .page-home    .grid { grid-template-columns: repeat(2, 1fr); }
  .page-ugc     .grid { grid-template-columns: repeat(3, 1fr); }

  /* the 16px inset is load-bearing: it is what separates Commercial from
     Home at this width. Do not normalise it away. */
  .page-commercial main { padding-left: 16px; padding-right: 16px; }
  .band-landscape .grid,
  .band-vertical  .grid { grid-template-columns: repeat(2, 1fr); }
  .band + .band { margin-top: 32px; }

  .film { flex-direction: column; gap: 12px; }
  .film__col--wide, .film__col--narrow { flex: 1 1 auto; gap: 12px; justify-content: flex-start; }

  .footer { padding: 30px var(--margin) 36px; gap: 26px; }
  .footer__email { font-size: 29px; line-height: 0.92; }
  .footer__email .at-break { display: block; }   /* break at the @, never mid-domain */
  .footer__clients { line-height: 2.0; }

  .lb { padding: 0; background: var(--black); }  /* full-screen black, not a card */
  .lb__stage { width: 100%; }
  .lb--vertical .lb__frame { height: auto; width: 100%; }
  .lb__caption { padding: 0 16px; }
}

/* ── UGC mobile feed: full-bleed vertical, swipe to advance ───────────── */
.feed[hidden] { display: none; }
.feed {
  position: fixed; inset: 0; z-index: 60; background: var(--black);
  overflow-y: auto; scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
}
.feed__item {
  position: relative; height: 100dvh; scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
}
.feed__item picture { display: block; width: 100%; height: 100%; }
.feed__item iframe, .feed__item img {
  width: 100%; height: 100%; object-fit: cover; border: 0;
}
.feed__caption {
  position: absolute; left: 16px; right: 16px; bottom: 34px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--white);
}
.feed__bar { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--pink); }
.feed__close {
  position: fixed; top: 0; right: 0; z-index: 61;
  background: none; border: 0; color: var(--white);
  font: inherit; font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 18px 20px; min-width: 44px; min-height: 44px; cursor: pointer;
}

/* ── reduced motion: static grid, no loops, no autoplay ───────────────── */
@media (prefers-reduced-motion: reduce) {
  .js .tile { animation: none; opacity: 1; }
  .tile__frame > video { display: none; }
  .tile__bar, .feed__bar { display: none; }
  * { transition: none !important; }
  .feed { scroll-snap-type: none; }
}
