/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  --bg:          #FFF9F0;   /* warm ivory canvas */
  --surface:     #FFFFFF;
  --surface-tint:#FFF1DE;   /* warm hover tint */
  --line:        #F0E2CC;
  --ink:         #2B2016;   /* warm near-black */
  --ink-muted:   #8A7A67;

  --coral:   #FF5A5F;   /* pre-roll accent */
  --coral-deep: #E8434B;
  --teal:    #05A8A0;   /* DOOH accent */
  --teal-deep: #04837C;
  --mustard: #FFC93C;   /* hero flourish */
  --violet:  #7C3AED;   /* branding accent */
  --pink:    #EC4899;   /* graphics accent */

  --font-display: 'Fredoka', sans-serif;
  --font-body:    'Nunito Sans', sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   SIGNATURE COLOR STRIP — a nod to broadcast color bars for a video/DOOH studio
   ========================================================================== */
.colorbar {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--coral) 0 33.3%, var(--mustard) 33.3% 66.6%, var(--teal) 66.6% 100%);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 249, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  text-decoration: none;
  color: var(--ink);
}

.brand span { color: var(--coral); }

.site-nav nav { display: flex; gap: 32px; }

.site-nav nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s ease;
}

.site-nav nav a:hover { color: var(--teal-deep); }

@media (max-width: 640px) {
  .site-nav nav { gap: 18px; }
  .site-nav nav a { font-size: 13px; }
}

/* ==========================================================================
   HERO — colorful blobs + a bright scrolling wall of the work itself
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 76px;
  border-bottom: 1px solid var(--line);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.hero-blobs .b1 { width: 420px; height: 420px; background: var(--coral); top: -160px; left: -100px; }
.hero-blobs .b2 { width: 380px; height: 380px; background: var(--mustard); top: -60px; right: -120px; opacity: 0.4; }
.hero-blobs .b3 { width: 320px; height: 320px; background: var(--teal); bottom: -180px; left: 30%; opacity: 0.28; }

.marquee-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  opacity: 0.9;
  pointer-events: none;
}

.marquee-row {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollX 60s linear infinite;
}

.marquee-row.reverse {
  animation-direction: reverse;
  animation-duration: 70s;
}

.marquee-row img {
  height: 140px;
  width: 248px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(43, 32, 22, 0.14);
}

@keyframes scrollX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,249,240,0.72) 0%, rgba(255,249,240,0.92) 55%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  margin: 0 0 22px;
  color: var(--ink);
}

.hero p {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 0 32px;
}

.btn {
  display: inline-block;
  background: var(--coral);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 90, 95, 0.28);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { background: var(--coral-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal-deep);
  box-shadow: none;
  margin-left: 12px;
}

.btn-ghost:hover { background: var(--teal); color: #fff; }

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.filter-bar {
  position: sticky;
  top: 76px;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.filter-bar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover { color: var(--ink); border-color: var(--ink-muted); }

.filter-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.filter-count {
  margin-left: auto;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   GRID
   ========================================================================== */
.work { padding: 56px 0 100px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(43, 32, 22, 0.12);
}

.card.featured { grid-column: span 2; }

@media (max-width: 640px) {
  .card.featured { grid-column: span 1; }
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.card:hover .card-media img { transform: scale(1.045); }

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 100px;
  color: #fff;
  z-index: 2;
}

.tag.preroll  { background: var(--coral); }
.tag.dooh     { background: var(--teal); }
.tag.branding { background: var(--violet); }
.tag.graphics { background: var(--pink); }

.play-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  background: rgba(43, 32, 22, 0.18);
}

.card:hover .play-glyph { opacity: 1; }

.play-glyph svg { width: 50px; height: 50px; }

.card-body { padding: 18px 20px 22px; }

.card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 4px;
  color: var(--ink);
}

.card-body p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(43, 32, 22, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox.open { display: flex; }

.lightbox-inner { max-width: 980px; width: 100%; }

.lightbox-media {
  width: 100%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.lightbox-media video,
.lightbox-media img { width: 100%; display: block; }

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 18px;
}

.lightbox-meta h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: #FFF9F0;
  margin: 0 0 6px;
}

.lightbox-meta .client {
  color: var(--mustard);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 10px;
}

.lightbox-meta .desc {
  color: #E9DFD1;
  font-size: 14px;
  max-width: 640px;
  margin: 0;
}

.lightbox-close {
  background: #FFF9F0;
  border: none;
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.lightbox-close:hover { background: var(--mustard); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  border-top: 1px solid var(--line);
  padding: 88px 0;
}

.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
}

@media (max-width: 800px) {
  .about .wrap { grid-template-columns: 1fr; gap: 28px; }
}

.about h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  margin: 0;
  line-height: 1.08;
  color: var(--ink);
}

.about p {
  color: var(--ink-muted);
  font-size: 16px;
  margin: 0 0 18px;
  max-width: 60ch;
}

.stat-row { display: flex; gap: 40px; margin-top: 28px; flex-wrap: wrap; }

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--coral-deep);
}

.stat:nth-child(2) b { color: var(--teal-deep); }
.stat:nth-child(3) b { color: var(--ink); }

.stat span {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  border-top: 1px solid var(--line);
  padding: 88px 0 60px;
  position: relative;
  overflow: hidden;
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 50px);
  margin: 0 0 20px;
  max-width: 16ch;
  color: var(--ink);
}

.contact-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.contact-row a.btn { text-decoration: none; }

.contact-detail {
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 700;
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 50px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
