/* Home page — layout, About/Commissions, and My Work player */

.wrap { display: grid; gap: 28px; }

#about, #mywork-header { scroll-margin-top: 80px; }

/* ── Section headers ── */
.page-title { margin: 4px 2px 6px; }
.section-sub { color: var(--muted); font-size: 14px; margin: 2px 2px 8px; }
.section-sub a { color: var(--white); text-decoration: underline; }
.section-sub a:hover { text-decoration: none; }

/* Hero social strip: negative left margin optically aligns the first glyph
   (inset 9px inside its 36px hit target) with the text above it. */
#about .social-strip { margin: 8px 0 0 -7px; }

/* =========================
   ABOUT / COMMISSIONS
   ========================= */
.agrid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .95fr; gap: 28px; padding: 18px; }

.lead { color: var(--text); font-size: 16px; line-height: 1.7; }

.tabs { display: flex; gap: 10px; margin: 8px 0 14px; flex-wrap: wrap; }
.btn { color: var(--white); font-size: 15px; }
.btn.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.04) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.10) 130%),
    var(--ring);
  border-color: var(--line-bright);
}

.comm { display: grid; gap: 16px; color: var(--text); }
.comm .note { font-size: 14px; color: var(--muted); }
.comm .note a, .comm .note a:visited { color: var(--white); text-decoration: underline; }
.contact-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }

.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pack { padding: 14px; transition: transform .08s ease; }
.pack:hover { transform: translateY(-1px); }
.pack h3 { margin: 0 0 6px; color: var(--white); font-size: 15px; letter-spacing: .2px; text-transform: uppercase; }
.pack .desc { font-size: 14px; color: var(--text); }

.portrait { align-self: center; justify-self: center; width: 100%; max-width: 380px; }
.frame {
  position: relative; border-radius: 9999px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.05) 100%), #111827;
  border: 1px solid var(--line-strong); aspect-ratio: 1/1; transform: translateZ(0);
}
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; filter: saturate(1.05) contrast(1.02); }

.termswrap { align-self: stretch; padding: 18px; color: var(--text); }
.terms h3 { margin: 0 0 10px; color: var(--white); font-size: 14px; letter-spacing: .2px; text-transform: uppercase; }
.terms ul { margin: 10px 0 0 18px; padding: 0; }
.terms li { margin: 6px 0; }

/* =========================
   MY WORK PLAYER
   ========================= */
.mw-player { display: flex; align-items: flex-start; gap: 16px; padding: 18px 18px 14px; }
.mw-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mw-title {
  font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mw-ptags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 18px; }
.mw-ptag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted);
}
.mw-scrubber { display: flex; align-items: center; gap: 8px; }
.mw-time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mw-seek {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 999px; cursor: pointer;
  --pct: 0%;
  background: linear-gradient(to right, var(--ring) var(--pct), rgba(255,255,255,.15) var(--pct));
}
.mw-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.mw-seek::-moz-range-thumb {
  width: 14px; height: 14px; border: none;
  border-radius: 50%; background: var(--white); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.mw-seek:focus-visible { outline-offset: 3px; border-radius: 2px; }
.mw-controls { display: flex; gap: 12px; align-items: center; }
.mw-btn {
  appearance: none; cursor: pointer; background: none; border: none; padding: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white); opacity: .80;
  transition: opacity .15s ease, transform .08s ease;
}
.mw-btn:hover { opacity: 1; transform: scale(1.12); }
.mw-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--line-soft); padding: 12px 18px 14px;
}
.mw-list {
  list-style: none; margin: 0; padding: 0 0 6px;
  border-top: 1px solid var(--line-soft);
  max-height: 480px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.08) transparent;
}
.mw-list::-webkit-scrollbar { width: 4px; }
.mw-list::-webkit-scrollbar-track { background: transparent; }
.mw-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.10); border-radius: 9999px; }
.mw-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); }
.mw-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s ease;
}
.mw-list li:last-child { border-bottom: none; }
.mw-list li:hover { background: rgba(255,255,255,.05); }
.mw-list li[aria-selected="true"] { background: rgba(16,177,255,.10); }
.mw-list li:focus-visible { outline-offset: -2px; }
.mw-empty { padding: 16px 18px; color: var(--muted); cursor: default; pointer-events: none; }
.mw-item-info { flex: 1; min-width: 0; }
.mw-item-title {
  font-weight: 700; font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mw-item-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mw-item-dur { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .agrid { grid-template-columns: 1fr; padding: 16px; }
}
@media (max-width: 640px) {
  /* About / Commissions card: hide portrait on mobile, bio uses full width */
  .agrid { gap: 16px; }
  .portrait { display: none; }

  /* My Work player: bigger touch targets */
  .mw-player { gap: 12px; padding: 16px 14px 12px; }
  .mw-btn { padding: 10px; }
  .mw-seek { height: 6px; }
  .mw-seek::-webkit-slider-thumb { width: 18px; height: 18px; }
  .mw-seek::-moz-range-thumb { width: 18px; height: 18px; }
  .mw-chips { gap: 8px; padding: 12px 14px; }
  .mw-list li { padding: 10px 14px; }
}
