/* Queue! landing page.
   Layout concept: space is the protagonist — photo circles drift like the app's canvas, and each section is one
   moment of the app (a note becoming a circle, rediscovering, people in rings, a "together" arriving). */
:root {
  --bg: #ffffff;
  --ink: #2b2827;
  --muted: #6f6864;
  --beni: #ed3428;
  --mist: #f6f1ee;
  --line: #ece4df;
  --open: #24c86a;
  --display: "Kiwi Maru", "Hiragino Maru Gothic ProN", "Hiragino Sans", serif;
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.8; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.nb { white-space: nowrap; }

/* Top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.logo { font-family: var(--display); font-size: 22px; text-decoration: none; letter-spacing: -0.3px; }
.logo b { color: var(--beni); font-weight: 500; }
.bar nav { display: flex; gap: 18px; font-size: 13px; }
.bar nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) { .bar { padding: 14px 16px; } .bar nav { gap: 12px; font-size: 12px; } }

/* Hero: drifting circles behind one headline */
.hero { position: relative; min-height: 640px; display: grid; place-items: center; text-align: center; padding: 40px 20px 60px; overflow: hidden; }
.drift { position: absolute; inset: 0; pointer-events: none; }
.drift img { position: absolute; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(43, 40, 39, 0.12); animation: float var(--t, 14s) ease-in-out var(--d, 0s) infinite alternate; }
@keyframes float { from { transform: translate(0, 0) scale(1); } to { transform: translate(var(--x, 10px), var(--y, -16px)) scale(1.04); } }
.hero-copy { position: relative; max-width: 760px; padding: 28px 22px; border-radius: 32px; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.7) 70%, rgba(255, 255, 255, 0)); }
.eyebrow { font-size: 13px; letter-spacing: 0.24em; color: var(--beni); font-weight: 700; margin: 0 0 18px; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 7.4vw, 64px); line-height: 1.32; letter-spacing: -0.01em; margin: 0 0 24px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--beni); }
.hero p { font-size: clamp(15px, 2.2vw, 18px); color: var(--muted); margin: 0 auto; max-width: 30em; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.store { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 168px; padding: 12px 22px; border-radius: 16px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.3; }
.store small { font-weight: 400; font-size: 11px; opacity: 0.7; }
.store[aria-disabled="true"] { cursor: default; }

/* A chapter: copy beside a phone that shows the moment */
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto; padding: 96px 24px; }
.chapter.flip .copy { order: 2; }
.label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 10px; }
.label.queue { color: var(--ink); }
.label.people { color: var(--beni); }
.chapter h2 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.4; margin: 0 0 22px; text-wrap: balance; }
.chapter p { margin: 0 0 12px; font-size: 16px; max-width: 30em; }
.note { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--mist); font-size: 14.5px; max-width: 30em; }
.note b { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-bottom: 4px; letter-spacing: 0.06em; }

/* Phone frame and the app's canvas inside it */
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19; margin: 0 auto; border-radius: 44px; background: var(--bg); box-shadow: 0 0 0 10px #1d1b1a, 0 30px 60px rgba(43, 40, 39, 0.22); overflow: hidden; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #1d1b1a; z-index: 3; }
.screen { position: absolute; inset: 0; }
.dot { position: absolute; border-radius: 50%; object-fit: cover; }
.cap { position: absolute; font-size: 10.5px; line-height: 1.45; color: var(--ink); font-family: var(--display); width: 80px; }

/* 1: a note turns into a photo circle */
.memo { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); padding: 12px 16px; border-radius: 16px; background: var(--mist); color: var(--muted); font-size: 14px; white-space: nowrap; animation: memo 6s ease-in-out infinite; }
.memo-photo { position: absolute; left: 50%; top: 40%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; object-fit: cover; animation: become 6s ease-in-out infinite; }
.memo-title { position: absolute; left: 0; right: 0; top: calc(40% + 72px); text-align: center; font-family: var(--display); font-size: 13px; animation: become 6s ease-in-out infinite; }
.plus { position: absolute; right: 22px; bottom: 28px; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 26px; font-weight: 300; }
@keyframes memo { 0%, 40% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 55%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } }
@keyframes become { 0%, 45% { opacity: 0; transform: scale(0.6); } 60%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

/* 2: rediscovering with a vague search */
.search { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); padding: 8px 14px; border-radius: 18px; background: var(--mist); color: var(--muted); font-size: 12px; white-space: nowrap; }
.dim { opacity: 0.28; transition: opacity 0.6s; }
.found { outline: 3px solid var(--beni); outline-offset: 3px; }

/* 3: people in rings, grouped */
.ring-label { position: absolute; transform: translate(-50%, -50%); font-family: var(--display); color: var(--beni); font-size: 13px; background: rgba(255, 255, 255, 0.9); padding: 2px 8px; border-radius: 10px; }
.face { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #655e59; border: 1px solid var(--line); }
.me { position: absolute; left: 22px; top: 54px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #e9ddd5; font-size: 13px; box-shadow: 0 0 0 3px var(--open), 0 0 0 9px rgba(36, 200, 106, 0.25); }
.links { position: absolute; left: 78px; top: 62px; display: flex; gap: 6px; }
.links span { width: 28px; height: 28px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ink); }

/* 4: a "together" arrives */
.toast { position: absolute; left: 14px; right: 14px; top: 48px; z-index: 4; padding: 12px 14px; border-radius: 18px; background: rgba(246, 241, 238, 0.98); box-shadow: 0 10px 24px rgba(43, 40, 39, 0.16); font-size: 12px; line-height: 1.55; animation: arrive 5s ease-in-out infinite; }
.toast b { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
@keyframes arrive { 0%, 78% { transform: translateY(0); } 86%, 92% { transform: translateY(-140%); } 100% { transform: translateY(0); } }
.signs { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; gap: 10px; }
.signs span { white-space: nowrap; padding: 7px 14px; border-radius: 16px; font-size: 13px; background: var(--mist); }
.signs .together { background: var(--beni); color: #fff; font-weight: 700; }

/* The statement */
.statement { text-align: center; padding: 120px 24px; background: var(--mist); }
.statement .likes { font-size: clamp(40px, 9vw, 88px); color: #b9aea8; text-decoration: line-through; text-decoration-thickness: 3px; font-weight: 300; margin: 0; }
.statement h2 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 5vw, 46px); line-height: 1.4; margin: 18px 0 26px; text-wrap: balance; }
.statement p { margin: 0 auto 10px; max-width: 30em; font-size: 16px; }

/* Closing call */
.closing { text-align: center; padding: 120px 24px 80px; position: relative; overflow: hidden; }
.closing h2 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 5.6vw, 52px); margin: 0 0 16px; }
.closing p { color: var(--muted); margin: 0; }

footer { border-top: 1px solid var(--line); padding: 28px 20px 48px; text-align: center; color: var(--muted); font-size: 13px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 10px; }
footer a { color: var(--muted); }

/* Gentle reveal: sections start visible; only a small rise is animated when they enter. */
.rise { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rise.below { transform: translateY(28px); }

@media (max-width: 760px) {
  /* On a phone the circles keep to the edges: fewer of them, smaller, out of the headline's way. */
  .drift img { scale: 0.62; }
  .drift img:nth-child(2), .drift img:nth-child(6), .drift img:nth-child(7), .drift img:nth-child(8), .drift img:nth-child(9) { display: none; }
  .drift img:nth-child(1) { left: -6% !important; top: 2% !important; }
  .drift img:nth-child(3) { left: 72% !important; top: 0 !important; }
  .drift img:nth-child(4) { left: 82% !important; top: 84% !important; }
  .drift img:nth-child(5) { left: -4% !important; top: 82% !important; }
  .hero { padding-top: 70px; }
  .store { min-width: 150px; padding: 11px 16px; }
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 72px 20px; }
  .chapter.flip .copy { order: 0; }
  .hero { min-height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  .drift img, .memo, .memo-photo, .memo-title, .toast { animation: none; }
  .memo { opacity: 0; }
  .memo-photo, .memo-title { opacity: 1; }
  .rise.below { transform: none; }
}
:focus-visible { outline: 2px solid var(--beni); outline-offset: 3px; border-radius: 6px; }

/* Search words, listed plainly as hashtags. */
.tags { max-width: 1040px; margin: 0 auto; padding: 8px 24px 64px; }
.tags ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.tags li { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- 2026-10 redesign: the canvas comes alive ---------- */

/* Bending photo field (warp.js). The canvas lies under the words; text keeps its own clear space. */
.warp { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.warped .drift { display: none; }
.warped .hero-copy { background: none; }
.hero { min-height: calc(100svh - 56px); touch-action: pan-y; }
.hero-copy, .closing-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 6.4vw, 74px); line-height: 1.26; letter-spacing: -0.02em; }
.warped .hero-copy { max-width: 1060px; }
.hero p { color: var(--ink); }
.hero::after { content: ""; position: absolute; left: 50%; bottom: 22px; width: 1px; height: 54px; background: linear-gradient(var(--ink), rgba(43, 40, 39, 0)); transform-origin: top; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Labels carry a small mark of their tab. */
.label::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: currentColor; }

/* People rings turn slowly; faces stay upright. */
.orbit { position: absolute; width: 0; height: 0; animation: spin var(--spin, 50s) linear infinite; }
.orbit .face { animation: counter var(--spin, 50s) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter { to { transform: rotate(-360deg); } }
.ring-label { z-index: 2; }

/* Story: on a wide screen one phone stays while the chapters scroll past (story.js). */
.story.staged { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 96px; max-width: 1120px; margin: 0 auto; padding: 40px 32px 80px; }
.story.staged .chapter { grid-column: 1; display: flex; align-items: center; min-height: 88vh; max-width: none; margin: 0; padding: 0; opacity: 0.22; transition: opacity 0.6s; }
.story.staged .chapter.on { opacity: 1; }
.story.staged .chapter .phone { display: none; }
.story.staged .chapter h2 { font-size: clamp(32px, 3.6vw, 48px); }
.story.staged .chapter p { font-size: 17px; }
.story-stage { grid-column: 2; grid-row: 1 / span 4; align-self: start; position: sticky; top: calc(50vh - 300px); height: 600px; display: flex; align-items: center; gap: 26px; }
.story-stage .phone { flex: none; width: 290px; margin: 0; }
.story-stage .screen { opacity: 0; transform: translateY(22px) scale(0.97); transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.story-stage .screen.on { opacity: 1; transform: none; }
.story-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.story-steps li { width: 6px; height: 6px; border-radius: 3px; background: var(--line); font-size: 0; transition: height 0.4s, background 0.4s; }
.story-steps li.on { height: 30px; background: var(--ink); }
.story-steps li.people.on { background: var(--beni); }

/* The statement: likes count up, then are struck out. */
.statement { padding: 150px 24px; }
.statement .likes { display: inline-block; position: relative; text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; transition: color 0.6s 0.2s; }
.statement .likes b { font-weight: 300; }
.statement .likes::after { content: ""; position: absolute; left: -6%; right: -6%; top: 54%; height: 4px; border-radius: 2px; background: var(--beni); transform: scaleX(0); transform-origin: left; transition: transform 0.55s cubic-bezier(0.6, 0, 0.2, 1); }
.statement .likes.struck { color: #c9bfb9; }
.statement .likes.struck::after { transform: scaleX(1); }
.statement h2 { font-size: clamp(30px, 5.6vw, 58px); }

/* Closing: a second, smaller field around the last words. */
.closing { min-height: 86vh; display: grid; place-items: center; padding: 100px 24px; }
.closing .drift img { position: absolute; border-radius: 50%; object-fit: cover; }
.closing h2 { font-size: clamp(30px, 6.4vw, 66px); line-height: 1.3; text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  .orbit, .orbit .face, .hero::after { animation: none; }
  .story-stage .screen, .story.staged .chapter { transition: none; }
}

/* ---------- People page ---------- */
/* Scenes: a bento of warm cards (a swipeable row on a phone), unlike Queue's scrolling story. */
.scenes { max-width: 1180px; margin: 0 auto; padding: 120px 32px 110px; }
.scenes > h2, .features > h2 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4.6vw, 46px); margin: 0 0 56px; text-align: center; }
.scenes ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.scene { grid-column: span 2; display: flex; flex-direction: column; gap: 22px; padding: 30px 28px 34px; border-radius: 32px; background: #fdeee9; }
.scene:nth-child(1) { grid-column: span 4; flex-direction: row; align-items: center; gap: 36px; padding: 36px 40px; }
.scene:nth-child(1) .v { flex: none; }
.scene:nth-child(2) { background: #f6f1ee; }
.scene:nth-child(3) { background: #fdf3f0; }
.scene:nth-child(4) { background: #f3f0f6; }
.scene:nth-child(5) { background: #eef6f0; }
.scene .v { margin: 0 auto; }
.scene .num { display: block; font-family: var(--display); font-size: 14px; color: var(--beni); letter-spacing: 0.1em; margin-bottom: 6px; }
.scene h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; margin: 0 0 12px; text-wrap: balance; }
.scene p { margin: 0; font-size: 15.5px; }

/* A scene's drawing: a 280 × 210 stage in the app's own vocabulary. */
.v { position: relative; width: 280px; height: 210px; margin: 0 auto; }
.vp { position: absolute; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 22px rgba(43, 40, 39, 0.14); }
.who { position: absolute; display: grid; justify-items: center; gap: 6px; }
.who i, .v-match .ring i, .track .me { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-style: normal; font-size: 13px; color: #655e59; border: 1px solid var(--line); }
.who span { font-family: var(--display); font-size: 12px; color: var(--muted); }
.chip { display: inline-block; white-space: nowrap; padding: 6px 13px; border-radius: 16px; font-size: 13px; background: var(--mist); color: var(--ink); }
.chip.together { background: var(--beni); color: #fff; font-weight: 700; }
.v .chip { position: absolute; }
.pulse { animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(237, 52, 40, 0.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(237, 52, 40, 0); } }
.thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.thread path { fill: none; stroke: var(--beni); stroke-width: 1.5; stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }

/* 02: two queues overlap; the shared wish sits where they meet. */
.v-overlap .field { position: absolute; top: 20px; width: 160px; height: 160px; border-radius: 50%; }
.v-overlap .field.a { left: 0; background: rgba(43, 40, 39, 0.045); }
.v-overlap .field.b { left: 120px; background: rgba(237, 52, 40, 0.06); }
.v-overlap .field span { position: absolute; top: -20px; font-family: var(--display); font-size: 12px; color: var(--muted); }
.v-overlap .field.a span { left: 30px; }
.v-overlap .field.b span { right: 30px; }
.v-overlap .shared { outline: 3px solid var(--beni); outline-offset: 3px; }

/* 03: a wish, wrapped as a present. */
.v-gift .wrap { position: absolute; left: 70px; top: 36px; width: 140px; height: 140px; border-radius: 50%; overflow: hidden; box-shadow: 0 10px 28px rgba(43, 40, 39, 0.18); }
.v-gift .wrap img { width: 100%; height: 100%; object-fit: cover; }
.ribbon { position: absolute; background: var(--beni); }
.ribbon.h { left: 0; right: 0; top: 50%; height: 14px; margin-top: -7px; }
.ribbon.v { top: 0; bottom: 0; left: 50%; width: 14px; margin-left: -7px; }
.bow { position: absolute; top: 18px; width: 30px; height: 22px; border: 6px solid var(--beni); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.bow.l { left: 112px; transform: rotate(-24deg); }
.bow.r { left: 140px; transform: rotate(24deg); }
.spark { position: absolute; font-style: normal; color: var(--beni); font-size: 15px; animation: twinkle 2.8s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.1); } }

/* 04: a colleague in the work ring, and you, meet at the same record. */
.v-match .ring { position: absolute; left: 14px; top: 14px; width: 130px; height: 130px; }
.v-match .ring span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--display); font-size: 13px; color: var(--beni); }
.v-match .ring i { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; font-size: 10px; transform: rotate(var(--a)) translateY(-48px) rotate(calc(-1 * var(--a))); }
.v-match .ring i.hit { box-shadow: 0 0 0 2px var(--beni); }

/* 05: your photo slides right, and turns available. */
.v-available .track { position: absolute; left: 20px; top: 48px; width: 240px; height: 64px; border-radius: 32px; background: var(--mist); }
.v-available .track b { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: #b9aea8; }
.v-available .me { position: absolute; left: 6px; top: 6px; background: #e9ddd5; animation: slide 4.2s cubic-bezier(0.5, 0, 0.2, 1) infinite; }
@keyframes slide { 0%, 18% { transform: translateX(0); box-shadow: none; } 48%, 86% { transform: translateX(176px); box-shadow: 0 0 0 3px var(--open), 0 0 0 9px rgba(36, 200, 106, 0.22); } 100% { transform: translateX(0); box-shadow: none; } }
.v-available .open-word { position: absolute; left: 0; right: 0; top: 120px; text-align: center; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; color: var(--open); animation: appear 4.2s infinite; }
@keyframes appear { 0%, 40% { opacity: 0; } 50%, 86% { opacity: 1; } 100% { opacity: 0; } }

/* Features: four columns on white, each with a fragment of the app. */
.features { max-width: 1180px; margin: 0 auto; padding: 40px 32px 130px; }
.features dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.feat { border-top: 2px solid var(--beni); padding-top: 26px; }
.feat .art { height: 56px; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.feat .art img { border-radius: 50%; object-fit: cover; }
.feat .chip.ghost { color: #9b928d; }
.feat .chip.picked { background: #dceaff; color: #3f6fa8; }
.feat .nolike { font-size: 32px; font-weight: 300; color: #c9bfb9; position: relative; }
.feat .nolike::after { content: ""; position: absolute; left: -6%; right: -6%; top: 54%; height: 3px; border-radius: 2px; background: var(--beni); }
.feat dt { font-family: var(--display); font-size: 20px; margin-bottom: 8px; }
.feat dd { margin: 0; font-size: 15px; }
@media (max-width: 1000px) {
  .scene:nth-child(1) { flex-direction: column; padding: 30px 28px 34px; gap: 22px; }
  .features dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .scenes { padding: 88px 0 80px; }
  .scenes > h2 { margin-bottom: 32px; padding: 0 20px; }
  .scenes ol { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 8px; scrollbar-width: none; }
  .scenes ol::-webkit-scrollbar { display: none; }
  .scene, .scene:nth-child(1) { flex: 0 0 84%; scroll-snap-align: center; flex-direction: column; padding: 26px 22px 30px; gap: 18px; }
  .scene .v { transform: scale(0.92); transform-origin: top center; margin-bottom: -16px; }
  .features { padding: 24px 20px 100px; }
  .features dl { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse, .thread path, .spark, .v-available .me, .v-available .open-word { animation: none; }
  .v-available .me { transform: translateX(176px); box-shadow: 0 0 0 3px var(--open); }
  .v-available .open-word { opacity: 1; }
}

/* ---------- Which page you are on: the app's two tabs, in the bar ---------- */
.bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; }
.bar .side { justify-self: end; }
.bar nav.tabs { display: flex; gap: 2px; padding: 3px; border-radius: 20px; background: var(--mist); font-size: 13px; }
.bar nav.tabs a { padding: 5px 14px; border-radius: 17px; color: var(--muted); text-decoration: none; white-space: nowrap; font-weight: 500; }
.bar nav.tabs a[aria-current="page"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 4px rgba(43, 40, 39, 0.12); }
.bar nav.tabs a[href*="people"][aria-current="page"] { color: var(--beni); }
@media (max-width: 420px) { .bar { grid-template-columns: auto auto 1fr; } .bar nav.tabs { font-size: 12px; } .bar nav.tabs a { padding: 5px 10px; } }

/* ---------- People: its own opening, its own warmth ---------- */
.people-open { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: 40px; padding: 48px max(32px, calc((100% - 1180px) / 2)) 72px; min-height: calc(100svh - 56px); background: radial-gradient(60% 70% at 72% 50%, #fde9e4 0%, #fdf4f1 45%, #ffffff 80%); overflow: hidden; }
.people-open .eyebrow { color: var(--beni); }
.people-open h1 { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 6vw, 76px); line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 28px; text-wrap: balance; }
.people-open .copy p:not(.eyebrow) { font-size: 18px; margin: 0 0 8px; }
.field { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; }
.pring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: spin var(--spin, 100s) linear infinite; }
.pring .guide { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(237, 52, 40, 0.18); }
.pface, .pwish { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; animation: counter-c var(--spin, 100s) linear infinite; }
@keyframes counter-c { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
.pface { display: grid; place-items: center; color: #655e59; border: 1px solid var(--line); }
.pface.open { box-shadow: 0 0 0 3px var(--open), 0 0 0 8px rgba(36, 200, 106, 0.2); }
.pface.sign::after { content: ""; position: absolute; right: -2px; top: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--beni); border: 2px solid #fff; }
.pwish { max-width: none; object-fit: cover; box-shadow: 0 6px 16px rgba(43, 40, 39, 0.16); }
.me-center { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: #e9ddd5; font-family: var(--display); font-size: clamp(11px, 1.4vw, 15px); color: var(--ink); box-shadow: 0 0 0 4px #fff, 0 10px 30px rgba(43, 40, 39, 0.16); }

/* The closing, in People red. */
.closing.beni { background: var(--beni); color: #fff; min-height: 0; padding: 130px 24px; }
.closing.beni p { color: rgba(255, 255, 255, 0.86); }
.closing.beni .store { background: #fff; color: var(--ink); }

@media (max-width: 860px) {
  .people-open { grid-template-columns: minmax(0, 1fr); padding: 24px 20px 64px; background: radial-gradient(80% 45% at 50% 30%, #fde9e4 0%, #fdf4f1 50%, #ffffff 85%); gap: 8px; min-height: 0; text-align: center; }
  .people-open .field { order: -1; max-width: 420px; }
  .people-open .copy p:not(.eyebrow) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pring, .pface, .pwish { animation: none; } }

/* ---------- Guides: a quiet reading page with one illustration of its own ---------- */
.guide article { max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
.guide-head { margin-bottom: 40px; }
.guide-head .eyebrow { color: var(--beni); margin-bottom: 14px; }
.guide-head h1 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 5.2vw, 46px); line-height: 1.35; margin: 0 0 22px; text-wrap: balance; }
.guide-lead p { margin: 0; font-size: 18px; color: var(--muted); }
.guide section { margin: 64px 0 0; }
.guide h2 { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.45; margin: 0 0 22px; text-wrap: balance; }
.guide p { margin: 0 0 12px; font-size: 16.5px; }
.guide .closing { min-height: 0; padding: 110px 24px 90px; }

.points { margin: 0; display: grid; gap: 22px; }
.points dt, .fit dt { font-weight: 700; margin-bottom: 4px; }
.points dd, .fit dd { margin: 0; color: var(--ink); }
.points > div { padding-left: 18px; border-left: 3px solid var(--beni); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 16px; height: 16px; border-radius: 50%; background: var(--beni); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--beni); }
.numbered { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 20px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
.numbered li::before { content: counter(n); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); font-family: var(--display); color: var(--beni); }
.numbered b { font-weight: 700; }
.numbered span { color: var(--muted); }
.fit { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fit > div { padding: 22px 22px 24px; border-radius: 22px; background: var(--mist); }
.fit > div:first-child dt { color: var(--beni); }

.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.guide table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.guide th, .guide td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide thead th { font-size: 13px; color: var(--muted); font-weight: 500; }
.guide tbody th { font-weight: 700; }
.guide tbody tr:last-child td, .guide tbody tr:last-child th { border-bottom: 0; }
.guide td:last-child { background: rgba(237, 52, 40, 0.04); }

/* 1: pins on a map turn into photo icons, and back. */
.pins-to-photos { position: relative; margin: 0; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 28px; overflow: hidden; background: #eef1ec; }
.mapbg { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 31%, #fff 31%, #fff 33%, transparent 33%, transparent 64%, #fff 64%, #fff 66%, transparent 66%),
  linear-gradient(0deg, transparent 40%, #fff 40%, #fff 43%, transparent 43%, transparent 72%, #fff 72%, #fff 74%, transparent 74%),
  linear-gradient(135deg, #e3eadf 0 30%, #dbe6ef 30% 46%, #e3eadf 46%); }
.pin { position: absolute; width: 18px; height: 18px; margin: -18px 0 0 -9px; border-radius: 50% 50% 50% 0; background: #ea4335; transform: rotate(-45deg); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); animation: pin 7s ease-in-out infinite; animation-delay: var(--d); }
.pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.ph { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; object-fit: cover; max-width: none; box-shadow: 0 8px 20px rgba(43, 40, 39, 0.18); animation: ph 7s ease-in-out infinite; animation-delay: var(--d); }
@keyframes pin { 0%, 38% { opacity: 1; transform: rotate(-45deg) scale(1); } 50%, 88% { opacity: 0; transform: rotate(-45deg) scale(0.4); } 100% { opacity: 1; transform: rotate(-45deg) scale(1); } }
@keyframes ph { 0%, 40% { opacity: 0; transform: scale(0.3); } 54%, 86% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.3); } }

/* 2: the quiz */
.quiz { padding: 34px 28px 36px; border-radius: 28px; background: #fdeee9; }
.quiz h2 { margin-bottom: 18px; }
.quiz .ask { font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.quiz .q, .quiz .result { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.quiz .q[hidden], .quiz .result[hidden] { display: none; }
.quiz .ask, .quiz .answer { flex-basis: 100%; }
.quiz button { font: inherit; font-size: 15px; padding: 10px 18px; border-radius: 22px; border: 1px solid rgba(237, 52, 40, 0.35); background: #fff; color: var(--ink); cursor: pointer; }
.quiz button:hover { border-color: var(--beni); }
.quiz .answer { font-family: var(--display); font-size: 20px; line-height: 1.6; margin-bottom: 8px; text-wrap: pretty; word-break: auto-phrase; }
.quiz .again { border-color: var(--line); color: var(--muted); }

/* 3: two queues overlap; the shared wish gets a "together". */
.two-queues { position: relative; margin: 0 auto; width: 100%; max-width: 520px; aspect-ratio: 13 / 8; }
.two-queues .field { position: absolute; top: 8%; width: 58%; aspect-ratio: 1; border-radius: 50%; }
.two-queues .field.a { left: 0; background: rgba(43, 40, 39, 0.045); }
.two-queues .field.b { right: 0; background: rgba(237, 52, 40, 0.07); }
.two-queues .field span { position: absolute; top: -10%; font-family: var(--display); font-size: 13px; color: var(--muted); }
.two-queues .field.a span { left: 22%; }
.two-queues .field.b span { right: 22%; }
.two-queues img { position: absolute; aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 16px rgba(43, 40, 39, 0.16); }
.two-queues .shared { outline: 3px solid var(--beni); outline-offset: 3px; }
.two-queues .chip { position: absolute; left: 50%; top: 68%; transform: translateX(-50%); }
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ideas > div { padding: 20px 22px; border-radius: 22px; background: var(--mist); }
.ideas h3 { font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--beni); margin: 0 0 8px; }
.ideas ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }

footer .guides-nav { margin-bottom: 14px; }
footer .guides-nav span { color: var(--ink); font-weight: 700; }

@media (max-width: 640px) {
  .guide article { padding: 36px 20px 24px; }
  .guide-lead p { font-size: 16.5px; }
  .fit, .ideas { grid-template-columns: minmax(0, 1fr); }
  .quiz { padding: 26px 20px 28px; }
}
@media (prefers-reduced-motion: reduce) { .pin, .ph { animation: none; } .pin { opacity: 0; } }

/* 1 (revised): tap a photo icon in Queue!, and the map opens with its pin. */
.tap-to-map { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; gap: 8px; }
.queue-side, .map-side { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; }
.queue-side { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.queue-side .ph { position: absolute; aspect-ratio: 1; height: auto; transform: translate(-50%, -50%); border-radius: 50%; object-fit: cover; max-width: none; box-shadow: 0 6px 16px rgba(43, 40, 39, 0.16); }
.queue-side .ripple { position: absolute; left: 50%; top: 44%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid var(--beni); animation: ripple 5s ease-out infinite; }
@keyframes ripple { 0%, 8% { opacity: 0; transform: translate(-50%, -50%) scale(1); } 12% { opacity: 1; } 30%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.tap-to-map .arrow { height: 2px; background: var(--line); position: relative; }
.tap-to-map .arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid #c9bfb9; }
.map-side { background: #eef1ec; animation: open 5s ease-in-out infinite; }
.map-side .pin { left: 50%; top: 50%; animation: drop 5s ease-out infinite; }
@keyframes open { 0%, 22% { opacity: 0.25; } 34%, 92% { opacity: 1; } 100% { opacity: 0.25; } }
@keyframes drop { 0%, 34% { opacity: 0; transform: translateY(-40px) rotate(-45deg); } 46% { opacity: 1; transform: translateY(0) rotate(-45deg); } 50% { transform: translateY(-6px) rotate(-45deg); } 54%, 90% { opacity: 1; transform: translateY(0) rotate(-45deg); } 100% { opacity: 0; transform: translateY(0) rotate(-45deg); } }
.numbered li span:empty { display: none; }
.numbered li:has(span:empty) { align-items: center; }
.after-steps { margin-top: 20px; }
.guide .queue-first thead th:nth-child(2) { color: var(--beni); font-weight: 700; }
.guide .queue-first td:last-child { background: none; }
.guide .queue-first td:nth-child(2) { background: rgba(237, 52, 40, 0.04); }
@media (prefers-reduced-motion: reduce) { .queue-side .ripple, .map-side, .map-side .pin { animation: none; } .map-side .pin { opacity: 1; transform: rotate(-45deg); } }

/* Links that lead on from the body: a chapter label, or words that name another page. */
a.label { text-decoration: none; }
a.label:hover { opacity: 0.75; }
.guide article a, .scene a, .feat a, .chapter .copy p a { text-decoration: underline; text-decoration-color: rgba(237, 52, 40, 0.45); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.guide article a:hover, .scene a:hover, .feat a:hover { text-decoration-color: var(--beni); }

footer .notice { margin: 0 0 6px; font-size: 12px; }
