/* /projects/digital-music-box — page-specific styles. Mirrors the
 * design handoff inline CSS from imaginando-3-0/project/Imaginando
 * Digital Music Box.html.
 *
 * This is the SECOND project-detail page (after harpa-laser). It shares
 * most of its chrome with public/pages/harpa-laser.css — `.phero`,
 * `.pintro` / `.dropcap`, `.big-shot`, `.pworks-list`, `.pquote`,
 * `.pstreet-stats`, `.pcredits`, `.pnext`. That shared block is
 * duplicated here verbatim (same convention every product-detail page
 * follows); hoist the common rules into public/style.css on a
 * project-detail consolidation commit and drop them from both sheets.
 *
 * Music-box-only chrome (NOT in harpa-laser.css):
 *   .pworks-grid (2-col) + .pworks-aside + .pworks-figure
 *   .pmb-fig (real-photo figure) + .pmb-rest-grid
 *   .pmb-sound-grid / .pmb-sound-text
 *
 * `.values` / `.vcard`, `.sec-head` / `.section-title`, `.section`,
 * `.wrap`, `.btn`, `.mono`, `.reveal`, `.crumbs` come from style.css.
 */

/* ============================================================
 * SHARED project-detail chrome (duplicated from harpa-laser.css)
 * ============================================================ */

/* ---------- Phero — full-bleed project hero ---------- */
.phero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 36px 0 64px;
  border-bottom: 0.5px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.phero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.phero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.phero-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 12, 0.45) 65%, rgba(10, 10, 12, 0.95) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.15) 35%, rgba(10, 10, 12, 0.85) 100%);
}
html[data-theme="light"] .phero-grad,
:root[data-theme="light"] .phero-grad {
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(244, 241, 234, 0.35) 60%, rgba(244, 241, 234, 0.92) 100%),
    linear-gradient(180deg, rgba(244, 241, 234, 0.4) 0%, rgba(244, 241, 234, 0.1) 35%, rgba(244, 241, 234, 0.85) 100%) !important;
}
.phero-inner { position: relative; }

.phero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 980px) {
  .phero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.phero-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--fg-dim) !important;
}

.phero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(64px, 10vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}
.phero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
html[data-theme="light"] .phero h1,
:root[data-theme="light"] .phero h1 {
  text-shadow: none;
}

.phero-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 50ch;
  margin: 32px 0 0;
  text-wrap: pretty;
}
.phero-lede em {
  font-style: italic;
  font-weight: 400;
}

/* `display: block` resets the sitewide `.phero-meta` (a 4-col stats grid
 * in style.css) that otherwise traps this whole <dl> in a 25%-wide column. */
.phero-meta {
  display: block;
  border: 0.5px solid var(--line-strong);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 20px;
  align-self: end;
}
.phero-meta dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
.phero-meta dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--line);
  align-items: baseline;
}
.phero-meta dl > div:last-child { border-bottom: 0; }
.phero-meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0;
}
.phero-meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.4;
}

/* ---------- Intro — dropcap lede ---------- */
.pintro { padding: 80px 0; }
.pintro-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) {
  .pintro-row { grid-template-columns: 1fr; gap: 18px; }
}
.pintro-row > .mono {
  padding-top: 14px;
  color: var(--fg-faint);
}
.pintro-lede {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
  max-width: 30ch;
}
.pintro-lede em {
  font-style: italic;
  font-weight: 500;
}
.pintro-lede strong {
  color: var(--accent);
  font-weight: 500;
}
.dropcap {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6em;
  line-height: 0.85;
  color: var(--accent);
  margin-right: 4px;
}

/* ---------- Big-shot full-width gallery ---------- */
.pgallery { padding: 0 0 96px; }
.big-shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 0.5px solid var(--line);
  position: relative;
  background: #000;
  aspect-ratio: 21 / 10;
}
.big-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.big-shot figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f4f1ea;
  font-size: 13px;
  max-width: calc(100% - 48px);
}
.big-shot figcaption .mono {
  color: var(--accent) !important;
  letter-spacing: 0.14em;
  font-size: 10.5px;
}
@media (max-width: 720px) {
  .big-shot { aspect-ratio: 4 / 5; }
  .big-shot figcaption {
    left: 14px;
    bottom: 14px;
    font-size: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-radius: 10px;
  }
}

/* ---------- How it works — 5-step list ---------- */
.pworks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 0.5px solid var(--line);
}
.pworks-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 0.5px solid var(--line);
  align-items: start;
}
@media (max-width: 720px) {
  .pworks-list li { grid-template-columns: 1fr; gap: 8px; }
}
.pworks-list li .mono {
  color: var(--fg-faint);
  padding-top: 6px;
  letter-spacing: 0.12em;
}
.pworks-list li h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--fg);
  text-wrap: balance;
}
.pworks-list li h4 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.pworks-list li p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 54ch;
  text-wrap: pretty;
}

/* ---------- Centered serif pull-quote ---------- */
.pquote {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  text-align: center;
}
.pquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 0 auto;
  max-width: 24ch;
  text-wrap: balance;
}
.pquote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-style: normal;
}

/* ---------- 3-cell stats strip (shared with harpa-laser .pstreet) ---------- */
.pstreet-stats {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card, var(--bg-2));
}
.pstreet-stats li {
  padding: 18px;
  border-right: 0.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pstreet-stats li:last-child { border-right: 0; }
.pstreet-stats .num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
}
.pstreet-stats .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ---------- Credits ---------- */
.pcredits-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .pcredits-grid { grid-template-columns: 1fr; gap: 24px; }
}
.pcredits-grid h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  text-wrap: balance;
  max-width: 18ch;
}
.pcredits-grid h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.creditslist {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 0.5px solid var(--line);
}
.creditslist > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--line);
}
@media (max-width: 600px) {
  .creditslist > div { grid-template-columns: 1fr; gap: 4px; }
}
.creditslist dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0;
}
.creditslist dd {
  margin: 0;
  font-size: 15px;
  color: var(--fg);
}

/* ---------- Next/previous-project card ---------- */
.pnext { padding: 80px 0 120px; }
.pnext-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 0.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card, var(--bg-2));
  position: relative;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pnext-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .pnext-card { grid-template-columns: 1fr; }
}
.pnext-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #000;
}
.pnext-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s ease;
}
.pnext-card:hover .pnext-media img { transform: scale(1.04); }
.pnext-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 14, 18, 0) 70%, rgba(14, 14, 18, 0.5) 100%);
  pointer-events: none;
}
.pnext-text {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
@media (max-width: 900px) {
  .pnext-text { padding: 32px 24px; }
}
.pnext-text h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  text-wrap: balance;
}
.pnext-text h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.pnext-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 46ch;
}
.pnext-text .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ============================================================
 * MUSIC-BOX-ONLY chrome
 * ============================================================ */

/* ---------- How it works — 2-col grid + sticky schematic aside ---------- */
.pworks-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 980px) {
  .pworks-grid { grid-template-columns: 1fr; gap: 32px; }
}
.pworks-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 980px) {
  .pworks-aside { position: static; }
}
/* Front-panel photo in the sticky aside — 2:3 framed card. */
.pworks-figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.pworks-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.schematic-caption {
  color: var(--fg-faint);
  text-align: center;
}

/* ---------- Real-photo figures (cabinet + premiere grids) ---------- */
.pmb-fig {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 0.5px solid var(--line);
  background: var(--card);
}
.pmb-fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.pmb-fig figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px 14px;
  font-size: 13px;
  color: var(--fg-dim);
}
.pmb-fig figcaption .mono {
  color: var(--fg-faint);
  font-size: 10px;
  letter-spacing: 0.14em;
}

/* Featured premiere film — big 16:9 card (uses global .tpl-trailer) + caption. */
.pmb-premiere-film {
  margin: 0 0 32px;
}
.pmb-premiere-film figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--fg-dim);
  max-width: 60ch;
}
.pmb-premiere-film figcaption .mono {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.16em;
}

/* ---------- Cabinet + Sound layouts ---------- */
.pmb-rest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
/* Eyebrow index sits flush on the headline without this — space it off
   the display h2 to match the eyebrow rhythm on the rest of the site. */
.sec-head .l .index { display: block; margin-bottom: 12px; }
.pmb-sound-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.pmb-sound-text p {
  margin: 0 0 22px;
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.65;
  max-width: 62ch;
  text-wrap: pretty;
}
.pmb-sound-text p strong { color: var(--fg); font-weight: 500; }
