/* Sections — tickets, projection, gallery, traces, signals */

.tickets {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(201, 166, 107, 0.22);
  border-radius: 1px;
  background:
    linear-gradient(90deg, rgba(139, 58, 42, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(40, 28, 20, 0.72), rgba(22, 14, 10, 0.88));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.ticket:hover,
.ticket:focus-visible {
  border-color: rgba(201, 166, 107, 0.5);
  transform: translateY(-2px);
  outline: none;
}

.ticket-stamp {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.85;
}

.ticket-body h3 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
}

.ticket-body p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(240, 230, 212, 0.58);
}

.ticket-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 230, 212, 0.45);
  text-align: right;
}

.ticket-embed {
  grid-column: 1 / -1;
  display: none;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(201, 166, 107, 0.25);
}

.ticket.is-open .ticket-embed {
  display: block;
}

.ticket-embed iframe {
  width: 100%;
  min-height: 152px;
  border: 0;
  border-radius: 2px;
  background: #000;
}

.ticket-empty {
  padding: 2rem 1.25rem;
  border: 1px dashed rgba(201, 166, 107, 0.28);
  color: rgba(240, 230, 212, 0.55);
  font-family: var(--display);
  font-style: italic;
}

/* —— Night projection —— */

.projection-stage {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  margin-bottom: 1.25rem;
  background: #0a0806;
  border: 1px solid rgba(201, 166, 107, 0.2);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.projection-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #120c08;
  cursor: pointer;
}

.projection-grade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(196, 120, 58, 0.35), transparent 60%),
    linear-gradient(180deg, #2a1810, #0a0806);
}

.projection-poster.has-poster .projection-grade {
  background-image:
    linear-gradient(180deg, rgba(10, 6, 4, 0.25), rgba(10, 6, 4, 0.7)),
    var(--poster-url);
  background-size: cover;
  background-position: center;
}

.projection-playmark {
  position: relative;
  z-index: 1;
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid rgba(240, 230, 212, 0.55);
  border-radius: 50%;
  background: rgba(20, 12, 8, 0.45);
  box-shadow: 0 0 0 8px rgba(201, 166, 107, 0.08);
}

.projection-playmark::before {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.95rem;
  border-color: transparent transparent transparent var(--cream);
}

.projection-title {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wheat);
}

.projection-frame {
  position: absolute;
  inset: 0;
}

.projection-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ticket-stubs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 960px;
}

.stub {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 8.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed rgba(201, 166, 107, 0.35);
  background: rgba(30, 20, 14, 0.65);
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.stub:hover,
.stub.is-active {
  border-color: var(--wheat);
  border-style: solid;
  background: rgba(50, 32, 22, 0.75);
}

.stub-kind {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
}

.stub-title {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--cream);
}

/* —— Gallery contact sheet —— */

.contact-sheet {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.55rem;
  max-width: 960px;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 3.5rem 1.5rem;
  border: 1px dashed rgba(201, 166, 107, 0.28);
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(240, 230, 212, 0.5);
  background: rgba(20, 12, 8, 0.35);
}

.still {
  position: relative;
  overflow: hidden;
  background: #1a120c;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  min-height: 10rem;
}

.still-hero {
  grid-row: 1 / span 2;
  min-height: 22rem;
}

.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(18%) contrast(1.05) brightness(0.92);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.still:hover img,
.still:focus-visible img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.08) brightness(1);
}

.still-caption {
  position: absolute;
  left: 0.65rem;
  bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 230, 212, 0.75);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

@media (max-width: 760px) {
  .contact-sheet {
    grid-template-columns: 1fr;
  }

  .still-hero {
    grid-row: auto;
    min-height: 16rem;
  }
}

/* —— Lightbox —— */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  background: rgba(8, 4, 2, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  justify-self: center;
}

.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-figure figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}

.lightbox-nav {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--cream);
  padding: 0.5rem 0.75rem;
  opacity: 0.7;
}

.lightbox-nav:hover {
  opacity: 1;
  color: var(--wheat);
}

/* —— Traces —— */

.traces-block {
  text-align: left;
}

.calder-silhouette {
  width: min(280px, 70%);
  height: 7rem;
  margin: 1.5rem 0 0.5rem;
  background:
    radial-gradient(ellipse 40% 70% at 55% 60%, rgba(139, 58, 42, 0.45), transparent 70%),
    linear-gradient(180deg, transparent, rgba(80, 40, 25, 0.35));
  mask-image: radial-gradient(ellipse 70% 80% at 50% 70%, #000 20%, transparent 70%);
  opacity: 0.7;
}

.lore {
  max-width: 22rem;
}

/* —— Filament viz —— */

.filament-viz {
  margin-top: 2rem;
  max-width: 44rem;
  opacity: 0.85;
}

.filament-viz canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* —— Platforms —— */

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.75rem 0 2rem;
}

.platform {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(240, 230, 212, 0.22);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.platform:hover {
  border-color: var(--wheat);
  color: var(--wheat);
}

.back-to-line {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 230, 212, 0.5);
  text-decoration: none;
}

.back-to-line:hover {
  color: var(--wheat);
}
