:root {
  --bg: #0b0b0b;
  --bg-elevated: #141414;
  --red: #e50914;
  --red-dark: #b20710;
  --text: #f5f5f1;
  --text-dim: #b3b3b3;
  --text-faint: #737373;
  --row-gap: 28px;
  --edge: clamp(16px, 4vw, 60px);
  --font-display: 'Bebas Neue', 'Anton', Impact, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--edge);
  transition: background .35s ease, box-shadow .35s ease;
}

.nav.scrolled {
  background: var(--bg);
  box-shadow: 0 2px 14px rgba(0,0,0,.6);
}

.nav-brand {
  font-family: var(--font-display);
  letter-spacing: 2px;
  font-size: 1.9rem;
  color: var(--red);
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: .92rem;
  color: var(--text-dim);
}

.nav-links a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .85rem;
  color: var(--text-dim);
}

.nav-avatar {
  width: 30px; height: 30px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--red), #6b0a0a);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  color: #fff;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}

.hero-media-frame {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 86vw);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
  z-index: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.6);
}

.hero-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  filter: brightness(.85);
}

.hero-fade-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(to top, var(--bg) 0%, rgba(11,11,11,0) 100%);
}

.hero-fade-side {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--edge) 6vh;
  max-width: 640px;
}

.hero-eyebrow {
  color: var(--text-dim);
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 7rem);
  line-height: .9;
  letter-spacing: 1px;
  margin: 0 0 18px;
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-meta .match { color: #46d369; font-weight: 700; }

.hero-meta .rated {
  border: 1px solid var(--text-faint);
  padding: 1px 6px;
  font-size: .75rem;
}

.hero-synopsis {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 560px;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-eyebrow:empty,
.hero-synopsis:empty { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 4px;
  padding: 11px 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: background .15s ease, opacity .15s ease;
}

.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: rgba(245,245,241,.8); }

.btn-secondary { background: rgba(109,109,110,.5); color: var(--text); }
.btn-secondary:hover { background: rgba(109,109,110,.35); }

.btn svg { width: 20px; height: 20px; }

/* ---------- ROWS ---------- */
.rows {
  position: relative;
  z-index: 3;
  margin-top: 0;
  padding-top: 40px;
  padding-bottom: 80px;
}

.row {
  margin-bottom: var(--row-gap);
}

.row-header {
  padding: 0 var(--edge);
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.row-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.row-track-wrap {
  position: relative;
}

.row-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px var(--edge) 28px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.row-track::-webkit-scrollbar { display: none; }

.row-arrow {
  position: absolute;
  top: 0; bottom: 28px;
  width: 48px;
  background: rgba(20,20,20,.55);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease;
  z-index: 5;
}

.row-track-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: rgba(20,20,20,.85); }
.row-arrow.left { left: 0; }
.row-arrow.right { right: 0; }
.row-arrow svg { width: 26px; height: 26px; }

/* ---------- CARD ---------- */
.card {
  flex: 0 0 auto;
  width: 230px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-elevated);
  transition: transform .28s ease, box-shadow .28s ease, z-index 0s;
  transform-origin: center center;
}

.row-track .card { scroll-snap-align: start; }

.card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #1a1a1a;
}

.card:hover,
.card:focus-visible {
  transform: scale(1.12);
  z-index: 10;
  box-shadow: 0 18px 40px rgba(0,0,0,.7);
  outline: none;
}

.card-hover-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  font-size: .72rem;
  color: var(--text-dim);
}

.card:hover .card-hover-info,
.card:focus-visible .card-hover-info {
  opacity: 1;
  transform: translateY(0);
}

.card-hover-title {
  color: var(--text);
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: 3px;
}

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.card-tags span::after { content: '•'; margin-left: 6px; color: var(--text-faint); }
.card-tags span:last-child::after { content: ''; }

/* connect cards: square-ish poster */
.connect-card img { aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-elevated);
  width: min(820px, 100%);
  border-radius: 8px;
  overflow: hidden;
  transform: scale(.92) translateY(10px);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-backdrop {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-backdrop img,
.modal-backdrop iframe {
  width: 100%; height: 100%;
  object-fit: cover;
  border: none;
}

.modal-backdrop-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-elevated) 2%, rgba(0,0,0,0) 40%);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(20,20,20,.7);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.modal-close svg { width: 18px; height: 18px; }

.modal-title-block {
  position: absolute;
  left: 40px; bottom: 24px;
  z-index: 2;
  max-width: 70%;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: .5px;
  margin: 0 0 14px;
}

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

.modal-body {
  padding: 28px 40px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.modal-meta-row .match { color: #46d369; font-weight: 700; }

.modal-synopsis {
  color: var(--text);
  line-height: 1.55;
  font-size: .98rem;
}

.modal-side { font-size: .85rem; color: var(--text-dim); }
.modal-side .label { color: var(--text-faint); }
.modal-side p { margin: 0 0 10px; }

.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.modal-tag {
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  padding: 3px 10px;
  font-size: .78rem;
  color: var(--text-dim);
}

.modal-embed-wrap {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.modal-embed-label {
  font-size: .85rem;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.modal-live-embed {
  width: 100%;
  height: 460px;
  border: 1px solid #262626;
  border-radius: 6px;
  background: #050505;
}

@media (max-width: 720px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-title-block { left: 20px; right: 20px; max-width: none; }
  .modal-live-embed { height: 320px; }
}

/* ---------- CONNECT MODAL VARIANT ---------- */
.modal-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--text-faint);
  border-radius: 4px;
  padding: 9px 18px;
  margin-top: 6px;
}
.modal-cta-link:hover { background: rgba(255,255,255,.08); }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 50px var(--edge) 60px;
  color: var(--text-faint);
  font-size: .82rem;
  border-top: 1px solid #1f1f1f;
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .card { width: 150px; }
  .nav-links { display: none; }
  .hero { height: 78vh; }
  .hero-actions .btn { padding: 9px 16px; font-size: .9rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ================= V2 ADDITIONS: INTRO / PROFILE GATE / BROWSE ================= */

.screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 1;
  transition: opacity .5s ease;
}

.screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.screen[data-state="offstage"] { display: none; }

/* ---- Intro logo animation ---- */
.intro-logo {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 10rem);
  color: var(--red);
  letter-spacing: 4px;
  animation: logoPulse 1.8s cubic-bezier(.2,.8,.2,1) forwards;
  text-shadow: 0 0 60px rgba(229,9,20,.5);
}

@keyframes logoPulse {
  0% { transform: scale(.3); opacity: 0; letter-spacing: 12px; }
  55% { transform: scale(1.08); opacity: 1; letter-spacing: 4px; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- Who's watching ---- */
.profile-gate {
  flex-direction: column;
  gap: 40px;
  text-align: center;
  padding: 20px;
}

.profile-gate h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: .5px;
  margin: 0;
}

.profile-grid {
  display: flex;
  gap: clamp(16px, 4vw, 40px);
  flex-wrap: wrap;
  justify-content: center;
}

.profile-tile {
  background: none;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.profile-avatar {
  width: clamp(90px, 16vw, 160px);
  height: clamp(90px, 16vw, 160px);
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid transparent;
  transition: border-color .15s ease, transform .15s ease;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-tile:hover .profile-avatar,
.profile-tile:focus-visible .profile-avatar {
  border-color: var(--text);
  transform: scale(1.05);
}

.profile-tile span {
  font-size: 1rem;
  transition: color .15s ease;
}

.profile-tile:hover span,
.profile-tile:focus-visible span { color: var(--text); }

/* ---- Profile intro playback ---- */
.profile-intro-screen video,
.profile-intro-screen img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.profile-intro-skip {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(20,20,20,.7);
  color: var(--text);
  border: 1px solid var(--text-faint);
  border-radius: 4px;
  padding: 10px 20px;
  font-size: .9rem;
}

/* ---- Browse nav (profile-aware) ---- */
.browse-nav-links a.disabled {
  opacity: .35;
  pointer-events: none;
}

.profile-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: .85rem;
}

.profile-switcher img {
  width: 30px; height: 30px;
  border-radius: 5px;
  object-fit: cover;
}

.profile-switcher:hover { color: var(--text); }

/* ---- Text-content cards (Work Permit / Experience / Awards) ---- */
.text-card {
  flex: 0 0 auto;
  width: 260px;
  min-height: 150px;
  border-radius: 6px;
  background: linear-gradient(155deg, #1c1c1c, #101010);
  border: 1px solid #262626;
  padding: 18px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.text-card:hover, .text-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--red);
  outline: none;
}

.text-card-eyebrow {
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.text-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.text-card-sub {
  font-size: .82rem;
  color: var(--text-dim);
}

/* ---- Skill tile (compact, square icon + label) ---- */
.skill-card {
  flex: 0 0 auto;
  width: 120px;
  text-align: center;
  cursor: default;
}

.skill-card img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 8px;
}

.skill-card span {
  font-size: .78rem;
  color: var(--text-dim);
}

/* ---- Empty / coming soon row ---- */
.empty-row-note {
  padding: 0 var(--edge);
  color: var(--text-faint);
  font-size: .9rem;
}

/* ---- Modal text-block variant ---- */
.modal-text-block {
  padding: 32px 40px 40px;
}

.modal-text-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: .5px;
  margin: 0 0 18px;
}

.modal-text-block p {
  color: var(--text);
  line-height: 1.6;
  font-size: .98rem;
  margin: 0 0 12px;
}

.modal-text-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  line-height: 1.7;
}

.modal-text-block .modal-meta-row {
  margin-bottom: 16px;
}

/* ---- Stalker fun row ---- */
.stalker-hero-note {
  padding: 0 var(--edge);
  color: var(--text-dim);
  font-size: .95rem;
  margin-bottom: 20px;
  max-width: 500px;
}

/* ---- Easter egg banner (promotion / why-refer-me gifs) ---- */
.easter-egg-banner {
  margin: 0 var(--edge) 30px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 420px;
  border: 1px solid #262626;
}

.easter-egg-banner img { width: 100%; display: block; }

.easter-egg-caption {
  padding: 10px 14px;
  font-size: .82rem;
  color: var(--text-faint);
  background: #111;
}

@media (max-width: 600px) {
  .profile-grid { gap: 20px; }
  .text-card { width: 200px; }
}

/* ================= V3 ADDITIONS ================= */

/* ---- Utility icon row (Work Permit / Skills / Experience / Awards / Projects / Contact) ---- */
/* ---- Utility icon row (photo-backed, single click opens full content) ---- */
.utility-icon-card {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #141414;
  border: none;
  padding: 0;
  display: block;
  transition: transform .18s ease, box-shadow .18s ease;
}

.utility-icon-card .uic-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.utility-icon-card .uic-label-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.5) 70%, rgba(0,0,0,0));
  padding: 30px 14px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}

.utility-icon-card .uic-label-bar svg {
  width: 18px; height: 18px;
  color: var(--red);
  flex-shrink: 0;
}

.utility-icon-card:hover,
.utility-icon-card:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 14px 34px rgba(0,0,0,.6);
  outline: none;
}

/* ---- Direct-link pick card (single click opens link, no modal) ---- */
.pick-link-card {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  position: relative;
  transition: transform .2s ease;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.pick-link-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.pick-link-card:hover,
.pick-link-card:focus-visible {
  transform: scale(1.06);
  outline: none;
}

.pick-link-card .pick-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-weight: 700;
  font-size: .88rem;
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,0));
}

/* ---- Professional (full experience) section ---- */
.professional-section {
  padding: 10px var(--edge) 10px;
}

.professional-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 860px;
}

.professional-card {
  background: linear-gradient(155deg, #1a1a1a, #0d0d0d);
  border: 1px solid #262626;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 22px 26px;
}

.professional-card h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
}

.professional-card .prof-meta {
  color: var(--text-dim);
  font-size: .88rem;
  margin-bottom: 12px;
}

.professional-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: .92rem;
}

/* ---- Projects section (grid, always-visible details) ---- */
.projects-banner {
  margin: 0 var(--edge) 34px;
  background: #161616;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.projects-banner-text h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.projects-banner-text p {
  margin: 0;
  color: var(--text-dim);
  font-size: .95rem;
}

.projects-grid {
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.project-grid-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #141414;
  border: 1px solid #262626;
  transition: transform .18s ease, border-color .18s ease;
}

.project-grid-card:hover,
.project-grid-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--red);
  outline: none;
}

.project-grid-card .pgc-media {
  position: relative;
  aspect-ratio: 16/9;
}

.project-grid-card .pgc-media img {
  width: 100%; height: 100%; object-fit: cover;
}

.project-grid-card .pgc-updated {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(0,0,0,.7);
  color: var(--text-dim);
  font-size: .7rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

.project-grid-card .pgc-body { padding: 16px 18px 20px; }

.project-grid-card h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.project-grid-card p {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: .86rem;
  line-height: 1.5;
}

.project-grid-card .pgc-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.project-grid-card .pgc-tags span {
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: .72rem;
  color: var(--text-faint);
}

@media (max-width: 600px) {
  .utility-icon-card { width: 100px; }
  .utility-icon-card img { width: 84px; height: 84px; }
}

/* ---- Wide modal variant (Projects) ---- */
.modal.modal-wide {
  width: min(1100px, 96vw);
}

.modal-projects-grid {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .hero-media-frame { top: 12%; width: 92vw; }
  .utility-icon-card { width: 170px; }
}

/* ---- Logo pick card (Stalker's Instagram/LinkedIn/Spotify/Netflix links) ---- */
.pick-logo-card .pick-logo-tile {
  width: 100%;
  aspect-ratio: 1/1;
  background: #141414;
  border: 1px solid #262626;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pick-logo-card .pick-logo-icon {
  width: 45%;
  height: 45%;
  object-fit: contain;
}

.pick-logo-card:hover .pick-logo-tile,
.pick-logo-card:focus-visible .pick-logo-tile {
  border-color: var(--red);
}

.pick-logo-card .pick-title {
  position: static;
  background: none;
  padding: 10px 2px 0;
  text-align: center;
}
