/* DerekHixon.com shared local prototype system */
:root {
  --paper: #f5f1e9;
  --wall: #fbfaf6;
  --ink: #24211d;
  --mark: #3a352f;
  --muted: #625d55;
  --faint: #918a80;
  --edge: rgba(21, 21, 21, .82);
  --line: rgba(21, 21, 21, .12);
  --line-strong: rgba(21, 21, 21, .22);
  --focus: #111;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.55), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(226,218,204,.28), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.18) 0 25%, transparent 25% 50%, rgba(0,0,0,.012) 50% 75%, transparent 75%),
    var(--paper);
  background-size: auto, auto, 5px 5px, auto;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body.modal-open { overflow: hidden; }
a, button { color: inherit; }
a { text-decoration: none; text-underline-offset: .22em; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--focus); outline-offset: 5px; }
button { font: inherit; }

.page { width: min(100%, 1840px); min-height: 100vh; margin: 0 auto; padding: 0 clamp(22px, 3.2vw, 48px) clamp(22px, 3.2vw, 48px); overflow-x: clip; }
.page-home { display: grid; grid-template-rows: auto 1fr auto; width: auto; max-width: none; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: clamp(28px, 4vw, 72px); width: 100%; margin: 0 0 clamp(24px, 3.6vw, 54px); padding-top: clamp(16px, 2.4vw, 34px); padding-bottom: clamp(10px, 1.4vw, 18px); }
.site-header::before { content: ""; position: absolute; left: 50%; top: calc(-1 * clamp(22px, 3.2vw, 48px)); width: 100vw; height: calc(100% + clamp(92px, 11vw, 168px)); transform: translateX(-50%); background: linear-gradient(to bottom, rgba(245,241,233,.98) 0%, rgba(245,241,233,.96) 28%, rgba(245,241,233,.88) 48%, rgba(245,241,233,.62) 66%, rgba(245,241,233,.32) 82%, rgba(245,241,233,.12) 93%, rgba(245,241,233,0) 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 44%, rgba(0,0,0,.88) 60%, rgba(0,0,0,.48) 78%, rgba(0,0,0,.16) 92%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 44%, rgba(0,0,0,.88) 60%, rgba(0,0,0,.48) 78%, rgba(0,0,0,.16) 92%, transparent 100%); backdrop-filter: blur(8px); pointer-events: none; z-index: -1; }
.page-home .site-header { margin-bottom: clamp(8px, 2.1vh, 26px); padding-bottom: clamp(8px, 1.2vh, 14px); }
.site-mark { flex: 0 0 auto; color: var(--mark); font-size: clamp(20px, 1.75vw, 27px); font-weight: 400; letter-spacing: .004em; white-space: nowrap; }
.site-nav { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: clamp(20px, 2.5vw, 40px); min-width: 0; color: var(--mark); font-size: clamp(18px, 1.32vw, 21px); font-weight: 400; letter-spacing: .01em; }
.site-nav [aria-current="page"] { text-decoration: underline; }

.intro { margin: 0; }
.intro h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.intro-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 430px); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(24px, 3.6vw, 52px); }
.intro-copy { margin: 0 0 .45em; color: var(--muted); font-size: clamp(15px, 1.08vw, 18px); line-height: 1.45; white-space: nowrap; }

.hero { display: flex; align-items: center; justify-content: center; width: min(100%, 1360px); margin: 0 auto; padding-bottom: clamp(42px, 7vh, 86px); }
.art-hang, .object-frame, .modal-image-frame, .modal-cover-frame, .modal-art { padding: clamp(5px, .48vw, 9px); background: var(--wall); border: 1px solid rgba(21,21,21,.17); box-shadow: none; }
.art-hang { padding: clamp(11px, 1.15vw, 17px); background: linear-gradient(90deg, rgba(255,255,255,.42), rgba(255,255,255,.06)), radial-gradient(circle at 36% 28%, rgba(0,0,0,.018), transparent 24%), var(--wall); border-color: rgba(21,21,21,.2); }
.hero-frame { display: block; width: auto; max-width: min(78vw, 1000px); max-height: 63vh; object-fit: contain; border: 1px solid var(--edge); background: transparent; }
.site-footer { width: min(100%, 1360px); margin: 0 auto; min-height: 1.35em; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.site-footer span { opacity: 0; pointer-events: none; }

.room, .gallery-wall, .album-wall { min-height: 72vh; padding: clamp(28px, 3.4vw, 54px) clamp(8px, 1.2vw, 22px) clamp(44px, 5vw, 78px); background: linear-gradient(90deg, rgba(255,255,255,.24), rgba(255,255,255,.02)), rgba(251,250,246,.30); border-top: 1px solid rgba(21,21,21,.075); border-bottom: 1px solid rgba(21,21,21,.075); overflow-x: clip; }
.room[hidden] { display: none; }
.hang-group { display: grid; gap: clamp(30px, 3.6vw, 58px); width: min(100%, 1720px); margin: 0 auto; }
.hang-row { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 1.55vw, 30px); width: 100%; }
.hang-row[data-count="1"], .hang-row[data-count="2"] { justify-content: center; }
.object-grid, .album-group, .mix-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(42px, 5vw, 82px) clamp(24px, 3vw, 54px); width: min(100%, 1180px); margin: 0 auto; align-items: start; }
.flyer-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(34px, 4vw, 66px) clamp(22px, 2.6vw, 46px); width: min(100%, 1240px); margin: 0 auto; align-items: start; }

.work { --label-gutter: 58px; flex: 0 1 var(--basis); width: var(--basis); max-width: var(--basis); transform: translateY(var(--lift, 0)); }
.object, .album, .flyer { --label-gutter: 58px; position: relative; width: 100%; max-width: 340px; padding-bottom: var(--label-gutter); justify-self: center; contain: layout style; }
.flyer { max-width: 260px; }
.work, .object, .album, .flyer { position: relative; padding-bottom: var(--label-gutter); }
.work button, .object button, .album button, .flyer button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; appearance: none; -webkit-appearance: none; }
.work button, .flyer button { cursor: zoom-in; }
.work button:focus-visible, .object button:focus-visible, .album button:focus-visible, .flyer button:focus-visible { outline: 1px solid var(--ink); outline-offset: 7px; }
.object-frame, .album-frame, .work-frame { display: block; padding: clamp(5px, .48vw, 9px); background: var(--wall); border: 1px solid rgba(21,21,21,.17); box-shadow: none; }
.work img, .object img, .album img, .flyer img { display: block; width: 100%; border: 1px solid var(--edge); background: white; transform: none; transition: none; }
.work img { height: auto; }
.object img, .album img { aspect-ratio: 1; object-fit: cover; }
.flyer img { aspect-ratio: auto; height: auto; object-fit: contain; }
button:hover .work-frame, button:hover .object-frame, button:hover .album-frame, button:hover img { transform: none !important; box-shadow: none !important; filter: none !important; opacity: 1; }
.label { display: block; position: absolute; left: 0; top: calc(100% - var(--label-gutter) + 10px); width: max-content; max-width: min(18rem, 100vw - 48px); min-height: 0; padding: 6px 8px 7px; background: rgba(245,241,233,.88); border: 1px solid rgba(21,21,21,.08); color: var(--mark); text-align: left; font-size: 11px; line-height: 1.28; letter-spacing: .018em; opacity: .14; transition: opacity .42s ease; pointer-events: none; z-index: 2; will-change: opacity; }
.work:hover .label, .object:hover .label, .album:hover .label, .flyer:hover .label, .work:has(button:focus-visible) .label, .object:has(button:focus-visible) .label, .album:has(button:focus-visible) .label, .flyer:has(button:focus-visible) .label { opacity: 1; }
.label span { display: block; }
.label .meta, .label-genre, .label-year, .label .status { color: var(--muted); font-size: 10px; margin-top: 2px; }
.label .status { color: var(--faint); margin-top: 3px; }

.section-switch { display: flex; justify-content: center; width: fit-content; margin: 0 auto clamp(22px, 2.8vw, 38px); border: 1px solid var(--line-strong); background: rgba(251,250,246,.54); }
.section-switch button { min-width: 150px; padding: 15px 30px 14px; border: 0; border-right: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; font-size: clamp(17px, 1.2vw, 20px); letter-spacing: .025em; text-transform: lowercase; }
.section-switch button:last-child { border-right: 0; }
.section-switch button[aria-selected="true"] { background: var(--wall); color: var(--mark); text-decoration: underline; text-underline-offset: .26em; }

.text-room { width: min(100%, 900px); margin: clamp(42px, 6vw, 90px) auto 0; padding: clamp(28px, 4vw, 56px); background: rgba(251,250,246,.34); border-top: 1px solid rgba(21,21,21,.075); border-bottom: 1px solid rgba(21,21,21,.075); }
.text-room p { max-width: 46rem; margin: 0 0 1.1em; color: var(--muted); font-size: clamp(17px, 1.2vw, 20px); line-height: 1.55; }
.text-room .small-label { margin: 2.4em 0 .8em; color: var(--faint); font-size: 11px; letter-spacing: .06em; text-transform: lowercase; }
.text-room ul { margin: .5em 0 0; padding: 0; list-style: none; color: var(--muted); font-size: clamp(16px, 1.05vw, 18px); line-height: 1.7; }
.about-image { margin: 0 0 clamp(24px, 3.2vw, 42px); }
.about-image img { display: block; width: min(100%, 620px); height: auto; border: 1px solid var(--edge); background: white; }

.about-room {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.about-image {
  margin: 0;
}
.about-image img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 701px) {
  .about-room {
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .about-room {
    display: block;
  }
  .about-image {
    margin-bottom: 24px;
  }
}

.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: clamp(18px, 3vw, 48px); background: rgba(255,253,248,.78); backdrop-filter: blur(0); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .42s cubic-bezier(.22,.61,.36,1), backdrop-filter .42s cubic-bezier(.22,.61,.36,1), visibility 0s linear .42s; }
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; backdrop-filter: blur(14px); transition-delay: 0s; }
.modal-panel { position: relative; width: min(100%, 1260px); max-height: min(90vh, 920px); padding: clamp(16px, 2.2vw, 32px); background: rgba(255,254,250,.97); box-shadow: 0 18px 55px rgba(70,55,35,.08); opacity: 0; transform: scale(.986); transition: opacity .42s cubic-bezier(.22,.61,.36,1), transform .42s cubic-bezier(.22,.61,.36,1); }
.modal.is-open .modal-panel { opacity: 1; transform: scale(1); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; border-radius: 0; cursor: pointer; font-size: 0; line-height: 1; appearance: none; -webkit-appearance: none; z-index: 4; }
.modal-close::before, .modal-close::after { content: ""; position: absolute; left: 5px; right: 5px; top: 14px; height: 1px; background: rgba(36,33,29,.56); transform-origin: center; }
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-close:hover::before, .modal-close:hover::after, .modal-close:focus-visible::before, .modal-close:focus-visible::after { background: rgba(36,33,29,.9); }

.art-modal .modal-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem); gap: clamp(18px, 2.6vw, 44px); align-items: center; width: min(100%, 1500px); }
.modal-image-wrap { display: flex; align-items: center; justify-content: center; min-height: 0; }
.modal-image-frame { max-width: 100%; max-height: calc(90vh - 120px); }
.modal-image-frame img { display: block; max-width: 100%; max-height: calc(90vh - 145px); width: auto; height: auto; border: 1px solid var(--edge); background: white; object-fit: contain; }
.modal-info { align-self: end; color: var(--mark); }
.modal-info h2, .album-object h2, .modal-title { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 54px); line-height: .98; font-weight: 400; letter-spacing: -.035em; }
.modal-info p, .modal-year, .modal-meta, .modal-note, .album-notes { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.modal-info .status { margin-top: 18px; color: var(--faint); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }

.music-modal .modal-panel, .mix-modal .modal-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3.4vw, 56px); align-items: start; }
.album-object { display: grid; color: var(--mark); }
.album-object-body { display: grid; justify-items: center; width: 100%; padding-top: clamp(18px, 2.4vw, 34px); }
.modal-cover-frame, .modal-art { width: min(100%, 340px); margin: 0 auto; }
.modal-cover-frame img, .modal-art img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--edge); background: white; }
.album-player, .player-side { display: grid; place-items: center; min-height: min(62vh, 640px); }
.embed-card, .player-card { justify-self: center; width: min(100%, 460px); padding: clamp(10px, 1.4vw, 18px); background: rgba(251,250,246,.62); border: 1px solid rgba(21,21,21,.15); }
.bandcamp-slot iframe, .bandcamp-slot video { display: block; width: 100%; max-width: 400px; height: 472px; border: 0; background: transparent; }
.player-card iframe { display: block; width: 100%; height: 120px; border: 0; }
.player-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.album-notes { margin: 16px auto 0; width: min(100%, 520px); text-align: center; }
.album-notes .quote-source { display: block; margin-top: 6px; color: var(--faint); font-size: 12px; }
.modal-links { display: flex; flex-wrap: nowrap; justify-content: center; gap: 10px 12px; width: min(100%, 520px); margin: 24px auto 0; }
.modal-links a { border: 1px solid var(--line-strong); padding: 8px 10px 9px; color: var(--mark); font-size: 12px; white-space: nowrap; letter-spacing: .03em; }
.modal-links a:hover, .modal-links a:focus-visible { text-decoration: none; background: rgba(251,250,246,.74); }
.modal-note { width: min(100%, 520px); margin: 16px auto 0; text-align: left; }

/* DJ mix listening modal: keep description visually attached to the player. */
.mix-modal .player-side { align-content: center; justify-items: center; gap: 14px; }
.mix-modal .modal-note { margin: 0 auto; white-space: pre-line; }


.flyer-modal .modal-panel { display: grid; place-items: center; width: min(100%, 1500px); height: min(90vh, 920px); max-height: min(90vh, 920px); padding: clamp(18px, 2.2vw, 34px); overflow: visible; background: rgba(255,254,250,.97); border: 1px solid rgba(21,21,21,.14); box-shadow: 0 18px 55px rgba(70,55,35,.08); }
.flyer-stage { position: relative; display: grid; place-items: center; width: fit-content; max-width: 100%; max-height: 100%; padding: clamp(5px, .48vw, 9px); background: var(--wall); border: 1px solid rgba(21,21,21,.17); }
.flyer-stage img { display: block; width: auto; height: auto; max-width: calc(100vw - 240px); max-height: calc(90vh - 150px); object-fit: contain; border: 1px solid var(--edge); background: white; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 50px; border: 0; background: rgba(245,241,233,.72); color: rgba(36,33,29,.72); cursor: pointer; font-size: 0; line-height: 1; z-index: 3; }
.gallery-nav:hover, .gallery-nav:focus-visible { background: rgba(251,250,246,.96); }
.gallery-nav::before { content: ""; position: absolute; left: 13px; top: 17px; width: 14px; height: 14px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-prev::before { transform: rotate(-45deg); }
.gallery-next::before { left: 9px; transform: rotate(135deg); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 980px) {
  .site-header { display: block; margin-bottom: 32px; padding-bottom: 14px; }
  .site-mark { display: block; margin-bottom: 18px; }
  .site-nav { justify-content: flex-start; gap: 12px 22px; }
  .intro-split { grid-template-columns: 1fr; align-items: start; }
  .hang-row { width: 100%; padding: 0; }
  .work { --label-gutter: 58px; flex-basis: min(var(--mobile-basis, 92vw), 92vw); width: min(var(--mobile-basis, 92vw), 92vw); max-width: 92vw; transform: none; contain: none; }
  .object-grid, .album-group, .mix-wall { grid-template-columns: 1fr; gap: 42px; }
  .flyer-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-modal .modal-panel, .music-modal .modal-panel, .mix-modal .modal-panel { grid-template-columns: 1fr; gap: 18px; max-height: 94vh; overflow: auto; }
  .album-player, .player-side { min-height: auto; }
  .modal-links { flex-wrap: wrap; width: min(100%, 360px); }
}
@media (max-width: 700px) {
  .page { padding: 20px; }
  .page-home { display: block; }
  .site-header,
  .page-home .site-header { padding-top: 14px; }
  .page-home .site-header { display: block; margin-bottom: 28px; padding-bottom: 14px; }
  .page-home .site-nav { gap: 11px 18px; max-width: 24rem; }
  .hero { align-items: flex-start; padding-bottom: 34px; }
  .art-hang { padding: 7px; }
  .hero-frame { max-width: 100%; max-height: 58vh; }
  .intro-copy { white-space: normal; }
  .room, .gallery-wall, .album-wall { padding-inline: 10px; }
  .hang-group { gap: 42px; }
  .hang-row { display: grid; justify-items: center; }
  .work, .object, .album, .flyer { width: min(92vw, 360px); max-width: 92vw; padding-bottom: 0; contain: none; }
  .label { position: static; width: auto; max-width: none; margin-top: 8px; opacity: 1; background: transparent; border: 0; padding: 0; will-change: auto; }
  .flyer-wall { grid-template-columns: 1fr; gap: 34px; }
  .section-switch { width: 100%; }
  .section-switch button { flex: 1; min-width: 0; }
  .modal { padding: 10px; }
  .modal-panel { width: 100%; max-height: 96vh; padding: 28px 18px 22px; }
  .modal-close { top: 8px; right: 8px; }
  .modal-image-frame, .modal-image-frame img { max-height: 68vh; }
  .text-room { padding: 24px 0; background: transparent; }
  .flyer-modal .modal-panel { height: 94vh; max-height: 94vh; padding: 28px 18px 22px; }
  .flyer-stage img { max-width: calc(100vw - 92px); max-height: calc(94vh - 104px); }
  .gallery-nav { width: 32px; height: 44px; background: rgba(245,241,233,.66); }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
}

/* Signature mark: static SVG fallback first, animated inline SVG when JS is available. */
.site-mark { display: inline-flex; align-items: center; min-height: 2rem; line-height: 1; }
.site-mark:hover, .site-mark:focus-visible { text-decoration: none; }
.site-mark img, .signature-svg { display: block; width: clamp(210px, 16.2vw, 300px); height: auto; object-fit: contain; overflow: visible; }
.signature-svg path { stroke-dasharray: none; stroke-dashoffset: 0; }
.signature-svg.is-animating path { stroke-dasharray: var(--sig-length); stroke-dashoffset: var(--sig-length); animation: signatureDraw var(--sig-duration) cubic-bezier(.45, 0, .2, 1) forwards; animation-delay: var(--sig-delay); }
.signature-svg.is-drawn path { stroke-dasharray: none; stroke-dashoffset: 0; }
@keyframes signatureDraw {
  to { stroke-dashoffset: 0; }
}
@media (max-width: 700px) {
  .site-mark img, .signature-svg { width: clamp(170px, 48vw, 220px); }
}

.hero-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.hero-link:hover, .hero-link:focus-visible { text-decoration: none; }

/* Modal close should stay a quiet x, not a first-open rectangle. */
.modal-panel:focus, .modal-close:focus { outline: 0; }
.modal-close:focus-visible { outline: 0; }

/* Center embedded players optically inside their cards. */
.embed-card, .bandcamp-slot { display: grid; place-items: center; }
.bandcamp-slot { width: 100%; }
.bandcamp-slot iframe { margin: 0 auto; }

/* Derek modal tuning: balanced music/DJ layouts after visual review. */
.music-modal .modal-panel,
.mix-modal .modal-panel {
  width: min(100%, 1460px);
  grid-template-columns: minmax(360px, .92fr) minmax(480px, 1.08fr);
  column-gap: clamp(20px, 3.4vw, 54px);
  justify-items: center;
  align-items: start;
}
.music-modal .album-object,
.mix-modal .info-side {
  justify-self: center;
  width: min(100%, 430px);
}
.music-modal .album-player,
.mix-modal .player-side {
  justify-self: center;
  width: min(100%, 560px);
  min-height: 0;
}
.music-modal .embed-card {
  width: min(100%, 570px);
  padding: clamp(22px, 2.1vw, 34px);
}
.music-modal .embed-player,
.music-modal .bandcamp-slot {
  width: 100%;
  display: grid;
  place-items: center;
}
.music-modal .bandcamp-slot iframe,
.music-modal .bandcamp-slot video {
  width: min(100%, 520px);
  max-width: 520px;
  margin: 0 auto;
}
.mix-modal .player-side {
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding-top: clamp(76px, 7.2vw, 116px);
}
.mix-modal .player-card {
  width: min(100%, 500px);
}
@media (min-width: 981px) {
  .music-modal .modal-panel,
  .mix-modal .modal-panel {
    transform: translateX(clamp(-34px, -2.3vw, -18px)) scale(.986);
  }
  .music-modal.is-open .modal-panel,
  .mix-modal.is-open .modal-panel {
    transform: translateX(clamp(-34px, -2.3vw, -18px)) scale(1);
  }
}
@media (max-width: 980px) {
  .music-modal .modal-panel,
  .mix-modal .modal-panel {
    grid-template-columns: 1fr;
    width: min(100%, 1260px);
  }
  .music-modal .album-object,
  .mix-modal .info-side,
  .music-modal .album-player,
  .mix-modal .player-side {
    width: 100%;
  }
  .mix-modal .player-side { padding-top: 0; }
}


/* Music player variants: compact Bandcamp tracks should not carry album-list whitespace. */
.music-modal.is-compact-player .album-player {
  align-content: start;
  padding-top: clamp(76px, 7.2vw, 112px);
}
.music-modal.is-compact-player .embed-card {
  width: min(100%, 570px);
}
.music-modal.is-compact-player .bandcamp-slot iframe {
  height: 120px;
}
@media (max-width: 980px) {
  .music-modal.is-compact-player .album-player { padding-top: 0; }
}

/* Per-release player vertical tuning. */
.music-modal .album-player {
  align-content: start;
  padding-top: calc(clamp(104px, 8.2vw, 138px) + var(--player-offset, 0px));
}
.music-modal.is-compact-player .album-player {
  padding-top: calc(clamp(76px, 7.2vw, 112px) + var(--player-offset, 0px));
}
@media (max-width: 980px) {
  .music-modal .album-player,
  .music-modal.is-compact-player .album-player { align-content: center; padding-top: 0; }
}


/* Keep Music and DJ modals dead center; tune interiors only. */
@media (min-width: 981px) {
  .music-modal .modal-panel,
  .music-modal.is-open .modal-panel,
  .mix-modal .modal-panel,
  .mix-modal.is-open .modal-panel {
    transform: scale(1);
    margin-left: auto;
    margin-right: auto;
  }
  .music-modal .album-player,
  .mix-modal .player-side {
    transform: none;
  }
}

/* Music and DJ modals: reduce center gap by pulling both sides equally toward the middle. */
@media (min-width: 981px) {
  .music-modal .album-object,
  .mix-modal .info-side {
    transform: translateX(clamp(28px, 3.2vw, 46px));
  }
  .music-modal .album-player,
  .mix-modal .player-side {
    transform: translateX(clamp(-46px, -3.2vw, -28px));
  }
}
@media (max-width: 980px) {
  .music-modal .album-object,
  .music-modal .album-player,
  .mix-modal .info-side,
  .mix-modal .player-side {
    transform: none;
  }
}

/* Hear You Are: project asset left, video + text right. */
.music-modal.is-video-project .modal-panel {
  grid-template-columns: minmax(320px, .92fr) minmax(500px, 1.08fr);
  align-items: center;
}
.music-modal.is-video-project .album-object {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: min(100%, 390px);
}
.music-modal.is-video-project .album-player {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: min(100%, 590px);
  padding-top: 0;
}
.music-modal.is-video-project .embed-card {
  width: min(100%, 590px);
  padding: clamp(12px, 1.4vw, 20px);
}
.music-modal.is-video-project .embed-player,
.music-modal.is-video-project .bandcamp-slot {
  width: 100%;
  display: grid;
  place-items: center;
}
.music-modal.is-video-project .bandcamp-slot iframe,
.music-modal.is-video-project .bandcamp-slot video {
  width: min(100%, 560px);
  max-width: 560px;
  aspect-ratio: 16 / 9;
  height: auto !important;
  margin: 0 auto;
  background: #000;
}
.player-notes {
  width: min(100%, 560px);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.player-notes p { margin: 0 0 1em; }
.player-notes p:last-child { margin-bottom: 0; }
.player-notes a { text-decoration: underline; text-underline-offset: .2em; }
.music-modal.is-video-project .modal-links { width: min(100%, 560px); margin-top: 16px; }
@media (max-width: 980px) {
  .music-modal.is-video-project .modal-panel { grid-template-columns: 1fr; }
  .music-modal.is-video-project .album-object,
  .music-modal.is-video-project .album-player { grid-column: auto; grid-row: auto; width: 100%; }
}

/* Hear You Are: align video/text block with project image, not title row. */
@media (min-width: 981px) {
  .music-modal.is-video-project .album-player {
    padding-top: clamp(54px, 5.2vw, 86px);
  }
}
