/* ============================================================
   SOFT PRISON — Art Happening
   ============================================================ */

/* ---- Local Fonts: PP Neue Montreal ---- */
@font-face {
  font-family: "PPNeueMontreal";
  src: url("static/fonts/PPNeueMontreal-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PPNeueMontreal";
  src: url("static/fonts/PPNeueMontreal-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PPNeueMontreal";
  src: url("static/fonts/PPNeueMontreal-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PPNeueMontreal";
  src: url("static/fonts/PPNeueMontreal-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PPNeueMontreal";
  src: url("static/fonts/PPNeueMontreal-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PPNeueMontreal";
  src: url("static/fonts/PPNeueMontreal-SemiBolditalic.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

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

img {
  max-width: 100%;
  height: auto;
}

:root {
  --bg: #ffffff;
  --surface: #eceae2;
  --fg: rgba(0, 0, 0, 0.8);
  --fg-dim: rgba(0, 0, 0, 0.35);
  --fg-mid: rgba(0, 0, 0, 0.5);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.22);
  --green: #9ff8a5;
  --font-display: "adobe-caslon-pro", "Caslon", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overflow-x: hidden;
  background: var(--bg);
  min-height: 100dvh;
}

html::-webkit-scrollbar {
  display: none;
}

::selection {
  background: #9ff8a5;
  color: #000;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  scrollbar-width: none;
  font-weight: 700;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
  display: none;
}

/* ---- Grain Overlay ---- */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: -120px;
  pointer-events: none;
  z-index: 999;
  background-repeat: repeat;
  background-size: 120px 120px;
  opacity: 0.9;
  mix-blend-mode: multiply;
}

/* ---- Layout ---- */
.container {
  max-width: 100%;
  margin: 0;
  padding: 0 2.5rem;
}

/* ---- Page layout ---- */
.page-layout {
  display: block;
  min-height: 100vh;
}

.collage-panel {
  /* scrolls naturally with the page */
}

.artists-collage {
  display: flex;
  flex-direction: column;
}

/* Remove old grid row spans */
.artist-image-item:nth-child(1),
.artist-image-item:nth-child(4),
.artist-image-item:nth-child(7) {
  grid-row: unset;
}

.content-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem 2rem;
  pointer-events: none;
  z-index: 100;
  background: transparent;
}

.content-panel > * {
  pointer-events: none;
}

.artist-item,
.poster-address,
.poster-info-grid a,
[data-noc-id] {
  pointer-events: all;
}

/* ---- Poster Info Grid ---- */
.poster-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  animation: fadeIn 0.6s var(--ease) both;
  padding-bottom: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  font-family: Helvetica, Arial, sans-serif;
}

.poster-info-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.poster-info-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
}

.poster-sched-block {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.poster-address {
  font-weight: 900;
  text-align: right;

  text-decoration: none;
  color: inherit;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.poster-address:hover {
  color: var(--fg-mid);
}

.poster-address.is-active {
  background: var(--green);
  color: #000;
}

.poster-nocturne {
  display: flex;
  flex-direction: row;
  gap: 2.25rem;
  font-size: clamp(1rem, 2vw, 1.5rem);

  color: var(--fg-mid);
  text-align: right;
}

.poster-noc-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.poster-noc-info div {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}
.poster-noc-label {
  color: var(--fg-dim);
}

[data-noc-id].is-active {
  background: var(--green);
  color: #000;
}

/* ---- Hero Title ---- */
.poster-title-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 25%;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 9.5vw, 10rem);
  line-height: 1;
  letter-spacing: -2px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  animation: fadeIn 0.6s var(--ease) both;
}

.hero-word {
  display: inline;
}

.poster-subtitle {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.85rem, 1.4vw, 1.2rem);

  color: var(--fg-mid);
  text-align: right;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
  animation: fadeIn 0.6s var(--ease) both;
}

/* ---- Poster Artists ---- */
.poster-artists {
  /* border-top: 1px solid var(--border); */
  padding-top: 1.25rem;
  padding-left: 25%;
  animation: fadeIn 0.6s var(--ease) both;
}

/* ---- Artist Names ---- */
.artists-names {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
}

.artist-item {
  display: inline-flex;
  align-items: baseline;
  cursor: pointer;
  transition: opacity 0.35s var(--ease);
  animation: fadeIn 0.6s var(--ease) both;
}

.artist-item:not(:last-child)::after {
  content: " •";
  margin-right: 0.15em;
  margin-left: 0.15em;
  color: var(--fg-dim);
  font-size: 1.8rem;
  line-height: 1;
  vertical-align: middle;
}

.artist-item:hover .artist-name-text {
  background: var(--green);
}

.artist-index {
  display: none;
}

.artist-name-text {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}

/* ---- Artist Images ---- */

.artist-image-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: 250px;
  width: fit-content;
  opacity: 0.5;
  transition: opacity 0.35s var(--ease);
}

.artist-image-item img {
  width: auto;
  height: 100%;
  object-fit: unset;
  display: block;
  filter: brightness(0.72) contrast(1.2);
  transform: scale(1.01);
  transition:
    filter 0.4s var(--ease),
    transform 0.6s var(--ease-out);
}

/* ---- Hover / Active States ---- */
.artist-item.is-dimmed,
.artist-image-item.is-dimmed {
  opacity: 0.15;
}

.artist-image-item:hover,
.artist-image-item.is-active {
  opacity: 1;
}

.artist-image-item.is-active img {
  filter: grayscale(0.4) brightness(0.88) contrast(1.1);
  transform: scale(1.05);
}

.artist-item.is-active {
  opacity: 1;
}

.artist-item.is-active .artist-name-text {
  background: var(--green);
}

.artist-item.is-active .artist-index {
  color: var(--fg-mid);
}

/* (schedule & footer replaced by poster layout) */

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(235, 232, 224, 0.128);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-panel {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  max-width: 940px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.45s var(--ease-out);
  scrollbar-width: none;
}

.modal-panel::-webkit-scrollbar {
  display: none;
}

.modal-overlay.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-mid);
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.modal-close:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.modal-image-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) brightness(0.78) contrast(1.15);
  transform: scale(1.02);
  transition:
    transform 0.6s var(--ease-out),
    filter 0.6s var(--ease);
}

.modal-overlay.is-open .modal-image-wrap img {
  transform: scale(1);
  filter: grayscale(0.8) brightness(0.85) contrast(1.1);
}

.slide-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  cursor: pointer;
  z-index: 10;
}

.slide-zone--prev {
  left: 0;
}
.slide-zone--next {
  right: 0;
}

.slide-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  z-index: 20;
  pointer-events: all;
}

.slide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-dim);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  flex-shrink: 0;
}

.slide-dot.is-active {
  background: var(--fg);
  transform: scale(1.4);
}

.modal-info {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: auto;
}

.modal-index {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.modal-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.modal-bio {
  color: var(--fg-mid);
  font-size: 0.78rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 0.25rem;
}

.modal-link {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 1px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.modal-link:hover {
  color: var(--green);
  border-color: var(--green);
}

/* ---- Title Icons ---- */
.poster-title-icons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.title-icon-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--fg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
  pointer-events: all;
}

.title-icon-btn:hover {
  color: #000;
  background: var(--green);
  border-color: var(--green);
}

/* ---- Info Modal ---- */
.info-modal-panel {
  max-width: 680px;
  padding: 0;
}

.info-modal-body {
  padding: 3.5rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  line-height: 1.6;
}

.price-table th {
  text-align: left;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 0.3rem 0.75rem 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.price-table td {
  padding: 0.45rem 0.75rem 0.45rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-mid);
  vertical-align: top;
}

.price-table td:first-child {
  color: var(--fg);
  font-weight: 700;
  white-space: nowrap;
}

.price-table td:last-child {
  color: var(--fg);
  white-space: nowrap;
}

.price-thumb {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  filter: grayscale(0.3);
}

/* Press kit */
.presskit-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.presskit-link {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 1px;
  display: inline-block;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.presskit-link:hover {
  color: var(--fg-mid);
  border-color: var(--fg-mid);
}

/* Sponsors */
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sponsor-placeholder {
  width: 120px;
  height: 60px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ---- Contact Form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cf-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cf-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.cf-input {
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 0.4rem 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  resize: none;
}

.cf-input:focus {
  border-color: var(--fg);
}

.cf-textarea {
  line-height: 1.6;
  min-height: 80px;
}

.cf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}

.cf-error {
  font-size: 0.68rem;
  color: #c0392b;
  min-height: 1em;
}

.cf-submit {
  font-family: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  flex-shrink: 0;
}

.cf-submit:hover {
  background: var(--green);
  color: #000;
}

.cf-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cf-thanks {
  font-size: 0.82rem;
  color: var(--fg-mid);
  padding: 0.75rem 0;
  line-height: 1.6;
}

.info-footer-links {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.info-privacy-link {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.info-privacy-link:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.modal-tags {
  display: flex;
  gap: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  margin-top: auto;
  flex-wrap: wrap;
}

/* ---- Green Squares ---- */
.green-square {
  position: fixed;
  width: 40px;
  height: 40px;
  background: var(--green);
  z-index: 500;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}

.green-square:hover {
  opacity: 0;
}

body.green-glow {
  transition: box-shadow 0.4s ease;
  box-shadow: inset 0 0 200px 80px rgba(159, 248, 165, 0.35);
}

body.green-glow::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(159, 248, 165, 0.12);
  mix-blend-mode: color;
  pointer-events: none;
  z-index: 9999;
}

.green-square--top-right {
  top: 0;
  right: 0;
}

.green-square--bottom-left {
  bottom: 0;
  left: 0;
}

/* ---- Keyframes ---- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(40px) skewY(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
  }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .poster-noc-info div {
    white-space: pre;
  }
  .content-panel {
    padding: 1.5rem 1.5rem 1.25rem;
    gap: 0;
    justify-content: space-between;
    margin-block: 2rem;
    height: 90vh;
  }

  .poster-info-grid {
    grid-template-columns: 1fr 1fr;
    font-size: clamp(0.9rem, 3.8vw, 1.3rem);
    gap: 1rem 1rem;
    padding-bottom: 1rem;
  }

  .poster-info-left {
    gap: 1.25rem;
  }

  .poster-info-right {
    align-items: flex-end;
  }

  .poster-nocturne {
    font-size: clamp(0.75rem, 2.8vw, 1rem);
    gap: 0.6rem;
  }

  .hero-title {
    font-size: clamp(3rem, 13vw, 7rem);
  }

  .poster-title-area {
    padding-left: 0;
    flex: unset;
    padding-top: 0.5rem;
  }

  .poster-subtitle {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    margin-top: 0.4rem;
  }

  .poster-artists {
    padding-left: 0;
    padding-top: 1rem;
  }

  .artist-name-text {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  .artist-item:not(:last-child)::after {
    font-size: 1.2rem;
  }

  .artist-image-item {
    height: 55vw;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image-wrap {
    aspect-ratio: 4 / 3;
  }

  .modal-info {
    padding: 2rem 1.5rem;
    overflow: initial;
  }
}

@media (max-width: 480px) {
  .content-panel {
    padding: 1.25rem 1.25rem 1rem;
  }

  .poster-info-grid {
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    gap: 0.75rem 1rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 12vw, 5rem);
  }

  .artist-name-text {
    font-size: clamp(0.95rem, 3.8vw, 1.3rem);
  }

  .artist-image-item {
    height: 65vw;
  }
}
