/* ═══ RESET ══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ═══ TOKENS ═════════════════════════════════════════ */
:root {
  --yellow:   #F5C518;
  --black:    #000000;
  --surface:  #111111;
  --surface2: #242424;
  --text:     #EDEDED;
  --muted:    #A1A1AA;
  --border:   rgba(255,255,255,0.1);
  --pad-x:    clamp(20px, 5vw, 64px);
  --pad-sec:  clamp(56px, 8vw, 96px);
  --nav-h:    64px;
  --radius:   16px;
}

/* ═══ BASE ═══════════════════════════════════════════ */
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; }

/* ═══ NAV ════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav__logo img {
  height: 28px; width: auto;
}
.nav__links {
  display: flex; gap: 32px; list-style: none;
}
.nav__links a {
  color: var(--muted);
  font-size: 13px; letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--yellow); color: var(--black);
  border: none; padding: 9px 20px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  border-radius: 100px; transition: opacity 0.2s;
}
.nav__cta:hover { opacity: 0.85; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav__burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); transition: all 0.3s;
}
.nav__mobile {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0;
  background: rgba(10,10,10,0.97); z-index: 199;
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  color: var(--text); font-size: 20px; letter-spacing: 1px;
}
.nav__mobile .nav__cta { font-size: 14px; padding: 12px 32px; }

/* ═══ HERO ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) var(--pad-x) 80px;
  position: relative;
}
.hero__tag {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero__tag::before, .hero__tag::after {
  content: ''; display: block; width: 28px; height: 1px; background: var(--yellow);
}
.hero__logo {
  height: clamp(60px, 10vw, 130px); width: auto; max-width: 90%;
  mix-blend-mode: screen;
  animation: fadeUp 0.7s ease 0.2s both;
}
.hero__desc {
  margin-top: 28px; max-width: 460px;
  color: var(--muted); font-size: clamp(14px, 1.5vw, 15px); line-height: 1.8;
  animation: fadeUp 0.7s ease 0.3s both;
}
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 10px; letter-spacing: 2px;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: pulse 2s infinite;
}

/* ═══ STATS BAR ═══════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 var(--pad-x) 40px;
}
.stats__item {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s;
}
.stats__item:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.stats__num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--yellow); line-height: 1;
  transition: color 0.3s;
}
.stats__label {
  font-size: 12px; color: var(--muted); letter-spacing: 0.5px;
  transition: color 0.3s;
}

/* ── STATS ANIMATION (MOBILE ONLY) ── */
@media (max-width: 768px) {
  .stats__item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .stats__item:nth-child(1) { transition-delay: 0.1s; }
  .stats__item:nth-child(2) { transition-delay: 0.2s; }
  .stats__item:nth-child(3) { transition-delay: 0.3s; }
  .stats__item:nth-child(4) { transition-delay: 0.4s; }

  .stats__item.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══ CLIENTS CAROUSEL ════════════════════════════════ */
.clients {
  padding: 36px 0;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  overflow: hidden;
}
.clients__label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px; padding: 0 var(--pad-x);
}
.clients__wrapper { position: relative; overflow: hidden; }
.clients__wrapper::before,
.clients__wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.clients__wrapper::before { left:0; background:linear-gradient(to right,var(--surface),transparent); }
.clients__wrapper::after  { right:0; background:linear-gradient(to left,var(--surface),transparent); }
.clients__track {
  display: flex; align-items: center;
  width: max-content;
  will-change: transform;
}
.clients__item {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 48px;
  border-right: 0.5px solid var(--border);
  min-width: 140px;
  transition: opacity 0.3s;
  opacity: 0.3;
}
.clients__item:hover { opacity: 0.9; }
.clients__item img {
  height: 30px; width: auto; max-width: 140px;
  object-fit: contain;
}

/* ═══ SECTION SHARED ══════════════════════════════════ */
.section { padding: var(--pad-sec) var(--pad-x); }
.section__label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 40px;
  display: flex; align-items: center; gap: 12px;
}
.section__label::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--yellow);
}

/* ═══ PROJECTS ════════════════════════════════════════ */
.projects { border-bottom: 0.5px solid var(--border); }
.projects__filters {
  display: flex; gap: 6px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  background: none;
  border: 0.5px solid rgba(255,255,255,0.14);
  color: var(--muted);
  padding: 8px 18px;
  font-size: 12px; letter-spacing: 0.5px;
  border-radius: 100px; transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--yellow); color: var(--black); border-color: var(--yellow);
}
.projects__grid {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
}
/* Card sizing */
.card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.3s, border-color 0.3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.card[data-orient="v"] { width: calc(25% - 15px); }
.card[data-orient="h"] { width: calc(50% - 10px); }
.card.hidden { display: none; }
/* Inner keeps aspect ratio */
.card__inner {
  position: relative; width: 100%; overflow: hidden;
}
.card[data-orient="v"] .card__inner { aspect-ratio: 9 / 16; }
.card[data-orient="h"] .card__inner { aspect-ratio: 16 / 9; }
/* Thumb */
.card__thumb {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  transition: transform 0.4s ease;
}
.card:hover .card__thumb { transform: scale(1.04); }
.card__thumb iframe,
.card__thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border: none;
}
/* Play icon */
.card__play {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(245,197,24,0.15);
  border: 1px solid rgba(245,197,24,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; z-index: 1;
}
.card:hover .card__play { background: var(--yellow); border-color: var(--yellow); }
.card__play svg { fill: var(--yellow); transition: fill 0.3s; }
.card:hover .card__play svg { fill: var(--black); }
/* Sound button */
.card__sound {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,0.65); border: 0.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background 0.2s, opacity 0.2s;
  opacity: 0; pointer-events: none;
}
.card:hover .card__sound { opacity: 1; pointer-events: auto; }
.card__sound.pinned { opacity: 1 !important; pointer-events: auto !important; }
.card__sound:hover { background: var(--yellow); }
.card__sound:hover svg { fill: var(--black); }
.card__sound.pinned { background: var(--yellow); }
.card__sound.pinned svg { fill: var(--black); }
.card__sound svg { fill: var(--text); width: 13px; height: 13px; transition: fill 0.2s; }
/* Info overlay */
.card__info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 18px;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 100%);
  transform: translateY(4px); transition: transform 0.3s;
}
.card:hover .card__info { transform: translateY(0); }
.card__type {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 3px;
}
.card__name { font-size: 13px; font-weight: 500; color: var(--text); }
/* CTA */
.projects__cta { margin-top: 44px; text-align: center; }

/* ═══ ABOUT ═══════════════════════════════════════════ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  border-bottom: 0.5px solid var(--border);
}
.about__heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1; margin-bottom: 22px;
}
.about__heading em { font-style: normal; color: var(--yellow); display: block; }
.about__text { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.about__text strong { color: var(--text); font-weight: 500; }
.about__img-wrap { position: relative; }
.about__accent {
  position: absolute; top: -8px; right: -8px;
  width: 38%; height: 32%;
  border-top: 2px solid var(--yellow);
  border-right: 2px solid var(--yellow);
  z-index: 1; pointer-events: none;
}
.about__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  transition: box-shadow 0.3s ease;
}
.about__photo:hover {
  box-shadow: 0 0 30px rgba(245, 197, 24, 0.5);
}

/* ═══ CONTACT ════════════════════════════════════════ */
.contact {
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: 40px; flex-wrap: wrap;
}
.contact__left {
  display: flex; flex-direction: column; align-items: center;
}
.contact__socials-stacked {
  display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap;
}
.contact__heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1; max-width: 600px;
}
.contact__heading em { font-style: normal; color: var(--yellow); }
.contact__desc {
  color: var(--muted); font-size: 15px;
  margin-top: 14px; max-width: 500px;
}
.contact__right {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  flex-shrink: 0;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--black);
  border: none; padding: 14px 32px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.5px;
  border-radius: 100px; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.contact__socials { display: flex; gap: 8px; }
.social-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  border: 0.5px solid rgba(255,255,255,0.13);
  border-radius: 100px; color: var(--muted);
  font-size: 12px; letter-spacing: 0.4px;
  transition: all 0.2s;
}
.social-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.social-btn svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }

/* ═══ FOOTER ══════════════════════════════════════════ */
.footer {
  padding: 24px var(--pad-x);
  display: flex; align-items: center; justify-content: center;
  border-top: 0.5px solid var(--border);
}
.footer img { height: 24px; width: auto; mix-blend-mode: screen; opacity: 0.35; }

/* ═══ ANIMATIONS ══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}


/* ═══ RESPONSIVE ══════════════════════════════════════ */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .card[data-orient="v"] { width: calc(50% - 10px); }
  .card[data-orient="h"] { width: 100%; }

  .about { grid-template-columns: 1fr; gap: 36px; }
  .about__photo { max-height: 360px; }

  .contact { flex-direction: column; align-items: flex-start; }
  .contact__right { width: 100%; }
  .btn-primary { width: 100%; justify-content: center; }
  .contact__socials { width: 100%; }
  .social-btn { flex: 1; justify-content: center; }
}

@media (max-width: 560px) {
  .card[data-orient="v"] { width: calc(50% - 10px); }
  .card[data-orient="h"] { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .projects__filters { gap: 4px; }
  .filter-btn { padding: 7px 12px; font-size: 11px; }
}