/* Timestamp: 2026-10-30 | Version: 1.6.0 | Author and Credits: https://www.alawise.es/1-s */
:root {
  color-scheme: dark;
  --ink: #e9e7f6;
  --paper: #06060c;
  --muted: #a19db4;
  --line: #29263c;
  --copper: #b3a5ff;
  --panel: #0e0d1b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 5%; top: -80px; z-index: 50; padding: 12px 20px; background: #383064; }
.skip:focus { top: 10px; }
header { min-height: 104px; margin: 0 5%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; position: relative; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 35px; letter-spacing: -2px; white-space: nowrap; }
.brand > span { font-family: Georgia, serif; }
.dot { color: var(--copper); }
nav { display: flex; gap: 23px; align-items: center; font-size: 12px; }
nav a, nav summary { padding: 10px 0; white-space: nowrap; }
nav a:hover, .text-link:hover, nav [aria-current="page"] { color: var(--copper); }
nav [aria-current="page"] { border-bottom: 1px solid var(--copper); }
.edition, .eyebrow, .hero-note, .plate-label, .plate-footer, .ribbon > span, .source-note, footer > span { font: 10px/1.5 monospace; letter-spacing: 1.5px; }
.edition { font-size: 8px; text-align: right; color: #b5adc9; }
.menu-toggle { display: none; }
.nav-scales summary { list-style: none; }
.nav-scales summary::-webkit-details-marker { display: none; }
.nav-scales summary span { margin-left: 5px; }
.nav-drop { position: absolute; top: 85px; background: #111020; border: 1px solid #39314e; padding: 16px 24px; min-width: 240px; box-shadow: 0 20px 50px #0009; }
.nav-drop a { display: block; padding: 11px 0; }
.nav-drop a:first-child { border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--copper); }
.nav-drop span { font: 9px monospace; color: var(--muted); margin-right: 12px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; margin: 48px 5% 52px; gap: 6%; align-items: center; }
.intro { padding: 15px 0; }
.eyebrow { font-size: 11px; color: var(--copper); text-transform: uppercase; }
.smallstar { margin-right: 12px; font-size: 18px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(64px, 6.8vw, 108px); line-height: .99; letter-spacing: -5px; margin: 27px 0; }
h1 em { color: var(--copper); font-weight: 400; }
.intro > p { max-width: 365px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.button { border: 1px solid #7061ae; background: #302755; color: #f6f2ff; padding: 14px 24px; display: inline-flex; align-items: center; gap: 35px; font-size: 12px; }
.button:hover { background: #493879; border-color: #a18bdf; }
.hero-note { display: flex; gap: 25px; margin-top: 43px; color: var(--muted); font-size: 9px; }
.instrument { background: radial-gradient(ellipse at 50% 65%, #1c163b, #0e0c1e 75%); color: #bcb5d5; border: 1px solid #302747; position: relative; min-width: 0; }
.plate-label { padding: 25px 27px 0; color: #b8aed2; }
.instrument svg { width: 100%; display: block; }
.plate-footer { display: flex; justify-content: space-between; border-top: 1px solid #302747; padding: 17px 26px; font-size: 8px; }
.ribbon { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 23px 5%; display: flex; align-items: center; justify-content: space-between; }
.ribbon p { font: italic 23px Georgia, serif; margin: 0; }
.ribbon > span { font-size: 9px; color: var(--muted); }
.section { padding: 80px 5%; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; gap: 30px; }
h2 { font-size: 44px; line-height: 1.15; letter-spacing: -1.5px; margin: 15px 0 20px; }
.section-head p { font-size: 13px; color: var(--muted); }
.filters { display: flex; gap: 9px; margin: 25px 0 32px; flex-wrap: wrap; }
.filters button, .app-tabs button { border: 1px solid var(--line); padding: 9px 18px; background: transparent; font-size: 11px; color: var(--muted); }
.filters .active, .app-tabs .active { background: #29213e; color: #e2d8ff; border-color: #69538b; }
sup { padding-left: 6px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.card { display: block; border-bottom: 1px solid var(--line); text-align: left; padding: 0 0 16px; color: inherit; min-width: 0; }
.art { height: 150px; display: flex; align-items: center; justify-content: center; font: 64px Georgia, serif; position: relative; overflow: hidden; background: #12101e; color: #a496cd; transition: background .2s; }
.card:nth-child(3n+2) .art { background: #171124; color: #baa1cf; }
.card:nth-child(3n) .art { background: #0f1222; color: #8b9ccc; }
.art::after { content: ''; position: absolute; width: 105px; height: 105px; border: 1px solid currentColor; border-radius: 50%; opacity: .23; }
.card:hover .art { background: #24203a; }
.tag { display: block; font: 8px/1.6 monospace; letter-spacing: 1px; color: var(--muted); margin-top: 15px; text-transform: uppercase; }
.card h3 { font-size: 22px; margin: 5px 0 6px; }
.card h3 span, .scale-card h3 span, .app-card h3 span { float: right; font: 18px Arial; color: var(--copper); }
.card p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }
.observatory { background: #11101d; color: var(--ink); border-block: 1px solid var(--line); padding: 65px 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
.observatory p { color: var(--muted); max-width: 440px; font-size: 13px; }
.text-link { border-bottom: 1px solid #696078; padding-bottom: 8px; font-size: 12px; display: inline-block; }
.source-list a { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid #393146; align-items: center; }
.source-list a > span { font: 11px monospace; color: #a69cbd; }
.source-list a > div { font: 23px Georgia, serif; flex: 1; }
.source-list small { display: block; font: 10px/1.6 Arial; margin-top: 9px; color: var(--muted); }
.source-note { margin-top: 24px; font-size: 9px; }
.source-note span { display: block; color: var(--muted); letter-spacing: 0; margin-top: 9px; }
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
.approach p { color: var(--muted); font-size: 14px; }
.approach .large { font: 25px/1.5 Georgia, serif; color: var(--ink); }
.principles { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 10px; font: 10px monospace; color: var(--copper); }
.principles b { font: 12px Arial; color: var(--ink); margin-left: 20px; }
.experiment { border-block: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10%; background: #0e0c18; padding-top: 45px; padding-bottom: 45px; }
.experiment p { max-width: 420px; font-size: 13px; color: var(--muted); }
.coin-box { display: flex; align-items: center; gap: 35px; }
.coin { width: 110px; height: 110px; flex-shrink: 0; border: 1px solid #9d8ac8; outline: 1px solid #786790; outline-offset: -8px; border-radius: 50%; display: grid; place-items: center; font: 36px Georgia; background: #221a38; color: #cab5e9; }
.coin-box p { margin: 14px 0 0; font: 10px monospace; }
.reset { border: 0; background: none; padding: 9px 0; color: var(--muted); text-decoration: underline; font-size: 11px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
.contact p, .contact small { color: var(--muted); font-size: 13px; }
.contact small { font-size: 11px; }
form label { display: block; font-size: 11px; margin-bottom: 18px; }
input, textarea { display: block; background: transparent; border: 0; border-bottom: 1px solid #645776; width: 100%; padding: 10px 0; color: var(--ink); font-size: 13px; border-radius: 0; }
textarea { resize: vertical; }
#form-status { margin-top: 14px; font-size: 12px; }
footer { margin: 0 5%; padding: 30px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
footer .brand { font-size: 27px; }
footer a:not(.brand) { font-size: 11px; }
footer > span { font-size: 8px; color: var(--muted); }
.astrology-feature { padding: 65px 9%; display: grid; grid-template-columns: 1.15fr 1fr; gap: 12%; align-items: center; background: radial-gradient(ellipse at 75% 45%, #211944 0, #0b0915 58%); border-bottom: 1px solid var(--line); }
.astrology-feature h2 { font-size: 58px; }
.astrology-feature p { max-width: 420px; color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; margin-top: 25px; }
.feature-note { display: block; font: 9px monospace; color: #a99ac0; letter-spacing: 1px; margin-top: 30px; }
.wheel-wrap { min-width: 0; display: flex; justify-content: center; }
.zodiac { width: 100%; max-width: 440px; color: #aa94df; }
.zodiac text { fill: currentColor; stroke: none; text-anchor: middle; dominant-baseline: middle; font: 24px Georgia; }
.zodiac .wheel-label { font: 8px monospace; letter-spacing: 2px; }
.app-links { padding-top: 0; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-card { padding: 28px; border: 1px solid #312942; background: #0e0b18; display: block; }
.app-card:hover { border-color: #82709e; }
.app-symbol { display: block; font: 60px Georgia; color: #a48bcd; margin: 30px 0 25px; }
.app-card h3 { font-size: 30px; margin-bottom: 10px; }
.app-card p { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.page-hero { padding: 60px 5% 65px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 40%, #1b1434, transparent 60%); }
.page-hero .eyebrow { margin-top: 35px; }
.page-hero h1 { font-size: clamp(55px, 6vw, 88px); letter-spacing: -3px; max-width: 850px; }
.page-hero p { max-width: 570px; color: #b3a9c5; font-size: 16px; }
.has-art { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10%; align-items: center; }
.has-art .wheel-wrap { grid-row: 1; grid-column: 2; }
.back-link { font: 10px/1.8 monospace; letter-spacing: 1px; color: var(--muted); display: inline-block; }
.back-link:hover { color: var(--copper); }
.scale-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.scale-card { display: block; padding: 25px; border-right: 1px solid var(--line); }
.scale-card:last-child { border-right: 0; }
.scale-card:hover { background: #151021; }
.scale-card .eyebrow { font-size: 8px; }
.scale-card h3 { font-size: 29px; margin: 45px 0 18px; }
.scale-card p { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.scale-intro { padding-top: 45px; }
.scale-explainer { max-width: 680px; margin: 0 0 40px; color: var(--muted); }
.scale-intro > .back-link { margin-top: 50px; }
.quiet-note { font-size: 12px; color: var(--muted); margin-top: 25px; max-width: 850px; }
.related { background: #100c1c; border: 1px solid var(--line); padding: 30px; margin-top: 45px; }
.related h3 { font-size: 32px; margin: 20px 0 10px; }
.related p { color: var(--muted); font-size: 13px; }
.specimen { display: grid; place-items: center; aspect-ratio: 1.3; border: 1px solid var(--line); background: radial-gradient(ellipse, #25193e, #0b0913 70%); position: relative; }
.specimen > span { font: 130px Georgia; color: #b69fdf; }
.specimen::after { content: ''; width: 55%; aspect-ratio: 1; border: 1px solid #53436d; position: absolute; border-radius: 50%; opacity: .5; }
.specimen small { position: absolute; bottom: 20px; font: 9px monospace; letter-spacing: 2px; color: var(--muted); }
.reading { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
.reading h2 { font-size: 36px; }
.reading p { font-size: 15px; color: #b8afc7; line-height: 1.85; }
.detail-note { border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; color: var(--muted); }
.next-page { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.path-grid a { display: block; border-top: 1px solid #615078; padding-top: 25px; }
.path-grid h3 { font-size: 30px; margin: 22px 0 15px; }
.path-grid p { color: var(--muted); font-size: 14px; }
.path-grid .eyebrow { font-size: 9px; }
.future-app { border-block: 1px solid var(--line); background: #0f0b19; display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
.future-app p { color: var(--muted); max-width: 430px; font-size: 14px; }
.future-map { display: grid; }
.future-map > span { padding: 25px 0; border-bottom: 1px solid var(--line); color: #a98dce; font: 11px monospace; }
.future-map b { font: 23px Georgia; color: var(--ink); margin-left: 20px; }
.future-map small { display: block; margin-left: 36px; font: 12px Arial; color: var(--muted); margin-top: 12px; }
.app-workspace { padding: 32px 5% 50px; }
.workspace-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.app-tabs { display: flex; gap: 8px; }
#original-app { display: block; width: 100%; min-height: 820px; height: 85vh; border: 1px solid #4d3a60; background: #100c18; }
@media (min-width: 1600px) { body { max-width: 1700px; margin: auto; } }
@media (max-width: 1200px) {
  .edition { display: none; }
  nav { gap: 20px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scale-card { padding: 20px; }
  .scale-card h3 { font-size: 25px; }
  .ribbon > span:last-child { display: none; }
}
@media (max-width: 900px) {
  nav { gap: 15px; font-size: 11px; }
  header { gap: 15px; }
  .hero { gap: 4%; }
  h1 { font-size: 66px; }
  .hero-note { gap: 12px; font-size: 8px; }
  .plate-footer { font-size: 7px; padding: 15px; }
  .coin-box { gap: 20px; }
  .coin { width: 80px; height: 80px; }
  .astrology-feature h2 { font-size: 45px; }
  .scale-grid { grid-template-columns: 1fr 1fr; }
  .scale-card:nth-child(2) { border-right: 0; }
  .scale-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  header { min-height: 86px; flex-wrap: wrap; padding: 15px 0; }
  .brand { font-size: 31px; }
  .menu-toggle { display: inline-flex; gap: 18px; align-items: center; border: 1px solid #473557; background: #141021; color: var(--ink); padding: 8px 15px; font-size: 12px; }
  .site-navigation { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 15px 0; gap: 0; font-size: 14px; }
  .site-navigation.is-open { display: flex; }
  .site-navigation > a, .nav-scales { border-bottom: 1px solid var(--line); padding: 7px 0; }
  .nav-drop { position: static; box-shadow: none; border: 0; border-left: 1px solid #705088; margin: 5px 0 10px 5px; padding: 0 20px; }
  .hero { grid-template-columns: 1fr; margin-top: 25px; gap: 32px; }
  h1 { font-size: 72px; }
  .hero-note { margin-top: 27px; }
  .instrument svg { max-height: 450px; }
  .ribbon { display: block; }
  .ribbon p { margin-top: 10px; font-size: 21px; }
  .section { padding: 50px 5%; }
  .section-head { display: block; }
  .section-head p br { display: none; }
  h2 { font-size: 36px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 15px; }
  .art { height: 130px; }
  .card h3 { font-size: 21px; }
  .observatory, .approach, .contact, .experiment, .astrology-feature, .has-art, .reading, .future-app { grid-template-columns: 1fr; gap: 32px; }
  .observatory { padding: 45px 5%; }
  .coin-box { gap: 30px; }
  .coin { width: 95px; height: 95px; }
  footer { flex-wrap: wrap; }
  footer > span:first-of-type { display: none; }
  .filters { gap: 6px; }
  .filters button { padding: 8px 10px; font-size: 10px; }
  .astrology-feature { padding: 45px 5%; }
  .astrology-feature .wheel-wrap { max-width: 340px; margin: auto; }
  .astrology-feature h2 { font-size: 46px; }
  .app-links { padding-top: 0; }
  .app-grid, .path-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 35px 5% 45px; }
  .page-hero h1 { font-size: 60px; }
  .page-hero p { font-size: 15px; }
  .page-hero .eyebrow { margin-top: 30px; }
  .has-art .wheel-wrap { grid-row: 2; grid-column: 1; max-width: 320px; margin: auto; }
  .specimen { max-width: 370px; width: 100%; margin: auto; }
  .next-page { display: block; }
  .next-page .button { margin-top: 15px; }
  .app-workspace { padding: 25px 5% 35px; }
  #original-app { min-height: 750px; height: 85vh; }
  .app-tabs { width: 100%; }
  .quiet-note { font-size: 11px; }
}
@media (max-width: 390px) {
  h1 { font-size: 64px; }
  .page-hero h1 { font-size: 50px; }
  .scale-grid { grid-template-columns: 1fr; }
  .scale-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .scale-card:last-child { border-bottom: 0; }
  .coin-box { gap: 20px; }
  .button { gap: 20px; padding: 13px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* The control artwork belongs to the original page and can change independently. */
.control-hero { gap: 5%; }
.control-hero h1 { font-size: clamp(58px, 6.1vw, 94px); letter-spacing: -4px; }
.control-hero .intro > p { max-width: 450px; }
.control-hero .hero-note { gap: 35px; }
.control-access { display: block; border: 1px solid #413452; background: #0d0a15; }
.control-access:hover { border-color: #ae92d4; }
.control-image { position: relative; aspect-ratio: 1.9; overflow: hidden; background: #181124; }
.control-image img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .83; }
.control-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0c071120, #12082060); pointer-events: none; }
.control-image > span { position: absolute; left: 22px; top: 20px; z-index: 1; background: #0c0918e8; padding: 7px 11px; font: 8px/1.5 monospace; letter-spacing: 1px; color: #e6daff; }
.control-caption { display: flex; justify-content: space-between; align-items: center; padding: 28px; }
.control-caption strong { font: 43px Georgia, serif; letter-spacing: -1.5px; display: block; margin: 10px 0; }
.control-caption small { color: var(--muted); font-size: 12px; }
.control-caption > b { font: 40px Georgia, serif; color: var(--copper); font-weight: 400; }
.status-nav { color: var(--copper); }
.tradition-overview { border-bottom: 1px solid var(--line); }
.tradition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tradition-card { display: block; padding: 25px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: #0a0810; }
.tradition-card:hover { background: #171020; }
.tradition-card h3 { font-size: 24px; line-height: 1.25; margin-bottom: 13px; padding-right: 15px; position: relative; }
.tradition-card h3 > span { position: absolute; right: -8px; top: 0; color: var(--copper); font: 17px Arial, sans-serif; }
.tradition-card p { font-size: 12px; color: var(--muted); margin-bottom: 19px; }
.practice-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.practice-tags > span { border: 1px solid #3a2b49; color: #b9a4d0; font: 8px/1.5 monospace; padding: 4px 7px; }
.tradition-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 25px; }
.tradition-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.context-sources { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 30px; }
.context-sources a { display: block; color: #c1aedc; font-size: 12px; margin-top: 14px; text-decoration: underline; text-underline-offset: 4px; }
.tradition-methods { border-top: 1px solid var(--line); }
.tradition-methods > .back-link { margin-top: 35px; }
.technique-context { padding-top: 0; padding-bottom: 40px; }
@media (max-width: 1100px) {
  header { min-height: 86px; flex-wrap: wrap; padding: 15px 0; }
  .menu-toggle { display: inline-flex; gap: 18px; align-items: center; border: 1px solid #473557; background: #141021; color: var(--ink); padding: 8px 15px; font-size: 12px; }
  .site-navigation { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 15px 0; gap: 0; font-size: 14px; }
  .site-navigation.is-open { display: flex; }
  .site-navigation > a, .nav-scales { border-bottom: 1px solid var(--line); padding: 7px 0; }
  .nav-drop { position: static; box-shadow: none; border: 0; border-left: 1px solid #705088; margin: 5px 0 10px 5px; padding: 0 20px; }
}
@media (max-width: 900px) {
  .tradition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .control-hero h1 { font-size: 62px; }
  .control-hero .actions { gap: 20px; }
  .control-caption { padding: 23px; }
  .control-caption strong { font-size: 37px; }
  .control-image > span { font-size: 7px; left: 15px; top: 15px; }
  .tradition-footer { display: block; }
  .tradition-footer .text-link { margin-top: 20px; }
}
@media (max-width: 600px) {
  .tradition-grid { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .control-hero h1 { font-size: 54px; }
}

/* Both navigation bars frame the complete original control view. */
.brand-star { display: block; width: 36px; height: 36px; flex-shrink: 0; }
footer .brand-star { width: 28px; height: 28px; }
.home-shell { max-width: none; }
.home-shell > .site-menu { min-height: 92px; }
.home-shell > #main { width: 100%; }
.home-stage { position: relative; width: 100%; aspect-ratio: 2816 / 1536; max-height: calc(100svh - 184px); min-height: 210px; background: #000; }
.home-control { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.menu-bottom { border-top: 1px solid var(--line); border-bottom: 0; }
.menu-bottom .nav-drop { top: auto; bottom: 80px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
  .home-shell > .site-menu { min-height: 86px; }
  .home-stage { max-height: none; min-height: 0; }
  .menu-bottom .site-navigation { order: -1; }
  .menu-bottom .nav-drop { position: static; }
}

/* Sources remain visible beside each independent observatory window. */
.home-streams { width: 90%; max-width: 1640px; margin: 0 auto; padding: 76px 0; }
.stream-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.stream-heading h2, .shamanic-feature h2 { margin: 14px 0 0; font: 400 clamp(38px, 4.4vw, 66px)/1.05 Georgia, serif; letter-spacing: -1.7px; }
.stream-heading > p { max-width: 360px; color: var(--muted); margin: 0 0 5px; }
.stream-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stream-card { min-width: 0; border: 1px solid var(--line); background: #090911; padding: 20px; display: flex; flex-direction: column; scroll-margin-top: 24px; }
.stream-label { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.stream-label .eyebrow { font-size: 9px; letter-spacing: .8px; }
.source-badge { color: #b3a5ff; font: 8px/1.4 monospace; letter-spacing: .6px; border: 1px solid #37304f; padding: 5px 7px; }
.stream-card h3 { font: 400 26px/1.15 Georgia, serif; margin: 20px 0; }
.stream-media { height: 630px; background: #000; overflow: hidden; }
.stream-media iframe, .stream-media video { display: block; width: 100%; height: 100%; border: 0; }
.solar-media video { object-fit: contain; }
.planetary-media { position: relative; }
.planetary-media iframe { position: absolute; top: 0; transform-origin: top left; }
.stream-caption { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 17px 0; }
.stream-links { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 11px; color: #c1b7fa; }
.stream-links a:hover { color: white; }

/* The atlas is a prominent doorway, with each community retaining its name. */
.shamanic-feature { width: 90%; max-width: 1640px; margin: 0 auto 76px; border: 1px solid #40365c; padding: 48px; display: grid; grid-template-columns: 110px minmax(0, 1.2fr) minmax(220px, .8fr); gap: 40px; align-items: center; background: radial-gradient(ellipse at 8% 35%, #201634 0, #100d1b 42%, #090911 80%); }
.shamanic-feature > div { min-width: 0; }
.atlas-mark { color: #a997ec; display: flex; flex-direction: column; gap: 16px; }
.atlas-mark span { font: 90px/.9 Georgia, serif; letter-spacing: -6px; }
.atlas-mark small { font: 9px/1.8 monospace; letter-spacing: 1.2px; }
.shamanic-feature h2 { font-size: clamp(38px, 4vw, 58px); }
.shamanic-feature p { max-width: 600px; color: var(--muted); margin: 20px 0 24px; }
.atlas-feature-links { display: grid; }
.atlas-feature-links a { border-bottom: 1px solid #383044; padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.atlas-feature-links a:hover { color: #c4b3ff; }
.atlas-intro { width: 90%; max-width: 1640px; margin: 0 auto 56px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.atlas-intro > p { color: var(--muted); max-width: 840px; font-size: 16px; }
.region-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.region-nav a { border: 1px solid #3d3552; padding: 9px 14px; color: #c4b7e8; }
.atlas-region { width: 90%; max-width: 1640px; margin: 0 auto 64px; scroll-margin-top: 28px; }
.atlas-region > h2 { font: 400 clamp(34px, 4vw, 50px)/1.15 Georgia, serif; margin: 12px 0 26px; }
.atlas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.atlas-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--panel); padding: 28px; }
.atlas-card h3 { display: flex; justify-content: space-between; gap: 18px; font: 400 26px/1.2 Georgia, serif; margin: 18px 0 12px; }
.atlas-card h3 > span { font: 18px/1.5 Arial, sans-serif; color: #a28bcf; }
.atlas-card p { color: var(--muted); margin: 0 0 22px; }
.atlas-card .practice-tags { margin-top: auto; }
.atlas-card:hover { border-color: #8d77c0; background: #151020; }
@media (max-width: 1100px) {
  .stream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stream-card:last-child { grid-column: 1 / -1; }
  .planetary-media { width: 100%; max-width: 420px; margin: 0 auto; }
  .shamanic-feature { grid-template-columns: 80px 1fr; gap: 26px; padding: 32px; }
  .atlas-mark span { font-size: 72px; }
  .atlas-feature-links { grid-column: 2; }
  .atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .home-streams { padding: 44px 0; }
  .stream-heading { display: block; }
  .stream-heading > p { margin-top: 20px; }
  .stream-grid, .atlas-grid { grid-template-columns: minmax(0, 1fr); }
  .stream-card { padding: 16px; }
  .stream-card:last-child { grid-column: auto; }
  .stream-media { height: 420px; }
  .solar-media { height: auto; aspect-ratio: 1; }
  .planetary-media { height: 650px; }
  .shamanic-feature { grid-template-columns: 1fr; padding: 26px; gap: 24px; margin-bottom: 44px; }
  .atlas-mark { flex-direction: row; align-items: center; gap: 22px; }
  .atlas-mark span { font-size: 56px; letter-spacing: -3px; }
  .atlas-feature-links { grid-column: auto; }
  .atlas-card { padding: 24px; }
  .atlas-card h3 { font-size: 25px; }
  .atlas-region { margin-bottom: 44px; }
}

/* ==========================================================================
 * Biorhythm & Study Combiner Module (kamala.pro/bior/ integration)
 * Preserves legacy selectors (.bior-form, #laimagen, body.n, body.white)
 * while unifying typography, dark surfaces, and controls with Kamala 1.6.0.
 * ========================================================================== */
body.bior-embed,
body.n,
body.white {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  padding: 18px 20px;
  font: 15px/1.65 Arial, sans-serif;
}

.bior-shell {
  width: 92%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 36px 0 56px;
}

.bior-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.bior-header h1 {
  font: 400 clamp(38px, 4.5vw, 64px)/1.05 Georgia, serif;
  letter-spacing: -1.8px;
  margin: 8px 0 0;
  color: var(--ink);
}

.bior-header h1 u {
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
}

.bior-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.bior-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.bior-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.bior-panel-head h2,
.bior-title {
  font: 400 26px/1.2 Georgia, serif;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 0;
}

.bior-frame {
  display: block;
  width: 100%;
  border: 1px solid #302747;
  background: radial-gradient(ellipse at 50% 65%, #1c163b, #0e0c1e 75%);
}

.bior-frame--calc {
  min-height: 520px;
  height: 540px;
}

.bior-frame--compose {
  min-height: 840px;
  height: 860px;
}

.bior-form {
  max-width: 680px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid #302747;
  background: radial-gradient(ellipse at 50% 65%, #1c163b, #0e0c1e 75%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bior-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bior-form label,
.bior-label {
  display: block;
  font: 10px/1.5 monospace;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0;
}

.bior-hint {
  font: 11px/1.4 monospace;
  color: var(--muted);
  letter-spacing: 0.8px;
}

.bior-form input[type="text"] {
  display: block;
  width: 100%;
  background: #0b0916;
  border: 1px solid #3d3356;
  border-bottom: 1px solid var(--copper);
  padding: 11px 14px;
  color: var(--ink);
  font: 15px/1.4 monospace;
  letter-spacing: 0.8px;
  transition: border-color 0.2s, background 0.2s;
}

.bior-form input[type="text"]:focus {
  background: #130f24;
  border-color: var(--copper);
}

.bior-form input[type="text"]::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.bior-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.bior-btn {
  border: 1px solid var(--line);
  background: #141126;
  color: var(--ink);
  padding: 11px 18px;
  font: 11px/1.4 monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  flex: 1 1 140px;
  text-align: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bior-btn:hover {
  background: #29213e;
  color: #e2d8ff;
  border-color: #69538b;
}

.bior-btn--primary,
.bior-form input[type="submit"],
.bior-form button[type="submit"] {
  border: 1px solid #7061ae;
  background: #302755;
  color: #f6f2ff;
  padding: 13px 22px;
  font: 12px/1.4 monospace;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.bior-btn--primary:hover,
.bior-form input[type="submit"]:hover,
.bior-form button[type="submit"]:hover {
  background: #493879;
  border-color: #a18bdf;
}

.bior-result {
  max-width: 740px;
  margin: 18px auto 0;
  padding: 18px;
  border: 1px solid #302747;
  background: radial-gradient(ellipse at 50% 65%, #1c163b, #0e0c1e 75%);
  text-align: center;
}

.bior-result img,
#laimagen {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  background: #0e0d1b;
}

.bior-caption {
  display: inline-block;
  font: 11px/1.5 monospace;
  letter-spacing: 1px;
  color: var(--copper);
  padding: 4px 10px;
  border: 1px solid #37304f;
  background: #090911;
}

.bior-status {
  margin-top: 10px;
  font: 11px/1.5 monospace;
  color: var(--muted);
}

.bior-error {
  max-width: 680px;
  margin: 20px auto;
  padding: 16px 20px;
  border: 1px solid #8c3b5a;
  background: #1c0f1b;
  color: #ffd6e5;
  font: 13px/1.5 monospace;
}

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

@media (max-width: 680px) {
  body.bior-embed {
    padding: 12px;
  }
  .bior-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .bior-form {
    padding: 16px;
  }
  .bior-frame--calc {
    height: 500px;
  }
  .bior-frame--compose {
    height: 820px;
  }
}
