:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: #171821;
  background: #d9dce3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #d9dce3;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

.desktop-shell {
  --accent: #5258d9;
  --accent-strong: #4147c8;
  --ink: #171821;
  --muted: #686b78;
  --subtle: #8d909d;
  --surface: rgba(249, 249, 252, 0.94);
  --surface-solid: #f7f7fa;
  --surface-raised: #ffffff;
  --panel: #eff0f5;
  --panel-hover: #e7e8ef;
  --line: rgba(36, 39, 54, 0.12);
  --line-strong: rgba(36, 39, 54, 0.19);
  --shadow: 0 34px 80px rgba(46, 49, 62, 0.22), 0 12px 28px rgba(41, 43, 55, 0.12);
  --small-shadow: 0 13px 30px rgba(46, 49, 62, 0.16), 0 3px 10px rgba(41, 43, 55, 0.08);
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 14%, rgba(255, 255, 255, 0.8), transparent 28%),
    radial-gradient(circle at 15% 88%, rgba(82, 88, 217, 0.08), transparent 30%),
    linear-gradient(138deg, #d9dce4 0%, #eef0f5 52%, #d3d6de 100%);
}

.desktop-shell::after {
  content: "";
  position: absolute;
  inset: 32px 0 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: url("/assets/reference/design-finder-selected.png");
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
  filter: grayscale(1) blur(22px);
  transform: scale(1.08);
}

.theme-dark {
  --ink: #f3f4f8;
  --muted: #a7aab6;
  --subtle: #858896;
  --surface: rgba(32, 34, 43, 0.96);
  --surface-solid: #20222b;
  --surface-raised: #292b36;
  --panel: #262833;
  --panel-hover: #30323f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --shadow: 0 38px 88px rgba(0, 0, 0, 0.42), 0 12px 30px rgba(0, 0, 0, 0.24);
  --small-shadow: 0 13px 32px rgba(0, 0, 0, 0.34), 0 3px 10px rgba(0, 0, 0, 0.2);
  background:
    radial-gradient(circle at 72% 10%, rgba(86, 90, 124, 0.42), transparent 32%),
    linear-gradient(138deg, #171923 0%, #242732 54%, #171922 100%);
}

.system-bar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  box-shadow: 0 1px 10px rgba(42, 45, 59, 0.08);
  backdrop-filter: blur(24px) saturate(1.35);
}

.system-left,
.system-right,
.identity-button,
.availability,
.toolbar-actions,
.view-switch,
.window-controls,
.contact-actions,
.contact-note,
.back-button,
.text-action {
  display: flex;
  align-items: center;
}

.system-left,
.system-right {
  gap: 5px;
}

.identity-button,
.system-menu,
.icon-button {
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.identity-button {
  gap: 8px;
  padding: 0 8px 0 2px;
  font-size: 12px;
  font-weight: 700;
}

.identity-button:hover,
.system-menu:hover,
.icon-button:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.identity-mark {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-size: 9px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
}

.system-menu {
  padding: 0 9px;
  font-size: 12px;
}

.active-app-menu {
  font-weight: 700;
}

.menu-shell {
  position: relative;
}

.app-menu {
  position: absolute;
  z-index: 60;
  top: 32px;
  left: 0;
  width: 188px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-raised) 90%, transparent);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(22px);
}

.app-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.app-menu button:hover {
  color: #fff;
  background: var(--accent);
}

.availability {
  gap: 7px;
  margin-right: 5px;
  color: var(--muted);
  font-size: 11px;
}

.availability > span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #3fba75;
  box-shadow: 0 0 0 3px color-mix(in srgb, #3fba75 18%, transparent);
}

.icon-button {
  width: 28px;
  display: grid;
  place-items: center;
  padding: 0;
}

.desktop-canvas {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: 68px clamp(32px, 6vw, 112px) 112px;
  transition: padding-top 260ms ease;
}

.desktop-canvas.has-guide {
  padding-top: 132px;
}

.desktop-canvas.has-guide .portfolio-window {
  height: calc(100dvh - 242px);
  min-height: 540px;
}

.desktop-shortcut {
  position: absolute;
  top: 68px;
  right: 28px;
  width: 76px;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  color: #353746;
  background: transparent;
  font-size: 11px;
  cursor: default;
}

.theme-dark .desktop-shortcut {
  color: #f2f3f8;
}

.desktop-shortcut:hover,
.desktop-shortcut:focus-visible {
  background: rgba(82, 88, 217, 0.12);
}

.desktop-shortcut > span {
  width: 58px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--surface-raised);
  box-shadow: var(--small-shadow);
}

.portfolio-window {
  position: relative;
  width: min(1320px, calc(100vw - clamp(64px, 12vw, 224px)));
  height: calc(100dvh - 180px);
  min-height: 590px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(1.2);
  transition: width 240ms ease, height 240ms ease, border-radius 240ms ease;
}

.portfolio-window.is-maximized {
  width: calc(100vw - 24px);
  height: calc(100dvh - 104px);
  min-height: 0;
  border-radius: 15px;
}

.window-titlebar {
  position: relative;
  height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  user-select: none;
}

.window-titlebar > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.window-controls {
  gap: 7px;
}

.window-control {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: transparent;
  cursor: pointer;
}

.window-control:hover {
  color: rgba(40, 35, 34, 0.72);
}

.window-control.close { background: #ff6058; }
.window-control.minimize { background: #ffbd2e; }
.window-control.maximize { background: #28c941; }

.titlebar-help {
  justify-self: end;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.titlebar-help:hover {
  color: var(--ink);
  background: var(--panel-hover);
}

.window-body,
.app-transition {
  height: calc(100% - 42px);
}

.app-transition {
  min-width: 0;
}

.finder-layout {
  height: 100%;
  display: grid;
  grid-template-columns: 220px minmax(430px, 1fr) 306px;
  overflow: hidden;
}

.finder-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px 14px 16px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 84%, transparent);
}

.sidebar-label {
  padding: 0 12px 10px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.finder-sidebar nav {
  display: grid;
  gap: 3px;
}

.finder-sidebar nav button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.finder-sidebar nav button > span:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finder-sidebar nav button > span:last-child {
  color: var(--subtle);
  font-size: 10px;
}

.finder-sidebar nav button:hover {
  color: var(--ink);
  background: var(--panel-hover);
}

.finder-sidebar nav button.is-selected {
  color: #fff;
  background: var(--accent);
}

.finder-sidebar nav button.is-selected > span:last-child {
  color: rgba(255,255,255,0.75);
}

.sidebar-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px 8px 2px;
  border-top: 1px solid var(--line);
}

.avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.sidebar-profile > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

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

.sidebar-profile strong {
  font-size: 10px;
}

.sidebar-profile small {
  color: var(--muted);
  font-size: 9px;
}

.finder-main {
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--surface-solid);
}

.finder-toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  backdrop-filter: blur(18px);
}

.finder-toolbar > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.toolbar-location {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.finder-toolbar strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-actions {
  gap: 9px;
}

.view-switch {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.view-switch button {
  width: 28px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.view-switch button.is-selected {
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 1px 4px rgba(27, 29, 38, 0.12);
}

.search-field {
  width: clamp(150px, 16vw, 220px);
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--panel);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.search-field input::placeholder {
  color: var(--subtle);
}

.search-field button {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: var(--line);
  cursor: pointer;
}

.mobile-category-strip {
  display: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 20px 34px;
}

.project-grid.is-list {
  grid-template-columns: 1fr;
  gap: 9px;
}

.project-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: 0 6px 16px rgba(43, 46, 59, 0.07);
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--small-shadow);
  transform: translateY(-2px);
}

.project-card.is-selected {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent), 0 8px 20px rgba(43, 46, 59, 0.1);
}

.project-select {
  width: 100%;
  display: grid;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-thumb {
  height: clamp(120px, 15vh, 165px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 76%, var(--surface-raised));
}

.project-thumb img {
  width: 100%;
  height: 100%;
  padding: 9px;
  object-fit: contain;
}

.project-card-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px 15px 15px;
}

.project-signal,
.preview-signal {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-card-copy strong {
  font-size: 14px;
}

.project-card-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-open-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 9px;
  color: #20212a;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 3px 10px rgba(20, 22, 29, 0.1);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.project-open-icon:hover {
  color: #fff;
  background: var(--accent);
}

.project-card.is-list .project-select {
  grid-template-columns: 158px minmax(0, 1fr);
  align-items: center;
}

.project-card.is-list .project-thumb {
  height: 102px;
}

.project-card.is-list .project-card-copy {
  padding-right: 52px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state h2 {
  color: var(--ink);
  font-size: 18px;
}

.empty-state p {
  font-size: 12px;
}

.project-preview {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 27px 22px 22px;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
}

.preview-copy {
  display: grid;
  gap: 8px;
}

.preview-copy > span,
.content-app header > span,
.about-intro > div > span,
.contact-copy > span,
.case-heading > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-copy h2,
.preview-copy p {
  margin: 0;
}

.preview-copy h2 {
  font-size: clamp(24px, 2.4vw, 38px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.preview-signal {
  display: block;
  margin-top: -2px;
}

.preview-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.preview-image {
  min-height: 184px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.preview-image img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  padding: 12px;
  object-fit: contain;
}

.preview-details {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.preview-details div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.preview-details dt {
  color: var(--subtle);
}

.preview-details dd {
  margin: 0;
  line-height: 1.35;
}

.primary-button,
.secondary-button,
.back-button,
.text-action {
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  min-height: 39px;
  padding: 0 15px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 25%, transparent);
}

.primary-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--ink);
  background: var(--surface-raised);
  border-color: var(--line-strong);
}

.secondary-button:hover {
  background: var(--panel-hover);
}

.preview-button {
  margin-top: auto;
}

.guide-card {
  position: fixed;
  z-index: 35;
  top: 48px;
  left: 50%;
  width: min(700px, calc(100vw - 80px));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px 40px 16px 16px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-raised) 90%, transparent);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(24px) saturate(1.2);
  translate: -50% 0;
}

.guide-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.guide-close:hover {
  background: var(--panel-hover);
}

.guide-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
}

.guide-card > div:last-child {
  display: grid;
  gap: 5px;
}

.guide-card strong,
.guide-card p {
  margin: 0;
}

.guide-card strong {
  font-size: 13px;
}

.guide-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.text-action {
  width: fit-content;
  padding: 2px 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.dock {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: 19px;
  background: color-mix(in srgb, var(--surface-raised) 74%, transparent);
  box-shadow: 0 14px 34px rgba(39, 42, 53, 0.2);
  backdrop-filter: blur(26px) saturate(1.35);
  transform: translateX(-50%);
}

.dock-item {
  position: relative;
  min-width: 56px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 8.5px;
  cursor: pointer;
}

.dock-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.46);
  border-radius: 13px;
  color: #fff;
  background: #6f7380;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 6px 14px rgba(34, 36, 46, 0.16);
}

.dock-item:nth-child(1) .dock-icon { background: #5b61de; }
.dock-item:nth-child(2) .dock-icon { background: #7f67b8; }
.dock-item:nth-child(3) .dock-icon { background: #4d7aa2; }
.dock-item:nth-child(4) .dock-icon { background: #5c7d71; }
.dock-item:nth-child(5) .dock-icon { background: #9a6a64; }

.dock-item::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: 1px;
  border-radius: 999px;
  background: transparent;
}

.dock-item.is-active::after {
  background: var(--ink);
}

.dock-item.is-active {
  color: var(--ink);
}

.case-study {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--surface-solid);
}

.case-topbar {
  position: sticky;
  z-index: 8;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 clamp(22px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 91%, transparent);
  backdrop-filter: blur(20px);
}

.case-topbar > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-button {
  padding: 7px 8px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.back-button:hover {
  background: var(--panel-hover);
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  min-height: 520px;
  padding: clamp(46px, 7vw, 94px) clamp(28px, 7vw, 104px);
}

.case-heading {
  display: grid;
  gap: 19px;
}

.case-heading h1,
.case-heading p {
  margin: 0;
}

.case-heading h1 {
  max-width: 690px;
  font-size: clamp(42px, 5.1vw, 82px);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.case-heading p {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.55;
}

.case-cover {
  min-width: 0;
  height: clamp(310px, 40vw, 520px);
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(24, 27, 38, 0.2));
}

.case-context {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(28px, 7vw, 104px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.case-context > div {
  padding: 22px;
  background: var(--surface-raised);
}

.case-context span,
.story-sequence article > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-context p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.case-story {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 90px);
  padding: clamp(70px, 10vw, 132px) clamp(28px, 7vw, 104px);
}

.case-proof {
  display: grid;
  gap: 30px;
  padding: 0 clamp(28px, 7vw, 104px) clamp(78px, 9vw, 116px);
}

.case-proof > header {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
}

.case-proof > header span,
.proof-card > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-proof > header h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(25px, 3.2vw, 46px);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

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

.proof-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 176px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
}

.proof-card-wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.proof-card p,
.proof-card ul {
  margin: 0;
  color: var(--ink);
  font-size: clamp(13px, 1.35vw, 17px);
  line-height: 1.58;
}

.proof-card ul {
  display: grid;
  gap: 9px;
  padding-left: 19px;
}

.proof-card-constraints {
  background: var(--panel);
}

.proof-card-next {
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  align-items: start;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-raised));
}

.story-index {
  position: sticky;
  top: 82px;
  align-self: start;
  display: grid;
  gap: 5px;
}

.story-index strong {
  font-size: 15px;
}

.story-index span {
  color: var(--muted);
  font-size: 11px;
}

.story-sequence {
  display: grid;
}

.story-sequence article {
  display: grid;
  gap: 14px;
  padding: 0 0 44px 28px;
  border-left: 1px solid var(--line-strong);
}

.story-sequence article:last-child {
  padding-bottom: 0;
}

.story-sequence h2 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.case-gallery {
  display: grid;
  gap: clamp(34px, 6vw, 78px);
  padding: 0 clamp(28px, 7vw, 104px) clamp(78px, 10vw, 130px);
}

.case-gallery figure {
  min-height: clamp(360px, 44vw, 620px);
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  place-items: center;
  gap: clamp(24px, 4vw, 58px);
  margin: 0;
  padding: clamp(24px, 5vw, 74px);
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-raised);
}

.case-gallery figure:nth-child(even) {
  background: var(--panel);
}

.case-gallery figcaption {
  align-self: start;
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.case-gallery figcaption span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-gallery figcaption strong {
  font-size: clamp(17px, 2vw, 28px);
  font-weight: 540;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.case-gallery figure > div {
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: visible;
}

.case-gallery img {
  width: 100%;
  height: auto;
  max-height: 660px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(28, 31, 42, 0.17));
}

.related-cases {
  display: grid;
  gap: 20px;
  padding: 44px clamp(28px, 7vw, 104px) 82px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.related-cases h2 {
  margin: 0;
  font-size: 20px;
}

.related-cases > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-cases button {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface-raised);
  text-align: left;
  cursor: pointer;
}

.related-cases button:hover {
  border-color: var(--line-strong);
  box-shadow: var(--small-shadow);
  transform: translateY(-2px);
}

.related-cases img {
  width: 76px;
  height: 58px;
  padding: 4px;
  border-radius: 9px;
  background: var(--panel);
  object-fit: contain;
}

.related-cases button > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

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

.related-cases strong {
  font-size: 12px;
}

.related-cases small {
  color: var(--muted);
  font-size: 9px;
}

.content-app {
  height: 100%;
  overflow: auto;
  padding: clamp(42px, 7vw, 92px) clamp(30px, 8vw, 122px);
  background: var(--surface-solid);
}

.content-app header {
  max-width: 850px;
  display: grid;
  gap: 16px;
  margin-bottom: 52px;
}

.content-app header h1,
.content-app header p {
  margin: 0;
}

.content-app header h1,
.about-intro h1,
.contact-copy h1 {
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.content-app header p,
.about-intro p,
.contact-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(320px, 1.3fr);
  gap: clamp(36px, 7vw, 98px);
  align-items: center;
}

.about-intro > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--small-shadow);
}

.about-intro > div {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.about-intro h1,
.about-intro p {
  margin: 0;
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(58px, 8vw, 108px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.about-principles article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  background: var(--surface-raised);
}

.about-principles svg {
  color: var(--accent);
}

.about-principles strong {
  font-size: 14px;
}

.about-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.approach-track,
.experience-list {
  max-width: 920px;
  display: grid;
}

.approach-track article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.approach-track article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.approach-track article div {
  display: grid;
  gap: 6px;
}

.approach-track h2,
.approach-track p {
  margin: 0;
}

.approach-track h2 {
  font-size: 21px;
}

.approach-track p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.approach-app > .secondary-button {
  margin-top: 32px;
}

.experience-list article {
  display: grid;
  grid-template-columns: minmax(104px, 0.25fr) minmax(0, 1fr);
  gap: 28px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

.experience-list article > span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.experience-list article > div {
  display: grid;
  gap: 5px;
}

.experience-list h2,
.experience-list strong,
.experience-list p {
  margin: 0;
}

.experience-list h2 {
  font-size: 21px;
}

.experience-list strong {
  color: var(--accent);
  font-size: 11px;
}

.experience-list p {
  max-width: 670px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.resume-app > .primary-button {
  margin-top: 32px;
}

.contact-app {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(40px, 8vw, 126px);
  align-content: center;
}

.contact-copy {
  display: grid;
  gap: 18px;
}

.contact-copy h1,
.contact-copy p {
  margin: 0;
}

.contact-actions {
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.contact-note {
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1180px) {
  .desktop-canvas {
    padding-inline: 44px;
  }

  .portfolio-window {
    width: calc(100vw - 88px);
  }

  .finder-layout {
    grid-template-columns: 194px minmax(400px, 1fr) 256px;
  }

  .preview-image {
    min-height: 150px;
  }
}

@media (max-width: 960px) {
  .optional-menu {
    display: none;
  }

  .desktop-shortcut {
    display: none;
  }

  .desktop-canvas {
    padding-inline: 22px;
  }

  .portfolio-window {
    width: calc(100vw - 44px);
  }

  .finder-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .project-preview {
    display: none;
  }

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

  .case-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 46px 32px 54px;
  }

  .case-cover {
    height: min(62vw, 480px);
  }

  .case-context {
    margin-inline: 32px;
  }

  .case-story {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 76px 32px;
  }

  .story-index {
    position: static;
  }

  .case-proof {
    padding-inline: 32px;
  }

  .case-proof > header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .case-gallery {
    padding-inline: 32px;
  }

  .case-gallery figure {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .related-cases {
    padding-inline: 32px;
  }

  .related-cases > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  .system-bar {
    height: 42px;
    padding-inline: 10px;
  }

  .identity-button > span:last-child,
  .active-app-menu,
  .availability {
    display: none;
  }

  .desktop-canvas {
    padding: 52px 8px 81px;
  }

  .desktop-canvas.has-guide {
    padding-top: 52px;
  }

  .desktop-canvas.has-guide .portfolio-window {
    height: calc(100dvh - 135px);
    min-height: 0;
  }

  .portfolio-window,
  .portfolio-window.is-maximized {
    width: calc(100vw - 16px);
    height: calc(100dvh - 135px);
    min-height: 0;
    border-radius: 15px;
  }

  .window-titlebar {
    height: 40px;
  }

  .window-body,
  .app-transition {
    height: calc(100% - 40px);
  }

  .finder-layout {
    display: block;
  }

  .finder-sidebar {
    display: none;
  }

  .finder-main {
    height: 100%;
  }

  .finder-toolbar {
    min-height: 64px;
    padding: 10px 12px;
  }

  .toolbar-actions {
    gap: 6px;
  }

  .view-switch {
    display: none;
  }

  .search-field {
    width: min(44vw, 170px);
  }

  .mobile-category-strip {
    display: flex;
    gap: 7px;
    padding: 9px 12px 10px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    box-shadow: inset -22px 0 16px -18px color-mix(in srgb, var(--ink) 42%, transparent);
    scroll-padding-inline: 12px;
    scrollbar-width: none;
  }

  .mobile-category-strip::after {
    content: "";
    flex: 0 0 16px;
  }

  .mobile-category-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-category-strip button {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-raised);
    font-size: 10px;
  }

  .mobile-category-strip button.is-selected {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 12px 28px;
  }

  .project-thumb {
    height: 158px;
  }

  .project-card.is-list .project-select {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .guide-card {
    top: auto;
    left: auto;
    right: 12px;
    bottom: 78px;
    width: calc(100vw - 24px);
    translate: none;
  }

  .dock {
    bottom: 6px;
    gap: 2px;
    width: calc(100vw - 20px);
    padding: 5px 6px;
    border-radius: 16px;
    justify-content: center;
  }

  .dock-item {
    min-width: 0;
    flex: 1;
  }

  .dock-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }

  .dock-item > span:last-of-type {
    font-size: 6.5px;
  }

  .case-topbar {
    min-height: 46px;
    padding-inline: 14px;
  }

  .case-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
    padding: 36px 18px 46px;
  }

  .case-heading h1 {
    font-size: clamp(40px, 13vw, 62px);
  }

  .case-cover {
    height: min(76vw, 360px);
    border-radius: 17px;
  }

  .case-context {
    grid-template-columns: 1fr;
    margin-inline: 18px;
  }

  .case-context > div {
    padding: 16px;
  }

  .case-story {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 64px 18px;
  }

  .case-proof {
    gap: 20px;
    padding: 0 18px 68px;
  }

  .case-proof > header {
    grid-template-columns: 1fr;
    gap: 9px;
  }

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

  .proof-card,
  .proof-card-wide {
    grid-column: auto;
    min-height: 0;
    padding: 20px;
    border-radius: 15px;
  }

  .proof-card-next {
    grid-template-columns: 1fr;
  }

  .story-index {
    position: static;
  }

  .story-sequence article {
    padding: 0 0 34px 18px;
  }

  .story-sequence h2 {
    font-size: 26px;
  }

  .case-gallery {
    gap: 24px;
    padding: 0 18px 68px;
  }

  .case-gallery figure {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 0;
    padding: 17px;
    border-radius: 17px;
  }

  .case-gallery figure > div {
    min-height: 0;
  }

  .related-cases {
    padding: 34px 18px 66px;
  }

  .related-cases > div {
    grid-template-columns: 1fr;
  }

  .content-app {
    padding: 38px 20px 54px;
  }

  .about-intro,
  .contact-app {
    grid-template-columns: 1fr;
  }

  .about-intro > img {
    max-height: 300px;
    aspect-ratio: 16 / 10;
    object-position: center 24%;
  }

  .about-principles {
    grid-template-columns: 1fr;
  }

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

  .contact-note {
    grid-column: auto;
  }
}

@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;
  }
}

/* Native-feeling desktop refinements: menu bar, Finder cards, and Mail composer. */
.portfolio-window {
  perspective: 1200px;
  transform-origin: 50% calc(100% + 90px);
}

.profile-menu-shell {
  position: relative;
}

.profile-menu,
.notification-menu {
  position: absolute;
  z-index: 260;
  top: 34px;
  padding: 8px;
  border: 1px solid rgba(255, 239, 211, 0.22);
  border-radius: 14px;
  color: #2d271f;
  background: rgba(255, 249, 238, 0.96);
  box-shadow: 0 24px 60px rgba(19, 13, 7, 0.3), inset 0 1px 0 rgba(255,255,255,0.84);
  backdrop-filter: blur(26px) saturate(1.15);
}

.profile-menu {
  left: 0;
  width: 286px;
}

.profile-menu-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid rgba(60, 49, 34, 0.12);
}

.profile-menu-head img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: cover;
  object-position: center top;
}

.profile-menu-head > span,
.profile-menu-head em {
  display: grid;
  gap: 3px;
}

.profile-menu-head strong { font-size: 12px; }
.profile-menu-head small { color: #756b5d; font-size: 9.5px; }
.profile-menu-head em {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: #5f765a;
  font-size: 9px;
  font-style: normal;
}
.profile-menu-head i,
.mail-availability i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #62a76a;
  box-shadow: 0 0 0 3px rgba(98, 167, 106, 0.14);
}

.profile-menu-links {
  display: grid;
  gap: 2px;
  padding-block: 7px;
}

.profile-menu-links button,
.profile-menu > a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: #2d271f;
  background: transparent;
  font-size: 11px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.profile-menu-links button:hover,
.profile-menu > a:hover {
  color: #fff8ed;
  background: #94703a;
}

.profile-menu > a {
  justify-content: space-between;
  border-top: 1px solid rgba(60, 49, 34, 0.12);
  border-radius: 0 0 8px 8px;
}

.system-right > svg {
  flex: 0 0 auto;
  color: #f6ead8;
}

.notification-button {
  position: relative;
}

.notification-button > span {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #e4ad57;
  box-shadow: 0 0 0 2px rgba(22, 18, 14, 0.82);
}

.notification-menu {
  right: 0;
  width: 260px;
}

.notification-menu > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 9px;
  background: #f1e8d8;
}

.notification-menu strong { font-size: 11px; }
.notification-menu small { color: #746a5c; font-size: 9.5px; line-height: 1.45; }
.notification-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-top: 5px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: #2d271f;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}
.notification-menu button:hover { background: #e7dbc8; }

.system-time {
  min-width: 86px;
  height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  color: #f8efdf;
  background: transparent;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.system-time:hover { background: rgba(255, 247, 232, 0.1); }

.project-card {
  width: 100%;
  display: grid;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.project-card:hover .project-thumb img {
  transform: scale(1.025);
}

.project-card:hover .project-open-icon {
  color: #fffaf0;
  background: #94703a;
  transform: translate(2px, -2px);
}

.project-thumb {
  position: relative;
  background: linear-gradient(145deg, #eee4d3, #ddd0bb);
}

.project-thumb img {
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-open-icon {
  display: grid;
  transition: color 180ms ease, background 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.project-card-title > small {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card.is-list {
  grid-template-columns: 158px minmax(0, 1fr);
  align-items: center;
}

.project-card.is-list .project-card-copy {
  padding-right: 18px;
}

.window-contact .window-body {
  background: #f5f0e6;
}

.mail-app {
  height: 100%;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  color: #2c2924;
  background: #fffdf8;
}

.mail-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 12px;
  border-right: 1px solid rgba(66, 55, 39, 0.12);
  background: linear-gradient(160deg, rgba(222, 210, 191, 0.78), rgba(239, 232, 218, 0.9));
}

.mail-account {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 2px 6px 17px;
}
.mail-account img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
}
.mail-account span,
.mail-availability span { min-width: 0; display: grid; gap: 2px; }
.mail-account strong { font-size: 11px; }
.mail-account small,
.mail-availability small { color: #7c7265; font-size: 8.5px; }

.mail-sidebar nav {
  display: grid;
  gap: 3px;
}
.mail-sidebar nav button {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  min-height: 35px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: #5f584e;
  background: transparent;
  font-size: 10.5px;
  text-align: left;
}
.mail-sidebar nav button.is-selected {
  color: #2c2924;
  background: rgba(255, 252, 245, 0.72);
  box-shadow: inset 0 0 0 1px rgba(66,55,39,0.07), 0 3px 12px rgba(56,43,26,0.08);
}
.mail-sidebar nav button span { color: #8b7654; font-size: 8px; }
.mail-availability {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 14px 8px 3px;
  border-top: 1px solid rgba(66,55,39,0.11);
}
.mail-availability strong { font-size: 9px; }

.mail-compose {
  min-width: 0;
  display: grid;
  grid-template-rows: 50px auto minmax(0, 1fr);
  background: #fffdf8;
}

.mail-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(66,55,39,0.11);
  background: #faf6ed;
}
.mail-toolbar > div { display: flex; gap: 5px; }
.mail-toolbar button {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(66,55,39,0.12);
  border-radius: 8px;
  color: #655c50;
  background: #fffdf8;
  cursor: pointer;
}
.mail-toolbar strong { font-size: 11px; }
.mail-toolbar .mail-send {
  justify-self: end;
  padding-inline: 12px;
  color: #fffaf0;
  border-color: #8a6531;
  background: linear-gradient(#a57f45, #89632f);
  box-shadow: 0 4px 10px rgba(112, 75, 27, 0.2);
}

.mail-fields {
  padding: 4px 17px 0;
  border-bottom: 1px solid rgba(66,55,39,0.11);
}
.mail-fields label {
  min-height: 38px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(66,55,39,0.09);
}
.mail-fields label:last-child { border-bottom: 0; }
.mail-fields label > span { color: #8c8275; font-size: 10px; }
.mail-fields strong { font-size: 10.5px; font-weight: 600; }
.mail-fields input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #2c2924;
  background: transparent;
  font-size: 10.5px;
}
.mail-fields input::placeholder { color: #aaa092; }
.mail-fields button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #756b5e;
  background: transparent;
  cursor: pointer;
}
.mail-fields button:hover { background: #eee5d7; }

.mail-message {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  padding: 20px 24px 15px;
}
.mail-message textarea {
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 210px;
  padding: 0;
  resize: none;
  border: 0;
  outline: 0;
  color: #2c2924;
  background: transparent;
  font-size: 13px;
  line-height: 1.65;
}
.mail-message textarea::placeholder { color: #9f9587; }
.mail-message > p {
  margin: 0 0 9px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #8d3f35;
  background: #f8e6df;
  font-size: 9.5px;
}
.mail-message footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(66,55,39,0.09);
  color: #8a8175;
  font-size: 8.5px;
}
.mail-message footer a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #7e5c2c;
  font-weight: 700;
  text-decoration: none;
}

textarea:focus-visible {
  outline: 0;
}

@media (max-width: 960px) {
  .system-right > svg { display: none; }
  .system-time { min-width: 72px; font-size: 9px; }
}

@media (max-width: 720px) {
  .system-time { min-width: 58px; padding-inline: 2px; font-size: 8px; }
  .system-right { gap: 1px; }
  .profile-menu { left: -2px; width: min(286px, calc(100vw - 20px)); }
  .notification-menu { right: -58px; width: min(260px, calc(100vw - 20px)); }
  .project-card-title > small { display: none; }
  .project-card.is-list { grid-template-columns: 120px minmax(0, 1fr); }
  .mail-app { grid-template-columns: 1fr; }
  .mail-sidebar { display: none; }
  .mail-toolbar { grid-template-columns: 1fr auto; }
  .mail-toolbar > strong { display: none; }
  .mail-fields { padding-inline: 12px; }
  .mail-fields label { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .mail-message { padding: 16px 15px 12px; }
  .mail-message textarea { min-height: 160px; }
  .mail-message footer span { max-width: 210px; }
}

/* Desktop revision: layered windows, warm portfolio palette, widgets, and macOS dock. */
.desktop-shell {
  --accent: #94703a;
  --accent-strong: #755425;
  --ink: #26231d;
  --muted: #6f685c;
  --subtle: #948a7b;
  --surface: rgba(246, 241, 229, 0.965);
  --surface-solid: #f4efe3;
  --surface-raised: #fffaf0;
  --panel: #e8dfcf;
  --panel-hover: #ded2bf;
  --line: rgba(60, 49, 34, 0.13);
  --line-strong: rgba(60, 49, 34, 0.23);
  --shadow: 0 38px 90px rgba(0, 0, 0, 0.26), 0 14px 32px rgba(16, 13, 9, 0.18);
  --small-shadow: 0 15px 34px rgba(19, 15, 10, 0.17), 0 4px 12px rgba(19, 15, 10, 0.1);
  background-color: #17130f;
  background-image:
    linear-gradient(90deg, rgba(12, 10, 8, 0.14), rgba(12, 10, 8, 0.04) 58%, rgba(12, 10, 8, 0.24)),
    url("/assets/reference/portfolio-desktop-wallpaper.png");
  background-position: center;
  background-size: cover;
}

.desktop-shell::after {
  inset: 36px 0 0;
  opacity: 0.24;
  background: linear-gradient(115deg, rgba(255, 236, 196, 0.1), transparent 35%, rgba(0, 0, 0, 0.22));
  mix-blend-mode: normal;
  filter: none;
  transform: none;
}

.theme-dark {
  --accent: #d1a35c;
  --accent-strong: #e3ba77;
  --ink: #f7eedf;
  --muted: #c1b5a4;
  --subtle: #968a7a;
  --surface: rgba(30, 27, 22, 0.965);
  --surface-solid: #201d18;
  --surface-raised: #2a261f;
  --panel: #312c24;
  --panel-hover: #3b342a;
  --line: rgba(255, 239, 213, 0.11);
  --line-strong: rgba(255, 239, 213, 0.2);
  background-color: #100e0c;
  background-image:
    linear-gradient(90deg, rgba(8, 7, 6, 0.28), rgba(8, 7, 6, 0.12) 58%, rgba(8, 7, 6, 0.38)),
    url("/assets/reference/portfolio-desktop-wallpaper.png");
}

.system-bar {
  z-index: 200;
  color: #f8efdf;
  border-bottom-color: rgba(255, 239, 211, 0.12);
  background: rgba(22, 18, 14, 0.72);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.24);
}

.system-bar .identity-button:hover,
.system-bar .system-menu:hover,
.system-bar .icon-button:hover {
  background: rgba(255, 247, 232, 0.1);
}

.system-bar .availability { color: #d8cdbb; }
.system-bar .identity-mark { background: linear-gradient(145deg, #c39a59, #72501f); }

.desktop-canvas,
.desktop-canvas.has-guide {
  height: 100dvh;
  min-height: 100dvh;
  padding: 36px 0 0;
  overflow: hidden;
}

.desktop-canvas.has-guide .portfolio-window {
  height: min(680px, calc(100dvh - 170px));
  min-height: 470px;
}

.portfolio-window {
  position: absolute;
  top: 0;
  left: 0;
  width: min(1120px, 74vw);
  height: min(680px, calc(100dvh - 170px));
  min-height: 470px;
  margin: 0;
  border-color: rgba(255, 249, 235, 0.72);
  border-radius: 18px;
  transform-origin: center bottom;
  will-change: transform, opacity;
}

.portfolio-window.window-about { width: min(960px, 78vw); height: min(620px, calc(100dvh - 150px)); }
.portfolio-window.window-approach,
.portfolio-window.window-resume,
.portfolio-window.window-contact { width: min(980px, 70vw); }
.portfolio-window.window-case { width: min(1260px, 82vw); height: min(710px, calc(100dvh - 190px)); }

.portfolio-window.is-front {
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.33), 0 16px 34px rgba(0, 0, 0, 0.2);
}

.portfolio-window.is-behind {
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2), 0 8px 18px rgba(0, 0, 0, 0.14);
}

.portfolio-window.is-maximized {
  top: 46px;
  left: 12px;
  width: calc(100vw - 24px);
  height: calc(100dvh - 128px);
  min-height: 0;
}

.window-titlebar {
  cursor: grab;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
}

.window-titlebar:active { cursor: grabbing; }
.is-behind .window-titlebar { filter: saturate(0.72); }
.is-behind .window-titlebar > strong { color: var(--subtle); }

.desktop-shortcuts {
  position: fixed;
  z-index: 1;
  top: 60px;
  left: 18px;
  display: grid;
  gap: 10px;
}

.desktop-shortcuts button {
  width: 88px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 7px 5px;
  border: 0;
  border-radius: 11px;
  color: #fff7e9;
  background: transparent;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.desktop-shortcuts button:hover,
.desktop-shortcuts button:focus-visible {
  background: rgba(255, 244, 224, 0.12);
  backdrop-filter: blur(8px);
}

.desktop-shortcuts button > span {
  width: 58px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 244, 224, 0.28);
  border-radius: 15px;
  color: #3b2d1b;
  background: linear-gradient(145deg, #fff3db, #cfa866);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.62), 0 12px 24px rgba(0,0,0,0.3);
  text-shadow: none;
}

.desktop-shortcuts strong {
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}

.desktop-widgets {
  position: fixed;
  z-index: 1;
  top: 58px;
  right: 18px;
  width: min(250px, 18vw);
  display: grid;
  gap: 10px;
}

.desktop-widget {
  border: 1px solid rgba(255, 247, 230, 0.22);
  border-radius: 17px;
  color: #fff7ea;
  background: rgba(23, 18, 13, 0.58);
  box-shadow: 0 18px 44px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(22px) saturate(1.12);
}

.profile-widget {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.profile-widget:hover,
.featured-widget > div button:hover {
  background: rgba(48, 37, 25, 0.76);
}

.profile-widget > img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
}

.profile-widget > span,
.featured-widget button > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.profile-widget small,
.profile-widget em,
.featured-widget small {
  color: #d8c9b3;
  font-size: 8px;
  font-style: normal;
  line-height: 1.3;
}

.profile-widget small,
.widget-label {
  color: #d8aa63;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-widget strong { font-size: 10px; }

.tips-widget,
.featured-widget { padding: 14px; }

.tips-widget ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tips;
}

.tips-widget li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  counter-increment: tips;
}

.tips-widget strong { color: #f6d59d; font-size: 9px; }
.tips-widget span { color: #d8cdbd; font-size: 8.5px; line-height: 1.35; }

.widget-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.widget-heading > button {
  padding: 0;
  border: 0;
  color: #f5dfb9;
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.featured-widget > div:last-child { display: grid; gap: 7px; }

.featured-widget > div button {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  color: #fff7ea;
  background: rgba(255,255,255,0.045);
  text-align: left;
  cursor: pointer;
}

.featured-widget img {
  width: 47px;
  height: 34px;
  padding: 2px;
  border-radius: 7px;
  background: #ece1ce;
  object-fit: contain;
}

.featured-widget strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-card { z-index: 140; }

.dock {
  z-index: 150;
  gap: 4px;
  padding: 8px 10px 7px;
  border-color: rgba(255, 247, 232, 0.28);
  border-radius: 20px;
  background: rgba(30, 24, 18, 0.54);
  box-shadow: 0 22px 50px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(28px) saturate(1.25);
}

.dock-reflection {
  position: absolute;
  inset: 52% 8px 5px;
  border-radius: 0 0 14px 14px;
  opacity: 0.12;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

.dock-item { min-width: 51px; gap: 3px; }

.dock-icon {
  width: 46px;
  height: 46px;
  border-color: rgba(255,255,255,0.34);
  border-radius: 13px;
  color: #392b19;
  background: linear-gradient(145deg, #fff4df, #c99c58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), inset 0 -1px 0 rgba(81,54,18,0.18), 0 8px 18px rgba(0,0,0,0.32);
}

.dock-item:nth-of-type(2n) .dock-icon { background: linear-gradient(145deg, #f5ead8, #ad8952); }
.dock-item:nth-of-type(3n) .dock-icon { background: linear-gradient(145deg, #ede4d3, #8c714b); }
.dock-item:nth-of-type(1) .dock-icon { background: linear-gradient(145deg, #f5e3bf, #9e7132); }
.dock-item:nth-of-type(2) .dock-icon { background: linear-gradient(145deg, #fff5e4, #c09b61); }
.dock-item:nth-of-type(3) .dock-icon { background: linear-gradient(145deg, #e9dfcc, #94784f); }
.dock-item:nth-of-type(4) .dock-icon { background: linear-gradient(145deg, #f9eedc, #b18a51); }
.dock-item:nth-of-type(5) .dock-icon { background: linear-gradient(145deg, #f1e5d2, #a77c43); }

.dock-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px;
  color: #fff8ed;
  background: rgba(24,20,16,0.88);
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  font-size: 9px;
  white-space: nowrap;
  transform: translate(-50%, 6px);
  transition: opacity 90ms ease, transform 90ms ease;
}

.dock-item:hover .dock-tooltip { opacity: 1; transform: translate(-50%, 0); }
.dock-item::after { position: relative; z-index: 2; background: transparent; }
.dock-item.is-open::after { background: rgba(255, 245, 227, 0.74); }
.dock-item.is-active::after { width: 5px; background: #ffe4b3; box-shadow: 0 0 9px rgba(255,210,135,0.65); }

.primary-button { background: var(--accent); }
.primary-button:hover { background: var(--accent-strong); }
.finder-sidebar nav button.is-selected { background: var(--accent); }
.project-open-icon:hover { background: var(--accent); }

.window-about .content-app {
  padding: 32px 54px 34px;
}

.window-about .about-intro {
  grid-template-columns: minmax(190px, 0.62fr) minmax(380px, 1.38fr);
  gap: clamp(34px, 5vw, 64px);
}

.window-about .about-intro > img {
  max-height: 280px;
}

.window-about .about-intro h1 {
  font-size: clamp(36px, 4.2vw, 52px);
}

.window-about .about-intro p {
  font-size: 13px;
}

.window-about .about-principles {
  margin-top: clamp(30px, 4vw, 40px);
}

.window-about .about-principles article {
  padding: 18px;
}

@media (max-width: 1180px) {
  .portfolio-window { width: min(1000px, 77vw); }
  .portfolio-window.window-about { width: min(850px, 70vw); }
  .portfolio-window.window-case { width: calc(100vw - 86px); }
  .desktop-widgets { width: 210px; }
}

@media (max-width: 960px) {
  .desktop-widgets,
  .desktop-shortcuts { display: none; }
  .portfolio-window,
  .portfolio-window.window-about,
  .portfolio-window.window-approach,
  .portfolio-window.window-resume,
  .portfolio-window.window-contact,
  .portfolio-window.window-case {
    width: calc(100vw - 44px);
  }
}

@media (max-width: 720px) {
  .portfolio-window,
  .portfolio-window.window-about,
  .portfolio-window.window-approach,
  .portfolio-window.window-resume,
  .portfolio-window.window-contact,
  .portfolio-window.window-case,
  .portfolio-window.is-maximized {
    top: 52px !important;
    left: 8px !important;
    width: calc(100vw - 16px);
    height: calc(100dvh - 135px) !important;
    min-height: 0;
    transform: none !important;
  }

  .portfolio-window.is-behind {
    visibility: hidden;
    pointer-events: none !important;
  }

  .dock-tooltip { display: none; }
  .dock { z-index: 150; }
  .dock-item { min-width: 0; }
}
