/* =========================================================================
   Wandy landing page — WanderCode
   One living 3D Wandy travels through the page (assets/js/app.js).
   Without JS or WebGL the page reads fine and shows a still Wandy.
   ========================================================================= */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {                         /* display face for headlines (SIL OFL, assets/fonts/OFL-outfit.txt) */
  font-family: "Outfit";
  src: url("assets/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens: WanderCode's palette, fancy-scale type ---------- */
:root {
  --black: #000;
  --panel: #111;
  --raised: #1f1f1f;
  --footer: #0c0c0c;
  --white: #fff;
  --body: #d4d4d4;
  --muted: #8e8e8e;
  --dim: #565656;
  --line: rgba(255, 255, 255, .1);
  --line-soft: rgba(255, 255, 255, .06);
  --line-strong: rgba(255, 255, 255, .18);
  --cyan: #00f0ff;        /* WanderCode accent: only for "live" moments */
  --cyan-2: #19bdf2;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "Geist", ui-sans-serif, system-ui, sans-serif;
  --d-wt: 600;                        /* headline weight */
  --d-wt-xl: 600;                     /* the biggest headlines */
  --d-ls: -.03em;                     /* headline tracking */
  --d-ls-xl: -.035em;

  --pad: clamp(20px, 3.4vw, 52px);
  --maxw: 1520px;
  --nav-h: 76px;
  --space: clamp(110px, 13vw, 210px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Wandy's LED dot: a rounded square on an 8.4 grid, like his face */
  --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.4 8.4'%3E%3Crect x='1' y='1' width='6.4' height='6.4' rx='1.9' fill='%23fff'/%3E%3C/svg%3E");
  --dot-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.4 8.4'%3E%3Crect x='1' y='1' width='6.4' height='6.4' rx='1.9' fill='%23fff' fill-opacity='.045'/%3E%3C/svg%3E");
  --dot-dim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.4 8.4'%3E%3Crect x='1' y='1' width='6.4' height='6.4' rx='1.9' fill='%23fff' fill-opacity='.17'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; touch-action: pan-y pinch-zoom; }
html.lenis-on { scroll-behavior: auto; }
html.lenis-on.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--cyan); color: #000; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 120;
  padding: 10px 16px; background: #fff; color: #000; border-radius: 100px; font-weight: 500;
  transition: top .2s;
}
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Type ---------- */
.display, .title, .hero__title, .portal__title, .portal__heading, .cta__title, .row__title, .step__title, .play__score b {
  font-family: var(--display);
  font-optical-sizing: auto;
}
.display {
  font-size: clamp(46px, 6.4vw, 112px);
  font-weight: var(--d-wt);
  line-height: .93;
  letter-spacing: var(--d-ls-xl);
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; color: var(--body); max-width: 40ch; }
/* Section titles sit on one line on wide screens */
.title {
  font-size: clamp(38px, 4.5vw, 82px);
  font-weight: var(--d-wt);
  line-height: .98;
  letter-spacing: var(--d-ls);
  text-wrap: balance;
}
@media (min-width: 900px) { .title { white-space: nowrap; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px;
  border-radius: 12px;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .3s var(--ease), transform .45s var(--ease-out);
}
.btn:active { scale: .97; }
.btn--white { background: var(--white); color: #000; }
.btn--white:hover { background: #ececec; box-shadow: 0 0 0 5px rgba(255, 255, 255, .08); }
.btn--ghost {                       /* frosted glass, readable over anything */
  color: var(--white);
  background: rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 30px -12px rgba(0, 0, 0, .6);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34), inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 30px -12px rgba(0, 0, 0, .6); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 18px; border-radius: 14px; }

/* =========================================================================
   The stage: one fixed canvas, one Wandy
   ========================================================================= */
.stage {
  position: fixed; left: 0; top: 0; z-index: 5;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
}
.anchor { position: relative; aspect-ratio: 1344 / 933; }
.anchor__still { display: none; width: 100%; height: 100%; background: url("assets/wandy/still-white.webp") center / contain no-repeat; }
.anchor__still--black { background-image: url("assets/wandy/still-black.webp"); }
.no-js .anchor__still, .no-3d .anchor__still { display: block; }

/* ---------- Opening: his eyes switch on in the dark ---------- */
.boot {
  --sw: min(46vmin, 420px);
  --pitch: calc(var(--sw) * .011367);
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: #000;
  transition: background-color .5s ease, opacity .6s ease, visibility 0s .6s;
}
.no-js .boot, .boot-timeout .boot { display: none; }
.boot__screen { position: relative; width: var(--sw); aspect-ratio: 739 / 616; transition: opacity .45s .1s ease; }
.boot__screen::before {
  content: ""; position: absolute; inset: 0;
  background: var(--dot-faint) 0 0 / var(--pitch) var(--pitch);
  border-radius: 26% / 30%;
}
.boot__face {
  position: absolute; inset: 0;
  background: var(--dot) calc(var(--pitch) * .49) calc(var(--pitch) * .17) / var(--pitch) var(--pitch);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 739 616'%3E%3Crect x='144' y='121' width='154' height='152' rx='30'/%3E%3Crect x='432' y='121' width='154' height='152' rx='30'/%3E%3Cpath d='M295 346L451 346Q459 346 458 354C453 383.2 421.2 408 397.1 408L348.9 408C324.8 408 293 383.2 288 354Q287 346 295 346Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 739 616'%3E%3Crect x='144' y='121' width='154' height='152' rx='30'/%3E%3Crect x='432' y='121' width='154' height='152' rx='30'/%3E%3Cpath d='M295 346L451 346Q459 346 458 354C453 383.2 421.2 408 397.1 408L348.9 408C324.8 408 293 383.2 288 354Q287 346 295 346Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 0 calc(var(--pitch) * 1.6) rgba(255, 255, 255, .55));
  clip-path: inset(100% 0 0 0);
  animation: boot-fill 1.25s steps(16) .25s forwards;
}
.boot__msg {
  position: absolute; left: 0; right: 0; bottom: max(9vh, 48px);
  text-align: center; font-size: 14px; color: #5c5c5c;
  animation: boot-msg 1.6s ease-in-out infinite;
  transition: opacity .3s;
}
.boot.is-handoff { background-color: transparent; }
.boot.is-handoff .boot__screen, .boot.is-handoff .boot__msg { opacity: 0; }
.boot.is-gone { opacity: 0; visibility: hidden; }
@keyframes boot-fill { to { clip-path: inset(0 0 0 0); } }
@keyframes boot-msg { 50% { color: #8a8a8a; } }

/* =========================================================================
   Nav
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s, opacity .8s;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line-soft);
}
.on-light .nav.is-scrolled { background: rgba(255, 255, 255, .74); border-color: rgba(0, 0, 0, .08); color: #000; }
.on-light .nav__links { color: #3a3a3a; }
.on-light .nav__links a:hover { color: #000; }
.on-light .nav .brand__by { color: #6b6b6b; }
.on-light .nav .brand img { filter: invert(1); }
.on-light .nav .btn--white { background: #000; color: #fff; }
.on-light .nav .btn--white:hover { background: #222; box-shadow: 0 0 0 6px rgba(0, 0, 0, .06); }
.on-light .nav .sound { color: #555; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.on-light .nav .sound[aria-pressed="true"] { color: #000; }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; gap: clamp(20px, 2.4vw, 38px); font-size: 15px; color: var(--body); }
.nav__links a { position: relative; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: none; }
.nav__end { display: flex; align-items: center; gap: 10px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; }
.brand__name { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.brand__by { font-size: 14px; color: var(--muted); padding-top: 3px; }

.sound {
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 16px 0 14px; border-radius: 12px;
  font-size: 14px; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .2s, box-shadow .2s;
}
.sound:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.sound__bars { display: flex; align-items: center; gap: 2px; height: 14px; }
.sound__bars i { width: 2px; height: 4px; border-radius: 1px; background: currentColor; transition: height .3s; }
.sound[aria-pressed="true"] { color: #fff; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* =========================================================================
   Speech bubble that follows Wandy
   ========================================================================= */
.say { position: fixed; left: 0; top: 0; z-index: 60; width: max-content; pointer-events: none; will-change: transform; }
.say__in {
  position: relative;
  max-width: min(17em, 64vw);
  padding: 12px 18px 13px;
  background: #fff; color: #000;
  border-radius: 20px;
  font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .75);
  opacity: 0; transform: scale(.6);
  transform-origin: 100% 100%;
  transition: opacity .22s, transform .45s var(--ease-out);
}
.say[data-side="r"] .say__in { transform-origin: 0 100%; border-bottom-left-radius: 6px; }
.say[data-side="l"] .say__in { border-bottom-right-radius: 6px; }
.say.is-shown .say__in { opacity: 1; transform: none; }
.say.is-away .say__in { opacity: 0; transform: scale(.85); }
.say.is-dark .say__in { background: #0b0b0b; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px -18px rgba(0, 0, 0, .5); }
.say__rest { opacity: 0; }
.say__dots { display: none; gap: 5px; padding: 6px 2px; }
.say.is-typing .say__text { display: none; }
.say.is-typing .say__dots { display: inline-flex; }
.say__dots i, .m__dots i, .typing i { width: 7px; height: 7px; border-radius: 2.2px; background: #9a9a9a; animation: typing 1s ease-in-out infinite; }
.say__dots i:nth-child(2), .m__dots i:nth-child(2), .typing i:nth-child(2) { animation-delay: .15s; }
.say__dots i:nth-child(3), .m__dots i:nth-child(3), .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }

/* =========================================================================
   Hero: Wandy, his LED name, and a real chat
   ========================================================================= */
.hero { position: relative; min-height: 100svh; overflow: clip; }
.hero__grid {
  --chat-w: clamp(320px, 23vw, 384px);
  --wandy-w: min(50%, 62vh * 1.44, 860px);                                  /* as big as the room allows */
  --wandy-x: calc(100% - var(--pad) - var(--chat-w) - 28px - var(--wandy-w) * .49);   /* he stands right next to the chat */
  position: relative; height: max(620px, 100svh);
}

.hero__word {
  position: absolute; left: var(--wandy-x); top: 45%;
  transform: translate(-50%, -50%);
  font-size: clamp(160px, 25vw, 470px);
  font-weight: 800; line-height: .8; letter-spacing: -.06em;
  white-space: nowrap; user-select: none; pointer-events: none;
}
.hero__word span {
  display: block;
  color: transparent;
  -webkit-background-clip: text; background-clip: text;
  background-size: 8px 8px;
}
.hero__word-base {
  background-image: var(--dot-dim);
  -webkit-mask-image: linear-gradient(#000 30%, rgba(0, 0, 0, .3) 96%);
  mask-image: linear-gradient(#000 30%, rgba(0, 0, 0, .3) 96%);
}
.hero__word-window {
  position: absolute; left: 0; top: 0;
  width: 380px; height: 380px; margin: -190px 0 0 -190px;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, rgba(0, 0, 0, .35) 60%, transparent);
  mask-image: radial-gradient(closest-side, #000 25%, rgba(0, 0, 0, .35) 60%, transparent);
  transform: translate3d(-9999px, 0, 0);
  will-change: transform;
}
.hero__word span.hero__word-lit {
  position: absolute; left: 0; top: 0;
  background-image: var(--dot);
  will-change: transform;
}

.hero__intro {
  position: absolute; left: var(--pad);
  top: calc(var(--nav-h) + clamp(28px, 6vh, 76px));
  width: clamp(280px, 23vw, 360px);
}
.hero__lede { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: var(--body); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.anchor--hero {                     /* Wandy is the star of the hero */
  position: absolute; left: var(--wandy-x); top: 45%;
  width: var(--wandy-w);
  transform: translate(-50%, -50%);
}

.hero__title {
  position: absolute; left: var(--pad); bottom: clamp(30px, 6vh, 72px);
  display: flex; flex-direction: column;
  font-size: clamp(50px, min(5.7vw, 11vh), 100px);
  font-weight: var(--d-wt-xl); line-height: .96; letter-spacing: var(--d-ls-xl);
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .06em .08em 0; margin-bottom: -.08em; }
.hero__title .line > span { display: block; }

/* ---------- The chat ---------- */
.chat {                               /* glass: Wandy's LED name and his glow show through, softly */
  position: absolute; z-index: 6;
  right: var(--pad); bottom: clamp(30px, 6vh, 72px);
  width: var(--chat-w);
  height: min(540px, calc(100svh - var(--nav-h) - 130px));
  display: flex; flex-direction: column;
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, rgba(40, 40, 40, .42), rgba(12, 12, 12, .55));
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 50px 120px -50px rgba(0, 0, 0, .95),
    0 0 90px -40px rgba(0, 240, 255, .28);
  overflow: hidden;
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 16px; border-bottom: 1px solid var(--line-soft); }
.chat__avatar {
  flex: none; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.chat__avatar img { width: 31px; height: 31px; }
.chat__who { line-height: 1.25; }
.chat__who b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.chat__status { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.chat__status i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(0, 240, 255, .9); }
.chat__status i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(0, 240, 255, .6); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.chat__reset {
  margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 11px; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.chat__reset:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.chat__reset svg, .chat__form svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.chat__log {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 14px 10px 16px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 22px);
  mask-image: linear-gradient(transparent, #000 22px);
}
.chat__log::-webkit-scrollbar { display: none; }
.m {
  max-width: 88%;
  padding: 10px 14px 11px;
  border-radius: 18px;
  font-size: 15px; line-height: 1.5;
  animation: msg-in .45s var(--ease-out) both;
}
.chat__time { margin-top: auto; margin-bottom: 4px; text-align: center; font-size: 12px; color: #6a6a6a; }
.m:first-child { margin-top: auto; }
.m p + p { margin-top: 6px; }
.m--bot { align-self: flex-start; background: rgba(255, 255, 255, .07); color: #ededed; border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.m--you { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 6px; font-weight: 500; }
.m__dots { display: inline-flex; gap: 5px; padding: 6px 0 4px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.chat__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 14px 12px 16px; min-height: 50px; align-content: flex-end; transition: opacity .3s; }
.chat__chips.is-hidden { opacity: 0; pointer-events: none; }
.chat__chips .chip {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 13px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: #e9e9e9;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
  animation: msg-in .45s calc(var(--i, 0) * 60ms) var(--ease-out) both;
  transition: background-color .2s, box-shadow .2s, color .2s;
}
.chat__chips .chip:hover { background: rgba(255, 255, 255, .11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.chat__chips .chip--link { background: #fff; color: #000; box-shadow: none; }
.chat__chips .chip--link:hover { background: #e9e9e9; }

.chat__form {
  display: flex; align-items: center; gap: 8px;
  margin: 0 12px; height: 54px; padding: 0 7px 0 16px;
  border-radius: 17px;
  background: rgba(0, 0, 0, .38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: box-shadow .25s;
}
.chat__form:focus-within { box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .6), 0 0 0 4px rgba(0, 240, 255, .09); }
.chat__form input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 15.5px; }
.chat__form input::placeholder { color: #7d7d7d; }
.chat__form button {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; background: #fff; color: #000;
  transition: transform .3s var(--ease-out), background-color .2s;
}
.chat__form button:hover { transform: translateY(-1px); background: #e9e9e9; }
.chat.is-busy .chat__form button { background: #3a3a3a; color: #999; }
.chat__note { padding: 10px 16px 14px; font-size: 12px; line-height: 1.4; color: #696969; }

/* ---------- One orchestrated opening ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .nav, .js .hero__intro, .js .chat, .js .hero__word { opacity: 0; }
  .js .hero__title .line > span { transform: translateY(105%); }
  .js .chat { translate: 0 30px; }
  .is-ready .nav { opacity: 1; transition: opacity .9s .5s, background-color .35s, border-color .35s; }
  .is-ready .hero__word { opacity: 1; transition: opacity 1.8s .1s; }
  .is-ready .hero__title .line > span { transform: none; transition: transform 1.15s .25s var(--ease-out); }
  .is-ready .hero__title .line:nth-child(2) > span { transition-delay: .36s; }
  .is-ready .hero__intro { opacity: 1; transition: opacity 1s .55s; }
  .is-ready .chat { opacity: 1; translate: 0 0; transition: opacity 1s .7s, translate 1.3s .7s var(--ease-out); }
}

/* =========================================================================
   Question strip (fancy's white band)
   ========================================================================= */
.strip { position: relative; background: #fff; color: #000; overflow: hidden; }
.strip__track { display: flex; width: max-content; animation: marquee 56s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.strip__list li {
  display: flex; align-items: center; gap: 30px;
  padding: 26px 30px 26px 0;
  font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.02em; white-space: nowrap;
}
.strip__list li::after { content: ""; width: 8px; height: 8px; background: #000; border-radius: 2.4px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   Meet Wandy: a statement he reads along with you
   ========================================================================= */
.read { padding-block: var(--space) calc(var(--space) * .6); }
.read__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 100px); }
.read__stick { position: sticky; top: calc(50vh - 18vw); align-self: start; padding-top: 4vh; }
.read__copy { padding-top: 22vh; padding-bottom: 32vh; }
.statement {
  font-size: clamp(30px, 3.35vw, 58px);
  font-weight: 500; line-height: 1.1; letter-spacing: -.035em;
  text-wrap: pretty;
}
.statement .w { color: #2a2a2a; transition: color .4s linear; }
.statement .w.is-lit { color: #fff; }

/* micro UI: little drawings of Wandy's work, set right into the sentence.
   They light up as you read, like the words, and come alive when they do. */
.ui {
  position: relative;
  display: inline-block; height: 1em; margin: 0 .03em;
  vertical-align: middle; translate: 0 -.05em;
  border-radius: .24em; overflow: hidden;
  background: linear-gradient(180deg, #1f1f1f, #121212);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 .14em .36em -.16em rgba(0, 0, 0, .85);
  transition: opacity .5s, filter .5s, transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
.ui svg { display: block; width: 100%; height: 100%; }
.ui text { font-family: var(--font); }
.ui--site { width: 1.7em; }
.ui--docs { width: 1.25em; }
.ui--lead { width: 1.5em; }
.ui--cal { width: 1em; }
.ui--team { width: 1.6em; }
.ui--wandy { width: 1.08em; height: 1.08em; background: none; box-shadow: none; border-radius: 0; overflow: visible; translate: 0 -.07em; }
.ui--wandy img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 .06em .14em rgba(0, 0, 0, .65)); animation: ui-bob 3.4s ease-in-out infinite; }
.ui__dot { position: absolute; right: .03em; top: .08em; width: .17em; height: .17em; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 .04em #000, 0 0 .14em rgba(0, 240, 255, .9); }
@keyframes ui-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-.05em) rotate(3deg); } }
.nb { white-space: nowrap; }                                     /* a piece of UI stays with its word */
.statement .nb { transition: color .4s linear; }
.statement.is-reading .nb { color: #2a2a2a; }
.statement.is-reading .nb.is-lit { color: #fff; }
.statement.is-reading .ui { opacity: .22; filter: grayscale(1); transform: scale(.88); }
.statement.is-reading .nb.is-lit .ui { opacity: 1; filter: none; transform: none; }

/* alive */
.ui-d { animation: ui-dot 1.25s ease-in-out infinite; }
.ui-d:nth-child(3) { animation-delay: .16s; }
.ui-d:nth-child(4) { animation-delay: .32s; }
@keyframes ui-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-1.3px); } }
.ui-ping { transform-box: fill-box; transform-origin: center; animation: ui-ping 2s ease-out infinite; }
@keyframes ui-ping { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.ui-arrow { animation: ui-slide 1.6s ease-in-out infinite; }
@keyframes ui-slide { 0%, 100% { transform: translateX(-1.6px); opacity: .65; } 50% { transform: translateX(1.6px); opacity: 1; } }
.ui-back { transform-box: fill-box; transform-origin: 50% 100%; transform: rotate(-11deg); transition: transform .7s .15s cubic-bezier(.34, 1.56, .64, 1); }
.ui-bubble, .ui-check { transform-box: fill-box; transition: transform .55s .2s cubic-bezier(.34, 1.56, .64, 1); }
.ui-bubble { transform-origin: 100% 100%; }
.ui-check { transform-origin: center; }
.statement.is-reading .ui-bubble, .statement.is-reading .ui-check { transform: scale(0); }
.statement.is-reading .ui-back { transform: rotate(0deg); }
.statement.is-reading .nb.is-lit .ui-bubble, .statement.is-reading .nb.is-lit .ui-check { transform: none; }
.statement.is-reading .nb.is-lit .ui-back { transform: rotate(-11deg); }

.read__note { margin-top: 44px; max-width: 46ch; color: var(--muted); }
.read__note a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35); transition: text-decoration-color .2s; }
.read__note a:hover { text-decoration-color: #fff; }

/* =========================================================================
   The portal: scroll into his screen, the demo lives inside
   ========================================================================= */
.portal { position: relative; height: 360vh; }
.portal__sticky { position: sticky; top: 0; z-index: 6; height: 100vh; height: 100svh; overflow: hidden; }  /* above the 3D canvas */
.portal__intro {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 3vh);
  text-align: center; padding-inline: var(--pad);
  opacity: calc(1 - var(--dive, 0) * 4);
  transform: translateY(calc(var(--dive, 0) * -70px));
}
.portal__title { font-size: clamp(56px, 8.6vw, 160px); font-weight: var(--d-wt-xl); line-height: .9; letter-spacing: var(--d-ls-xl); }
.portal__hint { margin-top: 16px; color: var(--muted); }
.anchor--portal { position: absolute; left: 50%; top: 58%; width: min(44vw, 54vh * 1.44, 820px); transform: translate(-50%, -50%); }

.portal__screen {
  position: absolute; inset: 0; z-index: 6;
  background: #020303;
  visibility: hidden;
}
.portal__screen[data-mode="clip"], .portal__screen[data-mode="full"] { visibility: visible; }
.portal__glass { position: absolute; inset: 0; overflow: hidden; }
.portal__glass::before {             /* every unlit LED */
  content: ""; position: absolute; inset: 0;
  background-image: var(--dot-faint);
  background-size: var(--pitch, 16px) var(--pitch, 16px);
  background-position: var(--gx, 0) var(--gy, 0);
}
.portal__glass::after {              /* glass sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .045), transparent 38%, transparent 70%, rgba(0, 240, 255, .035));
}
.portal__light {                     /* your cursor's glow on the glass */
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .075), rgba(0, 240, 255, .03) 50%, transparent);
  transform: translate3d(-9999px, 0, 0);
  will-change: transform;
  pointer-events: none;
}
.portal__glass::after {              /* edges fall into shadow, so the middle glows */
  background:
    radial-gradient(120% 95% at 50% 50%, transparent 52%, rgba(0, 0, 0, .7)),
    linear-gradient(115deg, rgba(255, 255, 255, .045), transparent 38%, transparent 70%, rgba(0, 240, 255, .035));
}
.portal__inner {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) min(480px, 44vw); align-items: center;
  gap: clamp(40px, 7vw, 140px);
  padding-top: var(--nav-h);
}
.portal__inner::before {             /* a cyan glow for the glass widget to catch */
  content: ""; position: absolute; top: 50%; right: calc(var(--pad) - 140px);
  width: 720px; height: 720px; margin-top: -330px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 240, 255, .2), rgba(0, 240, 255, .07) 52%, transparent);
  pointer-events: none;
}
.portal__copy { position: relative; z-index: 2; max-width: 720px; }
.portal__heading { text-wrap: balance; }
.portal__heading { font-size: clamp(38px, 4.2vw, 74px); font-weight: var(--d-wt); line-height: 1.02; letter-spacing: var(--d-ls); }
.portal__copy .lead { margin-top: 24px; max-width: 46ch; }
.portal__note { margin-top: 22px; max-width: 46ch; color: var(--muted); font-size: 14px; }

/* messages you can send him: tap one and it flies into the chat */
.sends { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 34px; }
.sends__label { margin-bottom: 2px; font-size: 14px; color: var(--muted); }
.send {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px;
  border-radius: 22px 22px 6px 22px;
  background: #fff; color: #000;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .6);
  transform: translateX(var(--x, 0)) rotate(var(--r, 0deg));
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, background-color .2s;
}
.send:hover, .send:focus-visible { transform: translateX(calc(var(--x, 0px) + 8px)) rotate(0deg) translateY(-3px) scale(1.03); box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .95), 0 0 0 1px #fff, 0 0 46px -12px rgba(0, 240, 255, .7); }
.send:active { transform: translateX(var(--x, 0)) scale(.97); }
.send__icon { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.send.is-sent { visibility: hidden; }
.flying { position: fixed; z-index: 80; margin: 0; pointer-events: none; }
.doodle { position: absolute; left: calc(100% + 8px); bottom: 6px; width: 170px; color: var(--cyan); pointer-events: none; }
.doodle svg { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(0, 240, 255, .5)); }
.doodle__line { stroke-dasharray: 7 9; animation: doodle-march 1.4s linear infinite; }
@keyframes doodle-march { to { stroke-dashoffset: -32; } }
.doodle em { position: absolute; left: 4px; top: -6px; font-size: 14px; font-style: italic; color: rgba(0, 240, 255, .9); white-space: nowrap; transform: rotate(-6deg); }

/* ---------- The real Wandy widget (replica) ---------- */
.widget {                             /* glass, like the hero chat: his screen's LEDs and glow show through */
  position: relative; z-index: 1;
  width: 100%;
  height: min(660px, calc(100svh - var(--nav-h) - 44px));
  display: flex; flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, rgba(30, 32, 32, .46), rgba(8, 10, 10, .6));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 60px 120px -40px rgba(0, 0, 0, .95),
    0 0 140px -40px rgba(0, 240, 255, .35);
  transition: box-shadow .5s;
}
.widget.is-called { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px rgba(0, 240, 255, .55), 0 60px 120px -40px rgba(0, 0, 0, .95), 0 0 160px -30px rgba(0, 240, 255, .6); }
.widget__bar { display: none; align-items: center; height: 64px; padding: 0 56px 0 18px; border-bottom: 1px solid var(--line); }
.widget__who { display: flex; align-items: center; gap: 12px; }
.widget__who img { width: 36px; height: 36px; }
.widget__who b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.widget__who span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.widget__who i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(0, 240, 255, .8); }
.widget__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.widget__close:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.widget__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 30px 20px 12px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.widget__intro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.widget__hero { position: relative; width: 100%; height: 150px; display: grid; place-items: center; }
.widget__clouds { position: absolute; inset: 10px 0 auto; width: 100%; height: auto; fill: rgba(255, 255, 255, .06); }
.widget__hero .wandy { width: 196px; }
.widget__bubble {
  position: absolute; left: 30px; top: 6px; z-index: 2;
  padding: 8px 14px; border-radius: 14px;
  background: #fff; color: #000; font-weight: 700; font-size: 15px;
  transform: rotate(-6deg);
}
.widget__bubble::after { content: ""; position: absolute; right: 14px; bottom: -5px; width: 12px; height: 12px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.widget__hello { margin-top: 18px; max-width: 340px; font-size: 16px; line-height: 1.6; color: var(--body); }
.widget__hello strong { color: #fff; font-weight: 700; }
.widget__sub { margin-top: 12px; max-width: 320px; font-size: 14px; line-height: 1.6; font-style: italic; color: var(--muted); }
.widget__actions { width: 100%; margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.widget__actions button, .widget .chip {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 6px 14px; line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  font-size: 14.5px; font-weight: 600; text-align: left; color: #fff;
  transition: border-color .2s, background-color .2s;
}
.widget__actions button:hover, .widget .chip:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .03); }
.widget__actions svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.widget__or { width: 100%; margin-top: 22px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.widget__or::before, .widget__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.widget__or::before { margin-left: 25%; }
.widget__or::after { margin-right: 25%; }
.widget__form {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 16px 16px; height: 52px; padding: 0 6px 0 16px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
  background: rgba(0, 0, 0, .3);
  transition: border-color .2s;
}
.widget__form:focus-within { border-color: rgba(0, 240, 255, .6); }
.widget__form input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 15px; }
.widget__form input::placeholder { color: var(--muted); }
.widget__form button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); transition: color .2s, background-color .2s; }
.widget__form button:hover { color: #000; background: #fff; }
.widget__form svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.widget.is-chat .widget__bar { display: flex; }
.widget.is-chat .widget__intro { display: none; }
.widget.is-chat .widget__scroll { padding-top: 16px; }
.widget__log { display: flex; flex-direction: column; }
.msg { max-width: 86%; margin-top: 10px; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; animation: msg-in .38s var(--ease-out) both; }
.msg p + p, .msg p + ul, .msg ul + p, .msg .work + p { margin-top: 8px; }
.msg--user { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 5px; font-weight: 500; }
.msg--bot { align-self: flex-start; background: rgba(255, 255, 255, .08); color: #e7e7e7; border-bottom-left-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.msg ul { margin: 0; padding-left: 18px; }
.msg li { margin-top: 3px; }
.msg .work { margin-top: 8px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; }
.msg .work b { display: block; color: #fff; font-size: 14px; }
.msg .work span { color: var(--muted); font-size: 13px; }
.msg__link { display: inline-flex; margin-top: 10px; height: 38px; align-items: center; padding: 0 16px; border-radius: 10px; background: #fff; color: #000; font-weight: 600; font-size: 14px; }
.typing { display: inline-flex; gap: 5px; padding: 5px 0; }
.widget .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; animation: msg-in .38s .1s var(--ease-out) both; }
.widget .chip { min-height: 38px; padding-block: 4px; font-size: 14px; }

/* the small 2D Wandy in the widget header, like the real widget */
.wandy { --lx: 0; --ly: 0; position: relative; width: 100%; aspect-ratio: 1344 / 933; }
.wandy__float { position: absolute; inset: 0; animation: wandy-float 6.5s ease-in-out infinite; }
.wandy__rig { position: absolute; inset: 0; }
.wandy__head { position: absolute; left: 15.03%; top: 0; width: 70.015%; height: 100%; }
.wandy__shell { width: 100%; height: 100%; }
.wandy__hand { position: absolute; height: auto; top: 36.87%; transform-origin: 50% 18%; }
.wandy__hand--l { left: 0; width: 15.625%; animation: wandy-hand-l 4.4s ease-in-out infinite; }
.wandy__hand--r { left: 84.449%; width: 15.551%; animation: wandy-hand-r 4.4s ease-in-out .7s infinite; }
@keyframes wandy-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.4%); } }
@keyframes wandy-hand-l { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -5%; rotate: -6deg; } }
@keyframes wandy-hand-r { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -5%; rotate: 6deg; } }
.face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; --led: #151515; transform: translate(.3%, .6%); }
.face .f-eye, .face .f-wink, .face .f-mouth, .face .f-dots circle { fill: var(--led); }
.face .f-happy { fill: none; stroke: var(--led); stroke-width: 3.6; stroke-linecap: round; }
.face rect, .face path, .face circle, .face g { transform-box: fill-box; transform-origin: 50% 50%; }
.f-eye, .f-wink, .f-mouth, .f-happy, .f-dots { transition: opacity .14s linear, transform .24s cubic-bezier(.3, .7, .2, 1); }
.f-eye--r, .f-wink, .f-happy, .f-dots { opacity: 0; }
[data-mood="wink"] .f-wink { opacity: 1; }
[data-mood="open"] .f-eye--r, [data-mood="think"] .f-eye--r, [data-mood="talk"] .f-eye--r { opacity: 1; }
[data-mood="happy"] .f-eye { opacity: 0; }
[data-mood="happy"] .f-happy { opacity: 1; }
[data-mood="happy"] .f-mouth { transform: scale(1.12, 1.2); }
[data-mood="think"] .f-eye { transform: translate(14%, -16%) scaleY(.5); }
[data-mood="think"] .f-mouth { opacity: 0; }
[data-mood="think"] .f-dots { opacity: 1; }
[data-mood="talk"] .f-mouth { transform-origin: 50% 0; animation: led-talk .19s ease-in-out infinite alternate; }
.is-blink .f-eye { transform: scaleY(.1); }
.is-blink .f-wink { transform: scaleY(.6); }
.f-dots circle { animation: led-dot 1s ease-in-out infinite; }
.f-dots circle:nth-child(2) { animation-delay: .15s; }
.f-dots circle:nth-child(3) { animation-delay: .3s; }
@keyframes led-talk { from { transform: scaleY(1); } to { transform: scaleY(.42); } }
@keyframes led-dot { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-70%); } }

/* =========================================================================
   How it works: sticky steps, Wandy's screen shows each one
   ========================================================================= */
.steps { padding-top: var(--space); }
.steps__heading { margin-bottom: clamp(8px, 2vw, 24px); }
.steps__track { position: relative; height: 340vh; }
.steps__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.steps__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.steps__rail {                       /* a line of LED boxes */
  --pitch: 14px;
  position: relative; align-self: stretch; width: 10px; margin-block: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14'%3E%3Crect x='1' y='2' width='8' height='8' rx='2.4' fill='%23262626'/%3E%3C/svg%3E") 0 0 / 10px var(--pitch) repeat-y;
}
.steps__fill {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14'%3E%3Crect x='1' y='2' width='8' height='8' rx='2.4' fill='%2300f0ff'/%3E%3C/svg%3E") 0 0 / 10px var(--pitch) repeat-y;
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, .55));
  clip-path: inset(0 0 calc(100% - var(--lit, 0) * var(--pitch)) 0);
}
.steps__head {                       /* the newest box glows brightest */
  position: absolute; left: 0; top: 0; width: 10px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14'%3E%3Crect x='1' y='2' width='8' height='8' rx='2.4' fill='%23ffffff'/%3E%3C/svg%3E") 0 0 / 10px 14px no-repeat;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, .95));
  transform: translateY(calc((var(--lit, 1) - 1) * var(--pitch)));
  opacity: var(--head, 0);
}
.steps__list { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(22px, 4vh, 44px); }
.step__title {
  font-size: clamp(30px, 3.4vw, 58px);
  font-weight: var(--d-wt); line-height: 1.02; letter-spacing: var(--d-ls);
  color: var(--dim);
  transition: color .45s var(--ease);
}
.step__text { margin-top: 12px; max-width: 38ch; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; color: #4c4c4c; transition: color .45s var(--ease); }
.step.is-done .step__title { color: #8a8a8a; }
.step.is-active .step__title { color: #fff; }
.step.is-active .step__text { color: var(--body); }
.anchor--steps { width: min(100%, 600px); margin-inline: auto; }

/* =========================================================================
   What he handles: editorial rows, his screen follows your cursor
   ========================================================================= */
.handles { padding-block: var(--space); }
.handles__title { margin-bottom: clamp(40px, 5vw, 80px); }
.handles__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); }
.handles__stick { position: sticky; top: calc(50vh - 15vw); align-self: start; }
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 24px;
  padding: clamp(22px, 2.4vw, 36px) clamp(0px, 1.2vw, 20px);
  border-bottom: 1px solid var(--line);
}
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 22px;
  background: #fff;
  transform: scaleY(.6); opacity: 0;
  transition: transform .55s var(--ease-out), opacity .3s;
}
.row__title { font-size: clamp(32px, 3.9vw, 70px); font-weight: var(--d-wt); line-height: 1; letter-spacing: var(--d-ls); transition: color .3s, transform .55s var(--ease-out); }
.row__text { max-width: 34ch; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.5; color: var(--muted); transition: color .3s; }
.row.is-on { border-bottom-color: transparent; }
.row.is-on::before { transform: none; opacity: 1; }
.row.is-on .row__title { color: #000; transform: translateX(.14em); }
.row.is-on .row__text { color: #2b2b2b; }

/* =========================================================================
   Play: a rounded white room, a black Wandy, six tricks around him
   ========================================================================= */
.play { padding-block: clamp(40px, 6vw, 100px); }
.play__room {                         /* full width, edge to edge, with rounded corners */
  position: relative;
  display: flex; flex-direction: column;
  min-height: max(100svh, 860px);
  padding: clamp(64px, 7vw, 124px) clamp(24px, 5vw, 96px) clamp(40px, 4vw, 64px);
  border-radius: clamp(32px, 3.4vw, 60px);
  background: #fff; color: #000;
  overflow: hidden;
}
.play__room::before {                 /* soft studio light behind Wandy */
  content: ""; position: absolute; left: 50%; top: 56%; width: 64%; aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, #eef1f2, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}
.play__head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.play__lede { margin-top: 18px; font-size: clamp(17px, 1.3vw, 21px); color: #555; }
.play__score { display: flex; align-items: center; gap: 12px; flex: none; }
.play__score b { font-size: clamp(56px, 5.6vw, 96px); font-weight: var(--d-wt-xl); line-height: .8; letter-spacing: var(--d-ls); font-variant-numeric: tabular-nums; }
.play__score span { font-size: 14px; line-height: 1.25; color: #6b6b6b; }
.play__stage {
  position: relative; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center; gap: clamp(16px, 3vw, 56px);
  margin-top: clamp(36px, 4.6vw, 76px);
}
.tricks { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(12px, 1.2vw, 18px); }
.trick {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "icon state" "title title" "hint hint";
  align-items: start;
  padding: clamp(20px, 1.8vw, 28px) clamp(20px, 1.8vw, 28px) clamp(20px, 1.7vw, 26px);
  border-radius: 28px;
  background: linear-gradient(180deg, #f7f7f5, #f1f1ef);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .6s var(--ease-out);
}
.trick__icon { grid-area: icon; display: block; width: clamp(40px, 3.2vw, 52px); height: clamp(40px, 3.2vw, 52px); margin: -2px 0 clamp(18px, 1.8vw, 28px) -3px; color: #0b0b0b; transition: color .45s var(--ease); }
.trick__icon svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 50%; }
.trick__icon circle { fill: currentColor; stroke: none; }
.trick__title { grid-area: title; font-size: clamp(19px, 1.45vw, 24px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.trick__hint { grid-area: hint; margin-top: 6px; max-width: 30ch; font-size: clamp(14px, 1vw, 15.5px); line-height: 1.45; color: #6b6b6b; transition: color .45s; }
.trick__state {
  grid-area: state; position: relative;
  width: 28px; height: 28px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .16);
  transition: background-color .4s, box-shadow .4s;
}
.trick__state::after {
  content: ""; position: absolute; left: 10.5px; top: 6.5px; width: 6px; height: 11px;
  border: solid #000; border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) scale(.3); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .2s;
}
@media (hover: hover) {
  .trick:hover { background: #fff; transform: translateY(-4px); box-shadow: 0 28px 50px -28px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .06); }
  .trick:hover .trick__icon svg { animation: var(--wiggle) .9s var(--ease-out); }
}
.trick[data-secret="chat"] { --wiggle: ic-bob; }
.trick[data-secret="spin"] { --wiggle: ic-spin; }
.trick[data-secret="love"] { --wiggle: ic-beat; }
.trick[data-secret="poke"] { --wiggle: ic-tap; }
.trick[data-secret="dizzy"] { --wiggle: ic-dizzy; }
.trick[data-secret="sleep"] { --wiggle: ic-sway; }
@keyframes ic-bob { 30% { transform: translateY(-5px); } 55% { transform: translateY(0); } 75% { transform: translateY(-2px); } }
@keyframes ic-spin { to { transform: rotate(360deg); } }
@keyframes ic-beat { 20% { transform: scale(1.18); } 40% { transform: scale(.96); } 60% { transform: scale(1.1); } }
@keyframes ic-tap { 25% { transform: translateY(3px) scale(.92); } 50% { transform: none; } 75% { transform: translateY(2px) scale(.95); } }
@keyframes ic-dizzy { 30% { transform: rotate(-200deg); } 65% { transform: rotate(-330deg) scale(1.06); } 100% { transform: rotate(-360deg); } }
@keyframes ic-sway { 30% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } }
.trick.is-found { background: #0b0b0b; color: #fff; box-shadow: none; }
.trick.is-found .trick__icon { color: #fff; }
.trick.is-found .trick__hint { color: #8d8d8d; }
.trick.is-found .trick__state { background: var(--cyan); box-shadow: 0 0 16px rgba(0, 240, 255, .6); }
.trick.is-found .trick__state::after { opacity: 1; transform: rotate(45deg) scale(1); }
@media (hover: hover) { .trick.is-found:hover { background: #151515; box-shadow: 0 28px 50px -28px rgba(0, 0, 0, .55); } }
.anchor--play { width: min(100%, 620px); margin-inline: auto; }
.play__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; margin-top: clamp(28px, 3.4vw, 52px); padding-top: 22px; border-top: 1px solid rgba(0, 0, 0, .08); }
.play__dots { display: flex; gap: 6px; }
.play__dots i { width: 30px; height: 8px; border-radius: 3px; background: #e7e7e5; transition: background-color .45s, box-shadow .45s; }
.play__dots i.is-on { background: #000; }
.secrets-complete .play__dots i { background: var(--cyan); box-shadow: 0 0 10px rgba(0, 240, 255, .5); }
.play__reset {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 13px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; color: #111;
  background: #f1f1ef; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
  transition: background-color .25s, box-shadow .25s;
}
.play__reset[hidden] { display: none; }
.play__reset svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.play__reset:hover { background: #e9e9e7; }
.play__reset:hover svg { transform: rotate(-200deg); }

/* =========================================================================
   Closing CTA: a dark stage with one big line
   ========================================================================= */
.cta { padding: var(--space) clamp(10px, 1.3vw, 20px) clamp(40px, 6vw, 100px); }
.cta__panel {
  position: relative; isolation: isolate;
  max-width: 1640px; margin-inline: auto;
  padding: clamp(48px, 6vw, 104px) clamp(22px, 4.6vw, 80px);
  border-radius: clamp(28px, 3vw, 52px);
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden;
}
.cta__panel::before {                 /* LED glass texture fading in from the right */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--dot-faint) 0 0 / 12px 12px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
}
.cta__panel::after {                  /* a cool rim light where Wandy stands */
  content: ""; position: absolute; right: -10%; bottom: -30%; z-index: -1;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(0, 240, 255, .14), rgba(0, 240, 255, .03) 55%, transparent);
}
.cta__title { font-size: clamp(40px, 5.2vw, 100px); font-weight: var(--d-wt-xl); line-height: 1.02; letter-spacing: var(--d-ls-xl); }
.cta__title .ui { translate: 0 -.02em; }
@media (min-width: 900px) { .cta__line { display: block; white-space: nowrap; } }
.cta__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.cta__copy .lead { margin-top: clamp(24px, 2.6vw, 40px); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.anchor--cta { width: min(100%, 520px); margin-left: auto; }

/* =========================================================================
   Footer: the page ends the way a chat with Wandy ends.
   His last message, quick replies that take you anywhere, and the box to ask him.
   ========================================================================= */
.footer {
  position: relative; overflow: clip;
  padding: clamp(80px, 9vw, 150px) 0 36px;
  background: radial-gradient(55% 65% at 22% 48%, rgba(0, 240, 255, .09), transparent 70%), #000;
  color: rgba(255, 255, 255, .7);
  border-top: 1px solid var(--line-soft);
}
.footer::before {                     /* his LED dots, faintly, like the inside of his screen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--dot-faint) 0 0 / 18px 18px;
  -webkit-mask-image: radial-gradient(80% 75% at 50% 42%, #000 15%, transparent 78%);
  mask-image: radial-gradient(80% 75% at 50% 42%, #000 15%, transparent 78%);
}
.footer > .wrap { position: relative; }
.footer__talk {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4.5vw, 90px); align-items: center;
}
.footer__stage { display: grid; place-items: center; }
.anchor--footer { width: min(100%, 540px); }
.footer__card {
  position: relative; width: min(100%, 720px);
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: 30px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(28, 30, 30, .55), rgba(8, 10, 10, .72));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 60px 120px -50px rgba(0, 0, 0, .95),
    0 0 120px -50px rgba(0, 240, 255, .35);
}
.footer__head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__head img { width: 46px; height: 46px; animation: ui-bob 3.4s ease-in-out infinite; }
.footer__meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; font-size: 13px; color: var(--muted); }
.footer__meta b { font-size: 15.5px; font-weight: 600; color: #fff; }
.footer__meta span { display: flex; align-items: center; gap: 7px; }
.footer__meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(0, 240, 255, .9); }
.footer__time { margin-left: auto; font-size: 13px; color: #6e6e6e; }
.footer__bubble {
  position: relative;
  display: inline-block; max-width: 17em;
  padding: .5em .7em .58em;
  border-radius: .62em .62em .62em .16em;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  font-family: var(--display); font-size: clamp(26px, 2.9vw, 50px); font-weight: var(--d-wt);
  line-height: 1.08; letter-spacing: var(--d-ls); color: #fff;
}
.footer__typing { position: absolute; left: .7em; top: .66em; display: none; gap: .16em; }
.footer__typing i { width: .2em; height: .2em; border-radius: 50%; background: #fff; animation: typing 1.2s ease-in-out infinite; }
.footer__typing i:nth-child(2) { animation-delay: .15s; }
.footer__typing i:nth-child(3) { animation-delay: .3s; }
.footer__bubble.is-typing .footer__typing { display: inline-flex; }
.footer__bubble.is-typing .footer__say { visibility: hidden; }          /* keeps its room: nothing below it jumps */
.footer__say { display: inline-block; }
.footer__bubble:not(.is-typing) .footer__say { animation: msg-in .5s var(--ease-out) both; }
.footer__replies { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.reply {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px 0 15px;
  border-radius: 12px; font-size: 15.5px; font-weight: 600; color: #ececec;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: background-color .2s, box-shadow .2s, color .2s, transform .35s var(--ease-out);
}
.reply svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.reply:not(.reply--white) svg { color: var(--cyan); }
.reply:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); transform: translateY(-2px); }
.reply--white { background: #fff; color: #000; box-shadow: none; }
.reply--white:hover { background: #e9e9e9; box-shadow: none; }
.footer__ask {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 62px; margin-top: 16px; padding: 0 8px 0 20px;
  border-radius: 16px; background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: box-shadow .25s;
}
.footer__ask:focus-within { box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .6), 0 0 0 4px rgba(0, 240, 255, .08); }
.footer__ask input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 16px; }
.footer__ask input::placeholder { color: #7a7a7a; }
.footer__ask button { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: #000; transition: background-color .2s, transform .3s var(--ease-out); }
.footer__ask button:hover { background: #e6e6e6; transform: translateY(-1px); }
.footer__ask svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom {                    /* brand left, copyright in the middle, links right */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 28px;
  margin-top: clamp(64px, 8vw, 130px); padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px; color: rgba(255, 255, 255, .45);
}
.footer .brand { color: #fff; justify-self: start; }
.footer__copy { justify-self: center; text-align: center; }
.footer__legal { justify-self: end; display: flex; flex-wrap: wrap; gap: 24px; }
.footer__legal a { transition: color .2s; }
.footer__legal a:hover { color: #fff; }
@media (max-width: 1640px) and (min-width: 1100px) { .footer__legal { margin-right: 66px; } }   /* room for the back-to-top button in the corner */

/* =========================================================================
   Back to top: the same button as on wandercode.co (white, 48px, 12px corners),
   with a cyan light running round its edge on hover
   ========================================================================= */
@property --orbit { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.to-top {
  position: fixed; z-index: 56;
  right: clamp(16px, 2.2vw, 32px); bottom: 28px;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 12px; background: #fff; color: #000;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .85);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .3s, transform .5s var(--ease-out), visibility 0s .5s, background-color .2s, color .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .5s var(--ease-out), visibility 0s, background-color .2s, color .2s; }
.to-top svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transition: transform .35s var(--ease-out); }
.to-top:hover { background: #e9e9e9; }
.to-top:hover svg { transform: rotate(90deg) translateX(-2px); }
.to-top::before {
  content: ""; position: absolute; inset: -2px; padding: 2px; border-radius: 14px;
  background: conic-gradient(from var(--orbit), transparent 0 62%, rgba(0, 240, 255, .95) 82%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.to-top:hover::before, .to-top:focus-visible::before { opacity: 1; animation: orbit 1.6s linear infinite; }
@keyframes orbit { to { --orbit: 360deg; } }
.to-top.is-dark { background: #000; color: #fff; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .4); }
.to-top.is-dark:hover { background: #222; }

/* =========================================================================
   Discoveries: a quiet counter and a toast
   ========================================================================= */
.toast {
  position: fixed; left: 50%; bottom: clamp(16px, 2.4vw, 28px); z-index: 55;
  translate: -50% 0;
  width: max-content; max-width: min(380px, calc(100vw - 28px));
  padding: 12px 16px; border-radius: 14px;
  background: #fff; color: #000; font-size: 14.5px; font-weight: 500;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 20px 50px -20px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s, transform .5s var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: none; }

/* =========================================================================
   Soft cursor (mouse only)
   ========================================================================= */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 110; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot {
  position: fixed; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 2.4px;
  background: #fff; mix-blend-mode: difference;
}
.cursor__ring {
  position: fixed; left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
  mix-blend-mode: difference;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), left .4s var(--ease-out), top .4s var(--ease-out), background-color .3s, box-shadow .3s;
}
.cursor__label { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; color: #000; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cursor[data-mode="link"] .cursor__ring { width: 58px; height: 58px; left: -29px; top: -29px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cursor[data-mode="wandy"] .cursor__ring, .cursor[data-mode="drag"] .cursor__ring {
  width: 96px; height: 96px; left: -48px; top: -48px;
  background: #fff; box-shadow: none; mix-blend-mode: normal;
}
.cursor[data-mode="wandy"] .cursor__label, .cursor[data-mode="drag"] .cursor__label { opacity: 1; }
.cursor[data-mode="wandy"] .cursor__dot, .cursor[data-mode="drag"] .cursor__dot, .cursor[data-mode="text"] { opacity: 0; }
.cursor.is-down .cursor__ring { scale: .86; }
/* over white sections the cursor turns dark */
.cursor.is-light .cursor__dot { background: #000; mix-blend-mode: normal; }
.cursor.is-light .cursor__ring { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .55); mix-blend-mode: normal; }
.cursor.is-light[data-mode="link"] .cursor__ring { background: rgba(0, 0, 0, .06); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .3); }
.cursor.is-light[data-mode="wandy"] .cursor__ring, .cursor.is-light[data-mode="drag"] .cursor__ring { background: #000; box-shadow: none; }
.cursor.is-light .cursor__label { color: #fff; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1359px) and (min-width: 1100px) {
  .hero__actions .btn { height: 46px; padding: 0 19px; font-size: 16px; }
}
@media (max-width: 1279px) and (min-width: 1100px) {
  .hero__intro { width: 320px; }
  .hero__grid { --wandy-w: min(42%, 60vh * 1.44, 860px); }
}

@media (max-width: 1099px) {
  :root { --nav-h: 68px; }
  .nav__links { display: none; }
  .brand__by { display: none; }

  .hero__grid { height: auto; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 64px; }
  .hero__intro, .anchor--hero, .hero__title, .chat { position: relative; inset: auto; transform: none; }
  .anchor--hero { order: 1; left: auto; top: auto; width: min(94vw, 620px); margin: 10px auto 0; }
  .hero__title { order: 2; font-size: clamp(48px, 11vw, 96px); margin-top: 18px; }
  .hero__intro { order: 3; width: auto; max-width: 560px; margin-top: 26px; top: auto; }
  .chat { order: 4; right: auto; top: auto; width: 100%; max-width: 560px; height: 540px; margin-top: 40px; }
  .js .chat { translate: none; }
  .hero__word { top: calc(var(--nav-h) + 30vw); left: 50%; font-size: 30vw; }

  .read__grid { grid-template-columns: 1fr; }
  .read__stick { position: relative; top: auto; padding-top: 0; }
  .anchor--read { width: min(70vw, 480px); margin-inline: auto; }
  .read__copy { padding-top: 6vh; padding-bottom: 12vh; }

  .portal { height: 320vh; }
  .anchor--portal { width: min(84vw, 560px); top: 60%; }
  .portal__inner { grid-template-columns: 1fr; align-content: center; justify-items: center; gap: 20px; padding-block: calc(var(--nav-h) + 8px) 16px; }
  .portal__copy { text-align: center; }
  .portal__copy .lead, .portal__note, .sends { display: none; }
  .portal__copy { max-width: none; }
  .portal__inner::before { right: 50%; margin-right: -360px; }
  .portal__heading { font-size: clamp(30px, 7vw, 52px); }
  .widget { width: min(480px, 100%); height: min(600px, calc(100svh - var(--nav-h) - 110px)); }

  .steps__track { height: auto; }
  .steps__sticky { position: relative; height: auto; display: block; padding-block: 56px 24px; }
  .steps__grid { grid-template-columns: 1fr; gap: 44px; }
  .steps__rail { display: none; }
  .steps__visual { order: -1; }
  .anchor--steps { width: min(80vw, 520px); }
  .step__title { color: #8a8a8a; }
  .step__text { color: var(--muted); }

  .handles__grid { grid-template-columns: 1fr; }
  .handles__stick { position: relative; top: auto; }
  .anchor--handles { width: min(70vw, 440px); margin-inline: auto; }

  .play__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .play__room { min-height: 0; }
  .play__stage { grid-template-columns: 1fr 1fr; }
  .play__center { grid-column: 1 / -1; order: -1; }
  .anchor--play { width: min(78vw, 480px); }

  .cta__grid { grid-template-columns: 1fr; }
  .cta__stage { order: -1; }
  .anchor--cta { width: min(72vw, 440px); margin: 0 auto; }

  .footer__talk { grid-template-columns: 1fr; gap: 12px; }
  .anchor--footer { width: min(72vw, 420px); }
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer .brand, .footer__copy, .footer__legal { justify-self: center; }
  .footer__legal { justify-content: center; }
  .footer { padding-bottom: 96px; }
  .to-top { bottom: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .btn--sm { height: 38px; padding: 0 15px; font-size: 14px; }
  .sound { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .sound__label { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .chat { height: 520px; border-radius: 24px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .play__stage { grid-template-columns: 1fr; }
  .trick { padding: 20px; }
  .reply { height: 42px; padding: 0 14px 0 12px; font-size: 14.5px; }
  .footer__card { border-radius: 24px; }
  .footer__time { display: none; }
  .footer__ask { height: 58px; }
  .say__in { font-size: 15px; padding: 10px 15px 11px; }
}

/* =========================================================================
   Reduced motion: nothing loops or flies, the demo is a normal section
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .boot { display: none; }
  .strip__track { animation: none; flex-wrap: wrap; width: auto; }
  .strip__list[aria-hidden="true"] { display: none; }
  .portal { height: auto; }
  .portal__sticky { position: relative; height: auto; overflow: visible; }
  .portal__intro { position: relative; top: auto; padding-top: var(--space); }
  .anchor--portal { position: relative; left: auto; top: auto; transform: none; margin: 40px auto 0; }
  .portal__screen { position: relative; visibility: visible; background: #020303; }
  .portal__inner { height: auto; padding-block: var(--space); }
}

/* Without JS: the portal is a normal section too */
.no-js .portal { height: auto; }
.no-js .portal__sticky { position: relative; height: auto; overflow: visible; }
.no-js .portal__intro { position: relative; top: auto; padding-top: var(--space); }
.no-js .anchor--portal { position: relative; left: auto; top: auto; transform: none; margin: 40px auto 0; }
.no-js .portal__screen { position: relative; visibility: visible; }
.no-js .portal__inner { height: auto; padding-block: var(--space); }
