/* Concept-board composition; original studio-bird.png is preserved. */
.header{height:var(--header-height);padding-inline:5%}
.header nav{font:500 18px/1.4 var(--sans);gap:34px;text-shadow:0 1px 3px #061316cc,0 3px 14px #061316aa}
.header .brand img{filter:drop-shadow(0 1px 2px #061316bb) drop-shadow(0 3px 9px #06131699)}
.header .menu-toggle{text-shadow:0 1px 3px #061316cc,0 3px 14px #061316aa}
.header nav a{position:relative;padding:12px 0}
.header nav a:after{content:'';position:absolute;bottom:5px;left:0;right:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .2s}
.header nav a:hover:after{transform:scaleX(1)}
.hero{height:92svh;min-height:700px;max-height:1050px}
.hero-art{background-image:url('/assets/studio-valley-v2.webp');background-position:center;transform:none!important;animation:none!important}
.hero-shade{background:radial-gradient(ellipse 620px 150px at 22% calc(clamp(190px,26vh,280px) + 75px),#071c2070 0%,#071c2033 50%,transparent 100%)}
.hero-shade:after,.hero:after{display:none}
.hero-copy{padding:clamp(190px,26vh,280px) 6% 80px;max-width:900px}
.hero h1{font-size:clamp(64px,6vw,94px);text-shadow:0 3px 24px #08191b55}
.hero .embers{display:none}
/* Keep the approved medium-screen brush scale; do not enlarge the translucent band on wide screens. */
.worlds{z-index:2;--edge-height:min(8.38vw, 120px);margin-top:calc(var(--edge-height) * -.68);margin-bottom:calc(var(--edge-height) * -.65);padding-top:100px;padding-bottom:100px;
mask-image:url('/assets/brush-ivory-top-crisp.svg'),url('/assets/brush-ivory-bottom-crisp.svg'),linear-gradient(#000,#000);mask-position:top,bottom,center;mask-size:100% var(--edge-height),100% var(--edge-height),100% calc(100% - var(--edge-height) * 2 + 2px);mask-repeat:no-repeat;
-webkit-mask-image:url('/assets/brush-ivory-top-crisp.svg'),url('/assets/brush-ivory-bottom-crisp.svg'),linear-gradient(#000,#000);-webkit-mask-position:top,bottom,center;-webkit-mask-size:100% var(--edge-height),100% var(--edge-height),100% calc(100% - var(--edge-height) * 2 + 2px);-webkit-mask-repeat:no-repeat}
.studio{position:relative;isolation:isolate;display:flex;justify-content:flex-end;align-items:center;min-height:760px;overflow:hidden}
.studio-art{position:absolute;inset:0;min-height:0;z-index:-2}
.studio-art img{object-position:center 56%;width:100%;height:100%}
.studio-art:after{background:linear-gradient(90deg,transparent 25%,#0b1b1dbb 65%,#0b1b1dcc),linear-gradient(0deg,#10232688,transparent 25%)}
.studio-copy{width:48%;padding:110px 7% 90px 3%;text-shadow:0 2px 18px #07171980}
.studio-copy h2{font-size:clamp(48px,4.5vw,72px)}
.order-opening .opening-shade{background:radial-gradient(ellipse at 66% 28%,#13263266,transparent 40%),linear-gradient(#09192455,transparent 30%)}
.order-opening{z-index:3;overflow:hidden;--stone-edge:min(13.97vw, 200px);
mask-image:url('/assets/brush-order-transition-crisp.svg'),linear-gradient(#000,#000);mask-position:bottom,top;mask-size:100% var(--stone-edge),100% calc(100% - var(--stone-edge) + 1px);mask-repeat:no-repeat;
-webkit-mask-image:url('/assets/brush-order-transition-crisp.svg'),linear-gradient(#000,#000);-webkit-mask-position:bottom,top;-webkit-mask-size:100% var(--stone-edge),100% calc(100% - var(--stone-edge) + 1px);-webkit-mask-repeat:no-repeat}
.order-journey{margin-top:max(-11.18vw, -160px);z-index:2}
.journey-stage{mask:none;-webkit-mask:none}
.journey-shade{background:radial-gradient(ellipse at 20% 20%,#071523c9,transparent 46%),radial-gradient(ellipse at 83% 87%,#071523a8,transparent 37%),linear-gradient(0deg,#091924bb,transparent 25%)}
@media(max-width:900px){.header nav{gap:24px}.studio-copy{width:55%;padding-right:6%}}
@media(max-width:600px){
.header{height:88px;padding-inline:6%}.header nav{font-size:24px;gap:12px;background:#102326f5}.menu-toggle{font:500 20px var(--sans)}
.hero{min-height:760px;height:94svh;max-height:980px}.hero-art{background-position:18% center}
.hero-copy{padding:175px 7% 70px;max-width:100%}.hero h1{font-size:clamp(48px,11vw,66px)}
.hero-shade{background:radial-gradient(ellipse 330px 130px at 32% 240px,#071c2080 0%,#071c2033 50%,transparent 100%)}
.worlds{padding-top:78px;padding-bottom:80px}
.studio{min-height:850px;align-items:flex-end}.studio-copy{width:100%;padding:300px 8% 65px}.studio-copy h2{font-size:48px}
.studio-art img{object-position:32% center}.studio-art:after{background:linear-gradient(0deg,#0b1b1df5,#0b1b1dc9 40%,transparent 78%)}
}

/* Text stays within the solid area, with breathing room beyond the mask bands. */
.worlds{min-height:1000px;padding-top:calc(var(--edge-height) + 64px);padding-bottom:calc(var(--edge-height) + 80px);gap:72px}
.journey-stage #realms-title{top:calc(min(11.18vw, 160px) + 48px)}
.journey-stage #alliance-title{bottom:12%}
@media(max-width:750px){.journey-stage #realms-title{top:calc(min(11.18vw, 160px) + 60px)}.journey-stage #alliance-title{bottom:10%}}
@media(max-width:600px){.worlds{min-height:960px;padding-top:calc(var(--edge-height) + 64px);padding-bottom:calc(var(--edge-height) + 80px);gap:130px}}

/* Game introduction: consolidated layout and interaction styles. */
.worlds{justify-content:center;gap:0}
.worlds:before{background:linear-gradient(90deg,#f9f4ead9 0%,#f9f4eaaa 25%,#f9f4ea44 48%,transparent 68%)}
.worlds .world-card{width:min(100%,600px);max-width:600px;transform-style:flat;text-align:left}
.worlds .world-copy{--logo-gap:28px;--copy-indent:calc(18% + var(--logo-gap) * .82);--vertical-gap:48px;container-type:inline-size}
/* Account for the sword extending below the visible wordmark. */
.worlds .world-copy h2{margin:0 0 calc(var(--vertical-gap) - 16px - (100cqw - var(--logo-gap)) * .0858);max-width:none;line-height:0}
.game-logo-link{position:relative;display:inline-block;width:calc(100% - var(--logo-gap));border-radius:4px}
.game-logo{display:block;width:100%;height:auto;clip-path:inset(0 82.5% 0 0)}
.game-logo-wordmark{position:absolute;inset:0;display:block;width:100%;height:auto;clip-path:inset(0 0 0 17.5%);transform:translateX(var(--logo-gap));pointer-events:none}
.game-logo-link:focus-visible{outline:2px solid #a45e40;outline-offset:8px}
.worlds .world-copy>p:not(.eyebrow){max-width:none;width:calc(100% - var(--copy-indent));margin:0 0 var(--vertical-gap) var(--copy-indent);color:#152b2e;font:600 27px/1.4 var(--serif);text-wrap:balance}
/* Fill-from-left interaction, inspired by Caediel's Button Fill Effects:
   https://codepen.io/Caediel/pen/jOrRzWX
   Only the inset color layer moves; the control, label and arrow remain fixed. */
.worlds .world-copy .text-link{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:58px;margin-left:var(--copy-indent);padding:16px 26px;border:1px solid #152b2e;border-radius:999px;background:#152b2e;color:#fff8eb;box-shadow:0 4px 12px #152b2e18;font:600 18px/1.4 var(--sans);text-decoration:none;transform:none;transition:border-color .45s ease,box-shadow .45s ease}
.worlds .world-copy .text-link:before{content:"";position:absolute;inset:-1px;z-index:-1;pointer-events:none;background:#995334;transform:scaleX(0);transform-origin:left center;transition:transform .45s cubic-bezier(.22,1,.36,1)}
.worlds .world-copy .text-link span{display:block;flex:0 0 24px;width:24px;height:24px;font-size:0;background:currentColor;mask:url('/assets/arrow-right.svg') center/24px 24px no-repeat;-webkit-mask:url('/assets/arrow-right.svg') center/24px 24px no-repeat;transform:none;transition:none}
.worlds .world-copy .text-link:is(:hover,:focus-visible){border-color:#b47b53;color:#fff8eb;box-shadow:0 5px 16px #71391e24;transform:none}
.worlds .world-copy .text-link:is(:hover,:focus-visible):before{transform:scaleX(1)}
.worlds .world-copy .text-link:is(:hover,:focus-visible) span{transform:none}
.worlds .world-copy .text-link:focus-visible{outline:2px solid #995334;outline-offset:5px}
.worlds .world-copy .text-link:active{box-shadow:inset 0 2px 5px #391a2233;transform:none}
.worlds .world-copy .text-link:active:before{background:#743a25}
@media(max-width:600px){
.worlds .world-copy{--logo-gap:18px;--vertical-gap:38px}
.worlds .world-copy>p:not(.eyebrow){font-size:23px}
.worlds .world-copy .text-link{font-size:16px;gap:16px;padding:14px 20px}
.worlds:before{background:linear-gradient(90deg,#f9f4ead9,#f9f4eaaa 40%,#f9f4ea44 68%,transparent)}
}
@media(prefers-reduced-motion:reduce){.worlds .world-copy .text-link,.worlds .world-copy .text-link:before{transition:none}}

/* Compact viewports put architecture behind the copy: soften only that area. */
@media(max-width:1100px){
.worlds .world-copy>p:not(.eyebrow){position:relative;isolation:isolate;color:#10282b}
.worlds .world-copy>p:not(.eyebrow):before{content:"";position:absolute;inset:-22px -28px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at center,#f9f4eaf5 0%,#f9f4eae8 48%,#f9f4ea99 68%,transparent 100%);filter:blur(9px)}
}

/* Shared artwork motion: text, masks and controls stay attached to their section. */
@media(min-width:601px) and (pointer:fine) and (prefers-reduced-motion:no-preference){
.hero .hero-art,.worlds-art,.studio-art img,.order-opening .scene-art,.journey-stage .scene-art{top:-104px;bottom:auto;height:calc(100% + 208px);transform:translate3d(0,var(--art-y,0px),0)!important;will-change:transform}
}

@media(min-width:601px) and (max-width:1100px) and (pointer:fine) and (prefers-reduced-motion:no-preference){.hero .hero-art{background-position:28% center}}

/* All controls use sans-serif. */
.header nav,.header nav a,.menu-toggle,button,input,select,textarea,[role="button"],[role="tab"],.text-link{font-family:var(--sans)}
