/* ─────────────────────────────────────────────────────────────────────────
   clean.css — one quiet header + a card-first recruiter view on phones.
   Load LAST (after air-cabin.css) so these rules win.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --hdr-h: 64px;
  --ink: #2b2118;
  --ink-soft: #6b5a4c;
  --plum: #4e385d;
  --cream: #faf5ea;
  --card-line: rgba(78, 56, 93, .12);
  --card-shadow: 0 18px 40px -24px rgba(20, 14, 30, .55);
}

/* ── Header: logo + four links + Contact. Nothing else lives up here. ─── */
.site-header {
  background: rgba(250, 246, 238, .86);
  border-bottom: 1px solid rgba(43, 33, 24, .08);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
}
.air-home .nav,
.nav {
  height: var(--hdr-h);
  padding: 0 clamp(16px, 3vw, 32px);
  max-width: 1240px;
  gap: 8px;
}
.air-home .brand-logo,
.brand-logo { width: 44px; filter: none; }

/* Desktop: the menu wrapper steps aside so its children sit in the row. */
.nav-menu { display: contents; }
.nav .nav-links { margin-left: auto; gap: 2px; align-items: center; flex-wrap: nowrap; }
.air-home .nav .nav-links a,
.nav .nav-links a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font: 500 14px/1 Inter, sans-serif; color: var(--ink); letter-spacing: 0;
}
.nav .nav-links a::after { display: none; }
.nav .nav-links a:hover { background: rgba(43, 33, 24, .06); }
.nav .nav-links a:focus-visible,
.nav-icon:focus-visible,
.nav-contact:focus-visible,
.nav-toggle:focus-visible,
.cabin-dock .fast-toggle:focus-visible { outline: 2px solid #5a6fd6; outline-offset: 2px; }

.nav-utils { display: flex; align-items: center; margin-left: 12px; }
.nav-toggle { display: none; }

/* Contact: the one filled button. */
.nav-contact,
.air-home .nav-contact {
  display: inline-flex; align-items: center; padding: 10px 18px; border: 0; border-radius: 999px;
  background: var(--plum); color: #fff; text-decoration: none; white-space: nowrap;
  font: 600 13px/1 Inter, sans-serif; letter-spacing: 0;
}
.nav-contact:hover { background: #3d2b4a; }

/* ── Cabin controls: recruiter mode, day/night, sound — one quiet pill ─── */
.cabin-dock {
  position: fixed; z-index: 60; right: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; border-radius: 999px;
  background: rgba(250, 246, 238, .82); box-shadow: 0 10px 28px -14px rgba(20, 14, 30, .55), 0 0 0 1px rgba(43, 33, 24, .06);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: .9; transition: opacity .2s ease;
}
.cabin-dock:hover, .cabin-dock:focus-within { opacity: 1; }
.cabin-dock-sep { width: 1px; height: 18px; margin: 0 6px 0 8px; background: rgba(43, 33, 24, .14); }

/* Recruiter mode: a switch, not a second button. */
.fast-toggle,
.air-home .fast-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 2px; border: 0; background: none; border-radius: 999px;
  font: 500 13px/1 Inter, sans-serif; letter-spacing: 0; color: var(--ink-soft); cursor: pointer;
}
.fast-toggle:hover { background: none; color: var(--ink); }
.fast-toggle[aria-pressed='true'] { background: none; color: var(--ink); border: 0; }
.fast-toggle-track {
  position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px;
  background: rgba(43, 33, 24, .18); transition: background .2s ease;
}
.fast-toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.fast-toggle[aria-pressed='true'] .fast-toggle-track { background: var(--plum); }
.fast-toggle[aria-pressed='true'] .fast-toggle-track::after { transform: translateX(12px); }

/* Sky + sound: bare icons. */
.nav-icon,
.air-home .sky-toggle, .air-home .cabin-sound {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0 !important; border-radius: 50%; background: none !important; box-shadow: none !important;
  color: var(--ink-soft); cursor: pointer;
}
.nav-icon:hover { background: rgba(43, 33, 24, .07) !important; color: var(--ink); }

/* Anchors land below the bar, not under it. */
main > section, .explog-section { scroll-margin-top: calc(var(--hdr-h) + 12px); }

/* ── Phones ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --hdr-h: 56px; }
  .air-home .nav, .nav { padding: 0 12px 0 14px; }
  .air-home .brand-logo, .brand-logo { width: 38px; }

  /* Phones are always in recruiter mode, and day/night moves into the menu. */
  .cabin-dock { display: none; }

  .nav-toggle {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; margin-right: -6px;
    border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--ink);
  }
  .nav-toggle span { display: block; width: 18px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
  .site-header.is-menu-open .nav-toggle span:first-child { transform: translateY(3.4px) rotate(45deg); }
  .site-header.is-menu-open .nav-toggle span:last-child { transform: translateY(-3.4px) rotate(-45deg); }

  /* The menu: a card that drops from the bar. */
  .nav-menu {
    position: absolute; top: calc(var(--hdr-h) + 8px); left: 12px; right: 12px;
    display: flex; flex-direction: column; padding: 8px; border-radius: 20px;
    background: var(--cream); box-shadow: 0 24px 48px -16px rgba(20, 14, 30, .5), 0 0 0 1px var(--card-line);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .site-header.is-menu-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav .nav-links { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .nav .nav-links .nav-break { display: none; }
  .air-home .nav .nav-links a, .nav .nav-links a {
    padding: 15px 14px; border-radius: 12px; font-size: 17px; font-weight: 500;
  }
  .nav-utils {
    display: flex; align-items: center; gap: 4px; margin: 6px 0 0; padding: 10px 6px 4px;
    border-top: 1px solid var(--card-line);
  }
  .nav-utils .sky-toggle {
    display: inline-flex !important; align-items: center; gap: 10px; width: auto; height: 44px; padding: 0 14px 0 10px;
    border-radius: 999px; color: var(--ink);
  }
  .nav-utils .sky-toggle::after { content: 'Day / night'; font: 500 15px/1 Inter, sans-serif; }
  .nav-utils .nav-contact { margin-left: auto; padding: 12px 20px; font-size: 14px; }

  /* ── Recruiter mode on phones: one column of calm cards ───────────── */
  html[data-fast='on'] .air-home main { padding-top: calc(var(--hdr-h) + 16px); gap: 40px; }
  html[data-fast='on'] .air-home main > * { margin-top: 0 !important; }
  html[data-fast='on'] .cabin-stage,
  html[data-fast='on'] .cabin-door { min-height: 0 !important; }
  html[data-fast='on'] .cabin-door { padding: 0 16px !important; display: block; }

  /* Boarding pass: flat, straight, no stacked copies behind it. */
  html[data-fast='on'] .cabin-door .air-ticket {
    transform: none !important; rotate: none; width: 100%; max-width: none; margin: 0;
    box-shadow: var(--card-shadow); border-radius: 22px;
  }
  html[data-fast='on'] .air-ticket::before,
  html[data-fast='on'] .air-ticket::after,
  html[data-fast='on'] .air-ticket-stub { display: none !important; }
  html[data-fast='on'] .air-ticket-main { padding: 22px 20px !important; border-radius: 22px; transform: none !important; }

  /* Section titles: one size, one rhythm. */
  html[data-fast='on'] :is(.postcard-lead, .ife-lead, .explog-heading, .passport-heading) {
    margin: 0 auto 16px !important; padding: 0 20px !important; text-align: left;
    background: none !important; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  html[data-fast='on'] :is(.postcard-lead, .ife-lead, .explog-heading, .passport-heading) h2 {
    margin: 0; font: 400 30px/1.1 'Love Ya Like A Sister', cursive; color: #fbf4e6; text-align: left;
    text-transform: none !important; letter-spacing: 0 !important;
  }
  html[data-fast='on'] :is(.ife-eyebrow, .explog-eyebrow) {
    margin: 0 0 6px; font: 600 11px/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #d8c5e9; text-align: left;
  }
  html[data-fast='on'] .explog-subtitle { margin: 8px 0 0; font-size: 15px; text-align: left; }
  html[data-fast='on'] :is(#latest-trip, #projects, #about, .explog-section) { padding: 0 !important; min-height: 0 !important; }

  /* Every card: same gutter, radius and shadow. */
  html[data-fast='on'] :is(.postcard-frame, .explog-dashboard, .passport-book) {
    width: auto !important; max-width: none !important; margin: 0 16px !important;
    border-radius: 22px !important; box-shadow: var(--card-shadow) !important; transform: none !important;
  }
  html[data-fast='on'] .postcard-clickme,
  html[data-fast='on'] .postcard-label,
  html[data-fast='on'] .postcard-badge,
  html[data-fast='on'] .postcard-signoff { display: none !important; }
  /* The window becomes a short banner, still tappable to try Wishlist. */
  html[data-fast='on'] .postcard-window-col { padding: 16px 16px 0 !important; min-height: 0 !important; border: 0 !important; }
  html[data-fast='on'] .postcard-window { width: 100% !important; height: 132px !important; aspect-ratio: auto !important; border-radius: 16px !important; }
  html[data-fast='on'] .postcard-window-view { width: auto !important; height: calc(100% - 16px) !important; max-height: none; margin: 8px !important; border-radius: 12px !important; }
  html[data-fast='on'] .postcard-message { padding: 20px !important; min-height: 0 !important; }
  html[data-fast='on'] .postcard-title { margin-top: 0 !important; }
  html[data-fast='on'] .postcard-link { width: 100%; justify-content: space-between; box-sizing: border-box; }

  /* Projects: real cards instead of the seat-back tablet. */
  html[data-fast='on'] #projects .ife-cabin { display: none; }
  html[data-fast='on'] #projects .rm-projects { display: grid; }
}

/* Built by clean.js from the IFE data; only shown in phone recruiter mode. */
.rm-projects { display: none; gap: 12px; margin: 0 16px; padding: 0; list-style: none; }
.rm-card {
  display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; align-items: start;
  padding: 18px; border-radius: 22px; background: var(--cream); color: var(--ink); text-decoration: none;
  box-shadow: var(--card-shadow);
}
.rm-card:focus-visible { outline: 3px solid #d8c5e9; outline-offset: 3px; }
.rm-card-icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.rm-card-icon svg { width: 24px; height: 24px; }
.rm-card-cat { font: 600 11px/1.2 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a6a9e; align-self: end; }
.rm-card-title { margin: 0; font: 700 19px/1.2 Georgia, 'Times New Roman', serif; }
.rm-card-desc {
  grid-column: 1 / -1; margin: 10px 0 0; font: 400 15px/1.55 Inter, sans-serif; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rm-card-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--card-line); }
.rm-card-role { font: 500 13px/1.3 Inter, sans-serif; color: var(--ink-soft); }
.rm-card-cta { flex: none; font: 600 13px/1 Inter, sans-serif; color: var(--plum); }
