/* Wingpin — wingpin.app. Static, no build step, no third-party requests.
   Colour and motifs follow the app's style kit (Wingpin/DesignSystem/WingpinStyle.swift):
   tinted pages, night behind the globe, golden hour for highlights, passport paper and stamp inks. */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Page grounds (WingPageTint) and neutrals (WingTone). */
  --page: #f6f2e9;
  --mint: #e4f1ec;
  --dawn: #fcede3;
  --sky: #e6f1f8;
  --raised: #fffaf0;
  --text: #142e3b;
  --soft: #4a5c5e;
  --rule: #dccfb0;
  --night: #071720;
  --on-night: #f3eee2;
  --on-night-soft: #b9c7c6;

  /* Accents (WingAccent): coral acts, gold is earned, teal is the brand. */
  --coral: #ff6b4a;
  --coral-ink: #b23216;
  --coral-wash: #ffe3da;
  --teal: #1fa08d;
  --teal-ink: #1a6659;
  --teal-wash: #d9efea;
  --gold-ink: #775509;
  --sky-ink: #125c96;
  --hour: linear-gradient(105deg, #ffc145, #ff6b4a 58%, #e0457b);
  --hour-ink: linear-gradient(105deg, #9a5a00, #c23a1a 55%, #a92550);

  /* The passport: cover, foil, paper and stamp inks. The same in light and dark. */
  --cover-top: #1a4d4a;
  --cover-bottom: #0f2e33;
  --foil: #edd18f;
  --paper: #fbf5e7;
  --paper-line: #e7dcc2;
  --paper-ink: #3d4a4f;
  --stamp-navy: #213b8c;
  --stamp-crimson: #a82130;
  --stamp-forest: #17664a;
  --stamp-violet: #663389;

  --shade: 15 46 51;
  --shade-a: 0.2;
  --focus: #1b5fd1;

  --serif: "Young Serif", "New York", ui-serif, Georgia, serif;
  --sans: "Archivo", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  --plane: polygon(50% 0, 58.6% 35.3%, 100% 56.8%, 100% 66.2%, 58.6% 56.1%, 56.4% 82.7%, 70% 92.8%, 70% 100%, 50% 94.2%, 30% 100%, 30% 92.8%, 43.6% 82.7%, 41.4% 56.1%, 0 66.2%, 0 56.8%, 41.4% 35.3%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0c1a21;
    --mint: #0b1c19;
    --dawn: #1a1512;
    --sky: #0b1a24;
    --raised: #13252e;
    --text: #f3eee2;
    --soft: #a9b6b5;
    --rule: #26363d;
    --coral-ink: #ff9478;
    --coral-wash: #3d2019;
    --teal-ink: #62d3c0;
    --teal-wash: #12332e;
    --gold-ink: #edd18f;
    --sky-ink: #74c0f7;
    --hour-ink: linear-gradient(105deg, #ffc145, #ff7f61 55%, #ff8cac);
    --paper: #ece3cb;
    --paper-line: #d6c9a8;
    --shade: 0 0 0;
    --shade-a: 0.5;
    --focus: #8cb8ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--raised);
  color: var(--text);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(2rem, 1.25rem + 2.9vw, 3.5rem); }
h3 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 650; }

/* A small heavy label, as in the app (WingOverline). */
.over {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-ink);
}
.over::before { content: ""; width: 4px; height: 1.25em; border-radius: 2px; background: var(--coral); }
.over--n::before { content: none; }
.over--n span {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 6px;
}
.over--foil { color: var(--foil); }
.over--foil::before { background: var(--foil); }

/* ---------- Header ---------- */

.site-header { padding-block: 20px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: clamp(4px, 1.5vw, 12px); font-size: 0.98rem; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; transition: background-color 0.2s; }
.site-nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.site-nav a[aria-current="page"] { background: color-mix(in srgb, currentColor 10%, transparent); }
.home .site-header { position: absolute; inset: 0 0 auto; z-index: 5; color: var(--on-night); }
/* A focus ring that reads on the dark grounds. */
.home .site-header, .hero, .band--night, .band--promise { --focus: #8cb8ff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--night);
  color: var(--on-night);
  padding-block: clamp(104px, 11vw, 136px) clamp(84px, 8vw, 116px);
}
.hero::before {
  /* Teal air around the globe, and golden hour coming up from the far corner. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(46% 52% at 74% 50%, rgb(31 160 141 / 0.2), transparent 72%),
    radial-gradient(42% 46% at 96% 104%, rgb(255 107 74 / 0.22), transparent 70%),
    radial-gradient(36% 40% at 2% -4%, rgb(46 155 230 / 0.13), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("img/grain.png");
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__canvas { width: 100%; height: 100%; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.75rem, 1.5rem + 4.6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 10.5ch;
}
.gold { color: #ffb02e; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold { background: var(--hour); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.lead {
  margin-top: clamp(20px, 2.4vw, 30px);
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  max-width: 31em;
  color: var(--on-night-soft);
}
.status { margin-top: clamp(28px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
/* Dashed outline: in the app, a dashed stamp means a planned trip. */
.soon {
  display: inline-block;
  padding: 11px 18px 10px;
  border: 2px dashed var(--foil);
  border-radius: 12px;
  color: var(--foil);
  font-stretch: 78%;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  transform: rotate(-2deg);
}
.status p { color: var(--on-night-soft); font-size: 0.95rem; max-width: 25em; }

.hero__stage { position: relative; }
.globe {
  position: relative;
  aspect-ratio: 1;
  width: 126%;
  max-width: 760px;
  margin-inline: -8% -18%;
  border-radius: 50%;
  touch-action: pan-y;
}
.js .globe { cursor: grab; }
.js .globe.is-dragging { cursor: grabbing; }
.globe__still { display: none; width: 88%; margin: 6%; }
@media (scripting: none) { .globe__still { display: block; } }

/* The flight in progress, on a slip of glass. */
.leg {
  position: absolute;
  left: 0;
  bottom: 3%;
  display: grid;
  gap: 3px;
  padding: 12px 16px 12px;
  border-radius: 16px;
  background: rgb(9 30 40 / 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.14), 0 18px 40px -18px rgb(0 0 0 / 0.7);
  font-size: 0.95rem;
  min-width: 15.5em;
}
.leg__over, .leg__count { font-size: 0.7rem; font-weight: 800; font-stretch: 82%; letter-spacing: 0.12em; text-transform: uppercase; }
.leg__over { color: var(--foil); }
.leg__count { color: var(--on-night-soft); font-variant-numeric: tabular-nums; }
.leg__route { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 1.05rem; white-space: nowrap; }
.leg__route b { font-weight: inherit; }
.leg__plane { width: 0.85em; height: 0.85em; background: var(--coral); clip-path: var(--plane); transform: rotate(90deg); flex: none; }
@media (scripting: none) { .leg { display: none; } }

/* ---------- Bands ---------- */

.band { position: relative; padding-block: clamp(72px, 9.5vw, 144px); }
.band--find { background: var(--page); border-radius: clamp(24px, 3.4vw, 44px) clamp(24px, 3.4vw, 44px) 0 0; margin-top: calc(-1 * clamp(24px, 3.4vw, 44px)); z-index: 1; }

.chapter { max-width: 46rem; }
.chapter h2 { margin-top: 18px; }
.chapter__lead { margin-top: 20px; color: var(--soft); font-size: 1.15rem; max-width: 36em; }

/* Steps: a genuine sequence, drawn as a route with a pin at each stop (WingRouteProgress). */
.steps {
  list-style: none;
  margin: clamp(44px, 6vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  position: relative;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 20px;
  right: 14%;
  height: 3px;
  background: radial-gradient(circle, var(--soft) 1.3px, transparent 1.6px) 0 50% / 9px 3px repeat-x;
  opacity: 0.55;
  transform-origin: left;
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--page);
  box-shadow: inset 0 0 0 2px var(--teal-ink);
  color: var(--teal-ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
  position: relative;
}
.steps li:last-child::before { background: var(--teal-ink); color: var(--page); }
.steps h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.005em; }
.steps p { color: var(--soft); font-size: 0.98rem; }

/* ---------- Features ---------- */

.feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.band > .wrap > .feature { margin-top: clamp(72px, 8vw, 120px); }
.feature__copy { grid-column: 1 / span 5; grid-row: 1; }
.shot, .passport { grid-column: 7 / span 6; grid-row: 1; }
.feature--flip > .feature__copy { grid-column: 8 / span 5; }
.feature--flip > .shot, .feature--flip > .passport { grid-column: 1 / span 6; }
.feature__copy h2, .feature__copy h3 { margin-top: 18px; }
.feature__copy > p:not(.over) { margin-top: 18px; color: var(--soft); font-size: 1.1rem; max-width: 30em; }
.feature__copy > p.fine, .fine { font-size: 0.88rem; color: var(--soft); margin-top: 18px; }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; max-width: 31em; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 0.8em;
  height: 0.8em;
  background: var(--coral);
  clip-path: var(--plane);
  transform: rotate(90deg);
}

.shot { margin: 0; position: relative; }
.shot__stage {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: clamp(28px, 3.2vw, 44px);
  background: var(--stage, var(--mint));
  margin-block: 44px;
}
.shot figcaption, .passport figcaption { margin-top: 22px; text-align: center; font-size: 0.86rem; color: var(--soft); }
.shot--mail figcaption, .shot--photos figcaption, .shot--plan figcaption { margin-top: 84px; }
.shot--friends figcaption { margin-top: 48px; }
.shot--mail { --stage: var(--mint); }
.shot--photos { --stage: var(--dawn); }
.shot--plan, .shot--share, .shot--friends { --stage: var(--raised); }

/* ---------- The phone and its small UI kit (sizes in em, so it scales as one piece) ---------- */

.phone {
  --w: clamp(244px, 25vw, 292px);
  position: relative;
  width: var(--w);
  aspect-ratio: 9 / 18.4;
  margin-block: -44px;
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(150deg, #33474f, #0b1820 38%, #04090c);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    0 34px 60px -26px rgb(var(--shade) / calc(var(--shade-a) + 0.3)),
    0 14px 26px -14px rgb(var(--shade) / var(--shade-a));
  font-size: calc(var(--w) * 0.0445);
  line-height: 1.35;
  transform: translate3d(0, calc((0.5 - var(--p, 0.5)) * 48px), 0);
}
.screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 1.15em 1.2em;
  border-radius: calc(var(--w) * 0.142);
  overflow: hidden;
  background: var(--page);
  color: var(--text);
}
.screen--mint { background: var(--mint); }
.screen--dawn { background: var(--dawn); }
.screen--sky { background: var(--sky); }
.screen--night { background: var(--night); color: var(--on-night); padding-inline: 0; }
.ui-bar { display: flex; justify-content: space-between; align-items: center; height: 3.3em; padding: 0.7em 0.5em 0; font-size: 0.86em; font-weight: 650; flex: none; }
.ui-bar i { position: absolute; left: 50%; top: 0.75em; width: 31%; height: 1.85em; margin-left: -15.5%; border-radius: 99px; background: #04090c; }
.screen--night .ui-bar { padding-inline: 1.65em; position: relative; z-index: 1; }
.ui-over, .float__over, .cover__over, .options__label {
  font-size: 0.68em;
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}
.ui-over { margin-top: 1.2em; }
.ui-title { font-family: var(--serif); font-size: 1.95em; line-height: 1.1; margin-top: 0.12em; letter-spacing: -0.01em; }

/* Mail: the booking emails are picked out, the rest are left alone. */
.mail { list-style: none; margin: 0.95em 0 0; padding: 0; display: grid; gap: 0.4em; }
.mail__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.6em;
  padding: 0.55em 0.75em 0.6em;
  border-radius: 0.85em;
  background: color-mix(in srgb, var(--raised) 70%, transparent);
  border-left: 0.22em solid transparent;
  opacity: 0.5;
}
.mail__row b { font-size: 0.86em; font-weight: 650; }
.mail__row em { font-style: normal; font-size: 0.7em; color: var(--soft); align-self: center; }
.mail__row span { grid-column: 1 / -1; font-size: 0.76em; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail__row--hit { opacity: 1; background: var(--raised); border-left-color: var(--coral); }
.mail__scan {
  position: absolute;
  inset: 8.6em 0.7em auto;
  height: 2.6em;
  border-radius: 0.8em;
  background: linear-gradient(transparent, color-mix(in srgb, var(--teal) 34%, transparent));
  border-bottom: 2px solid var(--teal);
  opacity: 0;
  pointer-events: none;
}

/* A boarding-pass card (WingTicket): main part, tear line, stub. */
.ticket {
  margin-top: auto;
  background: var(--paper);
  color: #142e3b;
  border-radius: 1.05em;
  box-shadow: 0 0.7em 1.4em -0.5em rgb(var(--shade) / calc(var(--shade-a) + 0.1));
}
.ticket__main { display: flex; align-items: center; gap: 0.7em; padding: 0.85em 1.05em 0.65em; }
.ticket__code { font-size: 1.75em; font-weight: 800; font-stretch: 76%; letter-spacing: 0.02em; line-height: 1; }
.ticket__path { flex: 1; height: 3px; position: relative; background: radial-gradient(circle, #4a5c5e 1.1px, transparent 1.4px) 0 50% / 7px 3px repeat-x; }
.ticket__path i { position: absolute; left: 50%; top: 50%; width: 1em; height: 1em; margin: -0.5em; background: var(--coral-ink, #b23216); clip-path: var(--plane); transform: rotate(90deg); box-shadow: 0 0 0 4px var(--paper); }
.ticket__stub { display: flex; justify-content: space-between; align-items: center; gap: 0.6em; padding: 0.6em 1.05em 0.75em; border-top: 2px dotted rgb(74 92 94 / 0.4); font-size: 0.76em; color: #4a5c5e; }
/* A rubber stamp (WingStamp): heavy caps, double-ruled, slightly askew. */
.stamp-tag {
  font-size: 0.9em;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stamp-crimson);
  padding: 0.28em 0.6em 0.22em;
  border: 1.5px solid currentColor;
  border-radius: 0.45em;
  outline: 0.6px solid currentColor;
  outline-offset: -3.6px;
  transform: rotate(-3deg);
}

/* Photos: a cluster of example pictures, drawn in the app's cover colours. */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.34em; margin-top: 0.9em; }
.tile { aspect-ratio: 1; border-radius: 0.7em; background: var(--teal); }
.tile--1 { background: radial-gradient(circle at 68% 34%, #fff0b8 0 13%, transparent 14%), linear-gradient(165deg, #ffc145, #ff6b4a 62%, #a9321b); }
.tile--2 { background: radial-gradient(130% 70% at 30% 118%, #0f4c5c 0 58%, transparent 59%), linear-gradient(#bfe9df, #1fa08d); }
.tile--3 { background: repeating-conic-gradient(#125c96 0 25%, #dceefb 0 50%) 0 0 / 34% 34%; }
.tile--4 { background: linear-gradient(transparent 58%, #7d3a1a 58% 64%, transparent 64%), linear-gradient(90deg, transparent 30%, #142e3b 30% 36%, transparent 36% 64%, #142e3b 64% 70%, transparent 70%) 0 30% / 100% 26% no-repeat, linear-gradient(#ffd16b, #ffb02e); }
.tile--5 { background: radial-gradient(90% 60% at 80% 112%, #8e2148 0 60%, transparent 61%), radial-gradient(80% 50% at 16% 112%, #c23a1a 0 60%, transparent 61%), linear-gradient(#ffd9c4, #ff9a6b); }
.tile--6 { background: radial-gradient(circle at 30% 30%, #fbf5e7 0 9%, transparent 10%), linear-gradient(200deg, #114e86, #2e9be6 70%, #7fd0f2); }
.tile--7 { background: linear-gradient(135deg, #14574d 0 50%, #1fa08d 50%); opacity: 0.45; }
.tile--8 { background: linear-gradient(#e9e3fd, #8b6cf0); opacity: 0.45; }
.tile--9 { background: linear-gradient(45deg, #edc24f, #14574d); opacity: 0.45; }
.finding {
  margin-top: auto;
  padding: 0.95em 1em 1em;
  border-radius: 1.2em;
  background: var(--raised);
  box-shadow: 0 0.7em 1.4em -0.6em rgb(var(--shade) / calc(var(--shade-a) + 0.05));
}
.finding__place { font-family: var(--serif); font-size: 1.5em; line-height: 1.1; }
.finding__meta { font-size: 0.78em; color: var(--soft); margin-top: 0.25em; }
.finding__meta--mail { color: var(--coral-ink); }
.finding__check { margin-top: 0.7em; padding-top: 0.65em; border-top: 1px solid color-mix(in srgb, var(--rule) 80%, transparent); font-size: 0.74em; color: var(--soft); }
.finding__check b { display: block; font-weight: 650; color: var(--text); }
.finding__actions { display: flex; gap: 0.4em; margin-top: 0.85em; }
.finding__actions span { font-size: 0.72em; font-weight: 650; padding: 0.5em 0.8em; border-radius: 0.8em; box-shadow: inset 0 0 0 1px var(--rule); white-space: nowrap; }
.finding__actions .is-primary { background: var(--cover-top); color: var(--paper); box-shadow: inset 0 0 0 3px var(--cover-top), inset 0 0 0 4px rgb(237 209 143 / 0.55); margin-left: auto; }

/* Cards that float off the stage. */
.float {
  position: absolute;
  display: grid;
  gap: 2px;
  max-width: 13.5rem;
  padding: 14px 16px 15px;
  border-radius: 18px;
  background: var(--raised);
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rule) 70%, transparent), 0 22px 40px -22px rgb(var(--shade) / calc(var(--shade-a) + 0.25));
  font-size: 1rem;
  transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * -84px), 0);
}
.float__over { font-size: 0.7rem; color: var(--coral-ink); }
.float__big { white-space: nowrap; font-size: 2rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.float__mid { font-weight: 650; font-size: 1.05rem; line-height: 1.25; }
.float__sub { font-size: 0.82rem; color: var(--soft); line-height: 1.35; }
.float--mail { left: -5%; bottom: 21%; }
.float--photos { right: -5%; top: 12%; max-width: 11.5rem; }
.float--photos .float__over { color: var(--teal-ink); }
.float--fare { right: -5%; top: 7%; }
.float--sale { left: -5%; bottom: 30%; max-width: 11.5rem; }
.float--sale .float__over { color: var(--sky-ink); }
.float--link { right: -4%; bottom: 7%; max-width: 13.5rem; }
.float--group { left: 0; bottom: 2%; }

/* ---------- Globe band ---------- */

.band--night {
  margin-inline: clamp(8px, 1.8vw, 28px);
  border-radius: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(1px 1px at 12% 22%, rgb(255 255 255 / 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 31% 68%, rgb(255 255 255 / 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 14%, rgb(255 255 255 / 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 82%, rgb(255 255 255 / 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 36%, rgb(255 255 255 / 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 90%, rgb(255 255 255 / 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 70%, rgb(255 255 255 / 0.5) 50%, transparent 51%),
    radial-gradient(50% 60% at 26% 54%, rgb(31 160 141 / 0.22), transparent 70%),
    radial-gradient(40% 50% at 100% 0%, rgb(46 155 230 / 0.12), transparent 70%),
    var(--night);
  color: var(--on-night);
  overflow: clip;
}
.band--night .feature__copy > p:not(.over), .band--night .ticks { color: var(--on-night-soft); }
.band--night .ticks strong { color: var(--on-night); }
.band--night .over { color: var(--foil); }
.band--night .shot figcaption { color: var(--on-night-soft); }
.shot--globe .shot__stage { background: none; margin-block: 0; }
.shot--globe .phone { margin-block: 0; }
.mini-globe { width: 128%; max-width: none; margin: 0.4em -14% 0; }
.replay {
  margin: auto 0.9em 1.1em;
  padding: 0.85em 1em 0.8em;
  border-radius: 1.2em;
  background: rgb(15 40 52 / 0.72);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  position: relative;
  z-index: 1;
}
.replay__now { font-family: var(--serif); font-size: 1.05em; line-height: 1.25; }
.replay__now span { display: block; font-family: var(--sans); font-size: 0.62em; font-weight: 800; font-stretch: 82%; letter-spacing: 0.1em; text-transform: uppercase; color: var(--foil); margin-bottom: 0.2em; }
.replay__track { --t: clamp(0, calc((var(--p, 0.5) - 0.22) * 2), 1); position: relative; height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.16); margin-top: 0.95em; }
.replay__track i { position: absolute; inset: 0 auto 0 0; width: calc(var(--t) * 100%); border-radius: 4px; background: var(--hour); }
.replay__track b { position: absolute; top: 50%; left: calc(var(--t) * 100%); width: 1em; height: 1em; margin: -0.5em; border-radius: 50%; background: #fff8e7; box-shadow: 0 0 0 0.3em rgb(255 107 74 / 0.3); }
.replay__years { display: flex; justify-content: space-between; margin-top: 0.95em; font-size: 0.66em; font-family: var(--mono); color: var(--on-night-soft); }

/* ---------- Passport and stats ---------- */

.band--passport { background: var(--page); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 0 clamp(16px, 2.6vw, 36px); margin: 34px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-left: clamp(14px, 2vw, 22px); border-left: 1px solid var(--rule); }
.stats div:first-child { padding-left: 0; border-left: 0; }
.stats dd {
  margin: 0;
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.9rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats div:first-child dd { color: var(--coral-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stats div:first-child dd { background: var(--hour-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.stats dt { margin-top: 8px; font-size: 0.86rem; line-height: 1.3; color: var(--soft); max-width: 11ch; }

.passport { position: relative; margin: 0; }
.passport-page {
  position: relative;
  aspect-ratio: 0.82;
  max-width: 470px;
  margin-inline: auto;
  border-radius: 4px 18px 18px 4px;
  background:
    linear-gradient(90deg, rgb(60 40 10 / 0.16), rgb(60 40 10 / 0) 9%),
    repeating-radial-gradient(circle at 50% 46%, transparent 0 13px, var(--paper-line) 13px 14px, transparent 14px 27px),
    var(--paper);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.04), 10px 24px 50px -18px rgb(var(--shade) / calc(var(--shade-a) + 0.2));
  color: var(--paper-ink);
  overflow: hidden;
  transform: rotate(calc(2.5deg - var(--p, 0.5) * 3deg));
}
.passport-page::before {
  /* Soften the security pattern so stamps stay legible. */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--paper) 30%, transparent), color-mix(in srgb, var(--paper) 78%, transparent) 70%);
}
.page-head {
  position: absolute;
  inset: 6% 8% auto 12%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid color-mix(in srgb, var(--paper-ink) 30%, transparent);
  padding-bottom: 6px;
}
.page-head span:first-child { font-family: var(--serif); font-size: clamp(1rem, 0.8rem + 0.8vw, 1.3rem); }
.page-head span:last-child { font-size: 0.82rem; }
.page-num { position: absolute; bottom: 4%; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 0.75rem; }
.stamps { position: absolute; inset: 15% 6% 9% 11%; }
.stamp { position: absolute; transform: rotate(var(--r)); opacity: 0.88; }
.stamp text { fill: currentColor; }
.stamp .place { font-family: var(--sans); font-weight: 850; font-stretch: 72%; letter-spacing: 0.02em; }
.stamp .date { font-family: var(--mono); font-weight: 600; }
.stamp .note { font-family: var(--serif); }
.stamp--a { color: var(--stamp-navy); width: 44%; left: 0; top: 2%; --r: -9deg; }
.stamp--b { color: var(--stamp-crimson); width: 50%; right: 0; top: 6%; --r: 6deg; }
.stamp--c { color: var(--stamp-forest); width: 45%; left: 6%; bottom: 4%; --r: -3deg; }
.stamp--d { color: var(--stamp-violet); width: 47%; right: 1%; bottom: 14%; --r: 10deg; opacity: 0.76; }
.goose {
  position: absolute;
  width: clamp(110px, 34%, 190px);
  left: -9%;
  bottom: 34px;
  pointer-events: none;
  filter: drop-shadow(2px 6px 8px rgb(var(--shade) / 0.25));
}

/* ---------- Plan ---------- */

.band--plan { background: linear-gradient(var(--page), var(--sky) 220px, var(--sky) calc(100% - 220px), var(--dawn)); padding-top: clamp(24px, 3vw, 48px); }
.band--passport { padding-top: clamp(88px, 11vw, 168px); }
/* A route between chapters: the plane crosses as you scroll. */
.route {
  --t: clamp(0, calc((var(--p, 0.5) - 0.08) * 2.4), 1);
  position: relative;
  height: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
  color: var(--sky-ink);
  background: radial-gradient(circle, currentColor 1.3px, transparent 1.6px) 0 50% / 10px 3px repeat-x;
}
.route::before, .route::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 6px var(--bg, var(--page)); }
.route::before { left: 0; }
.route::after { right: 0; background: var(--bg, var(--sky)); box-shadow: inset 0 0 0 2px currentColor, 0 0 0 6px var(--bg, var(--sky)); }
.route i { position: absolute; top: 50%; left: calc(3% + var(--t) * 92%); width: 20px; height: 20px; margin: -10px; background: var(--coral); clip-path: var(--plane); transform: rotate(90deg); }

.cover {
  display: grid;
  align-content: end;
  gap: 0.1em;
  margin: 0.3em -1.15em 0;
  padding: 4.6em 1.15em 0.9em;
  background: radial-gradient(circle at 78% 26%, #ffe9a8 0 7%, transparent 7.5%), linear-gradient(160deg, #a9321b, #ff6b4a 55%, #ffb02e);
  color: #fff;
}
.cover__over { color: rgb(255 255 255 / 0.9); }
.cover__title { font-family: var(--serif); font-size: 2em; line-height: 1.05; }
.cover__sub { font-size: 0.8em; opacity: 0.92; }
.days { list-style: none; margin: 0.8em 0 0; padding: 0; display: grid; gap: 0.5em; }
.days li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); align-items: baseline; gap: 0.5em; font-size: 0.8em; padding-bottom: 0.5em; border-bottom: 1px solid color-mix(in srgb, var(--rule) 80%, transparent); }
.days__photos span { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4em; }
.days__photos .tile { aspect-ratio: 1.5; border-radius: 0.55em; opacity: 1; }
.days b { font-size: 0.82em; font-weight: 800; font-stretch: 82%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky-ink); }
.options { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4em; }
.options__label { grid-column: 1 / -1; }
.option + .options__label { margin-top: 0.5em; }
.option { display: grid; gap: 0.1em; padding: 0.6em 0.7em; border-radius: 0.85em; background: var(--raised); }
.option b { font-size: 0.82em; font-weight: 700; }
.option span { font-size: 0.68em; color: var(--soft); }

.formats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.formats li {
  padding: 9px 16px 8px;
  border-radius: 10px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 0.84rem;
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-ink);
}

.shot--share .shot__stage { padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 52px) clamp(40px, 5vw, 64px); margin-block: 0; }
.browser {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  color: #142e3b;
  box-shadow: 0 30px 56px -28px rgb(var(--shade) / calc(var(--shade-a) + 0.3)), 0 0 0 1px rgb(20 46 59 / 0.1);
  transform: translate3d(0, calc((0.5 - var(--p, 0.5)) * 40px), 0) rotate(-1.5deg);
}
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e9e0c8; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgb(20 46 59 / 0.22); }
.browser__bar span { margin-left: 8px; flex: 1; padding: 4px 12px; border-radius: 8px; background: rgb(255 255 255 / 0.6); font-family: var(--mono); font-size: 0.74rem; color: #4a5c5e; }
.browser__page { padding: 20px 22px 22px; display: grid; gap: 4px; }
.browser__page .cover__over { color: #1a6659; font-size: 0.68rem; }
.browser__title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.days--web { margin-top: 12px; }
.days--web li { font-size: 0.88rem; grid-template-columns: 3.6em minmax(0, 1fr); border-bottom-color: #e7dcc2; }
.days--web b { color: #125c96; }
.browser__note { margin-top: 12px; font-size: 0.78rem; color: #4a5c5e; display: flex; align-items: center; gap: 8px; }
.browser__note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1fa08d; }

/* ---------- Friends ---------- */

.band--friends { background: linear-gradient(var(--dawn) 62%, var(--page)); }
.shot--friends .shot__stage { min-height: clamp(380px, 41vw, 510px); background: none; margin-block: 0; }
/* A postcard with an airmail edge (WingAirmailEdge). */
.postcard {
  position: absolute;
  width: min(76%, 380px);
  aspect-ratio: 1.52;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  color: #142e3b;
  box-shadow: 0 26px 48px -26px rgb(var(--shade) / calc(var(--shade-a) + 0.3)), 0 0 0 1px rgb(20 46 59 / 0.08);
}
.postcard--a { left: 2%; top: 6%; transform: translate3d(0, calc((0.5 - var(--p, 0.5)) * 30px), 0) rotate(-6deg); }
.postcard--b { right: 0; top: 34%; transform: translate3d(0, calc((0.5 - var(--p, 0.5)) * 70px), 0) rotate(5deg); }
.postcard__edge { height: 7px; flex: none; background: repeating-linear-gradient(-45deg, #a82130 0 9px, var(--paper) 9px 18px, #213b8c 18px 27px, var(--paper) 27px 36px); opacity: 0.85; }
.postcard__body { flex: 1; display: grid; grid-template-columns: 46% 1fr; gap: 14px; padding: 12px; min-height: 0; }
.postcard__photo { border-radius: 4px; background: radial-gradient(circle at 70% 28%, #fff0b8 0 9%, transparent 9.5%), radial-gradient(120% 70% at 20% 120%, #114e86 0 58%, transparent 59%), linear-gradient(#ffd9c4, #ff9a6b 60%, #ee4c7c); }
.postcard__photo--b { background: radial-gradient(90% 60% at 76% 116%, #14574d 0 60%, transparent 61%), radial-gradient(90% 56% at 14% 116%, #1fa08d 0 60%, transparent 61%), linear-gradient(#fbf0cc, #edc24f); }
.postcard__text { display: grid; align-content: start; gap: 3px; font-size: 0.82rem; color: #4a5c5e; }
.postcard__text b { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.1; color: #142e3b; margin-top: 6px; }
.postcard__text i { height: 1px; background: #d9cdb0; margin-top: 12px; }
.postcard__stamp { justify-self: end; width: 34px; height: 40px; border-radius: 3px; border: 1.5px dashed rgb(33 59 140 / 0.6); background: radial-gradient(circle, rgb(33 59 140 / 0.18) 0 34%, transparent 35%); }
.postcard__stamp--b { border-color: rgb(23 102 74 / 0.6); background: radial-gradient(circle, rgb(23 102 74 / 0.2) 0 34%, transparent 35%); }
.faces { display: flex; margin-top: 8px; }
.faces b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-size: 0.8rem; font-weight: 800; background: var(--coral-wash); color: var(--coral-ink); box-shadow: 0 0 0 2px var(--raised); }
.faces b + b { margin-left: -6px; background: var(--teal-wash); color: var(--teal-ink); }
.faces b:last-child { background: color-mix(in srgb, var(--sky-ink) 16%, var(--raised)); color: var(--sky-ink); }

/* ---------- The privacy promise: the passport cover ---------- */

.band--promise {
  margin-inline: clamp(8px, 1.8vw, 28px);
  border-radius: clamp(28px, 4vw, 56px);
  background: linear-gradient(155deg, var(--cover-top), var(--cover-bottom));
  color: var(--paper);
  isolation: isolate;
  overflow: clip;
}
.band--promise::before {
  /* The foil rule a passport cover carries inside its edge. */
  content: "";
  position: absolute;
  inset: clamp(8px, 1.2vw, 14px);
  border-radius: clamp(20px, 3.2vw, 44px);
  border: 1px solid rgb(237 209 143 / 0.4);
  pointer-events: none;
}
.band--promise::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/grain.png"); opacity: 0.08; mix-blend-mode: overlay; }
.promise__head { max-width: 44rem; }
.promise__head h2 { margin-top: 18px; color: var(--foil); font-size: clamp(2.3rem, 1.3rem + 4vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; }
.promise__head > p:last-child { margin-top: 22px; font-size: 1.15rem; color: #d5dfd7; max-width: 34em; }
.promises { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 80px); }
.promises li { padding-block: 26px 28px; border-top: 1px solid rgb(237 209 143 / 0.32); }
.promises h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.2; letter-spacing: -0.005em; }
.promises p { margin-top: 8px; color: #c9d6cf; max-width: 32em; }
.promise__more { margin-top: clamp(20px, 3vw, 36px); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--foil); text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgb(237 209 143 / 0.5); transition: gap 0.25s var(--ease), border-color 0.25s; }
.link-arrow::after { content: ""; width: 0.8em; height: 0.8em; background: currentColor; clip-path: var(--plane); transform: rotate(90deg); }
.link-arrow:hover { gap: 16px; border-color: var(--foil); }
.link-arrow:active { transform: translateY(1px); }

/* ---------- Closing and footer ---------- */

.band--closing { overflow: clip; padding-bottom: clamp(56px, 7vw, 96px); }
.band--closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.band--closing h2 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); line-height: 0.98; letter-spacing: -0.025em; max-width: 9ch; }
.band--closing p { margin-top: 22px; color: var(--soft); font-size: 1.15rem; max-width: 30em; }
.closing-goose { width: clamp(150px, 24vw, 300px); filter: drop-shadow(4px 10px 12px rgb(var(--shade) / 0.22)); }

.site-footer { padding-block: 8px 44px; font-size: 0.92rem; color: var(--soft); }
.site-footer .wrap { border-top: 1px solid var(--rule); padding-top: 28px; }
.site-footer .wrap, .site-footer__row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: baseline; }
.site-footer__row { flex: 1; }
.site-footer__sign { font-family: var(--serif); font-size: 1.05rem; color: var(--text); flex-basis: 100%; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { text-decoration-color: transparent; transition: text-decoration-color 0.2s; }
.site-footer a:hover { text-decoration-color: currentColor; }

/* ---------- Document pages (privacy, support, 404) ---------- */

.doc { padding-block: clamp(20px, 4vw, 56px) clamp(64px, 9vw, 120px); }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.2rem); line-height: 1; letter-spacing: -0.025em; padding-bottom: 28px; position: relative; }
.doc h1::before {
  /* A route under the title: a pin, a dotted line, a plane. */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 15rem);
  height: 9px;
  background:
    radial-gradient(circle at 4.5px 50%, var(--coral) 4px, transparent 4.5px) no-repeat,
    radial-gradient(circle, var(--soft) 1.2px, transparent 1.5px) 18px 50% / 9px 3px repeat-x;
}
.doc h1::after { content: ""; position: absolute; left: min(100%, 15rem); bottom: -3px; width: 17px; height: 17px; margin-left: 8px; background: var(--coral); clip-path: var(--plane); transform: rotate(90deg); }
.doc .updated { margin-top: 18px; color: var(--soft); font-size: 0.95rem; }
.doc h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.95rem); line-height: 1.15; margin-top: 56px; padding-left: 16px; position: relative; letter-spacing: -0.01em; }
.doc h2::before { content: ""; position: absolute; left: 0; top: 0.16em; bottom: 0.12em; width: 4px; border-radius: 2px; background: var(--coral); }
.doc h3 { margin-top: 30px; font-size: 1.2rem; line-height: 1.25; letter-spacing: 0; }
.doc p, .doc ul, .doc ol { margin-top: 14px; max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--coral-ink); }
.doc .intro { font-size: 1.2rem; line-height: 1.5; margin-top: 24px; }
.doc a { color: var(--teal-ink); text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.doc a:hover { text-decoration-color: currentColor; }
.doc code { font-family: var(--mono); font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--teal) 12%, transparent); overflow-wrap: anywhere; }

.faq { margin-top: 20px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  padding: 18px 44px 18px 0;
  font-weight: 650;
  font-size: 1.08rem;
  list-style: none;
  position: relative;
  transition: color 0.2s;
}
.faq summary:hover { color: var(--teal-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--coral-ink);
  transition: transform 0.3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details > *:not(summary) { margin: 0 0 18px; color: var(--soft); max-width: 68ch; }
.faq details > p + p { margin-top: -6px; }

/* ---------- Motion. Everything here is off without JavaScript and under Reduce Motion. ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Hero: the words arrive first, the stamp is pressed last. */
  .hero h1, .lead, .status p { animation: rise 0.9s var(--ease) both; }
  .lead { animation-delay: 0.12s; }
  .status p { animation-delay: 0.3s; }
  .soon { animation: press 0.6s var(--spring) 0.75s both; --r: -2deg; }
  .leg { animation: rise 0.9s var(--ease) 0.5s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  @keyframes press {
    0% { opacity: 0; transform: rotate(var(--r, 0deg)) scale(1.45); }
    100% { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); }
  }

  /* Scroll reveals. */
  .js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease), transform 1s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .feature__copy[data-reveal], .js .chapter[data-reveal], .js .promise__head[data-reveal], .js .steps[data-reveal], .js .promises[data-reveal] { opacity: 1; transform: none; }
  .js .feature__copy[data-reveal] > *, .js .chapter[data-reveal] > *, .js .promise__head[data-reveal] > *, .js .promises[data-reveal] > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  }
  .js [data-reveal].in > * { opacity: 1; transform: none; }
  .js [data-reveal] > :nth-child(2) { transition-delay: 0.08s; }
  .js [data-reveal] > :nth-child(3) { transition-delay: 0.16s; }
  .js [data-reveal] > :nth-child(4) { transition-delay: 0.24s; }
  .js [data-reveal] > :nth-child(5) { transition-delay: 0.32s; }

  /* Steps: the route draws, then each stop is pinned. */
  .js .steps::before { transform: scaleX(0); transition: transform 1.4s var(--ease) 0.1s; }
  .js .steps.in::before { transform: none; }
  .js .steps li { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
  .js .steps.in li { opacity: 1; transform: none; }
  .js .steps li:nth-child(2) { transition-delay: 0.22s; }
  .js .steps li:nth-child(3) { transition-delay: 0.44s; }
  .js .steps li:nth-child(4) { transition-delay: 0.66s; }

  /* Mail: a scan passes over the list, bookings light up, the ticket prints. */
  .js .shot--mail .mail__row { opacity: 1; background: color-mix(in srgb, var(--raised) 70%, transparent); border-left-color: transparent; transition: opacity 0.5s 1.5s, background-color 0.5s 1.5s, border-color 0.5s 1.5s; }
  .js .shot--mail.in .mail__row { opacity: 0.5; }
  .js .shot--mail.in .mail__row--hit { opacity: 1; background: var(--raised); border-left-color: var(--coral); }
  .js .shot--mail.in .mail__scan { animation: scan 1.5s cubic-bezier(0.5, 0, 0.5, 1) 0.35s both; }
  @keyframes scan {
    0% { opacity: 0; transform: translateY(0); }
    15%, 85% { opacity: 1; }
    100% { opacity: 0; transform: translateY(17.5em); }
  }
  .js .shot--mail .ticket, .js .shot--photos .finding { opacity: 0; transform: translateY(1.6em); transition: opacity 0.6s var(--ease) 1.9s, transform 0.8s var(--spring) 1.9s; }
  .js .shot--mail.in .ticket, .js .shot--photos.in .finding { opacity: 1; transform: none; }
  .js .shot--mail .stamp-tag { opacity: 0; }
  .js .shot--mail.in .stamp-tag { animation: press 0.5s var(--spring) 2.6s both; --r: -3deg; }

  /* Photos: tiles develop one by one, then the trip's photos are picked out. */
  .js .shot--photos .tile { opacity: 0; transform: scale(0.8); transition: opacity 0.5s var(--ease), transform 0.6s var(--spring); }
  .js .shot--photos.in .tile { opacity: 1; transform: none; }
  .js .shot--photos.in .tile:nth-child(n + 7) { opacity: 0.45; }
  .js .shot--photos .tile:nth-child(2) { transition-delay: 0.08s; }
  .js .shot--photos .tile:nth-child(3) { transition-delay: 0.16s; }
  .js .shot--photos .tile:nth-child(4) { transition-delay: 0.24s; }
  .js .shot--photos .tile:nth-child(5) { transition-delay: 0.32s; }
  .js .shot--photos .tile:nth-child(6) { transition-delay: 0.4s; }
  .js .shot--photos .tile:nth-child(7) { transition-delay: 0.48s; }
  .js .shot--photos .tile:nth-child(8) { transition-delay: 0.56s; }
  .js .shot--photos .tile:nth-child(9) { transition-delay: 0.64s; }
  .js .shot--photos .finding { transition-delay: 1.1s; }

  /* Floating cards arrive after the phone. */
  .js .float { opacity: 0; scale: 0.92; transition: opacity 0.6s var(--ease) 0.7s, scale 0.8s var(--spring) 0.7s; }
  .js .in .float { opacity: 1; scale: 1; }
  .js .in .float + .float { transition-delay: 1s; }
  .js .shot--mail .float { transition-delay: 2.3s; }

  /* Plan: days are written in, one line at a time. */
  .js .shot--plan .days li, .js .shot--share .days li { opacity: 0; transform: translateX(-0.8em); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }
  .js .shot--plan.in .days li, .js .shot--share.in .days li { opacity: 1; transform: none; }
  .js .days li:nth-child(1) { transition-delay: 0.5s; }
  .js .days li:nth-child(2) { transition-delay: 0.68s; }
  .js .days li:nth-child(3) { transition-delay: 0.86s; }
  .js .days li:nth-child(4) { transition-delay: 1.04s; }

  /* Passport: each stamp is pressed down once (WingStampIn). */
  .js .passport .stamp { opacity: 0; }
  .js .passport.in .stamp { animation: press-ink 0.52s var(--spring) both; }
  .js .passport.in .stamp--a { animation-delay: 0.35s; }
  .js .passport.in .stamp--b { animation-delay: 0.62s; }
  .js .passport.in .stamp--c { animation-delay: 0.89s; }
  .js .passport.in .stamp--d { animation-delay: 1.16s; --o: 0.76; }
  @keyframes press-ink {
    0% { opacity: 0; transform: rotate(var(--r)) scale(1.4); }
    100% { opacity: var(--o, 0.88); transform: rotate(var(--r)) scale(1); }
  }

  /* The goose rises and falls slowly (WingBob). */
  .goose, .closing-goose { animation: bob 2.2s ease-in-out infinite alternate; }
  @keyframes bob { from { translate: 0 3px; } to { translate: 0 -4px; } }

  .replay__track b { animation: ping 2s ease-out infinite; }
  @keyframes ping { from { box-shadow: 0 0 0 0 rgb(255 107 74 / 0.55); } to { box-shadow: 0 0 0 0.75em rgb(255 107 74 / 0); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */

/* Narrower desktops: keep the whole globe inside the hero. */
@media (max-width: 1200px) and (min-width: 961px) {
  .globe { width: 112%; margin-inline: -4% -8%; }
}
/* Short screens: the headline gives way so the status line stays above the fold. */
@media (max-height: 800px) and (min-width: 961px) {
  .hero { padding-block: 92px 84px; }
  .hero h1 { font-size: clamp(2.6rem, 1rem + 6.4vh, 4.5rem); }
  .lead { font-size: 1.05rem; margin-top: 18px; }
  .status { margin-top: 24px; }
  .globe { width: 108%; margin-inline: -2% -6%; }
}

@media (max-width: 960px) {
  .hero { padding-bottom: clamp(72px, 12vw, 110px); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero h1 { max-width: 12ch; }
  .globe { width: 108%; max-width: 560px; margin-inline: auto; left: -4%; }
  .hero__stage { max-width: 600px; margin-inline: auto; width: 100%; }
  .leg { left: 0; bottom: -2%; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }

  .feature { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .feature > .feature__copy, .feature--flip > .feature__copy { grid-column: 1; grid-row: 1; }
  .feature > .shot, .feature > .passport, .feature--flip > .shot, .feature--flip > .passport { grid-column: 1; grid-row: 2; }
  .shot, .passport { width: 100%; max-width: 520px; margin-inline: auto; }
  .promises { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-nav a { padding-inline: 9px; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  .steps::before {
    display: block;
    top: 20px;
    bottom: 30px;
    left: 18.5px;
    right: auto;
    width: 3px;
    height: auto;
    background: radial-gradient(circle, var(--soft) 1.3px, transparent 1.6px) 50% 0 / 3px 9px repeat-y;
    transform-origin: top;
  }
  .js .steps::before { transform: scaleY(0); }
  .steps li { padding-left: 60px; }
  .steps li::before { position: absolute; left: 0; top: -6px; margin: 0; }
  .float { font-size: 0.9rem; padding: 10px 12px 11px; border-radius: 14px; max-width: 10.2rem; }
  .float { transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * -40px), 0); }
  .float__big { font-size: 1.5rem; }
  .float__mid { font-size: 0.98rem; }
  .float__sub { font-size: 0.76rem; }
  .float--mail { left: -2%; bottom: 17%; }
  .float--photos, .float--fare { right: -2%; top: 9%; }
  .float--sale { left: -2%; bottom: 27%; }
  /* On a phone the share card sits in the flow under the browser, so it never covers the caption. */
  .float--link { position: relative; right: auto; bottom: auto; justify-self: end; margin-top: 12px; max-width: 13rem; transform: none; }
  .float--group { left: -1%; bottom: 0; max-width: 11rem; }
  .stats { gap: 0 14px; }
  .stats dd { font-size: clamp(1.7rem, 9.6vw, 2.5rem); }
  .stats div { padding-left: 12px; }
  .stats dt { font-size: 0.8rem; }
  .postcard { width: 82%; }
  .postcard__text { font-size: 0.74rem; }
  .postcard__text b { font-size: 1.15rem; }
  .shot--friends .shot__stage { min-height: 340px; }
  .band--closing .wrap { grid-template-columns: minmax(0, 1fr); }
  .closing-goose { justify-self: end; width: 150px; margin-top: -12px; }
  .goose { width: 104px; bottom: 44px; }
}
