/* ============================================
   NEW CULT FILMS — Home Page Styles
   ============================================ */

:root {
  --bg:        #282828;
  --accent:    #E8B800;
  --white:     #FFFFFF;
  --gray:      #9B9B9B;
  --gray-dim:  #555555;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
  cursor: none;
}

/* ── Grain overlay ──────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: grain-shift 8s steps(10) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  10%       { transform: translate(-2%, -3%); }
  20%       { transform: translate(3%, 1%); }
  30%       { transform: translate(-1%, 4%); }
  40%       { transform: translate(2%, -2%); }
  50%       { transform: translate(-3%, 3%); }
  60%       { transform: translate(1%, -1%); }
  70%       { transform: translate(-2%, 2%); }
  80%       { transform: translate(3%, -3%); }
  90%       { transform: translate(-1%, 1%); }
}

/* ── Custom Cursor ──────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .25s, height .25s;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .4s cubic-bezier(.16,1,.3,1),
              height .4s cubic-bezier(.16,1,.3,1),
              opacity .3s;
}

/* ── Hero ──────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Subtle vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Hero content wrapper */
.hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vh, 52px);
  padding: 0 24px;
  width: 100%;
}

/* ── Linha ────────────────────────── */
.linha-wrap {
  width: min(680px, 88vw);
  overflow: hidden;
}

.linha {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: left center;
  /* animated by JS */
  opacity: 0;
}

/* ── Logo ─────────────────────────── */
.logo-wrap {
  width: min(680px, 88vw);
  opacity: 0;
  /* animated by JS */
}

.logo-hero {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(232,184,0,.12));
  transition: filter .6s;
}

.logo-hero:hover {
  filter: drop-shadow(0 0 80px rgba(232,184,0,.25));
}

/* ── Floating animation ─────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.logo-float {
  animation: float 6s ease-in-out infinite;
}

/* ── Scroll hint ────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: clamp(24px, 5vh, 48px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  /* animated by JS */
}

.scroll-hint span {
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gray-dim);
}

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

@keyframes scroll-pulse {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50%       { opacity: .9; transform: scaleY(1.2); }
}

/* ── Second Fold ────────────────────── */
.second-fold {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vw, 80px);
  overflow: hidden;
}

/* top-right accent line */
.second-fold::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: clamp(80px, 15vh, 160px);
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: .3;
}

/* corner label */
.fold-label {
  position: absolute;
  top: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gray-dim);
  writing-mode: vertical-rl;
  opacity: 0;
}

.aguardem-block {
  position: relative;
  z-index: 2;
  width: min(700px, 90vw);
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  /* animated by JS on scroll */
}

.aguardem-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Accent dot blink ───────────────── */
.blink-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 12px;
  vertical-align: middle;
  animation: blink 1.4s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(232,184,0,.6);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .15; }
}

/* ── Year / footer strip ─────────────── */
.home-footer {
  position: absolute;
  bottom: clamp(20px, 4vw, 40px);
  left: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gray-dim);
  opacity: 0;
  z-index: 2;
}

/* ── Scroll parallax helpers ─────────────── */
.parallax-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,184,0,.18), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.4s cubic-bezier(.16,1,.3,1);
}
.parallax-line.visible { transform: scaleX(1); }

.counter-line {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.counter-line.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive tweaks ─────────────── */
@media (max-width: 480px) {
  .linha-wrap     { width: 92vw; }
  .logo-wrap      { width: 88vw; }
  .second-fold    { padding: 32px 24px; }
  .aguardem-block { width: 92vw; }
}
