/* Travel imagery and device handovers share the site's existing monochrome typography. */
:root {
  --sea: #a8cabc;
  --sea-ink: #234f43;
  --device-paper: #fafbf9;
  --device-muted: #6a736d;
}

.announce__dot,
.pulse {
  background: var(--sea);
  box-shadow: none;
}

.hero {
  view-timeline-name: --hero;
  view-timeline-axis: block;
}

.hero__copy {
  max-width: 49%;
}

.hero .display {
  font-size: clamp(52px, 6.3vw, 94px);
  line-height: 1.04;
}

.hero .display__line--dim {
  color: #a7b0aa;
}

.hero__lede {
  max-width: 39ch;
  color: #b5b9b6;
}

.hero__travel {
  position: absolute;
  width: 55%;
  max-width: 840px;
  height: 690px;
  right: -1%;
  top: 50%;
  margin-top: -370px;
  perspective: 1200px;
  pointer-events: none;
}

.travel-world {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--look-y, 0deg)) rotateY(var(--look-x, 0deg));
  transition: transform 600ms var(--ease);
}

.travel-world__photo,
.travel-world__shade {
  position: absolute;
  inset: 9% 4% 8% 5%;
  width: 91%;
  height: 83%;
  border-radius: 45% 48% 43% 46%;
  transform: translateZ(-90px) rotate(-9deg) rotateY(-14deg) rotateX(12deg);
}

.travel-world__photo {
  object-position: 55% 48%;
  filter: saturate(0.48) brightness(0.72);
}

.travel-world__shade {
  background: linear-gradient(145deg, transparent 35%, rgba(10, 11, 13, 0.55));
}

.travel-world__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(24px);
  color: var(--sea);
}

.route-track {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 2;
  stroke-dasharray: 4 9;
}

.route-trail {
  stroke: var(--sea);
  stroke-width: 3;
  stroke-dasharray: 70 700;
  animation: route-journey 8s linear infinite;
}

.travel-world__route circle {
  fill: var(--device-paper);
  stroke: var(--sea);
  stroke-width: 8;
  paint-order: stroke;
}

.travel-world__place {
  position: absolute;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
  transform: translateZ(28px);
  color: #fff;
}

.travel-world__place i {
  display: block;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  color: #c7d0c9;
  letter-spacing: 0;
}

.travel-world__place--airport {
  left: 13%;
  top: 71%;
}

.travel-world__place--stay {
  right: 7%;
  top: 32%;
}

.hero-phone {
  position: absolute;
  width: 250px;
  min-height: 450px;
  top: 11%;
  left: 30%;
  padding: 45px 20px 16px;
  border: 6px solid #929992;
  border-radius: 38px;
  background: var(--device-paper);
  color: var(--ink);
  transform: translateZ(70px) rotateY(-16deg) rotateZ(8deg);
  box-shadow: 16px 24px 0 -6px #252b28, 0 45px 75px -35px #000;
  animation: phone-float 9s ease-in-out infinite alternate;
}

.phone-speaker {
  position: absolute;
  width: 68px;
  height: 17px;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  background: #171b18;
  border-radius: 20px;
}

.hero-phone__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 600;
}

.hero-phone__brand span {
  font-size: 11px;
  font-weight: 400;
}

.hero-phone > p {
  font-size: 12px;
  color: var(--device-muted);
  margin: 12px 0 25px;
}

.hero-phone__trip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.hero-phone__route {
  margin: 12px 0;
  font-size: 29px;
  letter-spacing: -0.06em;
}

.hero-phone__route span {
  color: var(--device-muted);
  font-size: 21px;
  margin-inline: 7px;
}

.hero-phone__status {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 9px;
  background: #e4ece6;
  color: var(--sea-ink);
  font-size: 11px;
}

.status-dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}

.hero-phone__message {
  display: flex;
  gap: 8px;
  margin: 21px 0;
  align-items: start;
}

.hero-phone__message > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #dce6df;
  border-radius: 50%;
  font-size: 10px;
  flex: none;
}

.hero-phone__message p {
  font-size: 11px;
  line-height: 1.55;
}

.hero-phone__nav,
.story-phone__bottom {
  display: flex;
  justify-content: space-around;
  padding-block: 12px 5px;
  border-top: 1px solid #e1e6df;
}

.hero-phone__nav .icon,
.story-phone__bottom .icon {
  width: 18px;
  height: 18px;
}

.travel-ticket {
  position: absolute;
  right: 7%;
  bottom: 13%;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  background: #e9eee8;
  color: var(--ink);
  transform: translateZ(190px) rotate(-4deg);
}

.travel-ticket span {
  font-size: 14px;
}

.travel-ticket strong {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
  color: var(--device-muted);
}

.app-launch {
  padding-block: 48px;
  background: var(--paper-2);
}

.app-launch__inner,
.app-platforms {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
}

.app-launch h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.app-launch p {
  font-size: 15px;
  margin-top: 12px;
  color: var(--muted);
}

.app-platform {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 110px;
  padding-block: 12px;
}

.app-platform strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
}

.app-platform span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.app-platform[href]:hover span {
  color: var(--ink);
}

.story {
  position: relative;
}

.story__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--paper-2);
}

.story__steps button {
  position: relative;
  padding: 20px 12px;
  min-height: 60px;
  font-size: 14px;
  color: var(--muted);
  transition: color 250ms, background 250ms;
}

.story__steps button[aria-selected='true'] {
  color: #fff;
  background: #242b27;
}

.story__steps button:not([aria-selected='true']):hover {
  color: var(--ink);
  background: var(--paper-3);
}

.story__stage {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  overflow: hidden;
  background: #151c19;
  color: #fff;
}

.story__landscape,
.story__scene-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.story__landscape {
  opacity: 0.45;
  filter: saturate(0.25);
  object-position: 50% 75%;
  transform: scale(1.04);
  transition: transform 1300ms var(--ease), opacity 800ms;
}

.story__scene-shade {
  background: linear-gradient(90deg, #151c19 3%, rgba(21, 28, 25, 0.75) 38%, rgba(21, 28, 25, 0.15));
}

.story__stage[data-scene='1'] .story__landscape { transform: scale(1.1) translateX(-2%); }
.story__stage[data-scene='2'] .story__landscape { transform: scale(1.12) translate(2%, 1%); }
.story__stage[data-scene='3'] .story__landscape { transform: scale(1.16) translate(-3%, 2%); }
.story__stage[data-scene='4'] .story__landscape { transform: scale(1.2) translate(3%, -2%); }

.story__caption {
  position: absolute;
  top: 50%;
  left: clamp(24px, 4vw, 62px);
  width: 30%;
  margin-top: -165px;
  z-index: 5;
}

#story-role {
  font-size: 14px;
  color: var(--sea);
  margin-bottom: 24px;
}

#story-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.2;
  text-wrap: balance;
}

#story-description {
  margin-top: 24px;
  color: #bcc6be;
  font-size: 15px;
  line-height: 1.7;
}

.story__control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.story__control .icon-button {
  border: 1px solid #68766c;
  color: #fff;
  width: 44px;
  height: 44px;
}

#story-prev .icon { transform: rotate(180deg); }
#story-count { font-size: 12px; padding-inline: 8px; color: #c9d4cb; }
.story__play { font-size: 12px; padding: 12px 0 12px 10px; min-height: 44px; }
.story__play:disabled { opacity: 0.45; cursor: default; }

.story__devices {
  position: absolute;
  right: -1%;
  top: 52px;
  width: 64%;
  height: 570px;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.story-phone {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 296px;
  height: 550px;
  border: 6px solid #717b73;
  border-radius: 40px;
  background: var(--device-paper);
  color: var(--ink);
  padding: 45px 19px 14px;
  overflow: hidden;
  transform-origin: center;
}

.story-phone--active {
  z-index: 3;
  box-shadow: 0 35px 60px -28px rgba(0, 0, 0, 0.7);
}

.story-phone--previous,
.story-phone--next {
  width: 250px;
  height: 470px;
  pointer-events: none;
  border-color: #404b44;
  background: #29372f;
  color: #b9c8bc;
  transition: transform 850ms var(--ease), opacity 850ms var(--ease);
}

.story-phone--previous { transform: translate3d(-180px, 20px, -180px) rotateY(25deg) rotateZ(-8deg); opacity: 0.72; }
.story-phone--next { transform: translate3d(180px, -15px, -180px) rotateY(-25deg) rotateZ(8deg); opacity: 0.65; }
.story__stage[data-scene='0'] .story-phone--previous { transform: translate3d(-180px, 40px, -280px) rotateY(35deg) rotateZ(-10deg); opacity: 0.25; }
.story__stage[data-scene='4'] .story-phone--next { transform: translate3d(190px, 40px, -280px) rotateY(-35deg) rotateZ(10deg); opacity: 0.25; }

.story-phone__ghost {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  gap: 12px;
}

.story-phone__ghost > span { align-self: start; font-size: 14px; }
.story-phone__ghost > .icon { width: 38px; height: 38px; margin-top: 95px; }
.story-phone__ghost strong { font-size: 23px; font-weight: 400; }
.story-phone__ghost p { font-size: 11px; }

.story-phone__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 18px; }
.story-phone__toolbar strong { font-size: 17px; font-weight: 600; letter-spacing: -0.04em; }
.story-phone__toolbar > span { font-size: 10px; color: var(--device-muted); }
.story-phone__bottom { margin-top: 12px; flex: none; }

#story-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  gap: 14px;
  padding: 2px;
  font-size: 12px;
}

#story-screen:focus-visible { outline-offset: -2px; }
.story-screen__heading > span { display: block; color: var(--device-muted); font-size: 11px; margin-bottom: 6px; }
.story-screen__heading h4 { font-size: 23px; font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; }
.story-trip { padding: 17px 14px; background: #e8ede7; }
.story-trip > span { font-size: 11px; color: var(--sea-ink); }
.story-trip > strong { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 30px; letter-spacing: -0.055em; margin-block: 10px 12px; }
.story-trip p { font-size: 11px; color: #4f5d52; margin-top: 3px; }
.story-detail { display: grid; gap: 4px; }
.story-detail > span { color: var(--device-muted); font-size: 11px; }
.story-detail b { font-size: 13px; font-weight: 500; }

.story-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding: 12px;
  background: #253d30;
  color: #fff;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  flex: none;
}

.story-action:hover { background: #3c5b49; }
.story-action:active { transform: scale(0.98); }
.story-action .icon { width: 15px; height: 15px; flex: none; }
.story-note { display: flex; gap: 9px; align-items: start; color: var(--device-muted); font-size: 11px; line-height: 1.6; }
.story-note .icon { width: 17px; height: 17px; flex: none; }
.story-driver-route { font-size: 20px; }
.story-driver-route span { display: block; color: var(--device-muted); font-size: 11px; margin-top: 6px; }
.story-drivers { border: 0; margin: 0; padding: 0; }
.story-drivers legend { font-size: 11px; color: var(--device-muted); margin-bottom: 8px; }
.story-drivers label { display: flex; align-items: center; gap: 8px; padding: 12px 8px; margin-bottom: 5px; cursor: pointer; background: #edf0eb; }
.story-drivers input { width: 14px; height: 14px; margin: 0; accent-color: var(--sea-ink); }
.story-avatar { display: grid; place-items: center; width: 30px; height: 30px; background: #d9e3d9; border-radius: 50%; flex: none; }
.story-drivers strong { display: block; font-size: 13px; font-weight: 500; }
.story-drivers small { font-size: 10px; color: var(--device-muted); }
.story-drivers label > .icon { margin-left: auto; width: 15px; opacity: 0; }
.story-drivers label:has(input:checked) { background: #dde9de; }
.story-drivers label:has(input:checked) > .icon { opacity: 1; }
.story-screen-tabs { display: flex; background: #e7ece5; padding: 3px; flex: none; }
.story-screen-tabs button { flex: 1; min-height: 38px; font-size: 11px; }
.story-screen-tabs button[aria-pressed='true'] { background: #fff; }
.story-checklist { display: grid; gap: 16px; margin-block: 7px; }
.story-checklist li { display: flex; gap: 10px; align-items: center; color: #849084; font-size: 12px; }
.story-checklist .icon { width: 18px; height: 18px; padding: 2px; border: 1px solid currentColor; border-radius: 50%; }
.story-checklist .is-done { color: var(--sea-ink); }
.story-complete { display: flex; align-items: center; gap: 8px; background: #e0ebdf; color: var(--sea-ink); padding: 12px; font-size: 11px; }
.story-chat-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 12px; color: var(--sea-ink); }
.story-chat-link .icon { width: 15px; height: 15px; }
.story-chat-heading strong { font-size: 13px; font-weight: 500; }
.story-chat-heading > span { display: block; margin-top: 3px; font-size: 9px; color: var(--device-muted); }
.story-messages { flex: 1; min-height: 100px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.story-message { max-width: 90%; margin-bottom: 14px; }
.story-message > span { display: block; font-size: 9px; color: var(--device-muted); margin-bottom: 5px; }
.story-message p { padding: 10px; background: #e9ede6; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.story-message--mine { margin-left: auto; }
.story-message--mine p { background: #dcebdd; }
.story-message--mine > span { text-align: right; }
.story-quick-replies { display: flex; gap: 6px; flex: none; flex-wrap: wrap; }
.story-quick-replies button { font-size: 10px; padding: 8px; min-height: 36px; background: #e8ede5; }
#story-chat-form { display: flex; gap: 5px; flex: none; }
#story-message { width: 0; flex: 1; min-width: 0; height: 42px; border: 1px solid #b3c0b2; background: #fff; padding: 9px; font-size: 12px; border-radius: 0; }
#story-chat-form button { display: grid; place-items: center; width: 42px; flex: none; color: #fff; background: var(--sea-ink); }
.story-chat-closed { font-size: 11px; color: var(--device-muted); }
.story__sample { position: absolute; bottom: 21px; left: clamp(24px, 4vw, 62px); font-size: 11px; color: #a5b2a7; }
.story__handoff { position: absolute; right: 8%; top: 47%; z-index: 4; color: var(--sea); }
.story__handoff .icon { width: 35px; height: 35px; }

@keyframes route-journey { to { stroke-dashoffset: -770; } }
@keyframes phone-float { to { transform: translate3d(0, -15px, 70px) rotateY(-11deg) rotateZ(5deg); } }

html[data-motion='off'] .hero__travel,
.hero__travel[data-visible='false'] *,
html[data-background='true'] * {
  animation-play-state: paused !important;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html[data-motion='on'] .hero__travel {
      animation: hero-depart linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 100%;
    }
  }
}

@keyframes hero-depart {
  to { transform: translateY(50px) scale(0.95); opacity: 0; }
}

@media (max-width: 1100px) {
  .hero .display { font-size: clamp(44px, 6.3vw, 70px); }
  .hero__travel { width: 56%; height: 590px; margin-top: -305px; right: -3%; }
  .hero-phone { width: 224px; min-height: 425px; left: 25%; }
  .travel-ticket { right: 1%; bottom: 3%; padding: 14px; }
  .story__caption { width: 30%; left: 28px; }
  #story-title { font-size: 32px; }
  .story__devices { right: -3%; width: 66%; }
  .story-phone--previous { transform: translate3d(-145px, 20px, -220px) rotateY(25deg) rotateZ(-8deg); }
  .story-phone--next { transform: translate3d(145px, -15px, -220px) rotateY(-25deg) rotateZ(8deg); }
  .app-launch__inner { align-items: start; }
  .app-platforms { gap: 10px; }
  .app-platform { min-width: 90px; gap: 7px; }
}

@media (max-width: 760px) {
  .hero__inner { padding-block: 48px 16px; }
  .hero__copy { max-width: 100%; }
  .hero .display { font-size: clamp(42px, 10vw, 66px); }
  .hero__lede { max-width: 40ch; font-size: 15px; }
  .hero__travel { position: relative; order: 1; width: min(100%, 540px); height: 470px; inset: auto; margin: 0 auto; }
  .hero__inner { order: 0; }
  .hero__rail { order: 2; }
  .hero-phone { width: 205px; min-height: 380px; top: 4%; left: 27%; padding: 41px 15px 8px; border-radius: 32px; }
  .hero-phone__route { font-size: 26px; }
  .hero-phone > p { margin: 8px 0 18px; }
  .hero-phone__message { margin-block: 17px; }
  .travel-ticket { bottom: 7%; right: 4%; padding: 12px 15px; }
  .travel-ticket span { font-size: 12px; }
  .travel-ticket strong { font-size: 9px; }
  .travel-world__place { font-size: 17px; }
  .travel-world__place--stay { top: 28%; right: 5%; }
  .travel-world__place--airport { left: 11%; top: 72%; }
  .travel-world__place i { font-size: 10px; }
  .hero__actions .btn { flex: none; width: auto; min-width: 0; }
  .story__steps { display: flex; flex-wrap: wrap; gap: 3px; background: var(--paper); padding-bottom: 12px; }
  .story__steps button { flex: 1 1 28%; min-height: 44px; padding: 10px 8px; font-size: 12px; background: var(--paper-2); }
    .story__stage { min-height: 920px; }
  .story__caption { position: relative; inset: auto; margin: 0; width: 100%; padding: 28px 24px 0; }
  #story-role { margin-bottom: 12px; font-size: 12px; }
  #story-title { font-size: 30px; max-width: 20ch; }
  #story-description { font-size: 14px; margin-top: 15px; min-height: 72px; }
  .story__control { margin-top: 16px; }
  .story__devices { top: auto; bottom: 48px; right: 0; width: 100%; height: 550px; }
  .story-phone--active { width: 280px; height: 530px; }
  .story-phone--previous { transform: translate3d(-130px, 10px, -330px) rotateY(30deg) rotateZ(-8deg); opacity: 0.5; }
  .story-phone--next { transform: translate3d(130px, 10px, -330px) rotateY(-30deg) rotateZ(8deg); opacity: 0.5; }
  .story__stage[data-scene='0'] .story-phone--previous { transform: translate3d(-130px, 30px, -400px) rotateY(35deg); }
  .story__stage[data-scene='4'] .story-phone--next { transform: translate3d(130px, 30px, -400px) rotateY(-35deg); }
  .story__sample { left: 24px; bottom: 18px; font-size: 10px; }
  .story__handoff { display: none; }
  .story__scene-shade { background: linear-gradient(180deg, #151c19 0%, rgba(21, 28, 25, 0.4) 60%); }
      .app-launch__inner { flex-direction: column; gap: 24px; }
  .app-platforms { width: 100%; gap: 14px; flex-wrap: wrap; }
  .app-platform strong { font-size: 17px; }
  .app-platform span { font-size: 11px; }
  .app-platform .icon { width: 18px; height: 18px; }
}

@media (max-width: 380px) {
  .hero .display { font-size: 36px; }
  .story__caption { padding-inline: 16px; }
  .story__sample { left: 16px; }
  #story-title { font-size: 27px; }
  .story-phone--active { width: 260px; padding-inline: 14px; }
  .app-platform { min-width: 80px; }
}

html[data-motion='off'] *,
html[data-motion='off'] *::before,
html[data-motion='off'] *::after {
  animation: none !important;
  transition: none !important;
}

html[data-motion='off'] { scroll-behavior: auto; }
html[data-motion='off'] .reveal { opacity: 1; transform: none; }
html[data-motion='off'] .travel-world { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .travel-world { transform: none; }
  .hero-phone,
  .route-trail { animation: none; }
  .story__landscape { transform: none !important; }
}

@media print {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}
