/* Language controls, crowned title, and density changes for the review. */
.language-control[hidden] { display: none; }
.language-control { position: relative; display: grid; grid-template-columns: 1rem auto; align-items: center; gap: .45rem; padding-left: .5rem; border: 1px solid #995570; background: #190b15; color: var(--rose); }
.language-control .glyph { width: .94rem; height: .94rem; pointer-events: none; }
.language-control select { appearance: none; border: 0; color: var(--ink); background: transparent; font: .72rem/1 var(--mono); min-height: 44px; padding: .25rem 1.5rem .25rem .05rem; cursor: pointer; }
.language-control select option { background: #21111b; color: var(--ink); }
.language-control::after { content: ''; position: absolute; right: .56rem; top: calc(50% - .22rem); width: .4rem; height: .4rem; border: solid var(--rose); border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.motion-control { position: relative; min-height: 44px; }
.intro { padding-top: 1.2rem; }
.intro .window { inset: -2rem -1.2rem -2.2rem; opacity: .58; background-size: auto 125%; mask-image: radial-gradient(ellipse, #000 48%, transparent 74%); }
.chapter { margin-bottom: 2rem; }
h1 .wordmark, h1 .initial { display: inline-block; }
h1 .initial { position: relative; }
.title-hair { position: absolute; z-index: 2; display: block; pointer-events: none; width: .84em; height: auto; max-width: none; top: .04em; left: 43%; transform: translate(-55%, -72%) rotate(-15deg); filter: drop-shadow(0 2px 3px #10040f) drop-shadow(0 0 9px #e039ae7f); transform-origin: 50% 70%; }
.hero-motif { position: absolute; pointer-events: none; color: #ec92bb; }
.hero-bat { right: 6%; top: 2%; width: 2.3rem; height: 1.45rem; }
.hero-star { left: 5%; bottom: -1rem; width: .75rem; height: .75rem; color: #e0a1e5; animation-delay: -2.4s; }
.hero-star-two { top: 23%; right: 8%; width: .85rem; height: .85rem; animation-delay: -4.1s; }
.link-card { overflow-wrap: anywhere; }
.link-shimmer { position: absolute; pointer-events: none; z-index: -1; inset: 2px; opacity: .35; background: linear-gradient(109deg, transparent 38%, #b96baf51 49%, #ffa6c851 50%, transparent 62%) -100% 50% / 235% 100% no-repeat; }
.link-card > :is(img,.link-copy,.link-arrow) { z-index: 0; }
.links li:nth-child(2n) .link-shimmer { animation-delay: -2.1s; }
.links li:nth-child(n+3):nth-child(odd) .link-shimmer { animation-delay: -4.3s; }
.footer-sigil { position: absolute; pointer-events: none; z-index: -1; top: 45%; display: none; place-items: center; width: clamp(5.5rem, 11vw, 9rem); aspect-ratio: 1; border: 1px solid #a3587970; border-radius: 50%; background: radial-gradient(ellipse, #642244ae, #230e19c2 71%); box-shadow: 0 0 0 5px #170911c9, 0 0 0 6px #8743654d, 0 0 22px #6523474f; color: #d391b5; }
.footer-sigil .glyph { width: 47%; height: 47%; }
.footer-sigil-left { left: 6.8%; }
.footer-sigil-right { right: 6.8%; }
@media (min-width: 811px) {
  .folio { grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr); gap: clamp(1.5rem,4vw,4.25rem); padding-block: clamp(2rem,4vw,3.45rem); }
  .intro { padding: 1.3rem 1rem .6rem; }
  .chapter { margin-inline-start: clamp(3.2rem, 6.4vw, 5.65rem); }
  .intro::before { content: ''; position: absolute; z-index: -1; inset: -1.1rem -1rem; border: 1px solid #d37da540; box-shadow: inset 0 0 0 4px #38122476, inset 0 0 0 5px #9c57743a; pointer-events: none; }
  h1 { font-size: clamp(4rem, 7.65vw, 6.55rem); }
  .link-card { min-height: 4.55rem; }
  .footer .portrait { width: min(72%, 45rem); }
  .footer-sigil { display: grid; }
  .scene .heart-charm { top: 22%; right: 18.5%; }
  .scene .creature { top: 20%; left: 18%; }
}
@media (max-width: 810px) {
  .mast-inner { gap: .72rem; }
  .folio { padding-top: 1.45rem; }
  .intro { padding-top: .6rem; }
  .chapter { margin-bottom: 1.45rem; }
  .hero-bat { top: 10%; right: 9%; }
  .hero-star { left: 14%; bottom: 10%; }
  .hero-star-two { right: 13%; top: 55%; }
}
@media (max-width: 620px) {
  .links ul { grid-template-columns: minmax(0, 1fr); gap: .48rem; }
  .link-card { --icon-size: 2.34rem; grid-template-columns: var(--icon-size) minmax(0,1fr) 1.15rem; gap: .65rem; min-height: 3.65rem; padding: .4rem .68rem; }
  .link-card .link-arrow { display: block; width: .94rem; height: .94rem; justify-self: end; }
  .link-name { font-size: 1rem; }
  .link-description { font-size: .74rem; }
  .intro .window { inset: -.4rem 0 -1.45rem; }
}
@media (max-width: 420px) {
  .mast-inner { gap: .5rem; }
  .brand { min-width: 1.95rem; height: 1.95rem; }
  .brand img { width: 28px; height: 28px; }
  .mast-trim { min-width: 0; }
  .mast-trim .glyph { display: none; }
  .language-control { gap: .3rem; grid-template-columns: .83rem auto; }
  .language-control .glyph { width: .82rem; height: .82rem; }
  .language-control select { font-size: .66rem; padding-right: 1.13rem; }
  .language-control::after { right: .45rem; }
  .motion-control { gap: .35rem; font-size: .58rem; }
  .motion-control input { width: .83rem; height: .83rem; }
  .motion-control span { white-space: normal; max-width: 4.9rem; }
  .hero-bat { right: 7%; }
}
@media (prefers-reduced-motion: no-preference) {
  .title-hair { animation: hair-bob 4.6s ease-in-out infinite; }
  .link-shimmer { animation: card-glint 6.8s ease-in-out infinite; }
  .hero-bat { animation: flutter 4.4s ease-in-out infinite; }
  .intro .window { animation: glass-glow 7.2s ease-in-out infinite; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 620px) {
  .link-shimmer { opacity: .58; animation-duration: 4.5s; }
  .hero-bat { animation-duration: 3.65s; }
  .hero-star, .hero-star-two { animation-duration: 3.8s; }
}
@keyframes hair-bob {
  0%,100% { transform: translate(-55%,-72%) rotate(-15deg); }
  52% { transform: translate(-54%,-79%) rotate(-7deg); }
}
@keyframes card-glint {
  0%,12% { background-position: 120% 50%; }
  57%,100% { background-position: -25% 50%; }
}
@keyframes flutter {
  0%,100% { transform: translate(0,0) rotate(-9deg) scaleY(1); }
  31% { transform: translate(-.72rem,-.46rem) rotate(8deg) scaleY(.65); }
  68% { transform: translate(.26rem,-.18rem) rotate(-12deg) scaleY(.88); }
}
@keyframes glass-glow { 0%,100% { opacity: .51; } 50% { opacity: .79; } }
