/* ================================================================
   WORK — the sample-work modal opened from each tier card's "View
   sample work" button (see features/work/work.js for the per-tier
   content and open/close logic). Accent color comes from the same
   .tier-color-1..4 classes the tier cards use, applied to the modal
   itself so the two feel connected rather than like a random popup.
   ================================================================ */

.tier-work-btn {
  display: block;
  margin-block-start: 14px;
  background: none;
  border: none;
  padding: 0;
  color: var(--tier-color);
  font-weight: var(--weight-label);
  font-size: 0.9rem;
}
.tier-work-btn:hover { text-decoration: underline; text-underline-offset: 2px; }

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.work-modal[hidden] { display: none; }

.work-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 32, 0.5);
}

.work-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  border-inline-start: 4px solid var(--tier-color);
  box-shadow: var(--shadow-elevated);
  padding: 26px;
}
.work-modal-panel:focus { outline: none; }

.work-modal-close {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-page);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-modal-close svg { width: 14px; height: 14px; }
.work-modal-close:hover { background: var(--border); color: var(--text-primary); }

.work-modal-tier {
  color: var(--tier-color);
  font-weight: var(--weight-label);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-block-end: 10px;
}
.work-modal-title { margin-block-end: 12px; padding-inline-end: 32px; }
.work-modal-body { color: var(--text-muted); }

/* Prevents the page behind the modal from scrolling while it's open. */
body.work-modal-open { overflow: hidden; }
