/* Shared editorial palette for the equipment, housing and combat chapters. */
.story-section {
  --story-ink: #110e16;
  --story-paper: #f8ebdb;
  --story-soft: #e0d4cb;
  --story-gold: #e3be95;
  --story-rule: rgba(214, 177, 142, .32);
  --story-title: "TI Throne Header", serif;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.625rem, 8vw, 7.75rem) clamp(1.5rem, 6vw, 6rem);
  background: var(--story-ink);
  color: var(--story-paper);
}
.story-section :is(p, h2, h3, figure) { margin: 0; }
.story-section :is(h2, h3, figcaption) { font-family: var(--story-title); font-weight: 400; }
.story-section h2 { margin-top: 0.8125rem; font-size: clamp(2.625rem, 5.8vw, 5.5rem); line-height: 1.02; }
.story-kicker, .story-overline {
  font: 400 0.6875rem/1.5 Noto, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--story-gold);
}
.story-section .story-lead, .story-trials-heading > p:last-child {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.6;
  color: var(--story-soft);
}
.orb-section, .story-gear, .story-home {
  --scene-fade: clamp(5.375rem, 11vw, 10.625rem);
  --scene-gap: clamp(1.5rem, 3vw, 3.125rem);
}
.story-gear, .story-home { margin-block-start: var(--scene-gap); }
.orb-section .orb-layout {
  position: relative; display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(1.375rem, 4vw, 4.75rem);
  width: 100%; max-width: none;
  min-height: clamp(38.75rem, 57vw, 51.875rem);
  padding: clamp(4.125rem, 7vw, 6.875rem) clamp(1.5rem, 6vw, 6rem);
}
.orb-section::before { opacity: .52; mask-image: linear-gradient(to bottom, transparent, black var(--scene-fade)); }
.orb-section::after {
  background: linear-gradient(0deg, var(--ink), transparent var(--scene-fade)),
    linear-gradient(90deg, #100e15f5 4%, #100e15dc 32%, #100e1540 66%, #100e157a);
}
.orb-section .orb-art {
  position: absolute; inset: 0 0 0 auto; width: 56%; min-height: 0; overflow: hidden;
}
/* Fade the completed scene into the page so the scenery never shows through the figure. */
.orb-section .orb-art::after {
  content: ""; position: absolute; inset: auto 0 0; height: var(--scene-fade);
  background: linear-gradient(transparent, var(--ink)); pointer-events: none;
}
.orb-section .orb-character {
  position: absolute; left: 0; top: clamp(2.5rem, 4vw, 4rem); bottom: auto; right: auto;
  width: 153%; max-width: none; height: auto;
}
.orb-section .orb-clip { max-width: 33.125rem; margin-top: 1.8125rem; }
.orb-section .feature-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 1.3125rem;
  margin: 1.5rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.orb-section .feature-bullets li:nth-child(n) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #e6c4a3;
  font: 400 clamp(1.0625rem, 1.35vw, 1.3125rem)/1.35 "TI Throne Header", serif;
}

.story-gear {
  display: grid;
  align-items: center;
  min-height: clamp(33.4375rem, 46vw, 45.9375rem);
  background: #17121c;
}
.story-gear-film {
  position: absolute; inset: 0 auto 0 0; width: 76%; height: 100%; z-index: -2;
  object-fit: cover; object-position: 50% 36%;
}
.story-gear::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--ink), transparent var(--scene-fade), transparent calc(100% - var(--scene-fade)), var(--ink)),
    linear-gradient(90deg, transparent 31%, #17121c40 43%, #17121cea 62%, #17121c 77%);
}
.story-gear-inner { width: min(100%, 83.125rem); margin-inline: auto; }
.story-gear-copy { container-type: inline-size; width: 44%; margin-left: auto; }
.story-home-copy h2 { font-size: clamp(2.75rem, 5.6vw, 5.625rem); line-height: 1.02; }
.story-section .story-gear-copy h2 { font-size: min(11.4cqi, 4.75rem); white-space: nowrap; }
.story-gear-copy h2 span { color: var(--story-gold); }
.story-gear-copy p, .story-home-copy > p, .story-home-copy > .story-lead {
  margin: 1.25rem 0 0; font: 400 clamp(1.1875rem, 1.8vw, 1.625rem)/1.45 Noto, sans-serif;
  color: var(--story-paper); text-wrap: pretty;
}

.story-home {
  display: grid;
  align-items: center;
  min-height: clamp(39.375rem, 56vw, 53.75rem);
  background: #1c171a;
}
.story-home-backdrop { position: absolute; inset: 0; z-index: -2; }
.story-home-backdrop video { width: 100%; height: 100%; object-fit: cover; }
.story-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--ink), transparent var(--scene-fade), transparent calc(100% - var(--scene-fade)), var(--ink)),
    linear-gradient(90deg, #100d16fa 0%, #100d16e3 25%, #100d1675 57%, transparent 78%);
}
.story-home-layout, .story-trials-inner, .story-bosses-inner {
  width: min(100%, 78.75rem);
  margin-inline: auto;
}
.story-home-copy { max-width: min(100%, 30.9375rem); }


.story-trials { background: linear-gradient(180deg, #100e15, #201a25 68%, #131018); }
.story-trials .story-trials-heading { text-align: center; margin: 0 0 clamp(2rem, 4vw, 3.5rem); }
.story-activities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.125rem, 2.4vw, 2.25rem); }
.story-activity {
  display: grid; align-items: end; isolation: isolate; position: relative; overflow: hidden;
  min-height: clamp(18.125rem, 29vw, 26.5625rem); background: #182023;
  border-bottom: 1px solid #ae8f69;
}
.story-activity > :is(img, video) { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.story-activity::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, #100d16fa, #100d16da 21%, #100d1670 43%, transparent 70%); }
.story-activity-copy { padding: clamp(1.125rem, 2vw, 2rem); max-width: 60ch; }
.story-activity-copy h3 { font-size: clamp(1.625rem, 2.5vw, 2.5rem); line-height: 1.08; }
.story-activity-copy p { margin-top: 7px; font: 400 0.9375rem/1.5 Noto, sans-serif; color: #f4e8da; }
.story-activity--dungeon > img { object-position: 50% 43%; }
.story-activity--guild, .story-activity--challenge {
  min-height: clamp(18.75rem, 32vw, 28.4375rem);
  background: radial-gradient(ellipse at 60% 25%, #38625755, transparent 72%), linear-gradient(0deg, #100d16, #100d165c), url("_shared/storm/media/chapter-observatory.webp") center/cover;
}
.story-activity--challenge { background-position: 70% center; }
.story-activity--guild > img, .story-activity--challenge > img { object-fit: contain; height: 95%; object-position: center 10%; }
.story-bosses { background: radial-gradient(ellipse at 52% 48%, #3c283f, #131018 76%); }
.story-bosses-heading { max-width: 64em; margin: 0 auto; text-align: center; }
.story-bosses-heading h2 { margin: 0; }
.story-bosses-heading p { margin: 1.125rem auto 0; max-width: 64ch; color: var(--story-soft); font: 400 1.0625rem/1.55 Noto, sans-serif; text-wrap: pretty; }
.story-boss-lineup { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(0.625rem, 1.8vw, 1.75rem); margin-top: clamp(1.875rem, 4vw, 4rem); }
.story-boss-lineup figure { text-align: center; }
.story-boss-lineup img { display: block; width: 100%; height: clamp(12.5rem, 23vw, 23.75rem); object-fit: contain; object-position: center bottom; }
.story-boss-lineup figcaption { margin-top: 1.0625rem; font-size: clamp(1.375rem, 2.1vw, 2.125rem); }
.story-boss-lineup figcaption h3 { font: inherit; }
@media (max-width: 680px) {
  .orb-section .orb-layout { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 0; padding: 62px 22px 36px; }
  .orb-section .orb-intro { display: contents; }
  .orb-section .orb-art { position: relative; inset: auto; width: calc(100% + 44px); margin-inline: -22px; order: 1; height: clamp(280px, 87vw, 480px); margin-top: 16px; }
  .orb-section .orb-character { left: -3%; top: 0; width: auto; height: 220%; }
  .orb-section .feature-bullets { gap: 4px 16px; margin-top: 16px; }
  .orb-section .orb-clip { order: 2; margin-top: 22px; }
  .story-section { padding: 64px 22px; }
  .story-section h2 { font-size: clamp(38px, 10vw, 62px); }
  .story-section .story-lead, .story-trials-heading > p:last-child { margin-top: 14px; font-size: 16px; }
  .orb-section, .story-gear, .story-home { --scene-fade: 72px; --scene-gap: 22px; }
  .story-gear { min-height: 0; padding-top: clamp(225px, 63vw, 400px); padding-bottom: 48px; }
  .story-gear-film { width: 100%; height: clamp(270px, 75vw, 485px); mask-image: linear-gradient(black 49%, transparent); }
  .story-gear::after { background: linear-gradient(180deg, var(--ink), transparent var(--scene-fade)), linear-gradient(0deg, var(--ink), transparent 14%), linear-gradient(180deg, transparent 120px, #17121c 52%); }
  .story-gear-copy { width: 100%; }
  .story-home-copy h2 { font-size: clamp(39px, 10.5vw, 66px); }
  .story-gear-copy p, .story-home-copy > p, .story-home-copy > .story-lead { font-size: 19px; margin-top: 14px; }
  .story-home { min-height: 0; background: linear-gradient(#100d16, #1c171a 80px); padding-top: clamp(190px, 55vw, 325px); }
  .story-home-backdrop { height: 66%; mask-image: linear-gradient(transparent, black var(--scene-fade)); }
  .story-home-backdrop video { object-position: 61% center; }
  .story-home::after { background: linear-gradient(0deg, var(--ink), transparent 46px), linear-gradient(180deg, transparent 7%, #1c171a40 22%, #1c171af2 51%, #1c171a 66%); }

  .story-activities { grid-template-columns: 1fr; gap: 20px; }
  .story-activity { min-height: clamp(290px, 84vw, 480px); }
  .story-activity-copy { padding: 17px; }
  .story-activity-copy h3 { font-size: clamp(25px, 7vw, 38px); }
  .story-activity-copy p { font-size: 14px; }
  .story-boss-lineup { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .story-boss-lineup img { height: clamp(125px, 40vw, 225px); }
  .story-boss-lineup figcaption { margin-top: 7px; font-size: clamp(18px, 4.8vw, 27px); }
  .story-bosses-heading p { font-size: 15px; }
}

/* Keep the reward together so its conjunction never hangs on the final line. */
.story-bosses-reward { white-space: nowrap; }
