/* ============================================
   RO/ZE — CREATION PAGES — SHARED STYLES
   Mobile-first approach
   ============================================ */

:root {
  --black: #0A0A0A;
  --off-white: #F5F0EB;
  --rose: #E8446D;
  --gold: #C9A84C;
  --smoke: #B8B0A8;
  --smoke-dim: #6B6560;
  --deep-grey: #1A1A1A;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-mono: 'Space Grotesk', sans-serif;
  --side-pad: 20px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
}

a { color: inherit; text-decoration: none; }

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============ NAV ============ */
.page-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--side-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.15em;
}

.nav-logo span { color: var(--rose); }

.back-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
  padding: 10px 0 10px 10px;
  min-height: 44px;
}

.back-link:hover { color: var(--rose); }

.back-arrow {
  width: 20px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
}

.back-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
}

.back-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* ============ HERO ============ */
.creation-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px var(--side-pad) 60px;
}

.hero-bg-symbol {
  position: absolute;
  font-family: var(--font-display);
  font-size: 40vw;
  font-weight: 800;
  color: var(--rose);
  opacity: 0.03;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  width: 100%;
  padding: 0 8px;
}

.creation-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.creation-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 56px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 14px;
  word-break: break-word;
  hyphens: auto;
}

.creation-title .theta { color: var(--rose); }

.creation-type {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: var(--smoke);
  letter-spacing: 0.05em;
}

.creation-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--smoke-dim);
  letter-spacing: 0.15em;
  margin-top: 10px;
}

.creation-duration {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--smoke-dim);
  letter-spacing: 0.1em;
  margin-top: 14px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  display: inline-block;
}

.creation-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 18px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 16px;
}

.hero-scroll-line {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--rose), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============ CONTENT ============ */
.creation-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* Quote */
.quote-block {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.quote-text {
  font-family: var(--font-body);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
}

.quote-text .em { color: var(--rose); font-weight: 500; }

/* Description */
.description-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  align-items: start;
}

.desc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--smoke-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.desc-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--rose);
  flex-shrink: 0;
}

.desc-text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--smoke);
}

.desc-text p + p { margin-top: 1.3em; }

/* Gallery */
.gallery-section {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.gallery-img {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

/* On mobile, all images are full width */
.gallery-img.span-4,
.gallery-img.span-5,
.gallery-img.span-6,
.gallery-img.span-7,
.gallery-img.span-8,
.gallery-img.span-12 {
  grid-column: span 1;
}

.img-placeholder {
  width: 100%;
  aspect-ratio: var(--ratio, 16/10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--smoke-dim);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img:hover .img-placeholder { transform: scale(1.03); }

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img:hover img { transform: scale(1.03); }

.gallery-img.ratio-16-10 { aspect-ratio: 16/10; }
.gallery-img.ratio-16-9 { aspect-ratio: 16/9; }
.gallery-img.ratio-21-9 { aspect-ratio: 21/9; }
.gallery-img.ratio-4-5 { aspect-ratio: 4/5; }
.gallery-img.ratio-3-4 { aspect-ratio: 3/4; }
.gallery-img.ratio-1-1 { aspect-ratio: 1/1; }
.gallery-img.ratio-auto { aspect-ratio: auto; }

/* Credits */
.credits-section {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  margin-top: 24px;
}

.credit-role {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--smoke-dim);
  margin-bottom: 4px;
}

.credit-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
}

/* Sources */
.source-section {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.source-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: var(--smoke-dim);
  line-height: 1.7;
  margin-top: 16px;
}

/* Performers */
.performers-section {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.performers-list {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--smoke);
  margin-top: 20px;
}

/* Loop zone */
.loop-zone {
  height: 50vh;
  background: linear-gradient(to bottom, var(--black), #111, var(--black));
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.loop-zone-inner { text-align: center; }

.loop-symbol {
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 80px);
  font-weight: 800;
  color: var(--rose);
  opacity: 0.15;
  animation: loopPulse 3s ease-in-out infinite;
}

@keyframes loopPulse {
  0%, 100% { opacity: 0.08; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.05); }
}

.loop-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke-dim);
  margin-top: 12px;
  opacity: 0.5;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* ============================================
   TABLET+ (600px+)
   ============================================ */
@media (min-width: 600px) {
  :root { --side-pad: clamp(32px, 5vw, 80px); }

  .page-nav { padding: 20px var(--side-pad); }
  .nav-logo { font-size: 18px; }

  .creation-hero { padding: 100px var(--side-pad) 80px; }
  .creation-title { font-size: clamp(40px, 8vw, 70px); letter-spacing: 0.03em; }
  .creation-type { font-size: 20px; }

  .hero-scroll-line { bottom: 40px; height: 60px; }

  .quote-block { padding: 64px 0; }
  .quote-text { font-size: clamp(26px, 4vw, 40px); }

  .description-section {
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(40px, 5vw, 80px);
    padding: 64px 0;
  }
  .desc-label { position: sticky; top: 100px; }
  .desc-text { font-size: 19px; }

  .gallery-section { padding: 64px 0; }
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-top: 32px;
  }
  .gallery-img.span-4 { grid-column: span 4; }
  .gallery-img.span-5 { grid-column: span 5; }
  .gallery-img.span-6 { grid-column: span 6; }
  .gallery-img.span-7 { grid-column: span 7; }
  .gallery-img.span-8 { grid-column: span 8; }
  .gallery-img.span-12 { grid-column: span 12; }

  .credits-section { padding: 64px 0; }
  .credits-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
  }
  .credit-name { font-size: 18px; }

  .loop-zone { height: 40vh; }
}

/* ============================================
   DESKTOP (900px+)
   ============================================ */
@media (min-width: 900px) {
  .page-nav { padding: 24px var(--side-pad); }

  .creation-hero { padding: 120px var(--side-pad) 80px; }
  .hero-bg-symbol { font-size: clamp(300px, 45vw, 650px); }
  .creation-title { font-size: clamp(48px, 8vw, 120px); letter-spacing: 0.04em; }
  .creation-type { font-size: 22px; }

  .quote-block { padding: 80px 0; }
  .quote-text { font-size: clamp(28px, 3.5vw, 44px); max-width: 900px; }

  .description-section {
    gap: clamp(60px, 6vw, 100px);
    padding: 80px 0;
  }
  .desc-text { font-size: 21px; line-height: 1.85; }

  .gallery-section { padding: 80px 0; }
  .gallery-grid { margin-top: 40px; }

  .credits-section { padding: 80px 0; }
  .credits-grid { gap: 40px; margin-top: 40px; }

  .back-link:hover .back-arrow { width: 28px; }
}
