/* The site's stylesheet. Every page's body carries `home`: the app's painted
   world after mockup c (docs/plans/2026-10-08-web-landing-crayon.md), on the
   landing and, since docs/plans/2026-10-10-web-pages-crayon.md, on the
   documents, the share pages and the not-found page. The unscoped rules at the
   top are the base the `.home` rules build on. Light only, while the app's
   screens are not settled (docs/project-brief.md §3). */
@font-face {
  font-family: "Space Grotesk";
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/SpaceGrotesk-500-latin.1b1a8131.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/SpaceGrotesk-500-vietnamese.d5eb999d.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/SpaceGrotesk-700-latin.35f8aec5.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/SpaceGrotesk-700-vietnamese.96a6d0a7.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/IBMPlexMono-500-latin.01d28544.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/IBMPlexMono-500-vietnamese.781633d9.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Keyboard users: a link past the nav, shown only when focused, and a
   visible ring on whatever has focus. */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.skip:focus { top: 12px; }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --ink: #1b065e;
  --muted: color-mix(in srgb, var(--ink) 66%, transparent);
  --faint: color-mix(in srgb, var(--ink) 62%, transparent);
  --hair: rgba(27, 6, 94, 0.16);
  --line: rgba(27, 6, 94, 0.05);
  --line2: rgba(27, 6, 94, 0.08);
  --card: #ebe8df;
  /* The cubes' faces fill; their lips carry text, which needs the contrast. */
  --blue: #2e6dea;
  --blue-ink: #134ec3;
  --orange: #fd7f0f;
  --orange-ink: #c75a00;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { background: var(--paper); }
/* body.home's --paper, below a page shorter than the window. */
html:has(> body.home) { background: #fcf4e2; }

body.landing {
  margin: 0;
  color: var(--ink);
  font: 500 16px/1.55 var(--display);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  /* The drafting grid: fine 36 px, major 180 px. */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(var(--line2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px, 180px 180px, 180px 180px;
}

.mono { font-family: var(--mono); font-weight: 500; }

.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(16px, 5vw, 48px);
  padding-right: clamp(16px, 5vw, 48px);
}

a { color: inherit; }

/* ── nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--hair);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nav-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

/* The app's icon, the two cubes, rounded as on a home screen. */
.logo { display: block; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--ink); }

.langs { display: flex; gap: 4px; font-size: 12px; letter-spacing: 0.12em; }

.langs a {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}

.langs a:hover { color: var(--ink); }

.langs a[aria-current] { border-color: var(--ink); color: var(--ink); }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-ink);
}

.measure > span:nth-child(3) { white-space: nowrap; }

.tick { width: 1px; height: 9px; background: var(--faint); flex-shrink: 0; }

.dim-rule { flex: 1; height: 1px; min-width: 16px; background: var(--faint); }

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

/* The download block: the code to scan from a computer beside the App
   Store's line; on a phone, where there is nothing to scan, the line alone. */
.get {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 470px;
  padding: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--blue);
}

.qr {
  position: relative;
  flex-shrink: 0;
  width: 132px;
  height: 132px;
  padding: 4px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: #fff;
}

.qr-code { display: block; width: 100%; height: 100%; }

/* Until the App Store link exists the code is a placeholder that encodes
   nothing, so it is blurred past scanning (the owner, 2026-10-08). */
.qr-soon .qr-code { filter: blur(3px); opacity: .7; }

.qr img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 7px;
}

.get-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }

.get-label { margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); }

.get-hint { margin: -4px 0 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }

.badge, .badge img { display: block; width: 150px; height: auto; }

/* Not a link until the App Store's is set. */
.badge-soon { opacity: 0.55; }

.get-later { margin: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

.btn {
  padding: 13px 24px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.measure {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin: 22px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ── the cubes, Home's mascot: the blue calm, the orange bouncy ── */
.cubes { display: block; overflow: visible; }

.cb-blue { transform-origin: 66px 136px; animation: cb-blue 5s ease-in-out infinite; }
.cb-tie { transform-origin: 66px 108px; animation: cb-tie 5s ease-in-out infinite; }
.cb-shadow-blue { transform-origin: 66px 142px; animation: cb-shadow-blue 5s ease-in-out infinite; }
/* In the hero the orange cube hops twice and rests; the closing band's
   hops on. */
.cb-orange { transform-origin: 165px 136px; animation: cb-hop-twice 8s ease-in-out infinite; }
.cb-cap { transform-origin: 165px 60px; animation: cb-cap-twice 8s ease-in-out infinite; }
.cb-shadow-orange { transform-origin: 164px 142px; animation: cb-shadow-twice 8s ease-in-out infinite; }
.cubes-end .cb-orange { animation: cb-hop 1.8s ease-in-out infinite; }
.cubes-end .cb-cap { animation: cb-cap 1.8s ease-in-out infinite; }
.cubes-end .cb-shadow-orange { animation: cb-shadow 1.8s ease-in-out infinite; }

.lp { overflow-x: clip; }

.end .qr { border-color: var(--paper); }

.end .get-label { color: var(--paper); }

.end .get-hint { color: color-mix(in srgb, var(--paper) 78%, transparent); }

.end .get-later { color: rgba(255, 255, 255, 0.6); }

.end .status { color: var(--paper); }

.end .btn-solid { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.end .btn-solid:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.end .btn-ghost { border-color: var(--paper); color: var(--paper); }
.end .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.foot {
  padding-top: 32px;
  padding-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.foot footer, .foot p { margin: 0; }

.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 24px; align-items: start; }

.foot-brand { display: flex; flex-direction: column; gap: 6px; }

.foot-icon { display: block; width: 24px; height: 24px; margin-bottom: 4px; border: 1px solid var(--ink); border-radius: 6px; }

.foot-links { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }

.foot-langs { display: flex; gap: 4px; }

.foot-langs a { padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; }

.foot-langs a[aria-current] { border-color: var(--ink); }

.foot-rule { max-width: none; margin: 24px 0 0; }

.foot a { color: var(--ink); }

/* ── documents: the text on the cream paper ── */
.home .doc { max-width: 760px; padding-top: 8px; padding-bottom: clamp(56px, 8vw, 96px); }

.home .doc > :first-child { margin-top: 0; }

.home .doc h2 {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 13, 79, 0.12);
  font: 800 24px/1.25 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.home .doc > h2:first-child { padding-top: 0; border-top: 0; }

.home .doc p, .home .doc li { margin: 12px 0 0; font-size: 17px; line-height: 1.65; color: var(--body); }

.home .doc ul { margin: 12px 0 0; padding-left: 22px; }

.home .doc li::marker { color: var(--kicker); }

.home .doc a { color: var(--kicker); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* The policy's contents: one soft panel, the landing's. */
.home .doc .contents {
  margin-top: 0;
  padding: 20px 24px;
  border: 1px solid rgba(22, 13, 79, 0.1);
  border-radius: 24px;
  background: var(--card);
  font: 400 15px/1.9 var(--display);
  color: var(--body);
}

.home .doc .contents strong { font-weight: 800; color: var(--ink); }

.home .doc .contents a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }

.home .doc .contents a:hover { color: var(--kicker); text-decoration: underline; text-underline-offset: 3px; }

/* ── share pages and the not-found page: one column on the cream paper ── */
.home .share-col { max-width: 560px; margin: 0; padding: 8px 0 clamp(48px, 7vw, 80px); }

.home .share-card {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(22, 13, 79, 0.1);
  border-radius: 24px;
  background: var(--card);
}

.home .share .mark { display: block; width: 64px; height: 64px; }

.home .share .cubes { width: 160px; height: auto; }

.home .share .subtitle { margin: 18px 0 0; font: 500 11px/1.7 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--kicker); }

.home .share .line { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--body); }

.home .share .code { margin: 8px 0 0; font: 900 clamp(2.2rem, 9vw, 3rem)/1.1 var(--display); letter-spacing: 0.08em; color: var(--ink); }

.home .share .copy { display: inline-block; margin-top: 8px; font: 700 15px/1.4 var(--display); color: var(--kicker); text-decoration: underline; text-underline-offset: 3px; }

.home .share .small { margin: 14px 0 0; font-size: 15px; line-height: 1.45; color: var(--body); }

.home .share .hint {
  display: flex;
  gap: 10px;
  margin: 24px 0 16px;
  padding: 12px 16px;
  border: 1px solid rgba(22, 13, 79, 0.1);
  border-radius: 16px;
  background: var(--card);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.home .share .hint > span:first-child { color: var(--kicker); }

/* "Open in Lucimind": the landing's nav button, full width. */
.home .share .open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  margin-top: 24px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  box-shadow: 0 8px 20px rgba(22, 15, 65, 0.25);
  font: 800 16px/1.2 var(--display);
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  transition: background 0.2s ease;
}

.home .share .open:hover { background: var(--kicker); color: #fff; }

.home .share .hint:not([hidden]) + .open { margin-top: 0; }

.home .share .disc { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }

.home .share .fallback { margin: 14px 0 0; font-size: 15px; color: var(--body); }

.home .share .fallback a { color: var(--kicker); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.home .share .stores { margin-top: 40px; }

.home .share .stores .small { margin: 0 0 14px; }

.home .share .hint[hidden], .home .share .fallback[hidden], .home .share .copy[hidden] { display: none; }

@media (max-width: 600px) {
  .qr, .get-label, .get-hint { display: none; }
  .get { max-width: none; }
}

/* ── motion: the hero's words rise in, each to its own beat ── */
.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.21s; }
.hero-copy > :nth-child(6) { animation-delay: 0.24s; }

@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* The blue cube, over 5 s: a breath from its base, then a small hop, and the
   bow tie swings after landing. */
@keyframes cb-blue {
  0%, 60%, 76%, 100% { transform: none; }
  30% { transform: scaleY(0.98); }
  68% { transform: translateY(-4px); }
}
@keyframes cb-tie {
  0%, 76%, 96%, 100% { transform: none; }
  82% { transform: rotate(4deg); }
  88% { transform: rotate(-3deg); }
  92% { transform: rotate(1deg); }
}
@keyframes cb-shadow-blue { 0%, 60%, 76%, 100% { transform: none; } 68% { transform: scale(0.9); } }

/* The orange cube's hop: 14 px up, a squash on landing, the cap swinging
   and settling within 0.3 s. Twice in 8 s, then rest; or every 1.8 s. */
@keyframes cb-hop-twice {
  0%, 9.5%, 19%, 100% { transform: none; }
  3.75%, 13.25% { transform: translateY(-14px); }
  7.5%, 17% { transform: scale(1.04, 0.96); }
}
@keyframes cb-cap-twice {
  0%, 7.5%, 11.25%, 17%, 20.75%, 100% { transform: none; }
  8.5%, 18% { transform: rotate(6deg); }
  9.75%, 19.25% { transform: rotate(-3deg); }
}
@keyframes cb-shadow-twice {
  0%, 7.5%, 17%, 100% { transform: none; }
  3.75%, 13.25% { transform: scale(0.75); }
}
@keyframes cb-hop {
  0%, 75%, 100% { transform: none; }
  35% { transform: translateY(-14px); }
  62% { transform: scale(1.04, 0.96); }
}
@keyframes cb-cap {
  0%, 62%, 79%, 100% { transform: none; }
  67% { transform: rotate(6deg); }
  73% { transform: rotate(-3deg); }
}
@keyframes cb-shadow { 0%, 62%, 100% { transform: none; } 35% { transform: scale(0.75); } }

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .measure { max-width: 260px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ── the landing (body.home), after mockup c (docs/plans/2026-10-08-web-landing-crayon.md) ── */
@font-face {
  font-family: "Nunito";
  font-weight: 200 1000;
  font-display: swap;
  src: url("/static/fonts/Nunito-Variable-latin.20fc9b6f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-weight: 200 1000;
  font-display: swap;
  src: url("/static/fonts/Nunito-Variable-vietnamese.d107f726.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

body.home {
  --ink: #160d4f;
  --paper: #fcf4e2;
  --paper-warm: #f7edd9;
  --panel: #fbebca;
  --card: #fbf4e4;
  --pill: rgba(251, 244, 224, 0.86);
  --night: #1b1556;
  --button: #160f41;
  --body: #5b5470;
  --kicker: #2f62c9;
  --arrow: #2454d5;
  --rim: #d8c09a;
  --display: "Nunito", system-ui, sans-serif;
  --pad: clamp(24px, 5vw, 72px);
  font: 400 17px/1.6 var(--display);
  color: var(--body);
  background-color: var(--paper);
  background-image: none;
}

.home .wrap { max-width: calc(1160px + 2 * var(--pad)); padding-inline: var(--pad); }

.home [id] { scroll-margin-top: 104px; }

.home .display { letter-spacing: 0; }

.home .kicker {
  display: block;
  margin: 0 0 20px;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.14em;
  color: var(--kicker);
}

.home .kicker span { display: inline; }
.home .kicker span + span { margin-left: 12px; opacity: 0.65; }

.home .h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--ink);
}

.home h3 { font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--ink); }

.home .sec { position: relative; isolation: isolate; padding-block: clamp(72px, 8vw, 112px); }

.home .hero, .home .end { position: relative; isolation: isolate; }

/* The wavy cream edges between sections. */
.home .wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 4;
  display: block;
  width: 100%;
  height: 64px;
  fill: currentColor;
  pointer-events: none;
}

.home .is-down { top: -1px; bottom: auto; transform: scaleY(-1); }
.home .is-mirror { transform: scaleX(-1); }
.home .is-down.is-mirror { transform: scale(-1, -1); }
.home .wave-paper { color: var(--paper); }
.home .wave-warm { color: var(--paper-warm); }
.home .wave-night { color: var(--night); }

.home .spark { position: absolute; display: block; height: auto; }

/* The painted pictures are images, so they load lazily. */
.home .hero-art, .home .inside-art, .home .studio-art, .home .end-art { display: block; object-fit: cover; }

/* ── nav ── */
.home .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home .nav-row { height: 88px; }

.home .brand {
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border: 1px solid rgba(22, 13, 79, 0.08);
  border-radius: 999px;
  background: rgba(248, 246, 238, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 900 18px/1 var(--display);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.home .logo { width: 40px; height: 40px; border: 0; border-radius: 10px; }

.home .nav-end { display: flex; align-items: center; gap: 12px; }

.home .nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--pill);
  border: 1px solid rgba(22, 13, 79, 0.08);
  box-shadow: 0 4px 20px rgba(22, 13, 79, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.home .nav-links { display: flex; gap: 4px; }

.home .nav-links a, .home .langs a {
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1.2 var(--display);
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}

.home .nav-links a:hover, .home .langs a:hover { background: rgba(22, 13, 79, 0.06); color: var(--ink); }

.home .langs { gap: 4px; margin-left: 6px; padding-left: 8px; border-left: 1px solid rgba(22, 13, 79, 0.18); }

.home .langs a[aria-current] { background: var(--ink); color: #fff; }

.home .nav-get {
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--button);
  box-shadow: 0 8px 20px rgba(22, 15, 65, 0.25);
  font: 800 16px/1.2 var(--display);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.home .nav-get:hover { background: var(--kicker); }

/* Before the App Store link exists the nav says so, as a status and not a button. */
.home .nav-status { margin: 0; gap: 10px; background: var(--pill); box-shadow: none; color: var(--ink); cursor: default; }

.home .nav-status:hover { background: var(--pill); }

/* ── hero: the puzzle atelier painting, the Home screen between the cubes ── */
.home .hero { display: flex; width: 100%; min-height: 760px; max-height: 1000px; aspect-ratio: 1440 / 900; }

.home .hero-row { flex: 1; display: flex; align-items: center; padding-top: 96px; padding-bottom: 64px; }

.home .hero-stage { position: absolute; inset: 0; z-index: 0; }

.home .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 50%; }

.home .hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(252, 244, 226, 0.88) 0%, rgba(252, 244, 226, 0.7) 32%, rgba(252, 244, 226, 0) 52%);
}

.home .hero-copy { position: relative; z-index: 2; width: 48%; max-width: 570px; }

.home .title-row { position: relative; display: inline-block; }

/* The promise wraps within the copy column, clear of the painted phones.
   Its second sentence carries the cubes' blue accent. */
.home .hero-head-row { width: 100%; }

.home .hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
  color: var(--ink);
}

.home .hero-title .hl { display: block; }
.home .hero-title .hl + .hl { color: var(--blue-ink); }

.home .hero-mark {
  margin: 0;
  font-size: clamp(3.25rem, 7.2vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.home .hero-mark em { font-style: normal; color: var(--ink); }

.home .hero-mark-row, .home .hero-soon { display: none; }

.home .spark-hero { left: calc(100% - 6px); top: -22px; }

.home .spark-head { right: 0; top: -24px; width: 38px; }

.home .hero .kicker { margin: 0 0 24px; }

.home .tagline { max-width: 27rem; margin: 24px 0 0; font-size: 17px; line-height: 1.7; color: var(--body); }

.home .hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.2s ease;
}
.home .hero-explore:hover { background: var(--blue-ink); }
.home .hero-explore span { font-size: 22px; line-height: 1; transition: translate 0.3s ease; }
.home .hero-explore:is(:hover, :focus-visible) span { translate: 3px -3px; }

.home .u { color: var(--ink); font-weight: 700; border: 0; }

.home .hero .stores { margin-top: 32px; }

.home .hero-phone { position: absolute; z-index: 2; left: 52%; bottom: 16%; width: 18.06%; transform: translateY(var(--hero-lift, 0px)) rotate(calc(3deg + var(--hero-turn, 0deg))); }
.home .hero-back { z-index: 1; left: 68.2%; bottom: 41%; width: 13%; transform: translateY(var(--hero-lift, 0px)) rotate(calc(9deg + var(--hero-turn, 0deg))); }

/* The phone frame, on the landing. */
.home .phone {
  padding: 9px;
  border-radius: 44px;
  background: #17132b;
  box-shadow: 0 0 0 1px var(--rim), 0 18px 36px rgba(22, 13, 79, 0.16);
  line-height: 0;
}

.home .phone img { display: block; width: 100%; height: auto; border-radius: 35px; }
.home .phone-preview { display: block; position: relative; border-radius: 35px; }
.home .app-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; opacity: 0; pointer-events: none; }
.home .app-preview.is-playing { opacity: 1; }

/* The download block, in the hero and in the night band. */
.home .hero .get, .home .share .get {
  max-width: 470px;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: rgba(252, 244, 228, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(22, 13, 79, 0.07);
  gap: 16px;
}

/* On the paper, beside the share card: full column width and the card's edge. */
.home .share .get { max-width: none; border: 1px solid rgba(22, 13, 79, 0.1); }

.home .qr { width: 88px; height: 88px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(22, 13, 79, 0.12); }

.home .get-label { font: 500 13px/1.4 var(--mono); color: var(--kicker); }

.home .get-hint { font-size: 15px; color: var(--body); }

.home .status { font: 800 15px/1.5 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); }

.home .get-later { font: 400 13px/1.4 var(--display); letter-spacing: 0; text-transform: none; color: var(--body); }

.home .badge, .home .badge img { width: 168px; }

.home .btn-ghost { padding: 12px 22px; border: 1.5px solid var(--ink); border-radius: 999px; font: 700 14px/1.2 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); }

.home .btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ── the daily ritual ── */
.home .daily { background: var(--paper); }

.home .daily-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }

.home .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }

.home .step { position: relative; }

.home .step-icon { display: block; width: 120px; height: 120px; margin: 0 0 20px; }

.home .step-title { margin: 0 0 8px; font-size: 20px; }

.home .step-num { color: var(--kicker); }

.home .is-orange .step-num { color: var(--orange-ink); }

.home .step-body { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); }

.home .step-tag { margin: 10px 0 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kicker); }

.home .step:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -20px;
  top: 44px;
  font: 600 24px/1 var(--display);
  color: var(--arrow);
}

/* ── the games ── */
.home .games { background: var(--paper-warm); }

.home .games-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; }

.home .sec-body { max-width: 22rem; margin: 0; font-size: 17px; color: var(--body); }

.home .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }

.home .card { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.home .card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid rgba(22, 13, 79, 0.08);
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(22, 13, 79, 0.06);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.home .card:hover img { transform: translateY(-8px) rotate(-2deg); box-shadow: 0 16px 30px rgba(22, 13, 79, 0.12); }
.home .card:nth-child(2):hover img { transform: translateY(-8px) rotate(2deg); }

.home .card-name { font: 800 20px/1.25 var(--display); text-align: center; color: var(--ink); }

/* ── inside the app: the app's screens in blocks, one per part of the app, then the fence painting ── */
.home .inside { padding-block: 96px 0; background: var(--paper-warm); }

.home .inside-copy { position: relative; z-index: 2; padding-bottom: 36px; }

.home .blocks { position: relative; z-index: 2; display: grid; gap: 0; padding-bottom: 32px; }

.home .block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; padding-block: 48px; border-top: 1px solid rgba(22, 13, 79, 0.12); }

.home .block.is-flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

.home .block.is-flip .block-copy { order: 2; }

.home .block-label { margin: 0 0 12px; font-size: clamp(26px, 2.6vw, 34px); color: var(--ink); }

.home .note-title { margin: 0 0 4px; font: 800 19px/1.3 var(--display); color: var(--ink); }

.home .block-note { margin: 0; max-width: 26rem; font-size: 16px; line-height: 1.5; color: var(--body); }

.home .block-caption { margin: 0 0 18px; max-width: 24rem; font-size: 17px; line-height: 1.5; color: var(--body); }

/* A block's lead screen, large, and its other screens as thumbnails beside it. */
.home .block-set { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 270px); justify-content: center; gap: 24px; align-items: center; margin: 0; }

.home .block.is-flip .block-set { grid-template-columns: minmax(0, 270px) minmax(0, 230px); }

.home .block.is-flip .shot-lead { order: 2; }

.home .block-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }

.home .shot { position: relative; display: block; border-radius: 44px; color: inherit; text-decoration: none; cursor: zoom-in; transition: transform 0.2s ease; }

.home .shot:hover { transform: translateY(-4px); }

.home .shot .phone { display: block; width: 100%; }

.home .shot-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(252, 244, 226, 0.94);
  box-shadow: 0 2px 8px rgba(22, 13, 79, 0.28);
  color: var(--ink);
}

.home .shot-lead .shot-zoom { width: 38px; height: 38px; right: 22px; bottom: 22px; }

/* The lightbox: a screen opened full size over the page (motion.js). */
.home .lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(22, 13, 79, 0.84);
  cursor: zoom-out;
}

.home .lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 36px; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45); cursor: default; }

.home .lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 400 30px/1 var(--display);
  cursor: pointer;
}

html.lb-open { overflow: hidden; }

/* The band fades in from the section's paper through a mask on itself, not
   an overlay: the parallax image's own layer can paint past an overlay and
   show its top edge as a hard line. */
.home .inside-band {
  position: relative;
  overflow: hidden;
  height: clamp(220px, 26vw, 400px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
  mask-image: linear-gradient(to bottom, transparent, #000 45%);
}

.home .inside-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-position: 50% 70%;
}

/* ── honest by design ── */
.home .honest { background: var(--paper); }

.home .honest-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }

.home .statement { max-width: 34rem; margin: 0; font-size: 19px; line-height: 1.6; color: var(--body); }

.home .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 24px 8px; border: 1px solid rgba(22, 13, 79, 0.1); border-radius: 24px; background: var(--card); }

.home .tile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas: "icon fig" "dd dd";
  align-items: center;
  gap: 16px 8px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home .tile + .tile { border-left: 1px solid rgba(22, 13, 79, 0.1); }

.home .tile-icon { grid-area: icon; width: 40px; height: 40px; }

.home .tile-fig { grid-area: fig; margin: 0; font-size: 36px; font-weight: 800; line-height: 1; color: var(--ink); }

.home .tile-badge {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
}

.home .tile dd { grid-area: dd; display: flex; flex-direction: column; gap: 4px; margin: 0; }

.home .tile-label { font: 800 16px/1.3 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); }

.home .tile-sub { font-size: 14px; color: var(--body); }

/* ── the studio ── */
.home .studio { display: flex; align-items: center; min-height: 36.67vw; padding-block: 96px; background: var(--paper); }

.home .studio > .wrap { width: 100%; }

.home .studio-art {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 60%;
  height: 100%;
  object-position: 60% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24%);
}

.home .studio-copy { position: relative; z-index: 2; max-width: 40%; }

.home .studio-body { margin: 0; font-size: 17px; color: var(--body); }

.home .studio-write { margin: 20px 0 0; font: 600 16px/1.6 var(--display); color: var(--ink); }

.home .studio-write a { color: var(--kicker); text-decoration: underline; text-underline-offset: 3px; }

/* ── the night band ── */
.home .end { display: flex; align-items: center; min-height: max(440px, 31.25vw); margin-top: 0; background: var(--night); background-image: none; color: #fff; }

.home .end-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-position: 70% 50%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 96px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 96px);
}

.home .end::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20, 15, 70, 0.75) 0%, rgba(20, 15, 70, 0.4) 38%, rgba(20, 15, 70, 0) 55%);
}

.home .end-row { position: relative; z-index: 2; display: block; width: 100%; padding-block: 96px; }

.home .end-copy { max-width: 46%; padding-left: clamp(0px, 5vw, 72px); }

.home .end-title-row { display: flex; align-items: center; gap: 14px; }

.home .spark-end { position: static; flex-shrink: 0; transform: scaleX(-1); }

.home .end-title { margin: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: 0; color: #fff; }

.home .end-sub { margin: 10px 0 0; font-size: 20px; color: rgba(255, 255, 255, 0.82); }

.home .end .stores { margin-top: 32px; }

.home .end .get { max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; gap: 22px; }

.home .end .qr { width: 120px; height: 120px; border: 0; border-radius: 16px; background: #fff; }

.home .end .get-hint { color: rgba(255, 255, 255, 0.82); }

.home .end .get-later { color: rgba(255, 255, 255, 0.7); }

.home .end .status { color: #fff; }

/* ── the foot, slim ── */
.home .foot { padding-block: 28px 32px; font: 400 14px/1.5 var(--display); letter-spacing: 0; color: var(--body); }

.home .foot-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }

.home .foot-brand { flex-direction: row; align-items: center; gap: 12px; margin-right: auto; }

.home .foot-icon { width: 32px; height: 32px; margin: 0; border: 0; border-radius: 8px; }

.home .foot-links { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }

.home .foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.home .foot-langs a { text-decoration: none; }

.home .foot-langs a[aria-current] { border-color: var(--ink); }

.home .foot-rule { display: none; }

/* ── the other pages' head: a band of the hero's painting (docs/plans/2026-10-10-web-pages-crayon.md) ── */
.home .page-head {
  position: relative;
  isolation: isolate;
  overflow: clip;
  overflow-clip-margin: 1px;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  padding: 136px 0 96px;
  background: var(--paper-warm);
}

/* The atelier, cropped low so the cubes at their table sit on the right. */
.home .page-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 82%;
}

/* The hero's wash: cream behind the words, clear over the cubes. */
.home .page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(252, 244, 226, 0.88) 0%, rgba(252, 244, 226, 0.7) 32%, rgba(252, 244, 226, 0) 52%);
}

.home .page-head-copy { position: relative; z-index: 2; width: 100%; }

.home .page-head-copy > * { max-width: min(570px, 52%); }

.home .page-head h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.home .page-head .subtitle { margin: 12px 0 0; font: 600 15px/1.4 var(--display); color: var(--body); }

@media (max-width: 900px) {
  .home .page-head { min-height: 280px; padding: 112px 0 56px; }
}

@media (max-width: 600px) {
  .home .page-head { min-height: 260px; padding: 104px 0 48px; }
  .home .page-art { object-position: 88% 82%; }
  .home .page-head::after { background: linear-gradient(90deg, rgba(252, 244, 226, 0.9) 0%, rgba(252, 244, 226, 0.8) 55%, rgba(252, 244, 226, 0) 75%); }
  .home .page-head-copy > * { max-width: 62%; }
  .home .page-head h1 { font-size: clamp(2rem, 9vw, 2.9rem); line-height: 1.1; letter-spacing: -0.04em; }
  .home .doc h2 { margin-top: 40px; font-size: 21px; }
  .home .doc p, .home .doc li { font-size: 16px; }
}

@media (max-width: 1099px) {
  .home .nav-links { display: none; }
  .home .langs { margin-left: 0; padding-left: 0; border-left: 0; }

  /* The hero stacks its copy and exploration link above the phones over the
     painting's band, followed by the store card. */
  .home .hero { display: block; min-height: 0; max-height: none; aspect-ratio: auto; padding-top: 104px; padding-bottom: 72px; background: var(--paper); }
  .home .hero-row { flex-direction: column; align-items: stretch; padding-block: 0; }
  .home .hero-copy { display: contents; }
  .home .hero-head-row { order: 1; align-self: flex-start; }
  .home .hero .kicker { order: 2; margin-top: 14px; }
  .home .tagline { order: 3; font-size: 17px; }
  .home .hero-explore { order: 3; align-self: flex-start; }
  .home .hero-stage { order: 4; position: relative; inset: auto; height: 679px; margin: 28px calc(-1 * var(--pad)) 0; }
  .home .hero .stores { order: 5; position: relative; z-index: 2; margin-top: -24px; }
  .home .hero .get { max-width: none; }
  .home .hero-stage::after { display: none; }
  .home .spark-hero { top: -16px; width: 40px; }
  .home .spark-head { top: -20px; width: 40px; }
  .home .hero-phone { left: 50%; top: 24px; bottom: auto; width: 230px; transform: translate(-50%, var(--hero-lift, 0px)) rotate(var(--hero-turn, 0deg)); }
  .home .hero-back { left: 74%; top: 8px; width: 180px; transform: translate(-50%, var(--hero-lift, 0px)) rotate(calc(8deg + var(--hero-turn, 0deg))); }
  .home .hero-art {
    inset: auto;
    left: 0;
    right: 0;
    top: 359px;
    width: 100%;
    height: 320px;
    object-position: 78% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  }

  .home .daily-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .home .steps { gap: 40px; }
  .home .step-icon { width: 140px; height: 140px; }
  .home .step:not(:last-child)::after { right: -36px; top: 52px; }

  .home .games-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home .cards { gap: 20px; }

  .home .honest-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* A page with no language switch (the share and not-found pages) has nothing
   left in the pill once the section links hide. */
@media (max-width: 1099px) {
  .home .nav-pill:not(:has(.langs)) { display: none; }
}

/* Wider than a phone the painting's band is taller, so the phone's foot stays
   clear of the cubes' faces. */
@media (min-width: 601px) and (max-width: 1099px) {
  .home .hero-stage { height: 799px; }
  .home .hero-art { height: 440px; }
}

@media (max-width: 900px) {
  .home .wave { height: 32px; }
  .home .nav-row { height: 72px; }
  .home [id] { scroll-margin-top: 80px; }
  .home .brand { font-size: 15px; }
  .home .logo { width: 32px; height: 32px; }
  .home .hero { padding-top: 96px; }
  .home .phone { border-radius: 34px; }
  .home .phone img { border-radius: 26px; }
  .home .phone-preview { border-radius: 26px; }
}

@media (max-width: 899px) {
  .home .inside { padding-block: 72px 0; }
  .home .block, .home .block.is-flip { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home .block.is-flip .block-copy { order: 0; }
  .home .block-set, .home .block.is-flip .block-set { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); justify-items: center; gap: 20px; width: 100%; max-width: 540px; margin-inline: auto; }
  .home .block.is-flip .shot-lead { order: 0; }
  .home .shot-lead { width: 100%; }
  .home .block-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; padding: 0; }
  .home .block-thumbs li { min-width: 0; }
  .home .block-thumbs .phone { padding: 3px; border-radius: 16px; }
  .home .block-thumbs .phone img { border-radius: 13px; }
  .home .block-thumbs .shot-zoom { right: 4px; bottom: 4px; width: 22px; height: 22px; }
  .home .inside-art { object-position: 25% 100%; }

  .home .studio { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 72px 0 0; }
  .home .studio > .wrap { order: 1; }
  .home .studio-copy { max-width: none; }
  .home .studio-art { order: 2; position: relative; width: 100%; height: auto; aspect-ratio: 1800 / 1100; margin-top: 32px; -webkit-mask-image: none; mask-image: none; }

  .home .end { flex-direction: column; align-items: stretch; min-height: 0; padding: 0; }
  .home .end::before { display: none; }
  .home .end-row { order: 1; padding-block: 72px 24px; }
  .home .end-copy { max-width: none; padding-left: 0; }
  .home .spark-end { width: 40px; }
  .home .end-art {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    height: 240px;
    object-position: 75% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 35%);
  }
}

@media (max-width: 700px) {
  .home .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home .step { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .home .step-icon { width: 96px; height: 96px; margin: 0; grid-row: 1 / span 3; }
  .home .step:not(:last-child)::after { display: none; }

  .home .tiles { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 12px; border-radius: 28px; }
  .home .tile + .tile { border-left: 0; border-top: 1px solid rgba(22, 13, 79, 0.1); }
}

@media (max-width: 600px) {
  .home { font-size: 16px; }
  .home .nav-get { display: none; }
  .home .cards { gap: 12px; }
  .home .card img { border-width: 1px; border-radius: 18px; }
  .home .card-name { font-size: 15px; }
  .home .foot-brand { flex-basis: 100%; }

  /* The mobile hero puts the promise and exploration link first, followed by
     the release status and phones. The nav already carries the wordmark. */
  .home .hero { padding-top: 92px; padding-bottom: 56px; }
  .home .hero-mark-row { display: none; }
  .home .hero-mark { font-size: 1.35rem; letter-spacing: 0.18em; }
  .home .spark-hero { display: none; }
  .home .hero .kicker { order: 2; margin: 8px 0 0; font-size: 10px; }
  .home .hero-head-row { order: 3; margin-top: 18px; }
  .home .hero-title { font-size: clamp(2rem, 9vw, 2.9rem); font-weight: 850; line-height: 1.1; letter-spacing: -0.04em; }
  .home .hero-explore { order: 4; margin-top: 18px; padding: 12px 20px; }
  .home .spark-head { display: none; }
  .home .hero-soon { order: 4; margin-top: 16px; font: 600 14px/1.4 var(--display); color: var(--body); text-decoration: none; }
  .home .hero a.hero-soon { display: block; }
  .home .hero p.hero-soon { display: flex; }
  .home .hero-stage { order: 5; height: 520px; margin-top: 16px; }
  .home .hero-phone { width: 176px; top: 8px; }
  .home .hero-back { width: 138px; left: 77%; top: 0; }
  .home .hero-art { top: 250px; height: 270px; }
  .home .tagline { display: none; }
  .home .hero .stores { order: 6; }
  .home .hero .stores.is-soon { display: none; }

  /* The jump from the gameplay strip to "inside the app", and the game list
     cut to its first three with the rest under a disclosure. */
  .home .rail .jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 999px;
    background: var(--arrow);
    box-shadow: none;
    font: 750 16px/1.2 var(--display);
    color: #fff;
    text-decoration: none;
  }
  .home .glist-grid .gl-rest { display: none; }
  .home .glist .glist-more { display: block; margin-top: 12px; }
  .home .glist-more summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border: 1px solid var(--rim);
    border-radius: 999px;
    background: var(--card);
    font: 750 16px/1.2 var(--display);
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }
  .home .glist-more summary::-webkit-details-marker { display: none; }
  .home .glist-more[open] summary svg { transform: rotate(180deg); }
  .home .glist-more .glist-grid { margin-top: 12px; }
}

/* ── the rails: the gameplay rail and the "inside the app" rail ──
   A strip of phones the visitor swipes (native scroll snapping). Where motion.js
   runs on a wide screen it pins the section instead (.is-pinned): the section is
   made tall, the pin sticks, and the track slides sideways as the page scrolls.
   Phones come in groups, a group with an optional label before it. */
.home .rail { --pw: 220px; }

.home .play { background: var(--paper-warm); padding-block: 0 clamp(40px, 5vw, 72px); }

.home .rail-head { padding-bottom: 28px; }

.home .rail-head .h2 { margin-bottom: 0; }

.home .rail-view {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: thin;
  scrollbar-color: var(--rim) transparent;
}

.home .rail-track {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  width: max-content;
  margin: 0;
  padding: 16px calc(50% - var(--pw) / 2) 72px;
  list-style: none;
}

.home .rail-group { display: flex; flex: none; align-items: flex-start; gap: 24px; }

.home .rail-set { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }

.home .rail-label {
  flex: none;
  margin: 12px 0 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--pill);
  font-size: 18px;
  line-height: 1.3;
  white-space: nowrap;
  scroll-snap-align: start;
}

.home .rail-item { display: flex; flex: none; flex-direction: column; align-items: center; width: var(--pw); scroll-snap-align: center; }

.home .rail-item .phone { width: 100%; }

.home .rail-name { display: block; margin-top: 20px; font: 800 20px/1.25 var(--display); text-align: center; color: var(--ink); }

.home .rail.is-pinned { padding-block: 0; }

.home .play.is-pinned { --pw: clamp(170px, calc((100vh - 360px) * 0.46), 280px); }

.home .rail.is-pinned .rail-pin {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 100vh;
  padding-top: 88px;
}

.home .rail.is-pinned .rail-view { overflow: hidden; scroll-snap-type: none; }

/* The pinned rail keeps a gutter on each side for its previous and next
   buttons, so they never sit over a phone. */
.home .rail.is-pinned .rail-view { margin-inline: 96px; }

.home .rail.is-pinned .rail-prev { left: 20px; }

.home .rail.is-pinned .rail-next { right: 20px; }

.home .rail.is-pinned .rail-track { gap: 72px; padding-bottom: 24px; will-change: transform; }

/* The cue under the gameplay rail: where to go next, and how far along. It
   shows once motion.js runs (.has-cue); on the pinned rail it says scroll and
   its bar is the rail's progress, on a strip it says swipe and follows the strip. */
.home .jump { display: none; }

.home .rail-cue { display: none; width: 100%; align-items: center; gap: 28px; padding-top: 8px; padding-bottom: 8px; }

.home .rail.has-cue .rail-cue { display: flex; }

.home .rail-stage { position: relative; }

.home .rail-btn {
  position: absolute;
  top: calc(50% - 56px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 800 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.home .rail-prev { left: max(8px, calc(var(--pad) - 12px)); }

.home .rail-next { right: max(8px, calc(var(--pad) - 12px)); }

.home .rail-btn svg { box-sizing: border-box; width: 52px; height: 52px; padding: 14px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 0 8px 20px rgba(22, 13, 79, 0.18); }

.home .rail-next svg { background: var(--ink); color: #fff; }

.home .rail-btn:disabled { opacity: 0.35; cursor: default; }

.home .rail-btn-text { display: none; }

.home .rail.is-pinned .rail-btn-text { display: block; padding: 4px 10px; border-radius: 999px; background: var(--pill); }

.home .rail-cue .cue-label { display: flex; flex: none; align-items: center; gap: 12px; font: 800 20px/1.2 var(--display); color: var(--ink); }

.home .cue-arrow { flex: none; display: block; }

.home .rail-cue .cue-scroll { display: none; }

.home .rail.is-pinned .cue-scroll { display: flex; }

.home .rail.is-pinned .cue-swipe { display: none; }

.home .cue-count { flex: none; font: 800 18px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }

.home .cue-count b { font-weight: 900; }

.home .cue-bar { flex: 1; max-width: 520px; height: 6px; border-radius: 999px; background: rgba(22, 13, 79, 0.16); overflow: hidden; }

.home .cue-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }

.home .rail:not(.is-pinned) .rail-cue { margin-top: -44px; }

/* ── the game list ── */
.home .glist { background: var(--paper-warm); padding-top: clamp(24px, 3vw, 40px); }

.home .glist-head .h2 { margin-bottom: 28px; }

.home .glist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }

.home .gl-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid rgba(22, 13, 79, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home .gl-logo {
  flex: none;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 18px;
  background: #fff8ec;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home .gl-text { min-width: 0; }

.home .gl-item:hover .gl-logo { transform: rotate(-5deg) scale(1.06); }

.home .gl-name { margin: 0 0 4px; font-size: 19px; }

.home .gl-line { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--body); }

/* ── motion (static/motion.js) ──
   The script sets .mo on <html> and takes it off again if its observer never
   answers, so nothing stays hidden. Without the script, or under reduced
   motion, nothing here applies. */
.mo .home [data-reveal] { opacity: 0; transform: none; translate: 0 44px; }

.mo .home [data-reveal].is-in {
  opacity: 1;
  transform: none;
  translate: 0 0;
  transition: opacity 0.8s ease, translate 0.9s cubic-bezier(0.16, 1, 0.3, 1), rotate 0.9s cubic-bezier(0.16, 1, 0.3, 1), scale 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--stagger, 0s);
}

.mo .home .step[data-reveal] { translate: 0 64px; }
.mo .home .step[data-reveal].is-in { translate: 0 0; }
.home .card:nth-child(1) { --fan-x: -90px; --fan-turn: -8deg; }
.home .card:nth-child(2) { --fan-x: 0px; --fan-turn: 4deg; }
.home .card:nth-child(3) { --fan-x: 90px; --fan-turn: 8deg; }
.mo .home .card[data-reveal] { translate: var(--fan-x) 90px; rotate: var(--fan-turn); scale: 0.84; }
.mo .home .card[data-reveal].is-in { translate: 0 0; rotate: 0deg; scale: 1; }

.home .block { --phone-entry: 64px; }
.home .block.is-flip { --phone-entry: -64px; }
.mo .home .block .shot .phone { opacity: 0; translate: var(--phone-entry) 80px; rotate: 6deg; scale: 0.88; }
.mo .home .block .shot-zoom { opacity: 0; }
.mo .home .block.is-flip .shot .phone { rotate: -6deg; }
.mo .home .block.is-in .shot .phone {
  opacity: 1;
  translate: 0 0;
  rotate: 0deg;
  scale: 1;
  transition: opacity 0.7s ease, translate 1s cubic-bezier(0.16, 1, 0.3, 1), rotate 1s cubic-bezier(0.16, 1, 0.3, 1), scale 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--phone-delay, 0.12s);
}
.mo .home .block.is-in .shot-zoom { opacity: 1; transition: opacity 0.6s ease; transition-delay: calc(var(--phone-delay, 0.12s) + 0.3s); }

@media (max-width: 700px) {
  .home .card:nth-child(1) { --fan-x: -36px; }
  .home .card:nth-child(3) { --fan-x: 36px; }
  .home .block { --phone-entry: 32px; }
  .home .block.is-flip { --phone-entry: -32px; }
}

.home .tile-fig { font-variant-numeric: tabular-nums; }

.home .nav { transition: transform 0.35s ease; }

.home .nav.is-hidden { transform: translateY(-110%); }

.home .nav:focus-within { transform: none; }

.home .nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* The painted sections clip the parallax art, which is drawn a little larger
   than its box; the margin keeps the waves' 1 px overlap. */
.home .hero, .home .inside, .home .studio, .home .end { overflow: clip; overflow-clip-margin: 1px; }

/* Outer phone wrappers own layout and scroll; inner frames own loops.
   Regions set the play state only while visible. */
@media (prefers-reduced-motion: no-preference) {
  .home { --ambient-play: paused; }
  .home .is-live { --ambient-play: running; }
  .motion-ready:not(.intro-shown) .home .hero-phone { animation: hero-arrive 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both; }
  .motion-ready .home .hero-back { animation-delay: 0s; }
  .home .phone-float { animation: phone-drift 4.6s ease-in-out infinite; animation-play-state: var(--ambient-play); }
  .home .hero-back .phone-float { animation: phone-sway 6.2s ease-in-out -1.8s infinite; animation-play-state: var(--ambient-play); }
  .home .spark-head { animation: spark-open 3.8s ease-in-out infinite; animation-play-state: var(--ambient-play); transform-origin: 50% 80%; }
  .home .spark-end { animation: spark-open 4.2s ease-in-out -1s infinite; animation-play-state: var(--ambient-play); }
  .home .step:nth-child(1) .step-icon { animation: ritual-sway 4s ease-in-out infinite; animation-play-state: var(--ambient-play); }
  .home .step:nth-child(2) .step-icon { animation: ritual-hop 3.8s ease-in-out -0.8s infinite; animation-play-state: var(--ambient-play); }
  .home .step:nth-child(3) .step-icon { animation: ritual-rise 4.8s ease-in-out -1.2s infinite; animation-play-state: var(--ambient-play); }
  .home .block-set { animation: gallery-float 5.4s ease-in-out var(--float-phase, 0s) infinite; animation-play-state: var(--ambient-play); }
  .motion-paused .home * { animation-play-state: paused !important; }
}

@keyframes hero-arrive {
  from { opacity: 0; translate: 0 100px; scale: 0.82; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes phone-drift {
  0%, 100% { translate: 0 8px; rotate: 1deg; }
  50% { translate: 0 -20px; rotate: -1deg; }
}

@keyframes phone-sway {
  0%, 100% { translate: -8px -12px; rotate: -1.5deg; }
  50% { translate: 8px 8px; rotate: 1.5deg; }
}

@keyframes spark-open {
  0%, 55%, 100% { scale: 1; rotate: 0deg; }
  70% { scale: 1.3; rotate: -12deg; }
  85% { scale: 1.1; rotate: 6deg; }
}

@keyframes ritual-sway {
  0%, 55%, 100% { rotate: 0deg; }
  15% { rotate: -8deg; }
  30% { rotate: 7deg; }
  42% { rotate: -3deg; }
}

@keyframes ritual-hop {
  0%, 42%, 100% { translate: 0 0; scale: 1; }
  15% { translate: 0 -16px; scale: 1; }
  30% { translate: 0 0; scale: 1.08 0.92; }
}

@keyframes ritual-rise {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes gallery-float {
  0%, 100% { translate: 0 4px; }
  50% { translate: 0 -12px; }
}

.home .rail-btn svg { transition: translate 0.25s ease; }
.home .rail-prev:not(:disabled):hover svg { translate: -3px 0; }
.home .rail-next:not(:disabled):hover svg { translate: 3px 0; }
.home .jump svg { transition: translate 0.25s ease; }
.home .jump:is(:hover, :focus-visible) svg { translate: 0 3px; }

@media (prefers-reduced-motion: reduce) {
  .mo .home [data-reveal] { opacity: 1; transform: none; translate: none; }
  .home .nav { transition: none; }
  .home .pulse { animation: none; }
}

@media (max-width: 1099px) {
  .home .glist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home .glist-more { display: none; }

@media (max-width: 700px) {
  .home .glist-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home .gl-item { gap: 16px; padding: 18px 0; border-radius: 0; }
  .home .gl-logo { width: 64px; height: 64px; border-width: 0; border-radius: 16px; }
}

/* ── Studio intro (static/intro.js) ──
   The Luci Studio sting that plays over the landing once per tab session. The
   script adds the overlay; none of this shows without it. The face is its own
   family, so it never replaces the landing's fixed 500 and 700 faces. */
@font-face {
  font-family: "Luci Wordmark";
  font-weight: 300 700;
  font-display: block;
  src: url("/static/fonts/SpaceGrotesk-Variable-latin.06408904.woff2") format("woff2");
}

.intro {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
  contain: strict;
  /* if the script ever stalls, the cover goes by itself */
  animation: intro-safety 0.3s linear 12s forwards;
}
@keyframes intro-safety { to { opacity: 0; visibility: hidden; } }
.intro.is-leaving { opacity: 0; transition: opacity 0.2s linear; }

.intro, .intro * {
  box-sizing: content-box;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  font-weight: normal;
  margin: 0;
  padding: 0;
}

/* Two halves of one opaque sheet of paper (the source's lit paper and its
   vignette), each showing its side of a frame-wide gradient. They overlap by
   a pixel, and part at the end to uncover the landing. */
.intro-half {
  position: absolute;
  top: 0;
  bottom: 0;
  background-image:
    radial-gradient(ellipse 75% 70% at 50% 50%, rgba(16, 26, 41, 0) 55%, rgba(16, 26, 41, 0.08) 100%),
    linear-gradient(135deg, #f3f2ec 0%, #efeee8 50%, #eae9e2 100%);
  background-repeat: no-repeat;
  background-size: 200% 100%;
  will-change: transform;
}
.intro-half.is-left { left: 0; width: calc(50% + 1px); background-position: left top; }
.intro-half.is-right { right: 0; width: 50%; background-position: right top; }

/* The skip hint: a tap anywhere skips, this only says so. */
.intro .intro-skip {
  position: absolute;
  left: 50%;
  bottom: max(64px, env(safe-area-inset-bottom));
  z-index: 2;
  padding: 14px 28px;
  border: 1.5px solid rgba(27, 6, 94, 0.28);
  border-radius: 999px;
  font: 500 18px/1 system-ui, sans-serif;
  color: rgba(27, 6, 94, 0.62);
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}
