/* ============================================================
   RED PLANET LABS — CINEMATIC HOME
   Loaded only by index.html, on top of style.css.

   The template feel came from structure, not colour: every band
   the same shape, centred heading, even grid. This file breaks
   that — full-bleed stage, angled cuts, staggered grid, giant
   ghost numerals, depth layers and scroll-driven motion.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
  --chrome-1: #fffaf0;
  --chrome-2: #d9c9a8;
  --chrome-3: #8e7a54;
  --scroll: 0;      /* 0..1 through the hero, set by JS */
  --mx: 0;          /* pointer, -1..1 */
  --my: 0;
}

/* Home page runs its own background; kill the global starfield */
body.home .starfield { display: none; }

/* ---------- Reveal system ---------- */
.rv {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.rv.in { opacity: 1; transform: none; }
.rv--l { transform: translate3d(-44px, 0, 0); }
.rv--r { transform: translate3d(44px, 0, 0); }
.rv--s { transform: scale(.92); }
.rv[data-d="1"] { transition-delay: .10s; }
.rv[data-d="2"] { transition-delay: .20s; }
.rv[data-d="3"] { transition-delay: .30s; }
.rv[data-d="4"] { transition-delay: .40s; }
.rv[data-d="5"] { transition-delay: .50s; }

/* ============================================================
   ACT I — THE STAGE
   ============================================================ */
.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 90% at 18% 46%, #3a0f14 0%, #1a0a10 38%, #0a0609 72%),
    #0a0609;
  isolation: isolate;
}

/* depth layers */
.stage-layer { position: absolute; inset: 0; pointer-events: none; }

#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }

.neb {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: .5;
}
.neb--a { width: 62vw; height: 62vw; left: -14vw; top: -10vw;
  background: radial-gradient(circle, rgba(184,54,43,.62), transparent 66%);
  transform: translate3d(0, calc(var(--scroll) * 90px), 0); }
.neb--b { width: 46vw; height: 46vw; right: -8vw; bottom: -16vw;
  background: radial-gradient(circle, rgba(79,184,165,.30), transparent 68%);
  transform: translate3d(0, calc(var(--scroll) * -70px), 0); }
.neb--c { width: 34vw; height: 34vw; left: 42%; top: 24%;
  background: radial-gradient(circle, rgba(217,164,65,.22), transparent 70%);
  transform: translate3d(0, calc(var(--scroll) * 140px), 0); }

/* the planet */
.stage-planet {
  position: absolute;
  left: -12vw; bottom: -30vh;
  width: min(86vh, 74vw); aspect-ratio: 1;
  transform:
    translate3d(calc(var(--mx) * 14px), calc(var(--scroll) * -150px + var(--my) * 10px), 0);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.stage-planet img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 120px rgba(184,54,43,.55));
  animation: drift 26s ease-in-out infinite;
}
@keyframes drift {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-18px) rotate(1.2deg); }
}

/* terminator sweep across the planet */
.stage-planet::after {
  content: ''; position: absolute; inset: 6%;
  border-radius: 50%;
  background: linear-gradient(100deg, transparent 38%, rgba(10,6,9,.72) 62%);
  pointer-events: none;
}


/* letterbox + vignette — the single biggest "film" cue */
.stage-frame {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  box-shadow:
    inset 0 90px 120px -60px rgba(6,4,6,.96),
    inset 0 -110px 130px -60px rgba(6,4,6,.98);
}
.stage-frame::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 96% 82% at 50% 50%, transparent 52%, rgba(6,4,6,.82) 100%);
}
.scanlines {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .30;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.42) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* ---------- hero content ---------- */
.stage-inner {
  position: relative; z-index: 6;
  width: min(1240px, 92vw); margin-inline: auto;
  padding: clamp(56px,7vh,84px) 0 clamp(72px,10vh,104px);
  display: grid; grid-template-columns: 1fr;
}
.stage-copy { max-width: 46rem; margin-left: auto; text-align: right; }

/* serial chapter slug */
.chapter {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(217,164,65,.42);
  padding: 9px 18px; margin-bottom: 24px;
  background: rgba(10,6,9,.5); backdrop-filter: blur(6px);
}
.chapter::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--mars-hot); box-shadow: 0 0 12px var(--mars-hot);
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip { 0%,100%{opacity:1} 50%{opacity:.25} }

/* the title — chrome fill, hard shadow, print misregistration */
.stage-title {
  font-family: 'Bebas Neue', var(--font-head), sans-serif;
  font-size: clamp(2.7rem, 7.4vw, 5.9rem);
  line-height: .84; letter-spacing: .012em;
  margin: 0 0 .22em;
  text-transform: uppercase;
}
.stage-title .ln { display: block; position: relative; }
.stage-title .chrome {
  background: linear-gradient(177deg,
    var(--chrome-1) 0%, var(--chrome-2) 38%, var(--chrome-3) 52%,
    var(--chrome-2) 64%, var(--chrome-1) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 5px 0 rgba(74,18,24,.92)) drop-shadow(0 16px 34px rgba(0,0,0,.72));
}
.stage-title .flame {
  background: linear-gradient(177deg, #ffd9a0 0%, var(--mars-hot) 46%, var(--mars-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 5px 0 rgba(30,6,8,.9)) drop-shadow(0 0 46px rgba(217,85,60,.5));
}

.stage-sub {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--paper-dim); max-width: 42ch;
  margin: 0 0 1.7em auto;
}
.stage-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

/* scroll cue */
.cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 6;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .56rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--paper-mute);
}
.cue span { display: block; width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, var(--brass));
  animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100%{transform:scaleY(.25);opacity:.35} 50%{transform:scaleY(1);opacity:1} }

@media (max-width: 860px) {
  .stage-copy { text-align: left; margin-left: 0; }
  .stage-sub { margin-right: auto; }
  .stage-actions { justify-content: flex-start; }
  .stage-planet { left: -30vw; bottom: -14vh; width: 120vw; opacity: .58; }
}

/* ============================================================
   ANGLED ACT DIVIDERS
   ============================================================ */
.act {
  position: relative;
  padding: clamp(96px, 13vw, 170px) 0;
  z-index: 2;
}
.act--cut {
  clip-path: polygon(0 3.2vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -3.2vw;
}
.act--cut-b { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.2vw), 0 100%); }

.act--deep {
  background:
    radial-gradient(ellipse 70% 100% at 80% 0%, rgba(74,18,24,.55), transparent 62%),
    linear-gradient(180deg, var(--void-2), var(--void));
}
.act--void { background: linear-gradient(180deg, var(--void), var(--void-2)); }

/* act heading — left aligned, numeral, rule running off the edge */
.act-head { position: relative; margin-bottom: clamp(48px, 6vw, 78px); }
.act-num {
  position: absolute; right: -1vw; top: -6vw;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(9rem, 26vw, 26rem);
  line-height: .7; color: rgba(236,224,203,.038);
  pointer-events: none; user-select: none; z-index: 0;
  letter-spacing: -.02em;
}
.act-label {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .36em; text-transform: uppercase;
  color: var(--atomic); margin-bottom: 18px;
}
.act-label::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, rgba(79,184,165,.5), transparent);
}
.act-title {
  position: relative; z-index: 1;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  margin: 0 0 .4em; color: var(--paper);
}
.act-title em { color: var(--brass); font-style: italic; }
.act-lede { color: var(--paper-dim); max-width: 52ch; font-size: 1.04rem; margin: 0; }

/* ============================================================
   ACT II — DEPARTMENTS, staggered not gridded
   ============================================================ */
.depts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px); align-items: start;
}
.dept { position: relative; text-decoration: none; display: block; }
.dept:nth-child(1) { margin-top: 0; }
.dept:nth-child(2) { margin-top: clamp(20px, 3.4vw, 48px); }
.dept:nth-child(3) { margin-top: clamp(8px, 1.6vw, 22px); }

.dept-art {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  border: 1px solid rgba(236,224,203,.14);
  background: var(--void-3);
}
.dept-art img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) contrast(1.1) brightness(.72);
  transform: scale(1.04);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.dept:hover .dept-art img { transform: scale(1.12); filter: saturate(1) contrast(1.05) brightness(.92); }
.dept-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,6,9,.1) 0%, rgba(10,6,9,.5) 52%, rgba(10,6,9,.94) 100%);
}
.dept-art::before {
  content: ''; position: absolute; inset: 0; z-index: 2; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,240,215,.2) 50%, transparent 62%);
  transform: translateX(-100%);
  transition: opacity .2s ease;
}
.dept:hover .dept-art::before { opacity: 1; animation: sheen 1.1s cubic-bezier(.2,.7,.2,1); }
@keyframes sheen { to { transform: translateX(100%); } }

.dept-plate {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 26px 24px 24px;
}
.dept-idx {
  font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .3em; color: var(--brass); margin-bottom: 10px;
}
.dept-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: .95;
  color: var(--paper); margin: 0 0 .32em; letter-spacing: .02em;
}
.dept-desc { font-size: .87rem; color: var(--paper-dim); margin: 0 0 16px; }
.dept-go {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brass);
}
.dept-go::after { content: '→'; transition: transform .3s ease; }
.dept:hover .dept-go::after { transform: translateX(6px); }

.dept-flag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: var(--font-mono); font-size: .55rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper); background: rgba(10,6,9,.66);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(236,224,203,.24); padding: 6px 11px;
}

@media (max-width: 800px) {
  .depts { grid-template-columns: 1fr; }
  .dept { margin-top: 0 !important; }
  .dept-art { aspect-ratio: 16/10; }
}

/* ============================================================
   ACT III — FEATURE (Butterfly Girl)
   ============================================================ */
.feature {
  position: relative; overflow: hidden;
  padding: clamp(90px, 12vw, 150px) 0;
  background:
    radial-gradient(ellipse 60% 100% at 22% 50%, rgba(107,26,70,.5), transparent 64%),
    linear-gradient(180deg, var(--void-2), var(--void-3) 55%, var(--void));
}
.feature-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(210px, 330px) 1fr;
  gap: clamp(34px, 6vw, 80px); align-items: center;
}
.feature-cover {
  position: relative; display: block;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.feature-cover img {
  width: 100%; height: auto;
  border: 1px solid rgba(236,224,203,.2);
  box-shadow: 0 40px 90px rgba(0,0,0,.72), 0 0 70px rgba(184,54,43,.2);
}
.feature-cover::after {
  content: ''; position: absolute; inset: -14%;
  background: radial-gradient(circle, rgba(217,85,60,.34), transparent 66%);
  z-index: -1; filter: blur(34px);
}
.feature-kicker {
  display: inline-block;
  font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--void); background: var(--brass);
  padding: 7px 14px; margin-bottom: 20px;
}
.feature-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .86;
  letter-spacing: .015em; margin: 0 0 .3em; color: var(--paper);
}
.feature-title em { font-style: normal; color: var(--brass); display: block; }
.feature p { color: var(--paper-dim); max-width: 54ch; }
.feature-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 22px 0 0; }
.feature-tag {
  font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--atomic);
  border: 1px solid rgba(79,184,165,.4); padding: 7px 13px;
}
@media (max-width: 780px) { .feature-grid { grid-template-columns: 1fr; } .feature-cover { max-width: 250px; } }

/* ============================================================
   CARD TILT (catalogue)
   ============================================================ */
.tilt { transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.tilt .prod-art { overflow: hidden; }
.tilt::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: 0; transition: opacity .4s ease;
  background: linear-gradient(115deg, transparent 40%, rgba(255,240,215,.13) 50%, transparent 60%);
}
.tilt:hover::after { opacity: 1; }

/* ============================================================
   TRANSMISSION PANEL
   ============================================================ */
.transmission {
  position: relative; overflow: hidden;
  padding: clamp(80px, 11vw, 130px) 0;
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(36,121,108,.22), transparent 60%),
    linear-gradient(180deg, var(--void), var(--void-2));
}
.panel {
  position: relative; z-index: 2;
  width: min(760px, 92vw); margin-inline: auto;
  border: 1px solid rgba(217,164,65,.3);
  background: rgba(10,6,9,.6); backdrop-filter: blur(8px);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
}
.panel::before, .panel::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border: 1px solid var(--brass);
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.panel h2 { color: var(--paper); }
.panel h2 em { color: var(--atomic); font-style: italic; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .stage-planet, .stage-planet img, .neb--a, .neb--b, .neb--c { animation: none; transform: none; }
  .cue span { animation: none; }
  .chapter::before { animation: none; }
  .tilt, .feature-cover { transition: none; }
}

/* ---------- Department plates (hand-built SVG, no product photos) ----------
   The Etsy listing shots are now white spec sheets; cropped into a dark
   card they read as mistakes, and one of them carries a franchise name
   in the artwork. Drawn art sidesteps both problems. */
.dept-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dept-art--paddles { --s1: #6d1c16; --s2: #1a0a0c; }
.dept-art--toys    { --s1: #16564e; --s2: #07211f; }
.dept-art--books   { --s1: #6d4a12; --s2: #1d1205; }
.dept-rays { transform-origin: 200px 260px; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.dept:hover .dept-rays { transform: rotate(7deg); }
.dept-art--paddles::after, .dept-art--toys::after, .dept-art--books::after {
  background: linear-gradient(180deg, rgba(10,6,9,.05) 0%, rgba(10,6,9,.45) 48%, rgba(10,6,9,.95) 100%);
}


/* ============================================================
   NEW IN THE SHOP — sits above the hero, first thing on the page
   ============================================================ */
.whatsnew {
  position: relative; z-index: 3;
  background:
    radial-gradient(ellipse 70% 150% at 12% 50%, rgba(107,26,70,.55), transparent 62%),
    linear-gradient(180deg, #17101a, #0d080c);
  border-bottom: 1px solid rgba(217,164,65,.26);
  padding: clamp(26px, 3.4vw, 42px) 0 clamp(30px, 3.8vw, 46px);
}
.whatsnew-label {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 20px;
}
.wn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mars-hot); box-shadow: 0 0 12px var(--mars-hot);
  animation: blip 2.4s ease-in-out infinite;
}
.whatsnew-grid {
  display: grid; grid-template-columns: clamp(96px, 11vw, 148px) 1fr;
  gap: clamp(20px, 3vw, 40px); align-items: center;
}
.whatsnew-cover { display: block; position: relative; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.whatsnew-cover img {
  width: 100%; height: auto; display: block;
  border: 1px solid rgba(236,224,203,.22);
  box-shadow: 0 18px 44px rgba(0,0,0,.66);
}
.whatsnew-cover:hover { transform: translateY(-4px); }
.whatsnew-kicker {
  display: inline-block;
  font-family: var(--font-mono); font-size: .56rem;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--void); background: var(--brass);
  padding: 5px 11px; margin-bottom: 12px;
}
.whatsnew-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: .9;
  letter-spacing: .015em; margin: 0 0 .4em; color: var(--paper);
}
.whatsnew-title em { font-style: normal; color: var(--brass); display: block; }
.whatsnew-body p { color: var(--paper-dim); max-width: 62ch; font-size: .95rem; margin: 0 0 14px; }
.whatsnew-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.whatsnew-meta .price { font-size: 1.3rem; }
.whatsnew-tag {
  font-family: var(--font-mono); font-size: .56rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--atomic);
  border: 1px solid rgba(79,184,165,.4); padding: 6px 11px;
}
.whatsnew-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 680px) {
  .whatsnew-grid { grid-template-columns: 1fr; }
  .whatsnew-cover { max-width: 170px; }
}
