:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --ink: #181818;
  --paper: #efefec;
  --silver: #aeaeaa;
  --charcoal: #252524;
  --black: #0c0c0c;
  --light-ink: #f4f4f1;
  --line: rgba(255, 255, 255, .62);
  --window-shadow: 0 24px 62px rgba(0, 0, 0, .25), 0 4px 12px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .24);
  --glass: linear-gradient(145deg, rgba(255,255,255,.86), rgba(240,240,238,.76) 42%, rgba(226,226,225,.81));
  --spring: cubic-bezier(.2, .85, .25, 1.3);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html,
body { min-height: 100%; margin: 0; }

body {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background: #202020;
}

button,
a,
input { font: inherit; }

button { border: 0; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #242423;
  outline-offset: 3px;
}

.dock :focus-visible { outline-color: #f5f5f2; }

button:disabled { cursor: default; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 42px;
  left: 12px;
  padding: 12px 16px;
  border: 1px solid #242423;
  border-radius: 10px;
  background: #f5f5f2;
  color: #181818;
  font-size: 14px;
  transform: translateY(-150px);
}

.skip-link:focus { transform: none; }
.no-script-note { position: relative; z-index: 50; margin: 45px 12px 12px; padding: 16px; border-radius: 12px; background: #efefec; }
.no-script-note a { color: #181818; }
.error-page { display: grid; min-height: 100svh; place-items: center; padding: 24px; }
.error-page .error-window { position: relative; width: min(560px, 100%); }
.error-titlebar { margin: auto; color: #686866; font-size: 11px; font-weight: 650; }
.error-window .titlebar { cursor: default; }
.error-window h1 { font-size: clamp(36px, 6vw, 56px); }

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.wallpaper {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: #414141;
}

.wallpaper svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wallpaper::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 17% 0%, rgba(255,255,255,.14), transparent 50%), radial-gradient(ellipse at 90% 100%, rgba(0,0,0,.36), transparent 60%), rgba(0, 0, 0, .23);
}

.masthead {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 35px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .32);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(236,236,234,.74));
  box-shadow: 0 1px 8px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.8);
  color: #171717;
  backdrop-filter: blur(22px) saturate(.7);
  -webkit-backdrop-filter: blur(22px) saturate(.7);
  font-size: 12px;
  font-weight: 670;
}

.brand,
.menu-actions button,
.menu-actions a,
.motion-toggle {
  color: inherit;
  background: transparent;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 19px 0 0;
  padding: 3px 0;
  cursor: pointer;
  font-weight: 780;
  min-height: 24px;
}

.brand .icon-mark {
  width: 17px;
  height: 17px;
}

.menu-actions,
.meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-actions button,
.menu-actions a,
.motion-toggle {
  padding: 3px 0;
  min-height: 24px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 610;
}

.menu-actions button:hover,
.menu-actions a:hover,
.motion-toggle:hover { color: #6b6b67; }

.meta {
  gap: 11px;
  margin-left: auto;
}

.status { color: #565654; }

#home-clock {
  min-width: 59px;
  color: #3e3e3c;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.motion-toggle[aria-pressed="false"] { color: #555550; }

.motion-toggle:disabled {
  cursor: default;
  opacity: .68;
}

#desktop {
  position: relative;
  min-height: 100svh;
  padding: 35px 0 94px;
}

.window {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--glass);
  box-shadow: var(--window-shadow);
  backdrop-filter: blur(28px) saturate(.65);
  -webkit-backdrop-filter: blur(28px) saturate(.65);
  transform-origin: 50% 50%;
  transition: box-shadow .3s ease, border-color .3s ease, opacity .22s ease, transform .3s var(--spring);
  scroll-margin-top: 52px;
}

.window::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.66), inset -1px -1px 0 rgba(255,255,255,.16);
  pointer-events: none;
  content: "";
}

#construction { z-index: 4; }
#clock-window,
#projects { z-index: 3; }
#note-window { z-index: 2; }

.window.is-active {
  z-index: 20;
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 34px 76px rgba(0,0,0,.32), 0 7px 20px rgba(0,0,0,.1), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255,255,255,.3);
}

.window.is-dragging {
  cursor: grabbing;
  transition: none;
}

.window.is-hidden,
.window.is-minimized {
  opacity: 0;
  pointer-events: none;
  transform: scale(.94) translateY(15px);
}

.window.is-expanded {
  position: fixed;
  z-index: 90 !important;
  top: 50px !important;
  right: 18px !important;
  bottom: 93px !important;
  left: 18px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0;
  overflow: auto;
}

.titlebar {
  position: relative;
  display: flex;
  align-items: center;
  height: 39px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .11);
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.04));
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.titlebar:active { cursor: grabbing; }

.window-name {
  position: absolute;
  right: 12px;
  left: 108px;
  overflow: hidden;
  color: #555550;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .01em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.traffic {
  display: flex;
  gap: 2px;
}

.traffic-control {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  --control-fill: #878783;
  color: #20201e;
  cursor: pointer;
}

.traffic-control::before {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
  background: var(--control-fill);
  content: "";
}

.traffic-control:nth-child(2) { --control-fill: #a6a6a1; }
.traffic-control:nth-child(3) { --control-fill: #666663; color: #f0f0ed; }

.traffic-control .icon {
  width: 9px;
  height: 9px;
  z-index: 1;
  opacity: 0;
  transition: opacity .13s ease;
}

.traffic:hover .traffic-control .icon,
.traffic:focus-within .traffic-control .icon { opacity: 1; }

.window-body { padding: clamp(20px, 2.1vw, 33px); }

.eyebrow {
  margin: 0 0 12px;
  color: #555550;
  font: 720 10px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
p { margin-top: 0; }

h1,
h2 { text-wrap: balance; }

h1 {
  max-width: 100%;
  margin-bottom: 12px;
  font-size: clamp(36px, 3.6vw, 56px);
  font-weight: 690;
  letter-spacing: -.045em;
  line-height: 1.04;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 680;
  letter-spacing: -.04em;
  line-height: .97;
}

p {
  color: #555553;
  font-size: 14px;
  letter-spacing: -.012em;
  line-height: 1.47;
}

.construction-window {
  top: 7.5vh;
  left: max(5vw, 58px);
  width: min(40vw, 590px);
  min-height: 390px;
  animation: settle .68s cubic-bezier(.2, .8, .2, 1);
}

.construction-body {
  display: flex;
  min-height: 351px;
  flex-direction: column;
  justify-content: space-between;
}

.intro {
  max-width: 47ch;
  margin-bottom: 20px;
  font-size: clamp(14px, 1.15vw, 16px);
}

.construction-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #555550;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hero-actions a { text-decoration: none; }

.quiet-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(0, 0, 0, .17);
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
  transition: transform .25s var(--spring), background .2s ease, box-shadow .2s ease;
}

.quiet-button {
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(229,229,225,.7));
  color: #232321;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0,0,0,.04);
}

.quiet-button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.quiet-button .icon { width: 15px; height: 15px; }

.primary-button {
  background: linear-gradient(160deg, #3e3e3d, #161615);
  color: #f4f4f1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 7px rgba(0,0,0,.14);
}

.primary-button:hover {
  background: #40403e;
  transform: translateY(-1px);
}

.primary-button .icon { width: 16px; height: 16px; }

.clock-window {
  top: max(62vh, 520px);
  left: max(5vw, 58px);
  width: min(19vw, 280px);
  min-height: 218px;
  animation: settle .68s .09s cubic-bezier(.2, .8, .2, 1);
}

.clock-body { padding: 25px; }

.time {
  display: flex;
  align-items: baseline;
  gap: .14em;
  color: #20201e;
  font-size: clamp(42px, 4.3vw, 66px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1;
}

.clock-period {
  font-size: .36em;
  letter-spacing: -.02em;
}

.date {
  display: block;
  margin-top: 16px;
  color: #555550;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 540;
  letter-spacing: -.035em;
}

.projects-window {
  display: flex;
  flex-direction: column;
  top: 7.5vh;
  right: max(5vw, 56px);
  width: min(48vw, 700px);
  height: min(70vh, 630px);
  min-height: 560px;
  color-scheme: light;
  background: var(--glass);
  animation: settle .68s .16s cubic-bezier(.2, .8, .2, 1);
}

.projects-window .titlebar { flex-shrink: 0; }

.finder-toolbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #d2d2ce;
  background: rgba(235,235,232,.62);
}

.finder-path {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #575754;
  font-size: 11px;
  white-space: nowrap;
}

.finder-path .icon { width: 16px; height: 16px; }

.finder-search {
  display: flex;
  align-items: center;
  width: min(47%, 240px);
  min-width: 0;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #bfbfba;
  border-radius: 8px;
  background: rgba(255,255,252,.76);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04), 0 1px 0 rgba(255,255,255,.8);
}

.finder-search .icon { width: 14px; height: 14px; flex: 0 0 auto; color: #70706b; }
.finder-search:focus-within { outline: 2px solid #555550; outline-offset: 2px; }
.finder-search input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: #242422; outline: 0; font-size: 12px; }
.finder-search input::placeholder { color: #73736d; opacity: 1; }

.finder-body { display: grid; grid-template-columns: 134px minmax(0, 1fr); min-height: 0; flex: 1; }
.finder-sidebar { display: flex; flex-direction: column; gap: 4px; padding: 18px 9px; border-right: 1px solid rgba(0,0,0,.08); background: rgba(213,213,209,.52); }
.finder-sidebar-label { margin: 0 8px 9px; color: #6b6b65; font-size: 10px; font-weight: 700; }
.sidebar-bottom { margin: auto 8px 0; padding-top: 20px; font-weight: 500; }
.finder-sidebar button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 7px;
  color: #494945;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}
.finder-sidebar button:hover { background: #d1d1cb; }
.finder-sidebar button[aria-pressed="true"] { background: linear-gradient(180deg, rgba(255,255,255,.48), rgba(182,182,177,.56)); color: #20201e; font-weight: 650; box-shadow: 0 1px 3px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.75); }
.finder-sidebar .icon { width: 17px; height: 17px; flex: 0 0 auto; }
.finder-main { min-width: 0; overflow: auto; padding: 20px 22px; background: rgba(250,250,247,.56); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.project-item { display: flex; align-items: center; flex-direction: column; min-width: 0; padding: 10px 6px 12px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: #343432; cursor: pointer; transition: background .2s, box-shadow .2s, border-color .2s; }
.project-item:hover { background: #e7e7e1; }
.project-item[aria-pressed="true"] { border-color: rgba(255,255,255,.85); background: linear-gradient(135deg, rgba(255,255,255,.66), rgba(211,211,204,.66)); box-shadow: inset 0 1px 0 #fff, 0 3px 9px rgba(0,0,0,.06); }
.project-folder { width: 79px; height: 66px; margin-bottom: 9px; filter: drop-shadow(0 4px 3px rgba(0,0,0,.13)); transition: transform .3s var(--spring); }
.project-item:hover .project-folder { transform: translateY(-3px) rotate(-2deg); }
.folder-back { fill: #9d9d95; stroke: #85857c; stroke-width: 1; }
.folder-front { fill: #c5c5bb; stroke: #a4a49a; stroke-width: 1; }
.folder-glyph { fill: none; stroke: #62625a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.project-name { max-width: 100%; overflow-wrap: anywhere; font-size: 12px; font-weight: 650; }
.project-kind { margin-top: 4px; color: #555550; font-size: 10px; }
.project-empty { padding: 20px 0; color: #65655e; font-size: 13px; }
.project-detail { margin-top: 20px; padding-top: 20px; border-top: 1px solid #d5d5ce; }
.project-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.project-detail .eyebrow { margin-bottom: 8px; font-size: 8px; }
.project-detail h3 { margin: 6px 0 10px; color: #252523; font-size: 26px; font-weight: 680; letter-spacing: -.045em; }
.project-detail p { margin: 0 0 14px; font-size: 13px; }
.project-access { display: inline-flex; align-items: center; gap: 4px; color: #62625d; font-size: 9px; white-space: nowrap; }
.project-access .icon { width: 12px; height: 12px; }
.project-detail .project-stack { color: #555550; font-size: 11px; line-height: 1.6; }
.project-visit { text-decoration: none; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.project-permalink { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: #4f4f49; font-size: 11px; text-underline-offset: 3px; }
.project-permalink .icon { width: 13px; height: 13px; transform: rotate(-45deg); }
.project-permalink:hover { color: #171717; }
.project-detail .project-access-note { margin: 12px 0 0; color: #555550; font-size: 11px; line-height: 1.5; }
.finder-status { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; border-top: 1px solid #cfcfc8; background: #e3e3dd; color: #565650; font-size: 10px; }
.finder-status-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
#reset-projects { min-height: 24px; padding: 3px 7px; border: 1px solid #b6b6ad; border-radius: 5px; background: #f1f1eb; color: #33332e; cursor: pointer; font-size: 10px; }
#reset-projects:hover { background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.note-window {
  top: max(62vh, 520px);
  left: calc(max(5vw, 58px) + min(19vw, 280px) + 20px);
  width: calc(min(40vw, 590px) - min(19vw, 280px) - 20px);
  min-height: 218px;
  background: var(--glass);
  animation: settle .68s .23s cubic-bezier(.2, .8, .2, 1);
}

.note-body {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 179px;
  padding: 20px;
  flex-direction: column;
  align-items: flex-start;
}

.note-body h2 {
  max-width: 24ch;
  margin-bottom: 7px;
}

.note-body p:last-child { margin-bottom: 0; }

.dock {
  position: fixed;
  z-index: 100;
  bottom: 14px;
  left: 50%;
  display: flex;
  align-items: end;
  gap: 6px;
  max-width: calc(100vw - 24px);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.03) 45%, rgba(255,255,255,.12)), rgba(27,27,27,.54);
  box-shadow: 0 18px 44px rgba(0,0,0,.36), 0 3px 8px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.6), inset 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(255,255,255,.13);
  backdrop-filter: blur(32px) saturate(.65);
  -webkit-backdrop-filter: blur(32px) saturate(.65);
  transform: translateX(-50%);
  isolation: isolate;
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  flex: 0 0 58px;
  width: 58px;
  height: 90px;
  min-height: 44px;
  gap: 4px;
  padding: 24px 0 0;
  margin-top: -24px;
  border-radius: 15px;
  background: transparent;
  color: #f8f8f5;
  cursor: pointer;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.dock-glyph {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 15px;
  background: linear-gradient(145deg, #fafaf8 2%, #cececa 60%, #b3b3af);
  color: #242423;
  box-shadow: 0 4px 8px rgba(0,0,0,.24), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.08);
  transform: translateY(calc(var(--dock-lift, 0) * -1px)) scale(var(--dock-scale, 1));
  transform-origin: 50% 100%;
  transition: transform .34s var(--spring), box-shadow .25s ease, filter .25s ease;
  pointer-events: none;
}

.dock-glyph::after { position: absolute; inset: 1px; border-radius: 13px; background: linear-gradient(135deg, rgba(255,255,255,.42), transparent 50%); pointer-events: none; content: ""; }
.dock-item .icon { position: relative; z-index: 1; width: 23px; height: 23px; }
.dock-item:nth-child(2) .dock-glyph { background: linear-gradient(145deg, #dadad7, #999995); }
.dock-item[data-window="projects"] .dock-glyph,
.dock-preview .dock-glyph { border-color: rgba(255,255,255,.34); background: linear-gradient(145deg, #565655, #171717); color: #f8f8f5; }
.dock-item[data-action="toggle-motion"] .dock-glyph { background: linear-gradient(145deg, #fff, #e3e3df); }
.owner-only .dock-glyph { background: linear-gradient(145deg, #c7c7c4, #92928e); }
.dock-label { position: relative; z-index: 1; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.dock-indicator { position: absolute; bottom: 0; width: 4px; height: 3px; border-radius: 4px; background: rgba(255,255,255,.5); opacity: 0; transition: width .2s ease, opacity .2s ease; pointer-events: none; }
.dock-item[data-running="true"] .dock-indicator { opacity: 1; }
.dock-item[data-active="true"] .dock-indicator { width: 10px; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.4); }
.dock-item[data-active="true"] .dock-glyph { box-shadow: 0 4px 10px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.6), inset 0 1px 0 rgba(255,255,255,.85); }
.dock-item:active .dock-glyph { filter: brightness(.87); }
.dock-tooltip { position: absolute; z-index: 4; bottom: calc(100% + 4px); left: 50%; padding: 8px 11px; border: 1px solid rgba(255,255,255,.7); border-radius: 10px; background: rgba(250,250,247,.97); color: #242423; box-shadow: 0 5px 18px rgba(0,0,0,.2), inset 0 1px 0 #fff; font-size: 11px; font-weight: 550; line-height: 1.3; white-space: nowrap; opacity: 0; transform: translate(-50%, 5px); transition: opacity .16s ease, transform .24s var(--spring); pointer-events: none; }
.dock-item:focus-visible .dock-tooltip { opacity: 1; transform: translate(-50%, 0); }
.dock-item:focus-visible .dock-glyph { transform: translateY(-7px) scale(1.16); }

@media (hover: hover) and (pointer: fine) {
  .dock-item:hover .dock-tooltip { opacity: 1; transform: translate(-50%, 0); }
  .dock-item:hover .dock-glyph { filter: brightness(1.07); }
}

body.is-still .dock-glyph,
body.is-still .project-folder { transform: none !important; }

.about-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .47);
  border-radius: 22px;
  background: var(--glass);
  color: #212120;
  box-shadow: 0 28px 75px rgba(0, 0, 0, .48);
  backdrop-filter: blur(28px) saturate(.65);
  -webkit-backdrop-filter: blur(28px) saturate(.65);
}

.about-dialog::backdrop { background: rgba(0, 0, 0, .52); }
.about-dialog h2 { max-width: 15ch; }
.about-dialog p { max-width: 45ch; }

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 50%;
  background: #d5d5d0;
  color: #282826;
  cursor: pointer;
}

.dialog-close:hover { background: #fff; }
.dialog-close .icon { width: 15px; height: 15px; }

@keyframes settle {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}

body.is-still *,
body.is-still *::before,
body.is-still *::after {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 1100px), (max-height: 850px) {
  #desktop {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
    grid-template-areas: "home projects" "clock projects" "note projects";
    align-items: start;
    gap: 20px;
    padding: 58px 24px 24px;
  }

  .window,
  .construction-window,
  .clock-window,
  .projects-window,
  .note-window {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    min-height: auto;
    animation: none;
  }

  .construction-window { grid-area: home; }
  .clock-window { grid-area: clock; }
  .projects-window { grid-area: projects; }
  .note-window { grid-area: note; }
  .construction-body { min-height: 310px; }
  .projects-window { height: auto; min-height: 560px; }
  .note-body { min-height: 160px; }
  .window.is-hidden,
  .window.is-minimized { display: none; }
  .window.is-expanded { position: fixed; }
  .titlebar { cursor: default; touch-action: auto; }
  .titlebar:active { cursor: default; }
  .dock {
    position: relative;
    bottom: auto;
    left: auto;
    width: max-content;
    margin: 0 auto 14px;
    transform: none;
  }
}

@media (max-width: 990px) {
  .construction-window,
  .note-window,
  .clock-window,
  .projects-window { width: 100%; }

  .menu-actions { gap: 12px; }
}

@media (max-width: 760px) {
  body { background: #262626; }

  .masthead { padding: 0 12px; }
  .brand { margin-right: 10px; }
  .menu-actions { display: flex; gap: 10px; }
  .menu-actions a { display: none; }
  .menu-actions button,
  .motion-toggle { font-size: 11px; }
  .status { display: none; }
  .meta { gap: 7px; margin-left: 12px; }

  #desktop {
    display: grid;
    min-height: 100svh;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "home" "projects" "clock" "note";
    padding: 50px 12px 16px;
  }

  .window,
  .construction-window,
  .clock-window,
  .projects-window,
  .note-window {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    min-height: auto;
    animation: none;
  }

  .window.is-hidden,
  .window.is-minimized { display: none; }

  .window.is-expanded {
    position: fixed;
    z-index: 90 !important;
    top: 46px !important;
    right: 10px !important;
    bottom: 92px !important;
    left: 10px !important;
    width: auto !important;
    height: auto !important;
    overflow: auto;
  }

  .titlebar { cursor: default; }
  .titlebar:active { cursor: default; }
  .traffic-control .icon { opacity: 1; }

  .construction-body,
  .finder-main,
  .note-body { min-height: auto; }

  .construction-body { min-height: 310px; }
  .projects-window { height: auto; min-height: 560px; }
  .note-body { min-height: 160px; }

  .clock-window { min-height: 207px; }
  .clock-body { padding-top: 28px; }

  .finder-toolbar { flex-direction: column; align-items: stretch; padding: 11px 12px; gap: 10px; }
  .finder-path { font-size: 10px; }
  .finder-search { width: 100%; padding: 9px; }
  .finder-search input { font-size: 16px; }
  .finder-body { display: flex; flex-direction: column; }
  .finder-sidebar { flex-direction: row; gap: 4px; padding: 9px; border-right: 0; border-bottom: 1px solid #d2d2ce; }
  .finder-sidebar-label { display: none; }
  .finder-sidebar button { justify-content: center; gap: 5px; padding: 7px; font-size: 10px; flex: 1; }
  .finder-sidebar .icon { width: 14px; height: 14px; }
  .finder-main { padding: 18px; overflow: visible; }
  .projects-window { min-height: 0; }
  .project-item { padding: 9px 4px; }
  .project-folder { width: 70px; height: 58px; }
  .project-detail-heading { gap: 4px; }
  .project-detail .eyebrow { font-size: 8px; }

  .note-body {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .dock {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    gap: 2px;
    width: min(420px, calc(100% - 16px));
    margin: 0 auto 12px;
    padding: 8px 6px;
    transform: none;
  }

  .dock-item {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 62px;
    padding: 0;
    margin-top: 0;
    font-size: 8px;
  }

  .dock-glyph { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; }
  .dock-glyph::after { border-radius: 12px; }
  .dock-item .icon { width: 21px; height: 21px; }
  .dock-item:first-child .dock-tooltip { left: 0; transform: none; }
  .dock-item:last-child .dock-tooltip { left: auto; right: 0; transform: none; }
}

@media (max-width: 360px) {
  .brand { margin-right: 7px; }
  .menu-actions { gap: 8px; }
  .motion-toggle { font-size: 11px; }
  #home-clock { min-width: 53px; font-size: 11px; }
  .window-body { padding: 19px; }
  h1 { font-size: 36px; }
  .construction-footer { align-items: flex-start; flex-direction: column; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .window, .projects-window, .note-window, .about-dialog { background: #e9e9e5; }
  .dock { background: #353535; }
  .masthead { background: #eeeeeb; }
}

@media (prefers-reduced-transparency: reduce) {
  .window, .projects-window, .note-window, .about-dialog { background: #e9e9e5; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dock { background: #353535; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .masthead { background: #eeeeeb; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dock-glyph,
  .project-folder { transform: none !important; }
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Desktop controls remain usable with motion or transparency disabled. */
.settings-dialog { width: min(530px, calc(100vw - 28px)); max-height: calc(100svh - 32px); overflow: auto; }
.settings-dialog h2 { max-width: none; font-size: 30px; }
.settings-intro { margin: 9px 0 22px; font-size: 13px; line-height: 1.6; color: #50504d; }
.settings-group { overflow: hidden; border: 1px solid #00000015; border-radius: 15px; background: #ffffff30; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; }
.setting-row + .setting-row { border-top: 1px solid #00000012; }
.setting-row strong { display: block; font-size: 12px; }
.setting-row small { display: block; margin-top: 4px; color: #555550; font-size: 11px; line-height: 1.4; }
.setting-row input { appearance: none; flex: 0 0 38px; width: 38px; height: 24px; border: 1px solid #0002; border-radius: 14px; background: #aaa; cursor: pointer; transition: background .2s; }
.setting-row input::after { content: ''; display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0003; transition: transform .2s var(--spring); }
.setting-row input:checked { background: #54765c; }
.setting-row input:checked::after { transform: translateX(14px); }
.setting-row input:disabled { opacity: .55; cursor: default; }
.setting-row select { max-width: 120px; padding: 8px; border: 1px solid #0003; border-radius: 8px; background: #f4f4f0; color: #222; font: inherit; font-size: 12px; }
.settings-windows { margin-top: 24px; }
.settings-window-actions, .settings-footer { display: flex; gap: 9px; flex-wrap: wrap; }
.settings-footer { align-items: center; justify-content: space-between; margin-top: 25px; }
body.is-solid .window, body.is-solid .about-dialog { background: #e9e9e5; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.is-solid .dock { background: #353535; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.is-solid .masthead { background: #eeeeeb; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.dock-still .dock-glyph { transform: none !important; }
.dock-item[data-action="show-settings"] .dock-glyph { background: linear-gradient(145deg, #fff, #c8c8c4); }
.window-resize { position: absolute; right: 2px; bottom: 2px; z-index: 4; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; cursor: nwse-resize; touch-action: none; }
.window-resize::after { content: ''; position: absolute; right: 7px; bottom: 7px; width: 8px; height: 8px; border-right: 2px solid #5557; border-bottom: 2px solid #5557; border-radius: 0 0 2px; }
.window.is-expanded .window-resize { display: none; }
.window.is-resized { min-height: 0; }
.window.is-resized > .window-body { min-height: 0; max-height: calc(100% - 39px); overflow: auto; }
.window.is-expanded { min-height: 0; }
@media (min-width: 1101px) and (min-height: 851px) {
  .window.is-minimized { transform: translate(var(--minimize-x, 0px), var(--minimize-y, 40px)) scale(.08); }
}
@media (max-width: 1100px), (max-height: 850px) { .window-resize { display: none; } }
@media (max-width: 480px) {
  .settings-dialog { padding: 23px 18px; }
  .setting-row { gap: 10px; padding: 12px; }
  .setting-row select { font-size: 16px; }
  .settings-footer .quiet-button { font-size: 11px; }
}
@media (min-width: 1101px) and (min-height: 851px) {
  .clock-window:not(.is-expanded):not(.is-resized), .note-window:not(.is-expanded):not(.is-resized) { height: 218px; min-height: 0; }
  .clock-body, .note-body { min-height: 0; max-height: calc(100% - 39px); overflow: auto; }
  .clock-body { padding: 20px; }
}
