/* Jetsavia — «Вид из иллюминатора»
   Palette of the sky at cruising altitude at golden hour: stratosphere navy above, cloud white below,
   one line of gold light on the horizon. Gold is light, not paint: it appears as thin lines and glints only.
   Type: Oranienbaum (a Petersburg high-contrast antiqua, one weight) for headlines and figures,
   Ysabeau (humanist sans, variable) for text and interface. */

:root {
  --night: #0a1630;
  --night-2: #101f40;
  --navy: #13254d;
  --dusk: #2b4c8f;
  --haze: #8ea1c4;
  --ink: #101a2e;
  --ink-2: #4a556b;
  --ink-3: #788296;
  --cloud: #f1f3f6;
  --paper: #ffffff;
  --mist: #e5e9f0;
  --mist-2: #d3dbe6;
  --line: rgba(16, 26, 46, 0.12);
  --line-strong: rgba(16, 26, 46, 0.24);
  --gold: #d2b07a;
  --gold-pale: #ecd9b2;
  --gold-deep: #9a7744;
  --on-night: #eef1f6;
  --on-night-2: rgba(238, 241, 246, 0.68);
  --night-line: rgba(238, 241, 246, 0.14);
  --focus: var(--dusk);

  --display: 'Oranienbaum', 'Times New Roman', Georgia, serif;
  --sans: 'Ysabeau', 'Helvetica Neue', Arial, sans-serif;

  --fs-hero: clamp(64px, 11.4vw, 188px);
  --fs-h2: clamp(46px, 5.9vw, 98px);
  --fs-h3: clamp(26px, 2.2vw, 34px);
  --fs-lead: clamp(18.5px, 1.4vw, 21.5px);
  --fs-small: 15px;
  --fs-micro: 13.5px;

  --gutter: clamp(20px, 4.6vw, 80px);
  --max: 1400px;
  --section: clamp(100px, 12vw, 190px);
  --header-h: 76px;

  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
  /* corners of an aircraft window, for photographs framed as windows */
  --win: 46% / 32%;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-float: 0 40px 80px -40px rgba(10, 22, 48, 0.55);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font: 430 17.5px/1.6 var(--sans);
  font-variant-numeric: lining-nums;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
::selection { background: var(--gold-pale); color: var(--night); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 0.98;
}
.h2 { font-size: var(--fs-h2); }
.h3 { font-family: var(--display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); color: var(--ink-3); line-height: 1.5; }

/* ---------- brand ---------- */
.mark__frame { fill: var(--mk-frame, currentColor); }
.mark__sky { fill: var(--mk-sky, currentColor); }
.mark__hz { fill: none; stroke: var(--mk-gold, var(--gold)); stroke-width: 3.4; }
.logo__word { fill: currentColor; }
.word path { fill: currentColor; }

/* ---------- buttons & links ---------- */
.btn {
  --fill: var(--dusk);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15.5px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), opacity 0.3s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--fill);
  transform: translateY(102%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled::before { display: none; }
.btn--navy { background: var(--navy); color: #fff; --fill: var(--dusk); }
.btn--light { background: var(--cloud); color: var(--night); --fill: var(--gold-pale); }
.btn--glass { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); --fill: #fff; }
.btn--glass:hover, .btn--glass:focus-visible { color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); --fill: var(--navy); }
.btn--line:hover, .btn--line:focus-visible { color: #fff; border-color: var(--navy); }
.btn--line-light { background: transparent; color: var(--on-night); border-color: rgba(238, 241, 246, 0.35); --fill: var(--on-night); }
.btn--line-light:hover, .btn--line-light:focus-visible { color: var(--night); }
.btn--small { height: 46px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }

.tlink {
  display: inline-block;
  padding-bottom: 4px;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  border: 0;
  background-color: transparent;
  font: inherit;
  font-weight: 550;
  color: inherit;
}
.tlink:hover { animation: underline-pass 0.7s var(--ease-out); }
@keyframes underline-pass {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0 1px; background-position: 100% 100%; }
  46% { background-size: 0 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

.icon { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- preloader: the window frame is drawn, the horizon lights up ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--on-night);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-out);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__inner { display: grid; justify-items: center; gap: 26px; }
.preloader .mark { width: 64px; height: auto; overflow: visible; --mk-sky: var(--dusk); }
.preloader .mark__frame { fill: var(--on-night); clip-path: inset(100% 0 0 0); animation: pre-frame 0.8s 0.05s var(--ease-out) forwards; }
.preloader .mark__sky { opacity: 0; animation: pre-fade 0.7s 0.4s var(--ease) forwards; }
.preloader .mark__hz { stroke-dasharray: 70; stroke-dashoffset: 70; animation: pre-line 0.8s 0.55s var(--ease-out) forwards; }
.preloader .word { width: 150px; opacity: 0; transform: translateY(8px); animation: pre-word 0.7s 0.6s var(--ease-out) forwards; }
@keyframes pre-frame { to { clip-path: inset(0 0 0 0); } }
@keyframes pre-fade { to { opacity: 1; } }
@keyframes pre-line { to { stroke-dashoffset: 0; } }
@keyframes pre-word { to { opacity: 1; transform: none; } }

/* ---------- header: a floating glass bar ---------- */
.site-header {
  position: fixed;
  inset: 12px auto auto 50%;
  z-index: 60;
  width: min(100% - 24px, 1360px);
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 10px 0 24px;
  border-radius: 999px;
  color: var(--on-night);
  background: rgba(10, 22, 48, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transform: translateX(-50%);
  transition: transform 0.6s var(--ease-out), background-color 0.4s, color 0.4s, box-shadow 0.4s, border-color 0.4s;
  --mk-sky: var(--dusk);
}
.site-header.is-solid {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(16, 26, 46, 0.08);
  box-shadow: 0 18px 50px -28px rgba(10, 22, 48, 0.45);
  --mk-sky: var(--navy);
}
.site-header.is-hidden { transform: translate(-50%, calc(-100% - 24px)); }
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; flex: none; }
.brand .logo { height: 34px; width: auto; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: 16px; font-weight: 520; letter-spacing: 0.005em; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: clamp(12px, 2vw, 28px); }
.header-actions .tlink { font-size: 15.5px; }
.header-phone { white-space: nowrap; }
.site-header:not(.is-solid) .btn--navy { background: var(--cloud); color: var(--night); --fill: var(--gold-pale); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; color: inherit; margin-left: auto; }
.burger span { display: block; width: 24px; height: 1.5px; margin: 6px auto; background: currentColor; transition: transform 0.4s var(--ease-out); }
.burger[aria-expanded='true'] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: safe flex-end;
  gap: 4px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--night);
  color: var(--on-night);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-out);
  visibility: hidden;
  --focus: var(--gold);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu > * { flex-shrink: 0; }
.mobile-menu > a:not(.btn) { font: 400 clamp(38px, 10.5vw, 64px)/1.1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.mobile-menu__contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mobile-menu__contacts:empty { display: none; }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
body.menu-open .site-header { color: var(--on-night); background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; --mk-sky: var(--dusk); }

/* ---------- hero film ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: var(--night);
  --focus: var(--gold);
}
.film { position: absolute; inset: 0; }
.film__still { position: absolute; inset: 0; }
.film__still img { width: 100%; height: 100%; object-fit: cover; }
/* hide the headline until the intro animation takes over, so it never jumps on load */
.intro-wait .hero__title .line > span { transform: translateY(112%); }
.intro-wait :is(.hero__lead, .hero__actions, .dock, .film-index) { opacity: 0; }
.film__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1.6s var(--ease), transform 12s linear;
}
.film__clip.is-active { opacity: 1; transform: scale(1); }
.film__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 48, 0.5) 0%, rgba(10, 22, 48, 0) 22%, rgba(10, 22, 48, 0) 40%, rgba(10, 22, 48, 0.55) 72%, rgba(10, 22, 48, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 22, 48, 0.55) 0%, rgba(10, 22, 48, 0) 60%);
}
.hero__content {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--dock-h, 160px) + clamp(36px, 6vh, 72px));
  z-index: 2;
  max-width: 980px;
}
.hero__title { font-size: var(--fs-hero); line-height: 0.9; letter-spacing: -0.016em; }
/* each line is a mask for the rise-in; the padding keeps descenders, accents and the full stop inside it */
.hero__title .line { display: block; overflow: hidden; padding: 0.08em 0.1em 0.2em; margin: -0.08em -0.1em -0.2em; }
.hero__title .line > span { display: block; }
.hero__lead { margin: 30px 0 34px; max-width: 34ch; font-size: var(--fs-lead); line-height: 1.5; font-weight: 450; color: rgba(255, 255, 255, 0.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.film-index {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--dock-h, 160px) + clamp(36px, 6vh, 72px));
  z-index: 2;
  width: 260px;
  display: grid;
  gap: 14px;
}
.film-index__caption { margin: 0 0 4px; font: 400 24px/1.2 var(--display); min-height: 1.2em; }
.film-index__list { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: end; }
.film-chapter { border: 0; background: none; padding: 0; text-align: left; color: rgba(255, 255, 255, 0.62); font-size: 14px; font-weight: 520; transition: color 0.3s; }
.film-chapter[aria-current='true'] { color: #fff; }
.film-chapter__bar { display: block; height: 1px; margin-top: 9px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.film-chapter__bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.film-toggle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); background: transparent; color: #fff; display: grid; place-items: center; padding: 0; }
.film-toggle .icon { width: 14px; height: 14px; }

.hero.is-cinema .hero__content, .hero.is-cinema .dock, .hero.is-cinema .film-index__caption { opacity: 0 !important; pointer-events: none; }
body.cinema .site-header { transform: translate(-50%, calc(-100% - 24px)) !important; }
.hero.is-cinema .film__shade { opacity: 0.25; }
.hero__content, .dock, .film-index__caption, .film__shade { transition: opacity 0.8s var(--ease); }
.cinema-close { position: absolute; top: calc(var(--header-h) + 14px); right: var(--gutter); z-index: 4; display: none; }
.hero.is-cinema .cinema-close { display: inline-flex; }

/* ---------- search dock ---------- */
.dock {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 26px;
  z-index: 3;
  max-width: var(--max);
  margin-inline: auto;
  padding: 10px 12px 12px 8px;
  border-radius: 18px;
  background: rgba(246, 247, 250, 0.95);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  --focus: var(--dusk);
}
.dock__trips { display: flex; gap: 22px; padding: 6px 20px 8px; scrollbar-width: none; }
.dock__trips::-webkit-scrollbar, .onboard__track::-webkit-scrollbar { display: none; }
.trip-tab { position: relative; border: 0; background: transparent; padding: 6px 0; font-size: 15px; font-weight: 520; color: var(--ink-3); transition: color 0.3s; }
.trip-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-deep); transform: scaleX(0); transition: transform 0.45s var(--ease-out); }
.trip-tab[aria-pressed='true'] { color: var(--navy); }
.trip-tab[aria-pressed='true']::after { transform: scaleX(1); }
.dock__row { display: grid; grid-template-columns: 1fr auto 1fr 1fr 0.8fr auto; align-items: center; }
.dock__row.has-return { grid-template-columns: 1fr auto 1fr 0.9fr 0.9fr 0.7fr auto; }
.field { display: grid; gap: 2px; padding: 6px 20px; border-left: 1px solid var(--line); min-width: 0; position: relative; }
.field:first-child { border-left: 0; }
.field > span { font-size: 13.5px; color: var(--ink-3); font-weight: 480; }
.field select, .field input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 2px 22px 2px 0;
  font-size: 18px;
  font-weight: 560;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  min-height: 30px;
  border-radius: 6px;
  text-overflow: ellipsis;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23788296' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.field input[type='date'], .field input[type='time'] { padding-right: 0; }
.field input::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.swap { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 0; color: var(--navy); transition: transform 0.6s var(--ease-out), border-color 0.3s; margin: 0 -4px; z-index: 1; }
.swap:hover { transform: rotate(180deg); border-color: var(--navy); }
.swap .icon { width: 18px; height: 18px; }
.dock__row .field:nth-of-type(2) { border-left: 0; }
.dock .btn { height: 62px; padding: 0 34px; margin-left: 10px; border-radius: 12px; }
.dock__note { display: flex; justify-content: space-between; gap: 16px; padding: 10px 20px 2px; font-size: 14px; color: var(--ink-3); }
.form-error { color: #9b3b26; font-size: 14.5px; margin: 8px 14px 0; min-height: 0; }
.form-error:empty { display: none; }

/* ---------- porthole (signature): the window opens into the sky ---------- */
.porthole { position: relative; height: 290vh; background: var(--cloud); }
.porthole__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.porthole__window {
  --w: 300px;
  --h: 420px;
  --rx: 138px;
  --ry: 134px;
  --ring: 1;
  position: relative;
  z-index: 2;
  width: var(--w);
  height: var(--h);
  border-radius: var(--rx) / var(--ry);
  overflow: hidden;
  background: #9fb2cf;
  box-shadow:
    0 0 0 calc(16px * var(--ring)) #fff,
    0 0 0 calc(17px * var(--ring)) rgba(16, 26, 46, calc(0.1 * var(--ring))),
    0 50px 90px -40px rgba(16, 26, 46, calc(0.55 * var(--ring)));
  will-change: width, height, border-radius;
}
.porthole__window video, .porthole__window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.porthole__glass { position: absolute; inset: 0; background: radial-gradient(120% 80% at 30% 20%, rgba(255, 255, 255, 0.26), transparent 46%); opacity: var(--ring); pointer-events: none; }
.porthole__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 48, 0.66), rgba(10, 22, 48, 0.08) 62%), linear-gradient(0deg, rgba(10, 22, 48, 0.5), transparent 45%); opacity: 0; }
.porthole__word {
  position: absolute;
  top: 50%;
  z-index: 1;
  margin: 0;
  font: 400 clamp(40px, 4.8vw, 86px)/1 var(--display);
  letter-spacing: -0.01em;
  color: var(--navy);
  white-space: nowrap;
  transform: translateY(-50%);
}
.porthole__word--left { right: calc(50% + var(--w0, 300px) / 2 + 3.4vw); text-align: right; }
.porthole__word--right { left: calc(50% + var(--w0, 300px) / 2 + 3.4vw); }
.porthole__hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--ink-3); }
.porthole__copy {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: clamp(60px, 10vh, 120px);
  max-width: 600px;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  --focus: var(--gold);
}
.porthole__copy h2 { font-size: clamp(44px, 5.2vw, 84px); margin-bottom: 24px; }
.porthole__copy p { color: rgba(255, 255, 255, 0.88); font-size: var(--fs-lead); line-height: 1.55; max-width: 34ch; margin-bottom: 30px; }
.porthole__alt { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(60px, 10vh, 120px); color: rgba(255, 255, 255, 0.82); font-size: 15px; text-align: right; opacity: 0; }
.porthole__alt strong { display: block; font: 400 clamp(46px, 4.6vw, 72px)/1 var(--display); color: #fff; margin-bottom: 10px; }

/* ---------- onboard (horizontal story) ---------- */
.onboard { position: relative; background: var(--paper); }
.onboard__pin { position: relative; display: flex; flex-direction: column; gap: clamp(30px, 5vh, 56px); padding: var(--section) 0; }
.onboard.is-pinned .onboard__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; justify-content: center; padding: 0; }
.onboard__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.onboard__head h2 { max-width: 14ch; }
.onboard__head .lead { margin: 0; max-width: 34ch; }
.onboard__track { display: flex; align-items: flex-end; gap: clamp(24px, 2.8vw, 44px); padding: 0 var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.story { scroll-snap-align: start; }
.onboard.is-pinned .onboard__track { overflow: visible; scroll-snap-type: none; padding-bottom: 0; will-change: transform; }
.story { flex: none; width: clamp(240px, 22vw, 340px); }
.story--wide { width: clamp(320px, 40vw, 620px); }
/* tall stories are framed as windows, wide ones as the cabin */
.story__img { position: relative; overflow: hidden; height: min(54vh, 500px); border-radius: var(--win); background: var(--mist); box-shadow: 0 0 0 9px var(--cloud), 0 0 0 10px var(--line); }
.story--wide .story__img { height: min(40vh, 390px); border-radius: var(--r-lg); box-shadow: none; }
.story__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease-out); }
.story:hover .story__img img { transform: scale(1.02); }
.story h3 { margin: 22px 0 8px; font-size: clamp(26px, 2vw, 32px); }
.story p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 36ch; }
.onboard__progress { display: none; margin: 0 var(--gutter); height: 1px; background: var(--line); }
.onboard.is-pinned .onboard__progress { display: block; }
.onboard__progress i { display: block; height: 100%; background: var(--gold-deep); transform: scaleX(0); transform-origin: left; }

/* ---------- globe ---------- */
.globe-section {
  position: relative;
  overflow: hidden;
  padding: var(--section) 0;
  background: radial-gradient(70% 60% at 72% 46%, #13244c 0%, var(--night) 70%);
  color: var(--on-night);
  --focus: var(--gold);
}
.globe-section::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.55), transparent), radial-gradient(1px 1px at 80% 12%, rgba(255, 255, 255, 0.45), transparent), radial-gradient(1px 1px at 62% 84%, rgba(255, 255, 255, 0.4), transparent), radial-gradient(1px 1px at 8% 76%, rgba(255, 255, 255, 0.35), transparent), radial-gradient(1.5px 1.5px at 92% 58%, rgba(236, 217, 178, 0.6), transparent); pointer-events: none; }
.globe-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.globe-copy h2 { font-size: clamp(60px, 7.4vw, 124px); line-height: 0.95; margin-bottom: 24px; }
.globe-copy .lead { color: var(--on-night-2); margin-bottom: 34px; }
.routes { display: grid; border-top: 1px solid var(--night-line); }
.route {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--night-line);
  background: transparent;
  color: var(--on-night-2);
  text-align: left;
  transition: color 0.4s;
}
.route:hover { color: var(--on-night); }
.route__dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; transition: all 0.4s; }
.route strong { display: block; font: 400 clamp(25px, 2.1vw, 32px)/1.15 var(--display); color: inherit; margin-bottom: 4px; }
.route small { font-size: 15px; }
.route__time { font-size: 15px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.route[aria-pressed='true'] { color: #fff; }
.route[aria-pressed='true'] .route__dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(210, 176, 122, 0.18); }
.route-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 34px; margin: 28px 0 32px; }
.route-facts dt { font-size: 14px; color: var(--on-night-2); }
.route-facts dd { margin: 4px 0 0; font: 400 25px/1.15 var(--display); color: #fff; }
.globe-stage { position: relative; }
.globe-hint { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; color: var(--on-night-2); }

.aurel-globe { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.08; min-height: min(420px, 92vw); overflow: hidden; contain: layout paint; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.aurel-globe.is-dragging { cursor: grabbing; touch-action: none; }
.aurel-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.aurel-globe .aurel-globe-overlay { z-index: 2; }
.aurel-globe-pin { position: absolute; z-index: 3; pointer-events: none; white-space: nowrap; line-height: 1.3; transition: opacity 0.3s; text-shadow: 0 2px 14px #0a1630; }
.aurel-globe-pin strong { display: block; font-size: 15px; font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: 0.08em; color: #fff; }
.aurel-globe-pin span { display: block; font-size: 13px; color: var(--haze); }
.aurel-globe-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- faq ---------- */
.faq { padding: var(--section) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 40px); }
.faq__aside p { margin-top: 22px; color: var(--ink-2); max-width: 30ch; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; cursor: pointer; font: 400 clamp(22px, 1.75vw, 28px)/1.25 var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa__sign { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color 0.4s, border-color 0.4s; }
.qa__sign::before, .qa__sign::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.45s var(--ease-out), background-color 0.4s; }
.qa__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__sign { background: var(--navy); border-color: var(--navy); }
.qa[open] .qa__sign::before, .qa[open] .qa__sign::after { background: #fff; }
.qa[open] .qa__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__body { overflow: hidden; }
.qa__body p { margin: 0; padding: 0 60px 28px 0; color: var(--ink-2); max-width: 62ch; }

/* ---------- modal, toast ---------- */
html.modal-open { overflow: hidden; }
dialog.modal { overscroll-behavior: contain; }
dialog.modal { width: min(940px, calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 50px 120px -30px rgba(10, 22, 48, 0.6); overflow: auto; }
dialog.modal::backdrop { background: rgba(10, 22, 48, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.modal[open] { animation: modal-in 0.55s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.modal__close { position: sticky; top: 14px; float: right; margin: 14px 14px -58px 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); box-shadow: 0 6px 20px rgba(10, 22, 48, 0.15); display: grid; place-items: center; }
.modal__close .icon { width: 18px; height: 18px; }
.modal__media { position: relative; aspect-ratio: 16 / 7.5; background: var(--mist-2); overflow: hidden; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(26px, 4vw, 48px); }
.modal__body h2 { font-size: clamp(38px, 4.2vw, 60px); margin: 6px 0 14px; }
.modal__eyebrow { font-size: 15px; color: var(--ink-3); }
.modal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.price-tag small { display: block; font-size: 14px; color: var(--ink-3); }
.price-tag strong { font: 600 clamp(26px, 2.3vw, 32px)/1.1 var(--sans); letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
.notice { padding: 14px 18px; border-radius: var(--r-md); background: var(--mist); color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.notice--night { background: rgba(255, 255, 255, 0.06); color: var(--on-night-2); }
.tabs { display: flex; gap: 6px; margin: 26px 0 18px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 10px 4px; margin-right: 18px; font-size: 16px; font-weight: 520; color: var(--ink-3); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected='true'] { color: var(--ink); border-color: var(--gold-deep); }
.detail-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0 8px; }
.detail-specs div { padding: 16px; border-radius: var(--r-md); background: var(--cloud); }
.detail-specs strong { display: block; font: 400 27px/1.1 var(--display); }
.detail-specs span { font-size: 14px; color: var(--ink-3); }
.ticks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.ticks li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); transform: translateY(-2px); }
.breakdown { display: grid; gap: 0; margin: 10px 0 16px; font-variant-numeric: lining-nums tabular-nums; }
.breakdown div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.breakdown .total { font-weight: 600; border-bottom: 0; }
.seat-plan { display: grid; grid-template-columns: repeat(4, 34px); gap: 10px 18px; padding: 22px; border-radius: 999px / 60px; background: var(--cloud); width: max-content; margin: 16px 0; }
.seat-plan span { width: 34px; height: 30px; border-radius: 10px 10px 6px 6px; background: #fff; border: 1px solid var(--line-strong); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0 16px; }
.input { display: grid; gap: 6px; }
.input span { font-size: 14px; color: var(--ink-3); }
.input input, .input select, .input textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; padding: 13px 15px; font-size: 16.5px; -webkit-appearance: none; appearance: none; }
.input select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23788296' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 36px; }
.input textarea { min-height: 110px; resize: vertical; }
.input input:focus, .input select:focus, .input textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43, 76, 143, 0.18); }
.input--wide { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.success-mark { width: 44px; height: auto; margin-bottom: 20px; color: var(--navy); --mk-sky: var(--navy); }

.toast { inset: auto; margin: 0; border: 0; overflow: visible; }
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 120; transform: translate(-50%, 160%); width: max-content; text-align: center; line-height: 1.45; padding: 14px 22px; border-radius: var(--r-md); background: var(--night); color: #fff; font-size: 15.5px; box-shadow: var(--shadow-float); transition: transform 0.6s var(--ease-out); max-width: calc(100% - 32px); }
.toast.is-shown { transform: translate(-50%, 0); }
/* keep the message clear of the compare bar on the flights page */
body:has(#compare-bar:not([hidden])) .toast { bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

/* ---------- interior pages (calculator, documents) ---------- */
.page { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 var(--section); min-height: 80vh; }
.page-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 40px; margin-bottom: 34px; }
.page-title h1 { font-size: clamp(52px, 6vw, 96px); }
.page-title .lead { margin: 14px 0 0; }
.subnav { display: flex; gap: 26px; }
.subnav a { text-decoration: none; padding: 8px 0; color: var(--ink-2); border-bottom: 1px solid transparent; font-size: 16px; font-weight: 520; }
.subnav a[aria-current='page'] { color: var(--ink); border-color: var(--gold-deep); }
.subnav b { font-weight: 600; color: var(--navy); margin-left: 4px; }

.search-card { position: relative; padding: 10px 12px 12px 8px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 30px 60px -44px rgba(10, 22, 48, 0.45); margin-bottom: 18px; }
.search-card .dock__row.extra { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.search-card .dock__row.extra .field:first-child { border-left: 0; }
.extras-toggle { border: 0; background: none; color: var(--navy); font-size: 14.5px; font-weight: 550; padding: 0; }

.pass { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.pass__code { font: 560 clamp(44px, 3.8vw, 60px)/1 var(--sans); letter-spacing: 0.02em; }
.pass__city { font-size: 15px; color: var(--ink-3); margin-top: 6px; }
.pass__arc { width: clamp(110px, 22vw, 300px); height: 50px; color: var(--gold-deep); }
.pass > div:last-child { text-align: right; }
.pass__swift { position: absolute; left: 50%; top: calc(50% - 26px); width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(210, 176, 122, 0.22); transform: translateX(-50%); }
.pass__swift svg { display: none; }

.results-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; margin-top: 30px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.toolbar h2 { font: 400 36px/1.05 var(--display); }
.toolbar__controls { display: flex; gap: 10px; }
.select-pill { border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 36px 9px 16px; font-size: 15px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23788296' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; transition: all 0.3s; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }

.results-main { container-type: inline-size; min-width: 0; }
@container (max-width: 640px) {
  .result { grid-template-columns: 1fr !important; }
  .result__media { min-height: 0 !important; aspect-ratio: 16 / 9; }
  .result__top { flex-direction: column; gap: 2px; }
  .result__body { padding: 22px 22px 24px; }
}
.result { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line); margin-bottom: 18px; transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.result:hover { box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(10, 22, 48, 0.4); transform: translateY(-2px); }
.result__media { position: relative; min-height: 250px; background: linear-gradient(180deg, #bccbe0, #e1e7f0); }
.result__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fav { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; color: var(--navy); transition: transform 0.4s var(--ease-out); }
.fav:hover { transform: scale(1.08); }
.fav .icon { width: 19px; height: 19px; }
.fav[aria-pressed='true'] .icon { fill: var(--gold-deep); stroke: var(--gold-deep); }
.photo-note { position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 22, 48, 0.45); color: #fff; font-size: 13px; }
.result__body { padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.result__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--ink-3); }
.result h3 { font: 400 clamp(30px, 2.6vw, 40px)/1.05 var(--display); }
.result__specs { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--ink-2); }
.result__specs span { display: inline-flex; align-items: center; gap: 7px; }
.result__specs .icon { width: 17px; height: 17px; color: var(--navy); }
.result__bottom { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.result__actions { display: flex; align-items: center; gap: 16px; }
.compare-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.compare-toggle input { width: 17px; height: 17px; accent-color: var(--navy); }

.side { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 1px 0 var(--line); }
.side h2 { font: 450 16px/1.4 var(--sans); color: var(--ink-3); margin-bottom: 12px; }
.routemap { width: 100%; height: auto; border-radius: var(--r-md); background: #e9eef5; margin-bottom: 18px; }
.routemap .land { fill: #cbd6e5; }
.routemap .arc { fill: none; stroke: var(--gold-deep); stroke-width: 1.6; stroke-linecap: round; }
.routemap .pt { fill: var(--navy); }
.routemap text { font: 600 11px var(--sans); fill: var(--navy); letter-spacing: 0.08em; }
.side-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.side-row span:first-child { color: var(--ink-3); }
.budget { margin: 18px 0; }
.budget input[type='range'] { width: 100%; accent-color: var(--navy); margin: 10px 0 4px; }
.empty-state { padding: 46px; border-radius: var(--r-lg); background: #fff; text-align: left; }
.empty-state h2 { font: 400 clamp(36px, 3.4vw, 50px)/1.05 var(--display); margin: 8px 0 14px; }
.empty-state p { color: var(--ink-2); max-width: 46ch; }

.compare-bar { position: fixed; left: 50%; bottom: 22px; z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 22px; border-radius: 999px; background: var(--night); color: #fff; box-shadow: var(--shadow-float); font-size: 15.5px; --focus: var(--gold); }
.compare-bar[hidden] { display: none; }
.compare-bar .icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; display: grid; place-items: center; }
.comparison { overflow-x: auto; margin-top: 18px; }
.comparison table { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: lining-nums tabular-nums; }
.comparison th, .comparison td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 15.5px; vertical-align: top; }
.comparison th { font: 400 23px/1.15 var(--display); }
.comparison td:first-child { color: var(--ink-3); font-size: 14.5px; }

.request-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 26px 30px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 1px 0 var(--line); margin-bottom: 14px; }
.request-card h3 { font: 400 32px/1.1 var(--display); margin: 8px 0 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--navy); font-size: 14px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-deep); }

.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 30px 0 60px; }
.doc { display: grid; gap: 10px; padding: 30px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 1px 0 var(--line); text-decoration: none; transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.doc:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(10, 22, 48, 0.35); }
.doc h3 { font: 400 34px/1.05 var(--display); }
.doc p { margin: 0; color: var(--ink-2); }
.doc span { font-size: 15px; color: var(--navy); }
.prose { max-width: 70ch; }
.prose h2 { font: 400 clamp(34px, 3.2vw, 48px)/1.08 var(--display); margin: 60px 0 18px; }
.prose p, .prose li { color: var(--ink-2); }
.credits { columns: 2; column-gap: 40px; font-size: 15px; color: var(--ink-3); padding-left: 18px; }
.credits li { break-inside: avoid; margin-bottom: 6px; }

/* ---------- shared: section heads, reveals ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.72fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(44px, 5.4vw, 72px); }
.section-head .lead { margin: 0; }
/* words of [data-split] headings rise out of a blur; JS adds .w spans and .is-in */
.js-motion [data-split] .w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(0.42em); transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
.js-motion [data-split].is-in .w { opacity: 1; filter: blur(0); transform: none; }
.js-motion [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- shared: form bits ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.check a { color: inherit; }
.check--small { font-size: 14px; }
.check--light { color: rgba(255, 255, 255, 0.74); }
.check--light input { accent-color: var(--gold); }
.contact-chip { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.26); color: #fff; text-decoration: none; font-size: 15px; font-weight: 520; transition: background-color 0.35s, border-color 0.35s; }
.contact-chip:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.contact-chip .icon { width: 17px; height: 17px; }
.contact-chip--dark { color: var(--ink); border-color: var(--line-strong); }
.contact-chip--dark:hover { background: var(--mist); border-color: var(--navy); }
.is-sending { pointer-events: none; opacity: 0.7; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; }
.legal h1 { margin-bottom: 22px; }
.legal .lead { max-width: 60ch; margin-bottom: 40px; }
.legal h2 { font: 400 clamp(27px, 2.3vw, 34px)/1.15 var(--display); margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-2); max-width: 70ch; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal [data-fill] { color: var(--ink); }
.site-footer { background: var(--night); color: var(--on-night-2); --focus: var(--gold); }
.site-footer--slim { padding: 56px 0 36px; }
.site-footer--slim .footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; font-size: 14px; line-height: 1.6; }
.site-footer--slim .footer__legal p { margin: 0; }
.modal-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .header-actions .tlink { display: none; }
  .film-index { width: auto; }
  .film-index__caption, .film-chapter { display: none; }
  .film-index__list { display: flex; }
  .dock .btn { padding: 0 24px; }
  .field { padding: 6px 14px; }
}
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: block; margin-left: 0; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 980px) {
  .results-layout { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 900px) {
  .globe-grid { grid-template-columns: minmax(0, 1fr); }
  .globe-stage { max-width: 640px; width: 100%; margin: 0 auto; }
  .dock__row, .dock__row.has-return { grid-template-columns: 1fr auto 1fr; row-gap: 6px; }
  .dock__row > .field:nth-of-type(3) { grid-column: 1; border-left: 0; }
  .dock__row > .field:nth-of-type(4) { grid-column: 2 / 4; }
  .dock__row > .field:nth-of-type(5) { grid-column: 1 / -1; border-left: 0; }
  .dock__row .btn { grid-column: 1 / -1; margin: 6px 0 0; }
  /* globe: heading, then the planet, then the routes */
  .globe-copy { display: contents; }
  .globe-copy h2 { order: 1; }
  .globe-copy .lead { order: 2; margin: 0; }
  .globe-stage { order: 3; }
  .routes { order: 4; }
  .route-facts { order: 5; }
  #globe-cta { order: 6; justify-self: start; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; --section: 80px; --fs-hero: clamp(50px, 16.2vw, 96px); --fs-h2: clamp(42px, 11.4vw, 64px); }
  body { font-size: 17px; }
  .site-header { inset: 10px auto auto 50%; width: calc(100% - 20px); height: 58px; padding: 0 6px 0 18px; gap: 12px; }
  .brand .logo { height: 29px; }
  .header-actions { display: none; }
  .burger { display: block; margin-left: auto; }
  .section-head { grid-template-columns: 1fr; }
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__content { position: relative; left: auto; right: auto; bottom: auto; padding: calc(var(--header-h) + 30vh) var(--gutter) 24px; }
  .hero__lead { margin: 20px 0 26px; }
  .dock { position: relative; left: auto; right: auto; bottom: auto; margin: 0 12px 14px; padding: 8px 10px 10px; border-radius: 16px; }
  .dock__trips { overflow-x: auto; gap: 18px; padding: 4px 8px 8px; }
  .trip-tab { white-space: nowrap; font-size: 14.5px; }
  .trip-tab__more { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  .globe-hint span + span { display: none; }
  .dock__row, .dock__row.has-return { grid-template-columns: 1fr auto 1fr; }
  .field { padding: 6px 10px; }
  .field select, .field input { font-size: 16.5px; }
  .dock__row > .field:nth-of-type(3), .dock__row > .field:nth-of-type(4), .dock__row > .field:nth-of-type(5) { grid-column: span 3; border-left: 0; border-top: 1px solid var(--line); padding-top: 10px; }
  .dock__note { flex-direction: column; gap: 2px; padding: 8px 10px 2px; }
  .porthole { height: 220vh; }
  .porthole__word { font-size: clamp(44px, 13vw, 64px); top: auto; transform: none; }
  .porthole__word--left { right: auto; left: var(--gutter); top: 13vh; text-align: left; }
  .porthole__word--right { left: auto; right: var(--gutter); bottom: 13vh; }
  .porthole__alt { display: none; }
  .onboard { height: auto !important; }
  .onboard__pin { position: relative; height: auto; padding: var(--section) 0; }
  .onboard__head { flex-direction: column; align-items: flex-start; padding: 0; }
  .onboard__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; transform: none !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .story, .story--wide { width: 76vw; scroll-snap-align: center; }
  .story__img, .story--wide .story__img { height: 60vh; max-height: 440px; }
  .story--wide .story__img { border-radius: var(--r-lg); }
  .onboard__progress { display: none; }
  .route-facts { grid-template-columns: repeat(2, auto); }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .qa__body p { padding-right: 0; }
  .result { grid-template-columns: 1fr; }
  .result__media { min-height: 220px; }
  .detail-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .search-card .dock__row.extra { grid-template-columns: 1fr; }
  .search-card .dock__row.extra .field { border-left: 0; }
  .doc-grid { grid-template-columns: 1fr; }
  .credits { columns: 1; }
  .request-card { grid-template-columns: 1fr; }
  .pass__code { font-size: 40px; }
  #globe-cta { white-space: normal; height: auto; min-height: 56px; padding: 14px 24px; line-height: 1.3; text-align: center; justify-self: stretch; }
}

/* short laptop screens: the hero keeps clear of the header */
@media (min-width: 761px) and (max-height: 760px) {
  :root { --fs-hero: clamp(52px, min(10.6vw, 12.6vh), 124px); }
  .hero__content, .film-index { bottom: calc(var(--dock-h, 160px) + 26px); }
  .hero__lead { margin: 18px 0 22px; }
}
@media (max-height: 520px) {
  .mobile-menu { padding: calc(var(--header-h) + 6px) var(--gutter) 18px; gap: 0; }
  .mobile-menu > a:not(.btn) { font-size: 30px; }
  .mobile-menu .btn { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .preloader { display: none; }
  .porthole { height: auto; }
  .porthole__pin { position: relative; height: 100vh; }
  .onboard { height: auto !important; }
  .onboard__pin { position: relative; height: auto; padding: var(--section) 0; }
  .onboard__track { overflow-x: auto; transform: none !important; }
  .film__clip { transform: none; }
  .js-motion [data-split] .w, .js-motion [data-reveal] { opacity: 1; filter: none; transform: none; }
}
