/* ============ 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: 78vh;
  max-height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-stage::before {
  content: '';
  position: absolute;
  inset: 6%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

/* 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 — hidden (replaced by AI cinematic photos) */
.showcase-badge { display: none !important; }
@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: 820px;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #14081f 0%, #1f0f30 100%);
  box-shadow:
    0 40px 100px -20px rgba(61, 10, 110, 0.7),
    0 0 0 1px rgba(212, 175, 55, 0.22) inset,
    0 0 100px -20px rgba(212, 175, 55, 0.35) inset;
  z-index: 2;
}
/* Cinematic AI-photo with Ken-Burns animation (GIF-like motion) */
.sv-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
.sv-grade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(15, 8, 21, 0.45) 100%),
    linear-gradient(180deg, transparent 50%, rgba(15, 8, 21, 0.55) 100%);
  pointer-events: none;
}
/* When a scene is active, the photo slowly zooms & pans (Ken Burns) */
@keyframes kenBurns0 {
  0%   { transform: scale(1.08) translate(0%, 0%); }
  50%  { transform: scale(1.20) translate(-2%, -1.5%); }
  100% { transform: scale(1.08) translate(0%, 0%); }
}
@keyframes kenBurns1 {
  0%   { transform: scale(1.06) translate(0%, 0%); }
  50%  { transform: scale(1.18) translate(2%, -1%); }
  100% { transform: scale(1.06) translate(0%, 0%); }
}
@keyframes kenBurns2 {
  0%   { transform: scale(1.05) translate(0%, 0%); }
  50%  { transform: scale(1.18) translate(-1.5%, 1.5%); }
  100% { transform: scale(1.05) translate(0%, 0%); }
}
@keyframes kenBurns3 {
  0%   { transform: scale(1.07) translate(0%, 0%); }
  50%  { transform: scale(1.20) translate(1.5%, 1%); }
  100% { transform: scale(1.07) translate(0%, 0%); }
}
@keyframes kenBurns4 {
  0%   { transform: scale(1.06) translate(0%, 0%); }
  50%  { transform: scale(1.18) translate(-2%, 1%); }
  100% { transform: scale(1.06) translate(0%, 0%); }
}
.showcase[data-scene="0"] .stage-visual[data-stage="0"] .sv-photo { animation: kenBurns0 14s ease-in-out infinite; }
.showcase[data-scene="1"] .stage-visual[data-stage="1"] .sv-photo { animation: kenBurns1 14s ease-in-out infinite; }
.showcase[data-scene="2"] .stage-visual[data-stage="2"] .sv-photo { animation: kenBurns2 14s ease-in-out infinite; }
.showcase[data-scene="3"] .stage-visual[data-stage="3"] .sv-photo { animation: kenBurns3 14s ease-in-out infinite; }
.showcase[data-scene="4"] .stage-visual[data-stage="4"] .sv-photo { animation: kenBurns4 14s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .sv-photo { animation: none !important; }
}
.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
   (full badge rules live below near .project-ba)
   ============================================ */

/* ============================================
   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);
}



/* ============================================
   PROJECTS BAND on homepage — CTA band
   ============================================ */
.projects-band {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--purple-900, #14081f), var(--purple-700, #3D0A6E));
  position: relative;
  overflow: hidden;
}
.projects-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212,175,55,0.1), transparent 50%);
  pointer-events: none;
}
.projects-band .band-inner {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.projects-band .band-text { text-align: right; }
.projects-band .section-eyebrow { color: var(--gold-400, #E5C158); }
.projects-band .section-title { color: #fff; margin: 8px 0 12px; }
.projects-band .section-sub { color: rgba(255,255,255,0.8); }
.projects-band .band-cta {
  white-space: nowrap;
  font-size: 16px;
  padding: 14px 28px;
}
@media (max-width: 768px) {
  .projects-band .band-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .projects-band .band-text { text-align: center; }
  .projects-band .band-cta { justify-self: center; }
}

/* ============================================
   PROJECTS LIST PAGE (/projects)
   ============================================ */
.projects-page {
  padding: 60px 24px 100px;
  min-height: 100vh;
  background: var(--surface, #faf6f0);
}
.page-head {
  text-align: center;
  margin-bottom: 40px;
}
.page-back {
  display: inline-block;
  color: var(--purple-700, #3D0A6E);
  text-decoration: none;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(61,10,110,0.2);
  border-radius: 999px;
  transition: all 0.2s;
}
.page-back:hover {
  background: var(--purple-700, #3D0A6E);
  color: var(--gold-400, #E5C158);
}
.page-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--purple-900, #14081f);
  margin: 8px 0 12px;
}
.page-sub {
  color: rgba(0,0,0,0.55);
  font-size: 17px;
}

/* Rectangular project cards — old design */
.projects-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.project-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: linear-gradient(135deg, var(--purple-800, #2A0B52), var(--purple-900, #14081f));
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.45);
  border: 1px solid rgba(212,175,55,0.18);
  transition: transform 0.5s cubic-bezier(.22,1,.36,1), box-shadow 0.5s;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 70px -15px rgba(0,0,0,0.55);
  border-color: rgba(229,193,88,0.5);
}
.project-card[data-cat="syn"] { background: linear-gradient(135deg, #2A0856 0%, #5B2A86 100%); }
.project-card[data-cat="luxury"] { background: linear-gradient(135deg, #3D0A6E 0%, #8B6914 100%); }
.project-card[data-cat="apartment"] { background: linear-gradient(135deg, #1A0533 0%, #6B2BA0 100%); }
.project-card[data-cat="business"] { background: linear-gradient(135deg, #1A0533 0%, #4A148C 100%); }
.project-card[data-cat="cnc"] { background: linear-gradient(135deg, #0F0815 0%, #8B6914 100%); }

.project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.22,1,.36,1);
}
.project-card:hover .project-img { transform: scale(1.08); }
.project-thumb {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 70px;
  color: var(--gold-500, #D4AF37);
  opacity: 0.35;
  font-weight: 900;
  transition: transform 1s;
}
.project-card:hover .project-thumb { transform: scale(1.1) rotate(-3deg); }
.project-ba {
  position: absolute; inset: 0;
}
.project-ba img {
  width: 100%; height: 100%; object-fit: cover;
}
.project-ba-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(0,0,0,0.75);
  color: var(--gold-400, #E5C158);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.project-bracket {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.project-overlay {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  color: #fff;
  z-index: 2;
  transition: background 0.4s;
}
.project-cat {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-400, #E5C158);
  font-weight: 700;
  margin-bottom: 6px;
}
.project-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.project-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.project-arrow {
  position: absolute;
  bottom: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  background: var(--gold-500, #D4AF37);
  color: var(--purple-900, #14081f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  z-index: 3;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s;
}
.project-card:hover .project-arrow {
  opacity: 1;
  transform: scale(1);
}
.projects-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: rgba(0,0,0,0.5);
  font-size: 16px;
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .project-card { aspect-ratio: 4 / 5; }
  .project-title { font-size: 16px; }
  .project-meta { font-size: 10px; gap: 6px; }
  .project-overlay { padding: 14px; }
}

/* Project tabs (filter pills) */
.project-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0 20px;
}
.project-tabs .tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(61,10,110,0.2);
  background: #fff;
  color: var(--purple-800, #2A0B52);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.project-tabs .tab:hover { border-color: var(--purple-700, #3D0A6E); background: rgba(229,193,88,0.05); }
.project-tabs .tab.active {
  background: var(--purple-700, #3D0A6E);
  color: var(--gold-400, #E5C158);
  border-color: var(--purple-700, #3D0A6E);
}

.project-search {
  max-width: 500px;
  margin: 0 auto 20px;
  position: relative;
}
.project-search input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 1px solid rgba(61,10,110,0.2);
  border-radius: 999px;
  font-size: 15px;
  background: #fff;
  text-align: right;
  outline: none;
  transition: border 0.2s;
}
.project-search input:focus { border-color: var(--purple-700, #3D0A6E); }
.project-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0,0,0,0.4);
  font-size: 16px;
}

/* ============================================
   PROJECT DETAIL PAGE (/project/:slug)
   ============================================ */
.project-page { min-height: 100vh; background: var(--surface, #faf6f0); }

/* Hero — full viewport image with title overlay */
.pp-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 500px;
  max-height: 760px;
  background-size: cover;
  background-position: center;
  background-color: var(--purple-900, #14081f);
}
.pp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,8,31,0.25) 0%, rgba(20,8,31,0.4) 55%, rgba(20,8,31,0.85) 100%);
}
.pp-hero-content {
  position: absolute;
  bottom: 60px;
  right: 40px;
  z-index: 2;
  color: #fff;
  text-align: right;
  max-width: 75%;
}
.pp-back {
  display: inline-block;
  color: var(--gold-400, #E5C158);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(229,193,88,0.4);
  border-radius: 999px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.3);
  transition: all 0.2s;
}
.pp-back:hover { background: var(--gold-500, #D4AF37); color: var(--purple-900, #14081f); }
.pp-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.0;
  margin: 0 0 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.pp-meta-line {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
}
.pp-meta-line strong { color: var(--gold-400, #E5C158); font-weight: 600; margin-left: 4px; }

/* Body — 60/40 split */
.pp-body { padding: 80px 24px; background: var(--surface, #faf6f0); }
.pp-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: start;
}
.pp-gallery-col { min-width: 0; }
.pp-text-col { min-width: 0; position: sticky; top: 100px; }
.pp-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pp-thumb {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0d0712;
  position: relative;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.25);
}
.pp-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.4);
}
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* RIGHT column — text / stats / credits */
.pp-cat {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-600, #B8941F);
  font-weight: 700;
  margin-bottom: 10px;
}
.pp-subtitle {
  font-size: 18px;
  color: rgba(0,0,0,0.7);
  margin: 0 0 22px;
  line-height: 1.5;
  font-weight: 400;
}
.pp-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.pp-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--purple-900, #14081f);
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(229,193,88,0.3);
}
.pp-stat-icon { font-size: 20px; }
.pp-stat-val { color: var(--gold-400, #E5C158); font-weight: 700; font-size: 15px; }
.pp-stat-label { color: rgba(255,255,255,0.7); font-size: 11px; }
.pp-stat-tier { background: var(--gold-500, #D4AF37); color: var(--purple-900, #14081f); }
.pp-stat-tier .pp-tier {
  background: transparent !important; color: var(--purple-900, #14081f) !important;
  padding: 0; font-weight: 800;
}

.pp-section { margin-bottom: 28px; }
.pp-section-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--purple-800, #2A0B52);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink, #1A0533);
  margin: 0;
}
.pp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-tag {
  padding: 6px 14px;
  background: rgba(229,193,88,0.15);
  border: 1px solid rgba(229,193,88,0.4);
  color: var(--purple-800, #2A0B52);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.pp-credits { display: grid; gap: 8px; }
.pp-credit {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(229,193,88,0.08);
  border-right: 3px solid var(--gold-500, #D4AF37);
  border-radius: 8px;
}
.pp-credit-role { color: var(--purple-700, #3D0A6E); font-weight: 700; font-size: 14px; }
.pp-credit-name { color: var(--ink, #1A0533); font-weight: 600; }
.pp-credit-name a {
  color: var(--purple-700, #3D0A6E);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  transition: color 0.2s;
}
.pp-credit-name a:hover { color: var(--gold-600, #B8941F); }
.pp-quote {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(229,193,88,0.1);
  border-right: 4px solid var(--gold-500, #D4AF37);
  border-radius: 12px;
  font-style: italic;
  color: var(--ink, #1A0533);
  font-size: 16px;
  line-height: 1.7;
}
.pp-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  color: var(--purple-700, #3D0A6E);
  font-size: 14px;
}
.pp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.pp-cta .btn { flex: 1; min-width: 180px; }

/* Empty gallery placeholder */
.pp-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;
  border-radius: 16px;
}
.pp-empty-icon {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 100px;
  font-weight: 900;
  opacity: 0.35;
  margin-bottom: 14px;
}

/* Bottom — process gallery + before/after */
.pp-bottom {
  padding: 60px 24px 100px;
  background: linear-gradient(180deg, var(--surface, #faf6f0) 0%, rgba(229,193,88,0.05) 100%);
}
.pp-bottom-block { margin-bottom: 50px; }
.pp-block-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--purple-900, #14081f);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}
.pp-block-count {
  background: var(--gold-500, #D4AF37);
  color: var(--purple-900, #14081f);
  font-size: 14px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.pp-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.pp-process-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--gold-500, #D4AF37);
  cursor: zoom-in;
  transition: transform 0.3s;
}
.pp-process-img:hover { transform: scale(1.04); }
.pp-ba {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 2px solid var(--gold-500, #D4AF37);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background: #1a0d28;
  cursor: pointer;
}
.pp-ba img { width: 100%; height: 350px; object-fit: cover; display: block; }
.pp-ba-cta {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: var(--gold-400, #E5C158);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* MOBILE — stack vertically */
@media (max-width: 900px) {
  .pp-hero { height: 70vh; min-height: 400px; }
  .pp-hero-content { right: 20px; bottom: 30px; max-width: 90%; }
  .pp-back { font-size: 12px; padding: 4px 10px; margin-bottom: 16px; }
  .pp-meta-line { font-size: 14px; gap: 16px; }
  .pp-body { padding: 40px 16px; }
  .pp-split { grid-template-columns: 1fr; gap: 30px; }
  .pp-text-col { position: relative; top: auto; order: -1; }
  .pp-thumbs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pp-bottom { padding: 40px 16px 60px; }
  .pp-block-title { font-size: 22px; }
  .pp-ba img { height: 200px; }
}
@media (max-width: 500px) {
  .pp-thumbs { grid-template-columns: 1fr; }
  .pp-process-grid { grid-template-columns: 1fr 1fr; }
}

/* Hide everything-else when on /projects or /project */
.route-view[hidden] { display: none !important; }

/* ============ MEDIA VIEWER (lightbox) ============ */
.media-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: mvFadeIn 0.2s ease-out;
}
.media-viewer.open {
  display: flex;
}
@keyframes mvFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.mv-img {
  max-width: calc(100vw - 200px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: mvZoomIn 0.25s ease-out;
}
@keyframes mvZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.mv-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.18s;
  z-index: 2;
}
.mv-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}
.mv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.18s;
  z-index: 2;
  font-weight: 300;
  padding: 0;
}
.mv-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
}
/* RTL: prev (‹) sits on right, next (›) on left */
.mv-prev { right: 24px; }
.mv-next { left: 24px; }
.mv-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
  direction: ltr;
  unicode-bidi: isolate;
}
/* Mobile: smaller margins, smaller nav buttons */
@media (max-width: 720px) {
  .media-viewer { padding: 12px; }
  .mv-img { max-width: calc(100vw - 24px); max-height: calc(100vh - 80px); }
  .mv-nav { width: 48px; height: 48px; font-size: 32px; }
  .mv-prev { right: 8px; }
  .mv-next { left: 8px; }
  .mv-close { top: 12px; left: 12px; width: 40px; height: 40px; font-size: 24px; }
  .mv-counter { bottom: 12px; font-size: 13px; padding: 6px 14px; }
}

/* ============================================
   STATS HERO — dramatic full-bleed band
   ============================================ */
.stats-hero {
  padding: 130px 32px;
  position: relative;
  overflow: hidden;
  background: var(--purple-900);
}
.stats-hero .stats-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.stats-hero .stats-bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  filter: blur(3px) saturate(1.1);
  animation: statsBgPan 28s ease-in-out infinite;
}
@keyframes statsBgPan {
  0%, 100% { transform: scale(1.05) translate(0, 0); }
  50%      { transform: scale(1.12) translate(-1%, -1%); }
}
.stats-hero .stats-bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(15,8,21,0.4) 0%, rgba(15,8,21,0.85) 70%, rgba(15,8,21,0.95) 100%),
    linear-gradient(135deg, rgba(61,10,110,0.55) 0%, rgba(20,8,31,0.7) 100%);
}
.stats-hero .container { position: relative; z-index: 2; }
.stats-eyebrow {
  text-align: center;
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--gold-400, #E5C158);
  font-weight: 700;
  margin-bottom: 50px;
}
.stats-hero .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-cell {
  position: relative;
  padding: 30px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.stat-cell:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.45);
  background: rgba(255,255,255,0.06);
}
.stat-icon {
  font-size: 28px;
  color: var(--gold-400, #E5C158);
  margin-bottom: 12px;
  opacity: 0.85;
}
.stats-hero .stat-num {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(60px, 7vw, 112px);
  font-weight: 900;
  background: linear-gradient(135deg, #FFF6D5 0%, #E5C158 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 40px rgba(212,175,55,0.25);
}
.stats-hero .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,.78);
  letter-spacing: 1.5px;
  font-weight: 500;
}
@media (max-width: 860px) {
  .stats-hero { padding: 80px 22px; }
  .stats-hero .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-cell { padding: 22px 12px; }
}

/* ============================================
   HOME PROJECTS — 6 featured cards on homepage
   ============================================ */
.home-projects {
  background: linear-gradient(180deg, #FAF7F2 0%, #F5EFE5 100%);
  padding: 120px 32px;
}
.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.home-projects-grid .project-card {
  aspect-ratio: 5 / 6;
  border-radius: 20px;
}
.home-projects-cta {
  text-align: center;
  margin-top: 56px;
}
.home-projects-cta .btn {
  font-size: 16px;
  padding: 18px 42px;
}
@media (max-width: 980px) {
  .home-projects-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  .home-projects-grid { grid-template-columns: 1fr; }
}

/* ============================================
   HOME BEFORE/AFTER — FULL-SCREEN, auto-rotating
   ============================================ */
.home-ba {
  background: linear-gradient(180deg, var(--purple-900) 0%, var(--purple-800) 100%);
  color: #fff;
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}
.home-ba .container { max-width: none; padding: 0 24px; }
.home-ba::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212,175,55,0.12), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(140,80,200,0.18), transparent 50%);
  pointer-events: none;
}
.home-ba .section-head { color: #fff; }
.home-ba .section-title { color: #fff; }
.home-ba .section-sub { color: rgba(255,255,255,0.75); }
.home-ba-slider {
  position: relative;
  width: 100%;
  max-width: 1700px;
  margin: 36px auto 0;
  height: min(78vh, 920px);
  border-radius: 28px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  box-shadow: 0 60px 140px -25px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,55,0.35) inset;
  background: #0F0815;
  transition: opacity 0.5s ease;
}
.home-ba-slider.swapping { opacity: 0; }
/* Dots row inside slider */
.home-ba-dots {
  position: absolute;
  bottom: 22px;
  right: 26px;
  z-index: 5;
  display: flex;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212,175,55,0.25);
}
.home-ba-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.home-ba-dot:hover { background: rgba(255,255,255,0.6); }
.home-ba-dot.active {
  background: var(--gold-400, #E5C158);
  width: 26px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(229,193,88,0.5);
}
.home-ba-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.home-ba-before-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}
.home-ba-before-wrap .home-ba-img-before {
  width: 1240px;
  max-width: 100vw;
}
.home-ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(212,175,55,0.85) 0%, #E5C158 50%, rgba(212,175,55,0.85) 100%);
  z-index: 4;
  cursor: ew-resize;
  box-shadow: 0 0 30px rgba(212,175,55,0.7);
}
.home-ba-handle-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300, #FFF6D5), var(--gold-500, #D4AF37));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--purple-900);
  box-shadow: 0 8px 30px rgba(212,175,55,0.55), 0 0 0 1px rgba(255,255,255,0.4) inset;
  transition: transform 0.25s ease;
  letter-spacing: 4px;
  direction: ltr;
}
.home-ba-slider:hover .home-ba-handle-arrow {
  transform: translate(-50%, -50%) scale(1.08);
}
.home-ba-label {
  position: absolute;
  top: 22px;
  z-index: 5;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-transform: uppercase;
}
.home-ba-label-before {
  right: 22px;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
}
.home-ba-label-after {
  left: 22px;
  background: rgba(212,175,55,0.95);
  color: var(--purple-900);
  border: 1px solid rgba(255,255,255,0.5);
}
.home-ba-title {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212,175,55,0.3);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .home-ba { padding: 70px 18px; }
  .home-ba-slider { aspect-ratio: 4 / 3; margin-top: 30px; }
  .home-ba-handle-arrow { width: 48px; height: 48px; font-size: 18px; }
  .home-ba-label { font-size: 11px; padding: 6px 12px; top: 12px; }
  .home-ba-label-before { right: 12px; }
  .home-ba-label-after { left: 12px; }
  .home-ba-title { font-size: 12px; padding: 8px 14px; bottom: 12px; }
}

/* ============================================
   /calculators hub page
   ============================================ */
.calc-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.calc-hub-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(135deg, #fff, #faf6ee);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 20px;
  padding: 30px 26px;
  color: var(--purple-900, #14081f);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  box-shadow: 0 10px 30px -10px rgba(61,10,110,0.15);
}
.calc-hub-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.6);
  box-shadow: 0 20px 50px -10px rgba(61,10,110,0.25);
}
.calc-hub-icon {
  font-size: 40px;
  margin-bottom: 14px;
}
.calc-hub-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--purple-900, #14081f);
}
.calc-hub-desc {
  font-size: 14px;
  color: rgba(20,8,31,0.65);
  margin-bottom: 16px;
  line-height: 1.5;
}
.calc-hub-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-700, #3D0A6E);
  letter-spacing: 1px;
}
.calc-hub-soon {
  opacity: 0.55;
  cursor: not-allowed;
}
.calc-hub-soon .calc-hub-cta {
  color: rgba(20,8,31,0.4);
}

/* ============================================
   PROJECT PAGE — albums + captions + video
   ============================================ */
.pp-albums {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.pp-album {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}
.pp-album:hover { background: rgba(212, 175, 55, 0.18); }
.pp-album.active {
  background: linear-gradient(135deg, var(--gold-400, #E5C158), var(--gold-500, #D4AF37));
  color: var(--purple-900, #14081f);
  border-color: var(--gold-500, #D4AF37);
}
.pp-thumb { position: relative; }
.pp-thumb video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.pp-thumb-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--gold-300, #FFF6D5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  letter-spacing: -2px;
  border: 2px solid rgba(229, 193, 88, 0.55);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: transform 0.25s ease, background 0.25s ease;
}
.pp-thumb:hover .pp-thumb-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(212, 175, 55, 0.9);
  color: #14081f;
}
.pp-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15,8,21,0.88), transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 14px 12px 8px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.pp-thumb:hover .pp-caption { opacity: 1; }

/* MediaViewer: video + caption */
.mv-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
}
.mv-video {
  max-width: calc(100vw - 200px);
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  background: #000;
}
.mv-caption {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  padding: 12px 22px;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  text-align: center;
  backdrop-filter: blur(8px);
  z-index: 2;
}
@media (max-width: 720px) {
  .mv-video { max-width: calc(100vw - 24px); max-height: calc(100vh - 100px); }
  .mv-caption { bottom: 60px; font-size: 13px; padding: 8px 14px; max-width: 92%; }
}
