/* ============ MEUZAVIM PREMIUM UPGRADE ============ */
/* Adds: gold particles, letter reveal, magnetic cursor, stagger animations,
   case studies, AI chat widget, booking modal, scroll progress bar */

/* SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-700));
  z-index: 1100;
  transition: width 0.1s ease;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* GOLD PARTICLES CANVAS */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* LETTER-BY-LETTER REVEAL */
.split-text { display: inline-block; }
.split-text .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotate(8deg);
  animation: chRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes chRise {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* STAGGER FADE-UP for grids */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
}
.stagger.in-view > * {
  animation: staggerUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes staggerUp {
  to { opacity: 1; transform: translateY(0); }
}

/* PREMIUM CTA SHIMMER */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%);
  animation: shimmer 3s ease infinite;
}
@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* ============ CASE STUDIES (Magazine-style) ============ */
.case-studies {
  background: var(--ivory);
  padding: 140px 32px;
  position: relative;
  overflow: hidden;
}
.case-studies::before {
  content: '';
  position: absolute;
  top: 10%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123, 63, 176, 0.08), transparent 70%);
  pointer-events: none;
}
.case-studies::after {
  content: '';
  position: absolute;
  bottom: 5%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}
.case-grid {
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.case-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.case-item:nth-child(even) { direction: ltr; }
.case-item:nth-child(even) .case-content { direction: rtl; text-align: right; }
.case-visual {
  position: relative;
  height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
  box-shadow: var(--shadow-purple);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-item:hover .case-visual { transform: scale(1.02) translateY(-8px); }
.case-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(212, 175, 55, 0.04) 30px 31px),
    radial-gradient(ellipse at center, rgba(212, 175, 55, 0.18), transparent 70%);
  pointer-events: none;
}
.case-visual::after {
  content: attr(data-letter);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 280px;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.18);
  line-height: 1;
}
.case-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(15, 8, 21, 0.7);
  backdrop-filter: blur(20px);
  color: var(--gold-400);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.case-stats {
  position: absolute;
  bottom: 24px;
  right: 24px;
  left: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.case-stat {
  background: rgba(15, 8, 21, 0.85);
  backdrop-filter: blur(20px);
  padding: 12px 20px;
  border-radius: 16px;
  color: white;
  font-size: 13px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.case-stat-val {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-400);
  display: block;
  line-height: 1;
}
.case-stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}
.case-content {
  padding: 24px 0;
}
.case-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold-700);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.case-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--purple-900);
  margin-bottom: 20px;
}
.case-title em {
  font-style: italic;
  color: var(--gold-700);
}
.case-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.case-quote {
  position: relative;
  padding: 24px 28px;
  background: rgba(212, 175, 55, 0.08);
  border-right: 4px solid var(--gold-500);
  border-radius: 16px;
  font-style: italic;
  color: var(--purple-900);
  font-size: 16px;
  margin-bottom: 24px;
}
.case-quote::before {
  content: '"';
  position: absolute;
  top: -8px;
  right: 20px;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 60px;
  color: var(--gold-500);
  line-height: 1;
}
.case-quote-author {
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 700;
}
.case-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.case-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--purple-700);
  font-weight: 600;
}
.case-feature::before {
  content: '◆';
  color: var(--gold-500);
  font-size: 10px;
}

/* ============ AI CHAT WIDGET ============ */
.chat-widget {
  position: fixed;
  bottom: 100px;
  left: 24px;
  z-index: 998;
}
.chat-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  color: var(--gold-400);
  border: 2px solid var(--gold-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(61, 10, 110, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.chat-bubble:hover {
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 16px 40px -8px rgba(61, 10, 110, 0.7);
}
.chat-bubble svg { width: 28px; height: 28px; }
.chat-bubble::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--gold-500);
  border-radius: 50%;
  border: 2px solid var(--purple-700);
  animation: chatPulse 2s ease infinite;
}
@keyframes chatPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}
.chat-tooltip {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%) translateX(-10px);
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.chat-tooltip::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--ink);
  border-right: 1px solid rgba(212, 175, 55, 0.3);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}
.chat-bubble:hover .chat-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.chat-panel {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 580px;
  max-height: calc(100vh - 100px);
  background: var(--ivory);
  border-radius: 28px;
  box-shadow: 0 30px 80px -20px rgba(15, 8, 21, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  transform-origin: bottom left;
  animation: chatOpen 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes chatOpen {
  from { opacity: 0; transform: scale(0.7) translateY(40px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-panel.open { display: flex; }
.chat-header {
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--gold-500);
}
.chat-avatar img { width: 38px; height: 38px; object-fit: contain; }
.chat-header-info { flex: 1; }
.chat-header-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-400);
}
.chat-header-status {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-header-status::before {
  content: '';
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
  animation: chatPulse 2s infinite;
}
.chat-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.chat-close:hover { background: rgba(255,255,255,0.2); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(circle at 20% 10%, rgba(123, 63, 176, 0.04), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(212, 175, 55, 0.04), transparent 40%),
    var(--ivory);
}
.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  animation: msgIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  background: white;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(91, 42, 134, 0.08);
  box-shadow: 0 2px 8px rgba(15, 8, 21, 0.04);
}
.chat-msg.user {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.typing {
  background: white;
  align-self: flex-start;
  padding: 14px 18px;
  display: flex;
  gap: 4px;
}
.chat-msg.typing span {
  width: 8px;
  height: 8px;
  background: var(--gold-500);
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}
.chat-msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px 0;
}
.chat-suggestion {
  padding: 8px 14px;
  background: rgba(91, 42, 134, 0.08);
  color: var(--purple-700);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(91, 42, 134, 0.12);
  transition: all 0.2s ease;
  font-family: inherit;
}
.chat-suggestion:hover {
  background: var(--gold-500);
  color: var(--purple-900);
  border-color: var(--gold-500);
}
.chat-input-wrap {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid rgba(91, 42, 134, 0.08);
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  padding: 12px 18px;
  background: var(--ivory);
  border: 1px solid rgba(91, 42, 134, 0.12);
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}
.chat-input:focus {
  border-color: var(--gold-500);
  background: white;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--purple-900);
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.chat-send:hover { transform: scale(1.1); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ BOOKING MODAL ============ */
.booking-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 8, 21, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: bookFade 0.3s ease;
}
.booking-modal.open { display: flex; }
@keyframes bookFade { from { opacity: 0; } to { opacity: 1; } }
.booking-content {
  background: white;
  border-radius: 28px;
  max-width: 540px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  animation: bookScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bookScale { from { transform: scale(0.9); } to { transform: scale(1); } }
.booking-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid rgba(91, 42, 134, 0.12);
  cursor: pointer;
  font-size: 22px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking-header {
  text-align: center;
  margin-bottom: 28px;
}
.booking-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 28px;
}
.booking-header h3 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--purple-900);
  margin-bottom: 8px;
}
.booking-header p { color: var(--text-soft); font-size: 14px; }
.booking-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.booking-form input,
.booking-form textarea,
.booking-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(91, 42, 134, 0.12);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  background: var(--ivory);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}
.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
  outline: none;
  border-color: var(--gold-500);
  background: white;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.booking-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--purple-900);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.2s ease;
}
.booking-submit:hover { transform: translateY(-2px); }
.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.time-slot {
  padding: 10px;
  background: var(--ivory);
  border: 1.5px solid rgba(91, 42, 134, 0.12);
  border-radius: 12px;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-700);
  cursor: pointer;
  transition: all 0.2s ease;
}
.time-slot:hover {
  border-color: var(--gold-500);
  color: var(--gold-700);
}
.time-slot.selected {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  color: white;
  border-color: var(--purple-700);
}

/* ============ TRUST BAR ============ */
.trust-bar {
  background: rgba(212, 175, 55, 0.06);
  padding: 24px 32px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.trust-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.trust-item-icon {
  font-size: 18px;
  color: var(--gold-700);
}

/* ============ RESPONSIVE ADJUSTMENTS ============ */
@media (max-width: 980px) {
  .case-item { grid-template-columns: 1fr; gap: 32px; }
  .case-visual { height: 380px; }
  .case-visual::after { font-size: 200px; }
  .case-studies { padding: 80px 24px; }
  .case-grid { gap: 60px; }
}
@media (max-width: 560px) {
  .chat-panel {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 24px 24px 0 0;
  }
  .booking-content { padding: 28px 20px; }
  .booking-form .form-row { grid-template-columns: 1fr; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }
  .case-visual::after { font-size: 160px; }
  .trust-bar { padding: 16px; }
  .trust-bar-inner { gap: 16px; }
  .trust-item { font-size: 12px; }
}

/* DARK MODE EXTENSIONS */
html[data-theme="dark"] .case-studies { background: var(--ink); }
html[data-theme="dark"] .case-title { color: var(--gold-400); }
html[data-theme="dark"] .case-desc { color: rgba(255,255,255,0.75); }
html[data-theme="dark"] .case-quote { background: rgba(212,175,55,0.06); color: rgba(255,255,255,0.9); }
html[data-theme="dark"] .chat-panel { background: #1A0533; }
html[data-theme="dark"] .chat-msg.bot { background: #2A0856; color: white; border-color: rgba(212,175,55,0.2); }
html[data-theme="dark"] .chat-input { background: #1A0533; color: white; }
html[data-theme="dark"] .chat-input-wrap { background: #2A0856; border-color: rgba(212,175,55,0.2); }
html[data-theme="dark"] .booking-content { background: #1A0533; color: white; }
html[data-theme="dark"] .booking-header h3 { color: var(--gold-400); }
html[data-theme="dark"] .booking-form input,
html[data-theme="dark"] .booking-form textarea,
html[data-theme="dark"] .booking-form select { background: #2A0856; color: white; border-color: rgba(212,175,55,0.2); }

/* =============================================== */
/* STICKY SCROLLYTELLING SHOWCASE                  */
/* =============================================== */
.showcase {
  position: relative;
  background: var(--ink);
  color: white;
  /* Total scroll distance - tight enough for responsive feel */
  height: 220vh;
}
.showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(123, 63, 176, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 5%;
  z-index: 1;
}
.showcase-eyebrow {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 14px;
}
.showcase-eyebrow::before, .showcase-eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold-500);
}

/* Scene counter on side */
.showcase-counter {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.showcase-dot {
  width: 32px;
  height: 4px;
  border-radius: 100px;
  background: rgba(212, 175, 55, 0.25);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.showcase-dot.active {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
  width: 56px;
}

/* SCENES container (text side) */
.showcase-scenes {
  position: relative;
  height: 60vh;
  width: 100%;
}
.showcase-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.showcase-scene.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.showcase-scene-num {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-400);
  letter-spacing: 4px;
  margin-bottom: 16px;
  opacity: 0.7;
}
.showcase-scene-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--gold-300) 50%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.showcase-scene-desc {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 460px;
  margin-bottom: 24px;
  font-weight: 300;
}
.showcase-scene-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.showcase-scene-feature {
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.showcase-scene-feature::before {
  content: '◆';
  color: var(--gold-500);
  font-size: 8px;
}

/* CENTER STAGE - the pinned visual */
.showcase-stage {
  position: relative;
  width: 100%;
  height: 70vh;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-stage::before {
  content: '';
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

/* SVG room illustration */
.room-svg {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(212, 175, 55, 0.15));
}
.room-part {
  transition: opacity 0.8s ease, stroke 0.8s ease, fill 0.8s ease;
}
.room-svg .floor       { stroke: rgba(212, 175, 55, 0.3); }
.room-svg .wall        { stroke: rgba(212, 175, 55, 0.3); }
.room-svg .ceiling     { stroke: rgba(212, 175, 55, 0.3); }
.room-svg .light       { fill: rgba(212, 175, 55, 0.3); }
.room-svg .carpentry   { stroke: rgba(212, 175, 55, 0.3); }
.room-svg .deco        { stroke: rgba(212, 175, 55, 0.3); }
.room-svg .cnc         { stroke: rgba(212, 175, 55, 0.3); }

/* Active scene highlights */
.showcase[data-scene="0"] .room-svg .ceiling  { stroke: var(--gold-300); stroke-width: 3.5; filter: drop-shadow(0 0 20px rgba(229, 193, 88, 0.6)); }
.showcase[data-scene="1"] .room-svg .light    { fill: var(--gold-300); stroke: var(--gold-300); filter: drop-shadow(0 0 16px rgba(229, 193, 88, 0.9)); }
.showcase[data-scene="2"] .room-svg .floor    { stroke: var(--gold-300); stroke-width: 3.5; filter: drop-shadow(0 0 16px rgba(229, 193, 88, 0.6)); }
.showcase[data-scene="3"] .room-svg .deco     { stroke: var(--gold-300); stroke-width: 3.5; filter: drop-shadow(0 0 16px rgba(229, 193, 88, 0.6)); }
.showcase[data-scene="4"] .room-svg .cnc, .showcase[data-scene="4"] .room-svg .carpentry { stroke: var(--gold-300); stroke-width: 3.5; filter: drop-shadow(0 0 16px rgba(229, 193, 88, 0.6)); }

/* Stage rotation per scene */
.room-svg {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase[data-scene="0"] .room-svg { transform: rotateY(0deg) rotateX(0deg) scale(1); }
.showcase[data-scene="1"] .room-svg { transform: rotateY(-8deg) rotateX(2deg) scale(1.05); }
.showcase[data-scene="2"] .room-svg { transform: rotateY(8deg) rotateX(-2deg) scale(1.02); }
.showcase[data-scene="3"] .room-svg { transform: rotateY(-4deg) rotateX(4deg) scale(1.04); }
.showcase[data-scene="4"] .room-svg { transform: rotateY(0deg) rotateX(8deg) scale(1.08); }

/* Floating service badge near room */
.showcase-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--purple-900);
  z-index: 4;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px -10px rgba(212, 175, 55, 0.5);
}
.showcase-badge.show {
  opacity: 1;
  animation: badgeFloat 3s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -55%) scale(1.05); }
}

@media (max-width: 980px) {
  .showcase { height: 260vh; }
  .showcase-sticky {
    grid-template-columns: 1fr;
    padding: 80px 24px;
    align-items: start;
    gap: 0;
  }
  .showcase-stage {
    height: 32vh;
    order: -1;
  }
  .showcase-scenes { height: 52vh; }
  .showcase-scene-title { font-size: clamp(40px, 11vw, 64px); }
  .showcase-scene-desc { font-size: 16px; }
  .showcase-eyebrow { top: 28px; font-size: 11px; letter-spacing: 2.5px; }
  .showcase-counter { bottom: 28px; }
}
@media (max-width: 560px) {
  .showcase { height: 280vh; }
  .room-svg { max-width: 340px; }
  .showcase-stage { height: 28vh; }
}

/* Dark mode is already the default for this section */

/* ============================================
   STAGE VISUALS — 2D modern (replaces 3D room)
   ============================================ */
.stage-visuals {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #14081f 0%, #1f0f30 100%);
  box-shadow:
    0 30px 80px -20px rgba(61, 10, 110, 0.55),
    0 0 0 1px rgba(212, 175, 55, 0.15) inset,
    0 0 80px -20px rgba(212, 175, 55, 0.25) inset;
  z-index: 2;
}
.stage-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.showcase[data-scene="0"] .stage-visual[data-stage="0"],
.showcase[data-scene="1"] .stage-visual[data-stage="1"],
.showcase[data-scene="2"] .stage-visual[data-stage="2"],
.showcase[data-scene="3"] .stage-visual[data-stage="3"],
.showcase[data-scene="4"] .stage-visual[data-stage="4"] {
  opacity: 1;
  transform: scale(1);
}
.stage-label {
  position: absolute;
  bottom: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
  color: #E5C158;
  font-family: 'Frank Ruhl Libre', serif;
}
.stage-label-mark {
  font-size: 38px;
  font-weight: 900;
  background: linear-gradient(135deg, #E5C158, #D4AF37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
}
.stage-label-txt {
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(229, 193, 88, 0.85);
}

/* ---- Scene 0: Gypsum cove ---- */
.sv-gypsum { position: absolute; inset: 0; }
.sv-gypsum .cove {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.04) 100%);
  box-shadow: 0 1px 0 rgba(212,175,55,0.25) inset, 0 -1px 0 rgba(212,175,55,0.15) inset;
}
.sv-gypsum .cove-1 { top: 14%; height: 28px; border-radius: 14px; }
.sv-gypsum .cove-2 { top: 28%; left: 14%; right: 14%; }
.sv-gypsum .cove-3 { top: 38%; left: 20%; right: 20%; height: 12px; }
.sv-gypsum .cove-4 { top: 46%; left: 26%; right: 26%; height: 8px; }
.sv-gypsum .cove-glow {
  top: 50%;
  left: 28%;
  right: 28%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #E5C158, transparent);
  box-shadow: 0 0 24px 4px rgba(229,193,88,0.6), 0 0 48px 8px rgba(229,193,88,0.3);
  animation: covePulse 3s ease-in-out infinite;
}
@keyframes covePulse {
  0%, 100% { opacity: 0.8; box-shadow: 0 0 24px 4px rgba(229,193,88,0.55), 0 0 48px 8px rgba(229,193,88,0.25); }
  50%      { opacity: 1;   box-shadow: 0 0 32px 6px rgba(229,193,88,0.8),  0 0 64px 12px rgba(229,193,88,0.4); }
}

/* ---- Scene 1: LED ---- */
.sv-led { position: absolute; inset: 0; }
.sv-led .strand {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55), transparent);
}
.sv-led .strand-1 { top: 30%; left: 0; right: 0; }
.sv-led .strand-2 { top: 55%; left: 0; right: 0; }
.sv-led .strand-3 { top: 78%; left: 0; right: 0; }
.sv-led .bulb {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF6D5 0%, #E5C158 40%, transparent 70%);
  box-shadow: 0 0 14px 3px rgba(229,193,88,0.7), 0 0 28px 6px rgba(229,193,88,0.4);
  animation: bulbBlink 2.4s ease-in-out infinite;
}
.sv-led .b1 { top: 30%; left: 18%; animation-delay: 0s; }
.sv-led .b2 { top: 30%; left: 50%; animation-delay: 0.3s; }
.sv-led .b3 { top: 30%; left: 80%; animation-delay: 0.6s; }
.sv-led .b4 { top: 55%; left: 30%; animation-delay: 0.9s; }
.sv-led .b5 { top: 55%; left: 70%; animation-delay: 1.2s; }
.sv-led .b6 { top: 78%; left: 22%; animation-delay: 1.5s; }
.sv-led .b7 { top: 78%; left: 76%; animation-delay: 1.8s; }
@keyframes bulbBlink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.7; }
}

/* ---- Scene 2: Marble ---- */
.sv-marble { position: absolute; inset: 0; }
.sv-marble svg { width: 100%; height: 100%; display: block; }

/* ---- Scene 3: Fluted ---- */
.sv-fluted {
  position: absolute;
  inset: 6% 6%;
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 4px;
}
.sv-fluted .flute {
  background: linear-gradient(180deg, rgba(212,175,55,0.05) 0%, rgba(212,175,55,0.22) 50%, rgba(212,175,55,0.05) 100%);
  border-radius: 4px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
}
.sv-fluted .flute:nth-child(odd) {
  background: linear-gradient(180deg, rgba(229,193,88,0.08) 0%, rgba(229,193,88,0.3) 50%, rgba(229,193,88,0.08) 100%);
}

/* ---- Scene 4: CNC ---- */
.sv-cnc { position: absolute; inset: 0; }
.sv-cnc svg { width: 100%; height: 100%; display: block; }
.cnc-path, .cnc-circle { animation: cncDash 6s linear infinite; }
@keyframes cncDash {
  to { stroke-dashoffset: -100; }
}

/* Stage hides old SVG room CSS if leftover */
.room-svg { display: none !important; }

/* Mobile */
@media (max-width: 980px) {
  .stage-visuals { max-width: 100%; aspect-ratio: 16/10; }
  .stage-label { bottom: 14px; right: 16px; gap: 10px; }
  .stage-label-mark { font-size: 28px; }
  .stage-label-txt { font-size: 11px; letter-spacing: 1.5px; }
}

/* ============================================
   INVESTMENT BRACKET BADGE
   ============================================ */
.project-bracket {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: none;
}

/* ============================================
   BEFORE / AFTER PROJECT CARD
   ============================================ */
.project-card .project-ba {
  position: relative;
  cursor: zoom-in;
}
.project-ba-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(212,175,55,0.95), rgba(229,193,88,0.95));
  color: var(--purple-900);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(212,175,55,0.4);
  pointer-events: none;
}

/* ============================================
   BEFORE / AFTER MODAL
   ============================================ */
.ba-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(20, 8, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ba-modal.open {
  display: flex;
  opacity: 1;
}
.ba-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(229, 193, 88, 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold-400);
  font-size: 26px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.ba-modal-close:hover {
  background: var(--gold-500);
  color: var(--purple-900);
  transform: scale(1.05);
}
.ba-modal-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ba-modal-title {
  text-align: center;
  color: var(--gold-400);
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
}
.ba-modal-hint {
  text-align: center;
  color: rgba(229, 193, 88, 0.7);
  font-size: 13px;
  letter-spacing: 1px;
}
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 70vh;
  border-radius: 16px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  background: var(--purple-900);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6),
              0 0 0 1px rgba(212,175,55,0.25);
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-clip {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;             /* in RTL — "before" on the right side */
  width: 50%;
  overflow: hidden;
  pointer-events: none;
}
.ba-clip .ba-img {
  right: 0;
  width: 100vw;          /* keep image natural size relative to slider */
  min-width: 100%;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 4px;
  background: linear-gradient(180deg, transparent 0%, var(--gold-400) 12%, var(--gold-400) 88%, transparent 100%);
  cursor: ew-resize;
  z-index: 3;
  box-shadow: 0 0 24px rgba(229,193,88,0.5);
  transform: translateX(50%);
}
.ba-handle-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--purple-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 8px 30px rgba(229,193,88,0.5);
  letter-spacing: 2px;
}
.ba-label {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.ba-label-before {
  right: 20px;
  background: rgba(180, 60, 60, 0.85);
  color: #fff;
}
.ba-label-after {
  left: 20px;
  background: rgba(212, 175, 55, 0.9);
  color: var(--purple-900);
}

/* ============================================
   GUIDE CTA SECTION
   ============================================ */
.guide-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f4ec 0%, #faf6ee 100%);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .guide-cta {
  background: linear-gradient(135deg, #1a0d28 0%, #221036 100%);
}
.guide-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.guide-cta-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.guide-cta-cover {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-700) 100%);
  border-radius: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px;
  box-shadow: 0 25px 60px -10px rgba(61, 10, 110, 0.4),
              0 0 0 1px rgba(212,175,55,0.2);
  border-top: 4px solid var(--gold-400);
  transform: rotate(-3deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-cta-cover:hover { transform: rotate(0deg) scale(1.03); }
.guide-cta-cover-mark {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--purple-900);
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-cta-cover-title {
  font-family: 'Frank Ruhl Libre', serif;
  color: var(--gold-400);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  text-align: right;
}
.guide-cta-cover-foot {
  color: rgba(229, 193, 88, 0.7);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.guide-cta-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.guide-cta-bullets span {
  padding: 8px 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-700);
}
[data-theme="dark"] .guide-cta-bullets span {
  color: var(--gold-400);
}

/* ============================================
   GUIDE MODAL (email gate)
   ============================================ */
.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(20, 8, 32, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}
.guide-modal.open { display: flex; opacity: 1; }
.guide-modal-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 22px;
  padding: 40px 32px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  border-top: 4px solid var(--gold-500);
  text-align: center;
}
[data-theme="dark"] .guide-modal-card { background: #1a0d28; color: #fff; }
.guide-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: #333;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s;
}
.guide-modal-close:hover { background: var(--purple-700); color: #fff; transform: rotate(90deg); }
.guide-modal-icon { font-size: 48px; margin-bottom: 8px; }
.guide-modal-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--purple-700);
}
[data-theme="dark"] .guide-modal-title { color: var(--gold-400); }
.guide-modal-desc {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px;
  line-height: 1.6;
}
.guide-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}
.guide-form input {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid #e5dcc7;
  font-size: 15px;
  background: #fafafa;
  font-family: inherit;
  transition: all 0.2s;
}
.guide-form input:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
}
.guide-form button {
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 0.5px;
  transition: all 0.25s;
}
.guide-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(61, 10, 110, 0.3);
}
.guide-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.guide-modal-disclaimer {
  font-size: 11px;
  color: #999;
  margin: 14px 0 0;
}

/* Mobile */
@media (max-width: 900px) {
  .guide-cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .guide-cta-cover { max-width: 240px; margin: 0 auto; }
  .ba-slider { aspect-ratio: 4/3; }
  .ba-handle-arrow { width: 48px; height: 48px; font-size: 18px; }
  .project-bracket { top: 12px; right: 12px; font-size: 10px; padding: 4px 10px; }
}

/* ============================================
   PROJECT CREDITS
   ============================================ */
.project-credits {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11px;
  color: rgba(229, 193, 88, 0.85);
}
.project-credits .credit-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: 0.3px;
}
.project-credits .credit-role {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
  color: rgba(212, 175, 55, 0.65);
}
.project-credits .credit-link {
  color: var(--gold-400, #E5C158);
  text-decoration: none;
  border-bottom: 1px dotted rgba(229, 193, 88, 0.4);
  transition: all 0.2s;
}
.project-credits .credit-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ============================================
   PROJECT PROCESS / WIP IMAGES
   ============================================ */
.project-process {
  margin-top: 12px;
  padding: 10px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px dashed rgba(212, 175, 55, 0.25);
  border-radius: 12px;
}
.process-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(229, 193, 88, 0.85);
  margin-bottom: 8px;
}
.process-strip {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.process-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  cursor: zoom-in;
  transition: transform 0.2s, border-color 0.2s;
  filter: brightness(0.92);
}
.process-thumb:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: brightness(1.05);
  border-color: var(--gold-400, #E5C158);
}
.process-more {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-700, #3D0A6E), var(--purple-600, #5B14A0));
  color: var(--gold-400, #E5C158);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  transition: transform 0.2s;
}
.process-more:hover { transform: scale(1.08); }

/* Process Lightbox */
.process-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 32, 0.95);
  backdrop-filter: blur(15px);
  z-index: 1700;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 24px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s;
}
.process-lightbox.open { opacity: 1; }
.process-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(229, 193, 88, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold-400, #E5C158);
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
}
.process-lightbox-close:hover {
  background: var(--gold-500, #D4AF37);
  color: var(--purple-900, #14081f);
}
.process-lightbox-title {
  color: var(--gold-400, #E5C158);
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}
.process-lightbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1200px;
}
.process-lightbox-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: transform 0.3s, border-color 0.2s;
}
.process-lightbox-grid img:hover {
  transform: scale(1.02);
  border-color: var(--gold-400, #E5C158);
}



/* ============================================
   PROJECT DETAIL — SINGLE COLUMN, RESOLUTION-PROOF
   ============================================ */

.lightbox.open { backdrop-filter: blur(8px); }
body:has(.lightbox.open) { overflow: hidden !important; }
.lightbox { overscroll-behavior: contain; }

/* Lightbox content — wide but height-flexible */
.lightbox-content {
  max-width: 1100px !important;
  width: calc(100% - 24px) !important;
  max-height: 92vh !important;
  background: var(--surface) !important;
  border-radius: 18px !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
}

.pd-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(229,193,88,0.35);
  border-radius: 50%;
  font-size: 22px;
  z-index: 30;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.pd-close:hover {
  background: var(--gold-500, #D4AF37);
  color: var(--purple-900, #14081f);
  transform: scale(1.08);
}

/* Single scroll container — no nested scrolls, no grid columns */
.pd-wrap {
  width: 100%;
  height: 92vh;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  background: var(--surface, #fff);
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.45) transparent;
}
.pd-wrap::-webkit-scrollbar { width: 10px; }
.pd-wrap::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.5); border-radius: 5px; }
.pd-wrap::-webkit-scrollbar-track { background: transparent; }

/* HEADER — sticky at top */
.pd-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--purple-900, #14081f) 0%, var(--purple-800, #2A0B52) 100%);
  color: #fff;
  padding: 18px 56px 16px 22px; /* leave room for X on the left in RTL */
  border-bottom: 1px solid rgba(229,193,88,0.25);
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}
.pd-head-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.pd-cat {
  color: var(--gold-400, #E5C158);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
}
.pd-tier {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.pd-title {
  margin: 4px 0 4px;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.15;
  color: #fff;
  font-weight: 800;
}
.pd-subtitle {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 400;
}
.pd-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pd-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(229,193,88,0.22);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.pd-stat-icon { font-size: 18px; }
.pd-stat-val { color: var(--gold-400, #E5C158); font-weight: 700; font-size: 14px; }
.pd-stat-label { color: rgba(255,255,255,0.65); font-size: 11px; }

/* GALLERY SECTION — full-width images stacked */
.pd-section-gallery { padding: 0; background: #0d0712; }
.pd-gallery { position: relative; display: block; }
.pd-gcount {
  position: sticky;
  top: 12px;
  margin: 0 auto;
  width: max-content;
  padding: 6px 14px;
  background: rgba(0,0,0,0.75);
  color: var(--gold-400, #E5C158);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  border-radius: 999px;
  z-index: 5;
  backdrop-filter: blur(10px);
  pointer-events: none;
  display: block;
  text-align: center;
}
.pd-gitem {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #0d0712;
  display: block;
}
.pd-gitem img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  cursor: zoom-in;
}
.pd-gitem + .pd-gitem { border-top: 1px solid rgba(229,193,88,0.08); }

/* BODY — text content below gallery */
.pd-body {
  padding: 26px 28px 30px;
  background: var(--surface, #fff);
  color: var(--ink, #1A0533);
}
.pd-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink, #1A0533);
  margin: 0 0 18px;
}
.pd-body .pd-section {
  margin-bottom: 22px;
}
.pd-section-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--purple-800, #2A0B52);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pd-section-count {
  background: var(--gold-400, #E5C158);
  color: var(--purple-900, #14081f);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tag {
  padding: 6px 12px;
  background: rgba(229,193,88,0.12);
  border: 1px solid rgba(229,193,88,0.35);
  color: var(--purple-800, #2A0B52);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* BEFORE / AFTER preview button */
.pd-ba {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid rgba(229,193,88,0.3);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #1a0d28;
  cursor: pointer;
}
.pd-ba img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.pd-ba-cta {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: var(--gold-400, #E5C158);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* PROCESS strip */
.pd-process-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.pd-process-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--gold-400, #E5C158);
  cursor: pointer;
  transition: transform 0.2s;
}
.pd-process-img:hover { transform: scale(1.03); }

/* CREDITS */
.pd-credits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.pd-credit {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(229,193,88,0.08);
  border-right: 3px solid var(--gold-400, #E5C158);
  border-radius: 8px;
}
.pd-credit-role { color: var(--purple-700, #3D0A6E); font-weight: 700; font-size: 14px; }
.pd-credit-name { color: var(--ink, #1A0533); font-weight: 600; }
.pd-credit-name a { color: var(--purple-700, #3D0A6E); text-decoration: none; border-bottom: 1px dashed; }
.pd-credit-name a:hover { color: var(--gold-600, #B8941F); }

/* QUOTE */
.pd-quote {
  margin: 20px 0;
  padding: 18px 22px;
  background: rgba(229,193,88,0.08);
  border-right: 4px solid var(--gold-400, #E5C158);
  border-radius: 10px;
  font-style: italic;
  color: var(--ink, #1A0533);
  font-size: 15px;
  line-height: 1.6;
}
.pd-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 700;
  color: var(--purple-700, #3D0A6E);
  font-size: 13px;
}

/* CTA */
.pd-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(229,193,88,0.2);
}
.pd-cta .btn { flex: 1; min-width: 180px; }

/* EMPTY STATE */
.pd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--gold-400, #E5C158);
  background: linear-gradient(135deg, var(--purple-900, #14081f), var(--purple-700, #3D0A6E));
  text-align: center;
}
.pd-empty-icon {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 100px;
  font-weight: 900;
  margin-bottom: 14px;
  opacity: 0.4;
}

/* MOBILE / NARROW VIEWPORTS */
@media (max-width: 700px) {
  .lightbox-content { width: calc(100% - 12px) !important; max-height: 96vh !important; }
  .pd-wrap { height: 96vh; max-height: 96vh; }
  .pd-head { padding: 14px 52px 12px 16px; }
  .pd-title { font-size: 20px; }
  .pd-stat { padding: 4px 8px; gap: 6px; }
  .pd-stat-icon { font-size: 14px; }
  .pd-stat-val { font-size: 12px; }
  .pd-stat-label { font-size: 10px; }
  .pd-body { padding: 18px 16px 24px; }
  .pd-ba img { height: 160px; }
  .pd-gitem img { max-height: 65vh; }
}

/* SHORT VIEWPORTS (zoom, small laptop) — make sure header doesn't dominate */
@media (max-height: 700px) {
  .pd-head { padding: 12px 50px 10px 18px; }
  .pd-title { font-size: 20px; }
  .pd-subtitle { margin-bottom: 6px; font-size: 13px; }
  .pd-stats { gap: 8px; }
  .pd-stat { padding: 4px 8px; }
  .pd-gitem img { max-height: 75vh; }
}
