/* ==========================================================================
   DematokkZ — Velvet Viewing Alcove (Public Showcase)
   World Tokens:
   - Pitch Velvet Ground: #050506
   - Smoked Onyx Alcove:  #0c0b0e
   - Elevated Plinth:     #141218
   - Alabaster Ink:       #f3efe8
   - Oxidized Pewter:     #aba49a
   - Burnished Brass:     #c59f59
   - Dried Oxblood:       #8f292f
   ========================================================================== */

:root {
  color-scheme: dark;
  --velvet-ground: #050506;
  --onyx-alcove: #0c0b0e;
  --plinth-surface: #141218;
  --plinth-hover: #1b1820;
  --hairline-rule: rgba(243, 239, 232, 0.09);
  --hairline-strong: rgba(243, 239, 232, 0.18);
  --alabaster-ink: #f3efe8;
  --pewter-copy: #b3aca2;
  --ash-meta: #968f85;
  --brass-gold: #c59f59;
  --brass-gleam: #dfbe7d;
  --brass-tint: rgba(197, 159, 89, 0.14);
  --oxblood-seal: #a8383f;
  --oxblood-tint: rgba(143, 41, 47, 0.22);

  --font-editorial: 'Bodoni Moda', Georgia, serif;
  --font-sans: 'Archivo', system-ui, -apple-system, sans-serif;

  --ease-out-expo: cubic-bezier(0.2, 0, 0, 1);
  --container-max: 86rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background-color: var(--velvet-ground);
  color: var(--alabaster-ink);
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-block-start: 5rem;
  scrollbar-color: rgba(197, 159, 89, 0.35) var(--velvet-ground);
  caret-color: var(--brass-gleam);
}

::selection {
  background: rgba(197, 159, 89, 0.32);
  color: var(--alabaster-ink);
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--velvet-ground);
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-position: from-font;
}

:focus-visible {
  outline: 2px solid var(--brass-gleam);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Native Dialog Scroll Containment (Modern Web Guidance)
   ========================================================================== */

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(3, 3, 4, 0.9);
  backdrop-filter: blur(18px);
}

/* ==========================================================================
   Floating Salon Header
   ========================================================================== */

.salon-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.72) 100%);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--hairline-rule);
}

.salon-header-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0.9rem clamp(1.25rem, 3vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.salon-brand-cluster {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.salon-brand {
  display: inline-flex;
  align-items: center;
}

.salon-logo {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
}

.salon-primary-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.salon-route-link {
  position: relative;
  padding-block: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--pewter-copy);
  transition-property: color;
  transition-duration: 150ms;
}

@media (hover: hover) {
  .salon-route-link:hover {
    color: var(--alabaster-ink);
  }
}

.salon-route-link.is-current {
  color: var(--brass-gleam);
  font-weight: 600;
}

.salon-route-link.is-current::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brass-gold);
}

.salon-portals-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  background: rgba(20, 18, 24, 0.78);
  border: 1px solid var(--hairline-rule);
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--alabaster-ink);
  transition-property: background-color, border-color, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out-expo);
}

@media (hover: hover) {
  .nav-portal-link:hover {
    background: var(--plinth-hover);
    border-color: var(--portal-accent, var(--brass-gold));
  }
}

.nav-portal-link:active {
  scale: 0.96;
}

.portal-glyph-img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.portal-glyph-monogram {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(197, 159, 89, 0.2);
  color: var(--brass-gleam);
  flex-shrink: 0;
}

/* ==========================================================================
   First Viewport: Full-Bleed Unframed Premiere Projection
   ========================================================================== */

.salon-main {
  flex: 1;
  width: 100%;
}

.premiere-projection {
  position: relative;
  width: 100%;
  min-height: min(84dvh, 52rem);
  display: flex;
  align-items: flex-end;
  background: var(--velvet-ground);
  border-block-end: 1px solid var(--hairline-rule);
  overflow: hidden;
}

.premiere-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.premiere-still,
.premiere-motion {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.premiere-motion {
  position: absolute;
  inset: 0;
}

.premiere-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #050506 0%, rgba(5, 5, 6, 0.82) 32%, rgba(5, 5, 6, 0.22) 68%, rgba(5, 5, 6, 0.5) 100%),
    linear-gradient(90deg, rgba(5, 5, 6, 0.88) 0%, rgba(5, 5, 6, 0.45) 52%, transparent 100%);
}

.premiere-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1.25rem, 3vw, 2.75rem) clamp(2.5rem, 5vh, 4rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.premiere-lead {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.premiere-headline {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(2.25rem, 4.6vw, 4.1rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--alabaster-ink);
  text-wrap: balance;
}

.premiere-index-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.brass-plate {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: var(--brass-tint);
  border: 1px solid rgba(197, 159, 89, 0.4);
  color: var(--brass-gleam);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.advisory-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: var(--oxblood-tint);
  border: 1px solid rgba(168, 56, 63, 0.45);
  color: #f0b8bc;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.premiere-spec-readout {
  color: var(--pewter-copy);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.premiere-synopsis {
  margin: 0;
  color: var(--pewter-copy);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 62ch;
  text-wrap: pretty;
}

.premiere-cta-cluster {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-block-start: 0.5rem;
}

.premiere-direct-portals {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons & Interactive Controls
   ========================================================================== */

.btn-brass-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem 0.75rem 1.35rem;
  background: var(--brass-gold);
  color: #080705;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid var(--brass-gleam);
  border-radius: 3px;
  cursor: pointer;
  transition-property: background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out-expo);
}

@media (hover: hover) {
  .btn-brass-solid:hover {
    background: var(--brass-gleam);
  }
}

.btn-brass-solid:not(:disabled):active {
  scale: 0.96;
}

.btn-brass-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  color: var(--brass-gleam);
  border: 1px solid rgba(197, 159, 89, 0.5);
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition-property: background-color, border-color, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out-expo);
}

@media (hover: hover) {
  .btn-brass-outline:hover {
    background: var(--brass-tint);
    border-color: var(--brass-gleam);
  }
}

.btn-brass-outline:not(:disabled):active {
  scale: 0.96;
}

.btn-audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.95rem 0.5rem 0.82rem;
  background: rgba(12, 11, 14, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  color: var(--alabaster-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition-property: border-color, background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out-expo);
}

@media (hover: hover) {
  .btn-audio-toggle:hover {
    border-color: var(--brass-gold);
    background: rgba(20, 18, 24, 0.95);
  }
}

.btn-audio-toggle:not(:disabled):active {
  scale: 0.96;
}

/* ==========================================================================
   Exhibition Section & Asymmetric Plate Wall
   ========================================================================== */

.exhibition-section {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.25rem, 3vw, 2.75rem) 4rem;
}

.exhibition-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-block-end: 2rem;
}

.exhibition-heading {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.exhibition-sub {
  margin: 0.45rem 0 0;
  color: var(--pewter-copy);
  font-size: 0.9375rem;
  max-width: 60ch;
}

.exhibition-search-wrap {
  position: relative;
  width: min(100%, 21rem);
}

.search-icon {
  position: absolute;
  inset-inline-start: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ash-meta);
  pointer-events: none;
}

.exhibition-search-wrap input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.95rem 0.6rem 2.55rem;
  background: #030304;
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  color: var(--alabaster-ink);
  font-size: 1rem;
  transition-property: border-color;
  transition-duration: 150ms;
}

@media (min-width: 640px) {
  .exhibition-search-wrap input {
    font-size: 0.875rem;
  }
}

.exhibition-search-wrap input::placeholder {
  color: var(--ash-meta);
}

.exhibition-search-wrap input:focus {
  border-color: var(--brass-gold);
  outline: none;
}

/* Architectural Filter Rail */
.exhibition-filter-rail {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  border-block-end: 1px solid var(--hairline-rule);
  margin-block-end: 3rem;
  padding-block-end: 0.1rem;
}

.rail-tab {
  position: relative;
  min-height: 2.75rem;
  padding: 0.6rem 0.25rem;
  background: none;
  border: 0;
  color: var(--pewter-copy);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition-property: color;
  transition-duration: 150ms;
}

@media (hover: hover) {
  .rail-tab:hover {
    color: var(--alabaster-ink);
  }
}

.rail-tab.is-active {
  color: var(--brass-gleam);
  font-weight: 600;
}

.rail-tab.is-active::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brass-gold);
}

/* Asymmetric 12-Column Exhibition Wall (No Boxed Cards!) */
.exhibition-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 2.8vw, 2.75rem);
  row-gap: clamp(3rem, 5vw, 4.5rem);
  align-items: start;
}

.exhibit-piece {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Asymmetric Editorial Rhythm: Row 1 = 7 + 5, Row 2 = 4 + 4 + 4 */
.exhibit-piece:nth-child(5n + 1) {
  grid-column: span 7;
}

.exhibit-piece:nth-child(5n + 2) {
  grid-column: span 5;
}

.exhibit-frame-btn {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: var(--onyx-alcove);
  overflow: hidden;
  cursor: pointer;
  text-align: start;
}

.exhibit-piece:nth-child(5n + 2) .exhibit-frame-btn {
  aspect-ratio: 4 / 3;
}

.exhibit-still-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: 1px solid oklch(1 0 0 / 0.1);
  outline-offset: -1px;
  transition-property: scale, opacity;
  transition-duration: 450ms;
  transition-timing-function: var(--ease-out-expo);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .exhibit-frame-btn:hover .exhibit-still-img {
    scale: 1.03;
  }
}

.exhibit-teaser-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition-property: opacity;
  transition-duration: 260ms;
  transition-timing-function: var(--ease-out-expo);
}

.exhibit-piece.is-previewing .exhibit-teaser-video {
  opacity: 1;
}

.exhibit-corner-tag {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  padding: 0.22rem 0.55rem;
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(197, 159, 89, 0.35);
  color: var(--brass-gleam);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* End-Label Spec Indexing Under Each Plate */
.exhibit-placard {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-block-start: 0.15rem;
}

.placard-index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ash-meta);
  font-variant-numeric: tabular-nums;
}

.placard-code {
  color: var(--brass-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.placard-title-btn {
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  font-family: var(--font-editorial);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.24;
  color: var(--alabaster-ink);
  cursor: pointer;
  text-wrap: balance;
  transition-property: color;
  transition-duration: 150ms;
}

@media (hover: hover) {
  .placard-title-btn:hover {
    color: var(--brass-gleam);
  }
}

.placard-summary {
  margin: 0;
  color: var(--pewter-copy);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-wrap: pretty;
}

.placard-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-block-start: 0.35rem;
  padding-block-start: 0.65rem;
  border-block-start: 1px solid var(--hairline-rule);
}

.placard-portal-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.inline-portal-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.65rem 0.25rem 0.5rem;
  background: var(--onyx-alcove);
  border: 1px solid var(--hairline-rule);
  border-radius: 3px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--alabaster-ink);
  transition-property: border-color, background-color, scale;
  transition-duration: 150ms;
}

@media (hover: hover) {
  .inline-portal-anchor:hover {
    border-color: var(--portal-accent, var(--brass-gold));
    background: var(--plinth-surface);
  }
}

.inline-portal-anchor:active {
  scale: 0.96;
}

.placard-inspect-btn {
  min-height: 2.25rem;
  padding: 0.25rem 0.5rem;
  background: none;
  border: 0;
  color: var(--brass-gleam);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(197, 159, 89, 0.4);
}

@media (hover: hover) {
  .placard-inspect-btn:hover {
    text-decoration-color: var(--brass-gleam);
  }
}

.empty-alcove {
  padding: 4.5rem 1.5rem;
  text-align: center;
  border-block: 1px solid var(--hairline-rule);
}

.empty-alcove-copy {
  margin: 0 0 1.25rem;
  color: var(--pewter-copy);
}

.exhibit-corner-tag.is-free-tag {
  border-color: rgba(63, 185, 132, 0.55);
  color: #8ce0b9;
}

.complimentary-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.25rem 0.7rem;
  background: rgba(63, 185, 132, 0.12);
  border: 1px solid rgba(63, 185, 132, 0.38);
  border-radius: 3px;
  color: #9de8c5;
  font-size: 0.8125rem;
  font-weight: 500;
}

.free-release-notice {
  padding: 1rem 1.1rem;
  background: rgba(63, 185, 132, 0.1);
  border: 1px solid rgba(63, 185, 132, 0.35);
  border-radius: 4px;
  color: var(--alabaster-ink);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ==========================================================================
   Custom Commission Invite Band & Commission Page
   ========================================================================== */

.commission-invite-band {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 3rem clamp(1.25rem, 3vw, 2.75rem);
  border-block-start: 1px solid var(--hairline-rule);
}

.commission-invite-inner {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--onyx-alcove);
  border: 1px solid rgba(197, 159, 89, 0.32);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.commission-invite-copy {
  max-width: 58ch;
}

.commission-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 2.75rem);
}

.commission-hero-band {
  padding-block: clamp(3rem, 6vw, 4.75rem) clamp(2.5rem, 4vw, 3.5rem);
  border-block-end: 1px solid var(--hairline-rule);
  background: radial-gradient(ellipse 75% 80% at 15% 0%, rgba(197, 159, 89, 0.08), transparent 70%);
}

.commission-hero-band .premiere-index-line {
  margin-block: 1.15rem;
}

.commission-workspace-section {
  padding-block: clamp(3rem, 5vw, 4.5rem) 5rem;
}

.commission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2.25rem, 4.5vw, 4rem);
  align-items: start;
}

.protocol-ledger {
  margin-block-start: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.protocol-clause {
  padding: 1.35rem 1.4rem;
  background: var(--onyx-alcove);
  border: 1px solid var(--hairline-rule);
  border-radius: 4px;
}

.protocol-clause.is-critical-clause {
  border-color: rgba(197, 159, 89, 0.48);
  background: linear-gradient(180deg, rgba(197, 159, 89, 0.08) 0%, rgba(12, 11, 14, 0.95) 100%);
}

.clause-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brass-gleam);
  margin-block-end: 0.55rem;
}

.clause-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--alabaster-ink);
}

.clause-body {
  margin: 0;
  color: var(--pewter-copy);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.clause-body strong {
  color: var(--alabaster-ink);
  font-weight: 600;
}

/* Commission Form & Post-Interaction Validation */
.commission-form,
.commission-success-box,
.commission-closed-box {
  padding: 2rem;
  background: var(--onyx-alcove);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  display: grid;
  gap: 1.35rem;
}

.commission-success-box {
  border-color: rgba(197, 159, 89, 0.5);
  color: var(--brass-gleam);
}

.ref-code-readout {
  padding: 0.85rem 1rem;
  background: #050507;
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--pewter-copy);
  font-variant-numeric: tabular-nums;
}

.ref-code-readout strong {
  color: var(--brass-gleam);
  letter-spacing: 0.05em;
}

.salon-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.salon-field-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.salon-field label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--alabaster-ink);
}

.salon-hint {
  font-size: 0.8125rem;
  color: var(--ash-meta);
  line-height: 1.45;
}

.salon-field input[type="text"],
.salon-field input[type="email"],
.salon-field input[type="url"],
.salon-field select,
.salon-field textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.9rem;
  background: #050507;
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  color: var(--alabaster-ink);
  font-size: 1rem;
  transition-property: border-color, background-color;
  transition-duration: 150ms;
}

@media (min-width: 640px) {
  .salon-field input[type="text"],
  .salon-field input[type="email"],
  .salon-field input[type="url"],
  .salon-field select,
  .salon-field textarea {
    font-size: 0.9375rem;
  }
}

.salon-field textarea {
  resize: vertical;
  line-height: 1.55;
}

.salon-field input::placeholder,
.salon-field textarea::placeholder {
  color: var(--ash-meta);
}

.salon-field input:focus,
.salon-field select:focus,
.salon-field textarea:focus {
  border-color: var(--brass-gold);
  outline: none;
}

.model-verification-box {
  padding: 1.1rem;
  background: rgba(197, 159, 89, 0.06);
  border: 1px solid rgba(197, 159, 89, 0.35);
  border-radius: 4px;
}

.consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: var(--pewter-copy) !important;
  line-height: 1.55;
  cursor: pointer;
}

.consent-checkbox-label input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-block-start: 0.2rem;
  accent-color: var(--brass-gold);
  flex-shrink: 0;
}

.consent-checkbox-label strong {
  color: var(--alabaster-ink);
}

.salon-field-error {
  display: none;
  margin-block-start: 0.2rem;
  font-size: 0.8125rem;
  color: #f3a5aa;
}

.salon-field :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: #d95359;
  background-color: rgba(168, 56, 63, 0.12);
}

.salon-field :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) + .salon-field-error,
.consent-check-field:has(input:is(:user-invalid, .user-invalid-fallback)) .salon-field-error {
  display: block;
}

.salon-submit-alert {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--oxblood-tint);
  border: 1px solid rgba(217, 83, 89, 0.5);
  border-radius: 3px;
  color: #f5b6ba;
  font-size: 0.875rem;
}

.btn-submit-brief {
  width: 100%;
}

@media (max-width: 960px) {
  .commission-grid,
  .salon-field-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Unboxed Architectural Portal Ledger
   ========================================================================== */

.channels-ledger-section {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 3.5rem clamp(1.25rem, 3vw, 2.75rem) 5rem;
  border-block-start: 1px solid var(--hairline-rule);
}

.channels-ledger-header {
  margin-block-end: 2.25rem;
}

.channels-heading {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
}

.channels-sub {
  margin: 0.45rem 0 0;
  color: var(--pewter-copy);
  font-size: 0.9375rem;
  max-width: 62ch;
}

.channels-ledger-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  border-block-start: 1px solid var(--hairline-rule);
}

.ledger-portal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.15rem;
  border-block-end: 1px solid var(--hairline-rule);
  transition-property: background-color;
  transition-duration: 150ms;
}

@media (hover: hover) {
  .ledger-portal-row:hover {
    background: var(--onyx-alcove);
  }
}

.ledger-portal-main {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.ledger-portal-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  outline: 1px solid oklch(1 0 0 / 0.1);
  outline-offset: -1px;
}

.ledger-portal-monogram {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  background: var(--plinth-surface);
  color: var(--brass-gleam);
  flex-shrink: 0;
}

.ledger-portal-copy {
  min-width: 0;
}

.ledger-portal-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--alabaster-ink);
}

.ledger-portal-sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--pewter-copy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-portal-cue {
  color: var(--portal-accent, var(--brass-gold));
  flex-shrink: 0;
}

/* ==========================================================================
   Screening Theater Dialog (<dialog id="post-modal">)
   ========================================================================== */

.theater-dialog {
  width: min(76rem, 100%);
  max-height: 100dvh;
  margin: auto;
  padding: 0.75rem;
  background: transparent;
  color: var(--alabaster-ink);
  border: 0;
}

.theater-dialog[open] {
  display: flex;
  flex-direction: column;
}

.theater-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 1.5rem);
  background: var(--onyx-alcove);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.theater-topbar {
  padding: 0.9rem 1.4rem;
  background: var(--velvet-ground);
  border-block-end: 1px solid var(--hairline-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.theater-topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.theater-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--plinth-surface);
  border: 1px solid var(--hairline-rule);
  border-radius: 3px;
  color: var(--alabaster-ink);
  font-size: 0.875rem;
  cursor: pointer;
  transition-property: border-color, scale;
  transition-duration: 150ms;
}

@media (hover: hover) {
  .theater-close-btn:hover {
    border-color: var(--brass-gold);
  }
}

.theater-close-btn:active {
  scale: 0.96;
}

.theater-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.theater-screen-col {
  padding: 1.5rem;
  background: #030304;
  border-inline-end: 1px solid var(--hairline-rule);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.theater-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #010102;
  overflow: hidden;
  display: grid;
  place-items: center;
  outline: 1px solid oklch(1 0 0 / 0.08);
  outline-offset: -1px;
}

.theater-video,
.theater-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theater-image.is-blurred {
  object-fit: cover;
  filter: blur(26px) brightness(0.55);
  scale: 1.1;
}

.locked-plate-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
}

.locked-plate-plaque {
  max-width: 22rem;
  padding: 1.4rem 1.5rem;
  background: rgba(5, 5, 6, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 159, 89, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--brass-gleam);
}

.locked-plaque-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--alabaster-ink);
}

.locked-plaque-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--pewter-copy);
  text-wrap: pretty;
}

.contact-sheet-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-block-end: 0.25rem;
}

.sheet-thumb-btn {
  position: relative;
  width: 5.75rem;
  height: 3.75rem;
  padding: 0;
  border: 2px solid transparent;
  background: var(--onyx-alcove);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition-property: opacity, border-color;
  transition-duration: 150ms;
}

.sheet-thumb-btn.is-active {
  border-color: var(--brass-gleam);
  opacity: 1;
}

@media (hover: hover) {
  .sheet-thumb-btn:hover {
    opacity: 1;
  }
}

.sheet-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-thumb-btn img.is-blurred-thumb {
  filter: blur(5px) brightness(0.7);
}

.sheet-thumb-tag {
  position: absolute;
  inset: auto 3px 3px 3px;
  padding: 1px 4px;
  background: rgba(5, 5, 6, 0.88);
  color: var(--brass-gleam);
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
}

.theater-dossier-col {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.dossier-title {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.dossier-desc {
  margin: 0;
  color: var(--pewter-copy);
  font-size: 0.9375rem;
  line-height: 1.6;
  white-space: pre-line;
  text-wrap: pretty;
}

.dossier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dossier-tag-chip {
  padding: 0.2rem 0.55rem;
  background: var(--plinth-surface);
  color: var(--pewter-copy);
  font-size: 0.75rem;
  border-radius: 2px;
}

.dossier-specs {
  margin: 0;
  padding-block: 0.95rem;
  border-block: 1px solid var(--hairline-rule);
  display: grid;
  gap: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.dossier-spec-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.875rem;
}

.dossier-spec-line dt {
  color: var(--ash-meta);
}

.dossier-spec-line dd {
  margin: 0;
  font-weight: 600;
}

.brass-readout {
  color: var(--brass-gleam);
}

.dossier-portals-section {
  margin-block-start: auto;
  padding-block-start: 0.5rem;
}

.dossier-portals-heading {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--alabaster-ink);
}

.dossier-portal-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dossier-portal-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--velvet-ground);
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  transition-property: border-color, background-color, scale;
  transition-duration: 150ms;
}

@media (hover: hover) {
  .dossier-portal-btn:hover {
    border-color: var(--portal-accent, var(--brass-gold));
    background: var(--plinth-surface);
  }
}

.dossier-portal-btn:active {
  scale: 0.98;
}

/* ==========================================================================
   18+ Extreme Threshold Dialog (<dialog id="age-gate-dialog">)
   ========================================================================== */

.threshold-dialog {
  width: min(33rem, calc(100% - 2rem));
  margin: auto;
  padding: 0;
  background: var(--onyx-alcove);
  color: var(--alabaster-ink);
  border: 1px solid rgba(197, 159, 89, 0.45);
  border-radius: 4px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.96);
}

.threshold-dialog::backdrop {
  background: rgba(2, 2, 3, 0.97);
  backdrop-filter: blur(28px);
}

.threshold-inner {
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.threshold-logo {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  margin-block-end: 0.35rem;
}

.threshold-title {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.22;
  text-wrap: balance;
}

.threshold-copy {
  margin: 0;
  color: var(--pewter-copy);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 46ch;
  text-wrap: pretty;
}

.threshold-guard-notice {
  margin: 0;
  font-size: 0.8125rem;
  color: #f0a8ad;
  visibility: hidden;
  min-height: 1.35em;
}

.threshold-guard-notice.is-visible {
  visibility: visible;
}

.threshold-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-block-start: 0.25rem;
}

.btn-threshold-enter {
  width: 100%;
}

.btn-threshold-leave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--hairline-rule);
  border-radius: 3px;
  color: var(--pewter-copy);
  font-size: 0.875rem;
  transition-property: border-color, color;
  transition-duration: 150ms;
}

@media (hover: hover) {
  .btn-threshold-leave:hover {
    border-color: var(--pewter-copy);
    color: var(--alabaster-ink);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.salon-footer {
  border-block-start: 1px solid var(--hairline-rule);
  background: #030304;
  padding: 2.75rem clamp(1.25rem, 3vw, 2.75rem);
}

.salon-footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-mark {
  height: 2rem;
  width: auto;
  opacity: 0.85;
}

.footer-legal {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ash-meta);
  max-width: 60ch;
}

.footer-meta-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ash-meta);
}

.footer-compliance {
  color: #c8878b;
}

.footer-studio-link {
  color: var(--pewter-copy);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--hairline-strong);
}

@media (hover: hover) {
  .footer-studio-link:hover {
    color: var(--brass-gleam);
    text-decoration-color: var(--brass-gold);
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 880px) {
  .exhibit-piece,
  .exhibit-piece:nth-child(5n + 1),
  .exhibit-piece:nth-child(5n + 2) {
    grid-column: span 6;
  }

  .exhibit-piece:nth-child(5n + 1) {
    grid-column: span 12;
  }

  .theater-layout {
    grid-template-columns: 1fr;
  }

  .theater-screen-col {
    border-inline-end: 0;
    border-block-end: 1px solid var(--hairline-rule);
  }
}

@media (max-width: 680px) {
  .exhibit-piece,
  .exhibit-piece:nth-child(5n + 1),
  .exhibit-piece:nth-child(5n + 2) {
    grid-column: span 12;
  }

  .exhibit-piece:nth-child(5n + 2) .exhibit-frame-btn {
    aspect-ratio: 16 / 10;
  }

  .premiere-projection {
    min-height: 76dvh;
  }

  .salon-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
