/* ============================================
   YOGARIUM — Organic Design
   Soft rounded shapes, flowing curves, calm
   spaciousness, natural textures, gentle
   transitions, circular frames, breathing room
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Studio (warm) palette */
  --studio-bg: #f7f0e8;
  --studio-warm: #ecddc8;
  --studio-accent: #b8956a;
  --studio-accent-soft: rgba(184, 149, 106, 0.15);
  --studio-dark: #4a3728;
  --studio-text: #3a2e25;
  --studio-panel: rgba(247, 240, 232, 0.92);

  /* Cosmos (cool) palette */
  --cosmos-deep: #0a0e1a;
  --cosmos-mid: #141832;
  --cosmos-purple: #1e1040;
  --cosmos-accent: #7b68ee;
  --cosmos-glow: #a78bfa;
  --cosmos-star: #f0e6ff;
  --cosmos-panel: rgba(12, 14, 30, 0.82);

  /* Shared */
  --text-light: #f0ece6;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --transition-transform: 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-organic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius-soft: 24px;
  --radius-round: 50px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--studio-text);
  background: var(--studio-bg);
  line-height: 1.8;
  overflow-x: hidden;
  transition: color var(--transition-transform),
              background var(--transition-transform);
}

body.cosmos-mode {
  color: var(--text-light);
  background: #0c1020;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   ORGANIC WAVE DIVIDERS
   ============================================ */
.wave-divider {
  position: relative;
  z-index: 2;
  margin: -2px 0;
  line-height: 0;
  color: var(--studio-bg);
  opacity: 0.35;
  pointer-events: none;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 36px;
}

body.cosmos-mode .wave-divider {
  color: #0c1020;
  opacity: 0.25;
}

/* ============================================
   LAYER 1: STARFIELD (behind studio)
   ============================================ */
.cosmos-back {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-transform);
  pointer-events: none;
}

body.cosmos-mode .cosmos-back {
  opacity: 1;
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   LAYER 2: STUDIO BACKGROUND (always visible)
   ============================================ */
.studio-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.studio-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter var(--transition-transform);
}

.studio-bg-warmth {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(247, 240, 232, 0.85) 0%,
      rgba(243, 234, 222, 0.80) 30%,
      rgba(247, 240, 232, 0.87) 60%,
      rgba(247, 240, 232, 0.92) 100%
    );
  transition: opacity var(--transition-transform);
}

.studio-bg-cosmos {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 20%,
      rgba(30, 16, 64, 0.35) 0%,
      rgba(14, 20, 40, 0.50) 40%,
      rgba(10, 14, 26, 0.60) 100%
    );
  transition: opacity var(--transition-transform);
}

body.cosmos-mode .studio-bg-img {
  filter: brightness(0.45) saturate(0.7);
}

body.cosmos-mode .studio-bg-warmth {
  opacity: 0;
}

body.cosmos-mode .studio-bg-cosmos {
  opacity: 1;
}

/* ============================================
   LAYER 2b: TRANSFORMATION FRAMES (scroll-controlled canvas)
   ============================================ */
.transformation-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
  transform: translateZ(0);
}

.transformation-layer.loading::after {
  content: 'Loading frames...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--cosmos-glow, #a78bfa);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.transformation-layer canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   LAYER 3: FOREGROUND COSMOS (over studio)
   ============================================ */
.cosmos-front {
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition-transform);
  pointer-events: none;
}

body.cosmos-mode .cosmos-front {
  opacity: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  transition: background 0.5s var(--ease-organic),
              box-shadow 0.5s var(--ease-organic),
              padding 0.5s var(--ease-organic);
}

.nav.scrolled {
  background: rgba(247, 240, 232, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(74, 55, 40, 0.06);
  padding-top: 14px;
  padding-bottom: 14px;
}

body.cosmos-mode .nav.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(123, 104, 238, 0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  transition: color var(--transition-transform);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.4s var(--ease-organic);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--studio-accent);
  border-radius: 1px;
  transition: width 0.4s var(--ease-organic), left 0.4s var(--ease-organic);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

body.cosmos-mode .nav-links a::after {
  background: var(--cosmos-glow);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--studio-text);
  border-radius: 1px;
  transition: background var(--transition-transform);
}

body.cosmos-mode .nav-toggle span {
  background: var(--text-light);
}

/* ============================================
   COSMOS TOGGLE BUTTON (inside nav)
   ============================================ */
.cosmos-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, 0.25);
  background: rgba(247, 240, 232, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.cosmos-toggle:hover {
  transform: scale(1.1);
  border-color: var(--studio-accent);
  background: rgba(184, 149, 106, 0.15);
}

.cosmos-toggle:active {
  transform: scale(0.95);
}

.cosmos-toggle-icon {
  position: absolute;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cosmos-toggle-icon--moon {
  color: var(--studio-dark);
  opacity: 1;
  transform: rotate(0deg);
}

.cosmos-toggle-icon--sun {
  color: var(--cosmos-glow);
  opacity: 0;
  transform: rotate(-90deg);
}

/* Cosmos mode state */
body.cosmos-mode .cosmos-toggle {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.3);
}

body.cosmos-mode .cosmos-toggle:hover {
  background: rgba(167, 139, 250, 0.25);
  border-color: var(--cosmos-glow);
}

body.cosmos-mode .cosmos-toggle-icon--moon {
  opacity: 0;
  transform: rotate(90deg);
}

body.cosmos-mode .cosmos-toggle-icon--sun {
  opacity: 1;
  transform: rotate(0deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 100px;
  overflow: hidden;
}

/* Floating orbs canvas */
.hero-orbs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(247, 240, 232, 0.5);
  transition: text-shadow var(--transition-transform);
}

body.cosmos-mode .hero-title {
  text-shadow: 0 2px 30px rgba(10, 14, 26, 0.5);
}

/* Split-letter title */
.hero-title-main {
  display: block;
  font-size: clamp(3.5rem, 10vw, 7rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  position: relative;
  overflow: visible;
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) scale(0.7);
  animation: letterReveal 0.9s var(--ease-organic) forwards;
  overflow: visible;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  vertical-align: baseline;
}

@keyframes letterReveal {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.7);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  80% {
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Shimmer sweep across title */
.hero-title-main.shimmer-active .hero-letter {
  background: linear-gradient(
    120deg,
    currentColor 0%,
    currentColor 35%,
    var(--studio-accent) 50%,
    currentColor 65%,
    currentColor 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: letterReveal 0.9s var(--ease-organic) forwards,
             shimmerSweep 4s ease-in-out 2.2s infinite;
}

body.cosmos-mode .hero-title-main.shimmer-active .hero-letter {
  background: linear-gradient(
    120deg,
    var(--text-light) 0%,
    var(--text-light) 35%,
    var(--cosmos-glow) 50%,
    var(--text-light) 65%,
    var(--text-light) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes shimmerSweep {
  0% { background-position: 100% center; }
  40% { background-position: -50% center; }
  100% { background-position: -50% center; }
}

/* Yoga warrior icon (replaces dot) */
.hero-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 20px auto 0;
  position: relative;
  opacity: 0;
  animation: iconAppear 0.8s var(--ease-organic) 1.6s forwards;
}

.hero-yoga-icon {
  width: 44px;
  height: 44px;
  color: var(--studio-accent);
  filter: drop-shadow(0 2px 8px rgba(184, 149, 106, 0.5));
  animation: iconFloat 5s ease-in-out 2.2s infinite;
  transition: color var(--transition-transform), filter var(--transition-transform);
}

@keyframes iconAppear {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-15deg);
  }
  70% {
    transform: scale(1.1) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}

/* Concentric rings around icon */
.hero-icon-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--studio-accent);
  opacity: 0;
  animation: ringPulse 4.5s ease-out infinite;
  pointer-events: none;
}

.hero-icon-ring--1 {
  width: 60px;
  height: 60px;
  animation-delay: 2.4s;
}

.hero-icon-ring--2 {
  width: 84px;
  height: 84px;
  animation-delay: 2.9s;
}

.hero-icon-ring--3 {
  width: 112px;
  height: 112px;
  animation-delay: 3.4s;
}

@keyframes ringPulse {
  0% {
    opacity: 0.35;
    transform: scale(0.5);
  }
  50% {
    opacity: 0;
    transform: scale(1.15);
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

body.cosmos-mode .hero-yoga-icon {
  color: var(--cosmos-glow);
  filter: drop-shadow(0 0 12px var(--cosmos-glow)) drop-shadow(0 0 30px rgba(167, 139, 250, 0.3));
}

body.cosmos-mode .hero-icon-ring {
  border-color: var(--cosmos-glow);
}

/* Custom uploaded icon (img element) — tinted to match accent */
.hero-yoga-icon--custom {
  width: var(--hero-icon-size, 44px);
  height: var(--hero-icon-size, 44px);
  object-fit: contain;
  /* Tint dark icons to studio accent (#b8956a): warm sepia-gold */
  filter: brightness(0) saturate(100%) invert(58%) sepia(30%) saturate(500%) hue-rotate(350deg) brightness(95%)
          drop-shadow(0 2px 8px rgba(184, 149, 106, 0.5));
  animation: iconFloat 5s ease-in-out 2.2s infinite;
  transition: filter var(--transition-transform);
}

body.cosmos-mode .hero-yoga-icon--custom {
  /* Tint to cosmos glow (#a78bfa): purple */
  filter: brightness(0) saturate(100%) invert(55%) sepia(60%) saturate(600%) hue-rotate(225deg) brightness(105%)
          drop-shadow(0 0 12px rgba(167, 139, 250, 0.6)) drop-shadow(0 0 30px rgba(167, 139, 250, 0.3));
}

/* Tagline reveal */
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 400;
  font-style: italic;
  opacity: 0;
  margin-bottom: 40px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  animation: taglineReveal 1.2s var(--ease-organic) 1.8s forwards;
}

@keyframes taglineReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  to {
    opacity: 0.8;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Button reveal */
.hero-btn-reveal {
  opacity: 0;
  animation: btnReveal 0.8s var(--ease-organic) 2.4s forwards;
}

@keyframes btnReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll hint delayed */
.scroll-hint {
  opacity: 0;
  animation: scrollHintReveal 1s var(--ease-organic) 3s forwards,
             floatGentle 3.5s ease-in-out 3s infinite;
}

@keyframes scrollHintReveal {
  from { opacity: 0; }
  to { opacity: 0.45; }
}

/* Hero parallax support */
.hero[data-parallax] .hero-content {
  will-change: transform;
  transition: none;
}

.hero[data-parallax] .scroll-hint {
  will-change: transform, opacity;
}

/* Book a Class Button */
.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 42px;
  border: 1.5px solid var(--studio-accent);
  background: rgba(247, 240, 232, 0.65);
  backdrop-filter: blur(10px);
  color: var(--studio-dark);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-round);
  transition: all 0.5s var(--ease-organic);
  text-decoration: none;
}

.book-btn:hover {
  background: var(--studio-accent);
  color: #fff;
  border-color: var(--studio-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(184, 149, 106, 0.25);
}

.book-btn .btn-icon {
  transition: transform 0.5s var(--ease-organic);
}

.book-btn:hover .btn-icon {
  transform: translateX(4px);
}

body.cosmos-mode .book-btn {
  border-color: var(--cosmos-glow);
  background: rgba(10, 14, 26, 0.5);
  backdrop-filter: blur(10px);
  color: var(--text-light);
}

body.cosmos-mode .book-btn:hover {
  background: var(--cosmos-accent);
  border-color: var(--cosmos-accent);
  box-shadow: 0 12px 36px rgba(123, 104, 238, 0.3);
}

/* Legacy transform-btn support (CMS may still reference) */
.transform-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 42px;
  border: 1.5px solid var(--studio-accent);
  background: rgba(247, 240, 232, 0.65);
  backdrop-filter: blur(10px);
  color: var(--studio-dark);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-round);
  transition: all 0.5s var(--ease-organic);
}

.transform-btn:hover {
  background: var(--studio-accent);
  color: #fff;
  border-color: var(--studio-accent);
}

body.cosmos-mode .transform-btn {
  border-color: var(--cosmos-glow);
  background: rgba(10, 14, 26, 0.5);
  color: var(--text-light);
}

body.cosmos-mode .transform-btn:hover {
  background: var(--cosmos-accent);
  border-color: var(--cosmos-accent);
}

.btn-icon {
  transition: transform 0.5s var(--ease-organic);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section {
  position: relative;
  z-index: 2;
  padding: 56px 0;
}

/* Section backdrop panel */
.section .container {
  position: relative;
  background: var(--studio-panel);
  backdrop-filter: blur(14px);
  border-radius: 32px;
  padding: 48px 44px;
  border: 1px solid rgba(201, 168, 124, 0.1);
  box-shadow: 0 4px 40px rgba(74, 55, 40, 0.04);
  transition: background var(--transition-transform),
              border-color var(--transition-transform),
              box-shadow var(--transition-transform);
}

body.cosmos-mode .section .container {
  background: var(--cosmos-panel);
  border-color: rgba(123, 104, 238, 0.12);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
}

/* Section title with organic divider */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--studio-accent);
  margin: 14px auto 0;
  border-radius: 2px;
  transition: background var(--transition-transform);
}

body.cosmos-mode .section-title::after {
  background: var(--cosmos-glow);
}

.section-subtitle {
  text-align: center;
  opacity: 0.65;
  margin-bottom: 36px;
  margin-top: 16px;
  font-weight: 300;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ============================================
   SECTION REVEAL ANIMATIONS (staggered)
   ============================================ */
.section {
  opacity: 1;
  transform: translateY(0);
}

.section.js-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-organic), transform 1s var(--ease-organic);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger child elements for a flowing reveal */
.section.visible .feature,
.section.visible .class-card,
.section.visible .teacher-card,
.section.visible .contact-item {
  animation: fadeSlideUp 0.7s var(--ease-organic) both;
}

.section.visible .feature:nth-child(1),
.section.visible .class-card:nth-child(1),
.section.visible .teacher-card:nth-child(1),
.section.visible .contact-item:nth-child(1) { animation-delay: 0.1s; }

.section.visible .feature:nth-child(2),
.section.visible .class-card:nth-child(2),
.section.visible .teacher-card:nth-child(2),
.section.visible .contact-item:nth-child(2) { animation-delay: 0.2s; }

.section.visible .feature:nth-child(3),
.section.visible .class-card:nth-child(3),
.section.visible .teacher-card:nth-child(3),
.section.visible .contact-item:nth-child(3) { animation-delay: 0.3s; }

.section.visible .class-card:nth-child(4),
.section.visible .contact-item:nth-child(4) { animation-delay: 0.4s; }

.section.visible .class-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 0.93rem;
  line-height: 1.85;
}

/* About image area */
.about-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.about-image-blob {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: 48% 52% 42% 58% / 50% 45% 55% 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(201, 168, 124, 0.12), rgba(201, 168, 124, 0.04));
  border: 1px solid rgba(201, 168, 124, 0.15);
  transition: border-radius 4s var(--ease-organic), background 0.5s var(--ease-organic);
  animation: blob-morph 12s ease-in-out infinite;
}

@keyframes blob-morph {
  0%   { border-radius: 48% 52% 42% 58% / 50% 45% 55% 50%; }
  25%  { border-radius: 52% 48% 55% 45% / 45% 52% 48% 55%; }
  50%  { border-radius: 45% 55% 50% 50% / 55% 48% 52% 45%; }
  75%  { border-radius: 55% 45% 48% 52% / 50% 55% 45% 52%; }
  100% { border-radius: 48% 52% 42% 58% / 50% 45% 55% 50%; }
}

body.cosmos-mode .about-image-blob {
  background: linear-gradient(135deg, rgba(123, 104, 238, 0.12), rgba(123, 104, 238, 0.04));
  border-color: rgba(123, 104, 238, 0.2);
}

.about-image-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(201, 168, 124, 0.06), rgba(201, 168, 124, 0.14));
}

body.cosmos-mode .about-image-placeholder {
  background: linear-gradient(160deg, rgba(123, 104, 238, 0.06), rgba(123, 104, 238, 0.14));
}

.about-mantra {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  text-align: center;
  line-height: 1.7;
  opacity: 0.6;
  max-width: 340px;
  padding: 0 12px;
}

/* Features 2-column grid below text */
.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature {
  padding: 28px;
  border-radius: 20px;
  background: rgba(201, 168, 124, 0.08);
  border: 1px solid rgba(201, 168, 124, 0.12);
  transition: background 0.5s var(--ease-organic),
              border-color var(--transition-transform),
              transform 0.4s var(--ease-organic),
              box-shadow 0.4s var(--ease-organic);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(184, 149, 106, 0.08);
  background: rgba(201, 168, 124, 0.12);
}

body.cosmos-mode .feature {
  background: rgba(123, 104, 238, 0.08);
  border-color: rgba(123, 104, 238, 0.18);
}

body.cosmos-mode .feature:hover {
  box-shadow: 0 10px 30px rgba(123, 104, 238, 0.1);
}

.feature-icon {
  margin-bottom: 14px;
  opacity: 0.55;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.87rem;
  opacity: 0.7;
  line-height: 1.7;
}

/* ============================================
   CLASSES
   ============================================ */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.class-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  background: rgba(201, 168, 124, 0.06);
  border: 1px solid rgba(201, 168, 124, 0.1);
  transition: transform 0.4s var(--ease-organic),
              box-shadow 0.4s var(--ease-organic),
              background var(--transition-transform),
              border-color var(--transition-transform);
  overflow: hidden;
}

.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 55, 40, 0.07);
}

body.cosmos-mode .class-card {
  background: rgba(123, 104, 238, 0.06);
  border-color: rgba(123, 104, 238, 0.15);
}

body.cosmos-mode .class-card:hover {
  box-shadow: 0 12px 40px rgba(123, 104, 238, 0.12);
}

.class-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--studio-accent), transparent);
  border-radius: 3px 3px 0 0;
  transition: background var(--transition-transform);
}

body.cosmos-mode .class-card-accent {
  background: linear-gradient(90deg, var(--cosmos-accent), transparent);
}

.class-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.class-level {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 14px;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--studio-accent-soft);
  transition: background var(--transition-transform);
}

body.cosmos-mode .class-level {
  background: rgba(123, 104, 238, 0.12);
}

.class-card p {
  font-size: 0.89rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.class-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.5;
  padding-top: 16px;
  border-top: 1px solid rgba(74, 55, 40, 0.06);
  transition: border-color var(--transition-transform);
}

body.cosmos-mode .class-meta {
  border-top-color: rgba(255,255,255,0.08);
}

/* ============================================
   TEACHERS
   ============================================ */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  text-align: center;
}

.teacher-card {
  padding: 36px 24px;
  border-radius: 24px;
  transition: transform 0.4s var(--ease-organic), box-shadow 0.4s var(--ease-organic);
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(74, 55, 40, 0.06);
}

body.cosmos-mode .teacher-card:hover {
  box-shadow: 0 12px 36px rgba(123, 104, 238, 0.1);
}

.teacher-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(201, 168, 124, 0.1);
  border: 2px solid rgba(201, 168, 124, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-transform),
              border-color var(--transition-transform),
              transform 0.5s var(--ease-organic);
  overflow: hidden;
}

.teacher-card:hover .teacher-photo {
  transform: scale(1.05);
}

body.cosmos-mode .teacher-photo {
  background: rgba(123, 104, 238, 0.1);
  border-color: rgba(123, 104, 238, 0.25);
}

.teacher-placeholder {
  opacity: 0.25;
}

.teacher-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.teacher-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 16px;
}

.teacher-card p {
  font-size: 0.89rem;
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.75;
}

.teacher-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 20px;
  background: var(--studio-accent-soft);
  color: var(--studio-accent);
  transition: all 0.4s var(--ease-organic);
}

.teacher-instagram:hover {
  background: var(--studio-accent);
  color: #fff;
  transform: translateY(-1px);
}

body.cosmos-mode .teacher-instagram {
  background: rgba(123, 104, 238, 0.12);
  color: var(--cosmos-glow);
}

body.cosmos-mode .teacher-instagram:hover {
  background: var(--cosmos-accent);
  color: #fff;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 4px;
  opacity: 0.45;
  transition: transform 0.4s var(--ease-organic);
}

.contact-item:hover svg {
  transform: scale(1.1);
}

.contact-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-item p {
  font-size: 0.89rem;
  line-height: 1.75;
}

.contact-item a {
  text-decoration: underline;
  text-decoration-color: rgba(184, 149, 106, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.4s var(--ease-organic);
}

body.cosmos-mode .contact-item a {
  text-decoration-color: rgba(167, 139, 250, 0.3);
}

.contact-item a:hover {
  text-decoration-color: currentColor;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  text-align: center;
  opacity: 0.45;
  font-size: 0.82rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 10px;
}

/* ============================================
   FLOATING MANTRAS
   ============================================ */
.floating-mantras {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mantra {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  color: var(--cosmos-glow);
  opacity: 0;
  animation: drift linear infinite;
  white-space: nowrap;
}

@keyframes drift {
  0% {
    transform: translateX(-100%) translateY(0) rotate(-3deg);
    opacity: 0;
  }
  10% { opacity: 0.25; }
  90% { opacity: 0.25; }
  100% {
    transform: translateX(calc(100vw + 100%)) translateY(-60px) rotate(3deg);
    opacity: 0;
  }
}

/* ============================================
   YOGA SILHOUETTES (PNG constellation images)
   ============================================ */
.yoga-silhouettes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.silhouette {
  position: absolute;
  opacity: 0;
  transition: opacity 2.5s ease;
}

.silhouette img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(167, 139, 250, 0.5))
    drop-shadow(0 0 30px rgba(123, 104, 238, 0.25))
    brightness(0.7) sepia(0.2) saturate(1.5) hue-rotate(220deg);
}

.silhouette--float-1 img {
  animation: sil-float-1 14s ease-in-out infinite, sil-glow 6s ease-in-out infinite;
}
.silhouette--float-2 img {
  animation: sil-float-2 18s ease-in-out infinite, sil-glow 8s ease-in-out infinite 2s;
}
.silhouette--float-3 img {
  animation: sil-float-3 16s ease-in-out infinite, sil-glow 7s ease-in-out infinite 1s;
}
.silhouette--float-4 img {
  animation: sil-float-4 20s ease-in-out infinite, sil-glow 9s ease-in-out infinite 3s;
}
.silhouette--float-5 img {
  animation: sil-float-5 15s ease-in-out infinite, sil-glow 5s ease-in-out infinite 0.5s;
}

@keyframes sil-float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(1.5deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
  75% { transform: translateY(-18px) rotate(0.5deg); }
}

@keyframes sil-float-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(-2deg); }
  66% { transform: translateY(-8px) rotate(1.5deg); }
}

@keyframes sil-float-3 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-15px) rotate(2deg) scale(1.04); }
}

@keyframes sil-float-4 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-10px) rotate(1deg); }
  60% { transform: translateY(-22px) rotate(-1.5deg); }
  80% { transform: translateY(-5px) rotate(0.5deg); }
}

@keyframes sil-float-5 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  40% { transform: translateY(-14px) rotate(-1deg) scale(1.03); }
  70% { transform: translateY(-8px) rotate(2deg) scale(0.98); }
}

@keyframes sil-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 12px rgba(167, 139, 250, 0.5))
      drop-shadow(0 0 30px rgba(123, 104, 238, 0.25))
      brightness(0.7) sepia(0.2) saturate(1.5) hue-rotate(220deg);
  }
  50% {
    filter:
      drop-shadow(0 0 20px rgba(167, 139, 250, 0.7))
      drop-shadow(0 0 50px rgba(123, 104, 238, 0.4))
      brightness(0.85) sepia(0.15) saturate(1.8) hue-rotate(220deg);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    flex-direction: column;
    padding: 90px 36px;
    gap: 28px;
    background: var(--studio-bg);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-organic), background var(--transition-transform);
    box-shadow: -4px 0 30px rgba(0,0,0,0.08);
    border-radius: 24px 0 0 24px;
  }

  body.cosmos-mode .nav-links {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(16px);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a::after {
    display: none;
  }

  .section .container {
    padding: 36px 24px;
    border-radius: 24px;
  }

  .section {
    padding: 36px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image-blob {
    max-width: 280px;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cosmos-toggle {
    width: 36px;
    height: 36px;
  }

  .wave-divider svg {
    height: 30px;
  }

  .silhouette {
    transform: scale(0.6);
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 16px 20px;
  }

  .hero {
    padding: 80px 20px 100px;
  }

  .container {
    padding: 0 16px;
  }

  .section .container {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .section {
    padding: 28px 0;
  }

  .book-btn {
    padding: 16px 32px;
    font-size: 0.8rem;
  }

  .wave-divider svg {
    height: 24px;
  }

  .silhouette {
    transform: scale(0.45);
  }

  /* Smaller icon and rings on mobile */
  .hero-title-icon { width: 40px; height: 40px; margin-top: 14px; }
  .hero-yoga-icon { width: 32px; height: 32px; }
  .hero-icon-ring--1 { width: 48px; height: 48px; }
  .hero-icon-ring--2 { width: 68px; height: 68px; }
  .hero-icon-ring--3 { width: 90px; height: 90px; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-letter {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero-title-main.shimmer-active .hero-letter {
    animation: none;
    -webkit-text-fill-color: currentColor;
    background: none;
  }
  .hero-title-icon {
    animation: none;
    opacity: 1;
  }
  .hero-yoga-icon {
    animation: none;
  }
  .hero-icon-ring {
    animation: none;
    display: none;
  }
  .hero-tagline {
    animation: none;
    opacity: 0.8;
  }
  .hero-btn-reveal {
    animation: none;
    opacity: 1;
  }
  .scroll-hint {
    animation: none;
    opacity: 0.45;
  }
  .hero-orbs {
    display: none;
  }
  .about-image-blob {
    animation: none;
  }
}

/* ============================================
   CUSTOM SECTIONS (CMS-generated)
   ============================================ */

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.video-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(201, 168, 124, 0.06);
  border: 1px solid rgba(201, 168, 124, 0.1);
  transition: background var(--transition-transform),
              border-color var(--transition-transform),
              transform 0.4s var(--ease-organic);
}

.video-card:hover {
  transform: translateY(-3px);
}

body.cosmos-mode .video-card {
  background: rgba(123, 104, 238, 0.06);
  border-color: rgba(123, 104, 238, 0.15);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 18px 20px 6px;
}

.video-desc {
  font-size: 0.87rem;
  line-height: 1.7;
  padding: 6px 20px 18px;
  opacity: 0.7;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.blog-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(201, 168, 124, 0.06);
  border: 1px solid rgba(201, 168, 124, 0.1);
  transition: transform 0.4s var(--ease-organic),
              background var(--transition-transform),
              border-color var(--transition-transform);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(74, 55, 40, 0.08);
}

body.cosmos-mode .blog-card:hover {
  box-shadow: 0 12px 36px rgba(123, 104, 238, 0.12);
}

.blog-card--no-image .blog-content {
  border-top: 3px solid var(--studio-accent-soft);
}

body.cosmos-mode .blog-card--no-image .blog-content {
  border-top-color: rgba(123, 104, 238, 0.2);
}

body.cosmos-mode .blog-card {
  background: rgba(123, 104, 238, 0.06);
  border-color: rgba(123, 104, 238, 0.15);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-organic);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content { padding: 24px; }

.blog-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-date {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
  margin-bottom: 14px;
}

.blog-text {
  font-size: 0.89rem;
  line-height: 1.75;
}

/* Image Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-organic);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
}

/* Text Block */
.text-block-para {
  font-size: 0.93rem;
  line-height: 1.85;
  margin-bottom: 20px;
  max-width: 700px;
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 149, 106, 0.12);
  border: 1.5px solid rgba(184, 149, 106, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--studio-text);
  transition: all 0.4s var(--ease-organic);
}

.lang-toggle:hover {
  background: var(--studio-accent);
  color: #fff;
  border-color: var(--studio-accent);
}

body.cosmos-mode .lang-toggle {
  background: rgba(123, 104, 238, 0.12);
  border-color: rgba(123, 104, 238, 0.3);
  color: var(--text-light);
}

body.cosmos-mode .lang-toggle:hover {
  background: var(--cosmos-accent);
  border-color: var(--cosmos-accent);
}

/* ============================================
   BLOG POSTS (built-in section)
   ============================================ */
.blog-card .blog-content {
  padding: 28px;
}

.blog-card .blog-text {
  white-space: pre-line;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.blog-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 14px;
  background: var(--studio-accent-soft);
  opacity: 0.7;
  transition: background var(--transition-transform);
}

body.cosmos-mode .blog-tag {
  background: rgba(123, 104, 238, 0.15);
}

/* Blog card clickable */
.blog-card {
  cursor: pointer;
  position: relative;
}

.blog-read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--studio-accent);
  transition: color var(--transition-transform), opacity 0.3s;
  opacity: 0.7;
}

.blog-card:hover .blog-read-more {
  opacity: 1;
}

body.cosmos-mode .blog-read-more {
  color: var(--cosmos-glow);
}

/* Blog Post Modal */
.blog-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-organic), visibility 0.4s;
  padding: 24px;
}

.blog-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.blog-modal {
  background: var(--studio-bg);
  border-radius: 24px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-organic), background var(--transition-transform);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.cosmos-mode .blog-modal {
  background: #141832;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.blog-modal-overlay.active .blog-modal {
  transform: translateY(0) scale(1);
}

.blog-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: var(--studio-text);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s, color var(--transition-transform);
}

.blog-modal-close:hover {
  background: rgba(0, 0, 0, 0.15);
}

body.cosmos-mode .blog-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.blog-modal-image img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 24px 24px 0 0;
  background: rgba(0, 0, 0, 0.03);
}

.blog-modal-body {
  padding: 36px 40px 40px;
}

.blog-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-modal-date {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
  margin-bottom: 24px;
}

.blog-modal-text {
  font-size: 0.95rem;
  line-height: 1.9;
  white-space: pre-line;
}

.blog-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .blog-modal {
    max-height: 90vh;
    border-radius: 20px;
  }
  .blog-modal-body {
    padding: 24px;
  }
  .blog-modal-image img {
    max-height: 260px;
    border-radius: 20px 20px 0 0;
  }
}

/* ============================================
   FOOTER SOCIAL & TAGLINE
   ============================================ */
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  margin-bottom: 6px;
  opacity: 0.8;
}

.footer-social {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(184, 149, 106, 0.1);
  border: 1px solid rgba(184, 149, 106, 0.15);
  transition: all 0.4s var(--ease-organic);
}

.footer-social a:hover {
  background: var(--studio-accent);
  color: #fff;
  border-color: var(--studio-accent);
  transform: translateY(-2px);
}

body.cosmos-mode .footer-social a {
  background: rgba(123, 104, 238, 0.1);
  border-color: rgba(123, 104, 238, 0.2);
}

body.cosmos-mode .footer-social a:hover {
  background: var(--cosmos-accent);
  border-color: var(--cosmos-accent);
}