/* ==========================================================================
   Legends of Palimpagos — hand-built pages (Island Tour, World, Characters)
   Laid out on the site's 1920px desktop canvas, which the page-level
   rescale script scales to the viewport width.
   ========================================================================== */

@font-face {
  font-family: "LP Chaloops";
  src: url("../fonts/Chaloops W00 Bd.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "LP Curse";
  src: url("../fonts/Curse Casual.ttf") format("truetype");
  font-display: swap;
}

:root {
  --lp-sky: #0095f9;
  --lp-deep: #0567b6;
  --lp-navy: #053f73;
  --lp-panel: #1b84e4;
  --lp-panel-edge: #5bb7ff;
  --lp-gold: #ffc94d;
  --lp-gold-mid: #e9a93b;
  --lp-gold-dark: #4a3712;
  --lp-parch: #f6e2ae;
  --lp-parch-edge: #c9995a;
  --lp-parch-ink: #5b3d17;
}

/* ---------- shared building blocks ---------- */

.lp-section {
  position: relative;
  margin-top: -52px;
  padding: 120px 0 180px;
  background: var(--lp-sky);
  color: #fff;
  font-family: "LP Curse", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.45;
}
.lp-section *,
.lp-section *::before,
.lp-section *::after { box-sizing: border-box; }

.lp-world, .lp-characters { padding-top: 190px; }

.lp-wrap { width: 1400px; margin: 0 auto; position: relative; }

.lp-section :where(button) {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}
.lp-section button:focus-visible,
.lp-section a:focus-visible {
  outline: 5px solid var(--lp-gold);
  outline-offset: 6px;
  border-radius: 12px;
}
.lp-section p { margin: 0; }
.lp-section img { max-width: none; }

.lp-page-title {
  margin: 0;
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 104px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 7px 0 var(--lp-deep);
}
.lp-page-sub {
  max-width: 900px;
  margin: 26px auto 0 !important;
  font-size: 28px;
  text-align: center;
}

.lp-eyebrow {
  margin: 0;
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 22px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lp-gold);
}
.lp-h2 {
  margin: 6px 0 0;
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 64px;
  line-height: 1.05;
  font-weight: 700;
  text-shadow: 0 5px 0 var(--lp-deep);
}
.lp-h3 {
  margin: 0;
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
}

.lp-panel {
  background: var(--lp-panel);
  border: 6px solid var(--lp-panel-edge);
  border-radius: 30px;
  box-shadow: 0 14px 0 rgba(3, 55, 110, .35);
}

.lp-block { margin-top: 120px; }
.lp-block-head { text-align: center; margin-bottom: 48px; }
.lp-block-head p:not(.lp-eyebrow) { max-width: 880px; margin: 16px auto 0; }

.lp-divider {
  display: block;
  width: 520px;
  margin: 110px auto 0;
  opacity: .9;
}

.lp-tag {
  display: inline-block;
  padding: 6px 18px 4px;
  border-radius: 999px;
  background: var(--lp-navy);
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.lp-tag--gold { background: var(--lp-gold); color: var(--lp-gold-dark); }

/* Parchment card, used for the table of contents and info cards */
.lp-parchment {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(255, 250, 230, .55), rgba(255, 250, 230, 0) 70%),
    var(--lp-parch);
  color: var(--lp-parch-ink);
  border: 5px solid var(--lp-parch-edge);
  border-radius: 18px 26px 20px 30px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35), inset 0 0 40px rgba(150, 100, 40, .35), 0 12px 0 rgba(3, 55, 110, .35);
}

/* ==========================================================================
   WORLD OF PALIMPAGOS
   ========================================================================== */

.lp-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 80px;
}
.lp-hero-row .lp-panel { padding: 44px 48px; }
.lp-hero-row p + p { margin-top: 18px; }
.lp-fact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lp-fact { padding: 26px 28px; }
.lp-fact strong {
  display: block;
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 50px;
  line-height: 1;
  color: var(--lp-gold);
  text-shadow: 0 4px 0 var(--lp-deep);
}
.lp-fact span { display: block; margin-top: 8px; font-size: 21px; }

/* map */
.lp-map-layout { display: grid; grid-template-columns: 820px 1fr; gap: 40px; align-items: start; }
.lp-map {
  position: relative;
  padding: 14px;
  border-radius: 34px;
  background: var(--lp-gold);
  border: 6px solid var(--lp-gold-dark);
  box-shadow: 0 14px 0 rgba(3, 55, 110, .35);
}
.lp-map svg { display: block; width: 100%; height: auto; border-radius: 22px; }
.lp-map-pin { cursor: pointer; }
.lp-map-pin .lp-pin-dot { transition: transform .15s; transform-box: fill-box; transform-origin: center; }
.lp-map-pin:hover .lp-pin-dot,
.lp-map-pin:focus-visible .lp-pin-dot,
.lp-map-pin[aria-pressed="true"] .lp-pin-dot { transform: scale(1.35); }
.lp-map-pin[aria-pressed="true"] .lp-pin-dot { fill: var(--lp-gold); }
.lp-map-pin:focus { outline: none; }
.lp-map-pin:focus-visible .lp-pin-ring { stroke: var(--lp-gold); stroke-width: 5; }
.lp-map-pin text { pointer-events: none; }
.lp-map-caption { margin-top: 12px !important; text-align: center; font-size: 19px; color: var(--lp-gold-dark); }

.lp-place-card { padding: 38px 40px 42px; min-height: 540px; }
.lp-place-card .lp-eyebrow { color: #a3651b; }
.lp-place-card h3 { margin: 6px 0 16px; font-family: "LP Chaloops", Arial, sans-serif; font-size: 46px; line-height: 1.05; color: var(--lp-parch-ink); }
.lp-place-card ul { margin: 18px 0 0; padding-left: 26px; }
.lp-place-card li { margin-top: 4px; }
.lp-place-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lp-place-chip {
  padding: 8px 18px 6px;
  border-radius: 999px;
  background: rgba(3, 55, 110, .35);
  border: 3px solid rgba(255, 255, 255, .45);
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 18px;
}
.lp-place-chip:hover { border-color: #fff; }
.lp-place-chip[aria-pressed="true"] { background: var(--lp-gold); color: var(--lp-gold-dark); }

/* cataclysm */
.lp-legend {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  counter-reset: lp-step;
}
.lp-legend li { list-style: none; padding: 36px 34px 38px; counter-increment: lp-step; }
.lp-legend li::before {
  content: counter(lp-step);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--lp-gold);
  color: var(--lp-gold-dark);
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 34px;
}
.lp-legend h3 { margin-bottom: 10px; }
.lp-legend ol { margin: 0; padding: 0; }

/* realms */
.lp-totem-strip { display: block; width: 760px; margin: 0 auto 50px; }
.lp-realms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lp-realm {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--lp-realm) 0%, color-mix(in srgb, var(--lp-realm) 55%, #04213f) 100%);
  border: 5px solid rgba(255, 255, 255, .35);
  box-shadow: 0 12px 0 rgba(3, 55, 110, .35);
  font-size: 21px;
}
.lp-realm .lp-h3 { font-size: 32px; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.lp-realm p { margin-top: 10px !important; }
.lp-realm--home { outline: 6px solid var(--lp-gold); outline-offset: 4px; }
.lp-realm--home .lp-tag { position: absolute; top: -18px; right: 20px; }
.lp-realm-intro { grid-column: span 1; padding: 30px 28px; font-size: 21px; }

/* tribes */
.lp-tribes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.lp-tribe { text-align: center; padding: 26px 12px 24px; }
.lp-tribe-swatch {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--lp-tribe);
  border: 6px solid #fff;
  box-shadow: 0 6px 0 rgba(3, 55, 110, .35), inset 0 -10px 0 rgba(0, 0, 0, .15);
}
.lp-tribe strong { display: block; font-family: "LP Chaloops", Arial, sans-serif; font-size: 23px; line-height: 1.15; }
.lp-tribe span { display: block; margin-top: 6px; font-size: 18px; opacity: .85; }

/* factions */
.lp-factions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.lp-faction { padding: 36px 34px 40px; }
.lp-faction .lp-h3 { margin: 10px 0 12px; }

/* ==========================================================================
   MEET THE CHARACTERS
   ========================================================================== */

.lp-cast-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  margin-top: 70px;
}
.lp-cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform .22s cubic-bezier(.3, 1.6, .5, 1);
}
.lp-cast-card:hover { transform: translateY(-8px) rotate(-2deg); }
.lp-cast-card[aria-selected="true"] { transform: translateY(-16px) scale(1.06); }
.lp-cast-thumb {
  position: relative;
  width: 178px;
  height: 178px;
}
.lp-cast-thumb > .lp-cast-face {
  position: absolute;
  inset: 11%;
  overflow: hidden;
  background: #45a5f2;
}
.lp-cast-thumb > .lp-cast-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.lp-cast-thumb > .lp-cast-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-cast-card strong {
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 22px;
  line-height: 1.1;
  text-align: center;
}
.lp-cast-card[aria-selected="true"] strong { color: var(--lp-gold); }

.lp-spotlight {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 50px;
  margin-top: 60px;
  padding: 50px 56px 56px;
  min-height: 680px;
}
.lp-spotlight[hidden] { display: none; }
.lp-spot-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: start;
  height: 600px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #5cc0ff 0%, #2a8fe6 100%);
  overflow: hidden;
}
.lp-spot-art img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.lp-spot-art img.lp-float { animation: lp-float 5s ease-in-out infinite; }
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.lp-spot-art--portrait img { width: 86%; height: auto; margin-bottom: 7%; border-radius: 22px; border: 6px solid #fff; }
.lp-spot-art--mystery { align-items: center; }
.lp-spot-art--mystery img { width: 64%; height: auto; border-radius: 22px; opacity: .95; }
.lp-spot-art--mystery p {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 22px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lp-spot-info { display: flex; flex-direction: column; gap: 22px; padding-top: 10px; }
.lp-spot-info .lp-h2 { font-size: 68px; }
.lp-spot-title { font-family: "LP Chaloops", Arial, sans-serif; font-size: 28px; color: var(--lp-gold); margin-top: -8px !important; }
.lp-spot-bio { font-size: 26px; }
.lp-spot-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 6px 0 0;
}
.lp-spot-facts div { padding: 16px 20px; border-radius: 18px; background: rgba(3, 55, 110, .35); }
.lp-spot-facts dt {
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-gold);
}
.lp-spot-facts dd { margin: 4px 0 0; font-size: 22px; }
.lp-spot-quote {
  padding: 20px 26px;
  border-left: 8px solid var(--lp-gold);
  border-radius: 6px 18px 18px 6px;
  background: rgba(255, 255, 255, .12);
  font-size: 25px;
}
.lp-cast-note { margin-top: 70px !important; text-align: center; font-size: 22px; opacity: .85; }
.lp-cast-note a { color: var(--lp-gold); }

/* ==========================================================================
   PHONES & TABLETS (up to 1023px)
   The content section is moved into .lp-mobile-site by legends-pages.js.
   Keep this breakpoint in sync with the MOBILE query in legends-pages.js.
   ========================================================================== */

.lp-mobile-site { display: none; }

@media (max-width: 1023px) {
  body { background: var(--lp-sky); }
  .lp-scale-host, .site-wrapper { display: none !important; }
  .lp-mobile-site {
    display: block;
    min-height: 100vh;
    background: var(--lp-sky);
    font-family: "LP Curse", Arial, sans-serif;
  }

  /* header */
  .lp-m-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px 26px;
    background:
      linear-gradient(180deg, rgba(0, 149, 249, 0) 55%, var(--lp-sky) 100%),
      url("../images/skydockBg2-p-1080.png") 50% 30% / cover no-repeat;
  }
  .lp-m-logo { display: block; width: min(300px, 78vw); }
  .lp-m-logo svg { display: block; width: 100%; height: auto; }
  .lp-m-discord {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 92px;
  }
  .lp-m-discord img { display: block; width: 100%; height: auto; }

  /* shared */
  .lp-mobile-site .lp-section {
    margin-top: 0;
    padding: 30px 16px 64px;
    font-size: 16px;
    line-height: 1.5;
  }
  .lp-mobile-site .lp-world,
  .lp-mobile-site .lp-characters { padding-top: 30px; }
  .lp-mobile-site .lp-wrap { width: auto; max-width: 720px; }
  .lp-mobile-site .lp-book,
  .lp-mobile-site .lp-chapter,
  .lp-mobile-site .lp-spotlight,
  .lp-mobile-site .lp-place-card { scroll-margin-top: 84px; }
  .lp-mobile-site .lp-page-title { font-size: clamp(36px, 10vw, 60px); text-shadow: 0 4px 0 var(--lp-deep); }
  .lp-mobile-site .lp-page-sub { margin-top: 12px !important; font-size: 16px; }
  .lp-mobile-site .lp-eyebrow { font-size: 13px; }
  .lp-mobile-site .lp-h2 { font-size: clamp(28px, 7.5vw, 40px); text-shadow: 0 3px 0 var(--lp-deep); }
  .lp-mobile-site .lp-h3 { font-size: 22px; }
  .lp-mobile-site .lp-panel { border-width: 4px; border-radius: 20px; box-shadow: 0 8px 0 rgba(3, 55, 110, .35); }
  .lp-mobile-site .lp-parchment { border-width: 4px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), inset 0 0 24px rgba(150, 100, 40, .35), 0 8px 0 rgba(3, 55, 110, .35); }
  .lp-mobile-site .lp-block { margin-top: 56px; }
  .lp-mobile-site .lp-block-head { margin-bottom: 22px; }
  .lp-mobile-site .lp-block-head p:not(.lp-eyebrow) { margin-top: 10px; }
  .lp-mobile-site .lp-tag { font-size: 12px; padding: 4px 12px 3px; }
  .lp-mobile-site .lp-cast-note { margin-top: 40px !important; font-size: 15px; }

  /* world */
  .lp-mobile-site .lp-hero-row { grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
  .lp-mobile-site .lp-hero-row .lp-panel { padding: 22px; }
  .lp-mobile-site .lp-hero-row .lp-h3 { font-size: 26px !important; margin-bottom: 10px !important; }
  .lp-mobile-site .lp-hero-row p + p { margin-top: 12px; }
  .lp-mobile-site .lp-fact-list { gap: 12px; }
  .lp-mobile-site .lp-fact { padding: 16px; }
  .lp-mobile-site .lp-fact strong { font-size: 30px; text-shadow: 0 3px 0 var(--lp-deep); }
  .lp-mobile-site .lp-fact span { font-size: 14px; margin-top: 4px; }

  .lp-mobile-site .lp-map-layout { grid-template-columns: 1fr; gap: 18px; }
  .lp-mobile-site .lp-map { padding: 6px; border-width: 4px; border-radius: 20px; box-shadow: 0 8px 0 rgba(3, 55, 110, .35); }
  .lp-mobile-site .lp-map svg { border-radius: 14px; }
  .lp-mobile-site .lp-map-pin text { display: none; }
  .lp-mobile-site .lp-pin-ring { r: 26px; }
  .lp-mobile-site .lp-pin-dot { r: 13px; }
  .lp-mobile-site .lp-map-caption { font-size: 13px; color: #fff; }
  .lp-mobile-site .lp-place-card { min-height: 0; padding: 20px 20px 24px; }
  .lp-mobile-site .lp-place-card h3 { margin: 4px 0 10px; font-size: 28px; }
  .lp-mobile-site .lp-place-card ul { margin-top: 10px; padding-left: 20px; }
  .lp-mobile-site .lp-place-list { gap: 6px; margin-top: 14px; }
  .lp-mobile-site .lp-place-chip { padding: 7px 12px 5px; font-size: 13px; border-width: 2px; }

  .lp-mobile-site .lp-legend { grid-template-columns: 1fr; gap: 14px; }
  .lp-mobile-site .lp-legend li { padding: 20px 20px 22px; }
  .lp-mobile-site .lp-legend li::before { width: 42px; height: 42px; margin-bottom: 10px; font-size: 22px; }

  .lp-mobile-site .lp-totem-strip { width: 100%; margin-bottom: 22px; }
  .lp-mobile-site .lp-realms { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lp-mobile-site .lp-realm-intro { grid-column: 1 / -1; padding: 18px; font-size: 15px; }
  .lp-mobile-site .lp-realm { padding: 16px 14px 18px; border-width: 3px; border-radius: 18px; font-size: 14px; box-shadow: 0 6px 0 rgba(3, 55, 110, .35); }
  .lp-mobile-site .lp-realm .lp-h3 { font-size: 19px; }
  .lp-mobile-site .lp-realm p { margin-top: 6px !important; }
  .lp-mobile-site .lp-realm--home { outline-width: 4px; outline-offset: 3px; }
  .lp-mobile-site .lp-realm--home .lp-tag { top: -13px; right: 10px; }

  .lp-mobile-site .lp-tribes { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .lp-mobile-site .lp-tribe { padding: 14px 6px; }
  .lp-mobile-site .lp-tribe-swatch { width: 50px; height: 50px; margin-bottom: 8px; border-width: 4px; box-shadow: 0 4px 0 rgba(3, 55, 110, .35), inset 0 -6px 0 rgba(0, 0, 0, .15); }
  .lp-mobile-site .lp-tribe strong { font-size: 14px; }
  .lp-mobile-site .lp-tribe span { font-size: 11px; margin-top: 2px; }

  .lp-mobile-site .lp-factions { grid-template-columns: 1fr; gap: 14px; }
  .lp-mobile-site .lp-faction { padding: 20px 20px 22px; }
  .lp-mobile-site .lp-faction .lp-h3 { margin: 8px 0 8px; }

  /* characters */
  .lp-mobile-site .lp-cast-picker { grid-template-columns: repeat(3, 1fr); gap: 18px 10px; margin-top: 28px; }
  .lp-mobile-site .lp-cast-card { gap: 6px; }
  .lp-mobile-site .lp-cast-card:hover { transform: none; }
  .lp-mobile-site .lp-cast-card[aria-selected="true"] { transform: translateY(-4px) scale(1.06); }
  .lp-mobile-site .lp-cast-thumb { width: min(92px, 26vw); height: min(92px, 26vw); }
  .lp-mobile-site .lp-cast-card strong { font-size: 13px; }

  .lp-mobile-site .lp-spotlight { grid-template-columns: 1fr; gap: 18px; min-height: 0; margin-top: 26px; padding: 16px 16px 20px; }
  .lp-mobile-site .lp-spot-art { height: min(360px, 90vw); border-radius: 16px; }
  .lp-mobile-site .lp-spot-art--portrait img { width: 74%; margin-bottom: 0; align-self: center; border-width: 4px; }
  .lp-mobile-site .lp-spot-art--portrait { align-items: center; }
  .lp-mobile-site .lp-spot-art--mystery p { bottom: 14px; font-size: 13px; }
  .lp-mobile-site .lp-spot-info { gap: 12px; padding-top: 0; }
  .lp-mobile-site .lp-spot-info .lp-h2 { font-size: clamp(28px, 8vw, 40px); }
  .lp-mobile-site .lp-spot-title { margin-top: -4px !important; font-size: 18px; }
  .lp-mobile-site .lp-spot-bio { font-size: 16px; }
  .lp-mobile-site .lp-spot-facts { gap: 8px; margin-top: 0; }
  .lp-mobile-site .lp-spot-facts div { padding: 10px 12px; border-radius: 12px; }
  .lp-mobile-site .lp-spot-facts dt { font-size: 11px; }
  .lp-mobile-site .lp-spot-facts dd { font-size: 14px; }
  .lp-mobile-site .lp-spot-quote { padding: 12px 16px; border-left-width: 5px; font-size: 15px; }
}

/* Tablets: use the extra room */
@media (min-width: 600px) and (max-width: 1023px) {
  .lp-mobile-site .lp-fact-list { grid-template-columns: repeat(4, 1fr); }
  .lp-mobile-site .lp-realms { grid-template-columns: repeat(4, 1fr); }
  .lp-mobile-site .lp-tribes { grid-template-columns: repeat(4, 1fr); }
  .lp-mobile-site .lp-cast-picker { grid-template-columns: repeat(6, 1fr); }
  .lp-mobile-site .lp-spotlight { grid-template-columns: 260px 1fr; }
  .lp-mobile-site .lp-spot-art { height: 380px; }
}

/* ==========================================================================
   MOBILE MENU (design: projects/palimpagos/web/mobile/menu)
   ========================================================================== */

.lp-m-menu-btn { display: none; }

@media (max-width: 1023px) {
  .lp-m-menu-btn {
    display: block;
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 900;
    width: 54px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    filter: drop-shadow(0 3px 0 rgba(3, 55, 110, .35));
    transition: transform .15s;
  }
  .lp-m-menu-btn img { display: block; width: 100%; height: auto; }
  .lp-m-menu-btn:active { transform: scale(.92); }
  .lp-m-menu-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 10px; }
  .lp-m-header { padding-top: 22px; }

  .lp-m-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 18px 40px;
    background:
      radial-gradient(120% 70% at 50% 0%, #fffaf0 0%, rgba(255, 250, 240, 0) 70%),
      #fbeccb;
    font-family: "LP Chaloops", Arial, sans-serif;
    animation: lp-menu-in .22s ease-out;
  }
  .lp-m-menu[hidden] { display: none; }
  @keyframes lp-menu-in { from { opacity: 0; } to { opacity: 1; } }

  .lp-m-menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }
  .lp-m-home {
    padding: 8px 4px;
    color: #7f6532;
    font-size: 18px;
    text-decoration: none;
  }
  .lp-m-home[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
  .lp-m-close {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border: 0;
    background: none;
    color: #7f6532;
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }
  .lp-m-close img { width: 40px; height: 40px; }
  .lp-m-close span { transform: translateY(2px) rotate(-2deg); }

  .lp-m-menu-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(26px, 5.5vh, 56px);
    flex: 1;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 30px 0 10px;
    list-style: none;
  }
  .lp-m-menu-list li { animation: lp-pill-in .38s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(var(--i) * 60ms + 60ms); }
  .lp-m-menu-list li:nth-child(even) { --lp-from: 40px; }
  @keyframes lp-pill-in { from { opacity: 0; transform: translateX(var(--lp-from, -40px)); } to { opacity: 1; transform: none; } }

  /* Gold pill, after the 881.78 x 213.77 pills in menu.svg */
  .lp-m-pill {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    aspect-ratio: 881.78 / 213.77;
    max-height: 104px;
    border: 4px solid #433412;
    border-radius: 999px;
    background: linear-gradient(180deg, #f9e7d2 0%, #ffbe2e 49%, #f4be69 100%);
    box-shadow: 0 6px 0 rgba(67, 52, 18, .25);
    color: #7f6532;
    font-size: clamp(28px, 8.4vw, 40px);
    line-height: 1;
    text-decoration: none;
    transition: transform .12s;
  }
  .lp-m-pill span { position: relative; transform: translateY(2px); }
  .lp-m-pill--right { justify-content: flex-end; padding-right: 8%; }
  .lp-m-pill--long { font-size: clamp(22px, 6.6vw, 34px); }
  .lp-m-pill--left { justify-content: flex-start; padding-left: 11%; }
  .lp-m-pill:active { transform: scale(.97); }
  .lp-m-pill:focus-visible { outline: 4px solid var(--lp-deep); outline-offset: 4px; }
  .lp-m-pill[aria-current="page"] { background: linear-gradient(180deg, #fff3c4 0%, #ffd34d 49%, #ffc94d 100%); box-shadow: 0 6px 0 rgba(67, 52, 18, .25), inset 0 0 0 4px #fff; }

  /* Nav icons sit in the empty half of each pill */
  .lp-m-pill-icon {
    position: absolute;
    top: 50%;
    height: 112%;
    width: auto;
    transform: translateY(-52%) rotate(-6deg);
    filter: drop-shadow(0 4px 0 rgba(67, 52, 18, .25));
  }
  .lp-m-pill--right .lp-m-pill-icon { left: 6%; }
  .lp-m-pill--left .lp-m-pill-icon { right: 4%; transform: translateY(-52%) rotate(6deg); }

  .lp-m-sub {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }
  .lp-m-sub a {
    padding: 8px 14px 6px;
    border: 3px solid #433412;
    border-radius: 999px;
    background: #fff6e0;
    color: #7f6532;
    font-size: 15px;
    text-decoration: none;
  }
  .lp-m-sub a[aria-current="page"] { background: #ffd34d; }
  .lp-m-sub a:focus-visible { outline: 3px solid var(--lp-deep); outline-offset: 3px; }

  body.lp-menu-open { overflow: hidden; }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .lp-m-menu, .lp-m-menu-list li { animation: none; }
}

/* ==========================================================================
   ISLAND TOUR — the original Island Tour layout (design kit:
   projects/palimpagos/web/siteV1/northernSkydock). Desktop sizes are on the
   1920px canvas; phones and tablets are at the end of this block.
   ========================================================================== */

.lp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lp-tour .lp-wrap { width: 1280px; }

/* Book shelf: the seven book icons standing in front of the palms */
.lp-shelf {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 34px;
  height: 230px;
}
.lp-shelf-book {
  position: relative;
  width: 128px;
  transition: transform .22s cubic-bezier(.3, 1.6, .5, 1);
}
.lp-shelf-book img {
  display: block;
  height: 158px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 0 rgba(3, 55, 110, .35));
}
.lp-shelf-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lp-shelf-book:hover { transform: translateY(-10px) rotate(-4deg); }
.lp-shelf-book[aria-selected="true"] { transform: translateY(-28px) scale(1.14); }

/* The big blue panel with palm trees along its top */
.lp-tour-panel {
  position: relative;
  margin-top: 30px;
  padding: 44px 40px 34px;
  background: #338ff1;
  border: 6px solid #057af5;
  border-radius: 26px;
  box-shadow: inset 0 0 0 2px #2c76c5, inset 0 0 0 5px #52a1f1, 0 14px 0 rgba(3, 55, 110, .3);
}
.lp-tour-palms {
  position: absolute;
  left: -6px;
  bottom: calc(100% - 4px);
  width: calc(100% + 12px);
  height: auto;
  pointer-events: none;
}

/* Poster | title and blurb | table of contents */
.lp-book {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
}
.lp-cover {
  position: relative;
  width: 330px;
  aspect-ratio: 1891 / 2671;
}
.lp-cover-art {
  position: absolute;
  inset: 3.6% 5%;
  overflow: hidden;
  border-radius: 4px;
  background: #0b2442;
}
.lp-cover-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-cover-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lp-cover--unknown {
  display: grid;
  place-items: center;
  background: #0081d1;
  border-radius: 12px;
}
.lp-cover--unknown span {
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 200px;
  line-height: 1;
  color: #0567a8;
}

.lp-book-main { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.lp-book-heading { margin: 0; width: 100%; text-align: center; }
.lp-book-logo { display: block; width: auto; max-width: min(100%, 440px); height: auto; max-height: 230px; margin: 0 auto; }
.lp-book-title {
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 50px;
  line-height: 1.02;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 0 #0567b6, 0 0 18px rgba(255, 255, 255, .25);
}
.lp-book-numeral {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lp-gold);
  text-shadow: none;
}
.lp-book-blurb { width: 100%; padding: 24px 26px; border-radius: 12px; background: #0081d1; }
.lp-book-blurb p { font-size: 22px; line-height: 1.38; }

/* Parchment table of contents: everything inside scales with the scroll's width (cqw) */
.lp-toc {
  position: relative;
  justify-self: end;
  width: 330px;
  aspect-ratio: 1763 / 2428;
  background: url("../images/tour/tocBg.png") center / 100% 100% no-repeat;
  container-type: inline-size;
  filter: drop-shadow(0 8px 0 rgba(3, 55, 110, .25));
}
.lp-toc ol {
  position: absolute;
  top: 15%;
  left: 13%;
  right: 7%;
  bottom: 5%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-toc li { flex: 0 0 auto; }
.lp-toc-btn,
.lp-toc-blank {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3cqw;
  width: 100%;
  min-height: 17cqw;
  padding: 2cqw 1.5cqw 1.6cqw;
  border-bottom: .7cqw dashed #b99a5f;
  color: #7f6532;
}
.lp-toc-btn { border-radius: 2cqw 2cqw 0 0; transition: background .15s; }
.lp-toc-btn:hover { background: rgba(255, 244, 205, .55); }
.lp-toc-btn[aria-current="true"] { background: rgba(255, 236, 170, .85); }
.lp-toc-blank { border-bottom-color: rgba(185, 154, 95, .7); }
.lp-toc-num {
  flex: none;
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 4.6cqw;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #a2885a;
  white-space: nowrap;
}
.lp-toc-name {
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 7.6cqw;
  line-height: 1.05;
  text-align: right;
  color: #7f6532;
}
.lp-toc-btn--img { min-height: 0; padding: 0; border: 0; border-radius: 3cqw; }
.lp-toc-btn--img img { display: block; width: 100%; height: auto; }
.lp-toc-btn--img[aria-current="true"] { background: none; }
.lp-toc-mystery {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%) rotate(8deg);
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 64cqw;
  line-height: 1;
  color: rgba(127, 101, 50, .5);
  pointer-events: none;
}

/* Chapter panel: PREV | island logo and description | screenshots | NEXT */
.lp-chapter {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 34px 14px;
  border-radius: 14px;
  background: #0081d1;
}
.lp-chapter-arrow { width: 62px; justify-self: center; transition: transform .15s; }
.lp-chapter-arrow img { display: block; width: 100%; height: auto; }
.lp-chapter-arrow:hover { transform: scale(1.1); }
.lp-chapter-arrow:disabled { opacity: .3; cursor: default; transform: none; }
.lp-chapter-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
}
.lp-chapter-info { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lp-chapter-label {
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 18px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lp-gold);
}
.lp-chapter-heading { margin: 0; width: 100%; }
.lp-chapter-logo { display: block; width: 100%; max-width: 320px; max-height: 210px; margin: 0 auto; object-fit: contain; }
.lp-chapter-title {
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 0 #0567b6;
}
.lp-chapter-text { max-width: 460px; font-size: 20px; line-height: 1.4; }

/* Screenshot slider, after the original Webflow slider */
.lp-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #ddd;
}
.lp-slider-track { display: flex; height: 100%; transition: transform .5s ease; }
.lp-slide { flex: 0 0 100%; height: 100%; }
.lp-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-slide--empty { display: grid; place-items: center; background: #dcdcdc; }
.lp-slide--empty p {
  font-family: "LP Chaloops", Arial, sans-serif;
  font-size: 24px;
  letter-spacing: .06em;
  color: #9a9a9a;
}
.lp-slider-arrow { position: absolute; top: 0; bottom: 0; width: 14%; }
.lp-slider-arrow--left { left: 0; }
.lp-slider-arrow--right { right: 0; }
.lp-slider-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border: solid #fff;
  border-width: 0 0 5px 5px;
  transform: translate(-30%, -50%) rotate(45deg);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
}
.lp-slider-arrow--right::before { transform: translate(-70%, -50%) rotate(-135deg); }
.lp-slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 10px; }
.lp-slider-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.lp-slider-dot[aria-current="true"] { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .lp-slider-track { transition: none; }
  .lp-shelf-book { transition: none; }
}

/* Phones and tablets */
@media (max-width: 1023px) {
  .lp-mobile-site .lp-tour .lp-wrap { width: auto; }
  .lp-mobile-site .lp-shelf {
    flex-wrap: wrap;
    height: auto;
    gap: 6px 14px;
    padding-top: 12px;
  }
  .lp-mobile-site .lp-shelf-book { width: 60px; }
  .lp-mobile-site .lp-shelf-book img { height: 74px; }
  .lp-mobile-site .lp-shelf-book:hover { transform: none; }
  .lp-mobile-site .lp-shelf-book[aria-selected="true"] { transform: translateY(-8px) scale(1.1); }

  .lp-mobile-site .lp-tour-panel {
    margin-top: 64px;
    padding: 22px 14px 14px;
    border-width: 4px;
    border-radius: 18px;
    box-shadow: inset 0 0 0 2px #2c76c5, inset 0 0 0 4px #52a1f1, 0 8px 0 rgba(3, 55, 110, .3);
  }
  .lp-mobile-site .lp-tour-palms { left: -4px; width: calc(100% + 8px); bottom: calc(100% - 3px); }

  .lp-mobile-site .lp-book { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 20px; }
  .lp-mobile-site .lp-cover { width: min(230px, 66%); }
  .lp-mobile-site .lp-cover--unknown span { font-size: 120px; }
  .lp-mobile-site .lp-book-main { gap: 14px; width: 100%; }
  .lp-mobile-site .lp-book-logo { max-width: min(100%, 330px); max-height: 170px; }
  .lp-mobile-site .lp-book-title { font-size: clamp(28px, 8vw, 40px); text-shadow: 0 3px 0 #0567b6; }
  .lp-mobile-site .lp-book-numeral { font-size: 13px; margin-bottom: 4px; }
  .lp-mobile-site .lp-book-blurb { padding: 16px 18px; border-radius: 10px; }
  .lp-mobile-site .lp-book-blurb p { font-size: 16px; line-height: 1.45; }
  .lp-mobile-site .lp-toc { justify-self: center; width: min(300px, 86%); }

  .lp-mobile-site .lp-chapter {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 4px;
    margin-top: 20px;
    padding: 18px 6px;
    border-radius: 12px;
  }
  .lp-mobile-site .lp-chapter-arrow { width: 28px; }
  .lp-mobile-site .lp-chapter-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lp-mobile-site .lp-chapter-info { gap: 8px; }
  .lp-mobile-site .lp-chapter-label { font-size: 12px; }
  .lp-mobile-site .lp-chapter-logo { max-height: 130px; max-width: 240px; }
  .lp-mobile-site .lp-chapter-title { font-size: 26px; text-shadow: 0 3px 0 #0567b6; }
  .lp-mobile-site .lp-chapter-text { font-size: 15.5px; }
  .lp-mobile-site .lp-slide--empty p { font-size: 15px; }
  .lp-mobile-site .lp-slider-arrow::before { width: 14px; height: 14px; border-width: 0 0 4px 4px; }
  .lp-mobile-site .lp-slider-dots { bottom: 8px; gap: 8px; }
  .lp-mobile-site .lp-slider-dot { width: 9px; height: 9px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .lp-mobile-site .lp-book { grid-template-columns: 220px minmax(0, 1fr); justify-items: stretch; align-items: start; }
  .lp-mobile-site .lp-cover { width: 220px; }
  .lp-mobile-site .lp-toc { grid-column: 1 / -1; }
  .lp-mobile-site .lp-chapter-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; }
}
