/* NariYume landing — scroll-cinema hype page.
 * Pinned scenes driven by --p (0→1 scroll progress, set by landing.js).
 * Legal pages keep the old styles.css; this file is index-only. */

:root {
  --cream:     #FFF7EC;
  --pink:      #FFD5DD;
  --pink-soft: #FFE8EE;
  --pink-deep: #FF7FA6;
  --butter:    #FFE48A;
  --mint:      #B7E4C9;
  --lavender:  #D9C8F0;
  --cocoa:     #4A3626;
  --cocoa-soft:#8B7360;
  --white:     #FFFFFF;
  --nari:      #F4A7BB;
  --yume:      #E8434A;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-chunk: 0 6px 0 rgba(74, 54, 38, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* clip, NOT hidden — overflow-x:hidden creates a scroll container and silently
     kills every position:sticky pin on the page */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }

/* ── scroll progress bar ── */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 5px;
  background: rgba(74,54,38,.08); z-index: 60;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--nari), var(--lavender), var(--yume));
  border-radius: 0 4px 4px 0;
}

/* ── petals canvas ── */
#petals {
  /* above all scene content (pins are z2), below the nav (z50) — petals drift
     over the whole page; pointer-events none keeps everything clickable */
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
}

/* ── top nav (appears after hero) ── */
.topnav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 22px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border: 2px solid var(--cocoa); border-radius: 999px;
  padding: 8px 10px 8px 20px;
  box-shadow: var(--shadow-chunk);
  z-index: 50; transition: transform .45s cubic-bezier(.2,.9,.3,1.2);
  white-space: nowrap;
}
.topnav-brand { font-weight: 700; letter-spacing: .5px; }
.topnav-links { display: flex; align-items: center; gap: 16px; }
.topnav-links a { color: var(--cocoa); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topnav-links a:hover { color: var(--pink-deep); }
.topnav-cta {
  background: var(--pink-deep); color: var(--white) !important;
  padding: 7px 16px; border-radius: 999px; border: 2px solid var(--cocoa);
}

/* ── pinned scene machinery ──
 * .pin wrapper is tall; .pin-inner is sticky 100vh. JS sets --p (0..1).
 * Stages fire as .s1 … .s4 classes are added at progress thresholds. */
.pin { position: relative; height: 175vh; z-index: 2; }
.pin-tall { height: 260vh; }
.pin-inner {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
[data-stage] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.3,1.1);
}
.s1 [data-stage="1"], .s2 [data-stage="1"], .s3 [data-stage="1"], .s4 [data-stage="1"],
.s2 [data-stage="2"], .s3 [data-stage="2"], .s4 [data-stage="2"],
.s3 [data-stage="3"], .s4 [data-stage="3"],
.s4 [data-stage="4"] { opacity: 1; transform: translateY(0); }

/* ── HERO ── */
.hero { flex-direction: column; }
.hero-art { position: absolute; inset: 0; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  transform: scale(calc(1.18 - var(--p, 0) * 0.12));
  transition: transform .1s linear;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,247,236,.1) 0%, rgba(255,232,238,.34) 50%, var(--cream) 94%),
    radial-gradient(ellipse 46% 42% at center 62%, rgba(255,255,255,.75) 0%, rgba(255,255,255,.35) 55%, transparent 100%);
}
.hero-copy {
  position: relative; z-index: 3; text-align: center;
  margin-top: 30vh; padding: 0 20px;
}
.hero-kicker {
  font-family: "Caveat", cursive; font-size: 1.7rem; color: var(--cocoa);
  margin: 0 0 4px;
  text-shadow: 0 2px 12px rgba(255,247,236,.9);
}
.hero-title {
  font-size: clamp(3.4rem, 11vw, 7.5rem); font-weight: 700; line-height: 1;
  margin: 0;
  color: var(--cocoa);
  text-shadow:
    0 3px 0 var(--white), 0 8px 26px rgba(255,127,166,.45);
  letter-spacing: -1px;
}
.hero-title .amp {
  color: var(--pink-deep); font-size: .55em; vertical-align: .18em; margin: 0 .06em;
}
.hero-sub {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 600;
  margin: 14px 0 26px; text-shadow: 0 2px 14px rgba(255,247,236,.95);
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-note { font-size: .95rem; color: var(--cocoa-soft); font-weight: 600; }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; font-size: .85rem; font-weight: 600; color: var(--cocoa-soft);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scroll-cue span {
  width: 2px; height: 34px; border-radius: 2px;
  background: var(--cocoa-soft); opacity: .6;
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* ── buttons ── */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 1.05rem;
  border-radius: 999px; padding: 14px 30px;
  border: 3px solid var(--cocoa);
  transition: transform .18s cubic-bezier(.2,.9,.3,1.4), box-shadow .18s;
}
.btn-primary {
  background: var(--pink-deep); color: var(--white);
  box-shadow: var(--shadow-chunk);
}
.btn-primary:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 9px 0 rgba(74,54,38,.16); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(74,54,38,.16); }

/* ── social icon buttons ── */
.social-row { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.social-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--cocoa);
  border: 3px solid var(--cocoa); box-shadow: 0 4px 0 rgba(74,54,38,.16);
  transition: transform .18s cubic-bezier(.2,.9,.3,1.4), color .18s;
}
.social-btn:hover { transform: translateY(-3px); color: var(--pink-deep); }

.social-row--char { justify-content: flex-start; margin-top: 20px; }
.social-btn--sm { width: 40px; height: 40px; }

/* ── PREMISE interlude ── */
.premise {
  position: relative; z-index: 2;
  padding: 14vh 24px 16vh; text-align: center;
  background: linear-gradient(180deg, var(--cream), var(--pink-soft) 60%, var(--cream));
}
.premise-line {
  font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 600; margin: 18px auto; max-width: 760px;
}
.premise-big {
  font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700; line-height: 1.15; margin: 26px auto;
  color: var(--pink-deep);
  text-shadow: 0 2px 0 var(--white);
}
.premise-ai { font-family: "Caveat", cursive; font-size: 1.8rem; color: var(--cocoa-soft); }

/* generic reveal */
[data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.9,.3,1.1);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ── CHARACTER scenes ── */
.char {
  gap: 4vw; padding: 0 5vw;
  display: flex; align-items: center; justify-content: center;
}
.char-nari { background: linear-gradient(160deg, var(--pink-soft) 0%, var(--cream) 70%); }
.char-yume { background: linear-gradient(200deg, #FFEDE6 0%, var(--cream) 70%); }
.char-art { position: relative; flex: 1.15; max-width: 780px; }
.char-main {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 4px solid var(--cocoa); box-shadow: 0 10px 0 rgba(74,54,38,.14);
  transform: rotate(-1.4deg) translateY(calc((1 - var(--p, 0)) * 30px));
}
.char-yume .char-main { transform: rotate(1.4deg) translateY(calc((1 - var(--p, 0)) * 30px)); }
.char-float {
  margin: 0; position: absolute; right: -6%; bottom: -12%;
  width: 46%; border-radius: var(--radius-md); overflow: hidden;
  border: 4px solid var(--cocoa); box-shadow: 0 8px 0 rgba(74,54,38,.18);
  transform: rotate(3deg) translateY(calc((1 - var(--p, 0)) * -46px));
}
.char-yume .char-float { right: auto; left: -6%; transform: rotate(-3deg) translateY(calc((1 - var(--p,0)) * -46px)); }
.char-copy { flex: 1; max-width: 480px; }
.char-kicker {
  font-family: "Caveat", cursive; font-size: 1.6rem; margin: 0; color: var(--cocoa-soft);
}
.char-name {
  font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; line-height: 1; margin: 2px 0 16px;
}
.char-nari .char-name { color: var(--nari); text-shadow: 0 2px 0 var(--white), 0 6px 18px rgba(244,167,187,.55); }
.char-yume .char-name { color: var(--yume); text-shadow: 0 2px 0 var(--white), 0 6px 18px rgba(232,67,74,.35); }
.char-emoji { font-size: .5em; vertical-align: .5em; }
.char-line { font-size: 1.1rem; margin: 0 0 18px; }
.char-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 20px; }
.char-chips li {
  background: var(--white); border: 2px solid var(--cocoa); border-radius: 999px;
  padding: 7px 15px; font-weight: 600; font-size: .92rem;
  box-shadow: 0 3px 0 rgba(74,54,38,.14);
}
.char-quote {
  font-family: "Caveat", cursive; font-size: 1.9rem; line-height: 1.25;
  margin: 0; padding-left: 18px;
  border-left: 4px solid currentColor;
}
.char-nari .char-quote { color: #C2688A; }
.char-yume .char-quote { color: #B93A40; }

/* ── ALIVE features ── */
.alive { position: relative; z-index: 2; padding: 14vh 24px 10vh; max-width: 1160px; margin: 0 auto; }
.section-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700; line-height: 1.08;
  text-align: center; margin: 0 0 8vh;
}
.alive-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px;
}
.alive-card {
  background: var(--white); border: 3px solid var(--cocoa); border-radius: var(--radius-lg);
  padding: 26px 24px 22px; box-shadow: var(--shadow-chunk);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.alive-card:nth-child(odd)  { transform: rotate(-.6deg) translateY(40px); }
.alive-card:nth-child(even) { transform: rotate(.6deg) translateY(40px); }
.alive-card.in { transform: rotate(0) translateY(0); }
.alive-icon { margin-bottom: 10px; color: var(--pink-deep); }
.alive-icon svg { display: block; }
.alive-card h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; }
.alive-card p { margin: 0; color: var(--cocoa-soft); font-size: .98rem; }

/* ── GAMES ticker ── */
.play {
  position: relative; z-index: 2; padding: 12vh 0 12vh; text-align: center;
  background: linear-gradient(180deg, var(--cream), #FFF1DF 55%, var(--cream));
}
.play-sub { font-size: 1.15rem; color: var(--cocoa-soft); margin: -5vh 24px 6vh; }
.ticker { overflow: hidden; border-top: 3px solid var(--cocoa); border-bottom: 3px solid var(--cocoa); background: var(--white); }
.ticker-track {
  display: inline-flex; gap: 34px; padding: 18px 0; white-space: nowrap;
  animation: ticker 36s linear infinite; will-change: transform;
}
.ticker-track span { font-size: 1.25rem; font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.play-notes { margin-top: 6vh; display: flex; flex-direction: column; gap: 14px; }
.play-notes p { font-family: "Caveat", cursive; font-size: 1.6rem; margin: 0; color: var(--cocoa-soft); }

/* ── WAITLIST ── */
.waitlist { position: relative; z-index: 2; padding: 12vh 24px 14vh; display: flex; justify-content: center; }
.waitlist-card {
  background: var(--white); border: 4px solid var(--cocoa); border-radius: var(--radius-lg);
  box-shadow: 0 10px 0 rgba(74,54,38,.16);
  max-width: 560px; width: 100%; text-align: center; padding: 42px 34px 34px;
}
.waitlist-avatars { display: flex; justify-content: center; margin-bottom: 16px; }
.waitlist-avatars img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--cocoa); box-shadow: 0 4px 0 rgba(74,54,38,.15);
}
.waitlist-avatars img:last-child { margin-left: -18px; }
.waitlist-card h2 { font-size: 2rem; font-weight: 700; margin: 0 0 8px; }
.waitlist-card > p { color: var(--cocoa-soft); margin: 0 0 22px; }
#notifyForm { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#notifyForm #nickname { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#notifyForm input[type="email"] {
  flex: 1 1 240px; font-family: inherit; font-size: 1rem; font-weight: 500;
  padding: 13px 18px; border: 3px solid var(--cocoa); border-radius: 999px;
  background: var(--cream); color: var(--cocoa); outline: none;
}
#notifyForm input[type="email"]:focus { background: var(--white); border-color: var(--pink-deep); }
.waitlist-status { min-height: 1.4em; font-weight: 600; margin: 12px 0 0; }
.waitlist-status.ok { color: #2E7D4F; }
.waitlist-status.err { color: #B93A40; }
.waitlist-social { margin-top: 18px; font-size: .95rem; color: var(--cocoa-soft); }
.waitlist-social a { color: var(--pink-deep); font-weight: 700; text-decoration: none; }

/* ── FOOTER ── */
.footer {
  position: relative; z-index: 2; text-align: center; padding: 40px 24px 60px;
  background: var(--pink-soft); border-top: 3px solid var(--cocoa);
}
.footer-brand { font-weight: 700; font-size: 1.3rem; margin: 0 0 4px; }
.footer-note { font-family: "Caveat", cursive; font-size: 1.4rem; color: var(--cocoa-soft); margin: 0 0 14px; }
.footer nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer nav a { color: var(--cocoa); font-weight: 600; text-decoration: none; }
.footer nav a:hover { color: var(--pink-deep); }
.footer nav span { color: var(--cocoa-soft); }
.footer-copy { font-size: .85rem; color: var(--cocoa-soft); margin-top: 14px; }

/* ── responsive ── */
@media (max-width: 900px) {
  .pin { height: 200vh; }
  .pin-tall { height: 260vh; }
  .char { flex-direction: column; gap: 22px; padding: 12px 6vw; }
  .char-yume { flex-direction: column-reverse; }
  .char-art { max-width: 560px; width: 100%; }
  .char-float { width: 52%; bottom: -10%; }
  .char-copy { max-width: 560px; }
  .hero-copy { margin-top: 24vh; }
  .topnav-links a:not(.topnav-cta) { display: none; }
}

/* narrow screens: the wide banner crops to its (empty) middle, hiding both girls —
 * split the art into two half-columns pinned to the banner's left (Nari) and
 * right (Yume) edges so both are on screen */
@media (max-width: 700px) {
  .hero-art img { display: none; }
  .hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--cream); }
  .hero-art::before, .hero-art::after {
    content: "";
    background-image: url("/assets/hero-banner.jpg");
    background-size: auto 100%;
    background-repeat: no-repeat;
  }
  .hero-art::before { background-position: 24% center; }
  .hero-art::after  { background-position: 84% center; }
  .hero-veil {
    position: absolute;
    background:
      linear-gradient(180deg, rgba(255,247,236,0) 30%, rgba(255,240,243,.72) 55%, var(--cream) 88%);
  }
  .hero-copy {
    margin-top: 46vh;
    background: rgba(255,251,246,.82);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 2px solid rgba(74,54,38,.9); border-radius: 24px;
    box-shadow: 0 5px 0 rgba(74,54,38,.15);
    margin-left: 18px; margin-right: 18px;
    padding: 22px 14px 24px;
  }
}

/* ── reduced motion: everything visible, nothing pinned weirdness ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-stage], [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-art img, .char-main, .char-float { transform: none !important; }
  .ticker-track { animation: none; }
  .scroll-cue span { animation: none; }
  #petals { display: none; }
}
