/* =============================================
   nicolasjcapra.com — styles.css
   Theme: Warm minimal
   Accent: #D4860A
   ============================================= */

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

html, body {
  background-color: #F8F4EE;
  color: #1C1C1A;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* === Typography === */
h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #1C1C1A;
}

/* === Nav === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  z-index: 100;
  background: rgba(248, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled {
  border-bottom-color: #DDD8CF;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: #D4860A;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #66625C;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1C1C1A;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 48px;
  padding-top: 80px;
  background-color: #080502;
  background-image: url('assets/bts-4.jpg'); /* fallback if video fails */
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  border: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 2, 0.62);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-name {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: #F5F0E8;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D4860A;
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #888;
  text-transform: uppercase;
}

.reel-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F5F0E8;
  border-bottom: 1px solid rgba(245, 240, 232, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.reel-link:hover {
  color: #D4860A;
  border-color: #D4860A;
}

/* === Section Shared === */
section {
  padding: 100px 48px;
}

.section-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #AAA09A;
  margin-bottom: 48px;
}

/* === Work Section === */
.work-section {
  background-color: #F8F4EE;
  border-top: 1px solid #DDD8CF;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 56px;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1C1C1A;
  font-family: 'Inter', sans-serif;
}

.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid #DDD8CF;
  color: #66625C;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: #D4860A;
  color: #D4860A;
}

/* === Project Grid === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 48px;
}

.project-card {
  transition: opacity 0.25s;
}

.project-card.hidden {
  display: none;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #EAE5DC;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.35s;
}

.video-poster.fade-out {
  opacity: 0;
  pointer-events: none;
}

.card-meta {
  padding: 14px 0 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.card-category {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D4860A;
  flex-shrink: 0;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #1C1C1A;
}

.card-client {
  font-size: 0.72rem;
  color: #AAA09A;
  margin-left: auto;
  white-space: nowrap;
}

.card-title-link {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.card-title-link:hover {
  color: #D4860A;
  border-bottom-color: #D4860A;
}

/* === Stills Section === */
.stills-section {
  padding: 80px 0 80px 48px;
  background: #0a0a0a;
}

.stills-section .equip-heading {
  margin-bottom: 32px;
}

.stills-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-right: 48px;
}

.stills-strip::-webkit-scrollbar {
  display: none;
}

.stills-strip img {
  height: 480px;
  width: auto;
  flex-shrink: 0;
  scroll-snap-align: start;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .stills-section {
    padding: 60px 0 60px 24px;
  }
  .stills-strip {
    padding-right: 24px;
  }
  .stills-strip img {
    height: 240px;
  }
}

/* === About Section === */
.about-section {
  position: relative;
  background-image: url('assets/bts-2.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-top: none;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 2, 0.76);
}

.about-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 80vh;
}

.about-text .section-label {
  color: #6B6560;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #B0AAA2;
  margin-bottom: 16px;
}

.capabilities {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cap-item {
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6E6862;
  border: 1px solid rgba(200, 190, 178, 0.2);
  padding: 5px 12px;
  border-radius: 2px;
}

/* === About Collage === */
.about-collage {
  position: relative;
  height: 680px;
}

.collage-img {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.collage-1 {
  width: 68%;
  aspect-ratio: 4 / 3;
  top: 0;
  left: 0;
  z-index: 2;
}

.collage-2 {
  width: 68%;
  aspect-ratio: 4 / 3;
  bottom: 0;
  right: 0;
  z-index: 1;
}

/* === Equipment Section === */
.equip-section {
  background-color: #F8F4EE;
  border-top: 1px solid #DDD8CF;
}

.equip-heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.03em;
  color: #1C1C1A;
  margin-bottom: 10px;
}

.equip-sub-desc {
  font-size: 0.88rem;
  color: #66625C;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 0;
}

.equip-accordion {
  margin-top: 40px;
  border-top: 1px solid #DDD8CF;
}

.equip-item {
  border-bottom: 1px solid #DDD8CF;
}

.equip-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 18px 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1C1C1A;
  text-align: left;
  transition: color 0.2s;
}

.equip-toggle:hover {
  color: #D4860A;
}

.equip-chevron {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid #AAA09A;
  border-bottom: 1.5px solid #AAA09A;
  transform: rotate(45deg);
  transition: transform 0.3s, border-color 0.2s;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.equip-item.open .equip-toggle {
  color: #D4860A;
}

.equip-item.open .equip-chevron {
  transform: rotate(-135deg);
  border-color: #D4860A;
  margin-bottom: -3px;
}

.equip-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.equip-list {
  list-style: none;
  column-count: 2;
  column-gap: 48px;
  padding-bottom: 28px;
}

.equip-list li {
  font-size: 0.78rem;
  color: #66625C;
  line-height: 1.4;
  margin-bottom: 10px;
  break-inside: avoid;
  padding-left: 14px;
  position: relative;
}

.equip-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #CCC8BF;
}

.equip-note {
  display: block;
  font-size: 0.68rem;
  color: #AAA09A;
  margin-top: 2px;
  line-height: 1.4;
}

.equip-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
  padding-bottom: 28px;
}

.equip-sub-grid .equip-list {
  column-count: 1;
  padding-bottom: 0;
}

.equip-sub {
  margin-bottom: 16px;
}

.equip-filters {
  padding-bottom: 28px;
}

.equip-list li.equip-indent {
  padding-left: 28px;
}

.equip-list li.equip-indent::before {
  content: '·';
  color: #CCC8BF;
}

.equip-sub-head {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D4860A;
  margin-bottom: 10px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.equip-sub-head a {
  color: #D4860A;
  border-bottom: 1px solid rgba(212, 134, 10, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.equip-sub-head a:hover {
  border-color: #D4860A;
}

/* === Contact Section === */
.contact-section {
  background-color: #F8F4EE;
  border-top: 1px solid #DDD8CF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 120px 48px;
}

.contact-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: #1C1C1A;
}

.contact-heading em {
  font-style: normal;
  color: #D4860A;
}

.contact-email {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #1C1C1A;
  border-bottom: 1px solid #DDD8CF;
  padding-bottom: 3px;
  transition: border-color 0.2s, color 0.2s;
  margin-top: 4px;
}

.contact-email:hover {
  border-color: #D4860A;
  color: #D4860A;
}

.contact-socials {
  display: flex;
  gap: 32px;
  margin-top: 4px;
}

.contact-social {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #66625C;
  transition: color 0.2s;
}

.contact-social:hover {
  color: #1C1C1A;
}

/* === Footer === */
footer {
  padding: 28px 48px;
  border-top: 1px solid #DDD8CF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8F4EE;
}

footer p {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #AAA09A;
}

/* === Mobile === */
@media (max-width: 768px) {
  nav {
    padding: 18px 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero {
    padding: 0 24px;
    padding-top: 80px;
    min-height: 80vh;
  }

  section {
    padding: 72px 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-video {
    display: none;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .card-client {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 48px;
  }

  .equip-list {
    column-count: 1;
  }

  .equip-sub-grid {
    grid-template-columns: 1fr;
  }

  .about-collage {
    height: 380px;
  }

  .collage-1 { width: 68%; }
  .collage-2 { width: 68%; }

  .contact-section {
    padding: 72px 24px;
    gap: 16px;
  }

  .contact-socials {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  footer {
    padding: 20px 24px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
