/* maitool.org · shared styles
   Light and calm: a near-white canvas, ink-dark type, and the logo's four colors as soft, slowly moving light.
   The product is the hero: real MAI Lite clips sit in a browser window that settles flat as you scroll.
   The logo's 2 × 2 grid (only the outer corners rounded) still shapes every group of four.
   One theme on purpose (light). Text colors meet WCAG AA on every surface they sit on.
   Motion stops for visitors who ask for less of it, and pauses when it scrolls out of view. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  /* brand */
  --night: #1B1633;
  --night-hi: #2C2452;
  --night-lo: #130F27;
  --hibiscus: #FF4F8B;   /* video */
  --orchid: #9B6BFF;     /* audio */
  --pineapple: #FFD23F;  /* images */
  --lagoon: #1FC8B8;     /* documents */
  --coral: #FF6A4D;      /* the play dot */
  --paper: #F1F2F6;
  --on-brand: #1B1633;
  --indigo: #4B3BD1;     /* links, focus, the app's own accent */

  /* canvas */
  --bg: #FBFBFE;
  --bg-soft: #F5F4FB;
  --surface: #FFFFFF;
  --surface-2: #F3F2F8;
  --line: rgba(24, 20, 48, 0.08);
  --line-strong: rgba(24, 20, 48, 0.15);
  --text: #14112B;
  --text-2: #4A4664;
  --text-3: #66627E;
  --link: #4B3BD1;
  --focus: #4B3BD1;
  /* each kind as text */
  --k-video: #C0145A;
  --k-audio: #6A3BE0;
  --k-image: #8A6100;
  --k-doc: #08776D;
  --k-coral: #BE3A12;
  --mark-bg: rgba(255, 210, 63, 0.5);
  /* light washes of each kind */
  --w-video: #FFE8F0;
  --w-audio: #F0E9FF;
  --w-image: #FFF5D1;
  --w-doc: #DDF7F3;
  --grad-ink: linear-gradient(92deg, #D6246E 0%, #7B3FF2 32%, #2F6BFF 62%, #0B8F84 86%, #D6246E 100%);
  --grad-edge: linear-gradient(120deg, #FF4F8B, #9B6BFF 35%, #4B8DFF 62%, #1FC8B8 85%, #FFD23F);

  --shadow-1: 0 1px 2px rgba(24, 20, 48, 0.05), 0 1px 1px rgba(24, 20, 48, 0.03);
  --shadow-2: 0 1px 2px rgba(24, 20, 48, 0.04), 0 14px 34px -14px rgba(24, 20, 48, 0.16);
  --shadow-3: 0 2px 6px rgba(24, 20, 48, 0.05), 0 34px 80px -28px rgba(46, 26, 130, 0.32);
  --glass: rgba(255, 255, 255, 0.72);

  /* type */
  --font-display: "Outfit", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --step-hero: clamp(2.6rem, 1.15rem + 5.2vw, 5.35rem);
  --step-page: clamp(2.3rem, 1.4rem + 3.4vw, 4rem);
  --step-h2: clamp(2rem, 1.2rem + 2.7vw, 3.45rem);
  --step-h3: clamp(1.2rem, 1.06rem + 0.55vw, 1.5rem);
  --step-body: 1.0625rem;
  --step-small: 0.9375rem;
  --step-tiny: 0.8125rem;

  /* shape and rhythm */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --section-y: clamp(4rem, 2.4rem + 4.6vw, 6.75rem);
  --wrap: 1200px;
  --head-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  scroll-padding-top: calc(var(--head-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* paints the phone's status-bar strip above the sticky header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
img, svg, video { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; color: inherit; }
h1 { font-weight: 680; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--step-h2); font-weight: 650; letter-spacing: -0.03em; line-height: 1.06; }
h3 { font-size: var(--step-h3); font-weight: 640; letter-spacing: -0.012em; line-height: 1.22; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }
kbd { padding: 0.1em 0.42em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); font-size: 0.82em; }
mark { background: var(--mark-bg); color: inherit; border-radius: 3px; padding: 0 0.12em; }
::selection { background: rgba(155, 107, 255, 0.26); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--night);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 40px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}
.section { position: relative; padding-block: var(--section-y); }
.section.soft { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 14%, var(--bg-soft) 86%, var(--bg) 100%); }
.section-head { display: grid; gap: 16px; max-width: 48rem; margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(75, 59, 209, 0.08);
  color: var(--indigo);
  font: 700 var(--step-tiny) / 1.2 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-head.center .eyebrow { justify-self: center; }
.eyebrow.coral { background: rgba(255, 106, 77, 0.12); color: var(--k-coral); }
.eyebrow.teal { background: rgba(31, 200, 184, 0.14); color: var(--k-doc); }
.lede { font-size: clamp(1.08rem, 1rem + 0.42vw, 1.28rem); color: var(--text-2); max-width: 42rem; line-height: 1.55; }
.small { font-size: var(--step-small); }
.muted { color: var(--text-2); }
.note { font-size: var(--step-small); color: var(--text-3); }
.stack { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.center { justify-content: center; }
.grad-text {
  background: var(--grad-ink);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text { color: var(--indigo); -webkit-text-fill-color: currentColor; }
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(251, 251, 254, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-head.scrolled { border-bottom-color: var(--line); background: rgba(251, 251, 254, 0.9); box-shadow: 0 8px 30px -18px rgba(24, 20, 48, 0.25); }
.head-in { display: flex; align-items: center; gap: 18px; min-height: var(--head-h); }
.brand-link { display: inline-flex; align-items: center; flex: none; border-radius: 10px; }
.brand-link img, .brand-link svg { display: block; height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 560;
  font-size: 0.96rem;
  text-decoration: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(24, 20, 48, 0.05); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 16px; height: 3px;
  margin-left: -8px;
  border-radius: 3px;
  background: var(--grad-edge);
}
.head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.head-link {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
}
.head-link svg { width: 18px; height: 18px; color: var(--coral); }
.head-link:hover, .head-link[aria-current="page"] { color: var(--text); background: rgba(24, 20, 48, 0.05); }
.menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-nav { display: none; }
@media (max-width: 959px) {
  .nav, .head-link { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: block; padding-block: 6px 20px; border-top: 1px solid var(--line); }
  .mobile-nav[hidden] { display: none !important; }
  .mobile-nav a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 54px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font: 600 1.15rem var(--font-display);
    text-decoration: none;
  }
  .mobile-nav a[aria-current="page"] { color: var(--indigo); }
  .mobile-nav a::after { content: "›"; color: var(--text-3); font-size: 1.4rem; }
}
@media (max-width: 400px) {
  .brand-link img, .brand-link svg { height: 28px; }
  .head-actions .btn-sm span.long { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 650 1rem / 1 var(--font-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #312a5c 0%, var(--night) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 0 0 1px var(--night), 0 10px 26px -12px rgba(27, 22, 51, 0.7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 0 0 1px var(--night), 0 18px 36px -14px rgba(75, 59, 209, 0.65); }
.btn-primary svg { transition: transform 0.18s var(--ease); }
.btn-primary:hover svg.go { transform: translate(2px, -2px); }
.btn-line { color: var(--text); background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.btn-line:hover { border-color: rgba(24, 20, 48, 0.3); transform: translateY(-1px); }
.btn-glass { color: var(--text); background: rgba(255, 255, 255, 0.7); border-color: rgba(24, 20, 48, 0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: #fff; transform: translateY(-1px); }
.btn-big { min-height: 58px; padding: 0 30px; font-size: 1.08rem; }
.btn-big svg { width: 21px; height: 21px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; gap: 8px; }
.btn-sm svg { width: 16px; height: 16px; }
/* a slow ring of the logo's colors behind the main action */
.btn-glow { isolation: isolate; }
.btn-glow::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), #FF4F8B, #9B6BFF, #4B8DFF, #1FC8B8, #FFD23F, #FF4F8B);
  filter: blur(12px);
  opacity: 0.5;
  transition: opacity 0.2s var(--ease);
}
/* the button's own fill sits above the ring, so the colors only show around its edge */
.btn-glow::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: inherit; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset; }
.btn-glow:hover::before { opacity: 0.85; }
.btn[aria-disabled="true"], .btn:disabled { cursor: default; opacity: 0.62; box-shadow: none; transform: none; }
.text-link { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; }
.text-link::after { content: "→"; transition: transform 0.15s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- pills and chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 11px 3px 9px;
  border-radius: 999px;
  font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.01em;
  line-height: 1.6;
  white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-now { background: rgba(31, 200, 184, 0.15); color: var(--k-doc); }
.pill-now::before { box-shadow: 0 0 0 0 rgba(31, 200, 184, 0.55); animation: ping 2.4s var(--ease) infinite; }
.pill-soon { background: rgba(255, 106, 77, 0.13); color: var(--k-coral); }
.pill-next { background: rgba(155, 107, 255, 0.14); color: var(--k-audio); }
.pill-later { background: var(--surface-2); color: var(--text-2); }
.ext {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  font: 600 0.78rem var(--font-mono);
  letter-spacing: 0.02em;
  background: var(--surface-2);
  color: var(--text);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31, 200, 184, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(31, 200, 184, 0); } }

/* ---------- moving light: the background of the hero, page heads and the last call ---------- */
.aurora {
  position: absolute; inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #F6F3FF 0%, var(--bg) 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.aurora::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(27, 22, 51, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 22, 51, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(68% 58% at 50% 22%, #000 0%, transparent 78%);
  mask-image: radial-gradient(68% 58% at 50% 22%, #000 0%, transparent 78%);
}
.aurora::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.32;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blob {
  position: absolute;
  width: var(--s, 44rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent 72%);
  animation: drift-a var(--t, 26s) ease-in-out infinite alternate;
}
.blob.b1 { --c: rgba(255, 79, 139, 0.34); --s: 46rem; left: -14rem; top: -16rem; }
.blob.b2 { --c: rgba(155, 107, 255, 0.36); --s: 52rem; right: -16rem; top: -22rem; --t: 31s; animation-name: drift-b; }
.blob.b3 { --c: rgba(255, 210, 63, 0.34); --s: 34rem; left: 14%; top: 16rem; --t: 28s; animation-name: drift-c; }
.blob.b4 { --c: rgba(31, 200, 184, 0.3); --s: 40rem; right: 6%; top: 11rem; --t: 35s; animation-name: drift-d; }
@keyframes drift-a { to { transform: translate3d(7rem, 4rem, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-6rem, 6rem, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(9rem, -3rem, 0) scale(1.18); } }
@keyframes drift-d { to { transform: translate3d(-8rem, -4rem, 0) scale(1.08); } }
.paused .blob, .paused .grad-text, .paused .stage-glow { animation-play-state: paused; }

/* ---------- home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding-top: clamp(2.75rem, 1.2rem + 5vw, 6.25rem); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.hero-copy { display: grid; justify-items: center; gap: 22px; max-width: 920px; margin-inline: auto; text-align: center; }
.news-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  color: var(--text-2);
  font-size: var(--step-small);
  font-weight: 560;
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.news-chip b { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--night); color: #fff; font-size: 0.78rem; letter-spacing: 0.02em; }
.news-chip b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lagoon); animation: ping 2.4s var(--ease) infinite; }
.news-chip:hover { color: var(--text); border-color: var(--line-strong); }
.news-chip svg { width: 14px; height: 14px; }
.hero h1 { font-size: var(--step-hero); letter-spacing: -0.042em; line-height: 0.98; }
.hero h1 .grad-text { display: inline-block; padding-bottom: 0.08em; animation: sheen 14s ease-in-out infinite alternate; }
.hero .lede { max-width: 41rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem); }
.hero .lede b { color: var(--text); font-weight: 650; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: var(--text-3); font-size: var(--step-small); }
.hero-notes li { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes svg { width: 16px; height: 16px; flex: none; }
.hero-notes li:nth-child(1) svg { color: var(--k-doc); }
.hero-notes li:nth-child(2) svg { color: var(--k-audio); }
.hero-notes li:nth-child(3) svg { color: var(--k-video); }
.browser-hint { font-size: var(--step-small); color: var(--text-2); min-height: 1.6em; }
.browser-hint:empty { display: none; }
@keyframes sheen { to { background-position: 100% 0; } }

/* the stage: a browser window playing MAI Lite, tilted back, settling flat as you scroll */
.hero-stage { position: relative; max-width: 1140px; margin: clamp(2.75rem, 1.8rem + 3.5vw, 4.75rem) auto 0; perspective: 2200px; }
.stage { position: relative; transform-origin: 50% 0; }
.js .stage { transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1)); }
.stage-glow {
  position: absolute;
  inset: 6% 4% -4%;
  z-index: -1;
  border-radius: 48px;
  background: conic-gradient(from var(--spin), #FF4F8B, #9B6BFF, #4B8DFF, #1FC8B8, #FFD23F, #FF4F8B);
  filter: blur(64px);
  opacity: 0.42;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { --spin: 360deg; } }

.browser {
  position: relative;
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(24, 20, 48, 0.09), 0 2px 4px rgba(24, 20, 48, 0.04), 0 40px 90px -34px rgba(46, 26, 130, 0.42), 0 70px 140px -70px rgba(24, 20, 48, 0.35);
}
.browser-bar {
  display: grid;
  grid-template-columns: 1fr minmax(0, 2.2fr) 1fr;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  background: linear-gradient(180deg, #FCFCFE, #F2F1F7);
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #DEDCE8; }
.addr {
  justify-self: center;
  width: min(100%, 360px);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 28px; padding: 0 12px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  font: 560 0.82rem / 1 var(--font-body);
  white-space: nowrap; overflow: hidden;
}
.addr svg { width: 13px; height: 13px; flex: none; color: var(--k-doc); }
.addr b { color: var(--text); font-weight: 600; }
.bar-end { justify-self: end; display: flex; gap: 6px; }
.bar-end span { padding: 2px 8px; border-radius: 6px; background: rgba(75, 59, 209, 0.09); color: var(--indigo); font: 700 0.7rem / 1.5 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; }
.browser-view { position: relative; aspect-ratio: 16 / 10; background: #F4F3F8; }
.browser-view video, .browser-view img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.media-btn {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 14px 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(24, 20, 48, 0.1);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font: 650 0.85rem var(--font-body);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  opacity: 0.92;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.media-btn:hover { opacity: 1; transform: translateY(-1px); }
.media-btn svg { width: 16px; height: 16px; }
.media-btn .i-play { display: none; }
.media-btn[data-paused] .i-play { display: block; }
.media-btn[data-paused] .i-pause { display: none; }
.play-big {
  position: absolute; left: 50%; top: 50%;
  z-index: 2;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: rgba(27, 22, 51, 0.82);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.35), 0 20px 40px -12px rgba(27, 22, 51, 0.6);
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}
.play-big:hover { transform: scale(1.05); }
.play-big svg { width: 34px; height: 34px; margin-left: 4px; }

/* small glass notes floating around the stage */
.float {
  position: absolute;
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(24, 20, 48, 0.06), 0 18px 40px -16px rgba(46, 26, 130, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  color: var(--text);
  font: 600 0.88rem / 1.25 var(--font-body);
  white-space: nowrap;
  animation: bob 7s ease-in-out infinite alternate;
}
.float small { display: block; color: var(--text-3); font-weight: 560; font-size: 0.78rem; }
.float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--on-brand); }
.float .ic svg { width: 18px; height: 18px; }
.float.f1 { left: -3.5%; top: 16%; }
.float.f1 .ic { background: var(--lagoon); border-radius: 10px 4px 4px 4px; }
.float.f2 { right: -4%; top: 24%; animation-delay: -2.4s; }
.float.f2 .ic { background: var(--orchid); border-radius: 4px 10px 4px 4px; }
.float.f3 { left: 5%; bottom: -5%; animation-delay: -4.1s; }
.float.f3 .ic { background: var(--pineapple); border-radius: 4px 4px 4px 10px; }
.float.f4 { right: -3%; top: 60%; animation-delay: -1.2s; }
.float.f4 .ic { background: var(--hibiscus); border-radius: 4px 4px 10px 4px; }
.kind-dots { display: inline-flex; gap: 4px; margin-right: 2px; }
.kind-dots i { width: 9px; height: 9px; border-radius: 3px; }
.kind-dots i:nth-child(1) { background: var(--hibiscus); border-radius: 5px 2px 2px 2px; }
.kind-dots i:nth-child(2) { background: var(--orchid); border-radius: 2px 5px 2px 2px; }
.kind-dots i:nth-child(3) { background: var(--pineapple); border-radius: 2px 2px 2px 5px; }
.kind-dots i:nth-child(4) { background: var(--lagoon); border-radius: 2px 2px 5px 2px; }
@keyframes bob { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
@media (max-width: 1099px) { .float { display: none; } }
@media (max-width: 640px) {
  .browser { border-radius: 12px; }
  .browser-bar { grid-template-columns: minmax(0, 1fr); height: 36px; padding: 0 8px; }
  .dots, .bar-end { display: none; }
  .addr { height: 24px; font-size: 0.74rem; }
  .media-btn { right: 8px; bottom: 8px; min-height: 32px; padding: 0 10px 0 8px; font-size: 0.76rem; }
  .media-btn .lbl { display: none; }
  .media-btn { width: 36px; padding: 0; justify-content: center; }
}

/* numbers under the stage */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(3rem, 2.2rem + 3vw, 5rem); }
.fact { position: relative; display: grid; gap: 6px; align-content: start; padding: 22px clamp(14px, 1vw + 8px, 26px) 0; }
.fact::before { content: ""; position: absolute; left: clamp(14px, 1vw + 8px, 26px); top: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--c, var(--hibiscus)); }
.fact:nth-child(2) { --c: var(--orchid); }
.fact:nth-child(3) { --c: var(--pineapple); }
.fact:nth-child(4) { --c: var(--lagoon); }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { font: 660 clamp(2.1rem, 1.4rem + 2.2vw, 3.2rem) / 1 var(--font-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.fact b small { font-size: 0.5em; font-weight: 600; margin-left: 3px; color: var(--text-3); letter-spacing: 0; }
.fact > span { color: var(--text-2); font-size: var(--step-small); line-height: 1.45; }
.facts-note { margin-top: 18px; color: var(--text-3); font-size: var(--step-tiny); text-align: center; }
.hero + .section { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .fact:nth-child(3) { border-left: 0; }
}

/* ---------- the tour: short clips of MAI Lite ---------- */
.theater { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(1.5rem, 0.8rem + 2.5vw, 3.25rem); align-items: center; }
.theater-screen { position: relative; min-width: 0; }
.theater-screen .browser { box-shadow: 0 0 0 1px rgba(24, 20, 48, 0.09), 0 30px 70px -30px rgba(46, 26, 130, 0.38); }
.clip-caption { margin-top: 14px; color: var(--text-3); font-size: var(--step-tiny); text-align: center; }
.reel { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.reel-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 3px 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.reel-item:hover { background: rgba(255, 255, 255, 0.7); }
.reel-item .num {
  grid-row: span 2;
  align-self: start;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-3);
  font: 650 0.9rem var(--font-display);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.reel-item .num svg { width: 20px; height: 20px; }
.reel-item b { color: var(--text); font: 640 1.08rem / 1.3 var(--font-display); letter-spacing: -0.01em; }
.reel-item .txt { grid-column: 2; font-size: var(--step-small); line-height: 1.5; display: none; }
.reel-item .txt em { font-style: normal; color: var(--k-coral); font-weight: 650; }
.reel-item .bar { position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px; background: var(--surface-2); display: none; }
.reel-item .bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-edge); transform-origin: left; transform: scaleX(var(--p, 0)); }
.reel-item[aria-pressed="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-2); padding-bottom: 18px; }
.reel-item[aria-pressed="true"] .txt, .reel-item[aria-pressed="true"] .bar { display: block; }
.reel li:nth-child(1) .reel-item[aria-pressed="true"] .num { background: var(--hibiscus); color: var(--on-brand); border-radius: 12px 4px 4px 4px; }
.reel li:nth-child(2) .reel-item[aria-pressed="true"] .num { background: var(--orchid); color: var(--on-brand); border-radius: 4px 12px 4px 4px; }
.reel li:nth-child(3) .reel-item[aria-pressed="true"] .num { background: var(--pineapple); color: var(--on-brand); border-radius: 4px 4px 4px 12px; }
.reel li:nth-child(4) .reel-item[aria-pressed="true"] .num { background: var(--lagoon); color: var(--on-brand); border-radius: 4px 4px 12px 4px; }
.reel li:nth-child(5) .reel-item[aria-pressed="true"] .num { background: var(--coral); color: var(--on-brand); }
.tour-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.tour-foot .note { max-width: 34rem; text-align: center; }
@media (max-width: 959px) {
  .theater { grid-template-columns: minmax(0, 1fr); }
  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .reel-item { grid-template-columns: 36px minmax(0, 1fr); padding: 12px; gap: 2px 12px; }
  .reel-item .num { width: 36px; height: 36px; }
  .reel-item .txt { grid-column: 1 / -1; margin-top: 6px; }
}
@media (max-width: 520px) { .reel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- editions: try it now, keep it later ---------- */
.editions { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: stretch; }
.edition {
  position: relative;
  display: grid; gap: 18px; align-content: start;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  min-width: 0;
}
.edition.lite {
  grid-template-rows: repeat(4, auto) 1fr;
  align-content: stretch;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-edge) border-box;
  box-shadow: 0 30px 70px -34px rgba(91, 61, 220, 0.45), var(--shadow-1);
}
.ed-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.ed-icon { width: 54px; height: 54px; border-radius: 15px; overflow: hidden; display: grid; place-items: center; background: var(--night); box-shadow: 0 10px 24px -10px rgba(27, 22, 51, 0.55); }
.ed-icon img { width: 54px; height: 54px; display: block; }
.ed-icon svg { width: 28px; height: 28px; color: #fff; }
.edition h3 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); }
.ed-sub { color: var(--text-3); font-size: var(--step-small); font-weight: 560; }
.edition > p { color: var(--text-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); font-size: var(--step-small); }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 0.18em;
  width: 20px; height: 20px;
  border-radius: 7px;
  background: rgba(31, 200, 184, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l2.9 2.9 6-6.3' fill='none' stroke='%2308776D' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checks li b { color: var(--text); font-weight: 650; }
.win .checks li::before { background-color: rgba(155, 107, 255, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4.5v11M4.5 10h11' fill='none' stroke='%236A3BE0' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ed-meta { align-self: end; color: var(--text-3); font-size: var(--step-tiny); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ed-meta span + span::before { content: "·"; margin-right: 10px; }
.ed-link { position: relative; display: grid; place-items: center; }
.ed-link::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--orchid) 0 8px, transparent 8px 14px);
  background-size: 28px 2px;
  opacity: 0.55;
  animation: march 1.4s linear infinite;
}
.ed-link span {
  position: relative;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-3);
  font: 700 0.68rem / 1.25 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
@keyframes march { to { background-position: 28px 0; } }
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.channels li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.channels svg { width: 20px; height: 20px; color: var(--text-2); }
.channels b { font-weight: 650; font-size: 0.95rem; }
.channels .soon { font-size: var(--step-tiny); font-weight: 700; color: var(--text-3); white-space: nowrap; }
.later-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.later { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.later .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.later .ic svg { width: 22px; height: 22px; }
.later b { display: block; font-weight: 650; }
.later span.t { color: var(--text-2); font-size: var(--step-small); }
@media (max-width: 959px) {
  .editions { grid-template-columns: minmax(0, 1fr); }
  .ed-link { height: 64px; }
  .ed-link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--orchid) 0 8px, transparent 8px 14px); background-size: 2px 28px; animation-name: march-y; }
}
@keyframes march-y { to { background-position: 0 28px; } }
@media (max-width: 700px) { .later-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .ed-top { grid-template-columns: auto minmax(0, 1fr); } .ed-top .pill { grid-column: 1 / -1; justify-self: start; } .later { grid-template-columns: 44px minmax(0, 1fr); } .later .pill { grid-column: 2; justify-self: start; } }

/* ---------- four kinds ---------- */
.kinds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.kind-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kind-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.kind-list > :nth-child(1) { border-top-left-radius: var(--r-lg); }
.kind-list > :nth-child(4) { border-bottom-left-radius: var(--r-lg); }
.kind-row svg.kind-tile-svg { grid-row: span 2; width: 52px; height: 52px; display: block; }
.kind-row b { font: 650 1.12rem / 1.25 var(--font-display); }
.kind-row .count { grid-row: span 2; text-align: right; font: 680 1.55rem / 1 var(--font-display); letter-spacing: -0.02em; }
.kind-row .count small { display: block; margin-top: 4px; font: 650 0.72rem var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.kind-row span.t { grid-column: 2; color: var(--text-2); font-size: var(--step-small); }
.kind-row.v .count { color: var(--k-video); }
.kind-row.a .count { color: var(--k-audio); }
.kind-row.i .count { color: var(--k-image); }
.kind-row.d .count { color: var(--k-doc); }
@media (max-width: 959px) { .kinds { grid-template-columns: minmax(0, 1fr); } .bento-art { max-width: 460px; justify-self: center; width: 100%; } }
@media (max-width: 420px) { .kind-row { grid-template-columns: 44px minmax(0, 1fr); } .kind-row svg.kind-tile-svg { width: 44px; height: 44px; } .kind-row .count { grid-row: auto; grid-column: 2; text-align: left; font-size: 1.1rem; } .kind-row .count small { display: inline; margin-left: 6px; } }

/* the living bento: the logo's box with a little of each kind playing inside */
.bento-art { position: relative; margin: 0; padding-bottom: 34px; min-width: 0; }
.bento-art::before { content: ""; position: absolute; inset: 10% 8% 16%; z-index: -1; border-radius: 30%; background: conic-gradient(from var(--spin), #FF4F8B, #9B6BFF, #1FC8B8, #FFD23F, #FF4F8B); filter: blur(56px); opacity: 0.38; animation: spin 26s linear infinite; }
.bento-box {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 23.4%;
  padding: 9.4%;
  background: linear-gradient(145deg, var(--night-hi), #19132f 70%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 40px 80px -30px rgba(27, 22, 51, 0.6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5.8%;
}
.cell {
  position: relative;
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  gap: 4cqi;
  padding: 11% 11% 10%;
  color: var(--on-brand);
  overflow: hidden;
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease), transform 0.45s var(--ease);
  outline: 0 solid rgba(255, 255, 255, 0);
  outline-offset: -2px;
}
.cell.v { background: var(--hibiscus); border-radius: 36.7% 3% 3% 3%; }
.cell.a { background: var(--orchid); border-radius: 3% 36.7% 3% 3%; }
.cell.i { background: var(--pineapple); border-radius: 3% 3% 3% 36.7%; }
.cell.d { background: var(--lagoon); border-radius: 3% 3% 36.7% 3%; }
.cell-label { font: 700 clamp(10px, 3.3cqi, 17px) / 1 var(--font-display); letter-spacing: 0.01em; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cell-label small { font: 600 clamp(8px, 2.3cqi, 12px) / 1 var(--font-mono); opacity: 0.72; letter-spacing: 0; white-space: nowrap; }
.cell.v .cell-label, .cell.a .cell-label { padding-left: 22%; }
.cell.i .cell-label, .cell.d .cell-label { order: 2; margin-top: auto; }
.cell.i .cell-label { padding-left: 20%; }
.cell.d .cell-label { padding-right: 20%; }
.screen { position: relative; flex: 1; min-height: 0; border-radius: 7cqi 2cqi 2cqi 2cqi; overflow: hidden; background: var(--night); }
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene .sky { position: absolute; inset: 0; background: linear-gradient(180deg, #2C2452 0%, #7A3B8F 34%, #FF6A4D 64%, #FFD23F 82%); }
.scene .sun { position: absolute; left: 56%; top: 38%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #FFF4C2, #FFD23F 60%); box-shadow: 0 0 6cqi rgba(255, 210, 63, 0.7); animation: sunset 9s var(--ease) infinite alternate; }
.scene .sea { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background: linear-gradient(180deg, #3A2A66, #1B1633); }
.scene .sea::before, .scene .sea::after { content: ""; position: absolute; left: -20%; right: -20%; height: 1.2cqi; border-radius: 1cqi; background: repeating-linear-gradient(90deg, rgba(255, 210, 63, 0.75) 0 8%, transparent 8% 13%); animation: shimmer 3.2s linear infinite; }
.scene .sea::before { top: 18%; opacity: 0.9; }
.scene .sea::after { top: 46%; opacity: 0.45; animation-duration: 4.6s; }
.screen-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 2.4cqi; padding: 2.2cqi 2.6cqi; background: linear-gradient(180deg, transparent, rgba(10, 7, 22, 0.75)); color: #fff; font: 600 clamp(7px, 2.1cqi, 11px) / 1 var(--font-mono); }
.screen-ui .tri { width: 0; height: 0; border-left: 2.4cqi solid #fff; border-top: 1.5cqi solid transparent; border-bottom: 1.5cqi solid transparent; }
.screen-ui .bar { flex: 1; height: 0.9cqi; border-radius: 1cqi; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.screen-ui .bar i { display: block; height: 100%; width: 100%; background: var(--coral); transform-origin: left; transform: scaleX(0.34); animation: progress 14s linear infinite; }
.eq { flex: 1; min-height: 0; display: flex; align-items: center; gap: 1.6%; padding-inline: 2%; }
.eq i { flex: 1; height: 70%; border-radius: 2cqi; background: var(--on-brand); transform-origin: center; transform: scaleY(0.4); animation: eq 1.2s var(--ease) infinite alternate; }
.eq i:nth-child(3n) { animation-duration: 0.9s; }
.eq i:nth-child(3n+1) { animation-duration: 1.4s; }
.eq i:nth-child(4n) { animation-delay: -0.5s; }
.eq i:nth-child(5n+2) { animation-delay: -0.9s; }
.eq i:nth-child(7n) { animation-duration: 1.05s; animation-delay: -0.3s; }
.eq i:nth-child(1) { transform: scaleY(0.30); } .eq i:nth-child(2) { transform: scaleY(0.62); } .eq i:nth-child(3) { transform: scaleY(0.88); }
.eq i:nth-child(4) { transform: scaleY(0.52); } .eq i:nth-child(5) { transform: scaleY(0.74); } .eq i:nth-child(6) { transform: scaleY(0.98); }
.eq i:nth-child(7) { transform: scaleY(0.64); } .eq i:nth-child(8) { transform: scaleY(0.40); } .eq i:nth-child(9) { transform: scaleY(0.80); }
.eq i:nth-child(10) { transform: scaleY(0.56); } .eq i:nth-child(11) { transform: scaleY(0.36); } .eq i:nth-child(12) { transform: scaleY(0.66); }
.track { display: grid; gap: 1.2cqi; line-height: 1.1; padding-right: 4%; }
.track b { font: 700 clamp(9px, 2.9cqi, 15px) / 1.1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track span { font: 600 clamp(7px, 2.1cqi, 11px) / 1.1 var(--font-mono); opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo { position: relative; flex: 1; min-height: 0; border-radius: 2cqi; overflow: hidden; background: #2C2452; }
.photo .p-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #9FE7DE 0%, #F7C6D9 58%, #FFE9A8 100%); }
.photo .p-sun { position: absolute; right: 16%; top: 14%; width: 20%; aspect-ratio: 1; border-radius: 50%; background: #FFF3C4; box-shadow: 0 0 4cqi rgba(255, 243, 196, 0.9); }
.photo .p-m1, .photo .p-m2, .photo .p-m3 { position: absolute; bottom: -2%; aspect-ratio: 1.6; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.photo .p-m1 { left: -12%; width: 86%; background: linear-gradient(180deg, #6B4FC2, #2C2452); }
.photo .p-m2 { left: 38%; width: 74%; background: linear-gradient(180deg, #8B6FE0, #3A2A66); }
.photo .p-m3 { left: 18%; width: 46%; bottom: -6%; background: linear-gradient(180deg, #1B1633, #130F27); }
.photo-in { position: absolute; inset: 0; animation: kenburns 16s var(--ease) infinite alternate; transform-origin: 60% 70%; }
.page { position: relative; flex: 1; min-height: 0; padding: 7% 9%; border-radius: 2cqi; background: #FBFBFE; box-shadow: 0 1cqi 3cqi rgba(27, 22, 51, 0.25); display: flex; flex-direction: column; justify-content: center; gap: 6.5%; clip-path: polygon(0 0, 78% 0, 100% 16%, 100% 100%, 0 100%); }
.page::after { content: ""; position: absolute; right: 0; top: 0; width: 22%; height: 16%; background: linear-gradient(225deg, transparent 50%, #D9D6E8 50%); }
.page i { display: block; height: 4.6%; min-height: 3px; border-radius: 2cqi; background: rgba(27, 22, 51, 0.18); }
.page i:nth-child(1) { width: 52%; background: rgba(27, 22, 51, 0.55); }
.page i:nth-child(2) { width: 88%; } .page i:nth-child(4) { width: 92%; } .page i:nth-child(5) { width: 64%; }
.page i.hit { width: 76%; background: none; display: flex; align-items: center; gap: 4%; height: auto; min-height: 0; }
.page i.hit::before, .page i.hit::after { content: ""; height: 0.9cqi; min-height: 3px; border-radius: 2cqi; background: rgba(27, 22, 51, 0.18); }
.page i.hit::before { width: 26%; }
.page i.hit::after { flex: 1; }
.page mark { font: 700 clamp(7px, 2.2cqi, 12px) / 1.2 var(--font-mono); padding: 0.2cqi 1cqi; border-radius: 0.8cqi; color: var(--on-brand); background: linear-gradient(90deg, rgba(255, 106, 77, 0.55), rgba(255, 106, 77, 0.55)) no-repeat left / 100% 100%; animation: highlight 4.5s var(--ease) infinite; }
.bento-search {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 84%;
  display: flex; align-items: center; gap: 10px;
  min-height: 58px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--night);
  box-shadow: 0 0 0 1px rgba(24, 20, 48, 0.08), 0 22px 46px -18px rgba(46, 26, 130, 0.45);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
}
.bento-search svg { width: 20px; height: 20px; flex: none; color: var(--text-3); }
.bento-search .q { font-weight: 600; white-space: nowrap; overflow: hidden; }
.bento-search .caret { width: 2px; height: 1.2em; background: var(--indigo); margin-left: -6px; animation: blink 1s steps(1) infinite; }
.bento-search .found { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--night); color: #fff; font: 650 0.82rem var(--font-body); white-space: nowrap; }
.bento-search .ex { position: absolute; top: -11px; left: 22px; padding: 1px 8px; border-radius: 6px; background: var(--indigo); color: #fff; font: 700 0.66rem / 1.6 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.bento-art[data-q] .cell { opacity: 0.45; filter: saturate(0.6); }
.bento-art[data-q~="v"] .cell.v, .bento-art[data-q~="a"] .cell.a, .bento-art[data-q~="i"] .cell.i, .bento-art[data-q~="d"] .cell.d { opacity: 1; filter: none; outline: 3px solid rgba(255, 255, 255, 0.92); }
.bento-art.paused *, .bento-art.paused *::before, .bento-art.paused *::after, .bento-art.paused::before { animation-play-state: paused !important; }
@keyframes sunset { from { transform: translateY(-14%); } to { transform: translateY(42%); } }
@keyframes shimmer { from { transform: translateX(0); } to { transform: translateX(13%); } }
@keyframes progress { from { transform: scaleX(0.02); } to { transform: scaleX(1); } }
@keyframes eq { to { transform: scaleY(1); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -2%); } }
@keyframes highlight { 0%, 12% { background-size: 0% 100%; } 38%, 86% { background-size: 100% 100%; } 100% { background-size: 0% 100%; } }
@keyframes blink { 50% { opacity: 0; } }

/* formats sliding past */
.marquee {
  position: relative;
  display: grid; gap: 10px;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; gap: 10px; width: max-content; padding-right: 10px; animation: slide 60s linear infinite; }
.marquee-track .dup { display: contents; }
.marquee-track.rev { animation-direction: reverse; animation-duration: 72s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .ext { padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: 0.85rem; }
.marquee .ext.v { color: var(--k-video); } .marquee .ext.a { color: var(--k-audio); } .marquee .ext.i { color: var(--k-image); } .marquee .ext.d { color: var(--k-doc); }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-note { margin-top: 14px; text-align: center; }

/* ---------- how it works: a card catalog ---------- */
.catalog {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
}
.col-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.drives { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.drive { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.drive .dicon { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); color: var(--text-2); border: 1px solid var(--line); }
.drive .dicon svg { width: 21px; height: 21px; }
.drive b { font-weight: 650; font-size: 0.98rem; min-width: 0; overflow-wrap: anywhere; }
.drive span { font-size: var(--step-tiny); color: var(--text-3); font-family: var(--font-mono); overflow-wrap: anywhere; }
.drive em { font-style: normal; font-family: var(--font-body); font-weight: 650; color: var(--k-doc); }
.reads { display: grid; justify-items: center; gap: 8px; color: var(--text-3); font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.reads .dots { display: flex; gap: 6px; }
.reads .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--orchid); opacity: 0.25; animation: dots 1.4s var(--ease) infinite; }
.reads .dots i:nth-child(2) { animation-delay: 0.2s; background: var(--hibiscus); }
.reads .dots i:nth-child(3) { animation-delay: 0.4s; background: var(--lagoon); }
@keyframes dots { 30% { opacity: 1; transform: translateX(3px); } 60% { opacity: 0.25; transform: none; } }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.icard {
  position: relative;
  display: grid; gap: 8px;
  padding: 12px 12px 16px;
  border-radius: 12px;
  background: repeating-linear-gradient(180deg, transparent 0 21px, var(--line) 21px 22px) 0 76px / 100% calc(100% - 76px) no-repeat, var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--hibiscus);
  box-shadow: 0 2px 0 var(--line), 0 12px 24px -18px rgba(24, 20, 48, 0.3);
  min-width: 0;
}
.icard::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); }
.icard.a { border-top-color: var(--orchid); }
.icard.i { border-top-color: var(--pineapple); }
.icard.d { border-top-color: var(--lagoon); }
.icard .th { height: 56px; border-radius: 6px; position: relative; overflow: hidden; }
.icard b { font: 650 0.84rem/1.3 var(--font-mono); overflow-wrap: anywhere; }
.icard span { font: 500 0.75rem/1.45 var(--font-mono); color: var(--text-2); overflow-wrap: anywhere; }
.th-video { background: linear-gradient(180deg, #2C2452, #7A3B8F 45%, #FF6A4D 75%, #FFD23F); }
.th-video::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -6px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.th-audio { background: var(--orchid); display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 14px; }
.th-audio i { flex: 1; max-width: 5px; height: 60%; border-radius: 3px; background: var(--night); }
.th-audio i:nth-child(odd) { height: 30%; } .th-audio i:nth-child(3n) { height: 78%; }
.th-photo { background: linear-gradient(180deg, #9FE7DE, #F7C6D9 70%); }
.th-photo::before { content: ""; position: absolute; left: -10%; bottom: -30%; width: 75%; aspect-ratio: 1.6; clip-path: polygon(0 100%, 50% 0, 100% 100%); background: #3A2A66; }
.th-photo::after { content: ""; position: absolute; left: 40%; bottom: -30%; width: 70%; aspect-ratio: 1.6; clip-path: polygon(0 100%, 50% 0, 100% 100%); background: #6B4FC2; }
.th-doc { background: var(--surface-2); display: grid; place-items: center; }
.th-doc::before { content: "PDF"; display: grid; place-items: center; width: 40px; height: 48px; border-radius: 4px; background: #FBFBFE; border-top: 12px solid #D93A31; color: var(--night); font: 700 0.6rem var(--font-mono); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.catalog-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); margin-top: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.catalog-facts h3 { font-size: 1.12rem; margin-bottom: 6px; }
.catalog-facts p { color: var(--text-2); font-size: var(--step-small); }
.tag-soon { display: inline-block; margin-left: 6px; font: 700 0.68rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--k-coral); vertical-align: 2px; }
@media (max-width: 960px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .reads { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .reads .dots { transform: rotate(90deg); }
}
@media (max-width: 760px) { .catalog-facts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* promises */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.promise { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.promise::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: 0.6; }
.promise .glyph { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px 4px 4px 4px; color: var(--on-brand); background: var(--coral); }
.promise .glyph svg { width: 24px; height: 24px; }
.promise:nth-child(1) { --c: rgba(255, 106, 77, 0.22); }
.promise:nth-child(2) { --c: rgba(31, 200, 184, 0.24); }
.promise:nth-child(2) .glyph { background: var(--lagoon); border-radius: 4px 13px 4px 4px; }
.promise:nth-child(3) { --c: rgba(255, 210, 63, 0.3); }
.promise:nth-child(3) .glyph { background: var(--pineapple); border-radius: 4px 4px 13px 4px; }
.promise h3 { font-size: 1.3rem; }
.promise p { color: var(--text-2); font-size: var(--step-small); }
@media (max-width: 860px) { .promises { grid-template-columns: minmax(0, 1fr); } }

/* ---------- two columns ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.copy { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ticks { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 7px; border-left: 2.5px solid var(--k-doc); border-bottom: 2.5px solid var(--k-doc); transform: translateY(-50%) rotate(-45deg); }
.ticks li b { color: var(--text); font-weight: 650; }

/* ---------- Smart Scan: a family of copies ---------- */
.family { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); padding: clamp(1rem, 0.7rem + 1.5vw, 1.75rem); display: grid; gap: 10px; min-width: 0; }
.family::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(155, 107, 255, 0.14) 70%, rgba(155, 107, 255, 0.45) 98%, transparent);
  pointer-events: none;
  transform: translateY(-80px);
  animation: scan 5.5s var(--ease) infinite;
}
@keyframes scan { 0% { transform: translateY(-80px); } 55%, 100% { transform: translateY(520px); } }
.family-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 6px; }
.family-head b { font-family: var(--font-display); font-size: 1.15rem; }
.copy-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); }
.copy-row .th { width: 48px; height: 40px; border-radius: 7px; position: relative; overflow: hidden; }
.copy-row b { display: block; font: 600 0.88rem/1.3 var(--font-mono); overflow-wrap: anywhere; }
.copy-row span { display: block; font-size: var(--step-tiny); color: var(--text-3); overflow-wrap: anywhere; }
.verdict { font-size: var(--step-tiny); font-weight: 700; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.verdict.keep { background: rgba(31, 200, 184, 0.16); color: #066B62; }
.verdict.dup { background: rgba(255, 106, 77, 0.14); color: #AD3410; }
.verdict.backup { background: rgba(155, 107, 255, 0.16); color: var(--k-audio); display: inline-flex; gap: 5px; align-items: center; }
.verdict.backup svg { width: 13px; height: 13px; }
.family-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 6px; }
.family-foot .btn { min-height: 40px; font-size: 0.92rem; padding: 0 16px; }
.btn-night { background: var(--night); color: #fff; }
@media (max-width: 520px) { .copy-row { grid-template-columns: 40px minmax(0, 1fr); } .copy-row .th { width: 40px; height: 34px; } .copy-row .verdict { grid-column: 2; justify-self: start; } }

/* ---------- the last call ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid; justify-items: center; gap: 20px;
  padding: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(1.25rem, 1rem + 3vw, 4rem);
  border-radius: clamp(24px, 2vw + 16px, 40px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  text-align: center;
}
.cta-band .aurora { -webkit-mask-image: none; mask-image: none; background: linear-gradient(180deg, #F8F5FF, #FFFFFF); }
.cta-band .blob.b1 { left: -18rem; top: auto; bottom: -22rem; }
.cta-band .blob.b2 { right: -18rem; top: -26rem; }
.cta-band .blob.b3 { left: 30%; top: auto; bottom: -24rem; }
.cta-band .blob.b4 { right: 20%; top: auto; bottom: -26rem; }
.cta-band h2 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.2rem); letter-spacing: -0.04em; max-width: 16ch; }
.cta-band .lede { max-width: 36rem; }
.cta-band .brand-big { margin-bottom: -6px; }

/* ---------- MAI's logo animation ----------
   The same sequence and timing as the logo in MAI Lite's welcome window (lite.css wa-* rules), so every MAI
   platform greets people the same way: the box, the four tiles clockwise (video, audio, documents, photos),
   the letters m, a, i, then the coral play-dot lands on the i. build.py splits the final lockup into these parts.
   Plays on the home page's header logo as the page opens, and on the big logo when it scrolls into view. */
.wa-box, .wa-q, .wa-l, .wa-dot { transform-box: fill-box; transform-origin: center; }
.brand-anim.play .wa-box { animation: wa-box 0.5s cubic-bezier(0.05, 0.7, 0.1, 1) both; }
.brand-anim.play .wa-q { animation: wa-tile 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.brand-anim.play .wa-q1 { animation-delay: 0.32s; }
.brand-anim.play .wa-q2 { animation-delay: 0.47s; }
.brand-anim.play .wa-q4 { animation-delay: 0.62s; }
.brand-anim.play .wa-q3 { animation-delay: 0.77s; }
.brand-anim.play .wa-l { animation: wa-letter 0.5s cubic-bezier(0.05, 0.7, 0.1, 1) both; }
.brand-anim.play .wa-l1 { animation-delay: 0.95s; }
.brand-anim.play .wa-l2 { animation-delay: 1.05s; }
.brand-anim.play .wa-l3 { animation-delay: 1.15s; }
.brand-anim.play .wa-dot { animation: wa-dot 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.35s both; }
@keyframes wa-box { from { opacity: 0; transform: scale(0.55) rotate(-8deg); } }
@keyframes wa-tile { from { opacity: 0; transform: scale(0.3); } }
@keyframes wa-letter { from { opacity: 0; transform: translateY(40%); } }
@keyframes wa-dot { 0% { opacity: 0; transform: translateY(-160%) scale(0.6); } 60% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .brand-anim.play * { animation: none !important; } }
/* the big logo waits, unseen, until it scrolls into view and plays (without the script the still logo shows) */
@media (prefers-reduced-motion: no-preference) { .js .brand-anim.wait:not(.play) > g { opacity: 0; } }
.brand-big { display: inline-flex; padding: 8px 12px; border: 0; border-radius: 18px; background: none; cursor: pointer; }
.brand-big:disabled { cursor: default; }
.brand-big svg { display: block; width: auto; height: 72px; overflow: visible; }
.brand-name { margin: 0; font: 700 0.78rem / 1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 520px) { .brand-big svg { height: 58px; } }

/* tip */
.tip {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.25rem, 1rem + 2vw, 2.75rem); align-items: center;
  margin-top: 16px;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem) clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(255, 106, 77, 0.09), rgba(255, 210, 63, 0.12)), var(--surface);
  border: 1px solid var(--line);
}
.tip .cup { width: 60px; height: 60px; border-radius: 18px 6px 6px 6px; background: var(--coral); color: var(--on-brand); display: grid; place-items: center; }
.tip .cup svg { width: 30px; height: 30px; }
.tip h2, .tip h3 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem); }
.tip p { color: var(--text-2); margin-top: 6px; max-width: 40rem; }
.tip .row { justify-content: flex-end; }
@media (max-width: 860px) { .tip { grid-template-columns: minmax(0, 1fr); } .tip .row { justify-content: flex-start; } }

/* ---------- page heads (sub-pages) ---------- */
.page-head { position: relative; isolation: isolate; overflow: clip; }
.page-head .aurora { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.page-head .blob { opacity: 0.8; }
.page-head-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.page-head h1 { font-size: var(--step-page); letter-spacing: -0.04em; margin-top: 18px; }
.page-head .lede { margin-top: 18px; }
.head-mark { width: clamp(110px, 80px + 7vw, 184px); height: auto; filter: drop-shadow(0 26px 40px rgba(27, 22, 51, 0.3)); animation: bob 7s ease-in-out infinite alternate; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.7); color: var(--text); text-decoration: none; font-size: var(--step-small); font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); }
.jump a:hover { background: #fff; border-color: rgba(24, 20, 48, 0.3); }
@media (max-width: 700px) { .page-head-in { grid-template-columns: minmax(0, 1fr); } .head-mark { display: none; } }

/* ---------- spec sheets (features page) ---------- */
.sheet { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 1rem + 3vw, 4.5rem); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); border-top: 1px solid var(--line); }
.sheet:first-of-type { border-top: 0; }
.sheet-head { display: grid; gap: 12px; align-content: start; }
@media (min-width: 901px) { .sheet-head { position: sticky; top: calc(var(--head-h) + 28px); } }
.sheet-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.sheet-head p { color: var(--text-2); }
.sheet-head .pill { justify-self: start; }
.sheet-head .tile { width: 46px; height: 46px; border-radius: 13px 4px 4px 4px; display: grid; place-items: center; color: var(--on-brand); box-shadow: 0 10px 22px -12px rgba(27, 22, 51, 0.5); }
.sheet-head .tile svg { width: 24px; height: 24px; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feats li { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); min-width: 0; transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.feats li:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.feats b { display: block; font-weight: 680; margin-bottom: 4px; }
.feats span { color: var(--text-2); font-size: var(--step-small); display: block; }
.feats .where { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(155, 107, 255, 0.12); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--k-audio); }
@media (max-width: 900px) { .sheet { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .feats { grid-template-columns: minmax(0, 1fr); } }

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); }
table.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--step-small); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; background: var(--bg-soft); }
.compare tbody th { font-weight: 650; width: 26%; }
.compare td { color: var(--text-2); }
@media (max-width: 640px) {
  table.compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compare tbody, .compare tr, .compare tbody th, .compare td { display: block; width: auto; }
  .compare tr { padding: 16px 18px; border-top: 1px solid var(--line); }
  .compare tbody tr:first-child { border-top: 0; }
  .compare tbody th { padding: 0 0 8px; border: 0; font-family: var(--font-display); font-size: 1.02rem; }
  .compare td { position: relative; padding: 5px 0 5px 7.4rem; border: 0; }
  .compare td::before { content: attr(data-label); position: absolute; left: 0; top: 5px; font-weight: 650; color: var(--text); white-space: nowrap; }
}
.yes { color: var(--k-doc); font-weight: 700; }
.no { color: var(--text-3); font-weight: 600; }

/* ---------- generic cards and lists (projects, contribute, support) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.card { display: grid; gap: 12px; align-content: start; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); min-width: 0; transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--text-2); font-size: var(--step-small); }
.card .text-link { margin-top: auto; font-size: var(--step-small); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card .example { font: 500 0.8rem/1.55 var(--font-mono); color: var(--text-2); background: var(--bg-soft); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }

.quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quad > :nth-child(1) { border-top-left-radius: var(--r-xl); }
.quad > :nth-child(2) { border-top-right-radius: var(--r-xl); }
.quad > :nth-child(3) { border-bottom-left-radius: var(--r-xl); }
.quad > :nth-child(4) { border-bottom-right-radius: var(--r-xl); }
@media (max-width: 760px) {
  .quad { grid-template-columns: minmax(0, 1fr); }
  .quad > * { border-radius: 6px !important; }
  .quad > :first-child { border-top-left-radius: var(--r-xl) !important; border-top-right-radius: var(--r-xl) !important; }
  .quad > :last-child { border-bottom-left-radius: var(--r-xl) !important; border-bottom-right-radius: var(--r-xl) !important; }
}
.app-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-1); min-width: 0; }
.app-card.lite { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-edge) border-box; }
.app-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); overflow: hidden; }
.app-icon img { width: 64px; height: 64px; display: block; }
.app-icon svg { width: 30px; height: 30px; }
.app-card .stack { gap: 10px; }
.app-card h3 { font-size: 1.4rem; }
.app-card p { color: var(--text-2); }
.app-card .facts-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--step-small); color: var(--text-2); }
.facts-list li { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; }
.facts-list li b { color: var(--text-3); font-weight: 650; font-size: var(--step-tiny); text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
@media (max-width: 460px) { .app-card { grid-template-columns: minmax(0, 1fr); } .facts-list li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lane { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.lane h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 1.25rem; }
.lane ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lane li { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: var(--step-small); color: var(--text-2); }
.lane li b { display: block; color: var(--text); font-weight: 650; font-size: 0.97rem; margin-bottom: 2px; }
@media (max-width: 900px) { .roadmap { grid-template-columns: minmax(0, 1fr); } }

.credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.credits div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.credits dt { font-weight: 650; }
.credits dd { margin: 0; color: var(--text-2); font-size: var(--step-small); }
@media (max-width: 760px) { .credits { grid-template-columns: minmax(0, 1fr); } }

.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.callout .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(31, 200, 184, 0.15); color: var(--k-doc); }
.callout .ic svg { width: 22px; height: 22px; }
.callout p { color: var(--text-2); }
.callout b { color: var(--text); }

/* press kit */
.logo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.logo-tile { display: grid; place-items: center; min-height: 150px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.logo-tile.light { background: #FFFFFF; }
.logo-tile.dark { background: var(--night); }
.logo-tile.paper { background: var(--paper); }
.logo-tile img { max-height: 64px; width: auto; }
.logo-tile img.mark { max-height: 84px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; color: var(--text-2); font-size: var(--step-small); }
.rules svg { width: 20px; height: 20px; margin-top: 1px; }
.rules .do svg { color: var(--k-doc); }
.rules .dont svg { color: var(--k-coral); }
@media (max-width: 680px) { .logo-tiles { grid-template-columns: minmax(0, 1fr); } }

/* support: steps, faq, report builder */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 11px 4px 4px 4px; display: grid; place-items: center; background: var(--hibiscus); color: var(--on-brand); font: 700 1rem var(--font-display); }
.steps li:nth-child(2)::before { background: var(--orchid); border-radius: 4px 11px 4px 4px; }
.steps li:nth-child(3)::before { background: var(--lagoon); border-radius: 4px 4px 11px 4px; }
.steps b { font-size: 1.08rem; }
.steps p { color: var(--text-2); font-size: var(--step-small); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: box-shadow 0.2s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 650; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding: 0 18px 18px; color: var(--text-2); display: grid; gap: 10px; max-width: 48rem; }
.faq-groups { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
.faq-groups + .faq-groups { margin-top: 40px; }
.faq-groups h3 { font-size: 1.2rem; }
@media (max-width: 860px) { .faq-groups { grid-template-columns: minmax(0, 1fr); } }

.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.form { display: grid; gap: 16px; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: var(--step-small); }
.field .hint { font-size: var(--step-tiny); color: var(--text-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--text); font: 400 1rem var(--font-body); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.out { display: grid; gap: 12px; position: sticky; top: calc(var(--head-h) + 20px); }
.out pre { margin: 0; min-height: 280px; padding: 18px; border-radius: var(--r-lg); background: var(--night); color: #EEEDF6; font: 500 0.82rem/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.out pre:focus-visible { outline-offset: 2px; }
.out .row { justify-content: space-between; }
.status-line { font-size: var(--step-small); color: var(--k-doc); font-weight: 650; min-height: 1.5em; }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.05rem; }
.contact-line code { padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); user-select: all; font-size: 1rem; }
@media (max-width: 860px) { .builder { grid-template-columns: minmax(0, 1fr); } .out { position: static; } }
@media (max-width: 460px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* donate */
.donate-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); }
.donate-card h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem); }
.donate-card .stack { gap: 16px; align-content: start; }
.ways { display: grid; gap: 10px; }
.way { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.way .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--on-brand); }
.way .ic svg { width: 22px; height: 22px; }
.way b { display: block; font-weight: 650; }
.way span { color: var(--text-2); font-size: var(--step-small); }
@media (max-width: 860px) { .donate-card { grid-template-columns: minmax(0, 1fr); } }

/* prose (privacy) */
.prose { max-width: 46rem; display: grid; gap: 16px; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); margin-top: 28px; }
.prose h3 { font-size: 1.15rem; margin-top: 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 8px; }
.prose li::marker { color: var(--text-3); }
.summary-box { padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--lagoon); box-shadow: var(--shadow-1); }
.summary-box p { color: var(--text); font-size: 1.1rem; }
.ph { background: rgba(255, 210, 63, 0.35); border-radius: 4px; padding: 0 4px; color: var(--text); font-style: normal; outline: 1px dashed rgba(133, 97, 0, 0.6); }

/* ---------- footer ---------- */
.site-foot { position: relative; overflow: hidden; background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--text-2); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 64px 36px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand img { height: 34px; width: auto; }
.foot-brand p { font-size: var(--step-small); max-width: 19rem; }
.foot-brand .row { margin-top: 4px; }
.foot-col h2 { font: 700 var(--step-tiny) var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-col a { display: inline-block; padding: 4px 0; color: var(--text-2); text-decoration: none; font-size: var(--step-small); }
.foot-col a:hover { color: var(--text); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: var(--step-tiny); color: var(--text-3); }
.foot-base p { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.to-top { color: var(--text-2); font-weight: 600; text-decoration: none; }
.to-top:hover { color: var(--text); text-decoration: underline; }
.foot-word { display: block; width: min(100% - 2 * var(--gutter), 760px); height: auto; margin: -2rem auto -12%; opacity: 0.06; pointer-events: none; user-select: none; }
@media (max-width: 980px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 80;
  width: min(92vw, 460px);
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--night);
  color: #F1F0F8;
  box-shadow: 0 24px 60px -16px rgba(27, 22, 51, 0.55);
  display: grid; gap: 8px;
  font-size: var(--step-small);
}
.toast b { font-size: 1rem; }
.toast p { color: #C9C5E0; }
.toast button { justify-self: end; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; font: 600 0.9rem var(--font-body); cursor: pointer; }
.toast button:focus-visible { outline-color: var(--pineapple); }

/* preview-only notes for reviewers (never on the live site) */
.review-tab { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--pineapple); color: var(--on-brand); font: 700 0.85rem var(--font-body); box-shadow: 0 12px 30px -10px rgba(27, 22, 51, 0.45); cursor: pointer; }
.review-panel { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: min(92vw, 390px); max-height: 70vh; overflow: auto; padding: 18px; border-radius: 18px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--shadow-3); display: grid; gap: 10px; font-size: var(--step-small); }
.review-panel h2 { font-size: 1.1rem; }
.review-panel ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; color: var(--text-2); }

/* ---------- entrances: things rise into place as they scroll in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .hero-copy > * { animation: rise 0.9s var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .js .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .js .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .js .hero-copy > :nth-child(6) { animation-delay: 0.3s; }
  .js .hero-stage { animation: rise-far 1.2s var(--ease-out) 0.25s both; }
  .btn-glow::before { animation: spin 7s linear infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-far { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .stage { transform: none; }
  .screen-ui .bar i { transform: scaleX(0.4); }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; padding-right: 0; flex-wrap: wrap; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee-track.rev { display: none; }
}
