/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  /* Theme colors - Marigold (default) */
  --color-desktop: #FFC800;
  --color-desktop-dark: #e0b000;

  /* Fixed colors */
  --color-window-bg: #fffde8;
  --color-content-bg: #ffffff;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-border: rgba(0,0,0,0.75);
  --color-border-light: rgba(0,0,0,0.20);
  --color-close-btn: #E8184A;
  --color-close-btn-bg: #FF3B6E;
  --color-titlebar-stripe-light: #e0e0e0;
  --color-titlebar-stripe-dark: #b8b8b8;

  /* Typography */
  --font-ui: 'Chakra Petch', sans-serif;
  --font-body: 'Epilogue', sans-serif;

  /* Sizing */
  --menubar-height: 40px;
  --dock-height: 96px;
  --window-min-width: 320px;
  --border-radius: 0px;
}

/* Dark mode overrides */
[data-dark="true"] {
  --color-window-bg: #1e1e1e;
  --color-content-bg: #2a2a2a;
  --color-text-primary: #f0f0f0;
  --color-text-secondary: #aaaaaa;
  --color-text-muted: #666666;
  --color-border: rgba(255,255,255,0.55);
  --color-border-light: rgba(255,255,255,0.18);
  --color-titlebar-stripe-light: #3a3a3a;
  --color-titlebar-stripe-dark: #2a2a2a;
}

/* Theme color options */
[data-theme="marigold"] { --color-desktop: #FFC800; --color-desktop-dark: #e0b000; }
[data-theme="coral"]    { --color-desktop: #FF6B5B; --color-desktop-dark: #e05545; }
[data-theme="sky"]      { --color-desktop: #4BBFEA; --color-desktop-dark: #2aa0cc; }
[data-theme="lavender"] { --color-desktop: #A78BF5; --color-desktop-dark: #8b6ee0; }
[data-theme="bsod"]     { --color-desktop: #0000AA; --color-desktop-dark: #000088; }
[data-theme="classicgreen"] { --color-desktop: #008080; --color-desktop-dark: #006666; }

/* Wallpaper options */
[data-wallpaper="plain"]    { --wallpaper: none; }
[data-wallpaper="diagonal"] {
  --wallpaper: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(0, 0, 0, 0.1) 6px,
    rgba(0,0,0,0.1) 7px
  );
}
[data-wallpaper="dots"] {
  --wallpaper: radial-gradient(circle, rgba(0,0,0,0.2) 2px, transparent 2px);
}
[data-wallpaper="grid"] {
  --wallpaper: linear-gradient(rgba(0,0,0,0.2) 2px, transparent 2px),
               linear-gradient(90deg, rgba(0,0,0,0.2) 2px, transparent 2px);
}


/* ═══════════════════════════════════════════════════
   RESET + BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-desktop);
}

.hidden { display: none !important; }


/* ═══════════════════════════════════════════════════
   BOOT SCREEN
═══════════════════════════════════════════════════ */
.boot-screen {
  position: fixed; inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.boot-dialog {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--color-border);
  padding: 32px 40px;
  min-width: 320px;
  text-align: center;
}

[data-dark="true"] .boot-dialog {
  background: rgba(28,28,28,0.92);
}

.boot-text {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--color-text-primary);
}

.boot-bar-track {
  width: 240px;
  height: 20px;
  border: 2px solid var(--color-border);
  background: var(--color-content-bg);
  overflow: hidden;
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    -45deg,
    #555 0px,
    #555 6px,
    #888 6px,
    #888 12px
  );
  transition: width 0.1s linear;
}


/* ═══════════════════════════════════════════════════
   LOGIN SCREEN
═══════════════════════════════════════════════════ */
.login-screen {
  position: fixed; inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.login-dialog {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--color-border);
  padding: 48px 56px;
  min-width: 360px;
  max-width: 420px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

[data-dark="true"] .login-dialog {
  background: rgba(28,28,28,0.92);
}

.login-logo { margin-bottom: 16px; }

.login-logo-img {
  width: 96px;
  height: 96px;
  display: block;
  border: 2px solid rgba(0,0,0,0.85);
}

.login-title {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.login-subtitle {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.login-form {
  width: 100%;
  display: flex;
  border: 2px solid var(--color-border);
  background: var(--color-content-bg);
}

.password-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-text-primary);
}

.password-input::placeholder {
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
}

.password-submit {
  border: none;
  border-left: 2px solid var(--color-border);
  background: transparent;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--color-text-primary);
  transition: background 0.15s;
}

.password-submit:hover { background: var(--color-desktop); }

.login-error {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--color-close-btn);
}


/* ═══════════════════════════════════════════════════
   DESKTOP
═══════════════════════════════════════════════════ */
.desktop {
  position: fixed; inset: 0;
  display: flex;
  flex-direction: column;
}

.desktop.hidden { display: none !important; }

.desktop-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--color-desktop);
  background-image: var(--wallpaper, repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(0,0,0,0.08) 6px,
    rgba(0,0,0,0.08) 7px
  ));
  background-size: var(--wallpaper-size, auto);
}

[data-wallpaper="dots"] .desktop-area {
  background-size: 16px 16px;
}

[data-wallpaper="grid"] .desktop-area {
  background-size: 24px 24px;
}


/* ═══════════════════════════════════════════════════
   MENUBAR
═══════════════════════════════════════════════════ */
.menubar {
  height: var(--menubar-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 0;
  flex-shrink: 0;
  z-index: 200;
  overflow: visible;
}

[data-dark="true"] .menubar {
  background: rgba(20,20,20,0.96);
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

/* Yellow logo tile — full bar height, square, bordered */
.menubar-logo-tile {
  width: var(--menubar-height);
  height: var(--menubar-height);
  background: var(--color-accent);
  border-right: 2px solid rgba(0,0,0,0.85);
  flex-shrink: 0;
  overflow: hidden;
}

.menubar-logo-img {
  width: 100%;
  height: 100%;
  display: block;
}

.menubar-brand {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
}

.menubar-sep {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  opacity: 0.5;
}

.menubar-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  opacity: 0.75;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.menubar-icon-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
}

.menubar-icon-link {
  display: flex;
  align-items: center;
  color: var(--color-text-primary);
  opacity: 0.6;
  transition: opacity 0.15s;
  text-decoration: none;
}
.menubar-icon-link:hover { opacity: 1; }
.menubar-icon-link svg { display: block; }

.menubar-time {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════
   DOCK
═══════════════════════════════════════════════════ */

/* Fixed to bottom — removed from flex flow so desktop-area
   fills the full viewport behind the dock */
.dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  height: var(--dock-height);
  display: flex;
  align-items: stretch;
  justify-content: center;
  z-index: 200;
  overflow: visible;
}

/* Full-width frosted bar, flat (no pill/rounding) */
.dock-bar {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 0 24px 8px;
  width: auto;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0;
  overflow: visible;
  border-top: 2px solid var(--color-border);
  border-left: 2px solid var(--color-border);
  border-right: 2px solid var(--color-border);
}

[data-dark="true"] .dock-bar {
  background: rgba(28,28,28,0.96);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 14px 0;
  position: relative;
  overflow: visible;
  /* transition handled by JS for magnification */
}

/* Icon floats above the bar via upward translate */
.dock-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-10px);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), filter 0.2s ease;
  will-change: transform;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}

.dock-icon img { display: block; width: 100%; height: 100%; }

.dock-item:hover .dock-icon {
  transform: translateY(-26px) scale(1.3);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.22));
}

.dock-label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  text-transform: uppercase;
  padding-bottom: 2px;
  transition: font-size 0.15s;
}

.dock-indicator {
  display: none;
}

/* Glowing line — shown when app is open */
.dock-item.active .dock-indicator {
  display: block;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: #FF6600;
  box-shadow: 0 0 8px 3px rgba(255, 102, 0, 0.8);
  z-index: 10;
}


/* ═══════════════════════════════════════════════════
   WINDOWS
═══════════════════════════════════════════════════ */
.window {
  position: absolute;
  min-width: var(--window-min-width);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--color-border);
  display: flex;
  flex-direction: column;
  box-shadow: none;
  animation: window-open 0.18s ease-out;
}

[data-dark="true"] .window {
  background: rgba(28,28,28,0.92);
  box-shadow: none;
}

@keyframes window-open {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.window.closing {
  animation: window-close 0.15s ease-in forwards;
}

@keyframes window-close {
  from { transform: scale(1);    opacity: 1; }
  to   { transform: scale(0.92); opacity: 0; }
}

/* Title bar */
.window-titlebar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 10px;
  cursor: grab;
  flex-shrink: 0;
  border-bottom: 2px solid var(--color-border);
  user-select: none;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-dark="true"] .window-titlebar {
  background: rgba(20,20,20,0.96);
}

.window-titlebar:active { cursor: grabbing; }

.window-title {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  padding: 2px 8px;
}

.window-titlebar-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-close,
.window-expand {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.1s;
  padding: 0;
}

.window-close {
  background: var(--color-close-btn);
}
.window-close:hover { background: #c01030; }
.window-close svg { pointer-events: none; }

.window-expand {
  background: transparent;
  color: var(--color-text-primary);
  opacity: 0.5;
  transition: opacity 0.15s;
}
.window-expand:hover { opacity: 1; }
.window-expand svg { pointer-events: none; }

/* Window body */
.window-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  min-height: 0;
  container-type: inline-size;
}

/* Case study: breadcrumb sticky + inner scroll */
.window-body.case-view {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.window-body.case-view .case-breadcrumb {
  flex-shrink: 0;
}

.window-body.case-view .window-body-inner {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Resize handle */
.window-resize {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  cursor: se-resize;
  z-index: 10;
}

.window-resize::after {
  content: '';
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-border-light);
  border-bottom: 2px solid var(--color-border-light);
}


/* ═══════════════════════════════════════════════════
   APP: ABOUT
═══════════════════════════════════════════════════ */
.about-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 40px;
  min-height: 100%;
  align-items: start;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border: 2px solid var(--color-border);
  background: var(--color-titlebar-stripe-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.about-photo-placeholder {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.about-text { display: flex; flex-direction: column; gap: 0; }

.about-hello {
  font-family: var(--font-ui);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  line-height: 1;
}

.about-tagline {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.about-bio {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.about-tag {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-titlebar-stripe-light);
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: opacity 0.15s;
}

.about-link:hover {color: var(--color-text-primary); }
.about-link svg { flex-shrink: 0; }


/* ═══════════════════════════════════════════════════
   APP: WORK — LIST VIEW
═══════════════════════════════════════════════════ */
.work-list-content { padding: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }

.app-heading {
  font-family: var(--font-ui);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 32px;
  line-height: 1;
}

.work-list { display: flex; flex-direction: column; }

.work-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-top: 1.5px dashed var(--color-border-light);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0;
  z-index: 0;
}

.work-item:last-child { border-bottom: 1.5px dashed var(--color-border-light); }

.work-item:hover { background: rgba(0,0,0,0.02); margin: 0 -8px; padding-left: 8px; padding-right: 8px; z-index: 10; }

.work-folder-icon {
  width: 100px;
  flex-shrink: 0;
  overflow: visible;
}

.work-item-text { flex: 1; padding-top: 4px; }

/* Tablet: stack folder above text */
@media (max-width: 780px) {
  .work-item {
    flex-direction: column;
    gap: 12px;
  }
  .work-folder-icon { width: 80px; }
  .work-item-text { padding-top: 0; }
  .work-item-title { font-size: 19px; }
}

.work-item-client {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.work-item-title {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
  line-height: 1.2;
}

.work-item-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════
   APP: WORK — CASE STUDY VIEW
═══════════════════════════════════════════════════ */
.case-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1.5px solid var(--color-border);
  background: var(--color-titlebar-stripe-light);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
  flex-shrink: 0;
}

.case-breadcrumb-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  text-decoration: none;
  cursor: pointer;
  padding: 2px 6px;
}

.case-breadcrumb-back:hover { color: var(--color-text-primary); }

.case-breadcrumb-sep { color: var(--color-text-muted); }
.case-breadcrumb-current { color: var(--color-text-primary); font-weight: 700; }

.case-study {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
}

.case-header {
  padding: 40px 48px 32px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.case-client {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.case-title {
  font-family: var(--font-ui);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  line-height: 1.1;
}

.case-lead {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.case-divider {
  border: none;
  border-top: 1.5px dashed var(--color-border-light);
  margin: 0 0 20px;
}

.case-meta {
  display: flex;
  gap: 48px;
}

.case-meta-label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.case-meta-value {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Case study body */
.case-body {
  padding: 0 48px calc(var(--dock-height) + 48px);
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
}

.case-section-heading {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 32px 0 10px;
  line-height: 1.2;
}

.case-section-body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.case-image-block {
  margin: 24px 0 4px;
  border: 2px solid var(--color-border);
  background: var(--color-titlebar-stripe-light);
}

.case-image-block img { width: 100%; height: auto; display: block; }

.case-image-caption {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* Two-column card block */
.case-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.case-card {
  border: 1.5px solid var(--color-border-light);
  padding: 16px;
  display: flex;
  gap: 12px;
}

.case-card-image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.case-card-image img { width: 100%; height: 100%; object-fit: contain; }

.case-card-title {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.case-card-body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Blockquote */
.case-blockquote {
  margin: 24px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--color-border);
  background: rgba(0,0,0,0.02);
}

.case-blockquote-text {
  font-family: var(--font-body);
  font-size: 18px;
  font-style: italic;
  color: var(--color-text-primary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.case-blockquote-author {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Next project button */
.case-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px 0 0;
  padding: 18px;
  border: 2px solid var(--color-border);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}

.case-next:hover { border: 2px solid var(--color-desktop); }


/* ═══════════════════════════════════════════════════
   APP: RESUME
═══════════════════════════════════════════════════ */
.resume-content { padding: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }

.resume-list { display: flex; flex-direction: column; margin-top: 8px; }

.resume-entry {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1.5px dashed var(--color-border-light);
}

.resume-entry:last-child { border-bottom: 1.5px dashed var(--color-border-light); }

.resume-logo {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--color-border-light);
  background: var(--color-titlebar-stripe-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.resume-logo img { width: 100%; height: 100%; object-fit: contain; }

.resume-entry-text { flex: 1; }

.resume-company {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.resume-role {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.resume-bullets {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resume-bullet {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════
   APP: SETTINGS
═══════════════════════════════════════════════════ */
.settings-content { padding: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }

.settings-list { display: flex; flex-direction: column; margin-top: 8px; }

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1.5px dashed var(--color-border-light);
  gap: 24px;
}

.settings-row:last-child { border-bottom: 1.5px dashed var(--color-border-light); }

.settings-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.settings-select {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--color-border);
  background: var(--color-content-bg);
  padding: 10px 36px 10px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  cursor: pointer;
  min-width: 200px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%231a1a1a' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  outline: none;
}

.settings-select:focus { border-color: var(--color-desktop-dark); }


/* ═══════════════════════════════════════════════════
   FOLDER ICONS — animated hover
═══════════════════════════════════════════════════ */

.folder-icon-wrap {
  position: relative;
  width: 100%;
}

/* SVG sits at z-index 1 so it covers the rise img by default */
.folder-svg-full {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Front flap <g> — skews/collapses from bottom-center hinge to open */
.folder-flap-g {
  transform-origin: 50% 100%;
  transition: transform 0.22s ease;
}

/* Rise img — z-indexed behind SVG in default state (item appears inside folder).
   JS sets z-index: 2 on hover so it rises above the SVG.
   No opacity transition — no fading. */
.folder-item-rise {
  position: absolute;
  /* Matches embedded <image> position: x=5/108, y=9/82 of 108×82 viewBox */
  left: 4.63%;     /* 5/108 */
  top: 10.98%;     /* 9/82 */
  width: 83.33%;   /* 90/108 */
  height: auto;
  z-index: 0;      /* behind SVG (z=1) */
  transform: translateY(0) rotate(0deg);
  transform-origin: center bottom;
  transition: transform 0.26s ease;
  pointer-events: none;
}

/* NAIAS portrait (64×92) — sized to match xMidYMid meet rendering */
.folder-item-rise.is-portrait {
  width: 40%;
  left: 26%;
}


/* ═══════════════════════════════════════════════════
   MOBILE — single window, no drag
═══════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --menubar-height: 40px;
    --dock-height: 80px;
  }

  .menubar-name { display: none; }

  .desktop-area {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .window {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(100vh - var(--menubar-height) - var(--dock-height));
    box-shadow: none;
    border-left: none;
    border-right: none;
  }

  .window-body {
    overflow: visible;
    max-height: none;
  }

  .window-titlebar { cursor: default; }

  .window-resize { display: none; }

  .about-content {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }

  .about-photo {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .about-hello { font-size: 32px; }
  .about-tagline { font-size: 16px; }

  .work-list-content { padding: 24px; }
  .app-heading { font-size: 36px; }
  .work-folder-icon { width: 72px; }
  .work-item-title { font-size: 18px; }

  .case-header { padding: 24px 24px 20px; }
  .case-title { font-size: 28px; }
  .case-lead { font-size: 14px; }
  .case-meta { flex-wrap: wrap; gap: 20px; }
  .case-body { padding: 0 24px calc(var(--dock-height) + 40px); }
  .case-cards { grid-template-columns: 1fr; }

  .resume-content { padding: 24px; }
  .settings-content { padding: 24px; }
  .settings-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .settings-select { min-width: 100%; width: 100%; }

  .dock { height: 80px; padding-bottom: 8px; }
  .dock-bar { padding: 0 10px 6px; border-radius: 16px; }
  .dock-item { padding: 0 10px; }
  .dock-icon { width: 40px; height: 40px; transform: translateY(-8px); }
  .dock-icon svg { width: 40px; height: 40px; }
  .dock-item:hover .dock-icon { transform: translateY(-18px) scale(1.2); }
  .dock-label { font-size: 14px; }
}

@media (min-width: 641px) and (max-width: 780px) {
  .about-content {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 20px;
  }
  .about-photo {
    max-width: 200px;
  }
}

@media (min-width: 781px) and (max-width: 900px) {
  .about-content {
    grid-template-columns: 160px 1fr;
    gap: 24px;
    padding: 28px;
  }
}


/* ═══════════════════════════════════════════════════
   CONTAINER QUERIES — window-level responsive layout
═══════════════════════════════════════════════════ */
@container (max-width: 780px) {
  /* Padding */
  .about-content       { padding: 24px; }
  .work-list-content   { padding: 24px; }
  .resume-content      { padding: 24px; }
  .settings-content    { padding: 24px; }
  .case-header         { padding: 24px; }
  .case-body           { padding: 0 24px calc(var(--dock-height) + 24px); }

  /* About — single column */
  .about-content { grid-template-columns: 1fr; gap: 24px; }
  .about-photo   { max-width: 200px; }

  /* Work list — stack icon above text */
  .work-item       { flex-direction: column; gap: 12px; }
  .work-folder-icon { width: 80px; }
  .work-item-text  { padding-top: 0; }
  .work-item-title { font-size: 19px; }

  /* Case study — stack metadata, single-column cards, tighter blockquote */
  .case-meta        { flex-direction: column; gap: 16px; }
  .case-cards       { grid-template-columns: 1fr; }
  .case-blockquote  { padding: 20px 24px; }

  /* Resume — stack logo above entry text */
  .resume-entry { flex-direction: column; gap: 12px; }
  .resume-logo  { width: 48px; height: 48px; }

  /* Settings — stack label above dropdown, full-width select */
  .settings-row    { flex-direction: column; align-items: flex-start; gap: 10px; }
  .settings-select { min-width: 100%; width: 100%; }
}

@container (max-width: 500px) {
  .app-heading          { font-size: 32px; }
  .about-hello          { font-size: 28px; }
  .about-tagline        { font-size: 16px; }
  .case-title           { font-size: 26px; }
  .case-section-heading { font-size: 18px; }
}

/* ═══════════════════════════════════════════════════
   SCROLLBAR STYLING
═══════════════════════════════════════════════════ */
.window-body::-webkit-scrollbar { width: 6px; }
.window-body::-webkit-scrollbar-track { background: transparent; }
.window-body::-webkit-scrollbar-thumb { background: var(--color-border-light); }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* ═══════════════════════════════════════════════════
   TRANSITIONS
═══════════════════════════════════════════════════ */
body, .desktop, .boot-screen, .login-screen {
  transition: background-color 0.3s ease;
}

.window-body, .case-header {
  transition: background-color 0.3s ease;
}
