/* ============================================
   CHRIS WYLDE — Official Site
   style.css
   ============================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
  --black: #0A0A0C;
  --charcoal: #111114;
  --charcoal-light: #1A1A1E;
  --charcoal-mid: #222226;
  --gold: #C7A15B;
  --gold-light: #D4B574;
  --gold-dim: #9A7A45;
  --gold-subtle: rgba(199,161,91,0.12);
  --ivory: #F3EBDD;
  --ivory-dim: #BFB8AD;
  --ivory-muted: rgba(243,235,221,0.55);
  --warm-white: #FAF6F0;
  --shadow-heavy: rgba(0,0,0,0.65);
  --shadow-light: rgba(0,0,0,0.25);
  --border-subtle: rgba(199,161,91,0.15);
  --border-med: rgba(199,161,91,0.25);
  --radius-sm: 4px;
  --radius-md: 8px;
  --max-width: 1140px;
  --max-width-wide: 1280px;
  --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--gold-light); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--gold); color: var(--black); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--warm-white); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: 0.015em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: 0.01em; }

p { color: var(--ivory-dim); font-size: 1rem; max-width: 68ch; }
.text-gold { color: var(--gold); }
.text-ivory { color: var(--ivory); }
.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- LAYOUT --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.container--wide { max-width: var(--max-width-wide); }

.section {
  padding: 5rem 0;
  position: relative;
}
.section--dark { background: var(--charcoal); }
.section--darker { background: var(--black); }

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section__header .label { margin-bottom: 0.75rem; display: block; }
.section__header h2 { margin-bottom: 0.75rem; }
.section__header p { margin: 0 auto; text-align: center; }

/* divider */
.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  opacity: 0.5;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn--primary {
  background: var(--gold);
  color: var(--black);
}
.btn--primary:hover {
  background: var(--gold-light);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(199,161,91,0.25);
}

.btn--outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--border-med);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn--small {
  font-size: 0.7rem;
  padding: 0.55rem 1.3rem;
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(10,10,12,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: 0.08em;
  text-decoration: none;
}
.nav__logo:hover { color: var(--gold); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav__links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition-base);
}
.nav__links a:hover,
.nav__links a.active { color: var(--gold); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

/* mobile toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ivory);
  transition: all 0.3s ease;
  border-radius: 1px;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,12,0.15) 0%,
    rgba(10,10,12,0.10) 30%,
    rgba(10,10,12,0.35) 60%,
    rgba(10,10,12,0.85) 85%,
    rgba(10,10,12,1) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem 5vh;
  animation: heroFadeUp 1s ease-out 0.3s both;
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: 0.06em;
  line-height: 1.05;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

/* --- CARDS (generic) --- */
.card {
  background: var(--charcoal-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-base);
}
.card:hover {
  border-color: var(--border-med);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--warm-white);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.card__meta {
  font-size: 0.85rem;
  color: var(--ivory-muted);
  margin-bottom: 0.5rem;
}
.card__body {
  font-size: 0.9rem;
  color: var(--ivory-dim);
  line-height: 1.65;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: 0.8rem;
}
.card__link:hover { color: var(--gold-light); }
.card__link svg { width: 14px; height: 14px; }

/* --- CREDITS GRID (homepage selected) --- */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.credit-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--charcoal-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}
.credit-item:hover {
  border-color: var(--border-med);
  background: var(--charcoal-mid);
}
.credit-item__year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-dim);
  white-space: nowrap;
  min-width: 55px;
}
.credit-item__info { flex: 1; }
.credit-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--warm-white);
  line-height: 1.3;
}
.credit-item__role {
  font-size: 0.82rem;
  color: var(--ivory-muted);
  margin-top: 0.15rem;
}

/* --- FILMOGRAPHY TABLE --- */
.filmography-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ivory-dim);
  cursor: pointer;
  transition: all var(--transition-base);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.filter-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.filmography-table {
  width: 100%;
  border-collapse: collapse;
}
.filmography-table thead th {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-med);
}
.filmography-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base);
}
.filmography-table tbody tr:hover { background: var(--charcoal-light); }
.filmography-table tbody tr.hidden { display: none; }
.filmography-table td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  vertical-align: top;
}
.filmography-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold-dim);
  white-space: nowrap;
  width: 90px;
}
.filmography-table td:nth-child(2) {
  font-family: var(--font-display);
  color: var(--warm-white);
  font-weight: 600;
}
.filmography-table .medium-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: var(--gold-subtle);
  color: var(--gold);
  white-space: nowrap;
}

/* --- PODCAST CARDS --- */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* --- VIDEO CARDS --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: var(--charcoal-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}
.video-card:hover {
  border-color: var(--border-med);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--charcoal-mid);
  overflow: hidden;
}
.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.video-card:hover .video-card__play { opacity: 1; }
.video-card__play svg {
  width: 48px;
  height: 48px;
  fill: var(--gold);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.video-card__info { padding: 1.25rem; }
.video-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--warm-white);
  margin-bottom: 0.3rem;
}
.video-card__meta {
  font-size: 0.82rem;
  color: var(--ivory-muted);
}

/* --- PRESS LIST --- */
.press-list { list-style: none; }
.press-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}
.press-item:hover { background: var(--charcoal-light); padding-left: 1rem; padding-right: 1rem; border-radius: var(--radius-sm); }
.press-item__date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-dim);
}
.press-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--warm-white);
  line-height: 1.4;
}
.press-item__source {
  font-size: 0.82rem;
  color: var(--ivory-muted);
  margin-top: 0.15rem;
}
.press-item__link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* --- ABOUT / BIO --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.about-intro__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.about-intro__image img {
  width: 100%;
  display: block;
}
.about-intro__text h1 { margin-bottom: 1rem; }
.about-intro__text p {
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.8;
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --- PAGE HERO (interior pages) --- */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background: var(--charcoal);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(199,161,91,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .label { margin-bottom: 0.75rem; display: block; }
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { margin: 0 auto; text-align: center; }

/* --- FOOTER --- */
.footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--black);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.footer__tagline {
  font-size: 0.82rem;
  color: var(--ivory-muted);
}
.footer__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer__links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ivory-muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  opacity: 0.6;
}

/* --- FADE IN ON SCROLL --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .press-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .press-item__link { justify-self: start; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,12,0.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav__toggle { display: flex; }

  .hero__content { padding-bottom: 3vh; }
  .hero__name { font-size: clamp(2.2rem, 10vw, 3.5rem); }

  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }

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

  .filmography-table { font-size: 0.85rem; }
  .filmography-table thead { display: none; }
  .filmography-table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1rem 0;
    gap: 0.2rem;
  }
  .filmography-table td { padding: 0.2rem 0; }
  .filmography-table td:first-child { width: auto; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 260px; justify-content: center; }
  .filmography-controls { gap: 0.5rem; }
  .filter-btn { padding: 0.45rem 0.9rem; font-size: 0.65rem; }
}
