.room, .contact { padding-block: clamp(2rem, 4vw, 3.75rem); }
.room:first-child { padding-top: .6rem; }
.room-heading {
  padding-bottom: clamp(.85rem, 1.6vw, 1.2rem);
  border-bottom: 1px solid var(--ink);
}
h2 { margin: 0; font-size: clamp(1.65rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -.057em; line-height: 1.12; }
.room-heading h2 { font-size: clamp(2.1rem, 4.4vw, 3.65rem); line-height: 1.05; }
.music .room-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .85rem; }
.room-body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.65fr);
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.room-body { padding-top: clamp(1.15rem, 2.3vw, 1.9rem); }
.room-body > * { min-width: 0; }
h3 { margin: 0; font-weight: 500; }
.artist, .film-credit {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.production-scope { margin: 0; max-width: 37ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; letter-spacing: -.02em; }
.offers { margin: 0; padding: 0; list-style: none; }
.offer + .offer { border-top: 1px solid var(--rule); }
.offer summary {
  display: grid;
  grid-template-columns: .6rem minmax(0, 1fr) auto;
  align-items: center;
  min-height: 2.75rem;
  gap: .6rem;
  padding: .35rem 0;
  list-style: none;
}
.offer summary::-webkit-details-marker { display: none; }
.offer summary::before { content: ''; width: .43rem; height: .43rem; border: solid var(--muted); border-width: 1px 1px 0 0; transform: rotate(45deg); }
.offer details[open] > summary::before { transform: rotate(135deg); }
.offer-name { font-size: 1.04rem; font-weight: 550; }
.offer summary:hover .offer-name { text-decoration: underline; text-underline-offset: .2em; }
.offer-scope { margin: 0 0 .65rem 1.2rem; color: var(--muted); font-size: .94rem; line-height: 1.45; max-width: 49ch; }
.offer .price { font: .875rem / 1.4 var(--mono); text-align: end; }
@media (width > 52rem) {
  .music .room-body { grid-template-columns: minmax(20.5rem, .9fr) minmax(0, 1.65fr); }
}
.offer-contact {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .9rem;
  margin: 1rem 0 0; font-size: .875rem;
}
.offer-contact > span { color: var(--muted); }
.revision-tag {
  padding: .2em .65em;
  border: 1px solid var(--rule);
  border-radius: 1em;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
@supports (text-box: trim-both cap alphabetic) {
  .music .room-heading h2,
  .dialog-titles:has(.revision-tag:not([hidden])) h2 {
    text-box: trim-both cap alphabetic;
    margin-block: .15em;
  }
  .revision-tag {
    text-box: trim-both cap alphabetic;
    padding-block: .5em;
  }
  /* Include the heading’s descenders in the badge’s visual alignment. */
  .music .room-heading .revision-tag { translate: 0 clamp(.215rem, .45vw, .375rem); }
  .dialog-titles .revision-tag { translate: 0 .1875rem; }
}
.offer-contact .contact-trigger { gap: .3em; font-weight: 550; }
.offer-contact .action-label { text-decoration: underline; text-underline-offset: .22em; }
.offer-contact .contact-trigger:hover { color: var(--focus); }
.track-header h3, .film-card h3 { font-size: 1.05rem; line-height: 1.4; letter-spacing: -.015em; font-weight: 550; }
.production-intro .service-info {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .4rem 2rem; margin-block: clamp(1.15rem, 2.3vw, 1.9rem);
}
.production-intro .offer-contact { margin: 0; }
.production-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 2.65rem) clamp(1rem, 2vw, 1.75rem);
}
.release { min-width: 0; }
.release-media { position: relative; aspect-ratio: 1; background: #101010; }
.release[data-platform="YouTube"] .release-media { aspect-ratio: 16 / 9; }
.release-cover, .release-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.release-cover img { width: 100%; height: 100%; object-fit: cover; }
.release-play {
  position: absolute; inset-inline-end: .75rem; bottom: .75rem;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid #fff; border-radius: 50%; color: #fff; background: rgb(0 0 0 / .78);
}
.release-cover:is(:hover, :focus-visible) .release-play { background: #fff; color: #000; }
.release-heading { margin-top: .6rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.release-heading h3 { font-size: clamp(1.05rem, 1.8vw, 1.4rem); line-height: 1.2; letter-spacing: -.03em; }
.release-source { color: var(--muted); font: .75rem / 1.5 var(--mono); }
.release .artist { color: var(--muted); font-size: .875rem; margin: .2rem 0 0; }
.release cite { font-style: normal; }
.release[data-platform="YouTube"] .release-media:has(iframe) { min-height: 200px; }
.track-item {
  padding-bottom: 1.15rem;
}
.track-item + .track-item { border-top: 1px solid var(--rule); padding-top: 1.15rem; }
.track-item:last-child { padding-bottom: 0; }
.track-header { display: flex; flex-wrap: wrap; gap: .1rem .9rem; align-items: baseline; justify-content: space-between; }
.track-header .artist { font-size: .875rem; }
.track-player { min-width: 0; margin-top: .65rem; }
.audio-ui {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(.5rem, 1vw, .9rem);
}
.round-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--ink);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
}
.round-play:hover, .audio-ui.is-playing .round-play { color: var(--paper); background: var(--ink); }
.play-icon { width: 0; height: 0; margin-left: .13rem; border-block: .34rem solid transparent; border-left: .53rem solid currentColor; }
.pause-icon { height: .78rem; width: .65rem; border-inline: .18rem solid currentColor; }
.timeline { min-width: 0; }
.wave-control { position: relative; height: 2.75rem; padding-block: .25rem; }
.wave { width: 100%; height: 100%; }
.wave-envelope { fill: #a3a4a0; }
.audio-ui.is-playing .wave-envelope { fill: var(--ink); }
.wave-control::after {
  content: '';
  position: absolute;
  inset-block: .15rem;
  left: clamp(0px, var(--progress, 0%), calc(100% - 2px));
  width: 2px;
  background: var(--focus);
  pointer-events: none;
}
.seek { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.seek::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.seek::-moz-range-track, .seek::-moz-range-progress { height: 100%; background: transparent; }
.seek::-webkit-slider-thumb { width: 1px; height: 100%; appearance: none; background: transparent; border: none; }
.seek::-moz-range-thumb { width: 1px; height: 100%; background: transparent; border: none; }
.seek:focus-visible { outline-offset: 1px; }
.times { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font: .74rem / 1.2 var(--mono); font-variant-numeric: tabular-nums; }
.track-player audio { width: 100%; min-width: 0; }
.player-status { color: var(--muted); font-size: .85rem; }
.player-status:empty { display: none; }
.film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem clamp(1rem, 2vw, 1.75rem); }
.film-card { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.screen { aspect-ratio: 16 / 9; overflow: hidden; background: #0d0d0d; border: 1px solid var(--rule); }
.screen video { height: 100%; width: 100%; object-fit: contain; }
.film-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
.film-play img { width: 100%; height: 100%; object-fit: contain; }
/* A 9:16 still occupies 81/256 of the width of its 16:9 frame. */
.film-play .reel-still { width: 31.640625%; margin-inline: auto; }
.film-play:focus-visible { outline-offset: -4px; }
.film-credit { font-size: .875rem; }
.film-card a { text-decoration: none; }
.film-card h3 a[title] { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-card a:hover { text-decoration: underline; }
.contact { margin-top: 1rem; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; }
.contact h2 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); line-height: 1.25; letter-spacing: -.04em; }
.contact-trigger, .contact-platform { display: inline-flex; align-items: center; min-height: 44px; gap: .55rem; }
.contact-trigger { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; letter-spacing: inherit; }
.action-arrow { display: inline-block; text-decoration: none; }
.contact-trigger .action-arrow { color: var(--muted); font-size: .75em; }
.contact-platform { color: var(--muted); font-size: .95rem; text-decoration: none; }
.contact-platform img { width: 6rem; height: auto; }
.contact-trigger:is(:hover, :focus-visible) .action-label, .contact-platform:hover span { text-decoration: underline; text-underline-offset: .2em; }
.footer-legal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1.35rem; border-top: 1px solid var(--rule); padding-block: 1.15rem 1.7rem; color: var(--muted); font: .77rem / 1.5 var(--mono); }
footer small { font-size: inherit; }
.legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1rem; }
.legal-links a { padding-block: .4rem; }
.legal-panel { display: none; padding-block: .25rem 2.5rem; }
.legal-panel:target { display: block; }
.legal-page { padding-block: clamp(2rem, 6vw, 5rem); }
.legal-page article { max-width: 65ch; margin-bottom: 1.5rem; }
.legal-panel p, .legal-panel dl { max-width: 65ch; line-height: 1.55; }
.legal-panel dd { margin: 0 0 .6rem; }
.legal-panel dt { color: var(--muted); }
.contact-notice { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.contact-notice p { margin: 0 0 .3rem; }
.contact-notice summary { width: fit-content; cursor: pointer; text-decoration: underline; text-underline-offset: .22em; }
.contact-notice details[open] p { margin: .65rem 0 0; }
.contact-form .dialog-actions { justify-content: flex-end; }
.video-notice h2 { margin: 0; }
.video-notice button[value="cancel"] { border: 0; min-height: 44px; padding: .55rem; color: var(--ink); background: transparent; }
html:has(.contact-dialog[open]) { overflow: hidden; }
.contact-dialog {
  --panel-padding: clamp(.875rem, 2.1vw, 1.625rem);
  width: min(calc(31rem + 2 * var(--panel-padding) + 2px), calc(100% - 1rem));
  max-height: calc(100dvh - 1rem);
  padding: var(--panel-padding);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.contact-dialog[open] { display: flex; flex-direction: column; }
.dialog-content { position: relative; overflow: auto; padding: .65rem; }
.contact-dialog::backdrop { background: rgb(0 0 0 / .78); }
.dialog-heading, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.dialog-heading h2 { font-size: 2rem; }
.dialog-titles { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; min-width: 0; }
.dialog-intro { margin: .45rem 0 1.35rem; color: var(--muted); line-height: 1.45; }
.dialog-intro ul { margin: 0; padding-inline-start: 1.25em; }
.contact-close { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 1.75rem; line-height: 1; }
.contact-close:hover { color: var(--ink); }
.contact-form { display: grid; gap: 1.15rem; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-form label { display: block; margin-bottom: .4rem; font-size: .92rem; font-weight: 500; }
.contact-form input, .contact-form textarea { display: block; width: 100%; padding: .65rem .75rem; border: 1px solid #696966; border-radius: .2rem; background: var(--paper); color: var(--ink); font-size: 1rem; }
.contact-form textarea { resize: vertical; }
.contact-preview, .contact-status { color: var(--muted); font-size: .83rem; line-height: 1.45; }
.dialog-actions { flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 1rem; }
.contact-submit { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--ink); border-radius: .2rem; background: var(--ink); color: var(--paper); font-weight: 550; }
.contact-submit:hover { background: #fff; }
.contact-status { margin: 0; }
.contact-status:empty { display: none; }
@media (max-width: 30rem) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 52rem) {
  .production-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-body { grid-template-columns: minmax(0, 1fr); row-gap: 1.4rem; }
  .room-body > :last-child { border-top: 1px solid var(--rule); padding-top: 1.15rem; }
}
@media (min-width: 39.01rem) and (max-width: 52rem) {
  .release-media { aspect-ratio: 16 / 9; }
  .release:not([data-platform="YouTube"]) .release-cover img { object-fit: contain; }
}
@media (max-width: 39rem) {
  .room, .contact { padding-block: 1.85rem; }
  .room:first-child { padding-top: .5rem; }
  .production-grid { grid-template-columns: minmax(0, 1fr); }
  .film-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .film-card { grid-row: auto; grid-template-rows: auto auto auto; gap: .55rem; }
  .audio-ui { gap: .55rem; }
}
@media (forced-colors: active) {
  .contact-dialog { border: 1px solid CanvasText; background: Canvas; }
  .wave-envelope { fill: CanvasText; }
  .wave-control::after { background: Highlight; }
}
