/* Systm: quiet studio identity, loud game imagery. No external fonts or dependencies. */
:root { color-scheme: dark; --bg: #101110; --text: #eceee8; --muted: #a0a39b; --line: #343730; --accent: #d3dfa1; --mono: 'Courier New', Courier, monospace; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::selection { background: var(--accent); color: var(--bg); }
img, video { display: block; max-width: 100%; height: auto; }
video { width: 100%; background: #050505; }
a { color: inherit; text-underline-offset: 5px; }
a, button { -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
button { font: inherit; }
[hidden] { display: none !important; }
h1, h2, p, figure { margin: 0; }
h1, h2 { line-height: 1.05; }
.wrap { width: calc(100% - 96px); max-width: 1120px; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; background: var(--text); color: var(--bg); padding: 10px 18px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 62px 46px; }
.studio-logo { width: 250px; }
.studio-description { font-family: var(--mono); color: var(--muted); font-size: 14px; margin-top: 17px; }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
nav a { display: inline-block; padding-block: 10px; text-decoration: none; color: var(--muted); transition: transform .15s ease, color .15s ease, text-shadow .15s ease; }
nav a:hover, nav a:focus-visible { transform: translate(2px, -2px); text-shadow: 3px 3px 0 #000; }
nav a[aria-current] { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; }
.compact { padding-block: 38px 52px; }
.compact .studio-logo { width: 154px; }
.brand-link { flex-shrink: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.game-link { display: block; text-decoration: none; }
.game-art { position: relative; overflow: hidden; background: #1d1913; }
.game-art .cover { width: 100%; aspect-ratio: 16/8.2; object-fit: cover; object-position: center; transition: transform .3s ease-out, filter .3s ease; }
.game-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / .18) 55%, rgb(0 0 0 / .86)); pointer-events: none; }
.game-title-overlay { position: absolute; z-index: 1; left: 42px; bottom: 38px; right: 30px; color: #f6f6f1; }
.game-title-overlay .eyebrow { display: block; margin-bottom: 16px; }
.game-logo { width: 100%; filter: invert(1); }
.game-title-overlay h2 { max-width: 430px; }
.game-caption { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-block: 25px 36px; border-bottom: 1px solid var(--line); }
.game-caption p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.game-caption p::first-line { color: var(--text); }
.text-link { display: inline-flex; align-items: center; gap: 22px; font-size: 14px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; transition: transform .15s ease, box-shadow .15s ease; }
a.text-link:hover, a.text-link:focus-visible { transform: translate(2px, -2px); }
.game-caption .text-link { color: var(--bg); background: var(--text); padding: 10px 16px; text-decoration: none; box-shadow: 4px 4px 0 #000; transform: rotate(-.7deg); }
.game-link:hover .game-caption .text-link, .game-link:focus-visible .game-caption .text-link { transform: translate(2px, -2px) rotate(.4deg); box-shadow: 6px 6px 0 #000; }
.arrow { font-size: 25px; line-height: 1; transition: transform .2s ease; }
.game-link:hover .arrow { transform: translate(3px, -3px); }
@media (hover: hover) and (pointer: fine) { .game-art:hover .cover { transform: translate(var(--image-x, 0px), var(--image-y, 0px)) scale(1.016); filter: brightness(1.035); } }
.next-game { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 44px 5px 42px 0; }
.next-game .eyebrow { color: var(--muted); margin-bottom: 11px; }
.next-game h2 { font-size: 23px; font-weight: 400; letter-spacing: -.035em; }
.next-game p:last-child { color: var(--muted); font-size: 14px; margin-top: 8px; }
.skeleton { position: relative; flex: 0 0 106px; }
.skeleton img { width: 106px; }
.motion-toggle { display: block; margin: 6px auto 0; padding: 4px 12px; min-height: 30px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-family: var(--mono); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.motion-toggle:hover { color: var(--text); }
.gameplay-loop { position: relative; }
.gameplay-loop picture img { width: 100%; }
.gameplay-loop .motion-toggle { position: absolute; right: 10px; top: 10px; margin: 0; background: rgb(0 0 0 / .8); color: var(--text); opacity: 0; transition: opacity .15s ease; }
.gameplay-loop:hover .motion-toggle, .gameplay-loop:focus-within .motion-toggle { opacity: 1; }
@media (hover: none) { .gameplay-loop .motion-toggle { opacity: 1; } }
.page-entering { background: #050605; }
.page-entering body { visibility: hidden; }
.pixel-wipe { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: repeat(var(--wipe-columns), 1fr); grid-template-rows: repeat(var(--wipe-rows), 1fr); pointer-events: all; visibility: visible; }
.pixel-wipe span { background: #050605; margin: -.5px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 25px 34px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.site-footer a { text-decoration: none; }
.site-footer a span { margin-left: 12px; }
.game-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; padding-block: 25px 50px; }
.game-intro .eyebrow { color: var(--muted); margin-bottom: 20px; }
.game-intro h1 { max-width: 480px; }
.game-intro-copy { font-size: 18px; line-height: 1.6; }
.ominous { color: var(--muted); margin-top: 12px; font-size: 16px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }
.trailer { scroll-margin-top: 24px; }
figcaption { margin-top: 12px; font-size: 12px; font-family: var(--mono); color: var(--muted); }
.trailer figcaption { display: flex; justify-content: space-between; }
.game-premise { max-width: 650px; margin: 85px auto 90px; text-align: center; font-size: 22px; line-height: 1.65; color: var(--muted); letter-spacing: -.02em; }
.game-premise span { display: block; color: var(--text); margin-top: 14px; }
.chapter { display: grid; grid-template-columns: .8fr 1.5fr; align-items: center; column-gap: 70px; margin-block: 80px; }
.chapter-copy h2 { font-size: clamp(26px, 3vw, 39px); font-weight: 500; letter-spacing: -.055em; line-height: 1.13; text-transform: uppercase; }
.chapter-copy p { font-size: 16px; margin-top: 23px; color: var(--muted); }
.chapter.reverse { grid-template-columns: 1.5fr .8fr; }
.chapter.reverse .chapter-copy { grid-column: 2; grid-row: 1; }
.chapter.reverse figure { grid-column: 1; grid-row: 1; }
.screenshot-link { display: block; }
.screenshot-link img { transition: filter .25s ease; }
.screenshot-link:hover img { filter: brightness(1.1); }
.game-end { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding-block: 42px 65px; margin-top: 90px; }
.game-end p { font-size: 22px; letter-spacing: -.03em; }
.about-main { padding-block: 26px 95px; }
.about-intro { margin-bottom: 60px; }
.about-intro .eyebrow { color: var(--muted); margin-bottom: 22px; }
.about-intro h1 { font-size: clamp(48px, 7vw, 80px); font-weight: 500; letter-spacing: -.065em; }
.about-layout { display: grid; grid-template-columns: 320px 1fr; gap: 100px; align-items: start; }
.portrait img { width: 320px; }
.about-copy { max-width: 570px; }
.about-copy p { color: var(--muted); margin-bottom: 22px; }
.about-copy .lead { color: var(--text); font-size: 23px; line-height: 1.45; letter-spacing: -.025em; }
.about-copy em { font-style: normal; color: var(--text); }
.about-copy a { color: var(--text); }
.about-copy a:hover { color: var(--accent); }
.about-contact { margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--line); }
.about-contact p { font-size: 14px; margin-bottom: 15px; }
.about-contact .text-link { font-size: 17px; }
/* Full-screen TRAPPIST-1 cover. The studio homepage keeps its own quieter layout. */
.game-page > .site-header { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); }
.game-page > .site-header nav a { color: #e0e2dc; text-shadow: 0 2px 8px #000; }
.game-hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; place-items: center; padding: 155px 24px 110px; background: #060706; }
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.game-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(0 0 0 / .6), rgb(0 0 0 / .08) 35%, rgb(0 0 0 / .22) 65%, #101110); }
.hero-center { width: min(780px, 88vw); text-align: center; }
.logo-glitch { position: relative; width: 100%; margin: 0 auto; }
.logo-glitch::before, .logo-glitch::after { content: ''; display: none; position: absolute; inset: 0; background: url('media/trappist.svg') center / 100% 100% no-repeat; filter: invert(1); pointer-events: none; }
.logo-glitch.glitching .game-logo { mask-image: linear-gradient(to bottom, #000 0% 24%, transparent 24% 36%, #000 36% 62%, transparent 62% 74%, #000 74% 100%); }
.logo-glitch.glitching::before { display: block; clip-path: inset(24% 0 64% 0); animation: logo-cut-top 240ms steps(1, end); }
.logo-glitch.glitching::after { display: block; clip-path: inset(62% 0 26% 0); animation: logo-cut-bottom 240ms steps(1, end); }
@keyframes logo-cut-top { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 45% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes logo-cut-bottom { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(7px); } 45% { transform: translateX(-6px); } 75% { transform: translateX(3px); } }
.hero-center > .eyebrow { margin-top: 20px; color: #e4e6df; text-shadow: 0 2px 5px #000; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.game-button { display: inline-flex; justify-content: center; align-items: center; gap: 26px; min-width: 168px; min-height: 50px; padding: 13px 24px; border: 1px solid var(--text); border-radius: 0; background: var(--text); color: #111; font-family: var(--mono); font-size: 14px; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; box-shadow: 4px 4px 0 #000; transition: transform .15s ease, box-shadow .15s ease; }
a.game-button:hover, a.game-button:focus-visible { color: #111; transform: translate(2px, -2px); box-shadow: 6px 6px 0 #000; }
.game-button.secondary { background: rgb(0 0 0 / .55); color: var(--text); }
.game-button.secondary:hover { color: #fff; }
.game-button:disabled { color: #66685f; background: #c4c5bd; border-color: #c4c5bd; cursor: default; }
.steam-button { gap: 14px; }
.steam-brand { width: 86px; height: auto; flex-shrink: 0; filter: invert(1); }
.game-button:disabled .steam-brand { opacity: .65; }
.steam-note { font-family: var(--mono); font-size: 12px; color: #babdb3; margin-top: 16px; }
.hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 4px 20px; font-size: 32px; line-height: 1.3; text-decoration: none; }
.game-details { padding-top: 48px; scroll-margin-top: -32px; }
.game-details .game-intro { padding-block: 30px 60px; }
.game-details .game-intro h2 { font-size: clamp(38px, 5vw, 62px); font-weight: 500; letter-spacing: -.055em; }
.steam-section { border-top: 1px solid var(--line); padding: 58px 0 62px; text-align: center; }
.steam-section > p:first-child { font-size: 24px; margin-bottom: 24px; letter-spacing: -.03em; }
.screenshot-gallery { padding-bottom: 65px; }
.gallery-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.gallery-heading h2 { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.gallery-heading p { color: var(--muted); font-size: 13px; }
.screenshot-thumbnails { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.screenshot-thumbnails a { display: block; overflow: hidden; }
.screenshot-thumbnails img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: filter .2s ease, transform .2s ease; }
.screenshot-thumbnails a:hover img { filter: brightness(1.2); transform: scale(1.025); }
.viewer-open { overflow: hidden; }
.image-viewer { width: min(1280px, 94vw); max-width: 94vw; max-height: 94svh; margin: auto; padding: 16px 20px; border: 1px solid var(--line); background: #101110; color: var(--text); }
.image-viewer::backdrop { background: rgb(0 0 0 / .92); }
.viewer-toolbar, .viewer-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 13px; }
.viewer-toolbar { margin-bottom: 12px; }
.image-viewer button { background: transparent; color: var(--text); border: 0; min-height: 44px; padding: 8px 12px; cursor: pointer; }
.image-viewer button:hover { color: var(--accent); }
.image-viewer figure img { max-height: 67svh; width: 100%; object-fit: contain; }
.image-viewer figcaption { text-align: center; margin-block: 12px; }
@media (max-width: 760px) {
  .game-hero { padding: 175px 18px 100px; }
  .hero-art { object-position: 72% center; }
  .hero-center { width: 100%; max-width: 600px; }
  .hero-center > .eyebrow { font-size: 11px; }
  .hero-actions { gap: 14px; margin-top: 28px; }
  .game-button { min-width: 145px; padding: 12px 16px; gap: 16px; font-size: 13px; }
  .steam-button { gap: 10px; }
  .steam-brand { width: 66px; }
  .game-details { padding-top: 20px; }
  .screenshot-thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .image-viewer { padding: 10px; }
}
@media (max-width: 380px) { .hero-actions { gap: 10px; } .game-button { min-width: 128px; font-size: 12px; padding-inline: 12px; gap: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .logo-glitch.glitching .game-logo { mask-image: none; }
  .logo-glitch.glitching::before, .logo-glitch.glitching::after { display: none; }
  a.game-button:hover, a.game-button:focus-visible, .screenshot-thumbnails a:hover img { transform: none; }
}
@media (min-width: 1500px) { .site-header { padding-top: 80px; } .compact { padding-top: 45px; } }
@media (max-width: 900px) {
  .game-intro { gap: 45px; }
  .chapter { gap: 35px; }
  .about-layout { grid-template-columns: 260px 1fr; gap: 50px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { padding-block: 34px 30px; gap: 22px; align-items: flex-start; }
  .studio-logo { width: 190px; }
  .home .site-header { flex-wrap: wrap; }
  .home nav { width: 100%; justify-content: flex-start; gap: 28px; }
  nav { gap: 18px; font-size: 14px; }
  .compact { align-items: center; padding-block: 27px 38px; flex-wrap: wrap; }
  .compact nav { flex-wrap: wrap; }
  .compact .studio-logo { width: 120px; }
  .studio-description { margin-top: 12px; font-size: 13px; }
  .game-art .cover { aspect-ratio: 4/3; object-position: 47% center; }
  .game-title-overlay { left: 22px; right: 22px; bottom: 24px; }
  .game-title-overlay h2 { max-width: 340px; }
  .game-title-overlay .eyebrow { font-size: 11px; letter-spacing: .09em; margin-bottom: 12px; }
  .game-caption { align-items: flex-start; flex-direction: column; gap: 23px; padding-block: 23px 29px; }
  .game-caption .text-link { width: 100%; justify-content: space-between; }
  .next-game { padding-block: 32px; gap: 16px; }
  .next-game h2 { max-width: 220px; font-size: 21px; line-height: 1.2; }
  .skeleton { flex-basis: 90px; }
  .skeleton img { width: 90px; }
  .site-footer { font-size: 12px; gap: 15px; flex-wrap: wrap; padding-block: 22px 28px; }
  .site-footer a span { margin-left: 3px; }
  .game-intro { grid-template-columns: 1fr; gap: 28px; padding-block: 18px 34px; }
  .game-intro h1 { max-width: 460px; }
  .game-intro .eyebrow { margin-bottom: 16px; }
  .game-intro-copy { max-width: 550px; }
  .game-premise { margin-block: 55px; font-size: 20px; }
  .chapter, .chapter.reverse { grid-template-columns: 1fr; gap: 25px; margin-block: 60px; }
  .chapter.reverse .chapter-copy, .chapter.reverse figure { grid-column: auto; grid-row: auto; }
  .chapter-copy h2 { font-size: 31px; }
  .chapter-copy p { margin-top: 15px; }
  .game-end { margin-top: 60px; padding-block: 32px 45px; }
  .about-main { padding-top: 12px; padding-bottom: 60px; }
  .about-intro { margin-bottom: 35px; }
  .about-layout { grid-template-columns: 1fr; gap: 35px; }
  .portrait { max-width: 260px; }
  .about-copy { max-width: none; }
  .about-copy .lead { font-size: 22px; }
}
@media (max-width: 540px) { .compact { gap: 15px; } .compact nav { width: 100%; gap: 22px; } }
@media (max-width: 380px) { .compact .studio-logo { width: 100px; } nav { gap: 15px; font-size: 13px; } .compact nav { gap: 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } .game-art:hover .cover, .game-link:hover .arrow, nav a:hover, nav a:focus-visible, a.text-link:hover, a.text-link:focus-visible, .game-link:hover .game-caption .text-link, .game-link:focus-visible .game-caption .text-link { transform: none; } }
