/* Vythera Feedback: Material 3 Expressive, tinted by the app you pick, moving on real springs. */

@property --h {
  syntax: '<number>';
  inherits: true;
  initial-value: 300;
}

:root {
  --h: 300;
  --font: 'Google Sans Flex', 'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --primary: oklch(0.5 0.15 var(--h));
  --on-primary: oklch(0.99 0.01 var(--h));
  --primary-container: oklch(0.9 0.07 var(--h));
  --on-primary-container: oklch(0.3 0.09 var(--h));
  --secondary-container: oklch(0.91 0.035 var(--h));
  --on-secondary-container: oklch(0.3 0.04 var(--h));
  --tertiary-container: oklch(0.9 0.07 calc(var(--h) + 70));
  --on-tertiary-container: oklch(0.32 0.09 calc(var(--h) + 70));
  --surface: oklch(0.985 0.007 var(--h));
  --surface-container-low: oklch(0.965 0.012 var(--h));
  --surface-container: oklch(0.948 0.016 var(--h));
  --surface-container-high: oklch(0.928 0.019 var(--h));
  --surface-container-highest: oklch(0.905 0.022 var(--h));
  --on-surface: oklch(0.22 0.02 var(--h));
  --on-surface-variant: oklch(0.43 0.03 var(--h));
  --outline: oklch(0.6 0.03 var(--h));
  --outline-variant: oklch(0.85 0.02 var(--h));
  --error: oklch(0.52 0.19 25);
  --error-container: oklch(0.93 0.05 25);
  --on-error-container: oklch(0.35 0.12 25);
  --scrim: oklch(0.2 0.02 var(--h) / 0.08);
  --glow-a: oklch(0.82 0.13 var(--h) / 0.55);
  --glow-b: oklch(0.85 0.12 calc(var(--h) + 50) / 0.45);
  --glow-c: oklch(0.86 0.1 calc(var(--h) - 60) / 0.4);
  --panel-glass: oklch(0.975 0.012 var(--h) / 0.82);

  /* Springs. Fallbacks first; real spring curves where the browser supports linear(). */
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --soft: cubic-bezier(0.3, 1.25, 0.6, 1);
  --snappy: cubic-bezier(0.34, 1.4, 0.64, 1);
  --emphasized: cubic-bezier(0.2, 0, 0, 1);
  --t-bounce: 800ms;
  --t-soft: 600ms;
  --t-snappy: 450ms;

  --r-xs: 8px;
  --r-s: 12px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --r-xxl: 44px;

  color-scheme: light;
  transition: --h 900ms var(--emphasized);
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* Damped springs (ζ 0.42 / 0.68 / 0.55), sampled. They overshoot, settle and land on 1. */
    --bounce: linear(0, 0.0361, 0.1315, 0.2672, 0.4253, 0.5902, 0.7489, 0.8918, 1.0123, 1.1067, 1.1739, 1.2149, 1.2324, 1.2301, 1.2124, 1.1836, 1.1481, 1.1097, 1.0718, 1.0369, 1.0067, 0.9824, 0.9644, 0.9526, 0.9466, 0.9456, 0.9485, 0.9544, 0.9623, 0.9711, 0.9801, 0.9885, 0.996, 1.0022, 1.007, 1.0102, 1.0121, 1.0128, 1.0124, 1.0112, 1);
    --soft: linear(0, 0.0344, 0.1205, 0.2363, 0.3649, 0.4939, 0.6148, 0.7224, 0.8139, 0.8885, 0.9467, 0.9899, 1.0201, 1.0394, 1.05, 1.0541, 1.0533, 1.0494, 1.0435, 1.0366, 1.0296, 1.0228, 1.0167, 1.0115, 1.0072, 1.0038, 1.0012, 0.9993, 0.9981, 1);
    --snappy: linear(0, 0.0546, 0.1885, 0.3624, 0.5456, 0.7164, 0.8612, 0.9736, 1.0525, 1.1005, 1.1228, 1.1253, 1.1142, 1.0949, 1.0722, 1.0493, 1.0288, 1.0119, 0.9993, 0.9908, 0.9859, 0.9841, 0.9845, 0.9864, 0.989, 0.9919, 0.9948, 0.9972, 1);
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: oklch(0.83 0.11 var(--h));
    --on-primary: oklch(0.27 0.08 var(--h));
    --primary-container: oklch(0.37 0.09 var(--h));
    --on-primary-container: oklch(0.93 0.05 var(--h));
    --secondary-container: oklch(0.33 0.035 var(--h));
    --on-secondary-container: oklch(0.91 0.03 var(--h));
    --tertiary-container: oklch(0.37 0.08 calc(var(--h) + 70));
    --on-tertiary-container: oklch(0.92 0.05 calc(var(--h) + 70));
    --surface: oklch(0.165 0.012 var(--h));
    --surface-container-low: oklch(0.195 0.014 var(--h));
    --surface-container: oklch(0.215 0.016 var(--h));
    --surface-container-high: oklch(0.25 0.018 var(--h));
    --surface-container-highest: oklch(0.29 0.02 var(--h));
    --on-surface: oklch(0.93 0.015 var(--h));
    --on-surface-variant: oklch(0.79 0.025 var(--h));
    --outline: oklch(0.6 0.025 var(--h));
    --outline-variant: oklch(0.36 0.02 var(--h));
    --error: oklch(0.8 0.12 25);
    --error-container: oklch(0.36 0.1 25);
    --on-error-container: oklch(0.93 0.04 25);
    --scrim: oklch(0 0 0 / 0.25);
    --glow-a: oklch(0.5 0.15 var(--h) / 0.38);
    --glow-b: oklch(0.48 0.14 calc(var(--h) + 50) / 0.3);
    --glow-c: oklch(0.45 0.12 calc(var(--h) - 60) / 0.26);
    --panel-glass: oklch(0.2 0.014 var(--h) / 0.78);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: 'ROND' 40;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { position: relative; z-index: 1; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 450, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: var(--r-m);
  background: var(--primary); color: var(--on-primary); text-decoration: none;
  transition: top 200ms var(--emphasized);
}
.skip:focus { top: 12px; }

.muted { color: var(--on-surface-variant); }

/* ---------------------------------------------------------------- backdrop */

.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  width: 62vmax; height: 62vmax;
  will-change: transform;
}
.b1 { left: -18vmax; top: -24vmax; background: radial-gradient(closest-side, var(--glow-a), transparent); animation: drift-a 26s ease-in-out infinite alternate; }
.b2 { right: -22vmax; top: 10vh; background: radial-gradient(closest-side, var(--glow-b), transparent); animation: drift-b 32s ease-in-out infinite alternate; }
.b3 { left: 20vw; bottom: -36vmax; background: radial-gradient(closest-side, var(--glow-c), transparent); animation: drift-c 29s ease-in-out infinite alternate; }
.grain {
  position: absolute; inset: -50%;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift-a { to { transform: translate(14vw, 12vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-16vw, 18vh) scale(.9); } }
@keyframes drift-c { to { transform: translate(-10vw, -14vh) scale(1.18); } }

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-left)) 8px max(16px, env(safe-area-inset-right));
  animation: drop-in var(--t-bounce) var(--bounce) both;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none; border-radius: var(--r-m);
}
.brand-mark { width: 36px; height: 36px; transition: transform var(--t-bounce) var(--bounce); }
.brand-mark path { fill: var(--primary); }
.brand:hover .brand-mark { transform: rotate(60deg) scale(1.1); }
.brand:active .brand-mark { transform: rotate(90deg) scale(.86); }
.brand-name {
  font-size: 22px; font-weight: 750; letter-spacing: -0.02em;
  font-variation-settings: 'ROND' 100, 'opsz' 32;
}
.topnav { margin-left: auto; display: none; gap: 4px; }
@media (min-width: 720px) { .topnav { display: flex; } }
.navlink {
  position: relative; padding: 8px 14px; border-radius: 999px;
  color: var(--on-surface-variant); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: color 200ms, background 250ms;
}
.navlink:hover { color: var(--on-surface); background: color-mix(in oklch, var(--on-surface) 7%, transparent); }
.topbar-chip {
  position: relative; overflow: hidden; margin-left: auto;
  padding: 7px 16px; border-radius: 999px;
  background: var(--secondary-container); color: var(--on-secondary-container);
  font-size: 14px; font-weight: 650; text-decoration: none;
  transition: border-radius var(--t-snappy) var(--snappy), transform var(--t-snappy) var(--snappy);
}
@media (min-width: 720px) { .topbar-chip { margin-left: 8px; } }
.topbar-chip:hover { border-radius: 12px; }
.topbar-chip:active { transform: scale(.94); }

/* ---------------------------------------------------------------- layout */

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 8px max(16px, env(safe-area-inset-left)) 32px max(16px, env(safe-area-inset-right));
}

@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-top: 28px; align-items: start; min-height: calc(100dvh - 80px); }
  .intro { position: sticky; top: 28px; padding-top: 8px; }
}

/* ---------------------------------------------------------------- intro */

.intro { position: relative; padding: 8px 4px 0; }
.intro-art {
  --art: 150px;
  --ring: 128px;
  position: relative; width: calc(var(--ring) * 2 + 56px); height: calc(var(--ring) * 2 + 56px);
  margin: 0 0 6px -28px;
  display: grid; place-items: center;
  animation: pop-in var(--t-bounce) var(--bounce) 120ms both;
}
.hero-svg { position: absolute; width: var(--art); height: var(--art); animation: spin 40s linear infinite; }
.hero-svg path { fill: var(--primary-container); }
.intro-glyph {
  position: relative; font-size: 64px; font-weight: 800; color: var(--on-primary-container);
  font-variation-settings: 'ROND' 100, 'opsz' 72; line-height: 1;
}
.intro-logo {
  position: relative; width: calc(var(--art) * .62); height: calc(var(--art) * .62); object-fit: cover; border-radius: 28%;
  box-shadow: 0 6px 20px oklch(0 0 0 / 0.22);
}
.intro-glyph.pop, .intro-logo.pop { animation: boing var(--t-bounce) var(--bounce); }

/* The apps orbiting the shape. Each icon counter-rotates so it stays upright. */
.orbit { position: absolute; inset: 0; animation: spin 48s linear infinite; }
.orbit::before {
  content: ''; position: absolute; inset: 28px; border-radius: 50%;
  border: 1.5px dashed color-mix(in oklch, var(--primary) 28%, transparent);
}
.orbit-item {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  padding: 0; border: 0; background: none; border-radius: 14px;
  transform: rotate(var(--a)) translateX(var(--ring)) rotate(calc(-1 * var(--a)));
}
.orbit-item .spin-back { display: block; width: 100%; height: 100%; animation: spin 48s linear infinite reverse; }
.orbit-item img {
  display: block; width: 100%; height: 100%; border-radius: 14px; object-fit: cover;
  box-shadow: 0 3px 10px oklch(0 0 0 / 0.2);
  transition: transform var(--t-bounce) var(--bounce), border-radius var(--t-bounce) var(--bounce), box-shadow 300ms;
}
.orbit-item:hover img { transform: scale(1.22); border-radius: 50%; }
.orbit-item.on img { transform: scale(1.32); border-radius: 50%; box-shadow: 0 0 0 3px var(--primary), 0 6px 16px oklch(0 0 0 / 0.25); }
.orbit:hover, .orbit:has(:focus-visible) { animation-play-state: paused; }
.orbit:hover .spin-back, .orbit:has(:focus-visible) .spin-back { animation-play-state: paused; }

@media (min-width: 980px) { .intro-art { --art: 170px; --ring: 150px; } }
@media (max-width: 979px) {
  .intro { text-align: center; padding-top: 0; }
  .intro-art { --art: 96px; --ring: 86px; margin: -8px auto -4px; }
  .intro-glyph { font-size: 44px; }
  .orbit-item { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .orbit-item img { border-radius: 11px; }
  .intro .lede { margin-left: auto; margin-right: auto; }
  .intro .notes { display: none; }
}

.kicker {
  margin: 0 0 8px; color: var(--primary);
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.kicker.swap { animation: kicker-swap 520ms var(--soft); }
h1 {
  margin: 0; font-size: clamp(32px, 6.2vw, 58px); line-height: 1.04; font-weight: 720;
  letter-spacing: -0.035em; font-variation-settings: 'ROND' 100, 'opsz' 96;
  text-wrap: balance;
}
/* Kinetic headline: each word rises on a spring, one after another. */
.kinetic .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.2em; vertical-align: top; padding-bottom: .06em; }
.kinetic .wi { display: inline-block; animation: word-rise var(--t-bounce) var(--bounce) both; animation-delay: calc(240ms + var(--i) * 55ms); }
.kinetic .w:hover .wi { animation: wiggle 600ms var(--bounce); }
.lede {
  margin: 16px 0 0; max-width: 34em; color: var(--on-surface-variant); font-size: 17px; text-wrap: pretty;
  animation: fade-up var(--t-soft) var(--soft) 700ms both;
}
.notes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.notes li {
  display: flex; gap: 12px; align-items: center; color: var(--on-surface-variant); font-size: 15px;
  animation: fade-up var(--t-soft) var(--soft) both;
}
.notes li:nth-child(1) { animation-delay: 820ms; }
.notes li:nth-child(2) { animation-delay: 900ms; }
.notes .ms {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px;
  border-radius: 14px; background: var(--surface-container-high); color: var(--primary);
  transition: border-radius var(--t-bounce) var(--bounce), transform var(--t-bounce) var(--bounce);
}
.notes li:hover .ms { border-radius: 50%; transform: rotate(-12deg) scale(1.1); }

/* ---------------------------------------------------------------- panel */

.panel {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate;
  background: var(--panel-glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid color-mix(in oklch, var(--outline-variant) 60%, transparent);
  border-radius: var(--r-xxl);
  padding: 20px;
  min-width: 0;
  box-shadow: 0 1px 2px var(--scrim), 0 18px 50px -20px oklch(0.3 0.08 var(--h) / 0.25);
  animation: rise-in var(--t-bounce) var(--bounce) 200ms both;
}
/* A soft light that follows the pointer across the panel. */
.panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in oklch, var(--primary) 9%, transparent), transparent 60%);
  opacity: 0; transition: opacity 400ms;
}
.panel:hover::before { opacity: 1; }
@media (min-width: 640px) { .panel { padding: 28px 32px 32px; } }

.progress { margin-bottom: 22px; }
.steps { list-style: none; display: flex; gap: 6px; margin: 0 0 12px; padding: 0; }
.steps li { display: flex; align-items: center; gap: 8px; flex: 1; color: var(--on-surface-variant); font-size: 14px; font-weight: 600; transition: color 300ms; }
.steps .dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  background: var(--surface-container-highest);
  transition: background 300ms, color 300ms, border-radius var(--t-bounce) var(--bounce), transform var(--t-bounce) var(--bounce);
}
.steps li.on { color: var(--on-surface); }
.steps li.on .dot { background: var(--primary); color: var(--on-primary); border-radius: 9px; }
.steps li.now .dot { transform: scale(1.18) rotate(-8deg); }

.wave-track {
  position: relative; height: 12px; container-type: inline-size;
}
.wave-track::before {
  content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 4px; border-radius: 999px;
  background: var(--surface-container-highest);
}
.wave-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 33.3%; overflow: hidden;
  transition: width 900ms var(--bounce);
}
.wave { position: absolute; left: 0; top: 0; width: calc(100cqw + 40px); height: 12px; animation: wave-flow 1.1s linear infinite; }
.wave path { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.step { position: relative; }
.step-title {
  margin: 4px 0 18px; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; font-weight: 680;
  letter-spacing: -0.02em; font-variation-settings: 'ROND' 100, 'opsz' 40;
}
.step-title:focus { outline: none; }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: -6px 0 6px -10px; padding: 8px 14px 8px 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--primary); font-weight: 600; font-size: 14px;
  transition: background 200ms, transform var(--t-snappy) var(--snappy);
}
.back .ms { font-size: 20px; transition: transform var(--t-snappy) var(--snappy); }
.back:hover { background: color-mix(in oklch, var(--primary) 10%, transparent); }
.back:hover .ms { transform: translateX(-4px); }
.back:active { transform: scale(.94); }

/* Children of a .stagger container bounce in one after another whenever it is shown. */
.stagger.play > * { animation: pop-in var(--t-bounce) var(--bounce) both; animation-delay: calc(var(--i, 0) * 45ms); }

/* ---------------------------------------------------------------- tiles (shared) */

.app-tile, .kind-tile {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative; overflow: hidden; isolation: isolate;
  border: 0;
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: border-radius var(--t-bounce) var(--bounce), background 250ms, transform var(--t-soft) var(--soft), box-shadow 300ms;
}
.app-tile:hover, .kind-tile:hover { --lift: -3px; box-shadow: 0 10px 24px -12px oklch(0.3 0.08 var(--h) / 0.35); }
.app-tile.tilting, .kind-tile.tilting { transition: border-radius var(--t-bounce) var(--bounce), background 250ms, transform 120ms linear, box-shadow 300ms; }

/* ---------------------------------------------------------------- app tiles */

.app-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}
@media (max-width: 380px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.app-tile {
  --tile-h: var(--ah, 300);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 20px 10px 16px; min-width: 0;
  border-radius: var(--r-xl);
  background: var(--surface-container);
}
.app-tile:hover { border-radius: var(--r-l); background: var(--surface-container-high); }
.app-tile .shape { position: relative; width: 76px; height: 76px; display: grid; place-items: center; }
.app-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(0.7); opacity: 0; transition: transform var(--t-bounce) var(--bounce), opacity 300ms; }
.app-tile path { fill: oklch(0.88 0.08 var(--tile-h)); }
.app-tile .logo {
  position: relative; width: 60px; height: 60px; border-radius: 18px; object-fit: cover;
  box-shadow: 0 2px 6px oklch(0 0 0 / 0.18);
  transition: border-radius var(--t-bounce) var(--bounce), transform var(--t-bounce) var(--bounce);
  user-select: none;
}
.app-tile:hover svg { transform: rotate(40deg) scale(1.12); opacity: 1; }
.app-tile:hover .logo { border-radius: 24px; transform: scale(0.94) rotate(-4deg); }
.app-tile .name { font-weight: 650; font-size: 15px; text-align: center; overflow-wrap: anywhere; }
.app-tile[aria-pressed="true"] { background: oklch(0.88 0.08 var(--tile-h)); border-radius: var(--r-l); }
.app-tile[aria-pressed="true"] svg { opacity: 1; transform: rotate(20deg) scale(1.16); }
.app-tile[aria-pressed="true"] path { fill: oklch(0.5 0.15 var(--tile-h)); }
.app-tile[aria-pressed="true"] .logo { border-radius: 30px; transform: scale(0.9); }
.app-tile[aria-pressed="true"] .name { color: oklch(0.3 0.1 var(--tile-h)); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-tile path { fill: oklch(0.36 0.09 var(--tile-h)); }
  :root:not([data-theme="light"]) .app-tile[aria-pressed="true"] { background: oklch(0.36 0.09 var(--tile-h)); }
  :root:not([data-theme="light"]) .app-tile[aria-pressed="true"] path { fill: oklch(0.83 0.11 var(--tile-h)); }
  :root:not([data-theme="light"]) .app-tile[aria-pressed="true"] .name { color: oklch(0.93 0.05 var(--tile-h)); }
}

.load-error { display: flex; gap: 10px; align-items: center; color: var(--error); margin: 16px 0 0; }
.link { border: 0; background: none; padding: 0; color: var(--primary); text-decoration: underline; font-weight: 600; }

/* ---------------------------------------------------------------- kind tiles */

.kind-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .kind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.kind-tile {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 18px; border-radius: var(--r-xl);
  background: var(--surface-container);
}
@media (min-width: 640px) { .kind-tile { flex-direction: column; align-items: flex-start; padding: 22px 20px; min-height: 210px; } }
.kind-tile:hover { border-radius: var(--r-l); background: var(--surface-container-high); }
.kind-tile .shape { position: relative; flex: none; width: 60px; height: 60px; display: grid; place-items: center; }
.kind-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform var(--t-bounce) var(--bounce); }
.kind-tile:hover svg { transform: rotate(-35deg) scale(1.12); }
.kind-tile path { fill: var(--primary-container); }
.kind-tile[data-kind="feature"] path { fill: var(--tertiary-container); }
.kind-tile[data-kind="other"] path { fill: var(--secondary-container); }
.kind-tile .shape .ms { position: relative; font-size: 28px; color: var(--on-primary-container); font-variation-settings: 'FILL' 1, 'wght' 500; transition: transform var(--t-bounce) var(--bounce); }
.kind-tile:hover .shape .ms { transform: scale(1.15) rotate(8deg); }
.kind-tile[data-kind="feature"] .shape .ms { color: var(--on-tertiary-container); }
.kind-tile[data-kind="other"] .shape .ms { color: var(--on-secondary-container); }
.kind-tile .t { display: block; font-size: 18px; font-weight: 680; font-variation-settings: 'ROND' 100; }
.kind-tile .d { display: block; margin-top: 4px; color: var(--on-surface-variant); font-size: 14px; line-height: 1.4; }
.kind-tile[aria-pressed="true"] { background: var(--primary-container); border-radius: var(--r-l); }
.kind-tile[aria-pressed="true"] path { fill: var(--primary); }
.kind-tile[aria-pressed="true"] .shape .ms { color: var(--on-primary); }
.kind-tile[aria-pressed="true"] .d { color: var(--on-primary-container); }

/* ---------------------------------------------------------------- rating */

.rate {
  margin-top: 16px; padding: 18px; border-radius: var(--r-xl);
  background: var(--tertiary-container); color: var(--on-tertiary-container);
  display: grid; gap: 14px;
  animation: pop-in var(--t-bounce) var(--bounce) 260ms both;
}
.rate:focus { outline: none; }
.rate.flash { animation: pop-in var(--t-bounce) var(--bounce) both, flash 1.4s var(--emphasized) 300ms 2; }
@media (min-width: 640px) { .rate { padding: 20px 22px; } .rate-actions { padding-left: 58px; } }
.rate-head { display: flex; gap: 14px; align-items: center; }
.rate-star {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in oklch, var(--on-tertiary-container) 14%, transparent);
  font-variation-settings: 'FILL' 1, 'wght' 500; font-size: 24px;
  animation: twinkle 3.2s var(--bounce) infinite;
}
.rate-title { margin: 0; font-size: 18px; font-weight: 700; font-variation-settings: 'ROND' 100; }
.rate-text { margin: 2px 0 0; font-size: 14px; opacity: .85; }
.rate-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rate-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px;
  border-radius: 22px; text-decoration: none; font-weight: 650; font-size: 15px;
  color: var(--on-tertiary-container);
  background: color-mix(in oklch, var(--on-tertiary-container) 10%, transparent);
  transition: border-radius var(--t-bounce) var(--bounce), transform var(--t-snappy) var(--snappy), background 200ms;
}
.rate-btn .ms { font-size: 20px; transition: transform var(--t-bounce) var(--bounce); }
.rate-btn:hover .ms { transform: rotate(-15deg) scale(1.2); }
.rate-btn.primary { background: var(--on-tertiary-container); color: var(--tertiary-container); }
.rate-btn:hover { border-radius: 14px; }
.rate-btn:active { transform: scale(0.94); }
.rate-count {
  margin-left: 2px; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-variant-numeric: tabular-nums;
  background: color-mix(in oklch, currentColor 16%, transparent);
}
.rate-done { margin: 24px auto 0; max-width: 560px; text-align: left; }

/* ---------------------------------------------------------------- form */

.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.chip {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px;
  border: 1px solid var(--outline-variant); border-radius: 12px; background: transparent;
  font-size: 14px; font-weight: 600;
  transition: background 200ms, border-radius var(--t-bounce) var(--bounce), transform var(--t-snappy) var(--snappy);
}
.chip:hover { background: var(--surface-container-high); border-radius: 18px; }
.chip:active { transform: scale(.94); }
.chip .swatch { width: 24px; height: 24px; border-radius: 8px; object-fit: cover; }
.chip .ms { font-size: 18px; margin-left: 2px; }

.form-stagger > * { animation: fade-up var(--t-soft) var(--soft) both; animation-delay: calc(var(--i, 0) * 40ms); }

.field { position: relative; margin-bottom: 16px; min-width: 0; }
.field input, .field textarea {
  display: block; width: 100%;
  padding: 26px 16px 10px; border: 1px solid var(--outline); border-radius: var(--r-m);
  background: color-mix(in oklch, var(--surface) 70%, transparent); font-size: 16px; line-height: 1.45;
  transition: border-color 160ms, box-shadow 160ms, border-radius var(--t-bounce) var(--bounce), background 200ms;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 148px; }
.field input:hover, .field textarea:hover { border-color: var(--on-surface); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); border-radius: var(--r-l);
  background: var(--surface);
}
.field label {
  position: absolute; left: 17px; top: 17px; pointer-events: none;
  color: var(--on-surface-variant); font-size: 16px; line-height: 1.2;
  transform-origin: left top; transition: transform var(--t-snappy) var(--snappy), color 160ms;
  max-width: calc(100% - 34px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-9px) scale(0.75);
}
.field input:focus + label, .field textarea:focus + label { color: var(--primary); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field.invalid label { color: var(--error); }
.field.shake { animation: shake 420ms var(--emphasized); }
.support { display: flex; justify-content: space-between; gap: 12px; margin: 6px 16px 0; font-size: 13px; color: var(--on-surface-variant); }
.support:empty { display: none; }
.field.invalid .support { color: var(--error); }
.count { margin-left: auto; flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }

.row-2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- files */

.files { border: 0; margin: 4px 0 20px; padding: 0; min-width: 0; }
.files legend { padding: 0; margin-bottom: 10px; font-weight: 650; font-size: 15px; }
.drop {
  display: grid; justify-items: center; gap: 4px; text-align: center;
  padding: 22px 16px; border: 2px dashed var(--outline-variant); border-radius: var(--r-l);
  background: color-mix(in oklch, var(--surface-container) 80%, transparent); cursor: pointer;
  transition: border-color 200ms, background 200ms, border-radius var(--t-bounce) var(--bounce), transform var(--t-bounce) var(--bounce);
}
.drop:hover, .drop.over { border-color: var(--primary); background: var(--surface-container-high); border-radius: var(--r-xl); }
.drop.over { background: color-mix(in oklch, var(--primary) 12%, var(--surface-container)); transform: scale(1.02); }
.drop:focus-within, .drop:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.drop-icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 6px;
  border-radius: 16px; background: var(--primary-container); color: var(--on-primary-container);
  transition: transform var(--t-bounce) var(--bounce), border-radius var(--t-bounce) var(--bounce);
}
.drop:hover .drop-icon, .drop.over .drop-icon { transform: translateY(-5px) rotate(-10deg) scale(1.08); border-radius: 50%; }
.drop.over .drop-icon { animation: hop 700ms var(--bounce) infinite; }
.drop-text strong { color: var(--primary); }
.drop-hint { font-size: 13px; color: var(--on-surface-variant); }

.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: var(--r-m); background: var(--surface-container);
  overflow: hidden; animation: pop-in var(--t-bounce) var(--bounce) both;
}
.file.leaving { animation: pop-out 260ms var(--emphasized) both; }
.file .thumb {
  flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; background: var(--secondary-container); color: var(--on-secondary-container);
}
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .meta { flex: 1; min-width: 0; }
.file .fname { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .fsize { display: block; font-size: 13px; color: var(--on-surface-variant); }
.file.bad .fsize { color: var(--error); }
.file .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primary); transition: width 200ms linear; }
.icon-btn {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent;
  display: grid; place-items: center; color: var(--on-surface-variant);
  transition: background 200ms, border-radius var(--t-bounce) var(--bounce), transform var(--t-snappy) var(--snappy);
}
.icon-btn:hover { background: var(--surface-container-highest); border-radius: 14px; }
.icon-btn:active { transform: scale(.88) rotate(-8deg); }
.icon-btn .ms { font-size: 20px; }

/* ---------------------------------------------------------------- submit */

.form-error {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-m);
  background: var(--error-container); color: var(--on-error-container); font-size: 15px;
  animation: pop-in var(--t-bounce) var(--bounce) both;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.submit {
  --tx: 0px; --ty: 0px;
  position: relative; overflow: hidden; height: 56px; min-width: 190px; padding: 0 28px;
  border: 0; border-radius: 28px; background: var(--primary); color: var(--on-primary);
  font-size: 17px; font-weight: 650;
  transform: translate(var(--tx), var(--ty));
  transition: border-radius var(--t-bounce) var(--bounce), transform var(--t-soft) var(--soft), box-shadow 250ms, background 300ms,
    min-width var(--t-bounce) var(--bounce), padding var(--t-bounce) var(--bounce);
}
.submit:hover { border-radius: 18px; box-shadow: 0 8px 22px -8px oklch(0.4 0.14 var(--h) / 0.6); }
.submit:active { border-radius: 14px; transform: translate(var(--tx), var(--ty)) scale(0.95); }
.submit-label { display: inline-flex; align-items: center; gap: 10px; transition: opacity 200ms, transform var(--t-snappy) var(--snappy); }
.submit-label .ms { font-size: 20px; transition: transform var(--t-bounce) var(--bounce); }
.submit:hover .submit-label .ms { transform: translate(3px, -3px) rotate(-20deg); }
.submit-busy { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 200ms; }
.submit-busy svg { width: 32px; height: 32px; animation: spin 1.1s linear infinite; }
.submit-busy path { fill: var(--on-primary); }
.submit.busy { min-width: 56px; padding: 0; width: 56px; border-radius: 50%; cursor: progress; }
.submit.busy .submit-label { opacity: 0; transform: scale(.6); }
.submit.busy .submit-busy { opacity: 1; }
.submit:disabled:not(.busy) { opacity: .5; cursor: not-allowed; }
.upload-status { margin: 0; font-size: 14px; color: var(--on-surface-variant); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- done */

.done { text-align: center; padding: 16px 0 8px; }
.done-art { position: relative; width: 128px; height: 128px; margin: 8px auto 20px; display: grid; place-items: center; animation: boing 900ms var(--bounce) both; }
.done-art svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.done-art path { fill: var(--primary); }
.done-art .ms { position: relative; font-size: 56px; color: var(--on-primary); font-variation-settings: 'wght' 650; animation: check-pop 700ms var(--bounce) 250ms both; }
.done-text { margin: -6px auto 20px; max-width: 30em; color: var(--on-surface-variant); animation: fade-up var(--t-soft) var(--soft) 300ms both; }
.reference {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px;
  border-radius: 999px; background: var(--surface-container-high);
  animation: pop-in var(--t-bounce) var(--bounce) 400ms both;
}
.reference code { font-family: ui-monospace, 'Cascadia Code', Menlo, monospace; font-size: 16px; font-weight: 600; letter-spacing: 0.06em; }
.warning { margin: 16px auto 0; max-width: 30em; color: var(--error); font-size: 15px; }
.done-actions { margin-top: 26px; animation: fade-up var(--t-soft) var(--soft) 500ms both; }
.tonal {
  position: relative; overflow: hidden;
  height: 48px; padding: 0 24px; border: 0; border-radius: 24px;
  background: var(--secondary-container); color: var(--on-secondary-container); font-weight: 650;
  transition: border-radius var(--t-bounce) var(--bounce), transform var(--t-snappy) var(--snappy);
}
.tonal:hover { border-radius: 16px; }
.tonal:active { transform: scale(0.94); }

/* ---------------------------------------------------------------- marquee */

.marquee-band {
  display: grid; gap: 12px; padding: 18px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 46s; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.mq-chip {
  --tile-h: var(--ah, 300);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px;
  border: 0; border-radius: 999px; white-space: nowrap;
  background: color-mix(in oklch, oklch(0.9 0.06 var(--tile-h)) 70%, transparent);
  color: oklch(0.28 0.08 var(--tile-h));
  font-size: 16px; font-weight: 650;
  transition: transform var(--t-bounce) var(--bounce), border-radius var(--t-bounce) var(--bounce), background 250ms;
}
.mq-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; transition: transform var(--t-bounce) var(--bounce), border-radius var(--t-bounce) var(--bounce); }
.mq-chip:hover { transform: scale(1.06) rotate(-2deg); border-radius: 18px; }
.mq-chip:hover img { transform: rotate(-12deg) scale(1.08); border-radius: 12px; }
.mq-chip:active { transform: scale(.94); }
.mq-chip .sub { font-weight: 500; opacity: .75; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mq-chip { background: color-mix(in oklch, oklch(0.32 0.07 var(--tile-h)) 72%, transparent); color: oklch(0.92 0.05 var(--tile-h)); }
}

/* ---------------------------------------------------------------- sections */

.how, .faq {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 56px max(16px, env(safe-area-inset-left)) 8px max(16px, env(safe-area-inset-right));
}
.section-title {
  margin: 0 0 28px; max-width: 18em; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.08; font-weight: 720;
  letter-spacing: -0.03em; font-variation-settings: 'ROND' 100, 'opsz' 72; text-wrap: balance;
}
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.how-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 24px; border-radius: var(--r-xxl);
  background: var(--panel-glass);
  border: 1px solid color-mix(in oklch, var(--outline-variant) 60%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: border-radius var(--t-bounce) var(--bounce), transform var(--t-soft) var(--soft);
}
.how-card:hover { border-radius: var(--r-l); transform: translateY(-4px) rotate(-.6deg); }
.how-card:nth-child(2):hover { transform: translateY(-4px) rotate(.6deg); }
.how-shape { position: relative; width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 18px; }
.how-shape svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform var(--t-bounce) var(--bounce); }
.how-shape path { fill: var(--primary-container); }
.how-card:nth-child(2) .how-shape path { fill: var(--tertiary-container); }
.how-card:nth-child(3) .how-shape path { fill: var(--secondary-container); }
.how-shape .ms { position: relative; font-size: 28px; color: var(--on-primary-container); font-variation-settings: 'FILL' 1, 'wght' 500; }
.how-card:hover .how-shape svg { transform: rotate(45deg) scale(1.12); }
.how-num {
  position: absolute; right: 18px; top: 8px; z-index: -1;
  font-size: 92px; font-weight: 800; line-height: 1; letter-spacing: -0.05em;
  color: color-mix(in oklch, var(--primary) 12%, transparent);
  font-variation-settings: 'ROND' 100, 'opsz' 144;
  transition: transform var(--t-bounce) var(--bounce);
}
.how-card:hover .how-num { transform: translateY(6px) scale(1.08); }
.how-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; font-variation-settings: 'ROND' 100; }
.how-card p { margin: 0; color: var(--on-surface-variant); }

.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  border-radius: var(--r-l); overflow: hidden;
  background: var(--panel-glass);
  border: 1px solid color-mix(in oklch, var(--outline-variant) 60%, transparent);
  transition: border-radius var(--t-bounce) var(--bounce), background 250ms;
}
.faq details[open] { border-radius: var(--r-xl); background: var(--surface-container); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 650; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ms {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--secondary-container); color: var(--on-secondary-container);
  transition: transform var(--t-bounce) var(--bounce), border-radius var(--t-bounce) var(--bounce), background 250ms;
}
.faq summary:hover .ms { border-radius: 12px; }
.faq details[open] summary .ms { transform: rotate(135deg); background: var(--primary); color: var(--on-primary); }
.faq .answer { padding: 0 20px 18px; color: var(--on-surface-variant); }
.faq .answer p { margin: 0; max-width: 60ch; }

/* ---------------------------------------------------------------- reveal on scroll */

.js .reveal { opacity: 0; transform: translateY(26px) scale(.98); }
.js .reveal.in { opacity: 1; transform: none; animation: rise-in var(--t-bounce) var(--bounce) both; animation-delay: var(--d, 0ms); }

/* ---------------------------------------------------------------- footer */

.footer { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 48px auto 0; padding: 0 16px 32px; }
.footer-inner {
  display: grid; justify-items: center; gap: 16px; text-align: center;
  padding: 28px 20px; border-radius: var(--r-xxl);
  background: var(--panel-glass);
  border: 1px solid color-mix(in oklch, var(--outline-variant) 60%, transparent);
  color: var(--on-surface-variant); font-size: 14px;
}
.footer-inner p { margin: 0; max-width: 40em; }
.footer-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer-apps button {
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: none; overflow: hidden;
  transition: transform var(--t-bounce) var(--bounce), border-radius var(--t-bounce) var(--bounce);
}
.footer-apps button:hover { transform: translateY(-6px) scale(1.15) rotate(-6deg); border-radius: 50%; }
.footer-apps img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------- ripple + confetti */

.ripple, .app-tile, .kind-tile, .mq-chip { --ripple: color-mix(in oklch, currentColor 22%, transparent); }
.ripple-ink {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: var(--ripple); transform: scale(0); animation: ripple 650ms var(--emphasized) forwards;
}

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti span { position: absolute; left: 0; top: 0; width: 12px; height: 12px; will-change: transform; }

/* ---------------------------------------------------------------- keyframes */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: scale(.85); height: 0; padding: 0; margin: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes word-rise { from { transform: translateY(105%) rotate(6deg); } to { transform: none; } }
@keyframes wiggle { 30% { transform: translateY(-6px) rotate(-4deg); } 60% { transform: translateY(1px) rotate(2deg); } }
@keyframes boing {
  0% { transform: scale(.4); opacity: 0; }
  40% { transform: scale(1.12, .9); opacity: 1; }
  60% { transform: scale(.94, 1.06); }
  80% { transform: scale(1.03, .98); }
  100% { transform: none; }
}
@keyframes check-pop { from { transform: scale(0) rotate(-45deg); } to { transform: none; } }
@keyframes kicker-swap { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes hop { 50% { transform: translateY(-9px) rotate(-10deg) scale(1.08); } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wave-flow { to { transform: translateX(-40px); } }
@keyframes twinkle { 0%, 80%, 100% { transform: none; } 88% { transform: rotate(-18deg) scale(1.15); } 94% { transform: rotate(10deg) scale(1.05); } }
@keyframes flash { 50% { box-shadow: 0 0 0 4px var(--primary); } }

/* Reduced motion: keep fades, colour changes and in-place shape morphs; drop anything that
   travels, spins, loops or bounces across the screen. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit, .orbit .spin-back, .blob, .wave, .hero-svg, .done-art svg, .submit-busy svg, .rate-star, .drop.over .drop-icon { animation: none !important; }
  .kinetic .wi, .stagger.play > *, .form-stagger > *, .file, .rate, .form-error, .reference, .js .reveal.in,
  .panel, .intro-art, .topbar, .done-art, .done-art .ms, .lede, .notes li, .done-text, .done-actions,
  .intro-glyph.pop, .intro-logo.pop, .kicker.swap, .field.shake {
    animation-name: fade-in !important; animation-timing-function: ease-out !important; animation-duration: 300ms !important;
  }
  .app-tile, .kind-tile, .how-card, .mq-chip, .footer-apps button, .submit { transform: none !important; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee-track { animation: none !important; }
  .wave-fill { transition-timing-function: ease-out; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
