/* The introduction (intro.js): a strip of bars that fill scene by scene, a
   stage of sky where each scene plays, a caption, and at the end two buttons.
   Inside the stage 1em is 4% of its width, so every scene scales with it.
   Each scene's parts enter with a "from" keyframe only, so with motion turned
   off they simply stand in their final place. */

.intro { display: grid; gap: 0.875rem; padding: 1.25rem var(--gutter) 0; animation: enter 420ms var(--ease-out) both; }
.intro-top { display: flex; align-items: center; gap: 0.75rem; }
.intro-bars { flex: 1; display: flex; gap: 4px; }
.intro-bars i { flex: 1; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.intro-bars i::after { content: ""; display: block; height: 100%; background: var(--accent); transform-origin: left; scale: 0 1; }
.intro-bars i.is-done::after { scale: 1 1; }
.intro-bars i.is-on::after { animation: in-fill var(--ms, 4s) linear forwards; }
@keyframes in-fill { to { scale: 1 1; } }
.intro-skip { min-height: 2.25rem; padding: 0.25rem 0.75rem; font-size: 0.8125rem; }
/* The music's on and off, beside "Skip". */
.intro-sound { flex: none; display: grid; place-items: center; width: 2.25rem; min-height: 2.25rem; padding: 0; }
.intro-sound svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.intro-sound .solid { fill: currentColor; stroke-linejoin: round; }
.intro-sound[aria-pressed="false"] { color: var(--ink-2); }

.intro-stage {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 5 / 3;
  container-type: inline-size;
  background: linear-gradient(170deg, #c4e0e6 0%, #d9ecef 55%, #eef6f3 100%);
  border: 1px solid #c3d6d6;
  border-radius: 18px;
  box-shadow: inset 0 0 0 3px rgb(255 255 255 / 0.55), var(--shadow);
  overflow: clip;
  cursor: pointer;
  text-align: left;
}
.sc { position: absolute; inset: 0; font-size: 4cqw; color: var(--ink); animation: in-scene 380ms var(--ease-out) both; }
@keyframes in-scene { from { opacity: 0; scale: 1.04; } }
.sc svg { display: block; }

.intro-caption { min-height: 3.2em; font-stretch: 85%; font-size: 1.25rem; font-weight: 750; line-height: 1.3; text-wrap: balance; text-align: center; color: var(--ink); }
.intro-caption.is-in { animation: in-caption 520ms var(--ease-out) both; }
@keyframes in-caption { from { opacity: 0; translate: 0 0.5rem; } }
.intro-ending { display: grid; gap: 0.625rem; justify-items: center; animation: enter 420ms var(--ease-out) 600ms both; }
.intro-ending .primary { width: 100%; }

/* Pieces shared by the scenes. */
.in-badge { display: grid; place-items: center; width: 3em; height: 3em; border-radius: 50%; background: var(--sky, var(--tint)); box-shadow: 0 0 0 0.09em var(--accent), 0 0.3em 0.6em -0.3em rgb(34 48 60 / 0.5); color: var(--ink); }
.in-badge svg { width: 70%; height: 70%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sc .stop svg { overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sc .plate { fill: var(--surface); }
.sc .sky { fill: var(--sky); }
.sc .ring { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.in-flyer { fill: var(--ink); stroke: var(--surface); stroke-width: 0.9; stroke-linejoin: round; filter: drop-shadow(0 2px 1.5px rgb(34 48 60 / 0.3)); offset-rotate: auto; }

/* 1. The muddle: prices for flights and hotels drift about, question marks pop over a traveller. */
.in-chip { position: absolute; display: inline-flex; align-items: center; gap: 0.3em; padding: 0.3em 0.7em 0.3em 0.4em; background: var(--surface); border: 1px solid var(--rule); border-radius: 99em; box-shadow: 0 0.3em 0.8em -0.4em rgb(34 48 60 / 0.5); font-size: 0.95em; font-weight: 750; font-variant-numeric: tabular-nums; animation: in-pop 420ms var(--ease-out) backwards, in-drift 3.4s ease-in-out infinite; }
.in-chip svg { width: 1.5em; height: 1.5em; padding: 0.25em; border-radius: 50%; background: var(--tint); fill: var(--flight); }
.in-chip.is-hotel svg { background: color-mix(in oklab, var(--hotel) 35%, var(--surface)); fill: #8a6d3f; }
.in-chip.is-hotel .line { fill: none; stroke: #8a6d3f; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.in-chip.c1 { left: 7%; top: 12%; rotate: -7deg; animation-delay: 100ms, -0.4s; }
.in-chip.c2 { left: 62%; top: 9%; rotate: 5deg; animation-delay: 300ms, -1.2s; }
.in-chip.c3 { left: 3%; top: 52%; rotate: 6deg; animation-delay: 500ms, -2s; }
.in-chip.c4 { left: 70%; top: 44%; rotate: -5deg; animation-delay: 700ms, -0.9s; }
.in-chip.c5 { left: 22%; top: 78%; rotate: -3deg; animation-delay: 900ms, -2.6s; }
.in-chip.c6 { left: 58%; top: 76%; rotate: 8deg; animation-delay: 1100ms, -1.7s; }
@keyframes in-pop { from { opacity: 0; scale: 0.4; } }
@keyframes in-drift { 50% { translate: 0.5em -0.6em; } }
.in-traveller { position: absolute; left: 50%; top: 50%; width: 5.4em; height: 5.4em; margin: -2.4em 0 0 -2.7em; display: grid; place-items: center; background: var(--surface); border-radius: 50%; box-shadow: 0 0.4em 1em -0.5em rgb(34 48 60 / 0.5); animation: in-pop 420ms var(--ease-out) backwards; }
.in-traveller svg { width: 62%; height: 62%; fill: var(--ink); }
.in-q { position: absolute; top: 22%; font-stretch: 75%; font-size: 2.2em; font-weight: 800; color: var(--accent); animation: in-ask 1.6s var(--ease-out) infinite backwards; }
.in-q.q1 { left: 41%; animation-delay: 1.3s; }
.in-q.q2 { left: 49%; top: 15%; animation-delay: 1.7s; }
.in-q.q3 { left: 57%; animation-delay: 2.1s; }
@keyframes in-ask { from { opacity: 0; translate: 0 0.8em; scale: 0.5; } 30%, 70% { opacity: 1; } to { opacity: 0; translate: 0 -0.6em; } }

/* 2. The question: the starting city drops in, then the two days with a moon per night between them. */
.sc-ask { display: grid; align-content: center; justify-items: center; gap: 1.3em; }
/* The button of the form: it lands last and is pressed once. */
.in-go { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 1.6em; background: var(--accent); color: var(--on-accent); border-radius: 0.5em; font-stretch: 85%; font-size: 1.2em; font-weight: 800; box-shadow: 0 0.4em 1em -0.5em rgb(34 48 60 / 0.6); animation: in-pop 420ms var(--ease-out) 2.5s backwards, in-press-go 700ms var(--ease-out) 3.4s; }
.in-go svg { width: 1.1em; height: 1.1em; fill: currentColor; }
/* The two things that may be asked of the hotel: small chips with a round sign; the first is chosen as the scene goes
   and takes the badges' sky and the accent ring. */
.in-wants { display: flex; gap: 0.5em; animation: in-pop 420ms var(--ease-out) 2.2s backwards; }
.in-want { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.22em 0.8em 0.22em 0.28em; background: var(--surface); border: 1px solid var(--control-border); border-radius: 99em; font-size: 0.72em; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.in-want i { width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--control-border); }
.in-want.is-chosen { animation: in-want-on 4.6s linear forwards; }
.in-want.is-chosen i { animation: in-want-sign 4.6s linear forwards; }
@keyframes in-want-on { 0%, 62% { border-color: var(--control-border); color: var(--ink-2); background: var(--surface); } 68%, 100% { border-color: var(--accent); color: var(--ink); background: var(--tint); } }
@keyframes in-want-sign { 0%, 62% { background: var(--surface); box-shadow: inset 0 0 0 1px var(--control-border); } 68%, 100% { background: #d3e9f6; box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px var(--accent); } }
@keyframes in-press-go { 35% { scale: 0.92; box-shadow: 0 0 0 0.5em rgb(15 118 110 / 0.18); } }
.in-from { display: flex; align-items: center; gap: 0.8em; padding: 0.5em 1.4em 0.5em 0.5em; background: var(--surface); border-radius: 99em; box-shadow: 0 0.4em 1em -0.5em rgb(34 48 60 / 0.5); animation: in-drop 620ms var(--ease-out) 150ms backwards; }
.in-from .in-badge { width: 3.4em; height: 3.4em; }
.in-from span { display: grid; line-height: 1.15; }
.in-from i { font-style: normal; font-size: 0.75em; font-weight: 600; color: var(--ink-2); }
.in-from b { font-stretch: 75%; font-size: 1.7em; font-weight: 800; }
@keyframes in-drop { from { opacity: 0; translate: 0 -2.5em; } 70% { translate: 0 0.25em; } }
.in-dates { display: flex; align-items: center; gap: 0.8em; width: 78%; }
.in-leaf { flex: none; display: grid; justify-items: center; width: 3.6em; padding-bottom: 0.3em; background: var(--surface); border-radius: 0.5em; box-shadow: 0 0.3em 0.8em -0.4em rgb(34 48 60 / 0.5); overflow: clip; line-height: 1.1; animation: in-flip 520ms var(--ease-out) 900ms backwards; }
.in-leaf.is-out { animation-delay: 1.8s; }
.in-leaf span { width: 100%; padding: 0.2em 0; background: var(--accent); color: var(--on-accent); font-size: 0.72em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
.in-leaf.is-out span { background: var(--ink); }
.in-leaf b { margin-top: 0.1em; font-stretch: 80%; font-size: 1.6em; font-weight: 800; }
.in-leaf i { font-style: normal; font-size: 0.8em; font-weight: 600; color: var(--ink-2); }
@keyframes in-flip { from { opacity: 0; rotate: -12deg; translate: 0 -0.8em; } }
.in-nights { flex: 1; display: grid; justify-items: center; gap: 0.3em; }
.in-nights b { font-size: 0.9em; font-weight: 750; animation: in-pop 400ms var(--ease-out) 2.1s backwards; }
.in-line { width: 100%; height: 0.14em; border-radius: 1em; background: linear-gradient(to right, var(--accent), var(--ink)); transform-origin: left; animation: in-grow 800ms var(--ease-out) 1.2s backwards; }
@keyframes in-grow { from { scale: 0 1; } }
.in-moons { display: flex; gap: 0.4em; }
.in-moons i { width: 0.9em; height: 0.9em; border-radius: 50%; background: radial-gradient(circle at 72% 30%, transparent 0 46%, #47549b 49%); animation: in-rise 420ms var(--ease-out) backwards; }
.in-moons i:nth-child(1) { animation-delay: 1.3s; }
.in-moons i:nth-child(2) { animation-delay: 1.5s; }
@keyframes in-rise { from { opacity: 0; translate: 0 0.6em; scale: 0.4; } }

/* 3. The search: the plane of the waiting screen hops over five cities while a counter runs up to 68. */
.sc.sc-search { margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.sc-search > svg { width: 100%; height: 100%; }
@property --in-n { syntax: "<integer>"; inherits: false; initial-value: 68; }
.in-count { position: absolute; left: 0; right: 0; top: 7%; text-align: center; font-size: 1em; font-weight: 700; color: var(--ink); }
.in-count b { font-stretch: 75%; font-size: 1.9em; font-weight: 800; color: var(--accent); counter-reset: checked var(--in-n); animation: in-tally 3.6s var(--ease-out) 300ms backwards; }
.in-count b::after { content: counter(checked); }
@keyframes in-tally { from { --in-n: 0; } }

/* 4. The answer: the cheapest trips are a stack of cards. The top one is slid right and discarded, then the next, and the one left gets its "Keep" stamp as it starts to the left. */
.sc-deck { display: grid; place-items: center; }
.in-swipe { grid-area: 1 / 1; position: relative; display: grid; justify-items: center; align-content: center; gap: 0.35em; width: 42%; aspect-ratio: 4 / 4.6; padding: 0 1.1em; background: var(--surface); border: 1px solid var(--rule); border-radius: 1em; box-shadow: 0 0.6em 1.4em -0.8em rgb(34 48 60 / 0.6); animation: in-slide 520ms var(--ease-out) backwards; }
.in-swipe .in-badge { width: 4.2em; height: 4.2em; }
.in-swipe b { font-stretch: 75%; font-size: 1.5em; font-weight: 800; line-height: 1.1; }
.in-swipe-price { font-stretch: 75%; font-size: 1.3em; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }
.in-swipe .in-bar { grid-column: 1; width: 100%; margin-top: 0.3em; }
.in-stamp { position: absolute; top: 12%; padding: 0.15em 0.6em; border: 0.14em solid currentColor; border-radius: 0.4em; background: rgb(255 255 255 / 0.92); font-stretch: 75%; font-size: 1.3em; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0; }
.in-swipe.is-first { z-index: 3; animation: in-drop-first 5.4s var(--ease-out) forwards; }
.in-swipe.is-second { z-index: 2; animation: in-drop-second 5.4s var(--ease-out) forwards; }
.in-swipe.is-drop .in-stamp { left: 8%; rotate: -10deg; color: var(--bad); }
.in-swipe.is-first .in-stamp { animation: in-stamp-first 5.4s linear forwards; }
.in-swipe.is-second .in-stamp { animation: in-stamp-second 5.4s linear forwards; }
.in-swipe.is-last { z-index: 1; animation: in-last 5.4s var(--ease-out) forwards; }
.in-swipe.is-last .in-stamp { right: 8%; rotate: 10deg; color: var(--good); animation: in-stamp-last 5.4s linear forwards; }
@keyframes in-drop-first { 0%, 18% { translate: 0 0; rotate: 0deg; opacity: 1; } 32% { translate: 38% 0; rotate: 9deg; opacity: 1; } 41%, 100% { translate: 160% 0; rotate: 16deg; opacity: 0; } }
@keyframes in-stamp-first { 0%, 21% { opacity: 0; } 28%, 100% { opacity: 1; } }
@keyframes in-drop-second { 0%, 46% { translate: 0 0; rotate: 0deg; opacity: 1; } 60% { translate: 38% 0; rotate: 9deg; opacity: 1; } 69%, 100% { translate: 160% 0; rotate: 16deg; opacity: 0; } }
@keyframes in-stamp-second { 0%, 49% { opacity: 0; } 56%, 100% { opacity: 1; } }
/* The last card is not slid away: it is the one left, and swells a little under its stamp with a green edge. */
@keyframes in-last { 0%, 78% { scale: 1; box-shadow: 0 0 0 0 var(--good); } 90%, 100% { scale: 1.07; box-shadow: 0 0 0 0.18em var(--good); } }
@keyframes in-stamp-last { 0%, 80% { opacity: 0; } 87%, 100% { opacity: 1; } }
@keyframes in-slide { from { opacity: 0; translate: 0 2.2em; } }

/* 5. The win: confetti in the app's colours falls once, the kept city's badge pops in under "Your trip", and three things to see there line up, each with its photo. */
.sc-win { display: grid; align-content: center; justify-items: center; gap: 0.45em; }
/* On the wide stage the scene is set smaller so the badge, the name and the row of sights all fit. */
.sc.sc-win { font-size: 3.1cqw; }
.in-confetti { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
.in-confetti i { position: absolute; top: -6%; left: var(--x); width: 0.42em; height: 0.75em; border-radius: 0.1em; opacity: 0; animation: in-confetti 2.6s cubic-bezier(0.3, 0.5, 0.6, 1) var(--delay) both; }
.in-confetti .c0 { background: var(--accent); }
.in-confetti .c1 { background: var(--hotel); }
.in-confetti .c2 { background: #8cc3dd; }
.in-confetti .c3 { background: var(--good); width: 0.4em; height: 0.4em; border-radius: 50%; }
.in-confetti .c4 { background: #e2a866; height: 0.45em; }
@keyframes in-confetti { 0% { opacity: 0; translate: 0 0; rotate: 0deg; } 10%, 80% { opacity: 1; } 100% { opacity: 0; translate: var(--sway) 26em; rotate: var(--turn); } }
.in-badge.in-win-badge { width: 5.2em; height: 5.2em; box-shadow: 0 0 0 0.14em var(--accent), 0 0.6em 1.2em -0.6em rgb(34 48 60 / 0.55); animation: in-win-pop 700ms var(--ease-out) 200ms backwards; }
@keyframes in-win-pop { from { opacity: 0; scale: 0.3; rotate: -14deg; } 60% { scale: 1.12; rotate: 3deg; } }
.in-win-tag { padding: 0.1em 0.7em; background: var(--accent); color: var(--on-accent); border-radius: 99em; font-size: 0.8em; font-weight: 750; animation: in-pop 420ms var(--ease-out) 650ms backwards; }
.in-win-city { font-stretch: 72%; font-size: 2.6em; font-weight: 900; line-height: 1; animation: in-word 620ms var(--ease-out) 800ms backwards; }
.in-sights { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35em; margin-top: 0.4em; padding: 0 4%; }
.in-sight { display: flex; align-items: center; gap: 0.5em; padding: 0.3em 0.9em 0.3em 0.35em; background: var(--surface); border: 1px solid var(--rule); border-radius: 99em; font-size: 0.9em; font-weight: 700; animation: in-slide 460ms var(--ease-out) backwards; animation-delay: calc(1.5s + var(--n) * 0.35s); }
.in-sight img { width: 2em; height: 2em; border-radius: 50%; object-fit: cover; background: var(--tint); }

/* The hotel a walk from the centre: a dashed ring of fifteen minutes on foot, the centre in its middle, the hotel
   and three sights inside it, the walk drawing itself from the hotel, and a taxi struck out. Everything is placed
   from the middle of the ring in em, so one font size scales the whole picture. */
.sc.sc-walk { position: relative; font-size: 3.1cqw; }
.sc-walk > * { position: absolute; left: calc(50% + var(--x, 0em)); top: calc(44% + var(--y, 0em)); translate: -50% -50%; }
.in-reach { width: 18em; height: 18em; border: 0.14em dashed var(--accent); border-radius: 50%; background: rgb(255 255 255 / 0.45); animation: in-walk-pop 620ms var(--ease-out) 150ms backwards; }
.in-reach-label { --y: -11.25em; padding: 0.1em 0.7em; background: var(--accent); color: var(--on-accent); border-radius: 99em; font-size: 0.8em; font-weight: 750; white-space: nowrap; animation: in-walk-pop 420ms var(--ease-out) 600ms backwards; }
.in-centre { --y: -0.75em; display: grid; justify-items: center; gap: 0.15em; font-size: 0.75em; font-weight: 800; color: var(--ink); animation: in-walk-pop 420ms var(--ease-out) 500ms backwards; }
.in-centre i { width: 1.5em; height: 1.5em; border: 0.26em solid var(--ink); border-radius: 50%; background: radial-gradient(var(--ink) 38%, #fff 42%); }
.in-near { width: 3.6em; height: 3.6em; border: 0.16em solid #fff; border-radius: 50%; object-fit: cover; background: var(--tint); box-shadow: 0 0.3em 0.6em -0.3em rgb(34 48 60 / 0.6); animation: in-walk-pop 460ms var(--ease-out) backwards; animation-delay: calc(2.6s + var(--n) * 0.3s); }
.in-walk-line { width: 18em; height: 18em; overflow: visible; }
.in-walk-line path { fill: none; stroke: var(--accent); stroke-width: 0.32; stroke-linecap: round; stroke-dasharray: 1; animation: in-walk-draw 1.1s var(--ease-out) 1.5s backwards; }
.in-stay { --x: 5.2em; --y: 4.3em; display: grid; place-items: center; width: 3em; height: 3em; background: var(--accent); border: 0.16em solid #fff; border-radius: 50%; box-shadow: 0 0.3em 0.6em -0.3em rgb(34 48 60 / 0.6); animation: in-walk-pop 520ms var(--ease-out) 950ms backwards; }
.in-stay svg { width: 1.7em; height: 1.7em; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.in-stay-walk { --x: 1.9em; --y: 3.1em; padding: 0.05em 0.5em; background: #fff; border: 0.12em solid var(--accent); border-radius: 99em; font-size: 0.72em; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; animation: in-walk-pop 420ms var(--ease-out) 2.3s backwards; }
.in-notaxi { --y: 11.6em; display: flex; align-items: center; gap: 0.45em; padding: 0.3em 0.9em 0.3em 0.5em; background: var(--surface); border: 1px solid var(--rule); border-radius: 99em; font-size: 0.9em; font-weight: 700; white-space: nowrap; animation: in-walk-pop 460ms var(--ease-out) 3.7s backwards; }
.in-notaxi svg { width: 1.6em; height: 1.6em; fill: none; stroke: var(--ink-2); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.in-notaxi .strike { stroke: var(--bad); stroke-width: 1.8; }
@keyframes in-walk-pop { from { opacity: 0; scale: 0.4; } 60% { scale: 1.08; } }
@keyframes in-walk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* The cards of the three routes (scene 8), and the price bar the trip cards share with them. */
.sc-top { display: grid; align-content: center; gap: 0.7em; padding: 0 9%; }
.in-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.3em 0.8em; padding: 0.6em 0.9em 0.7em 0.6em; background: var(--surface); border: 1px solid var(--rule); border-radius: 0.8em; box-shadow: 0 0.4em 1em -0.6em rgb(34 48 60 / 0.5); animation: in-slide 560ms var(--ease-out) backwards; }
.in-card.k1 { animation-delay: 150ms; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0.4em 1em -0.6em rgb(34 48 60 / 0.5); }
.in-card.k2 { animation-delay: 700ms; }
.in-card.k3 { animation-delay: 1250ms; }
.in-card .in-badge { grid-row: span 2; width: 2.7em; height: 2.7em; }
.in-card-name { display: flex; align-items: center; gap: 0.5em; }
.in-card-name b { font-stretch: 75%; font-size: 1.35em; font-weight: 800; }
.in-card-name em { padding: 0.1em 0.45em; background: var(--accent); color: var(--on-accent); border-radius: 0.3em; font-style: normal; font-size: 0.72em; font-weight: 700; animation: in-pop 420ms var(--ease-out) 2.3s backwards; }
.in-card-price { font-stretch: 75%; font-size: 1.45em; font-weight: 800; font-variant-numeric: tabular-nums; }
.in-bar { grid-column: 2 / -1; position: relative; display: flex; gap: 2px; height: 0.42em; }
.in-bar i { height: 100%; transform-origin: left; animation: in-grow 700ms var(--ease-out) backwards; animation-delay: inherit; }
.in-bar .f { background: var(--flight); border-radius: 1em 0.1em 0.1em 1em; }
.in-bar .h { flex: 1; background: var(--hotel); border-radius: 0.1em 1em 1em 0.1em; }
.in-bar u { position: absolute; top: 50%; width: 1.1em; height: 1.1em; margin: -0.55em 0 0 -0.55em; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--flight); border-radius: 50%; }
.in-bar u svg { width: 70%; height: 70%; fill: var(--flight); }
.in-card.k1 .in-bar, .in-card.k1 .in-bar i { animation-delay: 500ms; }
.in-card.k2 .in-bar i { animation-delay: 1050ms; }
.in-card.k3 .in-bar i { animation-delay: 1600ms; }

/* 7. The route: flights draw themselves through the picked cities, each city pops as the plane arrives, and it flies home. */
.sc-route > svg, .sc-end > svg { width: 100%; height: 100%; }
.in-land { fill: #fdfcf8; stroke: #aac4c4; stroke-width: 1; filter: drop-shadow(0 1px 1.5px rgb(34 72 80 / 0.25)); }
.in-trail { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 0.5 5; opacity: 0.5; }
.in-leg { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; animation: in-draw 900ms cubic-bezier(0.5, 0, 0.2, 1) backwards; animation-delay: calc(500ms + var(--i) * 1000ms); }
@keyframes in-draw { from { stroke-dashoffset: 1; } }
.sc-route .stop { transform-box: fill-box; transform-origin: center; }
.sc-route .stop.is-home .ring { stroke: var(--ink); stroke-width: 2.4; }
.sc-route .stop.is-stop { animation: in-land 460ms var(--ease-out) backwards; animation-delay: calc(1250ms + var(--i) * 1000ms); }
@keyframes in-land { from { opacity: 0; scale: 0.2; } 60% { scale: 1.18; } }
.sc-route .in-flyer { offset-distance: 100%; animation: in-fly 4s linear 500ms backwards; }
@keyframes in-fly { from { offset-distance: 0%; } }

/* 6. The wish: a dock of line-drawn cities; three are pressed one after the other, grow, and take their colours, and their names line up below. */
.sc-must { display: grid; align-content: center; justify-items: center; gap: 1.1em; }
.in-must-title { font-size: 1em; font-weight: 700; color: var(--ink); animation: in-pop 420ms var(--ease-out) 100ms backwards; }
.in-dock { display: flex; align-items: flex-end; gap: 0.7em; padding: 1.1em 1em 1.2em; background: linear-gradient(to bottom, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.7)); border: 1px solid var(--rule); border-radius: 1.4em; box-shadow: 0 0.5em 1.2em -0.7em rgb(34 48 60 / 0.5); animation: in-slide 520ms var(--ease-out) 200ms backwards; }
.in-pick { position: relative; display: grid; transform-origin: 50% 70%; }
.in-pick .in-badge { grid-area: 1 / 1; width: 2.9em; height: 2.9em; }
.in-badge.is-plain { background: var(--surface); box-shadow: 0 0 0 0.06em var(--control-border); }
.in-pick .in-badge.is-on { animation: in-colour 360ms var(--ease-out) backwards; }
.in-pick.is-picked { animation: in-press 700ms var(--ease-out) backwards; scale: 1.14; }
.in-pick.is-picked::after { content: ""; position: absolute; left: 50%; bottom: -0.55em; width: 0.3em; height: 0.3em; margin-left: -0.15em; border-radius: 50%; background: var(--accent); animation: in-pop 300ms var(--ease-out) backwards; }
@keyframes in-colour { from { opacity: 0; } }
@keyframes in-press { from { scale: 1; } 45% { scale: 1.5; } }
.in-pick.p0, .in-pick.p0 .is-on, .in-pick.p0::after, .in-chosen .p0 { animation-delay: 1.1s; }
.in-pick.p1, .in-pick.p1 .is-on, .in-pick.p1::after, .in-chosen .p1 { animation-delay: 2s; }
.in-pick.p2, .in-pick.p2 .is-on, .in-pick.p2::after, .in-chosen .p2 { animation-delay: 2.9s; }
.in-chosen { display: flex; gap: 0.5em; min-height: 2em; }
.in-chosen span { padding: 0.25em 0.8em; background: var(--accent); color: var(--on-accent); border-radius: 99em; font-size: 0.9em; font-weight: 750; animation: in-pop 420ms var(--ease-out) backwards; }

/* 8. The choice: three routes through the same cities slide up as cards, each with its cities in order, its nights and its price. */
/* Three lines a card: on the wide stage the scene is set a little smaller so the three fit. */
.sc.sc-three { font-size: 3.3cqw; }
.in-route-card .in-trio { grid-row: span 2; display: flex; }
.in-route-card .in-trio .in-badge { grid-row: auto; width: 2.1em; height: 2.1em; }
.in-route-card .in-trio .in-badge + .in-badge { margin-left: -0.45em; }
.in-route-card .in-card-name { flex-wrap: wrap; gap: 0.1em 0.4em; }
.in-route-card .in-card-name b { font-size: 1.15em; }
.in-route-card .in-card-price { font-size: 1.3em; }
.in-card-nights { grid-column: 2 / -1; font-size: 0.8em; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* 9. The name: the plane crosses the sky, the wordmark lands, and five cities line up below. */
.in-arc { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; opacity: 0.55; animation: in-draw 2.4s cubic-bezier(0.4, 0, 0.3, 1) 200ms backwards; }
.sc-end .in-flyer { offset-distance: 100%; animation: in-fly 2.4s cubic-bezier(0.4, 0, 0.3, 1) 200ms backwards; }
.sc-end .cloud { fill: #fff; opacity: 0.85; animation: drift 26s linear infinite; }
.sc-end .cloud.two { translate: 0 60px; scale: 0.8; opacity: 0.6; animation-duration: 38s; animation-delay: -14s; }
.sc-end .cloud.three { translate: 0 24px; scale: 1.3; opacity: 0.7; animation-duration: 31s; animation-delay: -22s; }
/* A deeper sky than the other scenes, so the white of the name shows. */
.sc-end { background: linear-gradient(#54a1cc, #99cfe6); border-radius: inherit; overflow: hidden; }
.in-word { position: absolute; left: 0; right: 0; top: 36%; display: flex; justify-content: center; line-height: 1; }
.in-word .title-mark { --size: 13cqw; --reach: 105cqw; }
@keyframes in-word { from { opacity: 0; scale: 0.7; translate: 0 0.3em; } 70% { scale: 1.05; } }
.in-row { position: absolute; left: 0; right: 0; bottom: 12%; display: flex; justify-content: center; gap: 0.7em; }
.in-row .in-badge { width: 2.7em; height: 2.7em; animation: in-pop 420ms var(--ease-out) backwards; }
.in-row .r0 { animation-delay: 1.5s; }
.in-row .r1 { animation-delay: 1.65s; }
.in-row .r2 { animation-delay: 1.8s; }
.in-row .r3 { animation-delay: 1.95s; }
.in-row .r4 { animation-delay: 2.1s; }

/* The booking: the ticket of the trip, a seat and a bag that pop in and take their colour as they are chosen, and "Booked". */
.sc-book { display: grid; align-content: center; justify-items: center; gap: 0.7em; }
.sc.sc-book { font-size: 3.3cqw; }
.in-ticket { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.8em; row-gap: 0.1em; min-width: 15em; padding: 0.8em 1.1em 0.8em 0.8em; background: var(--surface); border: 1px solid var(--rule); border-radius: 1em; box-shadow: 0 0.6em 1.2em -0.6em rgb(34 48 60 / 0.45); animation: in-slide 460ms var(--ease-out) 150ms backwards; }
.in-ticket .in-badge { grid-row: span 2; width: 3.4em; height: 3.4em; }
.in-ticket-way { display: flex; align-items: center; gap: 0.5em; font-stretch: 75%; font-size: 1.5em; font-weight: 900; line-height: 1; }
.in-ticket-way i { flex: 1; display: grid; place-items: center; border-top: 0.1em dotted var(--rule); translate: 0 0.05em; }
.in-ticket-way svg { width: 1em; height: 1em; margin-top: -0.55em; fill: var(--accent); background: var(--surface); }
.in-ticket-city { font-size: 0.8em; font-weight: 650; color: var(--ink-2); }
.in-extras { display: flex; gap: 0.5em; }
.in-extra { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.3em 0.85em 0.3em 0.6em; background: var(--accent); color: var(--on-accent); border-radius: 99em; font-size: 0.95em; font-weight: 750; animation: in-pop 420ms var(--ease-out) backwards; }
.in-extra svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.in-extra.e0 { animation-delay: 1.1s; }
.in-extra.e1 { animation-delay: 1.9s; }
.in-booked { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.15em 0.8em 0.15em 0.5em; background: var(--surface); border: 0.14em solid var(--good); border-radius: 0.5em; color: var(--good); font-stretch: 75%; font-size: 1.5em; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; rotate: -4deg; animation: in-pop 460ms var(--ease-out) 3s backwards; }
.in-booked svg { width: 0.9em; height: 0.9em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* The profile's map: the land on the sky's blue as its sea, and the countries of three trips filled one after the
   other, each with a dot for its city. The drawing may run past its box, so it fills the stage wide or tall. */
.sc-mine svg { width: 100%; height: 100%; overflow: visible; }
.in-map-land { fill: #fdfcf8; stroke: #b9cfd0; stroke-width: 0.5; stroke-linejoin: round; }
.in-map-country { fill: #3fa89c; stroke: #fdfcf8; stroke-width: 0.6; stroke-linejoin: round; animation: in-fill 700ms var(--ease-out) calc(0.7s + var(--n) * 1.1s) backwards; }
@keyframes in-fill { from { opacity: 0; } }
.in-map-city { animation: in-pop 420ms var(--ease-out) calc(1s + var(--n) * 1.1s) backwards; transform-box: fill-box; transform-origin: center; }
.in-map-city circle { fill: var(--ink); stroke: #fff; stroke-width: 1.2; }

/* On a phone the stage is taller than wide and its pieces larger, so the story fills more of the screen. */
@media (max-width: 40rem) {
  .intro { padding-top: 0.875rem; gap: 0.75rem; }
  .intro-stage { aspect-ratio: 4 / 5; }
  .sc { font-size: 6cqw; }
  .sc.sc-top { font-size: 5cqw; }
  .sc.sc-must { font-size: 4.7cqw; }
  .intro-caption { font-size: 1.4375rem; }
  .in-chip.c2 { left: 54%; }
  .in-chip.c4 { left: 60%; }
  .in-chip.c6 { left: 50%; }
  .in-dates { width: 88%; }
  .sc-top { padding: 0 6%; gap: 0.9em; }
  .in-swipe { width: 60%; }
  .sc.sc-win { font-size: 6cqw; }
  .sc.sc-walk { font-size: 4.3cqw; }
  .sc.sc-book { font-size: 4.8cqw; }
  .in-sights { display: grid; }
  .in-dock { gap: 0.45em; padding: 1em 0.7em 1.1em; }
  .in-pick .in-badge { width: 2.5em; height: 2.5em; }
  .in-word { top: 38%; }
  .in-row { bottom: 24%; }
}

/* The way back to the introduction, in the header. */
#intro-open { display: inline-flex; flex: none; white-space: nowrap; align-items: center; gap: 0.25rem; min-height: 1.75rem; margin: -0.125rem 0; padding: 0.125rem 0.5625rem 0.125rem 0.375rem; font-size: 0.75rem; font-weight: 650; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; box-shadow: 0 1px 2px rgb(34 48 60 / 0.08); text-decoration: none; }
@media (hover: hover) { #intro-open:hover { border-color: var(--accent); background: var(--tint); } }
#intro-open svg { width: 0.75rem; height: 0.75rem; fill: var(--accent); }
/* On a narrow phone the row has no room for the words beside "Saved": the play sign stays, and the button keeps its name for a screen reader. */
@media (max-width: 23.5rem) {
  #intro-open { font-size: 0; gap: 0; min-width: 1.75rem; padding: 0.125rem; justify-content: center; }
}

/* ---------- As the iPhone app's introduction ---------- */
/* The line under the picture is set narrow and heavy, as the app's. */
.intro-caption { font-stretch: 75%; font-weight: 800; font-size: 1.125rem; line-height: 1.25; }
@media (max-width: 40rem) { .intro-caption { font-size: 1.125rem; } }
/* The two things to ask of the hotel carry their signs. */
.in-want i { display: grid; place-items: center; }
.in-want i svg { width: 68%; height: 68%; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
/* A route's card: its tag over its name, the name on one line. */
.in-route-card .in-card-name { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0.1em; }
.in-route-card .in-card-name b { white-space: nowrap; }
.in-route-card .in-card-nights { font-size: 0.72em; }
/* The last scene: the name and the five cities inside the picture's edges. */
.in-word .title-mark { --size: 11.5cqw; }
.in-row { gap: 0.5em; }
.in-row .in-badge { width: 2.3em; height: 2.3em; }
