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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 var(--space-2); }
h1 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 var(--space-2); }
a { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }

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

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); color: var(--navy-deep); padding: 0.5rem 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #1E6AB4, #134C86);
  color: var(--white);
  font: 600 var(--step-0)/1 var(--font-head);
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 226, 236, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(180deg, #2373C2, #185FA5); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-sm { padding: 0.6rem 1rem; font-size: var(--step--1); white-space: nowrap; }
@media (max-width: 420px) { .btn-sm { padding: 0.55rem 0.8rem; font-size: 0.8rem; } .brand span { font-size: 1rem; } }
.btn-ghost { background: transparent; box-shadow: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--surface-strong);
  border-bottom: 1px solid var(--edge);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-2); }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); text-decoration: none; margin-right: auto; }
.brand span { font: 700 1.1rem/1 var(--font-head); display: flex; flex-direction: column; }
.brand small { font: 500 0.7rem/1.4 var(--font-body); color: var(--ice); letter-spacing: 0.18em; text-transform: uppercase; }
.site-header nav ul { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--chrome); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--white); }
@media (max-width: 860px) { .site-header nav { display: none; } }
@media (max-width: 420px) { .brand small { display: none; } }

/* Scroll-world canvas sits behind the content */
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }

/* Stops: full-screen scenes. Static backgrounds until the canvas engine takes over (html.world-ready). */
.stop {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + var(--space-3)) 0 var(--space-4);
  background: var(--navy-deep) center / cover no-repeat;
}
.stop-hero { background-image: linear-gradient(180deg, rgba(6,19,38,0.75) 0%, rgba(6,19,38,0.6) 45%, rgba(6,19,38,0.15) 70%, rgba(6,19,38,0.6) 100%), url("../frames/m2/stops/hero.webp"); align-items: flex-start; }
@media (min-width: 768px), (orientation: landscape) { .stop-hero { background-image: linear-gradient(180deg, rgba(6,19,38,0.75) 0%, rgba(6,19,38,0.6) 45%, rgba(6,19,38,0.15) 70%, rgba(6,19,38,0.6) 100%), url("../frames/d2/stops/hero.webp"); } }
.stop-contact { background-image: linear-gradient(90deg, rgba(6,19,38,0.85) 0%, rgba(6,19,38,0.2) 60%); }
html.world-ready .stop { background: transparent; }
html.world-ready .stop-hero { background: linear-gradient(180deg, rgba(6,19,38,0.75) 0%, rgba(6,19,38,0.6) 45%, rgba(6,19,38,0) 70%); }
html.world-ready .stop-contact { background: linear-gradient(90deg, rgba(6,19,38,0.85) 0%, rgba(6,19,38,0) 60%); }
@media (max-width: 767px) {
  /* Phone hero text spans most of the screen, so it needs a darker scrim over the busy scene */
  .stop-hero { background-image: linear-gradient(180deg, rgba(6,19,38,0.82) 0%, rgba(6,19,38,0.7) 70%, rgba(6,19,38,0.2) 100%), url("../frames/m2/stops/hero.webp"); }
  html.world-ready .stop-hero { background-image: linear-gradient(180deg, rgba(6,19,38,0.82) 0%, rgba(6,19,38,0.7) 70%, rgba(6,19,38,0.2) 100%); }
  /* Service cards fill a phone screen, so start them low: each stop lands on its business scene */
  .stop:not(.stop-hero):not(.stop-contact) { align-items: flex-start; padding-top: 50vh; padding-top: 50svh; }
}

.hero-copy { padding-top: var(--space-4); max-width: 760px; margin-inline: auto; text-align: center; }
.hero-copy h1, .hero-copy .lede { text-shadow: 0 1px 3px rgba(6,19,38,0.9); }
.eyebrow { color: var(--cyan); font: 600 var(--step--1)/1 var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; }
.lede { font-size: var(--step-1); color: var(--chrome); max-width: 46ch; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-3); }

/* Service cards: chrome-edged navy glass */
.card {
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-3) var(--space-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 20px 50px rgba(0,0,0,0.35);
}
.card-num { font: 700 var(--step--1)/1 var(--font-head); color: var(--cyan); letter-spacing: 0.1em; }
.card-num::after { content: ""; display: inline-block; width: 2.5rem; height: 1px; background: var(--cyan); vertical-align: middle; margin-left: 0.6rem; }
.benefit { font: 600 var(--step-1)/1.35 var(--font-head); color: var(--white); }
.tech { color: var(--ice); }
.offers { list-style: none; padding: 0; margin: 0 0 var(--space-2); display: grid; gap: 0.4rem; }
.offers li { padding-left: 1.4rem; position: relative; color: var(--chrome); }
.offers li::before { content: ""; position: absolute; left: 0.2rem; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--cyan); }
@media (min-width: 900px) { .stop:nth-of-type(even) .card { margin-left: auto; } }

/* Content panels between the flight and the contact plaza */
.panels { background: var(--navy-deep); position: relative; }
.panel { padding: var(--space-5) 0; border-top: 1px solid rgba(217, 226, 236, 0.12); }
.panel h2 { text-align: center; margin-bottom: var(--space-4); }
.panel .narrow h2 { text-align: left; }
.steps, .points { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.steps li, .points li { background: var(--navy); border: 1px solid var(--edge); border-radius: var(--radius); padding: var(--space-3); }
.steps li { counter-increment: step; }
.steps li h3::before { content: counter(step, decimal-leading-zero) "  "; color: var(--cyan); }
.steps p, .points p { color: var(--ice); margin: 0; }
.bio { display: grid; grid-template-columns: 160px 1fr; gap: var(--space-3); align-items: start; margin-top: var(--space-3); padding: var(--space-3); background: var(--navy); border: 1px solid var(--edge); border-radius: var(--radius); }
.bio img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.bio h3 { margin: 0; }
.bio-role { color: var(--cyan); font-size: var(--step--1); margin: 0.25em 0 var(--space-2); }
.bio p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .bio { grid-template-columns: 1fr; justify-items: center; text-align: center; } .bio div { text-align: left; } }

details { border-bottom: 1px solid var(--edge); padding: var(--space-2) 0; }
summary { cursor: pointer; font: 600 var(--step-0)/1.4 var(--font-head); list-style-position: outside; }
details p { color: var(--ice); margin: var(--space-1) 0 0; }

/* Contact */
.contact-inner { display: flex; }
.contact-card { position: relative; max-width: 520px; width: 100%; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: var(--space-3); }
.contact-email { color: var(--ice); margin-top: var(--space-2); }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-weight: 500; margin-bottom: 0.3rem; }
.optional { color: var(--ice); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--white);
  background: rgba(11, 42, 85, 0.7); border: 1px solid var(--edge); border-radius: 10px;
  padding: 0.7rem 0.8rem;
}
.field select option { color: #000; }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #FF8A8A; }
.field-error { color: #FFB3B3; font-size: var(--step--1); margin: 0.3rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--ice); font-size: var(--step--1); margin: var(--space-2) 0 0; }
.form-status { color: var(--cyan); font-weight: 500; margin: var(--space-1) 0 0; }
.form-status:empty { display: none; }

/* Booking slot picker */
.picker { border: 0; padding: 0; margin: 0 0 var(--space-2); min-width: 0; }
.picker legend { padding: 0; font-weight: 500; margin-bottom: 0.4rem; }
.picker-days { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem; margin-bottom: 0.6rem; }
.picker-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.5rem; }
.chip {
  position: relative; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  padding: 0.5rem 0.8rem; border: 1px solid var(--edge); border-radius: 10px;
  background: rgba(11, 42, 85, 0.7); color: var(--white);
  font-size: var(--step--1); line-height: 1.3; white-space: nowrap; cursor: pointer;
}
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip small { color: var(--ice); font-size: 0.75rem; }
.chip:hover { border-color: var(--chrome); }
.chip:has(input:checked) { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.booking-note { color: var(--ice); font-size: var(--step--1); margin: var(--space-1) 0; }

/* Service pages */
.card-link { display: inline-block; margin-top: var(--space-1); color: var(--cyan); font-weight: 600; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 var(--space-3); font-size: var(--step--1); color: var(--ice); }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; }
.breadcrumb a { color: var(--chrome); }
.service-page h1 { font-size: var(--step-3); }
.service-page section { margin-top: var(--space-4); }
.service-page .offers li { color: var(--chrome); }
.service-page .offers strong { color: var(--white); }
.service-summary { margin-inline: 0; max-width: none; }
.related { padding-left: 1.2rem; }
.related li { margin-bottom: 0.4rem; }
.footer-services ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; padding: 0; margin: 0; font-size: var(--step--1); }
.footer-services a { color: var(--ice); }

/* Footer */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--edge); padding: var(--space-4) 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; color: var(--ice); font-size: var(--step--1); }
.site-footer .brand { margin-right: 0; }

/* Simple pages: privacy, thanks, 404 */
.simple-page { background: radial-gradient(ellipse at top, var(--navy) 0%, var(--navy-deep) 70%); min-height: 100vh; }
.simple { width: min(100% - 2rem, 760px); margin: 0 auto; padding: var(--space-5) 0; }
.simple-logo img { width: 120px; margin-bottom: var(--space-3); }
.simple h2 { font-size: var(--step-1); margin-top: var(--space-4); }
.simple p, .simple li { color: var(--chrome); }
