/* ═══════════════════════════════════════════════════════════════════
   ORBIT PANEL — slide-in right drawer for projects, social, visitka
   ═══════════════════════════════════════════════════════════════════ */

.op-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8,16,14,0.55);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.op-backdrop.is-open { opacity: 1; visibility: visible; }

.op-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 95;
  width: min(440px, 92vw);
  background: linear-gradient(180deg, #0E1A18 0%, #0A1413 100%);
  border-left: 1px solid rgba(212,175,55,0.25);
  box-shadow: -32px 0 64px rgba(0,0,0,0.5);
  transform: translateX(110%);
  transition: transform .42s cubic-bezier(.5,.05,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.op-panel.is-open { transform: translateX(0); }

.op-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(212,175,55,0.3);
  border-radius: 50%; color: var(--gold);
  cursor: pointer;
  transition: background .25s, border-color .25s;
  z-index: 5;
}
.op-close:hover { background: rgba(212,175,55,0.08); border-color: rgba(212,175,55,0.6); }
.op-close::before {
  content:''; width: 14px; height: 1px; background: currentColor;
  position: absolute; transform: rotate(45deg);
}
.op-close::after {
  content:''; width: 14px; height: 1px; background: currentColor;
  position: absolute; transform: rotate(-45deg);
}

.op-body {
  flex: 1; overflow-y: auto;
  padding: 60px 40px 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.4) transparent;
}
.op-body::-webkit-scrollbar { width: 6px; }
.op-body::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 3px; }

/* Project card layout */
.op-eyebrow {
  font-size: 9px; letter-spacing: var(--tracking-widest);
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.op-eyebrow::before {
  content:''; width: 24px; height: 1px; background: var(--gold);
  display: inline-block;
}
.op-logo {
  width: 88px; height: 88px;
  margin-bottom: 24px;
  display: grid; place-items: center;
}
.op-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 12px rgba(212,175,55,0.4)); }

.op-name {
  font-family: var(--font-display);
  font-size: 36px; line-height: 1.05;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--ivory);
  margin-bottom: 10px;
}
.op-badge {
  display: inline-block;
  font-size: 9px; letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.35);
  padding: 4px 10px;
  margin-bottom: 22px;
  border-radius: 2px;
}

.op-divider {
  height: 1px; background: rgba(212,175,55,0.18);
  margin: 28px 0 24px;
}

.op-section-label {
  font-size: 9px; letter-spacing: var(--tracking-widest);
  text-transform: uppercase; color: var(--fg-faint);
  margin-bottom: 12px;
}

.op-short {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.55;
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 28px;
}

.op-long {
  font-size: 14px; line-height: 1.75;
  color: var(--fg-soft);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s var(--ease), opacity .35s var(--ease), margin .5s var(--ease);
  margin-top: 0;
}
.op-long.is-open {
  max-height: 2400px;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 28px;
}

.op-actions {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 8px;
}

.op-btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.op-btn:hover { background: rgba(212,175,55,0.08); border-color: var(--gold); }
.op-btn .arrow { font-family: var(--font-sans); font-size: 16px; }

.op-btn.primary { background: var(--gold); color: #0B1614; border-color: var(--gold); }
.op-btn.primary:hover { background: #E8C765; }

/* Visitka layout (center click) */
.op-visitka .op-portrait {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.55);
  box-shadow: 0 0 0 6px #0B1614, 0 0 0 7px rgba(212,175,55,0.25), 0 0 40px rgba(212,175,55,0.2);
  margin-bottom: 28px;
}
.op-visitka .op-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(0.4) contrast(1.05) brightness(0.98) sepia(0.12); image-rendering: -webkit-optimize-contrast; }
.op-visitka .op-name { font-size: 32px; }
.op-visitka .op-credentials {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.op-visitka .op-credentials li {
  font-size: 13px; color: var(--fg-soft); line-height: 1.5;
  padding-left: 18px; position: relative;
}
.op-visitka .op-credentials li::before {
  content:'·'; position: absolute; left: 4px; top: 0;
  color: var(--gold); font-size: 18px; line-height: 1;
}

/* Social drawer layout */
.op-social .op-name { margin-bottom: 4px; }
.op-social .op-tagline {
  font-size: 13px; color: var(--fg-soft); margin-bottom: 28px;
}
.op-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.op-social-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: rgba(212,175,55,0.04);
  border: 1px solid rgba(212,175,55,0.22);
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s;
}
.op-social-card:hover {
  background: rgba(212,175,55,0.10);
  border-color: rgba(212,175,55,0.55);
  transform: translateY(-1px);
}
.op-social-card .op-soc-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.op-social-card .op-soc-icon img { width: 100%; height: 100%; object-fit: contain; }
.op-social-card .op-soc-glyph {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 50%;
}
.op-social-card .op-soc-meta { display: flex; flex-direction: column; min-width: 0; }
.op-social-card .op-soc-name {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.op-social-card .op-soc-handle {
  font-size: 10px; color: var(--fg-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Sun click hint */
.sun { cursor: pointer; }
.sun .sun-portrait { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.sun:hover .sun-portrait { transform: scale(1.04); box-shadow: 0 0 0 6px #0B1614, 0 0 0 7px rgba(212,175,55,0.55), 0 0 80px rgba(212,175,55,0.4); }
