/* SleepiStellar — "Sketchbook of the Afterlife" (app/Views/creators/sleepistellar.php).
   Her own style: black ink, bone white, greys, halftone dots and hand-drawn
   stars, with one accent from her 🩻 — X-ray cyan. A marker hand for her
   name and titles, a pencil hand for notes. No live blur; motion is
   transform and opacity only, paused off screen by site.js and stopped for
   reduced motion and lite mode (docs/MOTION.md, the mobile-performance
   rules). */

@font-face { font-family: 'Permanent Marker'; src: url('/assets/fonts/PermanentMarker.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/caveat-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }

body.cp-theme-sleepistellar {
  --sst-ink: #0b0b0d; --sst-char: #151518; --sst-panel: #1c1c21; --sst-panel2: #25252b; --sst-line: rgba(232, 230, 223, .18);
  --sst-bone: #ecebe5; --sst-paper: #f3f1ea; --sst-paper2: #e4e1d7; --sst-graphite: #2b2b30;
  --sst-xray: #7fe3ff; --sst-xray-d: #2aa9d6;
  --sst-tx: #f2f1ec; --sst-tx2: #c9c8c2; --sst-tx3: #8e8d88;
  --sst-marker: 'Permanent Marker', 'Comic Sans MS', cursive;
  --sst-hand: 'Caveat', 'Comic Sans MS', cursive;
  --sst-body: 'Quicksand', system-ui, sans-serif;
  --scroll-acc: #ecebe5;
  background: var(--sst-ink);
}
html:has(> body.cp-theme-sleepistellar) { --scroll-acc: #ecebe5; }

/* Halftone dots, the way her commission frames have them. */
.sst { position: relative; overflow-x: clip; padding: 0 0 40px; color: var(--sst-tx); font-family: var(--sst-body); font-weight: 600; background:
  radial-gradient(circle, rgba(236, 235, 229, .07) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
  radial-gradient(ellipse 60% 45% at 78% 8%, rgba(127, 227, 255, .07), transparent 70%),
  radial-gradient(ellipse 60% 40% at 8% 40%, rgba(236, 235, 229, .06), transparent 70%),
  linear-gradient(180deg, #121215 0%, var(--sst-ink) 45%, #09090b 100%); }
.sst img { display: block; max-width: 100%; }

/* ---- her stars, doodled into the margins (one fixed layer) ---- */
.sst-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sst-sky i { position: absolute; display: block; opacity: .35; animation: sst-twinkle 4.5s ease-in-out infinite; }
.sst-sky i:nth-child(odd) { animation-duration: 6s; }
.sst-sky .sst-star { width: 100%; height: auto; }
@keyframes sst-twinkle { 0%, 100% { opacity: .2; transform: scale(.85) rotate(0); } 50% { opacity: .55; transform: scale(1.1) rotate(12deg); } }
.sst-star path { fill: none; stroke: var(--sst-bone); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }

/* ---- type ---- */
.sst-kick { margin: 0 0 10px; font-family: var(--sst-body); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--sst-tx3); }
.sst-title { margin: 0; text-transform: none; font-family: var(--sst-marker); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: .01em; color: var(--sst-bone); }
.sst-text { margin: 12px 0 0; font-size: 17px; font-weight: 600; line-height: 1.7; color: var(--sst-tx2); }
.sst-text a { color: var(--sst-xray); border-bottom: 1px solid currentColor; }

/* ---- panels: graphite paper with a hand-drawn double edge ---- */
.sst-panel { position: relative; border: 2px solid var(--sst-bone); border-radius: 18px 22px 16px 24px; background: linear-gradient(160deg, var(--sst-panel2), var(--sst-panel) 60%, var(--sst-char)); box-shadow: 5px 6px 0 rgba(236, 235, 229, .14), 0 22px 50px -18px rgba(0, 0, 0, .8); }

/* ---- hero ---- */
.sst-hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 40px; max-width: 1240px; min-height: min(100vh, 860px); margin: 0 auto; padding: 120px 32px 40px; }
/* Her name across the whole hero, tilted, in snow-leopard print: a seamless
   rosette tile (img/creators/sleepistellar/leopard.webp, made with PIL), sized
   in em so the print scales with the letters. background-clip:text only paints inside the box,
   so the span carries its own padding to keep the marker's tops and tails. */
.sst-hero-title { grid-column: 1 / -1; text-align: center; margin-bottom: 6px; }
.sst-name { position: relative; display: inline-block; margin: 0; padding: 0 .1em .18em; text-transform: uppercase; font-family: var(--sst-marker); font-weight: 400; font-size: clamp(34px, 8.6vw, 118px); line-height: 1; letter-spacing: .02em; white-space: nowrap; transform: rotate(-5deg); }
.sst-name-print { position: relative; z-index: 1; display: inline-block; filter: drop-shadow(5px 6px 0 rgba(0, 0, 0, .9)); padding: .14em .06em .08em; color: transparent; -webkit-text-stroke: .025em #0b0b0d;
  background: #e6e2d8 url('/assets/img/creators/sleepistellar/leopard.webp') 0 0 / 1.6em auto;
  -webkit-background-clip: text; background-clip: text; }
/* The ghostly glow: the same word behind the print, its letters invisible and
   only their glow showing, breathing in and out (opacity only). */
.sst-name-glow { position: absolute; z-index: 0; left: .1em; top: 0; padding: .14em .06em .08em; color: transparent; pointer-events: none;
  text-shadow: 0 0 .06em rgba(236, 246, 255, .9), 0 0 .18em rgba(200, 236, 255, .7), 0 0 .42em rgba(127, 227, 255, .55), 0 0 .8em rgba(127, 227, 255, .3);
  animation: sst-glow 4.5s ease-in-out infinite; }
@keyframes sst-glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.sst-name .sst-star { position: absolute; z-index: 1; right: -.24em; top: -.3em; width: .5em; height: auto; transform: rotate(14deg); animation: sst-spin 9s linear infinite; }
.sst-name .sst-star path { stroke: var(--sst-xray); stroke-width: 3; }
@keyframes sst-spin { to { transform: rotate(374deg); } }
.sst-summary { max-width: 540px; margin: 14px 0 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; line-height: 1.55; color: var(--sst-tx); }
.sst-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.sst-tags li { padding: 5px 14px; border-radius: 40px; border: 1.5px dashed rgba(236, 235, 229, .5); color: var(--sst-tx); font-size: 14px; font-weight: 700; }
.sst-tags li::before { content: "✦ "; color: var(--sst-xray); }
.sst-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sst-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 2px solid var(--sst-bone); border-radius: 14px 18px 12px 20px; background: transparent; color: var(--sst-tx); font-family: var(--sst-body); font-weight: 700; font-size: 16px; letter-spacing: .02em; cursor: pointer; box-shadow: 4px 4px 0 rgba(236, 235, 229, .25); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background-color .18s, color .18s, box-shadow .18s; }
.sst-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(236, 235, 229, .4); }
.sst-btn.is-hot { background: var(--sst-bone); color: var(--sst-ink); box-shadow: 4px 4px 0 var(--sst-xray-d); }
.sst-btn.is-hot:hover { box-shadow: 6px 6px 0 var(--sst-xray); }
.sst-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sst-socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--sst-line); color: var(--sst-tx2); transition: color .15s, border-color .15s, background-color .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.sst-socials a:hover { color: var(--sst-ink); background: var(--sst-bone); border-color: var(--sst-bone); transform: translateY(-3px) rotate(-6deg); }
.sst-socials svg { width: 18px; height: 18px; fill: currentColor; }

/* Her sona taped in, with the X-ray lens over it (creators/sleepistellar.js). */
.sst-plate { position: relative; width: 100%; max-width: 520px; justify-self: center; padding: 14px; background: var(--sst-paper); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85); transform: rotate(2deg); }
.sst-xray { position: relative; overflow: hidden; aspect-ratio: 1; cursor: crosshair; touch-action: pan-y; }
.sst-xray-art { width: 100%; height: 100%; object-fit: cover; }
.sst-lens { position: absolute; left: 0; top: 0; width: 170px; height: 170px; margin: -85px 0 0 -85px; overflow: hidden; border-radius: 50%; border: 3px solid var(--sst-xray); box-shadow: 0 0 0 3px rgba(0, 0, 0, .6), 0 0 26px rgba(127, 227, 255, .6); opacity: 0; transition: opacity .2s; pointer-events: none; will-change: transform; }
.sst-lens img { position: absolute; left: 85px; top: 85px; max-width: none; filter: invert(1) grayscale(1) sepia(1) hue-rotate(150deg) saturate(2.6) contrast(1.15); will-change: transform; }
.sst-xray.is-scanning .sst-lens { opacity: 1; }
.sst-tape { position: absolute; width: 110px; height: 30px; background: rgba(236, 235, 229, .72); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.sst-tape.is-a { left: -26px; top: 12px; transform: rotate(-38deg); }
.sst-tape.is-b { right: -26px; bottom: 26px; transform: rotate(-36deg); }
.sst-plate-note { position: absolute; left: 50%; bottom: -46px; margin: 0; font-family: var(--sst-hand); font-size: 24px; color: var(--sst-tx2); white-space: nowrap; transform: translateX(-50%) rotate(-2deg); }

/* ---- between sections ---- */
.sst-scribble { position: relative; z-index: 1; display: flex; align-items: center; max-width: 1240px; height: 40px; margin: 34px auto; padding: 0 32px; }
.sst-scribble > svg:first-child { flex: 1; height: 30px; }
.sst-scribble path { fill: none; stroke: var(--sst-bone); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.5s ease; opacity: .55; }
.sst-scribble.is-in path { stroke-dashoffset: 0; }
.sst-scribble .sst-star { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.sst-scribble .sst-star path { opacity: 1; stroke-dasharray: none; stroke-dashoffset: 0; stroke: var(--sst-xray); }

/* ---- sections ---- */
.sst-sec { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 34px 32px 20px; }
.sst-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sst-more { flex: none; padding: 7px 14px; border-radius: 40px; border: 2px solid var(--sst-line); font-weight: 700; font-size: 14px; color: var(--sst-tx); transition: background-color .15s, color .15s, border-color .15s; }
.sst-more:hover { background: var(--sst-bone); border-color: var(--sst-bone); color: var(--sst-ink); }
.sst .sst-row-h { margin: 24px 0 10px; font-family: var(--sst-hand); font-weight: 600; font-size: 26px; letter-spacing: 0; color: var(--sst-tx2); text-transform: none; }
.sst .sst-row-h::before { content: "✦ "; font-size: 18px; color: var(--sst-xray); }

/* About: a sketchbook page, spiral down the left, her panel taped in. */
.sst-page { position: relative; display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); gap: 38px; align-items: start; padding: 40px 40px 36px 64px; border-radius: 6px 14px 14px 6px; color: var(--sst-graphite);
  background: radial-gradient(circle, rgba(43, 43, 48, .08) 1px, transparent 1.4px) 0 0 / 12px 12px, linear-gradient(170deg, var(--sst-paper), var(--sst-paper2));
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85); }
.sst-page::before { content: ""; position: absolute; left: 18px; top: 22px; bottom: 22px; width: 22px; background: radial-gradient(circle at 50% 50%, var(--sst-ink) 0 5px, transparent 5.5px) 0 0 / 22px 34px; }
.sst-page-art { position: relative; }
.sst-page-art img { width: 100%; height: auto; border: 6px solid #fff; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .5); transform: rotate(-3deg); }
.sst-tape.is-c { left: 50%; top: -14px; width: 90px; margin-left: -45px; transform: rotate(4deg); background: rgba(127, 227, 255, .45); }
.sst-page .sst-kick { color: #6c6b66; }
.sst-page .sst-title { color: var(--sst-ink); }
.sst-page .sst-text { color: var(--sst-graphite); }
.sst-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 18px; margin: 20px 0 0; }
.sst-facts div { padding: 6px 0; border-bottom: 1.5px dashed rgba(43, 43, 48, .3); }
.sst-facts dt { font-family: var(--sst-hand); font-weight: 600; font-size: 20px; line-height: 1; color: #55545a; }
.sst-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--sst-ink); }
.sst-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.sst-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px 16px 10px 18px; border: 2px solid var(--sst-ink); color: var(--sst-ink); font-weight: 700; font-size: 14px; box-shadow: 3px 3px 0 rgba(11, 11, 13, .2); transition: background-color .15s, color .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.sst-links a:hover { background: var(--sst-ink); color: var(--sst-paper); transform: translate(-2px, -2px); }
.sst-links svg { width: 16px; height: 16px; fill: currentColor; }
.sst-discord { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 15px; color: var(--sst-graphite); }
.sst-discord svg { width: 18px; height: 18px; fill: var(--sst-ink); }

/* Her eyes across the page, haunted: an aura that breathes, wisps rising off
   the edges, a pale sheen passing over. The aura is soft gradients (no live
   blur) on its own layer, animated by opacity and transform only. */
.sst-eyes { position: relative; z-index: 1; max-width: 1240px; width: calc(100% - 64px); margin: 60px auto 30px; }
.sst-eyes-frame { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 3 / 1; max-height: 400px; border: 2px solid rgba(236, 235, 229, .85); border-radius: 14px 20px 12px 22px; box-shadow: 0 0 0 1px rgba(127, 227, 255, .35), 0 0 18px rgba(200, 236, 255, .35), 0 0 46px rgba(127, 227, 255, .22); }
.sst-eyes-frame img { width: 100%; height: 100%; object-fit: cover; }
/* A cold pale vignette inside the edge, as if seen through frost. */
.sst-eyes-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 85% at 50% 50%, transparent 55%, rgba(200, 236, 255, .22) 85%, rgba(236, 246, 255, .4)); }
.sst-aura { position: absolute; inset: -110px -120px; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%);
  background:
  radial-gradient(ellipse 40% 55% at 22% 50%, rgba(127, 227, 255, .42), transparent 75%),
  radial-gradient(ellipse 40% 55% at 78% 50%, rgba(220, 240, 255, .38), transparent 75%),
  radial-gradient(ellipse 60% 70% at 50% 50%, rgba(160, 220, 255, .24), transparent 80%);
  animation: sst-breathe 6s ease-in-out infinite; }
@keyframes sst-breathe { 0%, 100% { opacity: .55; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
/* Wisps: soft pale smudges that rise off the top edge and fade. */
.sst-wisp { position: absolute; z-index: 2; top: 0; width: 110px; height: 90px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(230, 245, 255, .42), rgba(127, 227, 255, .14) 50%, transparent 100%); opacity: 0; animation: sst-rise 7s ease-out infinite; }
.sst-wisp.is-1 { left: 8%; }
.sst-wisp.is-2 { left: 34%; width: 80px; animation-delay: -2.2s; animation-duration: 8s; }
.sst-wisp.is-3 { left: 62%; animation-delay: -4.6s; }
.sst-wisp.is-4 { left: 86%; width: 70px; animation-delay: -1.1s; animation-duration: 9s; }
@keyframes sst-rise { 0% { opacity: 0; transform: translate(0, 10px) scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(-14px, -90px) scale(1.5, 1.8); } }
/* A pale sheen sliding across now and then. */
.sst-sheen { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(236, 246, 255, .28) 48%, transparent 60%); transform: translateX(-100%); animation: sst-sheen 8s ease-in-out infinite; }
@keyframes sst-sheen { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.sst-eyes-note { position: absolute; z-index: 2; right: 16px; bottom: 12px; padding: 2px 14px; border-radius: 40px; background: rgba(11, 11, 13, .82); color: var(--sst-bone); font-family: var(--sst-hand); font-size: 20px; box-shadow: 0 0 12px rgba(127, 227, 255, .35); }

/* Videos */
.sst-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30%, 400px); gap: 18px; overflow-x: auto; padding: 6px 10px 18px 6px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.sst-rail.is-tall { grid-auto-columns: clamp(190px, 18%, 230px); }
.sst-rail::-webkit-scrollbar { height: 10px; }
.sst-rail::-webkit-scrollbar-thumb { background: var(--sst-bone); border-radius: 10px; }
.sst-rail::-webkit-scrollbar-track { background: var(--sst-panel); border-radius: 10px; }
.sst-card { scroll-snap-align: start; margin: 0; }
.sst-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px 16px 10px 18px; border: 2px solid var(--sst-bone); background: var(--sst-panel); box-shadow: 4px 5px 0 rgba(236, 235, 229, .14); transition: transform .22s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.sst-card.is-tall .sst-card-thumb { aspect-ratio: 9 / 16; }
.sst-card-thumb > a, .sst-card-thumb img, .sst-card-thumb iframe { display: block; width: 100%; height: 100%; }
.sst-card-thumb img { object-fit: cover; }
.sst-card:hover .sst-card-thumb { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 6px 8px 0 var(--sst-xray-d); }
/* The play button is one of her stars. */
.sst-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
.sst-play svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.sst-play .sst-play-star { fill: var(--sst-bone); stroke: var(--sst-ink); stroke-width: 1.6; stroke-linejoin: round; }
.sst-play .sst-play-tri { fill: var(--sst-ink); }
.sst-card:hover .sst-play { transform: scale(1.14) rotate(14deg); }
.sst-chip { position: absolute; left: 10px; top: 10px; padding: 2px 10px; border-radius: 40px; background: rgba(11, 11, 13, .85); color: var(--sst-bone); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.sst .sst-card-title { margin: 10px 2px 0; font-family: var(--sst-body); font-weight: 600; font-size: 15px; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--sst-tx); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sst-empty, .sst-follow { max-width: 620px; padding: 20px 24px; }
.sst-follow { display: flex; align-items: center; gap: 12px; }
.sst-follow svg { width: 22px; height: 22px; fill: var(--sst-bone); }
.sst-follow .sst-more { margin-left: auto; }

/* ---- the sketchbook: grey ink until looked at, then her colours ---- */
.sst-gallery-note { max-width: 640px; margin: -6px 0 22px; }
.sst-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.sst-gallery a { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border: 3px solid var(--sst-bone); border-radius: 16px 22px 14px 24px; background: var(--sst-panel); box-shadow: 5px 6px 0 rgba(236, 235, 229, .16); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; }
.sst-gallery li:nth-child(even) a { border-radius: 22px 14px 24px 16px; }
.sst-gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s ease, transform .5s ease; }
.sst-gallery a:hover, .sst-gallery a:focus-visible { transform: translate(-3px, -4px) rotate(-.8deg); box-shadow: 8px 10px 0 var(--sst-xray-d); }
.sst-gallery a:hover img, .sst-gallery a:focus-visible img { filter: none; transform: scale(1.03); }
/* No hover on a phone: colour comes in as each drawing scrolls into view. */
@media (hover: none) { .sst-gallery li.is-in img { filter: none; transition-delay: .3s; } }

/* ---- the viewer (creators/sleepistellar.js): taped onto a sketchbook page ---- */
.sst-zoom { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: clamp(14px, 4vmin, 44px); background: radial-gradient(circle, rgba(236, 235, 229, .06) 1.2px, transparent 1.6px) 0 0 / 14px 14px, rgba(8, 8, 10, .96); opacity: 0; transition: opacity .22s ease; }
.sst-zoom[hidden] { display: none; }
.sst-zoom.is-open { opacity: 1; }
.sst-zoom-win { position: relative; max-width: min(92vw, 1100px); padding: 12px; background: var(--sst-paper); box-shadow: 0 30px 70px rgba(0, 0, 0, .8); transform: scale(.94) rotate(-1deg); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.sst-zoom.is-open .sst-zoom-win { transform: rotate(.6deg); }
.sst-zoom-win .sst-tape { left: 50%; top: -14px; width: 120px; margin-left: -60px; transform: rotate(-3deg); }
.sst-zoom-img { display: block; max-width: min(88vw, 1080px); max-height: calc(84vh - 30px); width: auto; height: auto; margin: 0 auto; }
.sst-zoom-x, .sst-zoom-nav { display: grid; place-items: center; border: 2px solid var(--sst-bone); background: var(--sst-ink); color: var(--sst-bone); font-family: var(--sst-body); font-weight: 700; cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background-color .15s, color .15s; }
.sst-zoom-x { position: absolute; top: -16px; right: -16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; line-height: 1; }
.sst-zoom-x:hover, .sst-zoom-nav:hover { background: var(--sst-bone); color: var(--sst-ink); transform: scale(1.1); }
.sst-zoom-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; font-size: 22px; }
.sst-zoom-nav.is-prev { left: 18px; }
.sst-zoom-nav.is-next { right: 18px; }
.sst-zoom-nav[hidden] { display: none; }
@media (max-width: 700px) { .sst-zoom-nav { top: auto; bottom: 18px; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .sst-zoom, .sst-zoom-win { transition: none; } }

/* ---- shop ---- */
.sst-soon { display: flex; align-items: center; gap: 20px; max-width: 720px; padding: 22px 26px; }
.sst-soon .sst-star { flex: none; width: 56px; height: 56px; animation: sst-spin 12s linear infinite; }
.sst-soon .sst-star path { stroke: var(--sst-xray); }
.sst-soon .sst-text { margin: 0; }

/* ---- join ---- */
.sst-join { margin-top: 20px; }
.sst-join-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; padding: 36px 34px; }
.sst-join .sst-title { margin: 8px 0 6px; }
.sst-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sst-nums li { padding: 16px; border-radius: 12px 16px 10px 18px; border: 1.5px dashed var(--sst-line); background: rgba(11, 11, 13, .45); }
.sst-nums b { display: block; font-family: var(--sst-marker); font-weight: 400; font-size: 32px; line-height: 1; color: var(--sst-bone); }
.sst-nums span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--sst-tx3); }

/* ---- end: the ghost leopard, rosettes and drifting ghosts ---- */
.sst-end { position: relative; z-index: 1; overflow: hidden; max-width: 1240px; margin: 60px auto 0; padding: 30px 32px 30px; text-align: center; }
/* Snow-leopard rosettes, broken rings in grey ink, fading out to the edges. */
.sst-spots { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 55%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 55%, #000 30%, transparent 75%); }
.sst-spots path { fill: none; stroke: rgba(236, 235, 229, .32); stroke-width: 6; stroke-linecap: round; }
.sst-spots circle { fill: rgba(236, 235, 229, .28); }
/* Her, glowing faintly, fading out at the knees where the drawing stops. */
.sst-end-art { position: relative; width: min(380px, 70vw); height: auto; margin: 0 auto; filter: drop-shadow(0 0 22px rgba(127, 227, 255, .22)) drop-shadow(0 0 2px rgba(236, 235, 229, .5)); animation: sst-haunt 7s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 96%); mask-image: linear-gradient(180deg, #000 70%, transparent 96%); }
@keyframes sst-haunt { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.sst-end-copy { position: relative; margin-top: -70px; }
.sst-end .sst-star { width: 52px; height: 52px; margin: 0 auto 6px; animation: sst-twinkle 3s ease-in-out infinite; }
.sst-end .sst-star path { stroke: var(--sst-xray); }
.sst .sst-end-line { margin: 0; padding: 0 .1em; font-family: var(--sst-marker); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1.15; letter-spacing: .01em; text-transform: none; color: var(--sst-bone); text-shadow: 3px 4px 0 #000; }
.sst .sst-credits { margin: 14px 0 0; font-family: var(--sst-hand); font-size: 22px; color: var(--sst-tx3); }
.sst-credits a { color: var(--sst-xray); }
/* Her little ghosts: drawn like hers, drifting up and fading. */
.sst-ghost { position: absolute; bottom: 8%; width: 46px; opacity: 0; animation: sst-float 9s ease-in-out infinite; }
.sst-ghost svg { display: block; width: 100%; height: auto; }
.sst-ghost path { fill: rgba(200, 200, 205, .55); }
.sst-ghost-eye { fill: var(--sst-ink); }
.sst-ghost.is-1 { left: 18%; }
.sst-ghost.is-2 { left: 28%; width: 32px; animation-delay: -3s; animation-duration: 11s; }
.sst-ghost.is-3 { right: 20%; animation-delay: -5.5s; transform: scaleX(-1); }
.sst-ghost.is-4 { right: 30%; width: 30px; animation-delay: -1.5s; animation-duration: 12s; }
@keyframes sst-float {
  0% { opacity: 0; translate: 0 40px; }
  15% { opacity: .9; }
  50% { translate: 14px -160px; }
  85% { opacity: .5; }
  100% { opacity: 0; translate: -10px -320px; }
}
/* The menu bar, in her colours. */
body.cp-theme-sleepistellar .cpnav-in { background: rgba(16, 16, 19, .95); border-color: var(--sst-line); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); }
body.cp-theme-sleepistellar .cpnav-who { color: var(--sst-tx); border-left-color: var(--sst-line); font-family: var(--sst-marker); font-weight: 400; }
body.cp-theme-sleepistellar .cpnav-av { border-color: var(--sst-bone); }
body.cp-theme-sleepistellar .cpnav-links a { color: var(--sst-tx2); font-family: var(--sst-body); font-weight: 700; }
body.cp-theme-sleepistellar .cpnav-links a:hover { color: #fff; background: rgba(236, 235, 229, .12); }
body.cp-theme-sleepistellar .cpnav-links a[aria-current="true"] { background: var(--sst-bone); color: var(--sst-ink); box-shadow: none; }
body.cp-theme-sleepistellar :is(.cpnav-burger, .cpnav-account) { background: var(--sst-panel2); color: var(--sst-tx); }
body.cp-theme-sleepistellar .cpnav-burger span { background: var(--sst-bone); }
body.cp-theme-sleepistellar .cpnav-cart { background: var(--sst-bone); color: var(--sst-ink); box-shadow: 0 4px 0 var(--sst-xray-d); font-family: var(--sst-body); font-weight: 700; }
body.cp-theme-sleepistellar .cpnav-cart:hover { background: #fff; box-shadow: 0 4px 0 var(--sst-xray); }
/* The video player, in her colours. */
body.cp-theme-sleepistellar .cp-player { background: rgba(8, 8, 10, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.cp-theme-sleepistellar .cp-player-frame { border: 3px solid var(--sst-bone); border-radius: 16px; box-shadow: 8px 9px 0 rgba(236, 235, 229, .18), 0 34px 80px rgba(0, 0, 0, .7); }
body.cp-theme-sleepistellar .cp-player-caption { font-family: var(--sst-hand); font-size: 22px; color: var(--sst-bone); }
body.cp-theme-sleepistellar .cp-player-close { background: var(--sst-bone); color: var(--sst-ink); border: 2px solid var(--sst-ink); }

/* ---- small screens ---- */
@media (max-width: 900px) {
  .sst-hero { grid-template-columns: 1fr; padding: 104px 18px 60px; min-height: 0; text-align: center; gap: 30px; }
  .sst-summary { margin-inline: auto; }
  .sst-tags, .sst-actions, .sst-socials { justify-content: center; }
  .sst-plate { max-width: 400px; }
  .sst-lens { width: 130px; height: 130px; margin: -65px 0 0 -65px; }
  .sst-lens img { left: 65px; top: 65px; }
  .sst-plate-note { font-size: 20px; bottom: -40px; }
  .sst-sec { padding: 26px 18px 16px; }
  .sst-scribble { padding: 0 18px; margin: 22px auto; }
  .sst-page { grid-template-columns: 1fr; gap: 26px; padding: 30px 20px 26px 50px; }
  .sst-page::before { left: 12px; }
  .sst-page-art { max-width: 230px; margin: 0 auto; }
  .sst-eyes { width: calc(100% - 36px); }
  .sst-eyes-frame { aspect-ratio: 2.2 / 1; }
  .sst-aura { inset: -60px -40px; }
  .sst-rail { grid-auto-columns: 86%; }
  .sst-rail.is-tall { grid-auto-columns: 58%; }
  .sst-join-card { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px; }
  .sst-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sst-sec-head { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .sst-facts { grid-template-columns: 1fr; }
  .sst-soon { flex-direction: column; text-align: center; }
  .sst-name .sst-star { right: -.1em; }
}

/* ---- calmer when asked ---- */
@media (prefers-reduced-motion: reduce) {
  .sst-sky i, .sst-name .sst-star, .sst-name-glow, .sst-aura, .sst-sheen, .sst-soon .sst-star, .sst-end .sst-star, .sst-end-art { animation: none; }
  .sst-wisp, .sst-sheen { display: none; }
  .sst-ghost { display: none; }
  .sst-sky { display: none; }
  .sst-scribble path { transition: none; stroke-dashoffset: 0; }
  .sst-gallery img { transition: none; }
}
.perf-lite :is(.sst-sky, .sst-ghost) { display: none; }
.perf-lite :is(.sst-name .sst-star, .sst-name-glow, .sst-aura, .sst-wisp, .sst-sheen, .sst-soon .sst-star, .sst-end .sst-star, .sst-end-art) { animation: none; }
