/* Lusted · Matcha Mochi page
   Layout: a green notebook opened at dawn. Light "sky" sections and deep "velvet" sections alternate,
   one signature 3D moment (the chrome sun becomes the cap), everything else quiet and editorial.
   All rules are scoped under #lmm / .lmm so the Lusted theme is never touched. */

.lmm {
  font-variant-numeric: lining-nums;
  --paper: #F9F7F2;      /* the site's own eggshell */
  --paper-2: #F1EEE2;
  --mist: #E4EBD2;
  --sage: #C3D896;
  --matcha: #7EA54F;
  --moss: #3E6B2C;
  --forest: #1A3615;     /* box base */
  --forest-2: #12260E;
  --ink: #1E2A1A;        /* text on light, green biased */
  --ink-2: #4A5745;
  --cream: #EDF0DA;      /* box cream, text on forest */
  --cream-2: #C9CFB3;
  --gold: #E6CF7A;       /* lockup gold, used sparingly */
  --line: rgba(30, 42, 26, .14);
  --line-cream: rgba(237, 240, 218, .2);
  --kraft: #E6E0D2;      /* diary pages */
  --kraft-2: #D6CEBB;
  --leaf: #6F8F4B;       /* diary green paper and script */
  --tape: #E9EBC6;
  --render: #EDE9DE;     /* the box renders' own backdrop */
  --table: #17301A;      /* the green cloth the kit sits on */

  --f-cap: 'Cinzel', Georgia, serif;
  --f-serif: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;   /* v3: the brand sets running text in its sans */
  --f-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;   /* v3: no typewriter face */
  --f-script: 'Cinzel', Georgia, serif;

  --lmm-head: 64px;
  --gutter: clamp(20px, 6vw, 96px);
  --rail-w: 0px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  position: relative;
  display: block;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  /* no grey (iOS) or blue (Android) box flashing over whatever is tapped: every control has its own pressed state */
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 1100px) { .lmm { --rail-w: 128px; } }

/* theme reset neutralisers (the theme forces height:auto on svg/canvas/img) */
.lmm svg, .lmm canvas { max-width: none; }
.lmm img { height: auto; }
:where(.lmm) :where(button) { font: inherit; color: inherit; }
.lmm :focus-visible { outline: 2px solid var(--matcha); outline-offset: 3px; border-radius: 4px; }

/* language switch: both languages are in the markup, one is shown */
.lmm[data-lang="vi"] .en, .lmm[data-lang="en"] .vi { display: none !important; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- shared ---------- */
.lmm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.6em;
  border-radius: 999px;
  font-family: var(--f-sans); font-size: 14px; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; text-decoration: none;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.lmm-btn:active { transform: scale(.97); }
.lmm-btn--solid { background: var(--forest); color: var(--cream); }
.lmm-btn--solid:hover { background: var(--moss); }
.lmm-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lmm-btn--ghost:hover { background: rgba(30, 42, 26, .06); }
.lmm-btn--cream { background: var(--cream); color: var(--forest); }
.lmm-btn--cream:hover { background: #fff; }
.lmm-btn[disabled] { opacity: .45; cursor: not-allowed; }

.lmm-chrome-ball {
  background:
    radial-gradient(circle at 34% 28%, #fff 0 7%, rgba(255,255,255,.0) 16%),
    radial-gradient(circle at 50% 120%, #9fb77e 0 26%, rgba(159,183,126,0) 52%),
    radial-gradient(circle at 50% 46%, #f3f4f2 0 18%, #c8cdc9 38%, #7f8a86 62%, #e6e9e4 74%, #5f6b66 90%, #b8bfba 100%);
  border-radius: 50%;
}

/* ---------- preloader ---------- */
.lmm-preloader {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--paper);
  animation: lmm-pre-out .6s ease 3.2s forwards; /* failsafe if JS never runs */
}
.lmm-preloader__lockup { display: grid; justify-items: center; gap: 10px; color: var(--ink); }
.lmm-preloader__brand { font-family: var(--f-cap); font-size: 13px; letter-spacing: .6em; padding-left: .6em; }
.lmm-preloader__name { font-family: var(--f-cap); font-size: clamp(28px, 5vw, 56px); letter-spacing: .08em; white-space: nowrap; }
.lmm-preloader__bar { width: min(220px, 50vw); height: 1px; background: var(--line); overflow: hidden; }
.lmm-preloader__bar span { display: block; height: 100%; width: 100%; background: var(--forest); transform-origin: left; transform: scaleX(0); }
.lmm-preloader.is-skip { display: none; }
@keyframes lmm-pre-out { to { opacity: 0; visibility: hidden; } }

/* ---------- rail (desktop) / bottom bar (mobile) ---------- */
.lmm-rail {
  position: fixed; z-index: 900;
  left: 22px; top: 50%; transform: translateY(-50%);
  display: grid; gap: 22px;
  opacity: 0; pointer-events: none;
  transition: opacity .5s;
}
.lmm-rail.is-on { opacity: 1; pointer-events: auto; }
.lmm-rail.is-on.is-away { opacity: 0; pointer-events: none; }
.lmm-rail__list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lmm-rail__list button {
  display: flex; align-items: baseline; gap: 10px; padding: 4px 0;
  font-size: 12px; letter-spacing: .04em; color: var(--ink-2); text-align: left;
  transition: color .3s;
}
.lmm-rail__list button:hover, .lmm-rail__list button.is-active { color: var(--ink); }
.lmm-rail__n { font-variant-numeric: tabular-nums; font-size: 11px; opacity: .55; }
.lmm-rail__list button.is-active .lmm-rail__n { opacity: 1; color: var(--moss); }
.lmm-rail.is-dark .lmm-rail__list button { color: rgba(237,240,218,.6); }
.lmm-rail.is-dark .lmm-rail__list button:hover, .lmm-rail.is-dark .lmm-rail__list button.is-active { color: var(--cream); }
.lmm-rail.is-dark .lmm-rail__list button.is-active .lmm-rail__n { color: var(--gold); }
.lmm-lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); width: max-content; }
.lmm-lang button { min-width: 36px; height: 28px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; color: var(--ink-2); }
.lmm-lang button[aria-pressed="true"] { background: var(--forest); color: var(--cream); }
.lmm-rail.is-dark .lmm-lang { box-shadow: inset 0 0 0 1px var(--line-cream); }
.lmm-rail.is-dark .lmm-lang button { color: var(--cream-2); }
.lmm-rail.is-dark .lmm-lang button[aria-pressed="true"] { background: var(--cream); color: var(--forest); }
.lmm-rail__progress { width: 1px; height: 64px; background: var(--line); margin-left: 4px; overflow: hidden; }
.lmm-rail__progress span { display: block; width: 100%; height: 100%; background: var(--moss); transform-origin: top; transform: scaleY(0); }
.lmm-rail.is-dark .lmm-rail__progress { background: var(--line-cream); }
.lmm-rail.is-dark .lmm-rail__progress span { background: var(--gold); }
.lmm-rail__cta { display: none; }

@media (max-width: 1099px) {
  .lmm-rail {
    left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: none;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 8px 8px 12px; border-radius: 999px;
    background: rgba(249, 247, 242, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px -12px rgba(26, 54, 21, .35), inset 0 0 0 1px var(--line);
  }
  .lmm-rail.is-dark { background: rgba(26, 54, 21, .92); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5), inset 0 0 0 1px var(--line-cream); }
  .lmm-rail__list { display: none; }
  .lmm-rail__progress { position: absolute; left: 22px; right: 22px; top: 0; width: auto; height: 2px; margin: 0; border-radius: 2px; }
  .lmm-rail__progress span { transform-origin: left; transform: scaleX(0); }
  .lmm-rail__cta { display: inline-flex; min-height: 40px; font-size: 13px; padding: 0 1.2em; }
  /* on the dark sections the button turns cream, like the order button there (19.10 live check: forest on the forest
     bar read as plain text) */
  .lmm-rail.is-dark .lmm-rail__cta { background: var(--cream); color: var(--forest); }
  .lmm-rail.is-dark .lmm-rail__cta:hover { background: #fff; }
  .lmm-rail__meta { flex: 1; min-width: 0; font-size: 12px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lmm-rail.is-dark .lmm-rail__meta { color: var(--cream-2); }
}
/* narrow phones: the price, and under it the time left (19.10: in Vietnamese, beside a longer button, "còn 6 ngày"
   was cut to "còn 6 ...") */
@media (max-width: 419px) {
  .lmm-rail__meta { white-space: normal; line-height: 1.25; }
  .lmm-rail__meta > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lmm-rail__meta > .lmm-rail__sep { display: none; }
  .lmm-rail__price { font-weight: 500; }
}
@media (min-width: 1100px) { .lmm-rail__meta { display: none; } }

/* ---------- keep going: how to see more (founder 16.10, main.js more) ---------- */
/* a quiet pill at the bottom centre after a few still seconds: scroll on a computer, swipe on a phone */
.lmm .lmm-more {
  position: fixed; z-index: 950; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 18px 11px 20px; border-radius: 999px;
  background: rgba(249, 247, 242, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -12px rgba(26, 54, 21, .35), inset 0 0 0 1px var(--line);
  font-family: var(--f-sans); font-size: 12px; font-weight: 500; letter-spacing: .06em; line-height: 1; color: var(--ink);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 14px);
  transition: opacity .6s ease, transform .7s var(--ease-out), bottom .45s var(--ease-out), background-color .4s, color .4s, box-shadow .4s;
}
.lmm .lmm-more.is-on { opacity: 1; transform: translate(-50%, 0); }
.lmm .lmm-more.is-dark { background: rgba(26, 54, 21, .92); color: var(--cream); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line-cream); }
/* the arrow: a line drawing down to a small chevron */
.lmm .lmm-more i { position: relative; flex: none; width: 9px; height: 16px; }
.lmm .lmm-more i::before { content: ""; position: absolute; left: 4px; top: 0; width: 1px; height: 15px; background: currentColor; transform-origin: top; animation: lmm-more-line 1.9s ease-in-out infinite; }
.lmm .lmm-more i::after { content: ""; position: absolute; left: 1.5px; bottom: 1px; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); animation: lmm-more-tip 1.9s ease-in-out infinite; }
@keyframes lmm-more-line { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes lmm-more-tip { 0%, 35% { opacity: 0; transform: translateY(-3px) rotate(45deg); } 58% { opacity: 1; transform: translateY(0) rotate(45deg); } 100% { opacity: 0; transform: translateY(1px) rotate(45deg); } }
@media (max-width: 1099px) {
  .lmm .lmm-more { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; }
  .lmm .lmm-more.is-up { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .lmm .lmm-more i::before, .lmm .lmm-more i::after { animation: none; } }

/* hero: see hero.css. The countdown and pill also serve other sections */
.lmm-count { display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 26px); }
.lmm-count__label { display: block; font-size: 12px; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 6px; }
.lmm-count__cell { display: grid; justify-items: start; }
.lmm-count__num { font-family: var(--f-sans); font-weight: 300; font-size: clamp(26px, 2.8vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.lmm-count__unit { font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.lmm-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12px; background: rgba(126,165,80,.16); color: var(--moss); }
.lmm-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- fun / giant words + stats ---------- */
.lmm-fun { position: relative; padding-block: 14vh 18vh; background: var(--paper); }
.lmm-fun__words { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lmm-fun__w {
  position: absolute; display: block; white-space: nowrap;
  font-family: var(--f-serif); font-weight: 400; line-height: .8; letter-spacing: -.01em; color: var(--forest);
  font-size: clamp(72px, 15vw, 260px);
}
.lmm-fun__w--1 { left: calc(var(--gutter) + var(--rail-w) * .5); top: 4%; }
.lmm-fun__w--2 { right: var(--gutter); top: 20%; font-size: clamp(54px, 9vw, 160px); color: var(--moss); }
.lmm-fun__w--3 { left: calc(var(--gutter) + var(--rail-w) * .5 + 4vw); bottom: 18%; font-size: clamp(110px, 24vw, 420px); color: var(--matcha); }
.lmm-fun__w--4 { right: calc(var(--gutter) + 2vw); bottom: 2%; }

.lmm-stats {
  position: relative; z-index: 1;
  margin: 34vh auto 30vh; width: min(62rem, calc(100% - 2 * var(--gutter)));
  padding: clamp(26px, 4vw, 52px);
  border-radius: 28px; background: var(--forest); color: var(--cream);
  box-shadow: 0 40px 80px -40px rgba(26, 54, 21, .6);
}
.lmm-stats__title { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; }
.lmm-stats__lede { margin: 8px 0 0; font-size: 14px; color: var(--cream-2); max-width: 40rem; }
.lmm-stats__list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 0; }
.lmm-stat { display: grid; align-content: start; gap: 6px; padding: 4px 18px 4px 0; border-left: 1px solid var(--line-cream); padding-left: 18px; }
.lmm-stat:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.lmm-stat__value { font-family: var(--f-serif); font-weight: 500; font-size: clamp(34px, 3.4vw, 50px); line-height: 1; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'lnum' 1, 'tnum' 1; white-space: nowrap; }
.lmm-stat__label { font-size: 14px; line-height: 1.4; color: var(--cream); }
.lmm-stat__src { font-family: var(--f-mono); font-size: 11px; letter-spacing: .02em; color: var(--cream-2); }
.lmm-stat.is-locked .lmm-stat__value { color: transparent; -webkit-text-stroke: 1px rgba(230, 207, 122, .6); }
.lmm-stat.is-locked .lmm-stat__label { color: var(--cream-2); }
@media (max-width: 900px) {
  .lmm-stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .lmm-stat, .lmm-stat:nth-child(3n + 1) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-cream); padding-top: 16px; }
  .lmm-stats { margin-block: 24vh 22vh; }
}

/* ---------- scent ---------- */
.lmm-scent { position: relative; --bg: #F1F4E4; --fg: var(--ink); background: var(--bg); color: var(--fg); transition: background-color .2s linear; }
.lmm-scent__inner { min-height: calc(100vh - var(--lmm-head)); min-height: calc(100svh - var(--lmm-head)); display: grid; align-content: center; gap: clamp(26px, 5vh, 56px); padding: 12vh var(--gutter) 10vh calc(var(--gutter) + var(--rail-w) * .6); }
.lmm-scent__title { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }
.lmm-scent__tiers { display: grid; gap: clamp(8px, 2vh, 22px); }
.lmm-tier { display: grid; grid-template-columns: 9rem 1fr; align-items: baseline; gap: 12px 26px; transform-origin: left center; }
.lmm-tier__label { margin: 0; font-size: 13px; letter-spacing: .04em; opacity: .7; }
.lmm-tier__notes { margin: 0; display: flex; flex-wrap: wrap; gap: .1em .55em; font-family: var(--f-serif); font-weight: 400; line-height: 1.04; font-size: clamp(32px, 4.3vw, 72px); }
.lmm-tier__notes span { white-space: nowrap; }
.lmm-tier__notes span:not(:last-child)::after { content: "·"; margin-left: .3em; opacity: .35; }
.lmm-spec { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 0; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent); padding-top: 18px; }
.lmm-spec div { padding-right: clamp(18px, 3vw, 48px); }
.lmm-spec dt { font-size: 12px; opacity: .65; }
.lmm-spec dd { margin: 4px 0 0; font-size: 15px; }
@media (max-width: 760px) {
  .lmm-tier { grid-template-columns: 1fr; }
  .lmm-tier__notes { font-size: clamp(34px, 10.5vw, 56px); }
  .lmm-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
}

/* ---------- chapter ---------- */
.lmm-chapter { padding: 16vh var(--gutter) 12vh calc(var(--gutter) + var(--rail-w) * .6); background: var(--paper); }
.lmm-chapter__title { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(28px, 3vw, 44px); }
.lmm-chapter__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.lmm-bottle a, .lmm-bottle > div, .lmm-bottle > button { display: grid; justify-items: center; text-align: center; gap: 6px; color: var(--ink); text-decoration: none; padding: 18px 10px 22px; border-radius: 22px; transition: background-color .4s; }
/* Matcha Mochi's own card goes down to Early Access: a button, not a "#" link (19.10: the theme takes every "#" link
   for its own smooth scroll, and the two scrolls fought) */
.lmm-bottle > button { width: 100%; margin: 0; border: 0; background: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lmm-bottle > button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lmm-bottle a:hover, .lmm-bottle > button:hover { background: var(--paper-2); }
.lmm-bottle img { height: clamp(150px, 18vw, 230px) !important; width: auto; transition: transform .6s var(--ease-out); }
.lmm-bottle a:hover img, .lmm-bottle > button:hover img { transform: translateY(-8px) rotate(-2deg); }
.lmm-bottle__name { margin-top: 12px; font-family: var(--f-cap); font-size: 15px; letter-spacing: .08em; }
.lmm-bottle__moment { font-size: 13px; color: var(--ink-2); max-width: 15rem; }
.lmm-bottle--next > div { background: var(--forest); color: var(--cream); height: 100%; align-content: center; }
.lmm-bottle--next .lmm-bottle__moment { color: var(--cream-2); }
/* the newest of the four: the same bottle picture as the others, its line in the forest green */
.lmm-bottle--new .lmm-bottle__moment { color: var(--forest); font-weight: 500; }
.lmm-bottle__sphere { width: clamp(70px, 8vw, 110px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff 0 8%, rgba(255,255,255,0) 18%),
    radial-gradient(circle at 50% 118%, #6f9a44 0 26%, rgba(111,154,68,0) 52%),
    radial-gradient(circle at 50% 46%, #f6f6f2 0 20%, #cfd4cc 40%, #8a958f 63%, #eef0ea 75%, #67736d 90%, #c2c8c2 100%);
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.5); margin-block: clamp(40px, 5vw, 70px);
}
@media (max-width: 760px) { .lmm-chapter__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- faq / legal ---------- */
.lmm-faq { padding: 6vh var(--gutter) 12vh calc(var(--gutter) + var(--rail-w) * .6); background: var(--paper); }
.lmm-faq__title { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(28px, 3vw, 44px); }
.lmm-faq__list { margin-top: 26px; max-width: 52rem; border-top: 1px solid var(--line); }
.lmm-faq details { border-bottom: 1px solid var(--line); }
.lmm-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 2px; font-size: 18px; font-family: var(--f-serif); font-weight: 500; }
.lmm-faq summary::-webkit-details-marker { display: none; }
.lmm-faq summary::after { content: "+"; font-family: var(--f-sans); font-weight: 300; font-size: 22px; line-height: 1; transition: transform .4s var(--ease-out); }
.lmm-faq details[open] summary::after { transform: rotate(45deg); }
.lmm-faq__a { padding: 0 2px 22px; max-width: 44rem; color: var(--ink-2); font-size: 15px; }
.lmm-faq__contact { margin: 22px 0 0; font-size: 14px; color: var(--ink-2); }
.lmm-faq__contact a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.lmm-legal { padding: 0 var(--gutter) 8vh calc(var(--gutter) + var(--rail-w) * .6); background: var(--paper); font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.lmm-legal p { margin: 0; max-width: 60rem; }

/* ---------- finale ---------- */
.lmm-finale { position: relative; padding: 14vh var(--gutter) 10vh; background: var(--forest); color: var(--cream); text-align: center; overflow: hidden; }
.lmm-finale__word { margin: 0; font-family: var(--f-cap); font-weight: 400; font-size: clamp(64px, 19vw, 330px); line-height: .9; letter-spacing: .04em; white-space: nowrap; color: var(--cream); }
.lmm-finale__word .lmm-chr { display: inline-block; }
.lmm-finale__slogan { margin: 26px 0 0; font-size: 14px; letter-spacing: .18em; color: var(--gold); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .lmm *, .lmm *::before, .lmm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .lmm-hero { height: auto; }
  .lmm-hero__stage { position: relative; top: 0; }
}

/* ---------- static (reduced motion) layout ---------- */
.lmm.is-static .lmm-fun__words { display: none; }
.lmm.is-static .lmm-stats { margin-block: 8vh; }


/* ---------- editorial frames (real campaign photos) ---------- */
.lmm-fun { min-height: 230vh; }
.lmm-fun__frames { position: absolute; inset: 0; pointer-events: none; }
.lmm-frame { position: absolute; margin: 0; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(26, 54, 21, .45); will-change: transform, clip-path; }
.lmm-frame img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.lmm-frame--1 { left: calc(var(--gutter) + var(--rail-w) * .4); top: 14%; width: clamp(150px, 19vw, 300px); aspect-ratio: 2 / 3; }
.lmm-frame--2 { right: calc(var(--gutter) + 1vw); top: 33%; width: clamp(150px, 18vw, 290px); aspect-ratio: 4 / 5; }
.lmm-frame--3 { left: 30%; top: 60%; width: clamp(130px, 14vw, 230px); aspect-ratio: 2 / 3; }
.lmm-frame--4 { right: 14%; top: 71%; width: clamp(200px, 24vw, 380px); aspect-ratio: 3 / 2; }
.lmm-frame--5 { left: calc(var(--gutter) + var(--rail-w) * .4); top: 84%; width: clamp(120px, 13vw, 210px); aspect-ratio: 2 / 3; }
.lmm-fun__w { z-index: 1; }
.lmm-frame { z-index: 0; }
.lmm-fun .lmm-stats { margin-top: 62vh; }
@media (max-width: 760px) {
  .lmm-fun { min-height: 0; }
  .lmm-frame--1 { top: 9%; width: 40vw; left: var(--gutter); }
  .lmm-frame--2 { top: 6%; width: 36vw; right: var(--gutter); }
  .lmm-frame--3 { display: none; }
  .lmm-frame--4 { top: auto; bottom: 5%; right: var(--gutter); width: 58vw; }
  .lmm-frame--5 { top: auto; bottom: 9%; left: var(--gutter); width: 30vw; }
  .lmm-fun .lmm-stats { margin-top: 64vh; margin-bottom: 40vh; }
}

/* ---------- scent: brand description ---------- */
.lmm-scent__more { display: grid; gap: 28px; padding: 6vh var(--gutter) 16vh calc(var(--gutter) + var(--rail-w) * .6); max-width: 76rem; }
.lmm-scent__q { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 3vw, 44px); line-height: 1.15; color: var(--gold); }
.lmm-scent__copy { margin: 0; max-width: 46rem; font-family: var(--f-serif); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.45; }
.lmm-feel { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-cream); }
.lmm-feel div { padding: 18px 20px 0 0; }
.lmm-feel dt { font-size: 12px; opacity: .65; }
.lmm-feel dd { margin: 6px 0 0; font-family: var(--f-serif); font-size: clamp(20px, 1.8vw, 26px); }
.lmm-scent__more .lmm-spec { border-color: var(--line-cream); }
@media (max-width: 760px) { .lmm-feel { grid-template-columns: 1fr; } }
.lmm.is-static .lmm-scent { background: var(--forest); color: var(--cream); }

/* ====================================================================== v2 */

/* ---------- shared additions ---------- */
.lmm-btn--small { min-height: 40px; padding: 0 1.2em; font-size: 13px; }
.lmm-btn--big { min-height: 56px; padding: 0 2em; font-size: 15px; }
.lmm-btn--ghost-light { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(237, 240, 218, .55); }
.lmm-btn--ghost-light:hover { background: rgba(237, 240, 218, .1); }
.lmm .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lmm-read { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 0; font-size: 14px; font-weight: 500; color: var(--forest); cursor: pointer; }
.lmm-read::before { content: ""; width: 26px; height: 1px; background: currentColor; transition: width .5s var(--ease-out); }
.lmm-read:hover::before { width: 44px; }

/* ---------- origin: the story so far lives in story.css (the desk) ---------- */

/* ---------- diary: the notebook on the desk ---------- */
.lmm-diary {
  position: relative; overflow: hidden;
  padding: 16vh var(--gutter) 14vh calc(var(--gutter) + var(--rail-w) * .6);
  background-color: var(--kraft);
  background-image:
    linear-gradient(rgba(60, 50, 30, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 50, 30, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--ink);
}
.lmm-diary::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply; background-image: url(../img/grain.png); background-size: 220px; }
.lmm-diary > * { position: relative; }
.lmm-diary__head { display: grid; gap: 12px; max-width: 56rem; }
.lmm-diary__head { position: relative; }
.lmm-diary__script { display: none; position: absolute; left: clamp(250px, 33vw, 560px); top: -.18em; margin: 0; font-family: var(--f-script); font-size: clamp(84px, 10vw, 170px); line-height: 1; color: var(--leaf); transform: rotate(-8deg); pointer-events: none; }
.lmm-diary__lockup { margin: 0; display: grid; font-family: var(--f-cap); font-weight: 400; line-height: 1; letter-spacing: .06em; font-size: clamp(34px, 5vw, 76px); color: var(--ink); }
.lmm-diary__lockup span:last-child { letter-spacing: .5em; font-size: .36em; margin-top: .7em; color: var(--moss); }
.lmm-diary__meta { margin: 6px 0 0; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.lmm-diary__lede { margin: 4px 0 0; max-width: 40rem; font-size: 16px; color: var(--ink-2); }
.lmm-diary__count { margin: 2px 0 0; font-family: var(--f-mono); font-size: 13px; color: var(--ink); }
.lmm-diary__count b { color: var(--moss); font-weight: 500; }
.lmm-diary__grid { list-style: none; margin: 8vh 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); gap: 56px clamp(20px, 2.4vw, 36px); }
.lmm-ep { position: relative; display: grid; align-content: start; }
.lmm-ep__cover { position: relative; display: block; width: 100%; padding: 10px; background: #FCFBF7; cursor: pointer; box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 30px 50px -28px rgba(40, 30, 10, .55); transform: rotate(var(--tilt, -1.2deg)); transition: transform .7s var(--ease-out), box-shadow .5s; }
.lmm-ep:nth-child(even) .lmm-ep__cover { --tilt: 1.4deg; }
.lmm-ep__cover:hover { transform: rotate(0deg) translateY(-8px); box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 40px 60px -26px rgba(40, 30, 10, .6); }
.lmm-ep__cover img { display: block; width: 100%; aspect-ratio: 1; height: auto !important; object-fit: cover; }
.lmm-ep__clip { position: absolute; z-index: 2; top: -16px; left: 28px; width: 18px; height: 46px; border: 2.5px solid #9A9C97; border-radius: 9px; border-bottom-color: transparent; box-shadow: inset 0 0 0 2px transparent; }
.lmm-ep__clip::after { content: ""; position: absolute; left: 3px; top: 6px; width: 7px; height: 30px; border: 2.5px solid #A9ABA6; border-radius: 6px; border-top-color: transparent; }
.lmm-ep__badge { position: absolute; z-index: 2; right: -10px; top: 18px; padding: 6px 12px; font-family: var(--f-mono); font-size: 11px; background: var(--tape); color: var(--ink); transform: rotate(4deg); box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .4); }
.lmm-ep__no { margin: 22px 0 0; font-family: var(--f-mono); font-size: 12px; color: var(--moss); }
.lmm-ep__title { margin: 6px 0 0; font-family: var(--f-serif); font-weight: 500; font-size: 27px; line-height: 1.08; text-wrap: balance; }
.lmm-ep__hook { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.lmm-ep__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.lmm-ep__read { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--forest); color: var(--cream) !important; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color .3s; }
.lmm-ep__read:hover { background: var(--moss); }
.lmm-ep__out { font-family: var(--f-mono); font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(30, 42, 26, .35); }
.lmm-ep__out:hover { text-decoration-color: currentColor; }
.lmm-ep.is-next .lmm-ep__blank { display: grid; place-items: center; aspect-ratio: 1; border: 1.5px dashed rgba(30, 42, 26, .28); background: rgba(255, 255, 255, .25); transform: rotate(1deg); }
.lmm-ep__blank span { font-family: var(--f-cap); font-size: clamp(90px, 9vw, 140px); color: var(--kraft); text-shadow: 1px 1px 0 rgba(255, 255, 255, .7), -1px -1px 0 rgba(90, 70, 40, .22); }
.lmm-diary__index { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 24px; margin-top: 10vh; }
.lmm-diary__index-label { margin: 0 0 12px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.lmm-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lmm-tab { display: grid; place-items: center; width: 40px; height: 48px; border-radius: 8px 8px 2px 2px; font-family: var(--f-mono); font-size: 12px; background: var(--kraft-2); color: rgba(30, 42, 26, .45); }
.lmm-tab.is-out { background: var(--leaf); color: #F4F2E6; cursor: pointer; transition: transform .4s var(--ease-out), background-color .3s; }
.lmm-tab.is-out:hover { transform: translateY(-6px); background: var(--moss); }
.lmm-tab.is-next { background: transparent; box-shadow: inset 0 0 0 1.5px var(--leaf); color: var(--leaf); }
.lmm-diary__tag { position: absolute !important; right: var(--gutter); bottom: 5vh; margin: 0; padding: 7px 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; background: var(--tape); color: var(--ink-2); transform: rotate(-3deg); box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .4); }
@media (max-width: 760px) {
  .lmm-diary__script { left: auto; right: -4px; top: -.55em; font-size: 92px; }
  .lmm-diary__tag { display: none; }
  .lmm-tab { width: calc((100vw - 2 * var(--gutter) - 7 * 6px) / 8); }
  /* phones: the episodes are one strip you swipe sideways, the latest in the middle and its neighbours
     showing at the edges, so twenty episodes take no more height than one */
  .lmm-diary__grid { display: flex; gap: 16px; margin: 5vh calc(-1 * var(--gutter)) 0; padding: 18px var(--gutter) 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .lmm-diary__grid::-webkit-scrollbar { display: none; }
  .lmm-ep { flex: 0 0 min(78vw, 330px); scroll-snap-align: center; }
  .lmm-ep__title { font-size: 24px; }
  .lmm-diary__swipe { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 0; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
  .lmm-diary__swipe::before, .lmm-diary__swipe::after { content: ""; width: 26px; height: 1px; background: rgba(30, 42, 26, .3); }
  .lmm-diary__index { margin-top: 5vh; }
}
@media (min-width: 761px) { .lmm-diary__swipe { display: none; } }

/* ---------- reader ---------- */
.lmm-reader { position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 0; z-index: 2200; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); }
.lmm-reader[hidden] { display: none; }
.lmm-reader__backdrop { position: absolute; inset: 0; background: rgba(16, 22, 12, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.lmm-reader__sheet { position: relative; width: min(1180px, 100%); height: min(92vh, 780px); height: min(92svh, 780px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); overflow: hidden; border-radius: 18px; background: var(--kraft); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.lmm-reader.is-open .lmm-reader__backdrop { opacity: 1; }
.lmm-reader.is-open .lmm-reader__sheet { opacity: 1; transform: none; }
.lmm-reader__close { position: absolute; z-index: 3; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; background: rgba(252, 251, 247, .9); color: var(--ink); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); cursor: pointer; }
.lmm-reader__slides { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 0; background: #DCD4C3; }
.lmm-reader__viewport { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0; }
.lmm-reader__viewport::-webkit-scrollbar { display: none; }
.lmm-reader__track { display: flex; width: 100%; }
.lmm-reader__slide { flex: 0 0 100%; margin: 0; display: grid; place-items: center; padding: clamp(14px, 2.4vw, 30px); scroll-snap-align: center; }
.lmm-reader__slide img { width: auto; max-width: 100%; max-height: 100%; height: auto !important; aspect-ratio: 1; object-fit: contain; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .5); }
.lmm-reader__nav { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 0 16px; }
.lmm-reader__arrow { width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(30, 42, 26, .3); cursor: pointer; }
.lmm-reader__arrow:hover { background: rgba(255, 255, 255, .4); }
.lmm-reader__count { margin: 0; min-width: 4.5em; text-align: center; font-family: var(--f-mono); font-size: 13px; }
.lmm-reader__text { overflow-y: auto; padding: clamp(28px, 3.6vw, 52px) clamp(24px, 3.4vw, 48px) 36px; overscroll-behavior: contain; }
.lmm-reader__no { margin: 0 52px 0 0; font-family: var(--f-mono); font-size: 12px; color: var(--moss); }
.lmm-reader__title { margin: 12px 0 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; }
.lmm-reader__body { margin-top: 20px; font-family: var(--f-serif); font-size: 20px; line-height: 1.55; }
.lmm-reader__body p { margin: 0 0 .9em; }
.lmm-reader__tr { font-family: var(--f-mono); font-size: 12px !important; line-height: 1.5; color: var(--ink-2); }
.lmm-reader__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.lmm-reader__eps { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.lmm-reader__eps button { font-family: var(--f-mono); font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.lmm-reader__eps button[disabled] { opacity: .3; cursor: default; text-decoration: none; }
@media (max-width: 900px) {
  .lmm-reader { padding: 0; }
  .lmm-reader__sheet { display: block; height: 100vh; height: 100svh; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; }
  .lmm-reader__slides { display: block; }
  .lmm-reader__viewport { height: min(100vw, 58vh); height: min(100vw, 58svh); }
  .lmm-reader__slide { padding: 54px 14px 4px; }
  .lmm-reader__text { overflow: visible; }
  .lmm-reader__body { font-size: 19px; }
}

/* ---------- films and stills ---------- */
.lmm-films { position: relative; padding: 16vh var(--gutter) 14vh calc(var(--gutter) + var(--rail-w) * .6); background: var(--forest-2); color: var(--cream); }
.lmm-films__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; }
.lmm-films__title { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(34px, 4.2vw, 64px); line-height: 1; }
.lmm-films__lede { margin: 0; font-size: 14px; color: var(--cream-2); }
.lmm-gallery { list-style: none; margin: 48px 0 0; padding: 0; columns: 4 230px; column-gap: clamp(12px, 1.4vw, 22px); }
.lmm-g { break-inside: avoid; margin: 0 0 clamp(12px, 1.4vw, 22px); }
.lmm-g__btn { position: relative; display: block; width: 100%; padding: 0; border-radius: 14px; overflow: hidden; background: #0b1509; cursor: zoom-in; transform: translateZ(0); }
.lmm-g__btn img { display: block; width: 100%; height: auto !important; transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.94); }
.lmm-g__btn:hover img { transform: scale(1.04); filter: saturate(1.05); }
.lmm-g--film .lmm-g__btn { aspect-ratio: 9 / 16; cursor: pointer; }
.lmm-g--film video { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.lmm-g--film .lmm-g__btn:hover video { transform: scale(1.04); }
.lmm-g--film .lmm-g__btn::after { content: ""; position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23fff'/%3E%3C/svg%3E") center/18px no-repeat; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lmm-g__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; text-align: left; font-size: 13px; color: #fff; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6)); }
.lmm-lightbox { position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 0; z-index: 2100; display: grid; place-items: center; background: rgba(8, 14, 6, .94); opacity: 0; transition: opacity .35s; }
.lmm-lightbox.is-open { opacity: 1; }
.lmm-lightbox[hidden] { display: none; }
.lmm-lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 64px clamp(16px, 7vw, 110px); touch-action: pan-y; }
.lmm-lightbox__stage img, .lmm-lightbox__stage video { max-width: 100%; max-height: calc(100vh - 128px); max-height: calc(100svh - 128px); width: auto; height: auto !important; border-radius: 12px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.lmm-lightbox__close { position: absolute; z-index: 2; right: 18px; top: 18px; width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1; background: rgba(255, 255, 255, .12); color: #fff !important; cursor: pointer; }
.lmm-lightbox__arrow { position: absolute; z-index: 2; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; font-size: 30px; line-height: 1; background: rgba(255, 255, 255, .1); color: #fff !important; cursor: pointer; }
.lmm-lightbox__arrow--prev { left: 14px; }
.lmm-lightbox__arrow--next { right: 14px; }
@media (max-width: 760px) {
  .lmm-gallery { columns: 2 140px; }
  .lmm-lightbox__arrow { top: auto; bottom: 18px; margin: 0; }
  .lmm-lightbox__arrow--prev { left: calc(50% - 64px); }
  .lmm-lightbox__arrow--next { right: calc(50% - 64px); }
}

/* ---------- the full set ---------- */
.lmm-set { position: relative; background: var(--render); }
.lmm-set__pin { min-height: calc(100vh - var(--lmm-head)); min-height: calc(100svh - var(--lmm-head)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 8vh var(--gutter) 8vh calc(var(--gutter) + var(--rail-w) * .6); }
.lmm-set__kicker { margin: 0; font-size: 13px; letter-spacing: .04em; color: var(--moss); }
.lmm-set__title { margin: 10px 0 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 68px); line-height: 1; text-wrap: balance; }
.lmm-set__body { margin: 20px 0 0; max-width: 31rem; font-size: 16px; color: var(--ink-2); }
.lmm-set__steps { list-style: none; margin: 30px 0 0; padding: 0 0 0 18px; display: grid; gap: 12px; border-left: 1px solid var(--line); counter-reset: st; }
.lmm-set__steps li { position: relative; font-size: 15px; color: rgba(30, 42, 26, .42); counter-increment: st; transition: color .4s; }
.lmm-set__steps li::before { content: counter(st, decimal-leading-zero); margin-right: 12px; font-family: var(--f-mono); font-size: 11px; }
.lmm-set__steps li::after { content: ""; position: absolute; left: -22.5px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--forest); transform: scale(0); transition: transform .5s var(--ease-out); }
.lmm-set__steps li.is-on { color: var(--ink); }
.lmm-set__steps li.is-on::after { transform: scale(1); }
.lmm-set__note { margin: 26px 0 0; display: inline-block; padding: 10px 16px; border-radius: 999px; font-size: 13px; background: rgba(30, 42, 26, .06); }
.lmm-set__note:empty { display: none; }
.lmm-set__stage { position: relative; margin: 0; width: 100%; aspect-ratio: 1 / 1; max-height: calc(100vh - var(--lmm-head) - 10vh); max-height: calc(100svh - var(--lmm-head) - 10vh); justify-self: center; }
.lmm-set__frame { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: contain; opacity: 0; }
.lmm-set__frame.is-on { opacity: 1; }
.lmm.is-js .lmm-set__frame { will-change: opacity, transform; }
.lmm-set__render { position: absolute; right: 0; bottom: 0; margin: 0; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); }
.lmm-inbox { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 110px); align-items: center; padding: 6vh var(--gutter) 16vh calc(var(--gutter) + var(--rail-w) * .6); }
.lmm-inbox__art { position: relative; margin: 0; max-width: 560px; justify-self: end; width: 100%; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(26, 54, 21, .6); }
.lmm-inbox__art img { display: block; width: 100%; height: auto !important; }
.lmm-inbox__spots { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.lmm-inbox__spots li { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; font-size: 13px; font-weight: 500; background: var(--forest); color: var(--cream); box-shadow: 0 0 0 5px rgba(237, 240, 218, .75); transition: transform .5s var(--ease-out), box-shadow .4s; }
.lmm-inbox__spots li.is-hot { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(230, 207, 122, .85); }
.lmm-inbox__title { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(30px, 3vw, 46px); }
.lmm-inbox__items { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; max-width: 30rem; }
.lmm-inbox__items li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); transition: color .3s; }
.lmm-inbox__items b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: var(--cream); font-size: 12px; font-weight: 500; }
.lmm-inbox__items li:nth-child(n + 5) b { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.lmm-inbox__items li.is-hot { color: var(--moss); }
.lmm-inbox__note { margin: 18px 0 0; font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) {
  .lmm-set__pin { grid-template-columns: 1fr; padding-top: 12vh; }
  .lmm-set__stage { max-height: none; }
  .lmm-inbox { grid-template-columns: 1fr; }
  .lmm-inbox__art { justify-self: stretch; }
}

/* ---------- how to: the clip and the five steps ---------- */
.lmm-how { position: relative; padding: 16vh var(--gutter) 14vh calc(var(--gutter) + var(--rail-w) * .6); background: var(--mist); }
.lmm-how__head { max-width: 46rem; }
.lmm-how__kicker { margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--moss); }
.lmm-how__title { margin: 10px 0 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 68px); line-height: 1; }
.lmm-how__lede { margin: 16px 0 0; max-width: 34rem; font-size: 16px; color: var(--ink-2); }
.lmm-how__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 90px); align-items: start; margin-top: 8vh; }
.lmm-how__player { position: sticky; top: calc(var(--lmm-head) + 5vh); justify-self: center; width: 100%; max-width: 420px; }
.lmm-video { position: relative; aspect-ratio: 9 / 16; max-height: calc(100vh - var(--lmm-head) - 10vh); max-height: calc(100svh - var(--lmm-head) - 10vh); margin: 0 auto; border-radius: 22px; overflow: hidden; background: #1c1f19; box-shadow: 0 40px 80px -40px rgba(26, 54, 21, .7); }
.lmm-video video { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.lmm-video__play { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #fff; background: rgba(20, 28, 16, .48); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; transition: opacity .4s, transform .5s var(--ease-out); white-space: nowrap; }
.lmm-video__icon { width: 34px; height: 34px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%231A3615'/%3E%3C/svg%3E") center/18px no-repeat; }
.lmm-video.is-playing .lmm-video__play { opacity: 0; pointer-events: none; transform: translate(-50%, 10px); }
.lmm-video__sound { position: absolute; right: 12px; top: 12px; padding: 7px 12px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(20, 28, 16, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; opacity: 0; transition: opacity .4s; }
.lmm-video.is-playing .lmm-video__sound { opacity: 1; }
.lmm-video__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.lmm-video__bar span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.lmm-how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lmm-hstep button { position: relative; display: grid; grid-template-columns: 92px 34px minmax(0, 1fr); align-items: center; gap: 14px; width: 100%; padding: 10px 18px 10px 10px; border-radius: 16px; text-align: left; cursor: pointer; transition: background-color .4s, box-shadow .4s; }
.lmm-hstep button:hover { background: rgba(255, 255, 255, .45); }
.lmm-hstep.is-active button { background: #FCFBF7; box-shadow: 0 20px 40px -26px rgba(26, 54, 21, .5); }
.lmm-hstep__img { display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; }
.lmm-hstep__img img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s var(--ease-out); }
.lmm-hstep.is-active .lmm-hstep__img img { transform: scale(1.06); }
.lmm-hstep__n { font-family: var(--f-serif); font-size: 34px; line-height: 1; color: var(--matcha); }
.lmm-hstep__txt { font-family: var(--f-serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; color: var(--ink); }
.lmm-hstep__prog { position: absolute; left: 116px; right: 18px; bottom: 10px; height: 2px; border-radius: 2px; background: rgba(30, 42, 26, .08); opacity: 0; transition: opacity .3s; }
.lmm-hstep__prog i { display: block; height: 100%; border-radius: 2px; background: var(--matcha); transform-origin: left; transform: scaleX(var(--p, 0)); }
.lmm-hstep.is-active .lmm-hstep__prog { opacity: 1; }
.lmm-how__guide { margin: 12vh 0 0; display: grid; gap: 16px; }
.lmm-how__guide figcaption { max-width: 40rem; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.lmm-screen__title { display: block; margin: 0 0 8px; font-family: var(--f-cap); font-weight: 500; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: .01em; color: var(--ink); }
.lmm[data-lang="vi"] .lmm-screen__title { font-family: var(--f-sans); font-weight: 400; letter-spacing: -.01em; }
/* the guide as a folding screen: the photo until the 3D scene is ready (src/js/3d/screen.js) */
.lmm-screen { position: relative; aspect-ratio: 2 / 1; border-radius: 6px; overflow: hidden; background: radial-gradient(80% 75% at 50% 36%, #F7F6EE 0%, #ECEFDF 56%, #E2E9CF 100%); }
.lmm-screen__img { position: absolute; inset: 0; display: block; width: 100%; height: 100% !important; object-fit: cover; transition: opacity .9s; }
.lmm-screen__gl { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s; touch-action: pan-y; }
[data-lmm-screen].is-3d .lmm-screen__gl { opacity: 1; }
[data-lmm-screen].is-3d .lmm-screen__img { opacity: 0; }
.lmm-screen__tip { position: absolute; left: 50%; bottom: 14px; translate: -50% 6px; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .72); font-size: 12.5px; letter-spacing: .02em; color: var(--ink-2); opacity: 0; transition: opacity .6s, translate .6s; pointer-events: none; }
[data-lmm-screen].is-tip .lmm-screen__tip { opacity: 1; translate: -50% 0; }
@media (max-width: 900px) {
  .lmm-screen { aspect-ratio: 1 / 1; }
  .lmm-how__body { grid-template-columns: 1fr; }
  .lmm-how__player { position: relative; top: 0; max-width: 360px; }
  .lmm-hstep button { grid-template-columns: 76px 28px minmax(0, 1fr); gap: 12px; }
  .lmm-hstep__prog { left: 96px; }
  .lmm-hstep__n { font-size: 28px; }
}

/* ---------- play: the kit on the green cloth ---------- */
.lmm-play { position: relative; display: grid; justify-items: center; text-align: center; padding: 14vh var(--gutter) 14vh; color: var(--cream); background: radial-gradient(70% 60% at 50% 58%, #2b4b23 0%, var(--table) 60%, #0f210d 100%); }
.lmm-play::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1; mix-blend-mode: overlay; background-image: url(../img/grain.png); background-size: 220px; }
.lmm-play > * { position: relative; }
.lmm-play__title { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.02; }
.lmm-play__hint { margin: 12px auto 0; max-width: 34rem; color: var(--cream-2); font-size: 15px; }
.lmm-play__stage { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; margin-top: 2vh; touch-action: pan-y; }
.lmm-play__gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .6s; }
.lmm.is-gl-play .lmm-play__gl { opacity: 1; }
.lmm-play__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.lmm.is-gl-play .lmm-play__fallback { display: none; }
.lmm-mochi-css { width: 40%; aspect-ratio: 1.25; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; background: radial-gradient(circle at 40% 30%, #fbfdf5, #e4edcf 45%, #c9d9a8 100%); box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .55); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.lmm-play__stage:active .lmm-mochi-css { transform: scale(1.12, .84); }
.lmm-play__ui { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
.lmm-play.is-busy .lmm-play__ui .lmm-btn { opacity: .55; pointer-events: none; }
.lmm-play__count { width: 100%; margin: 8px 0 0; font-size: 13px; color: var(--cream-2); min-height: 1.6em; }
@media (max-width: 760px) { .lmm-play__stage { aspect-ratio: 1 / 1; } }

/* ---------- early access: the black box ---------- */
.lmm-access { position: relative; color: var(--cream); background: radial-gradient(60vw 60vh at 28% 45%, #1e3a18 0%, #0e1d0b 60%, #0a1408 100%); }
/* wide screens: the box on the left, the panel beside it in the middle of the screen; buying comes right after
   the title, the details under it. Phones: the title, the box, then buying (see the end of this block) */
.lmm-access__pin { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 60px); align-items: center; min-height: calc(100vh - var(--lmm-head)); min-height: calc(100svh - var(--lmm-head)); padding: 0 var(--gutter) 0 calc(var(--gutter) + var(--rail-w) * .6); }
.lmm-access__stage { position: sticky; top: var(--lmm-head); align-self: start; width: 100%; height: calc(100vh - var(--lmm-head)); height: calc(100svh - var(--lmm-head)); }
.lmm-access__panel { padding: 7vh 0; }
.lmm-access__gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .8s; }
.lmm.is-gl-box .lmm-access__gl { opacity: 1; }
.lmm-access__fallback { position: absolute; inset: 8% 10%; width: 80%; height: 84% !important; object-fit: cover; border-radius: 10px; opacity: .92; }
.lmm.is-gl-box .lmm-access__fallback { display: none; }
.lmm-access__panel { max-width: 31rem; }
.lmm-access__eyebrow { margin: 0; font-size: 13px; letter-spacing: .14em; color: var(--gold); }
.lmm-access__title { margin: 8px 0 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(36px, 3.7vw, 60px); line-height: 1.02; text-wrap: balance; }
.lmm-access__facts { list-style: none; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-cream); display: grid; gap: 10px; }
.lmm-access__facts li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.55; color: rgba(237, 240, 218, .45); transition: color .6s; }
.lmm-access__facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(237, 240, 218, .4); transition: background-color .6s, box-shadow .6s; }
.lmm-access__facts li.is-on { color: var(--cream); }
.lmm-access__facts li.is-on::before { background: var(--gold); box-shadow: none; }
.lmm-access__state { margin-top: 22px; display: grid; gap: 14px; justify-items: start; }
.lmm-access__state p { margin: 0; color: var(--cream-2); font-size: 15px; }
.lmm-count__label--inline { display: inline; margin-left: 8px; }
.lmm-access .lmm-count__label, .lmm-access .lmm-count__unit { color: var(--cream-2); }
.lmm-access .lmm-count__num { color: var(--cream); font-size: clamp(32px, 3.6vw, 52px); }
.lmm-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.lmm-price__now { font-family: var(--f-serif); font-size: clamp(36px, 4vw, 54px); line-height: 1; color: var(--cream); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'lnum' 1, 'tnum' 1; }
.lmm-price__was { font-size: 16px; color: var(--cream-2); text-decoration: line-through; }
.lmm-price__off { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--forest); }
.lmm-meter { display: grid; gap: 8px; width: 100%; }
.lmm-meter__bar { height: 6px; border-radius: 6px; background: rgba(237, 240, 218, .14); overflow: hidden; }
.lmm-meter__bar span { display: block; height: 100%; width: var(--p, 100%); background: linear-gradient(90deg, var(--sage), var(--gold)); border-radius: 6px; transition: width 1.2s var(--ease-out); }
.lmm-meter__txt { font-size: 14px; color: var(--cream-2); font-variant-numeric: tabular-nums; }
.lmm-meter__txt b { color: var(--cream); font-weight: 500; }
.lmm-form { margin-top: 26px; display: grid; gap: 16px; }
.lmm-form[hidden] { display: none; }
.lmm-form__row { display: grid; gap: 6px; }
.lmm-form__row label { font-size: 13px; color: var(--cream-2); }
.lmm-form input[type="text"] { height: 48px; padding: 0 2px; border: 0; border-bottom: 1px solid rgba(237, 240, 218, .4); background: transparent; color: var(--cream); font-size: 17px; border-radius: 0; outline: none; transition: border-color .3s; }
.lmm-form input[type="text"]:focus { border-color: var(--gold); }
.lmm-form input[aria-invalid="true"] { border-color: #f0a58a; }
.lmm-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lmm-form__consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.5; color: var(--cream-2); }
.lmm-form__consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.lmm-form .lmm-btn { justify-self: start; margin-top: 4px; }
.lmm-form__msg { margin: 0; min-height: 1.6em; font-size: 14px; color: var(--sage); }
.lmm-form__msg.is-error { color: #f0b49d; }
.lmm-form__cal { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lmm-form__demo { opacity: .7; }
.lmm-access__where { margin: 16px 0 0; font-size: 13px; color: var(--cream-2); }
.lmm-access__where a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.lmm-compare { padding: 4vh var(--gutter) 16vh calc(var(--gutter) + var(--rail-w) * .6); }
.lmm-compare__title { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(28px, 3vw, 44px); }
.lmm-compare__wrap { margin-top: 26px; overflow-x: auto; }
.lmm-compare__table { width: 100%; max-width: 62rem; border-collapse: collapse; font-size: 15px; }
.lmm-compare__table th, .lmm-compare__table td { padding: 16px 18px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-cream); }
.lmm-compare__table thead th { font-family: var(--f-serif); font-weight: 500; font-size: 22px; color: var(--cream); }
.lmm-compare__table tbody th { width: 18%; font-weight: 400; font-size: 13px; color: var(--cream-2); }
.lmm-compare__table td { width: 41%; color: var(--cream); }
.lmm-compare__table td b { font-family: var(--f-serif); font-weight: 500; font-size: 24px; color: var(--gold); font-variant-numeric: lining-nums; }
.lmm-compare__table td s { margin-left: 6px; font-size: 13px; color: var(--cream-2); }
.lmm-tagoff { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: rgba(230, 207, 122, .18); color: var(--gold); }
@media (max-width: 900px) {
  .lmm-access__pin { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 7vh; padding-bottom: 7vh; }
  .lmm-access__panel { display: contents; }
  .lmm-access__eyebrow { order: 1; }
  .lmm-access__title { order: 2; }
  .lmm-access__stage { order: 3; position: relative; top: 0; height: min(88vw, 520px); margin-top: 4px; }
  .lmm-access__state { order: 4; margin-top: 2px; }
  .lmm-access__facts { order: 5; }
  .lmm-access__where { order: 6; }
  .lmm-compare__table { font-size: 14px; }
}
/* phones: no sideways scrolling; the two versions are two columns, each detail a row across both */
@media (max-width: 700px) {
  .lmm-compare__wrap { overflow: visible; margin-top: 20px; }
  .lmm-compare__table, .lmm-compare__table thead, .lmm-compare__table tbody { display: block; min-width: 0; }
  .lmm-compare__table thead tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-cream); }
  .lmm-compare__table thead th { padding: 0; border: 0; font-size: 16px; }
  .lmm-compare__table thead th:first-child { display: none; }
  .lmm-compare__table tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-cream); }
  .lmm-compare__table tbody th { grid-column: 1 / -1; width: auto; padding: 0 0 6px; border: 0; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
  .lmm-compare__table td { width: auto; padding: 0; border: 0; font-size: 14px; line-height: 1.5; }
  .lmm-compare__table td b { display: block; font-size: 22px; }
  .lmm-compare__table td s { margin-left: 0; }
}

/* ---------- finale share ---------- */
.lmm-finale__share { margin-top: 34px; display: grid; justify-items: center; gap: 10px; }
.lmm-finale__shared { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--cream-2); }
.lmm-finale__url { user-select: all; color: var(--cream); }

/* ---------- static (reduced motion) additions ---------- */
.lmm.is-static .lmm-set__frame { position: relative; display: none; }
.lmm.is-static .lmm-set__frame.is-on { display: block; opacity: 1; }

/* ---------- Vietnamese in display type ----------
   Cinzel has no Vietnamese marks, so Vietnamese headings are set the way Lusted prints them on the box:
   in the sans, light, at the same size as the English. */
.lmm[data-lang="vi"] :is(h1, h2, h3, .lmm-set__title, .lmm-notes__title) .vi { font-family: var(--f-sans); font-weight: 300; letter-spacing: 0; text-transform: none; }

/* a held stretch of scroll on touch screens (src/js/hold.js): the browser keeps the sheet under the header
   while the stretch after it scrolls by, so it never jumps on the way in or out */
.lmm .lmm-hold { position: relative; }
.lmm .lmm-hold__el { position: sticky !important; top: var(--lmm-head) !important; z-index: 1; }
.lmm .lmm-hold__run { pointer-events: none; }

/* Hero "Dawn": src/js/hero.js drives the CSS variables below.
   --h-dawn 0..1 night to morning · --h-ink 0..1 light text to dark text · --h-hill/--h-sat hill light
   --h-glow strength and --h-gx/--h-gy position of the sun's glow. */

/* the preloader is the last minute of the night, so the hero can open straight out of it */
.lmm .lmm-preloader { background: #08110E; }
.lmm .lmm-preloader__lockup { color: #E9ECE2; }
.lmm .lmm-preloader__bar { background: rgba(233, 236, 226, .14); }
.lmm .lmm-preloader__bar span { background: rgba(233, 236, 226, .7); }

.lmm .lmm-hero { position: relative; height: calc(100vh + 105vh); height: calc(100svh + 105vh); background: #08110E; }
.lmm .lmm-hero__stage {
  --h-dawn: 0; --h-ink: 0; --h-hill: .3; --h-sat: .55; --h-glow: 0; --h-gx: 86%; --h-gy: 70%;
  position: sticky;
  top: var(--lmm-head);
  height: calc(100vh - var(--lmm-head)); height: calc(100svh - var(--lmm-head));
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

/* sky: night underneath, the morning laid over it, a warm band of first light that peaks half way */
.lmm .lmm-hero__sky { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #07100D 0%, #0C1A15 44%, #16271F 72%, #1E3026 100%); }
.lmm .lmm-hero__sky::after {
  content: "";
  position: absolute;
  inset: 34% 0 0;
  background: radial-gradient(80% 60% at 82% 46%, rgba(236, 178, 116, .62), rgba(236, 178, 116, 0) 70%);
  opacity: calc(var(--h-dawn) * (1 - var(--h-dawn)) * 3.4);
}
.lmm .lmm-hero__dawn { position: absolute; inset: 0; opacity: var(--h-dawn); background: linear-gradient(180deg, #EFEBDF 0%, #F3EDDA 30%, #EFEAD5 54%, #E3E8D2 78%, #D6E0C4 100%); }
.lmm .lmm-hero__glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 110vmax;
  height: 110vmax;
  /* moved by transform (no layout while the sun travels) */
  transform: translate3d(calc(var(--h-gx, 50vw) - 50%), calc(var(--h-gy, 40vh) - 50%), 0);
  will-change: transform, opacity;
  opacity: var(--h-glow);
  background: radial-gradient(closest-side, rgba(255, 241, 206, .95) 0%, rgba(253, 236, 198, .55) 16%, rgba(246, 230, 196, .16) 40%, rgba(246, 230, 196, 0) 68%);
  pointer-events: none;
}

/* painted hills, darkened by the night until the light arrives */
.lmm .lmm-hero__hills { position: absolute; inset: 0; pointer-events: none; filter: brightness(var(--h-hill)) saturate(var(--h-sat)); }
.lmm .lmm-hero__hills canvas { position: absolute; display: block; }
.lmm .lmm-hero__hills--far { z-index: 1; }
.lmm .lmm-hero__hills--mid { z-index: 3; }
.lmm .lmm-hero__hills--near { z-index: 5; }

/* the sun, then the cap: a Cycles render of the chrome sphere */
.lmm .lmm-hero__sun { position: absolute; z-index: 2; transform-origin: 50% 50%; will-change: transform, opacity; pointer-events: none; }
.lmm .lmm-hero__sun.is-high { z-index: 6; }
.lmm .lmm-hero__sun img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lmm .lmm-hero__bottle { position: absolute; z-index: 4; display: block; }
.lmm .lmm-hero__cap { position: absolute; z-index: 6; display: block; opacity: 0; pointer-events: none; }

/* a tap on the open bottle sprays it (main.js, src/js/spray.js): the pump gives a little under the finger,
   and a line beside the nozzle says so until the first spray or the first scroll */
.lmm .lmm-hero__stage:not(.is-capped) .lmm-hero__bottle { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lmm .lmm-hero__bottle.is-pressed { animation: lmm-press .34s cubic-bezier(.3, .7, .3, 1); }
@keyframes lmm-press { 0% { transform: none; } 28% { transform: translateY(2px) scale(.994); } 100% { transform: none; } }
.lmm .lmm-hero__try {
  position: absolute;
  z-index: 7;
  left: 0;
  top: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translate3d(calc(var(--nx, 0px) - 100%), calc(var(--ny, 0px) - 50%), 0);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: .02em;
  white-space: nowrap;
  color: #2E4A2A;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
/* a hairline from the words to a ring on the nozzle */
.lmm .lmm-hero__try::after { content: ""; flex: none; width: 34px; height: 1px; margin-right: 9px; background: linear-gradient(to right, rgba(46, 74, 42, .2), rgba(46, 74, 42, .7)); }
.lmm .lmm-hero__try::before { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(46, 74, 42, .75); animation: lmm-try 2s ease-in-out infinite; }
@keyframes lmm-try { 0%, 100% { transform: scale(.8); opacity: .9; } 50% { transform: scale(1.25); opacity: .35; } }
.lmm .lmm-hero__stage.is-try:not(.is-moved) .lmm-hero__try { opacity: 1; }
.lmm .lmm-hero__stage:not(.is-try) .lmm-hero__try::before, .lmm .lmm-hero__stage.is-moved .lmm-hero__try::before { animation: none; }
/* the spray's drops on the glass, over everything but the open sheets, and its fog for a moment */
/* the spray (src/js/spray.js, 20.10): a canvas inside the scene, above the bottle and the cap, behind the words */
.lmm .lmm-spray { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; display: none; pointer-events: none; }
.lmm .lmm-spray.is-on { display: block; }
.lmm .lmm-notes .lmm-spray--notes { z-index: 2; }
/* without room for one line (phones) it wraps, right aligned; where the words above reach down over the
   pump, it sits beside the bottle's shoulder instead, without the ring */
.lmm .lmm-hero__try.is-wrap { gap: 6px; white-space: normal; max-width: var(--tw, 140px); font-size: 12px; text-align: right; }
.lmm .lmm-hero__try.is-wrap::after { width: 14px; }
.lmm .lmm-hero__try.is-side::before { display: none; }
.lmm .lmm-hero__try.is-side { gap: 5px; }
.lmm .lmm-hero__try.is-side::after { width: 10px; margin-right: 2px; }
@media (prefers-reduced-motion: reduce) { .lmm .lmm-hero__try::before, .lmm .lmm-hero__bottle.is-pressed { animation: none; } }

/* words */
.lmm .lmm-hero__copy {
  position: absolute;
  z-index: 8;
  left: calc(var(--gutter) + var(--rail-w) * .6);
  top: 15%;
  width: min(40rem, 48vw);
  color: color-mix(in srgb, #17201A calc(var(--h-ink) * 100%), #EEF0E6);
}
.lmm .lmm-hero__kicker { margin: 0 0 22px; font-family: var(--f-sans); font-weight: 500; font-size: 11.5px; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; opacity: .78; }
.lmm .lmm-lockup { margin: 0; display: grid; gap: .16em; font-weight: 400; color: inherit; }
.lmm .lmm-lockup__brand { font-family: var(--f-cap); font-weight: 500; font-size: clamp(14px, 1.25vw, 18px); letter-spacing: .56em; }
.lmm .lmm-lockup__name { font-family: var(--f-cap); font-weight: 500; font-size: clamp(44px, 5.4vw, 92px); line-height: .94; letter-spacing: .02em; white-space: nowrap; }
.lmm .lmm-hero__tag { margin: .9em 0 0; font-family: var(--f-sans); font-weight: 300; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.4; letter-spacing: .01em; }
.lmm .lmm-hero__status { margin-top: 28px; min-height: 64px; }
.lmm .lmm-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.lmm .lmm-hero__story {
  position: absolute;
  z-index: 8;
  left: calc(var(--gutter) + var(--rail-w) * .6);
  top: 18%;
  width: min(32rem, 44vw);
  opacity: 0;
  visibility: hidden;
  color: #17201A;
}
.lmm .lmm-hero__story-text { margin: 0; font-family: var(--f-sans); font-weight: 300; font-size: clamp(21px, 1.95vw, 30px); line-height: 1.48; text-wrap: pretty; }
.lmm .lmm-hero__story-text .lmm-w { opacity: .16; transition: none; }
.lmm .lmm-hero__sign { margin: 22px 0 0; font-family: var(--f-cap); font-weight: 500; font-size: 20px; letter-spacing: .08em; color: #3E5A2B; }
.lmm .lmm-hero__sign small { display: block; margin-top: 6px; font-family: var(--f-sans); font-weight: 400; font-size: 12px; letter-spacing: .04em; color: rgba(23, 32, 26, .62); }

.lmm .lmm-hero__cue {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: .06em;
  color: #17201A;
  /* in with the intro, out with the first scroll: two separate values, so a scroll during the intro keeps it away
     (17.10: one opacity for both let the intro bring it back half way down the first screen) */
  opacity: calc(var(--cue-in, 0) * var(--cue-out, 1));
}
.lmm .lmm-hero__cue i { width: 1px; height: 38px; background: linear-gradient(#17201A, rgba(23, 32, 26, 0)); animation: lmm-cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes lmm-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 899px), (max-aspect-ratio: 9/10) {
  .lmm .lmm-hero { height: calc(100vh + 90vh); height: calc(100svh + 90vh); }
  /* phones: the words close to the top and the two buttons on one line, so the whole bottle fits under them */
  .lmm .lmm-hero__copy { top: clamp(14px, 3.2%, 32px); left: 20px; right: 20px; width: auto; }
  .lmm .lmm-lockup__name { font-size: clamp(32px, 10vw, 60px); }
  .lmm .lmm-hero__kicker { margin-bottom: 10px; font-size: 10.5px; letter-spacing: .2em; }
  .lmm .lmm-hero__status { margin-top: 14px; min-height: 0; }
  .lmm .lmm-hero__status .lmm-count__num { font-size: 26px; }
  .lmm .lmm-hero__cta { flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
  .lmm .lmm-hero__cta .lmm-btn { flex: 1 1 0; min-width: 0; min-height: 46px; padding-inline: 12px; font-size: 13.5px; letter-spacing: 0; white-space: nowrap; }
  .lmm .lmm-hero__cta .lmm-btn--solid { flex-grow: 1.55; }
  .lmm .lmm-hero__story { top: 7%; left: 20px; right: 20px; width: auto; }
  .lmm .lmm-hero__story-text { font-size: clamp(18px, 5vw, 23px); }
  /* phones: the first screen's own cue, small, in the corner of the hills right of the bottle, above what the
     first screen does not show yet (19.10: phones had no word about going on at all) */
  .lmm .lmm-hero__cue { left: auto; right: 18px; bottom: calc(var(--h-below, 0px) + 22px); transform: none; grid-auto-flow: column; align-items: center; gap: 9px; font-size: 12px; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
  .lmm .lmm-hero__cue i { height: 24px; }
}

@media (max-width: 349px) { .lmm .lmm-hero__cta { flex-wrap: wrap; } .lmm .lmm-hero__cta .lmm-btn { flex: 1 1 100%; } }

/* still page: morning, the bottle already closed, the opening words follow the first screen */
.lmm.is-static .lmm-hero { height: auto; background: #E3E8D2; }
.lmm.is-static .lmm-hero__stage { position: relative; top: 0; --h-dawn: 1; --h-ink: 1; --h-hill: 1; --h-sat: 1; --h-glow: .7; }
.lmm.is-static .lmm-hero__sun, .lmm.is-static .lmm-hero__cap, .lmm.is-static .lmm-hero__cue, .lmm.is-static .lmm-hero__try { display: none; }
.lmm.is-static .lmm-hero__story { position: relative; left: auto; top: auto; opacity: 1; visibility: visible; width: auto; max-width: 40rem; padding: 12vh var(--gutter) 6vh calc(var(--gutter) + var(--rail-w) * .6); }
.lmm.is-static .lmm-hero__story-text .lmm-w { opacity: 1; }

/* until the intro starts, the words wait in the dark */
.lmm.is-js:not(.is-ready):not(.is-static) .lmm-hero__copy > * { opacity: 0; }

/* Let's make perfume fun again: the founder's first words, right under the countdown.
   The block picks up the green the hero's hills end on and settles into the deep moss of evening tea,
   a title card for the page: the line in Cinzel, the words from Diary episode 01 lighting up as you read. */

.lmm .lmm-manifesto {
  position: relative;
  padding: clamp(104px, 17vh, 190px) var(--gutter) clamp(104px, 17vh, 190px) calc(var(--gutter) + var(--rail-w) * .6);
  /* starts on the green the hero's last hills end on (sampled), then settles into deep moss */
  background: linear-gradient(180deg, #8AA26C 0, #6A8650 70px, #43603A 190px, #2A4129 360px, #1C2F21 62%, #13211A 100%);
  color: #EDF0DA;
  overflow: hidden;
  isolation: isolate;
}
/* the last of the morning light the hero ended in, low over the title */
.lmm .lmm-manifesto::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -18%;
  width: min(1400px, 130vw);
  height: 70%;
  translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232, 203, 147, .17), rgba(232, 203, 147, .05) 55%, rgba(232, 203, 147, 0) 72%);
  pointer-events: none;
}
.lmm .lmm-manifesto__inner { position: relative; max-width: 60rem; margin: 0 auto; text-align: center; }
.lmm .lmm-manifesto__title {
  margin: 0;
  font-family: var(--f-cap);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 88px);
  line-height: 1.06;
  letter-spacing: .01em;
  color: #F3F1E6;
  text-wrap: balance;
}
.lmm .lmm-manifesto__title .lmm-mw { display: inline-block; }
.lmm .lmm-manifesto__body { display: grid; gap: 1.05em; max-width: 39rem; margin: clamp(34px, 5.5vh, 60px) auto 0; }
.lmm .lmm-manifesto__text {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.62;
  color: #E6EAD8;
  text-wrap: pretty;
}
.lmm .lmm-manifesto__text .lmm-w { opacity: .2; transition: none; }
.lmm .lmm-manifesto__sign { margin: clamp(30px, 4.5vh, 46px) 0 0; font-family: var(--f-cap); font-weight: 500; font-size: 20px; letter-spacing: .08em; color: #E8CB93; }
.lmm .lmm-manifesto__sign small { display: block; margin-top: 6px; font-family: var(--f-sans); font-weight: 400; font-size: 12px; letter-spacing: .04em; color: rgba(237, 240, 218, .6); }

@media (max-width: 899px) {
  .lmm .lmm-manifesto { padding: clamp(72px, 12vh, 110px) 22px clamp(84px, 14vh, 120px); }
  .lmm .lmm-manifesto__title { font-size: clamp(32px, 9.4vw, 48px); }
  .lmm .lmm-manifesto__text { font-size: clamp(17px, 4.6vw, 20px); }
}
.lmm.is-static .lmm-manifesto__text .lmm-w,
.lmm.is-static .lmm-manifesto__text { opacity: 1; }

/* How Matcha Mochi started: the founder's table, made only of his photographs (src/partials/story.html,
   src/js/story.js, img/v4/desk/). One pinned screen: a dark table lit by a lamp, the words on a paper
   card beside it (left on wide screens, on top on phones and tall screens). */

.lmm-origin { position: relative; background: #0B0907; color: var(--cream); }
.lmm-table { position: relative; height: calc(100vh - var(--lmm-head)); height: calc(100svh - var(--lmm-head)); min-height: 560px; overflow: hidden; background: #0B0907; -webkit-tap-highlight-color: transparent; }
.lmm.is-js .lmm-table { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lmm:not(.is-js) .lmm-table { height: auto; min-height: 0; padding: 48px 20px; }
.lmm-table__cam { position: absolute; inset: 0; overflow: hidden; }
.lmm-table__world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }
.lmm-table__zoom { position: absolute; left: 0; top: 0; width: 0; height: 0; }
/* phones (main.js story: is-slide): no mask on the photographs, the desk's dark is painted over their edges */
.lmm-st__vig { position: absolute; inset: 0; display: none; pointer-events: none; background: linear-gradient(90deg, #0B0907 0, rgba(11, 9, 7, 0) 11%, rgba(11, 9, 7, 0) 89%, #0B0907 100%), linear-gradient(180deg, #0B0907 0, rgba(11, 9, 7, 0) 9%, rgba(11, 9, 7, 0) 91%, #0B0907 100%); }
/* the first photograph lies under the other two along its right and bottom edges (story.js POS): its dark
   comes in fully where they begin, so no edge of light shows between them */
.lmm-st--s1 .lmm-st__vig { background: linear-gradient(90deg, #0B0907 0, rgba(11, 9, 7, 0) 11%, rgba(11, 9, 7, 0) 86%, #0B0907 96.8%), linear-gradient(180deg, #0B0907 0, rgba(11, 9, 7, 0) 9%, rgba(11, 9, 7, 0) 86%, #0B0907 95.2%); }
.lmm-origin.is-slide .lmm-st { -webkit-mask-image: none; mask-image: none; }
.lmm-origin.is-slide .lmm-st__vig { display: block; }

/* a station: one photograph and the pieces cut from it, its edges melting into the dark table */
.lmm-st { position: absolute; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-composite: intersect; }
.lmm .lmm-st__plate, .lmm .lmm-sp, .lmm .lmm-fallen, .lmm .lmm-print { position: absolute; display: block; max-width: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.lmm .lmm-st__plate { left: 0; top: 0; width: 100%; height: 100% !important; }
.lmm-st__decals { position: absolute; inset: 0; pointer-events: none; }
.lmm .lmm-sp { height: auto; will-change: transform; transition: filter .45s ease; }
.lmm .lmm-sp.is-picked { filter: drop-shadow(0 0 2px rgba(255, 240, 206, 1)) drop-shadow(0 0 30px rgba(236, 206, 150, .95)); }
/* the bottles: face down and still they are the photo; rolling over (and face up) they are a box of their own
   faces, cut from the photo and laid out frame by frame by story.js (rollDraw), with a shadow on the desk */
.lmm .lmm-sp--bottle { transition: none; }
.lmm-roll { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 0; pointer-events: none; visibility: hidden; will-change: transform; }
.lmm-roll.is-on { visibility: visible; }
.lmm-roll__face { position: absolute; left: 0; top: 0; transform-origin: 0 0; background-size: 100% 100%; background-repeat: no-repeat; overflow: hidden; backface-visibility: hidden; }
.lmm-roll__sky { position: absolute; inset: 0; opacity: 0; background-size: 100% 100%; background-repeat: no-repeat; }
.lmm-roll__sheen { position: absolute; inset: 0; opacity: calc(var(--so, .3) * var(--room, 1)); background: radial-gradient(ellipse 34% 70% at var(--hx, 50%) 34%, rgba(255, 252, 240, .85), rgba(255, 252, 240, .18) 46%, rgba(255, 252, 240, 0) 72%); mix-blend-mode: screen; }
.lmm-roll__shade { position: absolute; inset: 0; background: #0B0907; opacity: 0; }
/* the band of light that runs across a face as it turns: across the bottle on the back and front, along a side */
.lmm-roll__glint { position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, rgba(255, 250, 236, 0) 40%, rgba(255, 250, 236, .55) 46%, rgba(255, 252, 244, .95) 50%, rgba(255, 250, 236, .55) 54%, rgba(255, 250, 236, 0) 60%) no-repeat; background-size: 300% 100%; background-position: 50% 0; mix-blend-mode: screen; }
.lmm-roll__glint.is-on { animation: lmm-roll-sweep 1.15s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes lmm-roll-sweep { 0% { opacity: 0; background-position: 100% 0; } 18% { opacity: .75; } 80% { opacity: .75; } 100% { opacity: 0; background-position: 0 0; } }
.lmm-roll__glint.is-across { background-image: linear-gradient(180deg, rgba(255, 250, 236, 0) 40%, rgba(255, 250, 236, .55) 46%, rgba(255, 252, 244, .95) 50%, rgba(255, 250, 236, .55) 54%, rgba(255, 250, 236, 0) 60%); background-size: 100% 300%; background-position: 0 50%; }
.lmm .lmm-roll__cap { position: absolute; display: block; max-width: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.lmm-roll__shadow { position: absolute; left: 0; top: 0; width: 100px; height: 100px; z-index: 1; transform-origin: 0 0; opacity: 0; background: radial-gradient(closest-side, rgba(0, 0, 0, .72), rgba(0, 0, 0, .36) 55%, rgba(0, 0, 0, 0)); }
.lmm-sp-glint { position: absolute; pointer-events: none; opacity: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; background: linear-gradient(112deg, rgba(255, 255, 255, 0) 40%, rgba(255, 251, 238, .9) 50%, rgba(255, 255, 255, 0) 60%); background-size: 280% 100%; background-position: 135% 0; mix-blend-mode: screen; }
.lmm-sp-glint.is-on { animation: lmm-glint 1.15s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes lmm-glint { 0% { opacity: 0; background-position: 135% 0; } 14% { opacity: 1; } 84% { opacity: 1; } 100% { opacity: 0; background-position: -35% 0; } }
/* the bottles' chrome: a soft highlight that follows the light, cut to the bottle's own shape */
.lmm-sp-sheen { position: absolute; pointer-events: none; opacity: .22; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; background: radial-gradient(ellipse 34% 70% at var(--hx, 50%) 34%, rgba(255, 252, 240, .85), rgba(255, 252, 240, .18) 46%, rgba(255, 252, 240, 0) 72%); mix-blend-mode: screen; transition: opacity .8s ease; will-change: transform; }
/* prints of the Diary lying on the desk: the founder's own slides on photo paper */
.lmm-print-photo { position: absolute; box-sizing: border-box; padding: 12px; background: #F3F0E8; transform: rotate(var(--rot, 0deg)); box-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 16px 26px -10px rgba(0, 0, 0, .8); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease; }
.lmm-print-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.lmm-print-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .08)); }
.lmm-print-photo.is-hover { transform: rotate(calc(var(--rot, 0deg) * .5)) translateY(-14px) scale(1.04); box-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 34px 44px -16px rgba(0, 0, 0, .85); }

.lmm .lmm-print { opacity: 0; transform: rotate(var(--rot, 0deg)) scale(1.2); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.lmm .lmm-print.is-on { opacity: .92; transform: rotate(var(--rot, 0deg)) scale(1); }
.lmm .lmm-fallen { transition: opacity .6s ease; }
.lmm .lmm-fallen.is-gone { opacity: 0; }

.lmm-table__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* the lamp: a pool of light where the story is, the rest of the table in the dark */
.lmm-table__lamp { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle var(--lr, 640px) at var(--lx, 60%) var(--ly, 50%), rgba(8, 6, 4, var(--in, .5)) 0%, rgba(8, 6, 4, var(--mid, .6)) 58%, rgba(5, 4, 3, var(--out, .8)) 100%); }
.lmm-table__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: soft-light; background: radial-gradient(circle var(--lr, 520px) at var(--lx, 60%) var(--ly, 50%), rgba(255, 210, 140, .7) 0%, rgba(255, 210, 140, 0) 72%); }
.lmm-table__grain { position: absolute; inset: 0; pointer-events: none; background: url(../img/grain.png); opacity: .07; mix-blend-mode: overlay; }

/* labels on the desk: a dot on the object and a pill beside it. The opening names what lies on the
   desk (dark pills); the corners after it say what to do with each object (paper pills). */
.lmm-tags { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.lmm-tag { position: absolute; left: 0; top: 0; width: 0; height: 0; margin: 0; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .35s; will-change: transform; }
.lmm-tag.is-on { visibility: visible; opacity: 1; transition: opacity .45s ease .1s, visibility 0s; }
.lmm-tag__dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #F4EEDC; box-shadow: 0 0 0 3px rgba(244, 238, 220, .28), 0 2px 6px rgba(0, 0, 0, .6); }
.lmm-tag__txt { position: absolute; left: 14px; top: 0; translate: 0 -50%; display: block; padding: 7px 13px 7px 12px; border-radius: 999px; white-space: nowrap; background: rgba(241, 237, 227, .96); color: #1C2418; font-family: var(--f-sans); font-weight: 600; font-size: 13px; line-height: 1.25; letter-spacing: .01em; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .8), 0 1px 2px rgba(0, 0, 0, .35); transform-origin: 0 50%; transform: scale(.88); transition: transform .5s cubic-bezier(.2, .9, .25, 1.25); }
.lmm-tag.is-on .lmm-tag__txt { transform: none; }
.lmm-tag.is-l .lmm-tag__txt { left: auto; right: 14px; transform-origin: 100% 50%; }
.lmm-tag--name .lmm-tag__txt { background: rgba(16, 13, 10, .78); color: #F1EDE3; font-weight: 500; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(241, 237, 227, .22), 0 10px 22px -8px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lmm-tag--name .lmm-tag__dot { width: 9px; height: 9px; left: -4.5px; top: -4.5px; }
.lmm-tags .vi, .lmm-tags .en { white-space: nowrap; }

/* the card: paper beside the table, always readable */
.lmm-card { position: relative; z-index: 5; margin: 0; padding: clamp(24px, 2.3vw, 36px); width: min(100%, 460px); border-radius: 3px; background: #EFEBE1; color: #1C2418; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 34px 70px -26px rgba(0, 0, 0, .9), 0 10px 22px -10px rgba(0, 0, 0, .65); }
.lmm-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: url(../img/grain.png); opacity: .16; mix-blend-mode: multiply; }
.lmm.is-js .lmm-card { position: absolute; left: calc(var(--gutter) + var(--rail-w) * .6); top: 50%; translate: 0 -50%; width: clamp(310px, 30vw, 450px); }
.lmm-card__beats { position: relative; display: grid; }
.lmm.is-js .lmm-card__beats { transition: height .55s cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 760px), (max-aspect-ratio: 4/5) { .lmm.is-js .lmm-card__beats { transition-duration: .35s; } }
.lmm-card__beat { display: grid; align-content: start; align-self: start; }
.lmm-card__beat + .lmm-card__beat { margin-top: 28px; }
.lmm.is-js .lmm-card__beat { grid-area: 1 / 1; margin-top: 0; visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s; }
.lmm.is-js .lmm-card__beat.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity .55s ease .12s, transform .7s cubic-bezier(.2, .8, .2, 1) .12s, visibility 0s; }
.lmm-card__kicker { margin: 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--f-sans); font-weight: 600; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #5D6A43; }
.lmm-card__kicker b { font-weight: 700; color: #1E3A22; letter-spacing: .08em; }
.lmm-card__title { margin: 12px 0 0; font-family: var(--f-cap); font-weight: 500; font-size: clamp(25px, 2.25vw, 36px); line-height: 1.14; letter-spacing: .01em; color: #141B12; text-wrap: balance; }
.lmm[data-lang="vi"] .lmm-card__title { font-family: var(--f-sans); font-weight: 400; letter-spacing: -.012em; line-height: 1.2; }
.lmm-card__body { margin: 14px 0 0; font-family: var(--f-sans); font-weight: 400; font-size: clamp(15.5px, 1.15vw, 18px); line-height: 1.62; color: #27301F; text-wrap: pretty; }
/* the highlighter: a matcha marker stroke drawn under the key words as the card turns up */
.lmm-card mark { color: inherit; background-color: transparent; padding: 0 .12em; margin: 0 -.06em; background-image: linear-gradient(100deg, rgba(140, 170, 86, .5), rgba(152, 180, 98, .42) 60%, rgba(140, 170, 86, .5)); background-repeat: no-repeat; background-position: 0 88%; background-size: 0% 46%; border-radius: 2px; transition: background-size .9s cubic-bezier(.2, .8, .2, 1) .55s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lmm-card__beat.is-on mark, .lmm:not(.is-js) .lmm-card mark { background-size: 100% 46%; }
/* the opening quote, from episode 01 of the Diary */
.lmm-card__quote { margin: 14px 0 0; padding: 0 0 0 14px; border-left: 2px solid rgba(94, 138, 58, .55); }
.lmm-card__quote .lmm-card__body { margin: 0; }
.lmm-card__cite { margin: 8px 0 0; font-family: var(--f-sans); font-weight: 600; font-size: 12px; letter-spacing: .03em; color: #5D6A43; }
/* the day counter in the title of the first corner */
.lmm-card__num { display: inline-block; min-width: 2.15em; text-align: center; color: #2F5A22; font-variant-numeric: tabular-nums; }
/* what you can do in this corner: one line per object, a small sign for tap, drag or scroll */
.lmm-card__how { margin: 18px 0 0; padding: 12px 0 0; list-style: none; display: grid; gap: 8px; border-top: 1px solid rgba(28, 36, 24, .14); }
.lmm-card__how li { position: relative; display: block; margin: 0; padding-left: 28px; font-family: var(--f-sans); font-weight: 500; font-size: 13.5px; line-height: 1.4; color: #2A3A22; }
.lmm-card__how li::before { content: ""; position: absolute; left: 0; top: .5px; width: 18px; height: 18px; background: center / contain no-repeat; }
.lmm-card__how li[data-g="tap"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='3.2' fill='%233E6A2E'/%3E%3Ccircle cx='9' cy='9' r='7.2' fill='none' stroke='%233E6A2E' stroke-width='1.4' opacity='.5'/%3E%3C/svg%3E"); }
.lmm-card__how li[data-g="drag"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='5' cy='9' r='3.2' fill='%233E6A2E'/%3E%3Cpath d='M9.5 9h6.5m-2.6-2.6L16 9l-2.6 2.6' fill='none' stroke='%233E6A2E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lmm-card__how li[data-g="scroll"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='5.2' y='1.2' width='7.6' height='12.2' rx='3.8' fill='none' stroke='%233E6A2E' stroke-width='1.4'/%3E%3Cpath d='M9 4.2v2.6' stroke='%233E6A2E' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M6.4 15.4 9 17.2l2.6-1.8' fill='none' stroke='%233E6A2E' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lmm-card__beat.is-on .lmm-card__how li:first-child::before { animation: lmm-ping 1.9s ease-in-out infinite; }
.lmm-card__how b { font-weight: 700; color: #1E3A22; margin-right: .3em; }
.lmm-card__how b::after { content: ":"; }
@keyframes lmm-ping { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.lmm-card__picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lmm-chip { min-height: 38px; padding: 8px 16px; border: 1px solid rgba(28, 36, 24, .28); border-radius: 999px; background: rgba(255, 255, 255, .35); font-family: var(--f-sans); font-weight: 500; font-size: 14px; color: #1C2418; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.lmm-chip:hover { border-color: #1E3A22; }
.lmm-chip:focus-visible { outline: 2px solid #1E3A22; outline-offset: 2px; }
.lmm-chip[aria-pressed="true"] { background: #1E3A22; border-color: #1E3A22; color: #F1EDE3; }
.lmm-card__result { margin: 12px 0 0; font-family: var(--f-sans); font-weight: 500; font-size: 14.5px; line-height: 1.55; color: #2F5A22; }
.lmm-card__result:empty { display: none; }
.lmm-card__row { margin-top: 18px; }
.lmm .lmm-card .lmm-card__cta { margin: 0; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #1E3A22; color: #F1EDE3; font-family: var(--f-sans); font-weight: 600; font-size: 14px; letter-spacing: .02em; cursor: pointer; }
.lmm .lmm-card .lmm-card__cta:hover { background: #2A4C2D; }
/* the dots: where you are on the desk, and a tap on one goes straight to that corner (a finger sized
   target around each small dot) */
.lmm-card__dots { position: absolute; right: clamp(10px, 1.2vw, 18px); top: clamp(14px, 1.6vw, 26px); display: flex; gap: 0; margin: 0; padding: 0; list-style: none; z-index: 1; }
.lmm:not(.is-js) .lmm-card__dots { display: none; }
.lmm-card__dots li { display: block; margin: 0; padding: 0; }
.lmm .lmm-card__dots button { position: relative; display: grid; place-items: center; width: 22px; height: 28px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lmm .lmm-card__dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(28, 36, 24, .2); transition: background .4s, transform .4s; }
.lmm .lmm-card__dots button:hover::before { background: rgba(28, 36, 24, .45); transform: scale(1.2); }
.lmm .lmm-card__dots button:focus-visible { outline: 2px solid #3E6A2E; outline-offset: -4px; border-radius: 6px; }
.lmm-card__dots li.is-on button::before { background: #1E3A22; transform: scale(1.35); }

/* below 1100px the page's index is a bar at the bottom */
@media (max-width: 1099px) {
  .lmm.is-js .lmm-card { left: 24px; width: clamp(300px, 38vw, 400px); }
}
/* phones and tall screens: the card on top, the table under it */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .lmm.is-js .lmm-card { left: 10px; right: 10px; top: 10px; translate: none; width: auto; padding: 14px 16px 14px; }
  .lmm-card__kicker { font-size: 10.5px; gap: 8px; }
  .lmm-card__title { margin-top: 6px; font-size: clamp(19px, 5.3vw, 23px); }
  .lmm[data-lang="vi"] .lmm-card__title { font-size: clamp(18.5px, 5.1vw, 22px); }
  .lmm-card__body { margin-top: 6px; font-size: 13.5px; line-height: 1.5; }
  .lmm-card__quote { margin-top: 6px; padding-left: 11px; }
  .lmm-card__cite { margin-top: 3px; font-size: 11px; }
  /* the card short, so the desk under it gets the room: what to do with each object is said by the labels
     beside the objects themselves */
  .lmm-card__how { display: none; }
  .lmm-tag__txt { padding: 5px 10px 5px 9px; font-size: 11.5px; }
  .lmm-card__picks { margin-top: 10px; gap: 6px; }
  .lmm-chip { min-height: 34px; padding: 6px 13px; font-size: 13px; }
  .lmm-card__result { margin-top: 8px; font-size: 13.5px; }
  .lmm-card__row { margin-top: 10px; }
  .lmm-card__dots { right: 6px; top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .lmm.is-js .lmm-card__beat, .lmm.is-js .lmm-card__beat.is-on, .lmm-card mark, .lmm-tag, .lmm-tag__txt, .lmm-print-photo { transition: none; }
  .lmm-card__beat.is-on .lmm-card__how li:first-child::before { animation: none; }
}

/* the light layer: glows of the vials, flares and sparkles, added onto the photographs */
.lmm-table__light { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.lmm-card__num.is-done { animation: lmm-num 1s cubic-bezier(.2, .8, .2, 1); }
@keyframes lmm-num { 0% { transform: none; } 30% { transform: scale(1.22); color: #4F8A2E; text-shadow: 0 0 18px rgba(140, 190, 90, .55); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .lmm-card__num.is-done { animation: none; } }

/* soft things while they are touched: the warped drawing over the photograph; a grab handle while lit */
.lmm .lmm-sp-soft { position: absolute; display: block; max-width: none; pointer-events: none; opacity: 0; will-change: transform; }
.lmm-grab { position: absolute; pointer-events: none; }
/* pan-y: a swipe that starts on the dough still scrolls the page; story.js takes hold after a short rest */
.lmm-grab.is-live { pointer-events: auto; touch-action: pan-y; -webkit-touch-callout: none; cursor: grab; }
.lmm-grab.is-live:active { cursor: grabbing; }

/* phones: the same lamp and glows with lighter compositing (no full screen blend layers) */
@media (max-width: 760px) {
  .lmm-table__lamp.is-half { inset: auto; left: 0; top: 0; width: 50%; height: 50%; transform: scale(2); transform-origin: 0 0; }
  .lmm-table__light { mix-blend-mode: normal; }
  .lmm-tag--name .lmm-tag__txt { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16, 13, 10, .86); }
  .lmm-table__glow, .lmm-table__grain { display: none; }
  .lmm-st { will-change: auto; }
}

/* a label's short words on phones, its long ones elsewhere */
.lmm-tag__short { display: none; }
@media (max-width: 760px) { .lmm-tag__long { display: none; } .lmm-tag__short { display: inline; } }

/* Scent notes · the scent rising from the bottle. src/js/mist.js draws a column of fine mist that leaves the
   real bottle's nozzle; a spray (by itself as the sheet arrives, then at every tap on the bottle) sends it up
   the sheet in a few seconds, and each note condenses out of it where the mist reaches its height and drifts
   out to its place: the base close to the bottle first, the heart above, the top notes last and highest.
   data-still="1" (no WebGL or reduced motion) shows the finished picture without the pin. */

.lmm .lmm-notes {
  --n-paper: #EEEEE4;
  --n-ink: #17201A;
  --n-muted: rgba(23, 32, 26, .58);
  --n-line: rgba(23, 32, 26, .14);
  --n-word: clamp(20px, 2.15vw, 38px);
  position: relative;
  background: var(--n-paper);
  color: var(--n-ink);
}

/* ---------- the pinned sheet ---------- */
.lmm .lmm-notes .lmm-notes__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: calc(100vh - var(--lmm-head)); height: calc(100svh - var(--lmm-head));
  min-height: 600px;
  /* air above the bottle: cooler and paler toward the top, the paper warming toward the skin */
  background:
    radial-gradient(40% 30% at 60% 94%, rgba(232, 203, 147, .26), rgba(232, 203, 147, 0) 72%),
    linear-gradient(180deg, #F3F4EC 0%, #EFF0E6 40%, #ECEADF 72%, #E7E1D2 100%);
}
.lmm .lmm-notes .lmm-notes__mist { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; }
.lmm .lmm-notes .lmm-notes__bottle {
  position: absolute;
  z-index: 2;
  left: 60%;
  bottom: 3%;
  height: 40%;
  width: auto;
  translate: -50% 0;
  cursor: pointer;
  /* tapping again and again to spray must never read as a double tap zoom */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  filter: drop-shadow(0 18px 18px rgba(60, 48, 30, .16));
  transition: scale .25s ease;
}
.lmm .lmm-notes .lmm-notes__bottle:active { scale: .985; }
.lmm .lmm-notes .lmm-notes__bottle.is-pressed { animation: lmm-press .34s cubic-bezier(.3, .7, .3, 1); }
.lmm .lmm-notes .lmm-notes__bottle:focus-visible { outline: 2px solid #4F6B33; outline-offset: 6px; border-radius: 4px; }

.lmm .lmm-notes .lmm-notes__head {
  position: absolute;
  z-index: 3;
  left: calc(var(--gutter) + var(--rail-w) * .6);
  bottom: clamp(40px, 9vh, 96px);
  width: min(28vw, 380px);
}
.lmm .lmm-notes .lmm-notes__title { margin: 0; font-family: var(--f-cap); font-weight: 500; font-size: clamp(26px, 2.5vw, 40px); line-height: 1.12; letter-spacing: .02em; color: var(--n-ink); }
.lmm[data-lang="vi"] .lmm-notes .lmm-notes__title { font-family: var(--f-sans); font-weight: 300; letter-spacing: 0; line-height: 1.2; }
.lmm .lmm-notes .lmm-notes__lede { margin: 18px 0 0; max-width: 24em; font-family: var(--f-sans); font-weight: 300; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.65; color: var(--n-muted); }

/* after the first spray: a line beside the bottle says it sprays again, until it does (from a ring on the
   bottle's right edge, a hairline, then the words) */
.lmm .lmm-notes .lmm-notes__try {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  margin: 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  max-width: calc(var(--tw, 220px) + 44px);
  transform: translate3d(calc(var(--nx, 0px) + 4px), calc(var(--ny, 0px) - 50%), 0);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: .02em;
  color: #2E4A2A;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.lmm .lmm-notes .lmm-notes__try > span { max-width: var(--tw, 220px); }
.lmm .lmm-notes .lmm-notes__try::after { content: ""; flex: none; width: 26px; height: 1px; margin-left: 9px; background: linear-gradient(to left, rgba(46, 74, 42, .2), rgba(46, 74, 42, .7)); }
.lmm .lmm-notes .lmm-notes__try::before { content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(46, 74, 42, .75); animation: lmm-try 2s ease-in-out infinite; }
.lmm .lmm-notes .lmm-notes__stage.is-try .lmm-notes__try { opacity: 1; }

/* the tiers: a label at the left of each band, the words around the mist */
.lmm .lmm-notes .lmm-notes__tiers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lmm .lmm-notes .lmm-notes__tier { position: absolute; inset: 0; margin: 0; }
.lmm .lmm-notes .lmm-notes__label {
  position: absolute;
  left: 37%;
  top: var(--band);
  translate: -100% -50%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--n-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.lmm .lmm-notes .lmm-notes__label::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .5; }
.lmm .lmm-notes .lmm-notes__words { list-style: none; margin: 0; padding: 0; }
.lmm .lmm-notes .lmm-notes__word {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  font-family: var(--f-cap);
  font-weight: 500;
  font-size: calc(var(--n-word) * var(--s, 1));
  line-height: 1;
  letter-spacing: .2em;
  white-space: nowrap;
  color: var(--n-ink);
  opacity: 0;
  filter: blur(9px);
  /* out of the column of mist (--fx: from the word to the column, set by main.js), small and soft */
  transform: translate(var(--fx, 0px), 16px) scale(.55);
  transition: opacity 1.1s cubic-bezier(.22, .61, .36, 1), filter 1.3s cubic-bezier(.22, .61, .36, 1), transform 1.6s cubic-bezier(.16, 1, .3, 1), letter-spacing 2.2s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
}
/* a new spray: the words go back into the air at once */
.lmm .lmm-notes .lmm-notes__tiers.is-quick .lmm-notes__word, .lmm .lmm-notes .lmm-notes__tiers.is-quick .lmm-notes__label { transition-duration: .28s; transition-delay: 0s; }
.lmm[data-lang="vi"] .lmm-notes .lmm-notes__word { font-family: var(--f-sans); font-weight: 300; font-size: calc(var(--n-word) * var(--s, 1) * .86); }
/* condensed out of the mist: sharp, then it floats on the air that carried it */
.lmm .lmm-notes .lmm-notes__word.is-on { opacity: 1; filter: blur(0); transform: none; letter-spacing: .04em; }
.lmm .lmm-notes .lmm-notes__word.is-on > span { display: inline-block; animation: lmm-note-float calc(7s + var(--d, 0) * 1.3s) ease-in-out calc(var(--d, 0) * -1.7s) infinite alternate; }
.lmm .lmm-notes .lmm-notes__tier.is-on .lmm-notes__label { opacity: 1; }
@keyframes lmm-note-float { from { transform: translateY(-5px); } to { transform: translateY(5px); } }

/* still page: the finished picture, no pin */
.lmm .lmm-notes[data-still="1"] .lmm-notes__word { opacity: 1; filter: none; transform: none; letter-spacing: .04em; transition: none; }
.lmm .lmm-notes[data-still="1"] .lmm-notes__label { opacity: 1; transition: none; }
.lmm .lmm-notes[data-still="1"] .lmm-notes__word > span { animation: none; }
.lmm.no-gl-mist .lmm-notes .lmm-notes__stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 60%;
  bottom: 22%;
  width: 34%;
  height: 76%;
  translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 60%, rgba(150, 170, 110, .22), rgba(150, 170, 110, 0) 70%);
  filter: blur(10px);
}

/* ---------- the words that follow the sheet ---------- */
.lmm .lmm-notes .lmm-scent__more {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
  max-width: 76rem;
  padding: 10vh var(--gutter) 16vh calc(var(--gutter) + var(--rail-w) * .6);
}
.lmm .lmm-notes .lmm-scent__q { margin: 0; font-family: var(--f-cap); font-weight: 500; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.25; letter-spacing: .04em; color: #4F6B33; }
.lmm .lmm-notes .lmm-scent__copy { margin: 0; max-width: 40rem; font-family: var(--f-sans); font-weight: 300; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; color: var(--n-ink); }
.lmm .lmm-notes .lmm-feel { border-top: 1px solid var(--n-line); }
.lmm .lmm-notes .lmm-feel dt,
.lmm .lmm-notes .lmm-spec dt { font-family: var(--f-sans); font-weight: 500; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--n-muted); opacity: 1; }
.lmm .lmm-notes .lmm-feel dd { margin: 8px 0 0; font-family: var(--f-sans); font-weight: 400; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; }
.lmm .lmm-notes .lmm-scent__more .lmm-spec { border-color: var(--n-line); }
.lmm .lmm-notes .lmm-spec dd { margin: 6px 0 0; font-family: var(--f-sans); font-size: 15px; }

/* ---------- phones and narrow windows: title on top, the mist up the middle, words either side ---------- */
@media (max-width: 899px) {
  .lmm .lmm-notes { --n-word: clamp(15px, 4.9vw, 26px); }
  .lmm .lmm-notes .lmm-notes__stage { min-height: 560px; background:
    radial-gradient(60% 26% at 50% 94%, rgba(232, 203, 147, .26), rgba(232, 203, 147, 0) 72%),
    linear-gradient(180deg, #F3F4EC 0%, #EFF0E6 40%, #ECEADF 72%, #E7E1D2 100%); }
  .lmm .lmm-notes .lmm-notes__head { left: 20px; right: 20px; top: clamp(20px, 3.4vh, 32px); bottom: auto; width: auto; }
  .lmm .lmm-notes .lmm-notes__title { font-size: clamp(22px, 6vw, 28px); }
  .lmm .lmm-notes .lmm-notes__lede { display: none; }
  .lmm .lmm-notes .lmm-notes__bottle { left: 50%; bottom: calc(96px + 1%); height: 27%; }
  .lmm .lmm-notes .lmm-notes__try { font-size: 12px; gap: 7px; }
  .lmm .lmm-notes .lmm-notes__try::after { width: 16px; margin-left: 7px; }
  .lmm .lmm-notes .lmm-notes__word { left: var(--mx); top: var(--my); }
  .lmm .lmm-notes .lmm-notes__label { left: 20px; translate: 0 -50%; font-size: 12px; top: var(--mband); }
  .lmm .lmm-notes .lmm-notes__label::after { width: 22px; }
  .lmm.no-gl-mist .lmm-notes .lmm-notes__stage::after { left: 50%; width: 60%; }
  .lmm .lmm-notes .lmm-scent__more { padding: 7vh 20px 12vh; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .lmm .lmm-notes .lmm-notes__word, .lmm .lmm-notes .lmm-notes__label { transition: none !important; }
  .lmm .lmm-notes .lmm-notes__try::before { animation: none; }
  .lmm .lmm-notes .lmm-notes__word > span { animation: none !important; }
}

/* The full set, floating: src/js/3d/set.js draws the box opening in morning air over a dawn sky,
   the labels hang from the parts on hairlines (positions come from set.anchors() every frame). */

.lmm .lmm-set { position: relative; background: #E6EBDC; }
.lmm .lmm-set .lmm-set__pin {
  position: relative;
  display: block;
  height: calc(100vh - var(--lmm-head)); height: calc(100svh - var(--lmm-head));
  min-height: 600px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
/* the sky: warm light from the sun side, cooling to the green of the hills below */
.lmm .lmm-set .lmm-set__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 74% 16%, rgba(251, 241, 214, .95) 0%, rgba(251, 241, 214, 0) 70%),
    linear-gradient(180deg, #F3F0E3 0%, #ECEEE2 46%, #DCE4D0 78%, #CFDABF 100%);
}
/* the scene owns the right of the sheet, the words the left */
.lmm .lmm-set .lmm-set__view { position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; left: 30%; }
.lmm .lmm-set .lmm-set__gl { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lmm .lmm-set .lmm-set__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lmm .lmm-set .lmm-set__lines path { fill: none; stroke: rgba(23, 32, 26, .5); stroke-width: 1; }
.lmm .lmm-set .lmm-set__fallback { display: none; }
.lmm.no-gl-lmm-set .lmm-set .lmm-set__fallback { display: block; position: absolute; z-index: 1; right: 6vw; top: 50%; height: 84%; width: auto; transform: translateY(-50%); mix-blend-mode: multiply; }

.lmm .lmm-set .lmm-set__text {
  position: absolute;
  z-index: 3;
  left: calc(var(--gutter) + var(--rail-w) * .6);
  top: clamp(36px, 9vh, 96px);
  width: min(30vw, 400px);
}
.lmm .lmm-set .lmm-set__kicker { margin: 0 0 14px; font-family: var(--f-sans); font-weight: 500; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(23, 32, 26, .6); }
.lmm .lmm-set .lmm-set__title { margin: 0; font-family: var(--f-cap); font-weight: 500; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.12; letter-spacing: .02em; color: #17201A; }
.lmm[data-lang="vi"] .lmm-set .lmm-set__title { font-family: var(--f-sans); font-weight: 300; letter-spacing: 0; line-height: 1.2; }
.lmm .lmm-set .lmm-set__body { margin: 18px 0 0; max-width: 34em; font-family: var(--f-sans); font-weight: 300; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; color: #17201A; }
.lmm .lmm-set .lmm-set__steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 11px; }
.lmm .lmm-set .lmm-set__steps li {
  position: relative;
  padding-left: 30px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(23, 32, 26, .5);
  transition: color .8s ease;
}
.lmm .lmm-set .lmm-set__steps li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: currentColor; transform: scaleX(.45); transform-origin: left center; transition: transform .8s cubic-bezier(.22, .61, .36, 1); }
.lmm .lmm-set .lmm-set__steps li.is-on { color: #17201A; }
.lmm .lmm-set .lmm-set__steps li.is-on::before { transform: scaleX(1); }
.lmm .lmm-set .lmm-set__note { margin: 26px 0 0; }

/* labels: a column at the right edge of the scene, text ending on the line */
.lmm .lmm-set .lmm-set__tags { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.lmm .lmm-set .lmm-set__tags li {
  position: absolute;
  left: 0;
  top: 0;
  translate: -100% -50%;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: .04em;
  white-space: nowrap;
  color: #17201A;
  text-shadow: 0 0 3px rgba(238, 241, 228, .95), 0 0 9px rgba(238, 241, 228, .8);
  opacity: 0;
  transition: opacity .9s ease, color .4s;
  will-change: transform;
}
.lmm .lmm-set .lmm-set__tags li.is-on { opacity: 1; }
/* the piece just tapped: its label underlined in gold, its hairline too */
.lmm .lmm-set .lmm-set__tags li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: #B08A3E; transform: scaleX(0); transform-origin: right center; transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
.lmm .lmm-set .lmm-set__tags li.is-hit { color: #3B5524; }
.lmm .lmm-set .lmm-set__tags li.is-hit::after { transform: scaleX(1); }
.lmm .lmm-set .lmm-set__lines path.is-hot { stroke: #B08A3E; stroke-width: 1.6; }

/* play: drag sideways to turn the box, tap a piece */
.lmm .lmm-set .lmm-set__view.is-play { cursor: grab; touch-action: pan-y pinch-zoom; -webkit-tap-highlight-color: transparent; }
.lmm .lmm-set .lmm-set__view.is-grabbing { cursor: grabbing; }
.lmm .lmm-set .lmm-set__hint { position: absolute; z-index: 3; left: 50%; bottom: clamp(18px, 5vh, 44px); translate: -50% 8px; margin: 0; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: var(--f-sans); font-weight: 400; font-size: 13px; letter-spacing: .02em; color: #17201A; white-space: nowrap; opacity: 0; transition: opacity .6s, translate .6s; pointer-events: none; }
.lmm .lmm-set .lmm-set__hint.is-on { opacity: 1; translate: -50% 0; }

@media (max-width: 899px) {
  .lmm .lmm-set .lmm-set__text { left: 20px; right: 20px; top: clamp(20px, 4vh, 36px); width: auto; }
  .lmm .lmm-set .lmm-set__title { font-size: clamp(22px, 6vw, 28px); }
  .lmm .lmm-set .lmm-set__body { display: none; }
  .lmm .lmm-set .lmm-set__steps { margin-top: 14px; grid-auto-flow: column; justify-content: start; gap: 16px; }
  .lmm .lmm-set .lmm-set__steps li { padding-left: 0; font-size: 10px; letter-spacing: .14em; }
  .lmm .lmm-set .lmm-set__steps li::before { display: none; }
  /* (19.10: in Vietnamese the dot of the step on show sat on the end of the step before it, and a stray rule stood
     at the left of the row) the dot sits in the gap before its step */
  .lmm .lmm-set .lmm-set__steps { border-left: 0; }
  .lmm .lmm-set .lmm-set__steps li::after { left: -11px; top: .3em; width: 6px; height: 6px; }
  .lmm .lmm-set .lmm-set__note { display: none; }
  .lmm .lmm-set .lmm-set__view { left: 0; top: 24%; }
  .lmm .lmm-set .lmm-set__tags li { font-size: 11px; }
  .lmm .lmm-set .lmm-set__hint { font-size: 12.5px; padding: 8px 14px; }
}
/* wide screens: the price pill can sit at the bottom right; the hint stays above its line (19.10: on a 1280 laptop
   the Vietnamese hint ran under it) */
@media (min-width: 1100px) {
  .lmm .lmm-set .lmm-set__hint { bottom: calc(clamp(18px, 5vh, 44px) + 58px); }
}
/* below 1100px the page's index is a bar at the bottom: the hint sits above it */
@media (max-width: 1099px) {
  .lmm .lmm-set .lmm-set__hint { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .lmm .lmm-set .lmm-set__tags li, .lmm .lmm-set .lmm-set__hint { transition: none; }
}

/* The fold out guide, open on the table. Eight panels hang off each other's edge (nested, each one hinged
   on its parent). It rests open and still; main.js moves it only when asked (fold it into its band, open
   it, turn it over to the hills on its back), with short animations the compositor plays. A tap on a page
   opens the pages large (the sheet at the end of this file). */

.lmm .lmm-guide {
  --gw: clamp(110px, 10.6vw, 172px);
  --gh: calc(var(--gw) * 100 / 60);
  --gb: 0px;
  position: relative;
  background:
    radial-gradient(60% 46% at 50% 56%, rgba(251, 241, 214, .55), rgba(251, 241, 214, 0) 72%),
    linear-gradient(180deg, #CFDABF 0%, #E3E9D7 30%, #EEEEE4 70%);
}
.lmm .lmm-guide__pin { position: relative; overflow: hidden; padding-bottom: clamp(30px, 6vh, 64px); }
.lmm .lmm-guide__head { position: relative; z-index: 2; padding: clamp(30px, 7vh, 76px) var(--gutter) 0 calc(var(--gutter) + var(--rail-w) * .6); max-width: 48rem; }
.lmm .lmm-guide__title { margin: 0; font-family: var(--f-cap); font-weight: 500; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.12; letter-spacing: .02em; color: #17201A; }
.lmm[data-lang="vi"] .lmm-guide__title { font-family: var(--f-sans); font-weight: 300; letter-spacing: 0; line-height: 1.2; }
.lmm .lmm-guide__lede { margin: 14px 0 0; max-width: 34em; font-family: var(--f-sans); font-weight: 300; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: rgba(23, 32, 26, .66); }

.lmm .lmm-guide__stage { position: relative; overflow: hidden; height: clamp(330px, 46vh, 500px); perspective: 1800px; perspective-origin: 50% 28%; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
/* soft shadow on the table under the leaflet (main.js places it under the leaflet's foot) */
.lmm .lmm-guide__floor { position: absolute; left: 0; top: 0; width: 100px; height: 30px; transform-origin: 0 0; background: radial-gradient(50% 50% at 50% 50%, rgba(40, 56, 30, .24), rgba(40, 56, 30, 0) 70%); pointer-events: none; will-change: transform; }
.lmm .lmm-guide__strip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--gw);
  height: calc(var(--gh) + var(--gb));
  margin: calc((var(--gh) + var(--gb)) * -.5) 0 0;
  transform-style: preserve-3d;
  transform-origin: 0 0;
  will-change: transform;
}
.lmm .lmm-gp {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--gw);
  height: calc(var(--gh) + var(--gb));
  transform-style: preserve-3d;
  transform-origin: 0 50%;
}
.lmm .lmm-gp .lmm-gp { left: 100%; }
.lmm .lmm-gp__face,
.lmm .lmm-gp__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lmm .lmm-gp__face { background: #F2EFE6; overflow: hidden; }
.lmm .lmm-gp__face img { display: block; width: 100%; height: 100% !important; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
/* side B: the hill band of the box runs across the backs, printed head to head, so panel k shows slice 7 - k */
.lmm .lmm-gp__back {
  transform: rotateY(180deg);
  background-color: #4E8A2E;
  background-image: url(../img/v3/guide/b.webp);
  background-size: 800% 100%;
  background-position: calc(var(--bi, 0) * 100% / 7) 0;
}
/* the fold catches the light: each face darkens as it turns away (its opacity is set by main.js) */
.lmm .lmm-gp__sh { position: absolute; inset: 0; display: block; opacity: 0; pointer-events: none; }
.lmm .lmm-gp__face > .lmm-gp__sh { background: linear-gradient(90deg, rgba(20, 30, 16, .378), rgba(20, 30, 16, .189)); }
.lmm .lmm-gp__back > .lmm-gp__sh { background: rgba(20, 30, 16, .294); }
/* the paper band that keeps the booklet shut, 20 mm high, 4 mm above the bottom edge */
.lmm .lmm-guide__band {
  position: absolute;
  z-index: 3;
  left: -2px;
  width: calc(var(--gw) + 4px);
  top: calc(var(--gh) * .76);
  height: calc(var(--gh) * .2);
  transform: translateZ(8px);
  background: #1B3615;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  pointer-events: none;
}
.lmm .lmm-guide__band svg { display: block; width: 100%; height: 100%; }
.lmm .lmm-guide[data-band="off"] .lmm-guide__band { visibility: hidden; }
.lmm .lmm-gp__band { display: none; }
/* what a tap does here: open the booklet when it is shut, open a page large when it is open */
.lmm .lmm-guide[data-state="shut"] .lmm-guide__stage { cursor: pointer; }
.lmm .lmm-guide.is-3d:not(.is-moving)[data-state="open"] .lmm-gp__face,
.lmm .lmm-guide.is-3d:not(.is-moving)[data-state="back"] .lmm-gp__back { cursor: zoom-in; }

/* the buttons under the leaflet, and a line on what a tap does */
.lmm .lmm-guide__ui { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 6px var(--gutter) 0; }
.lmm .lmm-guide__view,
.lmm .lmm-guide__act { pointer-events: auto; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; padding: 0 20px 0 16px; border: 0; border-radius: 999px; font-family: var(--f-sans); font-weight: 600; font-size: 14px; letter-spacing: .01em; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background-color .25s, color .25s, opacity .25s, transform .4s cubic-bezier(.2, .8, .2, 1); -webkit-tap-highlight-color: transparent; }
.lmm .lmm-guide__view { background: #1E3A22; color: #F1EDE3; box-shadow: 0 12px 26px -14px rgba(20, 30, 16, .75); }
.lmm .lmm-guide__act { background: rgba(255, 255, 255, .55); color: #1E3A22; box-shadow: inset 0 0 0 1px rgba(30, 58, 34, .22); }
.lmm .lmm-guide__view::before,
.lmm .lmm-guide__act::before { content: ""; flex: none; width: 18px; height: 18px; background: center / contain no-repeat; }
.lmm .lmm-guide__view::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2 3.5 6.6 2v12.5L2 16zM6.6 2l4.8 1.5V16l-4.8-1.5zM11.4 3.5 16 2v12.5L11.4 16z' fill='none' stroke='%23F1EDE3' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* turn it over: a sheet with a curved arrow round it */
.lmm .lmm-guide__act[data-lmm-guide-act="turn"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='6.2' y='3' width='5.6' height='9' rx='.6' fill='none' stroke='%231E3A22' stroke-width='1.3'/%3E%3Cpath d='M2.4 9.6c0 3 2.9 5.2 6.6 5.2s6.6-2.2 6.6-5.2' fill='none' stroke='%231E3A22' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='m13.4 11.6 2.2-2 1.4 2.6' fill='none' stroke='%231E3A22' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* fold it up, or open it: the zigzag of the folds */
.lmm .lmm-guide__act[data-lmm-guide-act="fold"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M1.6 5.2 5.4 3v12l-3.8-2.2zM5.4 3l3.6 2.2v12L5.4 15zM9 5.2 12.6 3v12L9 17.2zM12.6 3l3.8 2.2v7.6L12.6 15z' fill='none' stroke='%231E3A22' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lmm .lmm-guide__view:hover { background-color: #2A4C2D; }
.lmm .lmm-guide__act:hover:not(:disabled) { background-color: rgba(255, 255, 255, .85); }
.lmm .lmm-guide__view:active, .lmm .lmm-guide__act:active:not(:disabled) { transform: scale(.97); }
.lmm .lmm-guide__view:focus-visible, .lmm .lmm-guide__act:focus-visible { outline: 2px solid #1E3A22; outline-offset: 3px; }
.lmm .lmm-guide__act:disabled { opacity: .4; cursor: default; }
.lmm .lmm-guide__view[hidden], .lmm .lmm-guide__act[hidden] { display: none; }
.lmm .lmm-guide__hint { flex: 1 0 100%; margin: 4px 0 0; font-family: var(--f-sans); font-weight: 400; font-size: 13.5px; line-height: 1.5; text-align: center; text-wrap: balance; color: rgba(23, 32, 26, .62); }
.lmm .lmm-guide__hint:empty { display: none; }

/* still page or no 3D: the panels in a plain row that wraps */
.lmm .lmm-guide[data-still="1"] .lmm-guide__stage { height: auto; perspective: none; padding: 28px var(--gutter) 24px calc(var(--gutter) + var(--rail-w) * .6); }
.lmm .lmm-guide[data-still="1"] .lmm-guide__strip { position: relative; left: auto; top: auto; margin: 0; transform: none; width: auto; height: auto; display: flex; flex-wrap: wrap; gap: 14px; }
.lmm .lmm-guide[data-still="1"] .lmm-gp { position: relative; left: auto; transform: none; display: contents; }
.lmm .lmm-guide[data-still="1"] .lmm-gp__face { position: relative; width: var(--gw); height: calc(var(--gh) + var(--gb)); flex: none; cursor: zoom-in; }
.lmm .lmm-guide[data-still="1"] .lmm-gp__back { display: none; }
.lmm .lmm-guide[data-still="1"] .lmm-guide__ui { justify-content: flex-start; padding-left: calc(var(--gutter) + var(--rail-w) * .6); }
.lmm .lmm-guide[data-still="1"] .lmm-guide__hint { text-align: left; }

/* phones and small tablets (main.js sets is-compact): the open leaflet is seen from its cover end */
@media (max-width: 899px) {
  .lmm .lmm-guide { --gw: min(46vw, 200px); }
  .lmm .lmm-guide__head { padding: 30px 20px 0; }
  .lmm .lmm-guide__title { font-size: clamp(22px, 6vw, 28px); }
  .lmm .lmm-guide__lede { font-size: 14px; margin-top: 10px; }
  .lmm .lmm-guide__stage { height: clamp(250px, 44vh, 380px); height: clamp(250px, 44svh, 380px); perspective: 1700px; perspective-origin: 50% 42%; }
  .lmm .lmm-guide__floor { display: none; }
  .lmm .lmm-guide__ui { gap: 6px; padding: 2px 16px 0; }
  .lmm .lmm-guide__view, .lmm .lmm-guide__act { min-height: 42px; padding: 0 13px 0 11px; gap: 6px; font-size: 13px; }
  .lmm .lmm-guide__act { padding: 0 12px; }
  .lmm .lmm-guide__act::before { display: none; }
  .lmm .lmm-guide__hint { font-size: 13px; }
  .lmm .lmm-guide[data-still="1"] .lmm-guide__stage { padding: 20px; }
}
/* the narrowest phones: tighter buttons, so the three still sit in one row */
@media (max-width: 374px) {
  .lmm .lmm-guide__ui { gap: 6px; padding: 2px 10px 0; }
  .lmm .lmm-guide__view, .lmm .lmm-guide__act { padding: 0 10px; font-size: 12px; }
  .lmm .lmm-guide__view::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lmm .lmm-guide__view, .lmm .lmm-guide__act { transition: none; } }

/* ---------- the guide, page by page: a full screen sheet over the page (main.js guideViewer) ---------- */
.lmm .lmm-gv { position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 0; z-index: 2150; display: grid; grid-template-rows: auto minmax(0, 1fr); background: radial-gradient(70% 50% at 50% 46%, rgba(251, 241, 214, .65), rgba(251, 241, 214, 0) 75%), linear-gradient(180deg, #D3DDC4 0%, #E7EBDC 55%, #EEEEE4 100%); color: #17201A; opacity: 0; transition: opacity .3s ease; overscroll-behavior: contain; touch-action: pan-x pinch-zoom; }
.lmm .lmm-gv.is-open { opacity: 1; }
.lmm .lmm-gv[hidden] { display: none; }
.lmm .lmm-gv__bar { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 8px 20px; }
.lmm .lmm-gv__title { flex: 1; min-width: 0; margin: 0; font-family: var(--f-sans); font-weight: 600; font-size: 15px; letter-spacing: .01em; color: #1E3A22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmm .lmm-gv__sides { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(30, 58, 34, .08); box-shadow: inset 0 0 0 1px rgba(30, 58, 34, .1); }
.lmm .lmm-gv__side { min-height: 36px; margin: 0; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #1E3A22; font-family: var(--f-sans); font-weight: 600; font-size: 13px; line-height: 1; cursor: pointer; transition: background-color .25s, color .25s; }
.lmm .lmm-gv__side[aria-pressed="true"] { background: #1E3A22; color: #F1EDE3; }
.lmm .lmm-gv__close { flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(30, 58, 34, .1); color: #1E3A22; font-size: 26px; line-height: 1; cursor: pointer; }
.lmm .lmm-gv button:focus-visible, .lmm .lmm-gv__pano:focus-visible { outline: 2px solid #1E3A22; outline-offset: 2px; }
.lmm .lmm-gv__front, .lmm .lmm-gv__back { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.lmm .lmm-gv__front[hidden], .lmm .lmm-gv__back[hidden] { display: none; }
/* the pages: a row that snaps one page at a time, each page as large as the screen allows */
.lmm .lmm-gv__track { display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lmm .lmm-gv__track::-webkit-scrollbar { display: none; }
.lmm .lmm-gv__page { flex: 0 0 100%; min-width: 0; min-height: 0; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 14px; padding: 6px 20px 0; scroll-snap-align: center; scroll-snap-stop: always; }
.lmm .lmm-gv__sheet { width: 100%; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lmm .lmm-gv__sheet img { display: block; width: auto; height: auto !important; max-width: 100%; max-height: 100%; border-radius: 2px; background: #F2EFE6; box-shadow: 0 1px 1px rgba(20, 30, 16, .2), 0 28px 50px -24px rgba(20, 30, 16, .6); }
.lmm .lmm-gv__cap { max-width: 34rem; margin: 0; font-family: var(--f-sans); font-weight: 500; font-size: 14.5px; line-height: 1.5; text-align: center; text-wrap: balance; color: #1E3A22; }
.lmm .lmm-gv__nav { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
.lmm .lmm-gv__arrow { width: 44px; height: 44px; margin: 0; padding: 0 0 3px; border: 0; border-radius: 50%; background: #1E3A22; color: #F1EDE3; font-size: 26px; line-height: 1; cursor: pointer; transition: opacity .25s; }
.lmm .lmm-gv__arrow:disabled { opacity: .28; cursor: default; }
.lmm .lmm-gv__dots { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lmm .lmm-gv__dots li { width: 7px; height: 7px; margin: 0; border-radius: 50%; background: rgba(30, 58, 34, .22); transition: background-color .3s, transform .3s; }
.lmm .lmm-gv__dots li.is-on { background: #1E3A22; transform: scale(1.3); }
/* the back: the hill band in one piece, with the light and shade of its seven folds */
.lmm .lmm-gv__pano { min-height: 0; display: flex; align-items: center; overflow-x: auto; overflow-y: hidden; padding: 0 20px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(30, 58, 34, .35) transparent; -webkit-overflow-scrolling: touch; }
.lmm .lmm-gv__hills { position: relative; flex: none; margin: 0 auto; box-shadow: 0 1px 1px rgba(20, 30, 16, .2), 0 28px 50px -24px rgba(20, 30, 16, .6); }
.lmm .lmm-gv__hills img { display: block; height: clamp(200px, 46vh, 420px) !important; height: clamp(200px, 46svh, 420px) !important; width: auto; max-width: none; }
.lmm .lmm-gv__hills::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(20, 30, 16, .16), rgba(255, 250, 232, .1) 50%, rgba(20, 30, 16, .16)) 0 0 / 25% 100% repeat-x; }
.lmm .lmm-gv__note { max-width: 36rem; margin: 0 auto; padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px)); font-family: var(--f-sans); font-weight: 500; font-size: 14px; line-height: 1.5; text-align: center; text-wrap: balance; color: #1E3A22; }
@media (min-width: 900px) {
  .lmm .lmm-gv__bar { padding: 18px 22px 10px 32px; }
  .lmm .lmm-gv__title { font-size: 16px; }
  .lmm .lmm-gv__page { padding-top: 10px; }
  .lmm .lmm-gv__hills img { width: min(1900px, calc(100vw - 80px)); height: auto !important; }
  .lmm .lmm-gv__swipe { display: none; }
}
/* the narrowest phones: the two sides and the close button take the bar, the title stays for screen readers */
@media (max-width: 374px) {
  .lmm .lmm-gv__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lmm .lmm-gv__bar { justify-content: space-between; }
}
@media (max-width: 420px) {
  .lmm .lmm-gv__bar { padding-left: 16px; gap: 8px; }
  .lmm .lmm-gv__side { padding: 0 11px; font-size: 12.5px; }
  .lmm .lmm-gv__cap { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .lmm .lmm-gv { transition: none; } }

/* Early Access: the real black box (Cycles renders, src/js/seq.js) turns over, opens and lets the
   bottle rise when it is tapped, in a low pool of morning light on the dark green so the black reads as
   black. Another tap closes it. */

.lmm .lmm-access__stage { isolation: isolate; }
.lmm .lmm-access__stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% 0 0;
  background:
    radial-gradient(38% 26% at 50% 66%, rgba(232, 203, 147, .17) 0%, rgba(232, 203, 147, .05) 55%, rgba(232, 203, 147, 0) 100%),
    radial-gradient(48% 36% at 50% 60%, rgba(182, 198, 138, .11) 0%, rgba(182, 198, 138, 0) 100%);   /* fades out inside the stage: no edge */
  pointer-events: none;
}
/* the first frame stands in as a plain image until the sequence has its first frame (and for no JS),
   placed exactly where the canvas draws it so the hand over is invisible */
.lmm .lmm-access__fallback {
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  object-position: 50% 55%;
  border-radius: 0;
  opacity: 1;
  transition: opacity 1.2s ease;
}
.lmm.is-gl-box .lmm-access__fallback { display: block; opacity: 0; }
.lmm .lmm-access__gl { transition: opacity 1.2s ease; }

/* the callout to the printed number: a ring on it and a hairline out to the words, to the left where
   the stage has room for them, otherwise down under the box (main.js moves it and picks the side) */
.lmm .lmm-access__mark {
  --len: 120px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.lmm .lmm-access__mark::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(237, 240, 218, .9);
}
.lmm .lmm-access__mark::after {
  content: "";
  position: absolute;
  left: -.5px;
  top: 8px;
  width: 1px;
  height: var(--len);
  background: linear-gradient(to bottom, rgba(237, 240, 218, .85), rgba(237, 240, 218, .3));
}
.lmm .lmm-access__marklabel {
  position: absolute;
  left: 0;
  top: calc(var(--len) + 14px);
  translate: -50% 0;
  white-space: nowrap;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: .04em;
  color: var(--cream);
}
.lmm .lmm-access__mark.is-left::after {
  left: auto;
  right: 8px;
  top: -.5px;
  width: var(--len);
  height: 1px;
  background: linear-gradient(to left, rgba(237, 240, 218, .85), rgba(237, 240, 218, .3));
}
.lmm .lmm-access__mark.is-left .lmm-access__marklabel { left: auto; right: calc(var(--len) + 20px); top: 0; translate: 0 -50%; }
@media (max-width: 899px) {
  .lmm .lmm-access__marklabel { font-size: 11.5px; }
}

/* pre-order first, the list as the quiet second choice */
.lmm .lmm-access__state .lmm-btn--big { margin-top: 2px; }
.lmm .lmm-access__state .lmm-access__or { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--cream-2); }

/* ---------- buying: how many bottles, one tap to checkout ---------- */
.lmm .lmm-buy { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; width: 100%; max-width: 30rem; }
.lmm .lmm-qty { display: inline-flex; align-items: center; height: 56px; padding: 0 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(237, 240, 218, .32); color: var(--cream); }
.lmm .lmm-qty button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background .2s; }
.lmm .lmm-qty button:hover:not(:disabled) { background: rgba(237, 240, 218, .1); }
.lmm .lmm-qty button:disabled { opacity: .3; cursor: default; }
.lmm .lmm-qty output { min-width: 26px; text-align: center; font-family: var(--f-cap); font-weight: 500; font-size: 20px; font-variant-numeric: tabular-nums; }
.lmm .lmm-buy__go { flex: 1 1 14rem; justify-content: space-between; gap: 18px; }
.lmm .lmm-buy__go > span:first-child { font-weight: 600; }
.lmm .lmm-buy__sum { font-family: var(--f-cap); font-weight: 600; font-size: 17px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.lmm .lmm-buy__sum .lmm-cur { font-family: var(--f-sans); font-size: .62em; vertical-align: .55em; margin-left: .06em; }
.lmm .lmm-access__state .lmm-buy__note { max-width: 30rem; font-size: 14px; line-height: 1.55; color: var(--cream-2); }
.lmm .lmm-access__state .lmm-buy__follow a { color: var(--cream); text-underline-offset: 3px; }
/* the pill that follows you on wide screens */
.lmm .lmm-float { position: fixed; z-index: 1200; right: 28px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 8px 0 22px; border-radius: 999px; background: var(--forest); color: var(--cream); font-family: var(--f-sans); font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: 0 16px 40px -14px rgba(10, 20, 8, .7), inset 0 0 0 1px rgba(237, 240, 218, .14); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .45s ease, transform .45s cubic-bezier(.16, 1, .3, 1); }
.lmm .lmm-float b { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--cream); color: var(--forest); font-family: var(--f-cap); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.lmm .lmm-float b .lmm-cur { font-family: var(--f-sans); font-size: .62em; vertical-align: .55em; margin-left: .06em; }
.lmm .lmm-float.is-on:not(.is-away-access):not(.is-away-finale) { opacity: 1; transform: none; pointer-events: auto; }
/* nothing to buy yet: no pill (the display above would otherwise beat the hidden attribute and leave an empty green pill) */
.lmm .lmm-float[hidden] { display: none; }
.lmm .lmm-float:hover b { background: #fff; }
.lmm .lmm-float:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 1099px) { .lmm .lmm-float { display: none; } }
@media (max-width: 899px) {
  .lmm .lmm-buy { max-width: none; gap: 10px; }
  .lmm .lmm-qty { height: 52px; }
  .lmm .lmm-buy__go { flex: 1 1 13rem; min-height: 52px; padding: 0 18px; gap: 12px; }
  .lmm .lmm-buy__go > span { white-space: nowrap; }
}

/* the box moves as one piece with its number callout: a breath of float, a lean towards the pointer
   (main.js accessSection; the framing is the sequence's camera, src/js/seq.js) */
.lmm .lmm-access__stage { perspective: 1500px; }
.lmm .lmm-access__rig { position: absolute; inset: 0; transform-origin: 50% 62%; will-change: transform; }
/* a beam of morning light falling across the box from the upper left, dust turning in it */
.lmm .lmm-access__beam { position: absolute; z-index: 0; inset: -12% -24% 0 -12%; pointer-events: none; background: linear-gradient(116deg, rgba(255, 236, 196, 0) 28%, rgba(255, 236, 196, .06) 40%, rgba(255, 236, 196, .12) 47%, rgba(255, 236, 196, .05) 55%, rgba(255, 236, 196, 0) 66%); mix-blend-mode: screen; opacity: var(--beam, .75); }
/* the light that spills out when the lid lifts */
/* the light out of the box: moved by a transform only (no layout, no blending pass while it plays); it is laid
   at 400 px wide and scaled to the box (main.js boxLife) */
.lmm .lmm-access__glow { position: absolute; z-index: 2; left: 0; top: 0; width: 400px; aspect-ratio: 1.5; transform-origin: 0 0; border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform, opacity; background: radial-gradient(closest-side, rgba(255, 232, 188, .42), rgba(236, 208, 152, .13) 50%, rgba(236, 208, 152, 0) 100%); }
.lmm .lmm-access__motes { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lmm .lmm-access__gl { z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .lmm .lmm-access__beam { opacity: .5; }
}
/* open and shut by a tap: the whole stage takes it, and a line right under the box says what a tap does
   (main.js moves it under the shut box, and under the open one once it is open) */
.lmm .lmm-access__stage { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lmm .lmm-access__tap { position: absolute; z-index: 4; left: 50%; bottom: clamp(18px, 5vh, 44px); translate: -50% 0; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: rgba(8, 18, 7, .62); color: var(--cream); font-family: var(--f-sans); font-weight: 600; font-size: 13.5px; line-height: 1.2; white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(237, 240, 218, .28), 0 12px 28px -14px rgba(0, 0, 0, .8); transition: background-color .25s, transform .4s cubic-bezier(.2, .8, .2, 1); -webkit-tap-highlight-color: transparent; }
.lmm .lmm-access__tap[hidden] { display: none; }
.lmm .lmm-access__tap.is-placed { top: 0; bottom: auto; translate: -50% var(--ty, 0px); }
.lmm .lmm-access__tap::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, var(--gold) 0 3.5px, transparent 4px); box-shadow: inset 0 0 0 1.3px rgba(216, 201, 136, .7); }
.lmm .lmm-access[data-box="shut"] .lmm-access__tap::before { animation: lmm-tap 2.2s ease-in-out infinite; }
@keyframes lmm-tap { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
.lmm .lmm-access__tap:hover { background-color: rgba(8, 18, 7, .82); }
.lmm .lmm-access__tap:active { transform: scale(.97); }
.lmm .lmm-access__tap:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* small laptops and tablets: the bar fixed at the bottom of the screen would cover it */
@media (min-width: 900px) and (max-width: 1099px) {
  .lmm .lmm-access__tap { bottom: 92px; }
}
@media (max-width: 899px) {
  .lmm .lmm-access__tap { bottom: 12px; font-size: 13px; min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .lmm .lmm-access[data-box] .lmm-access__tap::before { animation: none; } }

/* v3 type: the brand's two faces only. Cinzel for titles, names and numbers, Montserrat for reading.
   (Vietnamese inside display titles switches to Montserrat light, see lmm.css.) */
.lmm :is(.lmm-films__title, .lmm-how__title, .lmm-play__title, .lmm-access__title, .lmm-faq__title,
  .lmm-compare__title, .lmm-chapter__title, .lmm-inbox__title) {
  font-family: var(--f-cap);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.1;
  letter-spacing: .02em;
}
.lmm .lmm-access__title { font-size: clamp(32px, 3.6vw, 56px); }
.lmm :is(.lmm-ep__title, .lmm-reader__title) { font-family: var(--f-cap); font-weight: 500; letter-spacing: .02em; line-height: 1.12; }
.lmm .lmm-ep__title { font-size: 19px; }
.lmm .lmm-reader__title { font-size: clamp(24px, 2.4vw, 34px); }
.lmm .lmm-reader__body { font-family: var(--f-sans); font-weight: 300; font-size: 17px; line-height: 1.75; }
.lmm .lmm-hstep__n { font-family: var(--f-cap); font-weight: 500; font-size: 28px; }
.lmm .lmm-hstep__txt { font-family: var(--f-sans); font-weight: 300; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.45; }
.lmm :is(.lmm-price__now, .lmm-compare__table td b) { font-family: var(--f-cap); font-weight: 500; letter-spacing: .02em; }
.lmm .lmm-compare__table thead th { font-family: var(--f-cap); font-weight: 500; font-size: 18px; letter-spacing: .04em; }
.lmm .lmm-pick__name { font-family: var(--f-cap); font-weight: 500; font-size: 17px; letter-spacing: .06em; }
.lmm .lmm-pick__result { font-family: var(--f-sans); font-style: normal; font-weight: 300; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }
.lmm .lmm-faq summary { font-family: var(--f-sans); font-weight: 400; font-size: 16.5px; }
.lmm[data-lang="vi"] :is(.lmm-ep__title, .lmm-reader__title, .lmm-pick__name, .lmm-compare__table thead th) .vi { font-family: var(--f-sans); font-weight: 400; letter-spacing: 0; }
.lmm .lmm-rail { transition: opacity .5s ease; }
.lmm .lmm-rail.is-away { opacity: 0; pointer-events: none; }

/* the dong sign: Montserrat (Cinzel has no đ or ₫), small and raised beside the Cinzel figures */
.lmm .lmm-cur { font-family: var(--f-sans); font-weight: 400; font-style: normal; letter-spacing: 0; }
.lmm :is(.lmm-price__now, .lmm-compare__table td b) .lmm-cur { font-size: .5em; vertical-align: .78em; margin-left: .08em; }
