/* Our story: shared layout flow keeps names, faces and copy apart at every size. */
.chapter-story .story-layout {
  position: absolute;
  inset: 120px 10% 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(32px, 7vw, 112px);
  max-width: 1200px;
  margin-inline: auto;
  padding: 8px 6px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #83ccc670 transparent;
  touch-action: pan-y pinch-zoom;
}
.chapter-story .portrait-layer {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  inset: auto;
  width: 100%;
  height: auto;
  max-width: 370px;
  max-height: 100%;
  aspect-ratio: 1280 / 1889;
  justify-self: center;
  transform: none;
  border: 1px solid #f2ebdf20;
}
.chapter-story .portrait-layer > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}
.chapter-story .copy-story {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  inset: auto;
  width: 100%;
  max-width: 540px;
  transform: none;
  text-shadow: none;
}
.chapter-story .copy-story > .eyebrow {
  max-width: none;
  margin: 0 0 20px;
  color: #bfcfcb;
  font-size: 10px;
  letter-spacing: .15em;
}
.chapter-story .copy-story .world-heading {
  font-size: clamp(58px, 6.2vw, 94px);
  line-height: 1.02;
}
.chapter-story .copy-story .world-lede {
  margin: 24px 0 0;
  max-width: none;
  color: #f2ebdf;
  font-size: 17px;
  line-height: 1.65;
}
.chapter-story .copy-story > .world-description {
  display: block;
  max-width: 430px;
  margin: 18px 0 0;
  color: #c5ceca;
  font-size: 15px;
  line-height: 1.8;
}
.chapter-story .copy-story > .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 100%;
  min-height: 50px;
  margin: 26px 0 0;
  padding: 14px 20px;
  font-size: 13px;
  line-height: 1.5;
}
.chapter-story .copy-story > .story-signature {
  display: block;
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--brand-green);
}
html.js #spatial-stage:has(.chapter-story.is-current) { touch-action: pan-y pinch-zoom; }
body:has(.chapter-story.is-current) .journey-hint { visibility: hidden; }
.story-layout:focus-visible { outline: 1px solid var(--brand-green); outline-offset: 4px; }

@media (max-width: 900px) {
  .chapter-story .story-layout { inset: 100px 7% 100px; gap: 30px; }
  .chapter-story .copy-story .world-heading { font-size: clamp(48px, 6.6vw, 70px); }
}

@media (max-width: 600px) {
  .chapter-story .story-layout {
    inset: 92px 6% 108px;
    grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
    grid-template-rows: auto auto auto auto auto auto;
    align-content: start;
    align-items: start;
    gap: 0 18px;
    padding: 6px 0 22px;
  }
  .chapter-story .copy-story { display: contents; }
  .chapter-story .copy-story > .eyebrow {
    grid-area: 1 / 1;
    margin: 4px 0 16px;
    font-size: 9px;
    line-height: 1.6;
    letter-spacing: .1em;
  }
  .chapter-story .copy-story .world-heading {
    grid-area: 2 / 1;
    font-size: clamp(32px, 9.2vw, 52px);
    line-height: 1.08;
    letter-spacing: -.055em;
    text-align: left;
  }
  .chapter-story .copy-story .world-heading em { white-space: nowrap; }
  .chapter-story .copy-story .world-lede {
    grid-area: 3 / 1;
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.7;
  }
  .chapter-story .portrait-layer {
    grid-area: 1 / 2 / 4 / 3;
    align-self: stretch;
    max-width: none;
    max-height: none;
    min-height: 208px;
    height: 100%;
    aspect-ratio: auto;
  }
  .chapter-story .portrait-layer > img { object-position: 50% 32%; }
  .chapter-story .copy-story > .world-description {
    grid-area: 4 / 1 / 5 / 3;
    margin: 24px 0 0;
    max-width: none;
    font-size: 14px;
    line-height: 1.8;
  }
  .chapter-story .copy-story > .text-link {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100%;
    margin-top: 22px;
    min-height: 50px;
    font-size: 13px;
  }
  .chapter-story .copy-story > .story-signature { grid-area: 6 / 1 / 7 / 3; font-size: 17px; }
  body:has(.chapter-story.is-current) .site-header {
    height: 76px;
    gap: 14px;
    padding-block: 12px;
    background: #0d1718;
  }
  body:has(.chapter-story.is-current) .site-header .brand { width: 100px; }
  body:has(.chapter-story.is-current) .header-saved,
  body:has(.chapter-story.is-current) .menu-toggle { min-height: 44px; }
  body:has(.chapter-story.is-current) .chapter-rail { display: none; }
  body:has(.chapter-story.is-current) .journey-dock {
    inset: auto 0 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 12px;
    padding: 6px 6% max(8px, env(safe-area-inset-bottom));
    background: #0d1718;
    border-top: 1px solid #f2ebdf20;
  }
  body:has(.chapter-story.is-current) .journey-position {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
  }
  body:has(.chapter-story.is-current) #journey-label { margin-left: 8px; font-size: 11px; }
  body:has(.chapter-story.is-current) .journey-dock .sound-toggle {
    position: static;
    padding: 0;
    min-height: 36px;
  }
  body:has(.chapter-story.is-current) .journey-hint { display: none; }
  body:has(.chapter-story.is-current) .journey-controls {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 20px;
  }
  body:has(.chapter-story.is-current) .journey-controls > button { min-height: 44px; font-size: 13px; }
  body:has(.chapter-story.is-current) #journey-next { border: 0; padding-left: 16px; }
}

@media (min-width: 601px) and (max-height: 740px) {
  .chapter-story .story-layout { inset-block: 104px 82px; align-items: start; }
  .chapter-story .copy-story .world-heading { font-size: clamp(42px, 5vw, 68px); }
  .chapter-story .copy-story .world-lede { margin-top: 16px; font-size: 15px; }
  .chapter-story .copy-story > .world-description { margin-top: 14px; font-size: 14px; }
  .chapter-story .copy-story > .text-link { margin-top: 18px; }
  .chapter-story .portrait-layer {
    width: auto;
    height: min(420px, calc(100svh - 196px));
    max-width: 100%;
    max-height: none;
  }
}
html:not(.js) .chapter-story .story-layout {
  position: relative;
  inset: auto;
  margin: 60px 8%;
  overflow: visible;
}
