/* Every page remains usable without motion or JavaScript. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-away 180ms ease both; }
::view-transition-new(root) { animation: page-arrive 360ms cubic-bezier(.22,.61,.36,1) both; }
@keyframes page-away { to { opacity: 0; } }
@keyframes page-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.reading-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 80; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--gold-2); transform: scaleX(0); transform-origin: left; }
.hero__atmosphere { position: absolute; inset: -12%; pointer-events: none; background: radial-gradient(ellipse at 70% 38%, rgba(227,201,155,.12), transparent 48%); opacity: .65; }
.silk-flow { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold-2); pointer-events: none; opacity: .28; }
.silk-flow__base { stroke-width: .65; opacity: .5; }
.silk-flow__echo { stroke-width: .4; opacity: .5; }
.silk-flow__thread { stroke-width: 1.4; stroke-dasharray: 130 870; stroke-linecap: round; }
.motion-ready .hero.motion-visible .silk-flow__thread { animation: silk-journey 18s linear infinite; }
.motion-ready .hero.motion-visible .hero__atmosphere { animation: atmosphere 12s ease-in-out infinite alternate; }
.motion-ready .hero .throne__art { translate: var(--scene-x, 0px) calc(var(--scene-y, 0px) + var(--scroll-lift, 0px)); transition: translate 650ms var(--ease); }
.motion-ready .throne__seats { translate: calc(var(--scene-x, 0px) * -.35) calc(var(--scene-y, 0px) * -.35); transition: translate 550ms var(--ease); }
.motion-ready .throne.motion-visible .tg-drape { animation: silk-drape 10s ease-in-out infinite alternate; transform-origin: 50% 0; }
.motion-ready .crown-teaser__media.motion-visible .crown-ph .orn { animation: crown-breathe 7s ease-in-out infinite alternate; }
.motion-ready .silk-rule.motion-visible { background-size: 200% 100%; animation: silk-border 12s ease-in-out infinite alternate; }
.motion-ready [data-reveal] { transition-delay: var(--reveal-delay, 0ms); }
.motion-ready [data-reveal].no-anim { transition-delay: 0ms; }
@keyframes silk-journey { to { stroke-dashoffset: -1000; } }
@keyframes atmosphere { to { transform: translate3d(-2%, 1%, 0) scale(1.04); opacity: 1; } }
@keyframes silk-drape { to { transform: scaleX(1.012) skewX(.35deg); } }
@keyframes crown-breathe { to { transform: translateY(-5px); opacity: .8; } }
@keyframes silk-border { to { background-position: 100% 0; } }
.btn, .c-card__link, .n-card__link, .quicknav a { position: relative; isolation: isolate; }
.btn, .quicknav a { overflow: hidden; }
.btn::after, .c-card__link::after, .n-card__link::after, .quicknav a::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(200px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(227,201,155,.17), transparent 75%);
  opacity: 0; transition: opacity 300ms ease;
}
.motion-ready .has-pointer::after { opacity: 1; }
.motion-ready .btn:active { transform: translateY(1px) scale(.98); }
.motion-ready .c-card__link:active, .motion-ready .n-card__link:active { transform: scale(.99); }
.motion-ready .quicknav a:hover .qn__i { transform: translateY(-4px) rotate(-4deg); }
.motion-ready .throne__panel:not([hidden]) { animation: panel-arrive 240ms var(--ease) both; }
@keyframes panel-arrive { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
.motion-ready dialog[open] { animation: dialog-arrive 260ms var(--ease) both; }
.motion-ready dialog[open]::backdrop { animation: fadeIn 240ms ease both; }
@keyframes dialog-arrive { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.motion-ready .lightbox__stage img, .motion-ready .lightbox__stage iframe { animation: fadeIn 220ms ease both; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 12px; border: 1px solid var(--line-d); border-radius: 99px; color: var(--gold-2); background: transparent; cursor: pointer; font-size: .8rem; }
.motion-toggle:hover { background: rgba(199,164,107,.08); }
.motion-toggle { display: none; }
.js .motion-toggle { display: inline-flex; }
.motion-toggle[aria-pressed="false"] svg { opacity: .5; }
.back-top { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 25; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; background: var(--jade-900); color: var(--gold-2); text-decoration: none; font-size: 1.4rem; box-shadow: 0 4px 18px rgba(0,0,0,.15); }
.back-top[hidden] { display: none; }
.motion-sleep *, .motion-sleep *::before, .motion-sleep *::after { animation-play-state: paused !important; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
.motion-off [data-reveal] { opacity: 1 !important; transform: none !important; }
.motion-off::view-transition-old(root), .motion-off::view-transition-new(root) { animation: none !important; }
@media (hover: none), (max-width: 767px) {
  .motion-ready .throne__art, .motion-ready .throne__seats { translate: none; }
  .silk-flow { opacity: .18; }
  .motion-ready .hero.motion-visible .hero__atmosphere { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .silk-flow__thread { stroke-dasharray: none; opacity: .25; }
  .reading-progress { display: none; }
}

@keyframes hero-silk-drift { from { transform: scale(1); } to { transform: scale(1.035) translateY(-8px); } }
.motion-ready .hero.motion-visible::before { animation: hero-silk-drift 16s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none !important; } }

@keyframes silk-ribbon-float { from { transform: translate3d(-1%,8px,0) rotate(-2deg); } to { transform: translate3d(2%,-12px,0) rotate(1deg); } }
.motion-ready .hero.motion-visible .hero__silk-ribbon { animation: silk-ribbon-float 14s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .hero__silk-ribbon { animation: none !important; } }

/* Independent shallow depth, shared by every titleholder. */
.motion-ready .throne .throne__seats { translate: none; }
.motion-ready .throne .seat__honor-frame { translate: calc(var(--scene-x,0px) * .12) calc(var(--scene-y,0px) * .12); transition: translate 700ms ease-out; }
.motion-ready .throne .seat__chair { translate: calc(var(--scene-x,0px) * .22) calc(var(--scene-y,0px) * .22); transition: translate 650ms ease-out; }
.motion-ready .throne .seat__img { translate: calc(var(--scene-x,0px) * -.5) calc(var(--scene-y,0px) * -.35); transition: translate 500ms ease-out; }
.motion-off .throne .seat__img, .motion-off .throne .seat__chair, .motion-off .throne .seat__honor-frame { translate: none; }
@media (prefers-reduced-motion: reduce), (hover:none) {
  .motion-ready .throne .seat__img, .motion-ready .throne .seat__chair, .motion-ready .throne .seat__honor-frame { translate: none; }
}
.motion-ready .throne .seat__frame-base { translate: calc(var(--scene-x,0px) * .12) calc(var(--scene-y,0px) * .12); transition: translate 700ms ease-out; }
.motion-off .throne .seat__frame-base { translate: none; }
@media (prefers-reduced-motion: reduce), (hover:none) { .motion-ready .throne .seat__frame-base { translate: none; } }

@keyframes jewel-float { from { transform: translateY(0) rotate(-.5deg); } to { transform: translateY(-7px) rotate(.5deg); } }
@keyframes jewel-spark { 0%,8%,100% { opacity: 0; transform: scale(.35); } 3% { opacity: .95; transform: scale(1); } }
.motion-ready .crown-jewel > img, .motion-ready .crown-jewel > .crown-viewer__img { animation: jewel-float 7s ease-in-out infinite alternate; translate: var(--jewel-x,0px) var(--jewel-y,0px); transition: translate 650ms ease-out; }
.motion-ready .crown-sparkles i { animation: jewel-spark 9s ease-in-out var(--spark-delay) infinite; }
.motion-off .crown-jewel > img { translate: none; }
.motion-sleep .crown-jewel > img, .motion-sleep .crown-sparkles i { animation-play-state: paused; }
@media (prefers-reduced-motion:reduce) { .crown-jewel > img { animation: none !important; translate: none !important; } .crown-sparkles { display: none; } }

/* Dense, staggered gemstone glints on both crown presentations. */
.motion-ready .crown-sparkles i{animation:royal-twinkle 4.2s ease-in-out var(--spark-delay) infinite;width:clamp(10px,1.5vw,21px);height:clamp(10px,1.5vw,21px);background:#fffbea;filter:drop-shadow(0 0 8px #fff0a6)}
.crown-sparkles::before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 35%,#ffebba35,transparent 52%),radial-gradient(ellipse at 30% 65%,#a5ffe42a,transparent 32%);mix-blend-mode:screen;animation:royal-radiance 4.8s ease-in-out infinite}
.crown-sparkles i:nth-child(1){left:49%;top:15%;--spark-delay:0.0s}
.crown-sparkles i:nth-child(2){left:25%;top:50%;--spark-delay:-0.47s}
.crown-sparkles i:nth-child(3){left:76%;top:56%;--spark-delay:-0.94s}
.crown-sparkles i:nth-child(4){left:38%;top:68%;--spark-delay:-1.41s}
.crown-sparkles i:nth-child(5){left:65%;top:30%;--spark-delay:-1.88s}
.crown-sparkles i:nth-child(6){left:17%;top:65%;--spark-delay:-2.35s}
.crown-sparkles i:nth-child(7){left:85%;top:65%;--spark-delay:-2.82s}
.crown-sparkles i:nth-child(8){left:31%;top:35%;--spark-delay:-3.29s}
.crown-sparkles i:nth-child(9){left:58%;top:57%;--spark-delay:-3.76s}
.crown-sparkles i:nth-child(10){left:45%;top:80%;--spark-delay:-4.23s}
.crown-sparkles i:nth-child(11){left:69%;top:77%;--spark-delay:-4.7s}
.crown-sparkles i:nth-child(12){left:22%;top:77%;--spark-delay:-5.17s}
.crown-sparkles i:nth-child(13){left:78%;top:37%;--spark-delay:-5.64s}
.crown-sparkles i:nth-child(14){left:40%;top:25%;--spark-delay:-6.11s}
.crown-sparkles i:nth-child(15){left:57%;top:38%;--spark-delay:-6.58s}
.crown-sparkles i:nth-child(16){left:53%;top:70%;--spark-delay:-7.05s}
.motion-off .crown-sparkles{display:none}.motion-sleep .crown-sparkles::before{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.crown-sparkles{display:none}}
