:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --paper-bright: #fffefa;
  --ink: #101114;
  --ink-soft: #4b4d52;
  --line: rgba(16, 17, 20, 0.16);
  --cobalt: #125bd8;
  --cobalt-dark: #073a9c;
  --orange: #ff603d;
  --lime: #c7f432;
  --mist: #dce8f1;
  --shadow: 0 24px 80px rgba(32, 27, 20, 0.24), 0 2px 12px rgba(32, 27, 20, 0.14);
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #ebe7df;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--system);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  margin: -1px;
  white-space: nowrap;
}

.desktop-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #eeeae3;
}

.desktop-wallpaper {
  position: absolute;
  z-index: -3;
  inset: -1.5%;
  width: 103%;
  height: 103%;
  max-width: none;
  object-fit: cover;
  object-position: center 44%;
  filter: blur(2.4px) saturate(0.9) contrast(0.98) brightness(1.025);
  transform: scale(1.01);
  transition: opacity 180ms ease;
}

.desktop-wallpaper.is-switching {
  opacity: 0.35;
}

.wallpaper-wash {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 32%, transparent 70%, rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 27%, rgba(16, 17, 20, 0.04));
}

.wallpaper-wash::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.2;
  background-image:
    repeating-linear-gradient(0deg, rgba(16, 17, 20, 0.06) 0 0.5px, transparent 0.5px 3px),
    repeating-radial-gradient(circle at 0 0, rgba(20, 18, 14, 0.16) 0 0.45px, transparent 0.65px 3px);
  background-size: 100% 3px, 3px 3px;
  mix-blend-mode: multiply;
}

.menu-bar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(250, 249, 246, 0.67);
  box-shadow: 0 1px 8px rgba(32, 28, 20, 0.07);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  font-size: 13px;
}

.menu-identity,
.menu-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-app-menu {
  position: relative;
}

.menu-trigger {
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: default;
  font-size: 13px;
  font-weight: 560;
}

.menu-trigger:hover,
.menu-trigger:focus-visible,
.menu-trigger[aria-expanded="true"] {
  background: rgba(16, 17, 20, 0.1);
  outline: 0;
}

.view-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 7px);
  left: -7px;
  width: 190px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  background: rgba(246, 245, 242, 0.94);
  box-shadow: 0 15px 42px rgba(26, 24, 21, 0.24), 0 2px 8px rgba(26, 24, 21, 0.12);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
}

.view-menu[hidden],
.wallpaper-picker[hidden] {
  display: none;
}

.view-menu button {
  display: flex;
  width: 100%;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: default;
  font-size: 13px;
  text-align: left;
}

.view-menu button:hover,
.view-menu button:focus-visible {
  background: var(--cobalt);
  color: white;
  outline: 0;
}

.menu-divider {
  display: block;
  height: 1px;
  margin: 5px 4px;
  background: rgba(16, 17, 20, 0.13);
}

.identity-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font: 700 10px/1 var(--mono);
  letter-spacing: -0.03em;
}

.menu-role {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: #54565a;
}

.menu-status {
  font-family: var(--mono);
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(199, 244, 50, 0.2);
}

.wallpaper-picker {
  position: fixed;
  z-index: 60;
  top: 50px;
  left: 142px;
  width: min(570px, calc(100vw - 32px));
  max-height: calc(100dvh - 68px);
  padding: 17px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  background: rgba(244, 243, 239, 0.94);
  box-shadow: 0 28px 90px rgba(24, 22, 19, 0.28), 0 2px 12px rgba(24, 22, 19, 0.12);
  backdrop-filter: blur(36px) saturate(1.15);
  -webkit-backdrop-filter: blur(36px) saturate(1.15);
}

.wallpaper-picker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.wallpaper-picker-heading p {
  margin: 1px 0 4px;
  color: #6a6c70;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wallpaper-picker-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.wallpaper-picker-heading button {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  padding: 0 0 2px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 17, 20, 0.1);
  color: #4d4f53;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.wallpaper-picker-heading button:hover,
.wallpaper-picker-heading button:focus-visible {
  background: var(--ink);
  color: white;
  outline: 0;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wallpaper-option {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: 86px minmax(0, 1fr) 18px;
  gap: 9px;
  padding: 7px;
  border: 1px solid rgba(16, 17, 20, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  text-align: left;
}

.wallpaper-option:hover,
.wallpaper-option:focus-visible {
  border-color: rgba(18, 91, 216, 0.5);
  background: rgba(255, 255, 255, 0.86);
  outline: 0;
}

.wallpaper-option.is-selected {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 2px rgba(18, 91, 216, 0.12);
}

.wallpaper-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(16, 17, 20, 0.17);
  border-radius: 6px;
  background: #d7d4ce;
  box-shadow: 0 3px 8px rgba(16, 17, 20, 0.12);
}

.wallpaper-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallpaper-option > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.wallpaper-option strong,
.wallpaper-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallpaper-option strong {
  font-size: 12px;
}

.wallpaper-option small {
  color: #6a6c70;
  font: 600 9px/1 var(--mono);
}

.wallpaper-check {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 10px;
}

.wallpaper-option.is-selected .wallpaper-check {
  background: var(--cobalt);
  color: white;
}

.wallpaper-picker-note {
  margin: 12px 2px 0;
  color: #6a6c70;
  font: 600 9px/1.3 var(--mono);
}

.desktop-content {
  position: absolute;
  inset: 42px 0 0;
}

.identity-widget {
  position: absolute;
  z-index: 12;
  bottom: 112px;
  left: 24px;
  width: min(390px, calc(100vw - 48px));
  padding: 18px 19px 17px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 17px;
  background: rgba(250, 249, 246, 0.79);
  box-shadow: 0 10px 38px rgba(41, 36, 29, 0.13);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.widget-minimize {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid rgba(123, 82, 0, 0.22);
  border-radius: 50%;
  background: #ffbd2e;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 2px 5px rgba(16, 17, 20, 0.12);
  color: #6c4700;
  cursor: pointer;
  font: 800 14px/1 var(--system);
}

.widget-minimize:hover,
.widget-minimize:focus-visible {
  outline: 3px solid rgba(16, 17, 20, 0.22);
  outline-offset: 2px;
}

.widget-minimized-label {
  display: none;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.identity-widget.is-minimized {
  display: flex;
  width: auto;
  max-width: calc(100vw - 48px);
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 9px;
  border-radius: 13px;
}

.identity-widget.is-minimized > :not(.widget-minimize):not(.widget-minimized-label) {
  display: none;
}

.identity-widget.is-minimized .widget-minimize {
  position: static;
  flex: 0 0 auto;
}

.identity-widget.is-minimized .widget-minimized-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-kicker,
.content-heading > p,
.content-heading > div > p,
.case-header p:first-child {
  margin: 0 0 9px;
  color: #55575b;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-widget h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 47px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.identity-widget > p:not(.widget-kicker) {
  max-width: 34em;
  margin: 13px 0 14px;
  color: #303237;
  font-size: 13px;
  line-height: 1.45;
}

.widget-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 13px;
}

.widget-meta span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  font: 600 9px/1.1 var(--mono);
}

.identity-widget > a,
.notes-preview a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-grid {
  position: absolute;
  z-index: 5;
  inset: 0 0 90px;
}

.desktop-item {
  position: absolute;
  display: flex;
  width: 118px;
  min-height: 100px;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  padding: 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  user-select: none;
}

.desktop-item:hover,
.desktop-item:focus-visible {
  background: rgba(255, 255, 255, 0.34);
  outline: 0;
}

@media (min-width: 821px) {
  .desktop-grid > [data-desktop-item] {
    cursor: grab;
    touch-action: none;
    transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0);
    will-change: transform;
  }

  .desktop-grid > [data-desktop-item].is-dragging {
    z-index: 20;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 28px rgba(16, 17, 20, 0.16);
    cursor: grabbing;
  }
}

.desktop-label {
  max-width: 118px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 6px;
  background: rgba(253, 252, 248, 0.78);
  box-shadow: 0 1px 3px rgba(23, 20, 16, 0.11);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}

.folder-icon {
  --folder: var(--cobalt);
  position: relative;
  display: block;
  width: 78px;
  height: 58px;
  margin-top: 7px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px 9px 10px 10px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--folder), white 22%), var(--folder));
  box-shadow: 0 8px 16px rgba(19, 35, 72, 0.17), inset 0 1px rgba(255, 255, 255, 0.38);
}

.folder-icon::before {
  position: absolute;
  top: -9px;
  left: 5px;
  width: 31px;
  height: 13px;
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: color-mix(in srgb, var(--folder), white 19%);
  content: "";
}

.folder-icon::after {
  position: absolute;
  inset: 7px 7px auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
  content: "";
}

.folder-icon i {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: rgba(255, 255, 255, 0.88);
  font: 800 10px/1 var(--mono);
  font-style: normal;
}

.folder-blue { --folder: #1764dd; }
.folder-orange { --folder: var(--orange); }
.folder-paper { --folder: #e9e5dc; }
.folder-paper i { color: var(--ink); }
.folder-black { --folder: #111216; }
.folder-lime { --folder: #92c900; }
.folder-lime i { color: #152000; }

.file-icon {
  position: relative;
  display: grid;
  width: 59px;
  height: 74px;
  place-items: end center;
  padding-bottom: 13px;
  overflow: hidden;
  border: 1px solid rgba(16, 17, 20, 0.17);
  border-radius: 5px 13px 5px 5px;
  background: var(--paper-bright);
  box-shadow: 0 8px 16px rgba(28, 24, 18, 0.14);
}

.file-icon::before {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 18px;
  height: 18px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #e8e5de;
  content: "";
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.file-icon i {
  display: grid;
  width: 100%;
  min-height: 22px;
  place-items: center;
  background: var(--orange);
  color: white;
  font: 800 10px/1 var(--mono);
  font-style: normal;
}

.file-link i {
  background: var(--cobalt);
  font-size: 18px;
}

.image-file {
  display: grid;
  width: 82px;
  height: 63px;
  place-items: center;
  padding: 9px;
  border: 5px solid white;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 17px rgba(28, 24, 18, 0.16);
}

.image-file img {
  width: 100%;
  height: auto;
}

.item-personal { top: 10%; left: 7%; }
.item-product { top: 6%; left: 28%; }
.item-design { top: 8%; right: 28%; }
.item-fampay { top: 39%; left: 17%; }
.item-floc { top: 34%; right: 15%; }
.item-older { right: 5%; bottom: 7%; }
.item-resume { bottom: 4%; left: 34%; }
.item-blog { right: 31%; bottom: 5%; }
.item-iit { top: 13%; right: 5%; }

.dock {
  position: absolute;
  z-index: 25;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(32, 31, 29, 0.69);
  box-shadow: 0 16px 44px rgba(31, 27, 21, 0.23);
  transform: translateX(-50%);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.dock-app {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 3px 8px rgba(0, 0, 0, 0.24);
  color: white;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.dock-app:hover,
.dock-app:focus-visible {
  z-index: 2;
  outline: 3px solid white;
  outline-offset: 2px;
  filter: brightness(1.08);
  transform: translateY(-7px) scale(1.08);
}

.dock-app span {
  font-size: 19px;
  letter-spacing: -0.06em;
}

.dock-app > img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.dock-app small {
  position: absolute;
  bottom: calc(100% + 13px);
  left: 50%;
  display: none;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(20, 21, 23, 0.86);
  color: white;
  font-size: 10px;
  font-weight: 600;
  transform: translateX(-50%);
  white-space: nowrap;
}

.dock-app:hover small,
.dock-app:focus-visible small {
  display: block;
}

.app-email { background: linear-gradient(145deg, #379bf5, #0961bd); }
.app-linkedin { background: linear-gradient(145deg, #2387c9, #075681); }
.app-github { background: linear-gradient(145deg, #47494f, #111216); }
.app-threads { background: linear-gradient(145deg, #343434, #080808); }
.app-dribbble { background: linear-gradient(145deg, #ef75a7, #b83871); }
.app-ask { background: linear-gradient(145deg, #ff704d, #cb3217); }
.app-ask span { font-size: 14px; letter-spacing: -0.08em; }
.app-notes { overflow: hidden; background: #fffef8; color: var(--ink); }
.app-notes > img { width: 48px; height: 48px; }

.portfolio-window {
  width: min(1120px, calc(100vw - 52px));
  height: min(760px, calc(100dvh - 90px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.portfolio-window::backdrop {
  background: rgba(62, 58, 50, 0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.portfolio-window[open] {
  animation: window-in 180ms cubic-bezier(0.16, 0.8, 0.2, 1);
}

@keyframes window-in {
  from { opacity: 0; transform: translateY(16px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.window-frame {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: inherit;
  background: var(--paper);
}

.window-titlebar {
  position: relative;
  display: grid;
  min-height: 48px;
  flex: 0 0 48px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.94);
}

.window-controls {
  display: flex;
  gap: 8px;
  justify-self: start;
}

.window-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
}

button.window-dot {
  cursor: pointer;
}

.close-dot { background: #ff6258; }
.minimize-dot { background: #ffbd2e; }
.zoom-dot { background: #28c840; }

.window-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

.window-heading h2 {
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tiny-folder {
  position: relative;
  width: 18px;
  height: 14px;
  border-radius: 2px;
  background: var(--cobalt);
}

.tiny-folder::before {
  position: absolute;
  top: -3px;
  left: 1px;
  width: 7px;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: #4d86e7;
  content: "";
}

.quicklook-mark {
  color: var(--cobalt);
  font-size: 14px;
}

.window-kind {
  color: #74767a;
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  justify-self: end;
}

.folder-layout {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 190px minmax(0, 1fr);
}

.window-sidebar {
  padding: 18px 11px;
  border-right: 1px solid var(--line);
  background: #e8e7e3;
}

.window-sidebar p {
  margin: 13px 9px 7px;
  color: #74767a;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.window-sidebar p:first-child {
  margin-top: 0;
}

.window-sidebar button {
  display: flex;
  width: 100%;
  min-height: 35px;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.window-sidebar button span {
  color: var(--cobalt);
  font-size: 8px;
}

.window-sidebar button:hover,
.window-sidebar button:focus-visible,
.window-sidebar button.is-active {
  outline: 0;
  background: rgba(18, 91, 216, 0.13);
}

.window-content,
.preview-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--paper);
}

.window-content {
  padding: clamp(28px, 5vw, 64px);
}

.window-content:focus-visible,
.preview-content:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: -3px;
}

.window-statusbar {
  display: flex;
  min-height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 204px;
  border-top: 1px solid var(--line);
  background: #efede8;
  color: #77797d;
  font: 600 9px/1 var(--mono);
}

.content-heading {
  max-width: 830px;
  margin-bottom: 34px;
}

.content-heading h2,
.case-header h2 {
  max-width: 13em;
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.content-lede,
.case-header p:last-child {
  max-width: 39em;
  margin: 18px 0 0;
  color: #414348;
  font-size: 15px;
  line-height: 1.55;
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  gap: 42px;
  align-items: end;
}

.split-heading .content-lede {
  margin: 0;
}

.note-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.note-grid article,
.metric-grid article {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.25);
}

.note-grid small,
.metric-grid span,
.decision-strip small,
.case-copy small {
  color: #626469;
  font: 700 9px/1.25 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note-grid strong {
  max-width: 15em;
  font-size: 15px;
  line-height: 1.3;
}

.personal-row {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.artifact-card {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-bright);
  cursor: pointer;
  text-align: left;
}

.artifact-card:hover,
.artifact-card:focus-visible,
.chapter-card:hover,
.chapter-card:focus-visible {
  border-color: var(--cobalt);
  outline: 3px solid rgba(18, 91, 216, 0.16);
}

.artifact-card img {
  width: 130px;
  height: auto;
}

.artifact-card > span:last-child {
  display: grid;
  gap: 4px;
}

.artifact-card small {
  color: #6a6c70;
  font: 600 9px/1 var(--mono);
  text-transform: uppercase;
}

.artifact-pdf {
  display: grid;
  width: 50px;
  height: 60px;
  place-items: end center;
  padding-bottom: 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, white 0 62%, var(--orange) 62%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  color: white;
  font: 800 9px/1 var(--mono);
}

.content-note {
  max-width: 62em;
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  background: rgba(255, 255, 255, 0.42);
  color: #35373b;
  font-size: 14px;
  line-height: 1.6;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chapter-card {
  display: grid;
  min-height: 235px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  cursor: pointer;
  grid-template-rows: auto auto 1fr auto;
  text-align: left;
}

.chapter-fam {
  background: #121317;
  color: white;
}

.chapter-floc {
  background: var(--lime);
  color: #172000;
}

.chapter-index {
  justify-self: end;
  font: 700 11px/1 var(--mono);
}

.chapter-card small {
  margin: 20px 0 8px;
  font: 700 10px/1.2 var(--mono);
  text-transform: uppercase;
}

.chapter-card strong {
  max-width: 16em;
  font-size: clamp(21px, 2.5vw, 31px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.chapter-card > span:last-child {
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
}

.experiment-list {
  margin-top: 30px;
  border-top: 1px solid var(--ink);
}

.experiment-list article {
  display: grid;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 150px minmax(150px, 0.55fr) 1fr;
  gap: 16px;
}

.experiment-list span {
  color: #64666a;
  font: 700 9px/1.4 var(--mono);
}

.experiment-list h3,
.experiment-list p {
  margin: 0;
}

.experiment-list h3 {
  font-size: 18px;
}

.experiment-list p {
  color: #414348;
  font-size: 13px;
  line-height: 1.5;
}

.decision-strip,
.case-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.decision-strip article,
.case-copy article {
  display: grid;
  min-height: 150px;
  align-content: space-between;
  gap: 20px;
  padding: 18px;
  background: var(--paper-bright);
}

.decision-strip strong {
  max-width: 17em;
  font-size: 17px;
  line-height: 1.28;
}

.case-header {
  display: grid;
  margin-bottom: 38px;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 27px;
  align-items: start;
}

.case-mark {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  padding: 24px;
  border-radius: 20px;
  background: #111216;
}

.case-mark img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.case-floc .case-mark {
  background: var(--lime);
}

.case-floc .case-mark img {
  border-radius: 16px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid article {
  min-height: 150px;
}

.metric-grid strong {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-grid span {
  max-width: 19em;
  color: #484a4e;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.metric-floc {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.case-copy {
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-copy h3,
.case-copy p {
  margin: 0;
}

.case-copy h3 {
  max-width: 19em;
  font-size: 20px;
  line-height: 1.15;
}

.case-copy p {
  color: #484a4e;
  font-size: 13px;
  line-height: 1.55;
}

.screen-gallery {
  display: flex;
  gap: 18px;
  margin: 36px calc(clamp(28px, 5vw, 64px) * -1) 0;
  padding: 0 clamp(28px, 5vw, 64px) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.screen-gallery figure {
  flex: 0 0 min(245px, 36vw);
  margin: 0;
  scroll-snap-align: start;
}

.screen-gallery img {
  display: block;
  width: 100%;
  height: 445px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  background: #121317;
  box-shadow: 0 16px 30px rgba(19, 17, 14, 0.16);
  object-fit: cover;
  object-position: top;
}

.screen-gallery figcaption {
  padding-top: 10px;
  color: #505256;
  font: 700 9px/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-gallery img {
  height: 380px;
}

.history-marks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.history-marks article {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-bright);
}

.history-marks img {
  width: 70px;
  max-height: 58px;
  object-fit: contain;
}

.history-marks .wide-mark {
  width: 130px;
  max-width: 100%;
}

.history-marks .mark-dark {
  background: #101114;
}

.word-mark {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.word-mark sup {
  font-size: 8px;
}

.preview-window {
  width: min(940px, calc(100vw - 52px));
  height: min(700px, calc(100dvh - 90px));
}

.preview-content {
  flex: 1;
}

.pdf-preview {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
}

.pdf-preview object {
  width: 100%;
  height: 100%;
  border: 0;
  background: #cbc9c3;
}

.preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper-bright);
}

.preview-actions div,
.image-preview > div:last-child {
  display: grid;
  gap: 4px;
}

.preview-actions small,
.image-preview small {
  color: #707277;
  font: 600 9px/1 var(--mono);
  text-transform: uppercase;
}

.preview-actions a {
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--cobalt);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.empty-preview,
.notes-preview {
  display: flex;
  min-height: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 23px;
  background: var(--cobalt);
  box-shadow: 0 13px 27px rgba(18, 91, 216, 0.22);
  color: white;
  font-size: 34px;
  font-weight: 800;
}

.thread-icon {
  background: var(--ink);
  font-size: 24px;
}

.github-icon {
  background: var(--ink);
  font: 800 22px/1 var(--mono);
}

.empty-preview > p:first-of-type,
.notes-preview > p:first-child {
  margin: 0 0 8px;
  color: #73757a;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-preview h2,
.notes-preview h2 {
  max-width: 13em;
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.empty-preview h2 + p,
.notes-preview h2 + p {
  max-width: 37em;
  margin: 18px 0;
  color: #4b4d52;
  line-height: 1.6;
}

.pending-badge {
  padding: 7px 9px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  background: #fff9d9;
  font: 700 9px/1 var(--mono);
  text-transform: uppercase;
}

.notes-preview {
  align-items: flex-start;
  justify-content: flex-start;
  background: repeating-linear-gradient(180deg, #fffdf4 0 41px, #e9e3cb 42px);
  text-align: left;
}

.notes-preview h2 {
  max-width: 10em;
  margin-top: 52px;
}

.notes-preview h2 + p {
  max-width: 32em;
  font-size: 17px;
}

.notes-preview small {
  margin-top: auto;
  color: #65676b;
  font: 600 10px/1 var(--mono);
}

.ask-preview {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  background: #f4f2ed;
}

.ask-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
}

.assistant-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--orange);
  color: white;
  font: 800 12px/1 var(--mono);
  box-shadow: 0 7px 16px rgba(255, 96, 61, 0.2);
}

.ask-heading p,
.ask-heading h2 {
  margin: 0;
}

.ask-heading > div > p:first-child {
  margin-bottom: 4px;
  color: #6b6d72;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ask-heading h2 {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.ask-heading h2 + p {
  margin-top: 7px;
  color: #56585d;
  font-size: 12px;
  line-height: 1.4;
}

.chat-suggestions {
  display: flex;
  gap: 6px;
  padding: 12px 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.chat-suggestions button {
  min-height: 31px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-bright);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.chat-suggestions button:hover,
.chat-suggestions button:focus-visible {
  border-color: var(--cobalt);
  color: var(--cobalt-dark);
  outline: 0;
}

.chat-transcript {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  max-width: min(72%, 560px);
  align-items: flex-start;
  gap: 8px;
}

.chat-message > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--orange);
  color: white;
  font: 800 9px/1 var(--mono);
}

.chat-message p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px 13px 13px 13px;
  background: var(--paper-bright);
  box-shadow: 0 3px 10px rgba(16, 17, 20, 0.05);
  font-size: 13px;
  line-height: 1.5;
}

.chat-message.is-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.is-user > span {
  background: var(--cobalt);
}

.chat-message.is-user p {
  border-color: var(--cobalt);
  border-radius: 13px 4px 13px 13px;
  background: var(--cobalt);
  color: white;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper-bright);
}

.chat-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(16, 17, 20, 0.22);
  border-radius: 10px;
  background: white;
  font-size: 13px;
}

.chat-form input:focus-visible {
  border-color: var(--cobalt);
  outline: 3px solid rgba(18, 91, 216, 0.17);
}

.chat-form button {
  min-width: 66px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.chat-form button:hover,
.chat-form button:focus-visible {
  background: var(--cobalt);
  outline: 0;
}

.chat-disclaimer {
  margin: 0;
  padding: 0 24px 13px;
  background: var(--paper-bright);
  color: #717378;
  font: 600 9px/1.35 var(--mono);
}

.image-preview {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
}

.image-stage {
  display: grid;
  place-items: center;
  padding: 60px;
  background: #dedcd7;
  background-image: linear-gradient(45deg, #d1cfc9 25%, transparent 25%), linear-gradient(-45deg, #d1cfc9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #d1cfc9 75%), linear-gradient(-45deg, transparent 75%, #d1cfc9 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.image-stage img {
  width: min(620px, 80%);
  padding: 55px;
  background: white;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.image-preview > div:last-child {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper-bright);
}

.noscript-content {
  position: fixed;
  z-index: 100;
  inset: 42px 0 0;
  padding: 40px;
  overflow: auto;
  background: var(--paper);
}

@media (max-width: 1080px) {
  .item-product { left: 24%; }
  .item-design { right: 23%; }
  .item-fampay { left: 13%; }
  .item-floc { right: 11%; }
  .item-resume { left: 42%; }
  .identity-widget { width: 350px; }
  .metric-floc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .desktop-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .desktop-wallpaper {
    position: fixed;
    inset: -2%;
    width: 104%;
    height: 104%;
    object-position: 50% 30%;
    filter: blur(2.8px) saturate(0.86) contrast(0.98) brightness(1.045);
  }

  .wallpaper-wash {
    position: fixed;
  }

  .menu-bar {
    position: sticky;
    top: 0;
  }

  .menu-role,
  .menu-status > span:not(.status-dot) {
    display: none;
  }

  .wallpaper-picker {
    top: 49px;
    left: 12px;
    width: calc(100vw - 24px);
  }

  .desktop-content {
    position: relative;
    inset: auto;
    display: flex;
    min-height: calc(100dvh - 42px);
    flex-direction: column;
    padding: 18px 14px 118px;
  }

  .identity-widget {
    position: relative;
    inset: auto;
    width: min(100%, 520px);
    margin: 0 0 26px;
  }

  .identity-widget.is-minimized {
    width: max-content;
    max-width: 100%;
  }

  .identity-widget h1 {
    font-size: clamp(34px, 9vw, 52px);
  }

  .desktop-grid {
    position: relative;
    inset: auto;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 4px;
  }

  .desktop-item,
  .item-personal,
  .item-product,
  .item-design,
  .item-fampay,
  .item-floc,
  .item-older,
  .item-resume,
  .item-blog,
  .item-iit {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 108px;
  }

  .dock {
    position: fixed;
    width: max-content;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
  }

  .portfolio-window,
  .preview-window {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .window-titlebar {
    min-height: 52px;
    flex-basis: 52px;
  }

  .folder-layout {
    display: block;
    overflow: auto;
  }

  .window-sidebar {
    position: sticky;
    z-index: 5;
    top: 0;
    display: flex;
    gap: 4px;
    padding: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .window-sidebar p,
  .window-sidebar button span {
    display: none;
  }

  .window-sidebar button {
    width: auto;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
  }

  .window-content {
    overflow: visible;
    padding: 28px 20px 48px;
  }

  .window-statusbar {
    padding-left: 14px;
  }

  .split-heading,
  .case-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .split-heading .content-lede {
    margin: 0;
  }

  .note-grid,
  .metric-grid,
  .metric-floc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-grid,
  .personal-row,
  .case-copy {
    grid-template-columns: 1fr;
  }

  .experiment-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .decision-strip {
    grid-template-columns: 1fr;
  }

  .decision-strip article {
    min-height: 112px;
  }

  .screen-gallery {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .screen-gallery figure {
    flex-basis: min(235px, 67vw);
  }

  .history-marks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .menu-bar {
    padding: 0 10px;
  }

  .menu-identity {
    gap: 8px;
  }

  .menu-trigger {
    padding: 0 6px;
  }

  .wallpaper-picker {
    left: 8px;
    width: calc(100vw - 16px);
    padding: 14px;
  }

  .wallpaper-grid {
    grid-template-columns: 1fr;
  }

  .desktop-content {
    padding-right: 9px;
    padding-left: 9px;
  }

  .identity-widget {
    padding: 16px;
  }

  .desktop-grid {
    gap: 10px 0;
  }

  .desktop-label {
    max-width: 104px;
    font-size: 10px;
  }

  .folder-icon {
    width: 68px;
    height: 52px;
  }

  .dock-app {
    width: 50px;
    height: 50px;
  }

  .window-kind,
  .window-statusbar span:last-child {
    display: none;
  }

  .window-titlebar {
    grid-template-columns: 1fr auto 1fr;
  }

  .content-heading h2,
  .case-header h2 {
    font-size: 37px;
  }

  .note-grid,
  .metric-grid,
  .metric-floc {
    grid-template-columns: 1fr;
  }

  .note-grid article,
  .metric-grid article {
    min-height: 105px;
  }

  .artifact-card img {
    width: 110px;
  }

  .case-mark {
    width: 92px;
    height: 92px;
  }

  .history-marks article {
    min-height: 105px;
  }

  .empty-preview,
  .notes-preview {
    padding: 30px 22px;
  }

  .ask-heading {
    padding: 18px 16px 14px;
  }

  .ask-heading h2 {
    font-size: 25px;
  }

  .chat-suggestions {
    padding: 10px 16px;
  }

  .chat-transcript {
    padding: 16px;
  }

  .chat-message {
    max-width: 92%;
  }

  .chat-form {
    padding: 10px 16px;
  }

  .chat-disclaimer {
    padding: 0 16px 10px;
  }

  .image-stage {
    padding: 30px 15px;
  }

  .image-stage img {
    width: 94%;
    padding: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dock-app:hover,
  .dock-app:focus-visible {
    transform: none;
  }
}

@media (forced-colors: active) {
  .desktop-label,
  .identity-widget,
  .window-frame,
  .dock-app {
    border: 1px solid CanvasText;
  }

  .folder-icon,
  .file-icon {
    forced-color-adjust: none;
  }
}
