/* The Unlock Box - site stylesheet, v2 (noir)
   Near-black paper, aged gold, candlelight. Serif display, small caps, hairline rules. */
:root {
  --bg: #0d0b09;
  --bg-2: #14110e;
  --bg-3: #1b1713;
  --panel: #1f1a15;
  --line: rgba(201, 169, 97, 0.22);
  --line-2: rgba(201, 169, 97, 0.45);
  --gold: #c9a961;
  --gold-2: #e2c98a;
  --gold-3: #8f7439;
  --cream: #efe4cf;
  --cream-2: #cbbfa6;
  --muted: #8f8570;
  --wine: #6b1f2a;
  --wine-2: #8a2a36;
  --display: "Cormorant Garamond", "Cormorant", "Iowan Old Style", Georgia, serif;
  --body: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --caps: "Cinzel", "Trajan Pro", "Copperplate", serif;
  --mono: "Special Elite", "American Typewriter", "Courier New", monospace;
  --radius: 4px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font-family: var(--body); font-size: 18px; line-height: 1.65;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201,169,97,0.08), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,0,0,0.6), transparent 70%);
  background-attachment: fixed;
}
body::before { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.07; mix-blend-mode: overlay;
  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'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0 0 0.4em; color: var(--cream); letter-spacing: 0.005em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 400; }
h3 { font-size: 1.45rem; }
h1 em, h2 em { font-style: italic; color: var(--gold-2); }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 92vw); margin: 0 auto; }
.eyebrow { font-family: var(--caps); font-weight: 400; text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.72rem; color: var(--gold); margin-bottom: 1em; display: block; }
.muted { color: var(--muted); }
.center { text-align: center; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0 auto; width: min(520px, 80%); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 0 0 1.4rem; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 70px; background: var(--line-2); }
.ornament span { font-family: var(--caps); font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--caps); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; padding: 1em 1.8em; border-radius: 2px; border: 1px solid var(--gold); background: linear-gradient(180deg, #d9bc76, #b8964d); color: #1a1408; text-decoration: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.6) inset, 0 10px 30px rgba(201,169,97,0.15); transition: transform 0.15s, box-shadow 0.15s, background 0.15s; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,0.6) inset, 0 14px 36px rgba(201,169,97,0.28); color: #000; }
.btn.ghost { background: transparent; color: var(--gold-2); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); color: #fff; background: rgba(201,169,97,0.06); }
.btn.wine { background: linear-gradient(180deg, var(--wine-2), var(--wine)); color: var(--cream); border-color: #9a3542; }
.btn.small { font-size: 0.7rem; padding: 0.75em 1.3em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(13,11,9,0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; }
.logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--cream); font-family: var(--caps); font-weight: 400; font-size: 0.98rem; letter-spacing: 0.24em; text-transform: uppercase; }
.logo img { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 0 12px rgba(201,169,97,0.35)); transition: transform 0.4s ease; }
.logo:hover img { transform: translateY(-2px); }
.logo:hover { color: var(--gold-2); }
@media (max-width: 480px) { .logo { font-size: 0.82rem; letter-spacing: 0.18em; } }
.nav { display: flex; gap: 1.8rem; align-items: center; }
.nav a { color: var(--cream-2); text-decoration: none; font-family: var(--caps); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; position: relative; }
.nav a:hover { color: var(--gold-2); }
.nav a.active { color: var(--gold-2); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--gold); }
.nav .btn { margin-left: 0.4rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--gold); font-size: 1.2rem; padding: 0.2em 0.5em; cursor: pointer; border-radius: 2px; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 1.2rem 4vw 1.6rem; border-bottom: 1px solid var(--line); align-items: flex-start; gap: 1.1rem; }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
}

/* hero */
.hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; z-index: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: saturate(0.85); }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,11,9,0.96) 0%, rgba(13,11,9,0.86) 40%, rgba(13,11,9,0.35) 75%, rgba(13,11,9,0.6) 100%), linear-gradient(180deg, rgba(13,11,9,0.2), rgba(13,11,9,0.2) 70%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; min-height: min(62vh, 620px); }
.hero p.lead { font-size: 1.3rem; color: var(--cream-2); max-width: min(34rem, 100%); font-style: italic; }
.hero .cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.8rem 0 1.2rem; }
.hero .fine { font-size: 0.95rem; color: var(--muted); }
.hero .seal { justify-self: center; text-align: center; }
.hero .seal img { width: min(300px, 60vw); margin: 0 auto; filter: drop-shadow(0 0 36px rgba(201,169,97,0.28)) drop-shadow(0 20px 40px rgba(0,0,0,0.8)); animation: breathe 7s ease-in-out infinite; }
.hero .seal .cap { font-family: var(--caps); font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-top: 1.2rem; }
@keyframes breathe { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; width: 92vw; } .hero .wrap > div { width: 100%; max-width: 92vw; } .hero p.lead, .hero .fine { max-width: 100%; width: 100%; } .hero { padding-top: 3rem; } .hero .seal { order: -1; } .hero .seal img { width: 180px; } .hero p.lead { font-size: 1.15rem; } }
.hero .wrap > div, .page-hero .wrap, .wrap { max-width: 100%; }
p, .lead, .fine, .note { overflow-wrap: anywhere; }

/* sections */
section { padding: 4.5rem 0; }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head p { color: var(--cream-2); }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.deep { background: #090807; }
.band.wine { background: linear-gradient(180deg, #1a0d10, #120a0c); }
.photo-band { position: relative; overflow: hidden; }
.photo-band .bg { position: absolute; inset: 0; }
.photo-band .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.photo-band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(13,11,9,0.55) 30%, rgba(13,11,9,0.55) 70%, var(--bg) 100%); }
.photo-band .wrap { position: relative; }

/* cards */
.grid { display: grid; gap: 1.6rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid > *, .hero .wrap > *, .detail > * { min-width: 0; }
@media (max-width: 900px) { .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.three, .grid.two, .grid.four { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, var(--panel), var(--bg-3)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; position: relative; transition: border-color 0.2s, transform 0.2s; }
.card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,169,97,0.12); border-radius: 2px; pointer-events: none; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .icon { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; margin-bottom: 1.1rem; filter: saturate(0.9); border: 1px solid var(--line); }
.card h3 { color: var(--gold-2); }
.card p { color: var(--cream-2); }
.card p:last-child { margin-bottom: 0; }

/* game cards */
.game { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.game::before { display: none; }
.game .cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom: 1px solid var(--line); filter: saturate(0.85) contrast(1.05); }
.game .body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.game .body h3 { font-size: 1.7rem; margin-bottom: 0; }
.game .meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.3rem 0 0.6rem; }
.pill { font-family: var(--caps); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.35em 0.8em; border-radius: 2px; border: 1px solid var(--line-2); color: var(--gold-2); background: rgba(201,169,97,0.06); }
.pill.free { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.game .body .btn { align-self: flex-start; margin-top: auto; }
.ribbon { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--caps); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; padding: 0.5em 0.9em; background: var(--wine); color: var(--cream); border: 1px solid #9a3542; border-radius: 2px; }
.ribbon.gold { background: var(--gold); color: #1a1408; border-color: var(--gold-2); }
.game.soon .cover { filter: saturate(0.5) brightness(0.7); }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4.2rem; }
.step::before { counter-increment: step; content: counter(step, upper-roman); position: absolute; left: 0; top: 0.1rem; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); font-family: var(--caps); font-size: 1rem; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, rgba(201,169,97,0.18), transparent 70%); }
.step h3 { color: var(--gold-2); }
.step p { color: var(--cream-2); }

/* faq */
details { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: 0.7rem; }
details summary { cursor: pointer; font-family: var(--display); font-size: 1.3rem; color: var(--cream); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; color: var(--gold); }
details[open] summary::after { content: "\2013"; }
details p { margin: 0.7rem 0 0.2rem; color: var(--cream-2); }

/* newsletter */
.signup { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 34rem; }
.signup input { flex: 1; min-width: 200px; font: inherit; font-size: 1rem; padding: 0.85em 1.1em; border-radius: 2px; border: 1px solid var(--line-2); background: #0a0908; color: var(--cream); }
.signup input::placeholder { color: var(--muted); }
.note { font-size: 0.95rem; color: var(--muted); }

/* footer */
.site-footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--line); background: #090807; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--caps); font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer a { display: block; color: var(--cream-2); text-decoration: none; margin-bottom: 0.5rem; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .logo img { width: 44px; height: 44px; }
.site-footer .legal { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 1rem; font-style: italic; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }

/* inner page hero */
.page-hero { padding: 4rem 0 2rem; position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero .lead { font-size: 1.25rem; color: var(--cream-2); max-width: min(42rem, 100%); font-style: italic; }

/* case detail */
.detail { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.poster { border: 1px solid var(--line-2); padding: 8px; background: var(--bg-2); box-shadow: 0 30px 60px rgba(0,0,0,0.7); }
.poster img { width: 100%; display: block; }
.facts { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; }
.facts li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; padding: 0.7rem 0.9rem; font-size: 1rem; }
.facts li b { display: block; font-family: var(--caps); font-weight: 400; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--gold); margin-bottom: 0.2rem; }
.blurb { font-family: var(--display); font-size: 1.45rem; line-height: 1.45; font-style: italic; color: var(--cream); border-left: 1px solid var(--gold); padding-left: 1.2rem; margin: 1.4rem 0; }
.contents { columns: 2; column-gap: 2.4rem; font-size: 1rem; color: var(--cream-2); }
.contents p { break-inside: avoid; }
.contents b { color: var(--gold-2); font-weight: 500; }
@media (max-width: 600px) { .contents { columns: 1; } }
.suspects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.suspects figure { margin: 0; background: var(--bg-2); border: 1px solid var(--line); padding: 8px; }
.suspects img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: sepia(0.35) contrast(1.05) brightness(0.92); display: block; }
.suspects figcaption { font-size: 0.92rem; margin-top: 0.5rem; line-height: 1.3; }
.suspects figcaption b { color: var(--cream); font-weight: 500; display: block; }
.suspects figcaption span { color: var(--muted); font-style: italic; }
@media (max-width: 480px) { .suspects { grid-template-columns: repeat(2, 1fr); } }

/* seal card (about) */
.seal-card { text-align: center; margin-bottom: 1.6rem; }
.seal-card img { width: 240px; height: 240px; margin: 0 auto 0.8rem; filter: drop-shadow(0 0 40px rgba(201,169,97,0.3)); }

/* 404 */
.fourofour { min-height: 82vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }

@media (prefers-reduced-motion: reduce) { .hero .seal img { animation: none; } .btn, .card, .logo img { transition: none; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* store */
.btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btn.ghost:disabled { border-color: var(--line); color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bg-2); color: var(--cream); border: 1px solid var(--line-2); padding: 0.8rem 1.2rem; font-size: 0.98rem; z-index: 70; display: none; max-width: min(520px, 90vw); text-align: center; }
.toast.on { display: block; }
#account .lead b { font-style: normal; }
@media (max-width: 820px) { #all-access { grid-template-columns: 1fr !important; } }
