/* Kori & Mu — cinematic story landing.
   Poster hero, cream reading page, one display face + one story face. */

:root {
  --night: #1c100e;
  --night-2: #2a1814;
  --cream: #fff8f1;
  --cream-2: #fff1e4;
  --ink: #3a2924;
  --muted: #7a6158;
  --sakura: #e25b8a;
  --shiba: #f08a32;
  --line: rgba(58, 41, 36, 0.1);
  --display: "Mochiy Pop One", "Zen Maru Gothic", sans-serif;
  --body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 78px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: ui-monospace, Consolas, monospace; }

:focus-visible { outline: 3px solid var(--sakura); outline-offset: 3px; }
::selection { background: #ffd0e0; color: var(--ink); }

.wrap { width: min(1080px, calc(100% - 2.4rem)); margin-inline: auto; }

/* ---------- Nav ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  color: #fff6ee;
  background: rgba(28, 16, 14, 0.9);
  border-bottom: 1px solid rgba(255, 246, 238, 0.08);
  backdrop-filter: blur(16px);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1;
}

.topbar__brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffe14a;
}

.topbar__nav {
  display: none;
  gap: 1.15rem;
  margin-left: 0.8rem;
  font-weight: 700;
  color: rgba(255, 246, 238, 0.72);
}

.topbar__nav a:hover { color: #fff; }

.topbar__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.motion-toggle {
  color: rgba(255, 246, 238, 0.72);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.15rem;
}

.motion-toggle:hover { color: #fff; }

@media (max-width: 800px) {
  .motion-toggle { display: none; }
}

.topbar__menu {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 246, 238, 0.2);
  color: #fff6ee;
  font-size: 1.3rem;
}

@media (min-width: 900px) {
  .topbar__nav { display: flex; }
  .topbar__menu { display: none; }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 4.5rem 1.6rem;
  background: var(--night);
  color: #fff6ee;
}

.menu[hidden] { display: none; }

.menu > a {
  font-family: var(--display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  padding: 0.35rem 0;
}

.menu > a.btn {
  margin-top: 1rem;
  align-self: flex-start;
  font-size: 1rem;
}

.menu__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 246, 238, 0.2);
  color: #fff6ee;
  font-size: 1.15rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn img {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.btn--sm { padding: 0.5rem 0.8rem; font-size: 0.92rem; }

.btn--buy {
  color: #fff;
  background: linear-gradient(180deg, #ff9d4d, #ef7a22);
  box-shadow: 0 8px 20px rgba(239, 122, 34, 0.28);
  animation: glow 2.6s ease-in-out infinite;
}

.btn--buy:hover { transform: translateY(-2px); }

.btn--ghost {
  color: #fff6ee;
  background: transparent;
  border-color: rgba(255, 246, 238, 0.28);
}

.btn--ghost:hover { background: rgba(255, 246, 238, 0.08); }

.btn--ghost img { filter: brightness(0) invert(1); }

.btn--line {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(226, 91, 138, 0.22), transparent 70%),
    var(--night);
  color: #fff6ee;
  padding: 5rem 0 2rem;
  overflow: hidden;
}

.hero-mask {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: #1c100e;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.hero-mask span {
  font-family: var(--display);
  font-size: clamp(5.5rem, 22vw, 14rem);
  line-height: 0.85;
  color: #fff6ee;
}

.hero__art {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 1.6rem));
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: #3a2418;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.hero__art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2rem));
  margin: 1.15rem auto 0;
  text-align: center;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.35rem;
  color: rgba(255, 246, 238, 0.72);
  font-weight: 700;
  animation: floaty 2.2s ease-in-out infinite;
}

.scroll-cue:hover { color: #fff; }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 400;
  line-height: 1.05;
  color: #fff8f2;
}

.kicker {
  margin: 0 0 0.4rem;
  font-weight: 700;
  color: #ffb4cc;
}

.hero .kicker { color: #ffc2d4; }

.symbol {
  margin: 0.35rem 0 0;
  font-weight: 700;
  color: #ffb15a;
  font-size: 1.15rem;
}

.lede {
  margin: 0.9rem auto 1.15rem;
  max-width: 38rem;
  color: rgba(255, 246, 238, 0.82);
  font-size: 1.08rem;
}

.hero .cta-row { justify-content: center; margin-bottom: 1rem; }

.ca-pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 238, 0.16);
  background: rgba(255, 246, 238, 0.06);
  color: #fff6ee;
  text-align: left;
}

.ca-pill img { width: 18px; height: 18px; flex: 0 0 auto; }
.ca-pill span { font-weight: 700; color: #ffb15a; flex: 0 0 auto; }

.ca-pill code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff6ee;
  font-size: 0.84rem;
}

.ca-pill {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ca-pill:hover {
  border-color: rgba(255, 177, 90, 0.75);
  box-shadow: 0 0 26px rgba(255, 177, 90, 0.28);
}

/* ---------- Sections ---------- */
.sec { padding: clamp(3.4rem, 7vw, 5.5rem) 0; }

.sec--tint { background: linear-gradient(180deg, #fff1e6, var(--cream) 80%); }

.sec__head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.sec__head .kicker { color: var(--sakura); }

h2 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  color: var(--ink);
}

h3 {
  margin: 0 0 0.3rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.15rem;
}

.sub { margin: 0; color: var(--muted); }

/* ---------- Story ---------- */
.lore {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.portrait {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #ffe14a;
  box-shadow: 0 18px 50px rgba(58, 41, 36, 0.12);
  animation: floaty 5.5s ease-in-out infinite;
}

.portrait img { width: 100%; height: auto; object-fit: contain; }

.lore__prose { display: grid; gap: 0.85rem; }
.lore__prose .kicker { color: var(--sakura); }
.lore__prose p { margin: 0; }
.note { font-weight: 700; color: var(--sakura); }

@media (min-width: 880px) {
  .lore { grid-template-columns: 0.82fr 1.18fr; gap: 2.4rem; }
}

/* ---------- Panels ---------- */
.story {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
}

.panel { grid-column: span 2; }

.panel:nth-child(4),
.panel:nth-child(5) { grid-column: span 3; }

.panel {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(58, 41, 36, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(58, 41, 36, 0.12);
}

.panel__art { background: var(--cream-2); }
.panel__art img { width: 100%; height: auto; object-fit: contain; }

.panel__cap { padding: 0.9rem 1rem 1.1rem; }
.panel__cap p { margin: 0; color: var(--muted); }

@media (max-width: 800px) {
  .panel,
  .panel:nth-child(4),
  .panel:nth-child(5) { grid-column: span 6; }
}

/* Horizontal scroll story — pinned on desktop by GSAP */
.reel {
  background: linear-gradient(180deg, #fff1e6, var(--cream) 80%);
  overflow: hidden;
}

.reel__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  padding: 5.2rem 0 1.6rem;
}

.reel__viewport { overflow: hidden; }

.reel__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding-inline: max(1.2rem, calc((100vw - 1080px) / 2));
}

.reel .panel {
  width: min(300px, 74vw);
  flex: none;
}

.reel .panel__art {
  height: min(38vh, 280px);
  display: grid;
  place-items: center;
  background: var(--cream-2);
}

.reel .panel__art img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.reel__meter {
  width: min(1080px, calc(100% - 2.4rem));
  height: 4px;
  margin: 0.2rem auto 0;
  border-radius: 999px;
  background: rgba(58, 41, 36, 0.12);
  overflow: hidden;
}

.reel__meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #e25b8a, #f08a32);
}

@media (max-width: 800px) {
  .reel__pin { min-height: 0; padding-top: 3.2rem; }
  .reel__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
  }
  .reel .panel { scroll-snap-align: start; }
}

@media (min-width: 801px) {
  #buy.pin-stage {
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Roommates ---------- */
.cast {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

.stand {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: end;
}

.cast__tall {
  width: auto;
  height: 460px;
  max-width: 100%;
  object-fit: contain;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 16px 24px rgba(58, 41, 36, 0.12));
  animation: idle 2.2s ease-in-out infinite;
}

.stand__shadow {
  display: block;
  width: 92px;
  height: 16px;
  margin-top: -4px;
  border-radius: 50%;
  background: rgba(58, 41, 36, 0.2);
  animation: squash 2.2s ease-in-out infinite;
}

.cast__bios { display: grid; gap: 0.8rem; }

.cast__bios article {
  background: #fff;
  border-radius: 20px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(58, 41, 36, 0.05);
}

.cast__bios p { margin: 0; color: var(--muted); }

.chase {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.chase__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.4rem, 3vw, 2.5rem);
  min-height: 460px;
  padding: 1.5rem 1rem 0;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff4ea 0%, #ffe3ee 72%, #ffd0e2 100%);
}

.chase__stage::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 42px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 20px,
    rgba(255, 255, 255, 0.75) 20px 34px
  );
  animation: streaks 0.45s linear infinite;
  pointer-events: none;
}

.chase__kori,
.chase__mu {
  position: relative;
  z-index: 1;
}

.chase__kori {
  width: min(270px, 42vw);
  animation: stride 0.38s ease-in-out infinite;
}

.chase__mu {
  width: min(190px, 32vw);
  margin-bottom: 72px;
  animation: haunt 2.4s ease-in-out infinite;
}

.chase__kori img,
.chase__mu img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 14px rgba(58, 41, 36, 0.14));
}

.chase figcaption { font-weight: 700; text-align: center; }

@media (min-width: 880px) {
  .cast { grid-template-columns: 220px 1fr; }
  .chase { grid-column: 1 / -1; }
}

/* ---------- Buy ---------- */
.howto {
  display: grid;
  gap: 0.9rem;
  align-items: stretch;
}

.howto__lead {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--night-2);
  color: #fff6ee;
}

.howto__lead p { margin: 0; color: rgba(255, 246, 238, 0.84); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.step {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1.1rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(58, 41, 36, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(58, 41, 36, 0.1);
}

.step img { width: 36px; height: 36px; object-fit: contain; }
.step h3 { margin: 0; }

@media (min-width: 880px) {
  .howto { grid-template-columns: 1.05fr 0.95fr; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Facts ---------- */
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(58, 41, 36, 0.06);
}

.facts > div {
  padding: 1.15rem 1.2rem;
  border-right: 1px solid #f3e6dc;
  border-bottom: 1px solid #f3e6dc;
}

.facts dt {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--sakura);
}

.facts dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-wrap: anywhere;
}

.facts dd img { width: 18px; height: 18px; object-fit: contain; }
.facts__wide { grid-column: 1 / -1; }

@media (max-width: 800px) {
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Chart ---------- */
.jumbo {
  position: relative;
  min-height: 440px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 40px rgba(58, 41, 36, 0.06);
}

.jumbo iframe {
  display: none;
  width: 100%;
  height: 540px;
  border: 0;
}

.jumbo.has-ca iframe { display: block; }
.jumbo.has-ca .jumbo__placeholder { display: none; }

.jumbo__placeholder {
  min-height: 440px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
}

.jumbo__placeholder img { width: 56px; height: 56px; object-fit: contain; }
.jumbo__placeholder p { margin: 0; font-weight: 700; }

/* ---------- Closer / footer ---------- */
.closer {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  padding: 4rem 1.2rem 3rem;
  background: var(--night);
  color: #fff6ee;
}

.closer > img {
  width: min(420px, 88vw);
  height: auto;
  object-fit: contain;
  animation: floaty 4.8s ease-in-out infinite;
}

.closer p {
  margin: 0;
  max-width: 28rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 246, 238, 0.88);
}

.closer .cta-row { justify-content: center; }

.footer {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
  padding: 0 1.2rem 2.4rem;
  background: var(--night);
  color: #fff6ee;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
}

.footer__brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffe14a;
}

.footer__brand strong,
.footer__brand span { display: block; }
.footer__brand span { color: rgba(255, 246, 238, 0.6); font-weight: 700; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  font-weight: 700;
}

.footer__legal {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 246, 238, 0.5);
  font-size: 0.86rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 70;
  transform: translate(-50%, 10px);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #ffb15a;
  color: var(--night);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes idle {
  0%, 100% { transform: translateY(0) rotate(-2.2deg); }
  50% { transform: translateY(-18px) rotate(2.2deg); }
}

@keyframes squash {
  0%, 100% { transform: scaleX(1); opacity: 0.45; }
  50% { transform: scaleX(0.62); opacity: 0.18; }
}

@keyframes dash {
  from { transform: translateX(-115%); }
  to { transform: translateX(260%); }
}

@keyframes stride {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

@keyframes haunt {
  0%, 100% { transform: translate(0, 0) rotate(-7deg); }
  50% { transform: translate(-36px, -28px) rotate(7deg); }
}

@keyframes streaks {
  to { transform: translateX(-66px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 8px 20px rgba(239, 122, 34, 0.28); }
  50% { box-shadow: 0 10px 28px rgba(239, 122, 34, 0.55), 0 0 22px rgba(255, 177, 90, 0.45); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__art,
  .hero__copy,
  .scroll-cue,
  .portrait,
  .cast__tall,
  .stand__shadow,
  .chase__kori,
  .chase__mu,
  .chase__stage::after,
  .closer > img,
  .btn--buy {
    animation: none;
  }
}
