:root {
  --black: #0b0a08;
  --ink: #f7f0df;
  --muted: #cbbfa7;
  --paper: #f2ead7;
  --paper-2: #fff8e8;
  --line: rgba(247, 240, 223, 0.16);
  --dark-line: rgba(28, 22, 14, 0.18);
  --green: #9be36f;
  --green-dark: #315c34;
  --amber: #f3bd4f;
  --amber-dark: #815618;
  --blue: #5aa0e4;
  --blue-dark: #143f88;
  --red: #e76055;
  --pink: #df85a7;
  --violet: #8d7bd9;
  --teal: #64c8bb;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(49, 92, 52, 0.28), transparent 28rem),
    linear-gradient(180deg, #0b0a08 0%, #11100c 42%, #0b0a08 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.56;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.14;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26rem);
  mix-blend-mode: overlay;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  color: var(--black);
  background: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 2rem;
  background: rgba(11, 10, 8, 0.74);
  border-bottom: 1px solid rgba(247, 240, 223, 0.13);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease;
}

.site-header.is-tucked {
  transform: translateY(-100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 2px solid rgba(247, 240, 223, 0.86);
  border-radius: 7px;
  background:
    linear-gradient(135deg, var(--red) 0 42%, transparent 42% 48%, var(--blue) 48% 100%),
    var(--paper);
  box-shadow: inset 0 0 0 2px rgba(11, 10, 8, 0.28), 0 0 24px rgba(90, 160, 228, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(247, 240, 223, 0.78);
  font-size: 0.94rem;
}

.nav-links a,
.footer-links a,
.social-links a {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.social-links a:hover {
  color: var(--green);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.social-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.62rem;
  border: 1px solid rgba(247, 240, 223, 0.18);
  border-radius: 6px;
  color: rgba(247, 240, 223, 0.8);
  background: rgba(247, 240, 223, 0.065);
  font-size: 0.86rem;
  font-weight: 850;
}

.header-cta {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.54rem 0.82rem;
  border: 1px solid rgba(155, 227, 111, 0.5);
  border-radius: 6px;
  color: #091006;
  background: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.section {
  position: relative;
  padding: 6.7rem 0;
  border-top: 1px solid rgba(247, 240, 223, 0.1);
  scroll-margin-top: 88px;
}

.section-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-size: 0.79rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

h1 {
  max-width: 8ch;
  margin-bottom: 1rem;
  font-size: 5.65rem;
  line-height: 0.93;
}

h2 {
  margin-bottom: 1rem;
  font-size: 3.25rem;
  line-height: 1.02;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.16rem;
  line-height: 1.2;
}

p {
  color: rgba(247, 240, 223, 0.78);
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -5;
  background-image: url("assets/media/desktop-current.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.07) brightness(0.62);
  transform: scale(1.05);
}

.hero-light {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(11, 10, 8, 0.94) 0%, rgba(11, 10, 8, 0.78) 38%, rgba(11, 10, 8, 0.22) 70%, rgba(11, 10, 8, 0.8) 100%),
    linear-gradient(0deg, rgba(11, 10, 8, 0.96) 0%, transparent 30%, rgba(11, 10, 8, 0.78) 100%);
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.28;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 5px, rgba(255, 255, 255, 0.08) 6px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(540px, calc(100% - 2rem));
  margin-left: max(1rem, calc((100% - 1180px) / 2));
  padding-top: 2rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.74);
}

.hero-line {
  margin-bottom: 1rem;
  color: var(--paper);
  font-size: 1.55rem;
  font-weight: 850;
}

.hero-text {
  max-width: 35rem;
  font-size: 1.08rem;
}

.search-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 5.1rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  border-radius: 7px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #071006;
  border: 1px solid rgba(155, 227, 111, 0.72);
  background: linear-gradient(180deg, #c4fb8d 0%, var(--green) 100%);
  box-shadow: 0 14px 32px rgba(74, 154, 55, 0.28);
}

.button-ghost {
  color: var(--ink);
  border: 1px solid rgba(247, 240, 223, 0.28);
  background: rgba(11, 10, 8, 0.56);
}

.button-ghost:hover {
  border-color: rgba(243, 189, 79, 0.7);
}

.hero-stage {
  position: absolute;
  inset: 0 0 0 max(48vw, calc((100vw - 1180px) / 2 + 560px));
  z-index: 1;
  pointer-events: none;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -52vw;
  width: 56vw;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 10, 8, 0.92), rgba(11, 10, 8, 0.58) 58%, transparent 100%);
}

.desktop-window {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(153, 194, 255, 0.76);
  border-radius: var(--radius);
  background: #dce7f8;
  box-shadow: var(--shadow);
  pointer-events: auto;
  transform: rotate(var(--tilt));
  animation: windowFloat 8s ease-in-out infinite;
}

.desktop-window img {
  width: 100%;
  height: calc(100% - 30px);
  object-fit: cover;
}

.window-bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.45rem 0 0.65rem;
  color: #fff;
  background: linear-gradient(180deg, #3e86d6, #0646aa);
  font-size: 0.72rem;
  font-weight: 850;
  user-select: none;
  cursor: grab;
}

.window-bar span {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window-bar i {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: #0c2f74;
}

.window-main {
  --tilt: -1deg;
  right: 0;
  top: 14%;
  width: 40rem;
  height: 24rem;
}

.window-side {
  --tilt: 1.6deg;
  right: 5%;
  bottom: 11%;
  width: 26rem;
  height: 17rem;
  animation-delay: -2s;
}

.window-note {
  --tilt: 1deg;
  right: 18%;
  bottom: 4%;
  width: 27rem;
  height: 16rem;
  animation-delay: -4s;
}

.receipt-strip {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  width: min(1180px, calc(100% - 2rem));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(247, 240, 223, 0.16);
  border-bottom: 0;
  background: rgba(11, 10, 8, 0.77);
  backdrop-filter: blur(16px);
}

.receipt-strip span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  color: rgba(247, 240, 223, 0.78);
  border-right: 1px solid rgba(247, 240, 223, 0.12);
  font-size: 0.88rem;
  text-align: center;
}

.receipt-strip span:last-child {
  border-right: 0;
}

.manifesto-section,
.oldweb-section,
.faq-section {
  color: #17120c;
  background: var(--paper);
}

.manifesto-section p,
.oldweb-section p,
.faq-section p {
  color: #3a3326;
}

.manifesto-section .eyebrow,
.oldweb-section .eyebrow,
.faq-section .eyebrow {
  color: var(--amber-dark);
}

.manifesto-grid,
.memory-grid,
.faq-grid,
.oldweb-grid,
.game-highlight {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.manifesto-copy,
.game-copy {
  display: grid;
  gap: 1rem;
  font-size: 1.1rem;
}

.ripple-list span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #100b05;
  background: var(--amber);
  font-weight: 900;
}

.ripple-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.ripple-list p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.demo-section {
  padding: 4.2rem 0;
  background:
    linear-gradient(180deg, #0b0a08 0%, #17100c 100%);
}

.demo-section .section-heading {
  max-width: 920px;
  margin-bottom: 1.35rem;
}

.demo-section h2 {
  font-size: 2.72rem;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: stretch;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
}

.demo-window {
  width: min(100%, 920px);
  justify-self: center;
  display: grid;
  grid-template-rows: 30px 1fr;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(153, 194, 255, 0.72);
  border-radius: var(--radius);
  background: #0a0a08;
  box-shadow: var(--shadow);
}

.demo-window-bar {
  cursor: default;
}

.demo-window iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ece7d9;
}

.demo-copy {
  width: min(100%, 920px);
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  padding: 1rem;
  border: 1px solid rgba(247, 240, 223, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(247, 240, 223, 0.085), rgba(247, 240, 223, 0.035)),
    #15120e;
}

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.demo-tabs button {
  min-height: 42px;
  padding: 0.5rem 0.62rem;
  border: 1px solid rgba(247, 240, 223, 0.18);
  border-radius: 6px;
  color: rgba(247, 240, 223, 0.82);
  background: rgba(247, 240, 223, 0.06);
  font-size: 0.9rem;
  font-weight: 900;
}

.demo-tabs button:hover,
.demo-tabs button.is-active {
  color: #071006;
  border-color: rgba(155, 227, 111, 0.68);
  background: var(--green);
}

.demo-label {
  margin: 0;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-copy h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.08rem;
  line-height: 1.02;
}

.demo-copy p {
  margin-bottom: 0;
}

.demo-points {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-points li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(247, 240, 223, 0.8);
  font-size: 0.95rem;
}

.demo-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  background: var(--amber);
}

.demo-reset {
  align-self: flex-start;
  margin-top: 0;
}

.demo-disclaimer {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(247, 240, 223, 0.12);
  color: rgba(247, 240, 223, 0.62);
  font-size: 0.9rem;
}

.trailer-section {
  background: #12100e;
}

.trailer-section .section-heading {
  max-width: 840px;
}

.trailer-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(247, 240, 223, 0.18);
  border-radius: var(--radius);
  background: #050505;
  box-shadow: var(--shadow);
}

.trailer-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.trailer-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  background: #050505;
  cursor: pointer;
}

.trailer-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.78) saturate(1.08);
  transition: filter 180ms ease, transform 220ms ease;
}

.trailer-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 10, 8, 0.02) 0%, rgba(11, 10, 8, 0.2) 60%, rgba(11, 10, 8, 0.7) 100%),
    repeating-linear-gradient(0deg, transparent 0, transparent 4px, rgba(255, 255, 255, 0.05) 5px);
}

.trailer-poster:hover img,
.trailer-poster:focus-visible img {
  filter: brightness(0.95) saturate(1.18);
  transform: scale(1.015);
}

.trailer-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(247, 240, 223, 0.48);
  border-radius: 50%;
  background: rgba(11, 10, 8, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.trailer-play span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 25px solid var(--paper);
}

.trailer-poster-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.58rem 0.74rem;
  border: 1px solid rgba(247, 240, 223, 0.24);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(11, 10, 8, 0.78);
  font-weight: 900;
}

.trailer-fallback {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  margin: 0;
}

.trailer-fallback a {
  color: var(--green);
}

.systems-section {
  background:
    linear-gradient(180deg, #17100c 0%, #0b0a08 100%);
}

.feature-tabs,
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.feature-tabs {
  margin-bottom: 1rem;
}

.feature-tab,
.gallery-filters button {
  min-height: 38px;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(247, 240, 223, 0.18);
  border-radius: 6px;
  color: rgba(247, 240, 223, 0.78);
  background: rgba(247, 240, 223, 0.055);
  font-weight: 850;
}

.feature-tab.is-active,
.gallery-filters button.is-active {
  color: #071006;
  border-color: rgba(155, 227, 111, 0.65);
  background: var(--green);
}

.feature-panel {
  display: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 1.2rem;
  align-items: stretch;
}

.feature-panel.is-active {
  display: grid;
}

.feature-panel img {
  width: 100%;
  height: 560px;
  object-fit: contain;
  border: 1px solid rgba(247, 240, 223, 0.16);
  border-radius: var(--radius);
  background: #050505;
  box-shadow: var(--shadow);
}

.panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem;
  border: 1px solid rgba(247, 240, 223, 0.14);
  border-radius: var(--radius);
  background: rgba(247, 240, 223, 0.055);
}

.panel-number {
  color: var(--amber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.2rem;
  line-height: 1;
}

.panel-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.18rem;
  line-height: 1.04;
}

.games-section {
  color: #17120c;
  background:
    linear-gradient(180deg, #f2ead7 0%, #e5d7ad 100%);
}

.games-section p {
  color: #3a3326;
}

.games-section .eyebrow {
  color: var(--amber-dark);
}

.game-highlight {
  align-items: center;
}

.game-stack {
  position: relative;
  min-height: 560px;
}

.game-card {
  width: min(86%, 680px);
  border: 1px solid rgba(23, 18, 12, 0.2);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 22px 56px rgba(23, 18, 12, 0.24);
}

.game-card-top {
  margin-left: auto;
}

.game-card-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
}

.software-section {
  background: #11100e;
}

.software-grid,
.diary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.software-card,
.diary-card {
  min-height: 260px;
  padding: 1rem;
  border: 1px solid rgba(247, 240, 223, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(247, 240, 223, 0.085), rgba(247, 240, 223, 0.035)),
    #15120e;
}

.software-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #050505;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(247, 240, 223, 0.12);
  border-radius: 6px;
}

.topic-grid .software-card {
  min-height: 0;
}

.oldweb-grid {
  align-items: center;
}

.oldweb-media {
  display: grid;
  gap: 1rem;
}

.oldweb-media img {
  width: 100%;
  border: 1px solid rgba(23, 18, 12, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(23, 18, 12, 0.18);
}

.memory-section {
  background:
    linear-gradient(180deg, #0b0a08 0%, #15100f 100%);
}

.memory-grid p {
  font-size: 1.05rem;
}

.ripple-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ripple-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0.9rem;
  align-items: start;
  min-height: 112px;
  padding: 1rem;
  border: 1px solid rgba(247, 240, 223, 0.14);
  border-radius: var(--radius);
  background: rgba(247, 240, 223, 0.05);
}

.screenshots-section {
  background: #11100e;
}

.row-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.shot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(247, 240, 223, 0.14);
  border-radius: var(--radius);
  background: rgba(247, 240, 223, 0.05);
}

.shot-card.is-hidden {
  display: none;
}

.shot-card button {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #050505;
  border-bottom: 1px solid rgba(247, 240, 223, 0.12);
  transition: transform 220ms ease, filter 220ms ease;
}

.shot-card button:hover img {
  transform: scale(1.018);
  filter: brightness(1.06);
}

.shot-card figcaption {
  padding: 0.9rem;
  color: rgba(247, 240, 223, 0.78);
  font-size: 0.92rem;
}

.diary-section {
  background: #0f0d0c;
}

.diary-card {
  min-height: 230px;
}

.diary-card span {
  display: block;
  margin-bottom: 1rem;
  color: var(--pink);
  font-weight: 850;
}

.steam-section {
  background: #172016;
}

.steam-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid rgba(155, 227, 111, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(155, 227, 111, 0.14), rgba(243, 189, 79, 0.08)),
    rgba(11, 10, 8, 0.4);
}

.steam-band h2 {
  margin-bottom: 0.35rem;
}

.steam-band p {
  max-width: 46rem;
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

details {
  border: 1px solid rgba(23, 18, 12, 0.18);
  border-radius: var(--radius);
  background: var(--paper-2);
}

summary {
  padding: 1rem;
  color: #17120c;
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 1rem 1rem;
}

.site-footer {
  padding: 2rem 0;
  background: #0b0a08;
  border-top: 1px solid rgba(247, 240, 223, 0.12);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 100%;
  color: rgba(247, 240, 223, 0.75);
}

.footer-links a {
  overflow-wrap: anywhere;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(6, 5, 4, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 7rem);
  border: 1px solid rgba(247, 240, 223, 0.25);
  border-radius: var(--radius);
  background: #111;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: fixed;
  right: 1.2rem;
  top: 1.2rem;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(247, 240, 223, 0.28);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(11, 10, 8, 0.8);
  font-weight: 850;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes windowFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

@media (min-width: 1121px) {
  .demo-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .demo-window,
  .demo-copy {
    width: 100%;
  }

  .demo-window {
    justify-self: center;
  }

  .demo-copy {
    justify-self: center;
    gap: 0.78rem;
    padding: 0.9rem;
  }

  .demo-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-copy h3 {
    font-size: 1.58rem;
  }
}

@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }

  .site-header {
    gap: 0.65rem;
  }

  .window-main {
    right: -6rem;
    width: 37rem;
  }

  .window-note {
    display: none;
  }

  .demo-layout,
  .feature-panel,
  .game-highlight,
  .oldweb-grid {
    grid-template-columns: 1fr;
  }

  .demo-window,
  .demo-copy {
    min-height: auto;
  }

  .demo-window iframe {
    min-height: 0;
  }

  .feature-panel img {
    min-height: auto;
  }

  .feature-panel img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .software-grid,
  .screenshot-grid,
  .diary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 64px;
    padding: 0 1rem;
  }

  .brand {
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .social-links {
    margin-left: auto;
    gap: 0.35rem;
  }

  .social-links a {
    min-height: 32px;
    padding: 0.34rem 0.48rem;
    font-size: 0.78rem;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.32rem;
  }

  .section {
    padding: 4.8rem 0;
  }

  .demo-section {
    padding: 3.4rem 0;
  }

  .demo-section h2 {
    font-size: 2.1rem;
  }

  .hero {
    min-height: 95vh;
    padding-top: 6rem;
  }

  .hero-copy {
    margin: 0 auto;
    padding-top: 0;
  }

  .hero-line {
    font-size: 1.26rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-bg {
    filter: saturate(1.05) contrast(1.04) brightness(0.42);
    transform: none;
  }

  .hero-light {
    background:
      linear-gradient(90deg, rgba(11, 10, 8, 0.96) 0%, rgba(11, 10, 8, 0.86) 62%, rgba(11, 10, 8, 0.72) 100%),
      linear-gradient(0deg, rgba(11, 10, 8, 0.96) 0%, transparent 34%, rgba(11, 10, 8, 0.82) 100%);
  }

  .hero-stage {
    display: none;
  }

  .hero-stage::before {
    display: none;
  }

  .window-main {
    top: 54%;
    right: -13rem;
    width: 34rem;
    height: 21rem;
  }

  .window-side {
    display: none;
  }

  .receipt-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .receipt-strip span:last-child {
    grid-column: 1 / -1;
  }

  .manifesto-grid,
  .memory-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .ripple-list li {
    grid-template-columns: 46px 1fr;
  }

  .demo-layout {
    gap: 0.85rem;
  }

  .demo-window {
    display: none;
  }

  .demo-copy {
    width: 100%;
  }

  .demo-reset {
    display: none;
  }

  .demo-reset {
    margin-top: 0;
  }

  .demo-window iframe {
    min-height: 0;
  }

  .demo-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-heading,
  .steam-band,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .software-grid,
  .screenshot-grid,
  .diary-grid {
    grid-template-columns: 1fr;
  }

  .game-stack {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .game-card {
    width: 100%;
  }

  .game-card-bottom {
    position: static;
  }
}

@media (max-width: 460px) {
  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-line {
    font-size: 1.08rem;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .receipt-strip {
    grid-template-columns: 1fr;
  }

  .receipt-strip span {
    min-height: 42px;
    font-size: 0.76rem;
  }

  .receipt-strip span:last-child {
    grid-column: auto;
  }

  .feature-tab,
  .gallery-filters button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
