/* ───────────────────────────────────────────────────────────────
   STOLEN GENESIS — stolengenesis.com
   Aesthetic: the evidence dossier. Night sky, engraved gold,
   archival serif, mono coordinates. Built to feel like the
   pattern file Michael and Evelyn assembled.
   ─────────────────────────────────────────────────────────────── */

:root {
  --night:      #070a13;
  --night-2:    #0b0f1d;
  --night-3:    #111729;
  --bone:       #e9e2d4;
  --bone-dim:   #b7b0a0;
  --gold:       #e3b863;
  --gold-hi:    #f6d995;
  --gold-deep:  #9a6f25;
  --teal:       #4cc8d9;
  --hairline:   rgba(227, 184, 99, .16);
  --mono:       'IBM Plex Mono', ui-monospace, monospace;
  --serif:      'EB Garamond', Georgia, serif;
  --display:    'Cinzel', 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold-deep); color: var(--night); }

/* starfield + grain atmosphere on the whole document */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(233,226,212,.5), transparent 60%),
    radial-gradient(1px 1px at 78% 8%,  rgba(233,226,212,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 33% 64%, rgba(233,226,212,.28), transparent 60%),
    radial-gradient(1px 1px at 61% 41%, rgba(233,226,212,.4), transparent 60%),
    radial-gradient(1px 1px at 89% 73%, rgba(233,226,212,.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 7% 87%, rgba(233,226,212,.25), transparent 60%),
    radial-gradient(1px 1px at 47% 12%, rgba(76,200,217,.35), transparent 60%),
    radial-gradient(ellipse 120% 70% at 50% -10%, #101730 0%, var(--night) 60%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-hi); }

/* ── nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 34px;
  background: linear-gradient(to bottom, rgba(7,10,19,.92), rgba(7,10,19,0));
}
.nav .mark { display: flex; align-items: center; gap: 12px; }
.nav .mark img { width: 30px; height: 30px; opacity: .9; }
.nav .mark span {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: 4px; color: var(--bone);
}
.nav .links { display: flex; gap: 30px; }
.nav .links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--bone-dim);
}
.nav .links a:hover, .nav .links a.active { color: var(--gold-hi); }

/* ── hero ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 120px 24px 90px; isolation: isolate;
}
.hero .bg {
  position: absolute; inset: 0; z-index: -1;
  background: url('assets/hero.jpg') center 28% / cover no-repeat;
}
.hero .bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(7,10,19,.78) 0%, rgba(7,10,19,.35) 42%, rgba(7,10,19,.55) 72%, var(--night) 100%);
}
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 5px;
  text-transform: uppercase; color: var(--teal);
  animation: rise .9s .1s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1 {
  margin: 26px 0 6px;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(54px, 11vw, 124px); line-height: 1.0; letter-spacing: .02em;
  background: linear-gradient(180deg, #fbe9bd 0%, #f0c468 40%, #b9821f 58%, #eec168 74%, #8a5c14 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.75));
  animation: rise .9s .25s cubic-bezier(.2,.7,.2,1) both;
}
.hero .sub {
  font-family: var(--display); font-weight: 700; font-size: clamp(17px, 2.6vw, 26px);
  letter-spacing: 11px; text-indent: 11px; color: var(--gold);
  animation: rise .9s .4s cubic-bezier(.2,.7,.2,1) both;
}
.hero .hook {
  max-width: 620px; margin: 38px auto 0;
  font-size: clamp(19px, 2.3vw, 23px); font-style: italic; color: var(--bone);
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
  animation: rise .9s .55s cubic-bezier(.2,.7,.2,1) both;
}
.hero .cta-row {
  display: flex; gap: 18px; margin-top: 44px; flex-wrap: wrap; justify-content: center;
  animation: rise .9s .7s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-block; padding: 15px 34px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--gold-hi);
  background: rgba(7,10,19,.45); backdrop-filter: blur(3px);
  transition: all .3s;
}
.btn:hover { background: var(--gold); color: var(--night); box-shadow: 0 0 34px rgba(227,184,99,.35); }
.btn.solid { background: var(--gold); color: var(--night); }
.btn.solid:hover { background: var(--gold-hi); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: var(--bone-dim);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: .9; } }

/* ── shared section chrome ── */
section { position: relative; padding: 110px 24px; }
.wrap { max-width: 980px; margin: 0 auto; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
}
h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 44px); letter-spacing: .04em;
  color: var(--gold-hi); margin-bottom: 28px;
}
.rule { width: 64px; height: 1px; background: var(--gold); opacity: .5; margin: 30px 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── the dossier (blurb) ── */
.dossier { background: linear-gradient(to bottom, var(--night), var(--night-2)); }
.dossier .lead {
  font-size: clamp(22px, 3vw, 28px); line-height: 1.5; color: var(--bone);
  max-width: 780px;
}
.dossier .lead em { color: var(--gold-hi); font-style: italic; }
.dossier p + p { margin-top: 22px; }
.dossier .body { max-width: 700px; color: var(--bone-dim); }
.dossier .body strong { color: var(--bone); font-weight: 500; }

/* ── glyph interlude ── */
.glyph-band {
  text-align: center; padding: 130px 24px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(76,200,217,.06), transparent 70%),
    var(--night-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.glyph-band svg { width: min(300px, 60vw); height: auto; margin: 0 auto 36px; display: block; }
.glyph-band svg path {
  stroke: var(--gold); stroke-width: 0.13; stroke-linecap: round; fill: none;
  stroke-dasharray: 12; stroke-dashoffset: 12;
}
.glyph-band.in svg path { animation: draw 1.1s cubic-bezier(.4,0,.3,1) forwards; }
.glyph-band.in svg path:nth-child(1)  { animation-delay: .10s; }
.glyph-band.in svg path:nth-child(2)  { animation-delay: .25s; }
.glyph-band.in svg path:nth-child(3)  { animation-delay: .40s; }
.glyph-band.in svg path:nth-child(4)  { animation-delay: .55s; }
.glyph-band.in svg path:nth-child(5)  { animation-delay: .70s; }
.glyph-band.in svg path:nth-child(6)  { animation-delay: .85s; }
.glyph-band.in svg path:nth-child(7)  { animation-delay: 1.0s; }
.glyph-band.in svg path:nth-child(8)  { animation-delay: 1.15s; }
.glyph-band.in svg path:nth-child(9)  { animation-delay: 1.3s; }
.glyph-band.in svg path:nth-child(10) { animation-delay: 1.45s; }
.glyph-band.in svg path:nth-child(11) { animation-delay: 1.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.glyph-band .legend {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 3vw, 30px); letter-spacing: 6px; color: var(--gold-hi);
}
.glyph-band .gloss { margin-top: 14px; font-style: italic; color: var(--bone-dim); }

/* ── fact strip ── */
.facts { background: var(--night-2); }
.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--hairline); border: 1px solid var(--hairline);
  margin-top: 44px;
}
.fact {
  background: var(--night-2); padding: 30px 26px;
  transition: background .35s;
}
.fact:hover { background: var(--night-3); }
.fact .coord { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.5px; color: var(--teal); }
.fact h3 { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--gold); margin: 12px 0 10px; letter-spacing: .04em; }
.fact p { font-size: 16.5px; color: var(--bone-dim); line-height: 1.6; }
.facts .more { margin-top: 36px; text-align: center; }

/* ── signup ── */
.signup {
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, rgba(227,184,99,.07), transparent 65%),
    var(--night);
  text-align: center;
}
.signup .wrap { max-width: 640px; }
.signup p.pitch { color: var(--bone-dim); max-width: 520px; margin: 0 auto 38px; }
.signup form { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; }
.signup input[type=email] {
  flex: 1; padding: 16px 20px;
  background: var(--night-3); border: 1px solid var(--hairline);
  color: var(--bone); font-family: var(--mono); font-size: 14px;
  outline: none; transition: border-color .3s;
}
.signup input[type=email]:focus { border-color: var(--gold); }
.signup .hp { position: absolute; left: -9999px; opacity: 0; }
.signup .note { margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--bone-dim); opacity: .8; }
.signup .msg { margin-top: 22px; font-family: var(--mono); font-size: 13px; letter-spacing: 1px; min-height: 20px; }
.signup .msg.ok { color: var(--teal); }
.signup .msg.err { color: #e08585; }

/* ── author ── */
.author { border-top: 1px solid var(--hairline); background: var(--night-2); }
.author .row { display: flex; gap: 50px; align-items: center; flex-wrap: wrap; }
.author .cover-thumb { width: 240px; flex-shrink: 0; box-shadow: 0 18px 60px rgba(0,0,0,.6); border: 1px solid var(--hairline); }
.author .bio { flex: 1; min-width: 280px; }
.author .bio p { color: var(--bone-dim); }
.author .bio p + p { margin-top: 16px; }
.author .name { font-family: var(--display); font-size: 22px; letter-spacing: 2px; color: var(--gold-hi); margin-bottom: 14px; }

/* ── footer ── */
footer {
  padding: 50px 24px 40px; text-align: center;
  border-top: 1px solid var(--hairline); background: var(--night);
}
footer img { width: 34px; margin: 0 auto 16px; opacity: .6; }
footer .fnav { display: flex; gap: 26px; justify-content: center; margin-bottom: 16px; }
footer .fnav a { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--bone-dim); }
footer small { font-family: var(--mono); font-size: 11px; color: var(--bone-dim); opacity: .65; letter-spacing: .5px; }

/* ── real places page ── */
.page-head { padding: 170px 24px 70px; text-align: center; }
.page-head h1 {
  font-family: var(--display); font-weight: 900; letter-spacing: .04em;
  font-size: clamp(36px, 6vw, 62px);
  background: linear-gradient(180deg, #fbe9bd, #b9821f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head .intro { max-width: 660px; margin: 28px auto 0; color: var(--bone-dim); font-size: 20px; }
.page-head .intro strong { color: var(--bone); font-weight: 500; }

.site-entry {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: 56px; align-items: center;
  max-width: 1060px; margin: 0 auto; padding: 72px 24px;
}
.site-entry:nth-child(even) .photo { order: 2; }
.site-entry + .site-entry { border-top: 1px solid var(--hairline); }
.site-entry .photo { position: relative; }
.site-entry .photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--hairline);
  filter: saturate(.92) contrast(1.04);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.site-entry .credit {
  position: absolute; bottom: 10px; right: 12px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .5px;
  color: rgba(233,226,212,.75); background: rgba(7,10,19,.65);
  padding: 3px 8px; backdrop-filter: blur(2px);
}
.site-entry .credit a { color: rgba(246,217,149,.9); }
.site-entry .coord { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--teal); }
.site-entry h2 { margin: 14px 0 20px; font-size: clamp(26px, 3.4vw, 36px); }
.site-entry .label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin: 22px 0 8px;
}
.site-entry .label:first-of-type { margin-top: 0; }
.site-entry p { font-size: 17px; color: var(--bone-dim); }
.site-entry .novel p { color: var(--bone); font-style: italic; }

.places-cta { text-align: center; padding: 90px 24px 120px; }

/* ── privacy ── */
.prose { max-width: 680px; margin: 0 auto; padding: 170px 24px 110px; }
.prose h1 { font-family: var(--display); color: var(--gold-hi); font-size: 34px; margin-bottom: 30px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p { color: var(--bone-dim); margin-top: 16px; }

@media (max-width: 760px) {
  .nav { padding: 14px 18px; }
  .nav .links { gap: 16px; }
  .nav .links a { font-size: 10.5px; letter-spacing: 1.5px; }
  .nav .mark span { display: none; }
  .hero .bg { background-image: url('assets/hero-mobile.jpg'); }
  .signup form { flex-direction: column; }
  .site-entry { grid-template-columns: 1fr; gap: 28px; padding: 56px 20px; }
  .site-entry:nth-child(even) .photo { order: 0; }
  section { padding: 80px 20px; }
}
