/* ==========================================================================
   Flight of Youth — hand-painted watercolor (Ghibli-inspired) theme
   Palette ratio: cream/white 50 · sky 20 · navy 15 · orange 8 · yellow 5 · red 2
   ========================================================================== */

:root {
  --sky: #4F9ED8;
  --sky-soft: #D7EAF7;
  --sky-wash: #EAF4FB;
  --orange: #F47B4D;
  --orange-deep: #E0612F;
  --yellow: #F4C95D;
  --cream: #FFF7E8;
  --white: #FFFFFF;
  --navy: #183B56;
  --red: #D94F4F;
  --brown: #66574C;

  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --font-hand: 'Patrick Hand', 'Comic Sans MS', cursive;
  --font-script: 'Dancing Script', 'Patrick Hand', cursive;

  --radius: 18px;
  --radius-paint: 22px 26px 20px 28px / 26px 20px 28px 22px;
  --shadow-paper: 0 1px 0 rgba(102, 87, 76, .08), 0 10px 30px -12px rgba(24, 59, 86, .25);
  --shadow-lift: 0 2px 0 rgba(102, 87, 76, .08), 0 18px 40px -14px rgba(24, 59, 86, .35);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 84px;
  --vz: 1; /* viewport-unit compensation for desktop zoom below */
}

/* Desktop renders at 67% scale (the look the site was designed at).
   CSS zoom also shrinks vw/vh, so viewport units are multiplied by --vz to undo that. */
@media (min-width: 1280px) {
  html { zoom: calc(2 / 3); }
  :root { --vz: 1.5; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain over everything, very subtle */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .34 0 0 0 0 .3 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); text-decoration-color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.hand { font-family: var(--font-hand); color: var(--brown); font-size: 1.15rem; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.icon { width: 22px; height: 22px; flex: none; }
.note { margin-top: 14px; font-size: .875rem; color: var(--brown); font-style: italic; }

/* ---------- Paper surface ---------- */
.paper {
  background: var(--white);
  border-radius: var(--radius-paint);
  box-shadow: var(--shadow-paper);
  position: relative;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px;
  font: 700 1.2rem/1.1 var(--font-sans);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.btn-cta {
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 0 var(--orange-deep), 0 12px 24px -10px rgba(244, 123, 77, .8);
}
.btn-cta:hover { color: var(--white); background: #F68C63; transform: translateY(-2px); }
.btn-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--orange-deep); }
.btn-ghost {
  background: rgba(255, 255, 255, .85); color: var(--); border-color: var(--navy);
  font-size: 1.2rem; font-weight: 600;
}
.btn-ghost:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: .95rem; }

.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--yellow); color: var(--navy);
  font: 600 .75rem/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow { color: var(--brown); font-size: .8rem; font-weight: 600; margin-bottom: 10px; }
.hero-school-eyebrow { font-size: 1.44rem; }
.checkin-eyebrow { font-size: 1.2rem; }

/* Rubber stamp — Memory Red, used sparingly */
.stamp {
  display: inline-block; padding: 6px 14px;
  border: 3px solid currentColor; border-radius: 8px;
  font: 600 .95rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  transform: rotate(-12deg); opacity: .85;
  filter: url(#paint);
}
.stamp-red { color: var(--red); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 247, 232, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(24, 59, 86, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-logo { display: block; width: auto; height: calc(var(--header-h) - 16px); object-fit: contain; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--sky); color: var(--white);
}
.brand-mark svg { width: 22px; height: 22px; transform: rotate(-35deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.brand-sub { font-size: .68rem; color: var(--brown); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  border: 0; background: transparent; color: var(--navy); cursor: pointer;
  align-items: center; justify-content: center;
}

.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: 1.25rem; text-decoration: none; color: var(--navy);
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--sky-soft); color: var(--navy); }
.site-nav a[aria-current="true"] { background: var(--navy); color: var(--white); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(24, 59, 86, .1);
    box-shadow: 0 20px 40px -20px rgba(24, 59, 86, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s .2s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; padding: 12px 20px 20px; gap: 4px; }
  .site-nav a { padding: 14px 16px; font-size: 1.05rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100svh * var(--vz) - var(--header-h)), 820px);
  display: flex; align-items: flex-start;
  height: calc(100svh * var(--vz));
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('../assets/skyplane.jpg') center -100px / 85% auto no-repeat;
  animation: hero-drift 30s ease-in-out infinite alternate;
}
/* Soft cream wash: legibility at top-left, painted fade into the page at bottom */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 18% 22%, rgba(255, 247, 232, .82), rgba(255, 247, 232, 0) 70%),
    linear-gradient(to bottom, rgba(255, 247, 232, 0) 70%, var(--cream) 100%);
}
.hero-clouds span {
  position: absolute; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
  filter: url(#paint) blur(2px);
  animation: cloud-float 40s linear infinite;
}
.hero-clouds span:nth-child(1) { width: 340px; height: 120px; top: 12%; left: -360px; }
.hero-clouds span:nth-child(2) { width: 260px; height: 90px; top: 34%; left: -300px; animation-duration: 55s; animation-delay: -20s; }

.hero-inner { padding-block: clamp(32px, 7vh * var(--vz), 80px) 120px; }
.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw * var(--vz), 4.4rem); font-weight: 800; letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(255, 247, 232, .9);
}
.hero h1 em {
  font-family: var(--font-serif); font-weight: 600; color: var(--navy);
  background: linear-gradient(transparent 62%, rgba(244, 201, 93, .75) 62%, rgba(244, 201, 93, .75) 90%, transparent 90%);
  padding-inline: 4px; white-space: nowrap;
}
.hero-lead { text-wrap: pretty; margin-top: 16px; font-size: clamp(1.5rem, 2vw * var(--vz), 1.3rem); font-weight: 500; text-shadow: 0 1px 12px rgba(255, 247, 232, .95); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

@keyframes hero-drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.04) translateX(-1.5%); } }
@keyframes cloud-float { to { transform: translateX(calc(100vw * var(--vz) + 720px)); } }

@media (max-width: 640px) {
  .hero { min-height: 640px; }
  .hero-bg { background-position: 62% 50%; }
  .hero::before {
    background:
      linear-gradient(to bottom, rgba(255, 247, 232, .88) 0%, rgba(255, 247, 232, .55) 38%, rgba(255, 247, 232, 0) 58%),
      linear-gradient(to bottom, rgba(255, 247, 232, 0) 78%, var(--cream) 100%);
  }
  .hero-inner { padding-top: 28px; }
}

/* ==========================================================================
   Boarding pass
   ========================================================================== */
.pass-strip { margin-top: -110px; position: relative; z-index: 2; padding-bottom: 24px; }
.pass-strip .container { display: flex; justify-content: flex-end; }

.boarding-pass {
  display: grid; grid-template-columns: 1fr 336px;
  width: min(900px, 100%); margin-left: auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
  position: relative; overflow: hidden;
}
/* Ticket notches */
.boarding-pass::before, .boarding-pass::after {
  content: ''; position: absolute; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream); right: 322px;
}
.boarding-pass::before { top: -14px; }
.boarding-pass::after { bottom: -14px; }

.bp-main { padding: 26px 30px; border-top: 10px solid var(--sky); }
.bp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; color: var(--brown); font-size: .85rem; }
.bp-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 18px; }
.bp-route > div:not(.bp-path) { display: flex; flex-direction: column; }
.label { font-size: .72rem; color: var(--brown); font-weight: 600; }
.bp-year { font: 700 clamp(2.2rem, 5vw * var(--vz), 3.4rem)/1 var(--font-mono); color: var(--navy); letter-spacing: -.02em; }
.bp-path { position: relative; color: var(--sky); height: 40px; }
.bp-path svg:first-child { width: 100%; height: 40px; }
.bp-plane {
  position: absolute; left: 50%; top: -6px; width: 28px; height: 28px; color: var(--navy);
  transform: translateX(-50%) rotate(45deg);
}
.bp-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 0; padding-top: 18px; border-top: 2px dashed var(--sky-soft); }
.bp-meta dt { font-size: .7rem; color: var(--brown); font-weight: 600; }
.bp-meta dd { margin: 2px 0 0; font-weight: 600; font-size: 1rem; color: var(--navy); text-transform: none; }

/* Hero pass — mirrors boarding-pass-lhp.jpg (cream paper, navy sans, script accents) */
.pass-strip .bp-main {
  position: relative; padding: 30px 20px 22px; border-top: 0;
  background: #FFFBF2;
}
.pass-strip .bp-main::before {
  content: ''; position: absolute; top: 12px; left: 14px; right: 14px; height: 8px;
  background: var(--sky); opacity: .8; border-radius: 2px;
}
.bp-title {
  display: inline-flex; align-items: center; gap: 6px;
  font: 800 clamp(.96rem, 4.8vw * var(--vz), 1.14rem)/1.2 var(--font-sans); color: var(--navy); text-transform: uppercase; letter-spacing: 0; white-space: nowrap;
}
.bp-doodle { width: 76px; height: 38px; flex: none; }
.pass-strip .bp-head { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
.pass-strip .bp-head .badge { font: 700 1.44rem/1.6 var(--font-sans); padding: 4px 14px; flex: none; }
.pass-strip .bp-route { gap: 10px; margin-top: 16px; }
.pass-strip .label, .pass-strip .bp-meta dt {
  font: 700 .8rem/1.4 var(--font-sans); color: var(--navy); letter-spacing: 0; text-transform: uppercase;
}
.pass-strip .bp-route .label { font-size: 1.6rem; padding-bottom: .2rem; }
.pass-strip .bp-stub > .label { font-size: 1.2rem; }
.pass-strip .bp-year { font: 800 clamp(2.4rem, 9vw * var(--vz), 4rem)/1 var(--font-sans); letter-spacing: -.01em; }
.bp-script { font: 600 2.025rem/1.2 var(--font-script); color: var(--navy); }
.pass-strip .bp-path { height: 56px; }
.pass-strip .bp-path svg:first-child { position: absolute; left: 0; bottom: 4px; height: 40px; color: var(--sky); }
.pass-strip .bp-plane { top: 0; width: 45px; height: 45px; }
.bp-arrow { position: absolute; right: 11px; top: 34px; width: 24px; height: 24px; color: var(--sky); transform: rotate(30deg); }
.bp-cloud { position: absolute; left: 12%; bottom: -14px; width: 80px; height: 32px; color: var(--sky); opacity: .55; }
.bp-spark { position: absolute; color: var(--orange-deep); opacity: .9; font-size: 2.25rem; line-height: 1; }
.bp-spark.s1 { left: 18%; top: 2px; }
.bp-spark.s2 { right: 22%; bottom: -8px; }
.bp-spark.s3 { right: 6%; top: 0; }
.pass-strip .bp-meta {
  grid-template-columns: minmax(0, .64fr) repeat(2, minmax(0, 1fr)); gap: 2px; margin-top: 22px; padding-top: 16px;
  border-top: 1px solid rgba(24, 59, 86, .2);
}
.pass-strip .bp-meta > div { min-width: 0; }
.pass-strip .bp-meta dt { white-space: nowrap; font-size: 1.2rem; }
.pass-strip .bp-meta dd { overflow-wrap: anywhere; }
.pass-strip .bp-meta dd.mono { font: 500 1.575rem/1.3 var(--font-mono); letter-spacing: .04em; }
.pass-strip .bp-meta dd.bp-script { font-size: 2.1rem; line-height: 1.1; }

@media (min-width: 761px) {
  .pass-strip { margin-top: -335px; }
  .pass-strip .boarding-pass { width: min(924px, 94%); transform: translateX(32px); }
  .pass-strip .bp-main { padding: 38px 34px 26px; }
  .pass-strip .bp-main::before { top: 14px; left: 18px; right: 18px; }
  .pass-strip .bp-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .bp-title { font-size: 1.5rem; }
  .bp-doodle { width: 112px; height: 56px; }
  .pass-strip .bp-route { gap: 18px; margin-top: 22px; }
  .bp-script { font-size: 2.55rem; }
  .pass-strip .bp-meta { gap: 4.5px; }
  .pass-strip .bp-meta dd.bp-script { font-size: 2.4rem; }
}

/* Desktop: pin pass into bottom-right corner of hero image.
   Image = 85% wide, 1376x768, offset -100px (see .hero-bg) → bottom = 85vw*768/1376 - 100px, right inset = 7.5vw. */
@media (min-width: 1280px) {
  main { position: relative; }
  .pass-strip {
    position: absolute; top: calc(85vw * var(--vz) * 768 / 1376 - 250px); right: calc(7.5vw * var(--vz) + 100px);
    margin: 0; padding: 0; transform: translateY(-100%);
  }
  .pass-strip .container { width: auto; display: block; }
  .pass-strip .boarding-pass { width: 1331px; min-height: 387px; transform: none; zoom: .7; }
}

.bp-stub {
  padding: 26px 24px; position: relative;
  background: var(--sky-wash);
  border-left: 2px dashed rgba(79, 158, 216, .55);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.countdown > div { text-align: center; }
.cd-num {
  display: block; padding: 8px 2px; border-radius: 8px;
  background: var(--navy); color: var(--white);
  font: 600 1.7rem/1 var(--font-mono);
  position: relative; overflow: hidden;
}
/* split-flap seam */
.cd-num::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .18); }
.cd-num.flip { animation: flap .35s var(--ease-out); }
.cd-lbl { font-size: 1.3rem; color: var(--brown); padding-top:0.5rem}
.cd-done { font-weight: 700; color: var(--orange-deep); }

@keyframes flap { 0% { transform: rotateX(80deg); opacity: .3; } 100% { transform: none; opacity: 1; } }

@media (max-width: 760px) {
  .pass-strip { margin-top: -90px; }
  .boarding-pass { grid-template-columns: 1fr; }
  .boarding-pass::before, .boarding-pass::after { display: none; }
  .bp-main { padding: 22px 20px; }
  .bp-stub { border-left: 0; border-top: 2px dashed rgba(79, 158, 216, .55); padding: 20px; }
  .bp-meta { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(64px, 9vw * var(--vz), 112px); position: relative; }
.section-sky { background: linear-gradient(180deg, var(--cream), var(--sky-wash) 18%, var(--sky-wash) 82%, var(--cream)); }
.section-cream { background: var(--cream); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2, .gate-info h2 {
  font-size: clamp(2rem, 4.5vw * var(--vz), 3rem); font-weight: 800; letter-spacing: -.02em;
  position: relative; display: inline-block;
}
/* Hand-painted yellow brush under headings */
.section-head h2::after {
  content: ''; position: absolute; left: -4px; right: -8px; bottom: -6px; height: 14px; z-index: -1;
  background: var(--yellow); opacity: .7; border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
  filter: url(#paint);
}
.section-head { position: relative; z-index: 0; }
.section-lead { margin-top: 18px; color: var(--brown); font-size: 1.08rem; }

/* Flight path divider */
.flight-path { display: flex; align-items: center; gap: 12px; color: var(--sky); position: relative; }
.flight-path span { color: var(--brown); font-weight: 600; font-size: .85rem; }
.flight-path svg:first-of-type { flex: 1; height: 40px; }
.fp-plane { position: absolute; left: 50%; width: 30px; height: 30px; color: var(--navy); transform: translateX(-50%) rotate(45deg); }

/* ---------- Check-in ---------- */
.checkin-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { padding: 20px 16px; text-align: center; }
.stat-num { display: block; font: 700 clamp(1.8rem, 4vw * var(--vz), 2.6rem)/1 var(--font-mono); color: var(--navy); }
.stat-row .stat:first-child .stat-num { color: var(--orange-deep); }
.stat-lbl { font-size: .9rem; color: var(--brown); }

.class-bars, .cities { margin-top: 16px; padding: 22px; }
.class-bars h3, .cities h3, .checkin-form h3 { font-size: 1.1rem; margin-bottom: 14px; }
#class-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 18px; }
#class-bars li { display: grid; grid-template-columns: 48px 1fr 28px; align-items: center; gap: 8px; font-size: .85rem; }
.bar { height: 10px; border-radius: 999px; background: var(--sky-soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--sky); width: 0; transition: width 1s var(--ease-out); }
#class-bars li .mono { font-size: .8rem; color: var(--brown); }

.city-list { display: flex; flex-wrap: wrap; gap: 8px; }
.city-list li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--sky-wash); font-size: .9rem;
}
.city-list .icon { width: 16px; height: 16px; color: var(--sky); }
.city-list b { font-family: var(--font-mono); color: var(--navy); }

.checkin-form { padding: 28px; }
.field { margin: 0 0 18px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 1rem var(--font-sans); color: var(--navy);
  background: var(--cream); border: 2px solid rgba(24, 59, 86, .18); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(79, 158, 216, .25); }
.field [aria-invalid="true"] { border-color: var(--red); }
.hint { margin-top: 4px; font-size: .85rem; color: var(--brown); }
.error { margin-top: 4px; font-size: .875rem; color: #B83B3B; font-weight: 500; }
.error:empty { display: none; }
.radios { display: grid; gap: 8px; }
.radio {
  display: flex !important; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  border: 2px solid rgba(24, 59, 86, .14); border-radius: 12px; cursor: pointer; font-weight: 500 !important;
}
.radio:has(input:checked) { border-color: var(--sky); background: var(--sky-wash); }
.radio input { width: 20px; height: 20px; accent-color: var(--orange); }

.bp-personal { grid-template-columns: 1fr; overflow: visible; }
.bp-personal::before, .bp-personal::after { display: none; }
.bp-meta-2 { grid-template-columns: 1fr 1fr; border-top: 0; padding-top: 0; }
.bp-meta-2 .wide { grid-column: 1 / -1; }
.bp-meta-2 .wide dd { font-size: 1.4rem; font-weight: 700; }
.mp-foot { margin-top: 18px; }
.bp-personal .stamp { position: absolute; right: 24px; top: 70px; font-size: 1.3rem; }
.bp-personal .btn { margin: 0 30px 24px; justify-self: start; }
.stamp-anim { animation: stamp-in .5s var(--ease-out) both .2s; }
@keyframes stamp-in { from { transform: rotate(-12deg) scale(2.4); opacity: 0; } 70% { opacity: .95; } to { transform: rotate(-12deg) scale(1); opacity: .85; } }

@media (max-width: 900px) { .checkin-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .stat-row { gap: 8px; } .stat { padding: 16px 8px; } }

/* ---------- Flight information board ---------- */
.board { background: var(--navy); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lift); color: var(--white); }
.board-head, .board-rows li {
  display: grid; grid-template-columns: 110px 1fr 1fr 130px; gap: 14px; align-items: center;
}
.board-head { padding: 4px 14px 12px; font-size: .72rem; color: var(--yellow); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.board-rows li { padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .95rem; }
.board-rows li:last-child { border-bottom: 0; }
.board-rows .mono { font-size: .88rem; }
.board-date { color: var(--yellow); }
.board-status { justify-self: start; padding: 3px 10px; border-radius: 6px; font-size: .75rem !important; background: rgba(255, 255, 255, .12); }
.board-status.is-open { background: var(--orange); color: var(--navy); }
.board-rows li.flap-in { animation: flap .5s var(--ease-out) both; }

@media (max-width: 700px) {
  .board-head { display: none; }
  .board-rows li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .board-rows li > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-weight: 600; }
  .board-rows li > :nth-child(3) { grid-column: 1; grid-row: 3; color: rgba(255, 255, 255, .75); font-size: .85rem; }
  .board-rows li > :nth-child(4) { grid-column: 2; grid-row: 1; }
}

.news-tabs { margin-top: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs button {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font: 600 .95rem var(--font-sans); color: var(--navy);
  background: var(--white); border: 2px solid rgba(24, 59, 86, .15);
  transition: background-color .2s, border-color .2s;
}
.tabs button:hover { border-color: var(--sky); }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tab-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tab-panel[hidden] { display: none; }
.news { padding: 22px 24px; }
.news h3 { font-size: 1.15rem; margin-bottom: 8px; }
.news .meta { margin-top: 12px; font: 500 .8rem var(--font-mono); color: var(--brown); text-transform: uppercase; }
.badge-pin { position: absolute; top: -10px; right: 18px; }
/* Sad news: solemn, no playful styling */
.news-sad { background: #F3EFEA; border-left: 4px solid var(--brown); border-radius: 8px; }
.news-sad h3 { font-family: var(--font-serif); font-style: italic; }

/* ---------- Boarding gate ---------- */
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gate-info h2 .serif { color: var(--sky); font-size: .85em; }
.gate-facts { margin: 24px 0; display: grid; gap: 10px; font-size: 1.1rem; }
.gate-facts li { display: flex; gap: 12px; align-items: center; }
.gate-facts .icon { color: var(--orange-deep); }
.invite { padding: 24px; margin-bottom: 28px; border: 2px dashed rgba(79, 158, 216, .5); }
.invite-text { font-size: 1.35rem; color: var(--navy); margin-bottom: 8px; }

.program { position: relative; padding-left: 28px; }
.program::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; border-left: 2px dashed var(--sky); }
.program li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; }
.program li::before {
  content: ''; position: absolute; left: -27px; top: 20px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--sky);
}
.program li:nth-child(2)::before { background: var(--orange); border-color: var(--orange); }
.program .mono { font-weight: 600; color: var(--brown); padding-top: 2px; }
.program strong { font-size: 1.1rem; }
.program p { color: var(--brown); font-size: .95rem; }

@media (max-width: 860px) { .gate-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Luggage: polaroid albums ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 22px; }
.polaroid {
  display: block; padding: 10px 10px 14px; background: var(--white); text-decoration: none; color: var(--navy);
  box-shadow: var(--shadow-paper); border-radius: 4px;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  position: relative;
}
.polaroid:hover, .polaroid:focus-visible { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-lift); color: var(--navy); }
/* washi tape */
.polaroid::before {
  content: ''; position: absolute; top: -10px; left: 50%; width: 72px; height: 22px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(244, 201, 93, .7); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.polaroid-img {
  aspect-ratio: 4 / 3; border-radius: 2px;
  background: url('../assets/skyplane.jpg') var(--pos, 50% 50%) / 420% auto no-repeat;
  filter: sepia(.35) saturate(.85) contrast(.95);
  position: relative;
}
.polaroid-img::after {
  content: attr(data-date); position: absolute; right: 6px; bottom: 4px;
  font: 600 .7rem var(--font-mono); color: #F7A35C; text-shadow: 0 0 3px rgba(0, 0, 0, .5);
}
.polaroid-cap { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.polaroid-cap .hand { font-size: 1.3rem; color: var(--navy); }
.polaroid-cap .mono { font-size: .72rem; color: var(--brown); }
.polaroid .badge { position: absolute; top: 18px; left: 18px; }

/* ---------- Lounge ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.post { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
/* lined notebook paper */
.post-body {
  font-family: var(--font-hand); font-size: 1.25rem; line-height: 32px; color: var(--navy);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(79, 158, 216, .25) 31px 32px);
}
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--brown); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--sky-soft); color: var(--navy); font-weight: 700;
}
.post-tag { margin-left: auto; }
.post-actions { display: flex; gap: 4px; margin-top: auto; padding-top: 8px; border-top: 1px dashed rgba(102, 87, 76, .25); }
.post-actions button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px;
  border: 0; background: transparent; border-radius: 10px; cursor: pointer;
  font: 500 .9rem var(--font-sans); color: var(--brown); transition: background-color .2s, color .2s;
}
.post-actions button:hover { background: var(--sky-wash); color: var(--navy); }
.post-actions button[aria-pressed="true"] { color: var(--red); }
.post-actions button[aria-pressed="true"] .icon path { fill: currentColor; }
.post-actions .icon { width: 20px; height: 20px; }

/* ---------- Duty free ---------- */
.shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.product { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.product-art {
  aspect-ratio: 1; border-radius: var(--radius-paint); display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--white), var(--c, var(--sky-soft)) 70%);
  color: var(--navy); position: relative; overflow: hidden;
}
.product-art::after {
  content: ''; position: absolute; inset: 12%; border-radius: 50%;
  background: var(--c, var(--sky-soft)); opacity: .45; filter: url(#paint) blur(6px);
}
.product-art .icon { width: 64px; height: 64px; position: relative; z-index: 1; }
.product h3 { font-size: 1.1rem; }
.product p { color: var(--brown); font-size: .95rem; }
.product .price { font: 600 1rem var(--font-mono); color: var(--navy); margin-top: auto; }
.product .btn { font-size: 1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .85); padding: 56px 0 28px; position: relative; }
/* painted cloud edge */
.site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -38px; height: 40px;
  background:
    radial-gradient(40px 30px at 5% 100%, var(--navy) 98%, transparent),
    radial-gradient(60px 38px at 18% 100%, var(--navy) 98%, transparent),
    radial-gradient(50px 26px at 33% 100%, var(--navy) 98%, transparent),
    radial-gradient(70px 40px at 50% 100%, var(--navy) 98%, transparent),
    radial-gradient(48px 30px at 66% 100%, var(--navy) 98%, transparent),
    radial-gradient(64px 36px at 82% 100%, var(--navy) 98%, transparent),
    radial-gradient(44px 28px at 96% 100%, var(--navy) 98%, transparent);
  filter: url(#paint);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand .brand-name { color: var(--white); font-size: 1.3rem; }
.footer-brand .hand { color: var(--yellow); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--white); text-decoration-color: rgba(79, 158, 216, .8);
}
.footer-links a:hover { color: var(--yellow); }
.footer-links .icon { width: 18px; height: 18px; }
.socials { display: flex; gap: 10px; }
.social {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: var(--white); transition: background-color .2s, color .2s;
}
.social:hover { background: var(--sky); color: var(--white); }
.social .icon { width: 24px; height: 24px; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 8px; font-size: .875rem; color: rgba(255, 255, 255, .75); }
.footer-legal strong { color: var(--white); }

/* ==========================================================================
   Scroll reveal + reduced motion
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
