/* Real work: reels strip, creatives gallery, logo wall, lightbox, stats, header logo.
   Uses the tokens defined in styles.css. */


/* The spinning badge's corners poke out while rotating; clip without making a scroll box. */
.hero { overflow-x: clip; }

/* ---------- Hero tagline + stats ---------- */
.hero-tagline { margin: 22px 0 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; max-width: 720px; }
.hero-tagline b { background: var(--pop); padding: 0 6px; box-shadow: 3px 3px 0 var(--ink); }
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.stat {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 18px; border: var(--border); border-radius: 14px; background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}
.stat:nth-child(2) { rotate: -2deg; background: var(--sticky); }
.stat:nth-child(3) { rotate: 1.5deg; }
.stat-value { font-weight: 900; font-stretch: 125%; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--accent); transition: color 0.4s; }
.stat-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Reels strip ---------- */
.reel-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 260px);
  gap: 20px; overflow-x: auto; padding: 12px 6px 26px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.work-reel {
  position: relative; margin: 0; scroll-snap-align: start;
  border: var(--border); border-radius: 22px; overflow: hidden; background: var(--ink);
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.work-reel:nth-child(odd) { rotate: -1.5deg; }
.work-reel:nth-child(even) { rotate: 1.5deg; }
.work-reel:hover, .work-reel.playing { rotate: 0deg; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-reel video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #222; }
.work-reel figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); color: #fff; pointer-events: none;
}
.reel-cat { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--pop); color: var(--ink); font-size: 10px; font-weight: 700; }
.reel-title { display: block; margin-top: 6px; font-weight: 800; font-size: 16px; }
.reel-sound {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--paper); font-size: 15px; cursor: pointer;
  display: grid; place-items: center;
}
.reel-sound:focus-visible, .work-reel:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }
.reel-play {
  position: absolute; left: 50%; top: 45%; translate: -50% -50%;
  width: 58px; height: 58px; border-radius: 50%; border: var(--border);
  background: var(--pop); display: grid; place-items: center; font-size: 20px;
  pointer-events: none; transition: opacity 0.2s, scale 0.3s var(--ease-spring);
}
.work-reel.playing .reel-play { opacity: 0; scale: 0.6; }

/* ---------- Creatives gallery ---------- */
.creatives-head { margin-top: clamp(64px, 8vw, 110px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.gallery { columns: 4 240px; column-gap: 18px; }
.tile {
  display: block; width: 100%; margin: 0 0 18px; padding: 0;
  break-inside: avoid; border: var(--border); border-radius: 14px; overflow: hidden;
  background: var(--paper-2); cursor: zoom-in; box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
  animation: bubble 0.45s var(--ease-out) both;
}
.tile:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.tile:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }
.tile img { display: block; width: 100%; height: auto; object-fit: cover; }
.tile.portrait img { aspect-ratio: 4 / 5; }
.tile[hidden] { display: none; }

/* ---------- Logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-tile {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 14px; margin: 0;
  border: var(--border); border-radius: 14px; background: #fff; overflow: hidden;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 0.3s, opacity 0.3s; }
.logo-tile:hover { transform: rotate(-3deg) scale(1.05); box-shadow: 4px 4px 0 var(--ink); }
.logo-tile:hover img { filter: none; opacity: 1; }
.work-more { margin: 44px 0 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  max-width: min(92vw, 1100px); max-height: 92vh; padding: 0;
  border: var(--border); border-radius: 18px; background: var(--ink); box-shadow: 10px 10px 0 var(--accent);
}
.lightbox::backdrop { background: rgba(15, 14, 13, 0.82); backdrop-filter: blur(4px); }
.lightbox[open] { animation: bubble 0.35s var(--ease-out); }
.lightbox img { display: block; max-width: 100%; max-height: 88vh; object-fit: contain; margin: auto; }
.lightbox-close {
  position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%;
  border: var(--border); background: var(--pop); font-size: 26px; font-weight: 900; line-height: 1; cursor: pointer;
}

/* ---------- Founder quote ---------- */
.founder-quote {
  position: relative; margin: 56px 0 0; padding: clamp(28px, 4vw, 48px);
  border: var(--border); border-radius: var(--radius); background: var(--logic); color: #fff;
  box-shadow: var(--shadow-lg); font-size: clamp(22px, 2.8vw, 36px); font-weight: 800; line-height: 1.2;
  rotate: -1deg;
}
.founder-quote::before {
  content: "“"; position: absolute; top: -40px; left: 18px;
  font: 900 120px/1 var(--font-display); color: var(--pop);
}

@media (max-width: 640px) {
  .stat { padding: 8px 12px; }
  .reel-strip { grid-auto-columns: 62vw; }
  .gallery { columns: 2 140px; column-gap: 12px; }
  .tile { margin-bottom: 12px; }
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .logo-tile { padding: 8px; }
}
