/* =========================================================
   Landing page — gamehendge/index.html
   ========================================================= */

body.landing {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  mix-blend-mode: difference;
  pointer-events: none;
}
.topbar a, .topbar button { pointer-events: auto; }
.topbar .crest { border: 0; }
.topbar nav { display: flex; gap: 1.4rem; }
.topbar nav a { border: 0; opacity: 0.85; white-space: nowrap; }
.topbar nav a:hover { opacity: 1; }

/* Small screens: the hero wordmark IS the crest — drop the duplicate,
   tighten the nav to one line, and clear the fixed bar. */
@media (max-width: 700px) {
  .topbar { padding: 0.9rem 1rem; }
  .topbar .crest { display: none; }
  .topbar nav {
    width: 100%;
    justify-content: center;
    gap: 1.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }
  .hero { padding-top: 4.2rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: var(--pad-block) var(--pad-inline);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 22%, rgba(214,177,106,0.14), transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(109,178,139,0.12), transparent 60%),
    radial-gradient(ellipse 100% 90% at 50% 105%, rgba(8,18,12,0.85), transparent 70%),
    linear-gradient(180deg, #040604 0%, #0a0d0a 70%, #050805 100%);
  z-index: -2;
}

/* Distant mountain silhouette — pure CSS, behind the hero */
.hero__mountains {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    /* near forest line */
    radial-gradient(ellipse 60% 30% at 20% 100%, rgba(15,30,20,0.95), transparent 50%),
    radial-gradient(ellipse 70% 35% at 80% 100%, rgba(12,25,18,0.95), transparent 50%),
    /* far mountains */
    radial-gradient(ellipse 80% 25% at 30% 75%, rgba(15,28,22,0.65), transparent 60%),
    radial-gradient(ellipse 90% 20% at 75% 80%, rgba(20,35,28,0.55), transparent 60%);
  filter: blur(2px);
}

/* The door — standing alone at the bottom of the hero, no wall around
   it, no frame holding it up. Crisp enough to be unmistakably a door;
   faint enough to be a question. */
.hero__door {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  width: clamp(68px, 10vw, 140px);
  height: clamp(150px, 24vw, 310px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  border-radius: 12px 12px 2px 2px;
  border: 1px solid rgba(214, 177, 106, 0.5);
  background:
    linear-gradient(180deg, rgba(214,177,106,0.14) 0%, rgba(214,177,106,0.05) 45%, rgba(109,178,139,0.08) 100%);
  box-shadow:
    inset 0 0 26px rgba(214, 177, 106, 0.16),
    0 0 44px rgba(214, 177, 106, 0.10),
    0 26px 30px -18px rgba(214, 177, 106, 0.30);
}
/* carved inner panel */
.hero__door::before {
  content: "";
  position: absolute;
  inset: 7% 13%;
  border: 1px solid rgba(214, 177, 106, 0.26);
  border-radius: 8px 8px 2px 2px;
}
/* "The handle catches the early light as if it were lit from inside." */
.hero__door::after {
  content: "";
  position: absolute;
  right: 17%;
  top: 52%;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(245, 233, 200, 0.95);
  box-shadow: 0 0 12px 4px rgba(214, 177, 106, 0.55);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  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 0.95  0 0 0 0 0.92  0 0 0 0 0.85  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

.hero__inner {
  align-self: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest-bright);
  margin: 0 0 1.25rem;
  opacity: 0;
  transform: translateY(12px);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-6);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(180deg, var(--forest-pale) 0%, var(--forest-bright) 55%, var(--forest-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--forest-bright);
}

/* Pillar adornments — number sigil + little glyph */
.pillar {
  position: relative;
}
.pillar::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 0.6rem;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
}

.hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 1.5rem 0 0;
  opacity: 0;
  transform: translateY(12px);
}

.hero__lede {
  margin: 2.5rem 0 0;
  max-width: var(--measure);
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.55;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.05rem 2rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid var(--forest-bright);
  color: var(--forest-bright);
  background: transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero__cta:hover {
  background: var(--forest-bright);
  color: #060806;
  transform: translateY(-2px);
}
.hero__cta .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.hero__cta:hover .arrow { transform: translateX(6px); }

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 4rem;
}
.hero__meta span { display: block; }

/* ---------- Section: prelude ---------- */
.section {
  padding: clamp(5rem, 10vw, 9rem) var(--pad-inline);
  position: relative;
}

.section--cream {
  background: var(--c1-bg);
  color: var(--c1-ink);
}
.section--cream .section__num,
.section--cream .section__kicker { color: var(--c1-mute); }
.section--cream .section__title em { color: var(--c1-accent); }

.section--gold {
  background: var(--forest-deep);
  color: var(--ink);
}
.section--gold .section__num,
.section--gold .section__kicker { color: var(--forest-pale); }
.section--gold .section__title em { color: var(--forest-bright); }
.section--gold .hero__cta { border-color: var(--forest-bright); color: var(--forest-bright); }
.section--gold .hero__cta:hover { background: var(--forest-bright); color: var(--forest-deep); }

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 720px) {
  .section__inner { grid-template-columns: 1fr; gap: 2rem; }
}

.section__num {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.section__kicker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0.5rem 0 0;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}
.section__title em { font-style: italic; }

.section__body p {
  margin: 0 0 1.2rem;
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: 60ch;
}

/* ---------- Pillars (three-column principles) ---------- */
.pillars {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  border-top: 1px solid currentColor;
  padding-top: 1rem;
  opacity: 0.95;
}
.pillar__label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.pillar__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-2);
  margin: 0 0 0.5rem;
}
.pillar__body { font-size: var(--step--1); line-height: 1.55; opacity: 0.85; }

/* ---------- Footer ---------- */
.footer {
  padding: 3rem var(--pad-inline);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Anim helpers ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
}
