.rating-pill {
  display: inline-flex;
  margin-top: 12px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 201, 74, .3);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, .07);
  color: var(--cream);
  font-size: .76rem;
  font-weight: 900;
  opacity: .82;
  backdrop-filter: blur(12px);
}

.rating-pill span {
  color: var(--moon);
  font-size: .68rem;
  letter-spacing: .04em;
}

.rating-pill strong {
  font-size: .82rem;
}

.rating-pill small {
  color: rgba(248, 244, 234, .74);
  font-size: .66rem;
  font-weight: 800;
}

.hero__clouds {
  bottom: -34px;
}

.feature-icons {
  padding-top: clamp(76px, 8vw, 112px);
}

.proof-strip {
  display: grid;
  width: min(100% - 42px, var(--max));
  margin: clamp(24px, 4vw, 42px) auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.proof-strip article {
  border: 1px solid rgba(214, 231, 255, .14);
  border-radius: 20px;
  padding: 16px 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
    rgba(10, 27, 69, .64);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  color: var(--cream);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.12rem;
}

.proof-strip span {
  color: rgba(232, 238, 255, .76);
  font-size: .88rem;
  font-weight: 700;
}

.story-immersive-section {
  padding-top: clamp(58px, 7vw, 100px);
}

.story-teaser-section {
  padding-top: clamp(54px, 7vw, 92px);
}

.story-teaser {
  display: grid;
  width: min(100%, 980px);
  margin: 0 auto;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  border-radius: 30px;
  padding: clamp(16px, 2.6vw, 26px);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 201, 74, .15), transparent 32%),
    radial-gradient(circle at 92% 10%, rgba(140, 241, 210, .12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)),
    rgba(8, 26, 70, .76);
  box-shadow: 0 28px 82px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.story-teaser__cover {
  min-height: 300px;
  max-width: 240px;
  justify-self: center;
  transform: perspective(900px) rotateY(-8deg);
}

.story-teaser__body h3 {
  margin: 0 0 10px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1;
}

.story-teaser__body > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: rgba(232, 238, 255, .82);
}

.story-teaser__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.story-teaser__meta li {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .06);
  color: rgba(248, 244, 234, .84);
  font-size: .78rem;
  font-weight: 900;
}

.story-teaser__thumbs {
  display: grid;
  max-width: 560px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.story-teaser__thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.story-demo-button {
  display: inline-flex;
  min-height: 48px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: linear-gradient(180deg, var(--moon), var(--honey));
  color: #15152b;
  cursor: pointer;
  font: 900 .94rem Outfit, sans-serif;
  box-shadow: 0 16px 34px rgba(255, 178, 56, .22);
}

body.is-story-modal-open {
  overflow: hidden;
}

.story-modal[hidden] {
  display: none;
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.4vw, 30px);
}

.story-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 24, .72);
  backdrop-filter: blur(18px);
}

.story-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 96vw);
  max-height: min(820px, 92svh);
  grid-template-columns: minmax(240px, 330px) 1fr;
  gap: clamp(14px, 2vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(214, 231, 255, .2);
  border-radius: 34px;
  padding: clamp(14px, 2.2vw, 24px);
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 201, 74, .14), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(140, 241, 210, .12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
    rgba(6, 20, 58, .96);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
}

.story-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--cream);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.story-modal__aside {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 6px 0 0;
}

.story-modal__aside img {
  width: min(100%, 176px);
  max-height: 230px;
  justify-self: center;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}

.story-modal__aside h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1;
}

.story-modal__aside p:not(.eyebrow) {
  margin: 0;
  color: rgba(232, 238, 255, .78);
  font-size: .94rem;
}

.story-modal__aside audio {
  width: 100%;
}

.story-modal__pages {
  display: flex;
  gap: 16px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 18px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
}

.story-modal__page {
  position: relative;
  display: block;
  flex: 0 0 min(620px, 70vw);
  height: min(640px, calc(92svh - 78px));
  overflow: hidden;
  border: 1px solid rgba(214, 231, 255, .16);
  border-radius: 28px;
  background: rgba(4, 16, 50, .64);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  scroll-snap-align: center;
}

.story-modal__page img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.story-modal__page--cover img {
  object-fit: contain;
  padding: 20px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 201, 74, .12), transparent 42%);
}

.story-modal__page div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(180deg, transparent, rgba(3, 10, 31, .72) 18%, rgba(3, 10, 31, .96));
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.story-modal__page span {
  display: block;
  margin-bottom: 8px;
  color: var(--mint);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-modal__page h4 {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.story-modal__page p {
  margin: 0;
  color: rgba(248, 244, 234, .86);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.5;
}

.story-modal__page--moral {
  border-color: rgba(255, 201, 74, .38);
}

.story-immersive-section .section-heading {
  max-width: 820px;
}

.story-immersive {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  width: min(100%, 1180px);
  margin: 0 auto;
  border-radius: 34px;
  padding: clamp(18px, 3vw, 34px);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 201, 74, .16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(140, 241, 210, .12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)),
    rgba(9, 27, 73, .78);
}

.story-immersive__hero {
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(320px, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

.story-book-cover--large {
  min-height: clamp(360px, 46vw, 560px);
  max-width: 420px;
  justify-self: center;
  transform: perspective(1000px) rotateY(-7deg);
}

.story-immersive__intro {
  max-width: 620px;
}

.story-immersive__intro h3 {
  margin-bottom: 12px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.35rem, 4.6vw, 5rem);
  line-height: .95;
}

.story-immersive__intro ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.story-immersive__intro li {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .07);
  color: rgba(248, 244, 234, .84);
  font-size: .88rem;
  font-weight: 900;
}

.story-immersive audio,
.story-mini audio {
  width: min(100%, 520px);
  border-radius: 999px;
}

.story-immersive__pages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.story-page-card {
  overflow: hidden;
  border: 1px solid rgba(214, 231, 255, .14);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
    rgba(4, 15, 47, .58);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

.story-page-card img {
  width: 100%;
  aspect-ratio: 1 / .82;
  object-fit: cover;
}

.story-page-card div {
  padding: 14px;
}

.story-page-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--mint);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.story-page-card p {
  margin: 0;
  color: rgba(248, 244, 234, .82);
  font-size: .88rem;
  line-height: 1.42;
}

.story-page-card--moral {
  border-color: rgba(255, 201, 74, .32);
}

.content-page {
  width: min(100% - 42px, var(--max));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0 80px;
}

.content-hero {
  max-width: 980px;
  margin: 0 auto 34px;
  border-radius: 34px;
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
}

.content-hero h1 {
  max-width: 850px;
  margin-inline: auto;
}

.content-hero p:not(.eyebrow) {
  max-width: 780px;
  margin-inline: auto;
  font-size: 1.08rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-grid .glass-card {
  min-height: 220px;
  padding: 24px;
}

.content-grid .glass-card span {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(140, 241, 210, .12);
  color: var(--mint);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.content-grid h2 {
  font-size: clamp(1.35rem, 2.1vw, 2rem);
}

.content-band,
.story-mini {
  display: grid;
  max-width: 980px;
  margin: 34px auto 0;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 38px);
}

.content-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(180deg, var(--moon), var(--honey));
  color: #171229;
  font-weight: 900;
}

.seo-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
}

.seo-pill-row span {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .07);
  color: rgba(248, 244, 234, .82);
  font-weight: 900;
}

.story-mini {
  grid-template-columns: 160px 1fr;
}

.story-mini img {
  width: 160px;
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .36);
}

.site-footer--refined .site-footer__main {
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(130px, .6fr));
  align-items: start;
}

.footer-nav strong,
.footer-legal strong {
  color: var(--cream);
  font-family: Fraunces, Georgia, serif;
  font-size: 1rem;
}

@media (max-width: 980px) {
  .story-immersive__hero,
  .content-band,
  .story-mini {
    grid-template-columns: 1fr;
  }

  .story-immersive__pages,
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .site-footer--refined .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-teaser,
  .story-modal__panel {
    grid-template-columns: 1fr;
  }

  .story-modal__panel {
    overflow-y: auto;
  }

  .story-modal__aside {
    grid-template-columns: 112px 1fr;
    align-items: center;
  }

  .story-modal__aside img {
    width: 112px;
  }

  .story-modal__aside audio {
    grid-column: 1 / -1;
  }

  .story-modal__page {
    flex-basis: min(78vw, 540px);
  }
}

@media (max-width: 620px) {
  .proof-strip,
  .content-page {
    width: min(100% - 28px, var(--max));
  }

  .rating-pill {
    align-items: center;
    flex-direction: row;
    border-radius: 999px;
  }

  .story-immersive__pages,
  .content-grid,
  .site-footer--refined .site-footer__main {
    grid-template-columns: 1fr;
  }

  .story-book-cover--large {
    min-height: 320px;
    transform: none;
  }

  .story-teaser__cover {
    min-height: 260px;
    transform: none;
  }

  .story-teaser__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-modal {
    padding: 10px;
  }

  .story-modal__panel {
    max-height: 94svh;
    border-radius: 24px;
  }

  .story-modal__aside {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-right: 42px;
  }

  .story-modal__aside img {
    display: none;
  }

  .story-modal__aside h3 {
    font-size: 1.55rem;
  }

  .story-modal__aside p:not(.eyebrow) {
    display: none;
  }

  .story-modal__page {
    flex-basis: 84vw;
    grid-template-rows: minmax(220px, .82fr) auto;
  }

  .story-page-card img {
    aspect-ratio: 1 / .72;
  }

  .story-mini img {
    width: min(100%, 220px);
  }
}
