:root {
  --bg: #12170f;
  --bg-alt: #182013;
  --line: #2c3624;
  --text: #ece4d0;
  --muted: #a9a58f;
  --accent: #e9c46a;
  --accent-soft: #c9a24c;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(10, 13, 8, .75), rgba(10, 13, 8, 0));
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--pixel); font-size: 14px; letter-spacing: .02em; text-decoration: none;
}
.brand-mark {
  width: 14px; height: 14px; background: var(--accent);
  box-shadow: 0 0 12px rgba(233, 196, 106, .6);
}
.nav nav { display: flex; gap: clamp(12px, 2.5vw, 28px); }
.nav nav a { font-size: 14px; text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

/* hero */
.hero { position: relative; min-height: clamp(560px, 100svh, 960px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(18, 23, 15, .55) 35%, rgba(18, 23, 15, 0) 65%),
    linear-gradient(to right, rgba(18, 23, 15, .55), rgba(18, 23, 15, 0) 60%);
}
.hero-text { position: relative; padding: 0 var(--gutter) clamp(56px, 10vh, 110px); max-width: 760px; }
.eyebrow { font-family: var(--pixel); font-size: 13px; color: var(--accent); margin: 0 0 12px; }
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(44px, 8vw, 96px); line-height: 1; margin: 0 0 18px; letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.tagline { font-size: clamp(18px, 2.2vw, 22px); margin: 0 0 14px; max-width: 34ch; }
.meta { font-size: 14px; color: var(--muted); margin: 0; }
.hero-caption {
  position: absolute; right: var(--gutter); bottom: 18px; margin: 0;
  font-size: 12px; color: var(--muted); opacity: .8;
}

/* sections */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--pixel); font-size: 12px; color: var(--accent); margin: 0 0 10px; }
h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin: 0 0 20px;
}
h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.lede { color: var(--muted); max-width: 62ch; margin: 0; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 24px 64px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 5fr 7fr; } }

/* features */
.features {
  display: grid; gap: 1px; margin-top: clamp(48px, 7vw, 88px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: var(--line); border: 1px solid var(--line);
}
.features article { background: var(--bg); padding: 28px 26px 30px; }
.features p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* gallery */
.gallery {
  display: grid; gap: 16px; margin-top: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: 2fr 1fr; }
  .gallery figure:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery figure:nth-child(4) { grid-column: 1; grid-row: 2; }
  .gallery figure:not(.wide) img { height: 100%; aspect-ratio: auto; }
  .gallery figure:not(.wide) { display: flex; flex-direction: column; }
  .gallery figure:not(.wide) a { flex: 1; }
}
.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }

.group-title {
  font-family: var(--pixel); font-weight: 400; font-size: 13px; color: var(--muted);
  margin-top: 48px; margin-bottom: -20px;
}
@media (min-width: 900px) {
  .gallery.trio figure:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; }
  .gallery.trio figure:nth-child(2) { grid-column: 2; grid-row: 1; }
  .gallery.trio figure:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery.trio figure:nth-child(1) a { flex: 1; }
  .gallery.trio figure:nth-child(1) img { height: 100%; aspect-ratio: auto; }
}

/* motion */
.clips { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .clips { grid-template-columns: 2fr 1fr; align-items: start; } }
.clips figure { margin: 0; }
.clips video {
  display: block; width: 100%; aspect-ratio: 16 / 9; background: #0c100a;
  border: 1px solid var(--line); image-rendering: pixelated;
}
.clips figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }

/* devlog */
.side-note { color: var(--muted); max-width: 40ch; }
.sprites { display: flex; gap: 12px; margin-top: 28px; }
.sprite { margin: 0; display: inline-block; }
.sprite-cap { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.sprite img {
  image-rendering: pixelated;
  background: #1d2717; border: 1px solid var(--line);
}
.sprite figcaption { font-size: 12px; color: var(--muted); padding-top: 8px; }
.log { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.log li { position: relative; padding: 0 0 34px 28px; }
.log li:last-child { padding-bottom: 0; }
.log li::before {
  content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px;
  background: var(--bg); border: 1px solid var(--accent-soft);
}
.log li:last-child::before { background: var(--accent); border-color: var(--accent); }
.log .step { font-family: var(--pixel); font-size: 12px; color: var(--accent); }
.log h3 { margin: 4px 0 6px; }
.log p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* roadmap */
.road {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (min-width: 900px) { .road { grid-template-columns: repeat(3, 1fr); } }
.road em {
  float: right; font-style: normal; font-family: var(--pixel); font-size: 11px; color: var(--accent-soft);
}
.road li {
  border: 1px solid var(--line); padding: 20px 20px 22px; color: var(--muted); font-size: 15px;
  background: var(--bg);
}
.road span { display: block; color: var(--text); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.road li::before {
  content: "Planned"; display: block; font-family: var(--pixel); font-size: 11px; margin-bottom: 10px; color: var(--muted);
}
.road li.done::before { content: "Done"; color: var(--accent-soft); }
.road li.now { border-color: var(--accent-soft); }
.road li.now::before { content: "Now"; color: var(--accent); }

/* contact */
.contact { text-align: center; }
.contact .lede { margin: 0 auto 28px; }
.mail {
  display: inline-block; font-family: var(--display); font-size: clamp(22px, 3.4vw, 34px);
  text-decoration: none; border-bottom: 1px solid var(--accent-soft); padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--accent); }
.steam { margin: 22px 0 0; color: var(--muted); font-size: 14px; }

.foot { border-top: 1px solid var(--line); padding: 28px var(--gutter); text-align: center; }
.foot p { margin: 0; font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .nav nav a:nth-child(2), .nav nav a:nth-child(3), .nav nav a:nth-child(4) { display: none; }
  .hero-caption { left: var(--gutter); right: auto; }
}

/* making of */
.sub-h { margin-top: 64px; }
.clips.one { grid-template-columns: 1fr; }
.steps, .progress { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .progress { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .progress { grid-template-columns: 1fr; } }
.steps figure, .progress figure { margin: 0; }
.steps img, .progress img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.steps img.px { image-rendering: pixelated; }
.steps figcaption, .progress figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; line-height: 1.5; }
.steps figcaption b, .progress figcaption b { display: block; color: var(--accent); font-family: var(--pixel); font-weight: 400; font-size: 12px; margin-bottom: 4px; }
.facts-wrap { margin-top: 24px; }
.facts { margin: 64px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { background: var(--bg-alt); padding: 18px 20px; }
.facts dt { font-family: var(--pixel); font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.5; }
.prose a, .steam a, .hero .meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
