/* Page shell: navigation, hero frame, section heads, footer. */

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { margin-top: var(--section-gap); }

/* ---------- Navigation ---------- */

/* Home: floats over the hero photo, inside the frame. Search: sits on the canvas. */
.topnav { position: relative; z-index: 30; padding: var(--space-4) var(--gutter); }
body[data-view='home'] .topnav { position: absolute; top: var(--frame-inset); left: var(--frame-inset); right: var(--frame-inset); padding: var(--space-4) clamp(16px, 2vw, 28px); }

.topnav-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-4); max-width: var(--container); margin-inline: auto; min-height: 44px; }

.brand { display: inline-flex; align-items: center; justify-self: start; color: var(--ink); text-decoration: none; }
/* The logo: ticket badge + outlined wordmark; the word follows currentColor. */
.brand-logo { display: block; width: auto; height: 30px; aspect-ratio: 520 / 90; }
/* Over the photo the mark flips to white with a black route. */
/* On the photo the brand gets the same glass as the nav pills, so it reads over bright cloud. */
body[data-view='home'] .topnav .brand { height: 44px; padding: 0 16px 0 7px; border-radius: var(--r-pill); background: rgb(17 17 19 / 0.5); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.topnav-links { display: flex; gap: 6px; }
.topnav-links a,
.nav-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--r-pill);
  background: var(--tile);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.topnav-links a:hover { background: var(--line); }
.topnav-links a[aria-current='page'] { background: var(--black); color: #fff; }

/* Glass on the photo */
body[data-view='home'] .topnav-links a,
body[data-view='home'] .nav-pill { background: rgb(17 17 19 / 0.5); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body[data-view='home'] .topnav-links a:hover { background: rgb(17 17 19 / 0.6); }
body[data-view='home'] .topnav-links a[aria-current='page'] { background: #fff; color: var(--ink); }
body[data-view='home'] .topnav :focus-visible { outline-color: #fff; }

.topnav-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.nav-status { font-variant-numeric: tabular-nums; }
.currency-select { position: relative; padding: 0; }
.currency-select select {
  height: 100%;
  padding: 0 34px 0 var(--space-4);
  border: 0;
  border-radius: inherit;
  appearance: none;
  background: transparent;
  color: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
}
.currency-select::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  translate: 0 -70%;
  rotate: 45deg;
  pointer-events: none;
}
.currency-select option { color: var(--ink); }

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

.hero { --capsule-half: 38px; position: relative; z-index: 20; }

.hero-frame {
  position: relative;
  isolation: isolate;
  height: clamp(520px, 72vh, 720px);
  margin: var(--frame-inset) var(--frame-inset) 0;
  overflow: hidden;
  border-radius: var(--r-frame);
  background: var(--fog);
  color: #fff;
}
/* The plane flies in the upper part of the frame; the darker clouds below sit behind the wordmark. */
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 95%; }
/* The one scrim, behind the text at the bottom of the photo. */
.hero-frame::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 0.55)); pointer-events: none; }

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  padding: 104px clamp(16px, 3vw, 40px) calc(var(--capsule-half) + clamp(16px, 2vw, 28px));
  text-align: center;
}
.hero-title { display: grid; justify-items: center; gap: var(--space-4); width: 100%; font-weight: 500; }
.hero-kicker {
  max-width: 100%;
  padding: 10px 20px;
  border-radius: 22px;
  background: rgb(17 17 19 / 0.55);
  font-size: var(--fs-xl);
  line-height: 1.25;
  letter-spacing: -0.01em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-wordmark {
  display: block;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: var(--fs-wordmark);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}


.hero-search { position: relative; z-index: 2; margin-top: calc(-1 * var(--capsule-half)); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) 0;
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.hero-stats li + li::before { content: '·'; margin: 0 var(--space-3); }
.hero-stats strong { color: var(--ink); font-weight: 600; }

/* Search view: no photo, the capsule sits on the canvas. */
body[data-view='search'] .hero-frame { display: none; }
body[data-view='search'] .hero-search { margin-top: var(--space-2); }
body[data-view='search'] .hero-stats { display: none; }

/* ---------- Section heads ---------- */

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-8); }
.section-head h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; }
.section-sub { margin-top: var(--space-2); color: var(--ink-2); }

/* ---------- Footer ---------- */

.site-footer { margin-top: var(--section-gap); padding: var(--space-12) 0 var(--space-10); border-top: 1px solid var(--line); color: var(--ink-2); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-10) var(--space-16); }
.footer-brand { display: grid; align-content: start; gap: var(--space-4); max-width: 26rem; }
.footer-brand .brand-logo { height: 28px; }
.footer-brand p { font-size: var(--fs-sm); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.footer-cols h3 { margin-bottom: var(--space-3); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.footer-cols a { display: block; padding: 4px 0; font-size: var(--fs-sm); text-decoration: none; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { grid-column: 1 / -1; padding-top: var(--space-6); border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--fs-xs); }
.load-error { padding: var(--space-16) 0; text-align: center; }
