/* ==========================================================================
   Design System & Premium CSS Stylesheet - Dhwani Dance School (Garamond/Marcellus)
   ========================================================================== */

:root {
  --bg: #1B0B0E;
  --bg-raised: #261115;
  --panel: #2C1319;
  --maroon-rich: #42151C;
  --gold-antique: #C79A3C;
  --gold-bright: #EACB7C;
  --gold-dim: #8A6A32;
  --kumkum: #C1440E;
  --kumkum-bright: #E1622C;
  --jasmine: #F4E9CF;
  --jasmine-dim: #B79E7E;
  --jasmine-faint: #8C7860;
  --border: rgba(199,154,60,.22);
  
  --radius-sm: 4px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}

/* Dark theme toggle variations: inverts to Alabaster Canvas theme */
body.light-theme {
  --bg: #fcfaf7;
  --bg-raised: #f5f1eb;
  --panel: #ffffff;
  --maroon-rich: #eae2d5;
  --gold-antique: #8c674b;
  --gold-bright: #a77d5f;
  --gold-dim: #6b4d36;
  --kumkum: #801a2b;
  --kumkum-bright: #9c2135;
  --jasmine: #42151C;
  --jasmine-dim: #45383a;
  --jasmine-faint: #7a6e70;
  --border: rgba(140, 103, 75, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--jasmine);
  font-family: 'Karla', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

.eyebrow {
  font-family: 'Marcellus', serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold-bright);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin: 0;
  color: var(--jasmine);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.4rem;
}

p {
  color: var(--jasmine-dim);
}

.dim {
  color: var(--jasmine-faint);
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 11, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

body.light-theme header {
  background: rgba(252, 250, 247, 0.85);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Marcellus', serif;
  font-size: 16px;
  letter-spacing: .06em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--jasmine-dim);
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

/* Header control panel buttons */
.header-auth-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--jasmine-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--gold-bright);
}

.nav-cta {
  background: var(--jasmine);
  color: var(--bg);
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--gold-bright);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--jasmine);
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

@media (max-width: 840px) {
  .nav-links, .nav-cta.desktop { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 18px 0 26px;
    border-top: 1px solid var(--border);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { text-decoration: none; color: var(--jasmine-dim); font-size: 16px; }
}

/* Profile menu dropdown inside new header */
.profile-menu {
  position: relative;
}

.profile-trigger {
  background: none;
  border: 1px solid var(--border);
  color: var(--jasmine-dim);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 100px;
}

.profile-trigger:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.profile-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  min-width: 180px;
  border-radius: 8px;
  z-index: 105;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-dropdown-content.show {
  display: block;
}

.profile-dropdown-content a {
  display: block;
  padding: 10px 18px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.profile-dropdown-content a:last-child {
  border-bottom: none;
}

.profile-dropdown-content a:hover {
  background: rgba(234, 203, 124, 0.08);
  color: var(--gold-bright);
}

/* ---------- scattered dot field ---------- */
.dotfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.dotfield svg {
  width: 100%;
  height: 100%;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 60px;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: 'Marcellus', serif;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--jasmine-dim);
}

.hero h1 { margin-bottom: 26px; }
.hero .lede { font-size: 1.15rem; max-width: 52ch; margin: 0 auto; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.btn-primary {
  background: var(--jasmine);
  color: var(--bg);
  padding: 14px 26px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border-radius: 100px;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-bright);
}

.btn-secondary {
  background: transparent;
  color: var(--jasmine);
  padding: 14px 26px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--gold-antique);
  background: rgba(199,154,60,.08);
}

/* ---------- media showcase panel ---------- */
.showcase {
  padding: 0 0 100px;
  position: relative;
}

.showcase-frame {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--panel), var(--maroon-rich));
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.topbar-indicators {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-indicators span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-dim);
  opacity: .6;
}

.showcase-body {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-raised);
}

#video-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  z-index: 10;
  pointer-events: none;
}

.overlay-top, .overlay-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.badge-live {
  background: var(--kumkum);
  color: var(--jasmine);
  padding: 5px 12px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 4px;
}

.btn-audio-control {
  background: rgba(23,10,12,.8);
  border: 1px solid var(--border);
  color: var(--jasmine);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 50%;
  transition: var(--transition);
}

.btn-audio-control:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.play-badge {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(23,10,12,.8);
  border: 1px solid rgba(234,203,124,.5);
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--jasmine);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.play-badge svg {
  width: 13px;
  height: 13px;
  opacity: 1;
}

/* ---------- icon strip ---------- */
.icon-strip { padding: 0 0 100px; overflow-x: auto; }
.icon-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.icon-chip {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(199,154,60,.05);
  transition: border-color .2s, transform .2s;
}

.icon-chip:hover { border-color: var(--gold-antique); transform: translateY(-3px); }
.icon-chip svg { width: 22px; height: 22px; color: var(--gold-bright); }

.icon-labels { display: flex; justify-content: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.icon-labels span {
  width: 64px;
  text-align: center;
  font-size: 11px;
  color: var(--jasmine-faint);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- statement section ---------- */
.statement { padding: 40px 0 120px; text-align: center; }
.statement h2 { max-width: 820px; margin: 0 auto; font-weight: 500; }
.statement h2 em { font-style: italic; color: var(--gold-bright); }

section { padding: 100px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }

/* ---------- case-style cards (founder + programs) ---------- */
.case-scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
@media (min-width: 1120px) {
  .case-scroller {
    justify-content: center;
  }
}
.case-scroller::-webkit-scrollbar { height: 6px; }
.case-scroller::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 10px; }

.case-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.case-media {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(200deg, var(--maroon-rich), var(--bg-raised));
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-media svg { position: absolute; inset: 0; margin: auto; width: 46%; opacity: .6; }
.case-tag { position: absolute; top: 16px; left: 16px; font-family: 'Marcellus', serif; font-size: 13px; color: var(--jasmine); z-index: 5; }

.case-watch {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(23,10,12,.75);
  border: 1px solid rgba(234,203,124,.4);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  color: var(--jasmine);
}

.case-watch svg { width: 9px; height: 9px; }
.case-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.case-card p { font-size: 14px; margin-bottom: 14px; }
.case-card a.link { font-size: 13.5px; font-weight: 600; color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(234,203,124,.4); padding-bottom: 2px; }

/* ---------- two-column split ---------- */
.split { background: var(--bg-raised); position: relative; overflow: hidden; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; position: relative; z-index: 1; }
@media (max-width: 820px) { .split-grid { grid-template-columns: 1fr; } }

.split-col { padding: 90px 48px; text-align: center; position: relative; }
.split-col:first-child { border-right: 1px solid var(--border); }
@media (max-width: 820px) { .split-col:first-child { border-right: none; border-bottom: 1px solid var(--border); } }
.split-col .eyebrow { display: block; margin-bottom: 14px; }
.split-col h2 { margin-bottom: 28px; font-size: 1.9rem; }
.split-dots { position: absolute; inset: 0; pointer-events: none; opacity: .5; }

/* ---------- Live Video Classroom Panel ---------- */
.classroom-container {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
}

@media (max-width: 992px) {
  .classroom-container { grid-template-columns: 1fr; }
}

.classroom-feeds {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.classroom-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .classroom-split { grid-template-columns: 1fr; }
}

.camera-feed {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--maroon-rich);
  overflow: hidden;
}

.camera-feed video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-label {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(27, 11, 14, 0.85);
  color: var(--jasmine);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  text-transform: uppercase;
  border-radius: 4px;
}

.classroom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.camera-selector-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.camera-selector-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--jasmine-dim);
}

.select-custom {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--jasmine);
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 4px;
  outline: none;
}

/* Chat Feed Simulator */
.chat-panel {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  height: 480px;
  background: var(--bg-raised);
  overflow: hidden;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'Marcellus', serif;
  font-size: 0.9rem;
  color: var(--gold-bright);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.chat-msg.instructor {
  align-self: flex-start;
  background: rgba(199, 154, 60, 0.08);
  border-left: 2px solid var(--gold-bright);
}

.chat-msg.student {
  align-self: flex-end;
  background: var(--kumkum);
  color: var(--jasmine);
}

.msg-author {
  font-size: 0.70rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--gold-bright);
}

body.light-theme .chat-msg.student .msg-author {
  color: #fff;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid var(--border);
}

.chat-input-area input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--jasmine);
  padding: 16px 20px;
  font-size: 0.85rem;
  outline: none;
}

.chat-input-area button {
  background: var(--jasmine);
  color: var(--bg);
  border: none;
  padding: 0 24px;
  cursor: pointer;
  font-weight: 700;
}

body.light-theme .chat-input-area button {
  background: var(--gold-bright);
}

/* ---------- social row ---------- */
.social-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.social-links { display: flex; gap: 14px; }

.social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--jasmine);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 100px;
  transition: background .2s;
}

.social-links a svg { width: 15px; height: 15px; color: var(--gold-bright); }
.social-links a:hover { background: rgba(234,203,124,.08); }

.reel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
@media (max-width: 760px) { .reel-grid { grid-template-columns: repeat(2, 1fr); } }

.reel-card {
  aspect-ratio: 9 / 16;
  background: linear-gradient(200deg, var(--maroon-rich), var(--bg-raised));
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .3s;
  cursor: pointer;
}

.reel-card:hover { transform: scale(1.03); }
.reel-card svg { position: absolute; inset: 0; margin: auto; width: 34%; opacity: .5; }
.reel-tag { position: absolute; bottom: 10px; left: 10px; font-size: 10.5px; color: var(--jasmine-faint); font-family: 'Space Grotesk', sans-serif; }

/* ---------- Student Dashboard Panel ---------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 820px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.dash-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
}

.pricing-card-option {
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: var(--transition);
}

.pricing-card-option:hover {
  border-color: var(--gold-bright);
}

/* ---------- Stepper Booking Modal Widget ---------- */
.stepper-container {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.stepper-header {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 35px;
}

.stepper-header::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
  z-index: 1;
}

.step-indicator {
  width: 28px;
  height: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--jasmine-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  transition: var(--transition);
}

.step-indicator.active {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--bg);
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

/* Dynamic Slots Selection */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.slot-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.slot-card:hover, .slot-card.selected {
  border-color: var(--gold-bright);
  background: rgba(199, 154, 60, 0.08);
}

.day-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.day-tab {
  background: none;
  border: 1px solid var(--border);
  color: var(--jasmine);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.day-tab.active {
  background: var(--gold-bright);
  color: var(--bg);
  border-color: transparent;
}

/* Lightbox video modal overlay */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27, 11, 14, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-modal.show, .lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
}

.lightbox-video-wrapper {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lightbox-video-wrapper iframe {
  width: 100%;
  height: 100%;
}

.close-lightbox {
  position: absolute;
  top: -35px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Google OAuth Identity Prompt Modal Overlay */
.identity-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27, 11, 14, 0.85);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.identity-modal.show {
  display: flex;
}

.identity-box {
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 35px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  text-align: center;
}

/* Booking Overlay Backdrop */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27, 11, 14, 0.85);
  z-index: 400;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--jasmine);
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

/* ---------- big CTA panel ---------- */
.cta-panel-wrap { padding: 0 0 40px; }

.cta-panel {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding: 90px 40px;
  text-align: center;
}

.cta-panel h2 { margin-bottom: 10px; }
.cta-panel .dotfield { opacity: .7; }

/* ---------- footer with giant wordmark ---------- */
footer { padding: 70px 0 0; }
.footer-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 20px; }
.footer-col h4 { font-family: 'Marcellus', serif; font-size: 12px; letter-spacing: .1em; color: var(--gold-bright); text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--jasmine-dim); text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: var(--jasmine); }

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 1;
  color: var(--jasmine);
  text-align: center;
  padding: 40px 0 10px;
  letter-spacing: -.01em;
  user-select: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--jasmine-faint);
  flex-wrap: wrap;
  gap: 10px;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Background Mudra Stencil Stickers */
.mudra-sticker {
  position: fixed;
  width: 140px; /* Small, elegant size */
  height: 180px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
  filter: invert(1); /* Inverts white background to black and dark ink to light */
  mix-blend-mode: screen; /* Knocks out the black background completely in dark mode! */
  transition: transform 0.15s ease-out; /* Smooth transition */
}

body.light-theme .mudra-sticker {
  filter: none; /* Keep original dark-on-light look */
  mix-blend-mode: multiply; /* Multiplies white background away on light theme! */
  opacity: 0.035;
}

/* Shimmery Glitter particles keyframe loop */
@keyframes glitter {
  0% {
    opacity: 0.15;
    transform: translate(0, 0) scale(0.7);
  }
  50% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.2;
    transform: translate(12px, -12px) scale(1.1);
  }
}

/* Subpage Grids & Portrait Cards Styling */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 32px;
  margin-top: 40px;
  justify-content: center;
}

.social-card {
  background: linear-gradient(200deg, var(--maroon-rich), var(--bg-raised));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.social-card:hover {
  transform: translateY(-4px);
}

.card-media {
  width: 100%;
  aspect-ratio: 9 / 16; /* Portrait 9:16 aspect ratio! */
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 25px;
  border: 1px solid var(--border);
}

.media-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.card-title {
  font-family: 'Marcellus', serif;
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--jasmine-dim);
  line-height: 1.6;
  margin: 0;
}

/* About Us Page - Biography Styles */
.founder-card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 48px;
  background: linear-gradient(200deg, var(--maroon-rich), var(--bg-raised));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
}

@media (max-width: 820px) {
  .founder-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 24px;
  }
}

.founder-image-wrapper {
  flex: 0 0 260px;
  aspect-ratio: 9 / 16; /* Portrait 9:16 aspect ratio! */
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.founder-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.founder-details h3 {
  font-family: 'Marcellus', serif;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 24px;
}

.founder-bio {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--jasmine);
  margin-bottom: 32px;
}

.founder-bullets {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.bullet-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 580px;
  text-align: left;
}

@media (max-width: 820px) {
  .bullet-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.bullet-icon {
  font-size: 1.4rem;
  color: var(--gold-bright);
  margin-top: 4px;
}

.bullet-text h4 {
  font-family: 'Marcellus', serif;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 8px;
}

.bullet-text p {
  font-size: 0.88rem;
  color: var(--jasmine-dim);
  line-height: 1.6;
  margin: 0;
}
