/* ==========================================================================
   Banh Mi App — design system v2 (2026-10)
   One stylesheet for the studio site, every product page and legal page.
   (Legacy /styles.css stays only for the generated ViDash pages.)
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --bg: #fbf7f1;
  --bg-soft: #f4ece1;
  --surface: #ffffff;
  --surface-2: #fffcf7;
  --ink: #1a1410;
  --ink-2: #4b4139;
  --muted: #7d7065;
  --line: rgba(26, 20, 16, 0.1);
  --line-2: rgba(26, 20, 16, 0.06);

  --night: #15110d;
  --night-2: #221a13;
  --on-night: #f8f1e7;
  --on-night-2: rgba(248, 241, 231, 0.68);

  --crust: #e36a2b;
  --gold: #f6b547;
  --herb: #3f8e5a;
  --chili: #d8432e;
  --cream: #fff3dc;

  --accent: var(--crust);
  --accent-2: var(--gold);
  --accent-soft: #fce6d3;
  --accent-ink: #7a3410;
  --on-accent: #ffffff;

  --r-xs: 8px;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(26, 20, 16, 0.06), 0 2px 8px rgba(26, 20, 16, 0.05);
  --sh-2: 0 1px 2px rgba(26, 20, 16, 0.06), 0 14px 34px -10px rgba(26, 20, 16, 0.18);
  --sh-3: 0 2px 6px rgba(26, 20, 16, 0.08), 0 34px 70px -24px rgba(26, 20, 16, 0.34);

  --f-display: "Bricolage Grotesque", "Be Vietnam Pro", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --gh-h: 68px;
  --pbar-h: 60px;
}

/* Per-product themes ------------------------------------------------------ */
.p-snaptile { --accent: #1f7bff; --accent-2: #62b6ff; --accent-soft: #e4efff; --accent-ink: #0b3a82; }
.p-vd { --accent: #3463f0; --accent-2: #8aa6ff; --accent-soft: #e6ecff; --accent-ink: #15317a; }
.p-ad { --accent: #0b857f; --accent-2: #5fd6cf; --accent-soft: #dcf6f4; --accent-ink: #0a4a47; }
.p-shipper { --accent: #15a34a; --accent-2: #facc15; --accent-soft: #e1f6e7; --accent-ink: #0b4f25; }
.p-piano { --accent: #6b4bff; --accent-2: #f7c948; --accent-soft: #ece7ff; --accent-ink: #2a1a78; }
.p-animatch { --accent: #1e9bf0; --accent-2: #ffc531; --accent-soft: #e0f2ff; --accent-ink: #0b4c7a; --grass: #6fbf3b; }

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--gh-h) + 24px);
}
.is-product { scroll-padding-top: calc(var(--pbar-h) + 24px); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
kbd { font-family: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-s);
  background: var(--ink); color: #fff; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }

/* Language toggle (EN/VI spans live side by side in markup) */
.lang-en .lang-vi-content,
.lang-vi .lang-en-content { display: none !important; }

/* Type ------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1.2 var(--f-body);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}
.h1 { font-size: clamp(44px, 6.6vw, 88px); line-height: 0.98; letter-spacing: -0.03em; }
.h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1; letter-spacing: -0.028em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.12; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }
.grad-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding-block: clamp(80px, 10vw, 140px); position: relative; }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lede { max-width: 60ch; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font: 600 15.5px/1 var(--f-body); white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 12px 26px -14px rgba(26, 20, 16, 0.7); }
.btn-dark:hover { transform: translateY(-2px); background: #000; }
.btn-ghost { background: rgba(255, 255, 255, 0.6); border-color: var(--line); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-2px); background: #fff; border-color: rgba(26, 20, 16, 0.18); }
.btn-light { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: var(--on-night); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-light:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--sh-2); }
.btn-white:hover { transform: translateY(-2px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 22px 0 18px;
  border-radius: 16px;
  background: var(--ink); color: #fff;
  box-shadow: 0 14px 28px -16px rgba(26, 20, 16, 0.8);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.2s;
}
.store:hover { transform: translateY(-3px); background: #000; box-shadow: 0 22px 36px -18px rgba(26, 20, 16, 0.9); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store span { display: grid; gap: 2px; text-align: left; }
.store small { font-size: 11px; line-height: 1.1; opacity: 0.72; letter-spacing: 0.02em; }
.store b { font-size: 18px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }

.trust {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.trust svg { width: 18px; height: 18px; fill: none; stroke: var(--herb); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--bg-soft); color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
}
.chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip-dark { background: rgba(255, 255, 255, 0.12); color: var(--on-night); }
.chip-soon { background: #fff1d6; color: #8a5300; }

/* ==========================================================================
   Global header
   ========================================================================== */
.gh { position: sticky; top: 0; z-index: 60; height: var(--gh-h); color: var(--ink); transition: color 0.35s; }
.gh::before {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line-2);
  transition: opacity 0.35s, background-color 0.35s;
}
.is-product .gh { position: relative; }
.gh-inner { position: relative; height: 100%; display: flex; align-items: center; gap: 20px; }
.gh-logo { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--f-display); letter-spacing: -0.02em; flex: none; }
.gh-logo img { width: 34px; height: 34px; transition: transform 0.6s var(--spring); }
.gh-logo:hover img { transform: rotate(-10deg) scale(1.08); }
.gh-nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.gh-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill); background: none;
  font-size: 15px; font-weight: 500; color: inherit; opacity: 0.78;
  transition: background-color 0.2s, opacity 0.2s;
}
.gh-link:hover, .gh-link[aria-expanded="true"] { opacity: 1; background: rgba(26, 20, 16, 0.06); }
.gh-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.gh-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.gh-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Home: header floats over the dark hero until scrolled */
.is-home .gh:not(.is-scrolled) { color: var(--on-night); }
.is-home .gh:not(.is-scrolled)::before { opacity: 0; }
.is-home .gh:not(.is-scrolled) .gh-link:hover,
.is-home .gh:not(.is-scrolled) .gh-link[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); }
.is-home .gh:not(.is-scrolled) .lang-switch { background: rgba(255, 255, 255, 0.12); }
.is-home .gh:not(.is-scrolled) .lang-switch button { color: var(--on-night-2); }
.is-home .gh:not(.is-scrolled) .lang-switch::before { background: rgba(255, 255, 255, 0.92); }
.is-home .gh:not(.is-scrolled) .gh-burger span { background: var(--on-night); }
.is-home .gh:not(.is-scrolled) .gh-cta { background: #fff; color: var(--ink); }

/* Products mega menu */
.gh-item { position: relative; }
.gh-mega {
  position: absolute; top: calc(100% + 12px); left: -16px;
  width: min(680px, calc(100vw - 32px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(0.98); transform-origin: 60px 0;
  transition: opacity 0.25s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.gh-mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.gh-mega-title { padding: 10px 12px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gh-prod { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; transition: background-color 0.2s; }
.gh-prod:hover { background: var(--bg); }
.gh-prod img, .gh-prod .ph-icon { width: 44px; height: 44px; border-radius: 11px; box-shadow: var(--sh-1); flex: none; transition: transform 0.45s var(--spring); }
.gh-prod:hover img { transform: scale(1.08) rotate(-4deg); }
.gh-prod b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.gh-prod small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.gh-mega-foot {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 4px; padding: 12px 14px; border-radius: 16px; background: var(--bg);
  font-size: 14px; color: var(--ink-2);
}
.gh-mega-foot a { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.gh-mega-foot a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform 0.3s var(--ease); }
.gh-mega-foot a:hover svg { transform: translateX(3px); }

.ph-icon {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2b2f3a, #12151c); color: #9fe7ff;
}
.ph-icon svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Language switch */
.lang-switch {
  position: relative; display: inline-flex; padding: 3px;
  border-radius: var(--r-pill); background: rgba(26, 20, 16, 0.06);
  transition: background-color 0.35s;
}
.lang-switch::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: calc(50% - 3px); height: calc(100% - 6px);
  border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sh-1);
  transition: transform 0.5s var(--spring), background-color 0.35s;
}
.lang-vi .lang-switch::before { transform: translateX(100%); }
.lang-switch button {
  position: relative; z-index: 1;
  min-width: 38px; height: 30px; padding: 0 8px;
  border: 0; border-radius: var(--r-pill); background: none;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted);
  transition: color 0.3s;
}
.lang-en .lang-switch [data-lang-switch="en"],
.lang-vi .lang-switch [data-lang-switch="vi"] { color: var(--ink) !important; }

/* Burger + mobile sheet */
.gh-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; position: relative; }
.gh-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.45s var(--ease), top 0.45s var(--ease), background-color 0.3s; }
.gh-burger span:nth-child(1) { top: 17px; }
.gh-burger span:nth-child(2) { top: 25px; }
.gh-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.gh-burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.gh-sheet {
  position: fixed; inset: var(--gh-h) 0 0 0; z-index: 59;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 12px var(--gutter) 40px;
  background: var(--bg); color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.gh-sheet.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.gh-sheet .gh-mega-title { padding: 18px 4px 8px; }
.gh-sheet .gh-prod { padding: 10px 4px; }
.gh-sheet-links { display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.gh-sheet-links a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font: 600 20px/1.2 var(--f-display); }
.gh-sheet .gh-sheet-item { opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.gh-sheet.is-open .gh-sheet-item { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 40ms + 60ms); }
.is-sheet-open { overflow: hidden; }
.is-sheet-open .gh { color: var(--ink) !important; }
.is-sheet-open .gh::before { opacity: 1 !important; }
.is-sheet-open .gh .gh-burger span { background: var(--ink) !important; }
.is-sheet-open .is-home .gh:not(.is-scrolled) .lang-switch { background: rgba(26, 20, 16, 0.06); }
.is-sheet-open .is-home .gh:not(.is-scrolled) .lang-switch button { color: var(--muted); }
.is-sheet-open .is-home .gh:not(.is-scrolled) .lang-switch::before { background: var(--surface); }

@media (max-width: 960px) {
  .gh-nav, .gh-cta { display: none !important; }
  .gh-burger { display: block; }
}

/* ==========================================================================
   Product bar (sticky sub-navigation on product pages)
   ========================================================================== */
.pbar { position: sticky; top: 0; z-index: 55; }
.pbar::before {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.pbar-inner { position: relative; min-height: var(--pbar-h); display: flex; align-items: center; gap: 16px; }
.pbar-id { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--f-display); letter-spacing: -0.02em; flex: none; }
.pbar-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: var(--sh-1); }
.pbar-links { display: flex; align-items: center; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); padding-right: 16px; }
.pbar-links::-webkit-scrollbar { display: none; }
.pbar-links a { padding: 8px 12px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.pbar-links a:hover { color: var(--ink); background: rgba(26, 20, 16, 0.05); }
.pbar-links a[aria-current="page"], .pbar-links a.is-active { color: var(--accent-ink); background: var(--accent-soft); }
.pbar .btn { flex: none; }
.pbar-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

@media (max-width: 760px) {
  .pbar-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .pbar-id { order: 1; }
  .pbar .btn { order: 2; margin-left: auto; }
  .pbar-links { order: 3; width: 100%; margin: 6px 0 6px -12px; width: calc(100% + 12px); }
}

/* ==========================================================================
   Reveal + motion primitives
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js [data-split] .w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 70ms + var(--d, 0) * 1ms); }
.js [data-split].is-in .w > span { transform: none; }

@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); } 50% { transform: translate3d(0, var(--float, -12px), 0) rotate(calc(var(--rot, 0deg) * -1)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(6%, -4%, 0) scale(1.08); }
  66% { transform: translate3d(-5%, 5%, 0) scale(0.95); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }

/* Spotlight cards: JS feeds --mx/--my */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

[data-tilt] { transform-style: preserve-3d; transition: transform 0.6s var(--ease); will-change: transform; }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.hh {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--gh-h));
  padding: calc(var(--gh-h) + clamp(48px, 8vw, 112px)) 0 clamp(72px, 9vw, 128px);
  background: var(--night); color: var(--on-night);
}
.hh-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hh-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.7; animation: drift 22s var(--ease-io) infinite; }
.hh-blob.b1 { width: 52vw; height: 52vw; left: -14vw; top: -22vw; background: radial-gradient(circle, #f28a35 0%, rgba(242, 138, 53, 0) 70%); }
.hh-blob.b2 { width: 46vw; height: 46vw; right: -12vw; top: 4vw; background: radial-gradient(circle, #ffc95c 0%, rgba(255, 201, 92, 0) 70%); opacity: 0.45; animation-duration: 28s; animation-direction: reverse; }
.hh-blob.b3 { width: 40vw; height: 40vw; left: 30vw; bottom: -26vw; background: radial-gradient(circle, #3f8e5a 0%, rgba(63, 142, 90, 0) 70%); opacity: 0.45; animation-duration: 32s; }
.hh-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hh-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hh .eyebrow { color: var(--gold); }
.hh h1 { margin-top: 24px; font-size: clamp(48px, 7.2vw, 104px); line-height: 0.96; letter-spacing: -0.03em; }
.hh h1 em { font-style: normal; background: linear-gradient(95deg, #ffd27a 0%, #f6a141 45%, #ff7b4a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hh-lede { margin-top: 28px; max-width: 48ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--on-night-2); }
.hh-lede strong { color: var(--on-night); font-weight: 600; }
.hh-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hh .hh-cta .btn-accent { --accent: #f28a35; }

.hh-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.hh-stats div { display: grid; gap: 4px; }
.hh-stats b { font: 700 clamp(28px, 3vw, 40px)/1 var(--f-display); letter-spacing: -0.03em; }
.hh-stats span { font-size: 13.5px; color: var(--on-night-2); }

/* Constellation of product icons */
.orbit { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin-inline: auto; --px: 0; --py: 0; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.14); animation: spin 80s linear infinite; }
.orbit-ring.r1 { inset: 18%; }
.orbit-ring.r2 { inset: 2%; animation-duration: 120s; animation-direction: reverse; border-style: solid; border-color: rgba(255, 255, 255, 0.07); }
.orbit-ring.r1::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px 4px rgba(246, 181, 71, 0.7); }
.orbit-core {
  position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1;
  transform: translate(-50%, -50%) translate3d(calc(var(--px) * -6px), calc(var(--py) * -6px), 0);
  transition: transform 0.8s var(--ease);
}
.orbit-core img { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(242, 138, 53, 0.55)); }
.orbit-core::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 179, 87, 0.35), transparent 65%); }
.orbit-core::after { content: ""; position: absolute; inset: 0; border-radius: 26%; border: 2px solid rgba(255, 201, 92, 0.6); animation: pulse-ring 3.2s var(--ease) infinite; }
.orb {
  position: absolute; left: var(--x); top: var(--y); width: var(--s, 19%);
  transform: translate(-50%, -50%) translate3d(calc(var(--px) * var(--depth, 10) * 1px), calc(var(--py) * var(--depth, 10) * 1px), 0);
  transition: transform 0.9s var(--ease);
}
.orb a { display: block; animation: float var(--dur, 7s) var(--ease-io) infinite; animation-delay: var(--delay, 0s); }
.orb img, .orb .ph-icon {
  width: 100%; aspect-ratio: 1; border-radius: 23%;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.5s var(--spring);
}
.orb a:hover img, .orb a:hover .ph-icon { transform: scale(1.1) rotate(-4deg); }
.orb-label {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, 4px);
  white-space: nowrap; padding: 5px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 600; color: var(--on-night);
  opacity: 0; transition: opacity 0.3s, transform 0.4s var(--ease); pointer-events: none;
}
.orb a:hover .orb-label, .orb a:focus-visible .orb-label { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hh-inner { grid-template-columns: 1fr; }
  .orbit { max-width: 420px; order: -1; margin-bottom: -12px; }
}

/* Marquee strip */
.marquee { position: relative; overflow: hidden; padding-block: 26px; border-bottom: 1px solid var(--line); background: var(--surface-2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; font: 700 clamp(22px, 2.4vw, 30px)/1 var(--f-display); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; transition: color 0.2s; }
.marquee-item:hover { color: var(--crust); }
.marquee-item img, .marquee-item .ph-icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--sh-1); }
.marquee-sep { width: 10px; height: 10px; flex: none; border-radius: 3px; transform: rotate(45deg); background: var(--gold); }

/* ==========================================================================
   Home — product showcase
   ========================================================================== */
.group-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 24px; }
.group-head h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; }
.group-head p { color: var(--muted); max-width: 44ch; }
.group + .group { margin-top: clamp(56px, 7vw, 96px); }

.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gcard {
  --c1: #333; --c2: #111;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 600px; padding: 28px 28px 0;
  border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(120% 80% at 100% 0%, var(--c1), var(--c2));
  box-shadow: var(--sh-2);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.gcard:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.gcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.16), transparent 55%); opacity: 0; transition: opacity 0.4s; }
.gcard:hover::after { opacity: 1; }
.gcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gcard-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2); transition: transform 0.6s var(--spring); }
.gcard:hover .gcard-icon { transform: rotate(-8deg) scale(1.06); }
.gcard h3 { margin-top: 22px; font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -0.03em; }
.gcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.gcard .tagline { margin-top: 6px; font-weight: 600; color: var(--c-accent, #ffe08a); }
.gcard .copy { margin-top: 12px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }
.gcard-actions { position: relative; z-index: 3; display: flex; gap: 10px; margin-top: 20px; }
.gcard-actions .btn { height: 44px; font-size: 14.5px; }
.gcard-phone {
  position: relative; margin: 28px auto 0; width: 62%;
  transform: translateY(18%) rotate(var(--rot, -4deg));
  transition: transform 0.8s var(--ease);
}
.gcard:hover .gcard-phone { transform: translateY(9%) rotate(0deg); }
.gc-animatch { --c1: #4cc3ff; --c2: #1673c9; --c-accent: #ffe17a; }
.gc-piano { --c1: #6c4bff; --c2: #1d1450; --c-accent: #f7c948; }
.gc-shipper { --c1: #22c55e; --c2: #0d5e33; --c-accent: #fde047; }

.phone {
  position: relative; aspect-ratio: 9 / 19.5;
  padding: 3.2%; border-radius: 15% / 7%;
  background: linear-gradient(145deg, #2c2c30, #0b0b0d);
  box-shadow: 0 0 0 1.5px #3a3a40 inset, 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 18px 36px -18px rgba(0, 0, 0, 0.45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12.5% / 5.8%; background: #111; }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 30%); }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-grid > .wcard-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 0.9fr 1.1fr; column-gap: 40px; align-items: center; }
.wcard-wide > :not(.wcard-media) { grid-column: 1; }
.wcard-wide .wcard-media { grid-column: 2; grid-row: 1 / span 5; margin: -32px -32px -32px 0; padding: 32px 0 0 0; align-self: stretch; align-items: end; }
.wcard-wide .wcard-media img { border-radius: 16px 0 0 0; }
.wcard-media.ad-home { align-items: center; justify-content: center; margin: 28px -32px -32px; padding: 0; overflow: hidden; }
.wcard-media.ad-home img { border-radius: 0; box-shadow: none; transform: none; }
.wcard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.3s;
}
.wcard:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; }
.wcard::after, .tile::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.wcard:hover::after, .tile:hover::after { opacity: 1; }
.wcard, .tile { isolation: isolate; }
.wcard-top { display: flex; align-items: center; gap: 16px; }
.wcard-icon { width: 60px; height: 60px; border-radius: 14px; box-shadow: var(--sh-2); transition: transform 0.6s var(--spring); }
.wcard:hover .wcard-icon { transform: rotate(-8deg) scale(1.06); }
.wcard h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.03em; }
.wcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.wcard .tagline { margin-top: 18px; font-weight: 600; color: var(--accent); }
.wcard .copy { margin-top: 8px; color: var(--ink-2); max-width: 52ch; }
.wcard-actions { position: relative; z-index: 3; display: flex; gap: 10px; margin-top: 22px; }
.wcard-actions .btn { height: 44px; font-size: 14.5px; }
.wcard-media { margin: 28px -32px -32px; padding: 0 32px; flex: 1; display: flex; align-items: end; }
.wcard-media img { width: 100%; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 40px -18px rgba(26, 20, 16, 0.35); transform: translateY(14px); transition: transform 0.8s var(--ease); }
.wcard:hover .wcard-media img { transform: translateY(0); }

/* ==========================================================================
   Home — story / values
   ========================================================================== */
.story { background: var(--surface-2); border-block: 1px solid var(--line); }
.story-statement { font: 700 clamp(30px, 4.4vw, 58px)/1.1 var(--f-display); letter-spacing: -0.028em; max-width: 26ch; }
.story-statement .sw { color: rgba(26, 20, 16, 0.16); transition: color 0.5s var(--ease); }
.story-statement .sw.is-lit { color: var(--ink); }
.story-statement .sw.hl.is-lit { color: var(--crust); }
.story-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.story-copy { display: grid; gap: 18px; color: var(--ink-2); font-size: 17px; }
.story-sign { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-weight: 600; color: var(--ink); }
.story-sign img { width: 44px; height: 44px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value {
  padding: 24px; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.value-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--crust); transition: transform 0.6s var(--spring); }
.value:hover .value-ico { transform: rotate(-10deg) scale(1.1); }
.value-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { margin-top: 18px; font-size: 20px; }
.value p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* In the oven (upcoming) */
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lab {
  position: relative; display: grid; gap: 12px; align-content: start;
  padding: 26px; border-radius: var(--r-l);
  border: 1.5px dashed rgba(26, 20, 16, 0.16); background: transparent;
  transition: border-color 0.3s, background-color 0.3s, transform 0.5s var(--ease);
}
.lab:hover { border-color: var(--crust); background: var(--surface); transform: translateY(-4px); }
.lab-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-soft); color: var(--ink-2); }
.lab-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lab h3 { font-size: 21px; }
.lab h3 a::after { content: ""; position: absolute; inset: 0; }
.lab p { font-size: 14.5px; color: var(--ink-2); }
.lab .chip { justify-self: start; }

/* Newsletter / CTA panel */
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: clamp(28px, 4vw, 44px);
  background: linear-gradient(120deg, #e3632a 0%, #f28a35 45%, #f8b84c 100%);
  color: #fff;
}
.cta-panel::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%); z-index: -1; animation: drift 18s var(--ease-io) infinite; }
.cta-panel .cta-mark { position: absolute; right: 4%; bottom: -18%; width: 34%; opacity: 0.18; transform: rotate(-12deg); z-index: -1; }
.cta-panel h2 { font-size: clamp(32px, 4.2vw, 54px); }
.cta-panel p { margin-top: 14px; font-size: 18px; color: rgba(255, 255, 255, 0.88); }
.subscribe { display: flex; gap: 8px; padding: 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.95); box-shadow: 0 24px 48px -24px rgba(122, 52, 16, 0.6); }
.subscribe input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 0; background: none; font: 500 16px var(--f-body); color: var(--ink); outline: none; }
.subscribe input::placeholder { color: var(--muted); }
.subscribe .btn { height: 48px; }
.cta-note { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.8); }

@media (max-width: 960px) {
  .games-grid { grid-template-columns: 1fr; }
  .gcard { min-height: 0; }
  .gcard-phone { width: 48%; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid > .wcard-wide { display: flex; }
  .wcard-wide .wcard-media { margin: 28px -32px -32px; padding: 0 32px; }
  .wcard-wide .wcard-media img { border-radius: 16px 16px 0 0; }
  .story-body { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .group-head { flex-direction: column; align-items: start; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .games-grid { grid-template-columns: 1fr 1fr; }
  .games-grid .gcard:first-child { grid-column: 1 / -1; }
  .lab-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .values { grid-template-columns: 1fr; }
  .gcard-phone { width: 62%; }
  .subscribe { flex-direction: column; border-radius: 24px; }
  .subscribe .btn { width: 100%; }
}

/* ==========================================================================
   Product pages
   ========================================================================== */
.ph { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.ph-bg { position: absolute; inset: 0; z-index: -2; }
.ph-bg img { width: 100%; height: 120%; object-fit: cover; object-position: center top; }
.ph-glow { position: absolute; z-index: -1; width: 60vw; aspect-ratio: 1; border-radius: 50%; filter: blur(60px); opacity: 0.5; animation: drift 24s var(--ease-io) infinite; pointer-events: none; }
.ph-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.ph-copy { display: grid; gap: 22px; justify-items: start; }
.ph h1 { font-size: clamp(42px, 6vw, 80px); line-height: 1; letter-spacing: -0.03em; }
.ph .lede { max-width: 50ch; }
.ph-icon-lg { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--sh-3); }
.ph-visual { position: relative; display: grid; place-items: center; min-height: 420px; }

/* Phone fan */
.fan { position: relative; width: min(100%, 520px); aspect-ratio: 1 / 1.08; --px: 0; --py: 0; }
.fan .phone { position: absolute; width: 44%; top: 50%; left: 50%; transition: transform 1s var(--ease); }
.fan .phone.f1 { z-index: 3; transform: translate(-50%, -50%) translate3d(calc(var(--px) * 8px), calc(var(--py) * 8px), 0); }
.fan .phone.f2 { z-index: 2; transform: translate(-112%, -46%) rotate(-9deg) translate3d(calc(var(--px) * 16px), calc(var(--py) * 16px), 0) scale(0.9); }
.fan .phone.f3 { z-index: 1; transform: translate(12%, -46%) rotate(9deg) translate3d(calc(var(--px) * 16px), calc(var(--py) * 16px), 0) scale(0.9); }
.js .fan:not(.is-in) .phone.f2 { transform: translate(-50%, -50%) rotate(0) scale(0.85); }
.js .fan:not(.is-in) .phone.f3 { transform: translate(-50%, -50%) rotate(0) scale(0.85); }
.js .fan:not(.is-in) .phone.f1 { transform: translate(-50%, -42%); opacity: 0; }
.fan .phone.f1 { transition: transform 1.1s var(--ease), opacity 0.8s; }
.fan .phone.f2, .fan .phone.f3 { transition: transform 1.3s var(--ease) 0.15s; }

.sticker { position: absolute; z-index: 4; animation: float var(--dur, 6s) var(--ease-io) infinite; animation-delay: var(--delay, 0s); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22)); pointer-events: none; }
.float-card {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-3); color: var(--ink);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: float 7s var(--ease-io) infinite; --float: -8px;
}
.float-card .fc-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.float-card .fc-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-card small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

@media (max-width: 900px) {
  .ph-inner { grid-template-columns: 1fr; }
  .ph-visual { min-height: 0; margin-top: 12px; }
}

/* Features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: 1 / -1; }
.bento .row-2 { grid-row: span 2; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.tile h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.18; }
.tile p { color: var(--ink-2); font-size: 15px; }
.tile-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; transition: transform 0.6s var(--spring); }
.tile:hover .tile-ico { transform: rotate(-10deg) scale(1.1); }
.tile-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile-ico.num { font: 700 20px/1 var(--f-display); }
.tile-media { margin: 14px -28px -28px; flex: 1; display: flex; align-items: end; justify-content: center; }
.tile-media img { width: 100%; }
.tile-dark { background: var(--night); color: var(--on-night); border-color: transparent; }
.tile-dark p { color: var(--on-night-2); }
.tile-accent { background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); color: #fff; border-color: transparent; }
.tile-accent p { color: rgba(255, 255, 255, 0.82); }
.tile-accent .tile-ico { background: rgba(255, 255, 255, 0.16); color: #fff; }
.tile .big-num { font: 700 clamp(56px, 7vw, 92px)/0.9 var(--f-display); letter-spacing: -0.05em; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 1; }
  .bento .span-4.wide-md, .bento .span-6 { grid-column: 1 / -1; }
  .bento .row-2 { grid-row: auto; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: 1 / -1 !important; }
}

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; overflow: hidden; border-radius: var(--r-l); background: var(--line); border: 1px solid var(--line); }
.stat { display: grid; gap: 6px; align-content: start; padding: 30px 28px; background: var(--surface); }
.stat b { font: 700 clamp(40px, 4.6vw, 60px)/1 var(--f-display); letter-spacing: -0.045em; background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--accent-2))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--ink-2); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 18px/1 var(--f-display); }
.step h3 { margin-top: 20px; font-size: 21px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.step-art { margin: 20px 0 4px; height: 120px; display: grid; place-items: center; border-radius: var(--r-m); background: var(--accent-soft); overflow: hidden; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Gallery (horizontal scroll-snap) */
.gallery-wrap { position: relative; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 280px);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 12px var(--gutter) 40px;
  margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
}
.gallery::-webkit-scrollbar { display: none; }
@media (min-width: 1280px) {
  .gallery { margin-inline: calc((100vw - var(--maxw)) / -2); padding-inline: calc((100vw - var(--maxw)) / 2); scroll-padding-inline: calc((100vw - var(--maxw)) / 2); }
}
.shot { scroll-snap-align: start; margin: 0; display: grid; gap: 16px; }
.shot .phone { transition: transform 0.6s var(--ease); }
.shot:hover .phone { transform: translateY(-8px) rotate(-1.5deg); }
.shot figcaption { font: 700 18px/1.2 var(--f-display); letter-spacing: -0.02em; text-align: center; white-space: pre-line; }
.shot-mac { grid-auto-columns: clamp(300px, 44vw, 560px); }
.shot-mac img { border-radius: 14px; box-shadow: var(--sh-3); }
.gallery-nav { display: flex; gap: 10px; }
.gallery-nav button {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.3s var(--ease), background-color 0.2s, opacity 0.2s;
}
.gallery-nav button:hover { transform: scale(1.06); background: var(--ink); color: #fff; }
.gallery-nav button:disabled { opacity: 0.35; pointer-events: none; }
.gallery-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.head-row .section-head { margin-bottom: 0; }
@media (max-width: 700px) { .head-row { flex-direction: column; align-items: start; } }

/* Info / callout */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 20px 22px; border-radius: var(--r-m);
  background: var(--accent-soft); color: var(--accent-ink);
}
.callout svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.callout strong { display: block; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.callout p { font-size: 15px; color: color-mix(in srgb, var(--accent-ink) 85%, #000); }

/* Download band */
.dl {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--night); color: var(--on-night);
}
.dl::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), transparent 65%); animation: drift 20s var(--ease-io) infinite; }
.dl-icon { width: clamp(80px, 9vw, 112px); aspect-ratio: 1; border-radius: 24%; box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.7); }
.dl h2 { font-size: clamp(28px, 3.6vw, 46px); }
.dl p { margin-top: 10px; color: var(--on-night-2); max-width: 46ch; }
.dl .store { background: #fff; color: var(--ink); }
.dl .store:hover { background: #fff; }
@media (max-width: 860px) { .dl { grid-template-columns: 1fr; } }

/* Built-by note */
.built { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 28px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.built img { width: 64px; height: 64px; }
.built h2 { font-size: 22px; letter-spacing: -0.02em; }
.built p { margin-top: 6px; color: var(--ink-2); }
.built a { color: var(--crust); font-weight: 600; }
@media (max-width: 560px) { .built { grid-template-columns: 1fr; } }

/* More from Banh Mi App */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.more-card {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.more-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.more-card img, .more-card .ph-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--sh-1); flex: none; transition: transform 0.5s var(--spring); }
.more-card:hover img { transform: rotate(-8deg) scale(1.06); }
.more-card b { display: block; font: 700 17px/1.2 var(--f-display); letter-spacing: -0.02em; }
.more-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.more-card .go { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); transition: transform 0.4s var(--ease), background-color 0.2s, color 0.2s; flex: none; }
.more-card:hover .go { background: var(--ink); color: #fff; transform: translateX(3px); }
.more-card .go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p-snaptile .more [data-p="snaptile"],
.p-vd .more [data-p="virtualdisplay"],
.p-ad .more [data-p="airdisplay"],
.p-shipper .more [data-p="shipper"],
.p-piano .more [data-p="piano"],
.p-animatch .more [data-p="animatch"] { display: none; }

/* ==========================================================================
   AniMatch 3 specifics
   ========================================================================== */
.am-hero { background: linear-gradient(180deg, #7fd0ff 0%, #c9ecff 55%, #eaf8ff 100%); }
.am-hero .ph-bg img { opacity: 0.9; }
.am-hero .ph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(234, 248, 255, 0.95) 0%, rgba(234, 248, 255, 0.82) 38%, rgba(234, 248, 255, 0.1) 68%, rgba(234, 248, 255, 0) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(251, 247, 241, 0) 22%); }
.am-logo { width: min(420px, 82%); filter: drop-shadow(0 18px 30px rgba(11, 76, 122, 0.25)); transform-origin: 30% 80%; }
.js .am-logo { animation: am-bounce-in 1.2s var(--spring) both; }
@keyframes am-bounce-in { 0% { transform: scale(0.6) rotate(-6deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.am-hero h1 { font-size: clamp(36px, 4.8vw, 64px); color: #0b3b61; }
.am-hero .lede { color: #2e4a5f; }
.am-hero .eyebrow { color: #0e7fd0; }
@media (max-width: 900px) {
  .am-hero .ph-bg::after { background: linear-gradient(180deg, rgba(234, 248, 255, 0.92) 0%, rgba(234, 248, 255, 0.88) 55%, rgba(234, 248, 255, 0.55) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(251, 247, 241, 0) 20%); }
}

/* Chips legend */
.chips-legend { display: grid; gap: 10px; margin-top: 8px; }
.chips-legend div { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--bg); transition: background-color 0.2s, transform 0.4s var(--ease); }
.chips-legend div:hover { background: var(--accent-soft); transform: translateX(4px); }
.chips-legend img { width: 64px; height: auto; flex: none; }
.chips-legend .pair { display: flex; gap: 4px; flex: none; }
.chips-legend .pair img { width: 52px; }
.chips-legend span { font-size: 14.5px; color: var(--ink-2); }
.chips-legend b { color: var(--ink); }

/* Match-three demo: a pig slides in, three line up, they get rescued */
.m3 { position: relative; height: 220px; margin: 16px -8px 0; border-radius: var(--r-m); background: linear-gradient(180deg, #9be06a, #6fbf3b); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.08); overflow: hidden; }
.m3::before { content: ""; position: absolute; inset: 14px; border-radius: 14px; background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px); background-size: 25% 50%; }
.m3-row { position: absolute; left: 4%; right: 4%; top: 44%; height: 0; }
.m3 .a { position: absolute; top: 0; width: 19%; transform: translate(-50%, -50%); }
.m3 .a1 { left: 14%; }
.m3 .a2 { left: 38%; }
.m3 .a3 { left: 62%; animation: m3-slide 4.4s var(--ease) infinite; }
.m3 .a1, .m3 .a2 { animation: m3-pop 4.4s var(--ease) infinite; }
.m3 .a3 img { animation: m3-pop-img 4.4s var(--ease) infinite; }
/* the third pig appears on the right, slides left along its ↔ chip, then all three are rescued */
@keyframes m3-slide {
  0%, 14% { left: 88%; }
  36%, 100% { left: 62%; }
}
@keyframes m3-pop {
  0%, 46% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  54% { transform: translate(-50%, -62%) scale(1.12); opacity: 1; }
  68% { transform: translate(-50%, -140%) scale(0.4); opacity: 0; }
  74% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  84%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes m3-pop-img {
  0% { transform: scale(0.4); opacity: 0; }
  8%, 46% { transform: scale(1); opacity: 1; }
  54% { transform: translateY(-12%) scale(1.12); opacity: 1; }
  68%, 100% { transform: translateY(-90%) scale(0.4); opacity: 0; }
}
.m3-spark { position: absolute; left: 38%; top: 50%; width: 70%; aspect-ratio: 2; transform: translate(-50%, -50%); pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 236, 140, 0.6) 40%, transparent 70%); opacity: 0; animation: m3-spark 4.4s var(--ease) infinite; }
@keyframes m3-spark { 0%, 47% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); } 56% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 72%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } }
.m3-label { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.92); font: 700 13px/1 var(--f-body); color: #2c6a12; white-space: nowrap; box-shadow: var(--sh-1); }

/* Board grows 4x4 -> 8x8 */
.grow { display: grid; place-items: center; height: 170px; margin-top: 8px; }
.grow-board { display: grid; gap: 3px; padding: 6px; border-radius: 12px; background: #5a9f2f; grid-template-columns: repeat(var(--n, 4), 1fr); width: 150px; aspect-ratio: 1; transition: all 0.6s var(--ease); }
.grow-board i { border-radius: 3px; background: #9be06a; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.grow-label { margin-top: 8px; font: 700 15px/1 var(--f-display); color: var(--accent-ink); text-align: center; }

.worlds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.world { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; background: var(--bg); }
.world i { width: 24px; height: 24px; border-radius: 50%; }
.world.farm i { background: linear-gradient(135deg, #9be06a, #4c9a2a); }
.world.forest i { background: linear-gradient(135deg, #3d8b52, #1f5a33); }
.world.snow i { background: linear-gradient(135deg, #e8f6ff, #9ccdf0); }
.world.safari i { background: linear-gradient(135deg, #f7c96b, #d58a2c); }

.ui-icons { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 12px; }
.ui-icons img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18)); transition: transform 0.5s var(--spring); }
.tile:hover .ui-icons img:nth-child(1) { transform: rotate(-12deg) scale(1.1); }
.tile:hover .ui-icons img:nth-child(2) { transform: rotate(10deg) scale(1.1); }
.tile:hover .ui-icons img:nth-child(3) { transform: rotate(-6deg) scale(1.1); }

/* ==========================================================================
   SnapTile specifics — live shortcut playground
   ========================================================================== */
.st-hero { background: radial-gradient(80% 60% at 80% 0%, #dbe9ff 0%, transparent 60%), radial-gradient(60% 50% at 0% 100%, #fff1e0 0%, transparent 60%); }
.mac {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: var(--sh-3), 0 0 0 1px rgba(26, 20, 16, 0.08);
}
.mac-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; background: #f1f1f3; border-bottom: 1px solid #e3e3e7; }
.mac-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mac-bar i:nth-child(2) { background: #febc2e; }
.mac-bar i:nth-child(3) { background: #28c840; }
.mac-bar span { margin-left: 10px; font-size: 12px; color: #8a8a90; font-weight: 500; }
.keycaps { display: inline-flex; gap: 6px; align-items: center; }
.kc {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 9px; background: linear-gradient(#fff, #f2f2f5);
  box-shadow: 0 0 0 1px rgba(26, 20, 16, 0.12), 0 3px 0 rgba(26, 20, 16, 0.12), 0 6px 12px -6px rgba(26, 20, 16, 0.3);
  font: 600 16px/1 var(--f-body); color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
}
.kc.is-down { transform: translateY(2px); box-shadow: 0 0 0 1px rgba(26, 20, 16, 0.12), 0 1px 0 rgba(26, 20, 16, 0.12); background: var(--accent); color: #fff; }

.play { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.play-list { display: grid; gap: 8px; }
.play-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.play-item:hover { transform: translateX(4px); }
.play-item.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.play-item > span:first-child { font-weight: 600; }
.play-item .kc { min-width: 32px; height: 32px; font-size: 14px; padding: 0 8px; }
.play-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: linear-gradient(140deg, #5b8cff 0%, #9f7bff 50%, #ffa26b 100%); box-shadow: var(--sh-3), inset 0 0 0 8px #15171d; }
.play-screen::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 18px; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(6px); z-index: 2; }
.play-area { position: absolute; inset: 30px 12px 12px; }
.play-ghost { position: absolute; inset: 0; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.14); transition: all 0.5s var(--ease); opacity: 0; }
.play-win {
  position: absolute; left: 22%; top: 18%; width: 46%; height: 58%;
  border-radius: 10px; background: #fff; overflow: hidden;
  box-shadow: 0 20px 40px -16px rgba(10, 20, 60, 0.55);
  transition: left 0.6s var(--ease), top 0.6s var(--ease), width 0.6s var(--ease), height 0.6s var(--ease);
}
.play-win .mac-bar { height: 20px; padding: 0 8px; gap: 5px; }
.play-win .mac-bar i { width: 8px; height: 8px; }
.play-win-body { padding: 10px; display: grid; gap: 6px; }
.play-win-body i { height: 7px; border-radius: 4px; background: #e9ecf3; }
.play-win-body i:nth-child(1) { width: 55%; background: #cfe0ff; height: 10px; }
.play-win-body i:nth-child(3) { width: 80%; }
.play-win-body i:nth-child(4) { width: 65%; }
.play-win.w-b { left: 56%; top: 30%; width: 38%; height: 50%; z-index: 0; opacity: 0.9; }
.play-caption { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 900px) { .play { grid-template-columns: 1fr; } .play-visual { order: -1; } }

.pros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pro { display: grid; justify-items: center; gap: 14px; padding: 28px 16px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.pro:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.pro span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.pro svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pro p { font: 700 17px/1 var(--f-display); }
@media (max-width: 700px) { .pros { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Virtual Display specifics
   ========================================================================== */
.vd-hero { background: radial-gradient(70% 60% at 85% 10%, #dfe7ff 0%, transparent 60%), radial-gradient(50% 50% at 0% 90%, #fff0e2 0%, transparent 60%); }
.vd-stack { position: relative; width: min(100%, 640px); aspect-ratio: 1.2; --px: 0; --py: 0; }
.vd-stack::before { content: ""; position: absolute; inset: 8% 2% 6% 4%; border-radius: 28px; background: radial-gradient(120% 90% at 20% 0%, #4f8dff 0%, #1f4fd6 45%, #0d2a7a 100%); box-shadow: var(--sh-3); }
.vd-stack .vw { position: absolute; width: 74%; height: auto; filter: drop-shadow(0 24px 40px rgba(8, 24, 80, 0.45)); transition: transform 1.1s var(--ease), opacity 0.8s; }
.vd-stack .vw1 { left: 0; top: 2%; transform: translate3d(calc(var(--px) * 10px), calc(var(--py) * 10px), 0) rotate(-3deg); }
.vd-stack .vw2 { right: -2%; top: 22%; transform: translate3d(calc(var(--px) * 18px), calc(var(--py) * 18px), 0) rotate(2deg); }
.vd-stack .vw3 { left: 10%; bottom: 0; width: 66%; transform: translate3d(calc(var(--px) * 26px), calc(var(--py) * 26px), 0); }
.js .vd-stack:not(.is-in) .vw { opacity: 0; transform: translateY(30px) scale(0.94); }
.vd-stack.is-in .vw2 { transition-delay: 0.15s; }
.vd-stack.is-in .vw3 { transition-delay: 0.3s; }
.vd-stack .float-card { z-index: 6; }
.vd-pair { position: relative; flex: none; height: clamp(200px, 22vw, 290px); margin-top: 22px; overflow: hidden; }
.vd-pair img { position: absolute; width: 62%; filter: drop-shadow(0 18px 30px rgba(21, 49, 122, 0.3)); transition: transform 0.8s var(--ease); }
.vd-pair img:first-child { left: 4%; top: 6%; transform: rotate(-2deg); }
.vd-pair img:last-child { right: 4%; top: 18%; transform: rotate(2deg); }
.tile:hover .vd-pair img:first-child { transform: rotate(-3deg) translateY(-8px); }
.tile:hover .vd-pair img:last-child { transform: rotate(3deg) translateY(-14px); }
.vd-panel { margin: 18px -28px -28px; overflow: hidden; flex: 1 1 0; min-height: 320px; align-items: start; background: linear-gradient(180deg, #e6ecff, #c9d6ff); padding: 20px 18px 0; }
.vd-panel img { width: 100%; filter: drop-shadow(0 14px 24px rgba(21, 49, 122, 0.35)); }
.vd-lockshot { margin-top: 16px; padding: 0 12px; }
.vd-lockshot img { width: 100%; filter: drop-shadow(0 18px 30px rgba(21, 49, 122, 0.3)); }
.vd-guide { margin-top: 20px; display: flex; justify-content: center; padding: 28px; border-radius: var(--r-l); background: radial-gradient(120% 90% at 20% 0%, #4f8dff 0%, #1f4fd6 45%, #0d2a7a 100%); }
.vd-guide img { width: min(100%, 440px); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }
.shot-mac .shot img { width: 100%; border-radius: 14px; box-shadow: var(--sh-3); }
.wcard-media.vd-home { align-items: center; justify-content: center; padding-bottom: 22px !important; background: radial-gradient(120% 90% at 20% 0%, #4f8dff 0%, #1f4fd6 45%, #0d2a7a 100%); border-radius: 18px 18px 0 0; margin: 28px 0 -32px; padding: 22px 18px 0; }
.wcard-media.vd-home img { border-radius: 10px 10px 0 0; box-shadow: none; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35)); }
.vd-steps { display: grid; gap: 10px; counter-reset: vds; }
.vd-step { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s; }
.vd-step:hover { transform: translateX(4px); border-color: var(--accent); }
.vd-step b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 16px/1 var(--f-display); }
/* ==========================================================================
   AirDisplay specifics
   ========================================================================== */
.ad-hero { background: radial-gradient(70% 60% at 85% 10%, #d6f5f2 0%, transparent 60%), radial-gradient(50% 50% at 0% 90%, #fff0e2 0%, transparent 60%); }
.ad-stage { position: relative; width: min(100%, 640px); aspect-ratio: 1.3; display: grid; place-items: center; --px: 0; --py: 0; }
.ad-stage::before { content: ""; position: absolute; inset: 2% 3%; border-radius: 28px; rotate: 4deg; background: radial-gradient(120% 90% at 20% 0%, #3fd0c7 0%, #0b857f 45%, #07403d 100%); box-shadow: var(--sh-3); transform: translate3d(calc(var(--px) * -6px), calc(var(--py) * -6px), 0); transition: transform 1.1s var(--ease); }
.ad-stage .ad-shot { position: relative; width: 94%; border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(4, 40, 38, 0.7); transform: translate3d(calc(var(--px) * 12px), calc(var(--py) * 12px), 0) rotate(-1.5deg); transition: transform 1.1s var(--ease), opacity 0.8s; }
.ad-stage .ad-badge { position: absolute; z-index: 5; left: -2%; bottom: 2%; width: 20%; border-radius: 23%; box-shadow: 0 20px 40px -12px rgba(4, 40, 38, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.4); animation: float 7s var(--ease-io) infinite; }
.js .ad-stage:not(.is-in) .ad-shot { opacity: 0; transform: translateY(30px) scale(0.94); }
.ad-stage .float-card { z-index: 6; }
.ad-media { margin: 18px -28px -28px; padding: 0; overflow: hidden; border-radius: 0 0 var(--r-l) var(--r-l); }
.ad-media img { width: 100%; transition: transform 1s var(--ease); }
.tile:hover .ad-media img { transform: scale(1.03); }
.ad-fill { flex: 1 1 0; min-height: 200px; }
.ad-fill img { height: 100%; object-fit: cover; object-position: 88% 50%; }
.p-ad .vd-panel, .p-ad .vd-guide { background: radial-gradient(120% 90% at 20% 0%, #3fd0c7 0%, #0b857f 45%, #07403d 100%); }
.p-ad .vd-panel img { filter: drop-shadow(0 14px 24px rgba(4, 40, 38, 0.45)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Shipper / Piano heroes */
.sr-hero { background: radial-gradient(70% 70% at 85% 10%, #d8f7e2 0%, transparent 60%), radial-gradient(60% 50% at 0% 100%, #fff6c8 0%, transparent 60%); }
.pz-hero { background: radial-gradient(90% 80% at 80% 0%, #3b2a9a 0%, #1b1446 55%, #120d2e 100%); color: #f3efff; }
.pz-hero h1 { color: #fff; }
.pz-hero .lede { color: rgba(243, 239, 255, 0.78); }
.pz-hero .eyebrow { color: var(--accent-2); }
.pz-hero .trust { color: rgba(243, 239, 255, 0.7); }
.pz-hero .trust svg { stroke: #8bf0b4; }
.pz-hero .store { background: #fff; color: var(--ink); }
.pz-stars { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 15%, #fff, transparent), radial-gradient(1px 1px at 75% 55%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 30%, #fff, transparent), radial-gradient(1px 1px at 45% 85%, #fff, transparent), radial-gradient(1px 1px at 20% 45%, #fff, transparent), radial-gradient(1.5px 1.5px at 65% 90%, #fff, transparent); opacity: 0.7; animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: 0.25; } }
.note { position: absolute; z-index: 4; font-size: 34px; color: var(--accent-2); animation: float var(--dur, 6s) var(--ease-io) infinite; animation-delay: var(--delay, 0s); text-shadow: 0 6px 18px rgba(247, 201, 72, 0.5); pointer-events: none; }

/* ==========================================================================
   Legal + support pages (privacy, support, delete account)
   ========================================================================== */
.pp-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 3px; pointer-events: none; }
.pp-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pp-main, .st-main, .doc-main { overflow-wrap: break-word; width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.pp-hero { display: grid; gap: 18px; padding-bottom: clamp(28px, 4vw, 44px); margin-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.pp-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.045em; }
.pp-hero > p:not(.pp-date) { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 62ch; }
.pp-date { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.pp-date svg, .pp-date .inline-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.pp-content { display: grid; gap: clamp(28px, 4vw, 44px); }
.pp-section { display: grid; gap: 14px; scroll-margin-top: calc(var(--pbar-h) + 24px); }
.pp-section > h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 12px; }
.pp-section > h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg) translateY(-3px); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.pp-section p, .pp-section li { color: var(--ink-2); }
.pp-section a, .pz-faq a, .doc a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.pp-section a:hover { text-decoration-color: var(--accent); }
.pp-section ul, .pp-section ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.pp-section strong { color: var(--ink); }
.pp-glass, .pp-permission { padding: clamp(20px, 3vw, 28px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.pp-permission h3 { font-size: 19px; }
.pp-stack { display: grid; gap: 12px; }
.pp-info-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pp-info-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.pp-info-card h3 { font-size: 18px; margin-bottom: 6px; }
.pp-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 18px; }
.pp-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pp-mini-grid > span, .pp-mini-grid > div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.pp-mini-grid i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157a3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.pp-contact, .pz-contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--r-l);
  background: var(--night); color: var(--on-night);
}
.pp-contact p, .pz-contact p { color: var(--on-night-2); }
.pp-contact strong { display: block; margin-top: 6px; color: var(--on-night); }
.pp-contact a, .pz-contact a { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; transition: transform 0.4s var(--ease); }
.pp-contact a:hover, .pz-contact a:hover { transform: translateY(-2px); }
.pp-download { display: inline-flex; }

/* Support pages (FAQ) reuse these */
.doc-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.doc-head .st-version { justify-self: start; }
.st-version { justify-self: start; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.st-section-heading { display: grid; gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.st-section-heading h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.04em; }
.st-section-heading p { color: var(--ink-2); font-size: 17px; max-width: 62ch; }
.st-section + .st-section { margin-top: clamp(40px, 6vw, 72px); }
.pz-faq { display: grid; gap: 10px; }
.pz-faq details { border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, box-shadow 0.3s; interpolate-size: allow-keywords; }
.pz-faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--sh-1); }
.pz-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font: 600 17px/1.35 var(--f-body); }
.pz-faq summary::-webkit-details-marker { display: none; }
.pz-faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1410' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform 0.4s var(--ease), background-color 0.2s; }
.pz-faq details[open] summary::after { transform: rotate(135deg); background-color: var(--accent-soft); }
.pz-faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.pz-faq details[open]::details-content { block-size: auto; }
.pz-faq details > p, .pz-faq details > div, .pz-faq details > ul, .pz-faq details > ol { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }
.pz-faq details > p + p { padding-top: 0; }
.pz-faq ul, .pz-faq ol { padding-left: 42px; }
.pz-faq b, .pz-faq strong { color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.gf { position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 80px); background: var(--night); color: var(--on-night); padding-top: clamp(56px, 7vw, 96px); }
.gf-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.gf-brand { display: grid; gap: 16px; align-content: start; max-width: 34ch; }
.gf-brand .gh-logo { color: var(--on-night); }
.gf-brand p { color: var(--on-night-2); font-size: 15px; }
.gf-mail { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); font-weight: 600; font-size: 14.5px; transition: background-color 0.2s, transform 0.4s var(--ease); }
.gf-mail:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.gf-mail svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gf-col h2 { font: 700 12px/1 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night-2); margin-bottom: 18px; }
.gf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gf-col a { font-size: 15px; color: var(--on-night); opacity: 0.85; transition: opacity 0.2s, color 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.gf-col a:hover { opacity: 1; color: var(--gold); }
.gf-col .soon { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); background: rgba(246, 181, 71, 0.18); color: var(--gold); }
.gf-word { margin-top: clamp(48px, 6vw, 80px); font: 800 clamp(64px, 16vw, 230px)/0.8 var(--f-display); letter-spacing: -0.06em; white-space: nowrap; text-align: center; background: linear-gradient(180deg, rgba(248, 241, 231, 0.16), rgba(248, 241, 231, 0.02) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; transform: translateY(12%); }
.gf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13.5px; color: var(--on-night-2); position: relative; z-index: 1; }
.gf-bottom a:hover { color: var(--on-night); }
.gf-flag { display: inline-flex; align-items: center; gap: 8px; }
.gf-flag i { width: 18px; height: 12px; border-radius: 2px; background: #da251d; position: relative; }
.gf-flag i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%); background: #ffcd00; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@media (max-width: 900px) { .gf-top { grid-template-columns: 1fr 1fr; } .gf-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .gf-top { grid-template-columns: 1fr; } }

/* View transitions ------------------------------------------------------- */
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: var(--ease); }

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
  .m3 .a, .m3 .a img, .m3-spark { animation: none !important; }
  .m3 .a3 { left: 62%; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
