/* ── AR Menu landing page ──────────────────────────────────────────
   Extends app.css. Everything is scoped under .lp so the dashboard,
   public menu and AR pages are untouched.

   Signature: the caliper. This product's whole claim is physical
   accuracy, so dimension annotation — tick, rule, mono value, rule,
   tick — is the page's connective tissue rather than decoration.
   Paper by day (the brand's warm ground); the dark acts are the same
   brand under candlelight, not a second identity.                  */

.lp {
  /* night palette — warm, derived from --ink, never pure black */
  --night:      #14120f;
  --night-2:    #1d1a15;
  --night-line: rgba(244, 236, 225, 0.14);
  --night-ink:  #f4ece1;
  --night-mute: #a2988a;
  --brass-lt:   #cfa25c;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gut:  clamp(20px, 5vw, 40px);
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 0.85, 0.3, 1);
}

.lp { overflow-x: clip; scroll-behavior: smooth; }
.lp .sec, .lp .night { scroll-margin-top: 88px; }
.lp .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ══ the caliper ══════════════════════════════════════════════════
   <span class="cal"><i></i>LABEL<i></i></span>                     */
.lp .cal {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--brass); white-space: nowrap;
}
.lp .cal i {
  position: relative; flex: 1; min-width: 20px; height: 1px;
  background: currentColor; opacity: 0.45;
  transform: scaleX(1); transition: transform 0.9s var(--ease) 0.1s;
}
.lp .cal i::before, .lp .cal i::after {
  content: ""; position: absolute; top: -3.5px;
  width: 1px; height: 8px; background: currentColor;
}
.lp .cal i::before { left: 0; }
.lp .cal i::after  { right: 0; }

/* ══ motion primitives ════════════════════════════════════════════ */
.lp [data-rise] {
  opacity: 0; transform: translateY(20px); filter: blur(7px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), filter 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}
.lp [data-rise].in { opacity: 1; transform: none; filter: none; }
.lp [data-rise] .cal i { transform: scaleX(0); }
.lp [data-rise].in .cal i { transform: scaleX(1); }

/* ══ nav ══════════════════════════════════════════════════════════ */
.lp .nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 60; width: calc(100% - 2 * var(--gut)); max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 10px 10px 18px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(227, 224, 215, 0.9);
  backdrop-filter: saturate(1.7) blur(14px);
  -webkit-backdrop-filter: saturate(1.7) blur(14px);
  box-shadow: 0 1px 2px rgba(25, 23, 19, 0.03);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease), top 0.35s var(--ease);
}
.lp .nav.stuck {
  top: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 2px rgba(25, 23, 19, 0.05), 0 10px 34px rgba(25, 23, 19, 0.09);
}
.lp .logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
}
.lp .nav .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.lp .nav .logo-mark svg { width: 15px; height: 15px; }
.lp .nav-links { display: none; gap: 4px; margin-left: auto; }
.lp .nav-links a {
  padding: 7px 13px; border-radius: 100px; text-decoration: none;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.lp .nav-links a:hover { color: var(--ink); background: var(--surface2); }
.lp .nav-act { display: flex; align-items: center; gap: 6px; }
@media (min-width: 880px) { .lp .nav-links { display: flex; } }
@media (max-width: 470px) { .lp .nav-act .btn-ghost { display: none; } }

/* ══ buttons ══════════════════════════════════════════════════════ */
.lp .btn {
  border-radius: 100px;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s, color 0.2s, border-color 0.2s;
}
.lp .btn-primary { position: relative; overflow: hidden; }
.lp .btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(207, 162, 92, 0.5) 50%, transparent 62%);
  transform: translateX(-130%);
}
.lp .btn-primary:hover:not(:disabled) { transform: translateY(-1.5px); box-shadow: 0 6px 20px rgba(25, 23, 19, 0.22); }
.lp .btn-primary:hover:not(:disabled)::after { animation: lp-sheen 0.7s var(--ease); }
@keyframes lp-sheen { to { transform: translateX(130%); } }
.lp .btn-ghost:hover:not(:disabled) { transform: translateY(-1.5px); }
.lp .btn-xl { padding: 15px 28px; font-size: 15px; }
.lp .btn-xl svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.lp .btn-xl:hover svg { transform: translateX(3px); }

/* ══ hero ═════════════════════════════════════════════════════════ */
.lp .hero { padding: 132px 0 60px; }
.lp .hero-grid { display: grid; gap: 52px; align-items: center; }
@media (min-width: 980px) {
  .lp .hero { padding: 158px 0 96px; }
  .lp .hero-grid { grid-template-columns: 1.06fr 1fr; gap: 56px; }
}
.lp .hero .cal { max-width: 268px; margin-bottom: 26px; }
.lp .hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 5.6vw, 60px); line-height: 1.03;
  letter-spacing: -0.028em; margin-bottom: 24px;
  text-wrap: balance;
}
.lp .hero h1 em { display: block; font-style: normal; font-weight: 700; }
.lp .hero .lede { font-size: 17px; line-height: 1.62; color: var(--muted); max-width: 480px; }
.lp .hero .lede b { color: var(--ink-soft); font-weight: 600; }
.lp .hero-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.lp .hero-fine {
  margin-top: 20px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.07em; color: var(--dim); text-transform: uppercase;
}

/* ══ hero scene: table, card, phone ═══════════════════════════════ */
.lp .scene {
  position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 4 / 3.4; min-height: 380px;
  background: radial-gradient(115% 88% at 62% 18%, #fffdf8 0%, #f0e9dc 42%, #ded4c2 78%, #cdc1ad 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 30px 70px -34px rgba(25, 23, 19, 0.4);
}
/* linen weave + grain, so the table reads as a surface, not a gradient */
.lp .scene::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg,  rgba(25, 23, 19, 0.045) 0 1px, transparent 1px 3px);
}
.lp .scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(78% 62% at 58% 34%, transparent 32%, rgba(46, 38, 26, 0.3) 100%);
}
.lp .scene-inner { position: absolute; inset: 0; perspective: 2000px; }

/* the printed card, lying flat on the table */
.lp .scene-card {
  /* height:auto matters — the width/height attributes are presentational
     hints, so without it the card renders at its raw 900px height. */
  position: absolute; left: 5%; bottom: 19%; width: 43%; height: auto;
  border-radius: 6px; display: block;
  transform: rotateX(50deg) rotateZ(-14deg);
  transform-origin: 50% 60%;
  box-shadow: 0 10px 20px -6px rgba(40, 32, 20, 0.55);
  filter: saturate(0.9) contrast(1.02) brightness(1.02);
}
.lp .scene-shadow {
  position: absolute; left: 34%; bottom: 2%; width: 58%; height: 26%;
  background: radial-gradient(closest-side, rgba(40, 32, 20, 0.42), transparent 72%);
  filter: blur(9px);
}

/* the phone, held over the card.
   .phone-tilt owns the idle float, .phone owns the rotation, so the
   pointer parallax can drive --tx/--ty without fighting the keyframes. */
.lp .phone-tilt {
  position: absolute; right: 8%; top: 6%; height: 88%; width: auto;
  aspect-ratio: 9 / 18.6;
  animation: lp-float 7.5s ease-in-out infinite;
}
@keyframes lp-float {
  50% { transform: translateY(-11px); }
}
.lp .phone {
  width: 100%; height: 100%;
  border-radius: 34px; padding: 7px;
  background: linear-gradient(150deg, #4a463f 0%, #16140f 34%, #302c25 62%, #100e0b 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 42px 60px -26px rgba(30, 24, 14, 0.72),
    0 4px 10px rgba(30, 24, 14, 0.3);
  transform:
    rotateX(calc(6deg + var(--tx, 0deg)))
    rotateY(calc(-13deg + var(--ty, 0deg)))
    rotateZ(3.5deg);
  transform-style: preserve-3d;
  will-change: transform;
}
.lp .phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 27px; background: #0d0c0a;
}
.lp .phone-screen::after {
  content: ""; position: absolute; inset: -30% -60%; z-index: 6; pointer-events: none;
  background: linear-gradient(102deg,
    transparent 30%, rgba(255, 255, 255, 0.16) 44%,
    rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.12) 56%, transparent 70%);
  transform: translateX(-100%);
  animation: lp-glass 9s ease-in-out 2.4s infinite;
}
@keyframes lp-glass {
  0%, 62% { transform: translateX(-100%); }
  86%, 100% { transform: translateX(100%); }
}
.lp .phone-notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 27%; height: 5px; border-radius: 100px;
  background: rgba(0, 0, 0, 0.85); z-index: 5;
}
/* the camera feed: the same card, seen up close through the lens */
.lp .cam {
  position: absolute; inset: 0;
  background-image:
    url("/img/tag-table-12.svg"),
    radial-gradient(125% 78% at 50% 26%, #ddd3c0 0%, #c6bba4 55%, #a89d88 100%);
  background-size: 112% auto, cover;
  background-position: 50% 70%, center;
  background-repeat: no-repeat, no-repeat;
  filter: saturate(1) brightness(0.88) contrast(1.04);
  transform: scale(1.04);
}
.lp .cam::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(74% 54% at 50% 58%, transparent 44%, rgba(12, 10, 7, 0.32) 100%);
}
/* the dish, planted on the card */
.lp .cam-dish::part(default-poster) { display: none; background: transparent; }
.lp .cam-dish {
  position: absolute; left: 50%; top: 57%; z-index: 2;
  width: var(--dish-w, 100%); aspect-ratio: 1 / 1;
  background: transparent; --poster-color: transparent;
  opacity: 0; transform: translate(-50%, -46%) scale(0.86);
  transition: opacity 0.55s var(--ease), transform 0.75s var(--ease), width 0.7s var(--ease);
}
.lp .scene.locked.has-model .cam-dish { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* During the handoff the flying plate takes over: this outranks the rule
   above, and --hd is driven from the scroll position. */
.lp .scene.handing.locked.has-model .cam-dish { opacity: var(--hd, 1); transition: none; }
.lp .scene.handing .ar-cal { opacity: var(--hd, 1); transition: none; }
.lp .scene.swapping .cam-dish { opacity: 0; transform: translate(-50%, -48%) scale(0.9); }
/* fallback plate, drawn in CSS, if the model cannot load */
.lp .cam-plate {
  position: absolute; left: 50%; top: 61%; z-index: 2;
  width: 84%; aspect-ratio: 2.5 / 1; transform: translate(-50%, -50%) rotateX(58deg);
  border-radius: 50%;
  background: radial-gradient(closest-side, #fffdf7 60%, #eadfc9 86%, #c9bda6 100%);
  box-shadow: 0 12px 24px -6px rgba(20, 16, 8, 0.6);
  opacity: 0; transition: opacity 0.7s var(--ease);
}
.lp .scene.locked.fallback:not(.has-model) .cam-plate { opacity: 1; }

/* scan sweep — runs while the tracker is looking for the card */
.lp .beam {
  position: absolute; inset: -20% -10%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(207, 162, 92, 0.5) 50%, transparent 58%);
  transform: translateY(-100%); opacity: 0;
}
.lp .scene.scanning .beam { animation: lp-beam 1.5s var(--ease) 2; opacity: 1; }
.lp .scene.swapping .beam { animation: lp-beam 1.1s var(--ease) 1; opacity: 1; }
@keyframes lp-beam { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* AR chrome, matching the real /r/:slug/ar screen */
.lp .ar-ui { position: absolute; inset: 0; z-index: 4; color: #fff; }
.lp .ar-top { position: absolute; top: 30px; left: 13px; right: 13px; display: flex; align-items: center; gap: 9px; }
.lp .ar-back {
  width: 25px; height: 25px; border-radius: 50%; flex-shrink: 0;
  background: rgba(20, 18, 15, 0.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.lp .ar-back svg { width: 12px; height: 12px; }
.lp .ar-titles { transition: opacity 0.3s var(--ease); }
.lp .scene.swapping .ar-titles { opacity: 0; }
.lp .ar-titles { min-width: 0; }
.lp .ar-name {
  font-weight: 600; font-size: 11px; line-height: 1.2; letter-spacing: -0.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
.lp .ar-price { font-size: 9.5px; opacity: 0.82; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65); }
.lp .ar-pill {
  position: absolute; top: 84px; left: 50%; transform: translateX(-50%);
  padding: 5px 12px; border-radius: 100px; white-space: nowrap;
  background: rgba(20, 18, 15, 0.62); backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.45s var(--ease);
}
.lp .ar-pill::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brass-lt); animation: lp-blink 1.1s ease-in-out infinite;
}
.lp .scene.locked .ar-pill { background: rgba(47, 107, 79, 0.85); }
.lp .scene.locked .ar-pill::before { background: #9ff0c4; animation: none; }
.lp .scene.swapping .ar-pill { background: rgba(147, 100, 28, 0.88); }
.lp .scene.swapping .ar-pill::before { background: #f0cd8a; animation: lp-blink 1.1s ease-in-out infinite; }
@keyframes lp-blink { 50% { opacity: 0.25; } }

/* the caliper across the plate — the signature, in miniature */
.lp .ar-cal {
  position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%);
  width: var(--cal-w, 68%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #33291b; opacity: 0;
  transition: opacity 0.5s var(--ease) 0.4s, width 0.7s var(--ease);
}
.lp .scene.locked .ar-cal { opacity: 1; }
.lp .ar-cal i {
  position: relative; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transition: transform 0.7s var(--ease) 0.55s;
}
.lp .scene.locked .ar-cal i { transform: scaleX(1); }
.lp .ar-cal i::before, .lp .ar-cal i::after {
  content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: currentColor;
}
.lp .ar-cal i::before { left: 0; }
.lp .ar-cal i::after  { right: 0; }
.lp .ar-cal b {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.04em; padding: 1.5px 6px; border-radius: 100px;
  background: rgba(255, 251, 242, 0.78);
}
/* Four dishes no longer fit across the phone, so the row scrolls the way a
   real menu's would, with the active chip kept centred and a soft fade at
   each edge to show there is more. */
.lp .ar-chips {
  position: absolute; bottom: 20px; left: 8px; right: 8px;
  display: flex; gap: 4px; justify-content: flex-start;
  overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.lp .ar-chips::-webkit-scrollbar { display: none; }
.lp .ar-chip { flex: 0 0 auto; }
.lp .ar-chip {
  font-family: inherit; color: #fff; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  padding: 3.5px 6px; border-radius: 100px; font-size: 7px; font-weight: 600;
  background: rgba(20, 18, 15, 0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14); white-space: nowrap;
}
.lp .ar-chip.on { background: #fff; color: var(--ink); border-color: #fff; }

/* ══ ticker ═══════════════════════════════════════════════════════ */
.lp .ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.lp .ticker-track { display: flex; width: max-content; animation: lp-scroll 40s linear infinite; }
.lp .ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes lp-scroll { to { transform: translateX(-50%); } }
.lp .ticker-set { display: flex; align-items: center; flex-shrink: 0; }
.lp .ticker-set span {
  display: flex; align-items: center; gap: 22px; padding: 0 22px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.lp .ticker-set span::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass); opacity: 0.55;
}

/* ══ the dishes leave the phone ═══════════════════════════════════
   .reveal-track is tall; .reveal-stage sticks to the viewport inside it,
   which is what makes the page look held while the plates cross. JS maps
   scroll distance through the track onto each plate's --x/--y/--s/--r.  */
.lp .reveal { position: relative; background: var(--bg); }
.lp .reveal-track { height: 1040vh; }
.lp .reveal-stage {
  position: sticky; top: 0; height: 100vh; overflow: visible;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 108px var(--gut) 52px;
}
.lp .reveal-stage::before {
  content: ""; position: absolute; left: 50%; top: 56%;
  width: min(120vh, 150vw); aspect-ratio: 1 / 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(207, 162, 92, 0.15), transparent 72%);
  opacity: var(--copy-in, 0); pointer-events: none;
}

.lp .reveal-copy {
  position: relative; z-index: 2; text-align: center;
  opacity: var(--copy-in, 0);
  transform: translateY(calc((1 - var(--copy-in, 0)) * 24px));
}
.lp .reveal-copy .cal { max-width: 300px; margin: 0 auto 18px; }
.lp .reveal-copy h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 4.8vw, 54px); line-height: 1.04;
  letter-spacing: -0.028em; text-wrap: balance;
}

/* Fixed, not absolute: the first plate begins life exactly over the dish in
   the hero's phone and has to stay visible while that section is still on
   screen — so it cannot be clipped by the pinned stage. Below the nav. */
.lp .reveal-plates { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.lp .reveal-plate {
  --plate: min(64vh, 74vw);
  position: fixed; left: 50%; top: 56%;
  width: var(--plate);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform:
    translate(-50%, -50%)
    translate(var(--x, 0px), var(--y, 0px))
    rotate(var(--r, 0deg))
    scale(var(--s, 1));
  opacity: var(--o, 0);
  will-change: transform;
}
/* Not merely transparent: a plate that is off stage is taken out of
   rendering altogether, so model-viewer stops drawing frames for it. */
.lp .reveal-plate:not(.live) { visibility: hidden; }
.lp .reveal-dish {
  width: var(--plate); height: var(--plate); display: block;
  background: transparent; --poster-color: transparent;
}
.lp .reveal-dish::part(default-poster) { display: none; background: transparent; }
.lp .plate-cap {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
  opacity: var(--cap-o, 1);
}


@media (max-width: 780px) {
  .lp .reveal-track { height: 880vh; }
  .lp .reveal-plate { --plate: min(44vh, 84vw); width: var(--plate); top: 52%; }
  .lp .reveal-stage { padding-top: 92px; }
}

/* ══ pinned section + wave meter ══════════════════════════════════
   Used by the guest section: it holds for a fixed run of scroll while
   its three moments arrive. The meter is the affordance that keeps the
   hold from reading as a frozen page.                                */
.lp .guest-pin { position: relative; background: var(--bg); }
.lp .pin-track { height: 640vh; }
.lp .pin-stage {
  position: sticky; top: 0; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 104px 0 96px;
}
.lp .pin-stage .sec-head { margin-bottom: 44px; }

.lp .guest-pin .moment > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.lp .guest-pin .moment.in > * { opacity: 1; transform: none; }
.lp .guest-pin .moment.in > *:nth-child(2) { transition-delay: 0.12s; }
.lp .guest-pin .moment.in > *:nth-child(3) { transition-delay: 0.24s; }
.lp .guest-pin .moment.in > *:nth-child(4) { transition-delay: 0.36s; }

/* the true-to-size notes arrive the same way */
.lp .truesize-pin .ts-note {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.lp .truesize-pin .ts-note.in { opacity: 1; transform: none; }

.lp .truesize-pin .pin-stage { padding: 108px 0 96px; }

/* the setup steps arrive the same way, and this hold is sized to them */
.lp .setup-pin { position: relative; background: var(--bg); }
.lp .setup-pin .pin-track { height: 400vh; }
.lp .setup-pin .step, .lp .setup-pin .setup-more {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.lp .setup-pin .step.in, .lp .setup-pin .setup-more.in { opacity: 1; transform: none; }
/* No meter here, so the hold is sized to its own content instead: the notes
   and the drawn plate carry it, and it releases soon after they land. */
.lp .truesize-pin .pin-track { height: 380vh; }

/* A full-bleed wave at the foot of the pinned stage: it doubles as the rule
   between this section and the next, and filling it is what releases the
   scroll. */
.lp .pin-meter {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%;
  /* reverse so the hint sits above the wave — the wave itself has to stay
     flush with the section edge to read as the rule between the two */
  display: flex; flex-direction: column-reverse; align-items: center; gap: 10px;
  opacity: var(--meter-in, 0); transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.lp .pin-meter svg { display: block; width: 100%; height: auto; }
.lp .pm-bg, .lp .pm-fg {
  fill: none; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round;
}
.lp .pm-bg { stroke: #cdc7b7; }
.lp .pm-fg { stroke: url(#pmGrad); }   /* dash is set from JS each frame */
.lp .pin-hint {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim);
  opacity: calc(1 - var(--fill, 0));
}

@media (max-width: 780px) {
  .lp .pin-track { height: 560vh; }
  .lp .truesize-pin .pin-track { height: 360vh; }
  .lp .setup-pin .pin-track { height: 380vh; }
  .lp .pm-bg, .lp .pm-fg { stroke-width: 11; }
}

/* Reduced motion: no pinning anywhere, no scroll traps, no meter. */
@media (prefers-reduced-motion: reduce) {
  /* these have to name the per-section selectors too: those are more
     specific, and a media query adds no specificity of its own */
  .lp .reveal-track, .lp .pin-track,
  .lp .truesize-pin .pin-track, .lp .setup-pin .pin-track { height: auto; }
  .lp .reveal-stage, .lp .pin-stage {
    position: static; height: auto; min-height: 0; overflow: visible;
    padding: 88px var(--gut);
  }
  .lp .reveal-stage { display: grid; gap: 34px; justify-items: center; }
  .lp .reveal-stage::before { opacity: 1; }
  .lp .reveal-copy { opacity: 1; transform: none; }
  .lp .reveal-plates { position: static; inset: auto; display: grid; gap: 28px; justify-items: center; width: 100%; }
  .lp .reveal-plate {
    position: static; transform: none; opacity: 1;
    --plate: min(46vh, 72vw); width: var(--plate);
  }
  .lp .guest-pin .moment > *, .lp .truesize-pin .ts-note,
  .lp .setup-pin .step, .lp .setup-pin .setup-more { opacity: 1; transform: none; }
  .lp .reveal-plate:not(.live) { visibility: visible; }
  .lp .pin-meter { display: none; }
}

/* ══ section furniture ════════════════════════════════════════════ */
.lp .sec { padding: 88px 0; }
@media (min-width: 980px) { .lp .sec { padding: 120px 0; } }
.lp .sec-head { max-width: 620px; margin-bottom: 52px; }
.lp .sec-head .cal { max-width: 320px; margin-bottom: 22px; }
.lp .sec-head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(29px, 4.1vw, 44px); line-height: 1.09;
  letter-spacing: -0.024em; margin-bottom: 16px;  text-wrap: balance;
}
.lp .sec-head p { font-size: 16.5px; line-height: 1.62; color: var(--muted); }

/* ══ the guest's twenty seconds ═══════════════════════════════════ */
.lp .moments {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 820px) { .lp .moments { grid-template-columns: repeat(3, 1fr); } }
.lp .moment { background: var(--surface); padding: 30px 28px 34px; transition: background 0.35s var(--ease); }
.lp .moment:hover { background: #fffefb; }
.lp .moment-t {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--brass); letter-spacing: 0.04em; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.lp .moment-t::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.lp .moment-ic {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 18px;
  background: var(--surface2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}
.lp .moment:hover .moment-ic { transform: translateY(-3px) rotate(-5deg); background: var(--brass-bg); color: var(--brass); }
.lp .moment-ic svg { width: 18px; height: 18px; }
.lp .moment h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.015em; }
.lp .moment p { font-size: 14.5px; line-height: 1.62; color: var(--muted); }

/* ══ dark acts ════════════════════════════════════════════════════ */
.lp .night { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
/* An ancestor with overflow:hidden becomes the sticky element's scroll
   container, which kills the pin — and this section's only decoration is an
   inset ::before, so nothing needs clipping here. */
.lp .night.truesize-pin { overflow: visible; }
.lp .night::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(66% 52% at 50% 0%, rgba(207, 162, 92, 0.15), transparent 70%);
}
.lp .night .wrap { position: relative; z-index: 1; }
.lp .night h2, .lp .night h3 { color: var(--night-ink); }
.lp .night .cal { color: var(--brass-lt); }
.lp .night p, .lp .night .sec-head p { color: var(--night-mute); }
.lp .night .btn-ghost { background: transparent; color: var(--night-ink); border-color: rgba(244, 236, 225, 0.26); }
.lp .night .btn-ghost:hover:not(:disabled) { background: rgba(244, 236, 225, 0.08); border-color: rgba(244, 236, 225, 0.3); }
.lp .night .btn-primary { background: var(--night-ink); color: var(--night); }
.lp .night .btn-primary:hover:not(:disabled) { background: #fff; box-shadow: 0 6px 26px rgba(207, 162, 92, 0.28); }

/* ── true to size ── */
.lp .ts-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .lp .ts-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
.lp .ts-head .cal { max-width: 340px; margin-bottom: 22px; }
.lp .ts-head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 4.3vw, 46px); line-height: 1.08;
  letter-spacing: -0.025em; margin-bottom: 18px;  text-wrap: balance;
}
.lp .ts-head h2 b { font-weight: 700; color: var(--brass-lt); }
.lp .ts-head p { font-size: 16.5px; line-height: 1.65; max-width: 470px; }
.lp .ts-notes { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.lp .ts-note {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.55; color: var(--night-mute); max-width: 460px;
}
.lp .ts-note svg { width: 15px; height: 15px; color: var(--brass-lt); flex-shrink: 0; margin-top: 3px; }
.lp .ts-note b { color: var(--night-ink); font-weight: 600; }

/* the measured plate */
.lp .plate-stage {
  position: relative; aspect-ratio: 1 / 0.84;
  border: 1px solid var(--night-line); border-radius: 18px;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(207, 162, 92, 0.1), transparent 72%),
    var(--night-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* grid, like a cutting mat */
.lp .plate-stage::before {
  content: ""; position: absolute; inset: 0; opacity: 0.55;
  background-image:
    repeating-linear-gradient(90deg, var(--night-line) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg,  var(--night-line) 0 1px, transparent 1px 34px);
  -webkit-mask-image: radial-gradient(72% 66% at 50% 46%, #000, transparent 84%);
          mask-image: radial-gradient(72% 66% at 50% 46%, #000, transparent 84%);
}
.lp .plate-stage svg { position: relative; width: 86%; height: auto; }
.lp .plate-stage .draw {
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.2s var(--ease) 0.15s;
}
.lp .plate-stage.drawn .draw { stroke-dashoffset: 0; }
.lp .plate-stage .fade { opacity: 0; transition: opacity 0.6s var(--ease) 0.95s; }
.lp .plate-stage.drawn .fade { opacity: 1; }
.lp .plate-read {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  font-family: var(--mono); font-size: clamp(26px, 4.4vw, 40px); font-weight: 600;
  color: var(--night-ink); letter-spacing: -0.02em; line-height: 1;
  display: flex; align-items: baseline; gap: 7px;
}
.lp .plate-read small { font-size: 0.42em; color: var(--brass-lt); letter-spacing: 0.1em; font-weight: 500; }

/* ══ setup ════════════════════════════════════════════════════════ */
.lp .steps { display: grid; gap: 40px; counter-reset: step; }
@media (min-width: 880px) { .lp .steps { grid-template-columns: repeat(3, 1fr); } }
.lp .step { position: relative; padding-top: 30px; border-top: 1px solid var(--line-dark); }
.lp .step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -8px; left: 0;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--brass); background: var(--bg); padding-right: 12px; letter-spacing: 0.06em;
}
.lp .step-fig {
  height: 132px; margin-bottom: 22px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative;
}
.lp .step-fig svg { width: 100%; height: 100%; display: block; }
.lp .step h3 { font-size: 18px; margin-bottom: 9px; letter-spacing: -0.018em; }
.lp .step p { font-size: 14.5px; line-height: 1.62; color: var(--muted); }
.lp .setup-more {
  margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.7; color: var(--muted); max-width: 720px;
}
.lp .setup-more strong { color: var(--ink); font-weight: 600; }
.lp .setup-more code {
  font-family: var(--mono); font-size: 13px; color: var(--brass);
  background: var(--brass-bg); padding: 2px 7px; border-radius: 5px;
}

/* ══ closing act ══════════════════════════════════════════════════ */
.lp .close-act { padding: 108px 0; text-align: center; }
@media (min-width: 980px) { .lp .close-act { padding: 146px 0; } }
.lp .close-act .cal { max-width: 280px; margin: 0 auto 26px; }
.lp .close-act h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 5.6vw, 60px); line-height: 1.04;
  letter-spacing: -0.028em; margin: 0 auto 20px; max-width: 16ch;  text-wrap: balance;
}
.lp .close-act p { font-size: 17px; max-width: 48ch; margin: 0 auto; line-height: 1.62; }
.lp .close-cta { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; margin-top: 36px; }

/* ══ footer ═══════════════════════════════════════════════════════ */
.lp .foot { border-top: 1px solid var(--night-line); padding: 30px 0 38px; }
.lp .foot-in { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.lp .foot .logo { color: var(--night-ink); font-size: 14px; }
.lp .foot .logo-mark { background: var(--night-ink); color: var(--night); width: 26px; height: 26px; border-radius: 7px; }
.lp .foot .logo-mark[data-icon="logo"] { background: url("/img/logo.png") center / cover no-repeat; }
.lp .foot .logo-mark svg { width: 14px; height: 14px; }
.lp .foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.lp .foot-links a { font-size: 13.5px; color: var(--night-mute); text-decoration: none; transition: color 0.2s; }
.lp .foot-links a:hover { color: var(--night-ink); }
.lp .foot-fine {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6c6455;
}

/* ══ auth modal ═══════════════════════════════════════════════════ */
.lp-auth-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(24, 20, 14, 0.44);
  backdrop-filter: blur(9px) saturate(1.2);
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  opacity: 0; transition: opacity 0.28s cubic-bezier(0.22, 0.85, 0.3, 1);
}
.lp-auth-backdrop.mounted { display: flex; }
.lp-auth-backdrop.open { opacity: 1; }
.lp-auth {
  width: 100%; max-width: 428px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 26px 26px;
  box-shadow: 0 40px 90px -30px rgba(25, 23, 19, 0.6);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.34s cubic-bezier(0.22, 0.85, 0.3, 1);
}
.lp-auth-backdrop.open .lp-auth { transform: none; }
.lp-auth-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.lp-auth-head h3 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.lp-auth-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.lp-tabs { display: flex; background: var(--surface2); border-radius: 100px; padding: 4px; margin-bottom: 22px; }
.lp-tab {
  flex: 1; padding: 9px; border: none; border-radius: 100px; background: transparent;
  color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background 0.22s cubic-bezier(0.22, 0.85, 0.3, 1), color 0.22s;
}
.lp-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.lp-auth-err {
  display: none; background: var(--red-bg); border: 1px solid rgba(163, 61, 44, 0.3);
  color: var(--red); font-size: 13px; font-weight: 500;
  padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
}
.lp-auth-err.show { display: block; }
.lp-auth input { border-radius: 10px; }
.lp-auth-fine { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--dim); }

/* ══ quality floor ════════════════════════════════════════════════ */
.lp a:focus-visible, .lp button:focus-visible, .lp-auth :focus-visible {
  outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px;
}
.lp .night a:focus-visible, .lp .night button:focus-visible { outline-color: var(--brass-lt); }

@media (max-width: 600px) {
  .lp .scene { aspect-ratio: 4 / 3.9; min-height: 340px; }
  .lp .phone-tilt { height: 84%; right: 5%; }
  .lp .scene-card { width: 40%; left: 3%; bottom: 16%; }
  /* the dish name wraps to two lines on a narrow phone, so the status
     pill needs to sit lower to keep its clearance */
  .lp .ar-pill { font-size: 7.5px; padding: 4px 9px; top: 80px; }
  .lp .ar-name { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after, .lp-auth-backdrop, .lp-auth {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .lp { scroll-behavior: auto; }
  .lp [data-rise] { opacity: 1; transform: none; filter: none; }
  .lp .cal i, .lp .ar-cal i { transform: scaleX(1); }
  .lp .plate-stage .draw { stroke-dashoffset: 0; }
  .lp .plate-stage .fade, .lp .ar-cal { opacity: 1; }
  .lp .ticker-track, .lp .phone-tilt { animation: none; }
  .lp .phone-screen::after { animation: none; opacity: 0; }
}
