/* ELSEWHERE website - OFFSET STUDIOS. The game's lettering (Caveat Brush) for everything, the menu art's palette:
   ash black, paper white, dried blood, ember sky. */
@font-face {
  font-family: "Caveat Brush";
  src: url("../fonts/CaveatBrush-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #120d0b;
  --bg-2: #1b1411;
  --bg-3: #241a16;
  --ink: #f1e9da;
  --ink-dim: #b9ad9c;
  --ink-faint: #7d7266;
  --blood: #a3302a;
  --blood-deep: #6e1b17;
  --ember: #d8673d;
  --line: rgba(241, 233, 218, 0.12);
  --font: "Caveat Brush", "Segoe Print", "Comic Sans MS", cursive;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section__sub { color: var(--ink-dim); margin: -6px 0 36px; font-size: 22px; }

/* headings with a brush-stroke underline */
.h-brush {
  font-size: clamp(44px, 6vw, 76px); line-height: 1; margin: 0 0 22px; font-weight: 400;
  display: inline-block; position: relative; isolation: isolate;
}
.h-brush::after {
  content: ""; position: absolute; left: -4px; right: -10px; bottom: -6px; height: 12px;
  background: var(--blood);
  clip-path: polygon(0 55%, 6% 30%, 22% 42%, 40% 22%, 58% 38%, 75% 18%, 92% 34%, 100% 20%, 98% 70%, 80% 82%, 62% 66%, 44% 86%, 24% 70%, 8% 88%);
  z-index: -1; opacity: 0.9;
}

/* ---------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background 0.35s, padding 0.35s;
}
.nav--solid { background: rgba(18, 13, 11, 0.92); backdrop-filter: blur(6px); padding-top: 8px; padding-bottom: 8px; box-shadow: 0 1px 0 var(--line); }
.nav__brand { font-size: 30px; letter-spacing: 0.04em; opacity: 0; transition: opacity 0.35s; }
.nav--solid .nav__brand { opacity: 1; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; font-size: 22px; }
.nav__links a { color: var(--ink-dim); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { color: var(--ink) !important; background: var(--blood); padding: 4px 16px 6px; box-shadow: 3px 3px 0 var(--blood-deep); }
.nav__cta:hover { background: #b8382f; }
.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span { position: absolute; left: 8px; right: 8px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, top 0.25s; }
.nav__toggle span:first-child { top: 14px; } .nav__toggle span:last-child { top: 23px; }
.nav--open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav--open .nav__toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------------- hero */
.hero { position: relative; height: 100vh; min-height: 620px; max-height: 1200px; overflow: hidden; background: #2a0d08; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 20%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08) translate(-1%, -0.5%); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 13, 11, 0.62) 0%, rgba(18, 13, 11, 0.25) 32%, rgba(18, 13, 11, 0) 55%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18, 13, 11, 0) 22%);
}
/* the page's entries sit where the game's menu sits in the art */
.hero__content { position: absolute; z-index: 1; isolation: isolate; left: clamp(20px, 5.4vw, 110px); top: 47%; max-width: 520px; }
.hero__wordmark { display: none; }
.hero__tagline { font-size: clamp(24px, 2.4vw, 34px); color: var(--ink); margin: 0 0 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.hero__menu { list-style: none; margin: 0; padding: 0; }
.menu-item {
  display: inline-block; font-size: clamp(30px, 3.3vw, 46px); line-height: 1.2; padding: 2px 18px 4px 14px; margin-left: -14px;
  color: var(--ink-dim); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55); position: relative; transition: color 0.2s;
}
.menu-item::before {
  content: ""; position: absolute; inset: 6px -6px 4px -10px; z-index: -1; background: var(--blood);
  clip-path: polygon(2% 18%, 30% 6%, 70% 10%, 99% 4%, 96% 52%, 100% 92%, 64% 96%, 30% 88%, 0 96%, 4% 56%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.28s cubic-bezier(.2, .8, .2, 1);
}
.menu-item:hover, .menu-item--on { color: var(--ink); }
.menu-item:hover::before, .menu-item--on::before { transform: scaleX(1); }
.hero__menu:hover .menu-item--on:not(:hover)::before { transform: scaleX(0); }
.hero__menu:hover .menu-item--on:not(:hover) { color: var(--ink-dim); }
.hero__meta { margin: 22px 0 0; color: var(--ink-dim); font-size: 19px; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(241, 233, 218, 0.6); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--ink); border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------- story */
.story { background: var(--bg); }
.story__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story__text p { color: var(--ink-dim); margin: 0 0 16px; max-width: 34ch; }
.story__text .lead { color: var(--ink); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.25; }
.story__text .quiet { color: var(--ember); margin-top: 26px; }
.story__still { margin: 0; position: relative; }
.story__still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); border: 8px solid #e9dfcc; border-bottom-width: 48px; }
.story__still figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; color: #3a2b22; font-size: 22px; }

/* ---------------- gameplay band + features */
.band { position: relative; height: clamp(440px, 70vh, 720px); overflow: hidden; }
.band__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(18, 13, 11, 0.15) 45%, rgba(18, 13, 11, 0.55) 100%), linear-gradient(90deg, rgba(18, 13, 11, 0.7), rgba(18, 13, 11, 0) 60%); }
.band__text { position: absolute; left: var(--gutter); bottom: clamp(30px, 7vw, 80px); max-width: 560px; padding-left: max(0px, calc((100vw - var(--wrap)) / 2)); }
.band__text p { color: var(--ink); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 40px; padding-bottom: clamp(72px, 10vw, 120px); }
.feature { background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: transform 0.3s, border-color 0.3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(163, 48, 42, 0.7); }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(0.9) contrast(1.05); transition: transform 0.6s; }
.feature:hover img { transform: scale(1.04); }
.feature h3 { font-weight: 400; font-size: 30px; margin: 18px 20px 6px; line-height: 1.1; }
.feature p { margin: 0 20px 22px; color: var(--ink-dim); font-size: 19px; }

/* ---------------- the player (no browser controls) */
.devlog { background: var(--bg-2); }
.xplayer { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); user-select: none; }
.xplayer video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.xplayer__poster { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 0.5s; }
.xplayer__poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.6)); }
.xplayer--started .xplayer__poster { opacity: 0; pointer-events: none; }
.xplayer__title { position: absolute; left: 0; right: 0; top: 0; padding: 22px 28px 40px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0)); transition: opacity 0.4s; pointer-events: none; }
.xplayer__title strong { display: block; font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; }
.xplayer__title span { color: var(--ink-dim); font-size: 18px; }
.xplayer__big {
  position: absolute; left: 50%; top: 50%; width: clamp(84px, 11vw, 132px); height: clamp(84px, 11vw, 132px); margin: 0;
  transform: translate(-50%, -50%); transition: transform 0.25s, opacity 0.3s;
  display: grid; place-items: center;
}
.xplayer__big::before {
  content: ""; position: absolute; inset: 0; background: var(--blood);
  clip-path: polygon(50% 0, 66% 4%, 84% 13%, 96% 31%, 100% 50%, 96% 68%, 85% 86%, 68% 97%, 50% 100%, 30% 97%, 14% 86%, 3% 68%, 0 50%, 4% 31%, 16% 12%, 33% 3%);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
}
.xplayer__big svg { position: relative; width: 40%; height: 40%; margin-left: 8%; fill: var(--ink); }
.xplayer__big:hover { transform: translate(-50%, -50%) scale(1.06); }
.xplayer__big-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 12px; white-space: nowrap; font-size: 22px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.xplayer--started .xplayer__big { opacity: 0; pointer-events: none; }
.xplayer--started.xplayer--paused .xplayer__big { opacity: 1; pointer-events: auto; }
.xplayer--started.xplayer--paused .xplayer__big-label { display: none; }

.xplayer__bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 22px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  display: flex; align-items: center; gap: 16px; transition: opacity 0.35s, transform 0.35s;
}
.xplayer:not(.xplayer--started) .xplayer__bar { opacity: 0; pointer-events: none; }
.xplayer--idle:not(.xplayer--paused) .xplayer__bar { opacity: 0; transform: translateY(10px); }
.xplayer--idle:not(.xplayer--paused) .xplayer__title { opacity: 0; }
.xplayer--idle:not(.xplayer--paused) { cursor: none; }
.xbtn { width: 40px; height: 40px; display: grid; place-items: center; flex: none; opacity: 0.88; transition: opacity 0.2s, transform 0.2s; }
.xbtn:hover { opacity: 1; transform: scale(1.1); }
.xbtn svg { width: 26px; height: 26px; fill: var(--ink); }
.xplayer__time { font-size: 20px; min-width: 104px; color: var(--ink); white-space: nowrap; }
.xplayer__track { position: relative; flex: 1; height: 26px; cursor: pointer; display: flex; align-items: center; }
.xplayer__rail { position: absolute; left: 0; right: 0; height: 6px; background: rgba(241, 233, 218, 0.22); border-radius: 3px;
  clip-path: polygon(0 30%, 20% 0, 45% 25%, 70% 5%, 100% 20%, 100% 80%, 72% 100%, 48% 70%, 22% 100%, 0 75%); }
.xplayer__buffer, .xplayer__fill { position: absolute; left: 0; height: 8px; width: 0; }
.xplayer__buffer { background: rgba(241, 233, 218, 0.28); height: 6px; }
.xplayer__fill { background: var(--blood); box-shadow: 0 0 10px rgba(163, 48, 42, 0.7);
  clip-path: polygon(0 20%, 30% 0, 60% 18%, 100% 0, 100% 100%, 64% 84%, 30% 100%, 0 82%); }
.xplayer__knob { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--ink); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--blood); transform: scale(0); transition: transform 0.15s; }
.xplayer__track:hover .xplayer__knob, .xplayer--seeking .xplayer__knob { transform: scale(1); }
.xplayer__hover { position: absolute; bottom: 30px; transform: translateX(-50%); background: rgba(18, 13, 11, 0.9); padding: 0 10px 2px; font-size: 18px; display: none; }
.xplayer__track:hover .xplayer__hover { display: block; }
.xplayer__vol { display: flex; align-items: center; gap: 6px; }
.xplayer__volrange { width: 0; opacity: 0; transition: width 0.25s, opacity 0.25s; accent-color: var(--blood); cursor: pointer; }
.xplayer__vol:hover .xplayer__volrange, .xplayer__volrange:focus { width: 80px; opacity: 1; }

/* ---------------- updates */
.updates { background: var(--bg); }
.updates__list { position: relative; display: grid; gap: 34px; padding-left: 34px; }
.updates__list::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(180deg, var(--blood), rgba(163, 48, 42, 0.1)); }
.update { position: relative; background: var(--bg-2); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.update::before { content: ""; position: absolute; left: -33px; top: 26px; width: 17px; height: 17px; background: var(--blood); border: 3px solid var(--bg); border-radius: 50%; }
.update__media { position: relative; min-height: 100%; background: #000; }
.update__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.update__media .xplayer { height: 100%; box-shadow: none; }
.update__body { padding: 26px 30px 28px; }
.update__meta { display: flex; gap: 12px; align-items: center; color: var(--ink-faint); font-size: 18px; }
.update__tag { color: var(--ink); background: var(--blood-deep); padding: 0 10px 2px; }
.update__title { font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; margin: 8px 0 10px; }
.update__summary { color: var(--ink-dim); margin: 0 0 14px; }
.update__list { list-style: none; margin: 0; padding: 0; font-size: 19px; }
.update__list li { padding-left: 24px; position: relative; margin: 4px 0; }
.update__list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 11px; height: 4px; background: var(--ember); transform: rotate(-8deg); }
.update__fixed { margin-top: 16px; }
.update__fixed summary { cursor: pointer; color: var(--ember); font-size: 20px; list-style: none; }
.update__fixed summary::-webkit-details-marker { display: none; }
.update__fixed summary::before { content: "+ "; }
.update__fixed[open] summary::before { content: "– "; }
.update__fixed .update__list li::before { background: #6f9a52; width: 9px; height: 9px; border-radius: 50%; top: 0.5em; transform: none; }
.update__link { display: inline-block; margin-top: 18px; font-size: 22px; color: var(--ink); background: var(--blood); padding: 2px 16px 4px; box-shadow: 3px 3px 0 var(--blood-deep); }
.update__link:hover { background: #b8382f; }
.update--featured { grid-template-columns: 1fr; }
.update--featured .update__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
.update--featured .update__head { grid-column: 1 / -1; }

/* ---------------- gallery */
.gallery { background: var(--bg-2); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.shot { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.shot--wide { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, filter 0.4s; filter: saturate(0.85); }
.shot:hover img { transform: scale(1.05); filter: saturate(1.05); }
.shot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--blood); transition: box-shadow 0.25s; }
.shot:hover::after { box-shadow: inset 0 0 0 3px var(--blood); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 6, 5, 0.95); display: grid; place-items: center; padding: 50px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox__close { position: absolute; top: 10px; right: 20px; font-size: 52px; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 80px; line-height: 1; padding: 10px; opacity: 0.7; }
.lightbox__nav:hover { opacity: 1; color: var(--ember); }
.lightbox__prev { left: 10px; } .lightbox__next { right: 10px; }

/* ---------------- demo */
.demo { position: relative; overflow: hidden; padding: clamp(90px, 14vw, 180px) 0; text-align: center; }
.demo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(18, 13, 11, 0.55), rgba(18, 13, 11, 0.92) 75%), linear-gradient(180deg, var(--bg-2), rgba(18, 13, 11, 0) 25%, rgba(18, 13, 11, 0) 75%, var(--bg)); }
.demo__inner { position: relative; }
.demo__lead { font-size: clamp(24px, 2.4vw, 30px); margin: 0 auto 32px; max-width: 30ch; }
.btn-big {
  display: inline-flex; align-items: center; gap: 14px; font-size: clamp(30px, 3.2vw, 42px); padding: 10px 40px 14px;
  background: var(--blood); color: var(--ink); box-shadow: 5px 5px 0 var(--blood-deep);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-big:hover { transform: translateY(-2px); box-shadow: 7px 8px 0 var(--blood-deep); background: #b8382f; }
.btn-big svg { width: 30px; height: 30px; fill: currentColor; }
.btn-big--soon { background: transparent; border: 2px dashed rgba(241, 233, 218, 0.45); box-shadow: none; cursor: default; color: var(--ink-dim); }
.btn-big--soon:hover { background: transparent; box-shadow: none; }
.demo__hint { color: var(--ink-dim); margin: 16px 0 0; font-size: 19px; }
.specs { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 48px; margin: 48px 0 0; }
.specs dt { color: var(--ember); font-size: 18px; }
.specs dd { margin: 0; font-size: 21px; }

/* ---------------- footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 50px; background: var(--bg); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 10px 40px; align-items: center; }
.footer__brand { font-size: 40px; margin: 0; line-height: 1; }
.footer__studio { margin: 2px 0 0; color: var(--ink-faint); letter-spacing: 0.3em; font-size: 15px; }
.footer__note { margin: 0; color: var(--ink-dim); justify-self: end; max-width: 46ch; text-align: right; }
.footer__links { grid-column: 1 / -1; list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links:empty { display: none; }
.footer__links a { color: var(--ink-dim); } .footer__links a:hover { color: var(--ember); }
.footer__legal { grid-column: 1 / -1; color: var(--ink-faint); font-size: 16px; margin: 14px 0 0; }

/* ---------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal--in { opacity: 1; transform: none; }

/* ---------------- small screens */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .update, .update--featured .update__body { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 20px; }
  .nav__toggle { display: block; }
  .nav__brand { opacity: 1; font-size: 26px; }
  .nav__links { position: fixed; inset: 58px 0 auto 0; flex-direction: column; gap: 6px; padding: 16px var(--gutter) 22px; background: rgba(18, 13, 11, 0.97); transform: translateY(-130%); transition: transform 0.3s; align-items: flex-start; }
  .nav--open .nav__links { transform: none; }
  .nav { background: rgba(18, 13, 11, 0.85); }
  .hero { height: 92vh; min-height: 560px; }
  .hero__art { height: 66%; object-position: 70% 40%; animation: none; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 36%, rgba(18, 13, 11, 0) 58%), linear-gradient(180deg, rgba(18, 13, 11, 0.94) 0%, rgba(18, 13, 11, 0.6) 20%, rgba(18, 13, 11, 0) 36%); }
  .hero__content { top: auto; bottom: 64px; left: var(--gutter); right: var(--gutter); }
  .hero__wordmark { display: block; font-size: 64px; line-height: 0.9; margin: 0 0 6px; letter-spacing: 0.02em; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7); }
  .nav__brand { opacity: 0; } .nav--solid .nav__brand { opacity: 1; }
  .story__grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .band__text { padding-left: 0; right: var(--gutter); }
  .xplayer__time { min-width: 0; font-size: 17px; }
  .xplayer__bar { gap: 8px; padding: 24px 10px 8px; }
  .xplayer__vol { display: none; }
  .updates__list { padding-left: 22px; }
  .updates__list::before { left: 2px; }
  .update::before { left: -27px; }
  .update__body { padding: 20px 18px 22px; }
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__note { justify-self: start; text-align: left; }
  .lightbox { padding: 50px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================================================================
   2026-11-16: PAPER / INK - the game's new menus (owner's 5K menu art). Warm paper, black ink, dried blood, an ember
   stroke behind the selected entry, the game's ink cursor. Dark panels (videos, the town band, the demo, the lightbox)
   keep light ink. Every video and screenshot carries the date it was made (assets/js/media.js).
   ===================================================================================================================== */
:root {
  --bg: #ebe5d9;
  --bg-2: #e2dbcc;
  --bg-3: #d5ccba;
  --ink: #16110e;
  --ink-dim: #4b4038;
  --ink-faint: #7b6e62;
  --blood: #a3241c;
  --blood-deep: #5e130e;
  --ember: #c9542b;
  --line: rgba(22, 17, 14, 0.16);
  --light: #f3ece0;
  --paper: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0.09 0'/></filter><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.24 0 0 0 0.16 -0.03'/></filter><rect width='100%' height='100%' filter='url(%23b)'/><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  --cursor: url("../img/cursor.png") 3 2, auto;
}
.xplayer, .band, .demo, .lightbox, .update__media { --ink: #f3ece0; --ink-dim: #c9bdab; --ink-faint: #9b8f80; --line: rgba(243, 236, 224, 0.14); color: var(--ink); }
html, body, a, button, summary, input, label, .shot, .xplayer__track, .xplayer__volrange { cursor: var(--cursor); }
.xplayer--idle:not(.xplayer--paused) { cursor: none; }
body { background: var(--bg) var(--paper); }
.grain { opacity: 0.045; }
::selection { background: rgba(201, 84, 43, 0.35); }

.nav--solid { background: rgba(235, 229, 217, 0.94); }
.nav__cta { color: var(--light) !important; }

.hero { background: var(--bg); max-height: 1300px; }
.hero__art { animation-duration: 30s; }
.hero__shade {
  background:
    linear-gradient(90deg, rgba(235, 229, 217, 0.5) 0%, rgba(235, 229, 217, 0.18) 26%, rgba(235, 229, 217, 0) 44%),
    linear-gradient(0deg, var(--bg) 0%, rgba(235, 229, 217, 0) 16%);
}
.hero__tagline { color: var(--ink); text-shadow: none; }
.menu-item { color: var(--ink); text-shadow: none; }
.menu-item::before { background: var(--ember); opacity: 0.92; }
.hero__menu:hover .menu-item--on:not(:hover) { color: var(--ink); }
.hero__next { display: inline-block; margin: 10px 0 0; font-size: 19px; color: var(--blood); border-bottom: 2px solid rgba(163, 36, 28, 0.35); }
.hero__next[hidden] { display: none; }

.story, .updates, .footer { background: transparent; }
.story__still img { box-shadow: 0 18px 40px rgba(40, 25, 15, 0.28); border-color: #fbf7ef; transform: rotate(-1deg); }
.story__still figcaption { color: #3a2b22; }
.stamp { color: var(--ink-faint); font-size: 18px; margin-left: 6px; }

.band__shade { background: linear-gradient(0deg, rgba(18, 13, 11, 0.86) 0%, rgba(18, 13, 11, 0.15) 45%, rgba(18, 13, 11, 0.5) 100%), linear-gradient(90deg, rgba(18, 13, 11, 0.7), rgba(18, 13, 11, 0) 60%); }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--bg) var(--paper);
  clip-path: polygon(0 60%, 8% 40%, 18% 70%, 30% 35%, 44% 62%, 57% 30%, 70% 58%, 83% 36%, 93% 64%, 100% 42%, 100% 100%, 0 100%); }
.band__date { margin: -8px 0 10px; font-size: 18px; color: var(--ink-dim); }

.feature { background: #f7f2e8; box-shadow: 0 10px 26px rgba(40, 25, 15, 0.14); position: relative; }
.feature:hover { border-color: rgba(163, 36, 28, 0.6); }
.feature__date, .shot__date {
  position: absolute; top: 10px; left: 10px; z-index: 1; padding: 0 9px 2px; font-size: 16px; line-height: 1.4;
  color: var(--light); background: rgba(22, 17, 14, 0.72); pointer-events: none;
}

.devlog, .gallery { background: var(--bg-2) var(--paper); }
.videos { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.videos:empty { display: none; }
.videos__cap { margin: 10px 0 0; font-size: 22px; }
.videos__cap time { color: var(--ink-faint); font-size: 18px; margin-left: 8px; }

.update { background: #f7f2e8; box-shadow: 0 10px 26px rgba(40, 25, 15, 0.12); }
.update::before { border-color: var(--bg); }
.update__tag, .update__link { color: var(--light); }
.update__fixed .update__list li::before { background: #4f7a3a; }

.gallery__group + .gallery__group { margin-top: 56px; }
.gallery__date { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.gallery__date span { color: var(--ink-faint); font-size: 20px; }
.gallery__date::after { content: ""; flex: 1; min-width: 40px; height: 3px; background: rgba(22, 17, 14, 0.18); align-self: center; }
.shot { box-shadow: 0 6px 16px rgba(40, 25, 15, 0.18); }
.shot img { filter: none; }
.shot__date { font-size: 14px; top: 8px; left: 8px; opacity: 0; transition: opacity 0.2s; }
.shot:hover .shot__date, .shot:focus-visible .shot__date { opacity: 1; }

.demo { background: #120d0b; }
.btn-big { color: var(--light); }
.footer__links a:hover { color: var(--blood); }

@media (max-width: 760px) {
  .nav { background: rgba(235, 229, 217, 0.92); }
  .nav__links { background: rgba(235, 229, 217, 0.98); }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 36%, rgba(235, 229, 217, 0) 58%), linear-gradient(180deg, rgba(235, 229, 217, 0.85) 0%, rgba(235, 229, 217, 0) 16%); }
  .hero__wordmark { text-shadow: none; }
  .videos { grid-template-columns: 1fr; }
  .shot__date { opacity: 1; }
}
.hero__meta, .hero__next, .hero__tagline { text-shadow: 0 0 6px var(--bg), 0 0 14px var(--bg), 0 0 22px var(--bg); }
.hero__meta { color: var(--ink); }
@media (max-width: 760px) {
  .hero__art { height: 54%; top: 52px; object-position: 50% 30%; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 44%, rgba(235, 229, 217, 0) 64%), linear-gradient(180deg, var(--bg) 0, var(--bg) 52px, rgba(235, 229, 217, 0) 120px); }
  .hero__wordmark { text-shadow: 0 0 8px var(--bg), 0 0 18px var(--bg); }
}

/* 2026-11-16: the demo installs through the OFFSET STUDIOS Launcher - download, three steps, a picture of it */
.demo { text-align: left; }
.demo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.demo__lead { margin: 0 0 26px; max-width: 34ch; }
.demo__small { margin: 12px 0 0; font-size: 17px; color: var(--ink-dim); }
.steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin: 0 0 14px; font-size: 20px; color: var(--ink-dim); }
.steps li strong { color: var(--ink); font-weight: 400; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--blood); color: var(--light); font-size: 20px; clip-path: polygon(8% 4%, 96% 0, 100% 90%, 4% 100%); }
.demo__note { margin: 18px 0 0; font-size: 16px; color: var(--ink-faint); max-width: 52ch; }
.demo__shot { margin: 0; }
.demo__shot img { width: 100%; border: 6px solid #f3ece0; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); transform: rotate(1deg); }
.demo__shot figcaption { margin-top: 12px; font-size: 17px; color: var(--ink-dim); text-align: center; }
.demo__shot time { color: var(--ink-faint); }
.demo .specs { justify-content: flex-start; margin-top: 44px; }
@media (max-width: 900px) {
  .demo__grid { grid-template-columns: 1fr; }
  .demo__shot { order: -1; }
}

/* the installer's VirusTotal result under the download button */
.scan { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 10px 16px 11px 12px; max-width: 460px;
  border: 2px solid rgba(111, 170, 96, 0.55); background: rgba(111, 170, 96, 0.1); color: var(--ink); transition: background 0.2s; }
.scan:hover { background: rgba(111, 170, 96, 0.2); }
.scan svg { width: 30px; height: 30px; flex: none; fill: #7fbf6a; }
.scan strong { display: block; font-weight: 400; font-size: 20px; line-height: 1.15; }
.scan small { display: block; font-size: 15px; color: var(--ink-dim); }
