/* ── Intro: Vio asleep until someone wants to meet it ─────────────── */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 24px;
  background: radial-gradient(60% 50% at 50% 46%, #0b1a33 0%, var(--ink) 70%);
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.intro.gone { opacity: 0; visibility: hidden; }
.intro .sleeper { position: relative; width: 150px; height: 150px; transition: transform .5s cubic-bezier(.3,1.6,.5,1), width .5s ease, height .5s ease; }
.intro .sleeper .css-orb {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  filter: brightness(.45) saturate(.7);
  box-shadow: 0 0 20px color-mix(in srgb, var(--c2) 20%, transparent);
  transition: filter 1.2s ease, box-shadow 1.2s ease;
  animation: sleep-breathe 4s ease-in-out infinite;
}
.intro.waking .sleeper .css-orb { filter: none; box-shadow: 0 0 90px 16px color-mix(in srgb, var(--c2) 55%, transparent); animation: none; }
.intro .sleeper svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes sleep-breathe { 50% { transform: scale(1.03); } }
.intro .zzz { position: absolute; right: -6px; top: -8px; font: 700 18px var(--display); color: var(--vioso-sky); pointer-events: none; }
.intro .zzz i { position: absolute; font-style: normal; opacity: 0; animation: zzz 3s ease-in infinite; }
.intro .zzz i:nth-child(2) { animation-delay: 1s; font-size: 14px; }
.intro .zzz i:nth-child(3) { animation-delay: 2s; font-size: 11px; }
@keyframes zzz { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translate(22px, -46px); opacity: 0; } }
.intro.waking .zzz { display: none; }
.intro .hello { font: 700 clamp(22px, 3.4vw, 30px)/1.2 var(--display); text-align: center; min-height: 1.3em; color: var(--text); }
.intro .meet {
  font: 700 17px var(--display); color: #fff;
  padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--vioso-band);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--vioso-blue) 70%, transparent);
  transition: transform .15s, opacity .4s;
}
.intro .meet:hover { transform: translateY(-2px); }
.intro.waking .meet { opacity: 0; pointer-events: none; }
.intro .skip { font: 12px var(--mono); color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.intro.waking .skip { visibility: hidden; }
.intro .vioso { height: 16px; opacity: .8; }
@media (prefers-reduced-motion: reduce) {
  .intro .zzz i, .intro .sleeper .css-orb { animation: none; }
}
/* The intro's second half is paced by the presenter: a button (or a
   clicker's → / PageDown) moves it on, one beat at a time. */
.intro .next {
  font: 700 16px var(--display); color: var(--text);
  padding: 12px 24px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1.5px solid color-mix(in srgb, var(--vioso-sky) 60%, transparent);
  transition: transform .15s, background .2s, opacity .4s;
  animation: next-in .5s ease both;
}
.intro .next:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--vioso-sky) 12%, transparent); }
.intro .next[hidden] { display: none; }
@keyframes next-in { from { opacity: 0; transform: translateY(8px); } }
.intro .badge {
  width: min(460px, 100%);
  padding: 22px 24px; border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line); border-top: 3px solid; border-image: var(--vioso-band) 1;
  display: flex; flex-direction: column; gap: 14px;
  animation: next-in .6s ease both;
}
.intro .badge[hidden] { display: none; }
.intro .badge-top { display: flex; justify-content: space-between; align-items: center; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.intro .badge-top .vioso { height: 12px; }
.intro .badge-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.intro .badge-name { font: 700 clamp(44px, 7vw, 64px)/1 var(--display); letter-spacing: -0.03em; }
.intro .badge-team { height: clamp(18px, 3vw, 26px); width: auto; }
.intro .badge-next { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--vioso-mint); }
.intro .badge-next svg { width: 22px; height: 12px; stroke: var(--vioso-mint); fill: none; stroke-width: 2; }
.intro .badge-next .vioso { height: 18px; --logo-c: var(--text); }
@keyframes badge-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.intro .badge > * { opacity: 0; animation: badge-row .45s ease forwards; animation-delay: calc(var(--i) * 260ms + 200ms); }
@media (prefers-reduced-motion: reduce) {
  .intro .next, .intro .badge, .intro .badge > * { animation: none; opacity: 1; }
}
.intro .sleeper, .intro .badge, .intro .next { flex-shrink: 0; }
.intro .sleeper canvas.gl { position: absolute; left: -36.2%; top: -36.2%; width: 172.4%; height: 172.4%; pointer-events: none; filter: brightness(.5) saturate(.7); transition: filter 1.2s ease; }
.intro.waking .sleeper canvas.gl { filter: none; }
.intro .sleeper:not(.has-gl) canvas.gl, .intro .sleeper.has-gl .css-orb { display: none; }
.intro .stage { position: relative; width: min(760px, 100%); height: 210px; flex-shrink: 0; }
.intro .stage .sleeper { position: absolute; left: 50%; top: 50%; margin: -75px 0 0 -75px; transition: none; will-change: transform; }
.intro .prop { position: absolute; left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.5); transition: opacity .45s ease, transform .6s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.intro .prop.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.intro .prop-ex { left: 20%; width: 120px; height: 120px; }
.intro .prop-clip { left: 80%; width: 96px; height: 96px; }
.intro .prop-journey { top: auto; bottom: 0; width: 100%; transform: translate(-50%, 24px); display: grid; grid-template-columns: repeat(5, 1fr); }
.intro .prop-journey.on { transform: translate(-50%, 0); }
.intro .prop-journey::before { content: ""; position: absolute; left: 10%; right: 10%; top: 32px; height: 2px; background: linear-gradient(90deg, var(--vioso-sky), var(--vioso-mint)); opacity: .45; }
.intro .st { position: relative; justify-self: center; width: 64px; height: 64px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: border-color .3s, box-shadow .3s; }
.intro .st img { width: 38px; height: 38px; }
.intro .st svg { width: 42px; height: 34px; }
.intro .st .vioso { height: 11px; --logo-c: var(--text); opacity: 1; }
.intro .st.lit { border-color: var(--vioso-sky); box-shadow: 0 0 22px -4px var(--vioso-sky); }
.intro .st.goal.lit { border-color: var(--vioso-mint); box-shadow: 0 0 28px -2px var(--vioso-mint); }
@media (max-width: 560px) {
  .intro .stage { height: 180px; }
  .intro .prop-ex { width: 84px; height: 84px; left: 16%; }
  .intro .prop-clip { width: 72px; height: 72px; left: 84%; }
  .intro .st { width: 54px; height: 54px; border-radius: 13px; }
  .intro .st img { width: 30px; height: 30px; }
  .intro .st svg { width: 34px; height: 28px; }
  .intro .st .vioso { height: 8px; }
  .intro .prop-journey::before { top: 27px; }
}
/* "Useful in Exaplay": a sketch of the Exaplay header, with Vio's seat. */
.intro .prop-header { top: 26%; width: min(620px, 96%); height: 58px; padding: 0 14px 0 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.intro .prop-header img { height: 16px; width: auto; margin-right: 14px; }
.intro .prop-header .tab { width: 64px; height: 10px; border-radius: 5px; background: var(--line); }
.intro .prop-header .dock { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--vioso-sky) 45%, transparent); }
.intro .prop-header .toast { position: absolute; right: 4px; top: calc(100% + 12px); margin: 0; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font: 600 13px var(--display); white-space: nowrap; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .4s cubic-bezier(.3,1.5,.5,1); }
.intro .prop-header .toast i { width: 9px; height: 9px; border-radius: 50%; background: #FF801F; box-shadow: 0 0 10px #FF801F; }
.intro .prop-header .toast.on { opacity: 1; transform: none; }
/* "A VIOSO colleague": what Vio does for you, one real line each. */
.intro .prop-cards { top: auto; bottom: 0; width: min(720px, 100%); transform: translate(-50%, 0); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; opacity: 1; }
.intro .prop-cards.on { transform: translate(-50%, 0); }
.intro .prop-cards .card { padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; text-align: left; opacity: 0; transform: translateY(14px) scale(.94); transition: opacity .4s, transform .5s cubic-bezier(.3,1.5,.5,1), border-color .3s, box-shadow .3s; }
.intro .prop-cards .card.on { opacity: 1; transform: none; }
.intro .prop-cards .card.lit { border-color: var(--c); box-shadow: 0 0 22px -6px var(--c); }
.intro .prop-cards .card b { display: flex; align-items: center; gap: 8px; font: 700 15px var(--display); }
.intro .prop-cards .card b i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.intro .prop-cards .card span { font: 500 12px/1.35 var(--mono); color: var(--muted); }
@media (max-width: 560px) {
  .intro .prop-header .tab { width: 34px; }
  .intro .prop-header img { height: 12px; margin-right: 6px; }
  .intro .prop-cards { gap: 6px; }
  .intro .prop-cards .card { padding: 9px 8px; }
  .intro .prop-cards .card b { font-size: 13px; gap: 5px; }
  .intro .prop-cards .card span { font-size: 11px; }
}
/* The team paddles a dragon boat; Vio has a seat, but no arms. */
.intro .prop-boat { top: auto; bottom: -6px; width: min(600px, 100%); transform: translate(-50%, 0) translateX(-40px); }
.intro .prop-boat.on { transform: translate(-50%, 0); transition-duration: .45s, 1.2s; }
.intro .prop-boat svg { display: block; width: 100%; height: auto; overflow: visible; }
.intro .prop-boat .bob { animation: boat-bob 2.4s ease-in-out infinite; }
.intro .prop-boat .pdl { animation: paddle .9s ease-in-out infinite; }
.intro .prop-boat .waves { animation: waves 2s linear infinite; }
.intro .prop-boat .splash circle { fill: #48d4ff; opacity: 0; }
.intro .prop-boat.splashing .splash circle { animation: splash .8s ease-out 2; }
.intro .prop-boat .splash circle:nth-child(2) { animation-delay: .1s; }
.intro .prop-boat .splash circle:nth-child(3) { animation-delay: .18s; }
.intro .prop-boat .splash circle:nth-child(4) { animation-delay: .26s; }
.intro .prop-boat .seat { position: absolute; left: 74.6%; top: 46%; width: 1px; height: 1px; }
@keyframes boat-bob { 50% { transform: translateY(3px) rotate(-.6deg); } }
@keyframes paddle { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(22deg); } }
@keyframes waves { to { transform: translateX(-80px); } }
@keyframes splash { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
@media (prefers-reduced-motion: reduce) {
  .intro .prop-boat .bob, .intro .prop-boat .pdl, .intro .prop-boat .waves, .intro .prop-boat.splashing .splash circle { animation: none; }
}
/* The future: more tools, more features, features people build themselves
   — tiles pop up all around; then Vio is the one face for all of it. */
.intro .prop-tiles { position: absolute; inset: 0; pointer-events: none; }
.intro .prop-tiles .tile { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; opacity: 0; transform: translate(var(--x), var(--y)) scale(.3) rotate(var(--r)); transition: opacity .35s ease, transform .5s cubic-bezier(.3,1.6,.5,1), filter .6s ease; }
.intro .prop-tiles .tile svg { width: 20px; height: 20px; }
.intro .prop-tiles .tile.on { opacity: 1; transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); animation: tile-jiggle 1.6s ease-in-out infinite; animation-delay: var(--d); }
.intro .prop-tiles .tile .plus { position: absolute; right: -5px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--vioso-mint); color: #07101f; font: 700 12px/14px var(--display); text-align: center; }
.intro .prop-tiles.calm .tile.on { opacity: .22; filter: saturate(.3); animation: none; }
@keyframes tile-jiggle { 50% { transform: translate(var(--x), calc(var(--y) - 4px)) scale(1) rotate(calc(var(--r) * -1)); } }
.intro .prop-operator { left: 30%; width: 124px; height: 114px; }
.intro .prop-operator svg { width: 100%; height: 100%; }
@media (max-width: 560px) {
  .intro .prop-tiles .tile { width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 7px; }
  .intro .prop-tiles .tile svg { width: 15px; height: 15px; }
  .intro .prop-operator { left: 24%; width: 92px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) { .intro .prop-tiles .tile.on { animation: none; } }
@media (max-height: 760px) { .intro { gap: 14px; } }
