/* ═════════ Raja Madhaiyan — macOS portfolio · design tokens ═════════ */
:root {
  --accent: #FFD84A; --accent-h: #FFE169; --accent-t: rgba(255,216,74,.32); --accent-ink: #8a5800; --on-accent: #2b2508;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --font-d: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --text: #1d1d1f; --text2: #86868b; --text3: #6e6e73;
  --win: rgba(255,255,255,.78); --win-solid: #fff; --title: rgba(246,246,248,.72);
  --side: rgba(238,238,242,.62); --panel: rgba(255,255,255,.62); --card: #fff; --field: rgba(120,120,128,.12);
  --line: rgba(0,0,0,.09); --line2: rgba(0,0,0,.05); --hover: rgba(0,0,0,.05); --sel: rgba(0,102,204,.14);
  --glass: rgba(255,255,255,.55); --glass-b: rgba(255,255,255,.55); --menubar: rgba(255,255,255,.5);
  --shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 22px 60px -10px rgba(0,0,0,.35), 0 8px 20px -6px rgba(0,0,0,.2);
  --shadow-i: 0 0 0 .5px rgba(0,0,0,.18), 0 10px 30px -8px rgba(0,0,0,.28);
  --r: 14px; --mb: 30px; --ease: cubic-bezier(.22,1,.36,1);
  --art-bg: #fff; --art-card: #fff; --art-line: #d7d9de;
  color-scheme: light;
}
[data-theme=dark] {
  --accent: #FFD84A; --accent-h: #FFE169; --accent-t: rgba(255,216,74,.2); --accent-ink: #FFD84A; --on-accent: #2b2508;
  --text: #f5f5f7; --text2: #98989f; --text3: #aeaeb2;
  --win: rgba(40,40,44,.78); --win-solid: #1e1e20; --title: rgba(52,52,56,.7);
  --side: rgba(30,30,34,.55); --panel: rgba(255,255,255,.05); --card: #2a2a2d; --field: rgba(255,255,255,.1);
  --line: rgba(255,255,255,.12); --line2: rgba(255,255,255,.07); --hover: rgba(255,255,255,.07); --sel: rgba(10,132,255,.3);
  --glass: rgba(40,40,44,.5); --glass-b: rgba(255,255,255,.14); --menubar: rgba(24,24,28,.45);
  --shadow: 0 0 0 .5px rgba(255,255,255,.18), 0 22px 60px -10px rgba(0,0,0,.7), 0 8px 20px -6px rgba(0,0,0,.5);
  --shadow-i: 0 0 0 .5px rgba(255,255,255,.16), 0 10px 30px -8px rgba(0,0,0,.6);
  --art-bg: #1c1c1e; --art-card: #2c2c30; --art-line: #4a4a50;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { font: 13px/1.45 var(--font); color: var(--text); background: #222; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 6px; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 9999; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 38px; }
.gi { width: 16px; height: 16px; flex: none; }
kbd { font: 600 11px var(--font); background: var(--field); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--text3); }
.scroll { overflow: auto; -webkit-overflow-scrolling: touch; user-select: text; -webkit-user-select: text; }
.scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.scroll::-webkit-scrollbar-thumb { background: rgba(128,128,128,.4); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
.scroll::-webkit-scrollbar-track { background: transparent; }

/* ═════════ Desktop background ═════════ */
body { background: #FAFAFA; }
[data-theme=dark] body { background: #121214; }

/* ═════════ Menu bar ═════════ */
.menubar { position: fixed; top: 0; left: 0; right: 0; height: var(--mb); z-index: 9000; display: flex; justify-content: space-between; align-items: center; padding: 0 8px;
  background: var(--menubar); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 .5px 0 var(--line); font-size: 13px; color: var(--text); }
.mb-group { display: flex; align-items: center; gap: 1px; }
.mb-btn { height: 22px; padding: 0 9px; border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mb-btn:hover, .mb-btn.open { background: var(--hover); }
.mb-btn.open { background: rgba(128,128,128,.28); }
.mb-app { font-weight: 700; }
.mb-ico { padding: 0 7px; } .mb-ico .gi { width: 16px; height: 16px; }
.mb-clock { font-variant-numeric: tabular-nums; font-weight: 500; padding: 0 9px; }
.menu { position: fixed; z-index: 9500; min-width: 240px; padding: 5px; border-radius: 10px; background: var(--glass); backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: var(--shadow-i), inset 0 0 0 .5px var(--glass-b); animation: pop .12s var(--ease); font-size: 13px; }
.menu[hidden] { display: none; }
.mi { width: 100%; display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 4px; border-radius: 5px; text-align: left; }
.mi:hover:not(:disabled), .mi:focus-visible { background: var(--accent); color: #fff; outline: 0; }
.mi:disabled { opacity: .4; }
.mi-c { width: 16px; text-align: center; font-size: 12px; } .mi-l { flex: 1; } .mi-l small { margin-left: 8px; opacity: .55; font-size: 11px; }
.mi-k { opacity: .55; font-size: 12px; padding-left: 20px; }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 5px 8px; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(-3px); } }

/* ═════════ Desktop & icons ═════════ */
.desktop { position: fixed; top: var(--mb); left: 0; right: 0; bottom: 0; z-index: 1; outline: 0; }
.icons { position: absolute; top: 14px; right: 14px; bottom: 100px; display: flex; flex-flow: column wrap-reverse; align-content: flex-start; gap: 6px 4px; }
.d-icon { width: 92px; padding: 6px 4px 5px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.d-art { width: 58px; height: 58px; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.28)); transition: transform .2s var(--ease); }
.d-art svg { width: 100%; height: 100%; display: block; }
.d-icon:hover .d-art { transform: translateY(-2px); }
.d-label { font-size: 12px; line-height: 1.2; font-weight: 500; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.65), 0 0 1px rgba(0,0,0,.5); padding: 1px 6px; border-radius: 4px; text-align: center; max-width: 100%; }
.d-icon:focus-visible { outline-offset: 0; }
.d-icon.sel { background: rgba(255,255,255,.2); } .d-icon.sel .d-label { background: var(--accent); text-shadow: none; }
.snap { position: absolute; z-index: 50; border-radius: 14px; background: rgba(0,102,204,.18); border: 2px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); pointer-events: none; opacity: 0; transition: all .18s var(--ease); }
.snap.on { opacity: 1; }

/* ═════════ Windows ═════════ */
#windows { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.win { position: absolute; pointer-events: auto; display: flex; flex-direction: column; border-radius: var(--r); background: var(--win); backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: var(--shadow); overflow: hidden; outline: 0; animation: winIn .34s var(--ease); transform-origin: 50% 60%; opacity: 1;
  transition: box-shadow .25s, opacity .2s, transform .38s var(--ease); }
.win:not(.active) { box-shadow: var(--shadow-i); }
.win:not(.active) .tl { background: rgba(128,128,128,.4) !important; } .win:not(.active) .tl::after { opacity: 0 !important; }
.win:not(.active) .wtitle { opacity: .55; }
.win.animating { transition: left .3s var(--ease), top .3s var(--ease), width .3s var(--ease), height .3s var(--ease), box-shadow .25s; }
.win.dragging { transition: none; user-select: none; } .win.dragging .win-body { pointer-events: none; }
.win.max { border-radius: 0; }
.win.closing { animation: winOut .18s ease-in forwards; pointer-events: none; }
.win.minimized { transform: var(--min-t, translateY(100%) scale(.1)); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.5,0,.75,0), opacity .4s ease-in .05s; }
@keyframes winIn { from { opacity: 0; transform: scale(.92) translateY(10px); } }
@keyframes winOut { to { opacity: 0; transform: scale(.94); } }
.titlebar { height: 52px; flex: none; display: flex; align-items: center; padding: 0 16px; position: relative; background: var(--title); border-bottom: 1px solid var(--line); touch-action: none; }
.lights { display: flex; gap: 8px; z-index: 2; }
.tl { width: 12px; height: 12px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.tl::before { content: ''; position: absolute; inset: -6px -3px; }
.tl::after { content: ''; position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: rgba(0,0,0,.55); opacity: 0; line-height: 12px; text-align: center; }
.lights:hover .tl::after { opacity: 1; }
.tl-close { background: #ff5f57; } .tl-close::after { content: '×'; font-size: 12px; } .tl-min { background: #febc2e; } .tl-min::after { content: '−'; font-size: 12px; } .tl-max { background: #28c840; } .tl-max::after { content: '+'; font-size: 11px; }
.wtitle { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; pointer-events: none; padding: 0 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .2s; }
.m-done { display: none; }
.win-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; background: var(--panel); }
.win-body > * { flex: 1; min-height: 0; }
.rz { position: absolute; z-index: 5; touch-action: none; }
.rz-n, .rz-s { left: 10px; right: 10px; height: 8px; cursor: ns-resize; } .rz-n { top: -3px; } .rz-s { bottom: -3px; }
.rz-e, .rz-w { top: 10px; bottom: 10px; width: 8px; cursor: ew-resize; } .rz-e { right: -3px; } .rz-w { left: -3px; }
.rz-ne, .rz-nw, .rz-se, .rz-sw { width: 16px; height: 16px; } .rz-ne { top: -3px; right: -3px; cursor: nesw-resize; } .rz-nw { top: -3px; left: -3px; cursor: nwse-resize; } .rz-se { bottom: -3px; right: -3px; cursor: nwse-resize; } .rz-sw { bottom: -3px; left: -3px; cursor: nesw-resize; }
.win.max .rz { display: none; }

/* ═════════ Shared UI ═════════ */
.btn { height: 30px; padding: 0 16px; border-radius: 8px; background: var(--card); box-shadow: 0 0 0 .5px var(--line), 0 1px 2px rgba(0,0,0,.08); font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, transform .1s; }
[data-theme=dark] .btn { background: rgba(255,255,255,.14); box-shadow: 0 0 0 .5px var(--line); }
.btn:hover { background: var(--hover); } .btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 .5px 0 rgba(255,255,255,.25); }
.btn.primary:hover { background: var(--accent-h); } .btn.sm { height: 26px; padding: 0 12px; font-size: 12px; }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; } .btn-row.left { justify-content: flex-start; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.display { font: 700 clamp(24px, 3.6vw, 36px)/1.12 var(--font-d); letter-spacing: -.025em; text-wrap: balance; }
.display.sm { font-size: clamp(22px, 2.8vw, 28px); }
.lead { font-size: 15px; line-height: 1.55; color: var(--text); margin-top: 12px; max-width: 62ch; text-wrap: pretty; }
.pad { padding: 24px 28px 32px; } .pad-x { padding-left: 24px; padding-right: 24px; }
.note, .dim { color: var(--text2); font-size: 12px; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips li { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--accent-t); color: var(--accent-ink); font-weight: 500; }
.checks { margin-top: 10px; display: grid; gap: 9px; } .checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; } .checks .gi { color: var(--accent-ink); margin-top: 2px; stroke-width: 2.4; }
.fade-in { animation: fade .35s var(--ease); } @keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.g-h { font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; margin: 22px 0 8px; }
.empty { color: var(--text2); text-align: center; padding: 60px 0; }
.avatar { border-radius: 50%; overflow: hidden; flex: none; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,255,255,.7), 0 8px 24px -6px rgba(0,0,0,.3); }
.avatar img, .avatar svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { width: 36px; height: 36px; box-shadow: 0 0 0 2px rgba(255,255,255,.6); } .avatar.lg { width: 104px; height: 104px; } .avatar.xl { width: 128px; height: 128px; }
.art { width: 100%; height: 100%; display: block; color: var(--text2); }
.a-bg { fill: var(--art-bg); opacity: .78; } .a-card { fill: var(--art-card); stroke: var(--line); stroke-width: 1; } .a-line { fill: var(--art-line); }
.thumb { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 .5px var(--line), 0 2px 8px rgba(0,0,0,.08); transition: transform .25s var(--ease), box-shadow .25s; }
.si { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; flex: none; } .si .gi { width: 14px; height: 14px; stroke: #fff; } .si.lg { width: 48px; height: 48px; border-radius: 12px; } .si.lg .gi { width: 26px; height: 26px; } .si.g { background: #8e8e93; }
.seg { display: inline-flex; background: var(--field); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { height: 24px; min-width: 32px; padding: 0 8px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.seg button.on { background: var(--card); box-shadow: 0 0 0 .5px var(--line), 0 1px 2px rgba(0,0,0,.12); }
[data-theme=dark] .seg button.on { background: rgba(255,255,255,.18); }
.search { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--field); color: var(--text2); } .search input { border: 0; background: none; outline: 0; width: 100%; min-width: 0; user-select: text; } .search input::placeholder { color: var(--text2); } .search .gi { width: 14px; height: 14px; }
.search:focus-within { box-shadow: 0 0 0 3px var(--accent-t), 0 0 0 1px var(--accent-ink); }

/* sidebar split */
.split { display: flex; min-height: 0; flex: 1; height: 100%; }
.sb { width: 210px; flex: none; padding: 12px 10px; background: var(--side); border-right: 1px solid var(--line); overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.sb-h { font-size: 11px; font-weight: 600; color: var(--text2); padding: 8px 8px 4px; }
.sb-list { display: flex; flex-direction: column; gap: 1px; }
.sb-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; border-radius: 7px; text-align: left; font-size: 13px; }
.sb-item > .gi { color: var(--accent-ink); width: 17px; height: 17px; } .sb-item > span:not(.si):not(.mini-f):not(.mini-i) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-item:hover { background: var(--hover); } .sb-item.on { background: rgba(128,128,128,.22); font-weight: 600; }
.sb-item .count { font-style: normal; font-size: 11px; color: var(--text2); }
.mini-f, .mini-i { width: 20px; height: 20px; flex: none; } .mini-f svg, .mini-i svg { width: 100%; height: 100%; }
.main { flex: 1; min-width: 0; min-height: 0; }
.empty-s { color: var(--text2); padding: 8px; font-size: 12px; }

/* ═════════ Welcome ═════════ */
.welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 36px; gap: 4px; background: radial-gradient(90% 70% at 50% 0%, var(--accent-t), transparent 70%); }
.welcome h1 { font: 700 34px/1.1 var(--font-d); letter-spacing: -.03em; margin-top: 16px; }
.welcome .sub { font-size: 16px; font-weight: 600; color: var(--accent-ink); margin-top: 6px; }
.welcome .desc { color: var(--text3); font-size: 14px; max-width: 38ch; margin-top: 6px; text-wrap: balance; }
.welcome .hint { margin-top: 16px; color: var(--text2); font-size: 12px; display: flex; align-items: center; gap: 6px; }

/* ═════════ About ═════════ */
.about-hero { display: flex; align-items: center; gap: 24px; } .stats { display: flex; gap: 12px; margin: 20px 0 4px; flex-wrap: wrap; }
.stats div { flex: 1; min-width: 110px; padding: 12px 16px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 .5px var(--line); }
.stats b { display: block; font: 700 26px var(--font-d); color: var(--accent-ink); letter-spacing: -.02em; } .stats span { font-size: 12px; color: var(--text2); }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.card { background: var(--card); border-radius: 14px; padding: 18px; box-shadow: 0 0 0 .5px var(--line); } .card .num { font: 600 12px var(--mono); color: var(--accent-ink); } .card h3 { font-size: 16px; margin: 6px 0 6px; letter-spacing: -.01em; } .card p { color: var(--text3); font-size: 13.5px; }
.steps { margin-top: 18px; display: grid; gap: 4px; position: relative; } .steps li { display: flex; gap: 14px; padding: 12px 0; position: relative; }
.steps li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 44px; bottom: -8px; width: 2px; background: var(--line); }
.step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; } .steps h3 { font-size: 16px; } .steps p { color: var(--text3); font-size: 14px; margin-top: 2px; }

/* ═════════ Expertise ═════════ */
.settings .sb { gap: 8px; } .user-card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 .5px var(--line); } .user-card b { display: block; font-size: 13px; } .user-card span { font-size: 11px; color: var(--text2); }
.set-head { display: flex; gap: 14px; align-items: center; } .set-head .eyebrow { margin: 0; }
.group { margin-top: 4px; } .g-card { background: var(--card); border-radius: 12px; box-shadow: 0 0 0 .5px var(--line); overflow: hidden; }
.skill { padding: 11px 14px; } .skill + .skill, .row-i + .row-i { border-top: 1px solid var(--line2); }
.skill-l { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13.5px; } .skill-l em { font-style: normal; color: var(--text2); font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 3px; background: var(--field); overflow: hidden; } .bar i { display: block; height: 100%; width: var(--v); border-radius: 3px; transform-origin: left; animation: grow .9s var(--ease) both; } @keyframes grow { from { transform: scaleX(0); } }
.row-i { display: flex; gap: 10px; padding: 11px 14px; align-items: center; font-size: 13.5px; } .row-i .gi { color: #30b158; stroke-width: 2.4; }

/* ═════════ Finder / Projects ═════════ */
.finder { display: flex; flex-direction: column; height: 100%; } .finder .split { flex: 1; min-height: 0; height: auto; }
.toolbar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--title); border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.tb-nav { display: flex; gap: 2px; } .tb-btn { width: 30px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: var(--text3); } .tb-btn:hover:not(:disabled) { background: var(--hover); } .tb-btn:disabled { opacity: .3; } .tb-btn.txt { width: auto; padding: 0 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.crumbs { flex: 1; display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; font-weight: 600; } .crumbs i { font-style: normal; color: var(--text2); font-weight: 400; } .crumbs button { padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .crumbs button:hover { background: var(--hover); } .crumbs button:not([aria-current]) { color: var(--text2); font-weight: 500; }
.toolbar .search { width: 170px; } .statusbar { flex: none; padding: 5px 14px; font-size: 11px; color: var(--text2); text-align: center; border-top: 1px solid var(--line); background: var(--title); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 16px; }
.pcard, .fcard { display: flex; flex-direction: column; gap: 2px; text-align: left; border-radius: 12px; padding: 8px; transition: background .15s; }
.pcard:hover, .fcard:hover { background: var(--hover); } .pcard:hover .thumb { transform: translateY(-2px); box-shadow: 0 0 0 .5px var(--line), 0 10px 20px -6px rgba(0,0,0,.25); }
.pcard b { margin-top: 8px; font-size: 13px; } .pcard span, .fcard span { font-size: 12px; color: var(--text2); }
.fcard { align-items: center; text-align: center; } .fcard .fico { width: 88px; height: 88px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); transition: transform .25s var(--ease); } .fcard:hover .fico { transform: scale(1.05); } .fico svg { width: 100%; height: 100%; }
.fcard b { margin-top: 4px; font-size: 13px; } .fcard small { font-size: 11.5px; color: var(--text2); margin-top: 4px; line-height: 1.35; max-width: 20ch; }
.grid.apps { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: 8px; } .grid.apps .fico { width: 64px; height: 64px; }
.prow { display: grid; grid-template-columns: 56px 1.4fr 1.4fr 90px; gap: 14px; align-items: center; width: 100%; padding: 6px 10px; border-radius: 8px; text-align: left; } .prow:nth-child(odd) { background: var(--line2); } .prow:hover { background: var(--sel); } .prow span { color: var(--text2); font-size: 12px; } .prow .thumb { border-radius: 5px; } .prow .fico { width: 40px; height: 40px; }
.folder-desc { color: var(--text2); margin-bottom: 14px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; } .d-art { border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; box-shadow: var(--shadow-i); position: sticky; top: 0; background: var(--card); }
.meta { display: grid; grid-template-columns: repeat(3, auto); gap: 14px; margin-top: 16px; justify-content: start; padding: 12px 14px; background: var(--card); border-radius: 12px; box-shadow: 0 0 0 .5px var(--line); } .meta dt { font-size: 11px; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; } .meta dd { font-size: 13px; font-weight: 500; margin-top: 2px; }

/* ═════════ Experience ═════════ */
.exp-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; } .seg.txt button { padding: 0 12px; }
.timeline { position: relative; padding-left: 28px; display: grid; gap: 16px; } .timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line) 30%); border-radius: 2px; }
.tl-item { position: relative; } .dot { position: absolute; left: -28px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--win-solid); border: 3px solid var(--accent); } .dot.now { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-t); }
.tl-card { background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: 0 0 0 .5px var(--line); } .tl-card:hover { box-shadow: 0 0 0 .5px var(--line), 0 8px 24px -10px rgba(0,0,0,.25); }
.period { font: 600 12px var(--mono); color: var(--accent-ink); } .tl-card h3 { font-size: 16px; margin: 4px 0 2px; letter-spacing: -.01em; } .co { color: var(--text2); font-weight: 500; margin-bottom: 8px; } .tl-card > p:not(.period):not(.co) { color: var(--text3); font-size: 14px; }
details { margin-top: 10px; } summary { cursor: default; color: var(--accent-ink); font-weight: 500; font-size: 13px; list-style: none; padding: 4px 0; } summary::-webkit-details-marker { display: none; } summary::before { content: '›'; display: inline-block; width: 14px; transition: transform .2s; font-weight: 700; } details[open] summary::before { transform: rotate(90deg); }
details .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 6px; } details h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text2); margin-bottom: 6px; } details li { font-size: 13.5px; padding: 3px 0 3px 14px; position: relative; color: var(--text); } details li::before { content: ''; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ═════════ Resume / Preview ═════════ */
.preview { display: flex; flex-direction: column; height: 100%; } .tb-title { display: flex; align-items: center; gap: 8px; font-weight: 600; flex: 1; min-width: 0; } .tb-title .gi { color: #ff7a00; } .tb-grp { display: flex; align-items: center; gap: 6px; }
.paper-wrap { flex: 1; padding: 22px 12px 30px; background: rgba(128,128,128,.14); }
.paper-sheet { width: 780px; max-width: none; margin: 0 auto; background: #fff; color: #1d1d1f; padding: 52px 56px; border-radius: 3px; box-shadow: 0 10px 40px -10px rgba(0,0,0,.35), 0 0 0 .5px rgba(0,0,0,.15); font-size: 13.5px; line-height: 1.5; transform-origin: top center; }
.paper-sheet h1 { font: 700 34px var(--font-d); letter-spacing: -.025em; } .paper-sheet .role { color: #8a5800; font-weight: 600; font-size: 15px; margin-top: 2px; } .paper-sheet .meta { color: #86868b; margin: 2px 0 6px; display: block; padding: 0; background: none; box-shadow: none; }
.paper-sheet h3 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a5800; border-bottom: 1px solid #e5e5ea; padding-bottom: 4px; margin: 24px 0 10px; }
.paper-sheet .r-row { display: flex; justify-content: space-between; gap: 12px; } .paper-sheet .r-row span, .paper-sheet .r-co { color: #86868b; } .paper-sheet ul { list-style: disc; padding-left: 18px; margin: 4px 0 12px; } .paper-sheet .r-cols { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ═════════ Mail ═════════ */
.mail { display: flex; height: 100%; min-height: 0; } .mail .sb { width: 176px; }
.m-list { width: 280px; flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--panel); } .m-lh { padding: 12px 14px; border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; } .m-lh b { font-size: 16px; } .m-lh span { font-size: 11px; color: var(--text2); }
.m-items { overflow: auto; padding: 6px; } .m-item { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px; border-radius: 10px; } .m-item:hover { background: var(--hover); } .m-item.on { background: var(--accent); color: #fff; } .m-item.on .m-pv, .m-item.on time { color: rgba(255,255,255,.8); }
.m-item > div { min-width: 0; flex: 1; } .m-r1 { display: flex; justify-content: space-between; gap: 6px; } .m-r1 time { font-size: 11px; color: var(--text2); } .m-sub { font-weight: 500; margin: 1px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .m-pv { font-size: 12px; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #FFE98A, #FFD84A); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; } .ava.lg { width: 42px; height: 42px; font-size: 14px; }
.m-read { flex: 1; min-width: 0; padding: 22px 28px; background: var(--win-solid); } .m-read h2 { font: 700 22px var(--font-d); letter-spacing: -.02em; margin: 14px 0 6px; }
.m-head { display: flex; align-items: center; gap: 12px; } .m-head > div { flex: 1; } .m-head b { display: block; } .m-head span, .m-head time { font-size: 12px; color: var(--text2); } .m-back { display: none; color: var(--accent-ink); align-items: center; gap: 2px; margin-bottom: 10px; }
.contact-card { margin-top: 18px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 .5px var(--line); overflow: hidden; } .cc-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--text); text-decoration: none; user-select: text; } .cc-row + .cc-row { border-top: 1px solid var(--line2); } .cc-row:hover { background: var(--hover); } .cc-row .gi { color: var(--accent-ink); width: 20px; height: 20px; } .cc-row small { display: block; font-size: 11px; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; }
.compose .f-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line2); padding: 7px 0; } .f-row label { width: 76px; color: var(--text2); font-size: 13px; } .f-row input { flex: 1; border: 0; background: none; outline: 0; font-size: 14px; user-select: text; min-width: 0; }
.compose textarea { width: 100%; margin-top: 12px; border: 0; background: none; outline: 0; resize: none; font-size: 14.5px; line-height: 1.5; min-height: 160px; user-select: text; }

/* ═════════ Dock ═════════ */
.dock-wrap { position: fixed; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; z-index: 8000; pointer-events: none; padding: 0 8px; }
.dock { pointer-events: auto; display: flex; align-items: flex-end; gap: 6px; padding: 7px 8px 9px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 0 0 .5px var(--glass-b), 0 12px 40px -8px rgba(0,0,0,.4), inset 0 .5px 0 rgba(255,255,255,.4); height: 72px; max-width: 100%; transform: translateY(120px); transition: transform .7s var(--ease) .15s; }
body.ready .dock { transform: none; }
.dk { --s: 54px; position: relative; width: var(--s); height: var(--s); flex: none; transition: width .12s ease-out, height .12s ease-out; display: flex; justify-content: center; }
.dk-btn { width: 100%; height: 100%; position: relative; border-radius: 12px; display: block; } .dk-ico { display: block; width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.28)); } .dk-ico svg { width: 100%; height: 100%; display: block; }
.dk-dot { position: absolute; bottom: -7px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--text); opacity: 0; transform: scale(0); transition: .25s var(--ease); } [data-theme=dark] .dk-dot { background: #fff; }
.dk.running .dk-dot { opacity: .75; transform: scale(1); } .dk.is-min .dk-ico { opacity: .7; }
.dk-tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; padding: 4px 11px; border-radius: 7px; background: var(--glass); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 0 0 .5px var(--glass-b), 0 4px 14px rgba(0,0,0,.25); font-size: 12.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s var(--ease); }
.dk:hover .dk-tip, .dk-btn:focus-visible .dk-tip { opacity: 1; transform: translate(-50%, 0); }
.dk-btn:focus-visible { outline-offset: 3px; }
.dk.bounce .dk-btn { animation: bounce 1.4s cubic-bezier(.28,.84,.42,1) 1; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 14% { transform: translateY(-26px); } 28% { transform: translateY(0); } 42% { transform: translateY(-18px); } 56% { transform: translateY(0); } 70% { transform: translateY(-9px); } 84% { transform: translateY(0); } }

/* ═════════ Spotlight, Control Center, dialogs, toast ═════════ */
.spot { position: fixed; inset: 0; z-index: 9800; display: flex; justify-content: center; align-items: flex-start; padding-top: 16vh; background: rgba(0,0,0,.08); } .spot[hidden] { display: none; }
.spot-box { width: min(680px, calc(100vw - 24px)); border-radius: 18px; background: var(--glass); backdrop-filter: blur(50px) saturate(1.8); -webkit-backdrop-filter: blur(50px) saturate(1.8); box-shadow: 0 0 0 .5px var(--glass-b), 0 30px 80px -10px rgba(0,0,0,.5); overflow: hidden; animation: pop .18s var(--ease); }
.spot-input { display: flex; align-items: center; gap: 12px; padding: 14px 18px; } #spotIcon { display: none; } .spot-input input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: 300 24px var(--font-d); user-select: text; } .spot-input input::placeholder { color: var(--text2); }
.spot-list { max-height: min(54vh, 420px); overflow: auto; border-top: 1px solid var(--line); padding: 6px; } .spot-list:empty { display: none; }
.spot-list li { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 9px; } .spot-list li.on { background: var(--accent); color: #fff; } .spot-list li.on small, .spot-list li.on em { color: rgba(255,255,255,.8); }
.sp-i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; } .sp-i svg { width: 100%; height: 100%; } .sp-i .si { width: 28px; height: 28px; }
.sp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .sp-t b { font-weight: 500; font-size: 14px; } .sp-t small { color: var(--text2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .spot-list em { font-style: normal; font-size: 11.5px; color: var(--text2); } .sp-empty { color: var(--text2); justify-content: center; padding: 22px !important; }
.cc { position: fixed; top: 36px; right: 8px; z-index: 9600; width: 300px; padding: 12px; border-radius: 20px; background: var(--glass); backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8); box-shadow: 0 0 0 .5px var(--glass-b), 0 20px 50px -10px rgba(0,0,0,.45); animation: pop .15s var(--ease); display: grid; gap: 10px; } .cc[hidden] { display: none; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .cc-tile { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 .5px var(--line); font-size: 12px; font-weight: 500; text-align: left; } .cc-tile:hover { background: var(--hover); } .cc-tile .gi { width: 20px; height: 20px; color: var(--accent-ink); } .cc-tile.big { grid-column: 1/-1; flex-direction: row; align-items: center; gap: 10px; font-size: 13px; } .cc-tile.on { background: var(--accent); color: #fff; } .cc-tile.on .gi { color: #fff; }
.dlg-layer { position: fixed; inset: 0; z-index: 9900; display: grid; place-items: center; background: rgba(0,0,0,.2); } .dlg-layer[hidden] { display: none; }
.dlg { width: min(380px, calc(100vw - 32px)); max-height: 80vh; overflow: auto; background: var(--glass); backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8); border-radius: 16px; padding: 22px; text-align: center; box-shadow: 0 0 0 .5px var(--glass-b), 0 30px 70px -10px rgba(0,0,0,.5); animation: pop .2s var(--ease); }
.dlg-ico { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; margin: 0 auto 10px; box-shadow: 0 6px 14px rgba(0,0,0,.25); } .dlg-ico svg { width: 100%; height: 100%; } .dlg h2 { font-size: 15px; } .dlg-b { margin-top: 8px; color: var(--text3); font-size: 13px; } .dlg-b p + p { margin-top: 6px; }
.kb { width: 100%; text-align: left; border-collapse: collapse; } .kb td { padding: 5px 4px; } .kb td:first-child { width: 42%; text-align: right; padding-right: 14px; } 
.toast { position: fixed; bottom: 104px; left: 50%; transform: translate(-50%, 12px); z-index: 9950; padding: 8px 16px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8); box-shadow: 0 0 0 .5px var(--glass-b), 0 8px 24px rgba(0,0,0,.25); font-weight: 500; opacity: 0; pointer-events: none; transition: .25s var(--ease); max-width: calc(100vw - 24px); text-align: center; } .toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═════════ Responsive ═════════ */
@media (max-width: 1000px) { .detail, .result { grid-template-columns: 1fr; } .d-art { position: static; } .m-list { width: 240px; } }
@media (max-width: 760px) {
  body { font-size: 14px; } .mb-m, .mb-app, #mbSearch { display: none; } .mb-btn { height: 26px; }
  .desktop { bottom: 0; }
  .icons { inset: 10px 10px 100px; flex-flow: row wrap; justify-content: center; align-content: flex-start; gap: 18px 6px; }
  .d-icon { width: 78px; } .d-art { width: 62px; height: 62px; } .d-label { font-size: 12px; }
  .dock { gap: 4px; padding: 6px 6px 8px; height: 66px; border-radius: 20px; } .dk { --s: 44px !important; } .dk-tip { display: none; } .dk-dot { bottom: -6px; }
  .win { left: 0 !important; top: var(--mb) !important; width: 100% !important; height: calc(100% - var(--mb)) !important; border-radius: 0; box-shadow: none; animation: sheetIn .38s var(--ease); }
  .win.closing { animation: sheetOut .22s ease-in forwards; }
  .win.minimized { transform: translateY(100%); opacity: 0; transition: transform .35s ease-in, opacity .3s; }
  .win-body { padding-bottom: 76px; }
  .win.has-dock .win-body { padding-bottom: 0; }
  .titlebar { height: 48px; } .lights, .rz { display: none; } .wtitle { padding: 0 70px; } .m-done { display: block; position: absolute; right: 12px; color: var(--accent-ink); font-weight: 600; font-size: 15px; padding: 8px; z-index: 3; }
  .pad { padding: 18px 16px 90px; } .exp.pad { padding-bottom: 96px; }
  .split { flex-direction: column; } .sb { width: 100%; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; gap: 4px; scrollbar-width: none; } .sb::-webkit-scrollbar { display: none; } .sb .sb-h, .settings .user-card, .settings .search { display: none; } .sb-list { flex-direction: row; gap: 4px; } .sb-item { white-space: nowrap; width: auto; flex: none; padding: 6px 12px; background: var(--field); border-radius: 99px; } .sb-item.on { background: var(--accent); color: #fff; } .sb-item.on .gi { color: #fff; } .sb-item .count { display: none; }
  .main { min-height: 0; } .toolbar { padding: 8px 10px; gap: 8px; } .toolbar .search { width: 100%; order: 5; } .crumbs { order: 2; } .tb-title { flex-basis: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } .prow { grid-template-columns: 52px 1fr; } .prow span { display: none; } .meta { grid-template-columns: 1fr 1fr; }
  .about-hero { flex-direction: column; text-align: center; } .avatar.xl { width: 104px; height: 104px; }
  .welcome h1 { font-size: 28px; } .welcome { padding: 20px; } .welcome .hint { display: none; }
  .mail { flex-direction: column; } .mail .sb { width: 100%; } .m-list { width: 100%; flex: 1; border-right: 0; } .m-read { display: none; padding: 16px 16px 90px; } .mail.reading .m-list { display: none; } .mail.reading .m-read { display: block; flex: 1; } .m-back { display: inline-flex; }
  .mail.reading .sb { display: none; }
  .paper-sheet { padding: 28px 24px; } .tb-title { display: none; } .preview .toolbar { justify-content: space-between; }
  .ai-top { padding: 10px 12px; } .stage { padding: 14px 12px 4px; min-height: 0; } .variants { grid-template-columns: 1fr 1fr; }
  .toast { bottom: 90px; } .spot { padding-top: 8vh; } .spot-input input { font-size: 19px; } .cc { right: 6px; left: 6px; width: auto; }
  .timeline { padding-left: 24px; } .dot { left: -24px; }
}
@media (max-height: 560px) and (min-width: 761px) { .icons { gap: 0 4px; } .d-icon { width: 84px; } .d-art { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } .blob, .ribbons { animation: none !important; } }
@media print { .menubar, .dock-wrap { display: none; } }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
@keyframes sheetOut { to { transform: translateY(40px); opacity: 0; } }

/* ═════════ "Paper" theme — clean white desktop, widgets, hero ═════════ */

.hero { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 24px 40px; pointer-events: none; user-select: none; }
.hero h1 { font: 800 clamp(32px, 3.5vw, 54px)/1.06 var(--font-d); letter-spacing: -.04em; color: var(--text); text-wrap: balance; }
.hero u { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--text2); }
.hero p { margin-top: 22px; max-width: 34em; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.6; color: var(--text2); text-wrap: balance; }

.widgets { position: absolute; top: 18px; left: 24px; display: grid; grid-template-columns: 143px 143px; grid-template-rows: 143px 105px 143px 143px; gap: 19px; }
.wg { background: var(--card); border-radius: 22px; box-shadow: 0 0 0 .5px var(--line), 0 6px 20px -8px rgba(0,0,0,.12); overflow: hidden; text-align: left; position: relative; }
button.wg { transition: transform .25s var(--ease), box-shadow .25s; } button.wg:hover { transform: translateY(-2px); box-shadow: 0 0 0 .5px var(--line), 0 14px 28px -10px rgba(0,0,0,.2); }
.wg-clock svg { width: 100%; height: 100%; display: block; } .wg-clock .tk line { stroke: var(--text2); stroke-width: 2; stroke-linecap: round; } .wg-clock .city { font: 700 9px var(--font); fill: var(--text2); letter-spacing: .04em; }
.wg-clock .hand { stroke: var(--text); stroke-width: 4; stroke-linecap: round; } .wg-clock .sec { stroke: #ff5a1f; stroke-width: 1.6; stroke-linecap: round; } .wg-clock .hub { fill: var(--text); stroke: #ff5a1f; stroke-width: 1.5; }
.wg-cal { padding: 13px 13px 10px; display: flex; flex-direction: column; } .wg-cal small { font: 700 10px var(--font); color: #ff3b30; letter-spacing: .04em; } .wg-cal strong { font: 700 28px/1.05 var(--font-d); letter-spacing: -.02em; margin-bottom: 4px; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px 0; font-size: 7.5px; text-align: center; color: var(--text3); font-variant-numeric: tabular-nums; } .cal-g em { font-style: normal; color: var(--text2); } .cal-g span { line-height: 14px; } .cal-g .today { background: var(--text); color: var(--card); border-radius: 50%; font-weight: 700; width: 14px; margin: 0 auto; }
.wg-now { grid-column: 3; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; gap: 2px; } .wg-now .eyebrow { margin-bottom: 4px; } .wg-now b { font: 700 19px var(--font-d); letter-spacing: -.02em; } .wg-now span { color: var(--text2); font-size: 12.5px; } .now-actions { display: flex; gap: 8px; margin-top: 12px; } .now-actions .btn { text-decoration: none; color: inherit; } .now-actions .btn.primary { color: #fff; }
.wg-photo { grid-column: 1; grid-row: 4; padding: 0; } .wg-photo img, .wg-photo svg { width: 100%; height: 100%; object-fit: cover; display: block; }


.d-label { color: var(--text); text-shadow: none; background: rgba(255,255,255,.75); font-weight: 500; } [data-theme=dark] .d-label { background: rgba(255,255,255,.1); }
.d-icon.sel { background: transparent; } .d-icon.sel .d-label { background: var(--accent); color: #fff; }
.d-art { filter: drop-shadow(0 3px 5px rgba(60,140,200,.25)); }
.icons { bottom: 150px; }
.dock { border-radius: 22px; } .dk[data-app=welcome] { margin-right: 8px; } .dk[data-app=welcome]::after { content: ''; position: absolute; right: -8px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }

@media (max-width: 1180px) { .widgets { display: none; } }
@media (max-width: 760px) {
  .hero { place-content: start center; padding-top: 9vh; } .hero h1 { font-size: 30px; } .hero p { font-size: 14px; margin-top: 14px; }
  .icons { inset: 10px 10px 96px; align-content: flex-end; }
  .dk[data-app=welcome] { display: none; }
}
/* ═════════ Landing refinements (reference: elenagonci.com landing) ═════════ */
.hero h1, .wg-now b, .wg-cal strong { font-family: 'Bricolage Grotesque', var(--font-d); }
.hero h1 { font-weight: 800; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(34px, 4vw, 60px); }
.hero u { text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: rgba(134,134,139,.55); }
.hero p { font-family: 'Bricolage Grotesque', var(--font); font-weight: 500; }
.menubar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; opacity: .75; transition: opacity .2s; }
.menubar:hover, .menubar:focus-within { opacity: 1; background: var(--menubar); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); }
.d-art { width: 56px; height: 56px; filter: none; }
.d-label { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.85); }
.dock { background: rgba(255,255,255,.7); box-shadow: 0 0 0 .5px var(--line), 0 10px 30px -10px rgba(0,0,0,.18); }
[data-theme=dark] .dock { background: var(--glass); }
.dk-ico { filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }

/* Desktop folders: no background, border or shadow */
.d-icon, .d-icon:hover, .d-icon.sel { background: none; border: 0; box-shadow: none; }
.d-art, .d-icon:hover .d-art { filter: none; box-shadow: none; }
.d-label, .d-icon.sel .d-label { background: none; box-shadow: none; text-shadow: none; color: var(--text); }
.d-icon.sel .d-label { color: var(--accent-ink); }
.d-icon:focus-visible { outline-offset: -2px; }

/* Logo */
.mb-logo { display: block; width: 16px; height: 16px; } .mb-logo svg { width: 100%; height: 100%; display: block; }
.hero-logo { width: 72px; height: 72px; margin-bottom: 22px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.28)); } .hero-logo svg { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .hero-logo { width: 56px; height: 56px; margin-bottom: 14px; } }

/* Weather widget */

/* Music widget — sits directly below weather */

.wg-photo .ph, .wg-photo .ph svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wg-photo img { position: absolute; inset: 0; z-index: 1; }
.ph-cap { position: absolute; z-index: 2; left: 8px; bottom: 8px; font: 600 11px var(--font); padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.85); color: #1d1d1f; box-shadow: 0 0 0 .5px rgba(0,0,0,.1); }
@media (max-height: 700px) { .widgets { display: none; } }

.mb-logo { --menubar-bg: transparent; width: 18px; height: 18px; }

/* ═════════ Weather & Music widgets — soft white cards (matches reference) ═════════ */
.wg-weather, .wg-music { background: #FDFCFC; border-radius: 22px; box-shadow: 0 8px 26px -6px rgba(0,0,0,.10); }
[data-theme=dark] .wg-weather, [data-theme=dark] .wg-music { background: var(--card); box-shadow: 0 8px 26px -6px rgba(0,0,0,.5); }

.wg-weather { grid-column: 1 / 3; grid-row: 2; padding: 14px 16px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.wx-city { font: 600 10.5px var(--font); font-family: 'Bricolage Grotesque', var(--font); color: var(--text3); }
.wx-row { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; align-items: end; }
.wx-day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wx-day span { font: 600 8.5px 'Bricolage Grotesque', var(--font); color: var(--text2); opacity: .85; }
.wx-day i { width: 13px; height: 13px; display: block; } .wx-day i svg { width: 100%; height: 100%; display: block; }
.wx-day b { font: 600 9.5px 'Bricolage Grotesque', var(--font); color: var(--text3); font-variant-numeric: tabular-nums; }
.wx-msg { grid-column: 1/-1; color: var(--text2); font-size: 11px; }

.wg-music { grid-column: 1 / 3; grid-row: 3; padding: 16px 16px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.mu-top { display: flex; gap: 12px; align-items: flex-start; }
.mu-art { width: 67px; height: 67px; border-radius: 14px; background: #e2664a; flex: none; overflow: hidden; } .mu-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mu-info { min-width: 0; flex: 1; display: flex; flex-direction: column; padding-top: 4px; }
.mu-info b { font: 600 12.5px 'Bricolage Grotesque', var(--font); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-info > span { font: 400 10px 'Bricolage Grotesque', var(--font); color: var(--text2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-ctl { display: flex; gap: 22px; align-items: center; margin-top: 10px; }
.mu-ctl button { width: 18px; height: 16px; display: grid; place-items: center; color: var(--text); border-radius: 4px; } .mu-ctl button:disabled { opacity: .45; } .mu-ctl button:hover:not(:disabled) { opacity: .65; } .mu-ctl svg { width: 14px; height: 14px; }
.mu-bar { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--text3) var(--p, 0%), rgba(0,0,0,.1) var(--p, 0%)); outline-offset: 4px; margin: 0; display: block; }
[data-theme=dark] .mu-bar { background: linear-gradient(to right, var(--text3) var(--p, 0%), rgba(255,255,255,.14) var(--p, 0%)); }
.mu-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 0; height: 0; } .mu-bar:hover::-webkit-slider-thumb, .mu-bar:focus-visible::-webkit-slider-thumb { width: 8px; height: 8px; border-radius: 50%; background: var(--text); } .mu-bar::-moz-range-thumb { width: 0; height: 0; border: 0; }
.mu-t { display: flex; justify-content: space-between; font: 400 8.5px 'Bricolage Grotesque', var(--font); color: var(--text2); font-variant-numeric: tabular-nums; margin-top: 6px; }

/* ═════════ Chat — premium assistant ═════════ */
.chat { display: flex; flex-direction: column; height: 100%; background: var(--win-solid); --online: #30d158; --away: #ff9f0a; position: relative; }
.ch-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; flex: none; background: var(--title); border-bottom: 1px solid var(--line); }
.ch-ava { position: relative; width: 40px; height: 40px; flex: none; } .ch-ava .avatar { width: 40px; height: 40px; box-shadow: 0 0 0 .5px var(--line); display: block; }
.ch-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--away); border: 2.5px solid var(--win-solid); transition: background .4s; }
.chat[data-mode=live] .ch-dot { background: var(--online); } .chat[data-mode=live] .ch-dot::after { content: ''; position: absolute; inset: -2.5px; border-radius: 50%; border: 2px solid var(--online); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.8); opacity: .8; } to { transform: scale(2); opacity: 0; } }
.ch-who { display: flex; flex-direction: column; min-width: 0; } .ch-who b { font: 700 15px var(--font-d); letter-spacing: -.01em; } .ch-status { font-size: 12px; color: var(--text2); }
.chat[data-mode=live] .ch-status { color: #1f9d4a; } [data-theme=dark] .chat[data-mode=live] .ch-status { color: var(--online); }
.ch-mode { padding: 9px 18px; font-size: 12px; line-height: 1.4; color: var(--text3); background: var(--accent-t); border-bottom: 1px solid var(--line2); flex: none; } .ch-mode b { color: var(--text); font-weight: 600; }
.chat[data-mode=live] .ch-mode { background: rgba(48,209,88,.12); }
.ch-log { flex: 1; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 3px; scroll-behavior: auto; }
.row { display: flex; flex-direction: column; max-width: 84%; animation: msgIn .38s var(--ease) both; }
.row.them { align-self: flex-start; align-items: flex-start; } .row.me { align-self: flex-end; align-items: flex-end; }
.row:not(.grouped):not(.sys) { margin-top: 10px; } .row.sys { align-self: center; max-width: 92%; text-align: center; font-size: 11.5px; color: var(--text2); padding: 8px 4px; margin-top: 6px; }
.who { font-size: 11px; font-weight: 600; color: var(--text2); margin: 0 12px 3px; }
.bub { padding: 9px 14px; font-size: 14px; line-height: 1.45; border-radius: 19px; word-wrap: break-word; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.row.them .bub { background: var(--field); color: var(--text); border-bottom-left-radius: 6px; }
.row.me .bub { background: linear-gradient(180deg, var(--accent-h), var(--accent)); color: var(--on-accent); border-bottom-right-radius: 6px; }
.row.grouped.them .bub { border-top-left-radius: 6px; } .row.grouped.me .bub { border-top-right-radius: 6px; }
.row time { font-size: 10.5px; color: var(--text2); margin: 3px 10px 0; opacity: 0; max-height: 0; transition: opacity .2s, max-height .2s; }
.row:last-of-type time, .row:hover time, .row:focus-within time { opacity: 1; max-height: 16px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.act { height: 28px; padding: 0 12px; border-radius: 99px; background: var(--card); color: var(--accent-ink); font-size: 12.5px; font-weight: 500; box-shadow: 0 0 0 .5px var(--line), 0 1px 2px rgba(0,0,0,.06); transition: transform .15s, background .15s; } .act:hover { background: var(--accent); color: #fff; } .act:active { transform: scale(.96); }
[data-theme=dark] .act { background: rgba(255,255,255,.1); }
.typing { display: inline-flex; gap: 4px; padding: 6px 2px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text2); animation: dotp 1.2s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dotp { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.ch-sugg { display: flex; gap: 7px; padding: 6px 16px 10px; overflow-x: auto; flex: none; scrollbar-width: none; } .ch-sugg::-webkit-scrollbar { display: none; } .ch-sugg[hidden] { display: none; }
.sg { flex: none; white-space: nowrap; height: 30px; padding: 0 13px; border-radius: 99px; font-size: 12.5px; background: var(--card); box-shadow: 0 0 0 .5px var(--line); color: var(--text); transition: background .15s, color .15s, transform .15s; } .sg:hover { background: var(--accent-t); color: var(--accent-ink); } .sg:active { transform: scale(.96); }
[data-theme=dark] .sg { background: rgba(255,255,255,.08); }
.ch-in { display: flex; align-items: flex-end; gap: 8px; margin: 0 14px; padding: 5px 5px 5px 16px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line); flex: none; transition: box-shadow .2s; }
[data-theme=dark] .ch-in { background: rgba(255,255,255,.07); } .ch-in:focus-within { box-shadow: 0 0 0 1px var(--accent-ink), 0 0 0 4px var(--accent-t); }
.ch-in textarea { flex: 1; min-width: 0; border: 0; background: none; outline: 0; resize: none; font-size: 14px; line-height: 20px; padding: 6px 0; max-height: 120px; user-select: text; -webkit-user-select: text; }
.ch-in textarea::placeholder { color: var(--text2); }
.ch-send { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; transition: transform .15s, opacity .2s, background .2s; } .ch-send svg { width: 17px; height: 17px; } .ch-send:disabled { opacity: .25; background: var(--text2); } .ch-send:not(:disabled):hover { background: var(--accent-h); transform: scale(1.06); }
.ch-foot { font-size: 11px; color: var(--text2); text-align: center; padding: 8px 16px 12px; min-height: 12px; flex: none; } .ch-foot:empty { padding: 6px; }
@media (max-width: 760px) { .ch-head { padding: 10px 14px; } .row { max-width: 90%; } .bub { font-size: 15px; } .ch-in textarea { font-size: 16px; } .ch-in { margin: 0 10px; } .row time { opacity: 1; max-height: 16px; } }

.hero h1 { font-weight: 500; font-size: clamp(26px, 2.8vw, 42px); letter-spacing: -.03em; }
@media (max-width: 760px) { .hero h1 { font-size: 24px; } }

/* "Currently" card — bottom right of the desktop */
.wg-now { position: fixed; right: 24px; bottom: 24px; width: 305px; grid-column: auto; z-index: 2; }
@media (max-width: 1259px) { .wg-now { display: none; } }

/* Sticky-note style for the "Currently" card */
.wg-now { width: 250px; padding: 22px 22px 20px; border-radius: 3px 3px 22px 3px; transform: rotate(2.2deg); overflow: visible;
  background: linear-gradient(165deg, #fff3a3 0%, #ffe970 100%); color: #3b3411; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 14px 24px -10px rgba(120,95,0,.45), 0 2px 6px rgba(120,95,0,.18); transition: transform .3s var(--ease); }
.wg-now:hover { transform: rotate(0deg) translateY(-3px); }
.wg-now::before { content: ''; position: absolute; top: -11px; left: 50%; width: 76px; height: 22px; margin-left: -38px; transform: rotate(-3deg); background: rgba(255,255,255,.55); backdrop-filter: blur(2px); box-shadow: 0 0 0 .5px rgba(0,0,0,.06); }
.wg-now::after { content: ''; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; border-radius: 0 0 22px 0; background: linear-gradient(135deg, transparent 50%, rgba(160,125,0,.22) 50%); }
.wg-now .eyebrow { font: 700 15px 'Caveat', cursive; letter-spacing: .04em; text-transform: none; color: #a8590b; margin-bottom: 2px; }
.wg-now b { font: 700 27px/1.05 'Caveat', cursive; color: #2b2508; letter-spacing: 0; }
.wg-now span { font: 600 16px 'Caveat', cursive; color: #6d5f1c; margin-top: 2px; }
.wg-now .btn { background: rgba(255,255,255,.65); color: #3b3411; box-shadow: 0 0 0 .5px rgba(120,95,0,.3); }
.wg-now .btn:hover { background: rgba(255,255,255,.95); } .wg-now .btn.primary { background: #3b3411; color: #fff3a3; }
.wg-now .btn.primary:hover { background: #55491a; }
[data-theme=dark] .wg-now { background: linear-gradient(165deg, #f6e27a, #e7cc4d); }

/* Sticky note — normal font */
.wg-now .eyebrow { font: 700 12px var(--font); letter-spacing: .06em; text-transform: uppercase; color: #a8590b; margin-bottom: 4px; }
.wg-now b { font: 700 19px/1.2 'Bricolage Grotesque', var(--font-d); letter-spacing: -.02em; color: #2b2508; }
.wg-now span { font: 500 12.5px var(--font); color: #6d5f1c; margin-top: 2px; }

/* Menu bar background */
.menubar, .menubar:hover, .menubar:focus-within { background: #e5e5e5; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 1; }
[data-theme=dark] .menubar, [data-theme=dark] .menubar:hover, [data-theme=dark] .menubar:focus-within { background: #2a2a2d; }

/* Dark mode: menu bar bottom edge #e5e5e5; desktop folders with no background/border */
[data-theme=dark] .menubar, [data-theme=dark] .menubar:hover, [data-theme=dark] .menubar:focus-within { box-shadow: 0 1px 0 #e5e5e5; }
[data-theme=dark] .d-icon, [data-theme=dark] .d-icon:hover, [data-theme=dark] .d-icon.sel,
[data-theme=dark] .d-label, [data-theme=dark] .d-icon.sel .d-label { background: none; border: 0; box-shadow: none; text-shadow: none; }

/* ═════════ Sticky-yellow accent: dark ink on yellow fills ═════════ */
.btn.primary, .skip, .step-n, .ch-send, .ava, .cc-tile.on, .mi:hover:not(:disabled), .mi:focus-visible,
.sb-item.on, .m-item.on, .spot-list li.on, .act:hover, .d-icon.sel .d-label { color: var(--on-accent); }
.ava { color: var(--on-accent); }
.sb-item.on .gi, .cc-tile.on .gi { color: var(--on-accent); }
.m-item.on .m-pv, .m-item.on time, .spot-list li.on small, .spot-list li.on em { color: rgba(43,37,8,.7); }
.btn.primary { box-shadow: 0 1px 2px rgba(120,95,0,.3), inset 0 .5px 0 rgba(255,255,255,.5); }
.chips li { color: var(--accent-ink); background: var(--accent-t); }
[data-theme=dark] .chips li { color: var(--accent); }
.ch-send:disabled { background: var(--text2); color: #fff; }
.wg-now .btn.primary { background: #3b3411; color: #fff3a3; }

/* Dark mode: no menu bar shadow */
[data-theme=dark] .menubar, [data-theme=dark] .menubar:hover, [data-theme=dark] .menubar:focus-within { box-shadow: none; }

/* Sticky note: smaller, light cream-yellow */
.wg-now { width: 200px; padding: 16px 16px 14px; background: linear-gradient(165deg, #fffbe3 0%, #fff5c2 100%); }
.wg-now::before { width: 60px; height: 17px; margin-left: -30px; top: -9px; }
.wg-now::after { width: 20px; height: 20px; border-radius: 0 0 22px 0; }
.wg-now .eyebrow { font-size: 10.5px; margin-bottom: 2px; }
.wg-now b { font-size: 15px; }
.wg-now span { font-size: 11px; }
.wg-now .now-actions { gap: 6px; margin-top: 9px; }
.wg-now .btn.sm { height: 22px; padding: 0 10px; font-size: 11px; }
[data-theme=dark] .wg-now { background: linear-gradient(165deg, #fffbe3, #fff5c2); }

/* Hero: slightly smaller headline, subtitle and logo */
.hero h1 { font-size: clamp(22px, 2.3vw, 34px); }
.hero p { font-size: clamp(13px, 1vw, 15px); margin-top: 18px; }
.hero-logo { width: 56px; height: 56px; margin-bottom: 18px; }
@media (max-width: 760px) { .hero h1 { font-size: 21px; } .hero p { font-size: 13px; } .hero-logo { width: 46px; height: 46px; margin-bottom: 12px; } }

/* Hero: gentle fade-in + hover nudge (opacity 300ms, hover translate-x 2px) */
.hero-logo, .hero h1, .hero p { pointer-events: auto; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
body.ready .hero-logo, body.ready .hero h1, body.ready .hero p { opacity: 1; transform: none; }
body.ready .hero h1 { transition-delay: .06s; } body.ready .hero p { transition-delay: .12s; }
body.ready .hero-logo:hover, body.ready .hero h1:hover, body.ready .hero p:hover { transform: translateX(2px); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .hero-logo, .hero h1, .hero p { opacity: 1; transform: none; transition: none; } }

/* Desktop-wide: 300ms fade-in on load + 2px hover nudge (uses the separate `translate` property so existing tilt/lift transforms keep working) */
@keyframes deskIn { from { opacity: 0; translate: 0 8px; } }
.d-icon, .wg { animation: deskIn .3s ease backwards; transition: translate .3s ease, opacity .3s ease, transform .25s var(--ease), box-shadow .25s; }
.d-icon:hover, .wg:hover { translate: 2px 0; }
.d-icon:nth-child(2), .wg:nth-child(2) { animation-delay: .05s; } .d-icon:nth-child(3), .wg:nth-child(3) { animation-delay: .1s; }
.d-icon:nth-child(4), .wg:nth-child(4) { animation-delay: .15s; } .wg:nth-child(5) { animation-delay: .2s; } .wg:nth-child(6) { animation-delay: .25s; }

/* ═════════ One smooth motion for the whole desktop ═════════
   Same keyframes, duration and easing for hero, folders and widgets; staggered in reading order. */
:root { --smooth: cubic-bezier(.22, 1, .36, 1); --dur: .6s; }
@keyframes deskIn { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.hero-logo, .hero h1, .hero p, .d-icon, .wg {
  opacity: 1; transform: none; animation: deskIn var(--dur) var(--smooth) backwards;
  transition: translate var(--dur) var(--smooth), box-shadow var(--dur) var(--smooth), background .3s ease;
}
.wg-now { transition: translate var(--dur) var(--smooth), transform var(--dur) var(--smooth), box-shadow var(--dur) var(--smooth); }
body.ready .hero-logo:hover, body.ready .hero h1:hover, body.ready .hero p:hover { transform: none; }
.hero-logo:hover, .hero h1:hover, .hero p:hover, .d-icon:hover, .wg:hover { translate: 2px 0; }
/* stagger */
.hero-logo { animation-delay: .05s; } .hero h1 { animation-delay: .15s; } .hero p { animation-delay: .25s; }
.wg:nth-child(1) { animation-delay: .1s; } .wg:nth-child(2) { animation-delay: .17s; } .wg:nth-child(3) { animation-delay: .24s; } .wg:nth-child(4) { animation-delay: .31s; } .wg:nth-child(5) { animation-delay: .38s; } .wg-now { animation-delay: .45s; }
.d-icon:nth-child(1) { animation-delay: .2s; } .d-icon:nth-child(2) { animation-delay: .28s; } .d-icon:nth-child(3) { animation-delay: .36s; } .d-icon:nth-child(4) { animation-delay: .44s; }
@media (prefers-reduced-motion: reduce) { .hero-logo, .hero h1, .hero p, .d-icon, .wg { animation: none; transition: none; } }
.widgets > .wg-photo { animation-delay: .38s; } .widgets > .wg-now { animation-delay: .45s; }

/* ═════════ Extra-smooth tuning ═════════ */
:root { --smooth: cubic-bezier(.16, 1, .3, 1); --dur: 1.1s; }
@keyframes deskIn { from { opacity: 0; translate: 0 22px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
.hero-logo, .hero h1, .hero p, .d-icon, .wg { will-change: opacity, translate; }
.hero-logo { animation-delay: .1s; } .hero h1 { animation-delay: .28s; } .hero p { animation-delay: .46s; }
.widgets > .wg:nth-child(1) { animation-delay: .25s; } .widgets > .wg:nth-child(2) { animation-delay: .37s; } .widgets > .wg:nth-child(3) { animation-delay: .49s; }
.widgets > .wg:nth-child(4) { animation-delay: .61s; } .widgets > .wg-photo { animation-delay: .73s; } .widgets > .wg-now { animation-delay: .85s; }
.d-icon:nth-child(1) { animation-delay: .4s; } .d-icon:nth-child(2) { animation-delay: .52s; } .d-icon:nth-child(3) { animation-delay: .64s; } .d-icon:nth-child(4) { animation-delay: .76s; }
.hero-logo:hover, .hero h1:hover, .hero p:hover, .d-icon:hover, .wg:hover { translate: 3px 0; }
@media (prefers-reduced-motion: reduce) { .hero-logo, .hero h1, .hero p, .d-icon, .wg { animation: none; filter: none; } }

/* ═════════ Smooth, short, no blur ═════════ */
:root { --smooth: cubic-bezier(.22, 1, .36, 1); --dur: .45s; }
@keyframes deskIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.hero-logo, .hero h1, .hero p, .d-icon, .wg { filter: none; }
.hero-logo { animation-delay: .03s; } .hero h1 { animation-delay: .08s; } .hero p { animation-delay: .13s; }
.widgets > .wg:nth-child(1) { animation-delay: .05s; } .widgets > .wg:nth-child(2) { animation-delay: .09s; } .widgets > .wg:nth-child(3) { animation-delay: .13s; }
.widgets > .wg:nth-child(4) { animation-delay: .17s; } .widgets > .wg-photo { animation-delay: .21s; } .widgets > .wg-now { animation-delay: .25s; }
.d-icon:nth-child(1) { animation-delay: .1s; } .d-icon:nth-child(2) { animation-delay: .14s; } .d-icon:nth-child(3) { animation-delay: .18s; } .d-icon:nth-child(4) { animation-delay: .22s; }
.hero-logo:hover, .hero h1:hover, .hero p:hover, .d-icon:hover, .wg:hover { translate: 2px 0; }

/* ═════════ macOS standard push buttons ═════════
   Regular: white, hairline border, 5px radius, 13px. Default (primary): system blue, white text. */
:root { --mac-blue: #0a84ff; --mac-blue-d: #0064d9; }
.btn, .wg-now .btn { height: 22px; padding: 0 12px; border-radius: 5px; font: 400 13px/1 var(--font); gap: 5px; background: #fff; color: #1d1d1f;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 .5px 1.5px rgba(0,0,0,.14); transition: background .12s, box-shadow .12s; }
.btn:hover, .wg-now .btn:hover { background: #fafafa; } .btn:active, .wg-now .btn:active { background: #ececec; transform: none; }
.btn.sm, .wg-now .btn.sm { height: 20px; padding: 0 10px; font-size: 12px; }
.btn.primary, .wg-now .btn.primary { background: linear-gradient(#4da3ff, var(--mac-blue)); color: #fff; box-shadow: 0 0 0 .5px var(--mac-blue-d), 0 .5px 1.5px rgba(0,60,160,.35), inset 0 .5px 0 rgba(255,255,255,.35); }
.btn.primary:hover, .wg-now .btn.primary:hover { background: linear-gradient(#5cacff, #1a8cff); } .btn.primary:active, .wg-now .btn.primary:active { background: linear-gradient(var(--mac-blue), var(--mac-blue-d)); }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 0 0 3px rgba(10,132,255,.5); }
[data-theme=dark] .btn { background: rgba(255,255,255,.14); color: #f5f5f7; box-shadow: 0 0 0 .5px rgba(255,255,255,.18), 0 .5px 1.5px rgba(0,0,0,.4); }
[data-theme=dark] .btn:hover { background: rgba(255,255,255,.2); } [data-theme=dark] .btn:active { background: rgba(255,255,255,.1); }
[data-theme=dark] .btn.primary { background: linear-gradient(#3b97ff, #0a74e8); color: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.4), inset 0 .5px 0 rgba(255,255,255,.3); }
.win:not(.active) .btn.primary { background: #c8c8cc; box-shadow: 0 0 0 .5px rgba(0,0,0,.15); color: #fff; }
[data-theme=dark] .win:not(.active) .btn.primary { background: rgba(255,255,255,.18); }
.chat-in .btn, .ch-send { border-radius: 50%; }
.btn-row { gap: 8px; }

/* ═════════ Profile photo — colour grade ═════════
   Calms the busy green background, adds warmth to skin tones and a soft cream-yellow wash to match the site's accent. */
.avatar img, .wg-photo img { filter: saturate(.78) contrast(1.06) brightness(1.04) sepia(.14) hue-rotate(-6deg); }
.avatar:has(img), .wg-photo { isolation: isolate; }
.avatar:has(img) { position: relative; }
.avatar:has(img)::after, .wg-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 50% 8%, rgba(255,243,194,.28), rgba(255,216,74,.08) 55%, rgba(60,40,0,.14) 100%); mix-blend-mode: soft-light; }
.wg-photo::after { z-index: 1; } .ph-cap { z-index: 2; }

/* fluidImageOverlay canvas */
.wg-photo { position: relative; }
.fluid-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: .75; border-radius: inherit; }
.wg-photo .ph-cap { z-index: 3; }

/* ═════════ Sticker mode (assets/hi.png): no card, no square background ═════════
   Transparent PNG sits straight on the page; the soft shadow follows the sticker's own outline. */
.wg-photo.sticker { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.wg-photo.sticker:hover { box-shadow: none; }
.wg-photo.sticker img { object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); transform: rotate(-3deg) scale(1.08); transform-origin: 50% 80%; transition: transform .45s var(--smooth, cubic-bezier(.22,1,.36,1)); }
.wg-photo.sticker:hover img { transform: rotate(0deg) scale(1.14); }
.wg-photo.sticker::after, .wg-photo.sticker .fluid-cv, .wg-photo.sticker .ph { display: none; }
.wg-photo.sticker .ph-cap { left: 50%; transform: translateX(-50%); bottom: -6px; }
/* Portrait sticker needs more height than the square placeholder */
.widgets:has(.wg-photo.sticker) { grid-template-rows: 143px 105px 143px 210px; }
.wg-photo.sticker { width: 143px; }

/* Empty project folder */
.empty-f { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 48px 16px; color: var(--text2); }
.empty-f .fico { width: 96px; height: 96px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); } .empty-f .fico svg { width: 100%; height: 100%; }
.empty-f b { color: var(--text); font-size: 15px; margin-top: 6px; } .empty-f p { max-width: 30ch; margin-bottom: 8px; }

/* Dock: a little more space between icons */
.dock { gap: 12px; padding: 7px 14px 9px; }
@media (max-width: 760px) { .dock { gap: 4px; padding: 6px 6px 8px; } }

.body-p { font-size: 14px; line-height: 1.55; color: var(--text); max-width: 62ch; margin-top: 2px; text-wrap: pretty; user-select: text; -webkit-user-select: text; }
a.btn { text-decoration: none; }

/* About Me sticker: head-and-shoulders portrait (~0.83 aspect) */
.widgets:has(.wg-photo.sticker) { grid-template-rows: 143px 105px 143px 178px; }
.wg-photo.sticker { width: 148px; }
.wg-photo.sticker img { object-position: center bottom; transform: rotate(-2deg) scale(1.04); }
.wg-photo.sticker:hover img { transform: rotate(0deg) scale(1.1); }

/* Hero: a little more line height */
.hero h1 { line-height: 1.22; }
.hero p { line-height: 1.7; }

/* Hero: line height, a bit more */
.hero h1 { line-height: 1.38; }
.hero p { line-height: 1.85; }

/* ═════════ Contact form ═════════ */
.compose .f-row { border-bottom: 1px solid var(--line2); transition: border-color .2s; } .compose .f-row:focus-within { border-bottom-color: var(--accent-ink); }
.compose .f-row.bad { border-bottom-color: #ff453a; } .f-row label { width: 64px; } .f-row input[readonly] { color: var(--text2); }
.f-err { color: #d70015; font-size: 12px; min-height: 0; margin: 3px 0 0 72px; } [data-theme=dark] .f-err { color: #ff6961; } .f-err:empty { display: none; }
.compose textarea { border-bottom: 1px solid var(--line2); } .compose textarea[aria-invalid=true] { border-bottom-color: #ff453a; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.f-status { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.45; user-select: text; } .f-status[hidden] { display: none; }
.f-status.err { background: rgba(255,69,58,.12); color: #b3261e; box-shadow: 0 0 0 .5px rgba(255,69,58,.4); } [data-theme=dark] .f-status.err { color: #ff8a82; } .f-status.err a { color: inherit; text-decoration: underline; }
.f-status.ok { background: rgba(48,209,88,.14); color: #1f7a3a; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; display: inline-block; }
.btn:disabled { opacity: .6; pointer-events: none; }
.sent { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 56px 16px; } .sent h2 { font: 700 22px var(--font-d); margin: 4px 0 0; letter-spacing: -.02em; } .sent p { color: var(--text3); max-width: 38ch; line-height: 1.5; user-select: text; }
.sent-ic { width: 56px; height: 56px; border-radius: 50%; background: #30d158; color: #fff; display: grid; place-items: center; animation: pop .35s var(--ease); } .sent-ic .gi { width: 28px; height: 28px; stroke-width: 2.8; }
@media (max-width: 760px) { .f-err { margin-left: 0; } .f-row label { width: 58px; } .compose input, .compose textarea { font-size: 16px; } }

/* Project video: full width of the left column, plays in place */
.d-art.d-video { aspect-ratio: 16 / 9; background: #000; width: 100%; }
.d-video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ═════════ Calendar widget — month view (matches reference) ═════════ */
.wg-cal { padding: 11px 12px 8px; display: flex; flex-direction: column; justify-content: flex-start; gap: 5px; }
.wg-cal .cal-m { font: 700 11.5px/1 var(--font); letter-spacing: .01em; color: #e5484d; text-align: left; }
.wg-cal .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 14px; gap: 0; align-items: center; justify-items: center; font: 600 8px/1 var(--font); color: var(--text); font-variant-numeric: tabular-nums; text-align: center; }
.wg-cal .cal-g em { font-style: normal; font-weight: 700; color: var(--text); }
.wg-cal .cal-g .sun { color: #9a9aa0; }
.wg-cal .cal-g span, .wg-cal .cal-g em { width: 100%; display: grid; place-items: center; line-height: 1; }
.wg-cal .cal-g span.today { width: 14px; height: 14px; border-radius: 50%; background: #e5484d; color: #fff; font-weight: 700; }
[data-theme=dark] .wg-cal .cal-m { color: #ff6369; } [data-theme=dark] .wg-cal .cal-g .sun { color: #8a8a90; }

/* Desktop folders: scale up on hover */
.d-art { transition: transform .3s var(--ease); transform-origin: 50% 60%; }
.d-icon:hover .d-art, .d-icon:focus-visible .d-art { transform: scale(1.08); }
.d-icon:active .d-art { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .d-icon:hover .d-art { transform: none; } }

/* ═════════ Desktop folders: same hover as the Projects window ═════════
   Soft rounded highlight + icon scale 1.05 (.25s ease). No sideways nudge. */
.d-icon { border-radius: 12px; transition: background .15s; }
.d-icon:hover, html[data-theme] .d-icon:hover { background: var(--hover); translate: 0 0; }
.d-art { transition: transform .25s var(--ease); transform-origin: 50% 50%; }
.d-icon:hover .d-art, .d-icon:focus-visible .d-art, .d-icon:active .d-art { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .d-icon, .d-art { transition: none; } .d-icon:hover .d-art { transform: none; } }

/* Desktop folder icons: no white card (they share the `.d-art` class with the project-detail picture) */
.d-icon .d-art { background: none; box-shadow: none; border-radius: 0; overflow: visible; aspect-ratio: auto; position: static; }

/* ═════════ Widgets: scale on hover (same feel as the folders) ═════════
   Uses the separate `scale` property so the sticky note's tilt and the About sticker's own transforms keep working. */
.wg { transition: scale .25s var(--ease), translate .25s var(--ease), box-shadow .25s var(--ease), transform .45s var(--ease); transform-origin: 50% 50%; }
.wg:hover, .wg:focus-within { translate: 0 0; scale: 1.05; }
.wg:active { scale: 1.02; }
button.wg:hover { transform: none; }
.wg-now:hover { transform: rotate(0deg); }
.wg-photo.sticker:hover { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .wg { transition: none; } .wg:hover, .wg:focus-within { scale: 1; } }

/* ═════════ Case study (Design Process → Implementation Guidelines) ═════════ */
.detail .cs { grid-column: 1 / -1; display: grid; gap: 4px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.cs-h { display: flex; align-items: baseline; gap: 10px; font: 700 clamp(20px, 2.4vw, 26px)/1.15 var(--font-d); letter-spacing: -.02em; margin: 26px 0 2px; }
.cs-h:first-child { margin-top: 18px; } .cs-h span { font: 600 12px var(--mono); color: var(--accent-ink); letter-spacing: 0; }
.cs-sec { margin-top: 14px; } .cs-sec h3 { font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.cs-sec .body-p { max-width: 72ch; } .cs-sec .chips { margin-top: 12px; }
.cs-quote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; box-shadow: 0 0 0 .5px var(--line); font-size: 15px; line-height: 1.55; font-style: italic; color: var(--text); max-width: 72ch; user-select: text; -webkit-user-select: text; }
.cs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; } .cs-cards .card p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.cs-rank { display: grid; gap: 8px; } .cs-rank li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: var(--card); border-radius: 12px; box-shadow: 0 0 0 .5px var(--line); font-size: 14px; line-height: 1.4; } .cs-rank .step-n { width: 26px; height: 26px; font-size: 13px; }
.cs-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; } .cs-shots figure { margin: 0; } .cs-shots figcaption { display: grid; gap: 2px; margin-top: 8px; font-size: 12.5px; } .cs-shots figcaption span { color: var(--text2); line-height: 1.4; }
@media (max-width: 760px) { .cs-cards, .cs-shots { grid-template-columns: 1fr; } .cs-quote { font-size: 14px; } }
