/* ============================================================
   MIR.PRO.BD — design system
   Dark futuristic editorial · token-driven · mobile-first
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Bengali", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --bg: #05070b;
  --bg-2: #070a11;
  --surface: #0b0f17;
  --surface-2: #101623;
  --text: #e9edf3;
  --text-muted: #8b94a6;
  --border: rgba(233, 237, 243, 0.09);
  --border-strong: rgba(233, 237, 243, 0.18);

  --accent: #22d3ee;
  --accent-rgb: 34, 211, 238;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --ink: #0a0c10;
  --paper: #f4efe6;

  --radius: 14px;
  --radius-sm: 9px;
  --nav-h: 58px;
  --bnav-h: 60px;
  --wrap: 1180px;
  --pad: clamp(18px, 4.5vw, 44px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  --shadow-1: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-2: 0 24px 70px -24px rgba(0, 0, 0, 0.75);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-accent="violet"] { --accent: #a78bfa; --accent-rgb: 167, 139, 250; --accent-soft: rgba(167, 139, 250, 0.12); }
html[data-accent="green"]  { --accent: #34d399; --accent-rgb: 52, 211, 153;  --accent-soft: rgba(52, 211, 153, 0.12); }
html[data-accent="orange"] { --accent: #fb923c; --accent-rgb: 251, 146, 60;  --accent-soft: rgba(251, 146, 60, 0.12); }

html[data-theme="light"] {
  --bg: #f3f4f7;
  --bg-2: #eceef3;
  --surface: #ffffff;
  --surface-2: #f2f4f9;
  --text: #171c26;
  --text-muted: #5b6472;
  --border: rgba(23, 28, 38, 0.12);
  --border-strong: rgba(23, 28, 38, 0.24);
  --ink: #ffffff;
  --shadow-1: 0 10px 30px -14px rgba(23, 28, 38, 0.22);
  --shadow-2: 0 24px 70px -28px rgba(23, 28, 38, 0.30);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}
body::before { /* grain */
  content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background-image: var(--grain); opacity: 0.05; mix-blend-mode: overlay;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 640; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
::selection { background: rgba(var(--accent-rgb), 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 400; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; }
section { scroll-margin-top: calc(var(--nav-h) + 16px); contain: layout style; }

/* subtle ambient wash */
.wash { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(var(--accent-rgb), 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(var(--accent-rgb), 0.05), transparent 55%);
  transition: opacity 0.5s;
}
#bg-canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
main, .topbar, .bottom-nav, footer { position: relative; z-index: 2; }

/* ---------- 3. BOOT ---------- */
#boot {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--bg); transition: opacity 0.5s var(--ease), visibility 0.5s;
}
#boot.done { opacity: 0; visibility: hidden; }
.boot-inner { text-align: center; width: min(320px, 78vw); }
.boot-logo { font-family: var(--font-mono); font-size: clamp(28px, 7vw, 40px); letter-spacing: 0.34em; margin-left: 0.34em; color: var(--text); }
.boot-logo b { color: var(--accent); font-weight: 500; }
.boot-track { height: 2px; background: var(--border); margin: 26px 0 14px; border-radius: 2px; overflow: hidden; }
.boot-bar { height: 100%; width: 0%; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8); transition: width 0.25s var(--ease); }
.boot-status { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--text-muted); text-transform: uppercase; min-height: 1.2em; }

/* ---------- 4. PROGRESS + CURSOR ---------- */
#scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 210; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, transparent, var(--accent)); pointer-events: none; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 320; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9); }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(var(--accent-rgb), 0.55); display: grid; place-items: center; transition: width 0.25s var(--ease), height 0.25s var(--ease), background-color 0.25s, border-color 0.25s; }
.cursor-ring span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--ink); opacity: 0; transition: opacity 0.15s; }
body.cursor-hover .cursor-ring { width: 58px; height: 58px; background: rgba(var(--accent-rgb), 0.14); border-color: rgba(var(--accent-rgb), 0.8); }
body.cursor-label .cursor-ring { width: 64px; height: 64px; background: var(--accent); border-color: transparent; }
body.cursor-label .cursor-ring span { opacity: 1; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }

/* ---------- 5. NAV ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; gap: 10px; height: var(--nav-h); padding-inline: clamp(12px, 3vw, 28px); transition: transform 0.4s var(--ease), background-color 0.4s, border-color 0.4s; border-bottom: 1px solid transparent; }
.topbar.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.topbar.hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.22em; font-size: 14px; text-decoration: none; user-select: none; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9); }
.brand em { color: var(--accent); font-style: normal; }
.nav-links { display: none; margin-inline: auto; gap: 2px; }
.nav-links a { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em; text-decoration: none; color: var(--text-muted); padding: 9px 12px; border-radius: 8px; transition: color 0.2s, background-color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--accent); }
.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text-muted); transition: color 0.2s, border-color 0.2s, transform 0.2s; position: relative; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(0.93); }
.icon-btn svg { width: 17px; height: 17px; }
.clock-chip { display: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--text-muted); border: 1px solid var(--border); padding: 8px 12px; border-radius: 11px; background: color-mix(in srgb, var(--surface) 70%, transparent); white-space: nowrap; }
.clock-chip b { color: var(--text); font-weight: 500; }
.kbd-hint { display: none; }

.bottom-nav { position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; gap: 2px; padding: 6px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); box-shadow: var(--shadow-1); max-width: calc(100vw - 20px); }
.bottom-nav a, .bottom-nav button { display: grid; place-items: center; gap: 2px; min-width: 56px; padding: 7px 6px 5px; border-radius: 13px; text-decoration: none; color: var(--text-muted); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; -webkit-tap-highlight-color: transparent; }
.bottom-nav svg { width: 18px; height: 18px; }
.bottom-nav .active { color: var(--accent); background: var(--accent-soft); }

/* ---------- 6. BUTTONS / CHIPS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; min-height: 46px; border-radius: 12px; font-weight: 600; font-size: 14.5px; letter-spacing: 0.02em; text-decoration: none; border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.3s, background-color 0.3s, border-color 0.3s; -webkit-tap-highlight-color: transparent; position: relative; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 8px 28px -8px rgba(var(--accent-rgb), 0.55); }
.btn-primary:hover { box-shadow: 0 10px 34px -8px rgba(var(--accent-rgb), 0.7); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.btn-ghost:hover { border-color: rgba(var(--accent-rgb), 0.6); background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); background: color-mix(in srgb, var(--surface) 60%, transparent); transition: all 0.25s; -webkit-tap-highlight-color: transparent; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.tag.accent { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.4); background: var(--accent-soft); }

/* ---------- 7. SECTIONS ---------- */
.section { padding-block: clamp(70px, 12vh, 130px); }
.section-head { margin-bottom: clamp(28px, 5vw, 46px); max-width: 720px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.section-title { font-size: clamp(26px, 5.4vw, 44px); }
.section-sub { color: var(--text-muted); font-size: clamp(14.5px, 2vw, 16.5px); max-width: 60ch; }
.section-tools-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 18px; }

/* reveal-on-scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- 8. HERO ---------- */
.hero { min-height: 100svh; display: grid; align-content: center; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 90px; position: relative; overflow: clip; }
.orb-stage { position: absolute; inset: 0; z-index: -1; }
#orb-canvas, #orb-fallback { position: absolute; top: 50%; left: 50%; width: min(92vw, 640px); height: min(92vw, 640px); transform: translate(-50%, -52%); }
.hero-inner { text-align: center; }
.hero-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.34em; color: var(--text-muted); text-transform: uppercase; }
.hero-title { font-size: clamp(52px, 15vw, 132px); font-weight: 680; letter-spacing: 0.06em; margin: 12px 0 6px; line-height: 1; }
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(4deg); }
body.booted .hero-title .ch { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i) * 45ms + 120ms); }
.hero-title .accent { color: var(--accent); }
.hero-sub { font-size: clamp(15px, 2.6vw, 19px); color: var(--text); max-width: 34ch; margin: 0 auto 14px; font-weight: 500; }
.hero-meta { font-family: var(--font-mono); font-size: clamp(10px, 2.4vw, 12px); letter-spacing: 0.22em; color: var(--text-muted); text-transform: uppercase; }
.hero-meta i { font-style: normal; color: rgba(var(--accent-rgb), 0.8); padding-inline: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.orbit-chips { position: absolute; top: 50%; left: 50%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.orbit-chip { position: absolute; pointer-events: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--text-muted); text-decoration: none; transition: color 0.25s, border-color 0.25s; -webkit-tap-highlight-color: transparent; }
.orbit-chip:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.55); }
.hero-foot { position: absolute; left: 0; right: 0; bottom: calc(var(--bnav-h) + 26px); display: flex; justify-content: center; }
.scroll-hint { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.3em; color: var(--text-muted); text-decoration: none; }
.scroll-hint::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 9. UNIVERSE ---------- */
.universe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.uni-tile { position: relative; display: grid; gap: 6px; align-content: end; min-height: 138px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 88%, transparent)); text-decoration: none; overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.3s; -webkit-tap-highlight-color: transparent; }
.uni-tile:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), 0.5); }
.uni-tile .glyph { position: absolute; top: 10px; right: 12px; font-size: 40px; opacity: 0.85; }
.uni-tile .uni-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 8px; }
.uni-tile h3 { font-size: 17px; margin: 0; letter-spacing: 0.12em; font-family: var(--font-mono); font-weight: 600; }
.uni-tile p { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.uni-tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(240px 140px at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.12), transparent 70%); opacity: 0; transition: opacity 0.3s; }
.uni-tile:hover::after { opacity: 1; }

/* ---------- 10. PROJECTS ---------- */
.project-grid { display: grid; gap: 14px; }
.project-card { position: relative; display: grid; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; text-decoration: none; transform-style: preserve-3d; transition: border-color 0.3s, box-shadow 0.4s, transform 0.15s ease-out; will-change: transform; }
.project-card:hover { border-color: rgba(var(--accent-rgb), 0.45); box-shadow: var(--shadow-2); }
.project-card::before { content: ""; position: absolute; inset: 0; z-index: 2; background: radial-gradient(420px 300px at var(--mx, 50%) var(--my, 30%), rgba(var(--accent-rgb), 0.14), transparent 65%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.project-card:hover::before { opacity: 1; }
.pc-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project-card:hover .pc-media img { transform: scale(1.045); }
.pc-status { position: absolute; top: 12px; left: 12px; z-index: 3; }
.pc-body { padding: 18px; display: grid; gap: 10px; }
.pc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pc-top h3 { margin: 0; font-size: 18.5px; }
.pc-year { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.16em; }
.pc-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; }
.pc-desc { margin: 0; color: var(--text-muted); font-size: 14px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-featured { border-color: rgba(var(--accent-rgb), 0.35); }
@media (min-width: 760px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured-first { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .project-card.featured-first .pc-media { aspect-ratio: auto; min-height: 320px; }
}

/* ---------- 11. TOOLS ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.tool-card { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 88%, transparent); text-decoration: none; transition: transform 0.3s var(--ease), border-color 0.25s; -webkit-tap-highlight-color: transparent; position: relative; }
.tool-card:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), 0.5); }
.tool-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.25); }
.tool-icon svg { width: 17px; height: 17px; }
.tool-card h3 { margin: 4px 0 0; font-size: 14.5px; font-weight: 620; }
.tool-card p { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.tool-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.tool-meta .tag { font-size: 9px; }
.tool-launch { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--accent); }
.tool-card.planned { opacity: 0.62; }
.tool-card.planned:hover { transform: none; }

/* ---------- 12. CREATIVE ---------- */
.tab-bar { display: flex; gap: 6px; overflow-x: auto; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--surface) 65%, transparent); scrollbar-width: none; margin-bottom: 26px; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn { flex: 1 0 auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; padding: 11px 16px; border-radius: 10px; color: var(--text-muted); text-align: center; transition: all 0.25s; white-space: nowrap; }
.tab-btn.active { color: var(--ink); background: var(--accent); }
.masonry { columns: 2; column-gap: 12px; }
@media (min-width: 800px) { .masonry { columns: 3; } }
@media (min-width: 1200px) { .masonry { columns: 3; } }
.photo-card { break-inside: avoid; margin-bottom: 12px; position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); display: block; width: 100%; padding: 0; text-align: left; -webkit-tap-highlight-color: transparent; }
.photo-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transform: scale(1.02); transition: transform 6s var(--ease); }
.photo-card:hover img, .photo-card:focus-visible img { transform: scale(1.12); }
.photo-card figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(4, 6, 10, 0.85)); color: #fff; display: grid; gap: 2px; opacity: 0; transform: translateY(8px); transition: all 0.35s var(--ease); }
.photo-card:hover figcaption, .photo-card:focus-visible figcaption { opacity: 1; transform: none; }
.photo-card .pt { font-weight: 600; font-size: 14px; }
.photo-card .pm { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.75); text-transform: uppercase; }

.cali-panel { --paper-shadow: var(--shadow-1); display: grid; gap: 16px; }
.cali-card { position: relative; border-radius: var(--radius); border: 1px solid var(--border); background: var(--paper) var(--grain); background-blend-mode: multiply; color: #1c1a17; overflow: hidden; box-shadow: var(--paper-shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.cali-card:hover { transform: translateY(-3px) rotate(-0.3deg); box-shadow: var(--shadow-2); }
.cali-card img { width: 100%; max-height: 420px; object-fit: cover; }
.cali-glyph { font-size: clamp(64px, 14vw, 120px); line-height: 1.35; text-align: center; padding: 34px 20px 10px; font-weight: 500; }
.cali-body { padding: 16px 18px 18px; }
.cali-body h3 { margin: 0 0 2px; font-size: 17px; }
.cali-meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #6d6455; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.cali-body p { margin: 0; font-size: 13.5px; color: #3d382f; }
.cali-open { position: absolute; inset: 0; z-index: 2; }

.video-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .video-grid { grid-template-columns: 1fr 1fr; } }
.video-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: var(--surface-2); display: block; width: 100%; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-play span { width: 58px; height: 58px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.92); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); transition: transform 0.3s; }
.video-thumb:hover .video-play span { transform: scale(1.1); }
.video-body { padding: 14px 16px; }
.video-body h3 { margin: 0 0 3px; font-size: 15px; }
.empty-note { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 34px 22px; text-align: center; color: var(--text-muted); font-size: 14px; }
.empty-note code { font-family: var(--font-mono); color: var(--accent); font-size: 12px; }

/* ---------- 13. BLOG ---------- */
.post-grid { display: grid; gap: 14px; }
.post-card { position: relative; display: grid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); text-decoration: none; transition: border-color 0.3s, transform 0.3s var(--ease); -webkit-tap-highlight-color: transparent; }
.post-card:hover { border-color: rgba(var(--accent-rgb), 0.45); transform: translateY(-3px); }
.post-media { aspect-ratio: 16/8.2; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-muted); text-transform: uppercase; }
.post-body h3 { margin: 0; font-size: 18px; }
.post-body p { margin: 0; font-size: 13.5px; color: var(--text-muted); }
@media (min-width: 760px) { .post-grid { grid-template-columns: 1fr 1fr; } .post-card.featured { grid-column: 1/-1; grid-template-columns: 1.2fr 1fr; } .post-card.featured .post-media { aspect-ratio: auto; } }

/* ---------- 14. TIMELINE ---------- */
.timeline { position: relative; display: grid; gap: 0; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--accent), var(--border-strong)); }
.tl-node { position: relative; padding: 0 0 26px 18px; }
.tl-node::before { content: ""; position: absolute; left: -26px; top: 6px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.tl-node[aria-expanded="true"]::before, .tl-node:hover::before { transform: scale(1.25); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.8); }
.tl-year { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; color: var(--accent); }
.tl-label { font-size: 17px; font-weight: 620; margin: 2px 0 6px; }
.tl-text { font-size: 13.5px; color: var(--text-muted); max-width: 56ch; overflow: hidden; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.tl-node[aria-expanded="true"] .tl-text { grid-template-rows: 1fr; }
.tl-text > div { min-height: 0; overflow: hidden; }
@media (min-width: 800px) { .timeline { padding-left: 0; } .timeline::before { display: none; } .tl-node { padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 70%, transparent); } .tl-node::before { display: none; } .tl-text { grid-template-rows: 1fr; } }

/* constellation */
.constellation-wrap { position: relative; margin-top: 40px; }
#skills-canvas { width: 100%; height: clamp(320px, 52vw, 460px); display: block; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 55%, transparent); touch-action: pan-y; }
.constellation-tip { position: absolute; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-1); font-size: 12.5px; opacity: 0; transform: translate(-50%, -120%); transition: opacity 0.2s; max-width: 240px; z-index: 5; }
.constellation-tip b { display: block; color: var(--accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 2px; }

/* ---------- 15. NOW ---------- */
.now-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.now-cell { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.now-cell .nk { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; display: block; }
.now-cell .nv { font-size: 15px; font-weight: 550; }
.now-updated { margin-top: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--text-muted); text-transform: uppercase; }
@media (min-width: 760px) { .now-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 16. DESK ---------- */
.desk-stage { position: relative; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 60%, transparent), color-mix(in srgb, var(--bg) 80%, transparent)); overflow: hidden; perspective: 900px; }
#desk-svg { display: block; width: 100%; height: auto; }
.desk-hot { cursor: pointer; }
.desk-hot .hot-halo { opacity: 0; transition: opacity 0.3s; }
.desk-hot:hover .hot-halo, .desk-hot:focus-visible .hot-halo { opacity: 1; }
.desk-hot:hover .hot-label, .desk-hot:focus-visible .hot-label { opacity: 1; transform: translateY(0); }
.desk-cards { display: none; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px; }
.desk-cards a { padding: 14px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--text-muted); background: color-mix(in srgb, var(--surface) 80%, transparent); }
html[data-pm="LITE"] .desk-stage { display: none; }
html[data-pm="LITE"] .desk-cards { display: grid; }

/* ---------- 17. TERMINAL ---------- */
.terminal { border: 1px solid var(--border-strong); border-radius: var(--radius); background: #070a0f; box-shadow: var(--shadow-1); overflow: hidden; font-family: var(--font-mono); font-size: 13px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, #070a0f); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.term-bar i:first-child { background: rgba(var(--accent-rgb), 0.8); }
.term-bar .tt { margin-left: 8px; font-size: 10.5px; letter-spacing: 0.2em; color: var(--text-muted); }
.term-body { padding: 16px; height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.term-body .ln { white-space: pre-wrap; word-break: break-word; margin: 0 0 4px; color: #b9c2cf; }
.term-body .ln.sys { color: var(--text-muted); }
.term-body .ln.ok { color: var(--accent); }
.term-line { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; }
.term-line .prompt { color: var(--accent); white-space: nowrap; }
.term-line input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; caret-color: var(--accent); }

/* ---------- 18. CONTACT ---------- */
.contact-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: 50px; } }
.form-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field textarea, .field select { background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--border-strong); border-radius: 11px; padding: 13px 15px; color: var(--text); transition: border-color 0.25s, background-color 0.25s; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.65); background: var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -4000px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.social-orbit { position: relative; min-height: 280px; display: grid; place-items: center; }
.orbit-ring { position: absolute; border: 1px dashed var(--border); border-radius: 50%; }
.social-node { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--text-muted); text-decoration: none; transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease); -webkit-tap-highlight-color: transparent; }
.social-node:hover, .social-node:focus-visible { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.7); transform: scale(1.12); }
.social-node svg { width: 20px; height: 20px; }
.contact-aside { display: grid; gap: 18px; align-content: start; }

/* ---------- 19. FOOTER ---------- */
footer { border-top: 1px solid var(--border); padding: 60px 0 120px; background: linear-gradient(transparent, rgba(var(--accent-rgb), 0.04)); }
.foot-word { font-family: var(--font-mono); font-weight: 600; font-size: clamp(34px, 9vw, 84px); letter-spacing: 0.1em; line-height: 1; margin-bottom: 8px; color: var(--text); }
.foot-word em { color: var(--accent); font-style: normal; }
.foot-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; color: var(--text-muted); text-transform: uppercase; }
.foot-grid { display: grid; gap: 26px; margin-top: 44px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-col h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.26em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--accent); }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--text-muted); text-transform: uppercase; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- 20. OVERLAYS ---------- */
.overlay { position: fixed; inset: 0; z-index: 240; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; display: grid; }
.overlay.open { opacity: 1; visibility: visible; }
.overlay-sheet { place-items: start center; padding: 9vh 16px 16px; }
.panel { width: min(640px, 100%); max-height: 82vh; overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow-2); transform: translateY(16px) scale(0.99); transition: transform 0.3s var(--ease); overscroll-behavior: contain; }
.overlay.open .panel { transform: none; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 3; }
.panel-head input { flex: 1; background: none; border: 0; outline: 0; font-size: 15.5px; color: var(--text); }
.panel-body { padding: 10px; }
.esc-hint { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-muted); border: 1px solid var(--border); padding: 3px 8px; border-radius: 6px; letter-spacing: 0.1em; }
.cmd-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 13px; border-radius: 11px; text-decoration: none; color: var(--text); border: 1px solid transparent; }
.cmd-item .ci { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.cmd-item .ci svg { width: 16px; height: 16px; }
.cmd-item b { display: block; font-size: 14px; font-weight: 560; }
.cmd-item small { color: var(--text-muted); font-size: 11.5px; }
.cmd-item .ctype { margin-left: auto; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--text-muted); border: 1px solid var(--border); padding: 3px 7px; border-radius: 5px; flex: none; }
.cmd-item.sel, .cmd-item:hover { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), 0.4); }

/* modal (project / tool / article) */
.modal-panel { place-items: end stretch; padding: 0; }
.modal-panel .panel { width: 100%; max-height: 94svh; border-radius: 22px 22px 0 0; }
@media (min-width: 720px) { .modal-panel { place-items: center; padding: 4vh 18px; } .modal-panel .panel { border-radius: 18px; max-height: 90vh; } }
.close-x { margin-left: auto; }

/* lightbox */
#lightbox { z-index: 250; background: rgba(3, 5, 8, 0.94); place-items: center; }
#lightbox img { max-width: 94vw; max-height: 78vh; border-radius: 8px; box-shadow: var(--shadow-2); transition: transform 0.25s var(--ease); transform-origin: center; touch-action: none; user-select: none; -webkit-user-drag: none; }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); text-align: center; color: #dfe5ec; }
.lb-caption b { display: block; }
.lb-caption span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: #93a0af; text-transform: uppercase; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lb-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-close { top: 14px; transform: none; }
.lb-tools { position: absolute; top: 14px; right: 66px; display: flex; gap: 8px; }
.lb-count { position: absolute; top: 22px; left: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: #93a0af; }

/* reader */
.reader-body { padding: clamp(20px, 4vw, 44px); font-size: 16.5px; line-height: 1.75; max-width: 720px; margin-inline: auto; }
.reader-body h1 { font-size: clamp(26px, 5vw, 38px); margin: 14px 0 6px; }
.reader-body h2 { font-size: 22px; margin-top: 1.6em; scroll-margin-top: 80px; }
.reader-body h3 { font-size: 18px; margin-top: 1.4em; }
.reader-body p { color: color-mix(in srgb, var(--text) 88%, var(--text-muted)); }
.reader-body a { color: var(--accent); }
.reader-body pre { background: #0a0e15; border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.reader-body code { font-family: var(--font-mono); font-size: 0.88em; background: var(--accent-soft); padding: 2px 6px; border-radius: 5px; }
.reader-body pre code { background: none; padding: 0; }
.reader-body blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--text-muted); font-style: italic; }
.reader-body ul, .reader-body ol { padding-left: 1.3em; }
.reader-body img { border-radius: 12px; margin: 1em 0; }
.reader-cover { aspect-ratio: 16/7; object-fit: cover; width: 100%; }
.reader-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; }
#reader-progress { position: sticky; top: 0; z-index: 4; height: 3px; background: transparent; }
#reader-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.toc { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 18px 0; background: color-mix(in srgb, var(--surface-2) 60%, transparent); font-size: 14px; }
.toc b { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; display: block; margin-bottom: 8px; }
.toc a { display: block; padding: 3px 0; text-decoration: none; color: var(--text-muted); }
.toc a:hover { color: var(--accent); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); }

/* search results */
.result-type { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; padding: 3px 7px; border-radius: 5px; border: 1px solid rgba(var(--accent-rgb), 0.4); color: var(--accent); flex: none; }

/* ---------- 21. MINI TOOLS ---------- */
.mini-tool { padding: clamp(16px, 3vw, 26px); display: grid; gap: 14px; }
.mini-tool textarea, .mini-tool input[type="text"], .mini-tool input[type="number"], .mini-tool input[type="url"] { width: 100%; background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--border-strong); border-radius: 11px; padding: 12px 14px; color: var(--text); }
.mini-tool textarea { min-height: 120px; font-family: var(--font-mono); font-size: 13px; }
.mini-tool pre.out { background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--border); border-radius: 11px; padding: 14px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; margin: 0; max-height: 300px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }
.mini-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mini-stat { display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 60%, transparent); min-width: 90px; }
.mini-stat b { font-size: 20px; font-family: var(--font-mono); color: var(--accent); }
.mini-stat span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--text-muted); text-transform: uppercase; }
#qr-canvas { width: 100%; max-width: 300px; margin-inline: auto; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.exif-table { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; }
.exif-table dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-muted); text-transform: uppercase; align-self: center; }
.exif-table dd { margin: 0; }
.tool-disclaimer { font-size: 11.5px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }
.tool-disclaimer svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* ---------- 22. TOAST / STATUS ---------- */
#toasts { position: fixed; bottom: calc(var(--bnav-h) + 20px); left: 50%; transform: translateX(-50%); z-index: 280; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-1); font-size: 13.5px; animation: toast-in 0.35s var(--ease); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.status-panel-list { display: grid; gap: 4px; padding: 8px; }
.sp-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.sp-row:nth-child(odd) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.sp-row span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--text-muted); text-transform: uppercase; align-self: center; }
.sp-row b { font-weight: 560; text-align: right; overflow-wrap: anywhere; }
.pm-picker { display: flex; gap: 6px; }
.pm-picker .chip { padding: 6px 10px; font-size: 9.5px; }

/* ---------- 23. EXPLORE MODE ---------- */
body.explore .topbar, body.explore .bottom-nav { opacity: 0.12; pointer-events: none; }
body.explore main { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.004); } }
body.explore .rv { animation: floaty 6s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
#exit-explore { position: fixed; bottom: calc(var(--bnav-h) + 18px); left: 50%; transform: translateX(-50%) translateY(90px); z-index: 260; transition: transform 0.4s var(--ease); }
body.explore #exit-explore { transform: translateX(-50%) translateY(0); }

/* ---------- 24. MOTION INSTALL BANNER ---------- */
#motion-banner { position: fixed; bottom: calc(var(--bnav-h) + 18px); right: 14px; z-index: 205; display: none; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-1); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; }
#motion-banner.show { display: flex; }

/* ---------- 25. PERF MODE / REDUCED MOTION / PRINT ---------- */
html[data-pm="LITE"] .wash, html[data-pm="LITE"] body::before { display: none; }
html[data-pm="LITE"] .panel, html[data-pm="LITE"] .topbar.scrolled, html[data-pm="LITE"] .bottom-nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-pm="BALANCED"] .panel { backdrop-filter: blur(6px); }
html[data-pm="LITE"] * { scroll-behavior: auto; }
html[data-pm="LITE"] .rv { transition-duration: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .rv { opacity: 1; transform: none; }
  .hero-title .ch { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
@media print {
  .topbar, .bottom-nav, #boot, .overlay, #toasts, .orb-stage, #bg-canvas, .wash, #exit-explore { display: none !important; }
  body { background: #fff; color: #000; }
}
