/* About page: a desk of windows you can drag, close and reopen.
   Without JS (or on narrow screens) the windows simply stack. about-desk.js adds .is-live to lay them out. */
.about-desk { --win-bg: var(--color-bg); --dot: color-mix(in srgb, var(--color-fg) 16%, transparent); --shadow: color-mix(in srgb, var(--color-fg) 28%, transparent); }
html[data-theme="dark"] .about-desk { --win-bg: #26323b; --dot: rgba(255, 255, 255, 0.13); --shadow: rgba(0, 0, 0, 0.45); }

.about-desk__intro { width: 88%; max-width: 2400px; margin: 0 auto; padding-top: clamp(96px, 9.2vw, 258px); font-size: var(--t-display); line-height: 1.15; }

.desk-bar { width: 88%; max-width: 2400px; margin: clamp(56px, 6vw, 120px) auto 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.desk-bar__hint { margin: 0; font-size: 15px; }
.desk-chips { display: none; flex-wrap: wrap; gap: 8px; }
.about-desk.is-live .desk-chips { display: flex; }
.desk-chip { font: 400 14px/1 var(--font-sans, "Inter", sans-serif); color: var(--color-fg); background: transparent; border: 1px solid var(--color-fg); border-radius: 99px; padding: 0 14px; height: 36px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color 0.2s, color 0.2s; }
.desk-chip:hover { background: color-mix(in srgb, var(--color-fg) 8%, transparent); }
.desk-chip[aria-pressed="false"] { border-style: dashed; opacity: 0.75; }
.desk-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.desk-chip[aria-pressed="false"] .desk-chip__dot { background: transparent; border: 1px solid currentColor; }
.desk-chip--tidy { background: var(--color-fg); color: var(--color-bg); }
.desk-chip--tidy:hover { background: var(--color-fg); opacity: 0.85; }

.desk-wrap { width: calc(100% - 2 * clamp(18px, 3vw, 60px)); max-width: 2400px; margin: 0 auto; }
.desk { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 20px; background-color: color-mix(in srgb, var(--color-fg) 3%, var(--color-bg)); }
.desk.is-live { display: block; padding: 0; overflow: hidden; }
.desk__stage { display: contents; }   /* stacked list: windows behave as direct children of the desk */
.desk.is-live .desk__stage { display: block; position: absolute; left: 0; top: 0; transform-origin: 0 0; background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px); background-size: 26px 26px; }

.win { background: var(--win-bg); color: var(--color-fg); border: 1px solid var(--color-fg); border-radius: 11px; overflow: hidden; box-shadow: 0 14px 34px -18px var(--shadow); }
.desk:not(.is-live) .win { width: auto !important; }
.about-desk:not(.is-live) .desk-bar__hint { display: none; }
.desk.is-live .win { position: absolute; transition: box-shadow 0.25s ease, transform 0.25s ease; animation: win-pop 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.2) both; }
.desk.is-live .win[hidden] { display: none; }
.desk.is-live .win.is-snapping { transition: left 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2), top 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.25s ease, transform 0.25s ease; }
.win.is-drag { box-shadow: 0 30px 60px -20px var(--shadow); transform: rotate(-1.2deg) scale(1.015); transition: none !important; }
@keyframes win-pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

.win__bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 44px; border-bottom: 1px solid currentColor; font: 400 15px/1 "Inter", sans-serif; user-select: none; -webkit-user-select: none; }
.desk.is-live .win__bar { cursor: grab; touch-action: none; }
.win.is-drag .win__bar { cursor: grabbing; }
.win__title { margin: 0; font: inherit; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__btn { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; color: inherit; cursor: pointer; padding: 0; visibility: hidden; }
.desk.is-live .win__btn { visibility: visible; }
.win__btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.win__btn:hover svg { transform: scale(1.15); }

.win__body { padding: 20px 22px 24px; font-size: 22px; line-height: 1.28; }
.win__body--sm { font-size: 20px; }
.win__body p { margin: 0; text-wrap: pretty; }
.win__body p + p { margin-top: 0.8em; }
.win__body a { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; transition: opacity 0.2s ease; }
.win__body a:hover { opacity: 0.7; }
.win__img { display: block; width: 100%; object-fit: cover; border-bottom: 1px solid var(--color-fg); }

.win__photo { display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: #000; cursor: pointer; }
.win__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.win__cap { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 13px; font-weight: 400; }

.win--note { background: var(--color-black); color: #fff; border-color: var(--color-black); }
html[data-theme="dark"] .win--note { background: var(--color-accent); border-color: var(--color-accent); color: #202a32; }
.win--note .win__body a { color: inherit; }
.win__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; height: 46px; padding: 0 20px; border-radius: 99px; border: 1px solid currentColor; font: 400 16px/1 "Inter", sans-serif; text-decoration: none !important; }
.win__cta:hover { background: rgba(255, 255, 255, 0.14); opacity: 1 !important; }

.about-desk + .footer { padding-top: clamp(80px, 11vw, 200px); }

@media (max-width: 820px) {
  .about-desk__intro { width: calc(100% - 36px); line-height: 1.2; }
  .desk-bar { width: calc(100% - 36px); }
  .desk-wrap { width: calc(100% - 24px); }
  .win__body { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .desk.is-live .win { animation: none; }
  .desk.is-live .win.is-snapping { transition: none; }
  .win.is-drag { transform: none; }
}
