/* ==========================================================================
   VENUS — HOME CINEMATIC HERO (Stage 5 · Phase 1.5 enterprise composition)
   Full-viewport, two-zone hero: typography LEFT, Material Stage object RIGHT
   (the object's screen position is set by the WebGL camera in home-cinematic.js,
   so it is never centred at 50%). Layered atmospheric background. Loaded only
   on the homepage. Progressive enhancement preserved (base static hero works
   without JS/WebGL/reduced-motion).
   ========================================================================== */

/* Manrope (self-hosted variable) — premium, quiet, editorial display type. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

.cine-hero { position: relative; background: #0a0908; }
/* Shorter scroll journey (was 340/300/280vh) — compressed, intentional. */
.cine-hero.is-cinematic { height: 240vh; }
@media (max-width: 991.98px) { .cine-hero.is-cinematic { height: 220vh; } }
@media (max-width: 575.98px)  { .cine-hero.is-cinematic { height: 200vh; } }

/* Full-viewport sticky stage. */
.cine-hero__sticky {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
  display: flex; align-items: center;
  /* Atmosphere: graphite->black base (cleaner/darker behind the LEFT text),
     restrained mineral warmth behind the right-lower material, and deeper
     atmospheric density toward the lower-right so the material sinks into it.
     Large & diffuse => reads as depth, not a visible blob. */
  background:
    radial-gradient(58% 68% at 72% 60%, rgba(150,96,48,0.06), transparent 72%),
    radial-gradient(85% 95% at 80% 86%, rgba(3,3,2,0.55), transparent 62%),
    linear-gradient(180deg, #100f0d 0%, #0a0908 56%, #070605 100%);
}
.cine-hero.is-cinematic .cine-hero__sticky { position: sticky; top: 0; }

/* WebGL canvas fills the viewport (object placed by camera, not CSS). */
.cine-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cine-stage canvas { display: block; width: 100%; height: 100%; }
/* Depth vignette + top scrim so the header stays legible. */
.cine-hero__sticky::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(135% 100% at 62% 42%, transparent 52%, rgba(5,4,3,0.6) 100%),
    linear-gradient(180deg, rgba(5,4,3,0.5) 0%, transparent 20%);
}

/* --- Typography zone (LEFT) -----------------------------------------------
   Full-bleed left column anchored ~7vw from the edge (not the centred Bootstrap
   container), so the headline gets its own clean field independent of the
   right-weighted material. */
.cine-hero__copy { position: relative; z-index: 2; width: 100%; }
.cine-hero__copy .container { max-width: none; margin: 0; padding-inline: clamp(1.25rem, 7vw, 190px); }
.cine-stack { position: relative; }
.cine-copy {
  max-width: min(40vw, 680px);                 /* tighter editorial column (~left 35-40%) */
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}
.cine-hero.is-cinematic .cine-copy { position: absolute; top: 0; left: 0; }  /* left = container's 7vw pad */
.cine-copy--arrival { opacity: 1; }
.cine-br { display: inline; }

.cine-eyebrow {
  font-family: "Manrope", var(--font-heading); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-300);
  display: inline-flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-5);
}
.cine-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--copper-500); }

.cine-title {
  font-family: "Manrope", var(--font-heading); font-weight: 700;
  color: var(--text-on-dark);
  font-size: clamp(3.5rem, 4.5vw, 5.1rem);     /* ~58px -> 82px editorial display */
  line-height: 1.0; letter-spacing: -0.04em;
  margin: 0 0 var(--space-6); text-wrap: balance;
}
.cine-title .accent { color: var(--copper-300); }
.cine-lede {
  font-family: "Manrope", var(--font-body); font-weight: 450;
  color: var(--text-on-dark-muted);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem); line-height: 1.55;
  max-width: 40ch; margin: 0;
}

/* One restrained, enterprise CTA — understated underline + arrow (not a big
   rounded startup button). */
.cine-actions { margin-top: var(--space-8); }
.cine-cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Manrope", var(--font-heading); font-weight: 600;
  font-size: 0.9375rem; letter-spacing: 0.01em;
  color: var(--text-on-dark); padding: 0 0 10px;
  border-bottom: 1px solid rgba(237,231,223,0.32);
  transition: color var(--dur-standard) var(--ease-out), border-color var(--dur-standard) var(--ease-out);
}
.cine-cta:hover { color: var(--copper-300); border-color: var(--copper-500); text-decoration: none; }
.cine-cta__arrow { transition: transform var(--dur-standard) var(--ease-out); }
.cine-cta:hover .cine-cta__arrow { transform: translateX(5px); }

/* Scroll hint (enhanced only). */
.cine-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; display: none; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 0.625rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text-on-dark-muted);
}
.cine-hero.is-cinematic .cine-hint { display: flex; }
.cine-hint__line { width: 1px; height: 40px; background: linear-gradient(var(--copper-500), transparent); }

/* --- Header overlay (over the dark hero) ---------------------------------- */
.site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
}
.site-header--overlay .primary-nav__link,
.site-header--overlay .nav-toggle { color: var(--text-on-dark); }
.site-header--overlay .primary-nav__link[aria-current="page"] { color: var(--text-on-dark); }
.site-header--overlay .nav-toggle { border-color: rgba(237,231,223,0.28); }
.site-header--overlay .site-logo { border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(237,231,223,0.14); }
.site-header--overlay .site-logo__img { height: 30px; }
.site-header--overlay.is-scrolled {
  background: rgba(13, 11, 9, 0.78);
  border-bottom-color: var(--color-border-dark);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header--overlay.is-scrolled { background: rgba(13, 11, 9, 0.95); }
}

/* --- Responsive compositions ---------------------------------------------- */
/* Laptop */
@media (max-width: 1199.98px) {
  .cine-copy { max-width: min(50vw, 620px); }
}
/* Tablet: text still left but wider; object right-lower (camera handles object). */
@media (max-width: 991.98px) {
  .cine-copy, .cine-hero.is-cinematic .cine-copy { max-width: min(62vw, 560px); }
}
/* Mobile: text upper, object lower (camera lowers the object). */
@media (max-width: 767.98px) {
  .cine-hero__sticky { align-items: flex-start; }
  .cine-copy, .cine-hero.is-cinematic .cine-copy {
    max-width: 100%; left: 0; top: auto; padding-top: 14vh;
  }
  .cine-title { font-size: clamp(2rem, 8.5vw, 3rem); }
  .cine-lede { max-width: 36ch; }
  .cine-br { display: none; }   /* natural wrap on mobile */
}

/* --- Reduced motion: static premium composition --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cine-hero.is-cinematic { height: auto; }
  .cine-hero.is-cinematic .cine-hero__sticky { position: relative; }
  .cine-hero.is-cinematic .cine-copy { position: relative; opacity: 1; transform: none; }
  .cine-hero.is-cinematic .cine-copy:not(.cine-copy--arrival) { display: none; }
  .cine-hint { display: none !important; }
}
