/* ==========================================================================
   Michael Simon Dickey — site styles
   Fonts mirror the original Wix site: Raleway (nav), Noticia Text (name),
   Spinnaker (body), Mr De Haviland (script), Special Elite (escape room).
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #2d2d2d;
  --ink-soft: #6c6565;
  --ink-faint: #9a9a9a;
  --rule: #e6e6e6;
  --dark: #1c1c1c;
  --accent: #e8e8e8;
  --sold: #ff5a1f;
  --max: 1100px;
  --gutter: 16px;
  --font-nav: "Raleway", system-ui, sans-serif;
  --font-name: "Noticia Text", Georgia, serif;
  --font-body: "Spinnaker", "Raleway", system-ui, sans-serif;
  --font-script: "Mr De Haviland", cursive;
  --font-type: "Special Elite", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .bar {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-family: var(--font-nav); font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; font-size: 14px; text-decoration: none; color: var(--ink);
  white-space: nowrap;
}
.brand span { color: var(--ink-faint); font-weight: 400; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { position: relative; }
.nav a, .nav button {
  font-family: var(--font-nav); font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 8px 14px; display: block; border-radius: 4px; line-height: 1.6;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--ink-soft); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav .sub {
  list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; right: 0;
  min-width: 190px; background: #fff; border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08); display: none;
}
.nav li:hover > .sub, .nav li:focus-within > .sub, .nav li.open > .sub { display: block; }
.nav .sub a { text-transform: none; letter-spacing: .02em; padding: 8px 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rule); display: none; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; }
  .nav button { pointer-events: none; color: var(--ink-faint); }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px; border-top: 1px solid var(--rule);
  padding: 32px var(--gutter); text-align: center; color: var(--ink-faint);
  font-family: var(--font-nav); font-size: 13px; letter-spacing: .05em;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; margin: 0 10px; }
.site-footer a:hover { color: var(--ink); }
.site-footer svg { width: 18px; height: 18px; vertical-align: -3px; }

/* ---------- Common type ---------- */
.page-title {
  font-family: var(--font-nav); font-weight: 800; text-transform: uppercase; letter-spacing: .2em;
  text-align: center; font-size: clamp(18px, 2.4vw, 22px); margin: 0; padding: 14px var(--gutter);
  background: var(--dark); color: #fff;
}
.lede { text-align: center; color: var(--ink-soft); margin: 18px auto 30px; max-width: 640px; padding: 0 var(--gutter); }
.btn {
  display: inline-block; font-family: var(--font-nav); font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 22px; border: 1px solid var(--ink); color: var(--ink); background: transparent; text-decoration: none;
  cursor: pointer; border-radius: 2px; transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #000; }

/* ---------- Home ---------- */
.hero { text-align: center; padding: 40px var(--gutter) 10px; }
.hero h1 {
  margin: 0; font-family: var(--font-name); font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 8.4vw, 96px); line-height: 1; letter-spacing: .01em; color: var(--accent);
  text-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.hero h1 b { color: #111; text-shadow: none; }
.hero h1 span { display: inline-block; }
.down-arrow { display: inline-block; margin: 26px auto 0; padding: 8px; color: #111; }
.down-arrow svg { width: 56px; height: 34px; }
.down-arrow:hover { transform: translateY(3px); }

.collage { columns: 3 260px; column-gap: 10px; max-width: 1200px; margin: 40px auto 0; padding: 0 var(--gutter); }
.collage a { display: block; margin-bottom: 10px; break-inside: avoid; overflow: hidden; }
.collage img { width: 100%; height: auto; transition: transform .5s, filter .5s; filter: grayscale(.1); }
.collage a:hover img { transform: scale(1.03); filter: none; }

.banner {
  position: relative; margin-top: 60px; min-height: 480px; display: grid; place-items: center;
  background: #111 center/cover no-repeat; color: var(--accent); text-align: center; padding: 60px var(--gutter);
}
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.banner p {
  position: relative; margin: 0 auto; max-width: 780px; font-family: var(--font-name); font-weight: 400;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.35; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.banner p a { text-decoration: none; }
.quote { max-width: 760px; margin: 60px auto; padding: 0 var(--gutter); text-align: center; }
.quote blockquote { margin: 0; font-family: var(--font-name); font-style: italic; font-size: clamp(17px, 2vw, 20px); line-height: 1.7; text-align: left; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--font-nav); color: var(--ink-soft); letter-spacing: .05em; }
.reel { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.reel video { width: 100%; background: #000; }
.more-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 50px auto 0; padding: 0 var(--gutter); }
.more-links a { font-family: var(--font-type); }

/* ---------- Gallery ---------- */
.masonry { columns: 3 300px; column-gap: 14px; max-width: 1240px; margin: 30px auto 0; padding: 0 var(--gutter); }
.masonry figure { margin: 0 0 14px; break-inside: avoid; cursor: zoom-in; position: relative; }
.masonry img { width: 100%; height: auto; background: #f2f2f2; }
.masonry figcaption { font-family: var(--font-nav); font-size: 13px; color: var(--ink-soft); padding: 6px 2px 0; }

/* ---------- Store landing ---------- */
.tiles { display: flex; flex-wrap: wrap; gap: 50px; justify-content: center; padding: 50px var(--gutter); }
.tile {
  position: relative; width: min(300px, 100%); aspect-ratio: 9 / 16; display: grid; place-items: center;
  background: #000 center/cover no-repeat; text-decoration: none; overflow: hidden;
}
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); transition: background .3s; }
.tile::after { content: ""; position: absolute; inset: 22px 16px; border: 1px solid rgba(255,255,255,.85); }
.tile:hover::before { background: rgba(0,0,0,.5); }
.tile span {
  position: relative; z-index: 1; color: #fff; font-family: var(--font-nav); font-weight: 800; text-transform: uppercase;
  letter-spacing: .18em; font-size: 22px; text-align: center; line-height: 1.15; padding: 0 30px;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

/* ---------- Product grid ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 24px; max-width: var(--max); margin: 30px auto 0; padding: 0 var(--gutter); }
.product { cursor: zoom-in; }
.product .frame { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.product .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product:hover .frame img { transform: scale(1.03); }
.product h3 { font-family: var(--font-nav); font-weight: 500; font-size: 15px; margin: 12px 0 2px; }
.product .price { font-family: var(--font-nav); color: var(--ink-soft); font-size: 14px; }
.badge { position: absolute; top: 6px; left: 6px; background: var(--sold); color: #fff; font: 700 11px var(--font-nav); letter-spacing: .1em; padding: 3px 8px; }

/* ---------- About ---------- */
.about { max-width: 820px; margin: 50px auto; padding: 0 var(--gutter); }
.about .statement {
  font-family: var(--font-nav); font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  text-align: center; font-size: clamp(17px, 2.2vw, 22px); line-height: 1.45; margin: 0 0 34px;
}
.about p { color: #3d3d3d; }
.about hr { border: 0; border-top: 2px solid #111; width: 60%; margin: 34px auto; }
.about .inspo { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { max-width: 560px; margin: 50px auto; padding: 0 var(--gutter); }
.contact label { display: block; font-family: var(--font-nav); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 6px; color: var(--ink-soft); }
.contact input, .contact textarea {
  width: 100%; font: inherit; padding: 12px; border: 1px solid #cfcfcf; border-radius: 2px; background: #fff; color: var(--ink);
}
.contact textarea { min-height: 160px; resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.contact .actions { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.contact .note { font-size: 14px; color: var(--ink-soft); }
.form-status { margin-top: 16px; font-family: var(--font-nav); }

/* ---------- Embeds (games, story mode) ---------- */
.embed { max-width: 1000px; margin: 30px auto 0; padding: 0 var(--gutter); }
.embed .ratio { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #111; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed .caption { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.game-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px auto 0; padding: 0 var(--gutter); }
.game-list button.active { background: var(--ink); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.94); display: none;
  align-items: center; justify-content: center; padding: 50px 60px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox figcaption { color: #ddd; font-family: var(--font-nav); margin-top: 14px; text-align: center; }
.lightbox figcaption .inq { color: #fff; margin-left: 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lightbox .lb-btn {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; opacity: .75;
}
.lightbox .lb-btn:hover { opacity: 1; }
.lightbox .lb-btn svg { width: 30px; height: 30px; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 50px 8px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 6px; transform: none; } }

/* ---------- Escape rooms landing ---------- */
.er-hero {
  position: relative; min-height: 70vh; display: grid; place-items: center; text-align: center;
  background: #888 center/cover no-repeat; padding: 60px var(--gutter);
}
.er-hero h2 { font-family: var(--font-type); font-weight: 400; font-size: clamp(48px, 9vw, 110px); margin: 0 0 20px; color: #111; letter-spacing: .02em; }
.er-hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.er-hero .btn { background: rgba(255,255,255,.85); }
.er-hero .btn.tpt { background: #4a90d9; border-color: #4a90d9; color: #fff; }
.er-title { font-family: var(--font-type); text-align: center; font-weight: 400; font-size: 26px; margin: 30px 0 20px; }
.er-info { max-width: 760px; margin: 40px auto; padding: 0 var(--gutter); }
.er-info ul { columns: 2 220px; }
