/* Final interaction pass, 26 September: background reaches the footer. */
.page-home .home-hero { background: transparent !important; }
.page-home .home-hero::before { display: none !important; }
.page-home main,.page-home .site-header { position: relative; z-index: 2; }
.page-home .site-disclaimer { z-index: 2; }
.page-home .site-header { position: absolute; z-index: 20; }
.page-home :is(.site-disclaimer,.site-disclaimer-shell,.site-disclaimer-copy,.site-disclaimer-mark,.site-disclaimer-halo) { background: transparent !important; backdrop-filter: none !important; }
.page-home :is(.site-header,.site-disclaimer,.site-disclaimer #motionTitle,.site-disclaimer-mark,.site-disclaimer-kicker,.top-nav,.music-pill) { color: #eefbff !important; text-shadow: var(--star-text); }
.page-home .hero-art-card { width: clamp(210px,25vw,340px); }
.page-home .hero-copy { position: relative; }
.page-home .hero-copy h1 { font-size: clamp(58px,10.8vw,160px) !important; letter-spacing: .18em; text-indent: .18em; max-width: 100%; color: #056552; -webkit-text-stroke: 1px #b1ffe0; background: none; text-shadow: 0 2px 4px #032e40; filter: none; animation: none; }
/* One real text layer: no font/canvas mismatch when the title wraps. */
.page-home .hero-copy h1 { width: 100%; overflow-wrap: anywhere; text-indent: 0; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .page-home .hero-copy h1.has-code-title {
    color: transparent; background-image: url("assets/icons/title-code.svg"), linear-gradient(110deg,#008f63,#24e69c,#007c57,#16ce89);
    background-size: 96px 144px, 240% 100%; background-position: 0 0, 0 50%;
    background-clip: text; -webkit-background-clip: text; -webkit-text-stroke: .65px #a9ffdc;
    text-shadow: none; filter: drop-shadow(0 2px 2px #003c25) drop-shadow(0 0 5px #23ffa17a);
    /* 144px / 6.5s ~= the original canvas flow's 22px per second. */
    animation: titleCodeFlow 6.5s linear infinite;
  }
}
@keyframes titleCodeFlow { to { background-position: 0 144px, 100% 50%; } }
.page-home .hero-copy h1.is-title-paused { animation-play-state: paused; }
/* Prevent image selection/drag previews without disabling links or text copy. */
img { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
:is(button,a,input,select,textarea) { -webkit-tap-highlight-color: #76ffd62e; }
:is(button,a) { touch-action: manipulation; }
:is(button,a,input,select,textarea):focus-visible { outline: 2px solid #a1ffe6; outline-offset: 4px; }
.page-home .home-code-rain { position: fixed; inset: 0; height: 100svh; opacity: .92; mix-blend-mode: screen; }
.page-home .journey-link { color: #e4fff2; border-color: #c6ffe8; text-shadow: var(--star-text); }
.home-cosmos .cosmic-photo { background-position: center; }
.category-tabs { cursor: grab; touch-action: pan-x pan-y; user-select: none; }
.category-tabs.is-dragging { cursor: grabbing; scroll-snap-type: none !important; scroll-behavior: auto; }
.constellation-cutout { pointer-events: none; }
.page-articles .category-tabs { --tab-width: 310px; }
.constellation-picture { height: 230px; }
.sirius-emblem { position: absolute; left: 35px; top: -10px; width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 0 9px #a8dfff); }
.cosmic-pen { width: 36px; height: 54px; filter: drop-shadow(0 0 2px #ecf7ee); }
.cosmic-click-symbol { width: 24px; height: 24px; filter: drop-shadow(0 0 2px #a9eaff); }
.music-pill { position: relative; overflow: visible; }
.music-pill::before,.music-pill::after { content: "♪"; position: absolute; pointer-events: none; opacity: 0; color: #99ffe0; font: 23px Georgia,serif; text-shadow: 0 0 5px #057455; }
.music-pill::before { right: 25%; }.music-pill::after { right: 55%; content: "♫"; }
.music-pill.playing::before { animation: musicFloat 1.6s ease-out infinite; }
.music-pill.playing::after { animation: musicFloat 1.6s .7s ease-out infinite; }
@keyframes musicFloat { 0% { opacity: 0; transform: translateY(0) rotate(-10deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(10px,-55px) rotate(15deg); } }
.music-status { position: absolute; z-index: 60; top: 75px; right: 20px; max-width: min(330px,90vw); padding: 16px 20px; border: 1px solid #bcf4ff; border-radius: 22px 4px; color: #f4ffff; text-shadow: var(--star-text); background: transparent; font-size: 14px; line-height: 1.8; }
.pagination { flex-wrap: wrap; }
.page-articles .pagination button.active { background: transparent; border-color: #8affe6; }
/* These archive categories already carry their title in the cover artwork. */
.page-articles #readerTitle { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; max-height: none; white-space: normal; overflow-wrap: anywhere; }
.page-articles .reader.reader-cover-only .reader-hero { display: block; padding: 0; overflow: hidden; }
.page-articles .reader.reader-cover-only #readerCover { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; margin: 0; }
.page-articles .reader.reader-cover-only .reader-hero-copy { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-articles .reader.reader-no-cover .reader-hero { grid-template-columns: minmax(0,1fr); }
@media(max-width:760px) {
  .page-home .hero-art-card { width: clamp(200px,57vw,280px); }
  .page-home .hero-copy h1 { font-size: clamp(32px,11.8vw,82px) !important; letter-spacing: .035em; text-indent: 0; line-height: 1.3; }
  .page-home .hero-copy h1.has-code-title { background-size: 96px 144px, 240% 100%; -webkit-text-stroke: .45px #a9ffdc; }
  .page-home .home-code-rain { opacity: 1; mask-image: none; -webkit-mask-image: none; }
  .page-articles .category-tabs { --tab-width: 235px; }
  .constellation-picture { height: 190px; }
  .sirius-emblem { left: 0; top: 4px; width: 100px; height: 110px; }
  .pagination { gap: 5px; }.page-articles .pagination button { min-width: 31px; padding: 6px 9px; }
}
/* styles.css suppresses mobile decoration globally with !important. Restore
   only the requested code/transition effects, not all expensive animations. */
@media(max-width:760px) and (prefers-reduced-motion:no-preference) {
  .page-home .hero-copy h1.has-code-title { animation-duration: 6.5s !important; animation-iteration-count: infinite !important; }
  .matrix-transition { transition-duration: .18s !important; }
  .matrix-progress span { animation-duration: .65s !important; }
}
@media(pointer:coarse) {
  .top-nav a,.music-pill,.page-articles .pagination button,.celestial-arrow { min-height: 44px; min-width: 44px; }
  :is(.top-nav a,.music-pill,.journey-link,.pagination button):active { opacity: .78; }
}
@media(prefers-reduced-motion:reduce) {
  .page-home .hero-copy h1.has-code-title { animation: none; }
  .music-pill.playing::before,.music-pill.playing::after { animation: none; opacity: 1; transform: translateY(-24px); }
}

/* Supplied October artwork: keep the original colours and transparent edges. */
.page-home .hero-inner { width: 100%; min-width: 0; }
.page-home .hero-copy h1.has-artwork-title {
  width: min(1040px, 100%); margin: 0; line-height: 1; font-size: 0 !important;
  letter-spacing: 0; text-indent: 0; background: none; -webkit-text-stroke: 0;
  text-shadow: none; animation: none; filter: none;
}
.portal-title-image { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 3px #072c51) drop-shadow(0 0 8px #8bcaff88); }
.top-nav .supplied-nav-icon { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 1px 2px #091c2c); }
body:is(.page-home,.page-articles,.page-meditation,.page-about) .site-header .top-nav a { color: #fff; text-shadow: 0 1px 3px #18354f; }
.cosmic-sword { width: 60px; height: 100px; filter: drop-shadow(0 1px 2px #061329) drop-shadow(0 0 4px #c8e9ff); }
.cosmic-sword img { display: block; width: 100%; height: 100%; object-fit: contain; transform: rotate(-28deg); transform-origin: 50% 0; }
.sirius-sacred-symbol::before,.sirius-sacred-symbol::after { display: none; }
.sirius-sacred-symbol .sirius-emblem { left: 20px; top: -12px; width: 200px; height: 160px; filter: drop-shadow(0 0 10px #b4eaffb3); }
.portal-code-field { position: fixed; inset: 0; height: 100svh; z-index: 1; overflow: hidden; pointer-events: none; user-select: none; }
.portal-code-signal {
  position: absolute; opacity: 0; transform: translate(-50%, -50%);
  color: #18eb92; white-space: nowrap; background: none; padding: 0;
  font: 400 15px/18px Consolas, "Courier New", monospace;
  letter-spacing: 2px; text-shadow: 0 1px 2px #002b17, 0 0 3px #20ff9e;
  animation: portalSignal 8.8s var(--signal-delay) ease-in-out infinite !important;
}
.portal-code-signal::before { content: "0010110 "; opacity: .6; }
.portal-code-signal::after { content: " 0010110"; opacity: .6; }
.portal-code-field.is-paused .portal-code-signal { animation-play-state: paused !important; }
@keyframes portalSignal { 0%,70%,100% { opacity: 0; } 12%,52% { opacity: .95; } }
@media(max-width:760px) {
  .page-home .hero-copy h1.has-artwork-title { width: min(100%, 620px); }
  .top-nav .supplied-nav-icon { width: 24px; height: 26px; }
  body:is(.page-home,.page-articles,.page-meditation,.page-about) .top-nav a { min-height: 44px; }
  .sirius-sacred-symbol .sirius-emblem { left: -7px; top: 4px; width: 114px; height: 104px; }
  .portal-code-signal { font-size: 13px; line-height: 17px; letter-spacing: 1px; }
}
@media(pointer:coarse) { .portal-code-signal { font-size: 13px; line-height: 17px; letter-spacing: 1px; } }
