@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Cormorant+SC:wght@300;400;500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --black:       #0a0906;
  --deep:        #111009;
  --surface:     #16140f;
  --border:      rgba(180, 148, 72, 0.18);
  --gold:        #b49448;
  --gold-light:  #d4b06a;
  --gold-dim:    rgba(180, 148, 72, 0.45);
  --text:        #c8bfa8;
  --text-dim:    #7a7160;
  --text-bright: #e8dfc8;
  --white:       #f0e8d8;

  --font-display: 'Cormorant SC', serif;
  --font-body:    'Cormorant Garamond', serif;
  --font-serif:   'EB Garamond', serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.64, 0, 0.78, 0);
}

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

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

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 1000;
}

/* ── SELECTION ── */
::selection {
  background: var(--gold);
  color: var(--black);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(10, 9, 6, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-logo:hover { color: var(--white); }

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

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }

/* ── HAMBURGER (mobile) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold-light);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HERO (shared) ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 160%;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transition: transform 0.18s var(--ease-out);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(10,9,6,0.6) 70%, rgba(10,9,6,0.95) 100%),
    linear-gradient(to bottom, rgba(10,9,6,0.3) 0%, transparent 30%, transparent 60%, rgba(10,9,6,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 6rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1.5rem;
  text-align: center;
  /* Compensate for trailing letter-spacing pushing visible glyphs left of center */
  padding-left: 0.15em;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.5s forwards;
}

.hero-scroll span {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── SECTIONS ── */
.section {
  padding: 7rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-sm {
  padding: 4rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-full {
  padding: 7rem 3rem;
  max-width: 100%;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.section-rule {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
}

.section-body {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.9;
  max-width: 620px;
}

.section-body p + p { margin-top: 1.25rem; }

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── SERIES GRID ── */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 4rem;
}

.series-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--deep);
  text-decoration: none;
  display: block;
}

.series-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-out), filter 0.8s;
  filter: brightness(0.5) saturate(0.7);
}

.series-card:hover .series-card-img {
  transform: scale(1.06);
  filter: brightness(0.65) saturate(0.85);
}

.series-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,6,0.95) 0%, rgba(10,9,6,0.3) 60%, transparent 100%);
  z-index: 1;
  transition: opacity 0.5s;
}

.series-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2rem;
}

.series-card-tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.series-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.series-card-desc {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s;
  opacity: 0;
}

.series-card:hover .series-card-desc {
  max-height: 80px;
  opacity: 1;
}

.series-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 1rem;
  transition: color 0.3s, gap 0.3s;
}

.series-card:hover .series-card-arrow {
  color: var(--gold-light);
  gap: 0.75rem;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 12rem 3rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.25s forwards;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  max-width: 580px;
  line-height: 1.85;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

/* ── PROSE ── */
.prose {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.95;
  max-width: 640px;
}

.prose p + p { margin-top: 1.5rem; }

.prose em { color: var(--text-bright); font-style: italic; }

/* ── CONTACT FORM ── */
.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.9rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn:hover {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--black);
}

/* ── HERO NEXT STORY ── */
.hero-next-story {
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.15s forwards;
}

.hero-next-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
}

.hero-next-countdown {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.16em;

  color: var(--white);

  font-variant-numeric: tabular-nums;
}

.hero-next-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;

  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;

  color: var(--text-dim);
}

.hero-next-series {
  color: var(--gold-dim);
}

.hero-next-separator {
  opacity: 0.4;
}

.hero-next-title {
  color: var(--text);
}

@media (max-width: 768px) {
  .hero-next-story {
    margin-top: 2.5rem;
    gap: 0.8rem;
  }

  .hero-next-countdown {
    font-size: clamp(1.8rem, 10vw, 3rem);
    letter-spacing: 0.08em;
  }

  .hero-next-meta {
    max-width: 300px;
    line-height: 1.8;
  }
}

.hero-next-watch {
  color: var(--white);
  text-decoration: none;

  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;

  transition: opacity 0.3s;
}

.hero-next-watch:hover {
  opacity: 0.7;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav { padding: 1.25rem 1.5rem; }

  .nav-logo {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,9,6,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a { font-size: 1rem; letter-spacing: 0.2em; }

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

  .hero-content { padding: 1rem; }
  .hero-eyebrow { font-size: 0.55rem; letter-spacing: 0.22em; margin-bottom: 1.25rem; }
  .hero-title   { letter-spacing: 0.08em; }
  .hero-subtitle { font-size: 0.95rem; }

  .section, .section-sm { padding: 4rem 1.5rem; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
  .series-grid { grid-template-columns: 1fr; }
}