/* ─── CUSTOM PROPERTIES ─────────────────────────────────────────────────── */
:root {
  --color-bg:             #0A0A0B;
  --color-surface:        #111115;
  --color-surface-2:      #1A1A1F;
  --color-border:         rgba(255, 255, 255, 0.08);
  --color-border-hover:   rgba(255, 255, 255, 0.16);
  --color-text-primary:   #F2F0EB;
  --color-text-secondary: #8A8880;
  --color-accent:         #C8A96E;
  --color-accent-muted:   rgba(200, 169, 110, 0.12);

  --text-hero:    clamp(52px, 8vw, 96px);
  --text-section: clamp(28px, 4vw, 42px);
  --text-label:   11px;
  --text-body:    15px;
  --text-small:   13px;

  --radius-card: 12px;
  --radius-pill: 100px;
  --gap-grid:    24px;
  --section-pad: clamp(64px, 10vw, 120px);
}

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

/* ─── BASE ───────────────────────────────────────────────────────────────── */
body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
}

/* ─── CONTAINER ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAVIGATION ─────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

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

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  transition: color 200ms;
}

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

.nav-subscribe {
  background: var(--color-accent) !important;
  color: #0A0A0B !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  transition: filter 200ms !important;
}

.nav-subscribe:hover {
  color: #0A0A0B !important;
  filter: brightness(1.12);
}

/* ─── HERO CAROUSEL ──────────────────────────────────────────────────────── */
.hero {
  background: var(--color-bg);
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(240px, 56.25vw, 680px); /* 16:9 at full width, capped at 680px */
  overflow: hidden;
  background: var(--color-bg);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Banner image: anchor to top since it's a wide letterbox format */
img.slide-media {
  object-position: center top;
}

.slide-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 300ms, transform 300ms, width 300ms;
}

.dot.active {
  background: var(--color-accent);
  width: 22px;
  border-radius: 4px;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 11, 0.55);
  border: 1px solid var(--color-border-hover);
  color: var(--color-text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 200ms, border-color 200ms, color 200ms;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.carousel-arrow:hover {
  background: rgba(10, 10, 11, 0.85);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.arrow-prev { left: 20px; }
.arrow-next { right: 20px; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #0A0A0B;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: filter 200ms;
}

.btn-primary:hover {
  filter: brightness(1.12);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-text-primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-hover);
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
}

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

/* ─── SECTION SHARED ──────────────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section-videos {
  background: var(--color-bg);
}

.section-shorts {
  background: var(--color-surface);
}

.section-header {
  margin-bottom: 40px;
}

.section-eyebrow {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: var(--text-section);
  color: var(--color-text-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-rule {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  border: none;
  margin: 16px 0 0 0;
}

/* ─── VIDEO GRID ──────────────────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-grid);
  max-width: 1000px;
}

/* Single video: full-width featured look */
.video-grid:has(.video-card:only-child) {
  max-width: 100%;
  grid-template-columns: 1fr;
}

.video-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color 300ms, transform 300ms, opacity 500ms, translate 0ms;
  opacity: 0;
  transform: translateY(24px);
}

.video-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
}

.video-card.visible:hover {
  transform: translateY(-3px);
}

.video-thumb {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

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

.video-info {
  padding: 16px 20px 20px;
}

.video-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.video-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 6px 0 4px;
  line-height: 1.3;
}

.video-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ─── SHORTS GRID ─────────────────────────────────────────────────────────── */
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap-grid);
}

.short-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color 300ms, transform 300ms;
  opacity: 0;
  transform: translateY(24px);
}

.short-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.short-card:hover {
  border-color: rgba(200, 169, 110, 0.4);
  transform: translateY(-3px);
}

.short-card.visible:hover {
  transform: translateY(-3px);
}

.short-thumb {
  position: relative;
  padding-bottom: 177.78%;
  height: 0;
  overflow: hidden;
}

.short-thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.short-info {
  padding: 12px 16px 16px;
}

.short-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.short-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 4px 0 0;
  line-height: 1.3;
}

/* ─── STAGGER DELAY ───────────────────────────────────────────────────────── */
.video-card,
.short-card {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: #070708;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 48px 24px 40px;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
}

.footer-bottom {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
}

.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .shorts-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

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

  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
  }

  .carousel-arrow svg {
    width: 15px;
    height: 15px;
  }

  .arrow-prev { left: 12px; }
  .arrow-next { right: 12px; }

  .carousel-dots {
    bottom: 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px 32px;
    gap: 28px;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
    padding: 16px 24px;
  }
}

@media (max-width: 480px) {
  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-arrow {
    display: none;
  }

  .container {
    padding: 0 16px;
  }

  .footer-inner {
    padding: 40px 16px 32px;
  }

  .footer-bottom {
    padding: 16px 16px;
  }
}

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

  .logo-img {
    height: 28px;
  }
}

/* ─── REDUCED MOTION ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .video-card,
  .short-card {
    opacity: 1;
    transform: none;
  }

  #hero-line {
    stroke-dashoffset: 0 !important;
  }
}

/* Loading / empty-state text inside the auto-loaded grids */
.grid-loading {
  grid-column: 1 / -1;
  color: var(--color-text-muted, #888);
  font-size: 0.95rem;
  padding: 1.5rem 0;
}
