/* soloOS — the desktop-style portfolio shell.
   Original desktop metaphor (menu bar, windows, dock). Light + dark themes. */
:root {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "JetBrains Mono", Consolas, monospace;
  --mint: #12b981; --mint-2: #3cffa8; --cyan: #0ea5e9; --violet: #8b5cf6; --amber: #f59e0b; --rose: #f43f5e;
  --menubar-h: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html[data-theme="light"] {
  --bg: #e9eef2;
  --text: #111827; --muted: #4b5563; --dim: #6b7280;
  --win: rgba(255, 255, 255, .88); --win-solid: #ffffff; --win-2: rgba(246, 248, 250, .9);
  --line: rgba(15, 23, 42, .09); --line-2: rgba(15, 23, 42, .16);
  --bar: rgba(255, 255, 255, .55); --dock: rgba(255, 255, 255, .45);
  --shadow: 0 30px 70px -20px rgba(15, 23, 42, .35), 0 0 0 .5px rgba(15, 23, 42, .12);
  --accent: #059669; --accent-ink: #ffffff; --accent-soft: rgba(5, 150, 105, .1);
  --sel: rgba(5, 150, 105, .14);
  --wall: url("../img/wall-light.webp");
  --icon-label: #0f172a; --icon-label-bg: rgba(255,255,255,.55);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #05070a;
  --text: #e8eef5; --muted: #a3b0c0; --dim: #6b7a8c;
  --win: rgba(18, 22, 30, .9); --win-solid: #12161e; --win-2: rgba(24, 29, 39, .85);
  --line: rgba(160, 200, 255, .09); --line-2: rgba(160, 200, 255, .16);
  --bar: rgba(10, 13, 18, .5); --dock: rgba(20, 25, 34, .45);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .75), 0 0 0 .5px rgba(160, 200, 255, .14);
  --accent: #3cffa8; --accent-ink: #00170c; --accent-soft: rgba(60, 255, 168, .1);
  --sel: rgba(60, 255, 168, .14);
  --wall: url("../img/wall-dark.webp");
  --icon-label: #f1f5f9; --icon-label-bg: rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 40px; z-index: 9999; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 12px; }
.mono { font-family: var(--font-mono); }

/* ---------- wallpaper (parallax with pointer) ---------- */
.wallpaper { position: fixed; inset: -40px; z-index: 0; background: var(--wall) center / cover no-repeat, var(--bg);
  transform: translate3d(calc(var(--wx, 0) * 1px), calc(var(--wy, 0) * 1px), 0) scale(1.04); transition: background-image .6s; }
.wallpaper::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(127,127,127,.12) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; }

/* ---------- menu bar ---------- */
.menubar { position: fixed; top: 0; left: 0; right: 0; height: var(--menubar-h); z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 0 10px;
  background: var(--bar); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border-bottom: .5px solid var(--line); font-size: 13.5px; }
.menubar .left, .menubar .right { display: flex; align-items: center; gap: 2px; height: 100%; }
.mb-item { height: 22px; padding: 0 9px; border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.mb-item:hover, .mb-item[aria-expanded="true"] { background: var(--sel); }
.mb-logo svg { width: 16px; height: 16px; }
.mb-app { font-weight: 600; }
.mb-item svg { width: 15px; height: 15px; }
.mb-secure { color: var(--accent); font: 500 11.5px/1 var(--font-mono); letter-spacing: .04em; }
.mb-secure i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.mb-clock { font-variant-numeric: tabular-nums; }
.mb-menu { position: absolute; top: calc(var(--menubar-h) - 2px); min-width: 230px; padding: 5px; border-radius: 10px; background: var(--win); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); box-shadow: var(--shadow); border: .5px solid var(--line-2); }
.mb-menu[hidden] { display: none; }
.mb-menu button, .mb-menu a { display: flex; width: 100%; justify-content: space-between; gap: 20px; padding: 6px 10px; border-radius: 6px; text-align: left; text-decoration: none; font-size: 13.5px; }
.mb-menu button:hover, .mb-menu a:hover { background: var(--accent); color: var(--accent-ink); }
.mb-menu hr { border: 0; border-top: .5px solid var(--line-2); margin: 5px 6px; }
.mb-menu kbd { font: 500 12px/1.6 var(--font-mono); opacity: .6; }

/* ---------- desktop ---------- */
.desktop { position: fixed; inset: var(--menubar-h) 0 0 0; z-index: 1; }
.icons { position: absolute; top: 18px; right: 18px; bottom: 110px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 102px); gap: 6px 10px; direction: rtl;
  transform: translate3d(calc(var(--wx, 0) * -0.5px), calc(var(--wy, 0) * -0.5px), 0); }
.d-icon { direction: ltr; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 4px; border-radius: 10px; text-decoration: none; }
.d-icon:hover { background: rgba(127,127,127,.12); }
.d-icon:focus-visible, .d-icon.sel { background: var(--sel); outline: none; }
.d-icon svg, .d-icon .ic { width: 56px; height: 56px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.d-icon span { font-size: 12.5px; line-height: 1.25; text-align: center; color: var(--icon-label); padding: 1px 6px; border-radius: 5px; background: var(--icon-label-bg); backdrop-filter: blur(6px); }

/* desktop widget: now-playing / availability card */
.widget { position: absolute; left: 24px; bottom: 120px; width: 300px; padding: 16px 18px; border-radius: 20px; background: var(--win); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5); box-shadow: var(--shadow);
  transform: translate3d(calc(var(--wx, 0) * -0.8px), calc(var(--wy, 0) * -0.8px), 0); }
.widget .w-label { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.widget .w-big { font: 600 34px/1 var(--font-display); letter-spacing: -.02em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.widget .w-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--line-2); font-size: 13px; color: var(--muted); }
.widget .w-row b { color: var(--text); font-weight: 600; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; height: 30%; }
.sound-on .eq i { animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s !important; } .eq i:nth-child(3) { animation-delay: .4s !important; } .eq i:nth-child(4) { animation-delay: .1s !important; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }

/* ---------- windows ---------- */
.win { position: absolute; display: flex; flex-direction: column; min-width: 320px; min-height: 220px; max-width: calc(100vw - 16px); border-radius: 14px; overflow: hidden;
  background: var(--win); backdrop-filter: blur(40px) saturate(1.7); -webkit-backdrop-filter: blur(40px) saturate(1.7); box-shadow: var(--shadow);
  transform-origin: 50% 60%; animation: win-in .32s var(--ease) both; }
.win[hidden] { display: none; }
.win.closing { animation: win-out .2s ease-in both; }
.win.minimising { transition: transform .38s var(--ease), opacity .38s; opacity: 0; }
.win.max { left: 8px !important; top: 8px !important; width: calc(100% - 16px) !important; height: calc(100% - 104px) !important; }
.win:not(.focused) { box-shadow: 0 18px 40px -20px rgba(0,0,0,.45), 0 0 0 .5px var(--line-2); }
.win:not(.focused) .titlebar { opacity: .75; }
@keyframes win-in { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes win-out { to { opacity: 0; transform: scale(.95); } }
.titlebar { flex: none; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 14px; cursor: grab; user-select: none; border-bottom: .5px solid var(--line); touch-action: none; }
.titlebar:active { cursor: grabbing; }
.lights { display: flex; gap: 8px; }
.lights button { width: 13px; height: 13px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.lights .l-close { background: #ff5f57; } .lights .l-min { background: #febc2e; } .lights .l-max { background: #28c840; }
.win:not(.focused) .lights button { background: rgba(127,127,127,.35); }
.lights button svg { position: absolute; inset: 2px; width: 9px; height: 9px; opacity: 0; color: rgba(0,0,0,.6); }
.lights:hover button svg, .lights button:focus-visible svg { opacity: 1; }
.titlebar h2 { flex: 1; margin: 0; text-align: center; font: 600 13.5px/1 var(--font-body); letter-spacing: 0; padding-right: 60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar .back { display: none; }
.win-body { flex: 1; overflow: auto; overscroll-behavior: contain; }
.win-body.pad { padding: 26px 30px 32px; }
.win-body::-webkit-scrollbar { width: 10px; } .win-body::-webkit-scrollbar-thumb { background: rgba(127,127,127,.35); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- shared content ---------- */
.eyebrow { font: 500 11.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.w-h1 { font-size: clamp(24px, 2.2vw, 31px); font-weight: 600; margin: 10px 0 12px; }
.w-h3 { font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; text-decoration: none; border: .5px solid var(--line-2); background: rgba(127,127,127,.08); transition: transform .15s, background .15s; }
.btn:hover { background: rgba(127,127,127,.16); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--font-mono); letter-spacing: .04em; padding: 6px 9px; border-radius: 7px; border: .5px solid var(--line-2); color: var(--muted); }
.chip.live { color: var(--accent); border-color: currentColor; background: var(--accent-soft); }
.chip.dev { color: var(--amber); border-color: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.avail { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); color: var(--accent); background: var(--accent-soft); padding: 7px 11px; border-radius: 999px; }
.avail i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* welcome */
.welcome { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: start; }
.welcome .face { width: 150px; height: 150px; border-radius: 26px; object-fit: cover; object-position: center 18%; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.welcome .w-h1 em { font-style: normal; color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 22px; border-radius: 12px; overflow: hidden; background: var(--line-2); border: .5px solid var(--line-2); }
.facts div { background: var(--win-2); padding: 12px 14px; }
.facts dt { font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.35; }

/* finder (projects) */
.finder { display: grid; grid-template-columns: 180px 1fr; height: 100%; }
.f-side { padding: 14px 10px; border-right: .5px solid var(--line); background: rgba(127,127,127,.05); font-size: 13.5px; }
.f-side h4 { font: 600 11px/1 var(--font-body); color: var(--dim); margin: 8px 8px 8px; letter-spacing: .02em; }
.f-side button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; text-align: left; }
.f-side button[aria-pressed="true"] { background: var(--sel); color: var(--accent); font-weight: 600; }
.f-side button svg { width: 15px; height: 15px; opacity: .8; }
.f-main { overflow: auto; padding: 18px; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.p-card { display: flex; flex-direction: column; text-align: left; border-radius: 14px; overflow: hidden; background: var(--win-2); border: .5px solid var(--line-2); transition: transform .2s var(--ease), box-shadow .2s; }
.p-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); }
.p-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.p-card:hover .thumb img { transform: scale(1.04); }
.p-card .meta { padding: 12px 14px 14px; display: grid; gap: 6px; }
.p-card h3 { font-size: 16.5px; font-weight: 600; }
.p-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.p-card[hidden] { display: none; }

/* viewer */
.viewer { width: 100%; height: 100%; border: 0; display: block; background: var(--win-solid); }
.v-tools { display: flex; gap: 6px; margin-left: auto; }
.v-tools a { font-size: 12.5px; padding: 4px 8px; border-radius: 6px; text-decoration: none; color: var(--muted); border: .5px solid var(--line-2); }

/* AI lab */
.ai-hero { padding: 22px; border-radius: 16px; background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(14, 165, 233, .12) 50%, var(--accent-soft)); border: .5px solid var(--line-2); }
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-card { padding: 16px; border-radius: 14px; background: var(--win-2); border: .5px solid var(--line-2); }
.ai-card h4 { font-size: 15.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ai-card p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.ai-card .chips { margin-top: 10px; }
.agent { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: .5px solid var(--line); }
.agent:last-child { border-bottom: 0; }
.agent .av { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 600 13px/1 var(--font-mono); }
.agent h4 { font-size: 14.5px; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }
.agent p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font: 500 12.5px/1 var(--font-mono); }
.flow span { padding: 8px 10px; border-radius: 8px; background: var(--win-2); border: .5px solid var(--line-2); }
.flow b { color: var(--accent); font-weight: 500; }

/* about / experience */
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.about-grid img { border-radius: 16px; aspect-ratio: 4/5; object-fit: cover; }
.tl { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--line-2); }
.tl li { position: relative; padding: 0 0 22px 20px; }
.tl li::before { content: ""; position: absolute; left: -5.5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--win-solid); border: 1.5px solid var(--dim); }
.tl li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tl .when { font: 500 11.5px/1 var(--font-mono); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.tl h4 { font-size: 15.5px; font-weight: 600; margin: 6px 0 2px; font-family: var(--font-body); letter-spacing: 0; }
.tl .org { color: var(--accent); font-size: 13.5px; }
.tl p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* terminal */
.term { background: #07090d; color: #c9d4e0; font: 400 13.5px/1.65 var(--font-mono); padding: 14px 16px; height: 100%; overflow: auto; }
.term .p { color: #3cffa8; } .term .k { color: #4cc9ff; } .term .c { color: #5f6d7e; } .term .e { color: #ff7a7a; }
.term form { display: flex; gap: 8px; }
.term input { flex: 1; background: transparent; border: 0; outline: 0; color: #e8eef5; font: inherit; caret-color: #3cffa8; }
.term pre { margin: 0; white-space: pre-wrap; font: inherit; }

/* contact */
.contact-card { text-align: center; padding: 10px 0; }
.contact-card .big { font: 600 22px/1.2 var(--font-mono); color: var(--accent); word-break: break-all; text-decoration: none; }

/* ---------- dock ---------- */
.dock-wrap { position: fixed; left: 0; right: 0; bottom: 10px; z-index: 900; display: flex; justify-content: center; pointer-events: none; }
.dock { pointer-events: auto; display: flex; align-items: flex-end; gap: 6px; padding: 7px 9px; border-radius: 22px; background: var(--dock); backdrop-filter: blur(30px) saturate(1.7); -webkit-backdrop-filter: blur(30px) saturate(1.7); box-shadow: 0 10px 40px -10px rgba(0,0,0,.35), 0 0 0 .5px var(--line-2); }
.dock button, .dock a { position: relative; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; transition: width .18s var(--ease), height .18s var(--ease), margin .18s var(--ease); text-decoration: none; }
.dock svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.dock .sep { width: .5px; height: 44px; background: var(--line-2); margin: 0 4px; align-self: center; }
.dock .run::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--text); opacity: .7; }
.dock .tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; padding: 4px 10px; border-radius: 7px; background: var(--win); backdrop-filter: blur(20px); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .15s; }
.dock button:hover .tip, .dock a:hover .tip, .dock button:focus-visible .tip { opacity: 1; }
.dock .bounce { animation: bounce .6s var(--ease) 2; }
@keyframes bounce { 50% { transform: translateY(-14px); } }

/* ---------- toast ---------- */
.toasts { position: fixed; top: calc(var(--menubar-h) + 12px); right: 12px; z-index: 1100; display: grid; gap: 10px; width: min(360px, calc(100vw - 24px)); }
.toast { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--win); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); box-shadow: var(--shadow); animation: toast-in .45s var(--ease) both; }
.toast.out { animation: toast-out .3s ease-in both; }
.toast .ti { width: 38px; height: 38px; }
.toast b { display: block; font-size: 13.5px; }
.toast span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }
.toast button.x { width: 22px; height: 22px; border-radius: 50%; color: var(--dim); }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ---------- lock / boot screen ---------- */
.lock { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; text-align: center; color: #fff;
  background: var(--wall) center / cover no-repeat, #05070a; }
.lock::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); background: linear-gradient(180deg, rgba(5, 10, 20, .45), rgba(5, 10, 20, .3) 50%, rgba(5, 10, 20, .55)); }
.lock .l-time, .lock .l-user { text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.lock > * { position: relative; }
.lock .l-time { position: absolute; top: 9vh; left: 0; right: 0; }
.lock .l-time b { display: block; font: 600 clamp(64px, 11vw, 120px)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lock .l-time span { font-size: 17px; opacity: .85; }
.lock .l-user img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: center 18%; margin: 0 auto 12px; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.lock .l-user h1 { font: 600 22px/1.2 var(--font-display); }
.lock .l-user p { opacity: .8; margin: 4px 0 18px; font-size: 14px; }
.lock .enter { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); border: .5px solid rgba(255,255,255,.35); font-weight: 600; font-size: 15px; color: #fff; transition: background .2s, transform .2s; }
.lock .enter:hover { background: rgba(255,255,255,.28); transform: scale(1.03); }
.lock .l-opts { margin-top: 16px; display: flex; gap: 16px; justify-content: center; font-size: 13px; opacity: .85; flex-wrap: wrap; }
.lock .l-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.lock .l-opts a { color: #fff; }
.lock .l-secure { position: absolute; bottom: 4vh; left: 0; right: 0; font: 500 12px/1.6 var(--font-mono); opacity: .7; letter-spacing: .06em; }
.lock.unlocking { animation: unlock .7s var(--ease) both; }
@keyframes unlock { to { opacity: 0; transform: scale(1.06); filter: blur(6px); } }
.lock[hidden] { display: none; }

/* ---------- mobile: phone-style home screen ---------- */
@media (max-width: 820px) {
  .widget { left: 14px; right: 14px; width: auto; bottom: 96px; transform: none; }
  .win { background: var(--win-solid); }
  .icons { position: static; display: grid; direction: ltr; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-template-rows: none; grid-auto-rows: max-content; align-content: start; gap: 18px 6px; padding: 20px 14px 140px; transform: none; overflow: auto; height: 100%; }
  .d-icon { width: auto; }
  .d-icon span { background: none; backdrop-filter: none; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
  html[data-theme="light"] .d-icon span { text-shadow: 0 1px 2px rgba(255,255,255,.7); }
  .win { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .titlebar { cursor: default; }
  .titlebar .lights { display: none; }
  .titlebar .back { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; font-size: 15px; }
  .titlebar h2 { padding-right: 50px; }
  .win-body.pad { padding: 20px 18px 110px; }
  .welcome, .about-grid { grid-template-columns: 1fr; }
  .welcome .face { width: 96px; height: 96px; border-radius: 22px; }
  .about-grid img { max-width: 240px; }
  .finder { grid-template-columns: 1fr; }
  .f-side { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: .5px solid var(--line); padding: 10px; }
  .f-side h4 { display: none; }
  .f-side button { width: auto; white-space: nowrap; }
  .f-main { padding-bottom: 110px; }
  .ai-grid, .facts { grid-template-columns: 1fr; }
  .dock { gap: 4px; padding: 6px 8px; }
  .dock button, .dock a { width: 48px; height: 48px; }
  .dock .hide-m { display: none; }
  .menubar .hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wallpaper, .icons, .widget { transform: none !important; }
}
