/* ==========================================================================
   TaradomeFilms — homepage styles (loaded after site.css)
   Signature element: the "projection gate" hero — video framed like a film
   gate, wordmark reading as light projected through it.
   ========================================================================== */

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

/* Projection gate: the video is inset with a subtle bright frame + vignetting,
   evoking a film gate / projected image rather than a full-bleed stock video. */
.hero-gate { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* desaturate + cool the footage so any placeholder reads as brand, not stock */
  filter: saturate(0.75) contrast(1.05) brightness(0.6);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 25% 40%, rgba(107,63,160,0.25), transparent 60%),
    linear-gradient(to top, var(--black) 4%, rgba(5,5,8,0.55) 45%, rgba(5,5,8,0.75) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-inner { position: relative; z-index: 2; max-width: 60rem; }
.hero .eyebrow { margin-bottom: 1.8rem; }
.hero-title {
  font-size: clamp(2.9rem, 8vw, 6.2rem);
  letter-spacing: -0.02em;
}
.hero-lede {
  margin-top: 1.8rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.7;
}
.hero-actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* scroll cue */
.hero-scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px; border: 1px solid var(--line-strong);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--purple-bright); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }

/* ---------------- MISSION ---------------- */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-body p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.3rem; }
.mission-stats { list-style: none; display: flex; gap: 2.5rem; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.mission-stats strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.mission-stats span { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-2); margin-top: 0.5rem; display: block; }

/* ---------------- FLAGSHIP ---------------- */
.flagship-card {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--ink-2);
}
@media (max-width: 860px) { .flagship-card { grid-template-columns: 1fr; } }
.flagship-media {
  position: relative; min-height: 340px;
  background:
    radial-gradient(90% 80% at 30% 20%, rgba(107,63,160,0.4), transparent 60%),
    radial-gradient(80% 70% at 90% 90%, rgba(110,31,36,0.35), transparent 55%),
    linear-gradient(135deg, #1a1424, #0b0b11);
}
.flagship-grain {
  position: absolute; inset: 0; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.flagship-copy { padding: clamp(2rem, 4vw, 3.5rem); }
.flagship-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 1.2rem 0 1.4rem; }
.flagship-copy p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.flagship-actions { margin-top: 2rem; }
.flagship-note { font-size: 0.82rem; color: var(--muted-2); margin-top: 1.3rem; }

/* ---------------- PILLARS ---------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--black); padding: clamp(2rem, 3vw, 2.8rem); }
.pillar-index { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--purple-bright); }
.pillar h3 { font-size: 1.7rem; margin: 1rem 0 0.8rem; }
.pillar p { color: var(--muted); font-size: 0.96rem; line-height: 1.65; }

/* ---------------- ROADMAP / NEWSLETTER ---------------- */
.roadmap { text-align: center; }
.roadmap .section-head { margin-inline: auto; text-align: center; }
.roadmap .section-head .eyebrow { justify-content: center; }
.newsletter { display: flex; gap: 0; max-width: 480px; margin: 0 auto; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; }
.newsletter input {
  flex: 1; background: var(--ink-3); border: none; color: var(--white);
  padding: 1rem 1.3rem; font-family: var(--sans); font-size: 0.95rem;
}
.newsletter input:focus { outline: none; }
.newsletter button { border-radius: 0; white-space: nowrap; }
.newsletter-status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.2em; }
.newsletter-status.ok { color: var(--purple-bright); }
.newsletter-status.err { color: #e9a3a3; }
.newsletter-note { margin-top: 0.8rem; font-size: 0.78rem; color: var(--muted-2); }
@media (max-width: 520px) {
  .newsletter { flex-direction: column; }
  .newsletter button { justify-content: center; }
}

/* ---------------- FEATURED TRAILER (CMS) ---------------- */
.featured-trailer { border-top: 1px solid var(--line); text-align: center; }
.trailer-head { max-width: 60ch; margin: 0 auto 2.5rem; }
.trailer-head .eyebrow { justify-content: center; }
.trailer-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-top: 1rem; }
.trailer-head p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.trailer-frame { max-width: 960px; margin: 0 auto; }
.trailer-play { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--ink-3); padding: 0; }
.trailer-play img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), filter 0.4s; filter: brightness(0.72); }
.trailer-play:hover img { transform: scale(1.03); filter: brightness(0.85); }
.trailer-noposter { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 40%, rgba(107,63,160,0.4), transparent 60%), linear-gradient(135deg, #1a1424, #0b0b11); }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; border-radius: 50%; background: rgba(139,92,246,0.92); display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease), background 0.3s; }
.trailer-play:hover .play-icon { transform: translate(-50%,-50%) scale(1.08); background: var(--purple-bright); }
.play-icon svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.trailer-actions { margin-top: 2rem; }

/* Hero teaser badge */
.hero-teaser { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.6rem; padding: 0.6rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 40px; font-size: 0.85rem; color: var(--white); transition: background 0.25s, border-color 0.25s; }
.hero-teaser:hover { background: rgba(139,92,246,0.1); border-color: var(--purple-bright); }
.teaser-play { width: 26px; height: 26px; border-radius: 50%; background: var(--purple); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.teaser-play svg { width: 13px; height: 13px; color: #fff; margin-left: 1px; }
.hero-teaser strong { color: var(--purple-bright); font-weight: 400; }

/* Trailer lightbox modal */
.trailer-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.trailer-modal.open { display: flex; }
.trailer-modal-backdrop { position: absolute; inset: 0; background: rgba(3,3,6,0.92); backdrop-filter: blur(6px); }
.trailer-modal-inner { position: relative; width: min(1100px, 100%); z-index: 1; }
.trailer-modal-close { position: absolute; top: -2.6rem; right: 0; background: none; border: none; color: var(--white); font-size: 2.2rem; line-height: 1; cursor: pointer; }
.trailer-modal-close:hover { color: var(--purple-bright); }
.trailer-stage { aspect-ratio: 16/9; width: 100%; background: #000; border-radius: 6px; overflow: hidden; }
.trailer-stage iframe, .trailer-stage video { width: 100%; height: 100%; border: none; display: block; }
