/* ─────────────────────────────────────────────
     UI THEMES — ported from the Yomu Craft editor
     Default: "Glass Light" (frosted, cool)
     ───────────────────────────────────────────── */
  :root {
    --err: #b25b3c;
    --bg-top: #f5f7fa;
    --bg-bot: #cdd6df;
    --ink: #2b3240;
    --ink-dim: #5d6678;
    --ink-mute: #8c95a6;
    --accent: #3d5a85;
    --accent-ink: #ffffff;
    --accent-soft: rgba(61, 90, 133, 0.1);
    --accent-glow: rgba(61, 90, 133, 0.28);
    --gl-card: rgba(255, 255, 255, 0.55);
    --gl-card-solid: rgba(255, 255, 255, 0.72);
    --gl-border: rgba(255, 255, 255, 0.75);
    --gl-hairline: rgba(118, 134, 156, 0.18);
    --line-strong: rgba(96, 114, 140, 0.4);
    --shadow-card: 0 24px 60px rgba(96, 114, 140, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 12px 34px rgba(96, 114, 140, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    --shadow-hover: 0 28px 60px rgba(96, 114, 140, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --chip-bg: rgba(255, 255, 255, 0.55);
    --chip-bg-soft: rgba(255, 255, 255, 0.4);
    --chip-border: rgba(255, 255, 255, 0.7);
    --chip-hover: rgba(255, 255, 255, 0.8);
    --play-a: rgba(255, 255, 255, 0.75);
    --play-b: rgba(255, 255, 255, 0.5);
    --blob-a: #3d5a85;
    --blob-b: #9cc0e6;
    --blob-c: #c4d3e6;
    --select-bg: rgba(61, 90, 133, 0.2);
    /* code colors */
    --display: 'Fraunces', Georgia, serif;
    --body: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
  }

  /* ── Amber Ink — the editor's default dark theme ── */
  html[data-theme="amber-ink"] {
    --err: #e08a3c;
    --bg-top: #1d1a15; --bg-bot: #0e0d0b;
    --ink: #ede4d3; --ink-dim: #a89e8a; --ink-mute: #6e6553;
    --accent: #d97706; --accent-ink: #1a1206;
    --accent-soft: rgba(217, 119, 6, 0.16); --accent-glow: rgba(217, 119, 6, 0.3);
    --gl-card: rgba(255, 255, 255, 0.05); --gl-card-solid: #1d1a15;
    --gl-border: rgba(255, 255, 255, 0.12); --gl-hairline: rgba(255, 255, 255, 0.09);
    --line-strong: #4a4337;
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-hover: 0 28px 64px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --chip-bg: rgba(255, 255, 255, 0.07); --chip-bg-soft: rgba(255, 255, 255, 0.05);
    --chip-border: rgba(255, 255, 255, 0.14); --chip-hover: rgba(255, 255, 255, 0.12);
    --play-a: rgba(255, 255, 255, 0.07); --play-b: rgba(255, 255, 255, 0.03);
    --blob-a: #d97706; --blob-b: #6a8caf; --blob-c: #a06a9b;
    --select-bg: rgba(217, 119, 6, 0.3);
  }

  /* ── Blue Night ── */
  html[data-theme="blue-night"] {
    --err: #fb7185;
    --bg-top: #102238; --bg-bot: #07111f;
    --ink: #e6f1ff; --ink-dim: #a7bfd8; --ink-mute: #68849f;
    --accent: #38bdf8; --accent-ink: #07111f;
    --accent-soft: rgba(56, 189, 248, 0.16); --accent-glow: rgba(56, 189, 248, 0.3);
    --gl-card: rgba(255, 255, 255, 0.06); --gl-card-solid: #0f2036;
    --gl-border: rgba(255, 255, 255, 0.14); --gl-hairline: rgba(125, 211, 252, 0.12);
    --line-strong: #2e5a83;
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow-hover: 0 28px 64px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --chip-bg: rgba(255, 255, 255, 0.07); --chip-bg-soft: rgba(255, 255, 255, 0.05);
    --chip-border: rgba(255, 255, 255, 0.15); --chip-hover: rgba(255, 255, 255, 0.12);
    --play-a: rgba(255, 255, 255, 0.07); --play-b: rgba(255, 255, 255, 0.03);
    --blob-a: #38bdf8; --blob-b: #c084fc; --blob-c: #60a5fa;
    --select-bg: rgba(56, 189, 248, 0.3);
  }

  /* ── Parchment ── */
  html[data-theme="parchment"] {
    --err: #9f2f24;
    --bg-top: #f1e8d6; --bg-bot: #e0d0b3;
    --ink: #241b12; --ink-dim: #5f4b35; --ink-mute: #927a58;
    --accent: #8b5e22; --accent-ink: #fffaf0;
    --accent-soft: rgba(139, 94, 34, 0.14); --accent-glow: rgba(139, 94, 34, 0.28);
    --gl-card: rgba(255, 250, 240, 0.55); --gl-card-solid: rgba(255, 250, 240, 0.85);
    --gl-border: rgba(255, 255, 255, 0.75); --gl-hairline: rgba(169, 142, 95, 0.28);
    --line-strong: #a98e5f;
    --shadow-card: 0 24px 60px rgba(70, 45, 15, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 12px 34px rgba(70, 45, 15, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    --shadow-hover: 0 28px 60px rgba(70, 45, 15, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --chip-bg: rgba(255, 250, 240, 0.55); --chip-bg-soft: rgba(255, 250, 240, 0.4);
    --chip-border: rgba(255, 255, 255, 0.7); --chip-hover: rgba(255, 250, 240, 0.85);
    --play-a: rgba(255, 250, 240, 0.75); --play-b: rgba(255, 250, 240, 0.5);
    --blob-a: #b7791f; --blob-b: #d6bd8f; --blob-c: #356d9a;
    --select-bg: rgba(139, 94, 34, 0.22);
  }

  /* ── Forest Green ── */
  html[data-theme="forest-green"] {
    --err: #f87171;
    --bg-top: #16271e; --bg-bot: #0b1410;
    --ink: #e3f1e6; --ink-dim: #a3bda9; --ink-mute: #6c8674;
    --accent: #a3e635; --accent-ink: #16271e;
    --accent-soft: rgba(163, 230, 53, 0.14); --accent-glow: rgba(163, 230, 53, 0.25);
    --gl-card: rgba(255, 255, 255, 0.05); --gl-card-solid: #142218;
    --gl-border: rgba(255, 255, 255, 0.12); --gl-hairline: rgba(255, 255, 255, 0.09);
    --line-strong: #426b51;
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-hover: 0 28px 64px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --chip-bg: rgba(255, 255, 255, 0.07); --chip-bg-soft: rgba(255, 255, 255, 0.05);
    --chip-border: rgba(255, 255, 255, 0.14); --chip-hover: rgba(255, 255, 255, 0.12);
    --play-a: rgba(255, 255, 255, 0.07); --play-b: rgba(255, 255, 255, 0.03);
    --blob-a: #65a30d; --blob-b: #38bdf8; --blob-c: #a3e635;
    --select-bg: rgba(163, 230, 53, 0.25);
  }

  /* ── Rose Quartz ── */
  html[data-theme="rose-quartz"] {
    --err: #fb7185;
    --bg-top: #321e29; --bg-bot: #1a0f15;
    --ink: #fce7f0; --ink-dim: #d4afbe; --ink-mute: #8c6478;
    --accent: #ec4899; --accent-ink: #fdf2f8;
    --accent-soft: rgba(236, 72, 153, 0.16); --accent-glow: rgba(236, 72, 153, 0.3);
    --gl-card: rgba(255, 255, 255, 0.06); --gl-card-solid: #2c1a24;
    --gl-border: rgba(255, 255, 255, 0.13); --gl-hairline: rgba(244, 114, 182, 0.14);
    --line-strong: #7a4c66;
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow-hover: 0 28px 64px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --chip-bg: rgba(255, 255, 255, 0.07); --chip-bg-soft: rgba(255, 255, 255, 0.05);
    --chip-border: rgba(255, 255, 255, 0.15); --chip-hover: rgba(255, 255, 255, 0.12);
    --play-a: rgba(255, 255, 255, 0.07); --play-b: rgba(255, 255, 255, 0.03);
    --blob-a: #ec4899; --blob-b: #d8b4fe; --blob-c: #f472b6;
    --select-bg: rgba(236, 72, 153, 0.3);
  }

  /* ── Soft Studio — neumorphic light ── */
  html[data-theme="soft-studio"] {
    --err: #c4453a;
    --bg-top: #e9eef5; --bg-bot: #d5dce6;
    --ink: #353c4a; --ink-dim: #687182; --ink-mute: #98a1b3;
    --accent: #4a6e9b; --accent-ink: #ffffff;
    --accent-soft: rgba(74, 110, 155, 0.14); --accent-glow: rgba(74, 110, 155, 0.25);
    --gl-card: rgba(238, 242, 248, 0.9); --gl-card-solid: #eef2f8;
    --gl-border: rgba(255, 255, 255, 0.9); --gl-hairline: rgba(151, 166, 190, 0.3);
    --line-strong: rgba(126, 142, 168, 0.55);
    --shadow-card: 6px 6px 14px rgba(163, 177, 198, 0.5), -6px -6px 14px rgba(255, 255, 255, 0.95);
    --shadow-soft: 4px 4px 10px rgba(163, 177, 198, 0.45), -4px -4px 10px rgba(255, 255, 255, 0.9);
    --shadow-hover: 8px 8px 18px rgba(163, 177, 198, 0.55), -8px -8px 18px rgba(255, 255, 255, 0.98);
    --chip-bg: rgba(243, 246, 250, 0.9); --chip-bg-soft: rgba(243, 246, 250, 0.7);
    --chip-border: rgba(255, 255, 255, 0.95); --chip-hover: #ffffff;
    --play-a: rgba(243, 246, 250, 0.95); --play-b: rgba(233, 238, 245, 0.9);
    --blob-a: #4a6e9b; --blob-b: #c6cfdc; --blob-c: #ffffff;
    --select-bg: rgba(74, 110, 155, 0.2);
  }

  /* ── Flat Cards ── */
  html[data-theme="flat-cards"] {
    --err: #d05a52;
    --bg-top: #eef1f5; --bg-bot: #c8d0da;
    --ink: #1a1d23; --ink-dim: #5b6472; --ink-mute: #99a1b0;
    --accent: #111317; --accent-ink: #ffffff;
    --accent-soft: rgba(17, 19, 23, 0.08); --accent-glow: rgba(17, 19, 23, 0.2);
    --gl-card: #ffffff; --gl-card-solid: #ffffff;
    --gl-border: rgba(120, 134, 156, 0.14); --gl-hairline: rgba(120, 134, 156, 0.16);
    --line-strong: rgba(120, 134, 156, 0.32);
    --shadow-card: 0 10px 30px rgba(120, 134, 156, 0.16);
    --shadow-soft: 0 6px 18px rgba(120, 134, 156, 0.14);
    --shadow-hover: 0 16px 38px rgba(120, 134, 156, 0.22);
    --chip-bg: #f4f6f9; --chip-bg-soft: #f4f6f9;
    --chip-border: rgba(120, 134, 156, 0.18); --chip-hover: #ffffff;
    --play-a: #fafbfc; --play-b: #f4f6f9;
    --blob-a: #3a6ea5; --blob-b: #c8d0da; --blob-c: #e4e8ee;
    --select-bg: rgba(58, 110, 165, 0.2);
  }

  /* ── Soft Mono ── */
  html[data-theme="soft-mono"] {
    --err: #d08a6a;
    --bg-top: #efefed; --bg-bot: #e6e6e4;
    --ink: #1f1f1d; --ink-dim: #5f5f5a; --ink-mute: #9d9d96;
    --accent: #1f1f1d; --accent-ink: #ffffff;
    --accent-soft: rgba(74, 124, 89, 0.16); --accent-glow: rgba(60, 60, 55, 0.2);
    --gl-card: #ffffff; --gl-card-solid: #ffffff;
    --gl-border: rgba(60, 60, 55, 0.08); --gl-hairline: rgba(60, 60, 55, 0.12);
    --line-strong: rgba(60, 60, 55, 0.22);
    --shadow-card: 0 10px 30px rgba(60, 60, 55, 0.1);
    --shadow-soft: 0 6px 20px rgba(60, 60, 55, 0.09);
    --shadow-hover: 0 16px 36px rgba(60, 60, 55, 0.14);
    --chip-bg: #f5f5f3; --chip-bg-soft: #f5f5f3;
    --chip-border: rgba(60, 60, 55, 0.12); --chip-hover: #ffffff;
    --play-a: #fafafa; --play-b: #f4f4f2;
    --blob-a: #bfe3cb; --blob-b: #f3c9a8; --blob-c: #ffffff;
    --select-bg: rgba(74, 124, 89, 0.22);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 96px; }

  body {
    background: linear-gradient(165deg, var(--bg-top) 0%, var(--bg-bot) 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
  }

  ::selection { background: var(--select-bg); }

  /* soft cool blobs behind the glass */
  .blob { position: fixed; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none; }
  .blob { transition: background 0.4s ease; }
  .blob-a { width: 460px; height: 460px; background: var(--blob-a); opacity: 0.18; top: -130px; left: -90px; }
  .blob-b { width: 520px; height: 520px; background: var(--blob-b); opacity: 0.28; bottom: -170px; right: -120px; }
  .blob-c { width: 300px; height: 300px; background: var(--blob-c); opacity: 0.32; top: 38%; left: 62%; }

  main, header.nav, footer { position: relative; z-index: 1; }

  .wrap { width: min(1080px, 100% - 44px); margin: 0 auto; }

  /* ───────────── Nav ───────────── */
  header.nav {
    position: fixed;
    top: 14px; left: 0; right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0 22px;
    pointer-events: none;
  }
  .nav-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    width: min(1080px, 100%);
    padding: 9px 12px 9px 18px;
    background: var(--gl-card);
    border: 1px solid var(--gl-border);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
  }
  .nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--ink);
    font-family: var(--display); font-style: italic; font-weight: 600;
    font-size: 19px; letter-spacing: -0.01em;
    margin-right: auto;
  }
  .nav-logo svg { width: 24px; height: 24px; color: var(--accent); }
  .nav-logo .craft { color: var(--accent); }
  .nav-links { display: flex; align-items: center; gap: 2px; }
  .nav-links a {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
    color: var(--ink-dim); text-decoration: none;
    padding: 7px 12px; border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .nav-links a:hover { color: var(--accent); background: var(--chip-hover); }
  .nav-cta {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
    color: var(--accent-ink); background: var(--accent);
    text-decoration: none; padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-left: 8px;
  }
  .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px var(--accent-glow); }
  .nav-cta svg { width: 13px; height: 13px; }

  .nav-burger {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 38px; height: 38px; border-radius: 50%;
    color: var(--ink-dim);
    align-items: center; justify-content: center;
  }
  .nav-burger svg { width: 20px; height: 20px; }

  @media (max-width: 780px) {
    .nav-links {
      position: absolute;
      top: calc(100% + 10px); right: 22px;
      flex-direction: column;
      align-items: stretch;
      background: var(--gl-card-solid);
      border: 1px solid var(--gl-border);
      border-radius: 18px;
      box-shadow: var(--shadow-soft);
      -webkit-backdrop-filter: blur(18px) saturate(1.2);
      backdrop-filter: blur(18px) saturate(1.2);
      padding: 10px;
      min-width: 200px;
      opacity: 0; visibility: hidden; transform: translateY(-6px);
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { padding: 10px 14px; }
    .nav-burger { display: inline-flex; }
    .nav-cta span { display: none; }
    .nav-cta { padding: 8px 11px; }
  }

  /* ───────────── Shared glass card ───────────── */
  .glass {
    background: var(--gl-card);
    border: 1px solid var(--gl-border);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    backdrop-filter: blur(20px) saturate(1.2);
  }

  /* ───────────── Section scaffolding ───────────── */
  section { padding: 68px 0; }
  .eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    color: var(--ink-mute);
    margin-bottom: 16px;
  }
  .eyebrow .dot {
    display: inline-block; width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent); margin-right: 9px; vertical-align: middle;
    animation: pulse 2.4s ease-in-out infinite;
  }
  h2.sec-title {
    font-family: var(--display);
    font-style: italic; font-weight: 600;
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: -0.02em; line-height: 1.12;
    margin-bottom: 14px;
  }
  h2.sec-title em { font-style: italic; color: var(--accent); }
  .sec-sub { color: var(--ink-dim); max-width: 58ch; font-size: 16px; }

  /* scroll reveal */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
  .reveal.in { opacity: 1; transform: none; }

  /* ───────────── Hero ───────────── */
  .hero {
    position: relative;
    min-height: 100svh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 130px 22px 80px;
    overflow: hidden;
  }
  .hero-card { position: relative; z-index: 1; }
  .hero-card {
    width: 100%; max-width: 680px;
    padding: 58px 44px 50px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
  }
  .hero .eyebrow { margin-bottom: 30px; opacity: 0; animation: rise 0.7s ease 0.2s forwards; }
  .mark {
    width: 82px; height: 82px;
    color: var(--accent);
    margin-bottom: 24px;
    filter: drop-shadow(0 8px 18px var(--accent-glow));
  }
  .mark svg { width: 100%; height: 100%; overflow: visible; }
  .y-stroke { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.75s cubic-bezier(0.22,1,0.36,1) forwards; }
  .y-1 { animation-delay: 0.35s; }
  .y-2 { animation-delay: 0.80s; animation-duration: 0.5s; }

  .wordmark {
    font-family: var(--display);
    font-style: italic; font-weight: 600;
    font-size: clamp(42px, 9vw, 64px);
    letter-spacing: -0.02em; line-height: 1;
    margin-bottom: 22px;
    opacity: 0; animation: rise 0.8s cubic-bezier(0.22,1,0.36,1) 0.95s forwards;
  }
  .wordmark .craft { color: var(--accent); }

  .type-line {
    font-size: clamp(15px, 3.3vw, 18px);
    line-height: 1.6; color: var(--ink-dim);
    max-width: 30ch; min-height: 2.1em;
  }
  .type::after {
    content: ''; display: inline-block;
    width: 2px; height: 1.05em; background: var(--accent);
    margin-left: 3px; vertical-align: -0.15em;
    animation: blink 1.05s step-end infinite;
  }

  .hero-ctas {
    display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
    margin-top: 34px;
    opacity: 0; animation: rise 0.8s cubic-bezier(0.22,1,0.36,1) 1.6s forwards;
  }
  .btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 12px 24px; border-radius: 999px;
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  .btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
  .btn-solid { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); box-shadow: 0 10px 24px var(--accent-glow); }
  .btn-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--accent-glow); }
  .btn-ghost {
    border: 1px solid var(--chip-border); background: var(--chip-bg); color: var(--ink);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--chip-hover); transform: translateY(-2px); box-shadow: 0 10px 24px var(--accent-glow); }

  .hero-pills {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-top: 36px; max-width: 480px;
    opacity: 0; animation: rise 0.8s ease 1.85s forwards;
  }
  .pill {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
    color: var(--ink-dim);
    padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--gl-hairline);
    background: var(--chip-bg-soft);
  }

  /* centered product shot — the editor, front and center */
  .hero-shot {
    position: relative; z-index: 1;
    width: 100%; max-width: 1060px;
    margin: 46px 0 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 30px 80px var(--accent-glow), 0 18px 44px rgba(0, 0, 0, 0.18);
    opacity: 0; animation: rise 0.9s cubic-bezier(0.22,1,0.36,1) 1.35s forwards;
  }
  .shot-bar {
    display: flex; align-items: center; gap: 9px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--gl-hairline);
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.22em;
    color: var(--ink-mute);
  }
  .shot-bar .lights { display: flex; gap: 5px; }
  .shot-bar .lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); opacity: 0.55; }
  .shot-bar .lights i:first-child { background: var(--accent); opacity: 0.8; }
  .shot-media { position: relative; }
  .shot-media img { display: block; width: 100%; height: auto; }
  /* optional hero video — drop hero.webm / hero.mp4 next to the site and it
     fades in over the still, inside the same frame */
  .hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
  }
  .hero-video.ready { opacity: 1; }
  @media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
  }

  /* ───────────── Write → Play demo ───────────── */
  .demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
    margin-top: 40px;
  }

  .panel {
    padding: 0;
    overflow: hidden;
    display: flex; flex-direction: column;
  }
  .panel-bar {
    display: flex; align-items: center; gap: 9px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--gl-hairline);
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.22em;
    color: var(--ink-mute);
  }
  .panel-bar .lights { display: flex; gap: 5px; }
  .panel-bar .lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); opacity: 0.55; }
  .panel-bar .lights i:first-child { background: var(--accent); opacity: 0.8; }

  /* the play panel mimics an exported game */
  .play {
    background: linear-gradient(175deg, var(--play-a), var(--play-b));
  }
  .play-body {
    padding: 26px 26px 22px;
    flex: 1;
    display: flex; flex-direction: column;
    min-height: 340px;
  }
  .play-scene {
    font-family: var(--display);
    font-size: 17.5px; line-height: 1.7;
    color: var(--ink);
    flex: 1;
  }
  .play-scene p { margin-bottom: 0.9em; opacity: 0; animation: rise 0.5s ease forwards; }
  .play-scene .found {
    display: inline-block;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
    color: var(--accent);
    border: 1px solid var(--gl-hairline);
    background: var(--chip-bg);
    border-radius: 999px; padding: 3px 12px;
    margin-top: 2px;
  }
  .play-q {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--ink-mute);
    margin: 14px 0 10px;
  }
  .play-choices { display: flex; flex-direction: column; gap: 9px; }
  .choice-btn {
    text-align: left;
    font-family: var(--body); font-size: 14.5px; font-weight: 500;
    color: var(--ink);
    padding: 12px 18px;
    border: 1px solid var(--chip-border);
    background: var(--chip-bg);
    border-radius: 14px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    opacity: 0; animation: rise 0.45s ease forwards;
  }
  .choice-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 18px var(--accent-glow); }
  .choice-btn:disabled { opacity: 0.45; cursor: not-allowed; color: var(--ink-mute); }
  .choice-btn:disabled::after { content: ' 🔒'; font-size: 12px; }
  .play-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid var(--gl-hairline);
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
    color: var(--ink-mute);
  }
  .play-foot .hud b { color: var(--accent); font-weight: 500; }
  .restart {
    background: none; border: none; cursor: pointer;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-mute);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 6px; border-radius: 8px;
    transition: color 0.2s ease;
  }
  .restart:hover { color: var(--accent); }
  .restart svg { width: 12px; height: 12px; }

  .demo-note {
    margin-top: 16px;
    text-align: center;
    font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
    color: var(--ink-mute);
  }

  /* ───────────── Features ───────────── */
  .feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
  }
  @media (max-width: 880px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
  .feat {
    padding: 26px 24px 24px;
    border-radius: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
  .feat-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 16px;
  }
  .feat-icon svg { width: 20px; height: 20px; }
  .feat h3 { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; }
  .feat p { font-size: 14px; color: var(--ink-dim); }
  .feat code {
    font-family: var(--mono); font-size: 12px;
    color: var(--accent);
    background: var(--chip-bg);
    border: 1px solid var(--gl-hairline);
    border-radius: 6px; padding: 1px 6px;
    white-space: nowrap;
  }

  /* ───────────── Editor ───────────── */
  .ed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
  }
  @media (max-width: 880px) { .ed-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .ed-grid { grid-template-columns: 1fr; } }
  .ed {
    padding: 24px 22px;
    border-radius: 22px;
  }
  .ed .tag {
    font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.24em;
    color: var(--accent);
    margin-bottom: 10px;
  }
  .ed h3 { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 18px; margin-bottom: 7px; }
  .ed p { font-size: 13.5px; color: var(--ink-dim); }

  /* ───────────── Themes strip ───────────── */
  .themes-card { margin-top: 40px; padding: 34px 34px 30px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: center; }
  @media (max-width: 780px) { .themes-card { grid-template-columns: 1fr; } }
  .themes-card h3 { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 23px; margin-bottom: 10px; }
  .themes-card p { font-size: 14.5px; color: var(--ink-dim); margin-bottom: 10px; }
  .swatches { display: flex; flex-direction: column; gap: 10px; }
  .swatch {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--gl-hairline);
    background: var(--chip-bg-soft);
    font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-dim);
  }
  .swatch .chips { display: flex; gap: 5px; margin-left: auto; }
  .swatch .chips i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.06); }

  /* ───────────── Publishing ───────────── */
  .pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
  @media (max-width: 880px) { .pub-grid { grid-template-columns: 1fr; } }
  .pub { padding: 26px 24px; border-radius: 22px; }
  .pub h3 { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 19px; margin: 12px 0 8px; }
  .pub p { font-size: 14px; color: var(--ink-dim); }

  .export-table {
    margin-top: 22px;
    padding: 6px 26px;
    border-radius: 22px;
  }
  .export-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 18px;
    padding: 18px 0;
    align-items: baseline;
  }
  .export-row + .export-row { border-top: 1px solid var(--gl-hairline); }
  .export-row .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); }
  .export-row .v { font-size: 14px; color: var(--ink-dim); }
  @media (max-width: 560px) { .export-row { grid-template-columns: 1fr; gap: 4px; } }

  /* ───────────── Final CTA ───────────── */
  .cta-card {
    padding: 58px 44px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
  }
  .cta-card h2 { font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; margin-bottom: 10px; }
  .cta-card h2 em { color: var(--accent); }
  .cta-card p { color: var(--ink-dim); max-width: 44ch; }
  .cta-card .hero-ctas { opacity: 1; animation: none; }

  /* ───────────── Footer ───────────── */
  footer { padding: 30px 22px 46px; }
  .foot-inner {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: flex; flex-direction: column; gap: 10px; align-items: center;
    text-align: center;
  }
  .foot-inner .rule { width: 34px; height: 1px; background: var(--line-strong); opacity: 0.6; margin-bottom: 4px; }
  .foot-inner .meaning { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-mute); }
  .foot-inner .meaning b { color: var(--ink-dim); font-weight: 500; }
  .foot-links { display: flex; gap: 20px; margin-top: 4px; }
  .foot-links a {
    font-family: var(--mono); font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.22em;
    color: var(--ink-mute); text-decoration: none;
    transition: color 0.2s ease;
  }
  .foot-links a:hover { color: var(--accent); }

  /* ───────────── Theme switcher ───────────── */
  .theme-wrap { position: relative; margin-left: 8px; }
  .theme-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--chip-border);
    background: var(--chip-bg);
    color: var(--ink-dim);
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  }
  .theme-btn:hover, .theme-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); background: var(--chip-hover); }
  .theme-btn svg { width: 17px; height: 17px; }
  .theme-menu {
    position: absolute;
    top: calc(100% + 14px); right: 0;
    min-width: 236px;
    padding: 10px;
    background: var(--gl-card-solid);
    border: 1px solid var(--gl-border);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    backdrop-filter: blur(20px) saturate(1.2);
    display: flex; flex-direction: column; gap: 3px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 60;
  }
  .theme-menu.open { opacity: 1; visibility: visible; transform: none; }
  .theme-menu .tm-title {
    font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.24em;
    color: var(--ink-mute);
    padding: 6px 10px 8px;
  }
  .theme-opt {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid transparent;
    background: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
    color: var(--ink-dim);
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
  .theme-opt:hover { background: var(--chip-hover); color: var(--ink); }
  .theme-opt.on { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
  .theme-opt .chips { display: flex; gap: 4px; margin-left: auto; }
  .theme-opt .chips i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
  .theme-opt .check { width: 14px; height: 14px; color: var(--accent); opacity: 0; flex: 0 0 14px; }
  .theme-opt.on .check { opacity: 1; }

  /* ───────────── Get notified modal ───────────── */
  .notify-overlay {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 22px;
    background: color-mix(in srgb, var(--bg-bot) 55%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .notify-overlay.open { opacity: 1; pointer-events: auto; }

  .notify-card {
    width: 100%; max-width: 420px;
    padding: 34px 30px 30px;
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .notify-overlay.open .notify-card { transform: none; }

  .notify-card h3 {
    font-family: var(--display);
    font-style: italic; font-weight: 600;
    font-size: 26px; letter-spacing: -0.02em;
    margin: 10px 0 8px;
  }
  .notify-card h3 em { font-style: italic; color: var(--accent); }
  .notify-card > p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.55; max-width: 34ch; margin: 0 auto; }

  .notify-close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 1px solid transparent; cursor: pointer;
    color: var(--ink-mute);
    transition: color 0.2s ease, background 0.2s ease;
  }
  .notify-close:hover { color: var(--ink); background: var(--chip-hover); }
  .notify-close svg { width: 15px; height: 15px; }

  .notify-form { display: flex; gap: 8px; margin-top: 22px; }
  .notify-form input {
    flex: 1; min-width: 0;
    font-family: var(--body); font-size: 14px;
    color: var(--ink);
    padding: 11px 16px; border-radius: 999px;
    border: 1px solid var(--chip-border);
    background: var(--chip-bg);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .notify-form input::placeholder { color: var(--ink-mute); }
  .notify-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .notify-form .btn-solid { border-radius: 999px; padding: 11px 20px; }
  .notify-form .btn-solid:disabled { opacity: 0.6; cursor: wait; transform: none; }

  .notify-msg {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em;
    margin-top: 14px; min-height: 1.2em;
  }
  .notify-msg.ok { color: var(--accent); }
  .notify-msg.err { color: var(--err); }
  .notify-msg a { color: var(--accent); }

  .notify-done { display: none; margin-top: 22px; }
  .notify-card.sent .notify-form,
  .notify-card.sent .notify-msg { display: none; }
  .notify-card.sent .notify-done { display: block; }
  .notify-done .feat-icon { margin: 0 auto 12px; }
  .notify-done p { color: var(--ink-dim); font-size: 14.5px; }

  @media (max-width: 480px) {
    .notify-form { flex-direction: column; }
    .hero-shot { margin-top: 34px; }
    .shot-bar { padding: 10px 14px; letter-spacing: 0.16em; }
  }

  /* ───────────── Keyframes ───────────── */
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes blink { 50% { opacity: 0; } }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero .eyebrow, .wordmark, .hero-ctas, .hero-pills, .hero-shot, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
    .y-stroke { stroke-dashoffset: 0; animation: none; }
    .type::after, .eyebrow .dot { animation: none; }
    .play-scene p, .choice-btn, .ref-anim { animation: none; opacity: 1; }
    .notify-overlay, .notify-card { transition: none; }
  }
.hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.hero-card,
.hero-shot {
  flex: 0 0 auto;
}
