/* Painted section joins. The generated luminance texture is only a border mask;
   artwork retains its numbered registry entry and all copy remains HTML. */
:root{--paper:#f5e6d3;--ink:#170d17}
main{overflow:clip}.page-shell{width:min(1180px,calc(100% - 88px))}
h2,.section-intro h2{font-size:clamp(34px,4.15vw,62px);font-weight:600;line-height:1.02}
.section-intro{grid-template-columns:1.15fr .85fr;gap:55px;margin-bottom:30px}.section-intro p{font-size:14px}.eyebrow{font-size:12px;margin-bottom:10px}
.paper:before,.paper:after{display:none}.hero,.legacy,.wide-scene,.panorama,.family-card,.gallery-grid>div,.world-grid .image-block,.world-grid article:nth-child(even) .image-block{clip-path:none;mask-image:none;-webkit-mask-image:none;transform:none}
.motion-ready .motion-section{opacity:1;transform:none;transition:none}.image-block:not(.hero):not(.legacy):hover>img{transform:none}
.site-header{grid-template-columns:145px 1fr 145px;padding:20px 4vw;gap:25px}.site-header .brand img{width:145px;height:85px;object-fit:contain}.site-header nav{gap:25px}
.hero{height:760px;min-height:660px;max-height:none;z-index:1}.hero>img{animation:none;transform:none;object-position:center}.hero-shade{background:linear-gradient(90deg,rgba(22,9,17,.76),rgba(22,9,17,.22) 50%,transparent 74%)}
.hero-content{padding-top:155px}.hero-logo{width:240px;margin:0 0 16px;height:auto}.hero-content>.eyebrow{display:none}.hero h1{font-size:clamp(46px,5.6vw,82px);max-width:670px;line-height:.98}.hero h1 em{color:var(--bone)}.hero-copy{font-size:16px;margin-top:20px}.hero-rule{margin-top:16px;max-width:420px}.scroll-cue{bottom:34px}.hero>.image-zoom-button{bottom:50px}
/* Broad painted paper edge bridges the hero into the illustrated strip. */
.hero:after,.journey:after,.ecosystem:after,.legacy:after{content:"";position:absolute;left:0;bottom:-1px;width:100%;height:54px;z-index:5;background:var(--paper);mask:url('assets/brush-mask.png') center/100% 100% no-repeat;mask-mode:luminance;pointer-events:none}
.manifesto{padding:0;min-height:0;height:350px;overflow:visible;background:var(--paper);z-index:2}
.transition-hunter{inset:0;width:100%;max-width:none;height:100%;margin:0;transform:none;filter:none;opacity:1;mask:none;-webkit-mask:none;overflow:hidden;z-index:0}
.transition-hunter>img{object-fit:fill;transform:none}.transition-hunter:after{content:"";position:absolute;inset:auto 0 0;height:40px;background:linear-gradient(transparent,var(--ink));pointer-events:none}
.manifesto .split{position:relative;z-index:2;display:grid;grid-template-columns:42% 29%;gap:30px;padding-top:34px;align-items:start;pointer-events:none}.manifesto h2{font-size:clamp(31px,3.6vw,52px)}.manifesto-copy{grid-column:auto;border:0;padding:10px 0 0;max-width:340px;font-size:14px;line-height:1.45}.manifesto-copy p+p{margin-top:9px}.transition-hunter>.image-debug-id{left:85%;top:41%}.transition-hunter>.image-zoom-button{right:3%;bottom:68px}
.journey{padding:28px 0 245px;background:var(--ink);min-height:515px;isolation:isolate;position:relative;overflow:hidden}.journey:before{display:none}.journey>.page-shell{position:static}.journey .section-intro,.hunt-steps{position:relative;z-index:2}.journey .section-intro h2{white-space:nowrap}.hunt-steps{margin:28px 0 0;gap:20px}.hunt-steps b{font-size:20px;text-transform:none}.hunt-steps small{font-size:13px}.hunt-steps li:not(:last-child):after{top:23px;right:-17px}
/* A regular transparent sprite also works when index.html is opened locally.
   Leave vertical room for the spear; clip horizontal gutters to exclude
   fragments from the neighbouring glyphs. */
.hunt-steps .hunt-icon{--icon-x:4px;--icon-y:-38px;display:block;margin:0 auto 8px;width:64px;height:64px;background:transparent url('assets/hunt-icons.png') var(--icon-x) var(--icon-y)/224px 224px no-repeat;clip-path:inset(0 4px)}
.hunt-steps li:nth-child(2) .hunt-icon,.hunt-steps li:nth-child(6) .hunt-icon{--icon-x:-52px}
.hunt-steps li:nth-child(3) .hunt-icon,.hunt-steps li:nth-child(7) .hunt-icon{--icon-x:-108px}
.hunt-steps li:nth-child(4) .hunt-icon,.hunt-steps li:nth-child(8) .hunt-icon{--icon-x:-164px}
.hunt-steps li:nth-child(n+5) .hunt-icon{--icon-y:-118px}
/* These two source cells contain small stray marks outside the glyph. */
.hunt-steps li:nth-child(6) .hunt-icon{clip-path:inset(10px 12px 0)}
.hunt-steps li:nth-child(7) .hunt-icon{clip-path:inset(0 9px 0 4px)}
.wide-scene{position:absolute;inset:auto 0 0;width:100%;height:340px;margin:0;z-index:0;overflow:hidden}.wide-scene>img{object-position:center 57%;mask-image:linear-gradient(transparent,#000 45%);-webkit-mask-image:linear-gradient(transparent,#000 45%)}.wide-scene:after{background:linear-gradient(90deg,rgba(23,13,23,.45),transparent 45%,rgba(23,13,23,.2));pointer-events:none}.wide-scene figcaption{left:5%;bottom:62px;font-size:14px}.wide-scene>.image-debug-id{top:72%}.wide-scene>.image-zoom-button{right:4%;bottom:58px}
.world{padding:30px 0 55px;background:var(--paper)}.world-grid{gap:18px}.world-grid article:nth-child(n){transform:none}.world-grid .image-block{height:165px;border-radius:3px}.world-grid h3{font-size:22px;margin-top:12px}.world-grid p{font-size:14px;line-height:1.4}
.ecosystem{position:relative;isolation:isolate;min-height:490px;padding:55px 0 75px;background:var(--ink);overflow:hidden}.ecosystem:before,.together:before,footer:before{content:"";position:absolute;top:-27px;left:0;width:100%;height:55px;z-index:5;background:var(--ink);mask:url('assets/brush-mask.png') center/100% 100% no-repeat;mask-mode:luminance;pointer-events:none}
.ecosystem-grid{grid-template-columns:1.2fr 1fr;gap:45px;margin:0;align-items:start;position:relative;z-index:2}.ecosystem-grid h2{font-size:clamp(36px,4vw,58px)}.ecosystem .lead{font-size:14px;max-width:510px;margin-top:15px}.eco-notes{margin-top:90px;gap:7px}.eco-notes p{background:rgba(20,13,23,.84);border:1px solid #663541;padding:17px;font-size:13px;min-height:95px}.eco-notes b{font-size:14px}.panorama{position:absolute;inset:0;width:100%;height:100%;margin:0;z-index:0}.panorama>img{object-position:left 65%;mask-image:linear-gradient(90deg,#000 25%,transparent 90%);-webkit-mask-image:linear-gradient(90deg,#000 25%,transparent 90%)}.panorama:after{background:linear-gradient(var(--ink),transparent 65%);pointer-events:none}.panorama>.image-debug-id{left:28%;top:72%}.panorama>.image-zoom-button{left:4%;right:auto;bottom:65px}
.together{height:360px;min-height:0;padding:0;isolation:isolate;background:var(--paper);position:relative}.together:before{background:var(--paper)}.together-grid{display:block;height:100%;position:static}.together-grid>div:first-child{position:relative;z-index:2;padding-top:35px;max-width:64%;pointer-events:none}.together h2{font-size:clamp(34px,4vw,58px)}.together p:not(.eyebrow){margin-top:16px;font-size:14px;max-width:550px}.family-card{position:absolute;inset:0;z-index:0;width:100%;height:100%;background:none;border:0}.family-card>img{object-fit:fill}.family-card:after{content:"";position:absolute;inset:auto 0 0;height:40px;background:linear-gradient(transparent,#061a37);pointer-events:none}.family-card>.image-debug-id{left:84%;top:50%}.family-card>.image-zoom-button{right:3%;bottom:70px}.together-principles{display:flex;gap:30px;margin-top:15px}.together-principles p{max-width:160px!important;font-size:12px!important}.together-principles b{display:block;font-family:'Barlow Condensed',sans-serif;font-size:19px}
.legacy{height:410px;margin:0;z-index:1;background:#061a37}.legacy>img{object-position:center;transform:none}.legacy-shade{background:linear-gradient(90deg,rgba(3,19,49,.68),transparent 75%)}.legacy:before{content:"";position:absolute;inset:0 0 auto;height:75px;background:linear-gradient(#061a37,transparent);z-index:1}.legacy-copy{padding-top:40px}.legacy-copy h2{max-width:850px;font-size:clamp(35px,4.15vw,60px)}.legacy-copy p:not(.eyebrow){max-width:490px;margin-top:16px;font-size:14px}.legacy-copy em{margin-top:70px;font-size:14px}.legacy>.image-zoom-button{bottom:55px}
.gallery{padding:35px 0 30px;background:var(--paper)}.gallery-grid{grid-template-columns:1.15fr 1fr;grid-template-rows:300px;gap:14px}.gallery-grid>div{border-radius:3px}.team{padding:35px 0 60px;background:var(--paper)}.team h2{font-size:48px}.team-grid{gap:30px}.studio{font-size:34px;padding:10px 35px}.team-grid>p{font-size:14px}footer{position:relative;padding-top:45px}footer:before{background:#10131b}.contact-grid{margin:30px 0 40px}
@media(max-width:1000px){.page-shell{width:calc(100% - 48px)}.hero{height:720px}.hero-logo{width:205px}.manifesto{height:320px}.manifesto .split{grid-template-columns:43% 29%;gap:16px}.manifesto h2{font-size:34px}.manifesto-copy{font-size:13px}.journey{padding-bottom:235px}.hunt-steps{grid-template-columns:repeat(4,1fr);row-gap:18px}.hunt-steps li:nth-child(4):after{display:none}.ecosystem-grid{grid-template-columns:1fr 1fr;gap:20px}.eco-notes{margin-top:60px}.together-grid>div:first-child{max-width:66%}.together-principles{gap:12px}.section-intro{gap:25px}.section-intro h2{font-size:38px}}
@media(max-width:620px){.page-shell{width:calc(100% - 36px)}.site-header .brand img{width:115px;height:65px}.hero{height:720px;min-height:720px}.hero-content{padding-top:125px}.hero-logo{width:210px}.hero h1{font-size:44px;overflow-wrap:normal}.hero-copy{font-size:15px}.hero-rule{font-size:13px}.hero>img{object-position:57%}.hero:after{height:34px}.manifesto{height:610px;overflow:hidden}.manifesto .split{display:block;padding-top:20px}.manifesto h2{font-size:38px;max-width:100%}.manifesto-copy{font-size:14px;max-width:94%;width:94%;padding:0;margin-top:20px}.transition-hunter{top:auto;bottom:0;width:100%;height:245px;opacity:1}.transition-hunter>img{object-fit:cover;object-position:80% bottom}.transition-hunter>.image-debug-id{left:78%;top:50%}.transition-hunter>.image-zoom-button{bottom:45px}.journey{padding-top:20px;padding-bottom:210px}.section-intro{display:block;margin-bottom:25px}.section-intro>p{margin-top:16px;font-size:14px}.journey .section-intro h2{white-space:normal;font-size:40px}.hunt-steps{grid-template-columns:repeat(4,1fr);gap:12px 8px;margin-top:20px}.hunt-steps .hunt-icon{transform:scale(.72);margin:0 auto -5px;width:64px}.hunt-steps b{font-size:17px}.hunt-steps small{font-size:12px}.hunt-steps li:after{display:none}.wide-scene{height:245px}.wide-scene figcaption{font-size:12px;left:5%}.world{padding-top:25px;padding-bottom:45px}.world-grid{grid-template-columns:1fr 1fr;gap:25px 12px}.world-grid .image-block{height:115px}.world-grid h3{font-size:20px}.world-grid p{font-size:13px}.ecosystem{padding:35px 0 210px;min-height:720px}.ecosystem-grid{display:block}.ecosystem-grid h2{font-size:38px}.eco-notes{margin-top:20px;grid-template-columns:1fr 1fr}.eco-notes p{padding:12px;font-size:12px}.panorama>img{object-position:38% bottom;mask-image:linear-gradient(transparent 30%,#000);-webkit-mask-image:linear-gradient(transparent 30%,#000)}.panorama>.image-debug-id{top:86%}.together{height:595px;overflow:hidden}.together-grid>div:first-child{max-width:100%;padding-top:22px}.together h2{font-size:38px}.together-principles{gap:15px}.family-card{top:auto;bottom:0;height:280px}.family-card>img{object-fit:cover;object-position:75% bottom}.family-card>.image-debug-id{left:78%}.legacy{height:500px}.legacy-copy{padding-top:30px}.legacy-copy h2{font-size:40px}.legacy-copy p:not(.eyebrow){max-width:90%}.legacy-copy em{margin-top:110px}.legacy>img{object-position:62%}.gallery-grid{grid-template-columns:1fr;grid-template-rows:220px 200px}.team-grid{display:block}.studio{margin:22px 0;padding:20px;border-left:0;border-right:0}.contact-grid{gap:20px}.image-zoom-button{width:32px;height:32px;right:6px;bottom:6px}.lightbox-stage{padding:60px 10px 10px}.lightbox-bar strong{font-size:16px}}
.ecosystem-grid{margin-inline:auto}.ecosystem:before{top:-1px;background:var(--paper);transform:rotate(180deg);height:32px}.together:before{display:block}
/* Preserve the original artwork proportions while the viewport reveals more scenery. */
.transition-hunter{background:var(--ink) url('assets/runner-grass-extension.png') left bottom/auto 100% repeat-x}
.family-card{background:#061a37 url('assets/family-ground-extension.png') left bottom/auto 100% repeat-x}
.transition-hunter>img,.family-card>img{position:absolute;inset:auto 0 0 auto;width:auto;min-width:0;max-width:none;height:100%;object-fit:contain;object-position:right bottom;mask-image:linear-gradient(to right,transparent,#000 8%);-webkit-mask-image:linear-gradient(to right,transparent,#000 8%)}
/* The artwork keeps a fixed height: wider screens reveal the surrounding paper,
   rather than scaling the characters into the preceding section. */
.together:before{display:none;content:none}
.ecosystem:after{height:12px}
.family-card>img{mask-image:linear-gradient(to right,transparent,#000 8%),linear-gradient(to bottom,transparent,#000 28px);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent,#000 8%),linear-gradient(to bottom,transparent,#000 28px);-webkit-mask-composite:source-in}
/* Keep the hunter and ground shadow above the painted section edge. */
.journey{--hunt-height:clamp(340px,40vw,760px);padding-bottom:calc(var(--hunt-height) - 95px)}
.wide-scene{height:var(--hunt-height)}
.wide-scene>img{height:calc(100% - 32px);object-fit:cover;object-position:center bottom}
.legacy{height:clamp(460px,38vw,650px)}
.legacy>img{height:calc(100% - 24px);object-fit:cover;object-position:center 85%}
@media(max-width:620px){
 .transition-hunter>img{object-position:80% bottom}
 .family-card>img{object-position:75% bottom}
 .journey{--hunt-height:290px;padding-bottom:250px}
 .legacy{height:530px}.legacy>img{object-position:62% bottom}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Production navigation: the hero owns the large logo; the compact mark appears on scroll. */
.site-header{position:fixed;background:transparent;transition:background .22s ease,box-shadow .22s ease,padding .22s ease}
.site-header .brand{visibility:hidden;opacity:0;transform:translateY(-8px);transition:opacity .22s ease,transform .22s ease}
.site-header.is-scrolled{padding-top:7px;padding-bottom:7px;background:rgba(10,8,12,.96);box-shadow:0 5px 24px rgba(0,0,0,.3);backdrop-filter:blur(10px)}
.site-header.is-scrolled .brand{visibility:visible;opacity:1;transform:none}
.site-header.is-scrolled .brand img{width:105px;height:54px}
.hero-socials{position:absolute;z-index:8;right:clamp(92px,14vw,220px);bottom:60px;width:228px;perspective:600px}
.discord-button{position:relative;display:flex;align-items:center;justify-content:center;isolation:isolate;overflow:hidden;min-height:48px;padding:12px 20px;background:linear-gradient(112deg,#bd303c 0%,#e74942 17%,#f0714d 34%,#d88b3b 50%,#f05c48 67%,#c73342 84%,#9f2938 100%);background-size:300% 300%;border:1px solid #ff8a63;color:#fff;font-family:"Barlow Condensed",Impact,sans-serif;font-size:17px;font-weight:700;letter-spacing:.055em;text-transform:uppercase;box-shadow:0 0 0 1px rgba(255,255,255,.16),0 8px 25px rgba(229,67,58,.34),inset 0 1px rgba(255,255,255,.24);white-space:nowrap;text-shadow:0 1px 3px rgba(65,13,12,.68);transform-origin:50% 50%;animation:discord-metal 6.8s ease-in-out infinite,discord-pivot 6.8s ease-in-out infinite,discord-glow 6.8s ease-in-out infinite}
.discord-button:before{content:"";position:absolute;z-index:-1;top:-55%;bottom:-55%;left:-58%;width:38%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.08) 19%,rgba(255,249,222,.76) 49%,rgba(255,226,178,.22) 72%,transparent);transform:skewX(-19deg);filter:blur(.25px);animation:discord-shine 5.2s cubic-bezier(.2,.65,.28,1) infinite;pointer-events:none}
.discord-button:hover,.discord-button:focus-visible{filter:saturate(1.15) brightness(1.08);outline:2px solid var(--bone);outline-offset:2px}
.site-header .header-actions{justify-content:flex-end;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .22s ease,visibility .22s ease}
.site-header.is-scrolled .header-actions{visibility:visible;opacity:1;pointer-events:auto}
.site-header .header-actions .discord-button{min-height:42px;padding:10px 15px;font-size:14px}
.social-links{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
.social-link{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:rgba(16,10,20,.58);border:1px solid rgba(255,255,255,.48);color:#fff;box-shadow:0 5px 15px rgba(0,0,0,.2);transition:background .18s ease,border-color .18s ease,transform .18s ease}
.social-link svg{width:25px;height:25px;fill:currentColor}
a.social-link:hover,a.social-link:focus-visible{background:#5865f2;border-color:#9da5ff;transform:translateY(-2px);outline:2px solid var(--bone);outline-offset:2px}
.steam-status{cursor:default;opacity:.38;filter:saturate(.35)}
@keyframes discord-metal{0%,100%{background-position:4% 48%}48%{background-position:96% 54%}62%{background-position:72% 46%}}
@keyframes discord-pivot{0%,100%{transform:perspective(600px) rotateY(-1.2deg) rotateX(.25deg)}50%{transform:perspective(600px) rotateY(1.2deg) rotateX(-.25deg)}}
@keyframes discord-glow{0%,100%{box-shadow:0 0 0 1px rgba(255,255,255,.14),0 8px 24px rgba(210,49,54,.28),inset 0 1px rgba(255,255,255,.2)}50%{box-shadow:0 0 0 1px rgba(255,213,174,.28),0 9px 30px rgba(244,92,62,.46),inset 0 1px rgba(255,255,255,.32)}}
@keyframes discord-shine{0%,56%{left:-58%;opacity:0}61%{opacity:1}76%{left:128%;opacity:.68}78%,100%{left:128%;opacity:0}}
.image-zoom-button{display:none!important}
.is-lightbox-enabled{cursor:zoom-in}
.is-lightbox-enabled:focus-visible{outline:3px solid var(--coral);outline-offset:4px}
.contact-grid-single{display:block}.contact-grid-single a{font-size:1rem;color:var(--bone)}
.wide-scene figcaption,.legacy-copy em{font-family:'Kalam','Segoe Print','Bradley Hand',cursive;font-weight:700;letter-spacing:.035em;line-height:.98;text-transform:uppercase;text-shadow:0 2px 10px rgba(12,4,10,.42)}
.wide-scene figcaption{font-size:clamp(17px,1.6vw,24px);transform:rotate(-5deg);color:#ff675f}
.legacy-copy em{width:auto;max-width:270px;font-size:clamp(18px,1.8vw,27px);line-height:1.05;transform:rotate(-6deg);color:#ffc1bd}
.legacy-copy{height:100%}
.legacy-copy em{position:absolute;left:56%;bottom:13%;width:250px;max-width:24vw;margin:0;transform:translateX(-50%) rotate(-6deg);text-align:center}
@media(max-width:620px){.legacy-copy em{left:35%;bottom:15%;width:190px;max-width:44vw;font-size:20px}}
@media(max-width:980px){
 .site-header{grid-template-columns:1fr auto}
 .site-header:not(.is-scrolled) .menu-toggle{visibility:visible}
 .site-header.is-scrolled .menu-toggle{display:block}
 .site-header.open .header-actions{display:flex;position:absolute;top:100%;left:4vw;right:4vw;background:rgba(18,10,17,.98);padding:12px 22px 20px;flex-wrap:wrap}
}
@media(max-width:620px){.hero-socials{right:32px;bottom:58px;width:204px}.discord-button{min-height:44px;font-size:15px}.social-links{gap:8px;margin-top:9px}.social-link svg{width:22px;height:22px}}
.gallery-grid{grid-template-columns:repeat(12,1fr);grid-template-rows:300px 240px 240px;grid-auto-rows:240px;gap:14px}
.gallery-grid>div:nth-child(1),.gallery-grid>div:nth-child(3){grid-column:span 7}.gallery-grid>div:nth-child(2),.gallery-grid>div:nth-child(4){grid-column:span 5}.gallery-grid>div:nth-child(n+5){grid-column:span 4}
@media(max-width:820px){.gallery-grid{grid-template-columns:repeat(2,1fr);grid-template-rows:none;grid-auto-rows:230px}.gallery-grid>div:nth-child(n){grid-column:auto}.gallery-grid>div:nth-child(1),.gallery-grid>div:nth-child(3){grid-column:span 2}}
@media(max-width:620px){.gallery-grid{grid-template-columns:1fr;grid-auto-rows:220px}.gallery-grid>div:nth-child(n){grid-column:1/-1}}

/* Project identity and developer credits. */
.social-links{display:flex;justify-content:center}.social-links .social-link{flex:1;min-width:0;max-width:68px}
@media(max-width:620px){.team-grid{display:block}.team-profile{margin-top:24px}.developer-credit{font-size:13px}.contact-grid-single a{display:inline-block;max-width:100%;line-height:1.6}}

.social-link .gamearly-icon{width:25px;height:25px;object-fit:contain;filter:brightness(0) invert(1)}
@media(max-width:620px){.social-link .gamearly-icon{width:22px;height:22px}}

/* Freya Games developer identity. */
.freya-logo{display:block;object-fit:contain;height:auto}
.developer-credit{display:flex;align-items:center;gap:16px;margin-top:16px;color:var(--bone);font-size:13px;letter-spacing:.04em}.developer-credit .freya-logo{width:52px;height:auto}
.developer{padding:42px 0 64px;background:var(--paper)}.developer-inner{text-align:center;display:flex;flex-direction:column;align-items:center}.developer-inner>.eyebrow{margin-bottom:18px}.developer-inner>.freya-logo{width:140px;max-width:45vw}.developer-description{margin-top:24px;font-size:14px;line-height:1.7;max-width:540px}
.footer-developer{display:flex;align-items:center;gap:12px;margin-top:12px}.footer-developer .freya-logo{width:42px}
@media(max-width:620px){.hero{height:800px;min-height:800px}.developer-credit{font-size:12px;gap:12px}.developer-credit .freya-logo{width:46px}.developer{padding:32px 0 54px}.developer-inner>.freya-logo{width:120px}.developer-description{font-size:13px}}

/* Content determines the hero height. Its bottom 118px reserve the 54px
   painted edge plus at least 64px of separation from the slogan. */
.hero{
 display:grid;
 grid-template-columns:minmax(0,1fr);
 align-content:start;
 gap:28px;
 height:auto;
 min-height:760px;
 padding-bottom:118px;
}
.hero-content{grid-area:1/1;min-width:0}
.hero-shade{
 background:linear-gradient(0deg,rgba(22,9,17,.9),transparent 55%),linear-gradient(90deg,rgba(22,9,17,.76),rgba(22,9,17,.22) 50%,transparent 74%);
}
.hero-rule{color:var(--bone);text-shadow:0 2px 8px rgba(22,9,17,.8)}
.hero-socials{
 position:relative;
 grid-area:1/1;
 align-self:end;
 justify-self:end;
 right:auto;
 bottom:auto;
 /* Match the centered 1180px page-shell and its 44px desktop gutters. */
 margin-right:max(44px,calc((100% - 1180px)/2));
}
.scroll-cue{bottom:64px}

/* Keep fixed navigation clear of anchor targets. The home link still
   returns to the very top rather than applying a section offset. */
main section[id],footer[id]{scroll-margin-top:96px}
.site-header{grid-template-columns:145px minmax(0,1fr)}
.header-nav{
 display:grid;
 grid-template-columns:minmax(0,1fr) 145px;
 align-items:center;
 gap:25px;
 min-width:0;
}
.site-header.open{background:rgba(10,8,12,.96)}
.site-header.open .brand{visibility:visible;opacity:1;transform:none}
.hunt-steps{grid-template-columns:repeat(8,minmax(0,1fr))}
.hunt-steps li{min-width:0;overflow-wrap:anywhere}
.section-intro>*,.ecosystem-grid>*,.world-grid>*,.footer-bottom>*{min-width:0}
.manifesto{height:auto;min-height:350px;padding-bottom:32px}
.together{height:auto;min-height:360px;padding-bottom:36px}
.together-grid{height:auto}
.image-lightbox{height:100dvh}
.lightbox-stage img{max-height:calc(100dvh - 180px)}
.lightbox-bar{grid-template-columns:auto minmax(0,1fr) auto}
.lightbox-bar>div{min-width:0;overflow-wrap:anywhere}

@media(max-width:1000px){
 .hero{min-height:720px}
 .hero-socials{grid-area:2/1;justify-self:start;margin:0 24px}
 .hunt-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
 .manifesto{min-height:320px}
}

@media(max-width:980px){
 .site-header{grid-template-columns:minmax(0,1fr) auto}
 .header-nav{display:none}
 .site-header.open .header-nav{
  display:flex;
  position:absolute;
  top:100%;
  left:4vw;
  right:4vw;
  flex-direction:column;
  align-items:stretch;
  gap:18px;
  padding:20px 22px;
  max-height:calc(100svh - 110px);
  overflow-y:auto;
  overscroll-behavior:contain;
  background:rgba(10,8,12,.98);
  box-shadow:0 12px 24px rgba(0,0,0,.3);
 }
 .site-header.open nav{
  position:static;
  display:flex;
  flex-direction:column;
  padding:0;
  background:none;
 }
 .site-header.open .header-actions{
  position:static;
  display:flex;
  padding:0;
  background:none;
  visibility:visible;
  opacity:1;
  pointer-events:auto;
 }
 .site-header .header-actions .discord-button{width:100%}
}

@media(max-width:620px){
 .hero{min-height:800px}
 .hero-content{padding-top:125px}
 .hero h1{font-size:clamp(36px,7.1vw,44px)}
 .hero-socials{margin:0 18px}
 .hunt-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
 .hunt-steps .hunt-icon{transform:none;margin:0 auto 8px}
 .hunt-steps b{font-size:20px}
 .manifesto{min-height:610px;padding-bottom:265px}
 .together{min-height:595px;padding-bottom:300px}
 .together-principles{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:16px}
 .lightbox-bar{gap:12px}
.lightbox-bar strong{font-size:15px}
}

/* Language controls stay available before scrolling and outside the mobile
   navigation panel. Studio links keep their original image dimensions. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.site-header{grid-template-columns:120px minmax(0,1fr) auto;gap:20px}
.site-header .brand img{width:120px}
.header-nav{grid-template-columns:minmax(0,1fr) 145px;gap:16px}
.site-header nav{gap:20px}
.header-controls{display:flex;align-items:center;gap:12px;min-width:0}
#language-select{
 width:132px;
 min-height:42px;
 padding:8px 6px;
 border:1px solid rgba(255,255,255,.55);
 border-radius:2px;
 background:rgba(16,10,20,.88);
 color:var(--bone);
 font:500 13px/1.3 Inter,"Segoe UI",sans-serif;
 cursor:pointer;
 color-scheme:dark;
}
#language-select:focus-visible,.freya-link:focus-visible{outline:2px solid var(--coral);outline-offset:5px}
.freya-link{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center}
.freya-studio-link{width:140px;max-width:45vw}
.freya-studio-link .freya-logo{width:100%;height:auto}
.scroll-cue [data-i18n]{font:inherit;line-height:inherit}
.journey .section-intro h2{white-space:normal}
.hero h1{overflow-wrap:anywhere}
.hero-copy,.manifesto-copy,.section-intro p,.together p,.legacy-copy p,.developer-description{overflow-wrap:break-word}
.site-header .discord-button{white-space:normal;text-align:center;line-height:1.1}

/* Cyrillic and CJK headings need fonts that actually contain their glyphs.
   System CJK families avoid extra remote font downloads. */
:is(html:lang(ru),html:lang(uk)) :is(h1,h2,h3,.hunt-steps b,.together-principles b,.lightbox-bar strong){font-family:Inter,"Segoe UI",sans-serif;letter-spacing:0;line-height:1.15}
html:lang(ja){--locale-font:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif}
html:lang(ko){--locale-font:"Malgun Gothic","Apple SD Gothic Neo",sans-serif}
html:lang(zh-Hans){--locale-font:"Microsoft YaHei","PingFang SC",sans-serif}
html:lang(zh-Hant){--locale-font:"Microsoft JhengHei","PingFang TC",sans-serif}
:is(html:lang(ja),html:lang(ko),html:lang(zh)) body{font-family:var(--locale-font);line-height:1.7}
:is(html:lang(ja),html:lang(ko),html:lang(zh)) :is(h1,h2,h3,.eyebrow,.hunt-steps b,.together-principles b,.lightbox-bar strong,.discord-button){font-family:var(--locale-font);letter-spacing:0;line-height:1.25}
:is(html:lang(ja),html:lang(ko),html:lang(zh)) .hero h1{font-size:clamp(34px,4.2vw,64px);overflow-wrap:normal}
:is(html:lang(ja),html:lang(ko),html:lang(zh),html:lang(ru),html:lang(uk)) .manifesto h2{font-size:clamp(28px,2.8vw,40px)}
:is(html:lang(ja),html:lang(ko),html:lang(zh),html:lang(ru),html:lang(uk)) .hunt-steps b{font-size:16px}
:is(html:lang(ja),html:lang(ko),html:lang(zh),html:lang(ru),html:lang(uk)) .together-principles{flex-wrap:wrap}

#fireflies{position:fixed;inset:0;width:100%;height:100%;z-index:10;pointer-events:none}
@media(prefers-reduced-motion:reduce){#fireflies{display:none}}
@media(max-width:1100px){
 .site-header{grid-template-columns:100px minmax(0,1fr) auto;gap:14px}
 .site-header .brand img{width:100px}
 .site-header nav{gap:14px}
 .header-nav{grid-template-columns:minmax(0,1fr) 120px;gap:12px}
 #language-select{width:116px}
 .site-header .header-actions .discord-button{padding-inline:8px;font-size:13px}
}
@media(max-width:980px){
 .site-header{grid-template-columns:minmax(0,1fr) auto;gap:16px;min-height:68px}
 .header-controls{grid-column:2}
 .header-nav{grid-column:1/-1}
 .site-header.open .header-nav{display:flex}
}
@media(max-width:620px){
 .site-header .brand img,.site-header.is-scrolled .brand img{width:80px;height:48px}
 #language-select{width:108px;font-size:12px}
 .header-controls{gap:8px}
 .menu-toggle{max-width:100px;padding:9px 8px;font-size:12px}
 .freya-studio-link{width:120px}
 :is(html:lang(ja),html:lang(ko),html:lang(zh)) .hero h1{font-size:clamp(28px,7vw,38px)}
 :is(html:lang(ja),html:lang(ko),html:lang(zh),html:lang(ru),html:lang(uk)) .manifesto h2{font-size:30px}
 :is(html:lang(ja),html:lang(ko),html:lang(zh),html:lang(ru),html:lang(uk)) .together h2{font-size:30px}
}
/* Wishlist reward card: contained effects, original transparent artwork. */
.wishlist-observer{margin-bottom:12px;padding-top:0}
.wishlist-panel{display:flex;position:relative;isolation:isolate;flex-direction:column;gap:14px;padding:20px 14px 0;background:#19313f;border:1px solid #456071;box-shadow:0 8px 18px #0005,0 22px 40px #0004,inset 0 1px #ffffff25;color:#fff;transition:transform .2s,box-shadow .2s;cursor:pointer}
.wishlist-panel:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0006,0 26px 46px #0005,inset 0 1px #ffffff35}
.wishlist-panel:focus-visible,.steam-button:focus-visible{outline:2px solid #fff3d8;outline-offset:4px}
.steam-button{display:inline-flex;position:relative;overflow:hidden;align-items:center;justify-content:center;min-height:42px;padding:10px 14px;background:linear-gradient(110deg,#769d12,#4d7010);border:1px solid #99bb40;border-radius:2px;color:#fff;font:500 14px/1.3 Inter,Arial,sans-serif;text-align:center;cursor:pointer}
.steam-button:hover,.wishlist-panel:hover .steam-button{background:linear-gradient(110deg,#85ad1c,#608618)}
.wishlist-panel>.steam-button{align-self:center;width:100%;padding-inline:8px}
.wishlist-description{font-size:14px;line-height:1.45;overflow-wrap:break-word}
.wishlist-panel h2{font:700 35px/.98 'Barlow Condensed',Impact,sans-serif;letter-spacing:-.02em;text-align:center;color:var(--bone);white-space:nowrap}

.forerunner-stage{display:block;position:relative;height:240px;margin:0 -14px;overflow:clip;overflow-clip-margin:65px;clip-path:inset(-12px -65px 0)}
.forerunner-art{position:absolute;bottom:-75px;left:-50px;width:calc(100% + 100px);max-width:none;height:auto;object-fit:contain;pointer-events:none}
.wishlist-shimmer{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none;border-radius:inherit}
.wishlist-shimmer:after,.steam-button:after{content:'';position:absolute;inset:-1px;z-index:3;pointer-events:none;background:linear-gradient(115deg,transparent 35%,#fff0 40%,#ffffff55 49%,#ffffff12 55%,transparent 62%);animation:wishlist-sweep 7s ease-in-out infinite;opacity:0}
.steam-button:after{animation-duration:5.5s;background:linear-gradient(110deg,transparent 35%,#ffffff88 50%,transparent 65%)}
@keyframes wishlist-sweep{0%,65%{transform:translate3d(-100%,0,0);opacity:0}67%{opacity:.7}84%{transform:translate3d(100%,0,0);opacity:.7}85%,100%{transform:translate3d(100%,0,0);opacity:0}}
.wishlist-observer:not(.in-view) .wishlist-shimmer:after,.wishlist-observer:not(.in-view) .steam-button:after{animation-play-state:paused}
.steam-status{opacity:1;filter:none;cursor:pointer}
.header-wishlist{visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .18s,transform .18s,visibility .18s}
.has-wishlist-cta .header-wishlist{visibility:visible;opacity:1;pointer-events:auto;transform:none}
.header-actions{align-items:stretch;gap:10px}
.header-nav{grid-template-columns:minmax(0,1fr) auto}
.site-header .header-actions .discord-button{width:auto;flex-shrink:0}
.hero-socials{padding-top:145px;align-self:start}
@media(min-width:981px) and (max-width:1279px){.header-nav{grid-template-columns:1fr}.header-actions{justify-self:end}.site-header nav{justify-content:flex-end}}
@media(max-width:1000px){.hero-socials{padding-top:0;margin-left:68px}}
@media(max-width:980px){.site-header>.header-actions{grid-column:1/-1;display:flex;justify-content:flex-end;flex-wrap:wrap;visibility:visible;opacity:1;pointer-events:auto}.site-header>.header-actions .discord-button{visibility:hidden;opacity:0}.site-header.is-scrolled>.header-actions .discord-button{visibility:visible;opacity:1}.site-header{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}.site-header .header-actions .steam-button{max-width:100%}.site-header.open .header-nav{top:100%}.hero-content{padding-top:160px}}
@media(max-width:620px){.hero-socials{margin-left:58px;width:204px}.wishlist-panel h2{font-size:31px}.wishlist-description{font-size:13px}.forerunner-stage{height:220px;overflow-clip-margin:40px;clip-path:inset(-12px -40px 0)}.forerunner-art{left:-36px;width:calc(100% + 72px);bottom:-60px}}
@media(prefers-reduced-motion:reduce){.wishlist-panel:hover{transform:none}.forerunner-art{transform:none!important}}
 main section[id],footer[id]{scroll-margin-top:var(--header-clearance,96px)}

.wishlist-panel .forerunner-logo{display:block;width:100%;height:auto;object-fit:contain}
