/* The new Story page, over roles.css (GNB, footer). Its photo sections (.story-pin) are each a
   stage pinned under the GNB with scroll steps, some ending in a fade: story_new.js sets data-step
   (0-4) on the section and --fade (0 to 1) on the stage. The intro: Figma 522:7546, three steps
   toward 525:8154, then it scrolls away into the cards (522:7552). The race:
   Figma 525:8159, 525:8264, 525:8268, 525:8272, then a black fade. Then 522:7984 on black and
   THE OPENING (522:7991). */

.story-page {
  --gnb-h: 72px;
  --zoom: 1.7;
  background: var(--bright);
}

/* the scroll distance the stage stays pinned for */
.story-pin {
  height: 520vh;
  background: var(--dark);
}

/* the intro holds its last step for a short while, then scrolls away */
.story-intro {
  height: 420vh;
}

.story-stage {
  position: sticky;
  top: var(--gnb-h);
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - var(--gnb-h));
  min-height: 480px;
  padding: 80px 120px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.story-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  transform-origin: 50% 30%;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: background 1s ease;
}

.story-title,
.story-origin {
  position: relative;
  font-weight: 600;
  word-break: keep-all;
  transition:
    opacity 0.8s ease,
    translate 0.8s ease;
}

.story-title span,
.story-line span {
  display: block;
}

.story-title {
  font-size: 56px;
  line-height: 1.5;
}

/* the second step's copy sits where the title was */
.story-origin {
  position: absolute;
  inset: 50% 120px auto;
  font-size: 28px;
  line-height: 1.6;
  opacity: 0;
  translate: 0 calc(-50% + 24px);
}

.story-fade {
  position: absolute;
  inset: 0;
  background: var(--fade-to, var(--bright));
  opacity: var(--fade, 0);
  pointer-events: none;
}

/* steps 1-3 add one line of the story each and zoom the photo a third of the way further, up to
   --zoom */
.story-line {
  display: block;
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 0.8s ease,
    translate 0.8s ease;
}

.story-intro:not([data-step="0"]) {
  .story-shade {
    background: rgba(0, 0, 0, 0.4);
  }

  .story-title {
    opacity: 0;
    translate: 0 -24px;
  }

  .story-origin {
    opacity: 1;
    translate: 0 -50%;
  }

  .story-line:nth-child(1) {
    opacity: 1;
    translate: 0;
  }
}

.story-intro[data-step="1"] .story-bg {
  transform: scale(calc(1 + (var(--zoom) - 1) / 3));
}

.story-intro[data-step="2"] .story-bg {
  transform: scale(calc(1 + (var(--zoom) - 1) * 2 / 3));
}

.story-intro[data-step="3"] .story-bg,
.story-intro[data-step="4"] .story-bg {
  transform: scale(var(--zoom));
}

.story-intro[data-step="2"],
.story-intro[data-step="3"],
.story-intro[data-step="4"] {
  .story-line:nth-child(2) {
    opacity: 1;
    translate: 0;
  }
}

.story-intro[data-step="3"],
.story-intro[data-step="4"] {
  .story-line:nth-child(3) {
    opacity: 1;
    translate: 0;
  }
}

/* ---------- 그렇게 시작한 회사는 ---------- */

.story-grew-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1040px;
  margin-inline: auto;
  padding: 71px 0 120px;
}

.story-grew-label {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--grey);
}

.story-cards {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

/* the card keeps its height; text longer than that scrolls inside it */
.story-card {
  display: flex;
  flex: 0 1 320px;
  flex-direction: column;
  gap: 130px;
  height: 410px;
  padding: 24px;
  overflow-y: auto;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: var(--soft) transparent;
  word-break: keep-all;
}

.story-card h3 {
  flex: none;
  min-height: 4.5em;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  color: #000;
}

.story-card h3 span {
  display: block;
}

.story-card p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--grey);
}

.story-card p + p {
  margin-top: 21px;
}

.story-grew-close {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: #000;
  word-break: keep-all;
}

.story-grew-close span {
  display: block;
}

/* in a .story-cover the first section stays put once its bottom meets the screen's (story_new.js
   sets --pin-top) and the second slides up over it */
.story-cover > :first-child {
  position: sticky;
  top: var(--pin-top, var(--gnb-h));
  background: var(--bright);
}

.story-cover > :last-child {
  position: relative;
  z-index: 1;
}

.story-race,
.story-gap {
  position: relative;
  z-index: 1;
}

/* ---------- AI를 기업에 적용하는 경쟁 ---------- */

/* the stage holds the photo and the title; the first scroll zooms the photo once and hides the
   title, then the photo stays still while .story-race-flow, laid over the stage, scrolls its
   paragraphs up; the fade to black runs while .story-fade-zone, the flow's tail, passes */
.story-race {
  --fade-to: var(--dark);
  height: auto;

  .story-bg {
    object-position: 50% 38%;
    transform-origin: 50% 50%;
  }

  .story-shade {
    background: rgba(0, 0, 0, 0.7);
  }

  &:not([data-step="0"]) {
    .story-bg {
      transform: scale(1.3);
    }

    .story-shade {
      background: rgba(0, 0, 0, 0.75);
    }

    .story-title {
      opacity: 0;
      translate: 0 -24px;
    }
  }
}

.story-race-flow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60vh;
  margin-top: calc(var(--gnb-h) - 100vh);
  padding: 100vh 120px 0;
  color: #fff;
  text-align: center;
}

.story-race-text {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
  word-break: keep-all;
}

.story-race-text span {
  display: block;
}

/* a screen to scroll the last paragraph off, then the fade */
.story-fade-zone {
  flex: none;
  height: 160vh;
  margin-top: -60vh;
}

/* ---------- 모델의 성능개선은 매우 빠르지만 ---------- */

.story-gap {
  background: var(--dark);
  color: #fff;
}

.story-gap-inner {
  display: flex;
  flex-direction: column;
  gap: 100px;
  max-width: 1040px;
  margin-inline: auto;
  padding-block: 200px;
}

.story-gap-block {
  display: flex;
  flex-direction: column;
  gap: 48px;

  h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.5;
    word-break: keep-all;
  }

  h2 span {
    display: block;
  }
}

/* paragraphs a blank line apart, as in the design */
.story-gap-text {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  max-width: 600px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--grey);
  word-break: keep-all;
}

/* ---------- THE OPENING ---------- */

.story-opening {
  position: relative;
  z-index: 1;
  background: var(--bright);
  color: #000;
  word-break: keep-all;
}

.story-opening-inner {
  display: flex;
  flex-direction: column;
  gap: 100px;
  max-width: 1040px;
  margin-inline: auto;
  padding-block: 160px;
}

.story-opening-head {
  display: flex;
  flex-direction: column;
  max-width: 793px;

  .mode-label {
    color: rgba(55, 56, 60, 0.28);
  }

  h2 {
    margin-top: 36px;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.5;
  }

  h2 span {
    display: block;
  }
}

.story-opening-text,
.story-flow-text,
.story-opening-more {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--grey);
}

.story-opening-text {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  max-width: 732px;
  margin-top: 64px;
}

.story-opening-ax {
  display: flex;
  flex-direction: column;
  gap: 36px;

  h3 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.5;
  }
}

.story-flows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.story-flow {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.story-flow-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 36px 40px;
  border-radius: 16px;
  background: #fff;
}

.story-flow-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
}

.story-flow-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* three circles joined by orange arrows: outlined, outlined darker, then filled */
.story-step {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  padding: 0 17px;
  border: 1.5px solid rgba(112, 115, 124, 0.16);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.story-arrow {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--brand);
}

.story-step.is-mid {
  border-color: var(--grey);
}

.story-step.is-dark,
.story-step.is-brand {
  border: 0;
  color: #fff;
}

.story-step.is-dark {
  background: var(--dark);
}

.story-step.is-brand {
  background: var(--brand);
}

.story-opening-more {
  max-width: 707px;
}

.story-opening-close {
  padding-block: 100px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.story-opening-close span {
  display: block;
}

/* ---------- THE BET ---------- */

.story-bet {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: #fff;
  word-break: keep-all;
}

.story-bet-inner {
  display: flex;
  flex-direction: column;
  gap: 200px;
  max-width: 1040px;
  margin-inline: auto;
  padding-block: 160px;
}

.story-bet-head {
  display: flex;
  flex-direction: column;

  .mode-label {
    color: rgba(255, 255, 255, 0.28);
  }

  h2 {
    margin-top: 36px;
    font-size: 56px;
    font-weight: 600;
    line-height: 1.5;
  }
}

.story-bet-lead,
.story-bet-close {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--grey);
}

.story-bet-lead {
  margin-top: 64px;
}

.story-bet-lead span {
  display: block;
}

.story-bet-close {
  max-width: 917px;
}

.story-bet-rows {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* copy beside a photo; the second row puts the photo first */
.story-bet-row {
  display: grid;
  grid-template-columns: minmax(0, 504fr) minmax(0, 500fr);
  align-items: center;
  gap: 36px;
}

.story-bet-row.is-flipped {
  grid-template-columns: minmax(0, 500fr) minmax(0, 504fr);

  .story-bet-photo {
    order: -1;
  }
}

.story-bet-copy {
  display: flex;
  flex-direction: column;
  gap: 36px;

  h3 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.5;
  }

  h3 span {
    display: block;
  }

  p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--grey);
  }
}

.story-bet-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 280;
  object-fit: cover;
}

/* ---------- THE COMPANY, and what is not there yet ---------- */

.story-company,
.story-honest {
  position: relative;
  z-index: 1;
  background: var(--bright);
  color: #000;
  word-break: keep-all;
}

.story-company-inner,
.story-honest-inner {
  display: flex;
  flex-direction: column;
  gap: 61px;
  max-width: 1040px;
  margin-inline: auto;
}

.story-company-inner {
  padding-block: 100px;
}

.story-honest-inner {
  padding-block: 190px;
}

.story-company-head {
  display: flex;
  flex-direction: column;
  gap: 36px;

  .mode-label {
    color: rgba(55, 56, 60, 0.28);
  }

  h2 {
    font-size: 58px;
    font-weight: 600;
    line-height: 1.5;
  }
}

/* the wordmark on black, drawn as the design's three vectors; sized to the band's width so it
   scales with it (1cqw = 10.4px at the design's 1040px) */
.story-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.436cqw;
  aspect-ratio: 1040 / 448;
  background: #000;
  container-type: inline-size;
}

.story-wordmark-day1ax {
  width: 24.531cqw;
  height: auto;
}

.story-wordmark-rule {
  width: max(1px, 0.233cqw);
  height: 9.099cqw;
}

.story-wordmark-company {
  width: 34.528cqw;
  height: auto;
}

.story-company-text,
.story-company-quote,
.story-company-close {
  max-width: 917px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}

.story-company-text {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  color: var(--grey);
}

.story-company-quote {
  max-width: calc(929px + 19px);
  padding-left: 16px;
  border-left: 3px solid var(--brand);
}

.story-company-close span,
.story-lines span {
  display: block;
}

.story-honest-inner h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.5;
}

/* a long orange rule rising into the last two lines */
.story-honest-close {
  padding: 400px 0 0 16px;
  border-left: 3px solid;
  border-image: linear-gradient(to bottom, rgba(255, 64, 0, 0), var(--brand)) 1;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.5;
}

.story-honest-close span {
  display: block;
}

/* ---------- 첫 100명이 얻게 될 것 ---------- */

.story-gain {
  background: var(--bright);
  word-break: keep-all;
}

.story-gain-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 61px;
  max-width: 1040px;
  margin-inline: auto;
  padding-block: 100px;

  h2 {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    color: #000;
  }
}

.story-gain-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 332px));
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* the photo under a dark corner gradient; on hover (or focus) the photo blurs under a flat shade, the
   number and title shrink and the text opens under them, all eased together like a smart animate;
   the text scrolls inside the card when it runs past it */
.story-gain-card {
  --gain-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gain-time: 0.6s;
  position: relative;
  height: 400px;
  overflow: hidden;
  color: #fff;
  outline: none;

  &::before,
  &::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    transition: opacity var(--gain-time) var(--gain-ease);
  }

  &::before {
    background: linear-gradient(167.29deg, #18191b 19.541%, rgba(0, 0, 0, 0) 94.117%);
  }

  &::after {
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
  }
}

.story-gain-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter var(--gain-time) var(--gain-ease),
    scale var(--gain-time) var(--gain-ease);
}

.story-gain-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
  transition: padding var(--gain-time) var(--gain-ease);

  h3 {
    margin-top: 11px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.6;
    transition: font-size var(--gain-time) var(--gain-ease);
  }

  h3 span {
    display: block;
  }
}

.story-gain-num {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  transition: font-size var(--gain-time) var(--gain-ease);
}

/* closed: no height, faded and a little low; it opens as the title settles */
.story-gain-text {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  max-height: 0;
  margin-top: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  translate: 0 12px;
  transition:
    max-height var(--gain-time) var(--gain-ease),
    margin-top var(--gain-time) var(--gain-ease),
    opacity 0.25s ease,
    translate var(--gain-time) var(--gain-ease);
}

.story-gain-card:is(:hover, :focus-visible, :focus-within) {
  &::before {
    opacity: 0;
  }

  &::after {
    opacity: 1;
  }

  .story-gain-photo {
    filter: blur(15px);
    scale: 1.1;
  }

  .story-gain-body {
    padding: 32px 24px;
    overflow-y: auto;
  }

  .story-gain-num,
  h3 {
    font-size: 24px;
  }

  .story-gain-text {
    max-height: 40em;
    margin-top: 36px;
    opacity: 1;
    translate: 0;
    transition:
      max-height var(--gain-time) var(--gain-ease),
      margin-top var(--gain-time) var(--gain-ease),
      opacity 0.5s ease 0.12s,
      translate var(--gain-time) var(--gain-ease) 0.08s;
  }
}

.story-gain-close {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding-block: 100px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);

  span {
    display: block;
  }
}

/* ---------- 첫 100명이 이런 사람들이었으면 ---------- */

.story-people {
  background: var(--dark);
  color: #fff;
  word-break: keep-all;
}

.story-people-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 94px;
  max-width: 1060px;
  margin-inline: auto;
  padding-block: 180px;
}

.story-people-head {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-self: stretch;
  max-width: 1040px;

  h2 {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.5;
  }

  p {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--grey);
  }

  p span {
    display: block;
  }
}

/* three over two, centred */
.story-people-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 30px;
  margin: 0;
  padding: 0;
  list-style: none;

  .story-person {
    flex: 0 1 332px;
  }
}

/* the same card as above with a short white rule over the title and a top-down shade; on hover the
   rule shortens and the text opens further down */
.story-person {
  &::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  }

  .story-gain-body {
    padding: 36px 24px 24px;
  }

  h3 {
    margin-top: 12px;
  }

  &.is-long h3 {
    font-size: 26px;
    letter-spacing: -0.02em;
  }
}

.story-person-line {
  display: block;
  width: 36.5px;
  height: 4px;
  transition: width var(--gain-time) var(--gain-ease);
}

.story-gain-card.story-person:is(:hover, :focus-visible, :focus-within) {
  .story-gain-body {
    padding: 32px 24px;
  }

  .story-person-line {
    width: 30px;
  }

  &.is-long h3 {
    font-size: 24px;
  }

  .story-gain-text {
    margin-top: 100px;
  }
}

/* ---------- the closing call to apply ---------- */

.story-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 623px;
  padding: 80px 120px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  word-break: keep-all;

  &::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
  }
}

.story-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 54px;
  max-width: 910px;
}

.story-cta-text {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;

  span {
    display: block;
  }
}

.story-cta-actions {
  display: flex;
  gap: 16px;
}

.story-cta-apply,
.story-cta-roles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  border-radius: 100px;
  font-size: 16px;
  line-height: 1.5;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.story-cta-apply {
  width: 152px;
  padding: 8px 32px;
  background: var(--brand);
  font-weight: 600;
  color: #fff;
}

.story-cta-apply:hover {
  background: #fff;
  color: var(--brand);
}

.story-cta-roles {
  padding: 8px 8px 8px 32px;
  background: #fff;
  font-weight: 500;
  color: #000;
}

/* the arrow sits on an orange disc, turned to point right */
.story-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  rotate: 180deg;
  transition: translate 0.2s ease;

  img {
    width: 14.5px;
    height: 11.5px;
  }
}

.story-cta-roles:hover .story-cta-arrow {
  translate: 3px 0;
}

@media (max-width: 1100px) {
  .story-grew-inner,
  .story-gap-inner,
  .story-opening-inner,
  .story-bet-inner,
  .story-company-inner,
  .story-honest-inner,
  .story-gain-inner,
  .story-people-inner {
    padding-inline: var(--gutter);
  }
}

@media (max-width: 900px) {
  .story-page {
    --gnb-h: 64px;
  }

  .story-stage {
    padding: 56px var(--gutter);
  }

  .story-title {
    font-size: 36px;
  }

  .story-race-flow {
    padding-inline: var(--gutter);
  }

  .story-race-text {
    font-size: 18px;
  }

  .story-origin {
    inset-inline: var(--gutter);
    font-size: 18px;
  }

  .story-grew-close span {
    display: inline;
  }

  .story-grew-inner {
    gap: 40px;
    padding-block: 56px 80px;
  }

  .story-gap-inner {
    gap: 72px;
    padding-block: 120px;
  }

  .story-gap-block {
    gap: 32px;

    h2 {
      font-size: 26px;
    }
  }

  .story-gap-text {
    font-size: 16px;
  }

  .story-opening-inner {
    gap: 72px;
    padding-block: 96px;
  }

  .story-opening-head h2 {
    font-size: 32px;
  }

  .story-opening-text {
    margin-top: 40px;
  }

  .story-opening-text,
  .story-flow-text,
  .story-opening-more {
    font-size: 16px;
  }

  .story-opening-ax h3 {
    font-size: 24px;
  }

  .story-flows {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .story-flow-card {
    padding: 28px 20px;
  }

  .story-flow-steps {
    justify-content: space-between;
    gap: 6px;
  }

  .story-step {
    width: 84px;
    height: 84px;
    padding: 0 8px;
    font-size: 13px;
  }

  .story-opening-close {
    padding-block: 48px;
    font-size: 22px;
  }

  .story-opening-close span {
    display: inline;
  }

  .story-bet-inner {
    gap: 96px;
    padding-block: 96px;
  }

  .story-company-inner,
  .story-honest-inner {
    gap: 40px;
  }

  .story-company-inner {
    padding-block: 80px;
  }

  .story-honest-inner {
    padding-block: 96px;
  }

  .story-company-head h2 {
    font-size: 30px;
  }

  .story-company-text,
  .story-company-quote,
  .story-company-close {
    font-size: 18px;
  }

  .story-honest-inner h2 {
    font-size: 24px;
  }

  .story-honest-close {
    padding-top: 200px;
    font-size: 22px;
  }

  .story-lines span,
  .story-honest-close span {
    display: inline;
  }

  .story-gain-inner {
    gap: 40px;
    padding-block: 80px;

    h2 {
      font-size: 26px;
    }
  }

  .story-gain-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .story-gain-card {
    height: 400px;
  }

  .story-people-inner {
    gap: 48px;
    padding-block: 96px;
  }

  .story-people-head {
    gap: 20px;

    h2 {
      font-size: 28px;
    }

    p {
      font-size: 18px;
    }

    p span {
      display: inline;
    }
  }

  .story-people-cards {
    flex-direction: column;
    align-self: stretch;
    gap: 16px;

    .story-person {
      flex: none;
    }
  }

  .story-cta {
    min-height: 0;
    padding: 96px var(--gutter);
  }

  .story-cta-inner {
    gap: 36px;
  }

  .story-cta-text {
    font-size: 18px;

    span {
      display: inline;
    }
  }

  .story-gain-close {
    padding-block: 48px;
    font-size: 18px;

    span {
      display: inline;
    }
  }

  .story-bet-head h2 {
    font-size: 32px;
  }

  .story-bet-lead {
    margin-top: 40px;
  }

  .story-bet-lead,
  .story-bet-close {
    font-size: 18px;
  }

  /* photo over its copy */
  .story-bet-row,
  .story-bet-row.is-flipped {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;

    .story-bet-photo {
      order: -1;
    }
  }

  .story-bet-rows {
    gap: 64px;
  }

  .story-bet-copy {
    gap: 20px;

    h3 {
      font-size: 24px;
    }

    p {
      font-size: 16px;
    }
  }

  .story-grew-label,
  .story-grew-close {
    font-size: 20px;
  }

  .story-cards {
    flex-direction: column;
    gap: 16px;
  }

  /* stacked on phones, a card grows to its text instead of scrolling inside */
  .story-card {
    flex: none;
    gap: 40px;
    height: auto;
  }

  .story-card h3 {
    min-height: 0;
  }

  .story-card h3 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-bg,
  .story-shade,
  .story-title,
  .story-origin,
  .story-line,
  .story-race-text,
  .story-gain-card *,
  .story-gain-card::before,
  .story-gain-card::after {
    transition: none;
  }
}
