:root {
  --bg: #100e0c;
  --ink: #f3efe6;
  --muted: #b7b1a6;
  --faint: #a39e94;
  --line: rgba(243, 239, 230, 0.14);
  --focus: #e7c56a;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 38rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

::selection { background: #3c3428; color: var(--ink); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--focus);
  color: #1c1608;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 6;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 2 * clamp(1.25rem, 4.5vw, 4rem)));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(16, 14, 12, 0.78);
  backdrop-filter: blur(16px);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: 4.25rem;
}

.mark {
  display: block;
  line-height: 0;
  flex: 0 0 auto;
}
.mark img {
  width: 7.15rem;
  height: auto;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.35rem;
}
.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--faint);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}
.top-nav a:hover,
.top-nav a[aria-current="true"] { color: var(--ink); }

.top.is-scrolled { box-shadow: inset 0 -1px 0 var(--line); }

.hero .wrap { padding: clamp(1.5rem, 3vw, 2.35rem) 0 clamp(3.5rem, 8vw, 5.5rem); }

.hero-grid { display: grid; gap: clamp(2.25rem, 6vw, 3.5rem); }

.hero-copy { min-width: 0; }

.hero-shot {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.companion-shot { margin: 0; }

.hero-shot .hero-slides {
  border-radius: 20px;
  background: #18140f;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-shot figcaption {
  margin-top: 0.85rem;
  color: var(--faint);
  font-size: 0.85rem;
  text-align: center;
}

.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1352 / 712;
  overflow: hidden;
  border-radius: 0;
  background: #1a1714;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slides img.is-active { opacity: 1; }

.slide-pause {
  position: absolute;
  right: clamp(0.75rem, 2vw, 1.35rem);
  bottom: clamp(0.75rem, 2vw, 1.15rem);
  z-index: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 2px;
  background: rgba(16, 14, 12, 0.62);
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.slide-pause:hover { background: rgba(16, 14, 12, 0.82); }

.phone-screen {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(243, 239, 230, 0.22);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}
.phone-screen img { display: block; width: 100%; height: auto; }
.companion-shot { width: min(100%, 280px); margin-inline: auto; }
.companion-shot figcaption { text-align: center; }
.companion-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; margin-top: 4rem; }
.companion-gallery figure { min-width: 0; margin: 0; }
.companion-gallery figcaption { margin-top: 1.25rem; }
.companion-gallery h3 { margin: 0 0 .5rem; font-size: 1.35rem; line-height: 1.2; }
.companion-gallery p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 899px) {
  .companion-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; }
}
.landscape-card {
  grid-column: span 2;
}

.landscape-screen {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.landscape-screen img {
  width: auto;
  height: 100%;
  max-height: 260px;
  transform: rotate(90deg);
  transform-origin: center;
  object-fit: contain;
}

@media (max-width: 899px) {
  .landscape-card {
    grid-column: span 2;
  }

  .landscape-screen img {
    max-height: 220px;
  }
}

@media (max-width: 479px) {
  .landscape-card {
    grid-column: span 1;
  }

  .landscape-screen {
    aspect-ratio: 4 / 3;
    padding: 0.75rem;
  }

  .landscape-screen img {
    max-height: 180px;
  }
}

@media (max-width: 479px) {
  .companion-gallery { gap: 2rem 1rem; }
  .companion-gallery .phone-screen { border-radius: 14px; }
  .companion-gallery h3 { font-size: 1.16rem; }
  .companion-gallery p { font-size: .86rem; }
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  margin: 0;
  max-width: 11em;
  font-size: clamp(1.9rem, 1.05rem + 2.5vw, 3.45rem);
  line-height: 1.06;
}
h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
}

.lede, .prose p, .follow, .steps p, .local span {
  color: var(--muted);
  text-wrap: pretty;
}

.lede {
  margin: 1.05rem 0 0;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem;
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
}
.facts li {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.chapter { scroll-margin-top: 4.5rem; }

.chapter .wrap {
  border-top: 1px solid var(--line);
  padding: clamp(4.25rem, 8vw, 6.5rem) 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 1.15rem;
  max-width: 12em;
  font-size: clamp(2.15rem, 1.2rem + 2.4vw, 3.35rem);
  line-height: 1.12;
}

.prose p, .follow {
  margin: 0;
  max-width: var(--measure);
  font-size: 1.125rem;
}

.prose p + p { margin-top: 1rem; }

.split-idea { display: grid; gap: 2.25rem; }

.pages {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.75rem;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.pages li {
  margin: 0;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.more {
  margin: 0.9rem 0 0;
  color: var(--faint);
  font-size: 0.98rem;
}

.follow { margin-top: clamp(2.25rem, 5vw, 3.5rem); }

.companion-spread {
  display: grid;
  gap: 1.75rem;
}

.companion-shot figcaption,
.canvas-fig figcaption {
  margin-top: 0.7rem;
  color: var(--faint);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 42rem;
}

.canvas-fig {
  margin: clamp(3.25rem, 6vw, 4.75rem) 0 0;
  max-width: 32rem;
}
.canvas-fig canvas {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
  border-radius: 2px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.steps {
  list-style: none;
  margin: clamp(2.25rem, 5vw, 3.25rem) 0 0;
  padding: 0;
  display: grid;
}
.steps li {
  margin: 0;
  padding: 1.35rem 0 1.45rem;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }

.num {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--faint);
}

.steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  line-height: 1.2;
}
.steps p { margin: 0; max-width: 36rem; }
.steps strong { font-weight: 600; color: var(--ink); }
.steps a {
  color: var(--ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.local {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 1.25rem;
  margin: 2rem 0 0;
}
.local a {
  color: var(--ink);
  font-size: 1.125rem;
  text-underline-offset: 0.2em;
}
.local span { font-size: 0.98rem; }

.foot .wrap {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 4rem;
}
.foot img { width: 8.5rem; height: auto; }
.foot p {
  margin: 0.85rem 0 0;
  color: var(--muted);
}
.foot a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .facts { margin-top: 1.75rem; }
}

@media (max-width: 380px) {
  .mark img { width: 4.85rem; }
  .top-bar { gap: 0.6rem; }
  .top-nav { flex-wrap: nowrap; gap: 0.65rem; }
  .top-nav a { font-size: 0.82rem; }
  .pages { gap: 0 1rem; }
  .pages li { font-size: 1.12rem; }
}

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
  }
  .lede { max-width: none; }
}

@media (min-width: 900px) {
  .split-idea {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }
  .cast { padding-top: 0.15rem; }

  .companion-spread {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
  }

  .steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.25rem;
  }
  .steps li {
    padding: 1.15rem 0.5rem 0 0;
    border-bottom: 0;
  }
  .steps li:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img { transition: none; }
  .hero-slides img[data-hero="product"] { opacity: 1; visibility: visible; }
  .hero-slides img:not([data-hero="product"]) { opacity: 0; visibility: hidden; }
  .slide-pause { display: none; }
}

.missing {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 3rem 1.25rem 4rem;
  gap: 0.2rem;
}

.missing img {
  width: min(16rem, 72vw);
  margin-bottom: 0.8rem;
}

.missing h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.45rem;
}

.missing p {
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.missing .home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

/* Product module gallery — shared artwork from the display and Companion. */
.module-intro{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:3rem;margin-bottom:2.75rem}
.module-intro h2{max-width:15em;margin-bottom:0}
.module-lede{max-width:32rem;margin:0;color:var(--muted);font-size:1.125rem}

.module-card{min-width:0}
.module-card img{display:block;width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:12px;background:#201d29}
.module-card div{padding:.9rem .1rem 0}
.module-card h3{margin:0 0 .2rem;font-family:var(--sans);font-size:1.05rem;font-weight:600;letter-spacing:0}
.module-card p{margin:0;color:var(--muted);font-size:.92rem;line-height:1.45}
.art-note{margin:2rem 0 0;color:var(--faint);font-size:.8rem}
#display .follow{max-width:46rem;margin-top:2rem}

@media(max-width:719px){.module-intro{grid-template-columns:1fr;gap:1.25rem;margin-bottom:2rem}.module-grid{gap:1.25rem}.module-card img{border-radius:8px}.module-card p{font-size:.85rem}.module-card h3{font-size:1rem}}
@media(max-width:600px){.mark img{width:5.75rem}.top-bar{gap:.6rem}.top-nav{flex-wrap:nowrap;gap:.8rem}.top-nav a{font-size:.82rem}}

/* Real captures — real firmware pixels through a round-LED bezel, not drawn art. */
.capture-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.capture-hero { margin: 0; }
.capture-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #18140f;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}
.capture-hero figcaption {
  margin-top: 0.85rem;
  color: var(--faint);
  font-size: 0.9rem;
  line-height: 1.5;
}
.capture-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.capture-strip li { margin: 0; }
.capture-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 14px;
  background: #18140f;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.capture-strip p {
  margin: 0.6rem 0 0;
  color: var(--faint);
  font-size: 0.85rem;
}
@media (min-width: 640px) {
  .capture-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .capture-feature { grid-template-columns: 1fr; }
}

.context-shots { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.context-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.context-pair img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}
.context-shots figcaption {
  margin-top: 0.85rem;
  color: var(--faint);
  font-size: 0.85rem;
}
@media (max-width: 479px) {
  .context-pair { grid-template-columns: 1fr; }
}

.module-card.is-real { position: relative; }
.real-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 14, 12, 0.72);
  backdrop-filter: blur(6px);
  color: var(--focus);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.art-note strong { color: var(--focus); font-weight: 600; }

/* Module cards: clickable, with an in-card living thumbnail when a module
   has more than one real capture (handled by modules-interactive.js). */
.module-card { cursor: pointer; border-radius: 12px; }
.module-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.module-card .card-media { position: relative; aspect-ratio: 2/1; border-radius: 12px; overflow: hidden; background: #201d29; }
.module-card .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.module-card .card-media img.is-active { opacity: 1; }
.module-card .card-media img:only-child { opacity: 1; }

/* Module detail overlay (click-to-expand), built once by modules-interactive.js */
.module-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 9, 7, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.module-overlay.is-open { opacity: 1; pointer-events: auto; }
.module-overlay-panel {
  position: relative;
  width: min(100%, 860px);
  max-height: min(100%, 900px);
  overflow-y: auto;
  background: #171310;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s ease;
}
.module-overlay.is-open .module-overlay-panel { transform: translateY(0) scale(1); }
.module-overlay-close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); color: var(--ink);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.module-overlay-close:hover { background: rgba(255, 255, 255, 0.1); }
.module-overlay-media { position: relative; border-radius: 14px; overflow: hidden; background: #0c0a08; aspect-ratio: 2/1; }
.module-overlay-media.is-tall { aspect-ratio: 1/1.4; max-height: 60vh; margin: 0 auto; }
.module-overlay-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.5s ease; }
.module-overlay-media img.is-active { opacity: 1; }
.module-overlay-dots { display: flex; gap: 0.4rem; justify-content: center; margin-top: 0.9rem; flex-wrap: wrap; }
.module-overlay-dots button {
  border: none; cursor: pointer; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.module-overlay-dots button.is-active { background: var(--focus); color: #241c08; }
.module-overlay-badge {
  display: inline-block; margin-bottom: 0.7rem; padding: 0.3rem 0.65rem; border-radius: 999px;
  background: rgba(231, 197, 106, 0.14); color: var(--focus); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.module-overlay-badge[hidden] { display: none; }
.module-overlay-panel h3 { margin: 1.1rem 0 0.5rem; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 500; }
.module-overlay-panel p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 56ch; }
body.overlay-open { overflow: hidden; }

/* Companion: "sketch it, watch it glow" pairing */
.glow-demo { margin: 2.75rem 0 0; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.glow-demo-art { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.glow-demo-art figure { flex: 1; min-width: 0; margin: 0; }
.glow-demo-art img { width: 100%; display: block; border-radius: 14px; background: #0c0a08; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28); }
.glow-demo-art figcaption { margin-top: 0.6rem; text-align: center; color: var(--faint); font-size: 0.85rem; }
.glow-demo-arrow { flex: none; color: var(--focus); width: clamp(28px, 4vw, 40px); }
.glow-demo-note { max-width: 56ch; margin: 1.5rem auto 0; text-align: center; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 639px) {
  .glow-demo-art { flex-direction: column; }
  .glow-demo-arrow { transform: rotate(90deg); }
}

/* Gallery + Lullaby */
.lullaby-demo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.lullaby-stage { margin: 0; }
.lullaby-slides { position: relative; aspect-ratio: 1352/712; border-radius: 16px; overflow: hidden; background: #0c0a08; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3); transition: filter 1.4s ease; }
.lullaby-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.4s ease; }
.lullaby-slides img.is-active { opacity: 1; }
.lullaby-stage.is-dimming .lullaby-slides { filter: brightness(0.22); }
.lullaby-stage figcaption { margin-top: 0.7rem; color: var(--faint); font-size: 0.82rem; text-align: center; }
.lullaby-audio p { margin: 0 0 1rem; color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.lullaby-audio .eyebrow { margin-bottom: 0.4rem; }
.lullaby-play, .pill-link {
  display: inline-flex; align-items: center; gap: 0.6rem; border: 1px solid var(--line);
  background: var(--focus); color: #241c08; font-weight: 600; font-size: 0.95rem;
  padding: 0.75rem 1.3rem; border-radius: 999px; cursor: pointer;
}
.lullaby-play:hover, .pill-link:hover { filter: brightness(1.05); }
.lullaby-play svg, .pill-link svg { width: 1.1rem; height: 1.1rem; }
.pill-link { text-decoration: none; line-height: 1.2; }
.companion-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.lullaby-play svg[hidden] { display: none; }
.lullaby-credit { margin-top: 1rem !important; font-size: 0.78rem !important; color: var(--faint) !important; }
@media (max-width: 779px) {
  .lullaby-demo { grid-template-columns: 1fr; }
}

/* Connectivity and Arcade (2026-10-14) */
.connect-steps { margin-top: clamp(2.75rem, 6vw, 4rem); }
.preview-tag {
  display: inline-block; vertical-align: middle; margin-left: 0.5rem; padding: 0.22rem 0.6rem;
  border: 1px solid var(--focus); border-radius: 999px; color: var(--focus);
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1.2; vertical-align: 0.25em;
}
@media (max-width: 600px) { .top-nav .nav-wide { display: none; } }

/* Arcade watch strip and Companion inline shots (2026-10-14) */
.watch-strip { margin: clamp(2.5rem, 6vw, 3.5rem) 0 0; }
.watch-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.watch-row figure { margin: 0; }
.watch-row img { display: block; width: 100%; height: auto; border-radius: 22px; background: #000; }
.watch-row figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.85rem; text-align: center; }
.watch-caption { margin-top: 1.25rem; color: var(--faint); font-size: 0.85rem; text-align: center; }
@media (max-width: 899px) { .watch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.phone-inline { margin: clamp(2.5rem, 6vw, 3.5rem) auto 0; max-width: 300px; }
.phone-inline img { display: block; width: 100%; height: auto; border-radius: 28px; }
.phone-inline figcaption { margin-top: 0.7rem; color: var(--faint); font-size: 0.85rem; text-align: center; }

/* Module coverflow (2026-10-14): the module grid is a horizontal scroll-snap track */
.coverflow { --cf-w: min(60vw, 360px); position: relative; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.coverflow .module-grid {
  position: relative; display: flex; gap: 1.5rem; margin: 0; padding: 2.5rem calc(50% - var(--cf-w) / 2) 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; list-style: none;
}
.coverflow .module-grid::-webkit-scrollbar { display: none; }
.coverflow .module-grid:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 12px; }
.coverflow .module-card {
  flex: 0 0 var(--cf-w); scroll-snap-align: center; transform-origin: 50% 50%;
  transition: transform 0.45s ease, opacity 0.45s ease; will-change: transform, opacity;
}
.cf-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1rem; }
.cf-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.cf-btn:hover, .cf-btn:focus-visible { border-color: var(--focus); color: var(--focus); outline: none; }
.cf-count { min-width: 15rem; text-align: center; color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.cf-count strong { color: var(--ink); font-weight: 600; }
.cf-hint { margin: 0.75rem 0 0; text-align: center; color: var(--faint); font-size: 0.8rem; }
@media (min-width: 900px) { .coverflow { --cf-w: min(40vw, 400px); } }
@media (prefers-reduced-motion: reduce) {
  .coverflow .module-grid { scroll-behavior: auto; }
  .coverflow .module-card { transition: none; }
}

/* Carousel cards: two screenshots, then the description (2026-10-14) */
.coverflow { --cf-w: min(70vw, 360px); }
@media (min-width: 900px) { .coverflow { --cf-w: min(40vw, 400px); } }
.coverflow .module-card { display: flex; flex-direction: column; gap: 0.9rem; }
.module-card .cf-shots { display: grid; gap: 0.5rem; padding: 0; }
.module-card .cf-shots img {
  display: block; width: 100%; height: 132px; aspect-ratio: auto; object-fit: contain;
  background: #0b0a09; border-radius: 10px; border: 1px solid var(--line);
}
.module-card .cf-text { padding: 0 0.1rem; }
.module-card .cf-text h3 { margin: 0 0 0.35rem; }
.module-card .cf-text p { font-size: 0.92rem; line-height: 1.5; }
@media (max-width: 719px) {
  .module-card .cf-shots img { height: 118px; }
}

/* Carousel frame, dots and autoplay (2026-10-14) */
.coverflow {
  padding: 0.25rem 0 1.25rem; overflow: hidden; border-radius: 26px;
  background: radial-gradient(120% 90% at 50% 0%, #1d1913 0%, #120f0c 70%);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.7);
}
.coverflow .module-grid { padding-top: 2rem; padding-bottom: 0.5rem; }
.cf-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; margin: 0.5rem 0 0; }
.cf-dot {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(243, 239, 230, 0.28); transition: background 0.3s ease, width 0.3s ease;
}
.cf-dot:hover { background: rgba(243, 239, 230, 0.6); }
.cf-dot[aria-current="true"] { width: 26px; background: var(--focus); }
.cf-dot:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.coverflow .cf-hint { margin: 0.9rem 1rem 0; }
@media (prefers-reduced-motion: reduce) { .cf-dot { transition: none; } }

/* Modules: one screenshot per card, turning into the next as the carousel moves (2026-10-14) */
.module-card .cf-flip { position: relative; height: 132px; perspective: 900px; display: block; }
.module-card .cf-flip img {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  transform: rotateY(90deg); transition: transform 0.7s ease, opacity 0.7s ease; backface-visibility: hidden;
}
.module-card .cf-flip img.is-on { opacity: 1; transform: rotateY(0deg); }
.module-card .cf-flip img.is-out { opacity: 0; transform: rotateY(-90deg); }
@media (max-width: 719px) { .module-card .cf-flip { height: 118px; } }
@media (prefers-reduced-motion: reduce) { .module-card .cf-flip img { transition: none; } }

/* Cards with two orientations: the whole screen turns, frame included (2026-10-14) */
.module-card .cf-stage { position: relative; container-type: inline-size; aspect-ratio: 100 / 96; }
.module-card .cf-screen {
  position: absolute; left: 4cqw; top: 25cqw; width: 92cqw; height: 46cqw; margin: 0;
  background: #0b0a09; border: 1px solid var(--line); border-radius: 10px; overflow: visible;
  transform-origin: 50% 50%; transform: rotate(0deg) scale(1);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.module-card .cf-stage.is-portrait .cf-screen { transform: rotate(90deg); }
.module-card .cf-screen img {
  position: absolute; display: block; margin: 0; border: 0; border-radius: 0; background: transparent;
  aspect-ratio: auto; object-fit: contain; transition: opacity 0.9s ease;
}
.module-card .cf-screen .o-land { left: 0; top: 0; width: 100%; height: 100%; opacity: 1; }
/* The portrait capture is laid out sideways inside the screen and turned back upright by the screen's own turn. */
.module-card .cf-screen .o-port {
  left: 23cqw; top: -23cqw; width: 46cqw; height: 92cqw; opacity: 0; transform: rotate(-90deg);
}
.module-card .cf-stage.is-portrait .o-land { opacity: 0; }
.module-card .cf-stage.is-portrait .o-port { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .module-card .cf-screen, .module-card .cf-screen img { transition: none; }
}

/* Modules: the whole screen turns sideways and back to the next screenshot (2026-10-14) */
.module-card .cf-turn .cf-screen img { opacity: 0; transition: none; }
.module-card .cf-turn .cf-screen img.is-on { opacity: 1; }
.module-card .cf-turn.is-turning .cf-screen { animation: cfScreenTurn 0.9s ease-in-out; }
@keyframes cfScreenTurn {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
  100% { transform: rotate(0deg); }
}
.module-card .cf-turn .cf-screen img { left: 0; top: 0; width: 100%; height: 100%; }

/* PixelPop for Mac download (2026-10-14), in the Companion chapter */
.mac-download {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  margin-top: clamp(3.5rem, 8vw, 5.5rem); padding-top: clamp(2.5rem, 6vw, 3.5rem); border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .mac-download { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.mac-download h3 { margin: 0 0 .75rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.1; }
.mac-copy > p { margin: 0; color: var(--muted); max-width: var(--measure); }
.app-title { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.1rem; }
.app-title img { width: 3.5rem; height: 3.5rem; }
.app-title span { display: block; color: var(--ink); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.app-title small { display: block; color: var(--faint); font-size: 0.85rem; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.6rem; }
.download-btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.9rem 1.5rem; border-radius: 999px;
  background: var(--focus); color: #241c08; text-decoration: none;
  font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  box-shadow: 0 10px 28px rgba(231, 197, 106, 0.22);
}
.download-btn:hover { filter: brightness(1.06); }
.download-btn svg { width: 1.2rem; height: 1.2rem; }
.download-note { margin: 0; color: var(--faint); font-size: 0.9rem; line-height: 1.45; }
.mac-steps { margin: 1.6rem 0 0; padding: 0; list-style: none; counter-reset: mac; display: grid; gap: .55rem; }
.mac-steps li { counter-increment: mac; display: flex; gap: .7rem; align-items: baseline; color: var(--muted); font-size: .95rem; }
.mac-steps li::before {
  content: counter(mac); flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: inline-grid; place-items: center; border: 1px solid var(--line); color: var(--ink); font-size: .78rem; font-weight: 600;
}
.mac-steps b { color: var(--ink); font-weight: 600; }
.mac-shot { margin: 0; }
.mac-shot img { display: block; width: 100%; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.mac-shot figcaption { margin-top: .9rem; color: var(--faint); font-size: .85rem; }

/* tighter gap between hero and module cards */
.hero .wrap { padding-bottom: 1.25rem; }
#display > .wrap { padding-top: 1.5rem; }
#display .coverflow { margin-top: 0; }
#display > .wrap { border-top: 0; }

/* App Store badge (iPhone/iPad Companion) */
.appstore-badge { display: inline-block; line-height: 0; }
.appstore-badge img { height: 48px; width: auto; }
.ios-download { margin-top: 1.4rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ios-download p { margin: 0; color: var(--faint); font-size: .9rem; }
/* no gap between title and showcase */
.hero .wrap { padding-bottom: 0 !important; }
#display, #display > .wrap { padding-top: 0 !important; margin-top: 0 !important; border-top: 0 !important; }
#display .coverflow { margin-top: 0.75rem !important; }
/* no gap between showcase and Mac download */
#display > .wrap { padding-bottom: 0 !important; }
#companion > .wrap { border-top: 0 !important; padding-top: 1.5rem !important; }
#companion .mac-download { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
/* match space under title to space above */
.hero .wrap { padding-bottom: clamp(1.5rem, 3vw, 2.35rem) !important; }
#display .coverflow { margin-top: 0 !important; }

/* 2026-10-19: keep 3D coverflow cards under the sticky header (Safari/WebKit let translateZ cards
   paint over it). Header: z 60 (above page, below .module-overlay z 80) + blur with -webkit- prefix. Carousel: flattened into its own
   isolated stacking context below the header. */
.top {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 60; isolation: isolate;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-transform: translateZ(0); transform: translateZ(0);
}
.coverflow { position: relative; z-index: 0; isolation: isolate; transform: translateZ(0); contain: paint; }

/* 2026-10-20: links to modules.html */
.cf-all { margin: 0.9rem 0 0; text-align: center; }
.foot-links a { color: inherit; }
