/* Claude Profile Switcher — site.
   The page is dressed in the app's own clothes: Windows 11 Fluent surfaces (Mica-dark windows, layered
   cards, 1px strokes, 8px corners), Segoe UI Variable where Windows has it, and the switcher's colours —
   terracotta for Main and every accent, blue for Work, green for Personal and for "Open". */

:root {
  --bg: #141414;
  --mica: #202020;
  --layer: #2b2b2b;
  --card: #1b1b1b;
  --card-2: #1f1f1f;
  --fill: rgba(255, 255, 255, 0.06);
  --fill-hover: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-2: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.79);
  --text-3: rgba(255, 255, 255, 0.6);
  --accent: #e08566;
  --accent-hover: #e8987c;
  --accent-text: #f0a88e;
  --on-accent: #1a0f0a;
  --work: #3d77a6;
  --personal: #3f8a58;
  --open: #6ccb6c;
  --caution: #f1d500;

  --display: "Segoe UI Variable", "Segoe UI", "Inter", system-ui, sans-serif;
  --text-font: "Segoe UI Variable", "Segoe UI", "Inter", system-ui, sans-serif;
  --code: "Cascadia Mono", Consolas, ui-monospace, monospace;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-win: cubic-bezier(0, 0, 0, 1);
  --wrap: 1200px;
  --shadow-win: 0 32px 64px rgba(0, 0, 0, 0.37), 0 2px 21px rgba(0, 0, 0, 0.37);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--text-font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ol, ul, figure, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--code); font-size: 0.88em; }
kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 4px; background: var(--fill); border: 1px solid var(--stroke-2); border-bottom-width: 2px;
  font: 600 12px/1 var(--text-font); color: var(--text);
}
::selection { background: rgba(224, 133, 102, 0.4); }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
:target { scroll-margin-top: 80px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--accent); color: var(--on-accent); border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- buttons (Fluent) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 0 18px; border-radius: 6px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition-property: scale, background-color, border-color; transition-duration: 150ms; transition-timing-function: var(--ease);
}
.btn:active { scale: 0.96; }
.btn svg { width: 17px; height: 17px; fill: currentColor; overflow: visible; }
.btn--accent { background: var(--accent); color: var(--on-accent); border: 1px solid rgba(255, 255, 255, 0.08); border-bottom-color: rgba(0, 0, 0, 0.3); }
.btn--accent:hover { background: var(--accent-hover); }
/* button hover: the label rolls up letter by letter and the Windows logo opens its four panes */
.roll { position: relative; display: inline-grid; overflow: clip; line-height: 1.3; }
.roll__line { grid-area: 1 / 1; display: inline-flex; white-space: pre; }
.roll__line > span { display: inline-block; transition: translate 480ms cubic-bezier(0.2, 0, 0, 1); transition-delay: calc(var(--i) * 14ms); }
.roll__line + .roll__line > span { translate: 0 115%; }
.win rect { transition: translate 420ms cubic-bezier(0.2, 0, 0, 1); }
@media (hover: hover) {
  .btn:hover .roll__line:first-child > span { translate: 0 -115%; }
  .btn:hover .roll__line + .roll__line > span { translate: 0 0; }
  .btn:hover .win rect:nth-child(1) { translate: -1.2px -1.2px; }
  .btn:hover .win rect:nth-child(2) { translate: 1.2px -1.2px; }
  .btn:hover .win rect:nth-child(3) { translate: -1.2px 1.2px; }
  .btn:hover .win rect:nth-child(4) { translate: 1.2px 1.2px; }
}
.btn:focus-visible .roll__line:first-child > span { translate: 0 -115%; }
.btn:focus-visible .roll__line + .roll__line > span { translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .roll__line > span, .win rect { transition: none; translate: none !important; }
  .roll__line + .roll__line { visibility: hidden; }
}
.btn--standard { background: var(--fill); color: var(--text); border: 1px solid var(--stroke); border-bottom-color: rgba(255, 255, 255, 0.04); }
.btn--standard:hover { background: var(--fill-hover); }
.btn--sm { height: 32px; padding: 0 14px; font-size: 14px; border-radius: 5px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 8px; }
.link { color: var(--accent-text); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.caption { font-size: 13px; color: var(--text-3); }
.caption span { margin: 0 6px; }
.caption a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--stroke-2); }

/* ---------- title bar ---------- */
.titlebar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 max(20px, calc((100vw - var(--wrap)) / 2));
  background: rgba(20, 20, 20, 0.78); border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
}
.titlebar__app { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-size: 14px; font-weight: 600; }
.pivot { display: flex; gap: 2px; }
.pivot a { position: relative; padding: 8px 12px; border-radius: 5px; font-size: 14px; color: var(--text-2); transition-property: color, background-color; transition-duration: 150ms; }
.pivot a:hover { color: var(--text); background: var(--fill); }
.pivot { position: relative; }
.pivot a.is-active { color: var(--text); }
.pivot__ink { position: absolute; left: 0; bottom: 3px; width: 16px; height: 3px; border-radius: 2px; background: var(--accent); translate: var(--ix, 0) 0; opacity: var(--io, 0); pointer-events: none; transition-property: translate, opacity; transition-duration: 380ms, 200ms; transition-timing-function: var(--ease); }
.titlebar__gh { display: grid; place-items: center; width: 36px; height: 32px; margin: 0 4px 0 10px; border-radius: 5px; color: var(--text-2); }
.titlebar__gh:hover { background: var(--fill); color: var(--text); }
.titlebar__gh svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: 88px 20px 0; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(224, 133, 102, 0.13), transparent 70%),
    radial-gradient(30% 40% at 20% 30%, rgba(61, 119, 166, 0.07), transparent 70%),
    radial-gradient(30% 40% at 80% 30%, rgba(63, 138, 88, 0.06), transparent 70%);
}
.hero__copy { max-width: 820px; margin: 0 auto; text-align: center; }
.hero__title { font-family: var(--display); font-size: clamp(44px, 6.6vw, 88px); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.hero__lead { max-width: 600px; margin: 24px auto 0; font-size: 19px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__copy .caption { margin-top: 20px; }

/* the desktop: a screen in a bezel */
.desk-stage { max-width: var(--wrap); margin: 64px auto 0; perspective: 1800px; }
.desk {
  padding: 8px; transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke); border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}
.desk__screen { position: relative; overflow: hidden; isolation: isolate; height: 640px; border-radius: 12px; background: #10141a; }
.wallpaper { position: absolute; inset: 0; z-index: -1; background: #121419; }
.wallpaper i { position: absolute; border-radius: 50%; }
.wallpaper i:nth-child(1) { left: -10%; top: 20%; width: 70%; height: 110%; background: radial-gradient(closest-side, rgba(224, 133, 102, 0.55), rgba(224, 133, 102, 0.12) 60%, transparent); }
.wallpaper i:nth-child(2) { right: -12%; top: -30%; width: 65%; height: 110%; background: radial-gradient(closest-side, rgba(61, 119, 166, 0.55), rgba(61, 119, 166, 0.1) 60%, transparent); }
.wallpaper i:nth-child(3) { left: 45%; bottom: -55%; width: 55%; height: 100%; background: radial-gradient(closest-side, rgba(63, 138, 88, 0.45), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .wallpaper i { animation: drift 24s ease-in-out infinite alternate; }
  .wallpaper i:nth-child(2) { animation-duration: 30s; animation-direction: alternate-reverse; }
  .wallpaper i:nth-child(3) { animation-duration: 20s; }
}
@keyframes drift { to { translate: 4% -3%; scale: 1.08; } }

/* Claude windows on the desktop */
.cwin {
  position: absolute; left: var(--x); top: var(--y); z-index: var(--z);
  width: 34%; height: 66%;
  display: flex; flex-direction: column;
  background: var(--mica); border: 1px solid var(--stroke-2); border-radius: 8px;
  box-shadow: var(--shadow-win);
  font-family: var(--text-font);
  opacity: 0; scale: 0.94; pointer-events: none;
  transition-property: opacity, scale; transition-duration: 180ms, 260ms; transition-timing-function: ease-out, var(--ease-win);
}
.cwin.is-open { opacity: 1; scale: 1; pointer-events: auto; }
.cwin.is-front { z-index: 5; }
.cwin__bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 4px 0 12px; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--stroke); }
.cwin.is-front .cwin__bar { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.cwin__bar img { border-radius: 22%; }
.cwin__bar em { font-style: normal; padding: 1px 8px; border-radius: 10px; background: var(--fill); }
.cwin__badge { position: relative; }
.cwin__badge b { position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; display: grid; place-items: center; border-radius: 50%; font-size: 7px; color: #fff; border: 1.5px solid var(--mica); }
.cwin__badge--w b { background: var(--work); } .cwin__badge--p b { background: var(--personal); }
.cwin__x { margin-left: auto; display: grid; place-items: center; width: 40px; height: 28px; border-radius: 4px; font-weight: 400; font-size: 12px; cursor: pointer; }
.cwin__x:hover { background: #c42b1c; color: #fff; }
.cwin__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; text-align: center; }
.cwin__av { border-radius: 22%; margin-bottom: 8px; }
.cwin__disc { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; font-style: normal; font-size: 20px; font-weight: 600; }
.cwin__disc--w { background: var(--work); } .cwin__disc--p { background: var(--personal); }
.cwin__name { font-size: 17px; font-weight: 600; }
.cwin__ok { font-size: 13px; color: var(--open); }
.cwin__meta { font-size: 12px; color: var(--text-3); }

/* ---------- the picker, rebuilt from the app (1em = 16px) ---------- */
[data-ui].picker {
  position: absolute; left: 50%; top: 7%; z-index: 10; font-size: 16px;
  width: 38.3em; translate: -50% 0;
  color: #fff; background: rgba(32, 32, 32, 0.97); border: 1px solid var(--stroke-2); border-radius: 0.5em;
  box-shadow: var(--shadow-win);
  font-family: var(--text-font);
  transition-property: opacity, scale; transition-duration: 180ms, 280ms; transition-timing-function: ease-out, var(--ease-win);
}
[data-ui].picker.is-hidden { opacity: 0; scale: 0.96; pointer-events: none; visibility: hidden; transition: opacity 120ms ease-out, scale 160ms ease-out, visibility 0s 160ms; }
[data-ui] .picker__title { display: flex; align-items: center; gap: 0.6em; height: 2.6em; padding: 0 0.3em 0 1em; font-size: 0.8125em; color: #e9e9e9; }
[data-ui] .picker__x { margin-left: auto; width: 3.4em; height: 2.4em; display: grid; place-items: center; border-radius: 0.3em; color: #ddd; }
[data-ui] .picker__x:hover { background: #c42b1c; color: #fff; }
[data-ui] .picker__head { display: flex; align-items: center; justify-content: space-between; padding: 0.7em 1.5em 0.9em; }
[data-ui] .picker__h { font-family: var(--display); font-size: 1.25em; font-weight: 600; }
[data-ui] .picker__gear { color: #ddd; }
[data-ui] .picker__cards { display: grid; grid-template-columns: repeat(4, 8.25em); gap: 0.75em; padding: 0 1.5em; }
[data-ui] .acct {
  position: relative; display: flex; flex-direction: column; align-items: center;
  height: 12.75em; padding: 1.85em 0.5em 0.6em; text-align: center;
  background: var(--layer); border: 1px solid #383838; border-radius: 0.375em;
  transition-property: background-color, border-color, scale; transition-duration: 150ms; transition-timing-function: var(--ease);
}
[data-ui] button.acct:hover { background: #323232; }
[data-ui] button.acct:active { scale: 0.96; }
[data-ui] .acct.is-picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
[data-ui] .acct.is-front { border-color: rgba(224, 133, 102, 0.7); }
[data-ui] .acct__num { position: absolute; left: 0.6em; top: 0.6em; width: 1.25em; height: 1.25em; display: grid; place-items: center; background: #3a3a3a; border-radius: 0.2em; font-size: 0.75em; line-height: 1; }
[data-ui] .acct.is-picked .acct__num { background: var(--accent); color: var(--on-accent); }
[data-ui] .acct__av { position: relative; width: 3.5em; height: 3.5em; display: grid; place-items: center; border-radius: 50%; font-weight: 600; color: #fff; }
[data-ui] .acct__av--main img { width: 100%; height: 100%; border-radius: 22%; }
[data-ui] .acct__av--work, [data-ui] .acct__av--personal { font-size: 1.6em; width: 2.19em; height: 2.19em; }
[data-ui] .acct__av--work { background: var(--work); }
[data-ui] .acct__av--personal { background: var(--personal); }
[data-ui] .acct__dot { position: absolute; right: -0.12em; bottom: -0.12em; width: 1.05em; height: 1.05em; border-radius: 50%; background: #5fcb5f; border: 0.16em solid var(--layer); opacity: 0; scale: 0.25; transition-property: scale, opacity; transition-duration: 250ms; transition-timing-function: var(--ease); }
[data-ui] .acct__av--work .acct__dot, [data-ui] .acct__av--personal .acct__dot { font-size: 0.625em; }
[data-ui] .acct.is-open .acct__dot { opacity: 1; scale: 1; }
[data-ui] .acct__name { margin-top: 0.55em; font-size: 0.875em; font-weight: 600; }
[data-ui] .acct__status { margin-top: 0.15em; font-size: 0.75em; color: #cfcfcf; white-space: nowrap; }
[data-ui] .acct.is-open .acct__status { color: var(--open); }
[data-ui] .acct.is-launching .acct__status { color: var(--accent-text); }
[data-ui] .acct__sum { display: none; }
[data-ui] .acct__usage { width: 100%; margin-top: auto; padding: 0.45em 0.35em 0; border-top: 1px solid #3a3a3a; font-size: 0.7em; color: #cfcfcf; }
[data-ui] .acct__upd { display: block; margin-top: 0.15em; color: #9a9a9a; white-space: nowrap; }
.u { display: grid; grid-template-columns: 2em 1fr 2.4em; align-items: center; gap: 0.6em; line-height: 1.6; }
.u > span:first-child { color: #9a9a9a; text-align: left; }
.u > span:last-child { text-align: right; color: #f0f0f0; font-variant-numeric: tabular-nums; }
.ubar { display: block; height: 0.36em; background: #3d3d3d; border-radius: 1em; overflow: hidden; }
.ubar i { display: block; height: 100%; width: var(--v); background: #5fcb5f; border-radius: inherit; }
.ubar i.hi { background: var(--caution); }
[data-ui] .acct--add { background: transparent; border: 1px dashed #5a5a5a; }
[data-ui] .acct__plus { width: 2.19em; height: 2.19em; display: grid; place-items: center; border-radius: 50%; background: #333; font-size: 1.6em; font-weight: 300; color: #ddd; }
[data-ui] .acct__hint { margin-top: 1.4em; font-size: 0.75em; color: #a5a5a5; }
[data-ui] .picker__foot { display: flex; align-items: center; gap: 0.75em; min-height: 4.4em; padding: 0 1.5em; font-size: 0.875em; }
.tgl { position: relative; flex: none; width: 2.5em; height: 1.25em; border-radius: 1em; background: var(--accent); }
.tgl i { position: absolute; right: 0.22em; top: 0.22em; width: 0.81em; height: 0.81em; border-radius: 50%; background: var(--mica); }
[data-ui] .picker__tip { margin-left: auto; color: #a9a9a9; font-size: 0.93em; }
[data-ui] .picker__tip[hidden], [data-ui] .picker__many[hidden] { display: none; }
[data-ui] .picker__many { margin-left: auto; padding: 0.45em 1em; background: var(--accent); color: var(--on-accent); border-radius: 0.3em; font-weight: 600; }

/* taskbar */
[data-ui].taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 12px;
  background: rgba(28, 28, 28, 0.86); border-top: 1px solid var(--stroke);
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
  font-family: var(--text-font); color: #fff;
}
[data-ui] .taskbar__mid { display: flex; align-items: center; gap: 4px; }
[data-ui] .taskbar__apps { display: flex; gap: 4px; }
[data-ui] .tb { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px; transition-property: background-color, scale; transition-duration: 150ms; }
[data-ui] .tb:hover { background: var(--fill); }
[data-ui] button.tb:active { scale: 0.92; }
[data-ui] .tb--start svg { width: 20px; height: 20px; fill: #4cc2ff; }
[data-ui] .tb img { width: 24px; height: 24px; border-radius: 22%; }
[data-ui] .tb b { position: absolute; right: 6px; bottom: 6px; width: 12px; height: 12px; display: grid; place-items: center; border-radius: 50%; font-size: 7.5px; font-weight: 700; border: 1.5px solid #1c1c1c; color: #fff; }
[data-ui] .tb--app::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 6px; height: 3px; margin-left: -3px; border-radius: 2px; background: #9a9a9a; transition-property: width, margin, background-color; transition-duration: 200ms; transition-timing-function: var(--ease); }
[data-ui] .tb--app.is-front { background: var(--fill); }
[data-ui] .tb--app.is-front::after { width: 16px; margin-left: -8px; background: var(--accent); }
[data-ui] .tb--app.is-new { animation: tb-in 320ms var(--ease); }
@keyframes tb-in { from { translate: 0 10px; opacity: 0; } }
[data-ui] .taskbar__tray { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; gap: 6px; }
[data-ui] .tb--tray { width: 36px; height: 36px; }
[data-ui] .tb--tray img { width: 18px; height: 18px; border-radius: 0; }
[data-ui] .taskbar__hint { padding: 4px 10px; border-radius: 4px; background: rgba(224, 133, 102, 0.16); color: var(--accent-text); font-size: 12px; font-weight: 600; }
[data-ui] .taskbar__clock { padding: 0 8px; font-size: 12px; line-height: 1.35; text-align: right; }

/* ---------- sections ---------- */
.section { width: min(var(--wrap), calc(100% - 40px)); margin: 160px auto 0; }
.h2 { font-family: var(--display); font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.lead { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.head { max-width: 720px; margin-bottom: 48px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split__text { position: sticky; top: 104px; }
.split--rev { grid-template-columns: 5fr 6fr; align-items: center; }
.split--rev .split__text { position: static; }
.split .link { display: inline-block; margin-top: 20px; }

.facts { display: grid; gap: 12px; margin-top: 32px; }
.facts li { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text-2); }
.facts span { margin-left: 8px; }
.facts span kbd { margin: 0 2px; }

/* windows */
.window { overflow: hidden; background: var(--mica); border: 1px solid var(--stroke-2); border-radius: 8px; box-shadow: var(--shadow-win); }
.window__bar { position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; font-size: 12px; color: var(--text-2); }
.window__ctl { position: absolute; right: 0; top: 0; width: 138px; height: 100%; background:
  linear-gradient(currentColor, currentColor) 21px 50% / 10px 1px no-repeat,
  linear-gradient(currentColor, currentColor) 67px 50% / 10px 10px no-repeat;
  opacity: 0.0; }

/* settings window */
.settings__body { padding: 8px 32px 32px; }
.settings__h1 { font-family: var(--display); font-size: 28px; font-weight: 600; margin: 8px 0 4px; }
.settings__group { margin: 22px 0 8px; font-size: 14px; font-weight: 600; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; margin-top: 4px; padding: 12px 18px; background: var(--fill); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 6px; transition-property: background-color; transition-duration: 150ms; }
.row:hover { background: rgba(255, 255, 255, 0.075); }
.row--stack { flex-direction: column; align-items: stretch; gap: 10px; }
.row__t { font-size: 15px; }
.row__d { font-size: 13px; line-height: 1.4; color: var(--text-3); margin-top: 2px; }

.switch { position: relative; flex: none; width: 40px; height: 20px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(0, 0, 0, 0.1); transition-property: background-color, border-color; transition-duration: 150ms; }
.switch i { position: absolute; left: 4px; top: 4px; width: 10px; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.8); transition-property: translate, width, height, top, background-color; transition-duration: 200ms; transition-timing-function: var(--ease); }
.switch:hover i { width: 12px; height: 12px; top: 3px; }
.switch:active i { width: 15px; }
.switch.is-on { background: var(--accent); border-color: var(--accent); }
.switch.is-on i { translate: 20px 0; background: var(--on-accent); }
.switch.is-on:hover i { translate: 18px 0; }
.switch.is-on:active i { translate: 15px 0; }

.checks { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { position: relative; width: 20px; height: 20px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(0, 0, 0, 0.1); transition-property: background-color, border-color; transition-duration: 150ms; }
.check span::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; rotate: 45deg; opacity: 0; scale: 0.25; transition-property: opacity, scale; transition-duration: 150ms; transition-timing-function: var(--ease); }
.check input:checked + span { background: var(--accent); border-color: var(--accent); }
.check input:checked + span::after { opacity: 1; scale: 1; }
.check input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.seg { position: relative; display: flex; flex: none; padding: 2px; gap: 2px; background: rgba(0, 0, 0, 0.15); border: 1px solid var(--stroke); border-radius: 6px; }
.seg button { position: relative; z-index: 1; min-width: 52px; padding: 5px 12px; border-radius: 4px; font-size: 14px; color: var(--text-2); transition-property: color, background-color; transition-duration: 150ms; }
.seg button:hover { color: var(--text); background: var(--fill); }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }

.hotkey { flex: none; min-width: 150px; height: 34px; padding: 0 14px; border-radius: 5px; background: var(--fill); border: 1px solid var(--stroke); border-bottom: 2px solid rgba(255, 255, 255, 0.1); font-size: 14px; font-weight: 600; transition-property: border-color, background-color; transition-duration: 150ms; }
.hotkey:hover { background: var(--fill-hover); }
.hotkey.is-listening { border-color: var(--accent); border-bottom-color: var(--accent); color: var(--accent-text); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 28px 28px 0; background: var(--card); border: 1px solid var(--stroke); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition-property: border-color; transition-duration: 200ms;
}
.tile:hover { border-color: var(--stroke-2); }
.tile h3 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.tile__text p { margin-top: 6px; max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.tile__ui, .tile__shot { margin-top: 28px; flex: 1; }
.tile__shot { display: flex; align-items: flex-start; justify-content: center; padding: 6px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke); border-bottom: 0; border-radius: 12px 12px 0 0; }
.tile__shot img { width: 100%; height: auto; border-radius: 6px 6px 0 0; outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; transition: translate 600ms var(--ease); }
.tile:hover .tile__shot img { translate: 0 -6px; }
.tile--usage { grid-column: 1 / 8; grid-row: 1 / 3; }
.tile--tray { grid-column: 8 / 13; grid-row: 1 / 3; }
.tile--many { grid-column: 1 / 6; }
.tile--icons { grid-column: 6 / 13; }
.tile--themes { grid-column: 1 / 13; display: grid; grid-template-columns: 4fr 7fr; gap: 40px; padding: 0 0 0 36px; }
.tile--themes .tile__text { align-self: center; padding: 36px 0; }
.tile--themes .tile__shot { margin-top: 36px; border-right: 0; border-radius: 12px 0 0 0; }
.tile--themes .tile__shot img { border-radius: 6px 0 0 0; }
.tile__shot--icons { align-items: center; overflow: hidden; padding: 18px 6px; }
.tile__shot--icons img { width: 150%; max-width: none; border-radius: 6px; outline: 0; }

.usage { display: grid; gap: 10px; padding-bottom: 28px; }
.usage__row { display: grid; grid-template-columns: 36px 90px 1fr 1fr; align-items: center; gap: 16px; padding: 14px 16px; background: var(--layer); border: 1px solid #383838; border-radius: 8px; font-size: 14px; transition-property: border-color, translate; transition-duration: 200ms; transition-timing-function: var(--ease); }
.usage__row img { border-radius: 22%; }
.usage__row > b { font-weight: 600; }
.usage__row .ubar { height: 6px; }
.usage__row.is-hot { border-color: rgba(241, 213, 0, 0.45); }
.usage__note { margin-top: 4px; font-size: 13px; color: var(--text-3); }
.disc { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; font-weight: 600; font-style: normal; color: #fff; }
.disc--w { background: var(--work); } .disc--p { background: var(--personal); }
.disc--md { width: 34px; height: 34px; font-size: 15px; }

.many { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 28px; }
.many__c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 6px 16px; background: var(--layer); border: 1px solid var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; border-radius: 8px; font-size: 14px; font-weight: 600; }
.many__c img { border-radius: 22%; }
.tick { position: absolute; left: 8px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--on-accent); border-width: 0 2px 2px 0; rotate: 45deg; }
.many__btn { grid-column: 1 / -1; justify-self: end; padding: 8px 18px; background: var(--accent); color: var(--on-accent); border-radius: 6px; font-size: 14px; font-weight: 600; }

/* ---------- native: a process list ---------- */
.procs__scroll { overflow-x: auto; }
.procs__table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.procs__table th, .procs__table td { padding: 14px 20px; text-align: left; font-weight: 400; white-space: nowrap; }
.procs__table thead th { padding-top: 6px; padding-bottom: 10px; font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--stroke); }
.procs__table tbody th { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.procs__table tbody tr + tr { border-top: 1px solid var(--stroke); }
.procs__table tbody tr.is-us { background: rgba(224, 133, 102, 0.07); }
.procs__table .heat { background: rgba(241, 196, 15, calc(var(--h) * 0.42)); font-variant-numeric: tabular-nums; font-weight: 600; }
.ps { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; background: #012456; color: #fff; font: 700 9px/1 var(--code); }
.procs__note { padding: 14px 20px 18px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--stroke); }

/* ---------- privacy ---------- */
.checks-list { background: var(--card); border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden; }
.checks-list li { display: flex; gap: 16px; padding: 22px 24px; }
.checks-list li + li { border-top: 1px solid var(--stroke); }
.checks-list .row__t { font-weight: 600; }
.checks-list .row__d { font-size: 14px; }
.ok { position: relative; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--open); }
.ok::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #0d1a0d; border-width: 0 2px 2px 0; rotate: 45deg; }

/* ---------- how it works ---------- */
.flow { display: grid; grid-template-columns: 260px 120px 1fr; align-items: center; }
.flow__node { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--stroke); border-radius: 10px; }
.flow__node img { border-radius: 22%; }
.flow__node--src img { border-radius: 0; }
.flow__node p { display: flex; flex-direction: column; font-size: 15px; line-height: 1.35; }
.flow__node p span { font-size: 13px; color: var(--text-3); }
.flow__node code { flex-basis: 100%; margin-top: 8px; padding: 6px 10px; border-radius: 5px; background: rgba(0, 0, 0, 0.25); color: var(--accent-text); font-size: 13px; overflow-wrap: anywhere; }
.flow__node:first-child code { color: var(--text-3); }
.flow__col { display: grid; gap: 14px; }
.flow__lines { width: 100%; height: 100%; min-height: 300px; overflow: visible; }
.flow__lines path { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; }
@media (prefers-reduced-motion: no-preference) { .flow__lines path { animation: flow 1.2s linear infinite; } }
@keyframes flow { to { stroke-dashoffset: -20; } }
.shared { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--stroke); }
.shared__h { margin-bottom: 6px; font-weight: 600; }
.shared p:not(.shared__h) { font-size: 15px; color: var(--text-2); }

/* ---------- download dialog ---------- */
.dialog { display: grid; grid-template-columns: 7fr 5fr; overflow: hidden; background: var(--mica); border: 1px solid var(--stroke-2); border-radius: 12px; box-shadow: var(--shadow-win); }
.dialog__main { position: relative; isolation: isolate; padding: 48px; }
.dialog__main::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(70% 60% at 0% 0%, rgba(224, 133, 102, 0.14), transparent 70%); }
.dialog__icon { margin-bottom: 24px; }
.arch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 24px; }
.arch__opt { position: relative; cursor: pointer; }
.arch__opt input { position: absolute; opacity: 0; }
.arch__opt span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px 14px 44px; background: var(--fill); border: 1px solid var(--stroke); border-radius: 8px; font-size: 13px; color: var(--text-3); transition-property: background-color, border-color; transition-duration: 150ms; }
.arch__opt span b { font-size: 15px; color: var(--text); }
.arch__opt span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); transition-property: border-width, border-color; transition-duration: 150ms; }
.arch__opt:hover span { background: var(--fill-hover); }
.arch__opt input:checked + span { border-color: rgba(224, 133, 102, 0.6); background: rgba(224, 133, 102, 0.08); }
.arch__opt input:checked + span::before { border: 5px solid var(--accent); }
.arch__opt input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.dialog__main .caption { margin-top: 18px; }
.dialog__side { display: flex; flex-direction: column; gap: 24px; padding: 48px 40px; background: #1a1a1a; border-left: 1px solid var(--stroke); }
.steps { display: grid; gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-left: 44px; counter-increment: s; font-size: 15px; color: var(--text-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); border: 1px solid var(--stroke-2); font-size: 13px; font-weight: 600; color: var(--text); }
.steps b { color: var(--text); }
.infobar { display: flex; gap: 12px; margin-top: auto; padding: 14px 16px; background: #433519; border: 1px solid rgba(252, 225, 0, 0.18); border-radius: 6px; font-size: 14px; color: var(--text-2); }
.infobar b { color: var(--text); }
.infobar__ico { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #fce100; color: #000; font: 700 12px/1 var(--text-font); font-style: normal; }

/* ---------- faq: expanders ---------- */
.expanders { display: grid; gap: 4px; max-width: 880px; }
.expanders details { background: var(--card); border: 1px solid var(--stroke); border-radius: 8px; transition-property: background-color; transition-duration: 150ms; }
.expanders details:hover { background: #1f1f1f; }
.expanders summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 20px; list-style: none; cursor: pointer; font-size: 16px; }
.expanders summary::-webkit-details-marker { display: none; }
.expanders summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 6px; border: solid var(--text-2); border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -2px; transition-property: rotate, translate; transition-duration: 200ms; transition-timing-function: var(--ease); }
.expanders details[open] summary::after { rotate: -135deg; translate: 0 2px; }
.expanders details p { max-width: 70ch; padding: 16px 20px 20px; border-top: 1px solid var(--stroke); font-size: 15px; color: var(--text-2); }
.expanders details[open] p { animation: open 250ms var(--ease); }
.expanders a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
@keyframes open { from { opacity: 0; translate: 0 -4px; } }

/* ---------- footer: About ---------- */
.about { width: min(var(--wrap), calc(100% - 40px)); margin: 160px auto 0; padding-bottom: 48px; }
.about__card { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: var(--card); border: 1px solid var(--stroke); border-radius: 12px; }
.about__name { font-family: var(--display); font-size: 20px; font-weight: 600; }
.about__ver { font-size: 14px; color: var(--text-3); }
.about__ver span { margin: 0 6px; }
.about__dl { margin-left: auto; }
.about__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 24px 0; }
.about__h { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.about__links a { display: block; width: max-content; padding: 4px 0; font-size: 14px; color: var(--accent-text); }
.about__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.about__legal { padding: 40px 24px 0; font-size: 13px; color: var(--text-3); }

/* ---------- entrances ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-enter] { opacity: 0; translate: 0 16px; animation: enter 800ms var(--ease-win) forwards; animation-delay: calc(var(--e, 0) * 90ms + 420ms); }
  .js .hero__title .w > span { display: inline-block; translate: 0 110%; animation: word 1100ms var(--ease-win) forwards; animation-delay: calc(var(--i) * 70ms + 60ms); }
  .js [data-enter="1"] { --e: 1; } .js [data-enter="2"] { --e: 2; } .js [data-enter="3"] { --e: 3; } .js [data-enter="4"] { --e: 4; }
  .js [data-reveal] { opacity: 0; translate: 0 28px; scale: 0.965; transition-property: opacity, translate, scale; transition-duration: 600ms, 900ms, 900ms; transition-timing-function: ease-out, var(--ease-win), var(--ease-win); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes enter { to { opacity: 1; translate: 0 0; } }
@keyframes word { to { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .pivot { display: none; }
  .desk__screen { height: 580px; }
  [data-ui].picker { font-size: 14px; }
  .cwin { width: 40%; height: 58%; }
  .split, .split--rev { grid-template-columns: 1fr; gap: 40px; }
  .split__text { position: static; }
  .bento > .tile { grid-column: 1 / -1; grid-row: auto; }
  .tile--themes { grid-template-columns: 1fr; gap: 0; padding: 28px 28px 0; }
  .tile--themes .tile__text { padding: 0; }
  .tile--themes .tile__shot { margin-top: 28px; border-right: 1px solid var(--stroke); border-radius: 12px 12px 0 0; }
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow__lines { display: none; }
  .flow__col { padding-left: 24px; border-left: 2px dashed rgba(255, 255, 255, 0.15); }
  .dialog { grid-template-columns: 1fr; }
  .dialog__side { border-left: 0; border-top: 1px solid var(--stroke); }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
  .titlebar { padding: 0 12px; }
  .titlebar__app span { font-size: 13px; }
  .titlebar__gh { display: none; }
  .hero { padding-top: 56px; }
  .hero__title { font-size: 9.4vw; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 100%; height: 48px; }
  .desk { margin-top: 44px; padding: 5px; border-radius: 16px; }
  .desk__screen { height: auto; padding: 14px 10px 62px; border-radius: 11px; }
  .cwin { display: none; }
  [data-ui].picker { position: relative; left: auto; top: auto; translate: none; width: 100%; font-size: 15px; }
  /* the picker becomes the app's own tray flyout: one row per account */
  [data-ui] .picker__head { padding: 0.4em 1em 0.6em; }
  [data-ui] .picker__cards { grid-template-columns: 1fr; gap: 0; padding: 0; }
  [data-ui] .acct { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto auto; column-gap: 0.9em; align-items: center; height: auto; padding: 0.7em 1.1em; background: transparent; border: 0; border-radius: 0; text-align: left; }
  [data-ui] button.acct:hover { background: var(--fill); }
  [data-ui] .acct.is-picked { box-shadow: 0 0 0 2px var(--accent) inset; }
  [data-ui] .acct.is-front { background: var(--fill); }
  [data-ui] .acct__av { grid-row: 1 / 4; grid-column: 1; width: 2.6em; height: 2.6em; }
  [data-ui] .acct__av--work, [data-ui] .acct__av--personal { width: 2.17em; height: 2.17em; font-size: 1.2em; }
  [data-ui] .acct__name { grid-column: 2; margin: 0; font-size: 1em; }
  [data-ui] .acct__status { grid-column: 2; grid-row: 2; margin: 0; font-size: 0.85em; }
  [data-ui] .acct__sum { display: block; grid-column: 2; grid-row: 3; font-size: 0.8em; color: #a9a9a9; }
  [data-ui] .acct__num { position: static; grid-column: 3; grid-row: 1 / 4; width: 1.7em; height: 1.7em; font-size: 0.85em; }
  [data-ui] .acct__usage, [data-ui] .acct--add, [data-ui] .picker__tip { display: none; }
  [data-ui] .picker__foot { flex-wrap: wrap; min-height: 0; padding: 0.9em 1em; }
  [data-ui] .picker__many { margin-left: 0; }
  [data-ui] .taskbar__hint, [data-ui] .taskbar__clock { display: none; }
  [data-ui].taskbar { justify-content: flex-start; }
  .section { width: calc(100% - 32px); margin-top: 112px; }
  .lead { font-size: 17px; }
  .settings__body { padding: 4px 14px 18px; }
  .row { flex-wrap: wrap; padding: 12px 14px; }
  .row > div:first-child { flex: 1 1 200px; }
  .row--stack > div:first-child { flex: none; }
  .seg button { min-width: 0; padding: 5px 10px; }
  .tile { padding: 22px 20px 0; }
  .usage__row { grid-template-columns: 32px 1fr; gap: 6px 12px; }
  .usage__row > .u { grid-column: 1 / -1; }
  .usage__row img, .usage__row .disc { width: 32px; height: 32px; }
  .many__c { padding-top: 24px; font-size: 13px; }
  .tile__shot--icons img { width: 260%; }
  .shared { grid-template-columns: 1fr; gap: 20px; }
  .dialog__main, .dialog__side { padding: 28px 20px; }
  .arch { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
  .about__card { flex-wrap: wrap; }
  .about__dl { margin-left: 0; }
  .about__links { grid-template-columns: 1fr 1fr; padding: 32px 4px 0; }
  .about__legal { padding: 32px 4px 0; }
}

/* =====================================================================
   Motion layer: headline words, the shortcut story, the marquee, the race, Fluent reveal light
   ===================================================================== */
.hero__title .w { display: inline-block; overflow: clip; padding: 0 0.04em 0.12em; margin: 0 -0.04em -0.12em; vertical-align: top; }

/* ---------- the shortcut story (static by default; pinned when motion.js runs) ---------- */
.story { width: min(var(--wrap), calc(100% - 40px)); margin: 160px auto 0; }
.story__stage { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.story__title { margin-bottom: 20px; font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--accent-text); }
.story__steps { display: grid; gap: 6px; }
.story__steps li { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; }
.story__steps b { color: var(--accent-text); font-weight: 600; }
.story__bar { display: none; }
.story__scene {
  position: relative; height: 520px; overflow: hidden; border-radius: 16px; border: 1px solid var(--stroke);
  background:
    radial-gradient(55% 50% at 50% 100%, rgba(224, 133, 102, 0.22), transparent 70%),
    radial-gradient(45% 60% at 0% 10%, rgba(61, 119, 166, 0.28), transparent 70%),
    radial-gradient(40% 55% at 100% 20%, rgba(63, 138, 88, 0.2), transparent 70%),
    #121419;
}
.story__keys { position: absolute; left: 50%; bottom: 44px; translate: -50% 0; display: flex; gap: 14px; }
.key3d {
  --press: 0;
  position: relative; display: block; width: 124px; height: 114px; border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, #4a3229 calc(var(--press) * 100%), #343434), color-mix(in srgb, #3a2620 calc(var(--press) * 100%), #262626));
  border: 1px solid rgba(255, 255, 255, calc(0.09 + var(--press) * 0.3));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 calc((1 - var(--press)) * 8px + 1px) 0 #151515,
    0 calc((1 - var(--press)) * 14px + 6px) 26px rgba(0, 0, 0, 0.5),
    0 0 calc(var(--press) * 46px) rgba(224, 133, 102, calc(var(--press) * 0.55));
  translate: 0 calc(var(--press) * 7px);
}
.key3d span { position: absolute; left: 17px; top: 14px; font: 600 21px/1 var(--text-font); color: color-mix(in srgb, #ffc2ab calc(var(--press) * 100%), #eeeeee); }
.key3d--num { margin-left: 26px; width: 100px; }
.story__picker {
  position: absolute; left: 5%; top: 34px; width: 58%;
  padding: 18px 18px 20px; background: var(--mica); border: 1px solid var(--stroke-2); border-radius: 10px; box-shadow: var(--shadow-win);
  font-family: var(--text-font);
}
.story__ph { margin-bottom: 14px; font-family: var(--display); font-size: 18px; font-weight: 600; }
.story__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 6px 14px; background: var(--layer); border: 1px solid #383838; border-radius: 8px; font-size: 13px; }
.sc img { border-radius: 22%; }
.sc em { position: absolute; left: 7px; top: 7px; width: 18px; height: 18px; display: grid; place-items: center; background: #3a3a3a; border-radius: 3px; font: normal 11px/1 var(--text-font); }
.sc.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.sc.is-on em { background: var(--accent); color: var(--on-accent); }
.story__win { position: absolute; right: 5%; top: 150px; width: 44%; height: 210px; display: flex; flex-direction: column; background: var(--mica); border: 1px solid var(--stroke-2); border-radius: 8px; box-shadow: var(--shadow-win); }
.story__winbody { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.disc--xl { width: 64px; height: 64px; margin-bottom: 10px; font-size: 28px; }

html.motion .story { width: 100%; height: 440svh; margin-top: 120px; }
html.motion .story__stage { position: sticky; top: 56px; height: calc(100svh - 56px); width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
html.motion .story__steps { position: relative; display: block; height: 3.2em; font-size: clamp(40px, 4.6vw, 68px); }
html.motion .story__steps li { position: absolute; inset: 0 0 auto; font-size: 1em; line-height: 1.04; letter-spacing: -0.035em; }
html.motion .story__bar { position: relative; display: block; height: 3px; max-width: 320px; margin-top: 36px; border-radius: 2px; background: var(--stroke-2); overflow: hidden; }
html.motion .story__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; }
html.motion .story__scene { height: min(600px, calc(100svh - 160px)); }
html.motion .story__picker { left: 50%; width: min(440px, 80%); translate: -50% 0; }
html.motion .story__picker .story__cards { grid-template-columns: repeat(3, 1fr); }
html.motion .story__win { right: auto; left: 50%; top: 40px; width: min(460px, 82%); height: 290px; translate: -50% 0; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; margin: 0 calc(50% - 50vw) 48px; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 56px; }
@media (prefers-reduced-motion: no-preference) { .marquee__track { animation: marq 38s linear infinite; } }
@keyframes marq { to { translate: -50% 0; } }
.mq { display: inline-flex; align-items: center; gap: 18px; font-family: var(--display); font-size: clamp(40px, 6vw, 84px); font-weight: 600; letter-spacing: -0.035em; color: rgba(255, 255, 255, 0.16); white-space: nowrap; }
.mq img { width: 0.62em; height: 0.62em; border-radius: 22%; }
.mq .disc { width: 2.07em; height: 2.07em; font-size: 0.3em; }
.mq:nth-child(6n + 1), .mq:nth-child(6n + 2) { color: rgba(255, 255, 255, 0.9); }
.disc--c { background: #2f7f86; } .disc--t { background: #a8613f; } .disc--s { background: #6f7a3a; }

/* ---------- race ---------- */
.race { display: grid; grid-template-columns: 170px 1fr 110px; align-items: center; gap: 12px 18px; padding: 18px 20px; border-top: 1px solid var(--stroke); }
.race__lane { display: contents; }
.race__head { grid-column: 1 / -1; font-size: 13px; color: var(--text-3); }
.race__name { font-size: 13px; color: var(--text-3); }
.race__lane--us .race__name { color: var(--text); font-weight: 600; }
.race__track { position: relative; height: 8px; overflow: hidden; border-radius: 4px; background: var(--fill); }
.race__track i { position: absolute; inset: 0; border-radius: inherit; background: rgba(241, 196, 15, 0.55); transform-origin: left; }
.race__lane--us .race__track i { background: var(--accent); box-shadow: 0 0 12px rgba(224, 133, 102, 0.7); }
.race__time { text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.race__go { grid-column: 3; justify-self: end; }

/* ---------- Fluent reveal light: the border lights up under the pointer ---------- */
:is(.tile, .row, .expanders details, .flow__node) { position: relative; }
:is(.tile, .row, .expanders details, .flow__node)::after {
  content: ""; position: absolute; inset: 0; z-index: 3; padding: 1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, 0.5), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 250ms ease-out;
}
@media (hover: hover) {
  :is(.tile, .row, .expanders details, .flow__node):hover::after { opacity: 1; }
  .tile:hover, .flow__node:hover { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, 0.045), transparent 65%); }
}

@media (max-width: 1080px) {
  .story__stage { grid-template-columns: 1fr; gap: 28px; }
  html.motion .story__stage { align-content: center; }
  html.motion .story__steps { height: 2.6em; font-size: clamp(32px, 6vw, 52px); }
  html.motion .story__scene { height: min(460px, calc(100svh - 300px)); }
}
@media (max-width: 680px) {
  .story { width: calc(100% - 32px); margin-top: 112px; }
  html.motion .story { height: 380svh; }
  html.motion .story__stage { width: calc(100% - 32px); gap: 18px; }
  html.motion .story__steps { height: 2.3em; font-size: 30px; }
  html.motion .story__bar { margin-top: 18px; }
  .story__scene { height: 420px; }
  html.motion .story__scene { height: min(420px, calc(100svh - 260px)); min-height: 340px; }
  .story__keys { bottom: 26px; gap: 8px; }
  .key3d { width: 64px; height: 60px; border-radius: 11px; }
  .key3d span { left: 9px; top: 8px; font-size: 13px; }
  .key3d--num { width: 54px; margin-left: 12px; }
  .story__picker, html.motion .story__picker { left: 50%; top: 18px; width: 88%; padding: 12px; translate: -50% 0; }
  .story__picker .story__cards, html.motion .story__picker .story__cards { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .sc { padding: 18px 2px 10px; font-size: 12px; }
  .sc img, .sc .disc { width: 30px; height: 30px; font-size: 13px; }
  .story__win { display: none; }
  html.motion .story__win { display: flex; left: 50%; top: 18px; width: 86%; height: 200px; }
  .race { grid-template-columns: 1fr auto; }
  .race__track { grid-column: 1 / -1; }
  .race__go { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- download dialog (Fluent ContentDialog) ---------- */
.getdlg { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--stroke-2); border-radius: 8px; background: transparent; color: var(--text); box-shadow: var(--shadow-win); overflow: hidden; }
.getdlg::backdrop { background: rgba(0, 0, 0, 0.45); }
.getdlg[open] { animation: dlg-in 260ms var(--ease-win); }
.getdlg[open]::backdrop { animation: fade-in 200ms ease-out; }
@keyframes dlg-in { from { opacity: 0; scale: 1.05; } }
@keyframes fade-in { from { opacity: 0; } }
.getdlg__box { display: block; }
.getdlg__body { padding: 24px; background: #2b2b2b; }
.getdlg__head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.getdlg__head h2 { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.25; }
.getdlg__head p { font-size: 14px; color: var(--text-2); }
.getdlg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.getdlg__opt { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--fill); border: 1px solid var(--stroke); border-radius: 6px; font-size: 13px; color: var(--text-3); transition-property: background-color, border-color, scale; transition-duration: 150ms; transition-timing-function: var(--ease); }
.getdlg__opt b { font-size: 17px; color: var(--text); }
.getdlg__opt:hover { background: rgba(224, 133, 102, 0.1); border-color: rgba(224, 133, 102, 0.55); }
.getdlg__opt:active { scale: 0.97; }
.getdlg__hint { margin-top: 16px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.getdlg__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; background: var(--mica); border-top: 1px solid var(--stroke); }
html:has(.getdlg[open]) { overflow: hidden; }

/* ---------- download notice (Fluent InfoBar, success) ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; display: flex; align-items: flex-start; gap: 12px; width: min(560px, calc(100vw - 24px)); padding: 14px 12px 14px 16px; background: #393d1b; border: 1px solid rgba(108, 203, 95, 0.25); border-radius: 8px; box-shadow: var(--shadow-win); translate: -50% 16px; opacity: 0; transition-property: translate, opacity; transition-duration: 300ms, 200ms; transition-timing-function: var(--ease-win), ease-out; }
.toast[hidden] { display: none; }
.toast.is-in { translate: -50% 0; opacity: 1; }
.toast__ico { position: relative; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--open); }
.toast__ico::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #0d1a0d; border-width: 0 2px 2px 0; rotate: 45deg; }
.toast__t { font-size: 15px; font-weight: 600; }
.toast__s { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.toast__s a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.toast__x { flex: none; margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; font-size: 12px; color: var(--text-2); }
.toast__x:hover { background: var(--fill); color: var(--text); }
@media (max-width: 680px) { .getdlg__opts { grid-template-columns: 1fr; } .getdlg__foot .caption { display: none; } }
.getdlg__box:focus { outline: none; }
