/* Home page (/) only: the menu demo, the scroll story and the floating
   dock. Shared tokens and components live in css/brand.css. */
/* ── Phone stage ─────────────────────────────────────────── */
.st {
  --dm-paper: #fbfaf7;
  --dm-ink: #26231f;
  --dm-find: rgba(240, 212, 158, .34);
  --dm-find-edge: #d9a85f;
  --dm-bezel: #1b1c19;
  --dm-sheet: rgba(251, 249, 244, .88);
  --dm-phone-shadow: 0 40px 80px rgba(58, 45, 45, .22), 0 12px 24px rgba(58, 45, 45, .10);
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  display: grid;
  justify-items: center;
  gap: 40px;
  margin-top: 0;
}
/* The chat card is desktop decoration only. */

/* Developer and partner links, under the closing download button. */
.hp-close__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 96px; margin-top: 96px; }
.hp-close__more a.st-card { width: auto; }

.st-card__label { font-size: 13px; font-weight: 600; color: var(--color-text-tertiary); }
a.st-card, .st-card--ai {
  display: grid;
  gap: 8px;
  width: min(100%, 300px);
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  box-shadow: 0 0 0 1px var(--glass-edge), 0 12px 32px rgba(58, 45, 45, .08);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: transform var(--duration-quick) var(--ease-standard);
}
/* Only the chat mock is a surface; the rest is text on the page. */
a.st-card { padding: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
a.st-card { text-align: center; justify-items: center; }
a.st-card:active { transform: scale(.98); transition-duration: 60ms; }
@media (hover: hover) and (pointer: fine) { a.st-card:hover { transform: scale(1.03); } a.st-card:active { transform: scale(.98); } }
.st-card__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.st-code { font: 13px/1.4 var(--font-mono); color: var(--color-text-secondary); }
.st-bubble { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.st-bubble img { flex: none; border-radius: 5px; margin-top: 2px; }
.st-bubble--me { justify-self: end; max-width: 90%; padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: var(--bg-components); }

.st > .st-card--ai { display: none; }

/* Desktop: cards float beside the phone, Flighty-style. */
@media (min-width: 1180px) {
  .st {
    grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
    grid-template-areas: "ai phone .";
    column-gap: 104px;
  }
  .st .dm-device { grid-area: phone; }
  .st > .st-card--ai { display: grid; grid-area: ai; justify-self: end; align-self: end; transform: rotate(-1.5deg); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st { --dm-sheet: rgba(48, 49, 46, .88); --dm-phone-shadow: 0 40px 80px rgba(0, 0, 0, .5); --dm-bezel: #0e0e0d; }
}
:root[data-theme="dark"] .st { --dm-sheet: rgba(48, 49, 46, .88); --dm-phone-shadow: 0 40px 80px rgba(0, 0, 0, .5); --dm-bezel: #0e0e0d; }
/* The phone: camera view first, results after the scan. */
.dm-device { display: flex; justify-content: center; }
/* A titanium iPhone: a thin brushed-metal band (the 3px padding) around a
   black glass bezel (the screen's 7px border), side buttons, the Dynamic
   Island, a status bar, and a faint glare across the glass. */
.dm-phone {
  position: relative;
  width: min(300px, 82vw);
  aspect-ratio: 300 / 620;
  padding: 3px;
  border-radius: 52px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .28), transparent 6%, transparent 94%, rgba(255, 255, 255, .22)),
    linear-gradient(180deg, #9d9890 0%, #5d5a55 18%, #7b7770 50%, #4c4a46 82%, #8f8a83 100%);
  box-shadow:
    var(--dm-phone-shadow),
    0 2px 3px rgba(0, 0, 0, .25),
    inset 0 0 0 .5px rgba(255, 255, 255, .45),
    inset 0 0 0 1.5px rgba(0, 0, 0, .35);
}
.dm-phone::before {
  content: "";
  position: absolute;
  z-index: 7;
  top: 20px;
  left: 50%;
  width: 86px;
  height: 25px;
  margin-left: -43px;
  border-radius: 14px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
/* camera lens inside the island */
.dm-phone::after {
  content: "";
  position: absolute;
  z-index: 8;
  top: 28px;
  left: calc(50% + 25px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3550 0 20%, #0b0d14 45%, #000 70%);
}
.dm-hw { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #4c4a46, #8f8a83 60%, #5d5a55); }
/* left: action button, then volume up and down (its two pseudo-elements) */
.dm-hw--left { left: -2px; top: 112px; height: 26px; border-radius: 2px 0 0 2px; }
.dm-hw--left::before, .dm-hw--left::after { content: ""; position: absolute; left: 0; width: 3px; height: 50px; border-radius: 2px 0 0 2px; background: inherit; }
.dm-hw--left::before { top: 44px; }
.dm-hw--left::after { top: 104px; }
.dm-hw--right { right: -2px; top: 170px; height: 78px; border-radius: 0 2px 2px 0; background: linear-gradient(270deg, #4c4a46, #8f8a83 60%, #5d5a55); }
.dm-status {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  height: 46px; padding: 2px 26px 0 32px;
  color: #fff; pointer-events: none;
  transition: color var(--duration-standard) var(--ease-standard);
}
.dm-status__time { font: 600 14px/1 -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -.01em; }
.dm-status__icons { display: inline-flex; align-items: center; gap: 5px; }
.dm-status svg { fill: currentColor; }
.dm-phone[data-state="results"] .dm-status { color: var(--color-text-primary); }
.dm-screen { position: relative; box-sizing: border-box; height: 100%; border: 7px solid #000; border-radius: 49px; overflow: hidden; background: var(--bg-page); isolation: isolate; }
/* glare: a soft diagonal sheen on the glass, above everything, never in the way */
.dm-screen::after {
  content: ""; position: absolute; z-index: 9; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 28%, transparent 42%);
}

.dm-cam {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 40%, #3a332c 0%, #171513 70%);
  transition: opacity 180ms var(--ease-exit);
}
.dm-cam__hint {
  position: absolute;
  z-index: 3;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, .92);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity var(--duration-quick) var(--ease-standard);
}
.dm-menu {
  position: absolute;
  top: 84px;
  left: 10%;
  right: 10%;
  padding: 12px 12px 8px;
  border-radius: 3px;
  background: var(--dm-paper);
  color: var(--dm-ink);
  font: 300 7.4px/1.3 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transform: perspective(700px) rotateX(7deg) rotate(-2.2deg);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
}
.dm-menu__sec { font-size: 13px; line-height: 1; margin: 2px 0 6px; letter-spacing: .01em; }
.dm-menu__item + .dm-menu__sec { margin-top: 8px; }
.dm-menu__sec + .dm-menu__item { margin-top: 0; }
.dm-menu__item { position: relative; margin: 0 0 4px; padding-right: 18px; }
.dm-menu__item b { display: block; font-weight: 400; font-size: 8.6px; }
.dm-menu__item i { display: block; font-style: italic; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-menu__item em { position: absolute; top: 1px; right: 0; font-style: normal; font-size: 8px; }
.dm-menu__item::after {
  content: "";
  position: absolute;
  inset: -2px -5px;
  border-radius: 4px;
  border: 1.2px solid var(--dm-find-edge);
  background: var(--dm-find);
  opacity: 0;
  transform: scale(.94);
  transition: opacity 180ms var(--ease-standard), transform var(--duration-standard) var(--ease-emphasized);
}
.dm-menu__item.is-found::after { opacity: 1; transform: none; }
.dm-frame {
  position: absolute;
  inset: 72px 14px 128px;
  pointer-events: none;
  --c: rgba(255, 255, 255, .85);
  background:
    linear-gradient(var(--c), var(--c)) top left / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 22px no-repeat;
}
.dm-scanline {
  position: absolute;
  z-index: 2;
  top: 74px;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #f3dcb0 20%, #fff 50%, #f3dcb0 80%, transparent);
  box-shadow: 0 0 16px 4px rgba(240, 212, 158, .55);
  opacity: 0;
}
.dm-flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.dm-cam__bar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity var(--duration-quick) var(--ease-standard), transform var(--duration-standard) var(--ease-standard);
}
.dm-shutter {
  position: relative;
  width: 64px;
  height: 64px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: transform var(--duration-quick) var(--ease-standard);
}
.dm-shutter::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.dm-shutter::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .7);
  animation: dm-breathe 2.4s var(--ease-standard) infinite;
}
.dm-shutter:active { transform: scale(.92); transition-duration: 60ms; }
@media (hover: hover) and (pointer: fine) { .dm-shutter:hover { transform: scale(1.06); } .dm-shutter:hover::after { animation-play-state: paused; } .dm-shutter:active { transform: scale(.92); } }
.dm-shutter:focus-visible { outline: 2px solid #f0d49e; outline-offset: 12px; }
.dm-cam__tap { color: rgba(255, 255, 255, .86); font-size: 11px; font-weight: 600; }
.dm-sheet {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 28px;
  background: var(--dm-sheet);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 0 0 1px var(--glass-edge), 0 12px 30px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-quick) var(--ease-standard), transform var(--duration-emphasized) var(--ease-emphasized);
}
.dm-nibble { width: 64px; height: 64px; flex: none; }
.dm-sheet__t { font-size: 13px; font-weight: 700; color: var(--color-text-primary); }
.dm-count { margin-top: 2px; font-size: 12px; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; min-height: 1.4em; }

.dm-phone[data-state="reading"] .dm-cam__hint,
.dm-phone[data-state="reading"] .dm-cam__bar { opacity: 0; pointer-events: none; }
.dm-phone[data-state="reading"] .dm-cam__bar { transform: translateY(12px); }
.dm-phone[data-state="reading"] .dm-sheet { opacity: 1; transform: none; }
.dm-phone[data-state="reading"] .dm-scanline { opacity: 1; animation: dm-scan 1.5s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.dm-phone[data-state="reading"] .dm-flash { animation: dm-flash 420ms var(--ease-standard); }
.dm-phone[data-state="results"] .dm-cam { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 180ms var(--ease-exit), visibility 0s 180ms; }

/* Results: the app's "Discovered items" screen. */
.dm-res {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 50px 12px 84px;
  color: var(--color-text-primary);
  opacity: 0;
  visibility: hidden;
  scrollbar-width: none;
}
.dm-res::-webkit-scrollbar { display: none; }
.dm-phone[data-state="results"] .dm-res { opacity: 1; visibility: visible; transition: opacity var(--duration-standard) var(--ease-standard) 180ms; }
.dm-res__bar { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 0 4px; color: var(--color-text-primary); }
/* (i): a 44px hit target around the 18px glyph; its note drops down from it. */
.dm-back, .dm-info {
  display: grid; place-items: center; width: 44px; height: 44px; margin: -13px; padding: 0;
  border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.dm-back:focus-visible, .dm-info:focus-visible { outline: 2px solid var(--primary); outline-offset: -8px; border-radius: 50%; }
.dm-info__tip {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 3;
  width: max-content; max-width: 210px; margin: 0; padding: 9px 12px;
  border-radius: 12px; background: var(--hp-gold-ink); color: #f6f1ea;
  font-size: 11px; line-height: 1.45; text-align: left;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transform-origin: 100% 0;
  transition: opacity 150ms var(--ease-exit), transform 150ms var(--ease-exit), visibility 0s 150ms;
}
.dm-info__tip.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 200ms var(--ease-standard), transform 200ms var(--ease-standard), visibility 0s;
}
@media (prefers-reduced-motion: reduce) { .dm-info__tip, .dm-info__tip.is-open { transform: none; transition: opacity 120ms linear, visibility 0s; } }
.dm-eyebrow { margin: 14px 4px 0; font-size: 8.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--secondary); }
.dm-title { margin: 2px 4px 0; font: italic 700 28px/1.1 var(--font-display); letter-spacing: -.01em; }
/* A real switch: a full-width row (44px hit target) that flips the list
   between the translated, reviewed view and the menu's original French. */
.dm-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: calc(100% - 8px); min-height: 44px; margin: 2px 4px 0; padding: 0;
  border: 0; background: none; font: inherit; font-size: 10.5px; color: var(--color-text-secondary);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.dm-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.dm-toggle span { display: inline-flex; align-items: center; gap: 6px; }
.dm-toggle i { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: var(--primary); transition: background-color 200ms var(--ease-standard); }
.dm-toggle i::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-page); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); transition: transform 200ms var(--ease-standard); }
.dm-toggle[aria-checked="false"] i { background: color-mix(in srgb, var(--color-text-tertiary) 50%, transparent); }
.dm-toggle[aria-checked="false"] i::after { transform: translateX(-12px); }
.dm-label { display: flex; align-items: center; gap: 5px; margin: 16px 4px 8px; font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-primary); }
.dm-favs { display: grid; gap: 8px; }
.dm-card {
  padding: 10px;
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--color-border-secondary), 0 4px 14px rgba(0, 0, 0, .05);
}
.dm-card__top { display: flex; gap: 10px; }
.dm-card__body { flex: 1; min-width: 0; }
.dm-thumb { position: relative; flex: none; width: 58px; height: 58px; border-radius: 12px; overflow: hidden; background: var(--bg-components); }
.dm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-thumb--sm { width: 34px; height: 34px; border-radius: 9px; }
.dm-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.dm-card h4 { margin: 0; font: 700 10.5px/1.25 var(--font-body); letter-spacing: .02em; text-transform: uppercase; }
.dm-price { flex: none; padding: 2px 6px; border-radius: 6px; background: var(--bg-components); font: italic 600 10px/1.3 var(--font-display); }
.dm-card__orig { display: block; margin-top: 1px; font-size: 8.5px; font-style: italic; color: var(--color-text-tertiary); }
.dm-card__desc { margin-top: 3px; font-size: 9.5px; line-height: 1.35; color: var(--color-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dm-tag { display: inline-block; margin-top: 5px; padding: 2px 6px; border-radius: 5px; background: var(--bg-components); font-size: 8.5px; color: var(--color-text-secondary); }
.dm-card__why { display: flex; gap: 5px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--color-border-secondary); font: italic 400 9.5px/1.4 var(--font-body); color: var(--color-text-secondary); }
.dm-card__why svg { flex: none; margin-top: 1px; color: var(--secondary); width: 10px; height: 10px; }
.dm-label svg { width: 10px; height: 10px; }
.dm-rows { list-style: none; padding: 0; }
.dm-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--color-border-secondary); }
.dm-row:last-child { border-bottom: 0; }
.dm-row__name { flex: 1; min-width: 0; font-size: 10.5px; font-weight: 600; line-height: 1.25; }
.dm-row__name small { display: block; font-size: 8.5px; font-weight: 400; font-style: italic; color: var(--color-text-tertiary); }
.dm-row__price { font: italic 600 10.5px/1 var(--font-display); color: var(--color-text-secondary); }
.dm-rise { opacity: 0; animation: dm-rise var(--duration-emphasized) var(--ease-emphasized) forwards; animation-delay: calc(var(--i, 0) * 30ms + 200ms); }
.dm-list.is-out .dm-rise { animation: dm-out 160ms var(--ease-exit) forwards; }

@keyframes dm-breathe { 0% { transform: scale(.92); opacity: .8; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes dm-scan { from { transform: translateY(0); } to { transform: translateY(330px); } }
@keyframes dm-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
@keyframes dm-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dm-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .dm-shutter::after { animation: none; opacity: 0; }
  .dm-phone[data-state="reading"] .dm-scanline, .dm-phone[data-state="reading"] .dm-flash { animation: none; opacity: 0; }
  .dm-sheet { transform: none; }
  .dm-rise { animation: dm-fade 150ms var(--ease-standard) forwards; animation-delay: 0ms; }
  .dm-list.is-out .dm-rise { animation: none; opacity: 0; }
  .dm-toggle i, .dm-toggle i::after { transition: none; }
  .dm-shutter, a.st-card { transition: none; }
  a.st-card:hover, .st-card--ai { transform: none !important; }
  .dm-shutter:hover { transform: none !important; }
}
@keyframes dm-fade { to { opacity: 1; } }
@media (prefers-reduced-transparency: reduce) {
  .dm-sheet { background: var(--bg-card); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dm-cam__hint { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  a.st-card, .st-card--ai { background: var(--bg-card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ── Story (above the demo) ─────────────────────────────────
   Static by default: three stacked sections with every line visible (no JS,
   Reduce Motion). html.hs-on (head script) pins each act in a 100svh stage
   for js/home-story.js to drive; hs-on sets only the first frame, so a
   failed script still shows act 1 and the slogan. */
.hp { --hs-mark: rgba(196, 154, 108, .42); --hs-thread: rgba(58, 45, 45, .32); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hp { --hs-mark: rgba(238, 189, 142, .26); --hs-thread: rgba(255, 255, 255, .30); }
}
:root[data-theme="dark"] .hp { --hs-mark: rgba(238, 189, 142, .26); --hs-thread: rgba(255, 255, 255, .30); }

.hs-act { position: relative; }
.hs-pin { position: relative; }
.hs-pain .hs-pin { padding: 120px var(--hp-gutter) 40px; }
.hs-stage { display: grid; gap: 32px; max-width: var(--hp-max); margin: 0 auto; }
.hs-say { display: grid; gap: 20px; }
.hs-q {
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.2;
  font-weight: 700;
}
.hs-q em { display: block; font-style: normal; color: var(--color-text-tertiary); }
.hs-ticks, .hs-thread, .hs-hint { display: none; }
.hs-strip { position: relative; display: grid; gap: 40px; }
.hs-scene { display: grid; place-items: center; }

/* Props: plain cards in the site's own surfaces. */
.hs-prop { position: relative; width: min(100%, 420px); }
.hs-card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--color-border-secondary), var(--glass-shadow);
  color: var(--color-text-primary);
}
.hs-menu { padding: 22px 24px; font-family: var(--font-display); }
.hs-menu__sec {
  margin: 12px 0 6px;
  font: 600 12px/1.4 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
.hs-menu__sec:first-child { margin-top: 0; }
.hs-menu__it { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; font-size: 16px; line-height: 1.35; }
.hs-menu__it b { flex: 1; font-weight: 600; }
.hs-menu__it em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--color-text-secondary); }
.hs-menu--blind .hs-menu__it { align-items: center; }
.hs-menu--blind u {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tile-fill);
  text-decoration: none;
  font: 600 18px/1 var(--font-body);
  color: var(--color-text-tertiary);
}
.hs-tr {
  position: relative;
  width: 82%;
  margin: -28px 0 0 auto;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.45;
}
.hs-tr__lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font: 600 12px/1.4 var(--font-body);
  color: var(--color-text-tertiary);
}
.hs-tr p + p { margin-top: 4px; }
.hs-note {
  position: absolute;
  left: -8px;
  bottom: -44px;
  font: italic 500 20px/1.3 var(--font-display);
  color: var(--secondary);
  transform: rotate(-3deg);
}
.hs-note--b { left: auto; right: 4px; bottom: -44px; }

.hs-turn .hs-pin { display: grid; place-items: center; padding: 96px var(--hp-gutter); text-align: center; }
.hs-why { font-size: clamp(32px, 5vw, 64px); line-height: 1.2; font-weight: 700; }

.hs-brand .hs-pin {
  display: grid;
  place-items: center;
  gap: 24px;
  padding: 96px var(--hp-gutter) 24px;
  text-align: center;
  isolation: isolate;
}
.hs-aurora { inset: 0; }
.hs-mark { font-size: clamp(64px, 15vw, 210px); line-height: 1; color: var(--color-text-primary); }
.hs-claim { max-width: 820px; }
.hs-lede mark {
  color: var(--color-text-primary);
  font-weight: 600;
  padding: 0 .08em;
  border-radius: 3px;
  background: linear-gradient(var(--hs-mark), var(--hs-mark)) 0 96% / 100% 38% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ── Pinned (html.hs-on) ─────────────────────────────────── */
html.hs-on .hs-pain { height: 320svh; }
html.hs-on .hs-turn { height: 200svh; }
html.hs-on .hs-brand { height: 380svh; }
/* Each act starts one screen early, under the end of the one before, so
   the next act fades in where the last one fades out instead of scrolling
   up from below an empty screen. */
html.hs-on .hs-turn, html.hs-on .hs-brand { margin-top: -100svh; }
html.hs-on .hs-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}
html.hs-on .hs-stage {
  height: 100%;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 48px;
  will-change: opacity, filter;
}
html.hs-on .hs-say { position: relative; align-self: center; height: 7em; font-size: clamp(28px, 3.4vw, 46px); }
html.hs-on .hs-q { position: absolute; left: 0; right: 0; top: 50%; margin-top: -1.3em; font-size: 1em; }
html.hs-on .hs-q + .hs-q { opacity: 0; filter: blur(12px); }
html.hs-on .hs-ticks { display: flex; gap: 6px; position: absolute; left: 0; top: calc(50% + 1.6em); }
.hs-ticks i { width: 14px; height: 2px; border-radius: 2px; background: var(--color-border-primary); transition: background var(--duration-standard) var(--ease-standard); }
.hs-ticks i:first-child, .hs-ticks i.is-on { background: var(--color-text-primary); }
html.hs-on .hs-reel { position: relative; height: 100%; overflow: clip; overflow-clip-margin: 8px; }
html.hs-on .hs-strip { position: absolute; inset: 0 0 auto; height: 200%; gap: 0; grid-template-rows: 1fr 1fr; will-change: transform; }
html.hs-on .hs-thread {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hs-thread path {
  fill: none;
  stroke: var(--hs-thread);
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
html.hs-on .hs-note { opacity: 0; transform: rotate(-3deg) translateY(8px); transition: opacity var(--duration-standard) var(--ease-standard), transform var(--duration-emphasized) var(--ease-emphasized); }
html.hs-on .hs-note.is-on { opacity: 1; transform: rotate(-3deg); }
html.hs-on .hs-hint {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(28px, env(safe-area-inset-bottom));
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-tertiary);
}
.hs-hint a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-border-primary);
  text-underline-offset: 4px;
}
html.hs-on .hs-turn .hs-pin, html.hs-on .hs-brand .hs-pin { padding-left: var(--hp-gutter); padding-right: var(--hp-gutter); }
html.hs-on .hs-aurora { opacity: 0; }
html.hs-on .hs-mark, html.hs-on .hs-claim { grid-area: 1 / 1; }
html.hs-on .hs-mark { opacity: 0; will-change: opacity, filter, transform; }
html.hs-on .hs-lede mark { background-size: 0% 38%; transition: background-size 700ms var(--ease-standard); }
html.hs-on .hs-lede mark.is-on { background-size: 100% 38%; }

@media (max-width: 759px) {
  html.hs-on .hs-stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
  html.hs-on .hs-say { align-self: end; height: 5.4em; margin-top: 88px; font-size: clamp(24px, 7vw, 32px); }
  html.hs-on .hs-q { top: 0; margin-top: 0; }
  html.hs-on .hs-ticks { top: auto; bottom: .4em; }
  html.hs-on .hs-reel { margin-bottom: 104px; }
  .hs-prop { width: min(100%, 340px); }
  .hs-menu { padding: 18px 20px; }
  .hs-menu__it { font-size: 15px; padding: 4px 0; }
  .hs-note { font-size: 18px; }
}

/* ── Floating dock ──────────────────────────────────────── */
.hs-dock {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(440px, calc(100% - 2 * var(--hp-gutter)));
  padding: 8px 8px 8px 10px;
  border-radius: var(--radius-full);
  background: var(--glass-fill);
  box-shadow: var(--glass-light), 0 0 0 1px var(--glass-edge), var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, 24px, 0);
  transition: opacity var(--duration-quick) var(--ease-exit), transform var(--duration-standard) var(--ease-exit), visibility 0s linear var(--duration-standard);
}
.hs-dock.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
  transition: opacity var(--duration-quick) var(--ease-standard), transform var(--duration-emphasized) var(--ease-emphasized), visibility 0s;
}
.hs-dock img { flex: none; border-radius: 9px; }
.hs-dock__t { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.hs-dock__t .cb { font-size: 17px; color: var(--color-text-primary); }
.hs-dock__t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--color-text-secondary); }
.hs-dock__go { flex: none; }
html.hp-desktop .hs-dock .hs-dock--store,
html:not(.hp-desktop) .hs-dock .hs-dock--ai { display: none; }
@media (prefers-reduced-transparency: reduce) {
  .hs-dock { background: var(--bg-card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-dock, .hs-dock.is-on { transform: translate3d(-50%, 0, 0); transition: opacity 150ms var(--ease-standard), visibility 0s linear 150ms; }
  .hs-dock.is-on { transition: opacity 150ms var(--ease-standard), visibility 0s; }
}

/* ── Launch film (#film, js/home-film.js) ─────────────────────
   The frame reserves the box: 16:9, or 9:16 on an upright phone, where the
   vertical cut plays, and never taller than the screen. */
/* The first screen is the name and one action, with room around them; the
   film starts below and peeks up from the fold. While the page scrolls
   toward it, the frame grows from 92% to full size (js/home-film.js sets
   --film-k from 0 to 1; Reduce Motion leaves it at 1). */
.hp-film { position: relative; padding: 0; }
.hp-film__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Icon and wordmark sit side by side as one lockup, centred in at least
   80% of the first screen so the film starts below it. */
.hp-film__brand {
  display: flex; align-items: center; justify-content: center; gap: .28em;
  min-height: max(80svh, 320px);
  font-size: clamp(44px, 6.4vw, 88px);
}
.hp-film__icon {
  flex: none; width: 1em; height: 1em; border-radius: 22.5%;
  box-shadow: 0 1px 2px rgba(43, 32, 24, .12), 0 12px 32px -8px rgba(43, 32, 24, .28);
}
.hp-film__title { margin: 0; font-size: 1em; line-height: 1; color: var(--color-text-primary); }
.hp-film__watch {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 6px;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 600; color: var(--color-text-secondary);
  transition: color 150ms var(--ease-standard);
}
.hp-film__watch:hover { color: var(--color-text-primary); }
.hp-film__watch:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 2px; border-radius: var(--radius-full); }
.hp-film__watch-dot {
  display: inline-grid; place-items: center; width: 28px; height: 28px; padding-left: 2px;
  border-radius: var(--radius-full); background: var(--hp-gold-ink); color: #fff;
  transition: transform 150ms var(--ease-standard);
}
.hp-film__watch:hover .hp-film__watch-dot { transform: scale(1.08); }
/* Dark mode: the ink dot would vanish into the page, so it turns gold. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-film__watch-dot { background: var(--hp-gold-light); color: var(--hp-gold-ink); } }
:root[data-theme="dark"] .hp-film__watch-dot { background: var(--hp-gold-light); color: var(--hp-gold-ink); }
.hp-film__frame {
  --film-k: 1;
  position: relative;
  margin: 28px auto 0;
  width: 100%;
  max-width: 1040px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--hp-gold-ink);
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-edge);
  transform: scale(calc(.92 + .08 * var(--film-k)));
  transform-origin: 50% 0;
}
.hp-film__video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--hp-gold-ink); }
.hp-film__video:focus-visible { outline: 3px solid var(--color-ring); outline-offset: -3px; }
/* Poster is softly blurred until the first play; scaled so the blur has no soft edge. */
.hp-film__video { transition: filter 320ms var(--ease-standard), transform 320ms var(--ease-standard); }
.hp-film__frame.is-enhanced:not(.is-playing) .hp-film__video { filter: blur(5px); transform: scale(1.04); }
@media (max-width: 759px) and (orientation: portrait) {
  .hp-film__frame { aspect-ratio: 9 / 16; width: min(100%, calc(82svh * 9 / 16)); margin-top: 24px; border-radius: var(--radius-lg); }
}
.hp-film__play, .hp-film__replay {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--hp-gold-light) 38%, transparent);
  color: var(--hp-gold-light);
  background: color-mix(in srgb, var(--hp-gold-ink) 58%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font: inherit;
  transition: transform var(--duration-quick) var(--ease-standard), background-color var(--duration-quick) var(--ease-standard);
}
.hp-film__play { left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0 0 0 4px; border-radius: var(--radius-full); }
.hp-film__replay { top: 16px; right: 16px; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600; }
.hp-film__frame.is-enhanced .hp-film__play { display: flex; }
.hp-film__frame.is-playing .hp-film__play { display: none; }
.hp-film__frame.is-ended .hp-film__replay { display: inline-flex; }
.hp-film__play:hover, .hp-film__replay:hover { background: color-mix(in srgb, var(--hp-gold-ink) 74%, transparent); }
.hp-film__play:hover { transform: scale(1.05); }
.hp-film__play:active { transform: scale(.96); }
.hp-film__play:focus-visible, .hp-film__replay:focus-visible { outline: 3px solid var(--hp-gold-light); outline-offset: 3px; }
.hp-film__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .hp-film__play, .hp-film__replay, .hp-film__watch, .hp-film__watch-dot, .hp-film__video { transition: none; }
  .hp-film__play:hover, .hp-film__play:active, .hp-film__watch:hover .hp-film__watch-dot { transform: none; }
  .hp-film__frame { transform: none; }
}
@media print { .hp-film { display: none; } }

/* ── The orb and its preset requests (results screen only) ────
   The orb floats at the bottom of the results. Tapped, the list blurs
   behind three preset requests and a field; a request is "typed" into the
   field, sent, and the picks change. Only these presets work. */
.dm-orb {
  position: absolute; z-index: 4; left: 50%; bottom: 18px;
  display: grid; place-items: center; width: 48px; height: 48px; margin-left: -24px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: #2b2018;
  background: radial-gradient(circle at 32% 28%, #fbe7d2 0%, #efc6a0 45%, #d99e6c 100%);
  box-shadow: 0 8px 20px -6px rgba(140, 80, 40, .55), inset 0 1px 1px rgba(255, 255, 255, .6);
  opacity: 0; visibility: hidden; transform: scale(.6);
  transition: opacity 180ms var(--ease-exit), transform 180ms var(--ease-exit), visibility 0s 180ms;
  -webkit-tap-highlight-color: transparent;
}
.dm-phone[data-state="results"] .dm-orb {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 260ms var(--ease-standard) 500ms, transform 360ms cubic-bezier(.34, 1.4, .64, 1) 500ms, visibility 0s 500ms;
}
.dm-phone[data-state="results"] .dm-orb[aria-expanded="true"] { opacity: 0; transform: scale(.6); transition: opacity 150ms var(--ease-exit), transform 150ms var(--ease-exit); }
.dm-orb:active { transform: scale(.94); }
.dm-orb:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.dm-ask {
  position: absolute; z-index: 5; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 0 12px 16px;
  background: color-mix(in srgb, var(--bg-page) 40%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity 180ms var(--ease-exit), visibility 0s 180ms;
}
.dm-ask.is-open { opacity: 1; visibility: visible; transition: opacity 240ms var(--ease-standard), visibility 0s; }
.dm-ask__prompts { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.dm-ask__prompt, .dm-ask__field {
  border: 1px solid var(--glass-edge, rgba(127, 127, 127, .25));
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  color: var(--color-text-primary);
}
.dm-ask__prompt {
  min-height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 600 11.5px/1 var(--font-body);
  opacity: 0; transform: translateY(8px);
  transition: opacity 160ms var(--ease-exit), transform 160ms var(--ease-exit), background 150ms var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.dm-ask.is-open .dm-ask__prompt { opacity: 1; transform: none; transition: opacity 240ms var(--ease-standard), transform 300ms var(--ease-standard), background 150ms var(--ease-standard); }
.dm-ask.is-open .dm-ask__prompt:nth-child(2) { transition-delay: 40ms; }
.dm-ask.is-open .dm-ask__prompt:nth-child(3) { transition-delay: 80ms; }
.dm-ask__prompt:active { transform: scale(.97); }
.dm-ask__prompt:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dm-ask__prompt:hover { background: var(--bg-card); } }
.dm-ask__field {
  position: relative; display: flex; align-items: center; min-height: 40px; padding: 0 44px 0 14px; border-radius: 20px;
  font-size: 11px;
}
.dm-ask__ph { color: var(--color-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-ask__text { white-space: nowrap; overflow: hidden; }
.dm-ask__text:not(:empty) + .dm-ask__ph { display: none; }
.dm-ask__send {
  position: absolute; right: 6px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; color: var(--color-text-tertiary);
  transition: background 150ms var(--ease-standard), color 150ms var(--ease-standard);
}
.dm-ask__field.is-sending .dm-ask__send { background: var(--color-text-primary); color: var(--bg-page); }
@media (prefers-reduced-motion: reduce) {
  .dm-orb, .dm-phone[data-state="results"] .dm-orb, .dm-ask__prompt, .dm-ask.is-open .dm-ask__prompt { transform: none; transition: opacity 120ms linear, visibility 0s; transition-delay: 0s; }
}

/* The demo leads the hero; the heading and buttons follow it. */
.hp-hero .st + .hp-hero__copy { margin-top: 96px; }
