/* Mentifaber 2 · the shared look of every page.
   Obsidian ground, molten-gold brand, and each app tinted by its own hue (--h).
   Pages built by tools/site/build.py; behaviour in assets/ui/shell.js. */
@font-face { font-family: "Mentifaber Display"; src: url("../fonts/MentifaberDisplay-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --h: 38;
  --bg: #05060a; --bg-2: #0a0c14; --bg-3: #10131e;
  --ink: #eef1fb; --ink-2: #c9cfe2; --dim: #8b93ad; --mute: #5d6580;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.15);
  --glass: rgba(14,16,26,.62); --glass-2: rgba(20,23,36,.78);
  --sun: #ffe29a; --gold: #f0a63a; --ember: #ff5a36;
  --acc: hsl(var(--h) 92% 64%); --acc-2: hsl(calc(var(--h) + 38) 90% 62%); --acc-ink: hsl(var(--h) 100% 8%);
  --acc-soft: hsl(var(--h) 80% 60% / .14); --acc-glow: hsl(var(--h) 95% 60% / .35);
  --radius: 22px; --radius-s: 14px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --display: "Mentifaber Display", "Cinzel", Georgia, serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f3ec; --bg-2: #ffffff; --bg-3: #efeae0;
  --ink: #15130f; --ink-2: #3a362e; --dim: #6c665a; --mute: #9a9384;
  --line: rgba(20,16,8,.1); --line-2: rgba(20,16,8,.2);
  --glass: rgba(255,255,255,.72); --glass-2: rgba(255,255,255,.9);
  --acc: hsl(var(--h) 85% 40%); --acc-2: hsl(calc(var(--h) + 38) 80% 42%); --acc-ink: #fff;
  --acc-soft: hsl(var(--h) 80% 45% / .12); --acc-glow: hsl(var(--h) 90% 45% / .22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── ambient: aurora in the app's hue, a dot grid and grain; all cheap (transform/opacity only) ── */
.mf-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mf-sky::before, .mf-sky::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: .42; will-change: transform; }
.mf-sky::before { background: radial-gradient(circle, hsl(var(--h) 90% 55% / .55), transparent 62%); top: -30vmax; left: -18vmax; animation: mf-drift 26s ease-in-out infinite alternate; }
.mf-sky::after { background: radial-gradient(circle, hsl(calc(var(--h) + 40) 90% 55% / .38), transparent 62%); bottom: -36vmax; right: -22vmax; animation: mf-drift 32s ease-in-out infinite alternate-reverse; }
.mf-sky i { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
:root[data-theme="light"] .mf-sky i { background-image: radial-gradient(rgba(0,0,0,.08) 1px, transparent 1.2px); }
@keyframes mf-drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); } }

/* ── top bar ── */
.mf-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right)); padding-top: calc(10px + env(safe-area-inset-top)); transition: transform .45s var(--ease), background .3s; }
.mf-bar.solid { background: var(--glass); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.mf-bar.away { transform: translateY(-110%); }
.mf-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mf-brand svg { width: 30px; height: 30px; }
:root[data-theme="light"] .mf-brand b { background-image: linear-gradient(120deg, #b26a00, #c2410c); }
.mf-brand b { font: 400 18px/1 var(--display); letter-spacing: .12em; background: linear-gradient(120deg, var(--sun), var(--gold) 50%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mf-crumb { color: var(--dim); font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-crumb a { text-decoration: none; } .mf-crumb a:hover { color: var(--ink); }
.mf-bar .grow { flex: 1; }
@media (max-width: 640px) { .mf-crumb { display: none; } .mf-brand b { font-size: 15px; } }

/* ── buttons ── */
.btn { --bh: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--bh); padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: var(--ink); font: 600 15px/1 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-1px); border-color: var(--acc); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn.pri { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: var(--acc-ink); border-color: transparent; box-shadow: 0 10px 30px -8px var(--acc-glow), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.pri:hover { box-shadow: 0 14px 40px -8px var(--acc-glow), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.sm { --bh: 38px; padding: 0 15px; font-size: 14px; }
.btn.ghost { background: transparent; }
.btn[hidden] { display: none; }

/* ── chips & labels ── */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--acc); }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: var(--ink-2); font: 500 13px/1.2 var(--font); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.chip.live .dot { background: #3dffa8; box-shadow: 0 0 10px #3dffa8; animation: mf-pulse 2s infinite; }
.chip.lock .dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.chip.build .dot { background: #5cc8ff; box-shadow: 0 0 10px #5cc8ff; }
@keyframes mf-pulse { 50% { opacity: .35; } }

/* ── app icon tile ── */
.tile { --s: 88px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .26); display: grid; place-items: center; color: hsl(var(--h) 95% 74%); background: radial-gradient(120% 120% at 25% 15%, hsl(var(--h) 75% 30%), hsl(calc(var(--h) + 30) 80% 9%) 70%); border: 1px solid hsl(var(--h) 80% 60% / .35); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 18px 50px -12px hsl(var(--h) 95% 55% / .55), inset 0 1px 0 hsl(var(--h) 90% 80% / .25); position: relative; flex: none; }
.tile svg { width: 54%; height: 54%; filter: drop-shadow(0 0 8px hsl(var(--h) 100% 65% / .65)); }
.tile.sm { --s: 44px; } .tile.md { --s: 60px; }
.tile.pic { background: none; overflow: hidden; } .tile.pic img { width: 100%; height: 100%; display: block; }

/* ── layout ── */
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
section { position: relative; }
.reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── hero ── */
.hero { min-height: 100svh; display: grid; align-items: center; padding: calc(96px + env(safe-area-inset-top)) 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font: 400 clamp(52px, 9vw, 116px)/.92 var(--display); letter-spacing: .02em; margin: 22px 0 18px; background: linear-gradient(180deg, var(--ink) 30%, hsl(var(--h) 60% 75%)); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.hero h1.long { font-size: clamp(30px, 9.2vw, 84px); line-height: .98; }
@media (min-width: 901px) { .hero h1.long { font-size: clamp(44px, 6.2vw, 84px); } }
.hero .sub { font: 500 12.5px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 0; }
.hero .tag { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero .who { display: flex; align-items: center; gap: 18px; }
.device { position: relative; border-radius: 20px; padding: 10px; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px hsl(var(--h) 95% 50% / .5), 0 0 0 1px rgba(0,0,0,.5); transform: perspective(1400px) rotateY(-9deg) rotateX(4deg); transition: transform 1s var(--ease); }
.device:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.device img { border-radius: 12px; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-3); }
.device::after { content: ""; position: absolute; inset: 10px; border-radius: 12px; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 40%); pointer-events: none; }
.scrollcue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--dim); font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.scrollcue i { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--line-2); position: relative; }
.scrollcue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--acc); animation: mf-cue 1.8s infinite var(--ease); }
@keyframes mf-cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .device { transform: none; }
  .hero { min-height: auto; padding-top: calc(84px + env(safe-area-inset-top)); }
  .scrollcue { display: none; }
}

/* ── story blocks ── */
.block { padding: clamp(56px, 8vw, 104px) 0; }
.block + .block { padding-top: 0; }
.block h2 { font: 400 clamp(34px, 5vw, 58px)/1.05 var(--display); letter-spacing: .02em; margin: 14px 0 22px; text-wrap: balance; }
.block h2 em { font-style: normal; color: var(--acc); }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.6; color: var(--ink-2); max-width: 46em; }
.lede em { color: var(--ink); font-style: normal; }
.lede b, .card b { color: var(--ink); }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 36px; }
.card { position: relative; padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.card:hover { border-color: hsl(var(--h) 80% 60% / .45); transform: translateY(-3px); }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--acc-soft), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card .n { font: 600 12px/1 var(--mono); color: var(--acc); letter-spacing: .14em; }
.card h3 { font: 650 19px/1.3 var(--font); margin: 12px 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.card.scope { border-color: hsl(38 80% 55% / .3); background: linear-gradient(180deg, hsl(38 60% 20% / .2), var(--glass)); }
.card.scope .n { color: var(--gold); }
.prose a, .prose code { overflow-wrap: anywhere; }
.prose p { color: var(--ink-2); margin: 0 0 14px; } .prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--ink); font-style: italic; }
.prose ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); } .prose li { margin: 6px 0; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stack span { font: 500 12.5px/1 var(--mono); padding: 8px 12px; border-radius: 8px; background: var(--acc-soft); color: var(--acc); border: 1px solid hsl(var(--h) 80% 60% / .25); }

/* ── the morph: the explainer becomes the app ── */
.morph { height: 230vh; position: relative; }
.morph .stage { position: sticky; top: 0; height: 100vh; height: 100dvh; display: grid; place-items: center; overflow: hidden; }
.morph .intro { position: absolute; top: max(9vh, calc(env(safe-area-inset-top) + 70px)); left: 0; right: 0; text-align: center; padding: 0 16px; opacity: calc(1 - var(--p, 0) * 2.4); transform: translateY(calc(var(--p, 0) * -40px)); pointer-events: none; }
.morph .intro h2 { font: 400 clamp(30px, 4.6vw, 52px)/1.1 var(--display); margin: 10px 0 6px; }
.morph .intro p { color: var(--dim); margin: 0; font: 500 13px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.frame { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg-2); transform-origin: 50% 50%; will-change: transform, clip-path; contain: strict; cursor: pointer; }
.morph .glow { position: absolute; left: 50%; top: 50%; border-radius: 26px; box-shadow: 0 50px 140px -30px hsl(var(--h) 95% 50% / .6), 0 0 0 1px hsl(var(--h) 80% 60% / .45); pointer-events: none; will-change: transform, opacity; }
.frame .poster { position: absolute; inset: 0; background-size: cover; background-position: center top; transition: opacity .6s; }
.frame .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg-2); opacity: 0; transition: opacity .6s; pointer-events: none; }
.frame.loaded iframe { opacity: 1; } .frame.loaded .poster { opacity: 0; }
.morph .enter { position: absolute; left: 50%; top: 70%; transform: translateX(-50%); z-index: 3; transition: opacity .3s; }
.frame .spin { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--acc); animation: mf-spin 1s linear infinite; z-index: 1; }
.frame.loaded .spin { display: none; }
@keyframes mf-spin { to { transform: rotate(360deg); } }
/* docked: the app owns the screen */
html.docked, html.docked body { overflow: hidden; overscroll-behavior: none; }
html.docked .frame { position: fixed; inset: 0; width: 100vw; height: 100dvh; transform: none !important; clip-path: none !important; z-index: 60; cursor: auto; }
html.docked .morph .glow { opacity: 0; }
html.docked .frame iframe { pointer-events: auto; }
html.docked .morph .enter { opacity: 0; pointer-events: none; }
html.docked .mf-bar { transform: translateY(-110%); }
.dock { position: fixed; z-index: 70; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translate(-50%, -160%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(8,9,14,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 40px rgba(0,0,0,.5); transition: transform .45s var(--ease), opacity .3s; color: #eef1fb; opacity: .0; }
html.docked .dock { transform: translate(-50%, 0); opacity: 1; }
html.docked .dock.tuck { transform: translate(-50%, calc(-100% + 8px)); opacity: .55; }
.dock button, .dock a { all: unset; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; cursor: pointer; font: 600 13px/1 var(--font); color: #eef1fb; white-space: nowrap; }
.dock button:hover, .dock a:hover { background: rgba(255,255,255,.1); }
.dock .tile { --s: 26px; border-radius: 8px; } .dock .tile svg { filter: none; }
.dock svg { width: 16px; height: 16px; }
.dock .name { padding: 0 8px 0 4px; display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font); }
@media (max-width: 520px) { .dock .lbl { display: none; } .dock button, .dock a { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mf-sky::before, .mf-sky::after, .chip.live .dot, .scrollcue i::after { animation: none; }
  .morph { height: auto; } .morph .stage { position: relative; height: auto; padding: 60px 0; }
  .frame { position: relative; width: min(1080px, 92vw); height: 70vh; border-radius: 22px; } .morph .glow { display: none; }
  .morph .intro { position: relative; top: 0; margin-bottom: 20px; }
}

/* ── related & footer ── */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 22px; }
.rel { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-s); background: var(--glass); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.rel:hover { border-color: hsl(var(--h) 80% 60% / .5); transform: translateY(-2px); }
.rel b { display: block; font: 650 15.5px/1.2 var(--font); } .rel small { color: var(--dim); font-size: 13px; line-height: 1.35; display: block; margin-top: 3px; }
.foot { padding: 70px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 40px; color: var(--dim); font-size: 14px; }
.foot .closing { font: 400 clamp(20px, 2.6vw, 28px)/1.45 var(--display); color: var(--ink-2); max-width: 30em; margin: 0 0 36px; }
.foot .row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot a { color: var(--ink-2); text-decoration: none; } .foot a:hover { color: var(--ink); }

/* ── sheets (iOS install steps, notices) ── */
.sheet { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet .pane { width: min(460px, 100%); margin: 0 0 calc(12px + env(safe-area-inset-bottom)); padding: 24px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: translateY(30px); transition: transform .4s var(--ease); }
.sheet.open .pane { transform: none; }
.sheet h3 { margin: 0 0 6px; font: 650 20px/1.3 var(--font); } .sheet p, .sheet li { color: var(--ink-2); font-size: 15px; } .sheet ol { padding-left: 1.2em; }
.sheet .row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* ── widgets ── */
.widgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.w { position: relative; padding: 16px 18px; border-radius: var(--radius-s); background: var(--glass); border: 1px solid var(--line); min-height: 112px; overflow: hidden; text-decoration: none; display: block; transition: border-color .25s, transform .25s var(--ease); }
.w:hover { border-color: var(--line-2); transform: translateY(-2px); }
.w .wl { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; }
.w .wv { font: 650 30px/1.1 var(--font); margin-top: 12px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.w .ws { color: var(--dim); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.w .wv small { font-size: 15px; color: var(--dim); font-weight: 500; margin-left: 3px; }
.w.skel .wv { color: transparent; background: linear-gradient(90deg, var(--line), var(--line-2), var(--line)); background-size: 200% 100%; animation: mf-sk 1.4s infinite linear; border-radius: 6px; width: 60%; }
@keyframes mf-sk { to { background-position: -200% 0; } }

/* ── home ── */
.h-hero { min-height: 100svh; display: grid; align-items: center; padding: calc(90px + env(safe-area-inset-top)) 0 70px; position: relative; text-align: center; }
.h-hero .wrap { display: grid; justify-items: center; }
.h-mark { position: relative; width: clamp(150px, 24vw, 230px); aspect-ratio: 1; margin-bottom: 26px; }
.h-mark > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-mark .core { inset: 14%; width: 72%; height: 72%; filter: drop-shadow(0 0 40px rgba(255,140,50,.35)); animation: mf-float 7s ease-in-out infinite; }
.h-mark .orb { animation: mf-spin 38s linear infinite; } .h-mark .orb.b { animation-duration: 61s; animation-direction: reverse; }
.h-mark .core .hex { stroke-dasharray: 160; stroke-dashoffset: 160; animation: mf-draw 1.6s .15s var(--ease) forwards; }
.h-mark .core .em { stroke-dasharray: 70; stroke-dashoffset: 70; animation: mf-draw 1.2s .7s var(--ease) forwards; }
.h-mark .core .nd { opacity: 0; transform-box: fill-box; transform-origin: center; animation: mf-pop .5s var(--ease) forwards; }
.h-mark .core .hub { animation: mf-pop .5s 1.5s var(--ease) both, mf-beat 3.2s 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mf-spin { to { transform: rotate(360deg); } }
@keyframes mf-float { 50% { transform: translateY(-6px); } }
@keyframes mf-draw { to { stroke-dashoffset: 0; } }
@keyframes mf-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes mf-beat { 50% { transform: scale(1.35); } }
.h-hero h1 { font: 400 clamp(46px, 10.5vw, 132px)/.95 var(--display); letter-spacing: .08em; margin: 18px 0 16px; background: linear-gradient(120deg, var(--sun), var(--gold) 45%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-left: .08em; }
.h-hero .tag { font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; color: var(--ink-2); max-width: 36em; margin: 0 auto 30px; }
.h-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.h-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.h-stats .chip b { color: var(--ink); font-weight: 700; }
:root[data-theme="light"] .h-hero h1 { background-image: linear-gradient(120deg, #b26a00, #c2410c); }

.mf-nav { display: flex; gap: 2px; }
.mf-nav a { text-decoration: none; color: var(--dim); font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 11px; border-radius: 10px; }
.mf-nav a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.iconbtn { all: unset; cursor: pointer; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--ink-2); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.iconbtn:hover { color: var(--ink); border-color: var(--line-2); } .iconbtn svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .mf-nav { display: none; } }
@media (min-width: 761px) { .finder { position: sticky; } }

.h-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: 26px; }
.h-head h2 { margin-bottom: 0; }
.h-head p { color: var(--dim); margin: 0; max-width: 34em; }
.widgets .w { text-decoration: none; color: inherit; min-height: 118px; }
.home .widgets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .home .widgets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .widgets, .home .widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .w .wv { font-size: 25px; } }

.feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .feature { grid-template-columns: 1fr; } }
.fcard { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 340px; padding: 28px; border-radius: 26px; text-decoration: none; color: inherit;
  background: radial-gradient(120% 90% at 0% 0%, hsl(var(--h) 85% 45% / .32), transparent 60%), radial-gradient(90% 80% at 100% 100%, hsl(calc(var(--h) + 40) 85% 50% / .18), transparent 60%), var(--glass);
  border: 1px solid hsl(var(--h) 80% 60% / .28); transition: transform .5s var(--ease), border-color .3s, box-shadow .5s; }
.fcard:hover { transform: translateY(-4px); border-color: hsl(var(--h) 85% 65% / .6); box-shadow: 0 40px 90px -40px hsl(var(--h) 90% 55% / .55); }
.fcard .tile { --s: 72px; }
.fcard h3 { font: 400 clamp(30px, 3.4vw, 40px)/1.05 var(--display); letter-spacing: .03em; margin: 6px 0 0; }
.fcard p { color: var(--ink-2); margin: 0; font-size: 16px; line-height: 1.6; flex: 1; }
.fcard .go { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.fcard .go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); } .fcard:hover .go svg { transform: translateX(4px); }
.fcard .art { position: absolute; right: -50px; bottom: -50px; width: 230px; height: 230px; opacity: .11; color: var(--acc); pointer-events: none; }
.fcard.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 26px; }
.fcard.wide > div { flex: 1; display: grid; gap: 10px; }
@media (max-width: 700px) { .fcard.wide { flex-direction: column; align-items: start; } }

.finder { position: relative; top: calc(58px + env(safe-area-inset-top)); z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; margin: 0 -12px 26px; border-radius: 18px; background: var(--glass-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.finder .q { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.finder .q:focus-within { border-color: var(--acc); }
.finder .q svg { width: 17px; height: 17px; color: var(--dim); flex: none; }
.finder input { all: unset; flex: 1; min-width: 0; font: 500 15px/1 var(--font); color: var(--ink); }
.finder input::placeholder { color: var(--mute); }
.finder kbd { font: 600 11px/1 var(--mono); color: var(--mute); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 6px; }
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; } .seg::-webkit-scrollbar { display: none; }
.seg button { all: unset; cursor: pointer; white-space: nowrap; padding: 10px 14px; border-radius: 11px; font: 600 13px/1 var(--font); color: var(--dim); border: 1px solid transparent; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); background: rgba(255,255,255,.07); border-color: var(--line-2); }
.finder .live-only { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; font: 600 13px/1 var(--font); color: var(--dim); }
.finder .live-only i { width: 30px; height: 18px; border-radius: 9px; background: var(--line-2); position: relative; transition: background .2s; }
.finder .live-only i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-2); transition: transform .2s var(--ease); }
.finder .live-only[aria-pressed="true"] { color: var(--ink); } .finder .live-only[aria-pressed="true"] i { background: #1f9d68; } .finder .live-only[aria-pressed="true"] i::after { transform: translateX(12px); background: #fff; }

.cat { scroll-margin-top: 140px; }
.cat + .cat { margin-top: 56px; }
.cat > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.cat > header h3 { font: 400 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: .04em; margin: 0; }
.cat > header p { margin: 0; color: var(--dim); font-size: 15px; }
.cat > header .n { font: 600 12px/1 var(--mono); color: var(--mute); letter-spacing: .12em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.app { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: linear-gradient(180deg, hsl(var(--h) 60% 30% / .10), transparent 70%), var(--glass); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; contain: layout paint; }
.app:hover { transform: translateY(-3px); border-color: hsl(var(--h) 80% 60% / .5); box-shadow: 0 30px 60px -36px hsl(var(--h) 90% 55% / .6); }
.app .cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.app .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app .tile { --s: 52px; }
.app h4 { margin: 2px 0 0; font: 650 19px/1.2 var(--font); letter-spacing: -.01em; }
.app p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app .go { position: relative; z-index: 2; display: flex; gap: 8px; }
.app .go .btn { --bh: 36px; padding: 0 14px; font-size: 13.5px; }
.app .go .btn.pri { --acc: hsl(var(--h) 92% 64%); --acc-2: hsl(calc(var(--h) + 38) 90% 62%); --acc-ink: hsl(var(--h) 100% 8%); }
.app .chip { font-size: 11.5px; padding: 5px 10px; }
.app[hidden], .cat[hidden] { display: none; }
.none { display: none; text-align: center; color: var(--dim); padding: 50px 0; } .none.on { display: block; }

.atlas-cta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; padding: 34px; border-radius: 28px; text-decoration: none; color: inherit; border: 1px solid var(--line); background: radial-gradient(80% 120% at 100% 0%, rgba(240,166,58,.16), transparent 60%), var(--glass); transition: border-color .3s; }
.atlas-cta:hover { border-color: rgba(240,166,58,.5); }
.atlas-cta img { border-radius: 16px; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 800px) { .atlas-cta { grid-template-columns: 1fr; padding: 22px; } }
.home .foot .links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
@media (prefers-reduced-motion: reduce) {
  .h-mark .core, .h-mark .orb, .h-mark .core .hub { animation: none; }
  .h-mark .core .hex, .h-mark .core .em { animation: none; stroke-dashoffset: 0; } .h-mark .core .nd { animation: none; opacity: 1; }
}
