/* ── Reset & variables ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --mb-h: 28px;
  --dock-h: 82px;
  --text: #fffffe;
  --accent: #a78bfa;
  --win-bg: #f5f5f7;
  --win-bar: #e8e8ed;
  --win-text: #1c1c1e;
  --tl-r: #ff5f57;
  --tl-y: #febc2e;
  --tl-g: #28c840;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body { width: 100%; height: 100%; overflow: hidden; font-family: var(--font); }

/* ── Desktop wallpaper ──────────────────────── */
body {
  background: url('../assets/wallpaper.jpg') center / cover no-repeat fixed;
}

/* ── Aurora background (mobile only) ────────── */
@keyframes aurora {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (max-width: 768px) {
  body {
    background:
      linear-gradient(-45deg,
        #0a0a14 0%, #12102a 20%,
        #0a1520 40%, #14102a 60%,
        #0a0a14 80%, #100a20 100%);
    background-size: 400% 400%;
    animation: aurora 20s ease infinite;
  }

  /* Aurora glows */
  body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }
  body::before {
    width: 70vw; height: 60vh;
    top: 5vh; left: 5vw;
    background: radial-gradient(ellipse, rgba(124,111,205,.14) 0%, transparent 70%);
  }
  body::after {
    width: 50vw; height: 50vh;
    bottom: 10vh; right: 5vw;
    background: radial-gradient(ellipse, rgba(236,100,75,.09) 0%, transparent 70%);
  }
}

/* ── Menu bar ───────────────────────────────── */
.menubar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--mb-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(15,15,20,.32);
  backdrop-filter: blur(22px) saturate(1.9) brightness(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.9) brightness(1.05);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.15);
  border-bottom: .5px solid rgba(0,0,0,.15);
  z-index: 1000;
  user-select: none;
}

.menubar-left, .menubar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.apple-logo-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 4px 6px;
  margin: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background .1s;
}
.apple-logo-btn:hover, .apple-logo-btn.active { background: rgba(255,255,255,.12); }

.apple-logo {
  width: 15px; height: 15px;
  color: rgba(255,255,255,.9);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}

.menu-item {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.85);
  padding: 2px 8px;
  border-radius: 4px;
  cursor: default;
  transition: background .1s;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.menu-item:hover { background: rgba(255,255,255,.12); }
.menu-item.active { font-weight: 600; }
.menu-status-text { cursor: default; font-weight: 400; }
.menu-status-text:hover { background: none; }

/* ── Apple menu dropdown ─────────────────────── */
.apple-menu {
  position: fixed;
  top: var(--mb-h);
  left: 6px;
  min-width: 220px;
  background: rgba(246,246,246,.82);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 .5px rgba(0,0,0,.1);
  padding: 6px 0;
  z-index: 1001;
  font-family: var(--font);
  overflow: hidden;
}
.apple-menu.hidden { display: none; }

.apple-menu-name {
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  padding: 7px 14px;
}

.apple-menu-row {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #1d1d1f;
  padding: 7px 14px;
  text-decoration: none;
  cursor: default;
}
.apple-menu-link { cursor: pointer; }
.apple-menu-link:hover { background: rgba(0,0,0,.06); }
.apple-menu-link-icon { font-size: 11px; opacity: .7; }

.apple-menu-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.apple-menu-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: none;
  color: #6e6e73;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.apple-menu-copy-btn:hover { background: rgba(0,0,0,.08); color: #1d1d1f; }
.apple-menu-copy-btn.copied { color: #1a9c4a; }

.copy-icon { width: 14px; height: 14px; }
.icon-check { display: none; }
.apple-menu-copy-btn.copied .icon-copy { display: none; }
.apple-menu-copy-btn.copied .icon-check { display: block; }

.apple-menu-divider {
  height: 0;
  border-top: .5px solid rgba(0,0,0,.15);
  margin: 4px 0;
}

.status-icon {
  width: 16px; height: auto;
  color: rgba(255,255,255,.85);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.battery { width: 25px; }

.clock {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

/* ── Desktop ────────────────────────────────── */
.desktop {
  position: fixed;
  top: var(--mb-h);
  left: 0; right: 0;
  bottom: var(--dock-h);
  z-index: 1;
  overflow: hidden;
}

/* ── Icon grid (top-right area) ─────────────── */
.icons-grid {
  position: absolute;
  top: 20px;
  right: 40px;
  display: grid;
  grid-template-columns: repeat(4, 88px);
  gap: 16px 18px;
}

/* ── Folder icon ────────────────────────────── */
.folder-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  transition: background .15s;
  -webkit-user-select: none;
  user-select: none;
}
.folder-icon:hover { background: rgba(255,255,255,.1); }
.folder-icon.selected { background: rgba(255,255,255,.15); }

.folder-thumb {
  width: auto;
  height: 76px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.3);
  flex-shrink: 0;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
  position: relative;
}
.folder-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.folder-icon:hover .folder-thumb {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.3);
}
.folder-icon:active .folder-thumb {
  transform: scale(.94);
}

.folder-name {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
  max-width: 86px;
  word-break: break-word;
}

/* ── Window ─────────────────────────────────── */
.win {
  position: fixed;
  width: 800px;
  height: 620px;
  border-radius: 12px;
  background: var(--win-bg);
  box-shadow:
    0 28px 80px rgba(0,0,0,.65),
    0 8px 28px rgba(0,0,0,.3),
    0 0 0 .5px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  transform-origin: center center;
}

.win.hidden { display: none; }

@keyframes win-open {
  from { opacity: 0; transform: scale(.84); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes win-close {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(.87); }
}

.win.opening { animation: win-open .22s cubic-bezier(.2,.8,.4,1) forwards; }
.win.closing { animation: win-close .18s cubic-bezier(.4,0,1,1) forwards; }

/* ── Window title bar ───────────────────────── */
.win-bar {
  flex-shrink: 0;
  height: 42px;
  background: var(--win-bar);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  cursor: default;
  border-bottom: .5px solid rgba(0,0,0,.1);
  position: relative;
}
.win-bar:active { cursor: move; }

.win-controls { display: flex; gap: 8px; flex-shrink: 0; }

.tl {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.tl-r { background: var(--tl-r); }
.tl-y { background: var(--tl-y); }
.tl-g { background: var(--tl-g); }
.tl:hover { filter: brightness(.88); }

.win-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--win-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  pointer-events: none;
}

/* ── Window body (scrollable) ───────────────── */
.win-body {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  scroll-behavior: smooth;
}
.win-body::-webkit-scrollbar { width: 8px; }
.win-body::-webkit-scrollbar-track { background: #f0f0f5; }
.win-body::-webkit-scrollbar-thumb { background: #c8c8cf; border-radius: 4px; }
.win-body::-webkit-scrollbar-thumb:hover { background: #aaaaaf; }

/* ── Project header ─────────────────────────── */
.proj-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid #f0f0f5;
}

.proj-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  margin-bottom: 6px;
}

.proj-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: #555;
  background: #f0f0f5;
  padding: 4px 10px;
  border-radius: 20px;
}

.proj-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  max-width: 640px;
}

/* ── Project images ─────────────────────────── */
.proj-images {
  display: flex;
  flex-direction: column;
}

.proj-images img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Project video thumbnail ─────────────────── */
.proj-video-thumb {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.proj-video-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.82);
}

.proj-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  transition: background 0.3s ease;
}

.proj-video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
}

.proj-video-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px; /* optical center for play triangle */
}

.proj-video-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.proj-video-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.proj-video-cta {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}

/* hover state */
.proj-video-thumb:hover img {
  transform: scale(1.025);
  filter: brightness(0.7);
}

.proj-video-thumb:hover .proj-video-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}

.proj-video-thumb:hover .proj-video-play {
  transform: scale(1.12);
  background: rgba(255,255,255,0.28);
}

/* ── Project footer ─────────────────────────── */
.proj-footer {
  padding: 20px 32px 28px;
  border-top: 1px solid #f0f0f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.proj-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tools-label {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tool-tag {
  font-size: 12px;
  color: #555;
  background: #f5f5f8;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 500;
}

.behance-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #1769ff;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.behance-btn:hover { background: #0f55dd; transform: translateY(-1px); }
.behance-btn:active { transform: translateY(0); }

/* ── Notes window ───────────────────────────── */
.notes-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #fff;
  font-family: var(--font);
}

.notes-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: #f2ecea;
  padding: 14px 0;
  overflow-y: auto;
  border-right: 1px solid rgba(0,0,0,.06);
}

.notes-tab {
  padding: 12px 26px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.notes-tab:hover span { opacity: .7; }
.notes-tab span {
  font-size: 15px;
  font-weight: 600;
  color: #1c1c1e;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: opacity .15s, border-color .15s;
}
.notes-tab.active span { border-bottom-color: #1c1c1e; }

.notes-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 34px;
  scroll-behavior: smooth;
}
.notes-content::-webkit-scrollbar { width: 8px; }
.notes-content::-webkit-scrollbar-track { background: #f0f0f5; }
.notes-content::-webkit-scrollbar-thumb { background: #c8c8cf; border-radius: 4px; }

.notes-para {
  font-size: 15px;
  color: #1c1c1e;
  line-height: 1.4;
  max-width: 640px;
  margin-bottom: 10px;
}

.notes-heading {
  font-size: 17px;
  font-weight: 600;
  color: #1c1c1e;
  margin: 16px 0 8px;
}
.notes-heading:first-child { margin-top: 0; }

/* ── Mac-style checklist ─────────────────────── */
.note-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
}

.note-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.note-check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #c7c7cc;
  background: #fff;
  transition: background .15s, border-color .15s;
}
.note-check-circle svg {
  width: 11px;
  height: 9px;
  opacity: 0;
  transition: opacity .1s;
}

.note-check-item.checked .note-check-circle {
  background: #e2963f;
  border-color: #e2963f;
}
.note-check-item.checked .note-check-circle svg { opacity: 1; }

.note-check-text {
  font-size: 16px;
  color: #1c1c1e;
  line-height: 1.2;
  transition: color .15s;
}
.note-check-item:not(.checked) .note-check-text {
  color: #9a9a9e;
  text-decoration: line-through;
}

/* ── Interests photo grid ───────────────────── */
.notes-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.notes-photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* Notes on mobile: stacked tab bar instead of sidebar */
.mobile-content .notes-body { flex-direction: column; height: auto; overflow: visible; }
.mobile-content .notes-sidebar {
  width: 100%;
  display: flex;
  padding: 0;
  border-right: none;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 5;
  overflow-x: auto;
}
.mobile-content .notes-tab { flex: 1; text-align: center; padding: 14px 8px; }
.mobile-content .notes-content { overflow: visible; padding: 20px 16px 40px; }

/* ── Dock ───────────────────────────────────── */
.dock-wrap {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--dock-h);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding-bottom: 8px;
}

.dock {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(44px) saturate(2);
  -webkit-backdrop-filter: blur(44px) saturate(2);
  border-radius: 18px;
  border: .5px solid rgba(255,255,255,.18);
  box-shadow: 0 4px 24px rgba(0,0,0,.25), inset 0 .5px 0 rgba(255,255,255,.12);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.dock-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.dock-icon svg { width: 100%; height: 100%; display: block; }

.dock-item:hover .dock-icon { transform: translateY(-10px) scale(1.22); }

.dock-sep {
  width: 1px;
  height: 38px;
  background: rgba(255,255,255,.25);
  margin: 0 4px;
  align-self: center;
}

/* ── Maximize transition ────────────────────── */
.win {
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease, border-radius .25s ease;
}
.win.maximized {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ── Dock app popup windows ─────────────────── */
.win-popup {
  width: 480px;
  height: 220px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 88px);
  background: #2c2c2f;
  border-radius: 14px;
}

.win-popup .win-bar {
  background: #2c2c2f;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.win-popup .win-title {
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

.popup-body {
  flex: 1;
  display: flex;
  gap: 22px;
  padding: 24px 28px;
  background: #2c2c2f;
  overflow: hidden;
}

.popup-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}
.popup-icon svg { width: 100%; height: 100%; display: block; }

.popup-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.popup-text p {
  font-size: 14.5px;
  color: rgba(235,235,240,.85);
  line-height: 1.55;
}
.popup-text em { font-style: italic; }

.popup-actions {
  display: flex;
  justify-content: flex-end;
}

.popup-btn {
  background: #3D5FE0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  border-radius: 9px;
  padding: 10px 22px;
  cursor: pointer;
  transition: filter .15s, transform .1s;
}
.popup-btn:hover { filter: brightness(1.08); }
.popup-btn:active { transform: translateY(1px); }

/* ── Arrival Kit window (Figma popup style) ─── */
.arrival-body {
  background: #eeecea;
  padding: 22px 28px 28px;
  overflow-y: auto;
  flex: 1;
  scroll-behavior: smooth;
}
.arrival-body::-webkit-scrollbar { width: 6px; }
.arrival-body::-webkit-scrollbar-track { background: transparent; }
.arrival-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 3px; }

.arr-header {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-bottom: 16px;
}
.arr-thumb {
  width: 77px; height: 77px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
}
.arr-meta { display: flex; flex-direction: column; gap: 6px; }
.arr-title { font-size: 17px; font-weight: 600; color: #202020; line-height: 1.25; }
.arr-subtitle { font-size: 14px; font-weight: 500; color: #202020; line-height: 1.45; }

.arr-desc-card {
  background: #fff;
  border-radius: 13px;
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arr-desc-card p { font-size: 13px; font-weight: 500; color: #797979; line-height: 1.6; }

.arr-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}
.arr-arrow { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; margin-top: 2px; align-self: flex-start; }
.arr-row-text { display: flex; flex-direction: column; gap: 3px; }
.arr-row-label { font-size: 13px; font-weight: 600; color: #000; }
.arr-row-sub { font-size: 13px; font-weight: 600; color: #000; }

.arr-preview { display: flex; flex-direction: column; gap: 20px; margin-bottom: 14px; }
.arr-preview img,
.arr-preview video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 17px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  background: #000;
}
.arr-preview-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.arr-preview-row img,
.arr-preview-row video {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: auto;
  object-fit: cover;
}

.arr-row-preview { flex-wrap: wrap; align-items: flex-end; }
.arr-row-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex-shrink: 0;
}
.arr-stat { font-size: 12px; font-weight: 500; color: #6b6b6b; white-space: nowrap; }
.arr-stat-label { color: #6b6b6b; }
.arr-note { font-size: 12px; font-weight: 500; color: #6b6b6b; white-space: nowrap; }
.arr-link {
  font-size: 12px;
  font-weight: 600;
  color: #0a5cff;
  text-decoration: none;
  white-space: nowrap;
}
.arr-link:hover { text-decoration: underline; }

/* ============================================================
   MOBILE — iPhone home screen layout
   ============================================================ */

/* ── iOS screen wrapper (hidden on desktop) ─── */
.ios-screen {
  display: none;
  position: fixed;
  inset: 0;
  flex-direction: column;
  overflow: hidden;
  z-index: 500;
  font-family: var(--font);
}

/* ── iOS status bar ─────────────────────────── */
.ios-bar {
  flex-shrink: 0;
  height: 50px;
  padding: 14px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ios-time {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ios-status-icons svg { fill: #fff; }

/* ── Portfolio identity ─────────────────────── */
.ios-identity {
  padding: 6px 24px 10px;
  text-align: center;
}
.ios-greeting {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 2px;
}
.ios-name {
  font-size: 26px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 3px;
}
.ios-role {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  font-weight: 400;
}

/* ── App icon grid (paginated, swipeable) ───── */
.ios-pager {
  flex: 1;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.ios-pages {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform .32s cubic-bezier(.25,.9,.4,1);
  will-change: transform;
}

.ios-page {
  width: 50%;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 10px;
  padding: 14px 16px 8px;
  align-content: start;
  height: 100%;
}

.ios-dots {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 2px 0 6px;
}

.ios-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.ios-dot.active {
  background: rgba(255,255,255,.85);
  transform: scale(1.15);
}

.ios-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.ios-icon-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22.5%;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.38);
  transition: transform .12s cubic-bezier(.34,1.56,.64,1),
              opacity .1s ease;
  will-change: transform;
}

.ios-icon-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  draggable: false;
}

.ios-icon:active .ios-icon-img {
  transform: scale(.88);
  opacity: .75;
}

.ios-icon-name {
  font-size: 10px;
  font-weight: 400;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.65);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* ── iOS dock ───────────────────────────────── */
.ios-dock-wrap {
  flex-shrink: 0;
  padding: 8px 24px 24px;
  display: flex;
  justify-content: center;
}

.ios-dock {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border-radius: 26px;
  border: .5px solid rgba(255,255,255,.22);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.ios-dock-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1);
  flex-shrink: 0;
}
.ios-dock-icon svg { width: 100%; height: 100%; display: block; }
.ios-dock-icon:active { transform: scale(.88); }

.ios-dock-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

/* ============================================================
   Mobile project viewer (slides up on tap)
   ============================================================ */
.mobile-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-viewer.hidden { display: none; }

@keyframes mobile-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes mobile-slide-down {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}
.mobile-viewer.opening {
  animation: mobile-slide-up .35s cubic-bezier(.2,.8,.4,1) both;
}
.mobile-viewer.closing {
  animation: mobile-slide-down .28s cubic-bezier(.4,0,1,1) both;
}

/* ── iOS navigation bar ─────────────────────── */
.mobile-nav {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 4px;
  background: rgba(242,242,247,.95);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: .5px solid rgba(0,0,0,.12);
  gap: 4px;
}

.mobile-back {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  color: #007AFF;
  background: none;
  border: none;
  padding: 8px 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font);
}

.mobile-nav-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: #1c1c1e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}

/* ── Mobile scrollable content ──────────────── */
.mobile-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

/* Override desktop-specific rules inside mobile viewer */
.mobile-content .win-body {
  overflow: visible;
  height: auto;
  min-height: 100%;
}
.mobile-content .arrival-body {
  overflow: visible;
  height: auto;
  min-height: 100%;
  padding: 18px 16px 40px;
}
.mobile-content .proj-header  { padding: 20px 16px 16px; }
.mobile-content .proj-title   { font-size: 22px; }
.mobile-content .proj-footer  {
  padding: 16px 16px 40px;
  flex-direction: column;
  align-items: flex-start;
}
.mobile-content .behance-btn  { width: 100%; justify-content: center; }
.mobile-content .arr-header   { gap: 14px; }
.mobile-content .arr-preview-row { gap: 10px; }
.mobile-content .arr-row-meta { gap: 10px; flex-wrap: wrap; margin-left: 24px; width: calc(100% - 24px); }
.mobile-content .arr-row-preview { gap: 6px 8px; }

/* ── Tappable project photos ─────────────────── */
.mobile-content .arr-preview img,
.mobile-content .proj-images img {
  cursor: pointer;
}

/* ── Photo lightbox ──────────────────────────── */
.mobile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-fade-in .18s ease both;
}
.mobile-lightbox.hidden { display: none; }
.mobile-lightbox.closing { animation: lightbox-fade-out .18s ease both; }

@keyframes lightbox-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightbox-fade-out { from { opacity: 1; } to { opacity: 0; } }

.lightbox-img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

.lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-nav.hidden { display: none; }

.lightbox-counter {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Activate iOS layout on phones / narrow tablets
   ============================================================ */
@media (max-width: 768px) {
  .menubar,
  .apple-menu,
  .desktop,
  .dock-wrap { display: none !important; }

  .win { display: none !important; }
  .win-popup:not(.hidden) { display: flex !important; }

  .ios-screen { display: flex; }
}

/* ── Profile name on desktop ────────────────── */
.desktop-name {
  position: absolute;
  bottom: 28px;
  left: 40px;
  pointer-events: none;
}
.desktop-name h1 {
  font-size: 42px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.desktop-name p {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
  letter-spacing: .02em;
}
