/* Homepage chapters. Shared page, form and admin styles remain in style.css. */
.story-home .section {
  padding-top: 68px;
  padding-bottom: 68px;
}
.hero-content {
  padding: 32px 54px;
}
.hero-eyebrow {
  display: block;
  max-width: 690px;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.13em;
}
.hero h1 {
  max-width: 740px;
  font-size: clamp(2.6rem, 4.7vw, 4.3rem);
  margin: 16px 0 20px;
  line-height: 1.04;
}
.hero h1 em {
  display: block;
  font-size: 0.59em;
  line-height: 1.2;
  margin-top: 13px;
}
.hero-content > p {
  max-width: 600px;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.hero-note {
  margin-top: 18px;
}
.hero-shade {
  background: linear-gradient(
    90deg,
    #14281ded 0%,
    #172c21ba 36%,
    #18251915 78%
  );
}
.intro-section .trailer-layout {
  margin-top: 0;
  grid-template-columns: 1.15fr 1fr;
  gap: 54px;
}
.trailer-copy h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}
.trailer-copy h2 em {
  color: var(--green);
}
.trailer-copy .eyebrow {
  font-size: 10px;
}
.chapter-heading {
  max-width: 700px;
  margin-bottom: 34px;
}
.chapter-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 16px;
}
.chapter-heading h2 em {
  color: var(--green);
}
.chapter-heading > p {
  max-width: 650px;
  font-size: 15px;
  margin-bottom: 0;
}
.story-home .loop-section {
  padding-top: 0;
}
.gameplay-loop {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.gameplay-loop li {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.loop-visual {
  display: grid;
  place-items: center;
  height: 192px;
  margin-bottom: 22px;
}
.loop-visual img {
  width: 192px;
  height: 192px;
  object-fit: contain;
  image-rendering: auto;
  filter: saturate(0.82);
}
.loop-number {
  display: block;
  color: #9a7d4c;
  font: italic 22px var(--serif);
  margin-bottom: 18px;
}
.gameplay-loop h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.gameplay-loop p {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.mountain-story {
  background: #e8e0cc;
  border-block: 1px solid var(--line);
}
.story-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 58px;
  align-items: center;
}
.story-copy h2 {
  font-size: clamp(2.3rem, 3.6vw, 3.35rem);
}
.story-copy h2 em {
  color: var(--green);
}
.story-copy > p {
  max-width: 570px;
  font-size: 15px;
  line-height: 1.8;
}
.story-copy .story-turn {
  color: var(--ink);
  font: 1.4rem/1.4 var(--serif);
  margin: 24px 0;
}
.story-copy > p:last-child {
  margin-bottom: 0;
}
.story-illustrations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: end;
  justify-items: center;
  gap: 16px 12px;
}
.story-illustrations img {
  width: 192px;
  height: 192px;
  object-fit: contain;
  image-rendering: auto;
}
.story-illustrations > span {
  grid-column: 1/-1;
  text-align: center;
  font: italic 16px/1.5 var(--serif);
  color: var(--muted);
  margin-top: 8px;
}
.game-capture {
  margin: 0;
  min-width: 0;
}
.capture-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #9b8968;
  border-radius: 5px;
  overflow: hidden;
  background: #18241c;
}
.capture-button img {
  width: 100%;
  height: auto;
}
.capture-button > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 3px;
  background: #1a251ee8;
  color: #fff8e7;
  font-size: 11px;
}
.game-capture figcaption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.game-capture .clip-wrap {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.story-home .progression-section {
  padding-top: 0;
}
.progression-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 54px;
  align-items: center;
}
.progression-copy h3 {
  font-size: 1.85rem;
  max-width: 360px;
}
.progression-copy p {
  font-size: 15px;
}
.story-home .game-gallery {
  padding-top: 0;
}
.gallery-layout {
  display: grid;
  /* Match media heights while preserving both original aspect ratios. */
  grid-template-columns: 1.414fr 1fr;
  gap: 48px;
  align-items: start;
}
.magic-aside {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.magic-aside h3 {
  font-size: 1.9rem;
}
.magic-aside > p {
  font-size: 15px;
  max-width: 380px;
}
.magic-aside .clip-wrap {
  border-radius: 5px;
  overflow: hidden;
  order: -1;
  margin: 0;
  aspect-ratio: 726 / 842;
}
.story-home .development-section {
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
}
.development-section h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}
.development-section h2 em {
  color: var(--green);
}
.development-section > p {
  max-width: 600px;
  margin: 0 auto 22px;
  font-size: 15px;
}
.story-home .game-faq {
  max-width: 960px;
  padding-top: 0;
  padding-bottom: 35px;
}
.game-faq h2 {
  font-size: 1.9rem;
  margin-bottom: 28px;
}
.game-faq .faq-list p {
  max-width: 740px;
}
.story-home .community-invite {
  max-width: 1124px;
  margin: 0 auto;
  padding: 46px 32px;
  text-align: center;
  background: #e8e0cc;
  border-block: 1px solid var(--line);
}
.community-invite h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-bottom: 16px;
}
.community-invite p {
  font-size: 15px;
  margin-bottom: 24px;
}
@media (max-width: 1100px) {
  .story-layout {
    gap: 32px;
    grid-template-columns: 1.1fr 1fr;
  }
  .story-illustrations img {
    width: 160px;
    height: 160px;
  }
  .gameplay-loop {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .intro-section .trailer-layout,
  .progression-layout,
  .gallery-layout {
    gap: 32px;
  }
}
@media (min-width: 701px) and (max-width: 850px) {
  .story-layout {
    grid-template-columns: 1fr;
  }
  .story-copy {
    max-width: 640px;
  }
  .story-illustrations {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .story-illustrations img {
    width: 144px;
    height: 144px;
  }
}
@media (max-width: 700px) {
  .story-home .section {
    padding: 48px 24px;
  }
  .hero-content {
    padding: 28px 24px 10px;
  }
  .hero-eyebrow {
    font-size: 10px;
    line-height: 1.8;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 9.6vw, 2.7rem);
    max-width: none;
    margin-top: 14px;
  }
  .hero h1 em {
    font-size: 0.65em;
    margin-top: 12px;
  }
  .hero-content > p {
    font-size: 14px;
    max-width: none;
  }
  .hero-note {
    font-size: 9px;
  }
  .intro-section .trailer-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .trailer-copy h2 {
    font-size: 2rem;
  }
  .trailer-copy .eyebrow {
    font-size: 9px;
  }
  .chapter-heading {
    margin-bottom: 28px;
  }
  .gameplay-loop {
    gap: 24px 16px;
  }
  .gameplay-loop h3 {
    font-size: 1.3rem;
  }
  .gameplay-loop p {
    font-size: 13px;
  }
  .loop-number {
    margin-bottom: 12px;
  }
  .loop-visual {
    height: 128px;
    margin-bottom: 18px;
  }
  .loop-visual img {
    width: 128px;
    height: 128px;
  }
  .story-home .loop-section {
    padding-top: 0;
  }
  .story-layout,
  .progression-layout,
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .story-copy h2 {
    font-size: 2.3rem;
  }
  .story-illustrations {
    gap: 0 12px;
  }
  .story-illustrations img {
    width: 128px;
    height: 128px;
  }
  .story-illustrations > span {
    font-size: 14px;
    margin-top: 16px;
  }
  .story-home .progression-section,
  .story-home .game-gallery {
    padding-top: 0;
  }
  .progression-copy h3 {
    max-width: none;
    font-size: 1.7rem;
  }
  .magic-aside {
    padding-top: 0;
  }
  .magic-aside h3 {
    font-size: 1.7rem;
  }
  .magic-aside h3 br {
    display: none;
  }
  .magic-aside > p {
    max-width: none;
  }
  .story-home .development-section {
    padding-top: 0;
    padding-bottom: 0;
    text-align: left;
  }
  .story-home .game-faq {
    padding-top: 0;
    padding-bottom: 40px;
  }
  .game-faq .faq-list summary {
    font-size: 17px;
  }
  .story-home .community-invite {
    margin: 0 24px;
    padding: 32px 20px;
  }
}

.story-home .hero-art img {
  object-position: center 35%;
}

/* Each chapter groups its copy with the gameplay that demonstrates it. */
.world-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.tree-capture {
  max-width: 340px;
  width: 100%;
  justify-self: center;
}
.village-moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  align-items: center;
  gap: 48px;
  margin-top: 40px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
}
.village-moment h3 {
  font-size: 1.65rem;
  margin-bottom: 12px;
}
.village-moment p {
  max-width: 530px;
  font-size: 15px;
  margin: 0;
}
.dialogue-capture {
  width: 100%;
  max-width: 342px;
  justify-self: center;
}
.village-moment .dialogue-capture .clip-wrap {
  aspect-ratio: 514 / 328;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.dialogue-capture video {
  display: block;
  width: 100%;
  height: auto;
}
.gallery-layout figcaption {
  margin-top: 14px;
  font-size: 14px;
  max-width: 520px;
}
.gallery-layout figcaption strong {
  display: block;
  margin: 0 0 7px;
  color: var(--ink);
  font: bold 1.5rem/1.3 var(--serif);
}
.story-home .progression-section {
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.progression-layout .clip-wrap {
  aspect-ratio: 1050 / 490;
}
.soldier-profile {
  margin-top: 40px;
}
.profile-intro {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.profile-intro h3 {
  font-size: 1.5rem;
  margin: 0;
}
.profile-intro p {
  max-width: 520px;
  margin: 0;
  font-size: 14px;
}
.soldier-profile .capture-button > span {
  font-size: 10px;
  padding: 5px 8px;
  bottom: 8px;
  right: 8px;
}
.story-home .development-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 36px;
  text-align: left;
  border-top: 1px solid var(--line);
}
.development-section .eyebrow {
  margin-bottom: 10px;
}
.development-section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.development-section p {
  margin: 0;
  max-width: 610px;
  font-size: 14px;
}
.development-section .text-link {
  flex-shrink: 0;
}
.story-home .newsletter-section {
  margin-top: 24px;
}
.image-dialog .image-original {
  display: block;
  padding: 12px 20px;
  color: #fff8e7;
  font-size: 13px;
}
.image-dialog img {
  max-height: calc(90vh - 50px);
}
@media (max-width: 850px) {
  .world-gallery {
    gap: 28px;
  }
  .village-moment {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }
  .profile-intro {
    display: block;
  }
  .profile-intro h3 {
    margin-bottom: 10px;
  }
}
@media (max-width: 700px) {
  .world-gallery,
  .village-moment {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tree-capture {
    max-width: 300px;
  }
  .village-moment {
    margin-top: 32px;
  }
  .village-moment h3 {
    font-size: 1.5rem;
  }
  .dialogue-capture {
    justify-self: start;
  }
  .story-home .progression-section {
    padding-top: 40px;
  }
  .gallery-layout figcaption {
    font-size: 13px;
  }
  .gallery-layout figcaption strong {
    font-size: 1.3rem;
  }
  .soldier-profile {
    margin-top: 32px;
  }
  .story-home .development-section {
    display: block;
    padding: 28px 24px;
  }
  .development-section .text-link {
    margin-top: 18px;
  }
}
