  :root {
    --white: #faf9f7;
    --paper: #f5f3ef;
    --lavender-soft: #e8e4f5;
    --lavender: #c5b8f0;
    --purple: #7c5cbf;
    --purple-deep: #5a3fa0;
    --ink: #1a1620;
    --ink-mid: #3d3548;
    --ink-light: #7a7085;
    --line: rgba(26,22,32,0.1);
    --serif: Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { font-size: clamp(15px, 0.42vw + 9px, 22px); scroll-behavior: auto; background: var(--white); }
  html.wheel { scrollbar-width: none; }
  html.wheel::-webkit-scrollbar { display: none; }
  body { color: var(--ink); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
  html.wheel body { overscroll-behavior-y: none; }
  h1, h2, h3 { font-weight: 400; }
  button { font-family: inherit; }

  .bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 55% 45% at 15% 20%, rgba(197,184,240,0.26) 0%, transparent 70%),
      radial-gradient(ellipse 50% 55% at 88% 85%, rgba(197,184,240,0.2) 0%, transparent 70%),
      var(--white);
  }
  #net {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(0,0,0,0.22) 0%, #000 85%);
            mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(0,0,0,0.22) 0%, #000 85%);
  }
  html.wheel #net { display: block; }

  /* ══ NAV ══ */
  #nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.6rem 3vw; pointer-events: none;
  }
  #nav > * { pointer-events: auto; }
  .logo {
    display: flex; flex-direction: row; align-items: center; gap: 0.75rem;
    text-decoration: none; line-height: 1.35; cursor: pointer;
  }
  .logo img {
    width: 2.4rem; height: 2.4rem; object-fit: contain; flex-shrink: 0;
    display: block;
  }
  .logo .logo-text { display: flex; flex-direction: column; }
  .logo b { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
  .logo span { font-size: 0.68rem; color: var(--ink-light); letter-spacing: 0.04em; }
  .nav-cta {
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--purple); text-decoration: none; cursor: pointer;
    border: 1px solid var(--lavender); border-radius: 100px; padding: 0.6rem 1.3rem;
    background: rgba(250,249,247,0.7);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
  }
  .nav-cta:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
  .nav-right { display: flex; align-items: center; gap: 1.4rem; }
  .nav-read {
    font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-light); text-decoration: none; cursor: pointer;
    border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s;
  }
  .nav-read:hover { color: var(--ink); border-color: var(--ink); }
  html:not(.wheel) #nav { background: rgba(250,249,247,0.94); }
  #doc h3[id], #doc section[id] { scroll-margin-top: 6rem; }
  #doc a { color: var(--purple); }

  /* ══════════ STATIC DOCUMENT (no JavaScript / search engines) ══════════ */
  #doc { position: relative; z-index: 1; }
  html.wheel #doc { display: none; }
  #doc section { max-width: 52rem; margin: 0 auto; padding: 6rem 7vw 2rem; }
  #doc h1 { font-family: var(--serif); font-size: 3.4rem; line-height: 1.1; letter-spacing: -0.02em; margin: 3rem 0 1.4rem; }
  #doc h2 { font-family: var(--serif); font-size: 2rem; line-height: 1.25; margin-bottom: 1rem; }
  #doc h3 { font-family: var(--serif); font-size: 1.35rem; margin: 1.6rem 0 0.4rem; }
  #doc p, #doc li { color: var(--ink-mid); margin-bottom: 0.8rem; }
  #doc ul { padding-left: 1.2rem; }

  /* ══════════ INTERACTIVE WHEEL ══════════ */
  #stage { display: none; }
  html.wheel #stage {
    display: block; position: fixed; inset: 0; z-index: 1;
    overflow: hidden; pointer-events: none; perspective: 1600px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  }
  #track { display: none; }
  html.wheel #track { display: block; position: relative; width: 100%; pointer-events: none; }

  .slide {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 0 7vw;
    visibility: hidden; opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
  }
  .slide.on { pointer-events: auto; }
  .inner { width: 100%; max-width: 46rem; margin: 0 auto; }
  .inner.wide { max-width: 54rem; }
  .inner.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

  #dots {
    position: fixed; right: 1.6vw; top: 50%; transform: translateY(-50%); z-index: 20;
    display: none; flex-direction: column; gap: 0.75rem;
  }
  html.wheel #dots { display: flex; }
  #dots button {
    width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0;
    background: var(--lavender); cursor: pointer;
    transition: transform 0.5s, background 0.5s;
    animation: dotIn 0.8s ease both;
  }
  #dots button.active { background: var(--purple); transform: scale(1.7); }
  @keyframes dotIn { from { opacity: 0; transform: scale(0); } }

  /* ── type ── */
  .kicker {
    display: block; margin-bottom: 1.8rem;
    font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--purple);
  }
  .hero-manifesto { font-family: var(--serif); font-size: clamp(2.4rem, 5.2vw, 8rem); line-height: 1.06; letter-spacing: -0.028em; color: var(--ink); }
  .hero-manifesto .accent { color: var(--purple); }
  .voice { font-family: var(--serif); font-size: 2.15rem; line-height: 1.3; letter-spacing: -0.018em; color: var(--ink); }
  .question { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; color: var(--ink-mid); margin: 2.4rem 0 0.9rem; }
  .inner.center .question { margin-top: 2.8rem; }

  /* ── answers so far (each one goes back to that question) ── */
  .trail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-bottom: 1.8rem; }
  .trail a {
    font-size: 0.7rem; letter-spacing: 0.04em; color: var(--purple); text-decoration: none; cursor: pointer;
    border-bottom: 1px solid var(--lavender); padding-bottom: 1px;
    transition: color 0.25s, border-color 0.25s;
  }
  .trail a:hover { color: var(--ink); border-color: var(--ink); }
  .trail i { font-style: normal; color: var(--lavender); font-size: 0.7rem; }

  /* ── the menu: press 1, press 2 ── */
  .menu { list-style: none; width: 100%; border-top: 1px solid var(--line); text-align: left; }
  .inner.center .menu { max-width: 40rem; }
  .menu button {
    width: 100%; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 0.9rem; align-items: center;
    padding: 0.85rem 0.2rem; background: none; border: 0; border-bottom: 1px solid var(--line);
    cursor: pointer; text-align: left;
  }
  .menu .n {
    width: 1.8rem; height: 1.8rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 600; color: var(--purple);
    border: 1px solid var(--lavender);
    transition: background 0.35s, color 0.35s, border-color 0.35s;
  }
  .menu .l { font-family: var(--serif); font-size: 1.38rem; line-height: 1.3; color: var(--ink); transition: transform 0.4s, color 0.35s; display: block; }
  .menu .h { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--ink-light); margin-top: 0.1rem; transition: transform 0.4s; }
  /* hover only after the mouse has really moved over the new slide (see .fresh in the script),
     and it never looks like a chosen answer: only a filled number means "chosen" */
  #stage:not(.fresh) .menu button:hover .l, .menu button:focus-visible .l { color: var(--purple); transform: translateX(6px); }
  #stage:not(.fresh) .menu button:hover .h, .menu button:focus-visible .h { transform: translateX(6px); }
  #stage:not(.fresh) .menu button:hover .n, .menu button:focus-visible .n { border-color: var(--purple); }
  .menu button.sel .n { background: var(--purple); border-color: var(--purple); color: #fff; }
  .menu button:focus-visible { outline: none; }
  .menu button.sel .l { color: var(--purple); }
  .menu button.go .l { color: var(--purple); }
  .menu.nudge .n { animation: nudge 0.8s ease; }
  @keyframes nudge { 35% { background: var(--purple); color: #fff; border-color: var(--purple); transform: scale(1.15); } }
  .keys { margin-top: 0.9rem; font-size: 0.74rem; color: var(--ink-light); }

  .other { display: flex; gap: 0.5rem; margin-top: 1rem; width: 100%; max-width: 40rem; }
  .other input {
    flex: 1; min-width: 0;
    border: 0; border-bottom: 1px solid var(--line);
    padding: 0.6rem 0.2rem;
    font-family: var(--serif); font-size: 1.1rem; color: var(--ink);
    background: transparent; outline: none;
    transition: border-color 0.25s;
  }
  .other input:focus { border-color: var(--purple); }
  .other input::placeholder { color: #a9a1b3; }
  .other button {
    border: 1px solid var(--lavender); border-radius: 100px; cursor: pointer;
    background: transparent; color: var(--purple); font-size: 1rem; width: 2.6rem; height: 2.6rem; flex-shrink: 0; align-self: center;
    transition: background 0.3s, color 0.3s;
  }
  .other button:hover { background: var(--purple); color: #fff; }

  /* ── agent at work ── */
  .run { list-style: none; position: relative; margin: 1.8rem 0 0; }
  .run::before { content: ''; position: absolute; left: 0.32rem; top: 0.7rem; bottom: 0.7rem; width: 1px; background: var(--lavender); }
  .run li {
    position: relative; display: grid; grid-template-columns: 3.8rem 6.6rem 1fr; gap: 0.8rem;
    padding: 0.4rem 0 0.4rem 1.6rem;
    font-size: 0.92rem; color: var(--ink-mid); opacity: 0.3;
  }
  .run li::before {
    content: ''; position: absolute; left: 0; top: 0.8rem;
    width: 0.66rem; height: 0.66rem; border-radius: 50%;
    background: var(--white); border: 1.5px solid var(--lavender);
  }
  .run .t { font-variant-numeric: tabular-nums; color: var(--ink-light); font-size: 0.8rem; padding-top: 0.1rem; }
  .run .r { font-weight: 600; color: var(--ink); font-size: 0.84rem; padding-top: 0.08rem; }
  .play .run li { animation: lit 0.9s ease forwards; animation-delay: calc(var(--i) * 0.7s + 0.3s); }
  .play .run li::before { animation: node 0.9s ease forwards; animation-delay: calc(var(--i) * 0.7s + 0.3s); }
  @keyframes lit { to { opacity: 1; } }
  @keyframes node { to { background: var(--purple); border-color: var(--purple); box-shadow: 0 0 0 5px rgba(124,92,191,0.14); } }

  /* ── agent sketch ── */
  .agent-name { font-family: var(--serif); font-size: 2.8rem; letter-spacing: -0.02em; line-height: 1.1; margin: 1.8rem 0 1.2rem; }
  .agent-name small { display: block; font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--purple); margin-bottom: 0.5rem; }
  .spec { width: 100%; border-top: 1px solid var(--line); }
  .spec div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.2rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .spec dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-light); padding-top: 0.2rem; }
  .spec dd { font-size: 0.95rem; color: var(--ink-mid); }
  .spec dd ul { list-style: none; }
  .spec dd li + li { margin-top: 0.15rem; }
  .spec dd li::before { content: '· '; color: var(--purple); }
  .spec dd li.focus { color: var(--ink); }

  /* ── proof ── */
  .case-tag { display: inline-block; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); background: var(--lavender-soft); padding: 0.3rem 0.7rem; border-radius: 100px; margin: 1.6rem 0 0.9rem; }
  .case-title { font-family: var(--serif); font-size: 1.8rem; line-height: 1.25; margin-bottom: 0.9rem; }
  .case-text { font-size: 0.98rem; color: var(--ink-mid); line-height: 1.75; }
  .case-text p + p { margin-top: 0.8em; }
  .case-result { margin-top: 1.1rem; padding: 0.8rem 1.1rem; background: rgba(245,243,239,0.9); border-left: 3px solid var(--lavender); font-size: 0.92rem; color: var(--ink-mid); }
  .numbers { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem 2rem; margin: 1.8rem 0 1.6rem; }
  .numbers b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em; }
  .numbers span { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-light); }

  /* ── contact ── */
  .contact-title { font-family: var(--serif); font-size: 3.1rem; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem; }
  .contact-sub { font-size: 1.02rem; color: var(--ink-mid); margin-bottom: 1.6rem; max-width: 32em; }
  .lead { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .task-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 0.6rem; }
  .task {
    width: 100%; max-width: 28rem; min-height: 6.2rem; resize: none;
    border: 1.5px solid rgba(0,0,0,0.12); border-radius: 14px; padding: 0.9rem 1.1rem;
    font-family: var(--sans); font-size: 0.9rem; line-height: 1.5; color: var(--ink);
    background: rgba(255,255,255,0.88); outline: none; margin-bottom: 1.1rem;
    transition: border-color 0.25s;
  }
  .task:focus { border-color: var(--lavender); }
  .task::placeholder { color: #a9a1b3; }
  .auth-buttons { display: flex; flex-direction: column; gap: 0.7rem; align-items: center; width: 100%; }
  .auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    width: 100%; max-width: 28rem; padding: 0.85rem 1.8rem; border-radius: 100px;
    font-family: var(--sans); font-size: 0.95rem; font-weight: 500; cursor: pointer; text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .auth-btn:hover { opacity: 0.88; transform: translateY(-1px); }
  .auth-btn svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
  .auth-google { background: #fff; color: var(--ink); border: 1.5px solid rgba(0,0,0,0.14); }
  .auth-linkedin { background: #0a66c2; color: #fff; border: 1.5px solid #0a66c2; }
  .contact-note { margin-top: 1.2rem; font-size: 0.78rem; color: var(--ink-light); line-height: 1.6; max-width: 28rem; }
  .footer-bar {
    display: flex; justify-content: space-between; gap: 1rem;
    width: 100%; max-width: 28rem; margin-top: 1.8rem; padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.08); font-size: 0.7rem; color: var(--ink-light);
  }
  .footer-bar a { color: var(--purple); text-decoration: none; }

  @media (max-width: 760px) {
    #nav { padding: 1.1rem 1.2rem; }
    .slide { padding: 0 1.3rem; }
    #dots { right: 0.6rem; gap: 0.55rem; }
    .voice { font-size: 1.55rem; }
    .menu .l { font-size: 1.15rem; }
    .run li { grid-template-columns: 3.2rem 1fr; }
    .run .x { grid-column: 1 / -1; }
    .spec div { grid-template-columns: 1fr; gap: 0.2rem; }
    .agent-name { font-size: 2.1rem; }
    .contact-title { font-size: 2.2rem; }
    .keys { display: none; }
    #doc h1 { font-size: 2.4rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .play .run li, .play .run li::before { animation-duration: 0.01s; animation-delay: 0s; }
  }
