/* Layout concept: the studio as a quiet frame around moving pictures — near-black ink, one serif for voice, one sans for labels, thin hairline buttons. Colour comes only from the games. */
:root{
  --ink:#0e0c13; --ink-2:#14121b; --ink-3:#1b1823;
  --text:#f1ece5; --muted:#aaa2b4; --dim:#6f6879;
  --hair:rgba(241,236,229,.14); --hair-2:rgba(241,236,229,.32);
  --serif:'Cormorant','Cormorant Garamond',Georgia,serif;
  --sans:'Inter','Segoe UI',system-ui,sans-serif;
  --lk-strip-h:38px;
  color-scheme:dark;
}

/* ---------- base ---------- */
body.lk{margin:0;background:var(--ink);color:var(--text);font-family:var(--sans);font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
.lk *{box-sizing:border-box}
.lk img,.lk video{max-width:100%;display:block}
.lk a{color:inherit;text-decoration:none}
.lk h1,.lk h2,.lk h3,.lk p{margin:0}
.lk h1,.lk h2,.lk h3{font-family:var(--serif);font-weight:400;text-wrap:balance;letter-spacing:.005em}
.lk button:not(.btn){font:inherit;color:inherit}
.wrap{padding-inline:var(--edge)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

.label{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.btn{display:inline-flex;align-items:center;gap:16px;height:54px;padding:0 28px;border:0;border-radius:2px;background:transparent;
  font-family:var(--sans);font-weight:600;font-size:13px;color:#fff;cursor:pointer;transition:background .2s,color .2s}
.btn img,.btn svg{width:17px;height:17px;flex:none}
.btn svg{fill:currentColor;width:18px;height:18px;margin-right:-4px}
.btn:hover{background:rgba(241,236,229,.1)}
.btn.solid{background:var(--text);color:var(--ink)}
.btn.solid img{filter:invert(1)}
.btn.solid:hover{background:#fff}
.btn.sm{height:44px;padding:0 24px;font-size:12px}
.lk a:focus-visible,.lk button:focus-visible{outline:1px solid var(--text);outline-offset:3px}


/* ---------- hero: rotating trailers ---------- */
.hero{position:relative;height:100svh;min-height:620px;max-height:1000px;overflow:hidden;background:var(--ink)}
.slide{position:absolute;inset:0;opacity:0;transition:opacity 1.1s ease;pointer-events:none}
.slide.on{opacity:1;pointer-events:auto}
.slide .media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.slide .media.px{image-rendering:pixelated}
.slide.on .media.kb{animation:kb 14s ease-out both}
@keyframes kb{from{transform:scale(1.08)}to{transform:scale(1)}}
.hero::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to bottom,rgba(14,12,19,.85) 0,rgba(14,12,19,0) 26%),linear-gradient(to top,rgba(14,12,19,.95) 0,rgba(14,12,19,.55) 30%,rgba(14,12,19,0) 60%),linear-gradient(to right,rgba(14,12,19,.55),rgba(14,12,19,0) 55%)}
.hero .info{position:absolute;z-index:2;left:var(--edge);right:var(--edge);bottom:clamp(72px,11vh,120px)}
.hero .game{max-width:640px}
.hero .game .label{display:block;margin-bottom:18px}
.hero .game h1{font-size:clamp(3rem,7.2vw,6.4rem);line-height:.92;text-transform:uppercase}
.hero .game .sub{margin-top:18px;font-family:var(--serif);font-style:italic;font-size:clamp(1.15rem,1.7vw,1.4rem);color:#dcd5e2;max-width:34ch}


.hero .acts{display:flex;flex-wrap:wrap;gap:16px;margin-top:32px}
/* progress: one dot per game; the active one stretches into a pill that fills while its slide plays */
.reel{position:absolute;z-index:3;left:var(--edge);bottom:clamp(14px,3vh,32px);display:flex;align-items:center;gap:4px}
.seg{position:relative;width:22px;height:28px;padding:0;background:none;border:0;cursor:pointer;transition:width .5s cubic-bezier(.3,0,.2,1)}
.seg[aria-current="true"]{width:56px}
.seg::before,.seg i{position:absolute;left:8px;right:8px;top:50%;height:6px;margin-top:-3px;border-radius:3px}
.seg::before{content:'';background:rgba(241,236,229,.28);transition:background .2s}
.seg:hover::before{background:rgba(241,236,229,.5)}
.seg i{background:var(--text);clip-path:inset(0 100% 0 0 round 3px)}
.seg:focus-visible{outline:none}
.seg:focus-visible::before{background:rgba(241,236,229,.6)}
@keyframes fill{to{transform:scaleX(1)}}
@media (max-width:520px){.hero .acts .btn{height:48px;padding:0 20px}}

/* ---------- sections ---------- */
section.block{padding-block:clamp(72px,9vw,120px)}
.rule{height:1px;background:var(--hair);margin-inline:var(--edge)}
.head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px 60px;flex-wrap:wrap;margin-bottom:clamp(32px,4vw,48px)}
.head .label{display:block;margin-bottom:22px}
.head h2,.h-page{font-size:clamp(2.2rem,4.4vw,4rem);line-height:1;text-transform:uppercase}
.head p{color:var(--muted);max-width:44ch}

/* manifesto */

/* games */
.games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.card{display:flex;flex-direction:column;gap:20px}
.card .cover{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--ink-2)}
.card .cover img{width:100%;height:100%;object-fit:cover;transition:transform .9s ease}
.card:hover .cover img{transform:scale(1.03)}
.card .cover .px{image-rendering:pixelated}
.badge{position:absolute;left:20px;top:20px;padding:8px 12px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;background:rgba(14,12,19,.78);border:1px solid var(--hair-2);border-radius:2px}
.card .genre{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.card h3{font-size:clamp(1.9rem,2.8vw,2.6rem);line-height:1;text-transform:uppercase;margin-top:-8px}
.card p{color:var(--muted);max-width:56ch}
.card .row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}
@media (max-width:860px){.games{grid-template-columns:1fr}}

/* news */
/* news: a list, one post after another — picture on the left, text on the right */
.news{display:grid;grid-template-columns:1fr;row-gap:clamp(40px,4vw,56px)}
.post{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:clamp(24px,4vw,56px);row-gap:14px;align-items:start}
.post .ph{grid-row:1 / span 3}
.post .ph{overflow:hidden;background:var(--ink-2)}
.post .ph img{width:100%;height:auto;transition:transform .9s}
.post:hover .ph img{transform:scale(1.03)}
.post .meta{display:flex;gap:24px;align-items:center;align-self:start;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.post .meta .game{padding:4px 9px;border:1px solid var(--hair-2);border-radius:2px;color:var(--text);letter-spacing:.14em}
.post h3{font-size:clamp(1.6rem,2.2vw,2.1rem);line-height:1.1}
.post p{color:var(--muted);font-size:15px;max-width:62ch}
.post .more{font-size:12px;display:inline-flex;align-items:center;gap:8px}
.post .more img{width:14px;height:14px}
@media (max-width:760px){.post{grid-template-columns:1fr}.post .ph{grid-row:auto}}

/* studio + community */
.studio{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,6vw,80px);align-items:center}
.studio .pic{aspect-ratio:5/4;overflow:hidden;background:var(--ink-2)}
.studio .pic img{width:100%;height:100%;object-fit:cover}
.studio h2{font-size:clamp(2.2rem,4vw,3.6rem);line-height:1;margin:22px 0 24px;text-transform:uppercase}
.studio p{color:var(--muted);max-width:52ch}
.studio p + p{margin-top:14px}
.studio .acts{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
@media (max-width:860px){.studio{grid-template-columns:1fr}}

.join{display:flex;justify-content:space-between;align-items:center;gap:32px 60px;flex-wrap:wrap}
.join h2{font-size:clamp(2rem,3.4vw,3rem);line-height:1.05;margin:16px 0 14px;text-transform:uppercase}
.join p{color:var(--muted);max-width:52ch}
.join .acts{display:flex;gap:12px;flex-wrap:wrap}

/* footer */
footer.foot{border-top:1px solid var(--hair);padding-block:56px 40px}
.foot .top{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap}
.foot .logo img{width:134px;height:44px}
.foot .tag{margin-top:16px;font-size:12px;color:var(--muted)}
.foot .cols{display:flex;gap:64px;flex-wrap:wrap}
.foot .cols div{display:grid;gap:12px;align-content:start;font-size:13px}
.foot .cols .label{margin-bottom:4px}
.foot .cols a:hover{text-decoration:underline;text-underline-offset:4px}
.foot .legal{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:48px;font-size:11px;color:var(--dim)}

/* ---------- buy dialog (Diablo IV-style) ---------- */
.buybox{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;background:rgba(8,7,11,.86);backdrop-filter:blur(10px);opacity:0;pointer-events:none;transition:opacity .25s}
.buybox.open{opacity:1;pointer-events:auto}
.buybox .box{position:relative;width:min(760px,100%);max-height:calc(100svh - 48px);overflow:auto;background:var(--ink);border:1px solid var(--hair);transform:translateY(10px);transition:transform .25s}
.buybox.open .box{transform:none}
.buybox .art{aspect-ratio:21/9;overflow:hidden;position:relative}
.buybox .art img{width:100%;height:100%;object-fit:cover}
.buybox .art::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,var(--ink),rgba(14,12,19,0) 60%)}
.buybox .body{padding:0 clamp(20px,4vw,40px) clamp(24px,4vw,40px);margin-top:-48px;position:relative}
.buybox h2{font-size:clamp(2.2rem,5vw,3.2rem);line-height:1;text-transform:uppercase}
.buybox .note{margin-top:10px;color:var(--muted);font-size:14px}
.buybox .stores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:28px}
@media (max-width:560px){.buybox .stores{grid-template-columns:1fr}}
.store{display:flex;align-items:center;gap:16px;padding:18px 20px;border:1px solid var(--hair-2);border-radius:2px;transition:background .2s,border-color .2s}
.store:hover{border-color:var(--text);background:rgba(255,255,255,.05)}
.store svg{width:28px;height:28px;fill:currentColor;flex:none}
.store b{display:block;font-weight:600;font-size:14px}
.store span{display:block;font-size:12px;color:var(--muted)}
.store .go{margin-left:auto;width:17px;height:17px}
.store.support{grid-column:1 / -1;border-color:rgba(241,236,229,.22);background:rgba(255,255,255,.04)}
.store.support:hover{background:rgba(255,255,255,.09)}
.buybox .close{position:absolute;top:14px;right:14px;z-index:2;width:40px;height:40px;border-radius:50%;border:1px solid var(--hair-2);background:rgba(14,12,19,.7);color:var(--text);cursor:pointer;display:grid;place-items:center}
.buybox .close svg{width:14px;height:14px}
.buybox .fine{margin-top:22px;font-size:11px;color:var(--dim)}

@media (prefers-reduced-motion:reduce){
  .slide,.buybox,.buybox .box{transition:none}
  .slide.on .media.kb{animation:none}
  
  .card .cover img,.post .ph img{transition:none}
}

/* ---------- news pages ---------- */
body.has-sh-1{padding-top:var(--sh-h)}
.post h3{transition:color .2s}
.post{padding:16px;margin-inline:-16px;border-radius:2px;transition:background .2s}
.post:hover{background:rgba(241,236,229,.06)}
.ph-empty{display:grid;place-items:center;aspect-ratio:16/9;background:var(--ink-2)}
.ph-empty span{font-family:var(--serif);font-size:1.6rem;color:var(--dim);text-transform:uppercase;letter-spacing:.06em}

.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{height:36px;padding:0 16px;border:1px solid var(--hair-2);border-radius:2px;background:none;font-size:12px;color:var(--muted);cursor:pointer}
.chip:hover{color:var(--text);border-color:var(--text)}
.lk .chip[aria-pressed="true"]{background:var(--text);border-color:var(--text);color:var(--ink)}
.lk .chip{color:var(--muted)}
.lk .chip:hover{color:var(--text)}
.post[hidden]{display:none}

.article{padding-block:clamp(48px,6vw,80px) clamp(64px,8vw,110px)}
/* breadcrumb back to the studio */
.crumbs{display:flex;align-items:center;gap:10px;margin-bottom:18px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.crumbs a{color:var(--muted);transition:color .2s}
.crumbs a:hover{color:var(--text)}
.crumbs span{opacity:.6}
/* article: one centred reading column */
.article .wrap{max-width:calc(760px + 2 * var(--gutter));margin-inline:auto;padding-inline:var(--gutter)}
.article .crumbs{margin-bottom:36px}
.art-meta{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.article h1{margin-top:18px;font-size:clamp(2.1rem,4vw,3.4rem);line-height:1.05;text-transform:uppercase;text-wrap:balance}
.art-body{margin-top:40px;font-size:18px;line-height:1.8;color:#ddd7e2}
.art-body > *{max-width:none}
.art-body p{margin:0 0 1.25em}
.art-body h2,.art-body h3{font-family:var(--serif);color:var(--text);line-height:1.2;margin:1.8em 0 .6em}
.art-body h2{font-size:1.9rem}
.art-body h3{font-size:1.5rem}
.art-body ul,.art-body ol{padding-left:1.4em;margin:0 0 1.5em}
.art-body ol li::marker{color:var(--muted);font-variant-numeric:tabular-nums}
.art-body li{margin-bottom:.6em;padding-left:.3em}
.art-body li p{margin:0}
.art-body a{color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.art-body hr{border:0;height:1px;background:var(--hair);margin:2.4em 0}
.art-body figure{margin:2.2em 0;max-width:100%;position:relative;overflow:hidden;background:var(--ink-2)}
.art-body figure img{width:100%;height:auto}
.art-body figure.nsfw img{filter:blur(28px) brightness(.5);transform:scale(1.08)}
.art-body figure.nsfw.shown img{filter:none;transform:none}
.art-body .reveal{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);height:44px;padding:0 20px;border:1px solid var(--text);border-radius:2px;background:rgba(14,12,19,.7);color:var(--text);font-size:12px;font-weight:600;cursor:pointer}
.art-body .ext{word-break:break-all}
.art-source{margin-top:2.4em !important;font-size:13px;color:var(--muted)}
.art-pager{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:64px;padding-top:32px;border-top:1px solid var(--hair)}
.art-pager a{display:grid;gap:8px;font-family:var(--serif);font-size:1.4rem;line-height:1.15}
.art-pager a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.art-pager .next{text-align:right}
@media (max-width:640px){.art-pager{grid-template-columns:1fr}.art-pager .next{text-align:left}}
.art-cover{margin:48px 0 0;max-width:1100px}
.art-cover img{width:100%;height:auto}

/* ---------- Discord ---------- */
.discord{padding-block:clamp(48px,6vw,80px)}
.dc{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(24px,4vw,56px);padding:clamp(28px,4vw,48px);
  background:linear-gradient(120deg,rgba(88,101,242,.22),rgba(88,101,242,.06) 55%,rgba(14,12,19,0)),var(--ink-2);border:1px solid rgba(88,101,242,.35);border-radius:2px}
.dc-mark{width:clamp(48px,6vw,72px);height:auto;fill:#c9cdfb}
.dc h2{font-size:clamp(2rem,3.6vw,3.2rem);line-height:1;text-transform:uppercase}
.dc p{margin-top:14px;color:var(--muted);max-width:58ch}
@media (max-width:760px){.dc{grid-template-columns:1fr}.dc .btn{justify-self:start}}

/* hero: short description and key facts between the title and the buttons */
.hero .game .desc{margin-top:20px;max-width:52ch;font-size:15px;line-height:1.6;color:#d6d0dc}
.hero .acts{margin-top:28px}
@media (max-width:520px){.hero .game .desc{font-size:14px}}

/* hero text changes through a fog mask, like the logo in the trailer: [visible | fog | hidden | fog | visible] */
.hero .game{-webkit-mask-image:url(../img/fog-mask.png);mask-image:url(../img/fog-mask.png);
  -webkit-mask-size:700% 100%;mask-size:700% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:0% 0;mask-position:0% 0}
@media (prefers-reduced-motion:reduce){.hero .game{-webkit-mask-image:none;mask-image:none}}
