/* Minimalist: the website. One ground (near black), one accent (vermilion),
   hairlines instead of shadows, the browser's own typefaces. */

@font-face { font-family: 'Geist'; src: url('../fonts/geist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-ext-400-italic.woff2') format('woff2'); font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #070707;
  --bg-2: #0d0d0c;
  --bg-3: #141413;
  --fg: #ecebe6;
  --fg-2: #a6a49d;
  --fg-3: #8a8882;
  --fg-4: #55544f;
  --line: rgba(236, 235, 230, 0.08);
  --line-2: rgba(236, 235, 230, 0.15);
  --line-3: rgba(236, 235, 230, 0.32);
  --accent: #e0583d;
  --paper: #f1efe9;
  --ink: #161615;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
/* the fields grow into the room their row leaves, never past it */
.addr input, .goto input, .find .q input, .ans .q input { flex: 1 1 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-weight: 400; }
.label { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.dot { color: var(--accent); }
@keyframes caret { 50% { opacity: 0; } }
@keyframes fresh { from { opacity: 0; transform: translateY(14px); } }
@keyframes appear { from { opacity: 0; } }

/* the guide cursor: the demos, left alone, are used by it */
.ghost, .guide { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 30; pointer-events: none; }
.ghost { opacity: 0; transition: transform 0.8s var(--ease-out), opacity 0.35s; }
.ghost.on { opacity: 1; }
.ghost svg, .guide svg { width: 100%; height: 100%; fill: #f1efe9; stroke: #070707; stroke-width: 1.3; stroke-linejoin: round; transition: transform 0.14s; transform-origin: 20% 10%; }
.ghost.press svg { transform: scale(0.82); }

/* a field being typed into by the guide: its caret drawn, the page's focus left where it was */
.fake-caret { display: none; flex: none; width: 1px; height: 1.1em; background: var(--fg); animation: caret 1s steps(1) infinite; }
input.fake { flex: 0 1 auto !important; field-sizing: content; min-width: 1ch; }
input.fake + .fake-caret { display: block; }

/* ---- scroll progress and the nav ---------------------------------------------------------- */

.progress { position: fixed; left: 0; top: 0; height: 1px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(7, 7, 7, 0.78); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.brand span { font: 400 25px/1 var(--serif); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--fg-2); transition: color 0.3s, border-color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s var(--ease-out); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-links .lang { font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 9px; }
.nav-links .lang::after { display: none; }
.nav-links .lang:hover { border-color: var(--line-3); }
.nav-menu { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-menu span { display: block; width: 18px; height: 1px; background: var(--fg); box-shadow: 0 6px 0 var(--fg); transform: translateY(-3px); }

/* ---- buttons ------------------------------------------------------------------------------- */

.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.005em; overflow: hidden; isolation: isolate; transition: transform 0.4s var(--ease-out), color 0.4s, border-color 0.4s, opacity 0.3s; will-change: transform; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform 0.55s var(--ease-out); }
.btn-solid:hover { color: #fff; }
.btn-solid:hover::before { transform: translateY(0); }
.btn-line { border: 1px solid var(--line-2); color: var(--fg); }
.btn-line:hover { border-color: var(--line-3); }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; gap: 10px; }
.btn-small .kbd kbd { font-size: 10px; padding: 3px 5px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn[aria-disabled='true'] { color: var(--fg-3); border-color: var(--line); cursor: default; }
.soon { font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 8px; }
.mini { height: 26px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); transition: border-color 0.2s, opacity 0.2s, background 0.2s; }
.mini:hover:not(:disabled) { border-color: var(--fg); }
.mini:disabled { opacity: 0.35; cursor: default; }

/* ---- the hero ------------------------------------------------------------------------------ */

.hero { position: relative; padding-top: clamp(136px, 18vh, 200px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.hero h1 { margin: 0; font: 400 clamp(58px, 10.2vw, 168px)/0.9 var(--serif); letter-spacing: -0.035em; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--fg); }
.hero-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero-sub p { margin: 0; max-width: 520px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--fg-2); }
.hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.hero-cta .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero-meta { font: 400 11.5px/1.5 var(--mono); color: var(--fg-3); letter-spacing: 0.02em; }

/* words rise in, line by line */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.split.in .w > span { transform: none; }

/* ---- the browser window, drawn ---------------------------------------------------------------- */

.stage { position: relative; margin-top: clamp(56px, 8vw, 96px); }
.win { position: relative; aspect-ratio: 16 / 9.4; border-radius: 18px; border: 1px solid var(--line-2); background: var(--paper); overflow: hidden; isolation: isolate; user-select: none; }
.hint { display: flex; justify-content: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.hint span { display: inline-flex; align-items: center; gap: 8px; transition: color 0.4s; }
.hint span::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: 0.5; }
.hint span.on { color: var(--fg); }

/* the page itself, one of several: an essay set like a magazine, notes, a guide, apps */
.page { position: absolute; inset: 0; background: var(--paper); color: var(--ink); padding: 7% 12% 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-content: start; gap: 7%; transition: filter 0.6s var(--ease); }
.page .wide { grid-column: 1 / -1; }
.page .kicker { font: 500 clamp(7px, 0.8vw, 11px)/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #8a867d; }
.page h3 { margin: 4% 0 5%; font: 400 clamp(26px, 4.4vw, 70px)/0.95 var(--serif); letter-spacing: -0.03em; }
.page h3 em { color: var(--accent); }
.page .lines { display: grid; gap: clamp(5px, 0.7vw, 10px); }
.page .lines i { display: block; height: clamp(3px, 0.42vw, 6px); border-radius: 3px; background: #d9d6ce; }
.page .lines i:nth-child(3n) { width: 82%; }
.page .lines i:nth-child(4n+1) { width: 94%; }
.page .figure { margin-top: 2%; aspect-ratio: 4 / 5; border-radius: 6px; background: #e3dfd6; position: relative; overflow: hidden; }
.page .figure::before { content: ''; position: absolute; left: 18%; top: 22%; width: 64%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #b9b3a7; }
.page .figure::after { content: ''; position: absolute; left: 0; right: 0; bottom: 30%; height: 1px; background: #b9b3a7; }
.pg-notes, .pg-home { background: #1a1a18; color: var(--fg); }
.pg-notes .lines i, .pg-home .lines i { background: #34332f; }
.pg-notes .kicker, .pg-home .kicker { color: #77756f; }
.checks { display: grid; align-content: start; margin-top: 14%; font: 400 clamp(8px, 1.1vw, 15px)/1.3 var(--sans); color: #c9c6be; }
.checks span { display: flex; gap: 0.8em; align-items: center; padding: 0.9em 0; border-bottom: 1px solid #2e2d2a; }
.checks i { width: 1em; height: 1em; flex: none; border: 1px solid #6b6a64; border-radius: 4px; }
.checks .done { color: #77756f; text-decoration: line-through; }
.checks .done i { background: var(--accent); border-color: var(--accent); }
.birds { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; margin-top: 4%; }
.birds i { aspect-ratio: 1; border-radius: 6px; background: #dfe3dc; position: relative; }
.birds i::before { content: ''; position: absolute; left: 26%; top: 30%; width: 48%; aspect-ratio: 1.3; border-radius: 52% 48% 46% 54%; background: #9fae9c; }
.birds i:nth-child(2)::before { background: #c4a27a; }
.birds i:nth-child(3)::before { background: #7f8f9e; }
.birds i:nth-child(4)::before { background: #b8b29a; }
.specimen { margin-top: 6%; display: grid; gap: 10%; }
.specimen b { font: 400 clamp(60px, 12vw, 190px)/0.8 var(--serif); letter-spacing: -0.04em; font-weight: 400; }
.specimen .scale { display: grid; gap: 8px; }
.specimen .scale i { display: block; height: 1px; background: #b9b3a7; }
.specimen .scale i:nth-child(2) { width: 80%; } .specimen .scale i:nth-child(3) { width: 64%; } .specimen .scale i:nth-child(4) { width: 50%; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2%; margin-top: 2%; }
.week span { border-top: 1px solid #c9c4b9; padding-top: 8%; display: grid; gap: 8px; align-content: start; }
.week i { height: clamp(14px, 2.8vw, 44px); border-radius: 6px; background: #dcd8cf; }
.week i.a { background: var(--accent); opacity: 0.85; }
.homepg h3 { margin-bottom: 3%; }
.pgo { display: block; max-width: 60%; margin-bottom: 4%; padding: 1.2em 1.4em; border: 1px solid #3a3935; border-radius: 10px; color: #8a8882; font: 400 clamp(8px, 1.05vw, 14px)/1 var(--sans); }
.rec { display: grid; max-width: 60%; font: 400 clamp(8px, 1.1vw, 15px)/1.3 var(--sans); color: #c9c6be; }
.rec span { padding: 0.9em 0; border-bottom: 1px solid #2e2d2a; }
.mailpg { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 6%; }
.inbox span { display: block; padding: 0.9em 1em; border-bottom: 1px solid #dcd8cf; font: 400 clamp(7px, 0.95vw, 13px)/1.35 var(--sans); color: #6b6a64; }
.inbox b { display: block; color: var(--ink); font-weight: 500; }
.inbox .on { background: #e6e2d9; border-radius: 6px; }
.msg h3 { margin-top: 3%; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.2%; margin-top: 2%; }
.month i { aspect-ratio: 1.7; border-radius: 6px; background: #e6e2d9; position: relative; }
.month i.a::after { content: ''; position: absolute; left: 12%; top: 18%; width: 40%; height: 14%; border-radius: 2px; background: var(--accent); opacity: 0.8; }
.month i.now { outline: 1px solid var(--accent); outline-offset: -1px; }
.searchpg .res { display: grid; gap: 1.6em; margin-top: 4%; max-width: 70%; }
.res span { display: grid; gap: 8px; }
.res b { height: clamp(6px, 1vw, 14px); width: 50%; background: #5b7fa6; opacity: 0.6; border-radius: 3px; }
.res i { display: block; height: clamp(3px, 0.42vw, 6px); background: #d9d6ce; border-radius: 3px; }
.res i + i { width: 78%; }
.pg-search .kicker { font-size: clamp(8px, 1vw, 13px); }

/* the browser's own parts: glass over the page, out of sight until an edge is reached */
.glass { background: rgba(22, 22, 21, 0.86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--fg); }
.ib { flex: none; display: grid; place-items: center; width: clamp(18px, 2.3vw, 32px); aspect-ratio: 1; border-radius: 8px; color: var(--fg-2); transition: background 0.2s, color 0.2s, opacity 0.2s; }
.ib svg { width: 58%; height: 58%; }
.ib:hover { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.ib.off { opacity: 0.3; pointer-events: none; }
.ui-bar { position: absolute; left: 1.4%; right: 1.4%; top: 2.2%; height: 8.6%; z-index: 3; border-radius: 12px; display: flex; align-items: center; gap: 0.6%; padding: 0 1%; transform: translateY(-140%); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.5s; }
.ui-bar .addr { flex: 1; min-width: 0; height: 66%; margin: 0 0.6%; border-radius: 8px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; gap: 1%; padding: 0 0.3% 0 1.4%; font: 400 clamp(8px, 1vw, 13.5px)/1 var(--sans); }
.ui-bar .addr .ic { width: clamp(9px, 1.1vw, 15px); height: clamp(9px, 1.1vw, 15px); color: var(--fg-3); flex: none; }
.ui-bar .addr input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; padding: 0; font: inherit; color: var(--fg); }
.ui-bar .addr input::placeholder { color: var(--fg-3); }
.ui-bar .star { margin-left: auto; width: clamp(16px, 2vw, 28px); }
.ui-bar .star.on { color: var(--accent); }
.ui-bar .star.on svg { fill: currentColor; }
.ui-bar .wc { display: flex; margin-left: 0.8%; color: var(--fg-3); }
.ui-bar .wc svg { width: clamp(10px, 1.1vw, 15px); height: clamp(10px, 1.1vw, 15px); margin: 0 clamp(3px, 0.55vw, 9px); }
.ui-bar .load { position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.ui-bar .load.run { animation: loadbar 0.9s var(--ease-out); }
@keyframes loadbar { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
/* the suggestions under the address */
.sug { position: absolute; left: 11%; right: 18%; top: calc(100% + 6px); padding: 6px; border-radius: 12px; background: rgba(22, 22, 21, 0.97); border: 1px solid rgba(255, 255, 255, 0.1); display: none; font: 400 clamp(8px, 0.95vw, 13px)/1.2 var(--sans); }
.sug.on { display: grid; gap: 2px; animation: appear 0.2s; }
.sug .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 0.7em 0.8em; border-radius: 8px; text-align: left; color: var(--fg-2); }
.sug .row.sel, .sug .row:hover { background: rgba(255, 255, 255, 0.07); color: var(--fg); }
.sug .ic { width: 1.15em; height: 1.15em; color: var(--fg-3); display: grid; }
.sug .ic svg { width: 100%; height: 100%; }
.sug .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.sug .t b { font-weight: 600; }
.sug .u { margin-left: 0.8em; color: var(--fg-3); font: 400 0.85em/1 var(--mono); }
.sug .tag { font: 400 0.8em/1 var(--mono); color: var(--fg-3); }
.sug .note { display: flex; gap: 10px; align-items: center; padding: 0.7em 0.8em; color: var(--fg-2); font-size: 0.9em; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.sug .note .ic { color: var(--accent); }
.sug .foot { padding: 0.5em 0.8em 0.3em; font: 400 0.78em/1 var(--mono); color: var(--fg-3); display: flex; gap: 4px; align-items: center; white-space: pre; }
.sug .foot kbd { font-size: 1em; padding: 3px 5px; }
/* the dock: Home, an open app, the five tabs, the plus */
.ui-dock { position: absolute; left: 50%; bottom: 2.8%; width: min(84%, 1060px); z-index: 3; transform: translate(-50%, 150%); opacity: 0; border-radius: 16px; padding: 1% 1.1%; display: flex; align-items: stretch; gap: 1%; transition: transform 0.7s var(--ease-out), opacity 0.5s; }
.slim { flex: none; width: 5.6%; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); display: grid; place-items: center; color: var(--fg-2); font: 400 clamp(10px, 1.4vw, 20px)/1 var(--serif); transition: border-color 0.2s, color 0.2s; }
.slim svg { width: 48%; height: auto; }
.slim:hover { border-color: rgba(255, 255, 255, 0.3); }
.slim.on { border-color: var(--fg); color: var(--fg); }
.tabcs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6%; }
.plus { flex: none; width: 4.6%; display: grid; place-items: center; border-radius: 8px; color: var(--fg-2); border: 1px dashed rgba(255, 255, 255, 0.18); transition: border-color 0.2s, color 0.2s; }
.plus svg { width: 56%; height: auto; }
.plus:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--fg); }
.tabc { display: grid; gap: 7%; min-width: 0; text-align: left; }
.tabc .shot { display: block; aspect-ratio: 16 / 10; border-radius: 6px; background: #e9e6df; border: 1px solid rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; transition: border-color 0.2s; }
.tabc .shot::before { content: ''; position: absolute; left: 12%; right: 30%; top: 22%; height: 14%; border-radius: 2px; background: #c8c3b8; }
.tabc .shot::after { content: ''; position: absolute; left: 12%; right: 16%; top: 48%; height: 30%; background: repeating-linear-gradient(#d6d2c9 0 2px, transparent 2px 6px); }
.tabc:hover .shot { border-color: rgba(255, 255, 255, 0.4); }
.tabc .t { font: 400 clamp(6px, 0.75vw, 11px)/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-2); }
.tabc.on .shot { border-color: var(--fg); }
.tabc.on .t { color: var(--fg); }
.tabc.s-notes .shot { background: #22221f; }
.tabc.s-notes .shot::before { background: #4b4a45; }
.tabc.s-notes .shot::after { background: repeating-linear-gradient(#3a3935 0 2px, transparent 2px 6px); }
.tabc.s-guide .shot { background: #dfe3df; }
.tabc.s-guide .shot::before { background: #9fae9c; }
.tabc.s-type .shot::before { right: 56%; height: 30%; background: #2a2a28; border-radius: 3px; }
.tabc.s-plan .shot::after { background: repeating-linear-gradient(90deg, #d6d2c9 0 18%, transparent 18% 21%); }
.tabc.s-search .shot::before { background: #8ea3bb; }
/* the left side: apps and tools */
.ui-side { position: absolute; left: 1.2%; top: 13%; bottom: 3%; width: 8.4%; z-index: 3; border-radius: 16px; padding: 1.4% 0.8%; display: flex; flex-direction: column; align-items: center; gap: 4%; transform: translateX(-130%); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.5s; }
.ui-side .lab { display: flex; justify-content: space-between; width: 100%; padding: 0 8%; font: 500 clamp(5px, 0.6vw, 9px)/1 var(--mono); letter-spacing: 0.12em; color: var(--fg-3); }
.ui-side .lab i { font-style: normal; }
.ui-side .app { width: 64%; aspect-ratio: 1; border-radius: 22%; border: 1px solid rgba(255, 255, 255, 0.14); background: #1d1d1b; display: grid; place-items: center; font: 400 clamp(9px, 1.3vw, 19px)/1 var(--serif); transition: border-color 0.2s; }
.ui-side .app:hover { border-color: rgba(255, 255, 255, 0.45); }
.ui-side .app.on { border-color: var(--accent); }
.ui-side hr { width: 70%; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 4% 0; }
/* a tool, beside the page */
.tool { position: absolute; left: 1.2%; top: 13%; bottom: 3%; width: 21%; z-index: 2; border-radius: 14px; padding: 1.6%; display: flex; flex-direction: column; gap: 8%; font: 400 clamp(7px, 0.95vw, 13px)/1.4 var(--sans); transform: translateX(-112%); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.tool.on { transform: none; opacity: 1; }
.tool-head { display: flex; justify-content: space-between; align-items: center; }
.tool-head b { font: 400 clamp(12px, 1.7vw, 26px)/1 var(--serif); }
.tool-head svg { width: clamp(9px, 1.1vw, 15px); height: auto; color: var(--accent); }
.tool-body { display: grid; gap: 0.9em; color: var(--fg-2); }
.tool-body > span { padding-bottom: 0.8em; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.tool-body .caret { display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--fg); animation: caret 1s steps(1) infinite; }
.tool-body .clock { font: 300 clamp(20px, 3.6vw, 56px)/1 var(--mono); color: var(--fg); letter-spacing: -0.03em; }
.toast { position: absolute; left: 50%; top: 13.5%; z-index: 6; padding: 0.8em 1.2em; border-radius: 999px; background: rgba(22, 22, 21, 0.92); color: var(--fg); font: 500 clamp(8px, 0.9vw, 12px)/1 var(--mono); letter-spacing: 0.04em; transform: translate(-50%, -8px); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.3s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.win.edge-top .ui-bar, .win.edge-bottom .ui-dock, .win.edge-left .ui-side, .win.all .ui-bar, .win.all .ui-dock, .win.all .ui-side { transform: none; opacity: 1; }
.win.edge-bottom .ui-dock, .win.all .ui-dock { transform: translate(-50%, 0); }
.win.edge-top .page, .win.edge-bottom .page, .win.edge-left .page { filter: saturate(0.9); }
.edge-glow { position: absolute; z-index: 4; pointer-events: none; background: var(--accent); opacity: 0; transition: opacity 0.4s; }
.edge-glow.t { left: 0; right: 0; top: 0; height: 2px; }
.edge-glow.b { left: 0; right: 0; bottom: 0; height: 2px; }
.edge-glow.l { left: 0; top: 0; bottom: 0; width: 2px; }
.win.edge-top .edge-glow.t, .win.edge-bottom .edge-glow.b, .win.edge-left .edge-glow.l { opacity: 1; }

/* ---- the facts strip ------------------------------------------------------------------------- */

.strip { margin-top: clamp(96px, 12vw, 160px); border-block: 1px solid var(--line); overflow: hidden; }
.strip-in { display: flex; width: max-content; animation: drift 46s linear infinite; }
.strip:hover .strip-in { animation-play-state: paused; }
.strip ul { display: flex; margin: 0; padding: 0; list-style: none; }
.strip li { display: flex; align-items: center; gap: 28px; padding: 26px 28px; font: 400 clamp(24px, 2.6vw, 34px)/1 var(--serif); white-space: nowrap; color: var(--fg-2); transition: color 0.3s; }
.strip li:hover { color: var(--fg); }
.strip li::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 28px; }
@keyframes drift { to { transform: translateX(-50%); } }

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

.sec { padding-block: clamp(100px, 13vw, 180px); border-bottom: 1px solid var(--line); position: relative; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head .idx { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.sec-head .idx b { font-weight: 500; color: var(--fg); }
.sec-head h2 { margin: 0; font: 400 clamp(44px, 6.4vw, 104px)/0.94 var(--serif); letter-spacing: -0.03em; }
.sec-head h2 em { font-style: italic; }
.sec-head p { margin: 0; max-width: 500px; color: var(--fg-2); font-size: 17px; }
.sec-head p + p { margin-top: 14px; }
.kbd { display: inline-flex; align-items: center; gap: 4px; }
kbd { display: inline-block; font: 500 11.5px/1 var(--mono); color: var(--fg); border: 1px solid var(--line-2); border-bottom-color: var(--line-3); border-radius: 6px; padding: 5px 7px; background: var(--bg-2); }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* a framed panel for the demos */
.panel { position: relative; border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg-2); overflow: hidden; }
.panel-cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-cap .acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); transition: color 0.3s, background 0.3s; }
.seg button[aria-pressed='true'] { background: var(--fg); color: var(--bg); }
.seg.small { padding: 2px; justify-self: start; }
.seg.small button { height: 24px; padding: 0 10px; font-size: 10px; }

/* ---- 01: edges ------------------------------------------------------------------------------- */

.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 28px; }
.facts3 > div { background: var(--bg); padding: 26px; display: grid; gap: 10px; align-content: start; }
.facts3 h3 { margin: 0; font: 400 26px/1.1 var(--serif); }
.facts3 p { margin: 0; font-size: 14.5px; color: var(--fg-2); }

/* ---- 02: five tabs ---------------------------------------------------------------------------- */

.tabs-demo { padding: clamp(24px, 4vw, 52px); display: grid; gap: 30px; }
.tabs-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tabs-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 0.8fr; gap: clamp(10px, 1.4vw, 18px); align-items: start; }
.slot { display: grid; gap: 10px; }
.slot::before { content: ''; aspect-ratio: 16 / 10; border: 1px dashed var(--line-2); border-radius: 10px; }
.slot::after { content: ''; height: 21px; }
.card { position: relative; display: grid; gap: 10px; transition: transform 0.8s var(--ease-out), opacity 0.6s; cursor: pointer; text-align: left; }
.card:focus-visible { outline-offset: 6px; }
.card .shot { display: block; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); position: relative; overflow: hidden; transition: border-color 0.4s; }
.card .shot::before { content: ''; position: absolute; left: 12%; top: 18%; width: 56%; height: 14%; border-radius: 3px; background: var(--c, #c8c3b8); }
.card .shot::after { content: ''; position: absolute; left: 12%; right: 14%; top: 44%; height: 36%; background: repeating-linear-gradient(#dcd8cf 0 3px, transparent 3px 9px); }
.card:hover .shot { border-color: var(--line-3); }
.card.on .shot { border-color: var(--fg); }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); min-height: 21px; }
.card .meta span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta .mono { font-size: 10px; color: var(--fg-3); flex: none; }
.card.on .meta { color: var(--fg); }
.card.lru .shot { border-color: var(--accent); }
.card.lru .flag { opacity: 1; }
.card .flag { position: absolute; top: -10px; left: 10px; opacity: 0; transition: opacity 0.4s; font: 500 9.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 7px; border-radius: 5px; z-index: 2; }
.card.pinned .meta span:first-child::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 2px; }
.card .pin { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(7, 7, 7, 0.76); color: var(--fg); opacity: 0; transition: opacity 0.25s, color 0.25s; }
.card .pin svg { width: 14px; height: 14px; }
.card:hover .pin, .card:focus-within .pin, .card.pinned .pin { opacity: 1; }
.card.pinned .pin { color: var(--accent); }
.card .pin:disabled { opacity: 0 !important; pointer-events: none; }
.card.leaving { transform: translateY(80px) scale(0.6); opacity: 0; }
.card.arriving { transform: translateY(-30px); opacity: 0; }
.archive { align-self: stretch; border: 1px dashed var(--line-2); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 100%; min-width: 0; }
.archive .n { font: 200 clamp(36px, 4vw, 56px)/1 var(--sans); letter-spacing: -0.04em; }
.archive.bump .n { animation: bump 0.7s var(--ease-out); }
@keyframes bump { 30% { transform: translateY(-8px); color: var(--accent); } }
.arch-list { display: grid; margin-top: auto; }
.arch-list button { text-align: left; font-size: 12px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 6px 0 4px; border-top: 1px solid var(--line); transition: color 0.2s; animation: appear 0.5s; }
.arch-list button:hover { color: var(--fg); }
.tabs-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.tabs-foot p { margin: 0; font-size: 14px; color: var(--fg-2); max-width: 560px; }

/* ---- 03: Ctrl Tab ------------------------------------------------------------------------------- */

.switch-wrap { position: relative; }
.switch { position: relative; aspect-ratio: 16 / 9.4; background: #0b0b0a; border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden; }
.switch:focus-visible { outline-offset: 6px; border-radius: 18px; }
.switch-grid { position: absolute; inset: 0; padding: 4.2%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 29%); align-content: center; gap: 2.6%; }
.cell { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform 0.9s var(--ease-out), opacity 0.7s, border-color 0.3s, outline-color 0.3s; outline: 2px solid transparent; outline-offset: 3px; cursor: pointer; }
.cell::before { content: ''; position: absolute; left: 10%; top: 16%; width: 52%; height: 13%; border-radius: 3px; background: var(--c, #c8c3b8); }
.cell::after { content: ''; position: absolute; left: 10%; right: 12%; top: 40%; height: 40%; background: repeating-linear-gradient(#dcd8cf 0 2px, transparent 2px 7px); }
.cell span { position: absolute; left: 0; right: 0; bottom: 0; padding: 7% 8% 6%; font: 400 clamp(8px, 0.95vw, 13px)/1.2 var(--sans); color: var(--ink); background: rgba(241, 239, 233, 0.96); transition: opacity 0.4s; text-align: left; }
.cell.dark { background: #1f1f1d; }
.cell.dark::before { background: #4e4d48; }
.cell.dark::after { background: repeating-linear-gradient(#34332f 0 2px, transparent 2px 7px); }
.cell.dark span { color: var(--fg); background: rgba(31, 31, 29, 0.96); }
.cell:hover { border-color: var(--line-3); }
.cell.sel { outline-color: var(--fg); }
.switch.full .cell:not(.front) { opacity: 0; transform: scale(0.9); }
.switch.full .cell.front { transform: var(--grow); z-index: 3; border-radius: 0; }
.switch.full .cell.front span { opacity: 0; }
.switch-keys { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.key kbd { font-size: 13px; padding: 9px 13px; transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s; }
.key:hover kbd { border-color: var(--line-3); }
.key.down kbd { background: var(--fg); color: var(--bg); transform: translateY(1px); }
.key.hit kbd { animation: keyhit 0.32s var(--ease-out); }
@keyframes keyhit { 40% { transform: translateY(2px); background: var(--fg); color: var(--bg); } }
#switch-cap { margin-left: 10px; }

/* ---- 04: Home ---------------------------------------------------------------------------------- */

.home { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1px; background: var(--line); }
.home > div { background: var(--bg-2); padding: clamp(24px, 3.4vw, 44px); }
.home h3 { margin: 6px 0 22px; font: 400 clamp(44px, 5vw, 72px)/0.9 var(--serif); letter-spacing: -0.03em; }
.goto { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; margin-bottom: 18px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--fg-3); transition: border-color 0.3s; cursor: text; }
.goto:focus-within { border-color: var(--fg-3); }
.goto svg { width: 16px; height: 16px; flex: none; }
.goto input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; padding: 0; color: var(--fg); font: 400 15px/1 var(--sans); }
.goto input::placeholder { color: var(--fg-3); }
.recent { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.recent li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease-out), background 0.3s; }
.recent li:hover, .recent li.first { padding-left: 10px; background: rgba(255, 255, 255, 0.02); }
.recent .fav { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; font: 400 14px/1 var(--serif); }
.recent .tt { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .tt b { font-weight: 500; color: var(--accent); }
.recent .tt small { display: block; font: 400 11px/1.4 var(--mono); color: var(--fg-3); }
.recent .when { font: 400 11px/1 var(--mono); color: var(--fg-3); }
.today { display: grid; gap: 22px; align-content: start; }
.today .big { font: 400 clamp(64px, 7vw, 104px)/0.85 var(--serif); letter-spacing: -0.04em; }
.today .big small { font-size: 0.4em; color: var(--fg-3); margin-left: 6px; }
.bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: 3px; height: 120px; border-bottom: 1px solid var(--line-2); cursor: crosshair; }
.bars i { display: block; height: calc(var(--h) * 1%); background: var(--fg); border-radius: 2px 2px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease-out), background 0.2s; transition-delay: calc(var(--n) * 30ms), 0s; }
.bars i.now { background: var(--accent); }
.bars i.hot { background: var(--accent); }
.in .bars i { transform: none; }
.hours { display: flex; justify-content: space-between; font: 400 10px/1 var(--mono); color: var(--fg-3); }
.readout { display: block; margin-top: 12px; font-size: 11px; color: var(--fg-2); min-height: 1.2em; }
.sites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.site { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 14px; transition: border-color 0.3s, transform 0.5s var(--ease-out); }
.site:hover { border-color: var(--line-3); transform: translateY(-3px); }
.site b { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 400 17px/1 var(--serif); background: var(--bg-3); border: 1px solid var(--line-2); }
.site span { font-size: 12.5px; color: var(--fg-2); }
.site span small { display: block; font: 400 10px/1.5 var(--mono); color: var(--fg-3); }

/* ---- 05: bookmarks ---------------------------------------------------------------------------- */

.bm { position: relative; }
.bm-views { position: relative; aspect-ratio: 16 / 7.6; }
.bm-view { position: absolute; inset: 0; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-out); }
.bm-view[hidden] { display: block !important; opacity: 0; transform: scale(0.98); pointer-events: none; }
.bm-view svg { width: 100%; height: 100%; }
.tree-edge { fill: none; stroke: rgba(236, 235, 230, 0.22); stroke-width: 1; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s var(--ease-out), opacity 0.4s; transition-delay: calc(var(--n, 0) * 120ms); }
.in .tree-edge { stroke-dashoffset: 0; }
.tnode rect { fill: var(--bg); stroke: rgba(236, 235, 230, 0.2); transition: stroke 0.3s; }
.tnode.root rect { stroke: var(--fg); }
.tnode text { fill: var(--fg); font: 400 18px var(--sans); }
.tnode.root text { font: 400 25px var(--serif); }
.tnode .n { fill: var(--fg-3); font: 400 12px var(--mono); }
.folder { cursor: pointer; }
.folder:hover rect, .folder:focus-visible rect { stroke: var(--accent); }
.folder:focus-visible { outline: none; }
.folder.shut rect { stroke-dasharray: 4 4; }
.chev { fill: none; stroke: var(--fg-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.folder.shut .chev { transform: rotate(-90deg); }
.tcard rect.s { fill: var(--paper); stroke: rgba(236, 235, 230, 0.14); transition: stroke 0.3s; }
.tcard:hover rect.s { stroke: var(--fg); }
.tcard rect.b { fill: #c8c3b8; }
.tcard rect.l { fill: #dcd8cf; }
.tcard text { fill: var(--fg-2); font: 400 15px var(--sans); }
.tnode, .tcard { opacity: 0; transition: opacity 0.9s var(--ease-out), transform 0.5s var(--ease-out); transition-delay: calc(var(--n, 0) * 110ms + 200ms); }
.in .tnode, .in .tcard { opacity: 1; }
.bm.ready .tcard, .bm.ready .tree-edge, .bm.ready .tnode { transition-delay: 0s; }
#bm-tree .gone { opacity: 0; transform: translateX(-14px); pointer-events: none; }
.tcard.fresh { animation: fresh 0.8s var(--ease-out); }
.map-link { stroke: rgba(236, 235, 230, 0.16); stroke-width: 1; transition: stroke 0.3s; }
.map-link.cross { stroke-dasharray: 3 4; }
.map-link.hot { stroke: var(--accent); }
.mnode { cursor: grab; }
.mnode.drag { cursor: grabbing; }
.mnode.fresh { animation: appear 0.9s var(--ease-out); }
.map-node { fill: var(--fg); transition: fill 0.3s; }
.mnode.hot .map-node, .mnode.near .map-node { fill: var(--accent); }
.map-hub { fill: var(--bg-2); stroke: rgba(236, 235, 230, 0.5); transition: stroke 0.3s; }
.mnode.hot .map-hub, .mnode.near .map-hub { stroke: var(--accent); }
.map-lab { fill: var(--fg-2); font: 400 17px var(--sans); pointer-events: none; transition: fill 0.3s; }
.mnode.hot .map-lab, .mnode.near .map-lab { fill: var(--fg); }
.map-topic { fill: var(--fg-3); font: 500 13px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; }
.map .float { animation: float 7s ease-in-out infinite; }
.map .mnode:nth-of-type(2n) .float { animation-duration: 9s; animation-delay: -2s; }
.map .mnode:nth-of-type(3n) .float { animation-duration: 11s; animation-delay: -4s; }
.mnode.drag .float { animation-play-state: paused; }
@keyframes float { 50% { transform: translate(0, -6px); } }

/* ---- 06: categories ---------------------------------------------------------------------------- */

.cats { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.cat-list { display: grid; gap: 10px; }
.cat { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; text-align: left; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; transition: border-color 0.4s, background 0.4s; }
.cat:hover { border-color: var(--line-2); }
.cat[aria-pressed='true'] { border-color: var(--fg); background: rgba(255, 255, 255, 0.02); }
.cat .nm { font: 400 30px/1 var(--serif); }
.cat .ds { font-size: 13.5px; color: var(--fg-2); transition: color 0.3s; }
.cat.waiting .ds { color: var(--fg-3); font: 400 11.5px/1.6 var(--mono); }
.cat .lock { width: 16px; height: 16px; color: var(--fg-3); }
.cat .sw { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--fg-3); }
.cat.waiting .sw { border-style: dashed; }
.cat[aria-pressed='true'] .sw { background: var(--accent); border-color: var(--accent); }
.cat-stage { padding: clamp(18px, 2.4vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.cat-stage .dock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cat-stage .card { transition: transform 0.7s var(--ease-out), opacity 0.5s; transition-delay: calc(var(--n, 0) * 50ms); }
.cat-stage.swap .card { opacity: 0; transform: translateY(18px); }
.cat-stage .card .meta { font-size: 12.5px; }
.cat-stage .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-page { aspect-ratio: 16 / 7; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-2); padding: 3.4% 6% 6%; display: grid; align-content: start; gap: 10px; transition: opacity 0.5s; color: var(--ink); }
.cp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 3%; font: 500 12px/1 var(--sans); }
.cp-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 400 14px/1 var(--serif); }
.eq, .snd { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.snd { height: 10px; flex: none; }
.eq i, .snd i { width: 2px; background: var(--accent); animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2), .snd i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3), .snd i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
.cp-hero { display: block; width: 46%; height: clamp(12px, 1.6vw, 22px); border-radius: 4px; background: var(--c, #c8c3b8); margin-bottom: 8px; transition: background-color 0.6s; }
.cat-page b { display: block; height: 5px; border-radius: 3px; background: #dcd8cf; }
.cat-page b:nth-of-type(2) { width: 88%; }
.cat-page b:nth-of-type(4) { width: 64%; }
.cat-stage.swap .cat-page { opacity: 0.4; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--fg-2); }

/* ---- 07: privacy ------------------------------------------------------------------------------- */

.priv { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.pcard { grid-column: span 2; border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 16px; min-height: 300px; background: var(--bg); position: relative; overflow: hidden; transition: border-color 0.5s, transform 0.7s var(--ease-out); }
.pcard:hover { border-color: var(--line-2); transform: translateY(-4px); }
.pcard.wide { grid-column: span 3; }
.pcard h3 { margin: auto 0 0; font: 400 34px/1 var(--serif); letter-spacing: -0.02em; }
.pcard p { margin: 0; font-size: 14.5px; color: var(--fg-2); }
.pcard .vis { position: relative; flex: 1; display: grid; place-items: center; min-height: 120px; }
.pcard > .btn { align-self: flex-start; }
/* the vault: blurred until Windows Hello says it is you */
.vault { width: 100%; display: grid; gap: 8px; }
.vault .row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; text-align: left; transition: border-color 0.3s; }
.vault .row:hover { border-color: var(--line-2); }
.vault .row b { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-3); display: grid; place-items: center; font: 400 14px/1 var(--serif); border: 1px solid var(--line-2); }
.vault .pw { font: 400 12px/1 var(--mono); color: var(--fg-2); filter: blur(5px); transition: filter 0.6s var(--ease), color 0.3s; letter-spacing: 0.08em; }
.vault .row.shown { border-color: var(--line-3); }
.vault .row.shown .pw { filter: none; color: var(--fg); }
.hello-ask { position: absolute; inset: -6px; display: grid; place-content: center; justify-items: center; gap: 8px; border-radius: 14px; background: rgba(13, 13, 12, 0.95); border: 1px solid var(--line-2); font-size: 13px; color: var(--fg-2); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.hello-ask.on { opacity: 1; }
.hello-ask svg { width: 30px; height: 30px; color: var(--accent); }
.hello-ask b { font-weight: 500; color: var(--fg); }
.hello-ask .pin { display: flex; gap: 8px; margin-top: 4px; }
.hello-ask .pin i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--fg-3); transition: background 0.15s, border-color 0.15s; }
.hello-ask .pin i.on { background: var(--fg); border-color: var(--fg); }
.hello { display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); transition: color 0.4s; }
.hello svg { width: 18px; height: 18px; }
.pcard:hover .hello { color: var(--accent); }
/* the cookie banner, answered */
.site-mini { position: relative; width: 100%; max-width: 300px; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; padding: 14px; display: grid; align-content: start; gap: 7px; }
.site-mini .sm-bar { display: block; height: 10px; width: 46%; border-radius: 3px; background: var(--line-2); margin-bottom: 6px; }
.site-mini b { display: block; height: 4px; border-radius: 2px; background: var(--line-2); opacity: 0.6; }
.site-mini b:nth-of-type(2) { width: 84%; }
.banner { position: absolute; left: 10px; right: 10px; bottom: 10px; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; display: grid; gap: 9px; font-size: 11px; line-height: 1.4; color: var(--fg-2); background: var(--bg-3); transform: translateY(130%); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.banner.show { transform: none; opacity: 1; }
.banner.gone { transform: translateY(130%); opacity: 0; }
.banner .bb { display: flex; gap: 8px; }
.banner .bb span { flex: 1; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 9.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s, color 0.2s; }
.banner .bb span.rej { border-color: var(--accent); color: var(--fg); }
.banner.press .bb span.rej { background: var(--accent); color: #fff; }
.cook-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cook-foot .mono { font-size: 11.5px; color: var(--fg-3); }
/* private tabs: blurred cards, gone when the last one closes */
.ptabs { display: flex; gap: 10px; }
.ptabs i { width: 76px; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--paper); filter: blur(4px) saturate(0.7); border: 1px solid var(--line-2); transition: filter 0.6s, opacity 0.6s, transform 0.8s var(--ease-out); }
.pcard.closed .ptabs i { opacity: 0; transform: translateY(16px) scale(0.9); }
.pcard.closed .ptabs i:nth-child(2) { transition-delay: 80ms; }
.pcard.closed .ptabs i:nth-child(3) { transition-delay: 160ms; }
.nothing { position: absolute; font-size: 30px; font-style: italic; color: var(--fg-2); opacity: 0; transition: opacity 0.6s; }
.pcard.closed .nothing { opacity: 1; transition-delay: 0.4s; }
/* their shared clock, running down under them; hidden while they are in use */
.priv-life { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; transition: opacity 0.4s; }
.priv-life.rest { opacity: 0; }
.priv-life b { display: block; height: 1px; background: var(--line-2); }
.priv-life i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transition: transform 0.12s linear; }
.priv-life span { font-size: 11.5px; color: var(--fg-3); }
.pcard.closed .priv-life { opacity: 0.3; }
/* a way across to the other page */
.get .also { display: inline-block; margin-top: 30px; position: relative; font-size: 14px; color: var(--fg-2); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color 0.3s, border-color 0.3s; }
.get .also:hover { color: var(--fg); border-color: var(--fg); }
.bigword { font: 400 clamp(48px, 6vw, 84px)/1 var(--serif); letter-spacing: -0.03em; }
.bigword em { color: var(--accent); }

/* ---- 08: plugins ------------------------------------------------------------------------------- */

.plugins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.plug { background: var(--bg); padding: 30px; min-height: 380px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: background 0.5s; }
.plug:hover { background: var(--bg-2); }
.plug .top { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.plug h3 { margin: 0; font: 400 32px/1 var(--serif); letter-spacing: -0.02em; }
.plug p { margin: 0; font-size: 14.5px; color: var(--fg-2); }
.plug .demo { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 190px; }
/* task manager */
.tm { width: 100%; display: grid; gap: 2px; font: 400 11.5px/1 var(--mono); }
.tm-h { display: flex; justify-content: space-between; padding: 8px 8px 4px; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.tm-r { display: grid; grid-template-columns: minmax(0, 1fr) 52px 50px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 7px; color: var(--fg-2); text-align: left; transition: background 0.2s, opacity 0.3s, color 0.2s; }
button.tm-r:hover { background: rgba(255, 255, 255, 0.04); }
.tm-r.sel { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.tm-r.p { cursor: default; }
.tm-r.dead { opacity: 0.4; }
.tm-r .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-r i { display: block; height: 4px; border-radius: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.tm-r i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: var(--fg); transition: width 0.9s var(--ease); }
.tm-r.w i::after { background: var(--accent); }
.tm-r .v { text-align: right; }
.tm-f { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 8px 8px 0; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 10.5px; }
/* find in all tabs */
.find { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.find .q { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; transition: border-color 0.3s; }
.find .q:focus-within { border-color: var(--fg-3); }
.find .q svg { width: 14px; height: 14px; flex: none; color: var(--fg-3); }
.find .q input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0; color: var(--fg); }
.find .q .mono { font-size: 10px; color: var(--fg-3); white-space: nowrap; }
.find-tabs { display: grid; gap: 8px; }
.find-tabs p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--fg-2); }
.find-tabs p::before { content: attr(data-tab); display: block; font: 500 9.5px/1.8 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.find mark { background: rgba(224, 88, 61, 0.22); color: var(--fg); border-radius: 2px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; animation: appear 0.3s; }
/* answers */
.ans { width: 100%; display: grid; gap: 8px; }
.ans .q { height: 40px; border: 1px solid var(--line-2); border-radius: 10px; display: flex; align-items: center; padding: 0 14px; transition: border-color 0.3s; }
.ans .q:focus-within { border-color: var(--fg-3); }
.ans .q input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0; color: var(--fg); font: 400 14px/1 var(--sans); }
.ans .a { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; background: var(--bg-3); }
.ans .a b { font: 400 30px/1 var(--serif); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ans .a span { font: 400 10.5px/1 var(--mono); color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font: 400 11px/1 var(--mono); color: var(--fg-3); transition: color 0.2s, border-color 0.2s; }
.chips button:hover { color: var(--fg); border-color: var(--line-3); }
/* scripts */
.con { width: 100%; display: grid; gap: 10px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; font: 400 11.5px/1.7 var(--mono); color: var(--fg-2); }
.mini-page { height: 66px; border-radius: 8px; background: var(--paper); padding: 10px 14px; display: grid; align-content: start; gap: 5px; transition: background 0.5s, padding 0.5s; }
.mini-page i { display: block; width: 50%; height: 8px; border-radius: 2px; background: #c8c3b8; transition: background 0.5s, width 0.5s; }
.mini-page b { display: block; height: 3px; border-radius: 2px; background: #d6d2c9; transition: background 0.5s; }
.mini-page.reading { background: #1d1c1a; padding-inline: 24%; }
.mini-page.reading i { background: #6b6a64; width: 72%; }
.mini-page.reading b { background: #44433e; }
.con-in { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.con-in > span::before { content: '› '; color: var(--fg-3); }
.con-log { min-height: 3.4em; }
.con-log div { animation: appear 0.4s; }
.con-log .ok { color: #7fbf8a; }
/* games */
.keep { position: relative; display: grid; place-items: center; width: 100%; min-height: 160px; border-radius: 14px; border: 1px dashed transparent; transition: border-color 0.3s; }
.keep:hover { border-color: var(--line-2); }
.pad { width: 84px; height: 84px; color: var(--fg); transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.pad .b1 { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.keep .lib { position: absolute; left: 50%; top: 50%; display: flex; gap: 12px; align-items: center; padding: 10px 16px 10px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); text-align: left; white-space: nowrap; transform: translate(-50%, -20%); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.keep .lib i { width: 58px; aspect-ratio: 16 / 10; border-radius: 6px; background: #050505; border: 1px solid var(--line-2); position: relative; }
.keep .lib i::before { content: ''; position: absolute; left: 46%; top: 36%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.keep .lib i::after { content: ''; position: absolute; left: 32%; right: 32%; bottom: 18%; height: 2px; background: var(--fg); }
.keep .lib b { display: block; font: 400 21px/1 var(--serif); font-weight: 400; color: var(--fg); }
.keep .lib small { font: 400 10px/1.6 var(--mono); color: var(--fg-3); }
.keep[aria-pressed='true'] .pad { transform: translateY(-46px) scale(0.6); opacity: 0.25; }
.keep[aria-pressed='true'] .lib { transform: translate(-50%, -32%); opacity: 1; }
/* themes */
.themes-demo { width: 100%; display: grid; justify-items: center; gap: 14px; }
.themes-demo .seg { justify-self: center; }
.th-prev { position: relative; width: 100%; max-width: 230px; aspect-ratio: 16 / 9.5; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); overflow: hidden; }
.th-prev .tb { position: absolute; left: 6%; right: 6%; top: 7%; height: 13%; border-radius: 5px; background: var(--tb); transition: background 0.5s; }
.th-prev .tb::after { content: ''; position: absolute; left: 22%; right: 30%; top: 32%; bottom: 32%; border-radius: 3px; background: var(--tf); opacity: 0.25; transition: background 0.5s; }
.th-prev .tp { position: absolute; left: 14%; right: 14%; top: 31%; display: grid; gap: 5px; }
.th-prev .tp i { display: block; width: 46%; height: 8px; border-radius: 2px; background: #c8c3b8; }
.th-prev .tp b { display: block; height: 3px; border-radius: 2px; background: #d6d2c9; }
.th-prev .td { position: absolute; left: 22%; right: 22%; bottom: 7%; height: 15%; border-radius: 6px; background: var(--tb); transition: background 0.5s; }
.th-prev .td::after { content: ''; position: absolute; left: 10%; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ta); transition: background 0.5s; }
.themes { display: flex; gap: 8px; }
.themes button { width: 32px; height: 52px; border-radius: 9px; border: 1px solid var(--line-2); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.5s var(--ease-out), border-color 0.3s; }
.themes button:hover { transform: translateY(-3px); }
.themes button[aria-pressed='true'] { border-color: var(--fg); transform: translateY(-5px); }
.themes b { flex: 3; }
.themes b + b { flex: 1; }
.t-paper b:nth-child(1) { background: #151514; } .t-paper b:nth-child(2) { background: #e8e7e2; } .t-paper b:nth-child(3) { background: #e0583d; }
.t-sand b:nth-child(1) { background: #1a1612; } .t-sand b:nth-child(2) { background: #e9dfcf; } .t-sand b:nth-child(3) { background: #c9873e; }
.t-moss b:nth-child(1) { background: #12160f; } .t-moss b:nth-child(2) { background: #dde3d2; } .t-moss b:nth-child(3) { background: #6f8f4e; }
.t-slate b:nth-child(1) { background: #10141a; } .t-slate b:nth-child(2) { background: #dbe2ea; } .t-slate b:nth-child(3) { background: #5b7fa6; }
.t-mono b:nth-child(1) { background: #0a0a0a; } .t-mono b:nth-child(2) { background: #f2f2f2; } .t-mono b:nth-child(3) { background: #8c8c8c; }

/* ---- 09: games --------------------------------------------------------------------------------- */

.game { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.gwin { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #000; transition: transform 0.7s var(--ease-out), border-radius 0.5s; }
.gwin:focus-visible { outline-offset: 6px; border-radius: 18px; }
.gwin #game-canvas { width: 100%; height: 100%; }
.gbar { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 30px; display: none; align-items: center; gap: 10px; padding: 0 12px; background: #141413; border-bottom: 1px solid var(--line); font: 500 11px/1 var(--mono); color: var(--fg-2); }
.gbar span { flex: 1; }
.gbar i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--fg-4); }
.gwin.windowed { transform: scale(0.92); border-radius: 10px; }
.gwin.windowed .gbar { display: flex; }
.gwin.windowed #game-canvas { height: calc(100% - 30px); margin-top: 30px; }
.gwin.closed #game-canvas { visibility: hidden; }
.flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.gwin.snap .flash { animation: snap 0.5s ease-out; }
@keyframes snap { 0% { opacity: 0.5; } 100% { opacity: 0; } }
.overlay { position: absolute; inset: 0; z-index: 3; background: rgba(10, 10, 10, 0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 6% 7%; display: flex; flex-direction: column; justify-content: center; gap: 8px; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
.overlay.on { opacity: 1; pointer-events: auto; }
.overlay h4 { margin: 0 0 4px; font: 400 clamp(30px, 3.6vw, 52px)/1 var(--serif); }
.overlay .sub { font: 400 11px/1 var(--mono); color: var(--fg-3); margin-bottom: 12px; }
.ov-list { display: grid; gap: 7px; }
.overlay .ob { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: min(340px, 100%); height: 38px; padding: 0 14px; border: 1px solid rgba(236, 235, 230, 0.14); border-radius: 10px; background: rgba(236, 235, 230, 0.04); font-size: 13px; text-align: left; transform: translateX(-12px); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.5s, background 0.3s, border-color 0.3s; }
.overlay .ob kbd { font-size: 10px; padding: 3px 6px; }
.overlay.on .ob { transform: none; opacity: 1; }
.overlay.on .ob:nth-child(2) { transition-delay: 50ms; } .overlay.on .ob:nth-child(3) { transition-delay: 100ms; } .overlay.on .ob:nth-child(4) { transition-delay: 150ms; } .overlay.on .ob:nth-child(5) { transition-delay: 200ms; } .overlay.on .ob:nth-child(6) { transition-delay: 250ms; }
.overlay .ob:hover { background: rgba(236, 235, 230, 0.12); }
.overlay .ob.armed { border-color: var(--accent); background: rgba(224, 88, 61, 0.12); }
.gclosed { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg-2); text-align: center; animation: appear 0.4s; }
.gclosed canvas { width: 220px; height: auto; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px solid var(--line-2); }
.gclosed b { display: block; font: 400 30px/1 var(--serif); font-weight: 400; }
.gclosed small { font: 400 11px/1.6 var(--mono); color: var(--fg-3); }
.shots { margin-top: 16px; display: grid; gap: 10px; }
.shots .label kbd { margin-left: 6px; font-size: 9.5px; padding: 3px 5px; }
.shots-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shot-t { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 10; animation: fresh 0.6s var(--ease-out); transition: border-color 0.2s; }
.shot-t canvas { width: 100%; height: 100%; }
.shot-t:hover { border-color: var(--line-3); }
.shot-t .badge { position: absolute; left: 6px; top: 6px; padding: 4px 6px; border-radius: 4px; background: var(--accent); color: #fff; font: 500 9px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; transition: opacity 0.3s; }
.shot-t.cover { border-color: var(--accent); }
.shot-t.cover .badge { opacity: 1; }
.game-list { display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.game-list li { list-style: none; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.game-list li b { font: 400 26px/1 var(--serif); color: var(--fg-3); }
.game-list li span { font-size: 15px; color: var(--fg-2); }
.game-list li span strong { display: block; color: var(--fg); font-weight: 500; margin-bottom: 2px; }
.game-acts { position: relative; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.guide { left: auto; top: auto; animation: nudge 1.5s var(--ease) infinite; transition: opacity 0.4s; }
.guide.gone { opacity: 0; animation: none; }
@keyframes nudge { 0%, 100% { transform: translate(7px, 9px); } 50% { transform: translate(0, 0); } }

/* ---- 10: bring everything ---------------------------------------------------------------------- */

.import { display: grid; grid-template-columns: minmax(0, 1fr) 1.4fr minmax(0, 1fr); align-items: center; gap: 0; padding: clamp(24px, 4vw, 56px); }
.import ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.import .from button { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; padding: 0 16px; font-size: 15px; color: var(--fg-2); text-align: left; transition: color 0.3s, border-color 0.3s; }
.import .from button:hover { color: var(--fg); border-color: var(--line-2); }
.import .from button.on { color: var(--fg); border-color: var(--fg); }
.import .flow { position: relative; height: 100%; min-height: 300px; }
.import .flow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flowline { fill: none; stroke: rgba(236, 235, 230, 0.12); stroke-width: 1; transition: stroke 0.5s; }
.flowline.on { stroke: rgba(224, 88, 61, 0.65); }
.flowline.dim { stroke: rgba(236, 235, 230, 0.05); }
.flowdot { fill: var(--accent); transition: opacity 0.4s; }
.flowdot.dim { opacity: 0; }
.import .to { justify-self: center; display: grid; justify-items: center; gap: 18px; text-align: center; }
.import .to img { width: 84px; height: 84px; border-radius: 22px; }
.import .to ul { justify-items: center; gap: 6px; }
.import .to li { display: flex; gap: 8px; align-items: center; font: 400 11.5px/1.4 var(--mono); color: var(--fg-3); transition: color 0.3s; }
.import .to li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--fg-4); transition: background 0.3s, border-color 0.3s; }
.import .to li.done { color: var(--fg-2); }
.import .to li.done::before { background: var(--accent); border-color: var(--accent); }
.import .to li .v { color: var(--fg); animation: appear 0.4s; }
.import .to li .v:empty { display: none; }
.imp-st { min-height: 1em; }

/* ---- 11: under the hood ------------------------------------------------------------------------ */

.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.spec { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.spec:not(:nth-child(4n)) { border-right: 1px solid var(--line); }
.spec:not(:nth-child(4n+1)) { padding-left: 24px; }
.spec h3 { margin: 0; font: 400 24px/1.1 var(--serif); }
.spec p { margin: 0; font-size: 14px; color: var(--fg-2); }

/* ---- 12: shortcuts ----------------------------------------------------------------------------- */

.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 80px); }
.keys .key { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg-2); transition: color 0.3s; }
.keys .key:hover { color: var(--fg); }
.keys .key:hover kbd { border-color: var(--fg); color: var(--fg); transform: translateY(1px); }
.keys .key kbd { transition: transform 0.2s, border-color 0.3s; }

/* ---- 13: download ------------------------------------------------------------------------------ */

.get { padding-block: clamp(120px, 16vw, 220px); text-align: center; position: relative; overflow: hidden; }
.get .ring { position: absolute; left: 50%; top: 50%; width: min(1100px, 140vw); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); transform: translate(-50%, -50%); pointer-events: none; }
.get .ring + .ring { width: min(760px, 100vw); }
.get .ring + .ring + .ring { width: min(440px, 70vw); border-color: var(--line-2); }
.get img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 38px; position: relative; }
.get h2 { margin: 0 auto; font: 400 clamp(56px, 9vw, 150px)/0.9 var(--serif); letter-spacing: -0.035em; max-width: 11ch; position: relative; }
.get p { margin: 28px auto 0; max-width: 520px; color: var(--fg-2); position: relative; }
.get .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 44px; position: relative; }
.get .meta { margin-top: 26px; position: relative; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font: 400 11.5px/1.6 var(--mono); color: var(--fg-3); }
.get .sum { margin-top: 10px; font: 400 10.5px/1.6 var(--mono); color: var(--fg-4); word-break: break-all; position: relative; }

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

.foot { padding-block: 64px 44px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.foot .big { font: 400 clamp(64px, 14vw, 220px)/0.8 var(--serif); letter-spacing: -0.045em; color: var(--fg); }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; font-size: 14px; color: var(--fg-2); }
.foot nav a:hover { color: var(--fg); }
.foot .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: 400 11px/1.6 var(--mono); color: var(--fg-3); }
.langs { display: flex; gap: 18px; }
.langs a { transition: color 0.2s; }
.langs a:hover, .langs a[aria-current] { color: var(--fg); }

/* ---- the phone page: a phone drawn in the units of its own screen ------------------------------ */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg:has(> use) { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.mstage, .mrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.mstage { margin-top: clamp(56px, 8vw, 96px); }
.mrow, .pair { position: relative; }
.phone { position: relative; width: min(330px, 82vw); aspect-ratio: 9 / 19.5; border-radius: 48px; border: 1px solid var(--line-3); background: var(--bg-2); user-select: none; -webkit-user-select: none; }
.phone.small { width: min(300px, 78vw); }
/* cqw and cqh: hundredths of the screen's width and height, so the whole phone scales as one */
.ph-screen { position: absolute; inset: 11px; border-radius: 38px; overflow: hidden; background: #0a0a0a; container-type: size; isolation: isolate; color: var(--fg); line-height: 1.3; }
/* the screen's own children: container units on the screen itself would measure the page */
.ph-screen > * { font-size: 4cqw; }
.ph-status { position: absolute; inset: 0 0 auto; height: 5cqh; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: 0 9cqw; background: #0a0a0a; font: 500 3.8cqw/1 var(--sans); }
.sig { display: flex; gap: 0.8cqw; align-items: flex-end; height: 3cqw; }
.sig i { width: 1cqw; height: 100%; background: var(--fg); }
.sig i:nth-child(1) { height: 40%; } .sig i:nth-child(2) { height: 70%; }
/* the pages, one per tab */
.ph-pages { position: absolute; left: 0; right: 0; top: 5cqh; bottom: 5.5cqh; overflow: hidden; transition: opacity 0.4s, filter 0.4s; }
.ph-pages.dim { opacity: 0.32; }
.pp { position: absolute; inset: 0; display: none; flex-direction: column; gap: 4cqw; padding: 11cqw 8cqw; background: var(--paper); color: var(--ink); }
.pp.on { display: flex; }
.pp.dark { background: #1a1a18; color: var(--fg); }
.pp .k { font: 500 2.9cqw/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #8a867d; }
.pp h4 { margin: 0 0 2cqw; font: 400 13cqw/0.95 var(--serif); letter-spacing: -0.03em; }
.pp h4 em { color: var(--accent); }
.pp .ln { display: grid; gap: 2.6cqw; }
.pp .ln i { display: block; height: 1.5cqw; border-radius: 1cqw; background: #d9d6ce; }
.pp .ln i:nth-child(3n) { width: 80%; }
.pp .ln i:nth-child(4n+1) { width: 94%; }
.pp.dark .ln i { background: #34332f; }
.pp .fig { display: block; aspect-ratio: 4 / 3; border-radius: 2cqw; background: #e3dfd6; position: relative; overflow: hidden; }
.pp .fig::before { content: ''; position: absolute; left: 24%; top: 16%; width: 52%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #b9b3a7; }
.pp .fig::after { content: ''; position: absolute; left: 0; right: 0; bottom: 28%; height: 1px; background: #b9b3a7; }
.pp .fig.round::before { background: #d2c4ad; border: 0; }
.pp .big { font: 400 46cqw/0.8 var(--serif); letter-spacing: -0.04em; }
.pp .tt { display: grid; gap: 3cqw; margin-top: 2cqw; }
.pp .tt i { display: flex; align-items: center; gap: 4cqw; padding-bottom: 3cqw; border-bottom: 1px solid #dcd8cf; }
.pp .tt b { font: 500 4cqw/1 var(--mono); }
.pp .tt u { flex: 1; height: 1.5cqw; border-radius: 1cqw; background: #dcd8cf; }
.pp .tt .a b { color: var(--accent); }
.pp .tt .a u { background: var(--accent); opacity: 0.6; }
.pp .eq { height: 10cqw; gap: 1.4cqw; margin-bottom: 2cqw; }
.pp .eq i { width: 1.8cqw; }
/* the marks: five, one per tab, the one on screen in the accent */
.ph-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 5.5cqh; z-index: 3; background: #0a0a0a; }
.ph-strip::after { content: ''; position: absolute; left: 34cqw; right: 34cqw; bottom: 1.2cqh; height: 1.1cqw; border-radius: 1cqw; background: var(--fg); opacity: 0.8; }
#ph-strip { cursor: grab; touch-action: none; }
#ph-strip::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 5cqh; }
.marks { position: absolute; left: 50%; top: 1.3cqh; transform: translateX(-50%); display: flex; gap: 1.8cqw; }
.marks i { display: block; width: 4.6cqw; height: 0.9cqw; border-radius: 1cqw; background: #75736d; transition: background 0.25s, transform 0.25s; }
.marks i.none { background: #3a3935; }
.marks i.on { background: var(--accent); }
.marks i.peek { background: var(--fg); transform: scaleX(1.3); }
/* the bar that rises from them: the field, the buttons, the categories with their tabs */
/* it grows upward from the field: what shows is its lowest part, cut at --show */
.ph-sheet { --show: 0px; position: absolute; left: 0; right: 0; bottom: 5.5cqh; z-index: 2; display: flex; flex-direction: column; background: #121211; clip-path: inset(calc(100% - var(--show)) 0 0 0 round 6cqw 6cqw 0 0); transition: clip-path 0.5s var(--ease-out), opacity 0.2s; }
.phone[data-stage='field'] .ph-sheet { --show: 17cqw; }
.phone[data-stage='buttons'] .ph-sheet { --show: 33cqw; }
.phone[data-stage='cats'] .ph-sheet, .ph-sheet.open { --show: 100%; }
.phone.drag .ph-sheet { --show: var(--lift, 0px); transition: none; }
.phone.over .ph-sheet { opacity: 0; }
.sh-heads { display: flex; align-items: stretch; gap: 5cqw; height: 12cqw; padding: 0 5cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: var(--fg-2); white-space: nowrap; overflow: hidden; }
.sh-heads > span { display: inline-flex; align-items: center; gap: 1.6cqw; border-bottom: 1.5px solid transparent; }
.sh-heads .on { color: var(--fg); border-bottom-color: var(--accent); }
.sh-heads .cc { cursor: pointer; }
.sh-heads svg { width: 4cqw; height: 4cqw; }
.sh-list { display: grid; gap: 0.6cqw; padding: 2cqw 2.4cqw; }
.sh-row { display: grid; grid-template-columns: 8cqw minmax(0, 1fr) 5cqw; gap: 3.4cqw; align-items: center; height: 12.4cqw; padding: 0 3cqw; border-radius: 3cqw; transition: background 0.2s; }
#ph-sheet .sh-row { cursor: pointer; }
.sh-row.on { background: #1d1d1b; }
.sh-row b { width: 8cqw; height: 8cqw; border-radius: 1.6cqw; display: grid; place-items: center; background: var(--paper); color: var(--ink); font: 400 4.4cqw/1 var(--serif); }
.sh-row .t { display: block; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-row .u { display: block; font: 400 3cqw/1.3 var(--mono); color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-row > svg { width: 4.4cqw; height: 4.4cqw; color: var(--fg-3); }
.sh-note { padding: 2cqw 3cqw; font: 400 3cqw/1.45 var(--mono); color: var(--fg-3); }
.sh-foot { display: flex; justify-content: space-between; align-items: center; height: 12cqw; padding: 0 5cqw; }
.sh-foot span { display: inline-flex; align-items: center; gap: 2cqw; }
.sh-foot span + span { color: var(--fg-2); }
.sh-foot svg { width: 4.6cqw; height: 4.6cqw; }
.sh-btns { display: flex; justify-content: space-around; align-items: center; height: 16cqw; padding: 0 3cqw; }
.sh-btns span { display: grid; place-items: center; width: 11cqw; height: 11cqw; border-radius: 3cqw; }
.sh-btns svg { width: 5.6cqw; height: 5.6cqw; }
.sh-btns .off { opacity: 0.3; }
.sh-star, .sh-layers { cursor: pointer; }
.sh-star.on { color: var(--accent); }
.sh-star.on svg { fill: currentColor; }
.sh-field { display: flex; align-items: center; gap: 3cqw; height: 17cqw; padding: 0 4cqw 2cqw; }
.sh-field .fld { flex: 1; min-width: 0; height: 11.5cqw; display: flex; align-items: center; padding: 0 4.5cqw; border-radius: 3cqw; background: #1f1f1d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-field svg { width: 6cqw; height: 6cqw; color: var(--fg-2); }
/* every open page, from swiping too far */
.ph-grid { position: absolute; left: 0; right: 0; top: 5cqh; bottom: 5.5cqh; z-index: 2; display: flex; flex-direction: column; gap: 5cqw; padding: 8cqw 6cqw 5cqw; background: #0a0a0a; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.phone[data-stage='grid'] .ph-grid, .phone.over .ph-grid { opacity: 1; visibility: visible; }
.pg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 3cqw; }
.pg-head b { font: 400 8.6cqw/1 var(--serif); }
.pg-head span, .pgc > span, .pg-foot { font: 400 2.8cqw/1 var(--mono); color: var(--fg-3); }
.pg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4cqw; }
.pgc { display: grid; gap: 1.2cqw; cursor: pointer; }
.pgc .pic { display: block; aspect-ratio: 1 / 0.8; padding: 3cqw; border-radius: 3cqw; border: 1px solid transparent; background: var(--paper); color: var(--ink); font: 400 4.6cqw/1 var(--serif); transition: transform 0.2s, border-color 0.2s; }
.pgc .pic em { font-style: normal; }
.pgc .pic.dark { background: #1a1a18; color: var(--fg); }
.pgc b { font-weight: 400; font-size: 3.5cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgc.on .pic { border-color: var(--line-3); }
.pgc.sel .pic { border-color: var(--accent); transform: scale(1.04); }
.pg-foot { margin-top: auto; text-align: center; }
/* holding: a ring fills, then apps and tools spring up */
.ph-ring { position: absolute; left: var(--x, 50%); top: var(--y, 96%); width: 16cqw; height: 16cqw; margin: -8cqw 0 0 -8cqw; z-index: 4; pointer-events: none; opacity: 0; transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 107; stroke-dashoffset: 107; }
.phone.holding .ph-ring { opacity: 1; }
.phone.holding .ph-ring circle { animation: ringfill 0.52s linear forwards; }
@keyframes ringfill { to { stroke-dashoffset: 0; } }
.ph-hold { position: absolute; left: 5cqw; right: 5cqw; bottom: calc(5.5cqh + 3cqw); z-index: 3; display: grid; gap: 2.4cqw; padding: 4cqw; border-radius: 6cqw; border: 1px solid var(--line-2); background: #141413; opacity: 0; visibility: hidden; transform: scale(0.82); transform-origin: 50% 100%; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s, visibility 0.2s; }
.phone[data-stage='hold'] .ph-hold { opacity: 1; visibility: visible; transform: none; }
.hl { font: 500 2.8cqw/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.ph-hold .hl { padding-left: 1.4cqw; }
.ph-hold .hr { display: block; height: 1px; background: var(--line); }
.tiles { display: flex; gap: 2cqw; }
.tile { width: 19cqw; display: grid; justify-items: center; gap: 1.6cqw; padding: 1.6cqw 0; border-radius: 3cqw; font-size: 2.9cqw; color: var(--fg-2); cursor: pointer; }
.tile b, .tile svg { width: 11cqw; height: 11cqw; display: grid; place-items: center; border-radius: 3cqw; border: 1px solid var(--line-2); background: #1c1c1a; color: var(--fg); font: 400 5cqw/1 var(--serif); transition: border-color 0.2s; }
.tile svg { padding: 3cqw; }
.tile.add svg { border-style: dashed; background: none; }
.tile.on b, .tile.on svg { border-color: var(--accent); }
.phone[data-stage='hold'] .tile { animation: tile 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.phone[data-stage='hold'] .tile:nth-child(2) { animation-delay: 40ms; }
.phone[data-stage='hold'] .tile:nth-child(3) { animation-delay: 80ms; }
.phone[data-stage='hold'] .tile:nth-child(4) { animation-delay: 120ms; }
@keyframes tile { from { opacity: 0; transform: translateY(4cqw) scale(0.8); } }
/* the gestures, beside the phone */
.gest { max-width: 540px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.gest button { width: 100%; display: grid; grid-template-columns: 8.6em minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--fg-3); transition: color 0.3s; }
.gest b { display: inline-flex; align-items: center; gap: 12px; font: 400 30px/1 var(--serif); color: var(--fg); }
.gest b::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--line-3); transition: background 0.3s; }
.gest span { font-size: 15px; }
.gest button:hover, .gest button.on { color: var(--fg); }
.gest button.on b::before { background: var(--accent); }

/* typing: what it finds, best nearest the thumb */
.ty { position: absolute; left: 0; right: 0; bottom: 5.5cqh; z-index: 2; display: flex; flex-direction: column; padding-top: 2cqw; background: #121211; border-radius: 6cqw 6cqw 0 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.ty-list { display: flex; flex-direction: column-reverse; padding: 0 2.4cqw; }
.ty-row { display: grid; grid-template-columns: 5cqw minmax(0, 1fr) auto; gap: 3cqw; align-items: center; padding: 2.4cqw 3cqw; border-radius: 3cqw; font-size: 3.8cqw; animation: appear 0.2s; }
.ty-row:first-child { background: #1d1d1b; }
.ty-row svg { width: 5cqw; height: 5cqw; color: var(--fg-3); }
.ty-row .t { display: block; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ty-row .t b { font-weight: 600; }
.ty-row .u { display: block; font: 400 2.8cqw/1.3 var(--mono); color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ty-row .tag { font: 400 2.6cqw/1 var(--mono); color: var(--fg-3); }
.ty-cur { display: flex; justify-content: space-between; align-items: center; gap: 3cqw; margin: 1cqw 2.4cqw 0; padding: 3cqw; border-top: 1px solid var(--line); font-size: 3.8cqw; }
.ty-cur .t { display: block; }
.ty-cur .u { display: block; font: 400 2.8cqw/1.3 var(--mono); color: var(--fg-3); }
.ty-cur .acts { display: flex; gap: 4cqw; color: var(--fg-2); }
.ty-cur svg { width: 5cqw; height: 5cqw; }
.ty-field { display: flex; align-items: center; gap: 3cqw; height: 11.5cqw; margin: 1cqw 4cqw 4cqw; padding: 0 4cqw; border-radius: 3cqw; background: #1f1f1d; font-size: 4.3cqw; cursor: text; }
.ty-field svg { flex: none; width: 4.6cqw; height: 4.6cqw; color: var(--fg-3); }
.ty-field input { flex: 1 1 0; min-width: 0; padding: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--fg); }
.ty-field input::placeholder { color: var(--fg-3); }
.order ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: o; border-top: 1px solid var(--line); }
.order li { counter-increment: o; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--fg-3); transition: color 0.3s; }
.order li::before { content: counter(o, decimal-leading-zero); grid-row: span 2; font: 500 11px/2.2 var(--mono); color: var(--fg-4); transition: color 0.3s; }
.order b { font: 400 26px/1.1 var(--serif); color: var(--fg-2); transition: color 0.3s; }
.order li.on { color: var(--fg-2); }
.order li.on b { color: var(--fg); }
.order li.on::before { color: var(--accent); }

/* categories on the phone: a locked one asks for its PIN */
.mcats .phone { justify-self: center; }
.ph-pin { position: absolute; left: 8cqw; right: 8cqw; top: 32%; z-index: 5; display: grid; gap: 5cqw; padding: 6cqw; border-radius: 5cqw; border: 1px solid var(--line-2); background: #141413; opacity: 0; visibility: hidden; transform: translateY(3cqw); transition: opacity 0.25s, visibility 0.25s, transform 0.4s var(--ease-out); }
.ph-pin.on { opacity: 1; visibility: visible; transform: none; }
.ph-pin > div { display: flex; align-items: center; gap: 3cqw; font: 400 7cqw/1 var(--serif); }
.ph-pin > div b { font-weight: 400; }
.ph-pin > div svg { width: 5.4cqw; height: 5.4cqw; color: var(--accent); }
.ph-pin .dots { display: flex; align-items: center; gap: 4cqw; height: 11cqw; padding: 0 4cqw; border-radius: 3cqw; background: #1f1f1d; }
.ph-pin .dots i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; border: 1px solid var(--fg-3); transition: background 0.15s, border-color 0.15s; }
.ph-pin .dots i.on { background: var(--fg); border-color: var(--fg); }
.pin-acts { display: flex; justify-content: flex-end; align-items: center; gap: 6cqw; color: var(--fg-2); }
.pin-acts .u { padding: 2.4cqw 5cqw; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); }
#cphone.asking .ph-pages, #cphone.asking .ph-sheet { filter: brightness(0.45); }

/* pairing: the computer and the phone show the same code */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(20px, 3vw, 44px); align-items: center; margin-bottom: 28px; }
.pc { position: relative; aspect-ratio: 16 / 10.5; border-radius: 16px; border: 1px solid var(--line-2); background: var(--paper); overflow: hidden; }
.pc-page { position: absolute; inset: 0; display: grid; align-content: start; gap: 14px; padding: 7% 8%; color: var(--ink); }
.pc-page .k { font: 500 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #8a867d; }
.pc-page h4 { margin: 0; font: 400 clamp(30px, 4vw, 56px)/0.95 var(--serif); letter-spacing: -0.03em; }
.pc-page h4 em { color: var(--accent); }
.pc-page .ln { display: grid; gap: 9px; max-width: 60%; }
.pc-page .ln i { display: block; height: 5px; border-radius: 3px; background: #d9d6ce; }
.pc-page .ln i:nth-child(2n) { width: 84%; }
.pc-box { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(82%, 380px); display: grid; gap: 12px; padding: 22px 24px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(22, 22, 21, 0.95); color: var(--fg); font-size: 14px; }
.pc-box p, .pp-set p { margin: 0; color: var(--fg-2); }
.pc-box > div, .pp-set > div { display: grid; gap: 12px; justify-items: start; }
.pair .code { font: 400 clamp(40px, 4.6vw, 60px)/1 var(--serif); letter-spacing: -0.01em; }
.pair .ok { font: 400 11.5px/1.5 var(--mono); color: var(--fg-3); }
.pc-dock { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(22, 22, 21, 0.92); }
.pc-dock span { width: clamp(52px, 6vw, 76px); height: clamp(34px, 3.6vw, 46px); padding: 6px 7px; border-radius: 7px; background: #2a2a28; color: var(--fg-2); font-size: 10px; line-height: 1.2; }
.pc-dock .new, .pp-set .sh-row.new { display: none; }
.pc-dock .new.in { display: block; outline: 1px solid var(--accent); animation: fresh 0.6s var(--ease-out); }
.pair-link { display: flex; gap: 8px; }
.pair-link i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.pair[data-s='2'] .pair-link i { animation: hop 1.2s infinite; }
.pair-link i:nth-child(2) { animation-delay: 0.12s; } .pair-link i:nth-child(3) { animation-delay: 0.24s; }
.pair-link i:nth-child(4) { animation-delay: 0.36s; } .pair-link i:nth-child(5) { animation-delay: 0.48s; }
@keyframes hop { 20% { background: var(--accent); } 60% { background: var(--line-2); } }
.pp-set { position: absolute; left: 0; right: 0; top: 5cqh; bottom: 5.5cqh; display: grid; align-content: start; gap: 5cqw; padding: 9cqw 6cqw; }
.pp-set p { font-size: 3.8cqw; line-height: 1.45; }
.pp-set > div { gap: 4cqw; }
.pair .pp-set .code { font-size: 15cqw; }
.pp-set .mini { height: 9cqw; padding: 0 5cqw; font-size: 2.9cqw; }
.pair .pp-set .ok { font-size: 3cqw; }
.pp-set .paired { color: var(--fg); font: 400 7cqw/1.1 var(--serif); }
.pp-set .sh-list { width: 100%; padding: 0; }
.pp-set .sh-row { grid-template-columns: 8cqw minmax(0, 1fr); }
.pp-set .sh-row.new.in { display: grid; background: #1d1d1b; animation: fresh 0.6s var(--ease-out); }

/* ---- smaller screens --------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .sec-head, .home, .cats, .game { grid-template-columns: minmax(0, 1fr); }
  .plugins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .priv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard, .pcard.wide { grid-column: span 1; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(n) { border-right: 0; padding-left: 0; }
  .spec:nth-child(2n+1) { border-right: 1px solid var(--line); padding-right: 24px; }
  .spec:nth-child(2n) { padding-left: 24px; }
  .import { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .import .flow { display: none; }
  .import .from ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ui-bar .wc { display: none; }
  .mstage, .mrow { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .gest { max-width: none; width: 100%; }
  .order { width: 100%; }
  .pair { grid-template-columns: minmax(0, 1fr) auto; }
  .pair-link { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-menu { display: inline-flex; }
  .nav .btn-small { display: none; }
  .nav.open .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px; }
  .nav.open .nav-links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links .lang { border: 0; border-radius: 0; font: 400 18px/1.6 var(--sans); letter-spacing: 0; }
  .hero-sub { grid-template-columns: minmax(0, 1fr); }
  .hero-cta { align-items: flex-start; }
  .hero-cta .row { justify-content: flex-start; }
  .ui-dock { width: 92%; }
  .tabcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabc:nth-child(n+4) { display: none; }
  .slim, .plus { width: 9%; }
  .sug { left: 2%; right: 2%; }
  .tool { width: 40%; }
  .tabs-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .archive { min-height: 0; }
  .facts3, .plugins, .priv, .specs, .keys { grid-template-columns: minmax(0, 1fr); }
  .spec:nth-child(n) { border-right: 0; padding-inline: 0; }
  .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-views { aspect-ratio: 4 / 3.4; }
  .import .from ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-stage .dock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .pc { width: 100%; }
  .gest button { grid-template-columns: 7em minmax(0, 1fr); gap: 14px; }
  .gest b { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  [data-reveal], .split .w > span { opacity: 1; transform: none; }
  .strip-in { animation: none; }
  .ghost, .guide { display: none; }
}
