/* Nine Films — Jontero-style rebuild */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --accent: #ffffff;
  --accent-hover: #e0e0e0;
  --border: rgba(255, 255, 255, 0.08);
  --card-radius: 6px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}



html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  justify-self: start;
}

.logo-img {
    border-radius: 50%;
  height: 38px;
  width: 38px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
  opacity: 0.9;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  justify-self: center;
}

.nav-desktop .nav-social {
  display: none;
}

.header-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  justify-self: end;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--text);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.social-icon {
  display: flex;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.social-icon:hover {
  color: var(--text);
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  justify-self: end;
  grid-column: 3;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding-top: 4rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.mobile-link:hover {
  color: var(--text);
}

/* ── Category bar ── */
.category-bar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 2.5rem 1.5rem 0.5rem;
}

.cat-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.cat-link:hover,
.cat-link.active {
  color: var(--text);
}

/* ── Page title ── */
.page-title {
  text-align: center;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 1.25rem 1.5rem 2.75rem;
  line-height: 1.1;
}

.title-accent {
  color: var(--accent);
}

/* ── Work grid ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0 2.5rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.work-card {
  cursor: pointer;
  group: true;
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--bg-elevated);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.work-card:hover .card-thumb img {
  transform: scale(1.04);
  filter: brightness(0.75);
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .card-overlay {
  opacity: 1;
}

.play-icon {
  width: 56px;
  height: 56px;
    border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.work-card:hover .play-icon {
  transform: scale(1);
}

.play-icon svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.card-title {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ── Showcase CTA ── */
.showcase-cta {
  text-align: center;
  padding: 1rem 1.5rem 4rem;
}

.showcase-cta p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.cta-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  transition: color 0.2s;
}

.cta-btn:hover {
  color: var(--accent-hover);
}

/* ── Contact ── */
.contact-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.contact-title {
  margin-bottom: 1rem;
}

.contact-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.contact-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.contact-card.primary {
  border-color: rgba(255, 255, 255, 0.35);
}

.contact-card.primary:hover {
  border-color: var(--accent);
}

.contact-card-icon {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-card.primary .contact-card-icon {
  color: var(--accent);
}

.contact-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}

.contact-card:hover .contact-arrow {
  transform: translateX(4px);
  color: var(--text);
}

.services-mini {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.75rem 1.5rem;
}

.services-mini h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.services-mini ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.5rem;
}

.services-mini li {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
}

.services-mini li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
    border-radius: 50%;
  background: var(--accent);
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-frame {
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Feedbacks ── */
.feedbacks-title {
  margin-top: 2.5rem;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0 2.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.feedback-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.feedback-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feedback-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.feedback-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1a;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.client-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.feedback-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.star-rating {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.feedback-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.mention-tag {
  color: #c9cdfb;
  background: rgba(88, 101, 242, 0.2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1.5rem 3rem;
    gap: 1.25rem;
  }

  .feedback-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1.5rem 3rem;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .logo-img {
    border-radius: 50%;
    height: 32px;
    width: 32px;
  }

  .nav-desktop {
    display: none;
  }

  .header-social {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .work-grid {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 2.5rem;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 2.5rem;
  }

  .feedback-card {
    padding: 1.35rem 1.15rem;
  }

  .category-bar {
    gap: 1.5rem;
    padding-top: 1.75rem;
  }

  .page-title {
    margin-bottom: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-mini ul {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }
}


.home-feedbacks {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem 4rem;
}

.home-feedbacks .feedbacks-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.home-feedbacks .feedbacks-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

.home-feedbacks .feedback-grid {
    margin: 0 auto;
}

.home-feedbacks .feedback-card {
    height: 100%;
}

.home-feedbacks .showcase-cta {
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .home-feedbacks {
        padding: 0 1.25rem 3rem;
    }
}
/* ── Homepage showcase compatibility ── */
.home-header {
  grid-template-columns: auto 1fr auto;
}
.home-header .nav-desktop { justify-self: center; }
.home-main { width: 100%; flex: 1; }
.home-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.25rem 2.5rem 1.5rem;
  text-align: center;
}
.home-eyebrow {
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  margin-bottom: .8rem;
  text-transform: uppercase;
}
.home-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.home-description {
  color: var(--text-muted);
  max-width: 650px;
  margin: 1rem auto 0;
  font-size: 1rem;
}
.home-category-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  padding: .5rem 1.5rem 2rem;
}
.home-category-tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: #111;
  color: var(--text-muted);
  padding: .55rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.home-category-tab:hover,
.home-category-tab.active {
  color: #0a0a0a;
  background: #fff;
  border-color: #fff;
}
.home-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  padding: 0 2.5rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.home-work-card { min-width: 0; cursor: pointer; }
.home-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: #111;
  border: 1px solid var(--border);
}
.home-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
}
.home-work-card:hover .home-video-thumb img { transform: scale(1.04); filter: brightness(.65); }
.home-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .25s;
}
.home-play span {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: #090909;
  display: grid; place-items: center; font-size: 1.4rem;
  padding-left: 3px;
}
.home-work-card:hover .home-play { opacity: 1; }
.home-work-info { padding-top: .65rem; }
.home-work-category {
  color: var(--text-muted); font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}
.home-work-info h2 { font-size: 1.12rem; font-weight: 700; line-height: 1.35; margin-top: .25rem; }
.home-work-info p { color: var(--text-muted); font-size: .9rem; margin-top: .2rem; }
.home-work-card[hidden] { display: none !important; }
.home-feedbacks {
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 2.5rem 4rem;
}
.home-feedbacks-heading { text-align: center; margin-bottom: 2rem; }
.home-feedbacks-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  letter-spacing: -.03em; text-transform: uppercase; margin-bottom: .65rem;
}
.home-feedbacks-heading p:last-child { color: var(--text-muted); }
.home-feedbacks .feedback-grid { padding: 0; max-width: none; }
.home-feedbacks .feedback-card { height: 100%; }
.home-feedbacks .feedback-date { white-space: nowrap; }
.home-feedbacks .showcase-cta { padding: 2rem 0 0; }

@media (max-width: 1024px) {
  .home-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .home-header { grid-template-columns: auto 1fr auto; }
  .home-header .nav-desktop { display: none; }
  .home-hero { padding: 2.5rem 1.25rem 1.25rem; }
  .home-work-grid { grid-template-columns: 1fr; padding: 0 1.25rem 3rem; gap: 1.75rem; }
  .home-feedbacks { padding: 0 1.25rem 3rem; }
}

/* ── Clients marquee ── */
.clients-marquee {
  position: relative;
  margin: 0 0 3rem;
  padding: 1.25rem 0 0.75rem;
  overflow: hidden;
}

.clients-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  opacity: 0.85;
}

.clients-track-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  padding: 0.75rem 0;
}

.clients-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: clients-scroll 38s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

.clients-group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  flex-shrink: 0;
}

.client-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.client-item:hover {
  transform: translateY(-2px) scale(1.04);
}

/* ── Logo Images (Larger & Crisp) ── */
.client-item img {
  height: 50px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  filter: brightness(1.05);
  transition: filter 0.25s, transform 0.25s;
}

.client-item img.logo-square {
  height: 46px;
  width: 46px;
  border-radius: 8px;
}

/* Doubled size for Preload Studio and Var / Car Studio */
.client-item img.logo-preload,
.client-item img[src*="Preload"],
.client-item img[src*="preload"] {
  height: 96px;
  width: auto;
  max-width: 120px;
}

.client-item img.logo-var,
.client-item img[src*="Var"],
.client-item img[src*="var"],
.client-item img[src*="car"],
.client-item img[src*="Car"] {
  height: 88px;
  width: 88px;
  max-width: 88px;
  border-radius: 12px;
}

.client-item img.logo-blend {
  mix-blend-mode: screen;
}

.client-item:hover img {
  filter: brightness(1.2);
}

.client-item span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

@keyframes clients-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 768px) {
  .clients-marquee {
    margin-bottom: 2rem;
    padding: 1rem 0;
  }
  .clients-group {
    gap: 2.25rem;
    padding-right: 2.25rem;
  }
  .clients-track {
    animation-duration: 26s;
  }
  .client-item {
    padding: 0.4rem 0.6rem;
  }
  .client-item img {
    height: 38px;
    max-width: 130px;
  }
  .client-item img.logo-square {
    height: 34px;
    width: 34px;
  }
  .client-item img.logo-preload,
  .client-item img[src*="Preload"],
  .client-item img[src*="preload"] {
    height: 68px;
    max-width: 85px;
  }
  .client-item img.logo-var,
  .client-item img[src*="Var"],
  .client-item img[src*="var"],
  .client-item img[src*="car"],
  .client-item img[src*="Car"] {
    height: 60px;
    width: 60px;
    max-width: 60px;
  }
  .client-item span {
    font-size: 0.85rem;
  }
}


