/* Dollhouse - game site (also used by press/index.html)
   Colours and fonts are set once here, at the top. Change them and every page follows. */
:root {
  --bg: #0e0a0b;          /* page background: near-black with a red cast */
  --bg-raised: #1a1213;
  --oxblood: #3b1517;
  --line: #3a2a22;
  --brass: #c9a35a;       /* accent: brass */
  --brass-dim: #8a6c35;
  --neon: #ff5b48;        /* the Automart's sign */
  --text: #efe3d0;
  --muted: #ab9b86;
  --font-head: "Marcellus", Georgia, serif;
  --font-body: "Josefin Sans", system-ui, sans-serif;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.125rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; padding-block: clamp(64px, 10vw, 130px); }
.eyebrow {
  margin: 0 0 14px; color: var(--brass);
  font-size: .82rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  background: linear-gradient(to bottom, rgba(14,10,11,.85), rgba(14,10,11,0));
  transition: background .3s;
}
.bar.solid { background: rgba(14,10,11,.95); box-shadow: 0 1px 0 var(--line); }
.brand { font: 1.25rem var(--font-head); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--brass); }
.nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; }
.nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.actions.center { justify-content: center; }
.btn {
  display: inline-block; padding: 14px 26px 12px; text-decoration: none;
  background: var(--brass); color: #1a1006; border: 1px solid var(--brass);
  font-weight: 700; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px rgba(26,16,6,.35);  /* a thin deco inner rule */
  transition: background .2s, color .2s, transform .2s;
  overflow-wrap: anywhere;
}
.btn:hover { background: #e0bd74; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--brass); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px rgba(201,163,90,.45); }
.btn.ghost:hover { background: rgba(201,163,90,.14); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(14,10,11,.92) 0%, rgba(14,10,11,.55) 38%, rgba(14,10,11,0) 65%),
    linear-gradient(to top, var(--bg) 0%, rgba(14,10,11,0) 30%);
}
.hero-text { position: relative; width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding-top: 80px; }
.hero h1 {
  font-size: clamp(3rem, 10vw, 7.5rem); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); margin-bottom: .25em;
  text-shadow: 0 0 40px rgba(255,91,72,.35);
}
.lead { font-size: clamp(1.2rem, 2.4vw, 1.55rem); max-width: 26ch; margin-bottom: 32px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--brass-dim); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brass); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- features: image + text, alternating sides ---------- */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.feature.flip .frame { order: 2; }
.feature + .feature { padding-top: 0; }
.copy p:not(.num) { color: var(--muted); }
.num { font: 1rem var(--font-head); color: var(--neon); letter-spacing: .3em; margin-bottom: 10px; }

/* A brass frame with deco corners round every screenshot */
.frame { position: relative; margin: 0; padding: 10px; background: linear-gradient(135deg, #5b4524, var(--brass), #5b4524); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.frame::before, .frame::after {
  content: ""; position: absolute; width: 34px; height: 34px; border: 2px solid var(--brass);
}
.frame::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.frame::after  { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.frame.screen img { object-position: center 40%; }

/* ---------- quote band ---------- */
.band { position: relative; display: grid; place-items: center; min-height: 70vh; overflow: hidden; text-align: center; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(14,10,11,.3), var(--bg) 80%); }
.band blockquote {
  position: relative; z-index: 1; margin: 0; padding: 0 16px;
  font: clamp(1.6rem, 4vw, 2.8rem)/1.35 var(--font-head);
}
.band em { display: inline-block; margin-top: .5em; color: var(--neon); font-style: normal; text-shadow: 0 0 24px rgba(255,91,72,.55); }

/* ---------- contact ---------- */
.contact { text-align: center; max-width: 820px; }
.contact > p:not(.eyebrow) { color: var(--muted); margin-bottom: 30px; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 40px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.foot p { margin: 0 0 4px; }
.foot a { color: var(--brass); }

/* ---------- scroll reveal (main.js adds .in when a block scrolls into view) ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .copy.reveal { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- phones ---------- */
@media (max-width: 820px) {
  .nav a:first-child { display: none; }
  .feature { grid-template-columns: 1fr; }
  .feature.flip .frame { order: 0; }
  .hero-shade { background: linear-gradient(to top, var(--bg) 5%, rgba(14,10,11,.75) 45%, rgba(14,10,11,.2) 100%); }
  .hero { align-items: end; }
  .hero-text { padding-bottom: 90px; }
}
