/* ==========================================================================
   Petal — Material 3 Expressive website
   - Colour roles generated from one hue (oklch), so every palette stays tonal
   - Spring motion via CSS linear() (values from M3 Expressive spatial springs)
   - Mobile first. Nothing may be wider than the screen.
   ========================================================================== */

:root {
  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Figtree', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Motion: spatial springs (can overshoot) and effect easing (never overshoots) */
  --spring-fast: cubic-bezier(.34, 1.45, .64, 1);
  --spring-fast-ms: 350ms;
  --spring-default: cubic-bezier(.34, 1.25, .64, 1);
  --spring-default-ms: 420ms;
  --spring-slow: cubic-bezier(.34, 1.2, .64, 1);
  --spring-slow-ms: 570ms;
  --spring-bouncy: cubic-bezier(.3, 1.7, .5, 1);
  --spring-bouncy-ms: 550ms;
  --ease: cubic-bezier(.2, 0, 0, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;

  /* Palette seed. Overridden by [data-palette] below. */
  --h: 5;
  --c: .21;

  color-scheme: light;
  --primary: oklch(.54 var(--c) var(--h));
  --on-primary: oklch(.99 .01 var(--h));
  --primary-container: oklch(.925 calc(var(--c) * .3) var(--h));
  --on-primary-container: oklch(.27 calc(var(--c) * .65) var(--h));
  --secondary: oklch(.5 calc(var(--c) * .3) calc(var(--h) + 12));
  --secondary-container: oklch(.925 calc(var(--c) * .17) calc(var(--h) + 12));
  --on-secondary-container: oklch(.27 calc(var(--c) * .3) calc(var(--h) + 12));
  --tertiary: oklch(.5 calc(var(--c) * .55) calc(var(--h) + 75));
  --tertiary-container: oklch(.93 calc(var(--c) * .3) calc(var(--h) + 75));
  --on-tertiary-container: oklch(.27 calc(var(--c) * .5) calc(var(--h) + 75));

  --bg: oklch(.988 calc(var(--c) * .035) var(--h));
  --surface-lowest: oklch(1 0 0);
  --surface-low: oklch(.972 calc(var(--c) * .06) var(--h));
  --surface-container: oklch(.955 calc(var(--c) * .075) var(--h));
  --surface-high: oklch(.935 calc(var(--c) * .085) var(--h));
  --surface-highest: oklch(.915 calc(var(--c) * .095) var(--h));
  --on-surface: oklch(.22 .015 var(--h));
  --on-surface-variant: oklch(.45 .025 var(--h));
  --outline: oklch(.62 .03 var(--h));
  --outline-variant: oklch(.86 .02 var(--h));
  --inverse-surface: oklch(.28 .02 var(--h));
  --inverse-on-surface: oklch(.96 .01 var(--h));
  --scrim: oklch(.2 .02 var(--h) / .45);
}

html[data-theme-mode="dark"] {
  color-scheme: dark;
  --primary: oklch(.82 calc(var(--c) * .58) var(--h));
  --on-primary: oklch(.27 calc(var(--c) * .6) var(--h));
  --primary-container: oklch(.37 calc(var(--c) * .62) var(--h));
  --on-primary-container: oklch(.92 calc(var(--c) * .2) var(--h));
  --secondary: oklch(.8 calc(var(--c) * .22) calc(var(--h) + 12));
  --secondary-container: oklch(.35 calc(var(--c) * .22) calc(var(--h) + 12));
  --on-secondary-container: oklch(.92 calc(var(--c) * .1) calc(var(--h) + 12));
  --tertiary: oklch(.82 calc(var(--c) * .5) calc(var(--h) + 75));
  --tertiary-container: oklch(.37 calc(var(--c) * .45) calc(var(--h) + 75));
  --on-tertiary-container: oklch(.93 calc(var(--c) * .2) calc(var(--h) + 75));

  --bg: oklch(.17 calc(var(--c) * .08) var(--h));
  --surface-lowest: oklch(.13 calc(var(--c) * .06) var(--h));
  --surface-low: oklch(.205 calc(var(--c) * .09) var(--h));
  --surface-container: oklch(.235 calc(var(--c) * .1) var(--h));
  --surface-high: oklch(.27 calc(var(--c) * .11) var(--h));
  --surface-highest: oklch(.31 calc(var(--c) * .12) var(--h));
  --on-surface: oklch(.92 .01 var(--h));
  --on-surface-variant: oklch(.76 .025 var(--h));
  --outline: oklch(.58 .03 var(--h));
  --outline-variant: oklch(.36 .03 var(--h));
  --inverse-surface: oklch(.92 .01 var(--h));
  --inverse-on-surface: oklch(.25 .02 var(--h));
  --scrim: oklch(0 0 0 / .6);
}

html[data-theme-mode="dark"][data-amoled="true"] {
  --bg: #000;
  --surface-lowest: #000;
  --surface-low: oklch(.15 calc(var(--c) * .05) var(--h));
  --surface-container: oklch(.185 calc(var(--c) * .06) var(--h));
  --surface-high: oklch(.22 calc(var(--c) * .07) var(--h));
  --surface-highest: oklch(.26 calc(var(--c) * .08) var(--h));
  --outline-variant: oklch(.3 .02 var(--h));
}

[data-palette="petal"]   { --h: 5;   --c: .21; }
[data-palette="tide"]    { --h: 178; --c: .12; }
[data-palette="zen"]     { --h: 255; --c: .12; }
[data-palette="ember"]   { --h: 42;  --c: .15; }
[data-palette="forest"]  { --h: 148; --c: .13; }
[data-palette="default"] { --h: 275; --c: .13; }

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-fast: linear(0, 0.0195, 0.0716, 0.1471, 0.2381, 0.3378, 0.4404, 0.5416, 0.6378, 0.7265, 0.806, 0.8754, 0.9342, 0.9826, 1.0211, 1.0503, 1.0713, 1.0849, 1.0924, 1.0948, 1.0931, 1.0882, 1.0812, 1.0726, 1.0632, 1.0534, 1.0438, 1.0347, 1.0263, 1.0187, 1.0121, 1.0064, 1.0018, 0.9981, 0.9953, 0.9933, 0.992, 0.9913, 0.991, 0.9912, 0.9916, 0.9923, 0.9931, 0.994, 0.9949, 0.9958, 0.9967, 0.9975, 1);
    --spring-default: linear(0, 0.0133, 0.0484, 0.0994, 0.161, 0.2293, 0.3008, 0.373, 0.4439, 0.5119, 0.5761, 0.6358, 0.6904, 0.7399, 0.7841, 0.8233, 0.8576, 0.8873, 0.9128, 0.9344, 0.9526, 0.9675, 0.9798, 0.9896, 0.9974, 1.0033, 1.0078, 1.011, 1.0131, 1.0144, 1.0151, 1.0151, 1.0148, 1.0142, 1.0134, 1.0124, 1.0114, 1.0103, 1.0092, 1.0081, 1.0071, 1.0061, 1.0053, 1.0045, 1.0037, 1.0031, 1.0025, 1.002, 1);
    --spring-slow: linear(0, 0.0129, 0.0471, 0.0968, 0.157, 0.2239, 0.2941, 0.3652, 0.4352, 0.5027, 0.5665, 0.626, 0.6807, 0.7304, 0.775, 0.8147, 0.8496, 0.88, 0.9062, 0.9285, 0.9473, 0.963, 0.9759, 0.9864, 0.9947, 1.0012, 1.0062, 1.0098, 1.0123, 1.0139, 1.0148, 1.0152, 1.015, 1.0146, 1.0138, 1.013, 1.012, 1.0109, 1.0098, 1.0088, 1.0077, 1.0067, 1.0058, 1.005, 1.0042, 1.0035, 1.0029, 1.0024, 1);
    --spring-bouncy: linear(0, 0.03, 0.1091, 0.2217, 0.3536, 0.4929, 0.63, 0.7574, 0.8699, 0.9646, 1.0398, 1.0958, 1.1336, 1.1551, 1.1629, 1.1595, 1.1477, 1.1301, 1.1089, 1.0863, 1.0638, 1.0427, 1.0239, 1.008, 0.9952, 0.9856, 0.979, 0.9751, 0.9735, 0.9738, 0.9755, 0.9783, 0.9817, 0.9853, 0.989, 0.9925, 0.9956, 0.9983, 1.0005, 1.0021, 1.0033, 1.004, 1.0043, 1.0043, 1.004, 1.0036, 1.0031, 1.0025, 1);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background: var(--bg);
}

body {
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--bg);
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

img, svg, canvas, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
code { font-family: var(--font-code); }
[hidden] { display: none !important; }

.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 18px; height: 18px; }

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

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  padding: 12px 20px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-weight: 700;
  transition: top var(--spring-fast-ms) var(--spring-fast);
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.display, .h2, .h3 { font-family: var(--font-display); font-optical-sizing: auto; text-wrap: balance; }
.display { font-weight: 800; font-size: clamp(2.5rem, 7.2vw + .4rem, 5.25rem); line-height: .96; letter-spacing: -.035em; font-variation-settings: 'wdth' 88; }
.h2 { font-weight: 750; font-size: clamp(2rem, 5.6vw + .3rem, 3.5rem); line-height: 1.02; letter-spacing: -.03em; font-variation-settings: 'wdth' 92; }
.h3 { font-weight: 700; font-size: clamp(1.4rem, 3vw + .6rem, 1.9rem); line-height: 1.1; letter-spacing: -.02em; }
.hero .display { font-size: clamp(2.5rem, 3.4vw + 1.25rem, 4.25rem); }
.lead { font-size: clamp(1.0625rem, 1.2vw + .8rem, 1.25rem); line-height: 1.55; color: var(--on-surface-variant); max-width: 36rem; text-wrap: pretty; }
.muted { color: var(--on-surface-variant); }

/* ---------- Buttons (M3E: pill that morphs to a rounded square when pressed) ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 700; font-size: .9375rem; line-height: 1; letter-spacing: .005em; white-space: nowrap;
  transition: border-radius var(--spring-fast-ms) var(--spring-fast), transform var(--spring-fast-ms) var(--spring-fast), background-color .2s var(--ease), box-shadow .2s var(--ease);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity .15s var(--ease); }
@media (hover: hover) { .btn:hover::before { opacity: .08; } }
.btn:active { border-radius: 16px; transform: scale(.97); }
.btn:active::before { opacity: .12; }
.btn--lg { min-height: 60px; padding: 0 22px; font-size: 1.0625rem; gap: 12px; white-space: normal; text-align: center; line-height: 1.2; }
@media (min-width: 560px) { .btn--lg { padding: 0 32px; } }
.btn--filled { background: var(--primary); color: var(--on-primary); }
.btn--tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn--outline { box-shadow: inset 0 0 0 1.5px var(--outline); color: var(--primary); }
.btn--inverse { background: var(--on-primary); color: var(--primary); }
.btn--block { width: 100%; }

.icon-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; color: var(--on-surface-variant);
  transition: border-radius var(--spring-fast-ms) var(--spring-fast), transform var(--spring-fast-ms) var(--spring-fast), background-color .2s var(--ease);
  touch-action: manipulation;
}
.icon-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity .15s var(--ease); }
@media (hover: hover) { .icon-btn:hover::before { opacity: .08; } }
.icon-btn:active { border-radius: 14px; transform: scale(.92); }
.icon-btn--tonal { background: var(--surface-high); color: var(--on-surface); }

.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .16; pointer-events: none; transform: scale(0); animation: ripple .6s var(--ease) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- App bar ---------- */
.appbar {
  position: sticky; top: max(10px, env(safe-area-inset-top)); z-index: 50;
  width: min(100% - 24px, 1176px); margin: max(10px, env(safe-area-inset-top)) auto 0;
}
.appbar-inner {
  display: flex; align-items: center; gap: 6px;
  height: 64px; padding: 0 10px 0 14px;
  border-radius: 32px;
  background: color-mix(in oklab, var(--surface-container) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--outline-variant) 70%, transparent);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.appbar.scrolled .appbar-inner {
  background: color-mix(in oklab, var(--surface-high) 92%, transparent);
  box-shadow: inset 0 0 0 1px var(--outline-variant), 0 10px 30px -12px color-mix(in oklab, var(--on-surface) 35%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; flex: none; padding: 4px; border-radius: 12px; background: linear-gradient(135deg, #FFF0EA, #FEE2D5); box-shadow: inset 0 0 0 1px rgba(160, 65, 6, 0.15), 0 2px 8px -2px rgba(160, 65, 6, 0.2); transition: border-radius var(--spring-slow-ms) var(--spring-slow), transform var(--spring-slow-ms) var(--spring-slow); }
.brand:hover .brand-mark { border-radius: 50%; transform: rotate(45deg); }
.brand-tag { display: none; padding: 4px 10px; border-radius: 999px; background: var(--surface-highest); color: var(--on-surface-variant); font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: 0; }

.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--on-surface-variant); transition: background-color .25s var(--ease), color .25s var(--ease), border-radius var(--spring-fast-ms) var(--spring-fast); }
@media (hover: hover) { .nav-links a:hover { background: color-mix(in oklab, var(--on-surface) 8%, transparent); } }
.nav-links a.active { background: var(--secondary-container); color: var(--on-secondary-container); }

.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-download { min-height: 44px; padding: 0 14px; }
.nav-download .btn-label { display: none; }
.nav-github { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (min-width: 440px) {
  .nav-download { padding: 0 20px; }
  .nav-download .btn-label { display: inline; }
}
@media (min-width: 560px) { .brand-tag { display: inline-block; } }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .nav-github { display: inline-grid; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60; visibility: hidden;
  transition: visibility 0s linear var(--spring-default-ms);
}
.menu.open { visibility: visible; transition-delay: 0s; }
.menu-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .3s var(--ease); }
.menu.open .menu-scrim { opacity: 1; }
.menu-panel {
  position: absolute; top: max(10px, env(safe-area-inset-top)); left: 12px; right: 12px;
  max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 10px; border-radius: 36px;
  background: var(--surface-high);
  transform-origin: top right; transform: translateY(-24px) scale(.9); opacity: 0;
  transition: transform var(--spring-default-ms) var(--spring-default), opacity .2s var(--ease);
}
.menu.open .menu-panel { transform: none; opacity: 1; }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 16px; }
.menu-head .brand { font-size: 1.25rem; }
.menu-list { display: grid; gap: 4px; padding: 4px 0 8px; }
.menu-list a {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 20px;
  border-radius: 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -.02em;
  transition: background-color .2s var(--ease), border-radius var(--spring-fast-ms) var(--spring-fast);
}
.menu-list a:active { border-radius: 36px; background: var(--primary-container); color: var(--on-primary-container); }
.menu-list a.active { background: var(--secondary-container); color: var(--on-secondary-container); }
.menu-list .i { opacity: .7; margin-left: auto; }
.menu-foot { display: grid; gap: 8px; padding: 4px 6px 6px; }
.menu.open .menu-list a { animation: rise var(--spring-default-ms) var(--spring-default) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Layout ---------- */
.section { padding-block: clamp(56px, 10vw, 120px); }
.section--tight { padding-block: clamp(8px, 2vw, 24px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 5vw, 56px); max-width: 44rem; }
.section-head p { color: var(--on-surface-variant); font-size: clamp(1rem, 1vw + .8rem, 1.1875rem); line-height: 1.6; text-wrap: pretty; }
code.inline { padding: 2px 8px; border-radius: 8px; background: var(--surface-highest); font-size: .85em; overflow-wrap: anywhere; }

.panel { padding: clamp(16px, 4vw, 56px); border-radius: clamp(32px, 5vw, 56px); background: var(--surface-low); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: clamp(20px, 3vw, 28px); justify-items: start; min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.hero-cta .btn { flex: 1 1 100%; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 4px; }
.fact { display: grid; gap: 2px; align-content: start; padding: 14px 16px 16px; min-width: 0; border-radius: 14px; }
.fact span { font-size: .8125rem; font-weight: 600; opacity: .75; }
.fact strong { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.fact:nth-child(1) { border-top-left-radius: 32px; background: var(--primary-container); color: var(--on-primary-container); }
.fact:nth-child(2) { border-top-right-radius: 32px; background: var(--secondary-container); color: var(--on-secondary-container); }
.fact:nth-child(3) { border-bottom-left-radius: 32px; background: var(--tertiary-container); color: var(--on-tertiary-container); }
.fact:nth-child(4) { border-bottom-right-radius: 32px; background: var(--surface-high); color: var(--on-surface); }

@media (min-width: 640px) { .hero-cta .btn { flex: 0 0 auto; } }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fact:nth-child(n) { border-radius: 14px; } .fact:nth-child(1) { border-top-left-radius: 32px; } .fact:nth-child(4) { border-bottom-right-radius: 32px; } .fact:nth-child(2) { border-top-right-radius: 32px; } .fact:nth-child(3) { border-bottom-left-radius: 32px; } }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Stage: the morphing shape + phone */
.stage { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 14px; padding: clamp(12px, 3vw, 28px) 0; min-width: 0; }
.stage-blob { position: absolute; top: 50%; left: 50%; z-index: -1; width: min(calc(100vw - 8px), 540px); aspect-ratio: 1; translate: -50% -52%; color: var(--primary-container); }
.stage-blob svg { width: 100%; height: 100%; overflow: visible; animation: spin 60s linear infinite; }
.stage-blob path { fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-hint { font-size: .8125rem; font-weight: 600; color: var(--on-surface-variant); text-align: center; text-wrap: balance; }

.phone {
  position: relative; width: min(272px, 74vw); aspect-ratio: 9 / 18.6; padding: 9px; border-radius: 46px;
  background: oklch(.2 .015 var(--h));
  box-shadow: 0 40px 60px -28px color-mix(in oklab, var(--primary) 55%, transparent), inset 0 0 0 1.5px oklch(.34 .02 var(--h));
}
.phone-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--bg); isolation: isolate; }
.sim-status { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 34px; padding: 11px 22px 0; display: flex; justify-content: space-between; font-size: .6875rem; font-weight: 800; color: var(--on-surface); }
.sim-omnibox { position: absolute; z-index: 4; top: 34px; left: 10px; right: 10px; transition: transform var(--spring-default-ms) var(--spring-default), opacity .2s var(--ease); }
.sim-omnibox.collapsed { transform: translateY(-88px) scale(.88); opacity: 0; pointer-events: none; }
.sim-pill { display: flex; align-items: center; gap: 8px; width: 100%; height: 46px; padding: 0 8px 0 14px; border-radius: 23px; background: var(--surface-high); color: var(--on-surface); font-size: .8125rem; font-weight: 700; text-align: left; box-shadow: inset 0 0 0 1px var(--outline-variant); transition: border-radius var(--spring-fast-ms) var(--spring-fast), transform var(--spring-fast-ms) var(--spring-fast); }
.sim-pill:active { border-radius: 16px; transform: scale(.97); }
.sim-pill .host { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-pill .lock { color: var(--primary); }
.sim-pill .i { width: 17px; height: 17px; }
.sim-webview { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 92px 12px 100px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.sim-webview::-webkit-scrollbar { display: none; }
.sim-webview h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.05; letter-spacing: -.03em; padding: 6px 4px 4px; }
.sim-card { padding: 14px 16px; border-radius: 22px; background: var(--surface-container); font-size: .75rem; line-height: 1.45; color: var(--on-surface-variant); }
.sim-card strong { display: block; margin-bottom: 2px; font-size: .875rem; color: var(--on-surface); }
.sim-card:nth-of-type(2n) { background: var(--secondary-container); }
.sim-card:nth-of-type(3n) { background: var(--primary-container); }
.sim-card:nth-of-type(2n) strong, .sim-card:nth-of-type(3n) strong { color: inherit; }
.sim-card:nth-of-type(2n) { color: var(--on-secondary-container); }
.sim-card:nth-of-type(3n) { color: var(--on-primary-container); }
.sim-fab { position: absolute; z-index: 4; right: 14px; bottom: 84px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 26px; background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -6px color-mix(in oklab, var(--primary) 70%, transparent); transform: scale(0) rotate(-90deg); transition: transform var(--spring-bouncy-ms) var(--spring-bouncy), border-radius var(--spring-bouncy-ms) var(--spring-bouncy); }
.sim-fab.show { transform: none; border-radius: 18px; }
.sim-dock { position: absolute; z-index: 4; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(4, 1fr); height: 60px; padding: 6px; border-radius: 30px; background: var(--surface-high); box-shadow: inset 0 0 0 1px var(--outline-variant); }
.dock-ind { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 24px; background: var(--primary-container); transform: translateX(calc(var(--idx, 0) * 100%)); transition: transform var(--spring-default-ms) var(--spring-default); }
.dock-btn { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 1px; border-radius: 24px; font-size: .625rem; font-weight: 800; color: var(--on-surface-variant); transition: color .2s var(--ease); }
.dock-btn[aria-current="true"] { color: var(--on-primary-container); }
.dock-btn .i { width: 20px; height: 20px; }
.dock-badge { position: absolute; top: 5px; right: 50%; translate: 20px 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: .5625rem; }
.sim-scrim { position: absolute; inset: 0; z-index: 5; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.sim-scrim.show { opacity: 1; pointer-events: auto; }
.sim-sheet { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: 10px 18px 24px; border-radius: 30px 30px 0 0; background: var(--surface-high); transform: translateY(105%); transition: transform var(--spring-default-ms) var(--spring-default); }
.sim-sheet.show { transform: none; }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; margin: 0 auto 6px; background: var(--outline); opacity: .6; }
.sim-sheet h4 { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 750; letter-spacing: -.02em; }
.sim-sheet li { display: flex; gap: 10px; align-items: flex-start; font-size: .75rem; line-height: 1.4; color: var(--on-surface-variant); }
.sim-sheet li .i { width: 16px; height: 16px; margin-top: 1px; color: var(--primary); }
.sim-sheet ul { display: grid; gap: 8px; }

/* ---------- Theme studio ---------- */
.theme-card { display: grid; gap: 24px; padding: clamp(20px, 4vw, 40px); border-radius: clamp(32px, 5vw, 48px); background: var(--surface-container); }
.theme-copy { display: grid; gap: 6px; }
.theme-copy p { color: var(--on-surface-variant); max-width: 34rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: oklch(.56 var(--c) var(--h)); color: oklch(.99 .01 var(--h));
  transition: border-radius var(--spring-bouncy-ms) var(--spring-bouncy), transform var(--spring-fast-ms) var(--spring-fast), box-shadow .25s var(--ease);
}
.swatch .i { width: 26px; height: 26px; stroke-width: 3; transform: scale(0); transition: transform var(--spring-bouncy-ms) var(--spring-bouncy); }
.swatch[aria-checked="true"] { border-radius: 38%; box-shadow: 0 0 0 3px var(--surface-container), 0 0 0 6px oklch(.56 var(--c) var(--h)); transform: scale(.94); }
.swatch[aria-checked="true"] .i { transform: scale(1); }
.swatch:active { transform: scale(.88); }
.switches { display: grid; gap: 8px; }
.switch-row { line-height: 1.3; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 8px 12px 8px 22px; border-radius: 24px; background: var(--surface-high); font-weight: 650; }
.switch-row small { display: block; font-weight: 500; font-size: .8125rem; color: var(--on-surface-variant); line-height: 1.3; }
.switch { position: relative; flex: none; width: 56px; height: 34px; border-radius: 17px; background: var(--surface-highest); box-shadow: inset 0 0 0 2px var(--outline); transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.switch-thumb { position: absolute; top: 50%; left: 5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--outline); color: var(--primary); transform: translateY(-50%); transition: left var(--spring-default-ms) var(--spring-default), width var(--spring-fast-ms) var(--spring-fast), height var(--spring-fast-ms) var(--spring-fast), background-color .25s var(--ease); }
.switch-thumb .i { width: 16px; height: 16px; stroke-width: 3.2; opacity: 0; transition: opacity .2s var(--ease); }
.switch:active .switch-thumb { width: 30px; height: 30px; }
.switch[aria-checked="true"] { background: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.switch[aria-checked="true"] .switch-thumb { left: 27px; width: 26px; height: 26px; background: var(--on-primary); }
.switch[aria-checked="true"] .switch-thumb .i { opacity: 1; }
.switch[aria-checked="true"]:active .switch-thumb { left: 22px; width: 30px; height: 30px; }

@media (max-width: 559px) {
  .swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatch { width: 100%; border-radius: 28px; }
  .swatch[aria-checked="true"] { border-radius: 18px; }
}
@media (min-width: 960px) {
  .theme-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 48px; }
  .theme-copy { grid-column: 1; }
  .swatches { grid-column: 1; }
  .switches { grid-column: 2; grid-row: 1 / span 2; min-width: 340px; }
}

/* ---------- Principles ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.card { display: grid; align-content: start; gap: 16px; padding: clamp(24px, 4vw, 36px); min-width: 0; }
.card--a { background: var(--primary-container); color: var(--on-primary-container); border-radius: 48px 48px 48px 14px; }
.card--b { background: var(--secondary-container); color: var(--on-secondary-container); border-radius: 48px 14px 48px 48px; }
.card--c { background: var(--tertiary-container); color: var(--on-tertiary-container); border-radius: 14px 48px 48px 48px; }
.shape-badge { width: 72px; height: 72px; margin-bottom: 8px; color: var(--primary); }
.card--b .shape-badge { color: var(--secondary); }
.card--c .shape-badge { color: var(--tertiary); }
.shape-badge svg { width: 100%; height: 100%; overflow: visible; }
.shape-badge path { fill: currentColor; }
.card p { opacity: .88; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 650; background: color-mix(in oklab, currentColor 12%, transparent); }
.card code { font-size: .88em; padding: 2px 8px; border-radius: 8px; background: color-mix(in oklab, currentColor 12%, transparent); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (hover: hover) {
  .card .shape-badge { transition: transform var(--spring-slow-ms) var(--spring-slow); }
  .card:hover .shape-badge { transform: rotate(30deg) scale(1.1); }
}

/* ---------- Shapes studio ---------- */
.shapes { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.shape-stage { display: grid; justify-items: center; gap: 18px; padding: clamp(20px, 4vw, 32px); border-radius: 40px; background: var(--surface-container); text-align: center; min-width: 0; }
.shape-hero { position: relative; width: min(100%, 300px); aspect-ratio: 1; color: var(--primary); touch-action: manipulation; border-radius: 50%; }
.shape-hero svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 24px color-mix(in oklab, var(--primary) 30%, transparent)); }
.shape-hero path { fill: currentColor; }
.shape-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 5vw, 2.25rem); letter-spacing: -.03em; line-height: 1; }
.shape-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; color: var(--on-surface-variant); font-weight: 600; font-size: .9375rem; }
.shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; min-width: 0; }
.shape-chip { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 10px; border-radius: 18px; background: var(--surface-high); color: var(--on-surface-variant); transition: background-color .25s var(--ease), color .25s var(--ease), border-radius var(--spring-bouncy-ms) var(--spring-bouncy), transform var(--spring-fast-ms) var(--spring-fast); }
.shape-chip svg { width: 100%; height: 100%; overflow: visible; }
.shape-chip path { fill: currentColor; }
@media (hover: hover) { .shape-chip:hover { transform: scale(1.08); } }
.shape-chip:active { transform: scale(.9); }
.shape-chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-radius: 50%; }
@media (min-width: 900px) { .shapes { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } .shape-stage { position: sticky; top: 100px; } }

/* ---------- Player ---------- */
.player { display: grid; gap: 18px; width: min(100%, 780px); margin-inline: auto; padding: clamp(14px, 3vw, 24px); border-radius: clamp(32px, 5vw, 48px); background: var(--surface-container); }
.player-screen { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 28px 28px 14px 14px; overflow: hidden; background: var(--surface-highest); isolation: isolate; }
.player-art { width: clamp(88px, 28%, 160px); aspect-ratio: 1; color: var(--primary); }
.player-art svg { width: 100%; height: 100%; overflow: visible; animation: spin 14s linear infinite; animation-play-state: paused; }
.player.playing .player-art svg { animation-play-state: running; }
.player-art path { fill: currentColor; }
.player-screen small { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-weight: 700; font-size: .8125rem; color: var(--on-surface-variant); padding: 0 12px; }
.wavy { position: relative; height: 48px; margin-inline: 4px; touch-action: pan-y; cursor: pointer; }
.wavy canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.player-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.time { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.time span { color: var(--on-surface-variant); font-weight: 500; }
.skip .flip { transform: scaleX(-1); }
.transport { display: flex; align-items: center; gap: 8px; }
.skip { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-high); position: relative; overflow: hidden; isolation: isolate; transition: border-radius var(--spring-fast-ms) var(--spring-fast), transform var(--spring-fast-ms) var(--spring-fast); }
.skip:active { border-radius: 16px; transform: scale(.9); }
.skip b { position: absolute; font-size: .625rem; font-weight: 800; margin-top: 2px; }
.skip .i { width: 28px; height: 28px; stroke-width: 1.8; }
.skip--fwd .i { transform: scaleX(-1); }
.play { position: relative; display: grid; place-items: center; width: 76px; height: 64px; border-radius: 32px; background: var(--primary); color: var(--on-primary); transition: border-radius var(--spring-bouncy-ms) var(--spring-bouncy), transform var(--spring-fast-ms) var(--spring-fast), width var(--spring-bouncy-ms) var(--spring-bouncy); }
.play .i { grid-area: 1 / 1; width: 30px; height: 30px; fill: currentColor; stroke: none; transition: transform var(--spring-bouncy-ms) var(--spring-bouncy), opacity .15s var(--ease); }
.play .i-play { transform: scale(0) rotate(-60deg); opacity: 0; }
.play[aria-pressed="true"] { border-radius: 22px; }
.play[aria-pressed="false"] .i-pause { transform: scale(0) rotate(60deg); opacity: 0; }
.play[aria-pressed="false"] .i-play { transform: none; opacity: 1; }
.play:active { transform: scale(.92); }
.player-state { justify-self: end; max-width: 100%; padding: 8px 14px; border-radius: 999px; background: var(--tertiary-container); color: var(--on-tertiary-container); font-size: .8125rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 559px) {
  .player-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 14px; }
  .transport { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .player-state { grid-column: 2; grid-row: 1; }
}

/* ---------- Architecture ---------- */
.arch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.arch-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.arch-tab { display: flex; align-items: center; gap: 14px; min-height: 68px; min-width: 0; padding: 10px 20px 10px 14px; border-radius: 26px; background: var(--surface-high); text-align: left; transition: background-color .25s var(--ease), color .25s var(--ease), border-radius var(--spring-bouncy-ms) var(--spring-bouncy), transform var(--spring-fast-ms) var(--spring-fast); }
.arch-tab:active { transform: scale(.98); }
.arch-tab .ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-highest); transition: background-color .25s var(--ease), border-radius var(--spring-bouncy-ms) var(--spring-bouncy); }
.arch-tab .t { display: grid; min-width: 0; line-height: 1.25; }
.arch-tab .t b { font-weight: 700; font-size: 1rem; overflow-wrap: anywhere; }
.arch-tab .t small { font-size: .8125rem; opacity: .7; font-weight: 600; }
.arch-tab[aria-selected="true"] { background: var(--primary); color: var(--on-primary); border-radius: 26px 26px 26px 12px; }
.arch-tab[aria-selected="true"] .ico { background: var(--on-primary); color: var(--primary); border-radius: 38%; }
.arch-panel { display: grid; align-content: start; gap: 16px; min-width: 0; padding: clamp(22px, 4vw, 40px); border-radius: 36px; background: var(--surface-container); }
.arch-badge { justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--tertiary-container); color: var(--on-tertiary-container); font-size: .8125rem; font-weight: 700; }
.arch-panel p { color: var(--on-surface-variant); text-wrap: pretty; }
.code { max-width: 100%; margin: 4px 0 0; padding: 18px 20px; border-radius: 22px; background: var(--inverse-surface); color: var(--inverse-on-surface); font-family: var(--font-code); font-size: .8125rem; line-height: 1.7; overflow-x: auto; white-space: pre; -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .arch { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; } }

/* ---------- Specs ---------- */
.specs { border-radius: clamp(32px, 5vw, 48px); background: var(--surface-container); padding: clamp(6px, 1.5vw, 12px); }
.spec { position: relative; display: grid; gap: 4px; padding: 18px clamp(16px, 3vw, 28px); border-radius: 24px; min-width: 0; transition: background-color .25s var(--ease), border-radius var(--spring-default-ms) var(--spring-default); }
.spec + .spec::before { content: ""; position: absolute; top: 0; left: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); height: 1px; background: var(--outline-variant); transition: opacity .2s var(--ease); }
@media (hover: hover) { .spec:hover { background: var(--surface-high); border-radius: 32px; } .spec:hover::before, .spec:hover + .spec::before { opacity: 0; } }
.spec h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; }
.spec .v { font-weight: 600; overflow-wrap: anywhere; }
.spec .b { color: var(--on-surface-variant); font-size: .9375rem; text-wrap: pretty; }
@media (min-width: 860px) { .spec { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.4fr); gap: 28px; align-items: baseline; } }

.cli { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 12px; padding: clamp(18px, 3vw, 28px); border-radius: 36px; background: var(--surface-low); }
.cli > div { min-width: 0; display: grid; gap: 10px; }
.cli strong { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -.01em; }
.cli code { display: block; max-width: 100%; padding: 14px 18px; border-radius: 18px; background: var(--inverse-surface); color: var(--inverse-on-surface); font-size: .8125rem; overflow-x: auto; white-space: nowrap; }
.copy-btn .i-check { display: none; }
.copy-btn.done .i-check { display: block; }
.copy-btn.done .i-copy { display: none; }
@media (max-width: 380px) { .btn--lg { font-size: 1rem; gap: 10px; } .cta { padding: 24px; } .theme-card, .player { padding-inline: 14px; } }
@media (min-width: 700px) { .cli { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; } .cli > div { min-width: 0; display: grid; gap: 10px; } }

/* ---------- Final call to action ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: start; padding: clamp(28px, 6vw, 72px); border-radius: clamp(36px, 6vw, 64px); background: var(--primary); color: var(--on-primary); }
.cta .h2 { max-width: 14ch; }
.cta p { max-width: 30rem; opacity: .9; font-size: 1.125rem; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.cta-row .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .cta-row .btn { flex: 0 0 auto; } }
.cta-shape { position: absolute; z-index: -1; right: -18%; bottom: -26%; width: min(78%, 520px); aspect-ratio: 1; color: var(--on-primary); opacity: .13; }
.cta-shape svg { width: 100%; height: 100%; overflow: visible; animation: spin 80s linear infinite; }
.cta-shape path { fill: currentColor; }
.btn--ghost-inverse { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--on-primary) 55%, transparent); color: var(--on-primary); }

/* ---------- Footer ---------- */
.footer { padding: clamp(48px, 8vw, 88px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.footer-brand { display: grid; gap: 14px; align-content: start; max-width: 22rem; }
.footer-brand .brand { font-size: 1.5rem; }
.footer-brand p { color: var(--on-surface-variant); font-size: .9375rem; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges img { height: 28px; width: auto; }
.footer h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 750; margin-bottom: 10px; }
.footer-links { display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-surface-variant); font-weight: 550; border-radius: 12px; transition: color .2s var(--ease); }
@media (hover: hover) { .footer-links a:hover { color: var(--primary); } }
.footer-links-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 24px; box-shadow: 0 -1px 0 var(--outline-variant); color: var(--on-surface-variant); font-size: .8125rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); } .footer-links-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Snackbar ---------- */
.snackbar { position: fixed; z-index: 90; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 20px; background: var(--inverse-surface); color: var(--inverse-on-surface); font-weight: 650; font-size: .9375rem; translate: -50% 0; transform: translateY(160%) scale(.92); opacity: 0; pointer-events: none; transition: transform var(--spring-default-ms) var(--spring-default), opacity .2s var(--ease); }
.snackbar.show { transform: none; opacity: 1; }

/* ---------- Motion: entrance + scroll reveal (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px) scale(.96); }
.js [data-reveal].in { opacity: 1; transform: none; transition: transform var(--spring-slow-ms) var(--spring-slow) calc(var(--i, 0) * 70ms), opacity .35s var(--ease) calc(var(--i, 0) * 70ms); }

.js .enter { opacity: 0; }
.js.ready .enter { animation: enter var(--spring-slow-ms) var(--spring-slow) both; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }
@keyframes enter { from { opacity: 0; transform: translateY(36px) scale(.96); } to { opacity: 1; transform: none; } }
.js .stage-blob { opacity: 0; }
.js.ready .stage-blob { opacity: 1; transition: opacity .4s var(--ease) .1s; }
.js.ready .stage-blob svg { animation: blob-in var(--spring-bouncy-ms) var(--spring-bouncy) both, spin 60s linear .6s infinite; }
@keyframes blob-in { from { transform: scale(.2) rotate(-90deg); } }
.js.ready .phone { animation: phone-in .75s var(--spring-slow) .25s both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(80px) rotate(4deg) scale(.9); } to { opacity: 1; transform: none; } }

/* View Transition: colour changes sweep out from the control you tapped */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .enter, .js .stage-blob { opacity: 1; transform: none; }
}
