@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --color-bg: #0a0a0a;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #f0f0f0;
  --color-text-muted: #888;
  --color-accent: #e0e0e0;
  --font-family: 'Inter', sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../assets/bg.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.9) 100%);
  z-index: -1;
}

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

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

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero Section ── */

.hero {
  position: relative;
  width: 100%;
  height: min(56.25vw, 100vh);
  margin-top: calc(-1.5 * var(--nav-height));
  margin-bottom: calc(-1.2 * var(--nav-height));
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Sections ── */

.section {
  position: relative;
  background-color: var(--color-bg);
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-text);
}

/* ── Brand Grid ── */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.brand-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.brand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.brand-card:hover img {
  transform: scale(1.05);
}

.brand-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(10, 10, 10, 0.85) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: background var(--transition);
}

.brand-card:hover .brand-card-overlay {
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(10, 10, 10, 0.9) 100%
  );
}

.brand-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-card--text {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.brand-card--text .brand-card-overlay {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 10, 10, 0.6) 100%
  );
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-card--text:hover .brand-card-overlay {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

/* ── Page Header (Brand pages) ── */

.page-header {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Video Player ── */

.video-section {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.video-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  margin-bottom: 2rem;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Credits ── */

.credits-section {
  max-width: 900px;
  margin: 2rem auto 6rem;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.credits-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem;
}

.credits-card h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.credits-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.credits-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.credits-list .role {
  font-weight: 600;
  color: var(--color-accent);
  min-width: 180px;
}

.credits-list .name {
  color: var(--color-text-muted);
  font-weight: 300;
}

.credits-thanks {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── About Page ── */

.about-intro {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-intro p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* ── About Page — extended sections ── */

.about-section {
  margin-bottom: 5rem;
}

.about-section:last-of-type {
  margin-bottom: 6rem;
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-split .about-content {
  margin: 0;
}

.about-media {
  display: grid;
  gap: 1rem;
}

.about-media img,
.about-media-hero img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  object-fit: cover;
}

.about-media-hero {
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.about-media-hero img {
  height: 100%;
  border: none;
  border-radius: 0;
}

.about-projects {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.about-projects li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: background var(--transition);
}

.about-projects li:hover {
  background: var(--color-surface-hover);
}

.about-projects h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.about-projects p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.about-project-meta {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

.about-project-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.about-project-link:hover {
  opacity: 0.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), background var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  background: var(--color-surface-hover);
}

.team-card-photo {
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  margin: 0 auto 1.2rem;
  object-fit: cover;
  object-position: center;
}

.team-card-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.team-card-role {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Contact ── */

.contact-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 6rem;
}

.contact-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.contact-info a {
  color: var(--color-text);
  transition: opacity var(--transition);
}

.contact-info a:hover {
  opacity: 0.7;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ── Scroll Animations ── */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Back Link ── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
  margin-bottom: 2rem;
}

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

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(calc(-100% - var(--nav-height)));
    transition: transform var(--transition);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    aspect-ratio: unset;
    height: 70vh;
  }

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

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

  .about-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-projects li {
    padding: 1.4rem 1.5rem;
  }

  .credits-list li {
    flex-direction: column;
    gap: 0.15rem;
  }

  .credits-list .role {
    min-width: unset;
  }
}

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