:root {
  --bg-main: #e7e4dd;
  --bg-panel: rgba(248, 246, 240, 0.88);
  --bg-panel-strong: #f8f6f2;
  --line: #646e7f;
  --line-soft: #98a2af;
  --blue: #9ab2cf;
  --blue-deep: #6b86a7;
  --cream: #faf7f0;
  --text: #2f3440;
  --muted: #66717f;
  --shadow: 0 18px 40px rgba(72, 84, 104, 0.18);
  --pixel-shadow: 4px 4px 0 rgba(83, 93, 107, 0.18);
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' d='M2 1L2 20L7 15L10 23L13 22L10 14L16 14Z'/%3E%3Ctext x='13.5' y='21' font-family='Verdana, Arial, sans-serif' font-size='6' font-weight='700' fill='%23a9d4f7'%3EV%3C/text%3E%3C/svg%3E") 2 2, auto;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "VT323", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 30%),
    linear-gradient(180deg, #dbe3ec 0%, #e8e5de 38%, #d4d3cf 100%);
  cursor: var(--cursor);
}

a,
button {
  cursor: var(--cursor);
}

button {
  font: inherit;
  color: inherit;
  background: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.18;
  pointer-events: none;
}

.desktop-shell,
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar,
.window,
.desktop-icon,
.folder-item,
.contact-card,
.archive-card,
.cafe-card,
.ui-button {
  border: 1px solid rgba(82, 92, 108, 0.75);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), inset -1px -1px 0 rgba(116, 128, 143, 0.3), var(--pixel-shadow);
}

.top-bar {
  margin: 12px 12px 0;
  padding: 10px 16px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 239, 0.8));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang-chip {
  min-width: 54px;
  padding: 6px 12px;
  border: 1px solid rgba(82, 92, 108, 0.75);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(252, 252, 249, 0.96), rgba(214, 222, 232, 0.92));
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), inset -1px -1px 0 rgba(116, 128, 143, 0.3), var(--pixel-shadow);
  font-size: 1rem;
}

.lang-chip.is-active {
  background: linear-gradient(180deg, #9cb2cd, #7e95b4);
  color: #f7fbff;
}

.window-dock {
  margin: 10px 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dock-chip {
  padding: 7px 14px;
  border: 1px solid rgba(82, 92, 108, 0.75);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(252, 252, 249, 0.96), rgba(204, 214, 226, 0.9));
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), inset -1px -1px 0 rgba(116, 128, 143, 0.3), var(--pixel-shadow);
  font-size: 1.1rem;
}

.dock-chip.is-hidden {
  display: none;
}

.brand-cluster,
.top-meta,
.page-nav,
.window-buttons,
.hero-actions,
.rating-row,
.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apple-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #cedef0, #7f93ad);
  border: 1px solid rgba(70, 81, 94, 0.85);
}

.brand-title,
.page-nav a,
.taskbar-tabs a,
.start-pill,
.back-link,
.desktop-icon span:last-child,
.folder-item,
.contact-label,
.ui-button {
  letter-spacing: 0.04em;
}

.brand-title {
  font-size: 1.8rem;
}

.top-meta,
.browser-toolbar,
.contact-label,
.status-label,
.eyebrow {
  color: var(--muted);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.desktop-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px 12px 0;
}

.icon-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desktop-icon {
  background: rgba(247, 244, 238, 0.72);
  padding: 10px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 96px;
  font-size: 1.1rem;
}

.desktop-icon:hover,
.page-nav a:hover,
.folder-item:hover,
.contact-card:hover,
.ui-button:hover {
  transform: translateY(-2px);
}

.icon-art {
  width: 40px;
  height: 32px;
  position: relative;
  image-rendering: pixelated;
}

.icon-folder {
  background: linear-gradient(180deg, #f5e794 0 32%, #dfcc63 32% 100%);
  border: 2px solid #363b44;
}

.icon-folder::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 8px;
  top: -8px;
  left: 4px;
  border: 2px solid #363b44;
  border-bottom: none;
  background: #e6d780;
}

.icon-drive,
.icon-mail,
.icon-profile,
.icon-note {
  border: 2px solid #363b44;
  background: linear-gradient(180deg, #e9eef4, #a9b5c4);
}

.icon-drive::before,
.icon-mail::before,
.icon-profile::before,
.icon-note::before,
.icon-note::after {
  content: "";
  position: absolute;
}

.icon-drive::before {
  inset: 6px 8px 8px;
  background: #8bbf8b;
  border: 2px solid #363b44;
}

.icon-mail::before {
  inset: 7px 6px;
  border: 2px solid #363b44;
  background:
    linear-gradient(135deg, transparent 49%, #363b44 50%, #363b44 54%, transparent 55%),
    linear-gradient(225deg, transparent 49%, #363b44 50%, #363b44 54%, transparent 55%),
    #f7f3ec;
}

.icon-profile {
  border-radius: 50% 50% 10px 10px;
}

.icon-profile::before {
  width: 12px;
  height: 12px;
  border: 2px solid #363b44;
  border-radius: 50%;
  top: 4px;
  left: 12px;
  background: #f7f3ec;
  box-shadow: 0 14px 0 4px #f7f3ec;
}

.icon-note::before {
  inset: 4px 6px;
  background: #fbf9f1;
  border: 2px solid #363b44;
}

.icon-note::after {
  width: 18px;
  height: 2px;
  left: 11px;
  top: 11px;
  background: #6b86a7;
  box-shadow: 0 6px 0 #6b86a7, 0 12px 0 #6b86a7;
}

.desktop-canvas {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border-radius: 24px 24px 10px 10px;
  background:
    radial-gradient(circle at top, rgba(248, 250, 252, 0.9), rgba(212, 218, 225, 0.55) 36%, rgba(189, 194, 200, 0.65) 100%),
    linear-gradient(180deg, rgba(166, 185, 207, 0.25), rgba(248, 246, 240, 0.4));
  border: 1px solid rgba(92, 102, 114, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.window {
  background: var(--bg-panel);
  border-radius: 18px 18px 10px 10px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.desktop-canvas .window {
  position: absolute;
  width: min(540px, calc(100% - 32px));
}

.active {
  z-index: 5;
}

.window-bar {
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(194, 204, 216, 0.92));
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(95, 107, 122, 0.45);
}

.window-bar p,
.back-link,
.page-nav a,
.taskbar-tabs a,
.start-pill,
.folder-item,
.contact-card strong,
.desktop-icon,
.ui-button {
  margin: 0;
  font-size: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.window-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(74, 83, 95, 0.75);
  background: linear-gradient(180deg, #fff, #bcc7d3);
}

.window-control {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(74, 83, 95, 0.75);
  background: linear-gradient(180deg, #fdfefe, #d8e0ea);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.85);
}

.window-control:hover {
  transform: scale(1.08);
}

.close-control {
  background: linear-gradient(180deg, #f7c7cb, #dd8e93);
}

.minimize-control {
  background: linear-gradient(180deg, #f8efbd, #d2bd67);
}

.window.is-closed {
  display: none;
}

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

.window-body {
  padding: 18px;
}

.hero-window {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
}

.hero-card,
.status-panel,
.profile-photo,
.profile-copy,
.cafe-copy,
.folder-sidebar,
.file-browser,
.contact-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(134, 144, 156, 0.5);
  border-radius: 14px;
  padding: 16px;
}

.hero-card h1,
.page-intro h1,
.folder-sidebar h1,
.contact-window h1 {
  margin: 8px 0 10px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 0.92;
  font-weight: 400;
}

.lead,
.profile-copy p,
.page-intro p,
.contact-text,
.cafe-copy p {
  font-size: 1.45rem;
  line-height: 1.1;
}

.profile-window .profile-copy p {
  font-size: 1.2rem;
  line-height: 1.08;
}

.ui-button,
.folder-item,
.page-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eff3f7, #b6c4d4);
}

.ui-button.secondary {
  background: linear-gradient(180deg, #fbfaf6, #d8d2c7);
}

.status-screen {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(153, 176, 201, 0.35), rgba(255, 255, 255, 0.75));
  margin-bottom: 14px;
}

.status-screen strong,
.rating,
.contact-card strong {
  font-size: 1.35rem;
}

.status-list,
.folder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-window {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
}

.profile-photo {
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(180deg, rgba(229, 224, 216, 0.7), rgba(188, 203, 223, 0.65));
}

.photo-placeholder {
  width: min(100%, 148px);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
  font-family: "Instrument Serif", serif;
  font-size: 2.2rem;
  border: 1px solid rgba(101, 111, 126, 0.4);
}

.profile-image {
  width: min(100%, 160px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(101, 111, 126, 0.4);
  box-shadow: 0 10px 24px rgba(38, 43, 54, 0.16);
}

.mini-window {
  width: 280px;
}

.mini-note {
  font-size: 1.35rem;
  line-height: 1.1;
}

.page-top-bar {
  margin-bottom: 18px;
}

.page-nav a.active,
.folder-item.active {
  background: linear-gradient(180deg, #9cb2cd, #7e95b4);
  color: #f7fbff;
}

.page-content {
  flex: 1;
  padding: 0 12px 16px;
}

.app-window {
  max-width: 1180px;
  margin: 0 auto;
}

.project-layout,
.archive-layout {
  display: grid;
  gap: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cafe-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
}

.cafe-trigger {
  padding: 0;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.cafe-trigger:hover {
  transform: translateY(-4px);
}

.cafe-trigger.active {
  border-color: rgba(83, 108, 146, 0.92);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), inset -1px -1px 0 rgba(116, 128, 143, 0.3), 0 0 0 2px rgba(132, 160, 197, 0.45), var(--pixel-shadow);
}

.cafe-photo,
.archive-thumb {
  min-height: 220px;
  border-bottom: 1px solid rgba(102, 114, 128, 0.35);
  background-size: cover;
}

.cafe-photo-image {
  display: block;
  width: 100%;
  min-height: 220px;
  max-height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(102, 114, 128, 0.35);
}

.warm-light {
  background:
    linear-gradient(180deg, rgba(255, 236, 177, 0.18), rgba(86, 56, 22, 0.55)),
    radial-gradient(circle at top left, #fff3d6, transparent 30%),
    linear-gradient(135deg, #d5b784, #7b5539);
}

.window-blue {
  background:
    linear-gradient(180deg, rgba(221, 235, 255, 0.2), rgba(39, 56, 83, 0.5)),
    radial-gradient(circle at center, #eef6ff, transparent 28%),
    linear-gradient(135deg, #97aec8, #48596d);
}

.grainy-brown {
  background:
    linear-gradient(180deg, rgba(255, 241, 220, 0.16), rgba(50, 35, 19, 0.58)),
    radial-gradient(circle at 20% 20%, #fff7e1, transparent 20%),
    linear-gradient(135deg, #b88b62, #583924);
}

.nested-window {
  margin-top: 8px;
}

.cafe-detail-window {
  margin-bottom: 6px;
}

.photo-pop-body {
  padding: 10px;
}

.photo-pop-body img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(102, 114, 128, 0.35);
}

.project-photo-browser {
  position: relative;
}

.project-window-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.project-pop-window {
  position: fixed;
  width: min(300px, calc(100% - 24px));
  pointer-events: auto;
}

.project-pop-body img {
  background: rgba(255, 255, 255, 0.72);
}

.cafe-detail-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

.cafe-detail-visuals {
  display: grid;
  gap: 12px;
}

.cafe-detail-photo,
.cafe-detail-image {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(102, 114, 128, 0.35);
}

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

.gallery-thumb {
  padding: 0;
  border: 1px solid rgba(102, 114, 128, 0.45);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-thumb.active {
  border-color: rgba(83, 108, 146, 0.92);
  box-shadow: 0 0 0 2px rgba(132, 160, 197, 0.4);
}

.cafe-detail-gallery.is-hidden {
  display: none;
}

.cafe-detail-copy {
  display: grid;
  gap: 14px;
}

.detail-heading h2 {
  margin: 0;
}

.detail-location {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  text-transform: uppercase;
}

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

.metric-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(134, 144, 156, 0.5);
  background: rgba(255, 255, 255, 0.62);
}

.metric-card span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 1rem;
}

.metric-card strong {
  display: block;
  margin: 6px 0 10px;
  font-size: 1.45rem;
}

.metric-card p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.05;
}

.archive-layout {
  grid-template-columns: 270px 1fr;
}

.folder-sidebar,
.file-browser {
  min-height: 620px;
}

.browser-toolbar {
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(243, 245, 248, 0.85);
  border-radius: 12px;
  margin-bottom: 16px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.archive-card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 12px;
}

.archive-trigger {
  text-align: left;
}

.archive-card p {
  margin: 10px 0 2px;
  font-size: 1.25rem;
}

.archive-thumb-image {
  display: block;
  width: 100%;
  min-height: 220px;
  max-height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(102, 114, 128, 0.35);
}

.archive-browser {
  position: relative;
}

.archive-window-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.archive-pop-window {
  position: fixed;
  width: min(420px, calc(100% - 24px));
  pointer-events: auto;
}

.archive-pop-body img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
}

.city-one {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(18, 25, 42, 0.45)),
    linear-gradient(135deg, #8ba0bc, #3e4855);
}

.city-two {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(26, 34, 55, 0.42)),
    linear-gradient(135deg, #bcc6d1, #6b7280);
}

.cafe-one {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(68, 41, 16, 0.42)),
    linear-gradient(135deg, #d8bc8f, #805437);
}

.cafe-two {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(68, 41, 16, 0.38)),
    linear-gradient(135deg, #edd9bd, #a46d3c);
}

.texture-one {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(44, 46, 58, 0.28)),
    linear-gradient(135deg, #cfc6c3, #9ca3af);
}

.texture-two {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(33, 44, 51, 0.3)),
    linear-gradient(135deg, #b2c5c5, #65747a);
}

.archive-card.hidden {
  display: none;
}

.contact-content {
  display: grid;
  place-items: center;
}

.contact-window {
  width: min(780px, calc(100vw - 24px));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.contact-card {
  text-decoration: none;
  color: inherit;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(218, 226, 236, 0.8));
}

@media (max-width: 980px) {
  .top-bar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .lang-switcher {
    margin-left: 0;
  }

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

  .icon-column {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .desktop-canvas {
    min-height: auto;
  }

  .desktop-canvas .window {
    width: calc(100% - 24px);
  }

  .hero-window,
  .profile-window,
  .archive-layout,
  .project-grid,
  .contact-grid,
  .cafe-detail-body,
  .detail-metrics {
    grid-template-columns: 1fr;
  }

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

  .archive-pop-window {
    width: min(420px, calc(100% - 24px));
  }

  .project-pop-window {
    width: min(300px, calc(100% - 24px));
  }

  .folder-sidebar,
  .file-browser {
    min-height: auto;
  }

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

@media (max-width: 640px) {
  .top-bar,
  .taskbar {
    border-radius: 14px;
  }

  .top-bar {
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-cluster,
  .page-nav,
  .lang-switcher,
  .window-dock {
    width: 100%;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .top-meta {
    display: none;
  }

  .lang-switcher {
    justify-content: flex-start;
  }

  .lang-chip {
    min-width: 60px;
  }

  .window-dock {
    margin: 10px 12px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dock-chip {
    width: 100%;
    text-align: center;
  }

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

  .desktop-icon {
    min-height: 88px;
  }

  .desktop-canvas {
    min-height: auto;
    padding: 12px;
    display: grid;
    gap: 14px;
  }

  .desktop-canvas .window {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: 100%;
  }

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

  .page-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .window-bar {
    flex-wrap: wrap;
  }

  .window-body {
    padding: 14px;
  }

  .mobile-hide {
    display: none;
  }

  .gallery-thumb,
  .archive-trigger,
  .project-pop-window,
  .archive-pop-window {
    pointer-events: none;
  }
}
