.our-story-page {
  --story-ink: #082c4a;
  --story-soft-ink: #3f6074;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  background: #f8fbfd;
  color: var(--story-ink);
}

.our-story-page main h1,
.our-story-page main h2,
.our-story-page main p,
.our-story-page main figure {
  margin: 0;
}

.our-story-page main h1,
.our-story-page main h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.our-story-page main h2 {
  font-size: clamp(2.75rem, 7vw, 6.6rem);
  line-height: 0.98;
}

.our-story-page main p {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.story-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding-top: 1.35rem;
}

.story-header__inner {
  position: relative;
  display: flex;
  width: min(calc(100% - 2.5rem), 1240px);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-inline: auto;
}

.download-page .story-header__inner {
  justify-content: flex-end;
}

.story-header .brand-link {
  max-width: none;
}

.story-header .brand-link img {
  width: clamp(9rem, 14vw, 12.5rem);
}

.story-header__download {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--app-ocean);
  color: var(--app-white);
  font-family: var(--font-control);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.65rem;
  box-shadow: 0 10px 24px rgba(3, 4, 94, 0.16);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.story-header__download:hover {
  background: var(--app-deep);
  transform: translateY(-1px);
}

.story-eyebrow {
  color: var(--app-ocean);
  font-family: var(--font-control);
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.story-eyebrow--light {
  color: #79e2f3;
}

.story-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 35%, rgba(255, 255, 255, 0.94) 0 17%, transparent 48%),
    linear-gradient(145deg, #f8fcfd 0%, #e3f0f8 56%, #d8f5f5 100%);
}

.story-hero__glow {
  position: absolute;
  width: min(62vw, 780px);
  aspect-ratio: 1;
  top: 11%;
  right: -10%;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.09);
  filter: blur(8px);
}

.story-hero__inner {
  position: relative;
  display: grid;
  width: min(calc(100% - 2.5rem), 1240px);
  min-height: 100svh;
  align-items: center;
  gap: 2rem;
  margin-inline: auto;
  padding: 7.5rem 0 4rem;
}

.story-hero__copy {
  z-index: 2;
  display: grid;
  gap: 1.35rem;
}

.story-hero h1 {
  display: block;
  max-width: 12ch;
  color: var(--app-deep);
  font-size: clamp(3.45rem, 7vw, 7.25rem);
  line-height: 0.92;
}

.story-lede {
  max-width: 35rem;
  color: var(--story-soft-ink);
}

.story-hero__store-actions {
  flex-flow: row wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.story-hero__store-actions .store-badge img {
  height: 3rem;
}

.story-scroll-cue {
  display: inline-flex;
  min-height: 44px;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  color: var(--app-ocean);
  font-size: 0.9rem;
  font-weight: 700;
}

.story-scroll-cue span {
  font-size: 1.15rem;
}

.story-hero__phone {
  justify-self: center;
  width: min(78vw, 29rem);
  filter: drop-shadow(0 42px 42px rgba(3, 4, 94, 0.18));
  transform: rotate(1.4deg);
}

.recognition {
  background: #fff;
}

.recognition__opening {
  display: grid;
  max-width: 1060px;
  gap: 2rem;
  margin-inline: auto;
  padding: clamp(7rem, 15vw, 13rem) 1.25rem;
  text-align: center;
}

.recognition__opening h2 {
  color: var(--app-deep);
}

.recognition__opening p {
  max-width: 41rem;
  margin-inline: auto;
  color: var(--story-soft-ink);
}

.caught-up {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 47%, rgba(0, 180, 216, 0.16), transparent 28%),
    linear-gradient(145deg, #020326 0%, var(--app-deep) 52%, #06386a 100%);
  color: var(--app-white);
  padding: 7rem 1.25rem;
}

.caught-up__copy {
  z-index: 2;
  display: grid;
  max-width: 36rem;
  gap: 1.4rem;
}

.caught-up__copy h2 {
  color: var(--app-white);
}

.caught-up__copy > p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.caught-up__phone {
  position: relative;
  z-index: 1;
  width: min(74vw, 27rem);
  justify-self: center;
  filter: drop-shadow(0 42px 48px rgba(0, 0, 0, 0.42));
}

.caught-up__halo {
  position: absolute;
  inset: 23% -22% 28%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.18);
  filter: blur(45px);
}

.real-social {
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 25%, rgba(255, 183, 3, 0.3), transparent 25%),
    linear-gradient(142deg, #00a7cd 0%, #0077b6 58%, #07538b 100%);
  color: var(--app-white);
}

.real-social__inner {
  display: grid;
  width: min(calc(100% - 2.5rem), 1260px);
  gap: 4rem;
  margin-inline: auto;
  padding: clamp(7rem, 12vw, 11rem) 0;
}

.real-social__copy {
  z-index: 3;
  display: grid;
  max-width: 39rem;
  align-content: center;
  gap: 1.4rem;
}

.real-social__copy h2 {
  color: var(--app-white);
}

.real-social__copy > p:last-child {
  color: rgba(255, 255, 255, 0.82);
}

.phone-pair {
  position: relative;
  min-height: 45rem;
}

.phone-pair__item {
  position: absolute;
  width: min(66vw, 26rem);
  filter: drop-shadow(0 40px 36px rgba(3, 4, 94, 0.28));
}

.phone-pair__item--left {
  top: 0;
  left: 0;
  transform: rotate(-3deg);
}

.phone-pair__item--right {
  right: 0;
  bottom: 0;
  transform: rotate(3deg);
}

.everyday {
  background: #f7f4f0;
}

.everyday__inner {
  display: grid;
  width: min(calc(100% - 2.5rem), 1120px);
  align-items: center;
  gap: 4rem;
  margin-inline: auto;
  padding: clamp(7rem, 13vw, 12rem) 0;
}

.everyday__copy {
  display: grid;
  max-width: 38rem;
  gap: 1.4rem;
}

.everyday__copy h2 {
  color: var(--app-deep);
  font-size: clamp(2.65rem, 6vw, 5.4rem);
}

.everyday__copy > p:last-child {
  color: var(--story-soft-ink);
}

.everyday__phone {
  width: min(76vw, 28rem);
  justify-self: center;
  filter: drop-shadow(0 38px 35px rgba(3, 4, 94, 0.16));
}

.timeline-story {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), transparent 24%),
    linear-gradient(135deg, #eef8fb 0%, #d8f1f7 100%);
}

.timeline-story__inner {
  display: grid;
  width: min(calc(100% - 2.5rem), 1240px);
  gap: 4rem;
  margin-inline: auto;
  padding: clamp(7rem, 12vw, 11rem) 0;
}

.timeline-story__copy {
  display: grid;
  max-width: 40rem;
  align-content: start;
  gap: 1.4rem;
}

.timeline-story__copy h2 {
  color: var(--app-deep);
}

.timeline-story__copy > p:last-child {
  color: var(--story-soft-ink);
}

.timeline-story__visuals {
  display: grid;
  gap: 2.5rem;
}

.timeline-phone {
  width: min(76vw, 28rem);
  justify-self: center;
  filter: drop-shadow(0 35px 34px rgba(3, 4, 94, 0.15));
}

.sloco {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 55%, rgba(0, 180, 216, 0.22), transparent 38%),
    linear-gradient(160deg, #020326 0%, var(--app-deep) 55%, #06386a 100%);
  color: var(--app-white);
  padding: clamp(7rem, 12vw, 11rem) 1.25rem;
}

.sloco__intro {
  display: grid;
  max-width: 850px;
  gap: 1.4rem;
  margin: 0 auto 5rem;
  text-align: center;
}

.sloco__intro h2 {
  color: var(--app-white);
}

.sloco__intro > p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.sloco__sequence {
  position: relative;
  display: grid;
  max-width: 1260px;
  gap: 4rem;
  margin-inline: auto;
}

.sloco-phone {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(76vw, 27rem);
  gap: 1rem;
  justify-self: center;
  filter: drop-shadow(0 34px 36px rgba(0, 0, 0, 0.38));
}

.sloco-phone figcaption {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.sloco-phone--tomorrow {
  filter: drop-shadow(0 38px 42px rgba(0, 180, 216, 0.26));
}

.sloco-phone--tomorrow figcaption {
  color: #79e2f3;
}

.outside {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  color: var(--app-white);
}

.outside__image,
.outside__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.outside__image {
  object-fit: cover;
  object-position: 55% center;
  transform: scale(1.03);
}

.outside__shade {
  background: linear-gradient(180deg, rgba(2, 3, 38, 0.08) 15%, rgba(2, 3, 38, 0.16) 48%, rgba(2, 3, 38, 0.86) 100%);
}

.outside__copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 2.5rem), 1180px);
  gap: 1.4rem;
  margin-inline: auto;
  padding: 7rem 0 clamp(3.5rem, 8vw, 7rem);
}

.outside__copy h2 {
  max-width: 13ch;
  color: var(--app-white);
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.35);
}

.outside__copy p {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.story-ending {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.94) 0 15%, transparent 46%),
    linear-gradient(145deg, #f8fcfd 0%, #e3f0f8 58%, #d8f5f5 100%);
  color: var(--story-ink);
}

.story-ending__inner {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  min-height: 78svh;
  align-content: center;
  padding: 7rem 1.25rem;
  text-align: center;
}

.story-ending__logo {
  width: clamp(10rem, 18vw, 14.5rem);
  margin-bottom: 1.4rem;
}

.story-ending__home {
  display: inline-flex;
  margin-bottom: 1.4rem;
  border-radius: 0.5rem;
}

.story-ending__home .story-ending__logo {
  margin-bottom: 0;
}

.story-ending h1,
.story-ending h2 {
  color: var(--app-deep);
  font-size: clamp(2.75rem, 7vw, 6.6rem);
  line-height: 0.98;
}

.story-ending__inner > p {
  color: var(--story-soft-ink);
}

.story-ending .store-actions {
  align-items: center;
  margin-top: 1.5rem;
}

.story-ending .invite-card {
  width: min(100%, 27rem);
  justify-items: center;
  margin-top: 1.5rem;
  text-align: center;
}

.story-ending .invite-card {
  width: min(100%, 27rem);
  justify-items: center;
  margin-top: 1.5rem;
  text-align: center;
}

.story-footer {
  display: flex;
  width: min(calc(100% - 2.5rem), 1120px);
  align-items: flex-start;
  flex-direction: column;
  gap: 1.5rem;
  margin-inline: auto;
  border-top: 1px solid rgba(3, 4, 94, 0.13);
  padding: 1.5rem 0 1.65rem;
}

.story-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.story-footer .footer-nav a,
.story-footer > p {
  color: var(--story-soft-ink);
  font-size: 0.9rem;
}

.story-footer .footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.story-footer .footer-nav a:hover {
  color: var(--app-ocean);
}

.story-motion-ready .story-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms cubic-bezier(0.2, 0.65, 0.3, 1),
    transform 900ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.story-motion-ready .story-reveal--phone {
  transform: translateY(42px) rotate(var(--reveal-rotation, 0deg));
}

.story-motion-ready .story-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--reveal-rotation, 0deg));
}

.phone-pair__item--left.story-reveal--phone {
  --reveal-rotation: -3deg;
}

.phone-pair__item--right.story-reveal--phone {
  --reveal-rotation: 3deg;
  transition-delay: 140ms;
}

.story-hero__phone.story-reveal--phone {
  --reveal-rotation: 1.4deg;
}

.timeline-phone--path.story-reveal--phone {
  --reveal-rotation: -1.5deg;
}

.timeline-phone--era.story-reveal--phone {
  --reveal-rotation: 1.5deg;
}

.sloco-phone--compose.story-reveal--phone {
  --reveal-rotation: -1.8deg;
}

.sloco-phone--tomorrow.story-reveal--phone {
  --reveal-rotation: 1.6deg;
}

@media (min-width: 641px) {
  .story-header__inner,
  .story-hero__inner,
  .real-social__inner,
  .everyday__inner,
  .timeline-story__inner,
  .outside__copy,
  .story-footer {
    width: min(calc(100% - 4rem), var(--story-width, 1240px));
  }

  .story-ending .store-actions {
    flex-direction: row;
  }

  .story-header__download {
    font-size: 0.88rem;
    padding-inline: 1rem;
  }

  .story-footer {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .story-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(24rem, 0.94fr);
    padding-top: 8rem;
  }

  .story-hero__phone {
    width: min(37vw, 31rem);
  }

  .caught-up {
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.78fr);
    padding: 8rem max(2rem, calc((100vw - 1180px) / 2));
  }

  .caught-up__phone {
    width: min(34vw, 29rem);
  }

  .real-social__inner {
    grid-template-columns: minmax(23rem, 0.78fr) minmax(38rem, 1.22fr);
    align-items: center;
  }

  .phone-pair {
    min-height: 58rem;
  }

  .phone-pair__item {
    width: min(31vw, 27rem);
  }

  .phone-pair__item--left {
    left: 2%;
  }

  .phone-pair__item--right {
    right: 2%;
  }

  .everyday__inner {
    --story-width: 1120px;
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.72fr);
  }

  .everyday__phone {
    width: min(32vw, 29rem);
  }

  .timeline-story__inner {
    min-height: 185vh;
    grid-template-columns: minmax(22rem, 0.8fr) minmax(35rem, 1.2fr);
    align-items: start;
  }

  .timeline-story__copy {
    position: sticky;
    top: 24vh;
    padding-top: 2rem;
  }

  .timeline-story__visuals {
    min-height: 145vh;
    align-content: space-between;
  }

  .timeline-phone {
    width: min(33vw, 29rem);
  }

  .timeline-phone--path {
    justify-self: start;
    transform: rotate(-1.5deg);
  }

  .timeline-phone--era {
    justify-self: end;
    transform: rotate(1.5deg);
  }

  .sloco__sequence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 1.5rem;
  }

  .sloco-phone {
    width: min(28vw, 25rem);
  }

  .sloco-phone--compose {
    transform: rotate(-1.8deg) translateY(3.5rem);
  }

  .sloco-phone--send {
    transform: translateY(1.25rem);
  }

  .sloco-phone--tomorrow {
    width: min(30vw, 27rem);
    transform: rotate(1.6deg);
  }

}

@media (max-width: 899px) {
  .story-hero__copy {
    padding-top: 1.5rem;
  }

  .story-hero__phone {
    margin-bottom: -11rem;
  }

  .phone-pair {
    width: min(100%, 42rem);
    margin-inline: auto;
  }

}

@media (max-width: 640px) {
  .story-header {
    padding-top: 1rem;
  }

  .story-hero__inner {
    padding-top: 6.8rem;
  }

  .story-hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.9rem);
  }

  .story-hero__store-actions {
    gap: 0.55rem;
    margin-top: 0.15rem;
  }

  .story-hero__store-actions .store-badge img {
    height: 2.55rem;
  }

  .story-scroll-cue {
    margin-top: 0.25rem;
  }

  .recognition__opening h2 br {
    display: none;
  }

  .caught-up,
  .real-social__inner,
  .everyday__inner,
  .timeline-story__inner {
    gap: 3rem;
  }

  .phone-pair {
    min-height: 40rem;
  }

  .phone-pair__item {
    width: min(66vw, 21rem);
  }

  .phone-pair__item--left {
    transform: rotate(-1.5deg);
  }

  .phone-pair__item--right {
    transform: rotate(1.5deg);
  }

  .phone-pair__item--left.story-reveal--phone {
    --reveal-rotation: -1.5deg;
  }

  .phone-pair__item--right.story-reveal--phone {
    --reveal-rotation: 1.5deg;
  }

  .timeline-story__visuals {
    gap: 4rem;
  }

  .sloco__sequence {
    gap: 5rem;
  }

  .outside {
    min-height: 78svh;
  }

  .outside__image {
    object-position: 59% center;
  }

  .outside__copy h2 {
    font-size: clamp(2.8rem, 13vw, 4.25rem);
  }

  .story-ending__inner {
    min-height: 72svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-motion-ready .story-reveal,
  .story-motion-ready .story-reveal--phone,
  .story-motion-ready .story-reveal.is-visible,
  .story-motion-ready .story-reveal--phone.is-visible {
    opacity: 1;
    transform: none;
  }

  .phone-pair__item--left,
  .phone-pair__item--right,
  .timeline-phone--path,
  .timeline-phone--era,
  .sloco-phone--compose,
  .sloco-phone--send,
  .sloco-phone--tomorrow,
  .outside__image {
    transform: none;
  }
}
