/* ==========================================================================
   Shane Marks — homepage as a macOS desktop
   Meadow wallpaper, translucent menu bar, desktop icons, flip clock +
   calendar widgets, a magnifying dock, and content in draggable windows.
   ========================================================================== */

:root {
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", var(--sys);
  --ink: #111;
  --ink-2: #3a3a3c;
  --muted: #8a8a8e;
  --line: rgba(0, 0, 0, 0.1);
  --blue: #0a7cff;
  --red: #ff5f57;
  --yellow: #febc2e;
  --green: #28c840;
  --cream: #f6ecc4;
  --navy: #1d4679;
  --mb-h: 26px;
  --k: 1;                          /* dock icon scale (icons are authored at 52px) */
  --ic: calc(52px * var(--k));
  --dock-h: calc(var(--ic) + 22px);
  --glass: rgba(246, 246, 246, 0.36);
  --win-shadow: 0 0 0 0.5px rgba(0,0,0,0.22), 0 22px 60px -12px rgba(0,0,0,0.38), 0 8px 20px -8px rgba(0,0,0,0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sys);
  color: var(--ink);
  background: #9cc3e6 url("/img/wallpaper-meadow.jpg") center bottom / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: default; }
img { display: block; max-width: 100%; }

/* ---------- menu bar ---------- */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--mb-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em;
  color: #0b0b0b;
}
.mb-left, .mb-right { display: flex; align-items: center; height: 100%; }
.mb-menu { position: relative; height: 100%; display: flex; align-items: center; }
.mb-item { height: 20px; padding: 0 9px; border-radius: 5px; display: inline-flex; align-items: center; white-space: nowrap; }
.mb-menu.open > .mb-item { background: rgba(0, 0, 0, 0.12); }
.mb-logo { padding: 0 11px; }
.mb-app { font-weight: 700; }
.mb-drop {
  position: absolute; top: calc(100% + 1px); left: 0; min-width: 220px;
  padding: 5px; border-radius: 9px;
  background: rgba(246, 246, 246, 0.8);
  backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2), 0 12px 32px -6px rgba(0,0,0,0.32);
  display: none; flex-direction: column;
}
.mb-menu.open .mb-drop { display: flex; }
.mb-drop > a, .mb-drop > button, .mb-drop > span {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  text-align: left; padding: 3px 10px; border-radius: 5px; font-size: 13.5px; line-height: 1.5;
}
.mb-drop > a:hover, .mb-drop > button:hover { background: var(--blue); color: #fff; }
.mb-drop > a:hover kbd, .mb-drop > button:hover kbd { color: rgba(255,255,255,0.85); }
.mb-drop .dis { color: #a5a5a8; }
.mb-drop kbd { font-family: var(--sys); font-size: 12.5px; color: #8e8e93; }
.mb-drop hr { border: 0; height: 1px; background: rgba(0,0,0,0.1); margin: 4px 10px; }

.mb-right { gap: 2px; }
.tray-item { position: relative; height: 20px; padding: 0 7px; border-radius: 5px; display: inline-flex; align-items: center; gap: 5px; }
.tray-item:hover { background: rgba(0,0,0,0.1); }
.tray-item > svg { width: 17px; height: 17px; display: block; }
.tray-item > .cal-glyph { width: 16px; height: 16px; }
.kb-a { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 15px; border-radius: 3.5px; background: #111; color: #fff; font-size: 11px; font-weight: 700; }
.batt-pct { font-size: 12.5px; }
.batt > svg { width: 25px; height: 20px; }
.mb-clock { padding: 0 8px 0 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clk-d { margin-right: 0.55em; }
.tray-pop {
  position: absolute; top: calc(100% + 6px); right: 0;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 8px 13px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #111;
  background: rgba(246, 246, 246, 0.86);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.18), 0 12px 28px -8px rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
  transition: opacity 0.15s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.tray-item:hover .tray-pop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tray-pop svg { width: 15px; height: 15px; }
.tray-pop b { font-weight: 700; }
.np { display: flex; flex-direction: column; line-height: 1.1; }
.np b { font-size: 13px; }
.np span { font-size: 11.5px; font-weight: 500; color: #6a6a6a; }
.np-art { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; background: linear-gradient(135deg, #ff6a2b, #2c78ff); }
.np-wave { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 15px; }
.np-wave i { width: 2.5px; background: #111; border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.np-wave i:nth-child(1) { height: 6px; animation-delay: -0.2s; }
.np-wave i:nth-child(2) { height: 13px; animation-delay: -0.5s; }
.np-wave i:nth-child(3) { height: 8px; animation-delay: -0.1s; }
.np-wave i:nth-child(4) { height: 14px; animation-delay: -0.35s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.batt-pop { color: #111; }

/* ---------- desktop ---------- */
.desktop { position: fixed; top: var(--mb-h); left: 0; right: 0; bottom: 0; overflow: hidden; }
.cluster {
  /* everything in the widget cluster scales with this */
  font-size: clamp(12px, 1.02vw, 18px);
  position: absolute; left: 50%; top: 11.5%;
  transform: translateX(-50%);
  display: flex; align-items: flex-start; gap: 1.3em;
}

/* desktop icons */
.icons { display: grid; grid-template-columns: repeat(2, 7.6em); row-gap: 0.9em; padding-top: 0.2em; }
.dicon { display: flex; flex-direction: column; align-items: center; gap: 0.35em; padding: 0; text-align: center; }
.dicon-img {
  font-size: 2.85em; line-height: 1.15; padding: 0.04em 0.12em; border-radius: 0.14em;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.22));
}
.dicon-label {
  font-size: 0.86em; font-weight: 700; color: #fff; padding: 0.05em 0.45em; border-radius: 0.35em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 0 6px rgba(0,0,0,0.25);
}
/* "hire me" folder: a real macOS-style folder, sized to match the emoji icons */
.dicon.folder .dicon-img { display: flex; align-items: center; justify-content: center; width: 1.25em; height: 1.15em; }
.dicon.folder svg { width: 100%; height: auto; display: block; }
.dicon.sel .dicon-img { background: rgba(0,0,0,0.22); }
.dicon.sel .dicon-label { background: #0a5cd6; text-shadow: none; }
.dicon:focus-visible { outline: none; }
.dicon:focus-visible .dicon-label { outline: 2px solid #fff; }

/* flip clock */
.flipclock { padding-top: 2.4em; }
.fc-head, .fc-foot {
  color: var(--cream); font-family: var(--round); font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.fc-head { display: flex; justify-content: space-between; font-size: 1.15em; padding: 0 0.1em 0.45em; }
.fc-foot { text-align: center; font-size: 1.1em; margin-top: 0.7em; opacity: 0.92; }
.fc-cards { display: flex; gap: 0.95em; }
.fc-card {
  position: relative; width: 6.5em; height: 6.4em; border-radius: 0.5em;
  background: linear-gradient(#3b3a38 0%, #333230 49.6%, #2a2927 50.4%, #302f2d 100%);
  box-shadow: 0 0.35em 0.9em -0.2em rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  perspective: 20em;
}
.fc-card::after {  /* the split line */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0.14em;
  transform: translateY(-50%); background: rgba(0,0,0,0.55); box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
.fc-num {
  font-family: var(--round); font-weight: 900; font-size: 4.6em; line-height: 1;
  color: #f7f0dc; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.fc-ap { position: absolute; top: 0.45em; left: 0.6em; font-size: 0.8em; font-weight: 800; color: #f7f0dc; font-family: var(--round); }
.fc-card.flip .fc-num { animation: flip 0.45s cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes flip { 0% { transform: rotateX(-80deg); opacity: 0.4; } 100% { transform: none; opacity: 1; } }

/* calendar widget */
.calw { width: 9.2em; padding-top: 0.3em; color: var(--navy); text-shadow: 0 0 6px rgba(255,255,255,0.55); }
.cal-title { font-weight: 700; font-size: 0.98em; margin-bottom: 0.25em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 0.28em; font-size: 0.7em; text-align: center; font-variant-numeric: tabular-nums; }
.cal-grid b { font-weight: 700; }
.cal-grid span { font-weight: 500; border-radius: 0.3em; }
.cal-grid .o { opacity: 0.32; }
.cal-grid .today { background: rgba(29,70,121,0.14); font-weight: 700; }
.cal-sun { display: flex; gap: 0.9em; margin-top: 0.85em; font-size: 0.7em; }
.cal-sun span { display: inline-flex; align-items: center; gap: 0.3em; }
.cal-sun svg { width: 1.45em; height: 1.45em; }
.cal-sun b { font-weight: 500; }

/* welcome notification */
.notif {
  position: absolute; top: 12px; right: 12px; width: 350px; z-index: 900;
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 30px 13px 12px; border-radius: 16px;
  background: rgba(246, 246, 246, 0.7);
  backdrop-filter: saturate(180%) blur(26px); -webkit-backdrop-filter: saturate(180%) blur(26px);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.12), 0 12px 30px -10px rgba(0,0,0,0.3);
  animation: slidein 0.6s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.notif img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.notif h1 { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.notif p { font-size: 13px; line-height: 1.32; color: #2c2c2e; margin-top: 1px; }
.notif-x { position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%; font-size: 15px; line-height: 1; color: #666; cursor: pointer; }
.notif-x:hover { background: rgba(0,0,0,0.08); }
.notif.gone { animation: slideout 0.35s ease forwards; }
@keyframes slidein { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideout { to { transform: translateX(120%); opacity: 0; visibility: hidden; } }

/* toast */
.toast {
  position: absolute; left: 50%; bottom: calc(var(--dock-h) + 18px); transform: translate(-50%, 10px);
  padding: 9px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  background: rgba(30,30,30,0.72); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.25s ease; z-index: 950; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- windows ---------- */
.mwin {
  position: absolute; left: clamp(6px, var(--x), calc(100% - min(var(--w), 100vw - 24px) - 6px)); top: var(--y); width: min(var(--w), calc(100vw - 24px));
  max-height: min(var(--h, 620px), calc(100% - var(--dock-h) - var(--y) - 14px));
  display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: var(--win-shadow);
  user-select: text; -webkit-user-select: text;
  z-index: 20;
}
.mwin[hidden] { display: none; }
.mwin:not(.front) { box-shadow: 0 0 0 0.5px rgba(0,0,0,0.18), 0 14px 36px -12px rgba(0,0,0,0.28); }
.mwin.opening { animation: winopen 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
@keyframes winopen { from { transform: scale(0.94) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.mwin.max { left: 8px !important; top: 8px !important; width: calc(100% - 16px) !important; max-height: calc(100% - var(--dock-h) - 20px); height: calc(100% - var(--dock-h) - 20px); }
.mwin.dragging { transition: none; user-select: none; }
.mw-bar {
  position: relative; flex: 0 0 auto; height: 38px; display: flex; align-items: center; padding: 0 13px;
  background: linear-gradient(#f5f5f4, #ebebea); border-bottom: 1px solid rgba(0,0,0,0.09);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
}
.mw-bar.dark { background: linear-gradient(#2d2d2f, #232325); border-color: #000; }
.mw-bar.dark .mw-title { color: #c7c7cc; }
.lights { display: flex; gap: 8px; position: relative; z-index: 2; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; cursor: pointer; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15); position: relative; }
.lights .r { background: var(--red); } .lights .y { background: var(--yellow); } .lights .g { background: var(--green); }
.lights:hover i::after { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; font-style: normal; color: rgba(0,0,0,0.55); line-height: 1; }
.lights:hover .r::after { content: "×"; } .lights:hover .y::after { content: "–"; } .lights:hover .g::after { content: "+"; }
.mwin:not(.front) .lights i { background: #d5d5d4; }
.mw-title { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; color: #4a4a4c; pointer-events: none; }
.mw-body { overflow: auto; overscroll-behavior: contain; }

/* notes */
.notes .mw-bar { background: linear-gradient(#fbf6e2, #f3eac7); }
.notes .mw-body { padding: 18px 30px 26px; }
.notes-date { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.notes h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.notes h3 { font-size: 15px; font-weight: 700; margin: 20px 0 10px; }
.notes p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 12px; }
.notes mark { background: #fff2a8; padding: 0 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span { font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: #f4f3ef; border: 1px solid #e6e4dd; color: var(--ink-2); }
.notes-sign { display: flex; align-items: center; gap: 11px; margin-top: 24px; }
.notes-sign img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.notes-sign b { display: block; font-size: 14px; }
.notes-sign span { font-size: 12.5px; color: var(--muted); }
.notes-sign .mark { margin-left: auto; font-size: 24px; font-weight: 800; color: var(--ink); }

/* finder */
.finder-wrap { display: flex; min-height: 0; flex: 1 1 auto; }
.finder-side {
  flex: 0 0 170px; padding: 12px 8px; display: flex; flex-direction: column; gap: 1px;
  background: rgba(236, 236, 238, 0.95); border-right: 1px solid rgba(0,0,0,0.07); font-size: 13px; overflow: auto;
}
.fs-h { font-size: 11px; font-weight: 700; color: #9a9a9e; padding: 8px 8px 4px; }
.finder-side a, .finder-side button, .finder-side .tag { text-align: left; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.finder-side a:hover, .finder-side button:hover { background: rgba(0,0,0,0.06); }
.finder-side .on { background: rgba(0,0,0,0.09); font-weight: 600; }
.tag { display: flex; align-items: center; gap: 8px; }
.tag i { width: 10px; height: 10px; border-radius: 50%; }
.finder-main { flex: 1 1 auto; padding: 18px 20px 20px; }
.pitches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.pitch h3 { font-size: 15px; font-weight: 800; margin: 10px 0 4px; letter-spacing: -0.01em; }
.pitch p { font-size: 12.5px; line-height: 1.45; color: #6b6b70; }
.imsgs { display: flow-root; }
.imsg { display: inline-block; max-width: 100%; padding: 6px 11px; border-radius: 15px; font-size: 12.5px; font-weight: 600; line-height: 1.3; margin-bottom: 5px; }
.imsg.blue {
  color: #0c1330; border: 1px solid #2833a3; border-bottom-left-radius: 5px;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.9) 1%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.05) 47%, rgba(255,255,255,0) 49%, rgba(255,255,255,0.12) 92%, rgba(255,255,255,0.32) 100%), linear-gradient(to bottom, #aed2ff 0%, #74b2ff 46%, #2c78ff 48%, #2c78ff 82%, #59a0ff 100%);
  box-shadow: inset 0 1px 1.5px rgba(255,255,255,0.95), 0 4px 10px -5px rgba(44,120,255,0.5);
  text-shadow: 0 0 3px rgba(255,255,255,0.85);
}
.imsg.orange {
  color: #3a1600; border: 1px solid #d1621f; border-bottom-right-radius: 5px; float: right; clear: both;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.9) 1%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.05) 47%, rgba(255,255,255,0) 49%, rgba(255,255,255,0.12) 92%, rgba(255,255,255,0.32) 100%), linear-gradient(to bottom, #ffd3a8 0%, #ffab63 46%, #ff7a2e 48%, #ff7a2e 82%, #ff9a55 100%);
  box-shadow: inset 0 1px 1.5px rgba(255,255,255,0.9), 0 4px 10px -5px rgba(255,122,46,0.5);
  text-shadow: 0 0 3px rgba(255,255,255,0.7);
}
.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 16px; }
.file { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px; border-radius: 8px; }
.file img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 10px -4px rgba(0,0,0,0.3); }
.file span { font-size: 12px; font-weight: 500; padding: 1px 6px; border-radius: 4px; text-align: center; }
.file:hover { background: rgba(0,0,0,0.05); }
.file:hover span { background: #0a5cd6; color: #fff; }
.finder-cta { text-align: center; margin-top: 22px; }
.finder-status { flex: 0 0 auto; font-size: 11.5px; color: #8e8e93; text-align: center; padding: 5px; border-top: 1px solid rgba(0,0,0,0.07); background: #f7f7f7; }

/* glossy aqua buttons (kept from the previous theme) */
.gel { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform 0.15s ease; cursor: pointer; }
.gel:hover { transform: translateY(-1px); }
.gel.blue {
  color: #0c1330; border: 1px solid #2833a3;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.92) 1%, rgba(255,255,255,0.42) 28%, rgba(255,255,255,0.06) 46%, rgba(255,255,255,0) 48%, rgba(255,255,255,0.12) 90%, rgba(255,255,255,0.34) 100%), linear-gradient(to bottom, #aed2ff 0%, #74b2ff 45%, #2c78ff 47%, #2c78ff 82%, #59a0ff 100%);
  box-shadow: inset 0 1px 1.5px rgba(255,255,255,0.95), 0 6px 14px -6px rgba(44,120,255,0.55), 0 2px 4px rgba(10,20,60,0.2);
  text-shadow: 0 0 3px rgba(255,255,255,0.85);
}
.gel.silver {
  color: #1a1a1a; border: 1px solid #b6b6b6;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.95) 1%, rgba(255,255,255,0.45) 30%, rgba(255,255,255,0) 48%, rgba(255,255,255,0.08) 90%, rgba(255,255,255,0.3) 100%), linear-gradient(to bottom, #ffffff 0%, #ececec 46%, #cfcfcf 47%, #d9d9d9 82%, #f3f3f3 100%);
  box-shadow: inset 0 1px 1.5px rgba(255,255,255,0.95), 0 4px 10px -5px rgba(0,0,0,0.22);
  text-shadow: 0 0 3px rgba(255,255,255,0.9);
}

/* messages */
.messages .mw-body { padding: 14px 14px 8px; background: #fff; flex: 1 1 auto; }
.thread { display: flex; flex-direction: column; gap: 4px; }
.stamp { text-align: center; font-size: 11.5px; font-weight: 600; color: #8e8e93; margin: 10px 0 6px; }
.bub { max-width: 78%; padding: 7px 12px; border-radius: 18px; font-size: 14px; line-height: 1.35; }
.bub.in { align-self: flex-start; background: #e9e9eb; color: #111; border-bottom-left-radius: 6px; }
.bub.out { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; margin-top: 8px; }
.reach { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 4px; }
.reach .gel { font-size: 13px; padding: 7px 13px; }
.read { align-self: flex-end; font-size: 11px; color: #8e8e93; margin-top: 2px; }
.compose { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin: 8px 10px 10px; padding: 5px 5px 5px 13px; border: 1px solid #d1d1d6; border-radius: 999px; font-size: 13.5px; color: #8e8e93; }
.compose span { flex: 1; }
.compose b { width: 24px; height: 24px; border-radius: 50%; background: #0a84ff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* showreel */
.reel-body { position: relative; background: #000; aspect-ratio: 16 / 9; }
.reel-body img { width: 100%; height: 100%; object-fit: cover; }
.playbtn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px 11px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.92); font-weight: 600; font-size: 15px; box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5);
  transition: transform 0.16s ease;
}
.playbtn:hover { transform: translate(-50%, -50%) scale(1.05); }
.playbtn svg { width: 16px; height: 16px; fill: #111; }

/* browser windows (portfolio, journal) */
.browser { height: min(var(--h), calc(100% - var(--dock-h) - var(--y) - 14px)); background: #f1f0ee; }
.browser iframe { flex: 1 1 auto; width: 100%; border: 0; display: block; background: #f1f0ee; }
.urlbar {
  position: absolute; left: 50%; transform: translateX(-50%); width: min(420px, 60%);
  height: 24px; border-radius: 7px; background: rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center; gap: 0;
  font-size: 12.5px; color: #6b6b70; white-space: nowrap; overflow: hidden; pointer-events: none;
}
.urlbar b { font-weight: 500; color: #1c1c1e; }
.mwin.dragging iframe { pointer-events: none; }

/* quick look */
.preview { background: #1c1c1e; }
.pv-body { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; background: #1c1c1e; padding: 10px; }
.pv-body img { max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; border-radius: 3px; }
.pv-foot { padding: 10px; text-align: center; background: #1c1c1e; }
.pv-foot[hidden] { display: none; }

/* link card */
.lk-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 26px 24px; position: relative; }
.lk-ico { width: 56px; height: 56px; margin-bottom: 6px; }
.lk-ico svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.22)); }
.lk-avatar { position: absolute; top: 58px; left: calc(50% + 14px); width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.lk-avatar[hidden] { display: none; }
.lk-body b { font-size: 17px; font-weight: 700; }
.lk-url { font-size: 12.5px; color: #8e8e93; }
.lk-body p { font-size: 13.5px; color: #3a3a3c; line-height: 1.45; margin: 6px 0 12px; }

/* ---------- dock ---------- */
.dock-wrap { position: fixed; left: 0; right: 0; bottom: 5px; z-index: 950; display: flex; justify-content: center; pointer-events: none; }
.dock {
  pointer-events: auto;
  display: flex; align-items: flex-end; gap: 5px; padding: 5px 6px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: saturate(170%) blur(24px); -webkit-backdrop-filter: saturate(170%) blur(24px);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.55), 0 0 0 0.5px rgba(0,0,0,0.12), 0 10px 30px -10px rgba(0,0,0,0.3);
}
.app { --s: 1; position: relative; width: var(--ic); height: var(--ic); flex: 0 0 auto; cursor: pointer; }
.app .ico {
  position: absolute; left: 50%; bottom: 0; width: 52px; height: 52px;
  transform-origin: 50% 100%; transform: translateX(-50%) scale(calc(var(--s) * var(--k)));
  transition: transform 0.12s ease-out;
  border-radius: 23%; overflow: hidden;
  box-shadow: 0 2px 5px -1px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
}
.dock:not(:hover) .app .ico { transition: transform 0.28s ease; }
.app { margin: 0 calc((var(--s) - 1) * var(--ic) * 0.3); transition: margin 0.12s ease-out; }
.app.running::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(0,0,0,0.65); }
.app::before {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(var(--ic) * var(--s) + 12px); transform: translateX(-50%);
  padding: 4px 10px; border-radius: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; color: #111;
  background: rgba(240,240,240,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.18), 0 6px 16px -6px rgba(0,0,0,0.3);
  opacity: 0; pointer-events: none; transition: opacity 0.12s ease;
}
.app:hover::before { opacity: 1; }
.app.bounce .ico { animation: bounce 0.7s ease; }
@keyframes bounce { 0%, 100% { translate: 0 0; } 30% { translate: 0 -18px; } 55% { translate: 0 0; } 75% { translate: 0 -7px; } }
.dock-sep { width: 1px; height: calc(var(--ic) - 6px); margin: 0 5px 3px; background: rgba(0,0,0,0.18); align-self: center; }

/* app icons: vector recreations of the real macOS / app icons */
.app .ico.svg { background: none; border-radius: 0; overflow: visible; box-shadow: none; }
.ico.svg svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1.5px 1.8px rgba(0,0,0,0.26)); }
.app.playing .i-music svg { animation: beat 0.9s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.93); } }
.i-min { background: #222; box-shadow: 0 2px 6px -1px rgba(0,0,0,0.35) !important; border-radius: 4px !important; }
.i-min img { width: 100%; height: 68%; object-fit: cover; }
.i-trash { background: transparent; box-shadow: none !important; overflow: visible !important; }
.i-trash i { width: 34px; height: 42px; border-radius: 3px 3px 8px 8px; background: linear-gradient(90deg, rgba(255,255,255,0.75), rgba(230,236,242,0.55)); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 3px 6px -2px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(0,0,0,0.05); position: relative; }
.i-trash i::before { content: ""; position: absolute; inset: 4px 6px; background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(0,0,0,0.07) 5px 6px); }
.i-trash i::after { content: ""; position: absolute; left: -3px; right: -3px; top: -3px; height: 5px; border-radius: 3px; background: rgba(245,248,250,0.9); box-shadow: 0 1px 2px rgba(0,0,0,0.2); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .mb-hide-sm { display: none; }
  :root { --k: 0.9; }
}
@media (max-width: 960px) { :root { --k: 0.8; } }
@media (max-width: 860px) { :root { --k: 0.72; } }
@media (max-width: 900px) {
  .cluster { font-size: 12px; }
  .calw { display: none; }
}
@media (max-width: 760px) {
  body { background-attachment: scroll; background-position: 30% bottom; }
  .menubar { padding: 0 6px; font-size: 13px; }
  .mb-menu:not(:first-child):not(:nth-child(2)) { display: none; }
  .mb-drop { position: fixed; left: 6px; right: 6px; min-width: 0; }
  .mb-clock { padding-right: 4px; }
  .clk-d { display: none; }
  .fc-head, .fc-foot { text-shadow: 0 1px 3px rgba(0,0,0,0.35); }
  .cluster { font-size: 3.1vw; top: 14px; flex-direction: column-reverse; align-items: center; gap: 1.6em; width: calc(100% - 32px); }
  .flipclock { padding-top: 0; }
  .icons { grid-template-columns: repeat(4, 1fr); width: 100%; font-size: 1.1em; }
  .notif { left: 12px; right: 12px; top: auto; bottom: calc(var(--dock-h) + 14px); width: auto; }
  .mwin, .mwin.max {
    left: 6px !important; top: 6px !important; width: calc(100% - 12px) !important;
    max-height: none; height: calc(100% - var(--dock-h) - 18px) !important;
  }
  .mw-bar { cursor: default; }
  .finder-side { display: none; }
  .pitches { grid-template-columns: 1fr; }
  .files { grid-template-columns: 1fr 1fr; }
  .dock { gap: 4px; padding: 5px; overflow-x: auto; max-width: calc(100vw - 12px); scrollbar-width: none; }
  .dock::-webkit-scrollbar { display: none; }
  :root { --k: 0.88; }
  .app::before { display: none; }
  .dock-sep { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .np-wave i, .app.playing .i-music svg { animation: none; }
  .fc-card.flip .fc-num, .mwin.opening, .notif, .app.bounce .ico { animation: none; }
}
