:root {
  color-scheme: light;
  --ink: #1e2a25;
  --muted: #5d6c63;
  --canvas: #fbf8f1;
  --paper: #fffef9;
  --line: rgba(30, 42, 37, .12);
  --accent: #0f8a63;
  --mint: #d8f0e2;
  --mint-deep: #0f8a63;
  --coral: #ffe0d1;
  --coral-deep: #d95f2e;
  --sky: #d9ebf9;
  --sky-deep: #2f7cc2;
  --lavender: #e7ddf7;
  --lavender-deep: #7558c8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(216, 240, 226, .6), transparent 60%),
    radial-gradient(1000px 640px at -15% 30%, rgba(217, 235, 249, .55), transparent 62%),
    var(--canvas);
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 88px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 max(clamp(24px, 5vw, 72px), calc((100% - 1240px) / 2 + 64px));
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 241, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-weight: 800;
  font-size: 17px;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(30, 42, 37, .16);
}

.site-header nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .25s ease;
}

.site-header nav a:hover {
  color: var(--ink);
}

.store-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(15, 138, 99, .3);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(216, 240, 226, .45);
  font-size: 13px;
  font-weight: 650;
  transition: border-color .2s ease, background .2s ease;
}

.store-status:hover {
  border-color: var(--accent);
  background: rgba(216, 240, 226, .8);
}

/* ---------- shared type ---------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

/* ---------- stitch seam：贯穿全页的纵向拼接缝 ---------- */

main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  border-left: 2px dashed rgba(30, 42, 37, .16);
  transform: translateX(-50%);
  pointer-events: none;
}

/* 拼缝穿过每个章节时打一个「线结」 */
.chapter::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--canvas);
  border: 3px solid var(--chapter-deep, var(--accent));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 52px);
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(56px, 9vh, 110px) clamp(24px, 5vw, 64px) clamp(40px, 7vh, 84px);
  overflow: hidden;
}

.hero-blob {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  animation: blob-drift 16s ease-in-out infinite alternate;
}

.hero-blob--mint {
  width: 420px;
  height: 420px;
  left: -140px;
  top: 8%;
  background: var(--mint);
}

.hero-blob--coral {
  width: 380px;
  height: 380px;
  right: -100px;
  top: -8%;
  background: var(--coral);
  animation-delay: -6s;
}

.hero-blob--sky {
  width: 460px;
  height: 460px;
  right: 12%;
  bottom: -40%;
  background: var(--sky);
  animation-delay: -11s;
}

@keyframes blob-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(34px, -26px, 0) scale(1.08);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(100%, 540px);
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 88px);
}

.hero-summary {
  margin: 22px 0 0;
  max-width: 24em;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.8;
  font-weight: 560;
  text-wrap: balance;
}

.hero-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 34px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fdfbf4;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(30, 42, 37, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(30, 42, 37, .26);
}

.hero-action .store-button {
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 14px,
    #2c3d36 14px 28px
  );
}

.hero-action small {
  color: var(--muted);
  font-size: 13px;
}

.hero-scene {
  position: relative;
  z-index: 1;
  justify-self: start;
  width: min(100%, 560px);
  min-height: clamp(440px, 58vw, 640px);
  perspective: 1200px;
}

.hero-card {
  position: absolute;
  margin: 0;
  border: 2px solid rgba(30, 42, 37, .85);
  border-radius: 26px;
  overflow: hidden;
  background: var(--paper);
  padding: 8px;
  box-shadow:
    0 30px 60px rgba(30, 42, 37, .20),
    0 4px 14px rgba(30, 42, 37, .10);
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-card img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.hero-card--main {
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(300px, 52%);
  transform: translate(-50%, -50%) translate(var(--mx, 0px), var(--my, 0px));
  animation: card-float 7s ease-in-out infinite;
}

.hero-card--left {
  z-index: 2;
  left: 4%;
  top: 12%;
  width: min(220px, 38%);
  transform: rotate(calc(-8deg + var(--tilt, 0deg))) translate(var(--mx, 0px), var(--my, 0px));
  animation: card-float 8s ease-in-out -2.5s infinite;
}

.hero-card--right {
  z-index: 1;
  right: -2%;
  bottom: 6%;
  width: min(220px, 38%);
  transform: rotate(calc(7deg + var(--tilt, 0deg))) translate(var(--mx, 0px), var(--my, 0px));
  animation: card-float 9s ease-in-out -5s infinite;
}

@keyframes card-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

.section-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .25s ease;
}

.section-cue:hover {
  color: var(--ink);
}

.section-cue span {
  display: inline-block;
  animation: cue-bounce 1.8s ease-in-out infinite;
}

@keyframes cue-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 249, .6);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track span {
  color: rgba(30, 42, 37, .55);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .12em;
  white-space: nowrap;
}

.marquee-track i {
  color: var(--coral-deep);
  font-style: normal;
  font-size: 13px;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- story intro ---------- */

.story-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(72px, 12vh, 130px) clamp(24px, 5vw, 64px) clamp(28px, 5vh, 56px);
}

.story-intro h2 {
  font-size: clamp(32px, 4.4vw, 56px);
}

.story-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.9;
  font-weight: 540;
}

/* ---------- chapters ---------- */

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(64px, 11vh, 120px) clamp(24px, 5vw, 64px);
}

.chapter--capture {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.chapter--reverse .chapter-copy {
  order: 2;
}

.chapter--reverse .chapter-visual {
  order: 1;
}

.chapter-number {
  position: absolute;
  top: clamp(28px, 6vh, 64px);
  left: clamp(18px, 4vw, 56px);
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(30, 42, 37, .2);
  font-size: clamp(88px, 12vw, 180px);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.chapter--reverse .chapter-number {
  left: auto;
  right: clamp(18px, 4vw, 56px);
}

.chapter-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.chapter h2 {
  font-size: clamp(34px, 4.6vw, 60px);
}

.chapter-copy > p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.9;
  font-weight: 540;
}

.chapter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chapter-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 249, .78);
  font-size: 13px;
  font-weight: 700;
}

.chapter .eyebrow {
  color: var(--chapter-deep, var(--accent));
}

/* 单屏章节画框：截图 + 底部色块衬底 */
.chapter-visual {
  position: relative;
  z-index: 1;
  justify-self: center;
  margin: 0;
  width: min(340px, 100%);
  will-change: transform;
}

.chapter-visual .visual-plane {
  position: absolute;
  inset: -7% -12%;
  border-radius: 44px;
  background: var(--chapter-tint, #eee);
  transform: rotate(-2.5deg);
  transition: transform .6s cubic-bezier(.22, .8, .28, 1);
}

.chapter--reverse .chapter-visual .visual-plane {
  transform: rotate(2.5deg);
}

.chapter-visual picture {
  position: relative;
  display: block;
  border: 2px solid rgba(30, 42, 37, .85);
  border-radius: 26px;
  overflow: hidden;
  background: var(--paper);
  box-shadow:
    0 34px 64px rgba(30, 42, 37, .22),
    0 4px 14px rgba(30, 42, 37, .10);
  transform: rotate(1.5deg);
  transition: transform .6s cubic-bezier(.22, .8, .28, 1), box-shadow .6s ease;
}

.chapter--reverse .chapter-visual picture {
  transform: rotate(-1.5deg);
}

.chapter-visual:hover picture {
  transform: rotate(0deg) translateY(-8px);
  box-shadow:
    0 48px 88px rgba(30, 42, 37, .26),
    0 6px 18px rgba(30, 42, 37, .12);
}

.chapter-visual:hover .visual-plane {
  transform: rotate(0deg) scale(1.02);
}

.chapter-visual img {
  width: 100%;
  height: auto;
}

/* 拼台词：聊天气泡式画框，带小尾巴 */
.chapter--subtitle .chapter-visual picture {
  border-radius: 28px;
}

.chapter--subtitle .chapter-visual::after {
  content: "";
  position: absolute;
  left: 16%;
  bottom: -13px;
  z-index: 2;
  width: 24px;
  height: 24px;
  background: var(--paper);
  border-right: 2px solid rgba(30, 42, 37, .85);
  border-bottom: 2px solid rgba(30, 42, 37, .85);
  border-bottom-right-radius: 6px;
  transform: rotate(45deg) skew(12deg, 12deg);
  pointer-events: none;
}

/* 效果编辑：编辑选框式虚线轮廓 + 角上手柄 */
.chapter--editing .chapter-visual picture {
  outline: 2px dashed var(--chapter-deep);
  outline-offset: 9px;
}

.chapter--editing .chapter-visual::after {
  content: "";
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--paper);
  border: 2px solid var(--chapter-deep);
  box-shadow:
    0 0 0 0 var(--paper),
    calc(-100% - 0px) 0 0 0 transparent;
  pointer-events: none;
}

/* 精品海报：拍立得式留白底边 */
.chapter--poster .chapter-visual picture {
  padding: 12px 12px 44px;
  overflow: visible;
  border-radius: 14px;
}

.chapter--poster .chapter-visual img {
  border-radius: 8px;
}

.chapter--poster .chapter-visual::after {
  content: "POSTER";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  text-align: center;
  color: var(--chapter-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .34em;
  pointer-events: none;
}

/* 章节配色：薄荷绿 / 淡紫 / 天蓝 / 珊瑚橙 */
.chapter--capture {
  --chapter-tint: var(--mint);
  --chapter-deep: var(--mint-deep);
}

.chapter--subtitle {
  --chapter-tint: var(--lavender);
  --chapter-deep: var(--lavender-deep);
}

.chapter--editing {
  --chapter-tint: var(--sky);
  --chapter-deep: var(--sky-deep);
}

.chapter--poster {
  --chapter-tint: var(--coral);
  --chapter-deep: var(--coral-deep);
}

/* ---------- capture：胶片格式三格场景 ---------- */

.capture-scene {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
}

.capture-item {
  position: relative;
  margin: 0;
}

/* 胶片齿孔 */
.capture-item::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 12%;
  right: 12%;
  height: 9px;
  background-image: radial-gradient(circle, rgba(30, 42, 37, .32) 2.4px, transparent 3px);
  background-size: 17px 9px;
  background-repeat: repeat-x;
  background-position: center;
  pointer-events: none;
}

.capture-item picture {
  display: block;
  border: 2px solid rgba(30, 42, 37, .85);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  padding: 7px;
  box-shadow:
    0 22px 44px rgba(30, 42, 37, .18),
    0 3px 10px rgba(30, 42, 37, .08);
  transition: transform .5s cubic-bezier(.22, .8, .28, 1), box-shadow .5s ease;
}

.capture-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.capture-item:hover picture {
  transform: translateY(-8px) rotate(0deg);
  box-shadow:
    0 34px 62px rgba(30, 42, 37, .24),
    0 5px 14px rgba(30, 42, 37, .10);
}

.capture-item--stitch picture {
  transform: rotate(-2deg);
}

.capture-item--recording {
  margin-top: clamp(18px, 3vw, 40px);
}

.capture-item--web picture {
  transform: rotate(2deg);
}

.capture-item--web {
  margin-top: clamp(8px, 1.5vw, 20px);
}

.capture-caption h3 {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 800;
}

.capture-caption p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- closing ---------- */

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin: clamp(48px, 9vh, 96px) max(clamp(20px, 5vw, 64px), calc((100% - 1240px) / 2));
  padding: clamp(44px, 7vh, 80px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(600px 320px at 90% 0%, rgba(231, 221, 247, .6), transparent 65%),
    radial-gradient(560px 300px at 0% 100%, rgba(216, 240, 226, .55), transparent 65%),
    var(--paper);
}

.privacy-copy h2 {
  font-size: clamp(28px, 3.6vw, 46px);
}

.privacy-copy > p {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
  font-weight: 540;
}

.download-compact {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 20px 44px rgba(30, 42, 37, .12);
}

.download-compact img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(30, 42, 37, .18);
}

.download-compact strong {
  font-size: 19px;
  font-weight: 800;
}

.download-compact p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 30px max(clamp(24px, 5vw, 64px), calc((100% - 1240px) / 2 + 64px)) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color .25s ease;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- reveal animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .8s cubic-bezier(.22, .8, .28, 1),
    transform .8s cubic-bezier(.22, .8, .28, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    text-align: center;
  }

  .hero-copy {
    justify-self: center;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-scene {
    justify-self: center;
    width: 100%;
    min-height: clamp(400px, 92vw, 560px);
    margin-top: 12px;
  }

  .hero-summary {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-action {
    justify-content: center;
  }

  .story-intro,
  .closing {
    grid-template-columns: 1fr;
  }

  .chapter,
  .chapter--capture {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .chapter--reverse .chapter-copy {
    order: 1;
  }

  .chapter--reverse .chapter-visual {
    order: 2;
  }

  .download-compact {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    left: 0;
    right: 0;
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 64px;
  }

  .site-header nav {
    display: none;
  }

  /* 拼缝贴到左缘，给整屏章节让出中线 */
  main::before {
    left: 16px;
    transform: none;
  }

  .chapter::after {
    display: none;
  }

  .hero-card--left {
    left: 2%;
    width: min(190px, 34%);
  }

  .hero-card--right {
    right: 0;
    width: min(190px, 34%);
  }

  .chapter-number {
    font-size: 84px;
  }

  .chapter-visual {
    width: min(320px, 82vw);
  }

  .chapter-visual .visual-plane {
    inset: -3.5% -5%;
    border-radius: 32px;
  }

  /* 胶片格变成可横滑的一卷胶片 */
  .capture-scene {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 20px 4px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .capture-item {
    flex: 0 0 min(230px, 62vw);
    scroll-snap-align: center;
  }

  .capture-item--recording,
  .capture-item--web {
    margin-top: 0;
  }

  .closing {
    margin-left: 20px;
    margin-right: 20px;
    padding: 32px 22px;
  }
}

/* ---------- mobile full-screen paging ---------- */

/* JS 接管翻页后（homepage.js 加 .js-pager），原生 snap 与 smooth 滚动必须关闭，
   否则会与 rAF 补间互相抢滚动位置。无 JS 时仍走下面的 CSS snap 兜底。 */
@media (max-width: 720px) {
  html.js-pager {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y mandatory;
  }

  .hero,
  .story-intro,
  .chapter,
  .closing {
    scroll-snap-align: start;
  }

  .hero,
  .story-intro,
  .chapter {
    min-height: 100vh;
    min-height: 100svh;
    align-content: center;
    scroll-margin-top: 0;
  }

  .hero {
    height: 100vh;
    height: 100svh;
    padding-top: 76px;
    padding-bottom: 40px;
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: 8px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.2vw, 38px);
  }

  .hero-summary {
    display: none;
  }

  .hero-action {
    margin-top: 16px;
  }

  .hero-action .store-button {
    min-height: 46px;
    font-size: 14px;
  }

  .hero-copy .eyebrow {
    display: none;
  }

  .has-app-vh .hero,
  .has-app-vh .chapter {
    height: var(--app-vh);
  }

  .has-app-vh .story-intro {
    min-height: var(--app-vh);
  }

  .has-app-vh .closing {
    min-height: calc(var(--app-vh) - 48px);
  }

  .hero-scene {
    min-height: 0;
  }

  .hero-card--main {
    width: min(200px, 46%);
  }

  .hero-card--left {
    width: min(150px, 31%);
  }

  .hero-card--right {
    width: min(150px, 31%);
  }

  .section-cue {
    display: none;
  }

  .story-intro {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .chapter {
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
    height: 100vh;
    height: 100svh;
    grid-template-rows: auto minmax(0, 1fr);
    scroll-margin-top: 0;
  }

  .chapter h2 {
    font-size: clamp(26px, 7vw, 32px);
  }

  .chapter h2 br {
    display: none;
  }

  .chapter .eyebrow {
    margin-bottom: 8px;
  }

  .chapter-copy > p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .chapter-tags {
    margin-top: 14px;
  }

  .chapter-tags span {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .chapter-number {
    font-size: 60px;
    top: 12px;
  }

  .chapter-visual {
    width: min(210px, 52vw);
    height: 100%;
    min-height: 0;
  }

  .chapter-visual .visual-plane {
    inset: -4% -7%;
  }

  .chapter-visual picture {
    height: 100%;
  }

  .chapter-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  /* 拍立得/气泡装饰在整屏模式下让位给画面本身 */
  .chapter--poster .chapter-visual picture {
    padding: 0;
    overflow: hidden;
    border-radius: 26px;
  }

  .chapter--poster .chapter-visual::after,
  .chapter--subtitle .chapter-visual::after,
  .chapter--editing .chapter-visual::after {
    display: none;
  }

  .chapter--editing .chapter-visual picture {
    outline: none;
  }

  /* 胶片格收成一屏内的叠放扇形，不再横滑 */
  .capture-scene {
    display: block;
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: visible;
    padding: 0;
  }

  .capture-item {
    position: absolute;
    top: 50%;
    flex: none;
    width: min(150px, 38vw);
  }

  .capture-item::before {
    display: none;
  }

  .capture-item--stitch {
    left: 2%;
    transform: translateY(-50%);
    z-index: 1;
  }

  .capture-item--recording {
    left: 50%;
    width: min(168px, 42vw);
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .capture-item--web {
    right: 2%;
    transform: translateY(-50%);
    z-index: 1;
  }

  .capture-item picture {
    height: auto;
  }

  .capture-item img {
    height: auto;
  }

  .capture-caption {
    display: none;
  }

  .closing {
    min-height: calc(100vh - 48px);
    min-height: calc(100svh - 48px);
    align-content: center;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 24px 18px;
    scroll-margin-top: 0;
  }

  .closing .download-compact {
    padding: 18px;
    gap: 10px;
  }

  .closing .download-compact img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .privacy-copy h2 {
    font-size: clamp(24px, 6.4vw, 30px);
  }

  .privacy-copy > p {
    font-size: 13px;
    line-height: 1.75;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-blob,
  .hero-card,
  .marquee-track,
  .section-cue span {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .chapter-visual picture,
  .chapter-visual .visual-plane,
  .capture-item picture {
    transition: none;
  }
}
