/* =========================================================
   STORY — EDITORIAL HERITAGE EXPERIENCE
   Isolated to the three Story pages.
   ========================================================= */

.story-document {
  --story-paper: var(--warm-white, #f7f1e9);
  --story-paper-deep: var(--ivory, #f4ede3);
  --story-ink: var(--ink, #221d19);
  --story-muted: var(--muted, #71685f);
  --story-red: var(--ci-red, #58110f);
  --story-red-deep: var(--ci-red-deep, #3b0908);
  --story-gold: var(--ci-gold, #c6a25a);
  --story-line: rgba(88, 17, 15, 0.18);
  margin: 0;
  color: var(--story-ink);
  background: var(--story-paper);
}

.story-document *,
.story-document *::before,
.story-document *::after {
  box-sizing: border-box;
}

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

.story-page {
  overflow: clip;
  background: var(--story-paper);
}

.story-hero {
  position: relative;
  height: min(48svh, 600px);
  min-height: 380px;
  overflow: hidden;
  background: #1b1311;
}

.story-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--story-red-deep);
}

.story-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 3, 3, 0.28) 0%, rgba(27, 3, 3, 0.02) 42%, rgba(27, 3, 3, 0.62) 100%),
    linear-gradient(90deg, rgba(27, 3, 3, 0.22), transparent 48%);
  pointer-events: none;
}

.story-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.78) contrast(1.02);
  transform: translate3d(0, var(--story-cover-parallax-y, 0px), 0) scale(1.035);
  transform-origin: center center;
  will-change: transform;
}

.story-hero__copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 24px;
  left: 24px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
  transform: translateY(-42%);
  color: #f4ede3;
  text-shadow: 0 3px 22px rgba(27, 3, 3, 0.58);
}

.story-kicker {
  display: block;
  margin: 0 0 18px;
  color: var(--story-gold);
  font-size: clamp(0.72rem, 0.8vw, 0.86rem);
  line-height: 1.4;
  letter-spacing: 0.14em;
}

.story-hero__copy h1 {
  max-width: none;
  margin: 0;
  color: #f4ede3;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.story-hero__copy p {
  max-width: 850px;
  margin: 20px auto 0;
  color: rgba(244, 237, 227, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.story-timeline {
  position: relative;
  padding: clamp(92px, 10vw, 150px) max(24px, calc((100vw - 1380px) / 2));
  background: #fffdf9;
  border-block: 1px solid var(--story-line);
}

.story-section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: end;
  margin-bottom: clamp(64px, 7vw, 104px);
}

.story-section-heading--single {
  grid-template-columns: 1fr;
}

.story-section-heading h2 {
  max-width: 720px;
  margin: 0;
  color: var(--story-red);
  font-size: clamp(1.7rem, 3.35vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  text-wrap: balance;
}

.story-section-heading p {
  max-width: 550px;
  margin: 0 0 0 auto;
  color: var(--story-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.story-timeline__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2.7vw, 46px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-timeline__list::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--story-line);
}

.story-timeline__item {
  position: relative;
  padding-top: 38px;
}

.story-timeline__item::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 11px;
  height: 11px;
  background: #fffdf9;
  border: 2px solid var(--story-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 6px #fffdf9;
}

.story-timeline__date {
  display: block;
  color: var(--story-red);
  font-size: clamp(1.55rem, 2.2vw, 2.45rem);
  line-height: 1.05;
}

.story-timeline__label {
  display: block;
  max-width: 190px;
  margin-top: 14px;
  color: var(--story-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.story-transition {
  position: relative;
  min-height: min(78svh, 860px);
  margin: 0;
  overflow: hidden;
  background: var(--story-red-deep);
}

.story-transition img {
  width: 100%;
  height: 100%;
  min-height: min(78svh, 860px);
  object-fit: cover;
  filter: grayscale(0.35) saturate(0.68) contrast(1.04);
}

.story-transition figcaption {
  position: absolute;
  right: clamp(18px, 3vw, 48px);
  bottom: clamp(18px, 3vw, 42px);
  max-width: 440px;
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: right;
  background: rgba(35, 12, 10, 0.48);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Image 02 is kept at the original 1920 × 800 (12:5) frame. */
.story-transition--image-02,
.story-transition--image-02 img {
  min-height: 0;
  aspect-ratio: 12 / 5;
}

.story-transition--image-02 img {
  display: block;
  height: auto;
  object-fit: contain;
  filter: none;
}

.story-narrative {
  padding: clamp(55px, 6vw, 95px) 0;
}

/* Bring Journey 01 closer to image 02 without changing the rhythm of later journeys. */
.story-transition + .story-narrative {
  padding-top: 0;
}

.story-transition + .story-narrative .story-spread:first-child {
  padding-top: clamp(18px, 2vw, 28px);
}

/* On desktop, keep the cover and the opening chapter together in the first view. */
@media (min-width: 901px) {
  .story-narrative {
    padding: 12px 0 24px;
  }

  .story-narrative > .story-spread:first-child {
    padding: 12px 0 24px;
  }
}

.story-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: clamp(48px, 8vw, 132px);
  align-items: center;
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(39px, 4.5vw, 66px) 0;
}

.story-spread--reverse {
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
}

.story-spread--reverse .story-spread__media {
  order: 2;
}

.story-spread--reverse .story-spread__copy {
  order: 1;
}

.story-spread__media {
  margin: 0;
  overflow: hidden;
  background: #ded5ca;
}

.story-spread__media--portrait {
  aspect-ratio: 4 / 5;
}

.story-spread__media--landscape {
  aspect-ratio: 4 / 3;
}

/* Transparent illustrations use the full media column without adding a frame. */
.story-spread__media--transparent {
  background: transparent;
}

/* Used where a documentary image should share the vertical rhythm of its copy. */
.story-spread__media--compact-landscape {
  aspect-ratio: 3 / 2;
}

.story-spread__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
  transition: transform 900ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

/* The artwork has a generous transparent perimeter. Scale within its own
   column only, so its visible drawing becomes as large as possible without
   ever crossing into the adjoining text column. */
.story-spread__media--transparent img {
  display: block;
  object-fit: contain;
  filter: none;
  transform: scale(1.76);
  transform-origin: 50% 52%;
}

.story-image-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 58px);
  color: var(--story-red);
  text-align: center;
  background:
    linear-gradient(rgba(88, 17, 15, 0.025), rgba(88, 17, 15, 0.025)),
    repeating-linear-gradient(
      -45deg,
      transparent 0,
      transparent 15px,
      rgba(88, 17, 15, 0.025) 15px,
      rgba(88, 17, 15, 0.025) 16px
    ),
    #f5efe7;
  border: 1px dashed rgba(88, 17, 15, 0.34);
}

.story-image-placeholder::before,
.story-image-placeholder::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.story-image-placeholder::before {
  top: 13px;
  left: 13px;
  border-top: 1px solid var(--story-gold);
  border-left: 1px solid var(--story-gold);
}

.story-image-placeholder::after {
  right: 13px;
  bottom: 13px;
  border-right: 1px solid var(--story-gold);
  border-bottom: 1px solid var(--story-gold);
}

.story-image-placeholder__content {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
}

.story-image-placeholder__index {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--story-gold);
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1;
}

.story-image-placeholder strong {
  display: block;
  margin: 0;
  color: var(--story-red);
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  font-weight: 400;
  line-height: 1.35;
}

.story-image-placeholder p {
  margin: 16px 0 0;
  color: var(--story-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.story-spread:hover .story-spread__media:not(.story-spread__media--transparent) img {
  transform: scale(1.018);
}

.story-spread__copy {
  width: min(100%, 570px);
}

.story-spread__copy h2,
.story-text-chapter h2 {
  margin: 0;
  color: var(--story-red);
  font-size: clamp(1.7rem, 3.35vw, 4rem);
  font-weight: 400;
  line-height: 1.03;
  text-wrap: balance;
}

.story-spread__copy p,
.story-text-chapter p {
  margin: 28px 0 0;
  color: var(--story-muted);
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  line-height: 1.9;
}

.story-text-chapter {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(50px, 6.5vw, 95px) 0;
}

.story-text-chapter--offset {
  margin-left: max(24px, calc((100vw - 1180px) / 2));
}

.story-text-chapter--with-image {
  display: grid;
  /* Give the transparent 03A illustration the full left side while retaining
     a readable, separate text column on the right. */
  grid-template-columns: minmax(420px, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
}

.story-text-chapter--with-image.story-text-chapter--offset {
  margin-left: auto;
}

.story-text-chapter__media {
  /* Keep the landscape frame tall enough to hold its own beside the long chapter copy. */
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #ded5ca;
}

.story-text-chapter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
}

/* 03A is a transparent illustration, not a framed photograph. */
.story-text-chapter__media--transparent {
  background: transparent;
}

.story-text-chapter__media--transparent img {
  display: block;
  object-fit: contain;
  filter: none;
  /* The supplied PNG has generous transparent margins; scale only its visible
     illustration so it uses the image column without introducing a frame. */
  transform: scale(1.92);
  transform-origin: 50% 52%;
}

.story-text-chapter__copy {
  width: min(100%, 620px);
}

.story-proof {
  color: #fff;
  background: var(--story-red);
}

.story-proof__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(48px, 8vw, 132px);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(55px, 6.5vw, 95px) 0;
}

.story-proof__media {
  aspect-ratio: 4 / 5;
  margin: 0;
}

.story-proof__copy {
  min-width: 0;
}

.story-proof__copy h2 {
  margin: 0;
  color: var(--story-gold);
  font-size: clamp(1.7rem, 3.35vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.story-proof__copy p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  line-height: 1.95;
}

.story-proof__copy h2 + p {
  margin-top: 30px;
}

.story-proof__copy p + p {
  margin-top: 1.15em;
}

.story-home {
  padding: clamp(58px, 6.5vw, 98px) max(24px, calc((100vw - 1380px) / 2));
  background: #fffdf9;
}

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

.story-home__heading h2 {
  margin: 0;
  color: var(--story-red);
  font-size: clamp(1.7rem, 3.35vw, 4rem);
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
}

.story-home__heading p {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--story-muted);
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  line-height: 1.9;
}

.story-home__top {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: clamp(42px, 7vw, 112px);
  align-items: start;
  margin-bottom: clamp(22px, 2vw, 36px);
}

.story-home__images {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.story-home__image {
  margin: 0;
  overflow: hidden;
  background: #ded5ca;
}

.story-home__images .story-home__image {
  aspect-ratio: 16 / 9;
}

.story-home__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}

.story-home__image figcaption {
  padding-top: 13px;
  color: var(--story-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.story-quote {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 36svh;
  margin: 0;
  padding: clamp(48px, 6vw, 88px) 24px;
  color: var(--story-gold);
  text-align: center;
  background: var(--story-red-deep);
}

.story-quote::before {
  content: "“";
  position: absolute;
  top: clamp(42px, 7vw, 92px);
  left: 50%;
  color: rgba(198, 162, 90, 0.24);
  font-family: var(--font-display-latin);
  font-size: clamp(8rem, 15vw, 18rem);
  line-height: 0.8;
  transform: translateX(-50%);
}

.story-quote p {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0;
  font-size: clamp(2.8rem, 5.4vw, 6.5rem);
  font-weight: 400;
  line-height: 1.22;
  text-wrap: balance;
}

/* Keep the English and Chinese proof quotes to the same two-line rhythm as Thai. */
html[lang="en"] .story-quote:not(.story-quote--compact) p,
html[lang^="zh"] .story-quote:not(.story-quote--compact) p {
  font-size: clamp(1.55rem, 2.8vw, 3rem);
}

/* Thai Journey 05 transition quote: 60% of the standard quote scale. */
.story-quote--compact p {
  width: max-content;
  max-width: min(1280px, 100%);
  font-size: clamp(1.68rem, 3.24vw, 3.9rem);
}

.story-generations {
  padding: clamp(60px, 7vw, 105px) 0;
  background: var(--story-paper-deep);
}

.story-generations__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
}

.story-generations__copy h2 {
  margin: 0;
  color: var(--story-red);
  font-size: clamp(1.7rem, 3.35vw, 4rem);
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
}

.story-generations__copy p {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--story-muted);
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  line-height: 1.9;
}

.story-generations__copy h2 + p {
  margin-top: 30px;
}

.story-generations__image {
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: #ded5ca;
}

.story-generations__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
}

.story-branch-timeline {
  overflow: hidden;
  padding: clamp(37px, 4.25vw, 64px) 0 clamp(42px, 4.5vw, 69px);
  color: #fff;
  background: var(--story-red-deep);
}

.story-branch-timeline__intro {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.story-branch-timeline__eyebrow {
  margin: 0 0 16px;
  color: var(--story-gold);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
}

.story-branch-timeline__intro h2 {
  margin: 0;
  color: var(--story-gold);
  font-size: clamp(1.9rem, 4vw, 4.6rem);
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}

.story-branch-timeline__intro > p:last-child {
  max-width: 1000px;
  margin: 18px auto 0;
  color: var(--story-gold);
  font-size: clamp(0.98rem, 1.22vw, 1.16rem);
  line-height: 1.8;
}

.story-branch-timeline__scroll {
  width: min(1160px, calc(100% - 48px));
  margin: clamp(28px, 3vw, 40px) auto 0;
  overflow: visible;
}

.story-branch-timeline__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 170px);
  row-gap: 72px;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.story-branch-timeline__track::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  /* One continuous line: past 2559, down at the far right, back across
     above row two, then a broad left loop into 2560 and onward to 2568. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 412' preserveAspectRatio='none'%3E%3Cpath d='M90 57H900C932 57 950 75 950 107V156C950 188 932 206 900 206H100C68 206 50 224 50 253C50 281 68 299 100 299H890' fill='none' stroke='rgba(218,183,113,0.34)' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.story-branch-timeline__track::after {
  content: none;
}

.story-branch-timeline__event {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 170px;
  padding: 0 12px;
  text-align: center;
}

/* Both rows read left to right; the connector loops from 2559 to the next row's start. */
.story-branch-timeline__event:nth-child(1) { grid-column: 1; grid-row: 1; }
.story-branch-timeline__event:nth-child(2) { grid-column: 2; grid-row: 1; }
.story-branch-timeline__event:nth-child(3) { grid-column: 3; grid-row: 1; }
.story-branch-timeline__event:nth-child(4) { grid-column: 4; grid-row: 1; }
.story-branch-timeline__event:nth-child(5) { grid-column: 1; grid-row: 2; }
.story-branch-timeline__event:nth-child(6) { grid-column: 2; grid-row: 2; }
.story-branch-timeline__event:nth-child(7) { grid-column: 3; grid-row: 2; }
.story-branch-timeline__event:nth-child(8) { grid-column: 4; grid-row: 2; }

.story-branch-timeline__event:nth-child(4)::after {
  content: none;
}

.story-branch-timeline__event time {
  position: relative;
  z-index: 1;
  display: block;
  height: 38px;
  color: var(--story-gold);
  font-size: clamp(2.1rem, 2.45vw, 2.38rem);
  line-height: 1;
}

.story-branch-timeline__dot {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: block;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin: 12px 0 18px;
  border: 3px solid var(--story-red-deep);
  border-radius: 50%;
  background: var(--story-gold);
  box-shadow: 0 0 0 1px var(--story-gold);
}

.story-branch-timeline__event h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--story-gold);
  font-size: clamp(1.1rem, 1.35vw, 1.25rem);
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}

.story-branch-timeline__event p {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 0;
  padding: 6px 11px 5px;
  border: 1px solid rgba(218, 183, 113, 0.42);
  border-radius: 999px;
  color: var(--story-gold);
  background: rgba(218, 183, 113, 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.story-branch-timeline__event--closed time {
  color: rgba(255, 255, 255, 0.62);
}

.story-branch-timeline__event--closed h3 {
  color: rgba(255, 255, 255, 0.72);
}

.story-branch-timeline__event--closed .story-branch-timeline__dot {
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.story-branch-timeline__event--closed p {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.07);
}

.story-closing {
  display: flex;
  align-items: center;
  min-height: 39svh;
  padding: clamp(55px, 7vw, 105px) 24px;
  background: #fffdf9;
}

.story-closing__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(48px, 8vw, 144px);
  width: min(100%, 1380px);
  margin: 0 auto;
}

.story-closing__image {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #ded5ca;
}

.story-closing__image--landscape {
  /* The closing copy is intentionally long; use a balanced landscape rather than a shallow banner. */
  aspect-ratio: 4 / 3;
}

.story-closing__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
}

.story-closing__copy {
  justify-self: end;
  width: min(100%, 680px);
  text-align: left;
}

.story-closing h2 {
  margin: 0;
  color: var(--story-red);
  font-size: clamp(1.7rem, 3.35vw, 4rem);
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
}

.story-closing__body {
  max-width: 760px;
  margin: 38px 0 0;
}

.story-closing__body p {
  margin: 22px 0 0;
  color: var(--story-muted);
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  line-height: 1.9;
}

.story-closing__body p:first-child {
  margin-top: 0;
}

.story-book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 170px;
  padding: 44px max(24px, calc((100vw - 1380px) / 2));
  color: #fff;
  background: var(--story-red);
  border-top: 1px solid rgba(198, 162, 90, 0.42);
}

.story-book-footer img {
  width: 110px;
  height: auto;
  filter: brightness(0) invert(1);
}

.story-book-footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
}

.story-reveal {
  opacity: 1;
  transform: none;
}

.story-motion .story-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 800ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.story-motion .story-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[lang="en"] .story-hero__copy h1,
html[lang="en"] .story-spread__copy h2,
html[lang="en"] .story-text-chapter h2,
html[lang="en"] .story-home__heading h2,
html[lang="en"] .story-generations__copy h2,
html[lang="en"] .story-branch-timeline__intro h2,
html[lang="en"] .story-closing h2 {
  letter-spacing: -0.035em;
}

html[lang^="zh"] .story-hero__copy h1,
html[lang^="zh"] .story-spread__copy h2,
html[lang^="zh"] .story-text-chapter h2,
html[lang^="zh"] .story-home__heading h2,
html[lang^="zh"] .story-generations__copy h2,
html[lang^="zh"] .story-branch-timeline__intro h2,
html[lang^="zh"] .story-closing h2 {
  line-height: 1.14;
  letter-spacing: 0.01em;
}

@media (max-width: 980px) {
  .story-section-heading,
  .story-proof__inner {
    grid-template-columns: 1fr;
  }

  .story-section-heading p {
    margin-left: 0;
  }

  .story-spread,
  .story-spread--reverse,
  .story-text-chapter--with-image,
  .story-generations__inner,
  .story-closing__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-spread--reverse .story-spread__media,
  .story-spread--reverse .story-spread__copy {
    order: initial;
  }

  .story-spread__media--portrait,
  .story-spread__media--landscape,
  .story-spread__media--compact-landscape {
    aspect-ratio: 16 / 11;
  }

  .story-spread__copy,
  .story-generations__copy {
    width: min(100%, 680px);
  }

  .story-text-chapter--offset {
    margin-left: max(24px, calc((100vw - 780px) / 2));
  }

  .story-text-chapter--with-image.story-text-chapter--offset {
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .story-hero {
    height: 54svh;
    min-height: 320px;
  }

  .story-hero__image img {
    object-position: 54% center;
  }

  .story-hero__copy {
    top: 52%;
    right: 18px;
    left: 18px;
    width: calc(100% - 36px);
    transform: translateY(-38%);
  }

  .story-hero__copy h1 {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
    line-height: 1.08;
  }

  .story-hero__copy p {
    margin-top: 12px;
    font-size: 0.96rem;
  }

  .story-timeline {
    padding: 82px 22px 94px;
  }

  .story-section-heading {
    gap: 24px;
    margin-bottom: 58px;
  }

  .story-timeline__list {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 24px;
  }

  .story-timeline__list::before {
    top: 7px;
    bottom: 7px;
    left: 5px;
    width: 1px;
    height: auto;
  }

  .story-timeline__item {
    padding: 0 0 46px 24px;
  }

  .story-timeline__item:last-child {
    padding-bottom: 0;
  }

  .story-timeline__item::before {
    top: 4px;
    left: -24px;
  }

  .story-timeline__label {
    max-width: 270px;
    margin-top: 9px;
  }

  .story-transition,
  .story-transition img {
    min-height: 66svh;
  }

  .story-transition--image-02,
  .story-transition--image-02 img {
    min-height: 0;
  }

  .story-transition figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
    text-align: left;
  }

  .story-narrative {
    padding: 31px 0;
  }

  .story-transition + .story-narrative {
    padding-top: 0;
  }

  .story-spread {
    width: calc(100% - 36px);
    padding: 35px 0;
  }

  .story-transition + .story-narrative .story-spread:first-child {
    padding-top: 16px;
  }

  .story-spread__media--portrait,
  .story-spread__media--landscape,
  .story-spread__media--compact-landscape,
  .story-text-chapter__media {
    aspect-ratio: 4 / 3;
  }

  .story-spread__copy h2,
  .story-text-chapter h2 {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .story-text-chapter,
  .story-text-chapter--offset {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding: 46px 0;
  }

  .story-proof__inner {
    width: calc(100% - 36px);
    padding: 50px 0;
  }

  .story-proof h2 {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .story-home {
    padding: 50px 18px;
  }

  .story-home__top {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .story-home__images {
    gap: 22px;
  }

  .story-home__images .story-home__image {
    aspect-ratio: 4 / 3;
  }

  .story-quote {
    min-height: 34svh;
    padding-block: 48px;
    padding-inline: 18px;
  }

  .story-quote p {
    font-size: clamp(2.7rem, 12.5vw, 4.45rem);
  }

  .story-quote--compact p {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.62rem, 7.5vw, 2.67rem);
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .story-generations {
    padding: 52px 0;
  }

  .story-generations__inner {
    width: calc(100% - 36px);
  }

  .story-generations__image {
    aspect-ratio: 4 / 3;
  }

  .story-branch-timeline { padding: 31px 0 36px; }
  .story-branch-timeline__intro { width: calc(100% - 36px); }
  .story-branch-timeline__intro h2 { font-size: clamp(1.78rem, 8.2vw, 2.7rem); }
  .story-branch-timeline__intro > p:last-child { margin-top: 16px; }
  .story-branch-timeline__scroll { width: calc(100% - 36px); margin-top: 28px; }

  .story-branch-timeline__track {
    display: block;
    padding-left: 30px;
  }

  .story-branch-timeline__track::before {
    top: 50px;
    right: auto;
    bottom: 50px;
    left: 6px;
    width: 1px;
    height: auto;
    background: rgba(218, 183, 113, 0.34);
  }

  .story-branch-timeline__track::after,
  .story-branch-timeline__event:nth-child(4)::after {
    display: none;
  }

  .story-branch-timeline__event,
  .story-branch-timeline__event:nth-child(n) {
    align-items: flex-start;
    min-height: 0;
    margin: 0;
    padding: 0 0 42px;
    text-align: left;
  }

  .story-branch-timeline__event:last-child { padding-bottom: 0; }

  .story-branch-timeline__event time {
    height: 30px;
    font-size: 1.55rem;
  }

  .story-branch-timeline__dot {
    margin: 12px 0 20px -30px;
  }

  .story-branch-timeline__event h3 { min-height: 0; }

  .story-closing {
    min-height: 35svh;
    padding-block: 55px;
    padding-inline: 18px;
  }

  .story-closing__inner {
    gap: 42px;
  }

  .story-closing__image,
  .story-closing__image--landscape {
    aspect-ratio: 4 / 3;
  }

  .story-closing h2 {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .story-section-heading h2,
  .story-home__heading h2,
  .story-generations__copy h2 {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .story-book-footer {
    min-height: 150px;
    padding: 36px 18px;
  }
}

@media (max-width: 420px) {
  .story-document .story-hero__copy .story-kicker {
    margin-bottom: 10px;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .story-spread__media img {
    transition: none;
  }

  .story-hero__image img {
    transform: none;
    will-change: auto;
  }
}


/* Story-only refinement: real uploaded photos should not inherit placeholder frames. */
.story-document figure.story-image-frame {
  padding: 0;
  background: transparent;
  border: 0;
}

.story-document figure.story-image-frame::before,
.story-document figure.story-image-frame::after {
  display: none;
}

.story-document figure.story-image-frame .story-filled-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Give the newly supplied founder photograph more visual presence beside the copy. */
.story-document .story-text-chapter__media.story-image-frame {
  aspect-ratio: 16 / 10;
}


@media (max-width: 760px) {
  .story-document .story-text-chapter__media.story-image-frame {
    aspect-ratio: 4 / 3;
  }

}

/* Image 03 intentionally remains an empty space in the story layout. */
.story-document .story-spread__media--empty {
  background: transparent;
}
