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

/* ── Scroll dots ── */
.scroll-dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 10px;
}
.scroll-dot {
  position: relative; display: block; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: background .2s ease, transform .2s ease;
}
.scroll-dot:hover { background: rgba(255,255,255,.6); transform: scale(1.3); }
.scroll-dot::before {
  content: attr(data-label);
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: rgba(11,15,25,.88); backdrop-filter: blur(8px);
  color: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap;
  padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14);
  pointer-events: none; opacity: 0; transition: opacity .15s ease;
}
.scroll-dot:hover::before { opacity: 1; }
.scroll-dot.active { background: var(--white); transform: scale(1.2); }
.scroll-dot:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
@media (max-width: 640px) {
  .scroll-dots {
    top: 22px; left: 50%; right: auto;
    transform: translateX(-50%);
    flex-direction: row; gap: 12px;
  }
  .scroll-dot::before { display: none; }
  .scroll-dot::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; }
}

body {
  background-image: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  background-attachment: fixed;
}

.wrap{ max-width:1120px; margin:0 auto; padding:26px 18px 88px; display:grid; gap:28px }

/* Section titles */
.section-title{
  display:flex; align-items:center; gap:10px;
  font-family:"Lato", var(--font); font-size:28px; font-weight:800; letter-spacing:.2px; color:var(--white);
  margin:4px 2px 6px;
}
.section-sub{ color:var(--muted); font-size:14px; margin-bottom:8px }

/* .card base is in style.css */

/* =========================
   MUSIC / SPOTIFY
   ========================= */
.player-embed{ width:100%; height:500px; border:0; display:block; transition: opacity 0.35s ease; }

.albums{ display:grid; gap:12px; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); padding:16px }
.album{
  position:relative; overflow:hidden; isolation:isolate; cursor:pointer;
  display:grid; align-items:end; gap:8px;
  padding:14px; border-radius:var(--radius); color:var(--white);
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.70) 100%),
    var(--art-url, none) center / cover,
    hsl(220 25% 14%);
  border:1px solid rgba(255,255,255,.20);
  transition: transform .08s ease, filter .2s ease, box-shadow .2s ease;
  min-height: 108px;
}
.album:hover{ transform:translateY(-1px); }
.ainfo{ position:relative; z-index:1; display:grid; gap:4px }
.aname{ font-weight:800; letter-spacing:.2px; line-height:1.2 }
.ameta{ font-size:12px; opacity:.9 }
.album.selected{
  outline:2px solid var(--ring); outline-offset:3px;
  transform:translateY(-2px);
}

/* =========================
   ABOUT / COMMISSIONS
   ========================= */
.about{
  /* keep rounded corners and clip children/pseudos on all devices */
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
}
.agrid{ position:relative; z-index:1; display:grid; grid-template-columns: 1.25fr .95fr; gap:28px; padding:22px }
@media (max-width:900px){ .agrid{ grid-template-columns:1fr; padding:16px } }

.heading{
  display:flex; align-items:center; gap:10px; color:var(--white);
  font-family:"Lato", var(--font); font-size:28px; font-weight:800; letter-spacing:.2px;
  margin:2px 0 10px;
}
.lead{ color:var(--text); font-size:16px; line-height:1.7 }

.tabs{ display:flex; gap:10px; margin:8px 0 14px; flex-wrap:wrap }
.btn{
  appearance:none; border:1px solid rgba(255,255,255,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 100%),
    rgba(2,6,23,.22);
  color:var(--white); padding:11px 16px; border-radius:14px; font-weight:700; letter-spacing:.2px;
  font-size:15px; cursor:pointer; text-decoration:none; display:inline-block;
  transition: transform .08s ease, filter .2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:focus-visible{ outline:3px solid var(--ring); outline-offset:2px; }
.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: rgba(255,255,255,.35); outline:2px solid var(--ring); outline-offset:2px;
}

.comm{ display:grid; gap:16px; color:var(--text); }
.comm .note{ font-size:14px; color:var(--muted); }
.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{ position:relative; z-index:1; margin:0 0 6px; color:var(--white); font-size:15px; letter-spacing:.2px; text-transform:uppercase }
.pack .desc{ position:relative; z-index:1; font-size:14px; color:var(--text); }
.pack .price{ position:relative; z-index:1; margin-top:8px; font-weight:800; color:var(--white) }

.portrait{ position:relative; align-self:center; justify-self:center; width:100%; max-width:380px }
.ring{
  position:absolute; inset:-18px; border-radius:9999px; z-index:0; opacity:.9; filter: blur(8px);
  background:
    radial-gradient(120px 140px at 20% 15%, rgba(10,110,158,.35), rgba(239,68,68,0) 60%),
    radial-gradient(200px 200px at 80% 20%, rgba(16,177,255,.28), rgba(37,99,235,0) 70%),
    radial-gradient(240px 220px at 60% 90%, rgba(255,131,39,.30), rgba(244,63,94,0) 70%);
  animation: floaty 12s ease-in-out infinite alternate;
}
.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 rgba(255,255,255,.24); 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{ position:relative; z-index:1 }
.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 }

/* Footnote */
.footer{ text-align:center; color:var(--muted); font-size:12px; margin-top:6px }
.embed-note{ margin-bottom:20px }

/* Compact contact list + link color */
.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 }

/* A11y + responsive polish */
@media (max-width: 640px){
  .wrap{ padding: 20px 14px 60px }
  .section-title{ font-size: clamp(22px, 6.2vw, 28px) }
  .albums{ grid-template-columns: repeat(2, 1fr); padding: 12px; }
  .album{ min-height: 90px; }
  .aname{ font-size: 13px; }
  .player-embed{ height: 352px; }

  /* About / Commissions card: hide portrait on mobile, bio uses full width */
  .agrid{ grid-template-columns: 1fr; gap: 16px; }
  .portrait{ display: none; }
  .ring{ display: none; }

  /* My Work player: bigger touch targets */
  .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 14px; }
  .mw-chip{ padding: 7px 14px; }
}

#music::before{ display:none; }

/* ── My Work player ── */
.mw-player{ display:flex; align-items:flex-start; gap:16px; padding:20px 18px 14px; }
.mw-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:8px; }
.mw-title{
  font-family:"Lato",var(--font); 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,.08); border:1px solid rgba(255,255,255,.14); 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; outline:none;
  --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:2px solid var(--ring); 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-btn:focus-visible{ outline:2px solid var(--ring); outline-offset:3px; border-radius:4px; }
.mw-chips{
  display:flex; flex-wrap:wrap; gap:6px;
  border-top:1px solid rgba(255,255,255,.08); padding:12px 18px 14px;
}
.mw-chip{
  appearance:none; cursor:pointer; font-size:13px; font-weight:600;
  padding:5px 13px; border-radius:999px;
  border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.05); color:var(--muted);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mw-chip:hover{ background:rgba(255,255,255,.10); color:var(--text); }
.mw-chip.active{ background:var(--ring); color:#001827; border-color:rgba(255,255,255,.35); }
.mw-chip:focus-visible{ outline:2px solid var(--ring); outline-offset:2px; }
.mw-list{
  list-style:none; margin:0; padding:0 0 6px;
  border-top:1px solid rgba(255,255,255,.08);
  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:2px solid var(--ring); outline-offset:-2px; }
.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; }
@media (max-width:640px){
  .mw-player{ gap:12px; padding:16px 14px 12px; }
  .mw-cover{ width:68px; height:68px; }
  .mw-chips{ padding:12px 14px 12px; }
  .mw-list li{ padding:10px 14px; }
}
