/* ═══════════════════════════════════════════════════════════════════════
   Dušan Kovačević — Portfolio
   Dark-mode dashboard. Olive/lime accent. Space Grotesk + Archivo + JetBrains Mono.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0b0c09;
  --bg-grain: #0e0f0b;
  --panel: #131510;
  --panel-2: #171a13;
  --panel-3: #1c1f17;
  --border: #262a1e;
  --border-soft: #1e2118;
  --text: #ececdf;
  --text-2: #b7bba8;
  --muted: #7e8472;
  --faint: #565c4a;
  --accent: #c3d94e;        /* lime */
  --accent-dim: #9aae3a;
  --olive: #5f6b2e;         /* hatch */
  --olive-2: #404a1f;
  --ring: rgba(195, 217, 78, 0.55);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.85);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.025) inset, 0 14px 40px -28px rgba(0, 0, 0, 0.9);
  --radius: 16px;
  --radius-sm: 11px;
  --col-gap: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-synthesis: none;
}

[data-theme="light"] {
  --bg: #eceae2;
  --bg-grain: #e9e7de;
  --panel: #f7f6f1;
  --panel-2: #fbfaf6;
  --panel-3: #f1efe7;
  --border: #d9d6c9;
  --border-soft: #e3e0d4;
  --text: #1a1c14;
  --text-2: #4a4d3e;
  --muted: #7c8070;
  --faint: #a7ab98;
  --accent: #6f7d20;
  --accent-dim: #59661a;
  --olive: #7c8a3e;
  --olive-2: #aab46f;
  --ring: rgba(111, 125, 32, 0.5);
  --shadow: 0 18px 50px -24px rgba(60, 60, 30, 0.35);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 30px -24px rgba(50, 50, 25, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Oxygen", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(195, 217, 78, 0.06), transparent 55%),
    radial-gradient(90% 60% at 0% 110%, rgba(122, 162, 255, 0.045), transparent 60%);
  pointer-events: none; z-index: 0;
}

::selection { background: var(--accent); color: #0b0c09; }

/* scrollbars */
.col-scroll::-webkit-scrollbar, .modal-body::-webkit-scrollbar { width: 9px; height: 9px; }
.col-scroll::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box;
}
.col-scroll:hover::-webkit-scrollbar-thumb { background: var(--faint); background-clip: padding-box; }
.col-scroll::-webkit-scrollbar-track { background: transparent; }

/* ── Mono / label helpers ─────────────────────────────────────────────── */
.mono { font-family: "Oxygen Mono", ui-monospace, monospace; }
.eyebrow {
  font-family: "Oxygen Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

a { color: inherit; text-decoration: none; }

/* ═══ APP SHELL ═══════════════════════════════════════════════════════ */
.app {
  position: relative; z-index: 1;
  height: 100dvh;
  display: flex; flex-direction: column;
  padding: 14px;
  gap: 12px;
}

/* ── Top bar ──────────────────────────────────────────────────────────── */
.topbar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 6px;
  opacity: 0; transform: translateY(-8px);
  animation: rise 0.7s var(--ease-out) 0.05s forwards;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 14px var(--accent);
  animation: pulse 3.4s ease-in-out infinite;
}
.brand-name { font-family: "Oxygen", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-role { color: var(--muted); font-size: 15px; }
.brand-sep { color: var(--faint); }

.topbar-right { display: flex; align-items: center; gap: 8px; }
.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; min-width: 34px; padding: 0 11px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-2); cursor: pointer;
  font-family: "Oxygen Mono", monospace; font-size: 12.5px; letter-spacing: 0.03em;
  transition: all 0.25s var(--ease);
}
.tb-btn:hover { color: var(--text); border-color: var(--faint); transform: translateY(-1px); }
.tb-btn:active { transform: translateY(0); }
.tb-btn svg { width: 15px; height: 15px; }
.tb-btn.icon-only { padding: 0; }

/* ── Columns row ──────────────────────────────────────────────────────── */
.board {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: var(--col-gap);
}

.col {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 55%, transparent), transparent 220px),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
  box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(16px);
  animation: rise 0.85s var(--ease-out) forwards;
}
.col:nth-child(1) { animation-delay: 0.10s; }
.col:nth-child(2) { animation-delay: 0.18s; }
.col:nth-child(3) { animation-delay: 0.26s; }
.col:nth-child(4) { animation-delay: 0.34s; }

.col-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px;
}
.col-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 18px 26px;
  scrollbar-gutter: stable;
}

/* ═══ ABOUT COLUMN ════════════════════════════════════════════════════ */
.status-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 99px; margin-bottom: 18px;
  background: var(--panel); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}
.status-badge .live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2.6s infinite; }

.bio p { color: var(--text-2); margin-bottom: 12px; font-size: 16px; }
.bio p:first-child { color: var(--text); font-size: 18px; line-height: 1.5; }
.bio p strong { color: var(--text); font-weight: 600; }

.about-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 6px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px;
  background: var(--panel-3); border: 1px solid var(--border); border-radius: 11px;
  color: var(--text); cursor: pointer; font-size: 15px; font-weight: 400;
  transition: all 0.25s var(--ease);
}
.pill-btn:hover { border-color: var(--faint); transform: translateY(-1px); background: var(--panel-2); }
.pill-btn svg { width: 15px; height: 15px; }
.pill-btn.copied { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

.detail-block { padding-top: 18px; margin-top: 18px; border-top: 1px dashed var(--border); }
.detail-block .eyebrow { display: block; margin-bottom: 7px; }
.detail-block p { color: var(--text-2); }
.detail-block .stack-line { color: var(--text); }

/* ═══ CAREER JOURNEY (proportional timeline) ══════════════════════════ */
.timeline-now { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.now-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 9px; border-radius: 10px;
  background: var(--panel-3); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-2);
  transition: all 0.25s var(--ease);
}
.now-pill:first-child { background: color-mix(in srgb, var(--accent) 10%, var(--panel-3)); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); color: var(--text); }
.now-pill .logo { width: 17px; height: 17px; }

.timeline {
  position: relative;
  margin-top: 6px;
  padding-left: 46px;     /* year axis gutter */
}
/* year axis */
.axis { position: absolute; left: 0; top: 0; width: 46px; height: 100%; }
.axis-year {
  position: absolute; left: 0; transform: translateY(-50%);
  font-family: "Oxygen Mono", monospace; font-size: 12px; color: var(--faint);
  width: 38px; text-align: right;
}
.axis-line { position: absolute; left: 44px; width: calc(100% - 44px); height: 1px; background: var(--border-soft); transform: translateY(-50%); opacity: 0.6; }

/* hatched side rail */
.side-rail {
  position: absolute; left: 50px; width: 22px;
  border-radius: 7px; overflow: hidden;
  background-image: repeating-linear-gradient(45deg, var(--olive) 0 6px, var(--olive-2) 6px 12px);
  border: 1px solid color-mix(in srgb, var(--olive) 60%, var(--border));
  opacity: 0; animation: railIn 1s var(--ease-out) 0.6s forwards;
}
.side-rail span {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg); transform-origin: center;
  white-space: nowrap; font-family: "Oxygen Mono", monospace;
  font-size: 11px; letter-spacing: 0.05em; color: #e9ecd6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* track stacks role cards in normal flow; heights grow to fit content */
.track { position: relative; margin-left: 36px; display: flex; flex-direction: column; gap: 9px; }

.role-card {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 14px;
  display: flex; flex-direction: column;
  cursor: default;
  box-shadow: var(--shadow-card);
  opacity: 0; transform: scaleY(0.7) translateY(8px); transform-origin: top center;
  animation: cardGrow 0.8s var(--ease-out) forwards;
}
.role-card { cursor: pointer; }
.role-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--rc-accent, var(--accent)); opacity: 0.85;
}
.role-card:hover { border-color: var(--faint); transform: translateY(-1px) !important; }
.role-card:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.rc-open {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center;
  background: var(--panel-3); border: 1px solid var(--border); color: var(--muted);
  opacity: 0; transform: translateY(-3px); transition: all 0.25s var(--ease);
}
.role-card:hover .rc-open, .role-card:focus-visible .rc-open { opacity: 1; transform: none; }
.rc-open svg { width: 12px; height: 12px; }
.role-card .rc-top { display: flex; align-items: center; gap: 10px; }
.role-card .logo { width: 26px; height: 26px; flex: none; }
.role-card .rc-dates {
  font-family: "Oxygen Mono", monospace; font-size: 12px; letter-spacing: 0.03em;
  color: var(--muted); text-transform: uppercase; margin-top: auto;
}
.role-card .rc-title { font-family: "Oxygen", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; line-height: 1.25; }
.role-card .rc-org { color: var(--accent-dim); font-size: 14px; }
.role-card .rc-note { color: var(--text-2); font-size: 14.5px; margin-top: 6px; line-height: 1.45; }
.role-card.compact { padding: 11px 13px; }
.role-card.compact .rc-note { display: none; }
.role-card.compact .rc-title { font-size: 15.5px; line-height: 1.2; }
.role-card.compact .rc-top .logo { width: 22px; height: 22px; }
.role-card .rc-mid { display: flex; flex-direction: column; gap: 2px; margin: 7px 0; }

/* ═══ HIGHLIGHTED WORK ═══════════════════════════════════════════════ */
.work-stack { display: flex; flex-direction: column; gap: 16px; }
.project-card {
  position: relative; cursor: pointer;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--panel-2);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.project-card:hover { transform: translateY(-3px); border-color: var(--faint); box-shadow: var(--shadow); }
.project-card:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.pc-shot { position: relative; aspect-ratio: 16 / 9.2; overflow: hidden; }
.pc-shot .mock { position: absolute; inset: 0; transition: transform 0.6s var(--ease); }
.project-card:hover .pc-shot .mock { transform: scale(1.04); }
/* Real screenshots sit on top of the mock and cover it when they load. */
.shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 0.6s var(--ease); }
.project-card:hover .pc-shot .shot-img { transform: scale(1.04); }
.pc-tag {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  padding: 4px 9px; border-radius: 99px;
  background: rgba(11,12,9,0.62); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: "Oxygen Mono", monospace; font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent);
}
.pc-open {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(11,12,9,0.62); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08); color: var(--text);
  opacity: 0; transform: translateY(-4px) scale(0.9);
  transition: all 0.3s var(--ease);
}
.project-card:hover .pc-open { opacity: 1; transform: none; }
.pc-open svg { width: 14px; height: 14px; }
.pc-meta { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-title { font-family: "Oxygen", sans-serif; font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }
.pc-sub { color: var(--muted); font-size: 12.5px; font-family: "Oxygen Mono", monospace; letter-spacing: 0.03em; }
.pc-thumbs { display: flex; gap: 6px; }
.pc-thumb { width: 30px; height: 22px; border-radius: 5px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.pc-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(8,9,6,0.5); }

/* ── "Coming soon" overlay on placeholder visuals ──────────────────── */
.coming-soon {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,9,6,0.32), rgba(8,9,6,0.58));
  backdrop-filter: saturate(0.7);
}
.coming-soon span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 99px;
  background: rgba(11,12,9,0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: "Oxygen Mono", monospace; font-size: 11px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-2); white-space: nowrap;
}
.coming-soon .cs-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2.6s infinite; }

/* ── Role-scope spotlight (driven by the open timeline role) ─────────── */
.work-stack .project-card { transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease), opacity 0.4s var(--ease), filter 0.4s var(--ease); }
.work-stack.scoped .project-card:not(.is-match) { opacity: 0.3; filter: grayscale(0.55); transform: scale(0.985); }
.work-stack.scoped .project-card:not(.is-match):hover { opacity: 0.7; filter: none; }
.work-stack.scoped .project-card.is-match {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent),
              0 16px 44px -22px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: matchPulse 0.6s var(--ease-out);
}
.work-stack.scoped .project-card.is-match .pc-tag { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
@keyframes matchPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 60% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); } }

/* ── In-column project DETAIL panel ──────────────────────────────────── */
.work-detail {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 70%, transparent), transparent 200px),
    var(--panel);
  border-radius: var(--radius);
  opacity: 0; visibility: hidden;
  clip-path: inset(0 0 100% 0 round var(--radius));
  transition: clip-path 0.6s var(--ease), opacity 0.4s var(--ease), visibility 0s linear 0.6s;
}
.work-detail.open {
  opacity: 1; visibility: visible;
  clip-path: inset(0 0 0 0 round var(--radius));
  transition: clip-path 0.65s var(--ease), opacity 0.4s var(--ease);
}
.wd-grab { flex: none; display: grid; place-items: center; padding: 9px 0 4px; }
.wd-grab span { width: 40px; height: 4px; border-radius: 99px; background: var(--border); }
.modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 22px 90px; }

.wd-anim > * { opacity: 0; transform: translateY(12px); }
.work-detail.open .wd-anim > * { animation: rise 0.6s var(--ease-out) forwards; }
.work-detail.open .wd-anim > *:nth-child(1) { animation-delay: 0.14s; }
.work-detail.open .wd-anim > *:nth-child(2) { animation-delay: 0.20s; }
.work-detail.open .wd-anim > *:nth-child(3) { animation-delay: 0.26s; }
.work-detail.open .wd-anim > *:nth-child(4) { animation-delay: 0.32s; }
.work-detail.open .wd-anim > *:nth-child(5) { animation-delay: 0.38s; }

.wd-title { font-family: "Oxygen", sans-serif; font-size: 27px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.wd-desc { color: var(--text-2); margin-top: 12px; font-size: 16.5px; line-height: 1.55; }
.wd-table { margin-top: 22px; border-top: 1px solid var(--border); }
.wd-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.wd-row dt { color: var(--muted); font-family: "Oxygen Mono", monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.wd-row dd { color: var(--text); text-align: right; font-size: 16px; font-weight: 400; }
.wd-row dd a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.wd-row dd a:hover { border-color: var(--accent); }

.wd-section-label { margin: 26px 0 12px; }

/* role modal specifics */
.rd-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.rd-head .logo { width: 34px; height: 34px; }
.rd-head .rd-org { color: var(--accent-dim); font-size: 14.5px; font-weight: 400; }
.rd-period {
  display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 99px;
  background: var(--panel-3); border: 1px solid var(--border);
  font-family: "Oxygen Mono", monospace; font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-2);
}
.wd-bullets { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.wd-bullets li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.wd-bullets li::before {
  content: ""; position: absolute; left: 3px; top: 10px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
}
.wd-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wd-gallery .shot { aspect-ratio: 16/10; border-radius: 11px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.wd-gallery .shot.wide { grid-column: 1 / -1; aspect-ratio: 16/7.4; }

/* floating close pill */
.wd-foot {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%) translateY(20px);
  display: flex; align-items: center; gap: 4px; z-index: 25;
  background: rgba(20,22,16,0.82); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 99px; padding: 5px;
  box-shadow: var(--shadow); opacity: 0;
  transition: all 0.5s var(--ease) 0.25s;
}
[data-theme="light"] .wd-foot { background: rgba(247,246,241,0.85); }
.work-detail.open .wd-foot { opacity: 1; transform: translateX(-50%); }
.wd-nav {
  width: 34px; height: 34px; border-radius: 99px; border: none; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--text-2);
  transition: all 0.2s var(--ease);
}
.wd-nav:hover { background: var(--panel-3); color: var(--text); }
.wd-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.wd-nav svg { width: 16px; height: 16px; }
.wd-close {
  height: 34px; padding: 0 16px; border-radius: 99px; border: none; cursor: pointer;
  background: var(--accent); color: #14160d; font-weight: 700; font-size: 13px;
  font-family: "Oxygen Mono", monospace; letter-spacing: 0.05em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all 0.2s var(--ease);
}
.wd-close:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wd-close svg { width: 13px; height: 13px; }

/* ═══ SIDE PROJECTS ══════════════════════════════════════════════════ */
.side-list { display: flex; flex-direction: column; }
.side-item {
  display: flex; gap: 13px; padding: 15px 4px;
  border-bottom: 1px solid var(--border-soft); cursor: pointer;
  transition: all 0.25s var(--ease); border-radius: 10px;
}
.side-item:hover { background: var(--panel-2); padding-left: 12px; padding-right: 12px; }
.side-item:last-child { border-bottom: none; }
.side-item .logo { width: 30px; height: 30px; flex: none; margin-top: 2px; }
.side-name { font-family: "Oxygen", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 7px; }
.side-name .arr { opacity: 0; transform: translateX(-4px); transition: all 0.25s var(--ease); color: var(--accent); }
.side-item:hover .side-name .arr { opacity: 1; transform: none; }
.side-desc { color: var(--text-2); font-size: 12.5px; margin: 3px 0 6px; }
.side-url { font-family: "Oxygen Mono", monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* ═══ Generic logo tiles ═════════════════════════════════════════════ */
.logo { border-radius: 7px; display: grid; place-items: center; font-family: "Oxygen", sans-serif; font-weight: 700; color: #0e0f0b; flex: none; font-size: 11px; }

/* ═══ Animations ═════════════════════════════════════════════════════ */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes cardGrow { to { opacity: 1; transform: scaleY(1) translateY(0); } }
@keyframes railIn { from { opacity: 0; transform: scaleY(0.4); transform-origin: top; } to { opacity: 0.92; transform: scaleY(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═══ Responsive ═════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); }
  body { overflow: auto; }
  .app { height: auto; min-height: 100dvh; }
}
@media (max-width: 760px) {
  .app { padding: 10px; }
  .board { grid-template-columns: 1fr; }
  .col { min-height: 78vh; }
  .topbar { flex-wrap: wrap; gap: 8px; }
  .brand-role { display: none; }
}

/* keyboard hint */
.kbd { font-family: "Oxygen Mono", monospace; font-size: 11.5px; padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); }

/* ── Lightbox (fullscreen image viewer) ─────────────────────────────────── */
.wd-gallery .shot img.shot-img { cursor: zoom-in; }
body.lb-lock { overflow: hidden; }

/* Full-width, vertically scrollable overlay so long/tall screenshots read
   at near-full width instead of being shrunk to fit the viewport height. */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; opacity: 0; transition: opacity 0.3s var(--ease); }
.lightbox.open { display: block; opacity: 1; }
/* Inner element carries the scroll + blur, so the fixed-position controls
   (siblings, not descendants) are not trapped by the backdrop-filter's
   containing block and stay pinned to the viewport while the image scrolls. */
.lb-scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(6, 7, 5, 0.86);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  scrollbar-width: thin; scrollbar-color: rgba(236,236,223,.25) transparent;
}
.lb-scroll::-webkit-scrollbar { width: 10px; }
.lb-scroll::-webkit-scrollbar-thumb { background: rgba(236,236,223,.22); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }

.lb-stage { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 60px clamp(14px, 4vw, 60px) 76px; box-sizing: border-box; }
.lb-img {
  width: min(1400px, 94vw); height: auto; display: block;
  border-radius: 12px; border: 1px solid rgba(236, 236, 223, 0.09);
  box-shadow: 0 40px 100px -24px rgba(0, 0, 0, 0.85);
  background: var(--panel);
}
.lb-img.lb-swap { animation: lbSwap 0.28s var(--ease); }
@keyframes lbSwap { from { opacity: 0; } to { opacity: 1; } }

/* Controls stay pinned to the viewport while a long image scrolls. */
.lb-close, .lb-nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  border: 1px solid rgba(236, 236, 223, 0.14);
  background: rgba(19, 21, 16, 0.82);
  color: var(--text-2); cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lb-close:hover, .lb-nav:hover { background: var(--panel-3); color: var(--text); border-color: var(--accent); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.lb-close { top: 20px; right: 22px; width: 42px; height: 42px; border-radius: 11px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-close svg, .lb-nav svg { width: 20px; height: 20px; }

.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: "Oxygen Mono", monospace; font-size: 12px; letter-spacing: 0.04em;
  color: var(--text-2); background: rgba(19, 21, 16, 0.82);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* Hint that the image scrolls */
.lb-scroll-hint {
  position: absolute; bottom: 20px; right: 22px; display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--text-2);
  background: rgba(19,21,16,.82); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

@media (max-width: 640px) {
  .lb-nav { width: 40px; height: 40px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-close { top: 12px; right: 12px; }
}

/* Accessible visually-hidden content (SEO h1, labels) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Prerendered (static) fallback content — visible for no-JS crawlers, replaced
   by the interactive render on load. Kept lightly styled so it degrades cleanly. */
.pr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pr-list > li, .pr-project { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.pr-project { margin-bottom: 14px; }
.pr-list h3, .pr-project h3 { margin: 0 0 4px; font-size: 15px; color: var(--text); }
.pr-period, .pr-tag { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.pr-list p, .pr-project p { margin: 6px 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.pr-list ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13px; }
.pr-project img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); margin: 8px 0; }
.pr-project dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0; font-size: 12.5px; }
.pr-project dt { color: var(--muted); } .pr-project dd { margin: 0; color: var(--text-2); }
.pr-now { display: inline-block; margin: 0 8px 8px 0; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.05ms !important; }
}
