/* The movement and light. The public pages (html.site) are always Nova's own deep blue; the chat (html.app) keeps the
   person's light or dark colours. Everything here is decoration: with reduced motion, or effects paused (data-fx="off"),
   it all holds still. */

html.site {
  color-scheme: dark; background: #010616; scroll-behavior: smooth;
  --back: #010616; --surface: #08132d; --ink: #e6f1ff; --muted: #98b0cd; --line: #1b3058; --control: #5b7cab;
  --accent: #6fd2ff; --fill: #1259d6; --fill-ink: #ffffff; --danger: #ff9097; --notice: #3b2c0e; --notice-ink: #f6dda8;
  --you: #1f3556; --code: #040b1c; --hover: #11284f; --focus: #ffd75a;
}
:root { --glow: 70, 185, 255; --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; }

/* ---------------------------------------------------------------- behind the public pages */
body.site { background: transparent; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; overflow-x: clip; }
body.site > main { flex: 1 0 auto; width: 100%; }
/* A turning ring's corners reach past a narrow window: nothing may widen the page. */
.home { overflow-x: hidden; overflow-x: clip; }
body.site::before, body.site::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.site::before {
  background-image: linear-gradient(rgba(90, 160, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 160, 255, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 65% 25%, #000, transparent 78%); mask-image: radial-gradient(ellipse 85% 70% at 65% 25%, #000, transparent 78%);
}
body.site::after {
  inset: -8%; /* it drifts: its edges stay out of sight */
  background: radial-gradient(40vmax 30vmax at 84% 14%, rgba(23, 99, 224, .24), transparent 70%), radial-gradient(36vmax 28vmax at 6% 78%, rgba(112, 66, 255, .15), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.progress { position: fixed; z-index: 30; left: 0; top: 0; width: 100%; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); background: linear-gradient(90deg, #1763e0, #6fd2ff, #b49bff); pointer-events: none; }

/* ---------------------------------------------------------------- header, footer, buttons */
html.site .top { position: sticky; top: 0; z-index: 20; background: rgba(2, 8, 26, .95); }
html.site .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--glow), .85), transparent); }
.top { position: relative; }
.brand img { border-radius: 8px; box-shadow: 0 0 14px rgba(var(--glow), .35); }
.fx-toggle { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--muted); }
.fx-toggle:hover { color: var(--accent); border-color: var(--accent); }
.fx-toggle svg { width: .8rem; height: .8rem; fill: currentColor; }
.fx-toggle .play, .fx-toggle.paused .pause { display: none; }
.fx-toggle.paused .play { display: block; }
html.site .foot { position: relative; background: rgba(2, 8, 26, .6); }

html.site .button { background: linear-gradient(120deg, #1259d6, #0c6cc9); border-color: rgba(140, 215, 255, .5); box-shadow: 0 0 16px rgba(40, 130, 255, .35); transition: box-shadow .25s, transform .2s; }
html.site .button:hover { box-shadow: 0 0 30px rgba(var(--glow), .65); transform: translateY(-1px); filter: none; }
html.site .button.big { position: relative; overflow: hidden; border-radius: 999px; padding: .75rem 1.7rem; font-weight: 600; }
html.site .button.big::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: translateX(-130%); animation: sheen 4.8s ease-in-out 1.5s infinite; pointer-events: none; }
html.site .button.ghost { background: rgba(8, 22, 54, .6); border-color: var(--line); box-shadow: none; color: var(--ink); font-weight: 500; }
html.site .button.ghost:hover { border-color: var(--accent); box-shadow: 0 0 22px rgba(var(--glow), .3); }
html.site .button.ghost::after { display: none; }

/* ---------------------------------------------------------------- the top of the front page */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "words holo" "demo holo"; column-gap: 3.5rem; row-gap: 1.5rem; align-content: center; max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }
.hero-words { grid-area: words; align-self: end; }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1.1rem; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 30, 72, .55); font: 600 .74rem/1.45 var(--mono); letter-spacing: .03em; text-align: left; color: var(--accent); }
.dot { position: relative; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dot::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--accent); border-radius: 50%; opacity: 0; animation: ping 2.4s ease-out infinite; }
.full-name { overflow-wrap: anywhere; }
.hero h1 { margin: 0 0 1rem; font-size: clamp(3rem, 7.5vw, 5.4rem); font-weight: 750; line-height: 1.02; letter-spacing: -.035em; }
.shine { display: inline-block; padding-bottom: .08em; color: transparent; background: linear-gradient(100deg, #f4faff 0%, #cdeeff 34%, #3fb4ff 47%, #f4faff 58%, #86a8ff 100%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; animation: shine 7s ease-in-out infinite alternate; }
.lead { max-width: 32rem; margin: 0 0 1.5rem; font-size: 1.3rem; color: #c6dcf6; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1rem; }
.hero-words .small { margin: 0; }

/* Nova in her frame: the portrait fading into the page, rings turning round her, a line of light passing down. */
.holo { grid-area: holo; position: relative; justify-self: center; align-self: center; width: min(100%, 26rem); aspect-ratio: 4 / 5; perspective: 1100px; }
.holo .nova-stage { position: absolute; inset: 0; transform: rotateY(calc(var(--px, 0) * 14deg)) rotateX(calc(var(--py, 0) * -10deg)); transition: transform .35s ease-out; -webkit-mask-image: radial-gradient(ellipse 53% 55% at 50% 47%, #000 66%, transparent 98%); mask-image: radial-gradient(ellipse 53% 55% at 50% 47%, #000 66%, transparent 98%); }
.holo::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1.5%; height: 7%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(var(--glow), .5), rgba(23, 99, 224, .12) 45%, transparent 70%); animation: breathe 4s ease-in-out infinite; pointer-events: none; }
.scan { position: absolute; inset: 3% 8% 6%; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%; background: linear-gradient(transparent, rgba(110, 210, 255, .09) 75%, rgba(180, 238, 255, .5) 99%, transparent); transform: translateY(-110%); animation: scan 6.5s linear infinite; }
.rings { position: absolute; inset: 0; pointer-events: none; transform: translate(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -14px)); transition: transform .35s ease-out; }
.ring { position: absolute; left: 50%; top: 46%; width: 128%; height: auto; aspect-ratio: 1; margin: -64% 0 0 -64%; fill: none; }
.ring circle { stroke: rgba(var(--glow), .45); stroke-width: 1; }
.ring .node { fill: #cdf1ff; stroke: rgba(var(--glow), .5); stroke-width: 5; }
.ring-dots circle { stroke-dasharray: .35 2.65; stroke-width: 2.5; stroke: rgba(var(--glow), .4); }
.ring-arcs circle:first-child { stroke-dasharray: 48 60 12 96 74 70; stroke-width: 1.4; stroke: rgba(var(--glow), .6); }
.ring-ticks circle:first-child { stroke-dasharray: .3 5.7; stroke-width: 9; stroke: rgba(var(--glow), .2); }
.ring-dots { animation: turn 90s linear infinite; }
.ring-arcs { animation: turn 28s linear infinite reverse; }
.ring-ticks { animation: turn 55s linear infinite; }
html[data-mood="thinking"] .ring-arcs { animation-duration: 7s; }
html[data-mood="thinking"] .ring-ticks { animation-duration: 14s; }
.float { position: absolute; z-index: 1; padding: .35rem .75rem; border: 1px solid rgba(var(--glow), .4); border-radius: 999px; background: rgba(4, 14, 38, .84); box-shadow: 0 0 18px rgba(var(--glow), .22); font: .72rem/1.4 var(--mono); color: #cfeaff; white-space: nowrap; pointer-events: none; animation: bob 6.5s ease-in-out infinite; }
.float-a { top: 9%; right: -7%; }
.float-b { top: 63%; left: -11%; animation-delay: -2.2s; }
.float-c { bottom: 8%; right: -5%; animation-delay: -4.4s; }
.holo .mood { position: absolute; z-index: 1; left: 0; right: 0; bottom: 3%; min-height: 1.5em; margin: 0; text-align: center; font: 600 .8rem/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #bfe9ff; text-shadow: 0 0 12px rgba(var(--glow), .9); }

/* The example conversation. */
.demo { grid-area: demo; align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(5, 15, 38, .86); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(160, 215, 255, .09); }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .5rem .95rem; border-bottom: 1px solid var(--line); font: .72rem/1.5 var(--mono); color: var(--muted); }
.demo-title { letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.demo-body { min-height: 10.5rem; padding: .85rem .95rem .3rem; font-size: .95rem; }
.demo-body p { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: .6rem; margin: 0 0 .65rem; }
.demo-who { padding-top: .15rem; font: 600 .7rem/1.6 var(--mono); text-transform: uppercase; color: var(--muted); }
.demo .a .demo-who { color: var(--accent); }
.demo .line { position: relative; }
.demo .rest { visibility: hidden; }
.demo[data-step="asking"] .q .typed::after, .demo[data-step="answering"] .a .typed::after { content: ""; display: inline-block; width: .5ch; height: 1.05em; margin-right: -.5ch; vertical-align: -.18em; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink .9s steps(2, start) infinite; }
.demo[data-step="ready"] .a, .demo[data-step="asking"] .a { visibility: hidden; }
.demo .dots { position: absolute; left: 0; top: .5rem; display: none; gap: .3rem; }
.demo .dots i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); animation: hop 1s ease-in-out infinite; }
.demo .dots i:nth-child(2) { animation-delay: .16s; }
.demo .dots i:nth-child(3) { animation-delay: .32s; }
.demo[data-step="thinking"] .dots { display: flex; }
.demo-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .95rem .85rem; }
.demo-chips button { padding: .28rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 30, 70, .5); color: var(--ink); font-size: .82rem; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.demo-chips button:hover { border-color: var(--accent); }
.demo-chips button[aria-pressed="true"] { border-color: var(--accent); background: rgba(23, 99, 224, .35); box-shadow: 0 0 14px rgba(var(--glow), .35); }

/* ---------------------------------------------------------------- the running line of words */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(4, 12, 32, .66); }
.ticker ul { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: ticker 44s linear infinite; }
.ticker li { display: flex; align-items: center; gap: 1.6rem; padding: .7rem 0 .7rem 1.6rem; font: .78rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: #a9c6e8; }
.ticker li::after { content: ""; width: .35rem; height: .35rem; transform: rotate(45deg); background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ticker:hover ul { animation-play-state: paused; }

/* ---------------------------------------------------------------- the rest of the front page */
.band { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.25rem 0; scroll-margin-top: 4rem; }
.band h2 { margin: 0 0 1.5rem; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.15; letter-spacing: -.015em; scroll-margin-top: 6rem; }
.kicker { margin: 0 0 .5rem; font: 600 .74rem/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.cards li { position: relative; overflow: hidden; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, rgba(15, 34, 76, .82), rgba(4, 12, 32, .86)); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.cards li > * { position: relative; }
.cards li::before { content: ""; position: absolute; inset: 0; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--glow), .2), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cards li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(180, 235, 255, .95), transparent); transform: translateX(-100%); transition: transform .7s ease; }
.cards li:hover { border-color: rgba(var(--glow), .6); box-shadow: 0 18px 44px rgba(0, 0, 0, .4), 0 0 28px rgba(var(--glow), .18); }
.cards li:hover::before { opacity: 1; }
.cards li:hover::after { transform: translateX(100%); }
.cards p { margin: 0; color: var(--muted); }
.cards h3 { font-size: 1.12rem; }
.icon { display: block; width: 2.8rem; height: 2.8rem; margin-bottom: .9rem; padding: .6rem; border: 1px solid rgba(var(--glow), .35); border-radius: 13px; background: rgba(28, 96, 220, .2); fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: box-shadow .3s; }
.cards li:hover .icon { box-shadow: 0 0 20px rgba(var(--glow), .45); }
.cards.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.num { display: block; margin-bottom: .6rem; font: 700 2.4rem/1 var(--mono); color: transparent; -webkit-text-stroke: 1px var(--accent); text-shadow: 0 0 18px rgba(var(--glow), .5); }
.flow { position: relative; height: 2px; margin: 0 8% 1.2rem; background: linear-gradient(90deg, transparent, rgba(var(--glow), .45) 12%, rgba(var(--glow), .45) 88%, transparent); }
.flow::before, .flow::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border: 1px solid var(--accent); border-radius: 50%; background: #010616; }
.flow::before { left: 18%; }
.flow::after { right: 18%; }
.flow i { position: absolute; inset: -1px 0; overflow: hidden; }
.flow i::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: linear-gradient(90deg, transparent, #d6f4ff); box-shadow: 0 0 12px var(--accent); transform: translateX(-100%); animation: flow 3.6s ease-in-out infinite; }

.panel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2.5rem; padding: 2.2rem 2.4rem; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(130deg, rgba(16, 40, 90, .8), rgba(4, 12, 32, .86) 60%); }
.panel h2 { margin-bottom: .6rem; }
.panel p:last-child { margin: 0; max-width: 40rem; color: #b9d0ec; }
.shield { position: relative; width: 10rem; height: 10rem; }
.shield svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.orbit { animation: turn 18s linear infinite; }
.orbit circle { stroke: rgba(var(--glow), .45); stroke-width: 1.2; stroke-dasharray: 40 14 4 14; }
.orbit .node { fill: #d6f4ff; stroke: rgba(var(--glow), .5); stroke-width: 5; stroke-dasharray: none; }
.mark { stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(var(--glow), .8)); }
.mark path:first-child { fill: rgba(28, 96, 220, .22); }
.mark .tick { stroke: #e8f8ff; stroke-width: 4; }

.final { padding-top: 4.5rem; padding-bottom: 4rem; text-align: center; }
.final h2 { margin-bottom: 1.2rem; }
.final .actions { justify-content: center; }

/* ---------------------------------------------------------------- the other public pages */
html.site .page > * { animation: rise .6s ease both; }
html.site .page > :nth-child(2) { animation-delay: .07s; }
html.site .page > :nth-child(3) { animation-delay: .14s; }
html.site .page > :nth-child(n+4) { animation-delay: .2s; }
html.site .page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em; }
html.site .prose h2 { padding-left: .8rem; border-left: 3px solid var(--accent); }
html.site .page.narrow { width: calc(100% - 2rem); flex: 0 0 auto; margin: 3.5rem auto auto; padding: 2.5rem 1.5rem 2rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(6, 17, 43, .86); box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 0 40px rgba(var(--glow), .12); }
html.site .page.leaving::before { content: ""; display: block; width: 3.2rem; height: 3.2rem; margin: 0 auto 1.2rem; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; box-shadow: 0 0 18px rgba(var(--glow), .35); animation: turn 1.1s linear infinite; }
html.site .companies li { background: linear-gradient(160deg, rgba(15, 34, 76, .82), rgba(4, 12, 32, .86)); border-radius: 16px; transition: border-color .25s, box-shadow .25s, translate .25s; }
html.site .companies li:hover { border-color: rgba(var(--glow), .6); box-shadow: 0 0 28px rgba(var(--glow), .18); translate: 4px 0; }

/* Appearing as it is scrolled to (fx.js marks what is waiting). */
[data-reveal] { transition: opacity .7s ease var(--wait, 0s), translate .7s cubic-bezier(.2, .7, .2, 1) var(--wait, 0s), transform .18s ease-out, border-color .25s, box-shadow .25s; }
.cards li:nth-child(3n+2) { --wait: .1s; }
.cards li:nth-child(3n+3) { --wait: .2s; }
[data-reveal].waiting { opacity: 0; translate: 0 34px; }

/* The top of the page arriving. */
.hero-words > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-words > :nth-child(2) { animation-delay: .08s; }
.hero-words > :nth-child(3) { animation-delay: .16s; }
.hero-words > :nth-child(4) { animation-delay: .24s; }
.hero-words > :nth-child(5) { animation-delay: .3s; }
/* The shine runs as well as the arrival. */
.hero-words h1 .shine { animation: shine 7s ease-in-out infinite alternate; }
.holo { animation: appear 1.4s ease both; }
.demo { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .4s both; }

/* ---------------------------------------------------------------- the chat */
.turn.fresh { animation: rise .35s ease both; }
html.app .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }
html.app .messages { background-image: radial-gradient(ellipse 70% 45% at 50% -5%, rgba(var(--glow), .1), transparent 70%); }
#history li { transition: background-color .2s, translate .2s; }
#history li:hover { translate: 3px 0; }
#history li.selected { box-shadow: inset 2px 0 0 var(--accent); }
.bubble.nova { border-color: var(--line); box-shadow: inset 2px 0 0 var(--accent), 0 6px 22px rgba(20, 90, 200, .1); }
.speaker { letter-spacing: .1em; text-transform: uppercase; font-family: var(--mono); font-size: .72rem; }
.empty::before { content: ""; display: block; width: 4.5rem; height: 4.5rem; margin: 0 auto 1.5rem; border-radius: 50%; background: radial-gradient(circle, #e9faff 0 8%, #55c2ff 18%, rgba(23, 99, 224, .55) 42%, transparent 70%); box-shadow: 0 0 0 1px rgba(var(--glow), .35), 0 0 0 12px rgba(var(--glow), .08); animation: orb 3.6s ease-in-out infinite; }
.empty { animation: rise .5s ease both; }
.thinking { display: flex; align-items: center; gap: .55rem; }
.thinking::before { content: ""; flex: none; width: .9rem; height: .9rem; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: turn .8s linear infinite; }
html[data-mood="speaking"] .turn:last-child .answer > p:last-child::after { content: ""; display: inline-block; width: .45em; height: 1em; margin-left: .15em; vertical-align: -.15em; background: var(--accent); animation: blink .9s steps(2, start) infinite; }
.composer { position: relative; transition: border-color .2s, box-shadow .25s; }
.composer:focus-within { box-shadow: 0 0 0 3px rgba(var(--glow), .2), 0 8px 28px rgba(20, 90, 200, .18); }
.composer::before { content: ""; position: absolute; left: 12px; right: 12px; top: -2px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent) no-repeat; background-size: 40% 100%; opacity: 0; pointer-events: none; }
html[data-mood="thinking"] .composer::before, html[data-mood="speaking"] .composer::before { opacity: 1; animation: beam 1.3s linear infinite; }
.presence .mood { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 0 12px rgba(var(--glow), .9); }
@media (min-width: 1100px) {
  .presence { position: relative; }
  .presence::before { content: ""; position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1; translate: -50% -52%; border: 1px dashed rgba(var(--glow), .3); border-radius: 50%; animation: turn 80s linear infinite; pointer-events: none; z-index: 1; }
  html[data-mood="thinking"] .presence::before { animation-duration: 9s; border-color: rgba(var(--glow), .6); }
}

/* ---------------------------------------------------------------- narrower windows */
@media (max-width: 1000px) {
  .float { display: none; }
  .hero { column-gap: 2rem; }
  .ring { width: 118%; margin: -59% 0 0 -59%; }
}
@media (max-width: 900px) {
  .cards.steps { grid-template-columns: 1fr; }
  .flow { display: none; }
}
@media (max-width: 460px) {
  .top { gap: .5rem; padding-left: .75rem; padding-right: .75rem; }
  .top nav { gap: .6rem; }
  .top nav a, .top nav button { white-space: nowrap; }
  .eyebrow { font-size: .66rem; }
}
@media (max-width: 400px) {
  .top nav a[href="/app"] { display: none; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "words" "holo" "demo"; row-gap: 2rem; padding-top: 1.75rem; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .actions { justify-content: center; }
  .holo { width: min(84%, 20rem); }
  .demo { text-align: left; }
  .demo-body { min-height: 12.5rem; }
  .panel { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.75rem 1.25rem; text-align: center; }
  .shield { justify-self: center; width: 8rem; height: 8rem; }
  .band { padding-top: 2.75rem; }
}

/* ---------------------------------------------------------------- movements */
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes appear { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
@keyframes shine { 0%, 15% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
@keyframes sheen { 0% { transform: translateX(-130%); } 35%, 100% { transform: translateX(330%); } }
@keyframes ping { 0% { opacity: .9; scale: .5; } 70%, 100% { opacity: 0; scale: 1.8; } }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.08); } }
@keyframes turn { to { rotate: 360deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes scan { 0% { transform: translateY(-110%); } 70%, 100% { transform: translateY(570%); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes flow { 0% { transform: translateX(-100%); } 100% { transform: translateX(460%); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes hop { 0%, 100% { translate: 0 0; opacity: .45; } 50% { translate: 0 -5px; opacity: 1; } }
@keyframes beam { from { background-position: -70% 0; } to { background-position: 170% 0; } }
@keyframes orb { 0%, 100% { box-shadow: 0 0 0 1px rgba(var(--glow), .35), 0 0 0 10px rgba(var(--glow), .08); } 50% { box-shadow: 0 0 0 1px rgba(var(--glow), .55), 0 0 0 20px rgba(var(--glow), .03); } }

/* ---------------------------------------------------------------- holding still */
html[data-fx="off"] { scroll-behavior: auto; }
html[data-fx="off"] *, html[data-fx="off"] *::before, html[data-fx="off"] *::after { animation: none !important; transition: none !important; }
html[data-fx="off"] [data-reveal].waiting { opacity: 1; translate: none; }
html[data-fx="off"] .scan, html[data-fx="off"] .flow i, html[data-fx="off"] .ticker .copy, html[data-fx="off"] .button.big::after { display: none; }
html[data-fx="off"] .ticker ul { flex-wrap: wrap; justify-content: center; width: auto; padding-right: 1.6rem; }
@media (prefers-reduced-motion: reduce) {
  html, html.site { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal].waiting { opacity: 1; translate: none; }
  .scan, .flow i, .ticker .copy, .button.big::after { display: none; }
  .ticker ul { flex-wrap: wrap; justify-content: center; width: auto; padding-right: 1.6rem; }
}
@media (forced-colors: active) {
  .shine, .num { color: CanvasText; background: none; -webkit-text-stroke: 0; }
  .field, .scan, .rings { display: none; }
}
