/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #080808;
  --bg-card:    #111;
  --border:     rgba(255,255,255,0.08);
  --text:       #f0f0f0;
  --text-muted: #555;
  --text-dim:   #888;
  --nav-h:      64px;
  --radius:     6px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-bebas: 'Bebas Neue', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  padding-top: env(safe-area-inset-top);
  background: rgba(8,8,8,0.8);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-link {
  font-family: var(--font-bebas);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: color 0.2s;
  line-height: 1;
}
.nav-link:hover { color: #fff; }

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
}
.nav-logo img {
  height: 22px;
  width: auto;
  display: block;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  aspect-ratio: 1920 / 800;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(8,8,8,1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 20px) 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.hero-title {
  font-family: var(--font-bebas);
  font-size: clamp(52px, 16vw, 110px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: #fff;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
}
.hero-cta:hover { opacity: 0.85; transform: translateY(-2px); }

/* Trusted by bar — standalone below hero */
.trusted-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px 36px;
  background: var(--bg);
}

.logo-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-row img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.35;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}
.logo-row img:hover { opacity: 0.7; }

/* ─── PORTFOLIO ─────────────────────────────────────────────── */
.portfolio {
  padding: 32px 14px 100px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ─── PORTFOLIO TITLE ────────────────────────────────────────── */
.portfolio-title {
  font-family: var(--font-bebas);
  font-size: clamp(36px, 10vw, 64px);
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
}

/* ─── FILTER BAR ─────────────────────────────────────────────── */
.filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-bebas);
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.4;
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.filter-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ─── GRID ───────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* ─── CARD ──────────────────────────────────────────────────── */
.card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.card.hidden { display: flex; }

.card-img {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: filter 0.35s ease, transform 0.35s ease;
}

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

/* video cards */
.card-vid {
  position: relative;
  overflow: hidden;
}

.card-vid video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* hover title overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card-cat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: block;
  text-align: center;
  margin-top: 5px;
}

.card-title {
  font-family: var(--font-bebas);
  font-size: clamp(13px, 3.5vw, 22px);
  letter-spacing: 0.08em;
  color: #fff;
  text-align: center;
  line-height: 1.1;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo img {
  height: 24px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-link:hover { color: #fff; }

.footer-dot { color: var(--border); }

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ─── HAMBURGER BUTTON ───────────────────────────────────────── */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
}


.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── MOBILE MENU ────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 0 env(safe-area-inset-bottom);
}

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

.mobile-link {
  font-family: var(--font-bebas);
  font-size: clamp(36px, 12vw, 52px);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  line-height: 1.3;
}
.mobile-link:hover,
.mobile-link:active { color: #fff; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */

/* Desktop wide → 3 col */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

/* Tablet / small desktop → hamburger kicks in */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  /* Navbar: logo left, hamburger right */
  .nav-inner {
    justify-content: space-between;
    padding: 0 20px;
    gap: 0;
  }
  .nav-link { display: none; }
  .nav-logo { margin: 0; }
  .nav-logo img { height: 22px; }
  .nav-hamburger { display: flex; }

  /* Hero: taller on mobile, starts below navbar */
  .hero {
    aspect-ratio: unset;
    height: 55vw;
    min-height: 280px;
    max-height: 480px;
    margin-top: var(--nav-h);
  }

  /* Logos */
  .logo-row { gap: 24px; flex-wrap: wrap; }
  .logo-row img { height: 16px; }
  .trusted-bar { padding: 24px 20px 28px; }

  /* Portfolio */
  .portfolio { padding: 28px 12px 80px; }
  .portfolio-title { font-size: clamp(28px, 8vw, 48px); margin-bottom: 12px; }

  /* Filters: centered, horizontal scroll if overflow */
  .filters {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 12px 8px;
    gap: 6px;
    margin-bottom: 14px;
  }
  .filter-btn { font-size: 12px; padding: 5px 13px; white-space: nowrap; flex-shrink: 0; }

  /* Grid: 2 columns */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }

  /* Cards: always show overlay (no hover on touch) */
  .card-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px;
    flex-direction: column;
  }
  .card:hover .card-img { filter: none; transform: none; }
  .card-title { font-size: clamp(11px, 2.5vw, 18px); text-align: left; }
  .card-cat-label { font-size: 8px; text-align: left; margin-top: 3px; }

  /* Footer */
  .footer { padding: 40px 20px calc(32px + env(safe-area-inset-bottom)); gap: 10px; }
}

/* Small phone */
@media (max-width: 480px) {
  :root { --nav-h: 52px; }

  .nav-inner { padding: 0 16px; }
  .nav-logo img { height: 20px; }

  .hero { height: 60vw; min-height: 240px; max-height: 380px; margin-top: var(--nav-h); }

  .logo-row { gap: 16px 18px; }
  .logo-row img { height: 14px; }

  .portfolio { padding: 20px 8px 72px; }
  .grid { gap: 4px; }

  .card-title { font-size: clamp(10px, 3.5vw, 14px); }
  .card-overlay { padding: 8px; }
}

/* iPhone SE */
@media (max-width: 375px) {
  .nav-logo img { height: 18px; }
  .grid { gap: 3px; }
  .logo-row img { height: 12px; }
  .logo-row { gap: 12px 14px; }
}

@media (min-width: 1025px) {
  .nav-hamburger { display: none; }
}
@media (min-width: 1025px) {
  .nav-hamburger { display: none; }
}
