/* Homepage portfolio invitation: Room 9's existing colors and typefaces. */
.portfolio-popup {
  width: min(900px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--light);
  overflow: auto;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .55);
}
.portfolio-popup::backdrop { background: rgba(10, 10, 9, .78); backdrop-filter: blur(6px); }
.portfolio-popup[open] { animation: portfolio-enter .4s var(--ease); }
.portfolio-popup__layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 450px; }
.portfolio-popup__art { min-width: 0; background: var(--bg); }
.portfolio-popup__art img { width: 100%; height: 100%; object-fit: cover; object-position: 53% center; }
.portfolio-popup__content { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 64px 44px 48px; border-left: 1px solid var(--line); }
.portfolio-popup__eyebrow { font-family: var(--mono); color: var(--orange); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; }
.portfolio-popup h2 { font-family: var(--disp); font-size: clamp(2.5rem, 4.4vw, 3.5rem); font-weight: 400; line-height: 1.08; letter-spacing: 0; text-transform: none; margin: 0 0 30px; }
.portfolio-popup h2 span { display: block; color: var(--orange); }
.portfolio-popup__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--beige); z-index: 1; }
.portfolio-popup__close svg { width: 16px; height: 16px; }
.portfolio-popup__close:hover { border-color: var(--orange); color: var(--orange); }
.portfolio-popup :focus-visible { outline: 2px solid var(--beige); outline-offset: 5px; }
body.portfolio-popup-open { overflow: hidden; }
body.portfolio-popup-open .cursor-ring, body.portfolio-popup-open .cursor-dot { display: none; }
body.has-cursor .portfolio-popup a, body.has-cursor .portfolio-popup button { cursor: pointer; }
@keyframes portfolio-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  .portfolio-popup { width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
  .portfolio-popup__layout { grid-template-columns: 1fr; min-height: 0; }
  .portfolio-popup__art { height: clamp(160px, 28dvh, 240px); }
  .portfolio-popup__art img { object-position: center 44%; }
  .portfolio-popup__content { padding: 28px 28px 32px; border-left: 0; border-top: 1px solid var(--line); }
  .portfolio-popup__eyebrow { font-size: .58rem; margin-bottom: 14px; }
  .portfolio-popup h2 { font-size: clamp(2rem, 9.5vw, 2.7rem); margin-bottom: 24px; }
  .portfolio-popup .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .portfolio-popup[open] { animation: none; } }

.portfolio-popup__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
