/* ══════════════════════════════════════════════════
   Portfolio Rolodex — rolodex.css  v1.0.0
   ══════════════════════════════════════════════════ */

/* ── Reset ────────────────────────────────────────── */
.portfolio-rolodex *,
.portfolio-rolodex *::before,
.portfolio-rolodex *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Root & Theming ───────────────────────────────── */
.portfolio-rolodex {
  --pr-bg:           #ffffff;
  --pr-surface:      #17172b;
  --pr-surface2:     #1e1e33;
  --pr-border:       #2a2a45;
  --pr-text:         #e8e8f4;
  --pr-text-muted:   #7878a0;
  --pr-accent:       #6366f1;
  --pr-accent-hover: #818cf8;
  --pr-glow:         rgba(99, 102, 241, 0.07);
  --pr-radius:       14px;
  --pr-ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --pr-ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--pr-bg);
  color: var(--pr-text);
  padding: 44px 24px 36px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Light theme override */
.portfolio-rolodex.pr-theme-light {
  --pr-bg:         #f0f0fa;
  --pr-surface:    #ffffff;
  --pr-surface2:   #f5f5ff;
  --pr-border:     #dcdcf0;
  --pr-text:       #12122a;
  --pr-text-muted: #5a5a80;
}

/* Subtle glow background (toned down for white bg) */
.portfolio-rolodex::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, var(--pr-glow) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(139,92,246,.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── iPhone-style Phone ───────────────────────────── */
.portfolio-rolodex .pr-phone {
  flex-shrink: 0;
  width: 148px;
  align-self: flex-start;
  margin-top: 18px;
  background: linear-gradient(175deg, #2d2d2f 0%, #1c1c1e 55%, #252527 100%) !important;
  border-radius: 40px !important;
  border: 1.5px solid rgba(255,255,255,0.12) !important;
  padding: 0 0 22px !important;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6),
    0 24px 64px rgba(0,0,0,.75),
    inset 0 1px 0 rgba(255,255,255,.09),
    inset 0 -2px 0 rgba(0,0,0,.45);
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  overflow: visible !important;
}

/* Volume buttons on left side */
.portfolio-rolodex .pr-phone::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 88px;
  width: 4px;
  height: 70px;
  background:
    linear-gradient(180deg,
      #3a3a3c 0px,  #3a3a3c 28px,
      transparent   28px, transparent 36px,
      #3a3a3c       36px, #3a3a3c 64px
    );
  border-radius: 2px 0 0 2px;
  box-shadow: -1px 0 2px rgba(0,0,0,.5);
}

/* Power/sleep button on right side */
.portfolio-rolodex .pr-phone::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 108px;
  width: 4px;
  height: 38px;
  background: #3a3a3c;
  border-radius: 0 2px 2px 0;
  box-shadow: 1px 0 2px rgba(0,0,0,.5);
}

/* Dynamic Island */
.pr-phone-island {
  width: 54px;
  height: 22px;
  background: #000;
  border-radius: 0 0 18px 18px;
  margin-bottom: 4px;
  box-shadow:
    0 3px 12px rgba(0,0,0,.7),
    inset 0 0 0 1px rgba(255,255,255,.04);
  flex-shrink: 0;
  position: relative;
}

/* Tiny camera dot in Dynamic Island */
.pr-phone-island::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #141414;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    inset 0 0 4px rgba(99,102,241,.45);
}

/* Status bar */
.pr-phone-status {
  width: calc(100% - 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
  flex-shrink: 0;
}

.pr-phone-status-time {
  font-size: 7px;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: -apple-system, sans-serif;
}

.pr-phone-status-icons {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Signal bars */
.pr-phone-signal {
  display: inline-flex;
  gap: 1.5px;
  align-items: flex-end;
  height: 8px;
}

.pr-phone-signal::before {
  content: '';
  display: block;
  width: 2.5px;
  height: 4px;
  background: rgba(255,255,255,.65);
  border-radius: 1px;
  box-shadow: 4px 2px 0 rgba(255,255,255,.65), 8px 0 0 rgba(255,255,255,.65);
}

/* Battery icon */
.pr-phone-battery {
  display: inline-block;
  width: 14px;
  height: 7px;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 2px;
  position: relative;
}

.pr-phone-battery::before {
  content: '';
  position: absolute;
  left: 1px; top: 1px;
  width: 72%;
  height: calc(100% - 2px);
  background: #4ade80;
  border-radius: 1px;
}

.pr-phone-battery::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 4px;
  background: rgba(255,255,255,.4);
  border-radius: 0 1px 1px 0;
}

/* LCD Screen */
.portfolio-rolodex .pr-phone-screen {
  width: calc(100% - 20px);
  background: #081a0e !important;
  border: 2px solid #060e08 !important;
  border-radius: 8px !important;
  padding: 8px 7px 7px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px;
  margin: 0 10px;
  box-shadow:
    inset 0 3px 10px rgba(0,0,0,.8),
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 1px 0 rgba(255,255,255,.04);
}

.pr-phone-lcd-label {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a4025;
  font-family: 'Courier New', Courier, monospace;
  align-self: flex-start;
}

.pr-phone-display {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74,222,128,.7), 0 0 20px rgba(74,222,128,.3);
  letter-spacing: 1.5px;
  text-align: center;
  line-height: 1.2;
  min-height: 22px;
  word-break: break-all;
  transition: color .2s, text-shadow .2s;
}

.pr-phone-lcd-sub {
  font-size: 7px;
  color: #1d5c30;
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
  letter-spacing: .5px;
}

/* Category button grid */
.portfolio-rolodex .pr-phone-keys {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 10px 0;
  width: 100%;
}

.portfolio-rolodex .pr-phone-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px;
  padding: 8px 4px 7px !important;
  background: linear-gradient(170deg, #3c3c3e 0%, #2a2a2c 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow:
    0 4px 0 #0a0a0c,
    0 5px 10px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  cursor: pointer;
  transition: transform .08s, box-shadow .08s, background .18s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Top shine */
.pr-phone-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, transparent 100%);
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}

.pr-phone-btn:hover {
  background: linear-gradient(170deg, #48484a 0%, #363638 100%);
}

.pr-phone-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #0a0a0c,
    0 2px 4px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.pr-phone-btn.pr-phone-btn--active {
  background: linear-gradient(170deg, #5254d4 0%, #3b3db4 100%);
  box-shadow:
    0 4px 0 #1a1b6a,
    0 5px 14px rgba(99,102,241,.4),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.pr-phone-btn.pr-phone-btn--active::before {
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, transparent 100%);
}

.pr-phone-btn-icon {
  font-size: 17px;
  line-height: 1;
  display: block;
}

.pr-phone-btn-label {
  font-size: 7.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #7878a0;
  line-height: 1;
  text-align: center;
}

.pr-phone-btn.pr-phone-btn--active .pr-phone-btn-label {
  color: rgba(255,255,255,.9);
}

/* ALL / star button row */
.pr-phone-talk {
  padding: 8px 10px 0;
  width: 100%;
}

.pr-phone-btn--talk {
  width: 100%;
  flex-direction: row;
  gap: 6px;
  padding: 10px 12px;
  background: linear-gradient(160deg, #1d1d1f 0%, #141416 100%);
  box-shadow:
    0 4px 0 #050507,
    0 5px 12px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.06);
  border-radius: 10px;
}

.pr-phone-btn--talk .pr-phone-btn-icon {
  font-size: 15px;
}

.pr-phone-btn--talk .pr-phone-btn-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.5);
}

.pr-phone-btn--talk:hover {
  background: linear-gradient(160deg, #2a2a2c 0%, #1c1c1e 100%);
}

.pr-phone-btn--talk.pr-phone-btn--active {
  background: linear-gradient(160deg, #16a34a 0%, #15803d 100%);
  box-shadow:
    0 4px 0 #052e16,
    0 5px 18px rgba(22,163,74,.45),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.pr-phone-btn--talk.pr-phone-btn--active .pr-phone-btn-label {
  color: rgba(255,255,255,.95);
}

.pr-phone-btn--talk:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #050507,
    0 2px 6px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.04);
}

/* Home indicator bar */
.pr-phone-home {
  width: 44px;
  height: 4px;
  background: rgba(255,255,255,.22);
  border-radius: 2px;
  margin-top: 16px;
  flex-shrink: 0;
  transition: background .3s, box-shadow .3s;
}

.pr-phone-home.pr-home--pulse {
  background: rgba(74,222,128,.75);
  box-shadow: 0 0 8px rgba(74,222,128,.6);
}

/* ── Stage, Box & Rolodex Stand ───────────────────── */
.pr-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
  width: 100%;
}

/* The bordered frame that wraps the 3D scene */
.pr-rolodex-box {
  flex: 1;
  min-width: 0;
  max-width: 640px;
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  padding: 16px 0 20px;
  position: relative;
  box-shadow:
    0 12px 48px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.04);
}

/* Stand positioned inside box */
.pr-rolodex-box .pr-rolodex-stand {
  bottom: -6px;
}

.pr-rolodex-stand {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.pr-stand-rod {
  width: 8px;
  height: 90px;
  background: linear-gradient(180deg, #4a4a6a 0%, #2a2a44 100%);
  border-radius: 4px;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.pr-stand-base {
  width: 280px;
  height: 18px;
  background: linear-gradient(135deg, #3a3a58 0%, #28284a 100%);
  border-radius: 0 0 40px 40px;
  margin-top: -2px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
}

.pr-stand-base::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.5), transparent);
  border-radius: 2px;
}

/* ── 3D Scene ─────────────────────────────────────── */
.pr-scene {
  perspective: 1100px;
  perspective-origin: 50% 38%;
  width: 100%;
  height: 320px;
  position: relative;
  z-index: 1;
}

.pr-wheel {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s var(--pr-ease);
  list-style: none;
}

/* ── Cards ────────────────────────────────────────── */
.pr-card {
  position: absolute;
  width: 300px;
  height: 222px;  /* 16:9 thumb (169px) + footer (~53px) */
  left: 50%;
  top: 50%;
  margin-left: -150px;
  margin-top: -111px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform .6s var(--pr-ease),
    opacity   .4s ease;
  outline: none;
}

.pr-card:focus-visible .pr-card-inner {
  outline: 2px solid var(--pr-accent);
  outline-offset: 3px;
}

.pr-card-inner {
  width: 100%;
  height: 100%;
  background: var(--pr-surface);
  border-radius: var(--pr-radius);
  border: 1px solid var(--pr-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Active (front) card */
.pr-card--active .pr-card-inner {
  border-color: var(--card-color, var(--pr-accent));
  box-shadow:
    0 20px 60px rgba(0,0,0,.55),
    0 0 0 1px var(--card-color, var(--pr-accent)),
    0 0 40px color-mix(in srgb, var(--card-color, var(--pr-accent)) 30%, transparent);
}

.pr-card--active:hover .pr-card-inner {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 28px 80px rgba(0,0,0,.65),
    0 0 0 1px var(--card-color, var(--pr-accent)),
    0 0 60px color-mix(in srgb, var(--card-color, var(--pr-accent)) 40%, transparent);
}

/* Thumbnail area — strict 16:9 */
.pr-card-thumb {
  flex: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: var(--pr-surface2);
}

.pr-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.pr-card--active:hover .pr-card-thumb img {
  transform: scale(1.06);
}

.pr-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pr-surface2) 0%, var(--pr-border) 100%);
  font-size: 52px;
}

/* Overlay badges */
.pr-card-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.pr-type-badge {
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.08);
}

.pr-featured-star {
  background: #f59e0b;
  color: #000;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 100px;
}

/* Video play icon */
.pr-play-indicator {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  background: rgba(0,0,0,.3);
}

.pr-play-indicator svg {
  width: 36px;
  height: 36px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}

.pr-card--active:hover .pr-play-indicator {
  opacity: 1;
}

/* Card footer */
.pr-card-footer {
  padding: 10px 12px;
  background: var(--pr-surface);
  border-top: 1px solid var(--pr-border);
  flex-shrink: 0;
}

.pr-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
  line-height: 1.3;
}

.pr-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.pr-tag {
  background: var(--pr-surface2);
  color: var(--pr-text-muted);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 2px 7px;
  border-radius: 100px;
  border: 1px solid var(--pr-border);
  white-space: nowrap;
}

/* ── Navigation Controls ──────────────────────────── */
.pr-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 10;
}

.pr-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  color: var(--pr-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s var(--pr-ease-spring);
  flex-shrink: 0;
}

.pr-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.pr-btn:hover {
  background: var(--pr-accent);
  border-color: var(--pr-accent);
  color: #fff;
  box-shadow: 0 0 20px var(--pr-glow);
  transform: scale(1.12);
}

.pr-btn:active {
  transform: scale(.92);
}

.pr-counter {
  font-size: 13px;
  color: #7878a0;
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  text-align: center;
  line-height: 1;
}

.pr-counter-current {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  display: inline-block;
  min-width: 28px;
  text-align: right;
}

.pr-counter-sep {
  margin: 0 4px;
  font-size: 15px;
  opacity: .5;
}

/* ── Progress Dots ────────────────────────────────── */
.pr-dots-wrap {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
  min-height: 10px;
  position: relative;
  z-index: 10;
}

.pr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pr-border);
  border: none;
  cursor: pointer;
  transition: background .25s, width .25s var(--pr-ease-spring), border-radius .25s;
  padding: 0;
  flex-shrink: 0;
}

.pr-dot.active {
  background: var(--pr-accent);
  width: 22px;
  border-radius: 4px;
}

/* ── Detail Panel ─────────────────────────────────── */
.pr-detail {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 500px;
  height: 100dvh;
  height: 100vh;
  background: var(--pr-surface);
  border-left: 1px solid var(--pr-border);
  z-index: 100000;
  transition: right .45s var(--pr-ease);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -24px 0 80px rgba(0,0,0,.6);
}

.pr-detail[aria-hidden="false"] {
  right: 0;
}

.pr-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pr-backdrop.pr-backdrop--on {
  opacity: 1;
  pointer-events: auto;
}

.pr-detail-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pr-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pr-surface2);
  border: 1px solid var(--pr-border);
  color: var(--pr-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
  z-index: 10;
  flex-shrink: 0;
}

.pr-detail-close svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.pr-detail-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

/* Media area (image or video embed) */
.pr-detail-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--pr-surface2);
  overflow: hidden;
  flex-shrink: 0;
}

.pr-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pr-detail-media iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.pr-detail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}

/* Detail body */
.pr-detail-body {
  padding: 24px;
  flex: 1;
}

.pr-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pr-detail-type-badge {
  display: inline-block;
  background: var(--pr-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 100px;
}

.pr-detail-featured {
  font-size: 12px;
  color: #f59e0b;
  font-weight: 700;
}

.pr-detail-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--pr-text);
  line-height: 1.3;
  margin-bottom: 14px;
}

.pr-detail-desc {
  color: var(--pr-text-muted);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.pr-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}

.pr-detail-tags .pr-tag {
  font-size: 11px;
  padding: 4px 12px;
}

.pr-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Action buttons */
.pr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition: transform .2s var(--pr-ease-spring), box-shadow .2s, opacity .2s;
  line-height: 1;
}

.pr-action-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.pr-action-btn--primary {
  background: var(--pr-accent);
  color: #fff !important;
  box-shadow: 0 4px 20px var(--pr-glow);
}

.pr-action-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--pr-glow);
}

.pr-action-btn--secondary {
  background: var(--pr-surface2);
  color: var(--pr-text) !important;
  border: 1px solid var(--pr-border);
}

.pr-action-btn--secondary:hover {
  border-color: var(--pr-accent);
  color: var(--pr-accent) !important;
}

/* ── Empty State ──────────────────────────────────── */
.pr-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--pr-text-muted);
  background: var(--pr-surface);
  border-radius: var(--pr-radius);
  border: 2px dashed var(--pr-border);
  font-size: 15px;
}

.pr-empty a {
  color: var(--pr-accent);
  text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 720px) {
  .pr-stage {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .pr-rolodex-box {
    max-width: 100%;
  }

  /* Phone goes horizontal on mobile */
  .pr-phone {
    order: 0;
    width: 100%;
    max-width: 480px;
    flex-direction: row;
    border-radius: 22px;
    padding: 10px 14px;
    margin-top: 0;
    gap: 10px;
    align-items: center;
  }

  .pr-phone::before,
  .pr-phone::after { display: none; }

  .pr-phone-island,
  .pr-phone-status,
  .pr-phone-home { display: none; }

  .pr-phone-screen {
    width: 80px;
    margin: 0;
    flex-shrink: 0;
  }

  .pr-phone-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    flex: 1;
  }

  .pr-phone-talk {
    padding: 0;
    width: auto;
    flex-shrink: 0;
  }

  .pr-phone-btn--talk {
    width: auto;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .portfolio-rolodex {
    padding: 28px 12px 24px;
    border-radius: 16px;
  }

  .pr-scene {
    height: 260px;
  }

  .pr-card {
    width: 240px;
    height: 178px;  /* 16:9 thumb (135px) + footer (~43px) */
    margin-left: -120px;
    margin-top: -89px;
  }

  .pr-detail {
    max-width: 100%;
  }

  .pr-stand-base {
    width: 200px;
  }
}

/* ── Animations ───────────────────────────────────── */
@keyframes pr-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pr-detail[aria-hidden="false"] .pr-detail-body {
  animation: pr-fade-up .4s ease .15s both;
}
