/* ZigFlames — cinematic producer site. Original CSS. */

:root {
  /* Matched to Zig Flame Studio logo: yellow → orange flame metal */
  --bg: #08080a;
  --bg-2: #0c0c10;
  --bg-elev: #121218;
  --bg-card: #14141c;
  --ink: #fff4e6;
  --ink-soft: #ffd9b0;
  --ink-dim: #b89678;
  --gold: #ff8a1f;
  --gold-bright: #ffd23a;
  --gold-deep: #e24a00;
  --ember: #ff5a00;
  --flame-top: #ffe566;
  --flame-mid: #ff9a1f;
  --flame-bot: #e24a00;
  --line: rgba(255, 138, 31, 0.22);
  --line-strong: rgba(255, 210, 58, 0.45);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --display: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--ink);
}

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

::selection {
  background: var(--gold);
  color: var(--bg);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Atmosphere */
.grain,
.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
}

.grain {
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}

.vignette {
  z-index: 39;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.2%); }
  75% { transform: translate(-0.6%, 0.8%); }
  100% { transform: translate(0, 0); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(8, 8, 10, 0.92), rgba(8, 8, 10, 0.72) 70%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 8, 10, 0.92);
}

.header-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wordmark img {
  width: 1.7rem;
  height: 1.7rem;
}

.wordmark:hover {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  margin: 0.28rem auto;
  background: var(--gold-bright);
}

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  padding: 3rem var(--gutter) 4.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #08080a;
}

.hero-bg picture {
  display: contents;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 22%;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-bg::before {
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.78) 0%, rgba(8, 8, 10, 0.42) 18%, rgba(8, 8, 10, 0.12) 42%, rgba(8, 8, 10, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.48) 0%, rgba(8, 8, 10, 0.12) 22%, transparent 42%, rgba(8, 8, 10, 0.48) 72%, rgba(8, 8, 10, 0.92) 100%);
}

.hero-bg::after {
  background-image: repeating-linear-gradient(
    -12deg,
    transparent 0 11px,
    rgba(237, 232, 220, 0.018) 11px 12px
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: min(28vh, 220px);
  opacity: 0.12;
  z-index: 1;
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.25rem, 13vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* ghost metal — soft, see-through, not loud */
  background-image: linear-gradient(
    180deg,
    rgba(236, 228, 210, 0.72) 0%,
    rgba(200, 180, 140, 0.42) 45%,
    rgba(120, 100, 70, 0.28) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.55;
  filter:
    drop-shadow(0 0 18px rgba(255, 240, 210, 0.12))
    drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
}

.hero h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0.04em;
  top: 0.06em;
  z-index: -1;
  width: 100%;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.02em rgba(255, 245, 220, 0.18);
  opacity: 0.45;
  filter: blur(0.5px);
  pointer-events: none;
  user-select: none;
}

.credit {
  margin: 0.85rem 0 0;
  color: var(--ink-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.tagline {
  max-width: 34rem;
  margin: 1.6rem 0 2.2rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 500;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: #14110a;
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: #14110a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
}

.btn-ghost:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--ink);
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.68rem;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7.5rem) var(--gutter);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 36rem;
  margin: 0 0 2.5rem;
  color: var(--ink-dim);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.rule {
  width: 4.5rem;
  height: 1px;
  margin: 0 0 2rem;
  background: var(--gold);
  border: 0;
}

/* Music */
.releases {
  display: grid;
  gap: 3.5rem;
}

.release {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.release.compact {
  grid-template-columns: minmax(10rem, 16rem) 1fr;
}

.cover {
  position: relative;
  aspect-ratio: 1;
  background: #0a0a0c;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

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

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.release-meta .badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.release-meta h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.meta-line {
  margin: 0 0 1.1rem;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.tracklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.tracklist li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.track-num {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.track-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.track-time {
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

.listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.note {
  margin: 1rem 0 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.broadjam {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.cue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.cue {
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.cue h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.cue p {
  margin: 0.35rem 0 0;
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.pull {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}


.about-photo {
  margin: 0;
  border: 1px solid var(--line);
  background: #050506;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: min(36rem, 70vh);
  object-fit: cover;
  object-position: 58% 12%;
  filter: saturate(0.9);
}

.about-photo figcaption {
  padding: 0.85rem 1rem 1.05rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.about-copy p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.facts li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.facts li:last-child {
  border-bottom: 0;
}

.facts dt,
.facts .label {
  display: block;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.facts dd,
.facts .value {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.work-card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, #16161e, #101014);
  border: 1px solid var(--line);
  min-height: 100%;
}

.work-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
}

.work-card p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-band {
  margin-top: 2.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}

.phone-link {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.phone-link:hover {
  color: var(--gold-bright);
}
.contact-digits {
  margin: 0.2rem 0 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}

.email-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.email-link:hover {
  color: var(--gold-bright);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.2rem var(--gutter) 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
}

.footer-inner a {
  color: var(--ink-dim);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--gold-bright);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.hero .reveal:nth-child(1) { animation-delay: 0.05s; }
.hero .reveal:nth-child(2) { animation-delay: 0.18s; }
.hero .reveal:nth-child(3) { animation-delay: 0.3s; }
.hero .reveal:nth-child(4) { animation-delay: 0.42s; }
.hero .reveal:nth-child(5) { animation-delay: 0.54s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.in-view {
  opacity: 1;
  transform: none;
  animation: rise 0.8s var(--ease) forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .reveal,
  .in-view {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Mobile */
@media (max-width: 820px) {
  .release,
  .release.compact,
  .about-grid,
  .work-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .cover {
    max-width: 22rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    background: rgba(8, 8, 10, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.4rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.9rem;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    letter-spacing: 0.04em;
  }

  .track-name {
    font-size: 1rem;
  }
}

html {
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

#music,
#about,
#work,
#contact,
#top {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.tracklist li:hover .track-name {
  color: var(--gold-bright);
}

.work-card,
.cue,
.cover {
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.work-card:hover,
.cue:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
}

.reveal-on-scroll.in-view {
  animation: none;
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@supports (scrollbar-color: auto) {
  * {
    scrollbar-color: var(--gold-deep) var(--bg);
  }
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: auto 0 0 0;
  height: 1px;
  z-index: 41;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.35;
}

.portrait-break {
  margin: 0;
  max-height: min(42vh, 28rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.portrait-break img {
  width: 100%;
  height: min(42vh, 28rem);
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.95) contrast(1.04);
}
.studio-logo {
  width: min(18rem, 70%);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  border: 1px solid var(--line);
}
.release .cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.brand-row .studio-logo {
  width: min(16rem, 55%);
  margin: 0;
}
.brand-row .seal {
  width: min(7.5rem, 28%);
  height: auto;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.inline-portrait {
  margin: 1.25rem 0 0;
}
.inline-portrait img {
  width: min(100%, 22rem);
  height: auto;
  max-height: 28rem;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--line);
}
.wordmark img,
.wordmark .header-logo {
  width: auto;
  height: 2.55rem;
  object-fit: contain;
  border-radius: 0.35rem;
}


/* Art / No Guardrails */
.art-invite {
  text-align: center;
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(181, 74, 44, 0.16), transparent 60%),
    var(--bg);
}
.art-invite-inner { max-width: 42rem; }
.exhibit-title {
  margin: 0.2rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 0.95;
  background: linear-gradient(180deg, var(--flame-top) 8%, var(--flame-mid) 55%, var(--flame-bot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.exhibit-sub {
  margin: 0 0 1.8rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--ink-soft);
}
.exhibit-hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--gutter);
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(181, 74, 44, 0.18), transparent 62%),
    radial-gradient(ellipse 40% 30% at 80% 10%, rgba(201, 168, 76, 0.12), transparent 50%),
    #070708;
}
.exhibit-hero .exhibit-title { font-size: clamp(3rem, 11vw, 7rem); }
.exhibit-hint {
  text-align: center;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--ink-dim);
  margin: 0 0 2rem;
}
.exhibit {
  padding: 2rem var(--gutter) 5rem;
}
.exhibit-grid {
  width: min(100%, 76rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
@media (min-width: 880px) {
  .exhibit-grid { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
}
.piece {
  margin: 0;
  background: #050506;
  border: 1px solid var(--line);
}
.piece-center {
  grid-column: 1 / -1;
}
@media (min-width: 880px) {
  .piece-center { grid-column: span 2; grid-row: span 2; }
}
.piece-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
}
.piece-open img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.piece-center .piece-open img { max-height: 82vh; object-position: center 42%; }
.piece-open:hover img,
.piece-open:focus-visible img {
  transform: scale(1.03);
  filter: contrast(1.08) saturate(1.05);
}
.piece figcaption {
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 4, 6, 0.94);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-frame {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  text-align: center;
}
.lightbox-frame img {
  max-width: 96vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
}
.lightbox-frame figcaption {
  margin-top: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}
.lightbox-close { grid-column: 2; grid-row: 1; justify-self: end; }
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-next { grid-column: 3; grid-row: 2; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; }
  .lightbox-frame { grid-column: 1 / -1; grid-row: 2; }
  .lightbox-close { grid-column: 1 / -1; }
  .lightbox-prev { grid-column: 1; grid-row: 3; }
  .lightbox-next { grid-column: 2; grid-row: 3; }
}

.exhibit-series {
  width: min(100%, 76rem);
  margin: 4.5rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.series-title {
  margin: 0.35rem 0 1.75rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.rusty-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .rusty-grid { grid-template-columns: 1fr 1fr; }
}
.this-will-do-grid .piece-open img {
  object-fit: contain;
  object-position: center;
  background: #cfc3ad;
}

/* Shop / Collect */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.shop-card {
  display: grid;
  gap: 1.2rem;
  align-content: start;
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.shop-card .cover {
  max-width: 22rem;
}
.shop-copy .badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.shop-copy h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.shop-copy p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}
.shop-copy .btn {
  margin-bottom: 0.35rem;
}
.shop-pending {
  font-style: italic;
}
.pending-tag {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.btn.is-pending,
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.perception {
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(201, 168, 76, 0.06), transparent 42%),
    var(--bg-card);
  box-shadow: var(--shadow);
}
.perception-stage {
  margin: 0;
  padding: 1.25rem;
  background: #050506;
  border: 1px solid var(--line);
}
.perception-stage img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}
.perception-placeholder {
  min-height: min(62vh, 28rem);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.85rem;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(201, 168, 76, 0.08), transparent 62%),
    repeating-linear-gradient(
      -12deg,
      transparent 0 13px,
      rgba(237, 232, 220, 0.02) 13px 14px
    );
}
.perception-kicker {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.perception-mark {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.perception-wait {
  color: var(--ink-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}
.perception-copy .listen-row {
  margin-bottom: 0.6rem;
}


.art-number-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 0.8rem;
  align-items: center;
}
.art-number-form input {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 0.9rem;
  min-width: 10rem;
}


/* —— Prompt Machine page (studio.html) — experimental —— */
.pm-page {
  padding: 6rem 1.25rem 5rem;
}
.pm-inner {
  max-width: 44rem;
  margin: 0 auto;
}
.pm-title {
  font-family: "Bebas Neue", Oswald, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffe566, #ff9a1f, #e24a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1.05;
  margin: 0.4rem 0 0;
}
.pm-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink-dim);
  margin: 0.75rem 0 1.75rem;
}
.pm-shot {
  margin: 0 0 1.75rem;
}
.pm-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}
.pm-shot figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.pm-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0 0 2rem;
}
.pm-block {
  margin: 0 0 2.5rem;
}
.pm-block p {
  margin: 0 0 1rem;
  line-height: 1.6;
}
.pm-h2 {
  font-family: "Bebas Neue", Oswald, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1.55rem;
  margin: 0 0 1rem;
  color: var(--gold-bright);
}
.pm-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0 0 1.25rem;
}
@media (min-width: 860px) {
  .pm-video-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
.pm-video-card {
  margin: 0;
}
.pm-video-card .pm-caption {
  margin: 0.55rem 0 0 !important;
}

.pm-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 1rem;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
}
.pm-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.pm-caption {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
  margin: 0 0 1.1rem !important;
}
.pm-emphasis {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
}
.pm-close {
  font-family: "Bebas Neue", Oswald, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: var(--gold-bright);
  margin-top: 1.25rem !important;
}
.pm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.pm-coming {
  margin: 0 0 2rem;
}
@media (max-width: 640px) {
  .pm-page {
    padding-left: 0;
    padding-right: 0;
  }
  .pm-inner {
    max-width: none;
    padding: 0 1rem;
  }
  .pm-video-grid {
    gap: 1.5rem;
  }
  .pm-video-wrap,
  .pm-shot img {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 4px;
  }
  .pm-shot {
    margin-left: 0;
    margin-right: 0;
  }
}
