/* ============================================================
   00h00 CET — Portfolio
   A personal folder, opened on a computer.
   ============================================================ */

:root {
  --font: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --desk: #d9dce2;
  --desk-2: #c9ccd3;
  --ink: #111;
  --ink-soft: #444;
  --ink-mute: #8a8a8a;
  --paper: #fff;
  --chrome: #f6f6f6;
  --chrome-line: #dcdcdc;
  --sidebar: #f0f0f2;
  --select: #dfe8fb;
  --accent: #1c5cff;
  --red: #ff2d1a;
  --blue: #1e5bff;
  --menubar-h: 26px;
  --pathbar-h: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 30% 10%, #eef0f4 0%, transparent 60%),
    radial-gradient(900px 600px at 80% 90%, #c3c7cf 0%, transparent 55%),
    linear-gradient(180deg, var(--desk) 0%, var(--desk-2) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; }
a { color: inherit; }

/* ---------- MENU BAR ---------- */
.menubar {
  position: fixed; inset: 0 0 auto 0;
  height: var(--menubar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  font-size: 13px;
  background: rgba(240, 240, 243, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  z-index: 50;
}
.menubar-left, .menubar-right { display: flex; align-items: center; gap: 18px; }
.menubar-app { font-weight: 700; letter-spacing: -.01em; }
.menubar-item { color: var(--ink); }
.menubar-tz { color: var(--ink-mute); font-size: 12px; }
#clock { font-variant-numeric: tabular-nums; }

/* ---------- DESKTOP ---------- */
.desktop {
  position: fixed; inset: var(--menubar-h) 0 0 0;
  padding: 26px 22px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.icon {
  width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px 4px;
  border-radius: 6px;
  outline: none;
}
.icon svg { width: 68px; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.icon-doc { width: 54px !important; margin: 4px 0; }
.icon-label {
  font-size: 12px; line-height: 1.2;
  color: var(--ink);
  padding: 1px 7px; border-radius: 4px;
  text-shadow: 0 0 6px rgba(255,255,255,.9);
}
.icon.selected .icon-label, .icon:focus-visible .icon-label {
  background: var(--accent); color: #fff; text-shadow: none;
}
.icon.selected svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)) brightness(.86); }
.icon.bounce svg { animation: bounce .55s cubic-bezier(.3,1.6,.6,1); }
@keyframes bounce { 0%{transform:translateY(0)} 40%{transform:translateY(-10px)} 100%{transform:translateY(0)} }

.desktop-hint {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  margin: 0; font-size: 12px; color: rgba(0,0,0,.45); letter-spacing: .02em;
  transition: opacity .4s;
}
.desktop-hint.fade { opacity: 0; }

/* ---------- WINDOW ---------- */
.window {
  position: fixed;
  top: calc(var(--menubar-h) + 34px);
  left: 50%;
  width: min(1180px, calc(100vw - 72px));
  height: calc(100vh - var(--menubar-h) - 74px);
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: 11px;
  box-shadow:
    0 0 0 .5px rgba(0,0,0,.28),
    0 22px 70px rgba(0,0,0,.28),
    0 2px 6px rgba(0,0,0,.14);
  overflow: hidden;
  z-index: 20;
  transform-origin: 90% 0%;
}
.window[hidden] { display: none; }
.window.opening { animation: open .38s cubic-bezier(.2,.8,.2,1); }
@keyframes open {
  from { opacity: 0; transform: translateX(-50%) scale(.6); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}
.window.closing { animation: close .28s ease-in forwards; }
@keyframes close {
  to { opacity: 0; transform: translateX(-50%) scale(.7); }
}

.titlebar {
  flex: 0 0 38px;
  display: grid; grid-template-columns: 90px 1fr 90px; align-items: center;
  background: linear-gradient(#f9f9f9, #ececec);
  border-bottom: 1px solid var(--chrome-line);
  font-size: 13px;
}
.lights { display: flex; gap: 8px; padding-left: 12px; }
.light {
  width: 12px; height: 12px; border-radius: 50%;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18);
}
.light.red { background: #ff5f57; cursor: pointer; }
.light.yellow { background: #febc2e; }
.light.green { background: #28c840; }
.light.red:hover::after {
  content: ""; display: block; width: 6px; height: 6px; margin: 3px;
  background: radial-gradient(circle, transparent 0 30%, #7a1b14 31% 100%) no-repeat;
  -webkit-mask: linear-gradient(45deg, transparent 44%, #000 45% 55%, transparent 56%), linear-gradient(-45deg, transparent 44%, #000 45% 55%, transparent 56%);
}
.title {
  justify-self: center; display: flex; align-items: center; gap: 6px;
  font-weight: 600; color: #4a4a4a;
}
.title-folder { width: 18px; height: auto; }

.sidebar-toggle {
  justify-self: end; margin-right: 12px;
  width: 28px; height: 22px; border-radius: 5px;
  display: none; flex-direction: column; justify-content: center; gap: 3px; align-items: center;
  cursor: pointer;
}
.sidebar-toggle span { width: 14px; height: 1.5px; background: #666; border-radius: 2px; }

.window-body { flex: 1; display: flex; min-height: 0; }

/* sidebar */
.sidebar {
  flex: 0 0 200px;
  background: var(--sidebar);
  border-right: 1px solid var(--chrome-line);
  padding: 10px 8px;
  overflow-y: auto;
  font-size: 13px;
}
.sidebar-head {
  margin: 8px 8px 4px; font-size: 11px; font-weight: 600; color: #9a9a9a;
}
.sidebar a {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 6px;
  text-decoration: none; color: #2a2a2a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar a:hover { background: rgba(0,0,0,.05); }
.sidebar a.active { background: #dcdce0; }
.sidebar i { flex: 0 0 16px; height: 13px; border-radius: 2px; }
.sidebar i.f { background: linear-gradient(#5fb0ff, #8ccaff); }
.sidebar i.d { background: #fff; border: 1px solid #bbb; height: 15px; width: 12px; flex-basis: 12px; margin: 0 2px; }

/* content */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
  user-select: text;
}

/* ---------- PAGES ---------- */
.page {
  min-height: calc(100vh - var(--menubar-h) - 74px - 38px - var(--pathbar-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 40px;
}

.cover-title {
  margin: 0; text-align: center;
  font-size: clamp(56px, 9vw, 116px); font-weight: 700; line-height: .95; letter-spacing: -.03em;
}
.cover-title span { display: block; }
.cover-title small { display: block; font-size: 12px; font-weight: 400; letter-spacing: .02em; margin: 14px 0; color: var(--ink-soft); }

.star {
  font-size: 22px; color: var(--ink-soft); font-weight: 300;
  min-height: 40vh;
}
.black { background: #000; min-height: 60vh; }

/* intro pages */
.intro { text-align: center; }
.intro h2 { margin: 0 0 10px; font-weight: 400; }
.intro .sub { margin: 0 0 40px; font-size: 12px; color: var(--ink); }
.intro .txt {
  max-width: 520px; margin: 0 auto;
  font-size: 12.5px; line-height: 1.55; text-align: justify; color: var(--ink);
  hyphens: auto;
}
.intro.long .txt { max-width: 720px; }
.ref { text-decoration: underline line-through; }

/* series title treatments */
.t-reference { font-size: 32px; font-style: italic; text-decoration: line-through; text-decoration-thickness: 1px; letter-spacing: -.01em; }
.t-mutation { font-size: 32px; font-style: italic; letter-spacing: .02em; line-height: 1.1; }
.rainbow span { display: inline-block; }
.t-viral { font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.t-postcards { font-size: 34px; font-style: italic; color: var(--red); line-height: 1.05; }
.t-interference { font-size: 34px; font-style: italic; font-weight: 300; color: var(--red); letter-spacing: .01em; }
.t-crisis { font-size: clamp(38px, 5vw, 56px); font-weight: 200; letter-spacing: -.02em; }
.t-info { font-size: 34px; font-style: italic; color: var(--blue); }

/* poem */
.poem { width: min(560px, 100%); font-size: 12.5px; line-height: 1.6; margin-top: 6px; }
.poem p { margin: 0 0 6px; }
.poem .l { text-align: left; }
.poem .r { text-align: right; }
.poem .c { text-align: center; margin-top: 26px; }

/* info */
.info { text-align: left; align-items: center; }
.info h2 { width: min(520px, 100%); text-align: left; margin-bottom: 18px; }
.info-list { margin: 0; width: min(520px, 100%); font-size: 13px; line-height: 2.1; }
.info h2, .info-list { margin-left: auto; margin-right: auto; }
.info-list > div { display: flex; gap: 6px; }
.info-list dt { flex: 0 0 auto; }
.info-list dd { margin: 0; }
.info-list a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.info-list a:hover { color: var(--blue); }

/* artworks — "files" in the folder */
.work { gap: 18px; }
.work img, .work video {
  max-height: 62vh; max-width: min(100%, 640px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 3px;
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.work.wide img, .work.wide video, .work.wide .duo { max-width: min(100%, 860px); }
.work.video video {
  width: min(100%, 720px); aspect-ratio: 16/9; background: #000;
  cursor: default;
}
.work .duo { display: flex; gap: 12px; align-items: flex-start; justify-content: center; max-width: 100%; }
.work .duo img { flex: 0 1 auto; min-width: 0; max-height: 62vh; }
.work:hover img:not(.duo img), .work .duo:hover img { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,0,0,.14); }

figcaption {
  font-size: 11.5px; color: var(--ink); text-align: center; line-height: 1.4;
  padding: 2px 8px; border-radius: 4px;
  transition: background .2s, color .2s;
}
.work:hover figcaption, .grid figure:hover figcaption { background: var(--accent); color: #fff; }
figcaption .pair { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }

/* postcards grid */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px;
  align-items: start; justify-items: center;
  padding-top: 40px; padding-bottom: 40px;
}
.grid figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.grid img { width: 100%; max-width: 230px; cursor: zoom-in; border-radius: 3px; transition: transform .25s, box-shadow .25s; }
.grid figure:hover img { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,0,0,.14); }

/* ---------- PATH BAR ---------- */
.pathbar {
  flex: 0 0 var(--pathbar-h);
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px;
  font-size: 11px; color: #666;
  background: var(--chrome);
  border-top: 1px solid var(--chrome-line);
  white-space: nowrap; overflow: hidden;
}
.pathbar i { width: 5px; height: 5px; border-right: 1px solid #999; border-top: 1px solid #999; transform: rotate(45deg); flex: 0 0 auto; }
.pathbar span:last-child { color: var(--ink); font-weight: 500; }

/* ---------- QUICK LOOK ---------- */
.quicklook {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,20,22,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade .18s ease;
}
.quicklook[hidden] { display: none; }
@keyframes fade { from { opacity: 0 } }
.ql-window {
  width: min(92vw, 1100px); max-height: 92vh;
  display: flex; flex-direction: column;
  background: #1e1e20; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 .5px rgba(255,255,255,.12);
  animation: pop .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { transform: scale(.94); opacity: 0 } }
.ql-bar {
  flex: 0 0 34px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: #2a2a2d; color: #ddd; font-size: 12.5px;
}
.ql-close { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; cursor: pointer; }
.ql-title { flex: 1; text-align: center; margin-right: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ql-img { flex: 1; min-height: 0; width: 100%; object-fit: contain; max-height: calc(92vh - 34px - 40px); background: #111; }
.ql-caption { margin: 0; padding: 11px 16px; font-size: 12px; color: #cfcfcf; text-align: center; background: #1e1e20; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .sidebar.open { display: block; position: absolute; inset: 38px 0 var(--pathbar-h) 0; z-index: 5; box-shadow: 0 10px 30px rgba(0,0,0,.15); width: 240px; }
  .sidebar-toggle { display: flex; }
  .window { position: relative; }
  .window-body { position: relative; }
}
@media (max-width: 720px) {
  .menubar-item { display: none; }
  .window {
    top: var(--menubar-h); left: 0; width: 100vw; height: calc(100vh - var(--menubar-h));
    transform: none; border-radius: 0; transform-origin: 50% 0;
    position: fixed;
  }
  @keyframes open { from { opacity: 0; transform: scale(.85) } to { opacity: 1; transform: none } }
  @keyframes close { to { opacity: 0; transform: scale(.85) } }
  .page { padding: 40px 22px; min-height: calc(100vh - var(--menubar-h) - 38px - var(--pathbar-h)); }
  .work img, .work video { max-height: 58vh; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .intro .txt { text-align: left; }
  .desktop { align-items: center; justify-content: center; flex-direction: row; gap: 30px; }
  .pathbar { font-size: 10.5px; }
  .pathbar span:not(:last-child):not(:nth-last-child(2)), .pathbar i:not(.last) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .content { scroll-behavior: auto; }
}
