:root {
  --paper: #f3eee4;
  --paper-2: #faf6ef;
  --ink: #2c261f;
  --ink-soft: #5e564e;
  --moss: #3d5c38;
  --moss-deep: #2d4529;
  --line: rgba(44, 38, 31, 0.12);
  --shadow: 0 24px 50px -32px rgba(60, 36, 18, 0.55);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button, a { font: inherit; }
::selection { background: #ead7ae; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--wrap), calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 14px;
  background: rgba(243, 238, 228, 0.9);
  border: 1px solid rgba(255, 252, 247, 0.7);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(40, 24, 12, 0.45);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: 0.01em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.55); }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 132px 0 64px;
  overflow: hidden;
}
.sky {
  position: absolute;
  inset: 0;
}
.sky-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}
.sky-layer.is-on { opacity: 1; }
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(243, 238, 228, 0), var(--paper));
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 12px;
  align-items: end;
}
.hero-copy { position: relative; padding: 12px 28px 8px 0; }
.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -36px;
  bottom: -20px;
  right: 0;
  left: -45vw;
  background: linear-gradient(90deg, rgba(243, 238, 228, 0.94) 0%, rgba(243, 238, 228, 0.86) 62%, rgba(243, 238, 228, 0) 100%);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--moss);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; }
h1 {
  margin: 0;
  max-width: 9.4em;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.2;
}
.lede {
  max-width: 38em;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--moss);
  color: #f7f3ea;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--moss-deep); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(44, 38, 31, 0.22);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.45); }
.android-mark {
  width: 18px;
  height: 18px;
  flex: none;
}
.sky-now {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.sky-now strong { color: var(--ink); font-weight: 650; }

.hero-figure {
  position: relative;
  height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-figure::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 8%;
  bottom: 6px;
  height: 22px;
  background: radial-gradient(ellipse, rgba(40, 28, 18, 0.28), transparent 70%);
}
.hero-figure img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  filter: drop-shadow(0 16px 14px rgba(40, 24, 16, 0.16));
}
.hero-figure .back { height: 80%; margin-right: -28px; }

.facts {
  padding: 18px 0 10px;
}
.facts ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}
.facts li {
  padding: 22px 28px 8px 0;
}
.facts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.facts span { color: var(--ink-soft); }

section { padding: 88px 0; scroll-margin-top: 108px; }
h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
}
.section-lead {
  max-width: 38em;
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.scene {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.scene p { color: var(--ink-soft); }
.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.steps b, .steps span { display: block; }
.steps b { font-family: var(--serif); font-size: 18px; font-weight: 650; }
.steps span { color: var(--ink-soft); margin-top: 2px; }
.num {
  font-family: var(--serif);
  color: var(--moss);
  font-size: 18px;
}
.poster-wrap { position: relative; }
.poster {
  height: 560px;
  border-radius: 32px;
  overflow: hidden;
  background: #d5e2c4;
  box-shadow: var(--shadow);
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.poster-person {
  position: absolute;
  left: 7%;
  bottom: -18px;
  height: 68%;
  width: auto;
  filter: drop-shadow(0 16px 12px rgba(40, 24, 16, 0.18));
}

.skies { padding-top: 20px; }
.sky-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.sky-card {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.sky-card img {
  width: 100%;
  aspect-ratio: 1392 / 852;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.sky-card span {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
}
.sky-card.is-on img { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--moss); }
.sky-card.is-on span { color: var(--ink); font-weight: 650; }

.cast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.cast article {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 14px 12px 16px;
}
.cast img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  object-position: center bottom;
}
.cast p { margin: 8px 4px 0; color: var(--ink-soft); font-size: 15px; }
.tone-blossom { background: #f6e7c8; }
.tone-cap { background: #efe4d2; }
.tone-cup { background: #f4e4da; }
.tone-knit { background: #f6e1e4; }
.tone-straw { background: #f3efd2; }

.together {
  display: block;
}
.chapters {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.chapters h3 { margin: 0; font-size: 22px; }
.chapters p { margin: 6px 0 0; color: var(--ink-soft); }
.party {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: 8px;
  min-height: 0;
}
.party img {
  width: auto;
  height: 360px;
  margin: 0 -18px;
  filter: drop-shadow(0 16px 12px rgba(40, 24, 16, 0.14));
}

.download {
  position: relative;
  margin: 20px auto 72px;
  width: min(var(--wrap), calc(100% - 48px));
  min-height: 520px;
  border-radius: 36px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.download-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
.download-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: rgba(250, 246, 239, 0.94);
  border-radius: 28px;
  padding: 32px 32px 28px;
  box-shadow: var(--shadow);
}
.download-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.download-head img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex: none;
}
.download-card h2 { margin: 0; font-size: 34px; line-height: 1.25; }
.download-card .btn { margin-top: 22px; }
.fine { margin: 14px 0 0; color: var(--ink-soft); font-size: 14px; }

.footer {
  padding: 12px 0 40px;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.footer strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 650;
}
.footer a { color: var(--ink-soft); }

.missing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 20px;
}
.missing img { height: 280px; width: auto; margin: 0 auto 8px; }
.missing h1 { font-size: 40px; }
.missing p { color: var(--ink-soft); }

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky-layer, .btn { transition: none; }
}

@media (max-width: 1040px) {
  .hero-inner, .scene { grid-template-columns: 1fr; }
  .party { justify-content: center; }
  .hero-figure { height: 340px; justify-content: center; }
  .hero-copy::before {
    left: -20px;
    right: -12px;
    border-radius: 28px;
    background: rgba(243, 238, 228, 0.9);
  }
  .poster { height: 460px; }
  .sky-row { grid-template-columns: repeat(3, 1fr); }
  .cast { grid-template-columns: repeat(3, 1fr); }
  .party { min-height: 0; }
  .party img { height: 320px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .hero-inner, .download { width: min(var(--wrap), calc(100% - 28px)); }
  .nav { border-radius: 22px; align-items: flex-start; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 6px 8px;
  }
  .nav.is-open .nav-links { display: flex; }
  .facts ul, .chapters, .cast, .sky-row { grid-template-columns: 1fr 1fr; }
  .facts li + li { padding-left: 16px; }
  .facts li { padding-right: 12px; }
  .poster { height: 380px; }
  .poster-person { height: 58%; }
  .party img { height: 210px; margin: 0 -6px; }
  .footer-inner { flex-direction: column; align-items: start; }
  section { padding: 64px 0; }
}

@media (max-width: 520px) {
  h1 { font-size: 34px; }
  .facts ul, .cast, .sky-row { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .hero { padding-top: 118px; }
  .hero-figure { height: 280px; }
}
