/* Dark palette drawn from the red eye in the hero video. */
html[data-sirinova-theme="dark"] body.sirinova-ambient {
  --ambient-paper: #08090e;
  --ambient-surface: #17131b;
  --ambient-panel: #29202b;
  --ambient-panel-soft: #201923;
  --ambient-line: #71545e;
  --ambient-ink: #fff4f6;
  --ambient-muted: #d2c2c8;
  --ambient-gold: #ffabc0;
  --ambient-cta: #ad1238;
  --ambient-cta-text: #ffffff;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .ambient-header {
  background: linear-gradient(110deg,#0a0a10f7,#24131cf7) !important;
  border-color: #ff718b35;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .ambient-brand { color: #fff4f6 !important; }
html[data-sirinova-theme="dark"] .ambient-brand span { color: #ff8ba5; }
html[data-sirinova-theme="dark"] .sirinova-ambient .ambient-nav :is(a:hover,[aria-current]) { background: #77213d88; }
html[data-sirinova-theme="dark"] .sirinova-ambient .ambient-nav a.ambient-account {
  background: #75203b; color: #fff;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-title h1 {
  color: #fff1f5;
  text-shadow: 0 3px 22px #000, 0 0 46px #f41c544d;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-title h1 span {
  color: #ffe8ee;
  text-shadow: 0 2px 12px #000;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-copy h2 {
  color: #fff0f3; text-shadow: 0 2px 12px #000, 0 0 24px #000;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-copy p {
  color: #fff3f5; text-shadow: 0 2px 8px #000,0 0 14px #000;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-button {
  background: #ad1238 !important; color: #fff !important;
  border: 1px solid #ef657f; box-shadow: 0 5px 22px #8d0b303d;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-button:hover { background: #c31b45 !important; }
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-text {
  background: #130d14e8; color: #ffeaf0; border-color: #e2607b99;
}
/* Put the moving artwork and the message in separate spaces. */
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .legacy-cosmos-video {
  inset:0 2% 0 auto; width:48%; height:100%; object-fit:contain;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .legacy-cosmos-scene::after {
  background:linear-gradient(90deg,#08090ef0 0%,#08090e9e 40%,transparent 64%),linear-gradient(0deg,#08090e 0%,transparent 15%);
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .hero-message {
  position:absolute; z-index:2; left:clamp(30px,7vw,105px); top:50%; transform:translateY(-50%);
  width:min(47%,600px); text-align:left;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero :is(.olympus-title,.olympus-copy) {
  position:static; transform:none; max-width:none; text-align:left; width:auto;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-title h1 {
  font-size:clamp(48px,6.4vw,100px); letter-spacing:.025em; line-height:1;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero #brand-title > span {
  display:block; width:fit-content; max-width:100%; margin:15px 0 0; padding:0;
  background:transparent; text-align:left; font-size:clamp(17px,1.8vw,25px);
}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-copy { margin-top:clamp(28px,4vw,52px); }
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-copy h2 { font-size:clamp(25px,2.5vw,36px); line-height:1.4; margin:0 0 9px; }
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-copy p { font-size:14px; line-height:1.8; }
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-actions { justify-content:flex-start; margin-top:22px; gap:12px; }
@media(max-width:700px) {
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero { min-height:760px; height:max(760px,calc(100svh - 94px)); }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .legacy-cosmos-video {
    inset:0 0 auto; width:100%; height:min(50%,38svh); object-position:center top;
  }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .legacy-cosmos-scene::after {
    background:linear-gradient(0deg,#08090e 38%,#08090e50 51%,transparent 70%);
  }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .hero-message {
    top:calc(min(50%,38svh) + 16px); left:7%; right:7%; width:auto; transform:none; text-align:center;
  }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero :is(.olympus-title,.olympus-copy) { text-align:center; }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-title h1 { font-size:clamp(44px,13vw,65px); }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero #brand-title > span { margin:10px auto 0; text-align:center; font-size:16px; }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-copy { margin-top:24px; }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-copy h2 { font-size:23px; margin-bottom:6px; }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-copy p { max-width:100%; font-size:13px; text-wrap:balance; }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-actions { justify-content:center; margin-top:18px; }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero :is(.olympus-button,.olympus-text) { font-size:11px; }
}
@media(max-width:350px) {
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-actions { gap:8px; }
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-button { padding-inline:10px; gap:8px; }
}
@media(prefers-reduced-motion:reduce) {
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .legacy-cosmos-scene { background-position:right 8% center !important; background-size:auto 100% !important; }
}
@media(max-width:700px) and (prefers-reduced-motion:reduce) {
  html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .legacy-cosmos-scene { background-position:center top !important; background-size:auto min(50%,38svh) !important; }
}
@media(prefers-reduced-motion:reduce) {
  html.cosmos-motion-allowed[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .legacy-cosmos-scene,
  html.cosmos-motion-allowed[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .light-cosmos-scene { background-image:none !important; }
}
html[data-sirinova-theme="dark"] .sirinova-chat-launcher {
  --launcher-bg:#ad1238; --launcher-text:#fff; --launcher-line:#f27b97;
  box-shadow: 0 5px 22px #0009;
}
html[data-sirinova-theme="dark"] .support-page { --chat-action:#ad1238; --chat-on-action:#fff; }
html[data-sirinova-theme="dark"] .sirinova-ambient :focus-visible { outline-color:#ff9bb2; }

/* Pale black-hole scene for the light theme. */
html[data-sirinova-theme="light"] body.sirinova-ambient {
  --ambient-paper:#f6f9fc; --ambient-surface:#fff; --ambient-panel:#eaf1f8;
  --ambient-panel-soft:#f2f6fa; --ambient-line:#c7d4e0;
  --ambient-ink:#1e3245; --ambient-muted:#526577; --ambient-gold:#345875;
  --ambient-cta:#203e5a; --ambient-cta-text:#fff;
}
html[data-sirinova-theme="light"] .sirinova-ambient .ambient-header {
  background:linear-gradient(110deg,#fff,#f2f7fc) !important; border-color:#ccd8e4;
}
html[data-sirinova-theme="light"] .sirinova-ambient .ambient-nav a.ambient-account { background:#203e5a; color:#fff; }
html[data-sirinova-theme="light"] .sirinova-ambient .ambient-theme-switch { background:#fff; color:#243d55; border-color:#c5d1de; }
html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-shade { background:transparent; }
html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-title h1 {
  color:#152637; text-shadow:0 2px 24px #fff,0 0 40px #fff;
}
html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-title h1 span {
  color:#26394b; background:#ffffffd9; text-shadow:none;
}
html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-copy h2,
html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-copy p {
  color:#182a3b; text-shadow:0 2px 8px #fff,0 0 18px #fff;
}
html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-button { background:#203e5a; color:#fff; }
html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-text { background:#ffffffed;color:#203e5a;border:1px solid #50677b; }
/* Ivory books with cool outlines remain visible against the bright scene. */
html[data-sirinova-theme="light"] .observatory-hero .floating-book { --leather:#edf2f6; --gold-line:#8296a7; }
html[data-sirinova-theme="light"] .observatory-hero :is(.floating-book-cover,.floating-book-back) {
  border-color:#8a9cac;
  background:radial-gradient(ellipse at 30% 14%,#fff 0%,#edf2f6 75%,#c9d4df 100%);
  box-shadow:inset 0 0 9px #74899b55,0 4px 12px #172c4060;
}
html[data-sirinova-theme="light"] .observatory-hero :is(.floating-book-cover,.floating-book-back)::before { outline-color:#9aabba66; }
html[data-sirinova-theme="light"] .observatory-hero .floating-book-cover::after { color:#627e93; }
html[data-sirinova-theme="light"] .observatory-hero .floating-book-pages { background:repeating-linear-gradient(90deg,#b3c2ce 0 1px,#f8fafc 1px 2px); }
html[data-sirinova-theme="light"] .observatory-hero .floating-book-spine { background:repeating-linear-gradient(0deg,transparent 0 18%,#9caeba 18% 20%,transparent 20% 26%),var(--leather); }
html[data-sirinova-theme="light"] .observatory-hero :is(.floating-book-head,.floating-book-tail) { background:repeating-linear-gradient(0deg,#b4c3cf 0 1px,#f7fafc 1px 2px); }
html[data-sirinova-theme="light"] .observatory-hero .open-book-leaf {
  border-color:#9baebb; border-bottom-color:#b0bfca;
  background:linear-gradient(0deg,#c9d5df99,transparent 20%),radial-gradient(ellipse at 45% 28%,#fff,#e6edf3 84%);
  box-shadow:inset 0 -3px #fff,0 4px 0 #8ca0af,0 6px 14px #20374a63;
}
html[data-sirinova-theme="light"] .observatory-hero .open-book-leaf::before { border-color:#98aebf; background:repeating-linear-gradient(0deg,transparent 0 8%,#8ba0b080 8% 9%,transparent 9% 13%); }
html[data-sirinova-theme="light"] .observatory-hero .open-book-left::after { background:linear-gradient(90deg,transparent 60%,#879eaf55); }
html[data-sirinova-theme="light"] .observatory-hero .open-book-right::after { background:linear-gradient(90deg,#879eaf66,transparent 36%); }
html[data-sirinova-theme="light"] .observatory-hero .open-book-ribbon { background:linear-gradient(90deg,#869aa9,#d4dfe6 56%,#8ea3b1); }
@media(min-width:701px) {
  html[data-sirinova-theme="light"] .observatory-hero .book-left { --x:30%; --y:18%; --size:.55; }
  html[data-sirinova-theme="light"] .observatory-hero .book-right { --x:68%; --y:22%; --size:.52; }
}

/* Compact light-theme composition for portrait phones. */
@media(max-width:700px) {
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero {
    min-height:650px; height:max(650px,calc(100svh - 94px));
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .light-cosmos-video {
    inset:0 0 auto; width:100%; height:min(32svh,260px); object-position:center;
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .light-cosmos-scene::after {
    background:linear-gradient(0deg,#f6f9fc 25%,#f6f9fc00 58%);
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .hero-message {
    position:absolute; z-index:2; top:calc(min(32svh,260px) + 14px); left:7%; right:7%; text-align:center;
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero :is(.olympus-title,.olympus-copy) {
    position:static; transform:none; max-width:none; width:auto; text-align:center;
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-title h1 { font-size:clamp(44px,13vw,65px); line-height:1; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero #brand-title > span { margin:10px auto 0; font-size:16px; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-copy { margin-top:23px; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-copy h2 { font-size:23px; line-height:1.4; margin:0 0 7px; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-copy p { max-width:100%; font-size:13px; line-height:1.7; text-wrap:balance; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-actions { justify-content:center; gap:10px; margin-top:18px; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero :is(.olympus-button,.olympus-text) { font-size:11px; }
  html[data-sirinova-theme="light"] .observatory-hero .book-corner-left { --x:7%; --y:15%; --size:.6; }
  html[data-sirinova-theme="light"] .observatory-hero .book-corner-right { --x:93%; --y:24%; --size:.65; }
}
@media(max-width:350px) {
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .light-cosmos-video { height:min(26svh,200px); }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .hero-message { top:calc(min(26svh,200px) + 8px); }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-title h1 { font-size:clamp(39px,12vw,45px); }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero #brand-title > span { margin-top:7px; font-size:14px; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-copy { margin-top:14px; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-copy h2 { font-size:21px; margin-bottom:4px; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-copy p { font-size:12px; line-height:1.5; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-actions { gap:6px; margin-top:12px; flex-wrap:nowrap; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero :is(.olympus-button,.olympus-text) { font-size:10px; padding-inline:8px; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-button { gap:6px; }
}
@media(max-width:700px) and (prefers-reduced-motion:reduce) {
  html[data-sirinova-theme="light"] .observatory-hero .light-cosmos-scene { background-position:center 10px !important; background-size:100% auto !important; }
}
/* Use document flow on phones so embedded browsers do not have to composite
   the entire hero as a stack of viewport-sized, absolutely positioned layers. */
@media(max-width:700px) {
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero {
    display:flex; flex-direction:column; height:auto; min-height:calc(100vh - 94px);
    max-height:none; padding-bottom:90px; background:#f6f9fc;
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .observatory-picture { display:none; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .light-cosmos-scene {
    position:relative; inset:auto; z-index:0; flex:0 0 auto; width:100%; height:56.25vw; max-height:300px;
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .light-cosmos-video {
    inset:0; width:100%; height:100%; object-fit:contain; animation:none;
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .light-cosmos-scene::after {
    background:linear-gradient(0deg,#f6f9fc88,transparent 28%);
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .floating-books { z-index:1; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .hero-message {
    position:relative; z-index:2; top:auto; left:auto; right:auto; width:100%; padding:16px 7% 0;
  }
}
@media(max-width:700px) and (prefers-reduced-motion:reduce) {
  html[data-sirinova-theme="light"] .observatory-hero .light-cosmos-scene { background-position:center !important; background-size:contain !important; }
}

/* The light theme now uses a still from the supplied blue-eye clip. */
html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .light-cosmos-image {
  width:auto; max-width:48%;
  -webkit-mask-image:radial-gradient(ellipse 50% 54% at 50% 50%,#000 46%,transparent 100%);
  mask-image:radial-gradient(ellipse 50% 54% at 50% 50%,#000 46%,transparent 100%);
}
@media(min-width:701px) {
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .light-cosmos-scene::after {
    background:linear-gradient(90deg,#f6f9fc 0%,#f6f9fcbf 39%,transparent 65%),linear-gradient(0deg,#f6f9fc 0%,transparent 15%);
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .hero-message {
    position:absolute; z-index:2; left:clamp(30px,7vw,105px); top:50%; transform:translateY(-50%);
    width:min(47%,600px); text-align:left;
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero :is(.olympus-title,.olympus-copy) {
    position:static; transform:none; max-width:none; width:auto; text-align:left;
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-title h1 { font-size:clamp(48px,6.4vw,100px); letter-spacing:.025em; line-height:1; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero #brand-title > span {
    display:block; width:fit-content; max-width:100%; margin:15px 0 0; padding:0; background:transparent; color:#40566a; text-shadow:none; text-align:left; font-size:clamp(17px,1.8vw,25px);
  }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-copy { margin-top:clamp(28px,4vw,52px); }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-copy h2 { font-size:clamp(25px,2.5vw,36px); line-height:1.4; margin:0 0 9px; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-copy p { font-size:14px; line-height:1.8; }
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .olympus-actions { justify-content:flex-start; margin-top:22px; gap:12px; }
}
@media(max-width:700px) {
  html[data-sirinova-theme="light"] .sirinova-ambient .observatory-hero .light-cosmos-image {
    inset:0; width:100%; max-width:none; height:100%; object-fit:cover; object-position:center 58%;
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 82%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0%,#000 82%,transparent 100%);
  }
}
