/* ---------- The story: pinned, scroll-driven illustration ---------- */
/* the story's own heavier weight (site.css has 400 to 600) */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/InterTight-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.saga { position: relative; background: #05081A; --hdr: 64px; }
.saga-stage {
  position: sticky; top: var(--hdr);
  height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr));
  overflow: hidden; z-index: 0;
}
.saga-svg { display: block; width: 100%; height: 100%; }
.saga-steps {
  position: relative; z-index: 1;
  margin-top: calc(-1 * (100vh - var(--hdr))); margin-top: calc(-1 * (100svh - var(--hdr)));
}
.saga-step {
  min-height: 72vh; min-height: 72svh;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 var(--gutter, 16px) 4svh;
}
.saga-step:first-child { min-height: calc(100svh - var(--hdr)); }
.saga-step:last-child { min-height: 100svh; padding-bottom: 30svh; }

.saga-card {
  max-width: 36rem; width: 100%;
  /* the colours follow the sky: story.js blends them from night into day */
  color: var(--sg-fg);
}
.saga-card h2 { margin: 0 0 18px; color: inherit; letter-spacing: -0.03em; font-size: clamp(34px, 4.4vw, 54px); }
.saga-card p { margin: 0; font-size: clamp(19px, 1.9vw, 25px); font-weight: 400; line-height: 1.5; letter-spacing: 0; text-wrap: pretty; color: var(--sg-fg2); }
.saga-card p b { color: var(--sg-fg); font-weight: 600; }
.saga-card .mh { color: var(--sg-mh); }
.saga { --sg-fg: #FFFFFF; --sg-fg2: #E6E6F2; --sg-mh: #9A9EC0; --sg-scrim: #05081A; }

/* on a phone the text sits over the water: the water deepens behind it */
@media (max-width: 899px) {
  .saga-stage::after {
    content: ""; position: absolute; inset: auto 0 0; height: var(--sg-scrim-h, 58%); pointer-events: none;
    background: linear-gradient(to top,
      color-mix(in srgb, var(--sg-scrim) 94%, transparent) 0%,
      color-mix(in srgb, var(--sg-scrim) 82%, transparent) 45%,
      transparent 100%);
  }
}

/* a phone: the passages a little smaller, so the water under them can sit lower */
@media (max-width: 599px) {
  .saga-card h2 { font-size: 30px; margin-bottom: 14px; }
  .saga-card p { font-size: 18px; }
  .saga-card .coda { font-size: 23px; }
}

/* a title for screen readers and search, not shown */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* SVG type */
.saga-svg text { font-family: var(--font, 'Inter Tight', system-ui, sans-serif); }
.saga-svg .sg-small { font-size: 17px; font-weight: 500; fill: #8FA9FF; letter-spacing: .02em; }
.saga-svg .sg-name { font-size: 22px; font-weight: 650; }
.saga-svg .sg-sub { font-weight: 450; opacity: .7; }
.saga-svg .sg-label text { font-size: 22px; font-weight: 600; fill: var(--ink-2, #4A4340); }

.saga-card .coda { margin-top: 18px; font-size: clamp(25px, 2.9vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: inherit; }
.saga-card .coda + p { margin-top: 18px; }
.saga-card p + p:not(.coda) { margin-top: 16px; }
.saga-step.saga-pause { min-height: 45vh; min-height: 45svh; }

/* after the story: the bridge into the product. Its title and lines are centred, and so
   are the three figures with their names (Kim, 28 September); the lists stay as lists. */
.story-after h2, .story-after .story-p, .story-after .story-pull { text-align: center; margin-inline: auto; }
.story-after .roles { width: fit-content; margin-inline: auto; }
.story-after .trio .tile img { justify-self: center; }
.story-after .trio .tile h3, .story-after .trio .tile > p { text-align: center; }
.story-after .trio .tile .does { width: fit-content; margin-inline: auto; }

.story-pull { margin: 8px 0 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink, #171313); max-width: 20em; }
.roles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; max-width: 38em; }
.roles li { position: relative; padding-left: 22px; font-size: clamp(17px, 1.7vw, 19px); line-height: 1.5; color: var(--ink-2, #4A4340); }
.roles li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.roles li b { color: var(--ink, #171313); font-weight: 650; }
.roles .r-nu { --dot: #3E63DD; } .roles .r-bb { --dot: #2B4BB8; } .roles .r-ra { --dot: #FF6B35; }

@media (min-width: 900px) {
  /* a little above centre, so the text stays in the sky, clear of the water */
  .saga-step, .saga-step:last-child { justify-content: flex-start; align-items: center; padding-bottom: 14svh; }
  .saga-card { max-width: min(36rem, 44vw); margin-left: max(0px, calc((100vw - 1200px) / 2)); }
}
