.nav { justify-content: flex-end; }

.final-download { overflow-x: clip; }
.persistent-scroll { display: none !important; }

/* Give the three status scenes one reading position and one icon position. */
.story .story-step { text-align: center; }
.story .story-step p { max-width: 43ch; margin-inline: auto; line-height: 1.45; }
.story-sentence { display: block; text-wrap: balance; }
.story-clause { display: inline-block; max-width: 100%; }
.story-attention-icons { gap: .3em; margin-inline-end: .55em; }
.story-attention-icons .app-icon { width: 1.35em; height: 1.35em; }

@media (prefers-reduced-motion: no-preference) {
  .story.journey-screen { padding: 0; }
  .story .story-sticky {
    display: grid;
    grid-template: max-content minmax(0, min(28svh, 44vw, 280px)) / minmax(0, 1fr);
    justify-items: center; align-content: center; align-items: end;
    gap: clamp(16px, 3svh, 32px);
    padding: clamp(90px, 13svh, 124px) 6% clamp(38px, 6svh, 68px);
  }
  .story .story-copy { grid-row: 1; display: grid; width: min(100%, 880px); height: auto; margin: 0; }
  .story-copy .story-step { grid-area: 1 / 1; position: relative; inset: auto; padding: 0; align-self: end; translate: none; }
  .story .story-step h2 { font-size: clamp(26px, min(7.7vw, 6.8svh), 64px); line-height: 1.05; }
  .story .story-step p { font-size: clamp(15px, 2.2svh, 20px); margin-block: clamp(12px, 2svh, 20px) 0; }
  .story .story-grid {
    grid-row: 2; position: static; align-self: stretch; justify-self: center;
    inline-size: auto; block-size: 100%; max-width: 100%; aspect-ratio: 1;
    gap: clamp(6px, 1svh, 12px); transform: none !important;
  }
}
.away .section-heading > p:last-child {
  font-size: clamp(16px, 2.2svh, 20px); line-height: 1.45; text-wrap: balance;
  margin: clamp(10px, 1.8svh, 18px) auto 0;
}
.away-details h3 { font-size: clamp(19px, 2.6svh, 24px); line-height: 1.2; }
.away-details p { font-size: clamp(16px, 2.1svh, 19px); line-height: 1.45; text-wrap: pretty; }
.away-details > div { row-gap: .5em; }
@media (min-width: 601px) and (prefers-reduced-motion: no-preference) {
  .away.journey-screen { padding-top: max(104px, 12svh); }
  .away .away-details { min-height: 0; gap: clamp(16px, 3vw, 48px); }
}
@media (max-width: 600px) {
  .away .away-details { max-width: 32rem; }
}
@media (prefers-reduced-motion: reduce) {
  .story .story-copy { width: 100%; }
  .away .laptop-scene { width: min(68vw, 480px); }
}

@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .away.journey-screen {
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    row-gap: clamp(12px, 2.2svh, 22px);
    padding-block: clamp(94px, 13svh, 116px) clamp(44px, 7svh, 70px);
  }
  .away .section-heading { grid-row: 1; margin: 0; }
  .away .laptop-scene { aspect-ratio: 510 / 440; max-height: none; }
  .away .macbook { overflow: hidden; }
  .away .away-details { display: grid; grid-template: auto / minmax(0,1fr); min-height: 0; gap: 0; }
  .away-details > div { grid-area: 1 / 1; transition: none; }
}

@media (max-width: 600px) {
  .away-heading-glow, .away-light { display: none; animation: none; }
  .studio-product .nav .product-buy { transition: none; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  /* Hold both presentations in place until their outgoing copy is fully transparent. */
  .hero { height: calc(var(--product-height) * 2.85); }
  .overview { height: calc(var(--product-height) * 4.85); }
  .journey {
    height: calc(var(--product-height) * 11.68);
    margin-top: calc(-1 * var(--product-height));
  }
  .hero-viewport { will-change: opacity; }
  .limits.journey-screen { padding: 106px 7% 40px; gap: clamp(14px, 2.8svh, 25px); }
  .limits-copy h2 { font-size: clamp(26px, 7.6vw, 36px); }
  .limits-copy p:not(.eyebrow) { margin-top: 12px; line-height: 1.4; }
  .limits-copy p br { display: none; }
  .limits .quota-art { max-width: min(66vw, 34svh, 264px); }
  .away-details > div { animation: none; }
}
@media (max-width: 600px) and (max-height: 670px) and (prefers-reduced-motion: no-preference) {
  .story .story-sticky, .limits.journey-screen { padding-block: 94px 18px; }
  .limits .quota-art { padding: 12px 16px; }
  .limits .quota-number { font-size: 48px; }
  .limits .meter, .limits .quota-detail { margin-block: 10px; }
}

@media (max-width: 600px) and (max-height: 600px) and (prefers-reduced-motion: no-preference) {
  .limits.journey-screen { padding-block: 102px 22px; gap: 12px; }
  .limits-copy p:not(.eyebrow) { margin-top: 6px; }
  .limits .quota-art { max-width: min(82vw, 242px); padding: 10px 14px; }
  .limits .quota-number { font-size: 40px; line-height: 1.1; }
  .limits .quota-number small { font-size: 30px; }
  .limits .quota-detail { margin-block: 5px 0; padding-top: 6px; }
  .limits .meter { margin-block: 6px; }
}

@media (max-width: 600px) {
  .overview .overview-sticky { padding-block: clamp(110px, 16svh, 136px) clamp(34px, 8svh, 68px); }
  .overview .section-heading h2 { display: block; white-space: normal; text-wrap: balance; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .overview .section-heading { translate: calc((1 - var(--overview-heading, 0)) * 10px) 0; }
  .overview-content { transform: translateX(calc(var(--overview-depart, 0) * -12px)); }
}

/* Place the laptop beside its caption when the browser is short and wide. */
@media (min-width: 601px) and (max-height: 510px) and (prefers-reduced-motion: no-preference) {
  .studio-product .nav { height: 60px; }
  .hero-viewport { padding: 72px 5% 12px; }
  .hero h1 { font-size: 32px; }
  .hero .intro { font-size: 16px; margin-top: 12px; }
  .hero .eyebrow { margin-bottom: 8px; }
  .overview .overview-sticky { padding-top: 64px; }
  .overview .section-heading h2 { font-size: 26px; }
  .story .story-sticky {
    grid-template-rows: max-content minmax(0, 16svh);
    padding: 72px 5% 22px;
    gap: 12px;
  }
  .story .story-step h2 { font-size: 24px; }
  .story .story-step p { margin-top: 7px; font-size: 15px; }
  .away.journey-screen {
    grid-template: auto auto / minmax(0, 7fr) minmax(0, 4fr);
    align-content: center;
    padding: 68px 5% 22px;
    gap: 10px 4%;
  }
  .away .section-heading { grid-area: 1 / 1; margin: 0; }
  .away .section-heading h2 { font-size: clamp(23px, 2.8vw, 29px); }
  .away .section-heading > p:last-child { margin-top: 6px; }
  .away .laptop-scene { grid-area: 1 / 2 / 3 / 3; width: min(100%, 58svh); }
  .away .away-details { grid-area: 2 / 1; grid-template: auto / 1fr; gap: 0; align-self: start; }
  .away-details > div { grid-area: 1 / 1; transition: none; }
  .away-heading-glow, .away-light { display: none; }
}

@media (max-width: 600px) and (max-height: 600px) and (prefers-reduced-motion: no-preference) {
  .away.journey-screen { padding-block: 90px 24px; row-gap: 8px; }
  .away .section-heading h2 { font-size: 24px; }
  .away-details > div { row-gap: 5px; }
  .away-details p { grid-column: 1 / -1; }
}

/* A short phone cannot fit the two headers, preview and two rows of controls in one screen. */
@media (max-width: 600px) and (max-height: 650px) and (prefers-reduced-motion: no-preference) {
  .overview { height: auto; }
  .overview .overview-sticky { position: relative; top: auto; height: auto; padding-block: 88px 48px; }
  .overview .overview-content { height: auto; grid-template-rows: auto; opacity: 1; transform: none; }
  .overview .desktop-stage { height: clamp(300px, 82vw, 390px); }
  .overview :is(.section-heading, .desktop-stage, .state-controls, .state-caption) {
    opacity: 1; translate: none; scale: 1;
  }
  .journey { margin-top: 0; }
}
