:root {
  --bg: #07070a;
  --ink: #e8e2d4;
  --muted: #8a8170;
  --gold: #c8a24a;
  --gold-soft: #e3c987;
  --ember: #b5642a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background:
    radial-gradient(1200px 700px at 50% -10%, #15121b 0%, transparent 60%),
    radial-gradient(900px 600px at 50% 120%, #120d0a 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* The landing page is a fixed full-screen hero (no scroll). */
body.home { height: 100%; overflow: hidden; }

/* Subtle darkening at the edges for depth */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

/* Faint drifting ember glow */
.embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(2px 2px at 20% 80%, rgba(197,162,74,0.5), transparent),
    radial-gradient(2px 2px at 75% 65%, rgba(181,100,42,0.45), transparent),
    radial-gradient(1.5px 1.5px at 60% 90%, rgba(227,201,135,0.4), transparent),
    radial-gradient(1.5px 1.5px at 35% 70%, rgba(181,100,42,0.35), transparent);
  opacity: 0.6;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateY(0); opacity: 0.45; }
  to   { transform: translateY(-18px); opacity: 0.7; }
}

.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* Single-page hero: fills the first screen, About scrolls below */
.stage.hero { flex: none; min-height: 100vh; min-height: 100svh; }

/* Hero call-to-action: enter the playtest (the /play app) */
.enter {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.7rem 1.8rem;
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(200,162,74,0.08), rgba(200,162,74,0.02));
  transition: all 0.25s ease;
}
.enter:hover {
  color: var(--bg);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 22px rgba(200,162,74,0.4);
}

.scroll-cue {
  margin-top: 2rem;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
  transition: color 0.25s;
}
.scroll-cue:hover { color: var(--gold-soft); }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* About section (single page) */
.about {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

/* Each panel occupies its own screen, content centered (like the hero) */
.about .panel {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem clamp(1.2rem, 5vw, 2rem);
}
.about .panel .section-heading:first-child { margin-top: 0; }

/* Branching-paths sigil: connected paths forking from a single apex */
.sigil {
  display: block;
  width: clamp(72px, 17vw, 120px);
  height: auto;
  margin: 0 0 2.4rem;
  overflow: visible;
  filter: drop-shadow(0 0 9px rgba(200,162,74,0.5));
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: 0.14em;
  line-height: 1.15;
  color: transparent;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 55%, #8a6a26 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 1px 30px rgba(200,162,74,0.18);
}

/* Thin gold divider rule */
.rule {
  width: min(280px, 60vw);
  height: 1px;
  margin: 1.8rem 0 1.4rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.tagline {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  color: var(--muted);
  padding-left: 0.5em; /* optically center the tracked text */
}

/* ---------------------------------------------------------------------- */
/* Navigation                                                              */
/* ---------------------------------------------------------------------- */
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.2rem 1.2rem;
}
.nav .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav .brand svg { width: 22px; height: auto; overflow: visible; filter: drop-shadow(0 0 7px rgba(200,162,74,0.5)); }
.nav .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 2.6rem);
}
.nav .links a {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav .links a:hover,
.nav .links a[aria-current="page"] { color: var(--gold-soft); border-color: var(--gold); }

/* ---------------------------------------------------------------------- */
/* Content pages (About, Projects)                                         */
/* ---------------------------------------------------------------------- */
.page-main {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.2rem, 5vw, 2rem) 5rem;
  text-align: center;
}

.page-title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: 0.12em;
  color: transparent;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 70%, #8a6a26);
  -webkit-background-clip: text;
  background-clip: text;
}
.page-title + .rule { margin: 1.4rem auto 0; }

.section-heading {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 3.4rem 0 1.4rem;
}

/* Opening intro paragraph */
.intro {
  font-size: clamp(1.18rem, 2.5vw, 1.5rem);
  line-height: 1.8;
  color: #d8d0bd;
  max-width: 58ch;
  margin: 0 auto;
}
.intro-emphasis {
  margin-top: 1.4rem;
  font-style: italic;
  color: var(--gold-soft);
}

/* Mission: framed ethos statement */
.mission {
  margin: 0 auto;
  max-width: 24ch;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: transparent;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 70%, #8a6a26);
  -webkit-background-clip: text;
  background-clip: text;
}
.mission::before,
.mission::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 1.8rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Design principles: vertical list */
.principles {
  list-style: none;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.principles li {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Founders */
.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-top: 1.4rem;
}
.founder {
  padding: 0.6rem 1rem;
}
.founder .name {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
}
.founder .role {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Projects */
.project-card {
  margin: 2rem auto 0;
  max-width: 460px;
  padding: 2.6rem 2rem;
  border: 1px solid rgba(200,162,74,0.25);
  background:
    radial-gradient(circle at 50% 0%, rgba(200,162,74,0.1), transparent 70%),
    linear-gradient(180deg, rgba(200,162,74,0.05), rgba(200,162,74,0.01));
}
.project-card .project-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}
.project-card .project-status {
  margin-top: 0.9rem;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.45em;
}

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(138,129,112,0.55);
}
