/* Homepage only. User-approved cream/yellow cartoon direction. */
body[data-page=home]{--home-ink:#211f19;--home-muted:#50554f;--home-yellow:#f5cf5d;--home-edge:#b89035;--home-paper:#fffaf0;--home-rose:#f5cf5d;--home-rose-edge:#b89035;--home-brand-blue:#007ac5;--home-brand-red:#c3443e;--home-red-edge:#99342f;--home-cream:#fff8e8;background:var(--home-paper);color:var(--home-ink)}
body[data-page=home] .app-shell{padding-top:126px;background:var(--home-paper) url('assets/home-wave-pattern.svg') repeat;max-width:none}
body[data-page=home] .site-header{inset:30px 3.3% auto;height:82px;max-width:1720px;padding:12px 4%;gap:30px;border-radius:34px;background:#fffdf6;border:1px solid #f5e7d3;box-shadow:0 4px 0 #eadab94d;backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--home-ink)}
body[data-page=home] .site-header .brand img{width:166px;max-height:56px;filter:none}
body[data-page=home] .site-header nav{margin:auto;gap:28px}
body[data-page=home] .site-header nav a{font:700 19px LinkMaHome,SceneSans,sans-serif;min-height:44px;padding:10px 26px;color:var(--home-ink);border:2px solid transparent;border-radius:26px;transition:transform 150ms ease,background 150ms ease}
body[data-page=home] .site-header nav a:hover{background:#fff5d6;border-color:#d7ad44;color:var(--home-ink)}
body[data-page=home] .site-header nav a[aria-current]{background:var(--home-yellow);color:var(--home-ink);border-color:#dfb241;box-shadow:0 3px 0 var(--home-edge)}
body[data-page=home] .site-header .nav-indicator{display:none}
body[data-page=home] .language-control{margin:0;gap:10px}
body[data-page=home] .language-control svg{display:block;width:29px;height:29px;stroke:var(--home-ink);stroke-width:2}
body[data-page=home] .language-control select{font:700 17px LinkMaHome,SceneSans,sans-serif;max-width:122px;color:var(--home-ink)}
body[data-page=home] #home{--navigation-width:310px;height:calc(100svh - 142px);min-height:660px;background:transparent;overflow:hidden}
body[data-page=home] #home::after{display:none}
body[data-page=home] .temple-selector{inset:28px auto 90px 8px;width:var(--navigation-width);z-index:4}
body[data-page=home] .selector-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body[data-page=home] .temple-cards{overflow:visible;margin:20px 0;isolation:isolate}
body[data-page=home] .temple-cards::before{display:none}
body[data-page=home] .temple-selector .temple-card{width:246px;min-height:78px;grid-template-columns:66px minmax(0,1fr);grid-template-rows:auto auto;gap:0 16px;padding:8px 12px;border:2px solid transparent;border-radius:48px;color:var(--home-ink);background:#fff5d6;scale:1;outline:none;box-shadow:none;transition:background 150ms ease}
body[data-page=home] .temple-selector .temple-card:hover{background:#ffefbe;border-color:transparent;scale:1}
body[data-page=home] .temple-selector .temple-card[aria-selected=true]{padding:8px 12px;background:#f7dfa0;border:2px solid #d7ad44;box-shadow:none;scale:1}
body[data-page=home] .temple-card[aria-selected=true]::after{display:block;position:absolute;inset:50% auto auto -9px;width:13px;height:13px;margin-top:-7px;border-radius:50%;background:var(--home-brand-red);border:3px solid var(--home-paper)}
body[data-page=home] .card-picture,body[data-page=home] .card-country,body[data-page=home] .card-theme{display:none!important}
body[data-page=home] .card-flag{grid-column:1;grid-row:1/3;align-self:center;display:grid;place-items:center;width:62px;height:62px;border:3px solid var(--home-ink);border-radius:50%;background:#fffdf4;padding:3px}
body[data-page=home] .card-flag svg{width:100%;height:100%;border-radius:50%;stroke:none;overflow:hidden;fill:none}
body[data-page=home] .card-place{grid-column:2;grid-row:1;align-self:end;font:700 18px/1.35 LinkMaHome,SceneSans,sans-serif;white-space:nowrap;letter-spacing:0;color:var(--home-ink)}
body[data-page=home] .temple-cards .card-name,html[lang=en] body[data-page=home] .temple-cards .card-name{grid-column:2;grid-row:2;align-self:start;min-height:0;margin:4px 0 0;font:500 14px/1.35 SceneSans,sans-serif;color:var(--home-muted);white-space:normal;text-wrap:initial}
body[data-page=home] .temple-card[aria-selected=true] .card-name{color:var(--home-ink)}
body[data-page=home] .temple-card[aria-selected=true] .card-place{color:var(--home-ink)}
body[data-page=home] .wheel-controls{position:absolute;inset:0 auto 0 53px;display:block;margin:0;padding:0;pointer-events:none}
body[data-page=home] .wheel-controls p{display:none}
body[data-page=home] .wheel-controls button{position:absolute;left:0;width:42px;height:42px;background:#fff8e8;border:1px solid #e5c78a;color:var(--home-ink);pointer-events:auto;box-shadow:0 2px 0 #e5c78a}
body[data-page=home] #temple-prev{top:-21px}
body[data-page=home] #temple-next{bottom:-22px}
body[data-page=home] .wheel-controls svg{width:22px;height:22px;stroke-width:2.5}
body[data-page=home] .world{background:transparent}
body[data-page=home] .world .scene-frame{inset:0;background:transparent;z-index:0;pointer-events:none}
body[data-page=home] .world .scene-frame::after{display:none}
body[data-page=home] .kunshan-stone-label{position:absolute;z-index:2;transform:translate(-50%,-50%);writing-mode:vertical-rl;text-orientation:upright;font-family:LinkMaHome,SceneSans,sans-serif;font-weight:900;line-height:1;letter-spacing:.2em;color:var(--home-ink);pointer-events:none}
body[data-page=home] .kunshan-stone-label[hidden]{display:none}
body[data-page=home] .world .scene-art{inset:6% 0 auto auto;width:58%;height:85%;aspect-ratio:auto;object-fit:contain;object-position:center;mask-image:none;transform:none;filter:none}
body[data-page=home] .world[data-scene=kunshan] .scene-art{right:1%;width:56%;top:0;height:94%;object-position:center bottom}
body[data-page=home] .world .temple-info{z-index:1;left:calc(var(--navigation-width) + 48px);top:22%;width:30%;max-width:480px;display:flex;flex-direction:column;align-items:flex-start}
body[data-page=home] .world .temple-info h1{font:900 clamp(35px,3.5vw,62px)/1.25 LinkMaHome,SceneSans,sans-serif;letter-spacing:0;color:var(--home-ink);text-wrap:initial;order:1}
body[data-page=home] .world .temple-info h1 span{display:block;margin:0}
body[data-page=home] .world .temple-english{order:0;display:flex;align-items:center;gap:15px;margin:0 0 25px;max-width:310px;color:#515d59;font-size:14px;letter-spacing:.1em;line-height:1.6;white-space:pre-line}
body[data-page=home] .temple-english::before{display:none}
body[data-page=home] .world .location{display:none}
body[data-page=home] .world .temple-description{order:2;position:relative;padding-top:24px;margin:20px 0 22px;max-width:370px;color:var(--home-muted);font-size:19px;line-height:1.7;font-weight:600}
body[data-page=home] .world .temple-description::before{content:"";position:absolute;top:0;left:0;width:42px;height:4px;border-radius:2px;background:var(--home-ink)}
body[data-page=home] .world .scene-features{display:none}
body[data-page=home] .world #worship{order:3;float:none;margin:0 0 10px;min-width:245px;min-height:68px;gap:27px;border:3px solid var(--home-ink);border-radius:38px;background:var(--home-yellow);box-shadow:0 5px 0 var(--home-edge),0 8px 0 var(--home-ink);color:var(--home-ink);font:700 27px LinkMaHome,SceneSans,sans-serif;letter-spacing:0;padding:10px 26px;transition:transform 120ms ease,box-shadow 120ms ease}
body[data-page=home] .world #worship::before,body[data-page=home] .world #worship::after{display:none}
body[data-page=home] .world #worship svg{width:34px;height:34px;stroke-width:2.5;fill:none}
body[data-page=home] .world #worship:hover{background:var(--home-yellow);transform:translateY(-3px) scale(1.035)}
body[data-page=home] .world #worship:active{transform:translateY(5px);box-shadow:0 0 0 var(--home-edge),0 3px 0 var(--home-ink)}
body[data-page=home] .world #detail{order:4;margin:16px 0 0;min-height:44px;padding:5px 0;font:700 18px LinkMaHome,SceneSans,sans-serif;color:var(--home-ink);gap:15px;white-space:nowrap}
body[data-page=home] .world #detail svg{width:26px;height:26px;color:#ac7623;stroke-width:2}
body[data-page=home] .world .ritual-caption{display:none;order:5;margin:10px 0 0 3px;color:#686553;font-size:11px}
body[data-page=home] .world .scene-progress{display:none}
body[data-page=home] footer{background:var(--home-paper);border-color:#eddcb5;color:#605e50}
body[data-page=home] :is(button,a,select):focus-visible{outline:3px solid #b89035;outline-offset:5px}
html[lang=en] body[data-page=home] .world .temple-info h1{font:700 clamp(30px,2.7vw,47px)/1.18 LinkMaHome,SceneSans,sans-serif;letter-spacing:0}
html[lang=en] body[data-page=home] .card-place{font-size:14px;white-space:normal}
html[lang=en] body[data-page=home] .site-header nav a{font-size:15px;padding-inline:18px}
html[lang=en] body[data-page=home] .world .temple-description{font-size:17px;line-height:1.6}
html[lang=en] body[data-page=home] .world #worship{font-size:22px}
@media(min-width:901px) and (max-width:1350px){
 body[data-page=home] #home{--navigation-width:260px}
 body[data-page=home] .site-header{padding-inline:3%;gap:15px}
 body[data-page=home] .site-header .brand img{width:135px}
 body[data-page=home] .site-header nav{gap:12px}
 body[data-page=home] .site-header nav a{font-size:16px;padding-inline:18px}
 body[data-page=home] .language-control select{font-size:14px;max-width:105px}
 body[data-page=home] .temple-selector{left:0}
 body[data-page=home] .temple-selector .temple-card{width:224px;grid-template-columns:56px minmax(0,1fr);gap:0 11px;padding-inline:8px}
 body[data-page=home] .card-flag{width:54px;height:54px}
 body[data-page=home] .card-place{font-size:16px}
 body[data-page=home] .world .temple-info{left:calc(var(--navigation-width) + 22px);width:29%}
 body[data-page=home] .world .temple-info h1{font-size:clamp(34px,3.4vw,46px)}
 body[data-page=home] .world .temple-description{font-size:16px;max-width:285px}
 body[data-page=home] .world #worship{min-width:205px;min-height:60px;font-size:23px}
 body[data-page=home] .world #detail{font-size:16px;margin-left:0}
 body[data-page=home] .world .scene-art{width:53%}
 body[data-page=home] .world[data-scene=kunshan] .scene-art{width:51%;right:0}
}
@media(min-width:901px) and (max-height:800px){
 body[data-page=home] .world .temple-info{top:15%}
 body[data-page=home] .world .temple-english{margin-bottom:18px}
 body[data-page=home] .world .temple-description{padding-top:19px;margin-top:15px;margin-bottom:18px;font-size:16px}
 body[data-page=home] .world #worship{min-height:58px;font-size:23px}
}
@media(max-width:900px){
 body[data-page=home] .app-shell{padding-top:132px}
 body[data-page=home] .site-header{inset:12px 14px auto;height:108px;display:grid;grid-template-columns:1fr auto;grid-template-rows:44px 40px;gap:4px 10px;padding:9px 16px;border-radius:25px}
 body[data-page=home] .site-header .brand img{width:112px;height:43px;max-height:none}
 body[data-page=home] .site-header nav{grid-row:2;grid-column:1/3;justify-content:center;gap:12px;margin:0}
 body[data-page=home] .site-header nav a{min-height:36px;font-size:14px;padding:6px 18px}
 body[data-page=home] .language-control{grid-column:2;grid-row:1;gap:5px}
 body[data-page=home] .language-control svg{width:22px;height:22px}
 body[data-page=home] .language-control select{font-size:13px;max-width:104px}
 body[data-page=home] #home{display:flex;flex-direction:column;height:auto;min-height:0;padding:8px 20px 50px;gap:10px}
 
 body[data-page=home] .temple-selector{position:relative;inset:auto;width:100%;order:0;padding:0;margin:0;z-index:2}
 body[data-page=home] .temple-cards{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;margin:0;padding:8px 4px 14px;touch-action:pan-x;scroll-padding:4px}
 body[data-page=home] .temple-cards::before{display:none}
 body[data-page=home] .temple-selector .temple-card,body[data-page=home] .temple-selector .temple-card[aria-selected=true]{display:grid;position:relative;inset:auto;flex:0 0 225px;width:225px;min-height:72px;grid-template-columns:54px minmax(0,1fr);padding:8px 12px;gap:0 12px;transform:none;outline:none;border-radius:40px}
 body[data-page=home] .card-flag{width:52px;height:52px}
 body[data-page=home] .card-place{font-size:15px}
 body[data-page=home] .temple-cards .card-name{font-size:12px}
 body[data-page=home] .wheel-controls{display:none}
 body[data-page=home] .world,html[lang=en] body[data-page=home] .world{position:relative;order:1;display:flex;gap:6px;height:auto;min-height:0}
 body[data-page=home] .world .scene-frame{position:relative;inset:auto;z-index:0;width:100%;height:auto;aspect-ratio:1.28;margin:0}
 body[data-page=home] .world[data-scene=kunshan] .scene-frame{aspect-ratio:1.12}
 body[data-page=home] .world .scene-art,body[data-page=home] .world[data-scene=kunshan] .scene-art{inset:0;width:100%;height:100%;object-fit:contain;object-position:center;transform:none}
 body[data-page=home] .world .temple-info{position:relative;inset:auto;width:100%;max-width:520px;margin:0 auto;display:flex}
 body[data-page=home] .world .temple-english{font-size:11px;margin:7px 0 16px;gap:12px}
 body[data-page=home] .temple-english::before{width:60px;height:32px}
 body[data-page=home] .world .temple-info h1{font-size:clamp(30px,6vw,44px);line-height:1.3}
 body[data-page=home] .world .temple-info h1 span{display:block;margin:0}
 body[data-page=home] .world .temple-description{margin:16px 0 22px;padding-top:18px;max-width:none;font-size:15px;line-height:1.7}
 body[data-page=home] .world #worship{min-height:58px;min-width:210px;font-size:23px;margin:0 0 8px;float:none;align-self:flex-start;margin-inline:0}
 body[data-page=home] .world #detail{margin:12px 0 0;font-size:15px}
 body[data-page=home] .world .ritual-caption{font-size:10px}
 html[lang=en] body[data-page=home] .site-header nav a{font-size:12px;padding:7px 12px}
 html[lang=en] body[data-page=home] .world .temple-info h1{font-size:32px}
 html[lang=en] body[data-page=home] .world .temple-description{font-size:15px}
}
@media(prefers-reduced-motion:reduce){body[data-page=home] .world .scene-art{transform:none}body[data-page=home] .world #worship:hover{transform:none}}


body[data-page=home] ::selection{background:#f5cf5d;color:#211f19}
body[data-page=home] .temple-cards{scrollbar-color:#b89035 #fff0df;scrollbar-width:thin}

/* One coordinate space for the cleaned base and independent animation sprites. */
body[data-page=home] .scene-visual{position:absolute;inset:0;isolation:isolate}
body[data-page=home] .kunshan-layers{position:absolute;z-index:1;pointer-events:none;overflow:visible;isolation:isolate}
body[data-page=home] .kunshan-layers[hidden]{display:none}
body[data-page=home] .kunshan-layer{position:absolute;display:block;overflow:visible;pointer-events:none}
body[data-page=home] .world.layers-ready[data-scene=kunshan] #scene{opacity:0;visibility:hidden;transition:none}

/* The line follows every flag center, with the same parametric arc as the wheel. */
body[data-page=home] .temple-arc{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:-1;stroke:#e5c78a;stroke-width:1;fill:none;pointer-events:none}
body[data-page=home] .temple-arc path{vector-effect:non-scaling-stroke}
body[data-page=home] .temple-selector .temple-card:focus-visible{outline:2px solid #b89035;outline-offset:3px}
body[data-page=home] .temple-card[aria-selected=true]::after{inset:50% auto auto -7px}
body[data-page=home] .temple-landmark-row{display:flex;align-items:center;gap:15px;order:0;margin:0 0 25px;min-height:50px}
body[data-page=home] .temple-landmark-row .temple-english{margin:0}
body[data-page=home] .temple-landmark{display:block;flex:none;width:94px;height:50px;color:#a17b35}
body[data-page=home] .temple-landmark svg{width:100%;height:100%;stroke-width:2;fill:none}
body[data-page=home] .kunshan-plaque{position:absolute;z-index:3;transform:translate(-50%,-50%);color:#f8d16a;font-weight:700;line-height:1.2;letter-spacing:.1em;white-space:nowrap;text-align:center;pointer-events:none}
body[data-page=home] footer{position:relative;z-index:5;margin-top:0;padding:204px 5.5% 24px;min-height:246px;border:0;background:url('assets/home-waves-yellow-v4.svg') center top/1760px 188px repeat-x,linear-gradient(to bottom,var(--home-paper) 182px,#f5cf5d 182px);color:#453a24;font-size:11px;align-items:center;isolation:isolate}
body[data-page=home] footer a{color:inherit}
body[data-page=home] footer::after{display:none}
@media(min-width:901px) and (max-width:1350px){body[data-page=home] .wheel-controls{left:38px}}
@media(max-width:900px){
 body[data-page=home] .temple-arc{display:none}
 body[data-page=home] .temple-landmark-row{gap:12px;min-height:32px;margin:7px 0 16px}
 body[data-page=home] .temple-landmark{width:60px;height:32px}
 body[data-page=home] .temple-landmark-row .temple-english{margin:0}
 body[data-page=home] footer{margin-top:0;padding:159px 24px 22px;min-height:216px;display:flex;flex-wrap:wrap;gap:10px 12px;background:url('assets/home-waves-yellow-v4.svg') center top/1320px 141px repeat-x,linear-gradient(to bottom,var(--home-paper) 136.5px,#f5cf5d 136.5px)}
 body[data-page=home] footer::after{top:72px}
 body[data-page=home] footer>span:nth-child(2){order:3;flex-basis:100%}
}

/* Registered artwork moves within its own illustration coordinate system. */
.kunshan-layer .sprite-art{transform-box:fill-box;transform-origin:center}
.kunshan-layer[data-layer^=cloud-] .sprite-art{animation:cloud-drift 6s ease-in-out infinite alternate}
.kunshan-layer[data-layer=cloud-left] .sprite-art{animation-duration:5.2s;animation-delay:-2s}
.kunshan-layer[data-layer=cloud-front] .sprite-art{animation-duration:6.4s;animation-delay:-3s;animation-direction:alternate-reverse}
.kunshan-layer[data-layer=cloud-high-left] .sprite-art{animation-duration:6.8s;animation-delay:-4s}
.kunshan-layer[data-layer=cloud-high-right] .sprite-art{animation-duration:5.8s;animation-delay:-1s;animation-direction:alternate-reverse}
.kunshan-layer[data-layer=bird-left] .sprite-art{animation:bird-left-flight 4.2s ease-in-out infinite}
.kunshan-layer[data-layer=bird-right] .sprite-art{animation:bird-right-flight 4.8s ease-in-out infinite;animation-delay:-1.6s}
@keyframes cloud-drift{0%{transform:translate(-22%,8%) rotate(-3deg)}25%{transform:translate(-13%,-7%) rotate(-1deg)}50%{transform:translate(0,-17%) rotate(2deg)}75%{transform:translate(14%,-10%) rotate(3deg)}100%{transform:translate(24%,7%) rotate(0)}}
@keyframes bird-left-flight{0%,100%{transform:translate(-12%,8%) rotate(-8deg)}25%{transform:translate(10%,-20%) rotate(1deg)}50%{transform:translate(36%,-32%) rotate(8deg)}75%{transform:translate(13%,-8%) rotate(-2deg)}}
@keyframes bird-right-flight{0%,100%{transform:translate(12%,-14%) rotate(7deg)}25%{transform:translate(-12%,-30%) rotate(-2deg)}50%{transform:translate(-40%,4%) rotate(-9deg)}75%{transform:translate(-8%,18%) rotate(1deg)}}
.kunshan-layers.motion-paused .sprite-art,.kunshan-layers.document-hidden .sprite-art,.kunshan-layers.motion-paused .lion-expression,.kunshan-layers.document-hidden .lion-expression{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.kunshan-layer .sprite-art,.kunshan-layer .lion-expression{animation:none!important}}

.kunshan-layer .lion-expression{opacity:0;animation:lion-mouth 6.6s ease-in-out infinite}
@keyframes lion-mouth{0%,44%,76%,100%{opacity:0}50%,69%{opacity:1}}

/* Fit the desktop landing view into the viewport; preserve all three full circular rows. */
@media(min-width:901px){
 body[data-page=home] .app-shell{padding-top:104px}
 body[data-page=home] .site-header{top:18px;height:72px;padding-block:8px}
 body[data-page=home] .site-header .brand img{max-height:50px}
 body[data-page=home] #home{height:calc(100svh - 286px);min-height:470px}
 body[data-page=home] .temple-selector{top:12px;bottom:38px}
 body[data-page=home] .world .temple-info{top:10%}
 body[data-page=home] .temple-landmark-row{margin-bottom:16px}
 body[data-page=home] .world .temple-description{margin-top:14px;margin-bottom:18px;padding-top:18px}
 body[data-page=home] .world #detail{margin-top:10px}
 body[data-page=home] footer{padding:148px 5.5% 16px;min-height:182px;background:url('assets/home-waves-yellow-v4.svg') center top/1232px 131.6px repeat-x,linear-gradient(to bottom,var(--home-paper) 127.4px,#f5cf5d 127.4px)}
}
@media(min-width:901px) and (max-height:820px){
 body[data-page=home] .world .temple-info{top:2%}
 body[data-page=home] .temple-landmark-row{min-height:36px;margin-bottom:10px}
 body[data-page=home] .temple-landmark{height:36px;width:68px}
 body[data-page=home] .world .temple-info h1{font-size:clamp(32px,3.2vw,48px)}
 body[data-page=home] .world .temple-description{font-size:15px;line-height:1.6;margin:12px 0 14px;padding-top:14px}
 body[data-page=home] .world #worship{min-height:52px;font-size:22px}
 body[data-page=home] .world #detail{margin-top:5px}
}
@media(max-width:900px){
 body[data-page=home] .app-shell{padding-top:116px}
 body[data-page=home] .site-header{top:8px;height:100px;grid-template-rows:40px 36px}
 body[data-page=home] #home{padding:0 20px 14px;gap:0}
 body[data-page=home] .temple-cards{padding-block:4px 8px}
 body[data-page=home] .temple-selector .temple-card,body[data-page=home] .temple-selector .temple-card[aria-selected=true]{min-height:66px}
 body[data-page=home] .world .scene-frame,body[data-page=home] .world[data-scene=kunshan] .scene-frame{height:clamp(200px,28svh,290px);aspect-ratio:auto;flex:none}
 body[data-page=home] .temple-landmark-row{min-height:24px;margin:0 0 6px;gap:10px}
 body[data-page=home] .temple-landmark{width:48px;height:26px}
 body[data-page=home] .world .temple-english{margin:0;font-size:10px}
 body[data-page=home] .world .temple-info h1{font-size:26px;line-height:1.3}
 body[data-page=home] .world .temple-info h1 span{display:inline;margin-left:8px}
 body[data-page=home] .world .temple-description{font-size:14px;line-height:1.65;padding-top:10px;margin:10px 0 12px}
 body[data-page=home] .world #worship{min-height:48px;min-width:180px;font-size:21px;margin-bottom:0}
 body[data-page=home] .world #detail{min-height:36px;margin:6px 0 0;font-size:14px}
 body[data-page=home] footer{min-height:172px;padding:112px 24px 16px;gap:8px 12px;background:url('assets/home-waves-yellow-v4.svg') center top/880px 94px repeat-x,linear-gradient(to bottom,var(--home-paper) 91px,#f5cf5d 91px)}
}

/* Complete texture in the first viewport; fine print follows below it. */
@media(min-width:901px){
 body[data-page=home] #home{height:calc(100svh - 254.4px);min-height:460px}
 body[data-page=home] .world{height:100%}
 body[data-page=home] .temple-selector{bottom:34px}
 body[data-page=home] footer{padding-top:174px;min-height:218px;background-size:1408px 150.4px,auto;background-image:url('assets/home-waves-yellow-v4.svg'),linear-gradient(to bottom,transparent 145.6px,#f5cf5d 145.6px)}
 body[data-page=home] .world .scene-art,body[data-page=home] .world[data-scene=kunshan] .scene-art{left:auto;right:1%;width:52%;top:0;height:100%;object-position:center bottom}
 body[data-page=home] .world .temple-info{width:27%;max-width:410px;left:calc(var(--navigation-width) + 24px + clamp(16px, 8vw - 56px, 80px))}
 body[data-page=home] .world .temple-info h1{overflow-wrap:anywhere}
}
@media(max-width:900px){
 body[data-page=home] #home{min-height:calc(100svh - 221.28px)}
 body[data-page=home] footer{padding-top:130px;min-height:190px;background-size:985.6px 105.28px,auto;background-image:url('assets/home-waves-yellow-v4.svg'),linear-gradient(to bottom,transparent 101.92px,#f5cf5d 101.92px)}
}
body[data-page=home] footer,body[data-page=home] footer a{color:var(--home-edge)}
body[data-page=home] .site-header .brand img{filter:none}

/* Shared scene choreography: the pedestal stays planted throughout the hop. */
.destination-layers{position:absolute;pointer-events:none}
.destination-layers .kunshan-layer[data-layer^=cloud-]{z-index:-1}
.destination-layers .kunshan-layer[data-layer^=bird-]{z-index:2}
.destination-layers[hidden]{display:none}
.lion-body{transform-box:view-box;transform-origin:362px 614px;animation:lion-hop 11s linear infinite}
.lion-state{opacity:0;animation:lion-rest 11s steps(1,end) infinite}
.lion-state[data-state="1"]{animation-name:lion-wake}
.lion-state[data-state="2"]{animation-name:lion-cheer}
@keyframes lion-hop{0%,65%,85%,100%{transform:translateY(0) scale(1)}67%{transform:translateY(9px) scale(1.06,.9)}70%{transform:translateY(-105px) scale(.96,1.04)}73%{transform:translateY(-125px) scale(1)}77%{transform:translateY(0) scale(1.08,.9)}80%{transform:translateY(-10px) scale(.98,1.03)}83%{transform:translateY(0) scale(1)}}
@keyframes lion-rest{0%,62%,87%,100%{opacity:1}63%,86%{opacity:0}}
@keyframes lion-wake{0%,62%,69%,83%,100%{opacity:0}63%,68%,84%,86%{opacity:1}}
@keyframes lion-cheer{0%,68%,84%,100%{opacity:0}69%,83%{opacity:1}}
:is(.kunshan-layers,.destination-layers):is(.motion-paused,.document-hidden) :is(.sprite-art,.lion-body,.lion-state){animation-play-state:paused}
body[data-page=home] footer>span:first-child{font-size:14px;font-weight:600;letter-spacing:.025em}
@media(prefers-reduced-motion:reduce){.lion-body,.lion-state,.destination-layers .sprite-art{animation:none!important}.lion-state[data-state="0"]{opacity:1}.lion-state[data-state="1"],.lion-state[data-state="2"]{opacity:0}}

/* Give the San Francisco illustration a little more presence. */
@media(min-width:901px){
 body[data-page=home] .world[data-scene=usa] .scene-art{width:57.2%;height:110%;top:-10%;right:0}
}
@media(max-width:900px){
 body[data-page=home] .world[data-scene=usa] .scene-frame{height:clamp(220px,30.8svh,319px)}
}

.destination-layers .kunshan-layer[data-layer=cloud-front]{z-index:2}

/* Mobile reading order and the same square illustration slot as inner pages. */
@media(max-width:900px){
 body[data-page=home] .world,html[lang=en] body[data-page=home] .world{flex-direction:column;gap:28px}
 body[data-page=home] .world .temple-info{order:0}
 body[data-page=home] .world .scene-frame,
 body[data-page=home] .world[data-scene] .scene-frame{order:1;width:100%;max-width:560px;height:auto;aspect-ratio:1;margin:0 auto;flex:none}
}

/* Keep mobile copy aligned with the selected destination and above the artwork. */
@media(max-width:900px){
 body[data-page=home] .world .temple-info{align-self:flex-start;max-width:none;width:100%;margin:0;padding:0 4px;box-sizing:border-box}
 body[data-page=home] .world .temple-info h1{margin-top:8px}
}

/* Balance mobile copy spacing between destination navigation and artwork. */
@media(max-width:900px){
 body[data-page=home] .world .temple-info{margin-top:28px}
}
