/* cobbleday.com: one stylesheet. Tokens follow the app's Calm theme (app/src/ui/themes.ts).
   Motion: scroll-driven where supported, an IntersectionObserver fallback (site.js),
   and nothing at all under prefers-reduced-motion. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/figtree.woff2) format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/fraunces.woff2) format("woff2");
}

/* ---- tokens ---- */
:root {
  --bg: #faf9f7; --panel: #f3f1ed; --card: #fff; --line: #e7e3dc; --line-2: #d8d2c8;
  --ink: #2b2925; --muted: #6a645a; --faint: #a8a196;
  --accent: #806240; --accent-soft: #efe6d8; --on-accent: #fff;
  /* category hues (decoration only, never meaning): blue, teal, purple, gold, slate */
  --blue: #27649f; --teal: #12857a; --purple: #8e4fbf; --gold: #806a3e; --slate: #505a64;
  --stone-1: #cdbda6; --stone-2: #a8927a; --stone-3: #7f6b56;
  /* the logo's three stones (brand/logo.svg): base, middle, and the sun on top */
  --logo-base: #4f463f; --logo-mid: #7a6d61; --logo-sun: #df9628;
  --glow-1: #ecdcc4; --glow-2: #dfe6ee; --glow-3: #e9e1f0;
  --bezel: #2b2925;
  --shadow: 0 1px 2px rgb(43 41 37 / .05), 0 10px 30px -12px rgb(43 41 37 / .18);
  --shadow-lg: 0 2px 6px rgb(43 41 37 / .05), 0 40px 80px -30px rgb(43 41 37 / .35);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --gutter: 16px;
  --top: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18; --panel: #21201d; --card: #282623; --line: #36332f; --line-2: #45423c;
    --ink: #ece8e1; --muted: #a8a195; --faint: #6f695f;
    --accent: #d2ad7c; --accent-soft: #3a3127; --on-accent: #1b1a18;
    --blue: #6f9be8; --teal: #7cbfb5; --purple: #b3a3e0; --gold: #c6ac7c; --slate: #8fa4ba;
    --stone-1: #b9a58b; --stone-2: #94806a; --stone-3: #6e5f4e;
    --logo-base: #efe8de; --logo-mid: #d3c8ba; --logo-sun: #f4b84c;
    --glow-1: #3a2f22; --glow-2: #222c38; --glow-3: #302838;
    --bezel: #0e0d0c;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .3), 0 40px 80px -30px rgb(0 0 0 / .8);
  }
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); interpolate-size: allow-keywords; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 560; letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
h3 { font-family: var(--sans); font-weight: 650; letter-spacing: 0; font-size: 1.08rem; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code { font: .9em var(--mono); background: var(--accent-soft); padding: .08em .35em; border-radius: 5px; }
img, svg, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.ic-lg { width: 28px; height: 28px; color: var(--accent); }

/* ---- buttons ---- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--faint); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:hover .ic:first-child { transform: translateY(2px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 90%, var(--ink)); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link .ic { transition: transform .3s var(--ease); }
.link:hover .ic { transform: translateX(4px); }

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--top);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
}
.top-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.2rem/1 var(--serif); letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) translateY(-1px); }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { position: relative; padding: 8px 12px; color: var(--muted); font-weight: 500; font-size: .95rem; text-decoration: none; border-radius: 8px; transition: color .2s; }
.top-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top-nav a:hover { color: var(--ink); }
.top-nav a:hover::after { transform: scaleX(1); }
.top .btn { margin-left: 8px; }
.top-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: .7; }
@media (max-width: 760px) {
  .top-nav { display: none; }
  .top .btn { margin-left: auto; }
}

/* ---- hero ---- */
.hero { position: relative; padding-top: clamp(32px, 5vw, 64px); isolation: isolate; }
.hero-sky { position: absolute; inset: calc(var(--top) * -1) 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .9; }
.g1 { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: -10vw; top: -6vw; background: var(--glow-1); }
.g2 { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; right: -8vw; top: 4vw; background: var(--glow-2); }
.g3 { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; left: 34vw; top: 30vw; background: var(--glow-3); opacity: .6; }
.pebble { position: absolute; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: var(--stone-1); opacity: .45; }
.pb1 { width: 34px; height: 22px; left: 9%; top: 26%; background: var(--stone-2); }
.pb2 { width: 18px; height: 12px; left: 18%; top: 58%; }
.pb3 { width: 46px; height: 28px; right: 10%; top: 20%; background: var(--stone-3); opacity: .3; }
.pb4 { width: 22px; height: 15px; right: 20%; top: 52%; background: var(--stone-2); }
.pb5 { width: 14px; height: 10px; right: 6%; top: 74%; }
.hero-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-mark { position: relative; width: clamp(88px, 12vw, 116px); aspect-ratio: 1; margin-bottom: 14px; }
.hero-mark > img, .hero-mark > svg { width: 100%; height: 100%; overflow: visible; }
.hero-mark::after { /* the ground the stones settle on */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 4%; height: 10%; z-index: -1;
  border-radius: 50%; background: radial-gradient(closest-side, rgb(43 41 37 / .22), transparent);
}
.js .hero-mark:not(.ready) > img { opacity: 0; animation: show 0s 1.2s forwards; }
@keyframes show { to { opacity: 1; } }
.hero-mark svg { cursor: pointer; }
.hero-mark .stone { transform-box: fill-box; transform-origin: 50% 100%; }
h1 { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-name { font: 600 clamp(1.05rem, 1rem + .4vw, 1.3rem)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-promise { max-width: 15ch; font-size: clamp(2.4rem, 1.2rem + 5vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 520; }
.hero-promise em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(var(--accent-soft), var(--accent-soft)) no-repeat 0 92% / 100% .3em;
}
.hero-sub { max-width: 40rem; margin: 20px 0 28px; font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); color: var(--muted); }
.hero-meta { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-meta span { white-space: nowrap; }
.hero-shot { margin-top: clamp(40px, 6vw, 72px); perspective: 1600px; }
.hero-media { max-width: 1100px; margin-inline: auto; }

/* ---- device frames and media ---- */
.media { margin: 0; position: relative; }
.device-desktop { border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.device-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.device-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 7px; background: var(--bg); color: var(--muted); font-size: .72rem; letter-spacing: .01em; transform: translateX(-20px); }
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; background: var(--bg); }
.screen video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg); opacity: 0; transition: opacity .6s var(--ease); }
.media.has-poster video, .media.is-playing video { opacity: 1; }
.media.no-video video { display: none; }
.media-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink);
  background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer; opacity: .75; transition: opacity .2s, transform .2s var(--ease);
}
.media-btn[hidden] { display: none; }
.media-btn:hover, .media-btn:focus-visible { opacity: 1; transform: scale(1.06); }
.media-btn .i-play, .media-btn.paused .i-pause { display: none; }
.media-btn.paused .i-play { display: block; }
.device-phone { width: 100%; padding: 3.2%; border-radius: 15% / 7%; background: var(--bezel); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / .08); }
.device-phone .screen { aspect-ratio: 390 / 844; border-radius: 12% / 5.6%; }
.device-phone .screen::before { content: ""; position: absolute; z-index: 3; top: 1.6%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: var(--bezel); }

/* ---- product mocks (placeholders under the videos; sized in cqw so they scale like a screenshot) ---- */
.mock { position: absolute; z-index: 0; inset: 0; display: grid; grid-template-columns: 18% 1fr; background: var(--bg); color: var(--ink); font-size: 1.42cqw; line-height: 1.4; text-align: left; --loop: 9s; --faint: var(--muted); }
.mock small { display: block; color: var(--muted); font-size: .82em; font-weight: 400; }
.mock .ic { width: 1.2em; height: 1.2em; }
.c-blue { --c: var(--blue); } .c-teal { --c: var(--teal); } .c-purple { --c: var(--purple); } .c-gold { --c: var(--gold); }
.m-side { background: var(--panel); border-right: 1px solid var(--line); padding: 2.2cqw 1.3cqw; display: flex; flex-direction: column; gap: .35cqw; min-width: 0; }
.m-logo { display: flex; align-items: center; gap: .8cqw; font-weight: 700; margin: 0 0 1.2cqw .8cqw; }
.m-logo b { width: 1.6cqw; height: 1.2cqw; border-radius: 50%; background: var(--logo-mid); box-shadow: 0 -.9cqw 0 -.25cqw var(--logo-sun); }
.m-nav { display: flex; align-items: center; gap: .8cqw; padding: .5cqw .8cqw; border-radius: .6cqw; color: var(--muted); white-space: nowrap; }
.m-nav i { width: 1.1cqw; height: 1.1cqw; border-radius: .3cqw; border: .14cqw solid currentColor; flex: none; opacity: .8; }
.m-nav i.dot, .dot { display: inline-block; width: .9cqw; height: .9cqw; border-radius: 50%; border: 0; background: var(--c); opacity: 1; flex: none; }
.m-nav span { margin-left: auto; font-size: .85em; }
.m-nav.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.m-indent { margin-left: 1.4cqw; }
.m-label { margin: 1.4cqw 0 .3cqw .8cqw; font-size: .8em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.m-main { position: relative; padding: 2.4cqw 2.8cqw; min-width: 0; overflow: hidden; }
.m-h { display: flex; align-items: baseline; gap: 1.2cqw; margin-bottom: 1.4cqw; font: 600 2.1cqw/1.2 var(--serif); }
.m-h small { font: 400 1.1cqw var(--sans); }
.m-add { padding: .8cqw 1.1cqw; margin-bottom: .8cqw; border: 1px solid var(--line); border-radius: .7cqw; background: var(--card); color: var(--faint); display: flex; }
.m-add kbd { margin-left: auto; font: inherit; font-size: .85em; padding: 0 .5cqw; border: 1px solid var(--line-2); border-radius: .3cqw; }
.m-task { position: relative; display: flex; align-items: center; gap: 1cqw; padding: .85cqw .4cqw; border-bottom: 1px solid var(--line); white-space: nowrap; }
.m-task s { color: var(--muted); }
.m-check { position: relative; width: 1.5cqw; height: 1.5cqw; border-radius: 50%; border: .16cqw solid var(--faint); flex: none; }
.m-check.pb1 { border-color: var(--accent); border-width: .26cqw; }
.m-check.done, .m-check.tick { --fill: var(--muted); }
.m-check.done { background: var(--muted); border-color: var(--muted); }
.m-check.done::after, .m-check.tick::after { content: ""; position: absolute; left: 30%; top: 12%; width: 25%; height: 50%; border: solid var(--bg); border-width: 0 .2cqw .2cqw 0; transform: rotate(45deg); }
.m-check.tick::after { opacity: 0; }
.m-pri { color: var(--accent); font-weight: 800; }
.m-chip { margin-left: auto; padding: .1cqw .7cqw; border-radius: 99px; font-size: .82em; color: var(--muted); background: var(--panel); border: 1px solid var(--line); }
.m-chip.c-blue, .m-chip.c-teal, .m-chip.c-purple { color: var(--ink); background: color-mix(in srgb, var(--c) 14%, var(--card)); border-color: transparent; }
.m-chip + .m-chip { margin-left: .4cqw; }
/* calendar pieces */
.m-split { display: grid; grid-template-columns: 1fr 36%; gap: 2.4cqw; }
.m-day { position: relative; --n: 6; margin-top: 3.4cqw; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(100% / 6)); }
.m-hours { position: absolute; left: 0; top: 0; bottom: 0; width: 3cqw; display: flex; flex-direction: column; color: var(--faint); font-size: .8em; }
.m-hours span { flex: 1; padding-top: .2cqw; }
.m-ev {
  position: absolute; left: 3.4cqw; right: 0; top: calc(var(--s) / var(--n) * 100% + 1px); height: calc(var(--d) / var(--n) * 100% - 2px);
  padding: .35cqw .7cqw; border-radius: .5cqw; overflow: hidden; font-weight: 600; font-size: .9em; line-height: 1.25;
  background: color-mix(in srgb, var(--c, var(--slate)) 16%, var(--card)); border-left: .3cqw solid var(--c, var(--slate));
}
.m-ev.g { --c: var(--slate); background: var(--card); border: 1px dashed var(--line-2); border-left: .3cqw solid var(--slate); font-weight: 500; }
.m-now { position: absolute; left: 3cqw; right: 0; top: 30%; height: .16cqw; background: var(--accent); }
.m-now::before { content: ""; position: absolute; left: -.5cqw; top: -.45cqw; width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--accent); }
.m-week .m-h { margin-bottom: 1cqw; }
.m-grid { position: absolute; inset: 6.4cqw 2.8cqw 2.4cqw; --n: 7; display: grid; grid-template-columns: 3.4cqw repeat(5, 1fr); gap: 0 .5cqw; padding-top: 2.4cqw;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(100% / 7)) 0 2.4cqw / 100% calc(100% - 2.4cqw) no-repeat; }
.m-grid .m-hours { position: static; }
.m-col { position: relative; }
.m-col > b { position: absolute; top: -2.4cqw; left: 0; font-weight: 600; color: var(--muted); font-size: .9em; }
.m-col .m-ev { left: 0; }
.m-tasks { gap: .8cqw; position: relative; }
.m-card { position: relative; padding: .8cqw 1cqw; border-radius: .7cqw; background: var(--card); border: 1px solid var(--line); border-left: .3cqw solid var(--c); font-weight: 600; font-size: .92em; white-space: nowrap; }
.m-ghost { position: absolute; left: 1.3cqw; right: 1.3cqw; top: 6.2cqw; box-shadow: var(--shadow); opacity: 0; }
.m-toast { position: absolute; left: 50%; bottom: 3cqw; display: flex; align-items: center; gap: .8cqw; padding: .8cqw 1.4cqw; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 600; white-space: nowrap; transform: translateX(-50%); opacity: 0; }
.m-over { padding: .8cqw 1cqw; border-radius: .7cqw; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.m-btn { display: inline-block; margin-top: .6cqw; padding: .3cqw .9cqw; border-radius: 99px; border: 1px solid var(--line-2); font-size: .85em; font-weight: 600; background: var(--card); }
.m-btn.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.m-miss { border-style: dashed; border-width: 1px 1px 1px .3cqw; border-color: var(--c); background: var(--card); }
.m-moved { opacity: 0; }
.m-done { text-decoration: line-through; color: var(--muted); }
.m-pop { position: absolute; right: 4cqw; top: 14cqw; display: flex; flex-direction: column; gap: .2cqw; min-width: 22cqw; padding: 1cqw; border-radius: 1cqw; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; }
.m-pop b { margin: 0 0 .4cqw .6cqw; }
.m-pop span { padding: .45cqw .6cqw; border-radius: .5cqw; }
.m-pop span.on { background: var(--accent-soft); }
/* notes */
.m-note .m-h { font-size: 2.4cqw; }
.m-p { margin: .5cqw 0; }
.m-h3 { margin-top: 1.4cqw; font-weight: 700; font-family: var(--serif); font-size: 1.15em; }
.m-inline { border: 0; padding: .4cqw 0; }
.m-inline .m-chip:first-of-type { margin-left: 1cqw; }
.m-inline u { color: var(--accent); text-decoration: none; }
.m-typing { position: relative; display: flex; align-items: center; gap: .8cqw; margin-top: .8cqw; }
.m-slash { color: var(--accent); font-weight: 700; }
.m-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 18ch; }
.m-caret { width: .16cqw; height: 1.4em; background: var(--accent); }
.m-menu { position: absolute; z-index: 1; left: 3cqw; top: 130%; display: flex; flex-direction: column; gap: .1cqw; min-width: 26cqw; padding: .7cqw; border-radius: .9cqw; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.m-menu span { display: flex; align-items: baseline; gap: 1cqw; padding: .4cqw .7cqw; border-radius: .5cqw; font-weight: 600; }
.m-menu span.on { background: var(--accent-soft); }
.m-menu small { display: inline; }
.m-backlinks { position: absolute; right: 2.8cqw; top: 8cqw; width: 17cqw; display: flex; flex-direction: column; gap: .5cqw; padding: 1.2cqw; border-radius: 1cqw; border: 1px solid var(--line); background: var(--panel); font-size: .9em; }
.m-backlinks span { color: var(--accent); }
/* ADHD */
.m-game { display: flex; flex-direction: column; gap: 1.6cqw; }
.m-rank { display: flex; align-items: center; gap: 1.6cqw; padding: 1.4cqw 1.8cqw; border-radius: 1.2cqw; background: var(--card); border: 1px solid var(--line); }
.m-rank > div { flex: 1; }
.m-stone { width: 4cqw; height: 3cqw; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: var(--stone-2); box-shadow: inset 0 -.5cqw 0 var(--stone-3); }
.m-bar { height: .9cqw; margin: .6cqw 0 .4cqw; border-radius: 99px; background: var(--panel); overflow: hidden; }
.m-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.m-xp { width: 64%; }
.m-hp { width: 60%; background: var(--purple) !important; }
.m-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.m-sub { font-weight: 700; margin-bottom: .4cqw; font-size: .85em; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.m-xpf { position: absolute; right: 1cqw; color: var(--accent); font-weight: 800; opacity: 0; }
.m-quest { display: flex; justify-content: space-between; padding: .7cqw 1cqw; margin-bottom: .5cqw; border-radius: .7cqw; background: var(--card); border: 1px solid var(--line); }
.m-quest b { position: relative; display: inline-flex; color: var(--muted); }
.m-q3 span:last-child { position: absolute; right: 0; opacity: 0; color: var(--accent); }
.m-boss { margin-top: 1cqw; padding: 1cqw; border-radius: .8cqw; border: 1px solid var(--line); background: color-mix(in srgb, var(--purple) 8%, var(--card)); }
.m-hit { background: var(--purple); color: #fff; }
.m-next { display: flex; align-items: center; gap: .8cqw; padding: 1cqw 1.4cqw; border-radius: 1cqw; border: 1px dashed var(--line-2); }
.m-next span { padding: .2cqw .9cqw; border-radius: 99px; border: 1px solid var(--line-2); font-size: .9em; }
.m-next span.on { background: var(--accent-soft); border-color: var(--accent); }
.m-next em { margin-left: auto; font-style: normal; color: var(--muted); }
/* work log */
.m-dim { display: grid; place-items: center; grid-template-columns: 1fr; background: color-mix(in srgb, var(--ink) 9%, var(--panel)); }
.m-dialog { width: 62%; padding: 2.2cqw 2.4cqw; border-radius: 1.4cqw; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.m-row { display: flex; align-items: center; gap: 1.2cqw; margin: .8cqw 0; }
.m-row > span:first-child:not(.m-box) { width: 8cqw; color: var(--muted); }
.m-row b { display: inline-flex; align-items: center; gap: .7cqw; }
.m-chips { display: flex; flex-wrap: wrap; gap: .6cqw; margin: 1cqw 0; }
.m-chips span { padding: .3cqw 1cqw; border-radius: 99px; border: 1px solid var(--line-2); font-size: .9em; }
.m-chips span.on { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.m-box { width: 1.4cqw; height: 1.4cqw; border-radius: .3cqw; border: .16cqw solid var(--faint); }
.m-box.on { background: var(--accent); border-color: var(--accent); }
.m-md { margin: 1.2cqw 0; padding: 1.2cqw 1.4cqw; border-radius: .8cqw; background: var(--panel); font: 1.08cqw/1.55 var(--mono); white-space: pre; overflow: hidden; }
.m-md span { display: block; }
.m-md span:first-child { font-weight: 700; color: var(--accent); }
.m-actions { display: flex; justify-content: flex-end; gap: .8cqw; }
.m-actions .m-btn { margin: 0; padding: .5cqw 1.4cqw; }
/* offline + phone */
.m-sync { position: relative; margin-top: 2cqw; height: 3.4cqw; }
.m-sync span { position: absolute; inset: 0 auto auto 0; display: inline-flex; align-items: center; gap: .8cqw; padding: .7cqw 1.4cqw; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.m-sync .off { background: var(--panel); border: 1px dashed var(--faint); color: var(--muted); }
.m-sync .on { background: var(--accent-soft); color: var(--ink); opacity: 0; }
.m-phone { display: flex; flex-direction: column; padding: 13cqw 5cqw 0; font-size: 3.9cqw; }
.m-ph-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4cqw; }
.m-ph-top b { font: 600 7.5cqw/1 var(--serif); }
.m-phone .m-add { padding: 2.6cqw 3.4cqw; border-radius: 3cqw; margin-bottom: 2cqw; }
.m-phone .m-task { gap: 3cqw; padding: 3cqw 1cqw; }
.m-phone .m-check { width: 4.8cqw; height: 4.8cqw; border-width: .5cqw; }
.m-phone .m-check.done::after, .m-phone .m-check.tick::after { border-width: 0 .6cqw .6cqw 0; }
.m-ph-cal { display: flex; flex-direction: column; gap: 2cqw; margin-top: 5cqw; }
.m-ph-cal .m-ev { position: static; height: auto; padding: 2.4cqw 3cqw; border-radius: 2cqw; border-left-width: 1cqw; }
.m-tabs { margin: auto -5cqw 0; display: flex; justify-content: space-around; padding: 3.4cqw 2cqw 6cqw; border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: .85em; }
.m-tabs .on { color: var(--accent); font-weight: 700; }

/* mock motion: runs only while the figure is on screen (.live, set by site.js) */
@media (prefers-reduced-motion: no-preference) {
  .live .m-check.tick { animation: tick var(--loop) var(--ease) infinite; }
  .live .m-check.tick::after { animation: tickmark var(--loop) var(--ease) infinite; }
  .live .m-now { animation: now 30s linear infinite alternate; }
  .live .m-caret { animation: caret 1s steps(1) infinite; }
  .live .m-type { animation: type var(--loop) steps(18) infinite; }
  .live .m-menu { animation: menu var(--loop) var(--ease) infinite; }
  .live .m-ghost { animation: ghost var(--loop) var(--ease) infinite; }
  .live .m-drop { animation: drop var(--loop) var(--ease) infinite; }
  .live .m-arrive { animation: arrive var(--loop) var(--ease) infinite; }
  .live .m-toast { animation: toast var(--loop) var(--ease) infinite; }
  .live .m-tickme { animation: done var(--loop) var(--ease) infinite; }
  .live .m-miss { animation: miss var(--loop) var(--ease) infinite; }
  .live .m-moved { animation: moved var(--loop) var(--ease) infinite; }
  .live .m-pop { animation: pop var(--loop) var(--ease) infinite; }
  .live .m-xp { animation: xp var(--loop) var(--ease) infinite; }
  .live .m-xpf { animation: xpf var(--loop) var(--ease) infinite; }
  .live .m-q3 span:first-child { animation: fadeout var(--loop) var(--ease) infinite; }
  .live .m-q3 span:last-child { animation: fadein var(--loop) var(--ease) infinite; }
  .live .m-hp { animation: hp var(--loop) var(--ease) infinite; }
  .live .m-hit { animation: toast var(--loop) var(--ease) infinite; animation-delay: .6s; }
  .live .m-md { animation: wipe var(--loop) steps(8) infinite; }
  .live .m-sync .off { animation: fadeout var(--loop) var(--ease) infinite; }
  .live .m-sync .on { animation: fadein var(--loop) var(--ease) infinite; }
}
@keyframes tick { 0%, 28% { background: transparent; border-color: var(--faint); transform: scale(1); } 32% { transform: scale(1.25); } 36%, 92% { background: var(--accent); border-color: var(--accent); transform: scale(1); } 100% { background: transparent; } }
@keyframes tickmark { 0%, 31% { opacity: 0; } 35%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes now { to { top: 46%; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes type { 0%, 10% { width: 0; } 45%, 100% { width: 18ch; } }
@keyframes menu { 0%, 4% { opacity: 0; transform: translateY(-.6cqw); } 8%, 40% { opacity: 1; transform: none; } 46%, 100% { opacity: 0; transform: translateY(-.6cqw); } }
@keyframes ghost { 0%, 12% { opacity: 0; transform: none; } 18% { opacity: 1; transform: rotate(-2deg) scale(1.03); } 38% { opacity: 1; transform: translate(46cqw, 5cqw) rotate(-2deg) scale(1.03); } 42%, 100% { opacity: 0; transform: translate(46cqw, 5cqw); } }
@keyframes drop { 0%, 38% { opacity: 0; transform: scale(.94); } 44% { opacity: 1; transform: scale(1.03); } 50%, 100% { opacity: 1; transform: none; } }
@keyframes arrive { 0%, 56% { opacity: 0; transform: translateY(-1cqw); box-shadow: 0 0 0 0 var(--accent-soft); } 62% { opacity: 1; transform: none; box-shadow: 0 0 0 .8cqw var(--accent-soft); } 74%, 100% { opacity: 1; box-shadow: 0 0 0 0 transparent; } }
@keyframes toast { 0%, 58% { opacity: 0; transform: translate(-50%, 1.5cqw); } 63%, 86% { opacity: 1; transform: translate(-50%, 0); } 92%, 100% { opacity: 0; transform: translate(-50%, 1.5cqw); } }
@keyframes done { 0%, 24% { color: var(--ink); text-decoration-color: transparent; } 30%, 100% { color: var(--muted); text-decoration: line-through; } }
@keyframes miss { 0%, 50% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; transform: translateX(3cqw); } }
@keyframes moved { 0%, 54% { opacity: 0; transform: translateX(-3cqw); } 62%, 100% { opacity: 1; transform: none; } }
@keyframes pop { 0%, 6% { opacity: 0; transform: scale(.96); } 10%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; } }
@keyframes xp { 0%, 30% { width: 64%; } 40%, 100% { width: 82%; } }
@keyframes xpf { 0%, 30% { opacity: 0; transform: translateY(0); } 36% { opacity: 1; } 52%, 100% { opacity: 0; transform: translateY(-3cqw); } }
@keyframes fadeout { 0%, 40% { opacity: 1; } 46%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fadein { 0%, 40% { opacity: 0; } 46%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hp { 0%, 56% { width: 60%; } 64%, 100% { width: 80%; } }
@keyframes wipe { 0%, 4% { clip-path: inset(0 0 80% 0); } 40%, 100% { clip-path: inset(0); } }

/* ---- the three in one ---- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(64px, 9vw, 120px); }
.trio-card { padding: 26px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.trio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trio-card h2 { font-size: 1.5rem; margin: 14px 0 6px; }
.trio-card p { color: var(--muted); }
.trio-stone { display: block; width: 44px; height: 30px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; transition: transform .5s var(--ease); }
.trio-card:hover .trio-stone { transform: rotate(-10deg) translateY(-3px); }
.s-a { background: var(--logo-sun); } .s-b { background: var(--logo-mid); } .s-c { background: var(--logo-base); }
@media (max-width: 760px) {
  .trio { grid-template-columns: 1fr; gap: 12px; }
  .trio-card { display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; padding: 18px; }
  .trio-stone { grid-row: span 2; margin-top: 6px; }
  .trio-card h2 { margin: 0; font-size: 1.3rem; }
}

/* ---- features ---- */
.features { padding-bottom: clamp(32px, 6vw, 80px); }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .f-text { order: 2; }
.f-text { display: flex; flex-direction: column; gap: 18px; }
.f-text h2, .band-head h2, .pricing h2, .faq h2, .closing h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
.f-text > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 650; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.num { display: inline-grid; place-items: center; width: 30px; height: 24px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: var(--accent-soft); color: var(--accent); font-size: .78rem; letter-spacing: 0; }
.f-duo { position: relative; padding: 0 12% 12% 0; }
.duo-phone { position: absolute; right: 0; bottom: 0; width: 31%; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .f-text { order: 0; }
}

/* ---- privacy band ---- */
.band { padding-block: clamp(72px, 10vw, 136px); background: var(--panel); border-block: 1px solid var(--line); }
.band-head { max-width: 44rem; display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; }
.band-head > p:last-child { color: var(--muted); font-size: 1.1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card { padding: 24px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, transform .35s var(--ease); }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .ic-lg { transition: transform .5s var(--ease); }
.card:hover .ic-lg { transform: rotate(-8deg) scale(1.08); }
.card p { color: var(--muted); font-size: .97rem; }
@media (max-width: 640px) {
  .card { display: grid; grid-template-columns: 28px 1fr; gap: 6px 12px; padding: 18px; align-items: center; }
  .card p { grid-column: 1 / -1; }
  .pb1, .pb2 { display: none; }
}
@media (max-width: 900px) { .pb5 { display: none; } }

/* ---- pricing ---- */
.pricing { padding-block: clamp(72px, 10vw, 136px) 0; }
.price-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 48px; padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--glow-1); filter: blur(60px); opacity: .55; z-index: 0; }
.price-card > * { position: relative; }
.price-card > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.price-card > div:first-child > p:last-child { color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: center; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks .ic { color: var(--accent); }
.price-card .cta { grid-column: 1 / -1; justify-content: flex-start; }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq { padding-block: clamp(72px, 10vw, 136px) 0; max-width: 860px; }
.faq h2 { margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem; border-radius: 8px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; color: var(--accent); transition: transform .35s var(--ease); }
details[open] summary::after { transform: rotate(135deg); }
summary:hover { color: var(--accent); }
details > div { padding: 0 4px 22px; color: var(--muted); max-width: 44rem; }
@supports selector(::details-content) {
  details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  details[open]::details-content { block-size: auto; }
}

/* ---- closing ---- */
.closing { padding-block: clamp(80px, 12vw, 160px); }
.closing-in { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.closing-in > p { color: var(--muted); font-size: 1.15rem; margin-bottom: 12px; }
.closing-stones { display: flex; flex-direction: column-reverse; align-items: center; margin-bottom: 8px; }
.closing-stones i { display: block; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; margin-top: -4px; }
.closing-stones i:nth-child(1) { width: 64px; height: 26px; background: var(--logo-base); }
.closing-stones i:nth-child(2) { width: 46px; height: 22px; background: var(--logo-mid); }
.closing-stones i:nth-child(3) { width: 30px; height: 18px; background: var(--logo-sun); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding-block: 40px 48px; background: var(--panel); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.foot-brand p { margin-top: 10px; color: var(--muted); font-size: .95rem; max-width: 26rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 4px; }
.foot-nav a { color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.foot-nav a:hover { color: var(--accent); text-decoration: underline; }
.foot-small { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

/* ---- documents: privacy, terms, 404 ---- */
.doc { max-width: 740px; padding-block: clamp(40px, 7vw, 80px) 80px; }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); margin-bottom: 8px; display: block; }
.doc h2 { font-size: 1.45rem; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3rem; display: grid; gap: 8px; }
.doc .muted { color: var(--muted); font-size: .95rem; }
.draft { margin: 20px 0 8px; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--accent); background: var(--accent-soft); font-weight: 600; }
.draft small { display: block; font-weight: 400; color: var(--muted); }
/* The download page. site.js sets data-os on <html> (mac, linux or none);
   without it, every button shows. */
.dl .cta { justify-content: flex-start; margin-top: 28px; }
.dl-size { font-weight: 400; font-size: .88em; opacity: .85; }
.dl-none { display: none; margin-top: 14px; }
:root[data-os="mac"] .dl-pick [data-os="linux"], :root[data-os="linux"] .dl-pick [data-os="mac"] { display: none; }
:root[data-os="none"] .dl-none { display: block; }
.dl-cards { margin-top: 18px; }
.dl-cards .btn { grid-column: 1 / -1; justify-self: start; align-self: flex-start; margin-top: 4px; }
.dl-cards .dl-alt { font-size: .92rem; }
.dl-h3 { margin: 26px 0 10px; }
.dl ul, .dl ol { grid-template-columns: minmax(0, 1fr); }
.doc pre { margin: 10px 0 4px; padding: 12px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); overflow-x: auto; }
.doc pre code { background: none; padding: 0; white-space: pre; }
.lost { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding-block: 64px; }
.lost h1 { display: block; font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); }
.lost p { color: var(--muted); font-size: 1.1rem; }
.lost-stones { position: relative; width: 120px; height: 70px; }
.lost-stones i { position: absolute; bottom: 0; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; }
.lost-stones i:nth-child(1) { left: 0; width: 56px; height: 24px; background: var(--logo-base); }
.lost-stones i:nth-child(2) { left: 52px; width: 40px; height: 20px; background: var(--logo-mid); transform: rotate(14deg); }
.lost-stones i:nth-child(3) { left: 92px; width: 26px; height: 16px; background: var(--logo-sun); transform: rotate(-20deg); }

/* ================= motion ================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .glow { animation: drift 26s ease-in-out infinite alternate; }
  .g2 { animation-duration: 32s; animation-delay: -8s; }
  .g3 { animation-duration: 38s; animation-delay: -16s; }
  .pebble { animation: bob 9s ease-in-out infinite alternate; }
  .pb2 { animation-delay: -3s; } .pb3 { animation-delay: -5s; animation-duration: 12s; } .pb4 { animation-delay: -1s; } .pb5 { animation-delay: -6s; }
  .hero-promise em { animation: highlight 1s .9s var(--ease) both; }
  .hero-name, .hero-promise, .hero-sub, .hero-in .cta, .hero-meta { animation: rise .7s var(--ease) both; }
  .hero-name { animation-delay: .1s; } .hero-promise { animation-delay: .18s; } .hero-sub { animation-delay: .3s; }
  .hero-in .cta { animation-delay: .4s; } .hero-meta { animation-delay: .48s; }
  .hero-shot { animation: rise .9s .5s var(--ease) both; }
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(4vw, 3vw) scale(1.12); } }
@keyframes bob { from { transform: translateY(0) rotate(0); } to { transform: translateY(-14px) rotate(8deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes highlight { from { background-size: 0% .3em; } to { background-size: 100% .3em; } }

/* Scroll-driven: reveals tied to scroll position (Chrome, Edge, Safari 26). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 8%) cover calc(24% + var(--i, 0) * 3%); }
    .reveal-media { animation: reveal-media linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    .flip .reveal-media { --ry: 9deg; --tx: -48px; }
    .hero-media { transform-origin: 50% 0; animation: flatten linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .pebble { animation: bob 9s ease-in-out infinite alternate, parallax linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; }
    .pb1 { --py: -160px; } .pb2 { --py: -60px; animation-delay: -3s, 0s; } .pb3 { --py: -220px; animation-delay: -5s, 0s; }
    .pb4 { --py: -90px; animation-delay: -1s, 0s; } .pb5 { --py: -130px; animation-delay: -6s, 0s; }
    .top { animation: top-line linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    .top-progress { animation: progress linear both; animation-timeline: scroll(root); }
    .closing-stones i { animation: stack linear both; animation-timeline: view(); }
    .closing-stones i:nth-child(1) { animation-range: entry 10% cover 30%; }
    .closing-stones i:nth-child(2) { animation-range: entry 40% cover 36%; }
    .closing-stones i:nth-child(3) { animation-range: entry 70% cover 42%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes reveal-media { from { opacity: 0; transform: perspective(1400px) translate(var(--tx, 48px), 70px) rotateY(var(--ry, -9deg)) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes flatten { from { transform: rotateX(20deg) scale(.93); } to { transform: none; } }
@keyframes parallax { to { translate: 0 var(--py, -100px); } }
@keyframes top-line { to { border-bottom-color: var(--line); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes stack { from { opacity: 0; transform: translateY(-80px) rotate(-10deg); } 80% { opacity: 1; } to { opacity: 1; transform: none; } }

/* Fallback without scroll-driven animations: site.js adds .in once each element is seen. */
@media (prefers-reduced-motion: no-preference) {
  .js.no-sda .reveal, .js.no-sda .reveal-media { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js.no-sda .reveal-media { transform: perspective(1400px) translateY(60px) scale(.95); }
  .js.no-sda .in { opacity: 1; transform: none; }
}
