@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

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

:root {
  --black:        #0d0d0d;
  --black2:       #141414;
  --orange:       #F7931A;
  --white:        #EDEAE4;
  --dim:          #9A9490;
  --faint:        #222222;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --linen:        #FDFCF7;
  --linen-border: #ECEAE1;
  --ink-text:     #1a1a1a;
  --ink-dim:      #6b6665;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── NAV ── */
nav#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background-color: var(--linen);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 120px;
  border-bottom: 1px solid rgba(20,18,14,0.07);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 201;
}

/* CT badge — CSS-built so it always renders regardless of image */
.ct-badge {
  width: 56px;
  height: 56px;
  background: #111;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.32);
}
.ct-badge-letters {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
}
.ct-badge-bar {
  width: 30px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

/* keep .ct-mark for footer image */
.ct-mark {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 3px 18px rgba(0,0,0,0.28);
}

.nav-links { display: none; }

/* hamburger — always visible */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--ink-text);
  transition: transform .3s ease, opacity .2s ease, background .2s ease;
}
.hamburger.open span { background: var(--ink-text); }
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Overlay close X button */
.overlay-close {
  position: absolute;
  top: 26px; right: 26px;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.overlay-close::before,
.overlay-close::after {
  content: '';
  position: absolute;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 1px;
}
.overlay-close::before { transform: rotate(45deg); }
.overlay-close::after  { transform: rotate(-45deg); }
.overlay-close:hover::before,
.overlay-close:hover::after { background: var(--orange); }

/* ── RIGHT PANEL OVERLAY ── */
.nav-overlay {
  position: fixed;
  top: 0; right: 0;
  width: 300px;
  height: 100vh;
  background: var(--black2);
  border-left: 1px solid var(--faint);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 120px 44px 0;
  transform: translateX(100%);
  transition: transform .35s ease;
}
.nav-overlay.open {
  transform: translateX(0);
}
.nav-overlay a {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateX(16px);
  transition: transform .4s ease, opacity .4s ease, color .15s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-overlay.open a { opacity: 1; transform: translateX(0); }
.nav-overlay.open a:nth-of-type(1) { transition-delay: .08s; }
.nav-overlay.open a:nth-of-type(2) { transition-delay: .14s; }
.nav-overlay.open a:nth-of-type(3) { transition-delay: .20s; }
.nav-overlay.open a:nth-of-type(4) { transition-delay: .26s; }
.nav-overlay.open a:nth-of-type(5) { transition-delay: .32s; }
.nav-overlay a:hover { color: var(--white); }
.nav-overlay a.active { color: var(--orange); }

/* Orange ruler */
.nav-overlay a::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--orange);
  width: 0;
  flex-shrink: 0;
  border-radius: 2px;
  transition: width .18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-overlay a.active::after { width: 30px; }
.nav-overlay a:hover::after { width: 30px; }

/* mobile adjustments */
.mobile-menu { display: none; }

/* ── PAGE ── */
.page { padding-top: 80px; }

/* ── LIGHT PAGE VARIANT ── */
.page--light {
  background-color: var(--linen);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, var(--linen) 0%, var(--linen) 55%, #f5f3eb 100%);
  background-repeat: repeat, no-repeat;
  background-size: 120px 120px, auto;
  min-height: 100vh;
}

/* ── FOOTER ── */
footer {
  background-color: var(--black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 120px;
  padding: 40px 32px 28px;
  margin: 0;
  max-width: none;
  border-top: none;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.footer-ct {
  width: 52px; height: 52px;
  display: block;
  border-radius: 8px;
}
.footer-ct-bar {
  width: 52px; height: 4px;
  background: var(--orange);
  border-radius: 2px;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  color: rgba(237,234,228,0.7);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color .15s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}
.footer-bottom p {
  font-size: .72rem;
  color: rgba(237,234,228,0.35);
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 28px;
}
.footer-socials a {
  display: flex;
  align-items: center;
  transition: transform .15s, opacity .15s;
}
.footer-socials a:hover { transform: scale(1.12); opacity: .85; }

@media (max-width: 600px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 18px; }
}

/* ── BUTTON ── */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #000;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }

/* ── EPISODE VIDEO FACADE ── */
.ep-video-wrap {
  position: relative;
}
.ep-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.ep-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(13,13,13,0.6);
  border: 2px solid rgba(237,234,228,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.ep-play-btn::after {
  content: '';
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 5px;
}
.ep-play-btn:hover {
  background: rgba(247,147,26,0.75);
  border-color: var(--orange);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 0 24px; }
  .nav-overlay { width: 240px; padding: 110px 28px 0; }
  .nav-overlay a { font-size: 1.2rem; }
  footer { padding: 24px; }
}
