/* Three continuous chapters; their words and links never depend on animation. */
.brand-page .brand-story {
  background: #142129;
  border-block: 1px solid #34444d;
  padding-bottom: 30px;
}
.brand-page .brand-story-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  column-gap: 10%;
  align-items: end;
}
.brand-page .brand-story-heading > .eyebrow {
  grid-column: 1 / -1;
}
.brand-page .brand-story-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 65px);
  max-width: 19ch;
}
.brand-page .brand-story-heading > p {
  font-size: 16px;
  line-height: 1.75;
  max-width: 50ch;
  margin: 0 0 4px;
}
.brand-page .brand-story-nav {
  grid-column: 1 / -1;
  display: flex;
  border-block: 1px solid #3a4a53;
  margin-block: 46px 34px;
}
.brand-page .brand-story-nav a {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 17px;
  flex: 1;
  padding: 13px 20px 13px 0;
  color: #b6c3c8;
  font-size: 14px;
  transition: color 0.2s;
}
.brand-page .brand-story-nav a + a {
  padding-left: 27px;
  border-left: 1px solid #3a4a53;
}
.brand-page .brand-story-nav a > span {
  color: #788d98;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.brand-page .brand-story-nav a > .icon {
  margin-left: auto;
  width: 18px;
  height: 18px;
}
.brand-page .brand-story-nav a:hover,
.brand-page .brand-story-nav a[aria-current] {
  color: #ff966e;
}
.brand-page .brand-story-stage {
  display: none;
}
.brand-page .brand-story-chapter {
  scroll-margin-top: 118px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  padding-block: 64px 76px;
  border-bottom: 1px solid #34444d;
}
.brand-page .brand-story-chapter:last-child {
  border-bottom: 0;
}
.brand-page .brand-story-art-home {
  align-self: center;
  min-width: 0;
}
.brand-page .brand-story-art svg {
  display: block;
  width: 100%;
  height: auto;
}
.brand-page .brand-story-copy {
  min-width: 0;
}
.brand-page .brand-story-chapter-head {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.brand-page .brand-story-index {
  font-size: 72px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.075em;
  color: #556c78;
}
.brand-page .brand-story-step {
  color: #ff966e;
  font-size: 11px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-page .brand-story-step .icon {
  width: 18px;
  height: 18px;
}
.brand-page .brand-story-chapter h3 {
  font-size: clamp(29px, 3vw, 43px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 21ch;
  margin: 0 0 24px;
}
.brand-page .brand-story-problem {
  color: #b2bfc6;
  font-size: 16px;
  line-height: 1.75;
  max-width: 55ch;
}
.brand-page .brand-story-result {
  border-left: 2px solid #ff4d0a;
  padding-left: 22px;
  margin-top: 30px;
}
.brand-page .brand-story-result > span {
  color: #ff966e;
  font-size: 10px;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.brand-page .brand-story-result p {
  font-size: 19px;
  line-height: 1.5;
  color: #f2f0e9;
  margin: 12px 0 0;
}
.brand-page .brand-story-details {
  margin-top: 30px;
  border-block: 1px solid #3a4a53;
}
.brand-page .brand-story-details summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  color: #b9c5cb;
  font-size: 13px;
  cursor: pointer;
}
.brand-page .brand-story-details summary::-webkit-details-marker {
  display: none;
}
.brand-page .brand-story-details summary .icon {
  width: 18px;
  height: 18px;
}
.brand-page .brand-story-details[open] summary .icon {
  transform: rotate(45deg);
}
.brand-page .brand-story-details dl {
  margin: 0;
  padding-bottom: 25px;
}
.brand-page .brand-story-details dl > div + div {
  margin-top: 21px;
}
.brand-page .brand-story-details dt {
  color: #f2f0e9;
  font-size: 12px;
  margin-bottom: 7px;
}
.brand-page .brand-story-details dd {
  color: #aebec6;
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}
.brand-page .brand-story-demo {
  margin-top: 27px;
}

/* An agency reads as a portfolio: heavier numbering and the visual on the right. */
.brand-page .brand-story--agency {
  background: #1c2a32;
}
.brand-page .brand-story--agency .brand-story-chapter {
  grid-template-columns: 1fr 1fr;
}
.brand-page .brand-story--agency .brand-story-art-home {
  grid-column: 2;
  grid-row: 1;
}
.brand-page .brand-story--agency .brand-story-copy {
  grid-column: 1;
  grid-row: 1;
}
.brand-page .brand-story--agency .brand-story-index {
  font-size: 104px;
  color: #73858e;
}
.brand-page .brand-story--agency .brand-story-chapter-head {
  align-items: flex-end;
  gap: 27px;
}
.brand-page .brand-story--agency .brand-story-step {
  margin-bottom: 11px;
}
.brand-page .brand-story--agency .brand-story-result {
  border-left: 0;
  padding-left: 0;
  padding-top: 22px;
  border-top: 1px solid #66727b;
}

@media (min-width: 961px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  .brand-page .brand-story.is-enhanced .brand-story-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 11%;
    align-items: start;
  }
  .brand-page .brand-story.is-enhanced .brand-story-stage {
    display: block;
    position: sticky;
    top: 114px;
    padding-block: 34px 30px;
    min-width: 0;
  }
  .brand-page .brand-story-stage-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #95a7b1;
    font-size: 10px;
    letter-spacing: 0.035em;
    padding-bottom: 20px;
    border-bottom: 1px solid #34444d;
  }
  .brand-page .brand-story-stage-top b {
    color: #f2f0e9;
    font-weight: 500;
  }
  .brand-page .brand-story-scene {
    position: relative;
    aspect-ratio: 720 / 560;
    max-height: calc(100svh - 275px);
  }
  .brand-page .brand-story-scene .brand-story-art {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition:
      opacity 0.45s ease,
      transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .brand-page .brand-story-scene .brand-story-art.is-current {
    opacity: 1;
    transform: none;
  }
  .brand-page .brand-story-scene .brand-story-art svg {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
  .brand-page .brand-story-scene .brand-story-art.is-current .workflow-module {
    animation: story-module-assemble 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .brand-page
    .brand-story-scene
    .brand-story-art.is-current
    .workflow-module:nth-of-type(2n) {
    animation-delay: 0.07s;
  }
  .brand-page
    .brand-story-scene
    .brand-story-art.is-current
    .workflow-module:nth-of-type(3n) {
    animation-delay: 0.14s;
  }
  .brand-page .brand-story-stage-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-top: 1px solid #34444d;
    padding-top: 21px;
    font-size: 20px;
    color: #f2f0e9;
    letter-spacing: -0.025em;
  }
  .brand-page .brand-story-track {
    display: flex;
    gap: 7px;
  }
  .brand-page .brand-story-track i {
    width: 25px;
    height: 2px;
    background: #53636d;
  }
  .brand-page .brand-story-track .is-current {
    background: #ff7040;
  }
  .brand-page .brand-story.is-enhanced .brand-story-chapter {
    display: block;
    min-height: min(820px, 88svh);
    padding-block: 53px 80px;
  }
  .brand-page .brand-story.is-enhanced .brand-story-art-home {
    display: none;
  }
  .brand-page .brand-story--agency.is-enhanced .brand-story-layout {
    grid-template-columns: 1fr 1.08fr;
    gap: 9%;
  }
  .brand-page .brand-story--agency.is-enhanced .brand-story-stage {
    grid-column: 2;
    grid-row: 1;
  }
  .brand-page .brand-story--agency.is-enhanced .brand-story-chapters {
    grid-column: 1;
    grid-row: 1;
  }
  @keyframes story-module-assemble {
    from {
      opacity: 0.2;
      translate: 0 18px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}
@media (max-width: 960px),
  (max-height: 639px),
  (prefers-reduced-motion: reduce) {
  .brand-page .brand-story-art {
    transition: none;
    animation: none;
  }
  .brand-page .brand-story-chapter {
    gap: 5%;
  }
  .brand-page .brand-story-chapter h3 {
    font-size: 32px;
  }
  .brand-page .brand-story--agency .brand-story-index {
    font-size: 78px;
  }
}
@media (max-width: 760px) {
  .brand-page .brand-story {
    padding-block: 65px 20px;
  }
  .brand-page .brand-story-heading {
    display: block;
  }
  .brand-page .brand-story-heading h2 {
    font-size: clamp(35px, 8.6vw, 48px);
  }
  .brand-page .brand-story-heading > p {
    font-size: 15px;
    margin-top: 25px;
  }
  .brand-page .brand-story-nav {
    margin-block: 30px 0;
  }
  .brand-page .brand-story-nav a {
    font-size: 11px;
    padding-right: 12px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    min-height: 73px;
    line-height: 1.4;
  }
  .brand-page .brand-story-nav a + a {
    padding-left: 12px;
  }
  .brand-page .brand-story-nav a > span {
    flex-basis: 100%;
    font-size: 10px;
  }
  .brand-page .brand-story-nav a > .icon {
    display: none;
  }
  .brand-page .brand-story-chapter,
  .brand-page .brand-story--agency .brand-story-chapter {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-block: 24px 47px;
    scroll-margin-top: 86px;
  }
  .brand-page .brand-story-art-home {
    width: min(100%, 460px);
    margin-inline: auto;
  }
  .brand-page .brand-story-art {
    max-height: 260px;
    margin-block: 0 15px;
  }
  .brand-page .brand-story-art svg {
    max-height: 260px;
  }
  .brand-page .brand-story-chapter-head {
    margin-bottom: 22px;
  }
  .brand-page .brand-story-index,
  .brand-page .brand-story--agency .brand-story-index {
    font-size: 59px;
  }
  .brand-page .brand-story-step {
    font-size: 10px;
  }
  .brand-page .brand-story-chapter h3 {
    font-size: clamp(31px, 8vw, 39px);
    max-width: 22ch;
    margin-bottom: 21px;
  }
  .brand-page .brand-story-problem {
    font-size: 15px;
  }
  .brand-page .brand-story-result {
    padding-left: 19px;
    margin-top: 26px;
  }
  .brand-page .brand-story-result p {
    font-size: 18px;
  }
  .brand-page .brand-story-details {
    margin-top: 26px;
  }
  .brand-page .brand-story-demo {
    margin-top: 23px;
  }
}
