/* Portfolio page — gallery cards + expand drawer */

.po-card {
  display: block;
  text-decoration: none; color: inherit;
  border: 2px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
  cursor: pointer;
  transition: border-color var(--t-short) var(--ease-out),
              transform var(--t-short) var(--ease-out);
}
.po-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.po-cover {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.po-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--t-standard) var(--ease-out);
}
.po-card:hover .po-cover img { transform: scale(1.05); }

.po-tool {
  position: absolute; top: 14px; left: 14px;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--fg);
  background: rgba(20, 20, 20, 0.85);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.po-expand {
  position: absolute; right: 14px; bottom: 14px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 163, 255, 0.4);
  transition: transform var(--t-short) var(--ease-out);
}
.po-expand:hover { transform: rotate(45deg); }

.po-meta {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.po-kicker {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim-grey); font-weight: 700;
}
.po-title {
  font-weight: 700; font-size: 17px; color: var(--fg);
  letter-spacing: -0.01em;
}

/* ============================================================
   Drawer
   ============================================================ */
.po-drawer-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  animation: po-fade 240ms ease-out;
}
@keyframes po-fade { from { opacity: 0; } to { opacity: 1; } }

.po-drawer {
  background: var(--site-black);
  border: 2px solid var(--border);
  border-radius: 24px;
  max-width: 920px;
  width: 100%;
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  position: relative;
  animation: po-lift 360ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes po-lift {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@media (max-width: 820px) {
  .po-drawer { grid-template-columns: 1fr; max-height: 96vh; overflow-y: auto; }
}

.po-close {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  width: 40px; height: 40px; border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--site-black);
  color: var(--fg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t-short) var(--ease-out);
}
.po-close:hover { border-color: var(--accent); }

.po-drawer-cover {
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.po-drawer-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (max-width: 820px) {
  .po-drawer-cover { aspect-ratio: 16/10; }
}

.po-drawer-body {
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.po-drawer-title {
  font-size: 32px; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin: 8px 0 0;
}
.po-drawer-title .accent { color: var(--accent); }
.po-drawer-lede {
  font-size: 14px; color: var(--muted-grey); line-height: 1.6; margin: 0;
}
.po-meta-row {
  display: flex; gap: 28px; padding: 18px 0;
  border-top: 1px solid #232323;
  border-bottom: 1px solid #232323;
  flex-wrap: wrap;
}
.po-meta-lbl {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--dim-grey);
}
.po-meta-val { font-size: 14px; font-weight: 600; margin-top: 6px; }
.po-drawer-ctas {
  display: flex; gap: 12px; margin-top: 4px;
  flex-wrap: wrap;
}
