/* Qyula OS landing — premium minimalist light theme.
   Tokens follow the Qyula UI style guide; the artwork supplies the colour. */
:root {
  --bg: #FAFAFA;
  --card: #FFFFFF;
  --surface-2: #F7F7F8;
  --hover: #F3F4F6;
  --text: #111111;
  --text-2: #55565A;
  --muted: #85868B;
  --border: #E5E7EB;
  --divider: #F0F0F1;
  --primary: #0B0B0C;
  --primary-text: #FFFFFF;
  --accent: #2196F3;

  --r-card: 12px;
  --r-box: 20px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 8px 24px -12px rgba(17, 17, 17, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: .8em; letter-spacing: -.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Lucide-style outline icon */
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--text);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, .tabs button:focus-visible, .stage-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn--primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.btn--primary:hover { background: #26272A; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 999px; }
.btn--lg { height: 50px; font-size: 16px; }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn__label { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 250, .9); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(250, 250, 250, .96); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand b { font-weight: 700; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 7px 12px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--hover); color: var(--text); }
.nav__links a.is-active { background: var(--primary); color: var(--primary-text); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.hero__copy { max-width: 780px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__copy .waitlist--inline { margin: 0 auto; width: 100%; }
.stage { width: 100%; max-width: 1080px; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: background .2s; }
.pill:hover { background: var(--hover); }
.pill .i { width: 14px; height: 14px; }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 80%, 100% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }

.hero__title { margin: 22px 0 20px; font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--n) * 70ms + 120ms); }
.is-ready .hero__title .w { opacity: 1; transform: none; filter: none; }
.ul { position: relative; }
.ul svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .28em; overflow: visible; }
.ul path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.1s var(--ease) 1s; }
.is-ready .ul path { stroke-dashoffset: 0; }

.hero__sub { max-width: 640px; margin: 0 0 28px; font-size: 18px; color: var(--text-2); }
.rotator { position: relative; display: inline-block; vertical-align: bottom; height: 1.55em; overflow: hidden; overflow-x: visible; overflow-y: clip; color: var(--text); font-weight: 600; transition: width .45s var(--ease); }
.rotator span { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform .55s var(--ease), opacity .55s var(--ease); }
.rotator span.is-on { transform: none; opacity: 1; }
.rotator span.is-out { transform: translateY(-110%); opacity: 0; }

.hero__fine { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- waitlist forms ---------- */
input[type="email"], input[type="text"] {
  height: 44px; width: 100%; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: var(--muted); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(33, 150, 243, .14); }
input.is-invalid { border-color: #E5484D; }

.waitlist--inline { display: flex; gap: 8px; max-width: 480px; flex-wrap: wrap; }
.waitlist--inline input { flex: 1 1 220px; }
.waitlist__msg { flex-basis: 100%; margin: 4px 0 0; min-height: 1.2em; font-size: 13px; color: var(--text-2); }
.waitlist__msg.is-error { color: #D93036; }
.waitlist__msg.is-ok { color: var(--text); }
.waitlist--inline.is-done input { border-color: var(--border); background: var(--surface-2); }

/* ---------- hero stage ---------- */
.stage { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-box); box-shadow: var(--shadow); overflow: hidden; }
.stage__head { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--divider); font-size: 12px; color: var(--muted); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.stage__path { font-family: var(--mono); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.stage__body { display: grid; grid-template-columns: minmax(0, 1.35fr) 40px minmax(0, 1fr); align-items: center; padding: 22px 26px; gap: 10px; background:
  radial-gradient(circle at 1px 1px, #ECECEE 1px, transparent 0) 0 0 / 18px 18px; }

/* 3D neural World Bible: a dark "artwork" panel inside the light stage */
.neural { position: relative; aspect-ratio: 420 / 380; border-radius: 14px; overflow: hidden; background: #02030a; border: 1px solid #15171d; isolation: isolate; }
.neural__fog { position: absolute; inset: -8%; width: 116%; height: 116%; filter: blur(22px) brightness(.6); pointer-events: none; }
.neural__shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse, transparent 15%, #02030a25 65%, #02030aa8); }
.neural__net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.neural__stat { position: absolute; top: 12px; left: 14px; font-size: 10.5px; color: #8b91a0; pointer-events: none; }
.neural__hint { position: absolute; top: 12px; right: 48px; font-size: 10.5px; color: #6b7180; pointer-events: none; }
.neural__legend { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; pointer-events: none; }
.neural__legend button {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px; border: 1px solid #22252d; background: rgba(4, 5, 8, .6);
  font-size: 10.5px; color: #a3a9b6; cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.neural__legend button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.neural__legend button:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); color: #e6eaf3; }
.neural__legend button.on { border-color: var(--c); color: #fff; background: color-mix(in srgb, var(--c) 22%, #040508); }
.neural__legend button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.flow { position: relative; height: 70%; display: flex; align-items: center; justify-content: center; }
.flow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow path { stroke: #C9CACE; stroke-width: 1.5; stroke-dasharray: 4 6; fill: none; animation: dash 1s linear infinite; vector-effect: non-scaling-stroke; }
.flow span { position: relative; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--card); padding: 8px 2px; border-radius: 6px; }
@keyframes dash { to { stroke-dashoffset: -20; } }

.output { display: flex; flex-direction: column; gap: 10px; }
.output__frame { position: relative; aspect-ratio: 5 / 4; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
/* flex (not grid) so the previews' percentage heights resolve against the frame and never overflow it */
.fmt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transform: scale(.96); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.fmt.is-active { opacity: 1; transform: none; }

.phone { position: relative; flex: none; height: 90%; aspect-ratio: 9 / 16; border-radius: 18px; border: 4px solid #111; overflow: hidden; background: #111; }
.phone img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 4s linear; }
.fmt--micro.is-active .phone img { transform: scale(1); }
.phone .tag { position: absolute; top: 8px; left: 8px; font: 600 9px/1 var(--mono); color: #fff; background: rgba(0,0,0,.55); padding: 4px 6px; border-radius: 5px; }
.phone .sub { position: absolute; left: 8px; right: 8px; bottom: 18px; margin: 0; font-size: 10.5px; line-height: 1.35; color: #fff; text-align: center; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.phone .bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 2px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
.phone .bar i { display: block; height: 100%; width: 0; background: #fff; }
.fmt--micro.is-active .phone .bar i { animation: grow 3.4s linear forwards; }
@keyframes grow { to { width: 100%; } }

.fmt--film { background: #0B0B0C; align-content: center; gap: 10px; }
.scope { width: 100%; aspect-ratio: 2.39 / 1; overflow: hidden; }
.scope img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.15) translateX(3%); transition: transform 4s linear; }
.fmt--film.is-active .scope img { transform: scale(1.02) translateX(-2%); }
.slate { display: flex; justify-content: space-between; width: 100%; padding: 0 14px; font: 500 10px/1 var(--mono); color: #9A9BA0; letter-spacing: .04em; }

.panels { position: relative; flex: none; overflow: hidden; height: 90%; aspect-ratio: 3 / 4; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1.25fr; gap: 6px; padding: 6px; background: #fff; border: 2px solid #111; border-radius: 4px; }
.panels img { min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: cover; border: 2px solid #111; filter: grayscale(1) contrast(1.35); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.panels img:nth-child(3) { grid-column: 1 / -1; object-position: 50% 25%; }
.fmt--manga.is-active .panels img { opacity: 1; transform: none; }
.fmt--manga.is-active .panels img:nth-child(2) { transition-delay: .25s; }
.fmt--manga.is-active .panels img:nth-child(3) { transition-delay: .5s; }
.bubble { position: absolute; right: 10%; bottom: 36%; padding: 6px 10px; background: #fff; border: 2px solid #111; border-radius: 50%; font: 700 10px/1.2 var(--font); opacity: 0; transform: scale(.6); transition: opacity .3s .9s, transform .4s var(--ease) .9s; }
.fmt--manga.is-active .bubble { opacity: 1; transform: none; }

.page { flex: none; height: 90%; aspect-ratio: 3 / 4; padding: 22px 20px; background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.page small { display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.page h4 { margin: 4px 0 12px; font: 600 20px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.page p { margin: 0; font: 11.5px/1.55 Georgia, "Times New Roman", serif; color: #2A2B2E; }
.type::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; background: #111; vertical-align: -2px; animation: blink 1s steps(1) infinite; }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.tabs button { border: 0; background: transparent; padding: 7px 4px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: background .25s, color .25s; }
.tabs button:hover { color: var(--text); }
.tabs button.is-active { background: var(--primary); color: var(--primary-text); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 8px 0 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
.marquee figure { position: relative; margin: 0; width: 170px; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.marquee img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .marquee figure:hover img { transform: scale(1.05); } }
.marquee figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11.5px; font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--card); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.section__head p { margin: 0; font-size: 17px; color: var(--text-2); }

.cards { display: grid; gap: 16px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 8px 0 0; color: var(--text-2); font-size: 14.5px; }
.card p a { color: var(--text); font-weight: 600; text-decoration: none; }
.card p a:hover { text-decoration: underline; }
.card--art { padding: 0; overflow: hidden; }
.card__art { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--divider); }
.card__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .8s var(--ease); }
@media (hover: hover) { .card--art:hover .card__art img { transform: scale(1.05); } }
.card__art--paper { display: grid; place-items: center; }
.paper { height: 80%; aspect-ratio: 3 / 4; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; transition: transform .6s var(--ease); }
@media (hover: hover) { .card--art:hover .paper { transform: rotate(-2deg) translateY(-3px); } }
.paper small { font-size: 7px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.paper b { font: 600 15px/1 Georgia, serif; margin-bottom: 4px; }
.paper i { display: block; height: 4px; border-radius: 2px; background: var(--divider); }
.paper i:nth-of-type(3) { width: 80%; }
.paper i:last-child { width: 60%; }
.card__body { padding: 18px 18px 20px; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: 11px; font-weight: 500; color: var(--text-2); }
.badge--live { color: var(--text); background: var(--card); }
.badge--live i { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; }
.card__icon { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }

/* ---------- loop ---------- */
.loop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; max-width: 1000px; margin: 0 auto; }
.loop__ring { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin: 0 auto; }
.loop__ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-base { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 2 6; }
.ring-progress { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 200px 200px; }
.ring-dot { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(33,150,243,.55)); }
.loop__center { position: absolute; inset: 30%; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); }
.loop__count { font: 500 13px/1 var(--mono); color: var(--muted); }
.loop__label { margin-top: 6px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.stage-btn {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.stage-btn .i { width: 15px; height: 15px; }
.stage-btn:hover { background: var(--hover); color: var(--text); }
.stage-btn.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-text); transform: translate(-50%, -50%) scale(1.06); }
.loop__detail { min-height: 300px; }
.loop__step { font: 500 12px/1 var(--mono); color: var(--muted); }
.loop__detail h3 { margin: 10px 0 12px; font-size: 34px; letter-spacing: -.03em; }
.loop__detail p { margin: 0 0 20px; font-size: 17px; color: var(--text-2); }
.loop__detail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.loop__detail li { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-size: 14.5px; opacity: 0; transform: translateX(10px); animation: slideIn .5s var(--ease) forwards; animation-delay: calc(var(--n) * 80ms); }
.loop__detail li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text); flex: none; }
.loop__detail .swap { animation: swap .5s var(--ease); }
@keyframes slideIn { to { opacity: 1; transform: none; } }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- audience lab ---------- */
.lab { max-width: 1040px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-box); box-shadow: var(--shadow); padding: 22px; }
.lab__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.lab__title { display: flex; align-items: center; gap: 10px; }
.chip { padding: 3px 9px; border-radius: 999px; background: var(--primary); color: var(--primary-text); font: 500 11px/1.4 var(--mono); transition: background .3s; }
.chip.is-new { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.2); } }
.lab__time { color: var(--text-2); font-size: 13px; }
.lab__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; }
.lab__crowd { border: 1px solid var(--divider); border-radius: var(--r-card); background: var(--surface-2); padding: 14px; }
#crowd { width: 100%; aspect-ratio: 50 / 40; display: block; }
.lab__legend { display: flex; gap: 16px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.lab__legend span { display: inline-flex; align-items: center; gap: 6px; }
.lab__legend i { width: 8px; height: 8px; border-radius: 50%; background: #DADBDF; }
.lab__legend i.on { background: var(--accent); }
.lab__legend .mono { margin-left: auto; color: var(--text); }
.lab__side { display: flex; flex-direction: column; gap: 14px; }
.lab__curve { border: 1px solid var(--divider); border-radius: var(--r-card); padding: 14px; }
.lab__curve-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.lab__curve-head .mono { font-size: 13px; }
#curve { width: 100%; height: 140px; display: block; overflow: visible; }
#curve .grid { stroke: var(--divider); stroke-width: 1; vector-effect: non-scaling-stroke; }
#curve .ghost { fill: none; stroke: #B9BABF; stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
#curve .live { fill: none; stroke: var(--accent); stroke-width: 2.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#curve .playhead { stroke: var(--text); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .35; }
.lab__axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 11px; }
.lab__insight { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--divider); font-size: 14px; min-height: 64px; }
.lab__insight p { margin: 0; color: var(--text-2); }
.lab__insight b { color: var(--text); }
.lab__insight .i { margin-top: 2px; color: var(--text); }
.lab__insight.is-flash { animation: swap .45s var(--ease); }
.lab__segments { display: grid; gap: 10px; }
.seg { display: grid; grid-template-columns: 128px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.seg span:first-child { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg__bar { height: 6px; border-radius: 4px; background: var(--hover); overflow: hidden; }
.seg__bar i { display: block; height: 100%; width: 0; background: var(--text); border-radius: 4px; transition: width .9s var(--ease); }
.seg .mono { text-align: right; font-size: 12px; }
.lab__note { margin: 16px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- synthetic society ---------- */
.society {
  position: relative; height: clamp(520px, 72vh, 680px); border-radius: var(--r-box); overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #0b1020 0%, #04060d 55%, #02030a 100%);
  border: 1px solid #15171d; box-shadow: var(--shadow); isolation: isolate;
}
.society__net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.society__top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.society__stat { font-size: 12.5px; color: #a3a9b6; }
.society__stat b { color: #fff; font-weight: 600; }
.society__retry { pointer-events: auto; margin-left: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid #fff; background: #fff; color: #0b0b0c; font-size: 12px; cursor: pointer; }
.society__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.society__filters button {
  pointer-events: auto; padding: 5px 11px; border-radius: 999px; border: 1px solid #262a33; background: rgba(4, 5, 8, .65);
  color: #c4c8d2; font-size: 12px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.society__filters button span { color: #7d8392; margin-left: 2px; font-variant-numeric: tabular-nums; }
.society__filters button:hover { border-color: #3a3f4b; color: #fff; }
.society__filters button.is-on { background: #fff; border-color: #fff; color: #0b0b0c; }
.society__filters button.is-on span { color: #55565a; }
.society__filters button:focus-visible, .society__controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.society__tip {
  position: absolute; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none;
  padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--text); font-size: 12px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); display: flex; flex-direction: column; line-height: 1.3;
}
.society__tip span { color: var(--muted); font-size: 11px; }
.society__controls { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 6px; }
.society__controls button {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid #262a33; background: rgba(4, 5, 8, .7); color: #e6e8ee; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s;
}
.society__controls button:first-child { background: #fff; color: #0b0b0c; border-color: #fff; }
.society__controls button:hover { border-color: #4a4f5b; }
.society__controls .i { width: 14px; height: 14px; flex: none; }
.society__controls button { white-space: nowrap; }
.society__hint { position: absolute; right: 16px; bottom: 16px; margin: 0; font-size: 11.5px; color: #6b7180; pointer-events: none; }
.society:not(.is-ready) .society__controls { opacity: .4; pointer-events: none; }

.pcard {
  position: absolute; top: 14px; right: 14px; bottom: 14px; width: 330px; overflow-y: auto;
  background: var(--card); color: var(--text); border-radius: 14px; border: 1px solid var(--border);
  padding: 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); scrollbar-width: thin;
}
.pcard.is-in { animation: cardIn .45s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.pcard__close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; }
.pcard__close:hover { background: var(--hover); color: var(--text); }
.pcard__close .i { width: 16px; height: 16px; }
.pcard__head { display: flex; gap: 12px; align-items: center; padding-right: 26px; }
.pcard__avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--c); }
.pcard h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.pcard__head p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.pcard__market { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 14px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.pcard__market i { width: 7px; height: 7px; border-radius: 50%; }
.pcard__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 14px; }
.pcard__facts div { padding: 8px 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.pcard__facts dt { font-size: 10.5px; color: var(--muted); }
.pcard__facts dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; }
.pcard__facts dd::first-letter { text-transform: uppercase; }
/* keep the top filters and hint clear of the open card on desktop */
.society.has-card .society__top { right: 360px; }
.society.has-card .society__hint { display: none; }
.pcard__row { padding: 10px 0; border-top: 1px solid var(--divider); }
.pcard__label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pcard__money span:last-child { font-size: 13.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { padding: 3px 9px; border-radius: 999px; background: var(--primary); color: var(--primary-text); font-size: 12px; }
.tag::first-letter { text-transform: uppercase; }
.tag--off { background: var(--card); color: var(--text-2); border: 1px solid var(--border); text-decoration: line-through; text-decoration-color: #b9babf; }
.tag--plain { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.muted { font-size: 12.5px; color: var(--muted); }
.pcard__meters { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--divider); }
.pcard__meters div { display: grid; grid-template-columns: 1fr 90px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.meter { height: 5px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--text); border-radius: 3px; }
.pcard__similar { display: grid; gap: 4px; }
.pcard__similar button { display: grid; grid-template-columns: 8px 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 7px 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s; }
.pcard__similar button:hover { background: var(--hover); }
.pcard__similar i { width: 8px; height: 8px; border-radius: 50%; grid-row: span 2; }
.pcard__similar small { grid-column: 2; font-size: 11.5px; color: var(--muted); font-weight: 400; }

/* ---------- Qyula+ originals shelf ---------- */
.shelf { margin: 0 0 40px; }
.shelf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.shelf__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.shelf__brand b { color: var(--text); font-weight: 700; margin: 0 -4px 0 -8px; }
.shelf__brand em { font-style: normal; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.shelf__head h3 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.02em; }
.shelf__nav { display: flex; gap: 6px; flex: none; }
.shelf__btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; transition: background .2s, opacity .2s; }
.shelf__btn:hover { background: var(--hover); }
.shelf__btn:disabled { opacity: .35; cursor: default; background: var(--card); }
.shelf__btn:focus-visible, .shelf__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shelf__track {
  list-style: none; margin: 0; padding: 6px 2px 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.shelf__track::-webkit-scrollbar { display: none; }
.cover { scroll-snap-align: start; min-width: 0; perspective: 900px; }
.cover__art {
  position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2);
  box-shadow: 0 1px 2px rgba(17,17,17,.06), 0 10px 24px -14px rgba(17,17,17,.35);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cover__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* soft sheen that follows the pointer */
.cover__art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.28), transparent 55%); }
@media (hover: hover) { .cover:hover .cover__art { --ty: -6px; box-shadow: 0 1px 2px rgba(17,17,17,.06), 0 22px 40px -18px rgba(17,17,17,.45); } }
@media (hover: hover) { .cover:hover .cover__art::after { opacity: 1; } }
.cover b { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.cover span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.shelf.is-in .cover { animation: coverIn .7s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes coverIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.shelf__note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 37px; top: 18px; bottom: 18px; width: 1px; background: var(--border); }
.timeline li { position: relative; display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: start; padding: 16px 18px 16px 0; }
.timeline li + li { margin-top: 6px; }
.timeline__v { justify-self: center; position: relative; z-index: 1; padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 12px; }
.timeline li.is-now .timeline__v { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.timeline b { font-size: 16px; }
.timeline p { margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; }
.timeline__meta { font-size: 12.5px; color: var(--muted); padding-top: 3px; }

/* ---------- join ---------- */
.join { padding-top: 40px; }
.join__box { position: relative; overflow: hidden; border-radius: var(--r-box); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.join__bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.join__inner { position: relative; max-width: 560px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.join__inner > p { margin: 0 0 30px; color: var(--text-2); font-size: 17px; }
.waitlist--full { display: grid; gap: 14px; text-align: left; padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.96); }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 13px; font-weight: 600; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.roles label { cursor: pointer; }
.roles input { position: absolute; opacity: 0; pointer-events: none; }
.roles span { display: inline-block; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--text-2); background: var(--card); transition: background .2s, color .2s, border-color .2s; }
.roles label:hover span { background: var(--hover); }
.roles input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.roles input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.waitlist__legal { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.waitlist__legal a { color: var(--text-2); }
.success { padding: 28px 22px; border: 1px solid var(--border); border-radius: 14px; background: #fff; animation: swap .6s var(--ease); }
.success h3 { margin: 14px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.success p { margin: 0; color: var(--text-2); }
.success a { color: var(--text); font-weight: 600; }
.success__check { width: 56px; height: 56px; margin: 0 auto; }
.success__check circle { fill: none; stroke: var(--text); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s var(--ease) forwards; }
.success__check path { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--divider); padding: 72px 0 28px; font-size: 14px; color: var(--text-2); background: var(--card); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .brand { color: var(--text); font-size: 17px; }
.footer__by { margin: 16px 0 6px; color: var(--text); font-size: 14px; }
.footer__by b { font-weight: 600; }
.footer__blurb { margin: 0 0 20px; max-width: 340px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer__col h4 { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer__col a { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.footer__col a:hover { color: var(--text); }
@media (hover: hover) { .footer__col a:hover::after { transform: scaleX(1); } }
.ftag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: 11px; color: var(--muted); white-space: nowrap; }
.ftag--live { color: var(--text); background: var(--card); }
.ftag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22C55E; }
/* oversized wordmark that rises into place as the footer scrolls in */
.footer__mark {
  margin: 56px 0 6px; text-align: center; user-select: none;
  font-size: clamp(88px, 21vw, 300px); font-weight: 700; letter-spacing: -.065em; line-height: .78;
  color: transparent; background: linear-gradient(180deg, #E2E3E7 10%, rgba(226,227,231,0) 92%); -webkit-background-clip: text; background-clip: text;
  transform: translateY(calc((1 - var(--fp, 1)) * 60px)); opacity: calc(.35 + var(--fp, 1) * .65);
}
.footer__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__mail { color: var(--text-2); font-size: 13.5px; text-decoration: none; }
.footer__mail:hover { color: var(--text); text-decoration: underline; }
/* solid bar: crops the oversized wordmark cleanly at the divider */
.footer__bottom { position: relative; z-index: 1; background: var(--card); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--divider); font-size: 12.5px; color: var(--muted); }
.footer__bottom p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid { gap: 44px; }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop { grid-template-columns: 1fr; gap: 36px; }
  .loop__detail { min-height: 0; max-width: 560px; margin: 0 auto; width: 100%; }
  .lab__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap, .nav__inner { padding: 0 16px; }
  .nav__links { display: none; }
  .nav__inner .btn { margin-left: auto; }
  .hero { padding: 36px 0 56px; }
  .hero__sub { font-size: 16.5px; }
  .stage__body { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .flow { display: none; }
  .output__frame { aspect-ratio: 1 / 1; }
  .hero__copy { text-align: left; align-items: flex-start; }
  .hero__copy .waitlist--inline { margin: 0; }
  .neural { aspect-ratio: 1 / 1.05; }
  .society { height: 600px; }
  .society__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .society__filters button { flex: none; }
  .society__hint { display: none; }
  .pcard { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 58%; }
  .pcard.is-in { animation-name: sheetIn; }
  @keyframes sheetIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  .society.has-card .society__controls { display: none; }
  .society.has-card .society__top { right: 16px; }
  .neural__hint { display: none; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .cards--4, .cards--3 { grid-template-columns: 1fr; }
  .stage-btn { padding: 6px 9px; font-size: 12px; }
  .stage-btn .i { display: none; }
  .loop__ring { max-width: 340px; }
  .lab { padding: 14px; }
  .seg { grid-template-columns: 122px 1fr 36px; gap: 8px; font-size: 12.5px; }
  .shelf__track { grid-auto-columns: 148px; gap: 12px; }
  .shelf__head h3 { font-size: 19px; }
  .shelf__nav { display: none; }
  .timeline li { grid-template-columns: 64px 1fr; }
  .timeline::before { left: 31px; }
  .timeline__meta { grid-column: 2; padding-top: 0; }
  .join__inner { padding: 52px 16px; }
  .waitlist--full { padding: 16px; }
  .footer { padding-top: 52px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__about { grid-column: 1 / -1; }
  .footer__mark { margin: 40px 0 16px; }
}

/* ---------- premium motion (all neutral; switched off by reduced motion below) ---------- */
/* nav slides in on load */
.nav { animation: navIn .9s var(--ease) both; }
@keyframes navIn { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

/* hero: faint dot grid, brighter under a soft spotlight that follows the pointer (drifts on its own on touch) */
.hero { position: relative; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #C4C6CC 1px, transparent 0); background-size: 22px 22px;
}
.hero::before { opacity: .32; -webkit-mask-image: linear-gradient(to bottom, #000, #000 45%, transparent 85%); mask-image: linear-gradient(to bottom, #000, #000 45%, transparent 85%); }
.hero::after {
  opacity: .95;
  -webkit-mask-image: radial-gradient(240px circle at var(--hx, 50%) var(--hy, 26%), #000 0%, rgba(0,0,0,.35) 45%, transparent 72%);
  mask-image: radial-gradient(240px circle at var(--hx, 50%) var(--hy, 26%), #000 0%, rgba(0,0,0,.35) 45%, transparent 72%);
}

/* hero copy eases up and softens a little as you scroll past it */
.hero__copy { transform: translateY(calc(var(--hp, 0) * -28px)); opacity: calc(1 - var(--hp, 0) * .2); }

/* hero demo rises from a slight 3D tilt to flat as it scrolls into view */
.hero__grid { perspective: 1800px; }
.stage.reveal { transform-origin: 50% 0; transform: translateY(18px) rotateX(calc(var(--sr, 0) * 11deg)) scale(calc(1 - var(--sr, 0) * .045)); transition: opacity .8s var(--ease), transform .3s var(--ease); }
.stage.reveal.is-in { transform: rotateX(calc(var(--sr, 0) * 11deg)) scale(calc(1 - var(--sr, 0) * .045)); }

/* "Comic Studio is live" pill: slow shimmer */
.pill { position: relative; overflow: hidden; }
.pill::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(17,17,17,.07) 50%, transparent 70%); transform: translateX(-110%); animation: pillSheen 6s var(--ease) 2.2s infinite; }
@keyframes pillSheen { 0%, 62% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }

/* black buttons: a light sweep on hover */
.btn--primary { overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.2), transparent); transform: skewX(-18deg); transition: left .8s var(--ease); }
@media (hover: hover) { .btn--primary:hover::after { left: 135%; } }

/* section titles slide up from behind a mask; the eyebrow draws thin lines either side */
.section__head h2, .join__inner h2 { padding-bottom: .1em; margin-bottom: calc(14px - .1em); }
.section__head.reveal h2, .join__box.reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(26px); transition: clip-path 1.1s var(--ease) .12s, transform 1.1s var(--ease) .12s; }
.section__head.reveal.is-in h2, .join__box.reveal.is-in h2 { clip-path: inset(0 0 0 0); transform: none; }
.section__head .eyebrow, .join__inner .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.section__head .eyebrow::before, .section__head .eyebrow::after, .join__inner .eyebrow::before, .join__inner .eyebrow::after {
  content: ""; width: 0; height: 1px; background: currentColor; opacity: .55; transition: width 1s var(--ease) .3s;
}
.section__head.is-in .eyebrow::before, .section__head.is-in .eyebrow::after, .join__box.is-in .eyebrow::before, .join__box.is-in .eyebrow::after { width: 22px; }

/* cards: a soft spotlight follows the cursor */
.card { position: relative; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(380px circle at var(--cx, 50%) var(--cy, 50%), rgba(17,17,17,.045), transparent 45%); }
@media (hover: hover) { .card:hover::after { opacity: 1; } }

/* timeline: the line fills and versions turn black as you scroll past them */
.timeline::after { content: ""; position: absolute; left: 37px; top: 18px; width: 1px; height: calc((100% - 36px) * var(--tp, 0)); background: var(--text); transition: height .2s linear; }
.timeline__v { transition: background .45s, color .45s, border-color .45s, transform .45s var(--ease); }
.timeline li.is-passed .timeline__v { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.timeline li.is-passed:not(.is-now) .timeline__v { transform: scale(1.04); }
@media (max-width: 720px) {
  .timeline::after { left: 31px; }
  /* phones: the demo just fades up. The scroll-linked 3D tilt trailed the finger and re-rasterised two live canvases every frame. */
  .hero__grid { perspective: none; }
  .stage.reveal { transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .stage.reveal.is-in { transform: none; }
  /* headline words rise without the blur filter, which is costly while the page is still booting */
  .hero__title .w { filter: none; }
}

/* ---------- Qyula+ shelf drift ---------- */
.shelf__track.is-drifting { scroll-snap-type: none; }

/* ---------- full screen for the 3D views ---------- */
.fs-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid #262a33; background: rgba(4, 5, 8, .65); color: #e6e8ee; cursor: pointer; transition: background .2s, border-color .2s;
}
.fs-btn:hover { background: rgba(22, 24, 30, .9); border-color: #4a4f5b; }
.fs-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fs-btn .i { width: 15px; height: 15px; }
[data-fs] .fs-off, [data-fs].is-on .fs-on { display: none; }
[data-fs].is-on .fs-off { display: block; }
/* native full screen */
.neural:fullscreen, .society:fullscreen { border: 0; border-radius: 0; }
.neural:fullscreen { aspect-ratio: auto; }
.neural:-webkit-full-screen, .society:-webkit-full-screen { width: 100%; height: 100%; border: 0; border-radius: 0; }
/* fallback: pinned over the window (browsers without element full screen) */
[data-fs-root].is-full { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100vh; height: 100dvh; max-width: none; margin: 0; aspect-ratio: auto; border: 0; border-radius: 0; }
html.has-full { overflow: hidden; }
html.has-full .nav, html.has-full .progress { visibility: hidden; }
html.has-full .hero { isolation: auto; }
html.has-full .hero__grid { perspective: none; }
html.has-full .stage.reveal, html.has-full .stage.reveal.is-in { transform: none; }
/* zoom buttons for the 3D views */
.zoomctl { position: absolute; z-index: 3; display: flex; flex-direction: column; border-radius: 8px; border: 1px solid #262a33; background: rgba(4, 5, 8, .65); overflow: hidden; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zoomctl button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #e6e8ee; cursor: pointer; transition: background .2s; -webkit-tap-highlight-color: transparent; }
.zoomctl button + button { border-top: 1px solid #262a33; }
.zoomctl button:hover { background: rgba(40, 44, 54, .9); }
.zoomctl button:active { background: rgba(60, 66, 80, .9); }
.zoomctl button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.zoomctl .i { width: 15px; height: 15px; }
.neural .zoomctl { top: 46px; right: 8px; }
.zoomctl--society { right: 16px; bottom: 44px; transition: right .35s var(--ease); }
.society.has-card .zoomctl--society { right: 358px; }
.society:not(.is-ready) .zoomctl { opacity: .4; pointer-events: none; }
/* canvases and controls: no grey tap flash, no text selection while dragging */
.neural, .society { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.fs-btn, .society__controls button, .society__filters button, .neural__legend button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* full screen: the view owns every gesture (drag in any direction, pinch) */
.neural:fullscreen .neural__net, .neural.is-full .neural__net, .neural:-webkit-full-screen .neural__net,
.society:fullscreen .society__net, .society.is-full .society__net, .society:-webkit-full-screen .society__net { touch-action: none; }
[data-fs-root].is-full .fs-btn { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); }
.neural.is-full .zoomctl { top: calc(max(8px, env(safe-area-inset-top)) + 38px); right: max(8px, env(safe-area-inset-right)); }
.society.is-full .society__top { top: max(14px, env(safe-area-inset-top)); }
.society.is-full .society__controls { bottom: max(14px, env(safe-area-inset-bottom)); }
.neural.is-full .neural__legend { bottom: max(10px, env(safe-area-inset-bottom)); }
@media (max-width: 720px) {
  .fs-btn, .zoomctl button { width: 36px; height: 36px; }
  .neural .zoomctl { top: 50px; }
  .neural.is-full .zoomctl { top: calc(max(8px, env(safe-area-inset-top)) + 44px); }
  .zoomctl--society, .society.has-card .zoomctl--society { top: 96px; right: 12px; bottom: auto; }
  .society.is-full .zoomctl--society { top: calc(max(14px, env(safe-area-inset-top)) + 84px); }
  .society__controls { left: 12px; right: 12px; bottom: 12px; }
  .society__controls button { min-height: 38px; padding: 8px 13px; }
  .society__controls [data-act="reset"], .society__controls [data-fs] { width: 38px; padding: 0; justify-content: center; }
  .society__controls [data-act="reset"] span, .society__controls [data-fs] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .society__top { left: 12px; right: 12px; }
  .society__filters { margin-right: -12px; padding-right: 12px; -webkit-overflow-scrolling: touch; }
  .society__filters::-webkit-scrollbar, .neural__legend::-webkit-scrollbar { display: none; }
  .society__filters button { min-height: 32px; }
  /* legend: one swipeable row instead of three wrapped rows, so the network gets the room */
  .neural__legend { left: 0; right: 0; bottom: 10px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 0 12px; pointer-events: auto; scrollbar-width: none; touch-action: pan-x;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 20px), transparent); }
  .neural__legend button { flex: none; min-height: 28px; font-size: 11px; padding: 3px 10px; }
}

/* in full screen, the hints mention zoom and Esc */
.neural:fullscreen .neural__hint::after, .neural.is-full .neural__hint::after,
.society:fullscreen .society__hint::after, .society.is-full .society__hint::after { content: " · scroll to zoom · Esc to exit"; }
.society:fullscreen:not(.has-card) .society__hint, .society.is-full:not(.has-card) .society__hint { display: block; }

/* ---------- waitlist conversion ---------- */
/* sign-up strips right after the two demos, where interest peaks */
.cta-strip {
  max-width: 1040px; margin: 28px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 18px 32px; align-items: center;
  padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r-box); background: var(--card); box-shadow: var(--shadow);
}
.section--alt .cta-strip { background: var(--surface-2); box-shadow: none; }
.cta-strip h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.cta-strip__copy p { margin: 6px 0 0; font-size: 14.5px; color: var(--text-2); }
.cta-strip .waitlist--inline { max-width: none; }
.hero__copy .waitlist--inline.is-done { justify-content: center; }
.waitlist--inline.is-done button[type=submit] { opacity: .45; cursor: default; }
/* "Did you mean …?" typo fix, and the error's email fallback link */
.waitlist__fix { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.waitlist__msg a { color: inherit; font-weight: 600; }
/* after joining: pass it on */
.waitlist__share {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin-top: 4px; padding: 7px 13px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text);
  font-size: 13px; font-weight: 600; overflow-wrap: anywhere; cursor: pointer; transition: background .2s;
}
.waitlist__share:hover { background: var(--hover); }
.waitlist__share .i { width: 15px; height: 15px; }
.success .waitlist__share { margin-top: 16px; }
.waitlist__share:focus-visible, .waitlist__fix:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) {
  .cta-strip { grid-template-columns: 1fr; margin-top: 22px; padding: 18px 16px; }
  .cta-strip h3 { font-size: 18px; }
  .hero__copy .waitlist--inline.is-done { justify-content: flex-start; }
}

/* ---------- no prompt work: what you write vs what Qyula does ---------- */
.handoff {
  max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center;
}
.handoff__side { height: 100%; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r-box); background: var(--surface-2); }
.handoff__label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.handoff__scene { margin: 0; font-size: 19px; line-height: 1.45; letter-spacing: -.01em; color: var(--text); }
.handoff__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--text-2); }
.handoff__list li { position: relative; padding-left: 18px; }
.handoff__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.handoff__arrow { width: 22px; height: 22px; color: var(--muted); }
@media (max-width: 720px) {
  .handoff { grid-template-columns: 1fr; gap: 10px; }
  .handoff__side { padding: 18px 16px; }
  .handoff__scene { font-size: 17px; }
  .handoff__arrow { justify-self: center; transform: rotate(90deg); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .pill::after, .btn--primary::after, .hero::after { display: none; }
  .hero__copy, .stage.reveal, .stage.reveal.is-in { transform: none; opacity: 1; }
  .section__head.reveal h2, .join__box.reveal h2 { clip-path: none; transform: none; }
}
