/* Landing story (index.html only).
   Loaded after the shared landing.css — every rule here is scoped to
   body.lb-story or to .ls-* classes that only index.html uses, so account,
   login, world, explore, profile, plan, bugs, privacy and terms are untouched.
   Motion: transform/opacity only; scroll progress comes from CSS scroll-driven
   animations (or the rAF fallback in js/landing-story.js) as --p. */

@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.lb-story {
  --ls-forest: #1f3d30;
  --ls-deep: #13251e;
  --ls-cream: #fbf6ec;
  --ls-paper: #fffdf8;
  --ls-gold: #e6c98e;
  --ls-gold-deep: #b8892f;
  --ls-gold-ink: #7a5c1c;
  --ls-ink: #1b2a23;
  --ls-soft: #44544a;
  --ls-line: #e3d8c2;
  --ls-sage: #e9eddf;
  --ls-clay: #c0643f;
  --ls-display: "Playfair Display", "Fraunces", Georgia, serif;
  --ls-body: "DM Sans", "Outfit", system-ui, sans-serif;
  --ls-hand: "Caveat", "Segoe Print", cursive;
  --ls-gutter: max(1.25rem, calc((100vw - 1280px) / 2));
  /* Motion: strong ease-out for anything entering, a light overshoot (bounce ≤ 0.3) only for playful
     pops — stamps, pins, avatars. Built-in ease is too soft; big overshoots read as wobbly. */
  --ls-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ls-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ls-pop: cubic-bezier(0.34, 1.3, 0.64, 1);
  --ls-nav-h: 72px;
  color: var(--ls-ink);
  background: var(--ls-cream);
}

@media (min-width: 110rem) {
  .lb-story {
    --ls-gutter: max(2.5rem, calc((100vw - 1500px) / 2));
  }
}

.lb-story :is(.lb-nav, main, .lb-foot) {
  --serif: var(--ls-display);
  --sans: var(--ls-body);
  font-family: var(--ls-body);
}

.lb-story main {
  font-size: 1.0625rem;
  line-height: 1.6;
}

.lb-story :is(section, #atlas) {
  scroll-margin-top: calc(var(--ls-nav-h) + 0.5rem);
}

.lb-story :is(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--ls-clay);
  outline-offset: 4px;
  border-radius: 4px;
}

.lb-story .lb-skip {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  background: var(--ls-forest);
  color: var(--ls-cream);
}

.lb-story .lb-skip:focus {
  top: 1rem;
}

/* ── Reading progress (a gold bookmark ribbon) ─────────────── */
.ls-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 3px;
  pointer-events: none;
}

.ls-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ls-gold-deep), var(--ls-gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@supports (animation-timeline: scroll()) {
  .ls-progress span {
    animation: ls-bar linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes ls-bar {
  to {
    transform: scaleX(1);
  }
}

/* ── Nav ───────────────────────────────────────────────────── */
.lb-story .lb-nav {
  min-height: var(--ls-nav-h);
  padding: 0.75rem var(--ls-gutter);
  gap: 0.75rem;
  background: var(--ls-cream);
  color: var(--ls-ink);
  border-bottom: 1px solid var(--ls-line);
}

.lb-story .lb-mark {
  font-family: var(--ls-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lb-story .lb-mark img {
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  background: none;
  box-shadow: none;
}

.lb-story .lb-beta-pill {
  border: 0;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: #efe3c4;
  color: var(--ls-gold-ink);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.lb-story .lb-nav-links {
  margin-inline: auto;
  gap: 1.4rem;
  font-size: 1rem;
}

.lb-story .lb-nav-links a {
  color: var(--ls-soft);
  padding-block: 0.6rem;
}

.lb-story .lb-nav-links a:hover,
.lb-story .lb-nav-links a.is-current {
  color: var(--ls-forest);
  text-decoration: underline;
  text-decoration-color: var(--ls-gold-deep);
  text-underline-offset: 0.35rem;
}

.lb-story .lb-nav-actions {
  margin-left: 0;
}

.lb-story .lb-nav .auth-menu-trigger {
  color: var(--ls-ink);
}

.lb-story .lb-nav .auth-menu.is-open .auth-menu-trigger,
.lb-story .lb-nav .auth-menu-trigger:hover {
  background: #efe8d6;
  border-color: var(--ls-line);
}

.lb-story .lb-menu-toggle {
  display: none;
}

/* ── Buttons ───────────────────────────────────────────────── */
body.lb-story :is(a.btn-solid, a.btn-quiet, .btn-solid, .btn-quiet) {
  min-height: 50px;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--ls-body);
  letter-spacing: 0;
  text-transform: none;
  gap: 0.5rem;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 200ms var(--ls-ease-out),
    scale 160ms var(--ls-ease-out);
}

body.lb-story :is(a.btn-solid, a.btn-quiet, .btn-solid, .btn-quiet, .lb-store-btn):active {
  scale: 0.97;
}

body.lb-story :is(a.btn-solid, a.btn-solid:visited, a.btn-solid:active) {
  background: var(--ls-forest);
  border: 1px solid var(--ls-forest);
  color: var(--ls-cream);
}

body.lb-story :is(a.btn-quiet, a.btn-quiet:visited, a.btn-quiet:active) {
  background: transparent;
  border: 1px solid #a9ad98;
  color: var(--ls-ink);
}

@media (hover: hover) and (pointer: fine) {
  body.lb-story a.btn-solid:hover {
    background: var(--ls-deep);
    border-color: var(--ls-deep);
    color: var(--ls-cream);
    transform: translateY(-2px);
  }

  body.lb-story a.btn-quiet:hover {
    background: #efe8d6;
    color: var(--ls-ink);
    border-color: #8e937c;
    transform: translateY(-2px);
  }
}

body.lb-story .lb-nav a.btn-solid {
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
}

.ls-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.ls-ctas-center {
  justify-content: center;
}

/* ── Shared type ───────────────────────────────────────────── */
.ls-section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) var(--ls-gutter);
}

.ls-wrap {
  width: 100%;
  min-width: 0;
}

.ls-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.ls-head {
  min-width: 0;
}

.ls-head-center {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.ls-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font: 600 0.95rem/1.4 var(--ls-body);
  letter-spacing: 0.01em;
  color: var(--ls-gold-ink);
}

.ls-kicker::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}

.ls-head h2,
.ls-final h2 {
  margin: 0 0 1.2rem;
  font: 500 clamp(2.1rem, 1.35rem + 3vw, 3.9rem) / 1.07 var(--ls-display);
  letter-spacing: -0.02em;
  color: var(--ls-ink);
  text-wrap: balance;
}

.ls-head h2 em,
.ls-final h2 em {
  font-style: italic;
  color: #2c5b44;
}

.ls-sub {
  max-width: 36rem;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ls-soft);
}

.ls-head-center .ls-sub {
  margin-inline: auto;
}

.ls-points {
  display: grid;
  gap: 0.9rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.ls-points li {
  padding-left: 1rem;
  border-left: 2px solid var(--ls-gold-deep);
  color: var(--ls-soft);
  line-height: 1.6;
}

.ls-points strong {
  display: block;
  color: var(--ls-ink);
  font-weight: 600;
}

.ls-points.is-light li {
  color: #c9d3c3;
  border-left-color: var(--ls-gold);
}

.ls-points.is-light strong {
  color: var(--ls-cream);
}

.ls-av,
.ls-ledger i,
.ls-owes i,
.ls-presence i,
.ls-join-stack i {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c, #e6c98e);
  color: var(--ls-deep);
  font-style: normal;
  font-weight: 700;
}

.ls-file-ico {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.5rem;
  border-radius: 4px 10px 4px 4px;
  background: #c8553a;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ls-file-ico.is-green {
  background: #2f7a4b;
}

/* Activity colours (itinerary types). */
.t-transpo { --t: #5b86a8; }
.t-stay { --t: #b8892f; }
.t-food { --t: #c0643f; }
.t-see { --t: #2f6a4f; }
.t-act { --t: #7a5c93; }
.t-free { --t: #8a9a7a; }

/* ── Reveal system ─────────────────────────────────────────── */
.ls-motion [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ls-ease-out), transform 0.7s var(--ls-ease-out);
}

.ls-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.ls-stagger,
.ls-ev,
.ls-index li,
.ls-roles li,
.ls-join-feed li,
.ls-join-stack i,
.ls-picks li,
.ls-ledger li,
.ls-owes li,
.ls-awards li,
.ls-boards li,
.ls-scan-form > div {
  transition: opacity 0.45s var(--ls-ease-out), translate 0.55s var(--ls-ease-out), scale 0.55s var(--ls-pop);
  transition-delay: calc(0.15s + var(--i, 0) * 0.06s);
}

.ls-motion [data-reveal]:not(.is-in) :is(.ls-ev, .ls-index li, .ls-roles li, .ls-boards li, .ls-ledger li, .ls-scan-form > div) {
  opacity: 0;
  translate: 0 18px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.ls-hero {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--ls-gutter) clamp(3.5rem, 7vw, 6.5rem);
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(230, 201, 142, 0.28), transparent 70%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(31, 61, 48, 0.07), transparent 70%),
    var(--ls-cream);
  overflow: clip;
}

.ls-hero-copy {
  min-width: 0;
  max-width: 38rem;
}

.ls-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ls-gold-ink);
}

.ls-dot {
  position: relative;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #3e8a5f;
  flex-shrink: 0;
}

.ls-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #3e8a5f;
  animation: ls-ping 2.4s ease-out infinite;
}

@keyframes ls-ping {
  0% { transform: scale(1); opacity: 0.5; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

.ls-hero h1 {
  margin: 0 0 1.4rem;
  font: 500 clamp(2.9rem, 1.5rem + 5.4vw, 5.8rem) / 1.02 var(--ls-display);
  letter-spacing: -0.03em;
  color: var(--ls-ink);
  text-wrap: balance;
}

.ls-hero h1 em {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: #2c5b44;
}

.ls-hero h1 em::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.06em;
  bottom: 0.06em;
  z-index: -1;
  height: 0.2em;
  border-radius: 0.1em;
  background: var(--ls-gold);
  opacity: 0.75;
  transform-origin: 0 50%;
  animation: ls-underline 0.9s 0.35s cubic-bezier(0.6, 0, 0.2, 1) both;
}

@keyframes ls-underline {
  from { transform: scaleX(0); }
}

.ls-lede {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.65;
  color: var(--ls-soft);
}

.ls-avail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 1.6rem 0 0;
  font-size: 0.95rem;
  color: #56634f;
}

.ls-avail span + span::before {
  content: "·";
  margin-right: 0.9rem;
  color: var(--ls-gold-deep);
}

/* Hero illustration: scales as one piece with container units. */
.ls-hero-art {
  position: relative;
  width: 100%;
  max-width: 660px;
  aspect-ratio: 1 / 0.9;
  justify-self: center;
  container-type: inline-size;
  font-size: max(10px, 2.3cqi);
}

.ls-map {
  position: absolute;
  inset: 0;
  border-radius: 6cqi;
  background:
    repeating-radial-gradient(circle at 78% 30%, transparent 0 2.4cqi, rgba(31, 61, 48, 0.06) 2.4cqi 2.6cqi),
    linear-gradient(160deg, #f2ead7, #ebe2cb);
  border: 1px solid #e0d4b8;
  transform: translateY(calc(var(--p) * 30px));
}

.ls-route {
  position: absolute;
  top: 2%;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 180;
  overflow: visible;
}

.ls-route-line {
  fill: none;
  stroke: var(--ls-forest);
  stroke-width: 2.4;
  stroke-dasharray: 7 8;
  stroke-linecap: round;
}

.ls-route-draw {
  fill: none;
  stroke: #fff;
  stroke-width: 10;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: ls-draw 3.4s 0.5s cubic-bezier(0.45, 0, 0.25, 1) both;
}

@keyframes ls-draw {
  from { stroke-dashoffset: 1; }
}

.ls-route-pin circle {
  fill: var(--ls-gold);
  stroke: var(--ls-forest);
  stroke-width: 2;
}

.ls-route-pin .ls-pin-core {
  fill: var(--ls-forest);
  stroke: none;
}

.ls-route-pin.is-end {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ls-pop 0.5s 3.7s var(--ls-pop) both;
}

.ls-route-label {
  font: 600 13px var(--ls-body);
  fill: var(--ls-soft);
}

.ls-plane path {
  fill: var(--ls-deep);
}

.ls-journal-wrap {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 29%;
  bottom: 5%;
  transform: translateY(calc(var(--p) * -48px)) rotate(calc(-1.5deg + var(--p) * 3deg));
  perspective: 1600px;
}

.ls-journal {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  border-radius: 1.6cqi;
  background: var(--ls-paper);
  box-shadow:
    0 2.4cqi 5cqi -2cqi rgba(19, 37, 30, 0.35),
    0 0 0 1px rgba(19, 37, 30, 0.06);
}

.ls-journal::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6cqi;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(19, 37, 30, 0.1) 45%, rgba(19, 37, 30, 0.16) 50%, rgba(19, 37, 30, 0.1) 55%, transparent);
  pointer-events: none;
}

.ls-page {
  position: relative;
  min-width: 0;
  padding: 4.5cqi 4.5cqi 4cqi;
  background:
    repeating-linear-gradient(to bottom, transparent 0 5.4cqi, rgba(31, 61, 48, 0.07) 5.4cqi calc(5.4cqi + 1px)) 0 11cqi / 100% auto no-repeat,
    var(--ls-paper);
}

.ls-page-left {
  border-radius: 1.6cqi 0 0 1.6cqi;
  transform-origin: 100% 50%;
  backface-visibility: hidden;
  animation: ls-page-open 1.2s 0.15s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.ls-page-right {
  border-radius: 0 1.6cqi 1.6cqi 0;
}

@keyframes ls-page-open {
  from { transform: rotateY(165deg); }
}

.ls-tape {
  position: absolute;
  top: -1.6cqi;
  left: 38%;
  width: 14cqi;
  height: 4cqi;
  background: rgba(230, 201, 142, 0.75);
  transform: rotate(-4deg);
}

.ls-hand {
  margin: 0 0 0.6cqi;
  font: 600 5.4cqi/1.05 var(--ls-hand);
  color: var(--ls-forest);
}

.ls-page-meta {
  margin: 0 0 2.6cqi;
  font-size: max(10px, 2.1cqi);
  color: var(--ls-soft);
}

.ls-crew-row {
  display: flex;
  align-items: center;
  margin-bottom: 3cqi;
}

.ls-crew-row .ls-av {
  width: 5.4cqi;
  height: 5.4cqi;
  margin-right: -1.2cqi;
  border: 0.5cqi solid var(--ls-paper);
  font-size: max(9px, 2.1cqi);
}

.ls-crew-row b {
  margin-left: 2.6cqi;
  font-size: max(10px, 2.1cqi);
  font-weight: 600;
  color: var(--ls-soft);
}

.ls-ticket {
  position: relative;
  padding: 2.4cqi 2.6cqi;
  border: 1.5px dashed #c9b07a;
  border-radius: 1.6cqi;
  background: #fbf3de;
}

.ls-ticket-tag {
  position: absolute;
  top: -1.5cqi;
  right: 2cqi;
  padding: 0.3cqi 1.3cqi;
  border-radius: 999px;
  background: var(--ls-forest);
  color: var(--ls-cream);
  font-size: max(8px, 1.6cqi);
  font-weight: 600;
}

.ls-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 4.6cqi/1 var(--ls-display);
  color: var(--ls-ink);
}

.ls-ticket-plane {
  font-size: 3cqi;
  color: var(--ls-gold-deep);
}

.ls-ticket p {
  margin: 1.2cqi 0 0;
  font-size: max(9px, 1.9cqi);
  color: var(--ls-soft);
}

.ls-day-title {
  margin: 0 0 2.2cqi;
  font: 600 4.2cqi/1.1 var(--ls-display);
  color: var(--ls-ink);
}

.ls-day-title small {
  display: block;
  margin-top: 0.6cqi;
  font: 500 max(9px, 1.9cqi) var(--ls-body);
  color: var(--ls-soft);
}

.ls-day-list {
  display: grid;
  gap: 1.5cqi;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ls-day-list li {
  display: flex;
  align-items: center;
  gap: 1.4cqi;
  padding: 1.3cqi 1.6cqi;
  border-radius: 1.2cqi;
  background: #f6f1e4;
  font-size: max(10px, 2.2cqi);
  font-weight: 600;
  color: var(--ls-ink);
  white-space: nowrap;
  overflow: hidden;
}

.ls-day-list time {
  min-width: 7.6cqi;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ls-soft);
}

.ls-day-list li > span {
  width: 1.6cqi;
  height: 1.6cqi;
  border-radius: 50%;
  background: var(--t);
  flex-shrink: 0;
}

/* Handwriting-style reveal for journal lines (plays on load). */
.ls-w {
  animation: ls-write 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.9s + var(--i, 0) * 0.3s) both;
}

@keyframes ls-write {
  from {
    opacity: 0;
    transform: translateY(0.8cqi);
    clip-path: inset(-60% 100% -60% -10%);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(-60% -10% -60% -10%);
  }
}

.ls-pop {
  animation: ls-pop 0.5s var(--ls-pop) calc(0.9s + var(--i, 0) * 0.3s) both;
}

@keyframes ls-pop {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
}

.ls-hero-lakbi {
  position: absolute;
  left: -3%;
  bottom: -7%;
  width: 25%;
  transform: translateY(calc(var(--p) * -90px));
}

.ls-hero-lakbi img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 90%;
  animation: ls-rise 0.9s 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) both, ls-wave 2.6s 1.6s ease-in-out 3;
}

@keyframes ls-rise {
  from {
    opacity: 0;
    transform: translateY(40%) scale(0.8);
  }
}

@keyframes ls-wave {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-6deg); }
  40% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
}

.ls-hero-bubble {
  position: absolute;
  bottom: 62%;
  left: 88%;
  margin: 0;
  padding: 1cqi 2cqi;
  border-radius: 2cqi 2cqi 2cqi 0.4cqi;
  background: var(--ls-forest);
  color: var(--ls-cream);
  font: 600 max(11px, 2.6cqi) / 1.2 var(--ls-hand);
  font-size: max(15px, 3.4cqi);
  white-space: nowrap;
  transform-origin: 0 100%;
  animation: ls-pop 0.5s 1.4s var(--ls-pop) both;
}

/* Passport stamps (hero + memories). */
.ls-stamp {
  --ink: #b5452b;
  --r: -12deg;
  display: inline-grid;
  justify-items: center;
  align-content: center;
  gap: 0.15em;
  padding: 0.55em 0.9em;
  border: 3px double var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font: 700 1.05em/1 var(--ls-display);
  letter-spacing: 0.08em;
  opacity: 0.9;
  transform: rotate(var(--r));
}

.ls-stamp small {
  font: 600 0.55em/1.1 var(--ls-body);
  letter-spacing: 0.08em;
}

.ls-stamp-hero {
  position: absolute;
  right: 5cqi;
  bottom: 4cqi;
  font-size: max(11px, 2.6cqi);
  animation: ls-press 0.7s 4.2s cubic-bezier(0.3, 1.3, 0.5, 1) both;
}

@keyframes ls-press {
  0% {
    opacity: 0;
    transform: rotate(calc(var(--r) - 10deg)) scale(2);
  }
  55% {
    opacity: 0.95;
    transform: rotate(var(--r)) scale(0.9);
  }
  78% {
    transform: rotate(var(--r)) scale(1.05);
  }
  100% {
    opacity: 0.9;
    transform: rotate(var(--r)) scale(1);
  }
}

/* ── Chapter 1: chaos → one book (sticky, scroll-linked) ───── */
.ls-chaos {
  position: relative;
  height: 250vh;
  background: #f1e9d8;
  border-block: 1px solid var(--ls-line);
}

.ls-chaos-stage {
  position: sticky;
  top: var(--ls-nav-h);
  height: calc(100vh - var(--ls-nav-h));
  height: calc(100svh - var(--ls-nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 4vh, 3.5rem) var(--ls-gutter) clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
}

.ls-chaos .ls-head h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.3rem);
}

.ls-chaos .ls-sub {
  font-size: 1.08rem;
}

.ls-chaos-field {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 14rem;
  container-type: size;
}

.ls-chaos-cards {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ls-chaos-card {
  --q: clamp(0, (var(--p) - 0.12 - var(--d)) / 0.42, 1);
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  max-width: min(17rem, 62cqw);
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: var(--ls-paper);
  box-shadow: 0 10px 24px -14px rgba(19, 37, 30, 0.45);
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ls-ink);
  transform:
    translate(-50%, -50%)
    translate(calc(var(--x) * var(--sx, 1) * (1 - var(--q))), calc(var(--y) * (1 - var(--q))))
    rotate(calc(var(--r) * (1 - var(--q))))
    scale(calc(1 - var(--q) * 0.6));
  opacity: calc(1 - clamp(0, (var(--q) - 0.7) * 3.4, 1));
}

.ls-chaos-card b {
  display: block;
  font-size: 0.8rem;
  color: #2c7a55;
}

.ls-chaos-card.is-chat {
  display: block;
  border-radius: 1rem 1rem 1rem 0.3rem;
  background: #ffffff;
}

.ls-chaos-card.is-them {
  border-radius: 1rem 1rem 0.3rem 1rem;
  background: #dff0d8;
}

.ls-chaos-card.is-note {
  border-radius: 2px;
  background: #fbe38b;
  font: 600 1.35rem/1.1 var(--ls-hand);
}

.ls-chaos-card.is-link {
  background: #e7eef6;
}

.ls-shot-thumb {
  width: 2rem;
  height: 2.6rem;
  border-radius: 5px;
  background: linear-gradient(#cfd8e3 0 30%, #fff 30% 36%, #cfd8e3 36% 60%, #fff 60% 66%, #cfd8e3 66%);
  flex-shrink: 0;
}

.ls-chaos-book {
  --b: clamp(0, (var(--p) - 0.5) / 0.28, 1);
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.35rem;
  width: min(13rem, 46cqw);
  aspect-ratio: 3 / 4;
  max-height: 96cqh;
  border-radius: 6px 14px 14px 6px;
  background: linear-gradient(145deg, #2a513f, var(--ls-deep));
  color: var(--ls-cream);
  text-align: center;
  box-shadow: 0 30px 50px -24px rgba(19, 37, 30, 0.7);
  transform: translate(-50%, -50%) scale(calc(0.55 + var(--b) * 0.45)) rotate(calc(-8deg + var(--b) * 8deg));
  opacity: var(--b);
}

.ls-chaos-book-spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12%;
  border-radius: 6px 0 0 6px;
  background: rgba(0, 0, 0, 0.18);
}

.ls-chaos-book img {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.35rem;
  border-radius: 0.6rem;
  background: var(--ls-cream);
}

.ls-chaos-book strong {
  font: 600 1.5rem/1.1 var(--ls-display);
}

.ls-chaos-book small {
  font-size: 0.85rem;
  color: var(--ls-gold);
}

.ls-chaos-caption {
  margin: 0.5rem 0 0;
  font: italic 500 clamp(1.3rem, 1rem + 1.2vw, 1.9rem) / 1.2 var(--ls-display);
  color: var(--ls-forest);
  opacity: clamp(0, (var(--p) - 0.74) / 0.14, 1);
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.74) / 0.14, 1)) * 14px));
}

.ls-chaos-caption em {
  color: var(--ls-gold-ink);
}

/* ── Chapter 2: plan ───────────────────────────────────────── */
.ls-plan {
  background: var(--ls-cream);
}

.ls-board-stack {
  position: relative;
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}

.ls-board {
  padding: 1.2rem;
  border: 1px solid var(--ls-line);
  border-radius: 1.3rem;
  background: var(--ls-paper);
  box-shadow: 0 24px 50px -32px rgba(19, 37, 30, 0.45);
}

.ls-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ls-board-head strong {
  font: 600 1.35rem var(--ls-display);
}

.ls-presence {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: #f3ecd9;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ls-soft);
}

.ls-presence i {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.75rem;
  box-shadow: 0 0 0 2px #3e8a5f;
}

.ls-board-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.ls-board-day {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.7rem;
  border-radius: 0.9rem;
  background: #f7f2e6;
}

.ls-board-day.is-today {
  background: #eef2e4;
  box-shadow: inset 0 0 0 2px #cad7b3;
}

.ls-board-day > b {
  font-size: 0.9rem;
  color: var(--ls-soft);
}

.ls-ev {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.6rem;
  border-left: 3px solid var(--t);
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 2px 6px -4px rgba(19, 37, 30, 0.4);
}

.ls-ev small {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ls-soft);
}

.ls-board-map {
  margin-top: 0.9rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(90deg, rgba(31, 61, 48, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgba(31, 61, 48, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    #eef0e3;
  overflow: hidden;
}

.ls-board-map svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 120;
}

.ls-map-road {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
}

.ls-map-trail {
  fill: none;
  stroke: var(--ls-clay);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s 0.9s ease;
}

.ls-motion [data-reveal]:not(.is-in) .ls-map-trail {
  stroke-dashoffset: 1;
}

.ls-map-pin {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: opacity 0.4s, translate 0.6s var(--ls-pop);
  transition-delay: calc(0.8s + var(--i) * 0.25s);
}

.ls-motion [data-reveal]:not(.is-in) .ls-map-pin {
  opacity: 0;
  translate: 0 -18px;
}

.ls-map-pin circle {
  fill: var(--ls-forest);
  stroke: #fff;
  stroke-width: 2.5;
}

.ls-map-pin text {
  font: 700 12px var(--ls-body);
  fill: #fff;
  text-anchor: middle;
}

.ls-scan {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: min(100%, 30rem);
  margin-left: auto;
  margin-top: -2.5rem;
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  background: var(--ls-forest);
  color: var(--ls-cream);
  box-shadow: 0 24px 40px -26px rgba(19, 37, 30, 0.7);
  transform: rotate(-1.2deg);
}

.ls-scan-file {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.5rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
}

.ls-scan-file::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--ls-gold);
  box-shadow: 0 0 10px var(--ls-gold);
  opacity: 0;
}

.ls-board-stack.is-in .ls-scan-file::after {
  animation: ls-scanline 1.1s 0.5s ease-in-out 2;
}

@keyframes ls-scanline {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(4.2rem); opacity: 1; }
}

.ls-scan-arrow {
  color: var(--ls-gold);
  font-size: 1.3rem;
}

.ls-scan-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.9rem;
  flex: 1;
  min-width: 0;
  margin: 0;
}

.ls-scan-form > div {
  min-width: 0;
  transition-delay: calc(1.3s + var(--i) * 0.2s);
}

.ls-scan-form dt {
  font-size: 0.72rem;
  color: #b9c7b2;
}

.ls-scan-form dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.ls-index-title {
  margin: clamp(3.5rem, 7vw, 5.5rem) 0 1.2rem;
  font: 600 clamp(1.4rem, 1.1rem + 1vw, 1.9rem) / 1.2 var(--ls-display);
  color: var(--ls-ink);
}

.ls-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 1rem;
  margin: 0;
  padding: 1rem 0 0;
  list-style: none;
}

.ls-index li {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--ls-line);
  border-radius: 0 0.9rem 0.9rem 0.9rem;
  background: var(--ls-paper);
  transition-delay: calc(0.1s + var(--i) * 0.06s);
}

.ls-index li::before {
  content: "";
  position: absolute;
  left: -1px;
  bottom: 100%;
  width: 4.5rem;
  height: 0.7rem;
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--tab);
}

@media (hover: hover) and (pointer: fine) {
  .ls-index li {
    transition-property: opacity, translate, transform;
  }

  .ls-index li:hover {
    transform: translateY(-4px) rotate(-0.6deg);
    transition-delay: 0s;
  }
}

.ls-index b {
  font: 600 1.3rem/1.2 var(--ls-display);
}

.ls-index span {
  font-size: 0.98rem;
  color: var(--ls-soft);
}

/* ── Chapter 3: crew ───────────────────────────────────────── */
.ls-crew {
  background: var(--ls-sage);
}

.ls-join {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 1.4rem;
  background: var(--ls-paper);
  box-shadow: 0 24px 50px -34px rgba(19, 37, 30, 0.5);
}

.ls-join-book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--ls-forest);
}

.ls-join-cover {
  font: italic 600 1.4rem var(--ls-display);
  color: var(--ls-cream);
}

.ls-join-stack {
  display: flex;
}

.ls-join-stack i {
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -0.6rem;
  border: 3px solid var(--ls-forest);
  font-size: 0.95rem;
  transition-delay: calc(0.3s + var(--i) * 0.35s);
}

.ls-motion [data-reveal]:not(.is-in) .ls-join-stack i:not(:first-child) {
  opacity: 0;
  translate: 2.5rem 0;
  scale: 0.6;
}

.ls-join-feed {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ls-join-feed li {
  padding: 0.7rem 0.95rem;
  border-radius: 0.8rem;
  background: #f4f0e3;
  font-size: 1rem;
  color: var(--ls-soft);
  transition-delay: calc(0.3s + var(--i) * 0.35s);
}

.ls-motion [data-reveal]:not(.is-in) .ls-join-feed li {
  opacity: 0;
  translate: -1.2rem 0;
}

.ls-join-feed b {
  color: var(--ls-ink);
}

.ls-join-feed em {
  font-style: normal;
  font-weight: 700;
  color: #2c5b44;
}

.ls-roles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.ls-roles li {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 1.4rem 1.2rem;
  border-radius: 1.1rem;
  background: var(--ls-paper);
}

.ls-role-ico {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--c);
  color: var(--ic);
}

.ls-role-ico svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ls-roles p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ls-gold-ink);
}

.ls-roles h3 {
  margin: 0;
  font: 600 1.35rem/1.2 var(--ls-display);
}

.ls-roles span {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ls-soft);
}

/* ── Chapter 4: LakBi ──────────────────────────────────────── */
.ls-lakbi {
  background:
    radial-gradient(circle, rgba(230, 201, 142, 0.12) 1px, transparent 1.5px) 0 0 / 26px 26px,
    var(--ls-forest);
}

.ls-chat-wrap {
  position: relative;
  min-width: 0;
  padding-top: 3.5rem;
}

.ls-chat-mascot {
  position: absolute;
  top: -1rem;
  right: -0.5rem;
  z-index: 2;
  width: clamp(6.5rem, 12vw, 9rem);
  height: auto;
  animation: ls-bob 5s ease-in-out infinite;
}

@keyframes ls-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ls-chat {
  position: relative;
  border-radius: 1.4rem;
  background: var(--ls-paper);
  color: var(--ls-ink);
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.ls-chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--ls-line);
  background: #f4efe1;
}

.ls-chat-head img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
}

.ls-chat-head strong {
  display: block;
  font-size: 1.05rem;
}

.ls-chat-head span {
  font-size: 0.88rem;
  color: var(--ls-soft);
}

.ls-chat-log {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
}

.ls-bubble {
  max-width: 88%;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 1.1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.ls-bubble.is-user {
  justify-self: end;
  border-bottom-right-radius: 0.3rem;
  background: var(--ls-forest);
  color: var(--ls-cream);
}

.ls-reply {
  display: grid;
}

.ls-reply > * {
  grid-area: 1 / 1;
}

.ls-bubble.is-bot {
  justify-self: start;
  border-bottom-left-radius: 0.3rem;
  background: #f1ecde;
}

.ls-typing {
  display: none;
  align-self: start;
  justify-self: start;
  gap: 0.3rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 1.1rem 1.1rem 1.1rem 0.3rem;
  background: #f1ecde;
}

.ls-typing i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #8a8f7c;
}

.ls-motion .ls-typing {
  display: flex;
  opacity: 0;
}

.ls-chat-wrap.is-in .ls-typing {
  animation: ls-typing-life 1.5s 0.8s both;
}

.ls-chat-wrap.is-in .ls-typing i {
  animation: ls-dotjump 0.9s ease-in-out infinite;
}

.ls-chat-wrap.is-in .ls-typing i:nth-child(2) { animation-delay: 0.15s; }
.ls-chat-wrap.is-in .ls-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes ls-typing-life {
  0% { opacity: 0; }
  10%, 85% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes ls-dotjump {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.ls-motion .ls-chat-wrap:not(.is-in) :is(.ls-bubble, .ls-picks li) {
  opacity: 0;
}

.ls-chat-wrap.is-in .ls-bubble.is-user {
  animation: ls-bubble-in 0.5s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
}

.ls-chat-wrap.is-in .ls-bubble.is-bot {
  animation: ls-bubble-in 0.5s 2.3s cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
}

@keyframes ls-bubble-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}

.ls-picks {
  display: flex;
  gap: 0.8rem;
  margin: 0 -1.2rem;
  padding: 0.2rem 1.2rem 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.2rem;
  list-style: none;
  scrollbar-width: thin;
}

.ls-picks li {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  flex: 0 0 min(14rem, 72%);
  padding: 0.7rem;
  border: 1px solid var(--ls-line);
  border-radius: 1rem;
  background: #fff;
  scroll-snap-align: start;
}

.ls-chat-wrap.is-in .ls-picks li {
  animation: ls-slide-in 0.6s calc(2.7s + var(--i) * 0.18s) cubic-bezier(0.2, 0.8, 0.2, 1.1) both;
}

@keyframes ls-slide-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
}

.ls-pick-art {
  display: grid;
  place-items: center;
  height: 5.5rem;
  border-radius: 0.7rem;
  font: 700 2.4rem/1 serif;
  color: rgba(255, 255, 255, 0.92);
}

.ls-pick-art.is-a { background: linear-gradient(135deg, #c0643f, #e6a15a); }
.ls-pick-art.is-b { background: linear-gradient(135deg, #7a4f2a, #c9964d); }
.ls-pick-art.is-c { background: linear-gradient(135deg, #2d5a7b, #5f9bb0); }

.ls-picks b {
  font-size: 1rem;
  line-height: 1.3;
}

.ls-picks small {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ls-soft);
}

.ls-pick-pin {
  justify-self: start;
  margin-top: 0.2rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #eef2e4;
  color: #2c5b44;
  font-size: 0.8rem;
  font-weight: 700;
}

.ls-chat-foot {
  margin: 0;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--ls-line);
  background: #f8f5ec;
  font-size: 0.85rem;
  color: var(--ls-soft);
}

/* ── Chapter 5: money ──────────────────────────────────────── */
.ls-money {
  background: var(--ls-cream);
}

.ls-ledger-flow {
  position: relative;
  display: grid;
  min-width: 0;
}

.ls-ledger,
.ls-owes {
  border-radius: 1.3rem;
  background: var(--ls-paper);
  border: 1px solid var(--ls-line);
  box-shadow: 0 24px 50px -34px rgba(19, 37, 30, 0.5);
}

.ls-ledger {
  width: min(100%, 32rem);
  padding: 1.2rem;
  transform: rotate(-1deg);
}

.ls-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.ls-ledger-head strong {
  font: 600 1.35rem var(--ls-display);
}

.ls-fx {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #f3ecd9;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ls-gold-ink);
}

.ls-ledger ul,
.ls-owes ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ls-ledger li,
.ls-owes li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  background: #f7f3e8;
}

.ls-ledger i,
.ls-owes i {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.85rem;
}

.ls-ledger li > span,
.ls-owes li > span {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  line-height: 1.3;
}

.ls-ledger li small {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ls-soft);
}

.ls-ledger li b {
  display: grid;
  justify-items: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ls-ledger li b small {
  font-weight: 500;
  color: var(--ls-soft);
}

.ls-ledger-total {
  display: flex;
  justify-content: space-between;
  margin: 0.9rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px dashed #d4c7a8;
  color: var(--ls-soft);
}

.ls-ledger-total b {
  font-size: 1.15rem;
  color: var(--ls-ink);
  font-variant-numeric: tabular-nums;
}

.ls-flow-arrow {
  width: 4rem;
  height: 4rem;
  margin: -0.5rem 0 -0.5rem 45%;
  fill: none;
  stroke: var(--ls-gold-deep);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ls-flow-arrow path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s 0.9s ease;
}

.ls-flow-arrow path + path {
  transition-delay: 1.5s;
  transition-duration: 0.3s;
}

.ls-motion [data-reveal]:not(.is-in) .ls-flow-arrow path {
  stroke-dashoffset: 1;
}

.ls-owes {
  width: min(100%, 28rem);
  justify-self: end;
  padding: 1.2rem;
  background: var(--ls-forest);
  border-color: var(--ls-forest);
  color: var(--ls-cream);
  transform: rotate(1.2deg);
}

.ls-owes-title {
  margin: 0 0 0.8rem;
  font: 600 1.35rem var(--ls-display);
}

.ls-owes li {
  background: rgba(255, 255, 255, 0.08);
  transition-delay: calc(1.6s + var(--i) * 0.2s);
}

.ls-motion [data-reveal]:not(.is-in) .ls-owes li {
  opacity: 0;
  translate: 0 12px;
}

.ls-owes li b {
  font-variant-numeric: tabular-nums;
  color: var(--ls-gold);
}

.ls-owes li em {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #3e8a5f;
  color: #fff;
  font-style: normal;
  font-size: 0.8rem;
  transition: opacity 0.3s, scale 0.45s var(--ls-pop);
  transition-delay: calc(2.8s + var(--i) * 0.25s);
}

.ls-motion [data-reveal]:not(.is-in) .ls-owes li em {
  opacity: 0;
  scale: 0.2;
}

.ls-owes-foot {
  margin: 0.9rem 0 0;
  font: 600 1.35rem/1.1 var(--ls-hand);
  color: var(--ls-gold);
}

/* ── Chapter 6: on the trip ────────────────────────────────── */
.ls-onthego {
  background:
    radial-gradient(50rem 30rem at 80% 50%, rgba(230, 201, 142, 0.1), transparent 70%),
    var(--ls-deep);
}

.ls-store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 2rem;
}

.ls-store p {
  margin: 0;
  font-size: 0.95rem;
  color: #c9d3c3;
}

.lb-story .ls-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.55rem 1.1rem;
  border-radius: 0.8rem;
  background: var(--ls-cream);
  color: var(--ls-deep);
  text-decoration: none;
}

.ls-play small {
  display: block;
  font-size: 0.72rem;
}

.ls-play b {
  font-size: 1.05rem;
}

.ls-phone-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 34rem;
}

.ls-phone {
  width: clamp(14rem, 22vw, 18rem);
  margin: 0;
  padding: 0.55rem;
  border-radius: 2.4rem;
  background: #0a1410;
  box-shadow:
    0 0 0 1px rgba(230, 201, 142, 0.2),
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.ls-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 483 / 1024;
  border-radius: 1.9rem;
  background: #f4efe2;
}

.ls-float {
  position: absolute;
  z-index: 1;
  width: max-content;
  max-width: 16rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: var(--ls-paper);
  color: var(--ls-ink);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  font-size: 0.95rem;
  transition: opacity 0.5s var(--ls-ease-out), translate 0.6s var(--ls-ease-out);
  transition-delay: calc(0.3s + var(--i) * 0.12s);
}

.ls-motion [data-reveal]:not(.is-in) .ls-float {
  opacity: 0;
  translate: 0 24px;
}

.ls-phone-scene.is-in .ls-float {
  animation: ls-bob 6s ease-in-out calc(var(--i) * -1.5s) infinite;
}

.ls-float small {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ls-gold-ink);
}

.ls-float-live {
  top: 6%;
  left: 0;
  display: flex;
  gap: 0.7rem;
}

.ls-float-live b {
  display: block;
  font: 600 1.1rem/1.2 var(--ls-display);
}

.ls-float-live span:not(.ls-live-dot) {
  font-size: 0.85rem;
  color: var(--ls-soft);
}

.ls-live-dot {
  position: relative;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: #d0573b;
  flex-shrink: 0;
}

.ls-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #d0573b;
  animation: ls-ping 1.8s ease-out infinite;
}

.ls-float-sos {
  top: 30%;
  right: 0;
  min-width: 13rem;
}

.ls-float-sos p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.3rem 0 0;
  padding: 0.4rem 0.6rem;
  border-radius: 0.6rem;
  background: #fbeee9;
}

.ls-float-sos b {
  color: #b5452b;
  font-variant-numeric: tabular-nums;
}

.ls-float-prep {
  bottom: 12%;
  left: 2%;
}

.ls-float-prep p {
  position: relative;
  margin: 0.25rem 0 0;
  padding-left: 1.6rem;
  line-height: 1.35;
}

.ls-float-prep p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid #9aa58a;
  border-radius: 0.3rem;
}

.ls-float-prep p.is-done {
  color: var(--ls-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(68, 84, 74, 0.5);
}

.ls-float-prep p.is-done::before {
  border-color: #3e8a5f;
  background: #3e8a5f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.ls-float-off {
  bottom: 4%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ls-gold);
  font-weight: 600;
}

.ls-float-off svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: var(--ls-deep);
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}

/* ── Chapter 7: memories ───────────────────────────────────── */
.ls-memories {
  background:
    radial-gradient(40rem 20rem at 10% 0%, rgba(230, 201, 142, 0.25), transparent 70%),
    #f6efdf;
}

.ls-mem-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.ls-recap {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 1.4rem;
  background: var(--ls-paper);
  box-shadow: 0 24px 50px -34px rgba(19, 37, 30, 0.5);
  overflow: hidden;
}

.ls-recap-cover {
  display: grid;
  align-content: end;
  gap: 0.2rem;
  min-height: 9rem;
  padding: 1.3rem;
  background:
    linear-gradient(180deg, transparent 20%, rgba(19, 37, 30, 0.85)),
    linear-gradient(120deg, #c0643f, #e6a15a 45%, #2d5a7b);
  color: var(--ls-cream);
}

.ls-recap-cover span {
  font: 600 1.3rem/1 var(--ls-hand);
  color: var(--ls-gold);
}

.ls-recap-cover strong {
  font: 600 2rem/1.05 var(--ls-display);
}

.ls-recap-cover em {
  font-weight: 500;
  color: var(--ls-gold);
}

.ls-recap-body {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.2rem 1.3rem 1.4rem;
}

.ls-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--ls-soft);
}

.ls-rating b {
  font-size: 1.15rem;
  color: var(--ls-ink);
}

.ls-stars {
  position: relative;
  color: #e3dccb;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.ls-stars::before {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  color: var(--ls-gold-deep);
  clip-path: inset(0 calc((1 - var(--v)) * 100%) 0 0);
  transition: clip-path 1.2s 0.5s ease;
}

.ls-motion [data-reveal]:not(.is-in) .ls-stars::before {
  clip-path: inset(0 100% 0 0);
}

.ls-moment {
  margin: 0;
  font: 600 1.6rem/1.15 var(--ls-hand);
  color: var(--ls-forest);
}

.ls-moment small {
  display: block;
  margin-top: 0.2rem;
  font: 500 0.88rem var(--ls-body);
  color: var(--ls-soft);
}

.ls-awards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 800px;
}

.ls-awards li {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.7rem 0.4rem;
  border-radius: 0.9rem;
  background: #f5eedc;
  text-align: center;
  transition: opacity 0.4s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.2);
  transition-delay: calc(0.6s + var(--i) * 0.2s);
}

.ls-motion [data-reveal]:not(.is-in) .ls-awards li {
  opacity: 0;
  transform: rotateY(90deg);
}

.ls-awards span {
  font-size: 1.5rem;
  line-height: 1.2;
}

.ls-awards b {
  font-size: 0.85rem;
  line-height: 1.2;
}

.ls-awards small {
  font-size: 0.8rem;
  color: var(--ls-soft);
}

.ls-passport {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 1rem 1.4rem 1.4rem 1rem;
  background: #fbf3e0;
  box-shadow:
    inset 10px 0 18px -12px rgba(19, 37, 30, 0.35),
    0 24px 50px -34px rgba(19, 37, 30, 0.5);
  overflow: hidden;
}

.ls-passport-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  margin: 0;
  padding: 1rem 1.3rem;
  background: var(--ls-forest);
  color: var(--ls-gold);
  font: 600 1.35rem var(--ls-display);
  letter-spacing: 0.04em;
}

.ls-passport-head span {
  font: 600 0.8rem var(--ls-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5c2;
}

.ls-passport-head small {
  margin-left: auto;
  font: 500 0.85rem var(--ls-body);
  color: #cbd5c2;
  letter-spacing: 0;
}

.ls-stamps {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 1.3rem 1.1rem;
  padding: 1.6rem 1.2rem;
  background: repeating-radial-gradient(circle at 30% 120%, transparent 0 14px, rgba(184, 137, 47, 0.07) 14px 15px);
}

.ls-stamps .ls-stamp {
  font-size: 1.05rem;
}

.ls-stamp.is-oval {
  border-radius: 50%;
  padding: 0.9em 1.3em;
}

.ls-stamp.is-round {
  width: 6.2em;
  height: 6.2em;
  padding: 0;
  border-radius: 50%;
}

.ls-motion .ls-passport:not(.is-in) .ls-stamp {
  opacity: 0;
}

.ls-passport.is-in .ls-stamps .ls-stamp {
  animation: ls-press 0.7s calc(0.4s + var(--i) * 0.42s) cubic-bezier(0.3, 1.3, 0.5, 1) both;
}

.ls-globe-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.6rem;
  padding: 1.4rem;
  border-radius: 1.4rem;
  background: var(--ls-deep);
  color: #d3dccd;
}

.ls-globe {
  width: min(100%, 17rem);
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
}

.ls-grat {
  fill: none;
  stroke: rgba(230, 201, 142, 0.2);
  stroke-width: 1;
}

.ls-land path {
  fill: #7fa47a;
  stroke: #9dc093;
  stroke-width: 0.6;
}

.ls-globe-spin {
  transform: translateX(calc((var(--p) - 0.5) * -46px));
}

.ls-pin path {
  stroke: #fbf6ec;
  stroke-width: 1.6;
}

.ls-pin circle {
  fill: #d0573b;
  stroke: #fbf6ec;
  stroke-width: 1.6;
}

.ls-pin {
  transition: opacity 0.3s, translate 0.6s var(--ls-pop);
  transition-delay: calc(0.5s + var(--i) * 0.25s);
}

.ls-motion [data-reveal]:not(.is-in) .ls-pin {
  opacity: 0;
  translate: 0 -30px;
}

.ls-globe-rim {
  fill: none;
  stroke: rgba(230, 201, 142, 0.55);
  stroke-width: 1.5;
}

.ls-globe-count {
  margin: 0;
  font-size: 1rem;
}

.ls-globe-count b {
  font: 600 1.3rem var(--ls-display);
  color: var(--ls-gold);
}

/* ── Chapter 8: share ──────────────────────────────────────── */
.ls-share {
  background: var(--ls-paper);
  border-top: 1px solid var(--ls-line);
}

.ls-share-head {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.ls-boards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ls-boards li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ls-line);
  border-radius: 1rem;
  background: var(--ls-cream);
  font-weight: 600;
}

.ls-boards span {
  font-size: 1.3rem;
}

.lb-story .ls-explore-head {
  align-items: center;
  margin-bottom: 1rem;
}

.lb-story .ls-explore-head .ls-kicker {
  flex: 1;
  margin: 0;
}

.lb-story .lb-see-more {
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border: 1px solid #c9c2a8;
  background: transparent;
  color: var(--ls-ink);
  font-weight: 600;
}

.lb-story .lb-dest-row {
  margin-inline: 0;
  padding-inline: 0.2rem;
}

.lb-story .lb-explore-empty {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--ls-line);
  border-radius: 1rem;
  background: var(--ls-cream);
  font-size: 1rem;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.ls-faq {
  background: var(--ls-cream);
}

.ls-faq-grid {
  display: grid;
  gap: 2rem;
}

.ls-faq-list {
  border-top: 1px solid var(--ls-line);
}

.ls-faq-list details {
  border-bottom: 1px solid var(--ls-line);
}

.ls-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 48px;
  padding: 1.2rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 600;
}

.ls-faq-list summary::-webkit-details-marker {
  display: none;
}

.ls-faq-list summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #efe8d6;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--ls-forest);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.ls-faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.ls-faq-list details p {
  margin: 0;
  padding: 0 2.5rem 1.4rem 0;
  color: var(--ls-soft);
  line-height: 1.75;
}

.ls-faq-list a {
  color: var(--ls-forest);
  text-underline-offset: 0.2rem;
}

/* ── Final CTA ─────────────────────────────────────────────── */
.ls-final {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--ls-gutter);
  background: var(--ls-forest);
  color: #e9ecdf;
  overflow: clip;
}

.ls-final h2 {
  color: var(--ls-cream);
}

.ls-final .ls-kicker {
  color: var(--ls-gold);
}

.ls-final-copy > p:not(.ls-kicker) {
  max-width: 34rem;
  margin: 0;
  font-size: 1.15rem;
  color: #d3dccd;
}

.ls-final-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ls-final-route path {
  fill: none;
  stroke: rgba(230, 201, 142, 0.22);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.2s 0.2s cubic-bezier(0.45, 0, 0.25, 1);
}

.ls-motion .ls-final:not(:has(.is-in)) .ls-final-route path {
  stroke-dashoffset: 1;
}

.ls-final-inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.ls-final-lakbi {
  width: clamp(7rem, 14vw, 11rem);
  height: auto;
}

.ls-final-inner.is-in .ls-final-lakbi {
  animation: ls-rise 0.9s 0.2s cubic-bezier(0.3, 1.4, 0.5, 1) both, ls-bob 5s 1.2s ease-in-out infinite;
}

.ls-final .ls-ctas {
  margin-top: 1.8rem;
}

/* Gold-on-forest buttons inside the final band. */
.lb-story .ls-final :is(a.btn-solid, a.btn-solid:visited, a.btn-solid:active) {
  background: var(--ls-gold);
  border-color: var(--ls-gold);
  color: var(--ls-deep);
}

.lb-story .ls-final :is(a.btn-quiet, a.btn-quiet:visited, a.btn-quiet:active) {
  border-color: color-mix(in srgb, var(--ls-gold) 55%, transparent);
  color: var(--ls-cream);
}

@media (hover: hover) and (pointer: fine) {
  .lb-story .ls-final a.btn-solid:hover {
    background: #f0dcae;
    border-color: #f0dcae;
    color: var(--ls-deep);
  }

  .lb-story .ls-final a.btn-quiet:hover {
    background: rgba(251, 246, 236, 0.1);
    color: var(--ls-cream);
  }
}

/* Dark chapters reuse the gold-on-forest palette. */
.ls-lakbi,
.ls-onthego {
  color: #e9ecdf;
}

.ls-lakbi .ls-head h2,
.ls-onthego .ls-head h2 {
  color: var(--ls-cream);
}

.ls-lakbi .ls-head h2 em,
.ls-onthego .ls-head h2 em {
  color: var(--ls-gold);
}

.ls-lakbi .ls-kicker,
.ls-onthego .ls-kicker {
  color: var(--ls-gold);
}

.ls-lakbi .ls-sub,
.ls-onthego .ls-sub {
  color: #d3dccd;
}

/* ── Footer ────────────────────────────────────────────────── */
.lb-story .lb-foot {
  padding: 3rem var(--ls-gutter);
  background: var(--ls-cream);
  color: var(--ls-ink);
  border-top: 1px solid var(--ls-line);
}

.lb-story .lb-foot-inner {
  width: 100%;
  max-width: none;
  gap: 1.8rem;
}

.lb-story .lb-foot-brand .lb-mark {
  color: var(--ls-ink);
}

.lb-story .lb-foot-brand p {
  max-width: 26rem;
  color: var(--ls-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.lb-story .lb-foot-nav {
  gap: 0.6rem 1.5rem;
  border-top-color: var(--ls-line);
}

.lb-story .lb-foot-nav a {
  color: var(--ls-soft);
  font-size: 0.98rem;
}

.lb-story .lb-foot-credit {
  padding-top: 1.2rem;
  border-top: 1px solid var(--ls-line);
  color: var(--ls-soft);
  font-size: 0.95rem;
}

.lb-story .lb-foot-credit a {
  color: var(--ls-ink);
  text-decoration-color: var(--ls-gold-deep);
}

/* ── Scroll-driven timelines (native) ──────────────────────── */
@supports (animation-timeline: view()) {
  [data-scroll] {
    animation: ls-progress linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  [data-scroll="contain"] {
    animation-range: contain 0% contain 100%;
  }

  [data-scroll="exit"] {
    animation-range: exit 0% exit 100%;
  }
}

@keyframes ls-progress {
  from { --p: 0; }
  to { --p: 1; }
}

/* ── Layout: wide screens ──────────────────────────────────── */
@media (min-width: 60rem) {
  .ls-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: min(calc(100svh - var(--ls-nav-h)), 900px);
  }

  .ls-split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .ls-split.is-flip {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .ls-split.is-flip > .ls-head {
    order: 2;
  }

  .ls-share-head {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .ls-faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
  }

  .ls-final-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3rem;
  }

  .ls-mem-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.8fr);
  }

  .lb-story .lb-foot-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .lb-story .lb-foot-nav {
    max-width: 40rem;
    justify-content: flex-end;
    border-top: 0;
    padding-top: 0;
  }

  .lb-story .lb-foot-credit {
    grid-column: 1 / -1;
  }
}

@media (min-width: 110rem) {
  .lb-story main {
    font-size: 1.125rem;
  }

  .ls-hero-art {
    max-width: 760px;
  }

  .ls-phone {
    width: 19rem;
  }
}

/* ── Layout: tablets and down ──────────────────────────────── */
@media (max-width: 72rem) {
  .ls-roles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lb-story .lb-nav-links {
    gap: 1rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 40rem) and (max-width: 59.99rem) {
  .ls-mem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ls-globe-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 59.99rem) {
  .ls-hero-copy {
    max-width: 40rem;
  }

  .ls-hero-art {
    max-width: 560px;
  }

  .ls-split > .ls-head {
    max-width: 40rem;
  }

  .ls-board-stack,
  .ls-chat-wrap,
  .ls-ledger-flow,
  .ls-join {
    width: 100%;
    max-width: 38rem;
    justify-self: center;
  }
}

@media (max-width: 52rem) {
  .lb-story {
    --ls-nav-h: 64px;
  }

  .lb-story .lb-nav {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .lb-story .lb-nav-actions {
    margin-left: auto;
  }

  .lb-story .lb-nav-links {
    display: flex;
    order: 5;
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.2rem 1.2rem;
  }

  .lb-story .lb-nav-links.is-collapsible {
    display: none;
  }

  .lb-story .lb-nav-links.is-open {
    display: flex;
    padding-block: 0.6rem;
    border-top: 1px solid var(--ls-line);
  }

  .lb-story .lb-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem;
    font: 600 0.95rem var(--ls-body);
    color: var(--ls-ink);
  }

  .ls-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ls-index li:last-child {
    grid-column: 1 / -1;
  }

  .ls-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ls-roles li:first-child {
    grid-column: 1 / -1;
  }

  .ls-phone-scene {
    justify-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    min-height: 0;
  }

  .ls-phone {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(16rem, 70vw);
    margin-bottom: 0.5rem;
  }

  .ls-float {
    position: static;
    width: auto;
    max-width: none;
    min-width: 0;
    align-self: stretch;
  }

  .ls-phone-scene.is-in .ls-float {
    animation: none;
  }
}

@media (max-width: 30rem) {
  .ls-chaos-card {
    --sx: 0.55;
  }

  .ls-final-route {
    display: none;
  }

  .ls-hero-art {
    aspect-ratio: 1 / 1.08;
  }

  .ls-journal-wrap {
    top: 25%;
  }

  .ls-hero-bubble {
    bottom: 96%;
    left: 40%;
  }

  .ls-stamp-hero {
    right: 3cqi;
    bottom: 3cqi;
  }

  .lb-story .lb-nav {
    gap: 0.45rem;
    padding-block: 0.6rem;
  }

  .lb-story .lb-mark {
    font-size: 1.15rem;
    gap: 0.35rem;
  }

  .lb-story .lb-mark img {
    width: 1.9rem;
    height: 1.9rem;
  }

  .lb-story .lb-nav a.btn-solid {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }

  .lb-story .lb-menu-toggle {
    font-size: 0;
    gap: 0;
    padding: 0.55rem;
  }

  .lb-story .lb-menu-toggle span {
    font-size: 1.15rem;
  }

  .ls-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .ls-ctas-center {
    align-items: stretch;
  }

  .ls-hero-art {
    width: calc(100% + 0.5rem);
    margin-inline: -0.25rem;
  }

  .ls-board {
    padding: 0.8rem;
  }

  .ls-board-days {
    gap: 0.4rem;
  }

  .ls-board-day {
    padding: 0.45rem;
  }

  .ls-ev {
    padding: 0.45rem;
    font-size: 0.8rem;
  }

  .ls-ev small {
    font-size: 0.72rem;
  }

  .ls-presence {
    font-size: 0.78rem;
  }

  .ls-scan {
    flex-wrap: wrap;
    margin-top: -1.5rem;
  }

  .ls-scan-arrow {
    display: none;
  }

  .ls-scan-form {
    flex-basis: 12rem;
  }

  .ls-index li {
    padding: 0.9rem;
  }

  .ls-index b {
    font-size: 1.12rem;
  }

  .ls-index span {
    font-size: 0.9rem;
  }

  .ls-roles {
    gap: 0.6rem;
  }

  .ls-roles li {
    padding: 1.1rem 0.95rem;
  }

  .ls-roles h3 {
    font-size: 1.15rem;
  }

  .ls-roles span {
    font-size: 0.9rem;
  }

  .ls-chaos-card {
    padding: 0.6rem 0.8rem;
    font-size: 0.86rem;
  }

  .ls-chaos-card.is-note {
    font-size: 1.15rem;
  }

  .ls-ledger li,
  .ls-owes li {
    gap: 0.55rem;
    padding: 0.55rem;
    font-size: 0.92rem;
  }

  .ls-ledger i,
  .ls-owes i {
    width: 1.8rem;
    height: 1.8rem;
  }

  .ls-float-prep,
  .ls-float-off {
    grid-column: 1 / -1;
  }

  .ls-boards {
    grid-template-columns: 1fr;
  }

  .ls-passport-head small {
    margin-left: 0;
    width: 100%;
  }

  .ls-stamps .ls-stamp {
    font-size: 0.92rem;
  }

  .ls-faq-list details p {
    padding-right: 0;
  }
}

@media (max-width: 22rem) {
  .lb-story .lb-beta-pill {
    display: none;
  }

  .ls-hero h1 {
    font-size: 2.6rem;
  }
}

/* ── Reduced motion: a still, fully readable page ──────────── */
@media (prefers-reduced-motion: reduce) {
  .lb-story *,
  .lb-story *::before,
  .lb-story *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .lb-story [data-scroll] {
    --p: 0.5;
  }

  .ls-hero[data-scroll] {
    --p: 0;
  }

  .ls-progress {
    display: none;
  }

  .ls-typing {
    display: none !important;
  }

  .ls-chaos {
    height: auto;
  }

  .ls-chaos-stage {
    position: static;
    height: auto;
    padding-block: clamp(4rem, 8vw, 6rem);
  }

  .ls-chaos-field {
    display: grid;
    justify-items: center;
    gap: 2rem;
    container-type: normal;
    min-height: 0;
    margin-top: 2rem;
  }

  .ls-chaos-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    max-width: 60rem;
  }

  .ls-chaos-card,
  .ls-chaos-book {
    position: relative;
    left: auto;
    top: auto;
    opacity: 1;
    transform: rotate(calc(var(--r, 0deg) * 0.4));
    max-width: 17rem;
  }

  .ls-chaos-book {
    width: 12rem;
    transform: none;
  }

  .ls-chaos-caption {
    opacity: 1;
    transform: none;
    margin-top: 1.5rem;
  }
}

/* Hero: LakBi's "Tara, Osaka!" sits above LakBi's head, clear of the flight ticket. */
.ls-hero-bubble {
  bottom: 104%;
  left: 38%;
}
/* …on LakBi's left, outside the journal (above the head still met the ticket). */
.ls-hero-bubble {
  bottom: 58%;
  left: auto;
  right: 96%;
  border-radius: 2cqi 2cqi 0.4cqi 2cqi;
  transform-origin: 100% 100%;
}
/* Phones: no room on LakBi's left — the bubble sits above the head instead. */
@media (max-width: 700px) {
  .ls-hero-bubble {
    bottom: 100%;
    left: 20%;
    right: auto;
    border-radius: 2cqi 2cqi 2cqi 0.4cqi;
    transform-origin: 0 100%;
  }
}

/* ── Map planner legs on the sample board (travel time between pins) ── */
.ls-map-leg {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: opacity 0.4s var(--ls-ease-out), scale 0.45s var(--ls-pop);
  transition-delay: calc(1.6s + var(--i) * 0.25s);
}

.ls-motion [data-reveal]:not(.is-in) .ls-map-leg {
  opacity: 0;
  scale: 0.9;
}

.ls-map-leg rect {
  fill: var(--ls-paper);
  stroke: #e3d8c2;
}

.ls-map-leg text {
  font: 700 10px var(--ls-body);
  fill: var(--ls-soft);
  text-anchor: middle;
}

/* ── On the trip: the crew card (live nav's Crew list) ── */
.ls-float-crew {
  min-width: 14rem;
}

.ls-crew-loc {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.25;
}

.ls-crew-loc i {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--c);
  color: var(--ls-ink);
  font: 700 0.78rem var(--ls-body);
  font-style: normal;
  flex-shrink: 0;
}

.ls-crew-loc span {
  color: var(--ls-soft);
}

.ls-crew-loc b {
  display: block;
  color: var(--ls-ink);
}

.ls-crew-loc em {
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f5ecd3;
  color: var(--ls-gold-ink);
  font: 700 0.72rem var(--ls-body);
  font-style: normal;
  white-space: nowrap;
}

/* ── Press feedback on the little pressables (FAQ rows, store badge) ── */
.lb-story .ls-faq-list summary {
  transition: scale 160ms var(--ls-ease-out);
}

.lb-story .ls-faq-list summary:active {
  scale: 0.99;
}
