/* ──────────────────────────────────────────────────────────────
   Stickman website — shared stylesheet
   Used by index.html / about.html / levels.html / press.html
   Palette and proportions follow AGENTS.md.
   ────────────────────────────────────────────────────────────── */

:root {
  --ink:   #0a0a0a;
  --paper: #ffffff;
  --exit:  #0a8a3a;     /* exit sign background ONLY */
  --grout: #2a1410;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: 'Space Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* ── Header ─────────────────────────────────────────────────── */

header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px;
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.wordmark svg, .wordmark .mark { display: block; }
.wordmark a { display: flex; align-items: center; gap: 12px; }
.nav { display: flex; gap: 22px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; align-items: center; }
.nav a, .nav .muted { color: rgba(10,10,10,0.55); position: relative; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--ink);
}
.nav .sound {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--ink);
  padding: 6px 10px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  font: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 120ms;
}
.nav .sound:hover { background: var(--ink); color: var(--paper); }
.nav .sound .ico { font-size: 13px; line-height: 1; }
.nav .sound[data-on="true"] { background: var(--ink); color: var(--paper); }

/* ── Main layout ────────────────────────────────────────────── */

main { max-width: 1200px; margin: 0 auto; padding: 48px 36px 80px; }

/* Generic page heading block used by inner pages */
.pagehead {
  display: flex; flex-direction: column; gap: 14px;
  padding: 12px 0 36px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 56px;
}
.pagehead h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.9; letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
}
.pagehead .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(10,10,10,0.55);
}
.pagehead .eyebrow .dot { color: var(--ink); }
.pagehead .lede { font-size: 18px; line-height: 1.5; max-width: 60ch; color: rgba(10,10,10,0.78); margin: 4px 0 0; }

/* ── Hero (index.html) ──────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

.scene {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 480px;
  border: 4px solid var(--ink);
  overflow: hidden;
  background: var(--grout);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Crect width='80' height='40' fill='%232a1410'/%3E%3Crect x='1' y='1' width='38' height='18' fill='%23a64740' rx='1'/%3E%3Crect x='41' y='1' width='38' height='18' fill='%23873028' rx='1'/%3E%3Crect x='-19' y='21' width='38' height='18' fill='%23983834' rx='1'/%3E%3Crect x='21' y='21' width='38' height='18' fill='%23b34a3c' rx='1'/%3E%3Crect x='61' y='21' width='38' height='18' fill='%237e2a26' rx='1'/%3E%3C/svg%3E");
  background-size: 80px 40px;
}
.glass {
  position: absolute; inset: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.1) 70%);
  border: 3px solid var(--ink);
  overflow: hidden;
}
.glare {
  position: absolute; top: -50%; left: -30%; width: 40%; height: 200%;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
  transform: rotate(15deg); pointer-events: none;
}
.scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.scene-svg .fist { transition: r 240ms cubic-bezier(0.3, 0.6, 0.2, 1.2); }
.scene-svg .ripple { opacity: 0; }
.scene-svg .ripple.a { animation: rip 700ms infinite linear; animation-delay: 880ms; }
.scene-svg .ripple.b { animation: rip 700ms infinite linear; animation-delay: 980ms; }
.scene-svg .ripple.c { animation: rip 700ms infinite linear; animation-delay: 1730ms; }
.scene-svg .ripple.d { animation: rip 700ms infinite linear; animation-delay: 1830ms; }
@keyframes rip {
  0%   { opacity: 0; r: 2; stroke-width: 2.5; }
  8%   { opacity: 0.9; }
  100% { opacity: 0; r: 60; stroke-width: 0.5; }
}

.copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(10,10,10,0.55);
}
.eyebrow .dot { color: var(--ink); }
h1.hero-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}
.lede { font-size: 18px; line-height: 1.5; max-width: 44ch; color: rgba(10,10,10,0.78); }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 8px 14px;
  align-self: flex-start;
  margin-top: 6px;
}
.tag::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--ink); border-radius: 50%;
  animation: blink 1400ms infinite step-end;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.25; } }

/* ── Teaser strip (index) ────────────────────────────────────── */

.teasers {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .teasers { grid-template-columns: 1fr; } }
.teaser {
  aspect-ratio: 5 / 4;
  border: 2.5px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.teaser .label {
  position: absolute; bottom: 12px; left: 14px;
  background: var(--ink); color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 8px;
}
.teaser .sm { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); }

.teaser-exit {
  grid-column: span 3;
  aspect-ratio: 12 / 4;
  display: flex; align-items: center; justify-content: center;
  gap: 36px; padding: 22px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px),
    linear-gradient(180deg, #2a261e 0%, #110e0a 100%);
}
@media (max-width: 720px) { .teaser-exit { grid-column: span 1; aspect-ratio: 5/3; flex-direction: column; gap: 18px; } }
.exit-sign {
  position: relative;
  padding: 6px;
  background: var(--ink);
  border: 2px solid #2a2a2a;
  z-index: 1;
}
.exit-sign::before {
  content: '';
  position: absolute; inset: -22px;
  background: radial-gradient(circle, rgba(50,220,120,0.35) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}
.exit-copy { color: var(--paper); max-width: 320px; }
.exit-copy .h { font-family: 'Archivo Black', sans-serif; font-size: 26px; letter-spacing: 0.02em; }
.exit-copy .s { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; margin-top: 6px; }

/* ── Room backgrounds (used on index + levels) ──────────────── */

.bg-brick {
  background: var(--grout);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Crect width='80' height='40' fill='%232a1410'/%3E%3Crect x='1' y='1' width='38' height='18' fill='%23a64740' rx='1'/%3E%3Crect x='41' y='1' width='38' height='18' fill='%23873028' rx='1'/%3E%3Crect x='-19' y='21' width='38' height='18' fill='%23983834' rx='1'/%3E%3Crect x='21' y='21' width='38' height='18' fill='%23b34a3c' rx='1'/%3E%3Crect x='61' y='21' width='38' height='18' fill='%237e2a26' rx='1'/%3E%3C/svg%3E");
  background-size: 80px 40px;
}
.bg-stripes { background: repeating-linear-gradient(90deg, #e8d8b8 0 22px, #c19a5b 22px 44px); }
.bg-floral {
  background: #f4e3d7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23a35d4f' opacity='0.7'%3E%3Ccircle cx='30' cy='18' r='5'/%3E%3Ccircle cx='22' cy='26' r='5'/%3E%3Ccircle cx='38' cy='26' r='5'/%3E%3Ccircle cx='30' cy='34' r='5'/%3E%3Ccircle cx='30' cy='26' r='3' fill='%23f4e3d7'/%3E%3C/g%3E%3Cg fill='%2387a06b' opacity='0.6'%3E%3Cpath d='M30 38 Q 26 46 28 56 M30 38 Q 34 46 32 56'/%3E%3Cellipse cx='25' cy='46' rx='4' ry='2' transform='rotate(-30 25 46)'/%3E%3Cellipse cx='35' cy='46' rx='4' ry='2' transform='rotate(30 35 46)'/%3E%3C/g%3E%3C/svg%3E");
}
.bg-dots {
  background:
    radial-gradient(circle at 50% 50%, #d96294 5px, transparent 6px) 0 0 / 32px 32px,
    radial-gradient(circle at 50% 50%, #d96294 5px, transparent 6px) 16px 16px / 32px 32px,
    #f4dce4;
}
.bg-plaid {
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(0,0,0,0.18) 18px 22px, transparent 22px 40px, rgba(0,0,0,0.08) 40px 42px),
    repeating-linear-gradient(0deg,  transparent 0 18px, rgba(0,0,0,0.18) 18px 22px, transparent 22px 40px, rgba(0,0,0,0.08) 40px 42px),
    #7a8e5a;
}
.bg-wood {
  background: #6a4a26;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.0) 0 58px, rgba(0,0,0,0.35) 58px 60px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,0.04) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, #8a5e34 0%, #6a4520 100%);
}
.bg-bathroom {
  background: #3a5a78;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%233a5a78'/%3E%3Crect x='1' y='1' width='18' height='18' fill='%23f0f4f6' rx='1'/%3E%3Crect x='21' y='1' width='18' height='18' fill='%23e6ecee' rx='1'/%3E%3Crect x='1' y='21' width='18' height='18' fill='%23e6ecee' rx='1'/%3E%3Crect x='21' y='21' width='18' height='18' fill='%23f0f4f6' rx='1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}
.bg-kitchen {
  background-color: #e8e1cf;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Crect x='0' y='0' width='30' height='30' fill='%23f5efde'/%3E%3Crect x='30' y='0' width='30' height='30' fill='%23d9c98a'/%3E%3Crect x='0' y='30' width='30' height='30' fill='%23d9c98a'/%3E%3Crect x='30' y='30' width='30' height='30' fill='%23f5efde'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.bg-library {
  background: #291810;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='110' viewBox='0 0 90 110'%3E%3Crect width='90' height='110' fill='%23291810'/%3E%3Crect x='0' y='4' width='14' height='44' fill='%238a4030'/%3E%3Crect x='14' y='8' width='10' height='40' fill='%236a3520'/%3E%3Crect x='24' y='2' width='16' height='46' fill='%234a6038'/%3E%3Crect x='40' y='6' width='12' height='42' fill='%237a2828'/%3E%3Crect x='52' y='4' width='14' height='44' fill='%234a4a30'/%3E%3Crect x='66' y='8' width='10' height='40' fill='%235a5040'/%3E%3Crect x='76' y='4' width='14' height='44' fill='%23764824'/%3E%3Crect x='0' y='48' width='90' height='5' fill='%23150a06'/%3E%3Crect x='0' y='56' width='12' height='48' fill='%236a5030'/%3E%3Crect x='12' y='60' width='16' height='44' fill='%234a3820'/%3E%3Crect x='28' y='54' width='10' height='50' fill='%237a5840'/%3E%3Crect x='38' y='58' width='14' height='46' fill='%235a3a28'/%3E%3Crect x='52' y='54' width='12' height='50' fill='%236a4030'/%3E%3Crect x='64' y='58' width='16' height='46' fill='%234a3018'/%3E%3Crect x='80' y='56' width='10' height='48' fill='%23805030'/%3E%3Crect x='0' y='104' width='90' height='6' fill='%23150a06'/%3E%3C/svg%3E");
  background-size: 90px 110px;
}
.bg-stone {
  background: #2a2820;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='60' viewBox='0 0 100 60'%3E%3Crect width='100' height='60' fill='%231a1814'/%3E%3Cpath d='M2 2h46v26h-46z' fill='%23625a4a'/%3E%3Cpath d='M52 2h46v26h-46z' fill='%23534b3e'/%3E%3Cpath d='M-23 32h46v26h-46z' fill='%23574e3f'/%3E%3Cpath d='M27 32h46v26h-46z' fill='%236a604f'/%3E%3Cpath d='M77 32h46v26h-46z' fill='%234c4538'/%3E%3Cpath d='M2 2v26M48 2v26M52 2v26M98 2v26M27 32v26M73 32v26' stroke='%23080706' stroke-width='0.7' fill='none'/%3E%3C/svg%3E");
  background-size: 100px 60px;
}

/* ── Room grid (levels.html) ────────────────────────────────── */

.rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rooms { grid-template-columns: 1fr; } }
.room {
  position: relative;
  aspect-ratio: 5 / 4;
  border: 2.5px solid var(--ink);
  overflow: hidden;
}
.room .sm { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); }
.room .meta {
  position: absolute;
  top: 12px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.room .name {
  background: var(--ink); color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 8px;
}
.room .num {
  background: var(--paper); color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
}

/* ── About ───────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.about-copy p { font-size: 16px; line-height: 1.55; color: rgba(10,10,10,0.82); margin: 0 0 14px; max-width: 50ch; }
.about-figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.figure-cell {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--ink);
  overflow: hidden;
}
.figure-cell .sm { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); }
.figure-cell .cap {
  position: absolute;
  bottom: 10px; left: 12px;
  background: var(--ink); color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 7px;
}

.rules-list {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 36px;
}
@media (max-width: 720px) { .rules-list { grid-template-columns: 1fr; } }
.rule {
  display: flex; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(10,10,10,0.15);
}
.rule .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600;
  color: rgba(10,10,10,0.45);
  flex-shrink: 0;
  padding-top: 2px;
  letter-spacing: 0.06em;
}
.rule .t { font-size: 15px; line-height: 1.4; }

/* ── Press ──────────────────────────────────────────────────── */

.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .press-grid { grid-template-columns: 1fr; } }
.factsheet {
  border: 2.5px solid var(--ink);
  padding: 28px;
}
.factsheet h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.factsheet dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.factsheet dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(10,10,10,0.55);
  padding-top: 2px;
}
.factsheet dd { margin: 0; font-size: 15px; line-height: 1.4; }
.factsheet a { border-bottom: 1.5px solid var(--ink); }
.factsheet a:hover { background: var(--ink); color: var(--paper); }

.assets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.asset-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--ink);
  overflow: hidden;
}
.asset-tile .sm { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); }
.asset-tile .cap {
  position: absolute;
  bottom: 10px; left: 12px;
  background: var(--ink); color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 7px;
}

.press-cta {
  margin-top: 72px;
  border: 4px solid var(--ink);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center; gap: 36px;
}
@media (max-width: 720px) { .press-cta { grid-template-columns: 1fr; } }
.press-cta h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 36px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
.press-cta p { margin: 8px 0 0; color: rgba(10,10,10,0.7); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 14px 22px;
  font: inherit; font-weight: 700; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn .arrow { font-family: 'JetBrains Mono', monospace; }

/* ── Footer ─────────────────────────────────────────────────── */

footer {
  border-top: 2px solid var(--ink);
  padding: 22px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.04em;
  color: rgba(10,10,10,0.6);
}
footer .links { display: flex; gap: 22px; }
footer .links a:hover { color: var(--ink); }
