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

:root {
  --bg:         #080808;
  --bg-alt:     #0f0f0f;
  --surface:    #161616;
  --border:     rgba(255,255,255,0.07);
  --text:       #f0ede8;
  --muted:      #888;
  --accent:     #c4601e;
  --accent-dim: rgba(196,96,30,0.15);
  --font-head:  'Bebas Neue', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'IBM Plex Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 120px 0;
}

.section-dark {
  background: var(--bg-alt);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 4rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}

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

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.5rem;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

#nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

/* If logo image is used instead: */
.nav-logo img {
  height: 36px;
  width: auto;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

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

.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: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav open state */
#nav.open .nav-links {
  display: flex;
}

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.slideshow {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s ease;
  /* Placeholder gradient when no image is set */
  background-color: #1a1a1a;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Placeholder look when no real image */
.slide:not([style*="url("]) {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #111 100%);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 5rem;
  max-width: 900px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.hero-content h1 .line {
  opacity: 0;
  animation: fadeUp 0.8s forwards;
}
.hero-content h1 .line:nth-child(1) { animation-delay: 0.5s; }
.hero-content h1 .line:nth-child(2) { animation-delay: 0.7s; }
.hero-content h1 .line:nth-child(3) { animation-delay: 0.9s; }

.hero-content h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(240,237,232,0.6);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}

.hero-content .btn {
  opacity: 0;
  animation: fadeUp 0.8s 1.3s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Slide indicators */
.slide-indicators {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.service-card {
  padding: 3rem 2.5rem 3rem 0;
  border-right: 1px solid var(--border);
}

.service-card:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 2.5rem;
}

.service-card:nth-child(2) {
  padding-left: 2.5rem;
}

.service-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================================
   VIDEO GRID
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  border: none;
  padding: 0;
  cursor: pointer;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: brightness(0.8);
}

.video-thumb:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.vthumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.vthumb-play svg {
  width: 52px;
  height: 52px;
  color: #fff;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
}

.video-thumb:hover .vthumb-play {
  opacity: 1;
}

/* Portrait (9:16) grid for poster thumbnails */
.video-grid--portrait {
  align-items: start;
}

.video-grid--portrait .video-thumb {
  aspect-ratio: 210 / 297 !important;
  height: auto !important;
}

.video-grid--portrait .video-thumb img {
  object-fit: cover !important;
  object-position: center top;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.team-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.team-photo {
  width: 160px;
  height: 200px;
  flex-shrink: 0;
  object-fit: cover;
  filter: grayscale(30%);
}

.placeholder-photo {
  background: var(--surface);
  border: 1px solid var(--border);
}

.team-info {
  padding-top: 0.5rem;
}

.team-info h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.team-links {
  display: flex;
  gap: 1.2rem;
}

.team-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.team-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-container {
  max-width: 700px;
}

.contact-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-body > p {
  font-size: 1.1rem;
  color: var(--muted);
}

.contact-email {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: inline-block;
  padding-bottom: 0.3rem;
  transition: color 0.2s, border-color 0.2s;
}

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

.contact-hours {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(136,136,136,0.5);
}

/* ============================================================
   VIDEO LIGHTBOX / MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,4,4,0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--text);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#modalTitle {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
  }

  .service-card:last-child {
    border-bottom: none;
    padding-left: 0;
  }

  .service-card:nth-child(2) {
    padding-left: 0;
  }

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

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

  .team-card {
    flex-direction: column;
    gap: 1.5rem;
  }

  .team-photo {
    width: 100%;
    height: 280px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8,8,8,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }

  .nav-links a {
    font-size: 1rem;
    color: var(--text);
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  #nav.open .nav-links {
    display: flex;
  }

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

  .section {
    padding: 80px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
