@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

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

:root {
  --cream: #f5e6c8;
  --caramel: #d4a574;
  --dark: #262117;
  --dark2: #3a3020;
  --dark3: #4e4030;
  --cream2: #ede0c4;
  --cream3: #e8d5aa;
  --caramel2: #c4905a;
  --caramel3: #e8bb8a;
  --text-main: #262117;
  --text-muted: #6b5a3a;
  --text-light: #9a836a;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(38,33,23,0.18);
  --shadow-card: 0 8px 32px rgba(38,33,23,0.22);
  --nav-h: 110px;
  --font-main: 'Poppins', 'Open Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: var(--font-main);
  background-color: var(--cream);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

article[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== GRAIN OVERLAY ===== */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

/* ===== LIGHT LEAKS ===== */
.light-leak-1,
.light-leak-2 {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: leak-pulse 8s ease-in-out infinite;
}

.light-leak-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(212,165,116,0.3) 0%, rgba(245,230,200,0.1) 50%, transparent 70%);
  animation-delay: 0s;
}

.light-leak-2 {
  width: 300px;
  height: 300px;
  bottom: 20%;
  left: -60px;
  background: radial-gradient(circle, rgba(212,165,116,0.2) 0%, rgba(245,230,200,0.08) 50%, transparent 70%);
  animation-delay: 4s;
}

@keyframes leak-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark);
  border-bottom: 2px solid var(--caramel);
  box-shadow: 0 2px 16px rgba(38,33,23,0.4);
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(212,165,116,0.25);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  height: 40px;
  width: auto;
}

.brand-text-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--caramel);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  filter: sepia(0.3);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212,165,116,0.4);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.hamburger:hover { border-color: var(--caramel); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--caramel);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== DESKTOP NAV ROW ===== */
.header-nav-row {
  padding: 0 32px;
  background: var(--dark2);
}

.desktop-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.desktop-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 48px;
  min-height: 48px;
  color: var(--cream2);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
  border-right: 1px solid rgba(212,165,116,0.1);
  position: relative;
}

.desktop-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--caramel);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.desktop-nav .nav-link:hover { color: var(--caramel); background: rgba(212,165,116,0.08); }
.desktop-nav .nav-link:hover::after { transform: scaleX(1); }

.nav-num {
  font-size: 0.68rem;
  color: var(--caramel2);
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ===== FULL-SCREEN MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.menu-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.menu-overlay[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.menu-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(212,165,116,0.4);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.menu-close:hover { border-color: var(--caramel); }

.menu-close span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--caramel);
  border-radius: 2px;
}

.menu-close span:first-child { transform: rotate(45deg) translate(1px, 1px); }
.menu-close span:last-child { transform: rotate(-45deg) translate(1px, -1px); }

.overlay-nav ol {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.overlay-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 40px;
  min-height: 56px;
  justify-content: center;
  color: var(--cream);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(212,165,116,0.12);
  transition: color 0.2s, letter-spacing 0.2s;
}

.overlay-nav .nav-link:hover { color: var(--caramel); letter-spacing: 0.1em; }

.overlay-nav .nav-num {
  font-size: 0.65rem;
  color: var(--caramel2);
  opacity: 0.6;
}

.overlay-brand {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(212,165,116,0.3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== HERO ===== */
.hero-section {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 32px 40px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, var(--dark3) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(245,230,200,0.015) 3px,
    rgba(245,230,200,0.015) 4px
  );
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.badge-film,
.badge-rec {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--caramel);
  background: rgba(212,165,116,0.15);
  border: 1px solid rgba(212,165,116,0.35);
  border-radius: 3px;
  padding: 6px 12px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.badge-rec {
  color: #e06060;
  background: rgba(224,96,96,0.1);
  border-color: rgba(224,96,96,0.3);
  animation: blink-rec 1.5s step-end infinite;
}

@keyframes blink-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(212,165,116,0.4);
}

.hero-h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-desc {
  font-size: 1rem;
  color: var(--cream3);
  opacity: 0.85;
  max-width: 480px;
  margin-bottom: 24px;
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-height: 44px;
  background: var(--caramel);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 2px solid var(--caramel);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(212,165,116,0.4);
}

.btn-primary:hover {
  background: var(--caramel3);
  border-color: var(--caramel3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,165,116,0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-height: 44px;
  background: transparent;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 2px solid rgba(245,230,200,0.35);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-ghost:hover {
  border-color: var(--caramel);
  color: var(--caramel);
  transform: translateY(-2px);
}

.hero-tape-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  color: rgba(212,165,116,0.4);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.tape-track { letter-spacing: 0.01em; }
.tape-text { white-space: nowrap; }

/* ===== POLAROID HERO ===== */
.hero-polaroid {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: polaroid-float 4s ease-in-out infinite;
}

@keyframes polaroid-float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1.5deg) translateY(-10px); }
}

.polaroid-frame {
  background: #f0e8d5;
  padding: 12px 12px 36px;
  border-radius: 4px;
  box-shadow: var(--shadow-card), 6px 6px 0 rgba(38,33,23,0.3);
  width: 160px;
  transform: rotate(3deg);
}

.polaroid-img-area {
  width: 136px;
  height: 136px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, var(--caramel2) 100%);
  overflow: hidden;
  position: relative;
}

.polaroid-static {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(245,230,200,0.04) 0px,
    rgba(245,230,200,0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  animation: vhs-track 3s linear infinite;
}

@keyframes vhs-track {
  0% { transform: translateY(0) skewX(0deg); }
  10% { transform: translateY(-2px) skewX(0.3deg); }
  20% { transform: translateY(0) skewX(0deg); }
  85% { transform: translateY(0) skewX(0deg); }
  90% { transform: translateY(3px) skewX(-0.4deg); }
  100% { transform: translateY(0) skewX(0deg); }
}

.polaroid-caption {
  margin-top: 10px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.08em;
}

/* ===== CONTENT LAYOUT ===== */
.content-wrapper-section {
  padding: 40px 32px 60px;
}

.content-layout {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

/* ===== ASIDE ===== */
.site-aside {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.aside-inner {
  background: var(--dark);
  border: 1px solid rgba(212,165,116,0.2);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
}

.aside-header {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,165,116,0.25);
}

.aside-header h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-link {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  min-height: 40px;
  font-size: 0.82rem;
  color: var(--cream2);
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  line-height: 1.35;
}

.aside-link:hover {
  color: var(--caramel);
  border-left-color: var(--caramel);
  background: rgba(212,165,116,0.08);
}

.aside-vhs-label {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(212,165,116,0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(212,165,116,0.35);
}

.vhs-bar {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(212,165,116,0.35) 0%, transparent 100%);
  border-radius: 2px;
}

/* ===== MAIN CONTENT ===== */
.main-content-col {
  flex: 1;
  min-width: 0;
}

.film-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-main);
}

/* ===== CONTENT INNER STYLES ===== */
.film-content h2,
.film-content h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-top: 2em;
  margin-bottom: 0.75em;
  position: relative;
  padding-bottom: 10px;
}

.film-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  border-bottom: 2px solid var(--caramel);
}

.film-content h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 1em;
  background: var(--caramel);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
  opacity: 0.7;
}

.film-content h3 {
  font-size: 1.1rem;
  color: var(--dark2);
}

.film-content p {
  margin-bottom: 1em;
  max-width: 72ch;
}

.film-content ul,
.film-content ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.film-content ul { list-style: disc; }
.film-content ol { list-style: decimal; }

.film-content li { margin-bottom: 0.4em; }

.film-content a {
  color: var(--caramel2);
  border-bottom: 1px solid rgba(196,144,90,0.4);
  transition: color 0.2s, border-color 0.2s;
}

.film-content a:hover {
  color: var(--caramel);
  border-bottom-color: var(--caramel);
}

.film-content section {
  margin-bottom: 48px;
  padding: 28px 28px 24px;
  background: rgba(245,230,200,0.6);
  border-radius: var(--radius);
  border: 1px solid rgba(212,165,116,0.2);
  box-shadow: 0 2px 12px rgba(38,33,23,0.06);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.film-content section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--caramel) 0%, var(--caramel3) 100%);
}

.film-content section:hover {
  box-shadow: 0 6px 24px rgba(38,33,23,0.14);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: var(--cream2);
  border-top: 2px solid var(--caramel);
}

.footer-cta-block {
  text-align: center;
  padding: 56px 32px 48px;
  background: linear-gradient(180deg, var(--dark2) 0%, var(--dark) 100%);
  border-bottom: 1px solid rgba(212,165,116,0.2);
  position: relative;
  overflow: hidden;
}

.footer-cta-block::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(212,165,116,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.footer-cta-h {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--cream);
}

.footer-cta-h span:first-child { color: var(--cream); }
.footer-cta-brand { color: var(--caramel); }

.footer-cta-desc {
  color: var(--cream3);
  opacity: 0.8;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 40px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212,165,116,0.2);
}

.footer-logo-wrap {
  margin-bottom: 12px;
}

.footer-logo-wrap .brand-text-logo {
  font-size: 1rem;
}

.footer-slogan {
  font-size: 0.85rem;
  color: rgba(245,230,200,0.55);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col nav ol,
.footer-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col nav ol li a,
.footer-info-list li {
  font-size: 0.85rem;
  color: rgba(245,230,200,0.65);
  line-height: 1.5;
  transition: color 0.2s;
}

.footer-col nav ol li a:hover {
  color: var(--caramel);
}

.footer-info-list li a {
  color: rgba(245,230,200,0.65);
  transition: color 0.2s;
}

.footer-info-list li a:hover { color: var(--caramel); }

.footer-bottom-bar {
  border-top: 1px solid rgba(212,165,116,0.15);
  padding: 16px 32px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(245,230,200,0.4);
  letter-spacing: 0.04em;
}

.footer-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(212,165,116,0.4);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(212,165,116,0.6);
  letter-spacing: 0.02em;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .hero-polaroid { display: none; }
  .hero-section { min-height: 40vh; padding: 36px 24px 32px; }
  .content-wrapper-section { padding: 28px 20px 48px; }
  .header-brand-row { padding: 12px 20px; }
  .header-nav-row { padding: 0 20px; }
  .desktop-nav .nav-link { padding: 0 10px; font-size: 0.76rem; }
}

@media (max-width: 700px) {
  :root { --nav-h: 72px; }

  .site-aside { display: none; }
  .content-layout { flex-direction: column; gap: 0; }

  .header-nav-row { display: none; }
  .header-brand-row { padding: 10px 16px; }

  .hero-section { padding: 28px 16px 28px; min-height: 38vh; }
  .hero-h1 { font-size: 1.45rem; }
  .hero-cta-row { gap: 10px; }
  .btn-primary, .btn-ghost { padding: 11px 20px; font-size: 0.9rem; }

  .content-wrapper-section { padding: 20px 16px 40px; }

  .film-content article { padding: 20px 16px 18px; }

  .footer-main { grid-template-columns: 1fr; gap: 20px; padding: 28px 16px; }
  .footer-cta-block { padding: 40px 16px 36px; }
  .footer-bottom-bar { padding: 14px 16px; }

  .overlay-nav .nav-link {
    font-size: 1rem;
    padding: 12px 24px;
    min-height: 48px;
  }

  .overlay-nav .nav-name {
    font-size: 1rem;
    line-height: 1.4;
  }
}

@media (max-width: 375px) {
  .hero-h1 { font-size: 1.25rem; }
  .hero-desc { font-size: 0.9rem; }
  .brand-text-logo { font-size: 1rem; }
}

/* ===== NAV TAP TARGET FIX ===== */
.desktop-nav li,
.overlay-nav li {
  display: flex;
}

.desktop-nav .nav-link,
.overlay-nav .nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}

.desktop-nav .nav-link .nav-name,
.overlay-nav .nav-link .nav-name {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

button[aria-expanded]{min-width:44px;min-height:44px}
