/* ============================================================
   The stage: the front page's hero, Raycast-style.
   A dark, crisp door with one glow, then the product itself on a drawn Mac
   desktop: a full-screen chat app with Lyndran's card over it, the sidebar
   at the edge, Claude's steps, the phone. A row of tiles switches what the
   desk shows. Everything here is drawn in HTML and CSS from the app's own
   shapes and words; nothing is a screenshot of anyone's real Mac.
   The desk is sized in container units, so it is the same picture at any
   width. Motion is transform and opacity only, and none of it runs under
   reduced motion.
   ============================================================ */

.stage-door {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--navh) + 9vh) 20px 0;
  text-align: center;
}

/* the one glow: slanted bands of the brand blues, blurred, behind the words */
.stage-door .glow {
  position: absolute;
  inset: -10% -20% auto;
  height: 820px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(61, 90, 254, 0.30), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 70px, rgba(74, 102, 255, 0.55) 70px 120px, transparent 120px 190px);
  filter: blur(38px) saturate(1.2);
  opacity: 0.55;
  mask-image: radial-gradient(55% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(55% 60% at 50% 40%, #000 30%, transparent 75%);
  animation: stage-drift 18s ease-in-out infinite alternate;
}
@keyframes stage-drift {
  from { transform: translate3d(-2%, 0, 0) rotate(0.001deg); }
  to { transform: translate3d(2%, 1.5%, 0) rotate(0.001deg); }
}

.stage-door h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #fff;
}
.stage-door h1 .soft { color: rgba(233, 236, 248, 0.55); }
.stage-door .sub {
  margin: 22px auto 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--dim);
}
.stage-door .acts {
  width: auto; max-width: none; margin: 30px auto 0;
  flex-direction: row; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.stage-door .acts .btn { height: 46px; padding: 0 20px; border-radius: 11px; font-size: 15px; font-weight: 600; }
.stage-door .honest { margin: 14px auto 0; font-size: 13px; color: var(--faint); }

/* keyboard-chip detail: the ask, as typed */
.kbd {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 26px;
  padding: 7px 12px 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(147, 165, 255, 0.18);
  background: rgba(19, 24, 51, 0.6);
  font: 13px/1 var(--mono);
  color: var(--dim);
}
.kbd .key {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(147, 165, 255, 0.22);
  border-bottom-width: 2px;
  background: rgba(12, 14, 26, 0.9);
  font: 600 11px/1 var(--sans);
  color: var(--text);
}

/* works with: names in neutral pills, only what works today */
.works {
  margin: 30px auto 0;
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
  font-size: 12.5px; color: var(--faint);
}
.works .with {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(147, 165, 255, 0.2);
  background: rgba(15, 18, 38, 0.7);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============ the desk ============ */
.desk-wrap {
  position: relative;
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 0 20px;
}
.desk {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(147, 165, 255, 0.22);
  background:
    radial-gradient(80% 70% at 30% 20%, #2b3a9a 0%, transparent 60%),
    radial-gradient(70% 80% at 85% 90%, #1b2470 0%, transparent 60%),
    linear-gradient(160deg, #141a46, #0a0d22);
  box-shadow: 0 40px 120px -30px rgba(61, 90, 254, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.4);
  font-family: var(--sans);
  user-select: none;
}

/* menu bar */
.desk .bar {
  position: absolute; inset: 0 0 auto;
  height: 3.2cqw;
  display: flex; align-items: center; gap: 1.6cqw;
  padding: 0 1.6cqw;
  background: rgba(10, 12, 28, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 1.15cqw; color: rgba(255, 255, 255, 0.88);
  z-index: 5;
}
.desk .bar b { font-weight: 700; }
.desk .bar .grow { flex: 1; }
.desk .bar .mk { width: 1.5cqw; height: 1.5cqw; }
.desk .bar .dim { color: rgba(255, 255, 255, 0.6); }

/* the full-screen chat app */
.desk .app {
  position: absolute; inset: 3.2cqw 0 0;
  display: grid; grid-template-columns: 19cqw 1fr;
  background: #17171a;
  color: #e8e8ea;
}
.desk .app .side {
  border-right: 1px solid #26262b;
  padding: 1.8cqw 1.4cqw;
  font-size: 1.1cqw; color: #9a9aa2;
}
.desk .app .side .new {
  display: block; padding: 0.7cqw 0.9cqw; border-radius: 0.7cqw;
  background: #232328; color: #e8e8ea; font-weight: 600; margin-bottom: 1.6cqw;
}
.desk .app .side p { margin: 0 0 0.9cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .app .side .on { color: #e8e8ea; }
.desk .app .chat { position: relative; padding: 3cqw 7cqw 0; }
.desk .msg { font-size: 1.35cqw; line-height: 1.55; margin-bottom: 2cqw; max-width: 54cqw; }
.desk .msg.you {
  margin-left: auto; width: fit-content; max-width: 36cqw;
  padding: 1cqw 1.4cqw; border-radius: 1.2cqw; background: #2a2a30;
}
.desk .msg .who { display: block; font-size: 1.05cqw; color: #8b8b93; margin-bottom: 0.4cqw; font-weight: 600; }
.desk .msg .tool {
  display: inline-flex; align-items: center; gap: 0.6cqw;
  margin: 0.5cqw 0; padding: 0.5cqw 0.9cqw;
  border-radius: 0.7cqw; border: 1px solid #2c2c33;
  font-size: 1.05cqw; color: #a1a1a8;
}
.desk .msg .tool i { width: 0.7cqw; height: 0.7cqw; border-radius: 50%; background: #3d5afe; }
.desk .composer {
  position: absolute; left: 7cqw; right: 7cqw; bottom: 2.2cqw;
  padding: 1.2cqw 1.6cqw; border-radius: 1.4cqw;
  border: 1px solid #2c2c33; background: #1f1f23;
  font-size: 1.25cqw; color: #6e6e76;
}

/* Lyndran's card, over the full-screen app (the NSPanel) */
.desk .card {
  position: absolute; right: 3cqw; bottom: 3cqw;
  width: 30cqw;
  border-radius: 1.3cqw;
  background: rgba(32, 32, 37, 0.82);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2.4cqw 6cqw -1cqw rgba(0, 0, 0, 0.6);
  color: #ececee;
  z-index: 4;
}
.desk .card .grip { display: grid; place-items: center; height: 1.6cqw; }
.desk .card .grip i { width: 3cqw; height: 0.35cqw; border-radius: 1cqw; background: #3a3a41; }
.desk .card .head { display: flex; align-items: center; gap: 0.8cqw; padding: 0 1.4cqw; font-size: 1.1cqw; color: #a1a1a8; }
.desk .card .head b { color: #ececee; }
.desk .card .head svg { width: 2cqw; height: 2cqw; }
.desk .card .body { padding: 1cqw 1.4cqw 0.8cqw; }
.desk .card .title { font-size: 1.45cqw; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.desk .card .band { margin-top: 0.8cqw; padding: 0.5cqw 0.8cqw; border-radius: 0.7cqw; background: rgba(61, 90, 254, 0.16); color: #8ea0ff; font-size: 1.1cqw; font-weight: 600; }
.desk .card .line { margin-top: 0.5cqw; font-size: 1.15cqw; color: #a1a1a8; line-height: 1.4; }
.desk .card .btns { display: flex; gap: 0.8cqw; padding: 0.6cqw 1.4cqw 1.4cqw; }
.desk .card .btns span {
  flex: 1; display: grid; place-items: center;
  height: 3.1cqw; border-radius: 0.8cqw;
  font-size: 1.2cqw; font-weight: 600;
}
.desk .card .no { background: rgba(255, 90, 90, 0.12); color: #ff8a8a; }
.desk .card .yes { position: relative; overflow: hidden; background: #3d5afe; color: #fff; }
.desk .card .yes::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-100%);
  animation: stage-sheen 3.2s 1.2s ease-in-out infinite;
}
@keyframes stage-sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* the sidebar at the right edge */
.desk .rail {
  position: absolute; top: 4.6cqw; right: 1.4cqw; bottom: 1.4cqw;
  width: 22cqw;
  border-radius: 1.4cqw;
  background: rgba(28, 28, 33, 0.78);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2cqw 6cqw -1cqw rgba(0, 0, 0, 0.6);
  padding: 1.4cqw;
  color: #ececee;
  z-index: 3;
}
.desk .rail .top { display: flex; align-items: center; gap: 0.8cqw; font-size: 1.3cqw; font-weight: 700; }
.desk .rail .top svg { width: 2.2cqw; height: 2.2cqw; }
.desk .rail h6 { margin: 1.8cqw 0 0.7cqw; font-size: 0.95cqw; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6e6e76; }
.desk .rail .row {
  display: flex; align-items: center; gap: 0.8cqw;
  padding: 0.8cqw 0.9cqw; border-radius: 0.8cqw;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.1cqw; margin-bottom: 0.5cqw;
}
.desk .rail .row small { display: block; color: #8b8b93; font-size: 0.95cqw; margin-top: 0.15cqw; }
.desk .rail .row .tag { margin-left: auto; font-size: 0.95cqw; color: #8ea0ff; font-weight: 600; white-space: nowrap; }
.desk .rail .row .dot { width: 0.8cqw; height: 0.8cqw; border-radius: 50%; background: #3d5afe; flex: none; }
.desk .rail .row .dot.ok { background: #34c759; }
.desk .rail .row .dot.dim { background: #55555c; }

/* Claude's steps */
.desk .steps {
  position: absolute; left: 50%; top: 50%;
  width: 34cqw;
  transform: translate(-50%, -46%);
  border-radius: 1.3cqw;
  background: rgba(32, 32, 37, 0.85);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2.4cqw 6cqw -1cqw rgba(0, 0, 0, 0.6);
  padding: 1.4cqw;
  color: #ececee;
  z-index: 4;
}
.desk .steps .head { display: flex; align-items: center; gap: 0.8cqw; font-size: 1.1cqw; color: #a1a1a8; }
.desk .steps .head b { color: #ececee; }
.desk .steps .head svg { width: 2cqw; height: 2cqw; }
.desk .steps .title { margin-top: 1cqw; font-size: 1.45cqw; font-weight: 650; }
.desk .steps ol { margin: 1cqw 0 0; padding: 0 0 0 1.6cqw; font-size: 1.15cqw; color: #a1a1a8; line-height: 1.7; }
.desk .steps .go {
  margin-top: 1.2cqw; display: flex; align-items: center; justify-content: center; gap: 0.6cqw;
  height: 3.1cqw; border-radius: 0.8cqw; background: #3d5afe; color: #fff; font-size: 1.2cqw; font-weight: 600;
}

/* the phone */
.desk .phone {
  position: absolute; right: 5cqw; top: 6cqw;
  width: 21cqw; aspect-ratio: 9 / 19;
  border-radius: 3.2cqw;
  background: #0b0b0e;
  border: 0.5cqw solid #2a2a30;
  box-shadow: 0 3cqw 8cqw -1cqw rgba(0, 0, 0, 0.7);
  padding: 2.2cqw 1.4cqw;
  color: #ececee;
  z-index: 4;
}
.desk .phone .note { font-size: 1cqw; color: #8b8b93; text-align: center; }
.desk .phone .pcard { margin-top: 1.6cqw; border-radius: 1.6cqw; background: #1c1c21; padding: 1.4cqw; }
.desk .phone .pcard .from { font-size: 0.95cqw; color: #8b8b93; }
.desk .phone .pcard .title { margin-top: 0.5cqw; font-size: 1.35cqw; font-weight: 650; line-height: 1.3; }
.desk .phone .pcard .line { margin-top: 0.6cqw; font-size: 1.05cqw; color: #a1a1a8; }
.desk .phone .pcard .yes { margin-top: 1.4cqw; height: 3.2cqw; border-radius: 1cqw; display: grid; place-items: center; background: #3d5afe; font-size: 1.2cqw; font-weight: 600; }
.desk .phone .pcard .no { margin-top: 0.6cqw; height: 3cqw; border-radius: 1cqw; display: grid; place-items: center; background: #26262c; color: #a1a1a8; font-size: 1.15cqw; }

/* scenes: what is on the desk */
.desk [data-in] {
  opacity: 0;
  transform: translateY(1.2cqw) scale(0.985);
  transition: opacity 0.45s var(--ease-arrive), transform 0.55s var(--ease-arrive);
  pointer-events: none;
}
.desk .steps[data-in] { transform: translate(-50%, -42%) scale(0.985); }
.desk[data-scene="card"] [data-in~="card"],
.desk[data-scene="rail"] [data-in~="rail"],
.desk[data-scene="steps"] [data-in~="steps"],
.desk[data-scene="phone"] [data-in~="phone"] { opacity: 1; transform: none; }
.desk[data-scene="steps"] .steps[data-in~="steps"] { transform: translate(-50%, -46%); }
.desk .chat [data-scene-msg] { display: none; }
.desk[data-scene="card"] .chat [data-scene-msg~="card"],
.desk[data-scene="rail"] .chat [data-scene-msg~="rail"],
.desk[data-scene="steps"] .chat [data-scene-msg~="steps"],
.desk[data-scene="phone"] .chat [data-scene-msg~="phone"] { display: block; }

/* the tiles that switch it, and the line that says what it is */
.tiles {
  display: flex; justify-content: center; gap: 10px;
  margin: 26px auto 0;
}
.tile {
  position: relative;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(147, 165, 255, 0.16);
  background: rgba(15, 18, 38, 0.8);
  color: var(--dim);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.tile svg { width: 22px; height: 22px; }
.tile:hover { color: var(--text); transform: translateY(-2px); }
.tile[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(125, 146, 255, 0.55);
  background: linear-gradient(180deg, rgba(61, 90, 254, 0.35), rgba(61, 90, 254, 0.15));
}
.tile .tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 9px; border-radius: 7px;
  background: #1c2142; color: var(--text);
  font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.tile:hover .tip, .tile:focus-visible .tip { opacity: 1; transform: translateX(-50%); }
.tile .bar-progress {
  position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px;
  border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden;
  opacity: 0;
}
.tile[aria-pressed="true"] .bar-progress { opacity: 1; }
.tile .bar-progress i { display: block; height: 100%; width: 100%; background: #7d92ff; transform-origin: left; transform: scaleX(0); }
.stage-auto .tile[aria-pressed="true"] .bar-progress i { animation: stage-fill var(--dwell, 6.5s) linear forwards; }
@keyframes stage-fill { to { transform: scaleX(1); } }

.caption {
  margin: 22px auto 0;
  max-width: 56ch;
  min-height: 3.2em;
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  color: var(--faint);
}
.caption b { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .stage-door { padding-top: calc(var(--navh) + 6vh); }
  .desk-wrap { padding: 0 12px; }
  .desk { border-radius: 10px; }
  .tile { width: 48px; height: 48px; border-radius: 12px; }
  .caption { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-door .glow { animation: none; }
  .desk .card .yes::after { animation: none; }
  .desk [data-in] { transition: none; }
  .stage-auto .tile[aria-pressed="true"] .bar-progress i { animation: none; }
}

:root[data-theme="light"] .stage-door h1 { color: var(--text); }
:root[data-theme="light"] .stage-door h1 .soft { color: var(--faint); }
:root[data-theme="light"] .kbd,
:root[data-theme="light"] .works .with,
:root[data-theme="light"] .tile { background: #fff; }
:root[data-theme="light"] .kbd .key { background: #f6f6f3; }
:root[data-theme="light"] .tile[aria-pressed="true"] { color: #fff; background: #3d5afe; }
:root[data-theme="light"] .tile .tip { background: #15181f; color: #fff; }

/* the AI marks, as each company ships them: unaltered, smaller than
   Lyndran's own mark, and only beside a name that works (or says "soon") */
.works .with { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; font-size: 14px; }
.works .with .lg { width: 18px; height: 18px; flex: none; }
.works .with .soon {
  margin-left: 2px; padding: 2px 7px; border-radius: 999px;
  background: rgba(147, 165, 255, 0.14); color: var(--accent-up);
  font: 600 10.5px/1.4 var(--sans); font-style: normal; letter-spacing: 0.02em; text-transform: uppercase;
}
:root[data-theme="light"] .works .with .soon { background: rgba(61, 90, 254, 0.1); }

/* the AI marks, behind the page: big, faint, out of focus, drifting. Each
   company's mark as it ships it, never over the words. */
.stage-door .ghosts { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stage-door .ghost {
  position: absolute;
  width: clamp(220px, 30vw, 440px); height: auto;
  opacity: 0.09;
  filter: blur(1.5px);
  animation: ghost-float 14s ease-in-out infinite alternate;
}
.stage-door .g-claude { left: -6vw; top: 14%; transform: rotate(-12deg); }
.stage-door .g-openai { right: -5vw; top: 30%; color: #c9d1ff; opacity: 0.08; transform: rotate(10deg); animation-delay: -7s; }
@keyframes ghost-float {
  from { translate: 0 0; }
  to { translate: 0 -22px; }
}
@media (max-width: 640px) {
  .stage-door .ghost { width: 180px; opacity: 0.07; }
  .stage-door .g-claude { left: -60px; top: 8%; }
  .stage-door .g-openai { right: -60px; top: 46%; }
}
@media (prefers-reduced-motion: reduce) { .stage-door .ghost { animation: none; } }
:root[data-theme="light"] .stage-door .g-openai { color: #15181f; opacity: 0.06; }

/* ============ works with: the tile grid ============ */
.withs { text-align: center; }
.withs .eyebrow {
  margin: 0 0 12px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-up);
}
.withs .lede { margin: 14px auto 0; max-width: 46ch; color: var(--dim); }
.grid5 {
  --size: clamp(64px, 11vw, 108px);
  display: grid;
  grid-template-columns: repeat(5, var(--size));
  gap: clamp(10px, 1.6vw, 18px);
  justify-content: center;
  margin: 44px auto 0;
  position: relative;
}
.grid5::before {
  /* the light under the lit tile */
  content: ""; position: absolute; left: 50%; top: 50%;
  width: calc(var(--size) * 3); height: calc(var(--size) * 2.2);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(61, 90, 254, 0.35), transparent);
  filter: blur(10px);
  z-index: -1;
}
.grid5 .t {
  position: relative;
  display: grid; place-items: center; align-content: center; gap: 6px;
  width: var(--size); height: var(--size);
  border-radius: 24%;
  border: 1px solid rgba(147, 165, 255, 0.10);
  background: linear-gradient(180deg, rgba(28, 31, 52, 0.85), rgba(16, 18, 34, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: rgba(214, 220, 245, 0.62);
  opacity: calc(1 - var(--d) * 0.28);
}
.grid5 .t.empty { opacity: calc(0.75 - var(--d) * 0.2); }
.grid5 .t .lg { width: calc(var(--size) * 0.34); height: calc(var(--size) * 0.34); }
.grid5 .t b { font-size: clamp(10px, 1vw, 12px); font-weight: 600; color: rgba(214, 220, 245, 0.7); }
.grid5 .t.ai b { font-size: clamp(12px, 1.35vw, 16px); letter-spacing: -0.01em; color: rgba(214, 220, 245, 0.86); }
.grid5 .t em {
  position: absolute; bottom: calc(var(--size) * -0.26); left: 50%; transform: translateX(-50%);
  padding: 1px 6px; border-radius: 999px;
  background: rgba(147, 165, 255, 0.14); color: var(--accent-up);
  font: 600 9px/1.5 var(--sans); font-style: normal; letter-spacing: 0.04em; text-transform: uppercase;
}
/* the lit centre is the mark itself: Lyn on her soft tile, filling it (she
   is blue, so the old blue tile would swallow her) */
.grid5 .t.center {
  border-color: rgba(125, 146, 255, 0.6);
  background: #eef1ff;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(125, 146, 255, 0.25), 0 10px 40px -6px rgba(61, 90, 254, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.grid5 .t.center .lg { width: 100%; height: 100%; }
@media (max-width: 520px) {
  .grid5 { --size: 58px; gap: 9px; }
  .grid5 .t b { display: none; }
}
:root[data-theme="light"] .grid5 .t:not(.center) { background: #fff; border-color: rgba(20, 26, 60, 0.12); color: rgba(21, 24, 31, 0.55); }
:root[data-theme="light"] .grid5 .t b { color: rgba(21, 24, 31, 0.6); }

/* ============================================================
   The ask bar, and the conversation that plays itself (2026-10-15,
   Murat: make it like the AI sites). The shape everyone knows — a
   composer with a caret — typing the ask that the drawn desk below is
   about, then the reply, then the card. Every word is the app's own and
   the flow is the shipped one: the ask, what Claude read, then a card
   that waits. The bar sends nothing: there is no input here, and the
   chips are the only controls.
   ============================================================ */

.askbar {
  display: flex; align-items: center; gap: 10px;
  width: min(560px, 92vw);
  margin: 30px auto 0;
  padding: 0 14px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(147, 165, 255, 0.22);
  background: linear-gradient(180deg, rgba(20, 24, 48, 0.9), rgba(12, 14, 30, 0.9));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 50px -24px rgba(61, 90, 254, 0.65);
  text-align: left;
}
.askbar .dotmark {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: #3d5afe; box-shadow: 0 0 0 4px rgba(61, 90, 254, 0.18);
}
.askbar .typed {
  flex: 1; min-width: 0;
  font-size: 15.5px; color: var(--text);
  white-space: nowrap; overflow: hidden;
}
.askbar .typed:empty::before { content: "Ask for something on your Mac"; color: var(--faint); }
.askbar .caret {
  width: 1.5px; height: 19px; flex: none;
  background: var(--accent-up);
  animation: ask-blink 1.1s steps(1) infinite;
}
.askbar .send {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  background: rgba(61, 90, 254, 0.16); color: var(--accent-up);
  font-size: 15px;
}
@keyframes ask-blink { 50% { opacity: 0; } }

.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  width: min(620px, 94vw);
  margin: 14px auto 0;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(147, 165, 255, 0.18);
  background: rgba(15, 18, 38, 0.7);
  color: var(--dim);
  font: 500 14px/1.2 var(--sans);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(147, 165, 255, 0.4); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(125, 146, 255, 0.5);
  background: linear-gradient(180deg, rgba(61, 90, 254, 0.38), rgba(61, 90, 254, 0.16));
}
.demo-note { margin: 14px auto 0; font-size: 12.5px; color: var(--faint); }

/* the conversation arrives in the order it really happens: the ask, then
   what Claude says and what Lyndran read, then the card that waits. */
.desk .chat .msg { transition: opacity 0.45s var(--ease-arrive), transform 0.45s var(--ease-arrive); }
.desk[data-step] .chat .msg { opacity: 1; transform: none; }
.desk[data-step="ask"] .chat .msg:not(.you),
.desk[data-step="ask"] .composer { opacity: 0; transform: translateY(0.8cqw); }
.desk[data-step="ask"] [data-in],
.desk[data-step="reply"] [data-in] { opacity: 0; transform: translateY(1.2cqw) scale(0.985); }
.desk[data-step="ask"] .steps[data-in],
.desk[data-step="reply"] .steps[data-in] { transform: translate(-50%, -42%) scale(0.985); }
.desk .msg .tool { transition: opacity 0.4s 0.25s var(--ease-arrive); }
.desk[data-step="ask"] .msg .tool { opacity: 0; }

/* the three-up rows as cards, the way the AI sites hold them: one rounded
   panel each, a hairline that lights on hover, nothing floating. */
.stage ~ .band .fact,
.band#promises .fact, .band#mac .fact, .band#trust .fact {
  padding: 20px 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(147, 165, 255, 0.12);
  background: linear-gradient(180deg, rgba(20, 24, 48, 0.55), rgba(12, 14, 30, 0.35));
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.band#promises .fact:hover, .band#mac .fact:hover, .band#trust .fact:hover {
  border-color: rgba(147, 165, 255, 0.3);
  transform: translateY(-2px);
}
:root[data-theme="light"] .band#promises .fact,
:root[data-theme="light"] .band#mac .fact,
:root[data-theme="light"] .band#trust .fact {
  background: #fff;
  border-color: rgba(20, 26, 60, 0.1);
}
:root[data-theme="light"] .askbar {
  background: #fff;
  border-color: rgba(20, 26, 60, 0.12);
  box-shadow: 0 18px 50px -28px rgba(61, 90, 254, 0.4);
}
:root[data-theme="light"] .chip { background: #fff; }
:root[data-theme="light"] .chip[aria-pressed="true"] { color: #fff; background: #3d5afe; }

/* the ask bar costs a block of height, and the desk is the point: the door
   gives that height back so the drawn Mac is on the first screen of a
   laptop rather than under the fold. */
.stage-door { padding-top: calc(var(--navh) + 4vh); }
.stage-door h1 { font-size: clamp(38px, 5.6vw, 66px); }
.stage-door .sub { margin-top: 18px; }
.stage-door .acts { margin-top: 24px; }
.stage-door .honest { margin-top: 10px; }
.askbar { margin-top: 22px; }
.chips { margin-top: 10px; }
.demo-note { margin-top: 10px; }
.desk-wrap { margin-top: 30px; }

@media (max-width: 640px) {
  .askbar { height: 50px; border-radius: 14px; }
  .askbar .typed { font-size: 14px; }
  .chip { padding: 7px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .askbar .caret { animation: none; }
  .desk .chat .msg, .desk .msg .tool { transition: none; }
}


/* ============ dimensional hero ============ */
.stage {
  --pointer-x: 0;
  --pointer-y: 0;
}
.hero-depth {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
}
.depth-system {
  position: absolute;
  width: clamp(130px, 14vw, 190px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  animation: depth-hover 7s ease-in-out infinite alternate;
}
.depth-system-left {
  left: 6%;
  top: 23%;
  translate: calc(var(--pointer-x) * -20px) calc(var(--pointer-y) * -14px);
}
.depth-system-right {
  right: 5%;
  top: 43%;
  scale: 0.72;
  translate: calc(var(--pointer-x) * 24px) calc(var(--pointer-y) * 18px);
  animation-delay: -3.5s;
}
.depth-ring {
  position: absolute;
  border: 1px solid rgba(125, 146, 255, 0.38);
  border-radius: 50%;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 24px rgba(61, 90, 254, 0.05), 0 0 18px rgba(61, 90, 254, 0.06);
}
.depth-ring-a {
  inset: 4%;
  animation: depth-orbit-a 13s linear infinite;
}
.depth-ring-b {
  inset: 19%;
  border-color: rgba(174, 187, 255, 0.25);
  animation: depth-orbit-b 10s linear infinite reverse;
}
.depth-ring-a i {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #e6ebff 0 8%, #8ea0ff 28%, #3d5afe 68%, #17267e);
  box-shadow: 0 0 16px rgba(125, 146, 255, 0.8);
}
.depth-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) translateZ(12px);
  background: radial-gradient(circle at 32% 25%, #dfe5ff 0 3%, #8ea0ff 13%, #4a66ff 38%, #243bb7 63%, #101a50 82%);
  box-shadow: inset -12px -14px 24px rgba(3, 7, 30, 0.5), 0 0 42px rgba(61, 90, 254, 0.35);
}
.depth-cube {
  position: absolute;
  left: 15%;
  top: 67%;
  width: 62px;
  height: 62px;
  transform-style: preserve-3d;
  translate: calc(var(--pointer-x) * -30px) calc(var(--pointer-y) * -20px);
  animation: depth-cube-turn 20s linear infinite;
}
.depth-cube span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(158, 174, 255, 0.38);
  background: linear-gradient(135deg, rgba(125, 146, 255, 0.14), rgba(61, 90, 254, 0.025));
  box-shadow: inset 0 0 20px rgba(125, 146, 255, 0.06);
  backface-visibility: visible;
}
.depth-cube .cube-front { transform: translateZ(31px); }
.depth-cube .cube-back { transform: rotateY(180deg) translateZ(31px); }
.depth-cube .cube-right { transform: rotateY(90deg) translateZ(31px); }
.depth-cube .cube-left { transform: rotateY(-90deg) translateZ(31px); }
.depth-cube .cube-top { transform: rotateX(90deg) translateZ(31px); }
.depth-cube .cube-bottom { transform: rotateX(-90deg) translateZ(31px); }

@keyframes depth-hover {
  from { transform: translateY(-7px); }
  to { transform: translateY(9px); }
}
@keyframes depth-orbit-a {
  from { transform: rotateX(66deg) rotateZ(0deg); }
  to { transform: rotateX(66deg) rotateZ(360deg); }
}
@keyframes depth-orbit-b {
  from { transform: rotateY(68deg) rotateZ(0deg); }
  to { transform: rotateY(68deg) rotateZ(360deg); }
}
@keyframes depth-cube-turn {
  from { transform: rotateX(-20deg) rotateY(20deg) rotateZ(-8deg); }
  to { transform: rotateX(340deg) rotateY(380deg) rotateZ(-8deg); }
}

.desk-scene {
  position: relative;
  perspective: 1600px;
  transform-style: preserve-3d;
}
.desk-aura {
  position: absolute;
  inset: 12% 4% -7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(61, 90, 254, 0.3), rgba(61, 90, 254, 0.06) 45%, transparent 72%);
  filter: blur(28px);
  transform: translateZ(-60px);
  pointer-events: none;
}
.desk-track {
  --desk-rx: 5deg;
  --desk-ry: -2.5deg;
  position: relative;
  transform: rotateX(var(--desk-rx)) rotateY(var(--desk-ry));
  transform-origin: 50% 70%;
  transform-style: preserve-3d;
  will-change: transform;
}
.desk-track::before {
  content: "";
  position: absolute;
  inset: 8px -3px -10px;
  border: 1px solid rgba(125, 146, 255, 0.15);
  border-radius: 16px;
  background: linear-gradient(180deg, #111735, #070a18);
  box-shadow: 0 34px 80px -24px rgba(0, 0, 0, 0.8);
  transform: translateZ(-18px);
}
.desk-track .desk {
  animation: desk-levitate 7s ease-in-out infinite;
}
@keyframes desk-levitate {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 10px); }
}
.desk[data-step="done"][data-scene="card"] .card,
.desk[data-step="done"][data-scene="rail"] .rail,
.desk[data-step="done"][data-scene="steps"] .steps,
.desk[data-step="done"][data-scene="phone"] .phone {
  animation: desk-layer-float 5.5s ease-in-out infinite;
}
.desk[data-step="done"][data-scene="phone"] .phone { animation-delay: -2s; }
@keyframes desk-layer-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@media (max-width: 1000px) {
  .depth-system-left { left: 2%; }
  .depth-system-right { right: 1%; }
  .depth-cube { left: 9%; }
}
@media (max-width: 640px) {
  .hero-depth { opacity: 0.28; }
  .depth-system { width: 112px; }
  .depth-system-left { left: -38px; top: 17%; }
  .depth-system-right { right: -36px; top: 45%; }
  .depth-cube { display: none; }
  .desk-track { --desk-rx: 2deg; --desk-ry: 0deg; }
  .desk-track::before { inset: 5px -2px -6px; border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .depth-system,
  .depth-ring,
  .depth-cube,
  .desk-track .desk,
  .desk [data-in] {
    animation: none !important;
  }
  .desk-track { transform: none; }
}
:root[data-theme="light"] .hero-depth { opacity: 0.58; }
:root[data-theme="light"] .depth-ring { border-color: rgba(61, 90, 254, 0.28); }
:root[data-theme="light"] .desk-track::before {
  background: linear-gradient(180deg, #dce2fa, #aab7e7);
  box-shadow: 0 34px 70px -28px rgba(34, 52, 140, 0.45);
}
