.scene-section.scene-chapters {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #fff;
  color: #132b42;
  isolation: isolate;
}

.scene-section.scene-chapters::before {
  display: none;
}

.scene-chapters__layout {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1640px, calc(100% - clamp(32px, 5.2vw, 104px)));
  margin-inline: auto;
}

.scene-chapters__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(8px, 1.6vh, 16px);
  padding-bottom: clamp(8px, 1.4vh, 14px);
  border-bottom: 1px solid #dfe5e9;
}

.scene-chapters__header h2 {
  margin: 0;
  color: #142b42;
  font-family: var(--font-brand, "Source Han Serif SC", "Noto Serif SC", serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.12;
}

.scene-chapters__header p {
  margin: 0 0 4px;
  color: #788895;
  font-size: 14px;
  line-height: 1.7;
}

.scene-chapters__pages {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dfe5e9;
  background: #102c44;
  overscroll-behavior: none;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
}

.scene-chapters__pages::-webkit-scrollbar { display: none; }

.scene-chapter {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #102c4c;
  color: #fff;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.scene-chapter__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  transition: transform .9s cubic-bezier(.2, .66, .28, 1);
}

.scene-chapter.is-active .scene-chapter__image {
  transform: scale(1);
}

.scene-chapter__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 23, 40, .46) 0%, rgba(5, 23, 40, .2) 54%, rgba(5, 23, 40, .12) 100%),
    linear-gradient(0deg, rgba(5, 23, 40, .74) 0%, rgba(5, 23, 40, .18) 56%, rgba(5, 23, 40, .34) 100%);
}

.scene-chapter__image-note {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: clamp(20px, 4vw, 56px);
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(7, 24, 39, .54);
  color: rgba(255, 255, 255, .9);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.4;
  pointer-events: none;
}

.scene-chapter__inner {
  box-sizing: border-box;
  display: flex;
  width: min(1440px, calc(100% - clamp(40px, 8vw, 144px)));
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  margin-inline: auto;
  padding: clamp(54px, 7vh, 84px) 0 clamp(76px, 10vh, 112px);
}

.scene-chapter__title {
  max-width: 48%;
  align-self: flex-end;
  text-align: right;
  transform: translateY(8px);
  opacity: .76;
  transition: opacity .55s ease, transform .55s ease;
}

.scene-chapter.is-active .scene-chapter__title {
  transform: translateY(0);
  opacity: 1;
}

.scene-chapter__title-text {
  margin: 0;
  color: #fff;
  font-family: var(--font-brand, "Source Han Serif SC", "Noto Serif SC", serif);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(2, 18, 31, .38);
}

.scene-chapter__copy {
  max-width: min(580px, 58%);
  align-self: flex-start;
  transform: translateY(10px);
  opacity: .76;
  transition: opacity .55s ease, transform .55s ease;
}

.scene-chapter.is-active .scene-chapter__copy {
  transform: translateY(0);
  opacity: 1;
}

.scene-chapter__headline {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(16px, 1.55vw, 19px);
  font-weight: 600;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(2, 18, 31, .58);
}

.scene-chapter__summary {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.85;
  text-shadow: 0 2px 12px rgba(2, 18, 31, .58);
}

.scene-chapter__cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 0 17px;
  border: 1px solid #292d31;
  background: rgba(255,255,255,.97);
  color: #17191b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.scene-chapter__cta span {
  color: currentColor;
  transition: transform .2s ease;
}

.scene-chapter__cta:hover {
  border-color: #17191b;
  background: #fff;
  color: #111;
}

.scene-chapter__cta:hover span {
  transform: translateX(4px);
}

.scene-chapter__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(23,25,27,.9);
}

@media (max-width: 720px) {
  .scene-section.scene-chapters {
    padding: 0;
  }

  .scene-chapters__layout {
    width: calc(100% - 32px);
  }

  .scene-chapters__header {
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .scene-chapters__header h2 {
    font-size: 34px;
  }

  .scene-chapters__header p {
    max-width: 48%;
    margin-bottom: 2px;
    font-size: 11px;
    text-align: right;
  }

  .scene-chapters__pages {
    height: 100%;
    min-height: 0;
    scrollbar-width: none;
  }

  .scene-chapter__shade {
    background:
      linear-gradient(0deg, rgba(5, 23, 40, .84) 0%, rgba(5, 23, 40, .3) 62%, rgba(5, 23, 40, .38) 100%),
      linear-gradient(90deg, rgba(5, 23, 40, .2), transparent 82%);
  }

  .scene-chapter__inner {
    width: calc(100% - 40px);
    padding: 48px 0 max(76px, calc(env(safe-area-inset-bottom) + 66px));
  }

  .scene-chapter__image-note {
    top: 14px;
    left: 20px;
    font-size: 10px;
  }

  .scene-chapter__title {
    max-width: min(100%, 280px);
  }

  .scene-chapter__title-text {
    font-size: clamp(36px, 9vw, 46px);
  }

  .scene-chapter__copy {
    max-width: calc(100% - 36px);
  }

  .scene-chapter__headline {
    font-size: 15px;
  }

  .scene-chapter__summary {
    font-size: 12px;
    line-height: 1.75;
  }

  .scene-chapter__cta {
    margin-top: 12px;
    font-size: 13px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-chapters__pages,
  .scene-chapter__image,
  .scene-chapter__title,
  .scene-chapter__copy,
  .scene-chapter__cta span {
    scroll-behavior: auto;
    transition: none;
    transform: none;
    opacity: 1;
  }
}
