/* =======================================================================
 * عصفورة — Immersive Layer
 * فوق world.css. يضيف عناصر سينمائية بدون كسر البنية الحالية.
 * ===================================================================== */

/* ──────── ١. Page Transition Curtain ──────── */
.immersive-curtain {
  position: fixed; inset: 0;
  z-index: 999999;
  pointer-events: none;
  display: flex;
}
.immersive-curtain-panel {
  flex: 1;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(1);
  will-change: transform;
}
.immersive-curtain-logo {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.immersive-curtain-logo img {
  width: 88px; height: 88px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
  animation: ieh-spin 1.2s ease-in-out infinite;
}
@keyframes ieh-spin {
  0%,100% { transform: rotate(-8deg) translateY(0); }
  50%     { transform: rotate(8deg)  translateY(-6px); }
}

/* ──────── ٣. Three.js hero canvas ──────── */
.scene-hero { position: relative; overflow: hidden; }
.immersive-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s ease;
}
.immersive-hero-canvas canvas {
  display: block;
  width: 100%; height: 100%;
}
/* ارفع المحتوى فوق الـ canvas */
.scene-hero > .scene-hero-grid { position: relative; z-index: 1; }

/* ──────── ٤. End-Hero (نص ضخم متحرك قبل الـ CTA) ──────── */
.immersive-end-hero {
  overflow: hidden;
  padding: 80px 0 40px;
  white-space: nowrap;
  position: relative;
}
.immersive-end-hero::before,
.immersive-end-hero::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 18%;
  z-index: 2;
  pointer-events: none;
}
.immersive-end-hero::before {
  left: 0;
  background: linear-gradient(to right, var(--cream, #FFF8E7), transparent);
}
.immersive-end-hero::after {
  right: 0;
  background: linear-gradient(to left, var(--cream, #FFF8E7), transparent);
}
.immersive-end-hero .ieh-track {
  display: inline-flex;
  white-space: nowrap;
  font-family: 'Rakkas', serif;
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 900;
  line-height: 1;
  will-change: transform;
}
.immersive-end-hero .ieh-track > span {
  padding: 0 30px;
  flex-shrink: 0;
  text-shadow: 0 4px 30px rgba(0,0,0,.08);
}

/* ──────── ٥. data-reveal — حالة ابتدائية أنظف لـ GSAP ──────── */
/* لو GSAP اشتغل: هو يدير .revealed بنفسه. لو فشل: world.css fallback يشتغل */
[data-reveal] { will-change: opacity, transform; }

/* ──────── ٦. تحسينات على الـ CTA الموجود ──────── */
.scene-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.scene-cta::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 50%, var(--sceneAccent, #FFC93C) 0%, transparent 60%);
  opacity: 0.18;
  z-index: -1;
  animation: ieh-pulse 6s ease-in-out infinite;
}
@keyframes ieh-pulse {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50%      { transform: scale(1.15); opacity: 0.28; }
}

/* ──────── ٨. Video Hero — #world ──────── */
.vhero-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  border-radius: inherit;
  background: #05020f;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.vhero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: saturate(1.1) contrast(1.05);
}
.vhero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(5, 2, 15, 0.45) 80%),
    linear-gradient(180deg, rgba(5, 2, 15, 0.55) 0%, transparent 30%, transparent 65%, rgba(5, 2, 15, 0.85) 100%);
}

/* ─── Topbar ─── */
.vhero-topbar {
  position: absolute;
  top: 16px; left: 18px; right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  gap: 12px;
  flex-wrap: wrap;
}
.vhero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: rgba(20, 10, 45, 0.55);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 99px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.vhero-brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC93C, #a855f7);
  box-shadow: 0 0 10px #a855f7;
  animation: vhDot 1.8s ease-in-out infinite;
}
@keyframes vhDot { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }
.vhero-brand-ai { color: #a855f7; font-weight: 900; }
.vhero-brand-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 99px;
  font-family: 'Rakkas', serif;
  font-size: 11px;
  color: #6ee7b7;
}
.vhero-live-dot {
  width: 6px; height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: vhDot 1s ease-in-out infinite;
}

.vhero-channels {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  background: rgba(20, 10, 45, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.vhero-ch-label {
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Rakkas', serif;
  font-size: 12px;
  letter-spacing: 1px;
}
.vhero-ch {
  display: inline-flex;
  width: 22px; height: 22px;
  min-width: 22px; max-width: 22px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform .25s ease;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}
.vhero-ch:hover { transform: scale(1.2); }
.vhero-ch svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  flex: 0 0 auto !important;
}

/* ─── Center content ─── */
.vhero-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
  text-align: center;
  width: 96%;
  max-width: 820px;
  pointer-events: none;
  padding: 0 16px;
}
.vhero-center > * { pointer-events: auto; }
.vhero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  margin-bottom: 20px;
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 99px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: 'Segoe UI', system-ui;
}
.vhero-pill-dot {
  width: 8px; height: 8px;
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 10px #a855f7;
  animation: vhDot 1.8s ease-in-out infinite;
}
.vhero-big {
  font-family: 'Rakkas', serif;
  font-size: clamp(28px, 5vw, 58px);
  line-height: 1.25;
  margin: 0 0 24px;
  color: #ffffff;
  text-shadow:
    0 4px 30px rgba(0, 0, 0, 0.7),
    0 2px 10px rgba(168, 85, 247, 0.5);
  letter-spacing: -0.3px;
}
.vhero-big-accent {
  display: inline-block;
  background: linear-gradient(120deg, #FFC93C 0%, #FF9F1C 50%, #FFC93C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 14px rgba(255, 201, 60, 0.5));
}
.vhero-sub {
  font-family: -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto 26px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.vhero-sub strong { color: #FFC93C; font-weight: 900; }

.vhero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.vhero-cta {
  padding: 14px 28px;
  border-radius: 99px;
  font-family: 'Rakkas', serif;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex: 0 1 auto;
}
.vhero-cta-primary {
  background: linear-gradient(135deg, #FFC93C 0%, #FF9F1C 100%);
  color: #1a0a2e;
  box-shadow:
    0 10px 30px rgba(255, 159, 28, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}
.vhero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 40px rgba(255, 159, 28, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
.vhero-cta-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.vhero-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ─── Activities dock (bottom) ─── */
.vhero-dock {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  width: 95%;
  max-width: 960px;
  padding: 10px 14px;
  background: rgba(15, 8, 40, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 -10px 30px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(168, 85, 247, 0.15);
}
.vhero-dock-label {
  font-family: 'Rakkas', serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
}
.vhero-dock-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.vhero-sub-types {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Rakkas', serif;
  font-size: clamp(12px, 1.5vw, 15px);
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 1px;
  font-weight: 600;
}
.vhero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-decoration: none;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.vhero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--cardColor, #FFC93C) 200%);
  opacity: 0;
  transition: opacity .25s ease;
}
.vhero-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--cardColor, #FFC93C);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 24px var(--cardColor, #FFC93C);
}
.vhero-card:hover::before { opacity: 0.3; }
.vhero-card-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  position: relative; z-index: 1;
}
.vhero-card-text {
  font-family: 'Rakkas', serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  position: relative; z-index: 1;
}

@media (max-width: 768px) {
  .vhero-topbar { top: 8px; left: 8px; right: 8px; }
  .vhero-brand { font-size: 11px; padding: 5px 12px; }
  .vhero-brand-live { display: none; }
  .vhero-ch-label { display: none; }
  .vhero-channels { padding: 5px 10px; gap: 6px; }
  .vhero-center { top: 45%; }
  .vhero-big { font-size: clamp(22px, 6vw, 32px); margin-bottom: 18px; }
  .vhero-cta { padding: 10px 18px; font-size: 13px; }
  .vhero-cta-row { gap: 8px; }
  .vhero-dock { padding: 8px 10px; }
  .vhero-dock-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .vhero-card { padding: 7px 4px; border-radius: 10px; }
  .vhero-card-icon { font-size: 20px; }
  .vhero-card-text { font-size: 10px; }
}

/* ──────── ٩. Core Flow Network — legacy (محفوظة للرجوع) ──────── */
.cflow-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, #1a0f4a 0%, #0a0520 60%, #040210 100%);
}
.cflow-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Top bar — SaaS style header */
.cflow-topbar {
  position: absolute;
  top: 18px; left: 22px; right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
  pointer-events: auto;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.cflow-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 99px;
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 15px;
}
.cflow-brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, #FFC93C, #a855f7);
  box-shadow: 0 0 12px #a855f7;
  animation: cflow-pulse-dot 2s ease-in-out infinite;
}
@keyframes cflow-pulse-dot { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }
.cflow-brand-ai { color: #a855f7; font-weight: 900; }

.cflow-channels {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 99px;
  backdrop-filter: blur(10px);
}
.cflow-ch-label {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
  font-family: 'Rakkas', serif;
  letter-spacing: 1px;
}
.cflow-ch {
  display: inline-flex;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform .25s ease;
}
.cflow-ch:hover { transform: scale(1.15); }
.cflow-ch > svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex: 0 0 auto !important;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.3));
}

/* Core label (above the cube) */
.cflow-core-label {
  position: absolute;
  top: 0; left: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 10px;
  background: rgba(138, 43, 226, 0.18);
  border: 1.5px solid rgba(168, 85, 247, 0.5);
  border-radius: 99px;
  color: #ffffff;
  font-family: 'Segoe UI', system-ui;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  white-space: nowrap;
  z-index: 4;
  will-change: transform;
  opacity: 0;
  transform: translate(-50%, -50%) translate3d(-9999px, -9999px, 0);
}
.cflow-core-label[style*="translate3d"] { opacity: 1; }
.cfc-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 12px #a855f7;
  animation: cflow-pulse-dot 1.8s ease-in-out infinite;
}
.cfc-sub {
  margin-right: 4px;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-family: 'Rakkas', serif;
  font-weight: 700;
}

/* Labels layer */
.cflow-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.cflow-node-label {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: rgba(15, 8, 40, 0.85);
  border: 1.5px solid var(--nodeColor, #FFC93C);
  border-radius: 99px;
  font-family: 'Rakkas', serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: box-shadow .25s ease;
  will-change: transform;
  opacity: 0; /* يظهر فقط بعد أول projection */
  transform: translate(-50%, -50%) translate3d(-9999px, -9999px, 0);
}
.cflow-node-label[style*="translate3d"] { opacity: 1; }
.cflow-node-label:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    0 0 32px var(--nodeColor, #FFC93C);
}
.cflow-node-label .cfn-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 10px currentColor;
}

@media (max-width: 768px) {
  .cflow-topbar { top: 10px; left: 10px; right: 10px; }
  .cflow-brand { font-size: 12px; padding: 5px 10px; }
  .cflow-ch-label { display: none; }
  .cflow-channels { padding: 5px 10px 5px 8px; gap: 6px; }
  .cflow-ch svg { width: 18px; height: 18px; }
  .cflow-node-label { font-size: 11px; padding: 4px 10px 4px 4px; }
  .cflow-node-label .cfn-icon { width: 20px; height: 20px; font-size: 12px; }
  .cflow-core-label { font-size: 12px; padding: 4px 12px 4px 8px; }
  .cfc-sub { display: none; }
}

/* ──────── ٩. "الطائر الحكيم" — reserved (للرجوع السريع) ──────── */
.sage-hidden-svg {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .8s ease;
}
#world { position: relative; }
#world .stage-scroll { position: relative; height: 100%; }

.sage-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(255,220,155,.6) 0%, transparent 60%),
    radial-gradient(ellipse 70% 70% at 70% 70%, rgba(255,180,110,.45) 0%, transparent 60%),
    linear-gradient(180deg, #FFF5E0 0%, #FFE8C7 60%, #FFD89B 100%);
}
.sage-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  position: relative;
  z-index: 2;
}

/* Watermark عملاق "عصفورة" — خلف كل شي */
.sage-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rakkas', serif;
  font-size: clamp(120px, 22vw, 360px);
  line-height: 0.9;
  font-weight: 900;
  pointer-events: none;
  z-index: 1;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  user-select: none;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(170deg,
    rgba(255, 180, 60, 0.22) 0%,
    rgba(255, 120, 40, 0.30) 50%,
    rgba(201, 90, 20, 0.18) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1.5px rgba(201, 130, 40, 0.18);
  filter: drop-shadow(0 8px 40px rgba(255, 160, 50, 0.15));
}

/* Subtitle صغير */
.sage-subtitle {
  position: absolute;
  bottom: 6%;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Rakkas', serif;
  font-size: clamp(16px, 2vw, 26px);
  color: rgba(65, 38, 15, 0.55);
  letter-spacing: 3px;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 1px 20px rgba(255,220,160,.8);
}

/* فقاعات المحادثة */
.sage-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.sage-conv {
  position: absolute;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  opacity: 0;
  transform: translateY(22px) scale(0.92);
  transition:
    opacity .9s cubic-bezier(.25,.1,.25,1),
    transform .9s cubic-bezier(.25,.1,.25,1);
}
.sage-conv.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.sage-conv.hide {
  opacity: 0;
  transform: translateY(-18px) scale(1.03);
}
.sage-bubble {
  font-family: -apple-system, 'Segoe UI', 'Noto Naskh Arabic', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 15px;
  border-radius: 18px;
  line-height: 1.65;
  word-wrap: break-word;
  max-width: 240px;
  direction: rtl;
  backdrop-filter: blur(6px);
}
.sage-bubble-q {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.92);
  color: #3D2817;
  border-bottom-right-radius: 6px;
  box-shadow:
    0 6px 22px rgba(100, 60, 10, 0.12),
    0 1px 2px rgba(0,0,0,0.05);
}
.sage-bubble-a {
  align-self: flex-start;
  background: linear-gradient(135deg, #FFC93C 0%, #FF9F1C 100%);
  color: #3D2817;
  border-bottom-left-radius: 6px;
  box-shadow:
    0 8px 28px rgba(255, 159, 28, 0.40),
    0 1px 2px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .5s ease, transform .5s ease;
}
.sage-bubble-a.appeared {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .sage-conv  { max-width: 200px; }
  .sage-bubble { font-size: 12.5px; padding: 9px 12px; }
  .sage-watermark { font-size: clamp(90px, 28vw, 180px); }
  .sage-subtitle { font-size: 14px; bottom: 4%; letter-spacing: 2px; }
}

/* ──────── ٧. Mobile + reduced-motion ──────── */
@media (max-width: 768px) {
  .immersive-end-hero { padding: 50px 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .immersive-hero-canvas { display: none !important; }
  .immersive-end-hero .ieh-track { animation: none !important; }
  .scene-cta::after { animation: none !important; }
}
