/* ══════════════════════════════════════════════════
   MAKOS FULL RESPONSIVE DESIGN SYSTEM & NATIVE MODALS
   ══════════════════════════════════════════════════ */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --bg-dark: #000000;
  --text-dark: #111827;
  --text-muted: #6B7280;
  --mac-blue: #007AFF;
  --mac-yellow: #EAB308;
  --dock-bg: rgba(26, 26, 26, 0.75);
  --dock-border: rgba(255, 255, 255, 0.12);
  --modal-bg: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: #FFFFFF;
  user-select: none;
  -webkit-user-select: none;
}

/* ═══ DESKTOP WORKSPACE ═══ */
.desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ═══ TOP LEFT BRAND LOGO (Like macOS Apple Logo) ═══ */
.brand-logo {
  position: absolute;
  top: 24px;
  left: 32px;
  z-index: 100;
  font-family: "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.brand-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .brand-logo {
    top: 18px;
    left: 20px;
    font-size: 14px;
  }
}

/* ═══ TOP RIGHT SYSTEM TOOLBAR (macOS Spotlight / Accessibility) ═══ */
.top-menu-bar {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.menu-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.menu-icon-btn:active {
  transform: scale(0.92);
}

.menu-icon-btn.active {
  background: var(--mac-blue);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 122, 255, 0.6);
}

@media (max-width: 768px) {
  .top-menu-bar {
    top: 14px;
    right: 18px;
  }
}

/* ═══ WALLPAPER ═══ */
.wallpaper-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.wallpaper-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: brightness(0.92) contrast(1.05);
}

.wallpaper-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.65) 95%);
  pointer-events: none;
}

/* ═══ BASE ICON STYLES ═══ */
.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  border-radius: 12px;
  outline: none;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desktop-icon:hover {
  transform: scale(1.06);
}

.desktop-icon:active {
  transform: scale(0.95);
}

.icon-thumb-wrapper {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.2s, transform 0.2s;
}

.desktop-icon.selected .icon-thumb-wrapper {
  box-shadow: 0 8px 28px rgba(0, 122, 255, 0.6), 0 0 0 2px var(--mac-blue);
}

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

.icon-label {
  font-size: 11.5px;
  font-weight: 500;
  color: #E5E7EB;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-align: center;
  transition: background-color 0.15s, color 0.15s;
}

.desktop-icon.selected .icon-label {
  background-color: var(--mac-blue);
  color: #FFFFFF;
  text-shadow: none;
}

/* ══════════════════════════════════════════════════
   1. DESKTOP FORMAT (> 1200px)
   ══════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .icons-container {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: auto;
  }

  .desktop-icon {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
  }

  .desktop-icon:hover {
    transform: translate(-50%, -50%) scale(1.06);
  }

  .desktop-icon:active {
    transform: translate(-50%, -50%) scale(0.95);
  }

  .icon-thumb-wrapper {
    width: 72px;
    height: 72px;
  }

  /* Absolute organic placement */
  .icon-pos-champ    { left: 26%; top: 30%; }
  .icon-pos-silences { left: 66%; top: 20%; }
  .icon-pos-revolte  { left: 74%; top: 41%; }
  .icon-pos-water    { left: 43%; top: 49%; }
  .icon-pos-lisiere  { left: 23%; top: 61%; }
  .icon-pos-elan     { left: 68%; top: 62%; }
  .icon-pos-boots    { left: 46%; top: 76%; }
  .icon-pos-road     { left: 12%; top: 42%; }
  .icon-pos-flyer    { left: 47%; top: 24%; }
  .icon-pos-wein     { left: 87%; top: 24%; }
}

/* ══════════════════════════════════════════════════
   2. TABLET FORMAT (810px - 1199.98px)
   ══════════════════════════════════════════════════ */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .icons-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 32px 48px;
    width: 100%;
    max-width: 680px;
    z-index: 10;
    justify-items: center;
    align-items: center;
  }

  .desktop-icon {
    position: static;
    transform: none;
  }

  .desktop-icon:hover {
    transform: scale(1.06);
  }

  .icon-thumb-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .icon-label {
    font-size: 12px;
  }
}

/* ══════════════════════════════════════════════════
   3. HANDY / PHONE FORMAT (< 809.98px)
   ══════════════════════════════════════════════════ */
@media (max-width: 809.98px) {
  .icons-container {
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 14px 36px;
    width: 100%;
    max-width: 290px;
    z-index: 10;
    justify-items: center;
    align-items: center;
  }

  .desktop-icon {
    position: static;
    transform: none;
  }

  .desktop-icon:hover {
    transform: scale(1.04);
  }

  .icon-thumb-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 15px;
  }

  .icon-label {
    font-size: 11px;
    padding: 1px 5px;
  }
}

@media (max-width: 809.98px) and (max-height: 700px) {
  .icons-container {
    top: 48%;
    gap: 8px 24px;
    max-width: 260px;
  }

  .icon-thumb-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 13px;
  }

  .icon-label {
    font-size: 10px;
  }
}

/* ═══ FLOATING DOCK (macOS Style) ═══ */
.dock {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.dock-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  height: 72px;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  box-sizing: border-box;
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  transform-origin: bottom center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Fluid mouse tracking when hovering dock on desktop */
.dock-container.is-hovering .dock-item {
  transition: transform 0.04s ease-out;
}

/* Fallback hover on touch/mobile without cursor tracking */
@media (hover: none), (max-width: 1199.98px) {
  .dock-item:hover {
    transform: scale(1.12) translateY(-3px);
  }
}

.dock-item:active {
  transform: scale(0.92);
}

.dock-icon-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-icon-img, .dock-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.dock-divider {
  width: 1px;
  height: 48px;
  background: rgba(229, 229, 234, 0.4);
  border-radius: 64px;
  margin: 0;
}

/* Dock Tooltips - 1-to-1 Framer Reference */
.dock-tooltip {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #FFFFFF;
  color: #000000;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 64px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooltip-arrow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #FFFFFF;
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

@media (max-width: 809.98px) {
  .dock {
    bottom: 16px;
  }
  .dock-container {
    padding: 6px 10px;
    gap: 8px;
    border-radius: 16px;
  }
  .dock-item {
    width: 38px;
    height: 38px;
  }
  .dock-tooltip {
    display: none;
  }
}

/* ══════════════════════════════════════════════════
   MODAL WINDOW & SYSTEM DIALOGS
   ══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.macos-window {
  position: relative;
  width: 92%;
  max-width: 960px;
  max-height: 86vh;
  background: var(--modal-bg);
  color: var(--text-dark);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.modal-overlay.active .macos-window {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Window Titlebar */
.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  cursor: grab;
  flex-shrink: 0;
}

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

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
}

.traffic-light.close { background-color: #FF5F56; border: 1px solid #E0443E; }
.traffic-light.minimize { background-color: #FFBD2E; border: 1px solid #DEA123; }
.traffic-light.maximize { background-color: #27C93F; border: 1px solid #1AAB29; }

.traffic-light::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: none;
}

.traffic-lights:hover .traffic-light::after {
  opacity: 0.75;
}

.traffic-light.close::after {
  content: '✕';
  font-size: 7.5px;
  color: #4D0000;
  font-weight: 800;
  line-height: 1;
}

.traffic-light.minimize::after {
  content: '–';
  font-size: 8.5px;
  color: #5A3C00;
  font-weight: 800;
  line-height: 1;
  margin-top: -1px;
}

.traffic-light.maximize::after {
  content: '＋';
  font-size: 7.5px;
  color: #004D10;
  font-weight: 800;
  line-height: 1;
}

.traffic-light:hover {
  filter: brightness(0.9);
}

.window-title {
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
  text-align: center;
}

.titlebar-placeholder {
  width: 52px;
}

.mobile-top-bar {
  display: none;
}

/* Window Scrollable Content */
.window-content {
  padding: 32px 36px 40px;
  overflow-y: auto;
  user-select: text;
  -webkit-user-select: text;
}

.window-content.no-padding {
  padding: 0;
  display: flex;
  height: 100%;
  overflow: hidden;
}

.window-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
  margin-bottom: 14px;
}

.window-content p.desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 28px;
}

/* Meta Grid (Project Details) */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid #E5E7EB;
}

.meta-item .meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9CA3AF;
  margin-bottom: 4px;
}

.meta-item .meta-val {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
}

/* Gallery Grid (Project Details) */
.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #F3F4F6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.gallery-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════
   ABOUT ME MODAL (REFERENCE EXACT)
   ══════════════════════════════════════════════════ */
.macos-window.about-window {
  max-width: 460px;
}

.macos-window.about-window .window-content {
  padding: 24px 26px 28px;
}

.macos-window.notes-window {
  max-width: 920px;
}

.about-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-page-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #000000;
  margin-bottom: 0px;
}

.about-top-grid {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.about-portrait-card {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 0.75 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E8E8E8;
  background: #F8F9FA;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.about-metadata-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}

.about-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #E8E8E8;
}

.about-meta-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9CA3AF;
}

.about-meta-val {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about-meta-val a {
  color: #007AFF;
  text-decoration: none;
  transition: opacity 0.15s;
}

.about-meta-val a:hover {
  text-decoration: underline;
}

.about-bio-card {
  background: #EAEAEA;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #000000;
}

.about-bio-card p + p {
  margin-top: 10px;
}

.about-location-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-section-heading {
  font-size: 12.5px;
  font-weight: 600;
  color: #111827;
}

.about-map-container {
  width: 100%;
  height: 125px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E8E8E8;
}

.about-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.about-actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.about-primary-btn {
  display: block;
  width: 100%;
  padding: 11px;
  background: #EAEAEA;
  color: #000000;
  text-align: center;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

.about-primary-btn:hover {
  background: #DFDFDF;
  color: #000000;
}

.about-sub-actions {
  display: flex;
  gap: 8px;
}

.about-sub-btn {
  flex: 1;
  padding: 9px 6px;
  background: #F4F4F5;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.about-sub-btn:hover {
  background: #E5E7EB;
  color: #111827;
}

/* ══════════════════════════════════════════════════
   APPLE NOTES APP SPLIT-VIEW (2-COLUMNS)
   ══════════════════════════════════════════════════ */
.notes-app-container {
  display: flex;
  width: 100%;
  height: 560px;
  max-height: 75vh;
}

.notes-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #F8F9FA;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
}

.notes-search-box {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #E5E7EB;
}

.notes-search-input {
  width: 100%;
  padding: 7px 12px 7px 30px;
  font-size: 12.5px;
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%239CA3AF" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 10px center;
  outline: none;
  color: #111827;
}

.notes-search-input:focus {
  border-color: var(--mac-blue);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.note-card {
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.note-card:hover {
  background: rgba(0, 0, 0, 0.04);
}

.note-card.active {
  background: #FFE8A3;
  border-color: #FCD34D;
}

.note-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 11.5px;
}

.note-card-date {
  color: #6B7280;
  font-weight: 500;
  white-space: nowrap;
}

.note-card.active .note-card-date {
  color: #92400E;
}

.note-card-snippet {
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-card.active .note-card-snippet {
  color: #78350F;
}

/* Notes Editor Panel */
.notes-editor {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  background: #FFFFFF;
  user-select: text;
  -webkit-user-select: text;
}

.note-editor-date {
  font-size: 11.5px;
  font-weight: 500;
  color: #9CA3AF;
  text-align: center;
  margin-bottom: 18px;
}

.note-editor-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.note-editor-body {
  font-size: 14.5px;
  line-height: 1.68;
  color: #374151;
}

.note-editor-body p {
  margin-bottom: 16px;
}

.note-editor-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 20px 0 10px;
}

.note-editor-body ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.note-editor-body li {
  margin-bottom: 6px;
}

.note-callout {
  background: #F9FAFB;
  border-left: 3px solid var(--mac-blue);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 13.5px;
  color: #4B5563;
  line-height: 1.6;
}

.note-editor-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 13px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}

.note-editor-body th, .note-editor-body td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}

.note-editor-body th {
  background: #F8F9FA;
  font-weight: 700;
  color: #111827;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.note-editor-body tr:hover {
  background: #F9FAFB;
}

.note-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  background: #EFF6FF;
  color: #1D4ED8;
  white-space: nowrap;
}

/* ═══ MOBILE MODAL ADAPTATION (< 809.98px) ═══ */
@media (max-width: 809.98px) {
  .modal-overlay {
    background: #FFFFFF;
    backdrop-filter: none;
    align-items: stretch;
    justify-content: stretch;
  }

  .macos-window {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
  }

  .window-titlebar {
    display: none;
  }

  .mobile-top-bar {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 50;
    border-bottom: 1px solid #E5E7EB;
  }

  .mobile-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .window-content {
    padding: 16px 20px 60px;
    -webkit-overflow-scrolling: touch;
  }

  .window-content.no-padding {
    flex-direction: column;
    overflow-y: auto;
  }

  .notes-app-container {
    flex-direction: column;
    height: auto;
    max-height: none;
  }

  .notes-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
  }

  .notes-editor {
    padding: 24px 20px;
  }
}


/* ══════════════════════════════════════════════════
   PROJEKTFENSTER: Video oben, Text, Stills, Behind the Scenes
   ══════════════════════════════════════════════════ */
.project-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  margin-bottom: 30px;
}
.project-video iframe,
.project-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.project-text { margin-bottom: 8px; }

.project-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9CA3AF;
  margin: 34px 0 14px;
}

.stills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stills-grid .gallery-img-wrap:only-child { grid-column: 1 / -1; }

.bts-grid { columns: 2; column-gap: 14px; }
.bts-item {
  position: relative;
  margin: 0 0 14px;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  background: #F3F4F6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.bts-item img { width: 100%; height: auto; display: block; }
.bts-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

@media (max-width: 809.98px) {
  .project-video { margin-bottom: 22px; border-radius: 10px; }
  .stills-grid { grid-template-columns: 1fr; }
  .bts-grid { columns: 2; column-gap: 10px; }
  .bts-item { margin-bottom: 10px; }
}

/* ══════════════════════════════════════════════════
   macOS SPOTLIGHT SEARCH OVERLAY & ANIMATIONS
   ══════════════════════════════════════════════════ */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 16vh;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.spotlight-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.spotlight-window {
  width: 90%;
  max-width: 640px;
  background: rgba(30, 32, 38, 0.88);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  transform: scale(0.95) translateY(-8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.spotlight-overlay.active .spotlight-window {
  transform: scale(1) translateY(0);
}

.spotlight-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-search-icon {
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 19px;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.3;
}

.spotlight-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 300;
}

.spotlight-shortcut-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  user-select: none;
}

.spotlight-results {
  max-height: 410px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 10px 10px;
}

.spotlight-results::-webkit-scrollbar {
  width: 6px;
}

.spotlight-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.spotlight-results::-webkit-scrollbar-track {
  background: transparent;
}

.spotlight-group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
  padding: 8px 10px 4px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s ease;
  margin-bottom: 2px;
  text-decoration: none;
}

.spotlight-item:hover,
.spotlight-item.active {
  background: var(--mac-blue);
}

.spotlight-item-thumb {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.spotlight-item-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}

.spotlight-item.active .spotlight-item-icon-wrap {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.spotlight-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spotlight-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.12s;
}

.spotlight-item.active .spotlight-item-sub {
  color: rgba(255, 255, 255, 0.85);
}

.spotlight-item-action {
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.18);
}

.spotlight-item:hover .spotlight-item-action,
.spotlight-item.active .spotlight-item-action {
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
}

.spotlight-empty {
  padding: 36px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

@media (max-width: 768px) {
  .spotlight-overlay {
    padding-top: 8vh;
  }
  .spotlight-window {
    width: 94%;
  }
  .spotlight-input {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  }
  .spotlight-results {
    max-height: 52vh;
  }
}

/* ══════════════════════════════════════════════════
   ACCESSIBILITY & KEYBOARD FOCUS STYLES (WCAG 2.1)
   ══════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--mac-blue) !important;
  outline-offset: 3px !important;
}

.desktop-icon:focus-visible,
.dock-item:focus-visible,
.menu-icon-btn:focus-visible,
.traffic-light:focus-visible,
.mobile-back-btn:focus-visible,
.about-primary-btn:focus-visible,
.about-sub-btn:focus-visible,
.note-card:focus-visible {
  outline: 2px solid var(--mac-blue) !important;
  outline-offset: 4px !important;
}


/* ══════════════════════════════════════════════════
   PHOTOS APP (04.10.2026)
   ══════════════════════════════════════════════════ */
.macos-window.photos-window { max-width: 980px; }

.photos-app { padding: 18px 20px 24px; }
.photos-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 2px 2px 14px;
}
.photos-head-title { font-size: 1.35rem; font-weight: 700; color: var(--text-dark); }
.photos-head-count { font-size: 0.82rem; color: var(--text-muted); }

.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.photos-cell {
  all: unset;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
  background: #f2f2f2;
}
.photos-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.photos-cell:hover img { transform: scale(1.04); }
.photos-cell:focus-visible { outline: 2px solid var(--mac-blue); outline-offset: -2px; }

@media (max-width: 809.98px) {
  .photos-app { padding: 12px 10px 20px; }
  .photos-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
}

.photo-viewer {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.photo-viewer.active { opacity: 1; pointer-events: auto; }
.pv-img {
  max-width: calc(100vw - 140px); max-height: calc(100vh - 80px);
  object-fit: contain; display: block;
}
.pv-btn {
  all: unset; cursor: pointer;
  position: absolute; color: #fff;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.12);
  font-size: 26px; line-height: 1;
  transition: background 0.2s ease;
}
.pv-btn:hover { background: rgba(255, 255, 255, 0.24); }
.pv-btn:focus-visible { outline: 2px solid #fff; }
.pv-close { top: 18px; right: 18px; font-size: 18px; }
.pv-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.pv-next { right: 18px; top: 50%; transform: translateY(-50%); }
.pv-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; font-variant-numeric: tabular-nums;
}
@media (max-width: 809.98px) {
  .pv-img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .pv-prev, .pv-next { top: auto; bottom: 8px; transform: none; }
  .pv-count { bottom: 22px; }
}

/* Fotos-App: Fenster muss scrollen (no-padding sperrt sonst overflow) */
.macos-window.photos-window .window-content.no-padding {
  display: block;
  overflow-y: auto;
}

/* Dock-Hover wie am 30.09.: ein Icon hebt sich leicht, keine Welle (04.10.) */
.dock-item {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dock-item:hover {
  transform: scale(1.15) translateY(-4px);
}
.dock-item:active {
  transform: scale(0.95);
}

/* ══════════════════════════════════════════════════
   DATENSCHUTZ: KLICK-ZUM-LADEN, IMPRESSUM (04.10.2026)
   ══════════════════════════════════════════════════ */
.menu-legal-link {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.menu-legal-link:hover { color: rgba(255, 255, 255, 0.9); }
@media (max-width: 809.98px) {
  .menu-legal-link { font-size: 0.66rem; }
}

.project-video--consent img {
  filter: brightness(0.62);
}
.yt-consent-btn {
  all: unset;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.yt-play {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}
.yt-play::after {
  content: '';
  position: absolute;
  left: 27px; top: 21px;
  border-left: 20px solid #111;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.yt-consent-btn:hover .yt-play { transform: scale(1.06); background: #fff; }
.yt-consent-btn:focus-visible .yt-play { outline: 2px solid #fff; outline-offset: 4px; }
.yt-consent-note {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  margin: 0;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}
.yt-consent-note a { color: inherit; pointer-events: auto; }

.map-consent {
  all: unset;
  box-sizing: border-box;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  background: #F4F4F5;
  text-align: center;
  padding: 0 16px;
}
.map-consent:hover { background: #ECECEE; }
.map-consent:focus-visible { outline: 2px solid var(--mac-blue); outline-offset: -2px; }
.map-consent-title { font-weight: 600; color: var(--text-dark); font-size: 0.9rem; }
.map-consent-note { color: var(--text-muted); font-size: 0.72rem; }

.legal-content { max-width: 640px; }
.legal-content h1 { font-size: 1.4rem; margin: 0 0 14px; }
.legal-content h1:not(:first-child) { margin-top: 34px; }
.legal-content p { font-size: 0.86rem; line-height: 1.55; color: var(--text-dark); margin: 0 0 12px; }
.legal-content a { color: var(--mac-blue); }
.legal-date { color: var(--text-muted) !important; }

/* Weiteres Video ohne Vorschaubild */
.project-video--plain {
  background: linear-gradient(135deg, #1c1c22, #2a2433);
}
.yt-plain-title {
  position: absolute;
  top: 14px; left: 16px; right: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 500;
}
.project-video--consent .yt-plain-title { z-index: 1; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }

/* Handy wie iPhone-Homescreen: 4 Icons pro Reihe, oben beginnend (05.10.2026) */
@media (max-width: 809.98px) {
  .icons-container {
    left: 0;
    right: 0;
    top: calc(env(safe-area-inset-top, 0px) + 64px);
    transform: none;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 22px 0;
    width: auto;
    max-width: none;
    padding: 0 14px;
    align-items: start;
  }
  .icon-thumb-wrapper { width: 60px; height: 60px; border-radius: 14px; }
  .icon-label {
    font-size: 10.5px;
    max-width: 78px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 809.98px) and (max-height: 700px) {
  .icons-container { top: calc(env(safe-area-inset-top, 0px) + 54px); gap: 14px 0; }
  .icon-thumb-wrapper { width: 54px; height: 54px; }
}
@media (max-width: 809.98px) {
  .icon-label {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    line-height: 1.2;
    max-width: 80px;
  }
}

/* Mobile Browser (Chrome iOS/Android): sichtbare Höhe statt 100vh, damit das Dock nicht unter der Browserleiste liegt (05.10.2026) */
/* fest an den sichtbaren Bereich gebunden, egal ob die Browserleiste oben, unten, ein- oder ausgeblendet ist */
.desktop { position: fixed; inset: 0; width: auto; height: auto; }
@media (max-width: 809.98px) {
  .dock { bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); }
}


/* Statische Karte (OSM, lokal) statt eingebetteter Google-Karte (05.10.2026) */
.map-static { position: relative; display: block; width: 100%; height: 100%; }
.map-static img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-attrib {
  position: absolute; right: 4px; bottom: 3px;
  font-size: 9px; color: #333; background: rgba(255, 255, 255, 0.8);
  padding: 0 4px; border-radius: 3px;
}

/* About: Kinderfoto breiter (Querformat), Text rückt nach rechts (05.10.2026) */
.macos-window.about-window { max-width: 520px; }
.about-portrait-card { width: 170px; aspect-ratio: 1 / 1; align-self: center; }
@media (max-width: 809.98px) {
  .about-top-grid { flex-direction: column; align-items: center; }
  .about-portrait-card { width: 60%; }
  .about-metadata-list { width: 100%; }
}

/* Persona-Test 05.10.2026: Startsatz, Dock-Labels am Handy, Fokus, Stills ohne Lücken */
.brand-sub {
  position: absolute;
  top: 46px;
  left: 32px;
  z-index: 100;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.005em;
  pointer-events: none;
}
.macos-window:focus { outline: none; }
.stills-grid { display: block; columns: 2; column-gap: 14px; }
.stills-grid .gallery-img-wrap { break-inside: avoid; margin-bottom: 14px; }
.stills-grid .gallery-img-wrap:only-child { column-span: all; }
@media (max-width: 809.98px) {
  .brand-sub { top: 38px; left: 20px; font-size: 11.5px; }
  .icons-container { top: calc(env(safe-area-inset-top, 0px) + 64px); }
  .stills-grid { columns: 1; }
  /* Dock-Beschriftung dauerhaft sichtbar */
  .dock { bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); }
  .dock-item .dock-tooltip {
    top: auto; bottom: -15px;
    opacity: 1;
    transform: translateX(-50%);
    background: none; padding: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 9px; font-weight: 500;
  }
  .dock-item .dock-tooltip .tooltip-arrow { display: none; }
  .dock-container { padding-bottom: 16px; }
}
@media (max-width: 809.98px) and (max-height: 700px) {
  .icons-container { top: calc(env(safe-area-inset-top, 0px) + 54px); }
}
.macos-window:focus, .macos-window:focus-visible { outline: none !important; }
@media (max-width: 809.98px) {
  .dock-item .dock-tooltip { display: block; }
}

/* Was ich am Set gemacht habe + Kit im About (05.10.2026) */
.onset-line {
  margin: -4px 0 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-dark);
}
.about-kit p { margin: 0 0 6px; font-size: 0.82rem; line-height: 1.5; color: #374151; }
.about-kit .about-avail { color: var(--text-dark); font-weight: 600; }
@media (max-width: 809.98px) {
  /* Fenster füllt genau das Overlay (= sichtbarer Bereich), nicht 100vh */
  .macos-window { height: 100%; max-height: 100%; }
}
@media (min-width: 810px) {
  /* Dock wie am Mac: direkt am unteren Rand */
  .dock { bottom: 10px; }
}
