/* CHDX Unified Stylesheet — Redesign v2 + Interactive Engine
   Contains variables, layout, typography, section cadence, and app elements. */

:root {
  /* Palette */
  --ink:   #0E0B0A;
  --paper: #F2EAD9;
  --cream: #E9E0CE;
  --blood: #B5221A;
  --gold:  #C79A4B;
  --mute:  #8a8174;
  --soft:  #b5ab98;
  --line:  #2a221c;
  --edge:  #4a423a;

  /* Component specific theme default variables (dark mode) */
  --header-bg: rgba(14, 11, 10, 0.93);
  --sync-bg: #120d0b;
  --cal-header-bg: #100C0A;
  --cal-out-bg: #0a0807;
  --console-bg: #120d0b;
  --mixer-bg: #1c1613;
  --guest-bg: #0c0908;
  --footer-bg: #080605;
  --player-bg: #0A0807;

  /* Type families */
  --display-font: 'Oswald', 'Arial Narrow', sans-serif;
  --serif-font:   'Cormorant Garamond', 'Times New Roman', serif;
  --body-font:    'Hanken Grotesk', system-ui, sans-serif;

  /* Spacing */
  --tA: -2deg;
  --tB: 1.6deg;
  --bleed-pad: clamp(20px, 4vw, 64px);
  --section-pad: clamp(56px, 8vw, 120px);
}

/* Light Theme (Ateliê Mode) Color Token Overrides */
body.light-theme {
  --ink:   #F2EAD9;  /* warm paper background */
  --paper: #0E0B0A;  /* printing black for elements/inversion */
  --cream: #120D0B;  /* primary dark text */
  --blood: #9B2C1C;  /* darker rubric red for readability on paper */
  --gold:  #9C7C3D;  /* darker gold for readability on paper */
  --mute:  #6a5f52;  /* muted text */
  --soft:  #4a423a;  /* body text */
  --line:  #d8cfba;  /* light hairline rules */
  --edge:  #b5ab98;  /* light border outlines */

  /* Component specific overrides */
  --header-bg: rgba(242, 234, 217, 0.93);
  --sync-bg: rgba(14, 11, 10, 0.05);
  --cal-header-bg: #ece3cf;
  --cal-out-bg: #e6dac0;
  --console-bg: #e5dac2;
  --mixer-bg: #dfd2b7;
  --guest-bg: #ece2cc;
  --footer-bg: #e8ddc5;
  --player-bg: #e4dac1;
}

/* Grain overlays (moved from inline styles) */
#grain1 {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .5;
  background-image: radial-gradient(rgba(233,224,206,.5) .5px, transparent .7px);
  background-size: 3px 3px;
  transition: background-image 0.3s;
}
#grain2 {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .16;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.6) 0 1px, transparent 1px 3px);
  transition: background-image 0.3s;
}

body.light-theme #grain1 {
  background-image: radial-gradient(rgba(14, 11, 10, 0.15) 0.5px, transparent 0.7px);
}
body.light-theme #grain2 {
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.08) 0 1px, transparent 1px 3px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 66px; /* Space for the persistent player */
}
::selection { background: var(--blood); color: var(--paper); }

/* Webkit Scrollbars (woodcut raw aesthetic) */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-thumb { background: var(--blood); border: 2px solid var(--ink); }
::-webkit-scrollbar-track { background: var(--ink); }

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

/* REUSABLE ATOMS */
.eyebrow {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--blood);
}
.mute { color: var(--mute); }
.soft { color: var(--soft); }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Sticky Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-bg, rgba(14, 11, 10, 0.93));
  border-bottom: 1.5px solid var(--blood);
  padding: 12px clamp(20px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header .panther-mark {
  height: 40px;
  width: 40px;
  background: var(--paper);
  border: 1px solid var(--gold);
  padding: 2px;
}
.site-header .wordmark {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .18em;
  color: var(--cream);
}
.site-header nav {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.navlink {
  font-family: var(--display-font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--soft);
  text-decoration: none;
  padding: 6px 9px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.navlink:hover { color: var(--cream); border-bottom-color: var(--blood); }
.navlink.hot { color: var(--blood); }

/* Sync Indicator Status Light */
.sync-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--sync-bg, #120d0b);
  border-radius: 3px;
}

/* Theme Switcher Button */
.theme-switch-btn {
  font-family: var(--display-font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--soft);
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--edge);
  padding: 5px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  transition: all 0.2s;
}
.theme-switch-btn:hover {
  color: var(--cream);
  border-color: var(--blood);
}
.theme-switch-btn strong {
  font-weight: 700;
  color: var(--cream);
}
.sync-light {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mute);
  transition: background 0.3s, box-shadow 0.3s;
}
.sync-text {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* SECTION CADENCE */
section {
  position: relative;
  padding: var(--section-pad) var(--bleed-pad);
}
section.mini {
  padding-block: clamp(48px, 6vw, 96px);
}

/* Left rhythm indicator line */
section[data-rhythm="on"]::before {
  content: "";
  position: absolute;
  inset: clamp(48px, 7vw, 96px) auto clamp(48px, 7vw, 96px) clamp(20px, 3vw, 40px);
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0 1px,
    transparent 1px 9px
  );
  pointer-events: none;
}

/* Section draw-line animation — blood-red hairline at section top */
section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blood);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
section.section-line-draw::after {
  animation: drawLine 600ms ease-out forwards;
  opacity: 1;
}
@keyframes drawLine {
  from { width: 0; }
  to { width: 100%; }
}

/* CTA BUTTONS */
.btn-outline {
  display: inline-block;
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .42em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 1.5px solid var(--cream);
  color: var(--cream);
  background: transparent;
  text-align: center;
  transition: all 0.2s ease;
}
.btn-outline:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .42em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all 0.2s ease;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.link-underline {
  font-family: var(--display-font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--soft);
  border-bottom: 1.5px solid var(--mute);
  padding-bottom: 3px;
  transition: all 0.2s ease;
}
.link-underline:hover { color: var(--cream); border-bottom-color: var(--blood); }

/* In Page Actions */
.btnred {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--blood);
  padding: 13px 26px;
  border: 1.5px solid var(--blood);
  display: inline-block;
  transition: all 0.2s ease;
}
.btnred:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }

.btngold {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1.5px solid var(--gold);
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btngold:hover { border-color: var(--cream); color: var(--ink); background: var(--cream); }

/* Animation Keyframes */
@keyframes spin360 { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .15; } }

/* ============================================================
   Section 1 — HERO
   ============================================================ */
#home {
  min-height: 100vh;
  padding: 0;
  display:grid;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
}
/* ============================================================
   Section 2 — MANIFESTO
   ============================================================ */
#s2 {
  background:
    radial-gradient(rgba(199,154,75,0.06) 1px, transparent 1.4px) 0 0/14px 14px,
    var(--ink);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}
#s2 .manifesto-inner { max-width: min(820px, 92vw); }
#s2 .eyebrow { display: block; margin-bottom: 28px; }
#s2 blockquote {
  margin: 0 0 32px;
  font-family: var(--serif-font);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.4;
  color: var(--cream);
  quotes: none;
}
#s2 blockquote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--display-font);
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ============================================================
   Section 3 — SETS & DJ STUDIO
   ============================================================ */
#sets {
  background: var(--ink);
  min-height: 90vh;
}
#sets .sets-container {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 2.4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
#sets .sets-meta {
  padding-top: 8px;
  position: sticky;
  top: clamp(24px, 4vw, 56px);
}
#sets .sets-meta .eyebrow { display: block; margin-bottom: 18px; }
#sets .sets-meta h2 {
  font-family: var(--display-font);
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
#sets .sets-meta h2 .numeral {
  font-size: clamp(160px, 24vw, 340px);
  line-height: 0.82;
  -webkit-text-stroke: 2px var(--gold);
  color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: -8px;
}
#sets .sets-meta h2 .ritual {
  font-size: clamp(52px, 6.5vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--cream);
}
/* SETS — numbered list layout */
.set-list {
  display: flex;
  flex-direction: column;
}
.set-row {
  display: grid;
  grid-template-columns: auto 64px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s ease;
}
.set-row:hover { background: rgba(181,34,26,.06); }
.set-row:last-child { border-bottom: 1px solid var(--line); }

.set-number {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  -webkit-text-stroke: 0;
  min-width: 56px;
}
.set-thumb {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--edge);
  background-size: cover !important;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.set-thumb .bside-label {
  font-family: var(--serif-font);
  font-style: italic;
  color: var(--gold);
  font-size: 13px;
}
.set-info {
  min-width: 0;
}
.set-title {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: .04em;
  color: var(--cream);
  text-transform: uppercase;
}
.set-genre {
  font-family: var(--body-font);
  font-size: 14px;
  color: var(--mute);
  margin-top: 1px;
}
.set-duration {
  font-family: var(--display-font);
  font-size: 15px;
  color: var(--mute);
}
.set-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--blood);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blood);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}
.set-play-btn:hover { background: var(--blood); color: var(--ink); }

/* DJ Studio Cabine / Mixer Controls */
.studio-cabine-wrap {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.studio-box {
  border: 1.5px solid var(--edge);
  background: var(--console-bg, #120D0B);
  padding: 20px;
  position: relative;
}
.deck-grid {
  display: grid;
  grid-template-columns: 1fr .82fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.deck-panel {
  border: 1px solid var(--edge);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: var(--ink);
}
.deck-title {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--cream);
}
.deck-disc {
  aspect-ratio: 1/1;
  border: 2px solid var(--edge);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  background: repeating-radial-gradient(circle, transparent 0 5px, rgba(233,224,206,.05) 5px 6px);
}
.platter {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.platter-line {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 30%;
  background: var(--blood);
}
.platter-hub {
  width: 34%;
  height: 34%;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: absolute;
  top: 33%;
  left: 33%;
}
.deck-wave-strip {
  height: 26px;
  border: 1px solid var(--edge);
  background: repeating-linear-gradient(90deg, #6a5f52 0 2px, transparent 2px 5px);
}
.deck-controls {
  display: flex;
  gap: 8px;
}
.deck-btn-cue {
  flex: 1;
  text-align: center;
  font-family: var(--display-font);
  font-size: 11px;
  padding: 7px 0;
  cursor: pointer;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--mute);
}
.deck-btn-cue:hover { border-color: var(--cream); color: var(--cream); }
.deck-btn-play {
  flex: 1;
  text-align: center;
  font-family: var(--display-font);
  font-size: 11px;
  padding: 7px 0;
  cursor: pointer;
  border: 1px solid var(--blood);
  background: transparent;
  color: var(--blood);
}
.deck-btn-play:hover { background: rgba(181,34,26,.1); }

/* Mixer controls */
.mixer-panel {
  border: 1px solid var(--edge);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--ink);
}
.mixer-title {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cream);
  text-align: center;
}
.mixer-eq-knobs {
  display: flex;
  justify-content: space-around;
}
.eq-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
}
.knob {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--edge);
  background: var(--mixer-bg, #1c1613);
}
.mixer-faders {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  flex: 1;
  padding: 8px 0;
}
.vol-fader {
  width: 8px;
  height: 78px;
  background: var(--edge);
  position: relative;
  cursor: ns-resize;
  touch-action: none;
}
.vol-handle {
  position: absolute;
  left: -7px;
  top: 18px;
  width: 22px;
  height: 8px;
  background: var(--blood);
  pointer-events: none;
}
.mixer-crossfader-label {
  font-family: var(--body-font);
  font-size: 11px;
  color: var(--mute);
  text-align: center;
  margin-bottom: 4px;
}
.crossfader {
  height: 9px;
  border: 1px solid var(--edge);
  background: var(--ink);
  position: relative;
  cursor: ew-resize;
  touch-action: none;
}
.crossfader-handle {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 13px;
  height: 15px;
  background: var(--cream);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Crate / Track Library */
.crate-panel {
  border: 1px solid var(--edge);
  margin-top: 14px;
  padding: 14px;
  background: var(--ink);
}
.crate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.crate-title {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--cream);
}
.crate-upload-label {
  font-family: var(--display-font);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 3px 9px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s ease;
}
.crate-upload-label:hover { background: var(--gold); color: var(--ink); }

/* Procedural kick loop and dynamic track rows */
.crate-list { display: flex; flex-direction: column; }
.crate-row {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--soft);
  font-family: var(--body-font);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.crate-row-dot {
  width: 10px;
  height: 10px;
  background: var(--gold);
  flex-shrink: 0;
  border-radius: 1px;
}
.crate-row-dot.procedural { background: var(--blood); }
.crate-row-meta { flex: 1; min-width: 0; }
.crate-row-title {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 14px;
  color: var(--cream);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crate-row-artist {
  font-family: var(--body-font);
  font-size: 11px;
  color: var(--mute);
}
.crate-row-bpm {
  font-family: var(--display-font);
  color: var(--gold);
  font-size: 12px;
  margin-right: 6px;
  white-space: nowrap;
}
.crate-row-btns { display: flex; gap: 4px; flex-shrink: 0; }
.crate-row-btns button {
  font-family: var(--display-font);
  font-size: 10px;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--soft);
  padding: 3px 7px;
  cursor: pointer;
}
.crate-row-btns button:hover { border-color: var(--gold); color: var(--gold); }
.crate-play-btn { color: var(--blood) !important; border-color: var(--blood) !important; font-size: 11px !important; }
.crate-play-btn:hover { background: var(--blood) !important; color: var(--paper) !important; }

/* Flyer Generator Layout */
.flyer-box {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.flyer-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.flyer-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.f-label {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 6px;
}
.f-input {
  font-family: var(--display-font);
  font-size: 15px;
  letter-spacing: .03em;
  background: var(--ink);
  border: 1px solid var(--edge);
  color: var(--cream);
  padding: 9px 12px;
  width: 100%;
}
.f-input:focus { outline: 2px solid var(--gold); }
#poster { display: flex; justify-content: center; }

/* ============================================================
   Section 4 — ATELIÊ & CAMARIM (paper light mode switch)
   ============================================================ */
#galeria {
  background: var(--paper);
  color: var(--ink);
}
#galeria .atelier-container {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
#galeria .atelier-cluster {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
#galeria .atelier-cluster .crop {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 10px;
  position: relative;
  box-shadow: 9px 9px 0 rgba(181, 34, 26, 0.25);
  overflow: hidden;
}
#galeria .atelier-cluster .crop:nth-child(1) { grid-column: 1 / span 5; transform: rotate(var(--tA)); }
#galeria .atelier-cluster .crop:nth-child(2) { grid-column: 6 / span 3; transform: rotate(var(--tB)); margin-top: 40px; }
#galeria .atelier-cluster .crop:nth-child(3) { grid-column: 2 / span 4; transform: rotate(var(--tA)); margin-top: -10px; }
#galeria .atelier-cluster .crop:nth-child(4) { grid-column: 7 / span 2; transform: rotate(var(--tB)); margin-top: 20px; }
#galeria .atelier-cluster .crop img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.05) saturate(0.85);
}
#galeria .atelier-meta {
  padding-top: 8px;
  position: sticky;
  top: clamp(24px, 4vw, 56px);
}
#galeria .atelier-meta .eyebrow { color: var(--blood); margin-bottom: 18px; display: block; }
#galeria .atelier-meta h2 {
  font-family: var(--display-font);
  font-weight: 700;
  margin: 0 0 16px;
  text-transform: uppercase;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--ink);
}
#galeria .atelier-meta h2 em {
  display: block;
  font-family: var(--serif-font);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--blood);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 8px;
}
#galeria .atelier-meta p { color: var(--ink); opacity: 0.78; margin: 0 0 28px; max-width: 34ch; }

/* Galeria colagem (art photos) */
.galeria-collateral {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.art-frame {
  border: 3px solid var(--ink);
  padding: 6px;
  background: var(--ink);
  box-shadow: 9px 9px 0 rgba(181, 34, 26, 0.3);
}
.art-frame img { display: block; width: 100%; height: auto; }
.art-frame:nth-child(1) { transform: rotate(-2deg); }
.art-frame:nth-child(2) { transform: rotate(1.6deg); margin-top: 30px; border-color: var(--gold); }
.art-frame:nth-child(3) { transform: rotate(-1.4deg); box-shadow: 9px 9px 0 rgba(199, 154, 75, 0.3); border-color: var(--ink); }
.art-frame.newer { transform: rotate(1.6deg); margin-top: 18px; box-shadow: 9px 9px 0 rgba(155, 44, 28, 0.35); }

/* Video Loops */
.video-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}
.video-box-border {
  position: relative;
  border: 3px solid var(--ink);
  padding: 6px;
  background: var(--ink);
  transform: rotate(-1deg);
  box-shadow: 10px 10px 0 rgba(181, 34, 26, 0.3);
}
.video-box-border video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
}
.video-label-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(14, 11, 10, 0.78);
  padding: 6px 12px;
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Image Slots (drag and drop) */
.img-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.imgslot {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--console-bg, #120d0b);
  overflow: hidden;
  width: 100%;
  height: 300px;
  border: 3px solid var(--ink);
  transition: outline 0.15s;
}
.imgslot:hover .imgslot-hint { color: var(--gold); }
.imgslot.drag { outline: 2px dashed var(--gold); outline-offset: -6px; }
.imgslot-hint { font-size: 13px; color: #6a5f52; font-family: var(--body-font); }
.rmphoto {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(14, 11, 10, 0.8);
  color: var(--cream);
  border: 1px solid var(--gold);
  font-family: var(--display-font);
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
}

.imgslot:nth-child(1) { transform: rotate(-1.6deg); box-shadow: 9px 9px 0 rgba(181, 34, 26, 0.3); }
.imgslot:nth-child(2) { transform: rotate(1.4deg); margin-top: 24px; border-color: var(--gold); }
.imgslot:nth-child(3) { transform: rotate(-1deg); box-shadow: 9px 9px 0 rgba(199, 154, 75, 0.3); }

/* BASTIDORES / CAMARIM */
.camarim-panel {
  margin-top: 48px;
  border-top: 1.5px solid var(--line);
  padding-top: 36px;
}
.camarim-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.penbtn {
  font-family: var(--display-font);
  font-size: 13px;
  letter-spacing: .06em;
  padding: 5px 15px;
  cursor: pointer;
  border: 1.5px solid var(--edge);
  background: transparent;
  color: var(--soft);
}
.addbtn {
  font-family: var(--display-font);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 5px 12px;
  cursor: pointer;
}
.addbtn.dark {
  color: var(--cream);
  border-color: var(--edge);
}
.addbtn.paper {
  font-family: var(--body-font);
  color: #9B2C1C;
  border-color: #9B2C1C;
}

.camarim-planner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

/* Film Row lists */
.film-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.film-row-checkbox {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1.5px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blood);
  font-size: 13px;
  background: transparent;
  transition: all 0.15s;
}
.film-row.seen .film-row-checkbox {
  border-color: var(--blood);
  background: rgba(181, 34, 26, 0.12);
}
.film-row-text { flex: 1; min-width: 0; }
.film-row-title {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
}
.film-row.seen .film-row-title {
  color: #8a8174;
  text-decoration: line-through;
}
.film-row-meta {
  font-family: var(--body-font);
  font-size: 12px;
  color: var(--mute);
}
.film-row-meta .by-pat { color: var(--blood); }
.film-row-meta .by-ana { color: var(--gold); }
.sessionbtn {
  font-family: var(--body-font);
  font-size: 11px;
  color: var(--mute);
  background: transparent;
  border: 1px solid var(--edge);
  padding: 4px 9px;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}
.sessionbtn:hover { border-color: var(--ink); color: var(--ink); }

/* Books recommendations card (Serigrafia-punk paper look) */
.books-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 22px 24px;
}
.book-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(14,11,10,0.15);
}
.book-year {
  font-family: var(--serif-font);
  font-size: 14px;
  color: #9B2C1C;
}
.book-title {
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.2;
}
.book-author {
  font-family: var(--body-font);
  font-size: 13px;
  color: #5c5147;
  margin-top: 2px;
}

/* Collaborative Calendar */
.calendar-wrap { margin-top: 38px; }
.navmonth {
  font-family: var(--display-font);
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--edge);
  width: 34px;
  height: 34px;
  cursor: pointer;
  line-height: 1;
}
.navmonth:hover { background: var(--ink); color: var(--paper); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--ink);
}
.cal-header-cell {
  font-family: var(--display-font);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mute);
  text-align: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  background: var(--cal-header-bg, #100C0A);
}
.calcell {
  min-height: 80px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  padding: 5px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.calcell.out { background: var(--cal-out-bg, #0a0807); cursor: default; }
.calcell.today { background: rgba(181, 34, 26, 0.10); }
.calcell-num {
  font-family: var(--display-font);
  font-size: 12px;
  color: var(--soft);
}
.calcell.today .calcell-num { color: var(--blood); font-weight: 700; }
.calcell.out .calcell-num { color: var(--line, #3a342d); }
.evchip {
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 700;
  color: #0E0B0A;
  padding: 1px 4px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.evchip.pat { background: var(--blood); }
.evchip.ana { background: var(--gold); }

/* Notes Mural board */
.mural-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 30px;
  align-items: start;
}
.notes-mural {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}
.notecard {
  width: 164px;
  min-height: 120px;
  padding: 14px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--blood);
  background: #160f0d;
}
.notecard.ana {
  background: #F2EAD9;
  border-color: var(--gold);
}
.notecard-text {
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 17px;
  line-height: 1.3;
  color: var(--cream);
}
.notecard.ana .notecard-text { color: #211B16; }
.notecard-sig {
  font-family: var(--display-font);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 8px;
}
.notecard.pat .notecard-sig { color: var(--blood); }
.notecard.ana .notecard-sig { color: #9B2C1C; }

/* Sealed Envelope Capsules */
.capsule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.capcard {
  border: 1px solid var(--edge);
  background: var(--ink);
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.capcard.open {
  border-color: var(--blood);
  background: rgba(181, 34, 26, 0.05);
}
.capcard.open.ana {
  border-color: var(--gold);
  background: rgba(199, 154, 75, 0.06);
}
.capcard-header {
  font-family: var(--display-font);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mute);
  margin-bottom: 5px;
}
.capcard.open .capcard-header { color: var(--blood); }
.capcard.open.ana .capcard-header { color: var(--gold); }
.capcard-body {
  font-family: var(--body-font);
  font-size: 13px;
  color: #6a5f52;
  line-height: 1.4;
}
.capcard.open .capcard-body {
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
}

/* ============================================================
   Section 5 — TAROT (tiragem da noite)
   ============================================================ */
#tarot {
  background: var(--ink);
  overflow: hidden;
}
#tarot .tarot-stars {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,154,75,0.12), transparent 62%);
  pointer-events: none;
}
#tarot .tarot-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
}
#tarot .tarot-header {
  text-align: center;
  margin-bottom: 40px;
}
#tarot .tarot-header h2 {
  font-family: var(--serif-font);
  font-weight: 600;
  font-style: italic;
  font-size: 54px;
  color: var(--cream);
  margin: 8px 0 0;
}
#tarot .tarot-header p {
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--mute);
  max-width: 520px;
  margin: 14px auto 0;
}
#tarot .tarot-today-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
#tarot .tarot-today-card span.label {
  font-family: var(--serif-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 12px;
  color: var(--blood);
}
#tarot .tarot-today-card #todayCardName {
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
}
#tarot .tarot-today-card #todayCardMeaning {
  font-family: var(--body-font);
  font-size: 14px;
  color: var(--mute);
}
#tarot .tarot-deck-row {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}
.tcard {
  width: 240px;
  height: 360px;
  perspective: 1200px;
  cursor: pointer;
}
.tcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}
.tcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 2px solid var(--gold);
  background: var(--ink);
  display: flex;
  flex-direction: column;
}
.tcard-face.front {
  background-image: radial-gradient(rgba(199, 154, 75, 0.18) 1px, transparent 1.4px);
  background-size: 9px 9px;
  align-items: center;
  justify-content: center;
}
.tcard-face.front .star-mark {
  width: 72%;
  height: 82%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--serif-font);
  font-size: 44px;
}
.tcard-face.back {
  transform: rotateY(180deg);
  padding: 11px;
  gap: 8px;
}
.tcard-num {
  font-family: var(--serif-font);
  font-size: 14px;
  letter-spacing: .24em;
  text-align: center;
  color: var(--gold);
}
.tcard-name {
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 21px;
  text-align: center;
  color: var(--cream);
}
.tcard-meaning {
  font-family: var(--body-font);
  font-size: 12px;
  text-align: center;
  color: var(--mute);
  line-height: 1.35;
}

/* ============================================================
   Section 6 — TESTIMONIALS (Vozes)
   ============================================================ */
#s6-testimonials {
  background:
    radial-gradient(rgba(199, 154, 75, 0.04) 1px, transparent 1.4px) 0 0/14px 14px,
    var(--ink);
  min-height: 80vh;
  display: flex;
  align-items: center;
  border-top: 1.5px solid var(--line);
}
#s6-testimonials .testimonials-inner {
  width: 100%;
  max-width: min(1200px, 100%);
  margin: 0 auto;
}
#s6-testimonials .eyebrow { display: block; margin-bottom: 40px; }
#s6-testimonials .quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
#s6-testimonials .quote {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
#s6-testimonials .quote p {
  font-family: var(--serif-font);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
  color: var(--cream);
  margin: 0 0 22px;
}
#s6-testimonials .quote cite {
  font-family: var(--display-font);
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ============================================================
   Section 7 — CTA & FOOTER & VISITORS
   ============================================================ */
#contato, #s7-cta {
  background: var(--footer-bg, #080605);
  border-top: 1.5px solid var(--blood);
  position: relative;
}
/* Visitors Guestbook */
.guestbook-wrap {
  max-width: 1080px;
  margin: 0 auto 60px;
}
.guestbook-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.guestbook-header h3 {
  font-family: var(--serif-font);
  font-weight: 600;
  font-style: italic;
  font-size: 30px;
  color: var(--cream);
  margin: 0;
}
.guestbook-header button {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: none;
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.guestbook-header button:hover { background: var(--blood); color: var(--cream); }

.guestbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.guest-signature {
  border: 1px solid var(--line);
  padding: 15px 17px;
  background: var(--guest-bg, #0c0908);
}
.guest-msg {
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 17px;
  color: var(--soft);
  line-height: 1.35;
}
.guest-name {
  font-family: var(--display-font);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blood);
  margin-top: 10px;
}

/* Footer bottom columns */
.footer-row {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-brand-wrap .panther-mark {
  height: 96px;
  width: 96px;
  background: var(--paper);
  border: 2px solid var(--gold);
  padding: 4px;
  cursor: pointer;
}
.footer-brand-title {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .16em;
  color: var(--cream);
}
.footer-brand-sub {
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
}
.footer-contact-info { text-align: right; }
.footer-contact-email {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1.5px solid var(--blood);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-contact-email:hover { color: var(--blood); border-color: var(--cream); }
.footer-contact-links {
  font-family: var(--body-font);
  font-size: 14px;
  color: var(--mute);
  margin-top: 16px;
  letter-spacing: .06em;
}
.footer-dec-mark {
  font-family: var(--serif-font);
  font-size: 16px;
  color: var(--edge);
  margin-top: 10px;
}

/* ============================================================
   PERSISTENT WAVE PLAYER (Bottom Bar)
   ============================================================ */
.persistent-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  background: var(--player-bg, #0A0807);
  border-top: 1.5px solid var(--blood);
  padding: 11px 22px;
  display: none;
  align-items: center;
  gap: 16px;
}
.persistent-player.active {
  display: flex;
}
.player-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--blood);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blood);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 14px;
}
.player-play-btn:hover { background: var(--blood); color: var(--ink); }
.player-thumb {
  width: 40px;
  height: 40px;
  border: 1px solid var(--edge);
  flex: 0 0 auto;
}
.player-meta { min-width: 0; flex: 0 0 auto; }
.player-title {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--cream);
  white-space: nowrap;
}
.player-artist {
  font-family: var(--body-font);
  font-size: 11px;
  color: var(--mute);
}
.player-wavesurfer {
  flex: 1;
  height: 28px;
  min-width: 60px;
  display: block;
}
.player-time {
  font-family: var(--display-font);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mute);
  flex: 0 0 auto;
}

/* ============================================================
   OVERLAYS: Splash and Dedication Card
   ============================================================ */
.overlay-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-image: radial-gradient(rgba(199, 154, 75, 0.10) 1px, transparent 1.4px);
  background-size: 10px 10px;
}
.overlay-screen.ded {
  z-index: 210;
  background: rgba(6, 5, 4, 0.88);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.dedication-card {
  max-width: 440px;
  border: 2px solid var(--gold);
  background: var(--ink);
  padding: 32px 32px 26px;
  text-align: center;
  cursor: default;
}
.dedication-card-kicker {
  font-family: var(--serif-font);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--gold);
  text-transform: uppercase;
}
.dedication-card-panther {
  width: 90px;
  height: 90px;
  margin: 18px auto;
  background: var(--paper);
  border: 1px solid var(--gold);
  padding: 6px;
}
.dedication-card h3 {
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 30px;
  color: var(--cream);
  margin: 0 0 14px;
}
.dedication-card p {
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--soft);
  margin: 0;
}
.dedication-card-footer {
  margin-top: 22px;
  font-family: var(--display-font);
  font-size: 12px;
  letter-spacing: .2em;
  color: #6a5f52;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES (Punk layout transitions)
   ============================================================ */
@media (max-width: 860px) {
  section { padding: clamp(40px, 6vw, 64px) var(--bleed-pad); }
  
  .herogrid { grid-template-columns: 1fr !important; gap: 30px !important; text-align: center; }
  .herogrid > div:first-child { order: 2; }
  .herogrid > div:last-child { order: 1; justify-self: center; }
  .herogrid > div:last-child img { max-width: 55vw; }
  
  .set-row { grid-template-columns: auto 48px 1fr auto; gap: 14px; }
  .set-thumb { width: 48px; height: 48px; }
  .set-duration { display: none; }
  
  #galeria .atelier-container { grid-template-columns: 1fr; }
  #galeria .atelier-cluster { grid-template-columns: repeat(4, 1fr); }
  #galeria .atelier-cluster .crop { grid-column: span 2 !important; margin-top: 0 !important; }
  #galeria .atelier-meta { position: static; }
  
  .img-slots-grid, .art-grid { grid-template-columns: 1fr 1fr; }
  .imgslot:nth-child(2), .art-frame:nth-child(2) { margin-top: 0; }
  
  .camarim-planner-grid { grid-template-columns: 1fr; }
  .mural-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  
  #s6-testimonials .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .set-row { grid-template-columns: auto 1fr auto; gap: 12px; }
  .set-number { font-size: 28px; min-width: 36px; }
  .set-thumb { display: none; }
  
  #galeria .atelier-cluster { grid-template-columns: 1fr; }
  #galeria .atelier-cluster .crop { grid-column: span 1 !important; }
  
  .img-slots-grid, .art-grid { grid-template-columns: 1fr; }
  .imgslot { height: 260px; }
  
  .deck-grid { grid-template-columns: 1fr; }
  .flyer-grid { grid-template-columns: 1fr; }
  
  .site-header { flex-direction: column; gap: 10px; text-align: center; }
  .site-header nav { justify-content: center; }
}
