:root {
  --bg: #0f0b0d;
  --bg-soft: #171113;
  --paper: #f5ede4;
  --cream: #eee1d4;
  --surface: rgba(255, 249, 243, 0.08);
  --surface-light: rgba(255,255,255,0.68);
  --stroke: rgba(88, 58, 41, 0.12);
  --stroke-dark: rgba(255,255,255,0.11);
  --text: #f8f0e7;
  --text-dark: #251712;
  --muted: rgba(248, 240, 231, 0.74);
  --muted-dark: rgba(37, 23, 18, 0.72);
  --gold: #b8956a;
  --gold-strong: #d6b184;
  --rose: #c8a49d;
  --shadow: 0 30px 80px rgba(14, 8, 11, 0.32);
  --shadow-soft: 0 18px 50px rgba(22, 14, 16, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, li { font-size: 1rem; line-height: 1.7; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.042) 0.8px, transparent 0.8px);
  background-size: 6px 6px;
  opacity: 0.15;
  mix-blend-mode: soft-light;
  z-index: 0;
}
.page-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.28;
  z-index: 0;
}
.glow-a { width: 28rem; height: 28rem; top: -8rem; right: -8rem; background: rgba(184,149,106,0.18); }
.glow-b { width: 24rem; height: 24rem; bottom: 12rem; left: -7rem; background: rgba(200,164,157,0.12); }

.shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}
main, .footer, .topbar { position: relative; z-index: 1; }
section {
  padding: 5.5rem 0;
  overflow: clip;
}
.section-dark { color: var(--text); }
.section-light { color: var(--text-dark); background: linear-gradient(180deg, #f7f1ea 0%, #f1e7dc 100%); }
.section-cream { color: var(--text-dark); background: linear-gradient(180deg, #efe3d7 0%, #f6efe8 100%); }

.topbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(15,11,13,0.62);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.topbar-shell {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav a {
  font-size: 0.95rem;
  color: rgba(248,240,231,0.84);
}
.nav a:hover { color: #fff; }
.nav-cta {
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 2rem;
  align-items: start;
  min-height: auto;
  padding-top: 2.5rem;
}
.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: rgba(248,240,231,0.58);
}
.eyebrow.dark { color: rgba(37,23,18,0.56); }
.hero h1, .section-heading h2, .quote-block p {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hero h1 { font-size: clamp(3.8rem, 7vw, 7.2rem); max-width: 10ch; }
.hero-text, .section-copy { color: var(--muted); margin: 1.5rem 0 0; max-width: 38rem; font-size: 1.07rem; }
.section-light .section-copy, .section-cream .section-copy { color: var(--muted-dark); }
.hero-proof {
  margin: 1rem 0 0;
  color: rgba(248,240,231,0.82);
  font-size: 0.98rem;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #1e120d;
  box-shadow: var(--shadow-soft);
}
.button-ghost {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}
.button-secondary {
  border-color: rgba(88,58,41,0.12);
  background: rgba(37,23,18,0.04);
  color: var(--text-dark);
}
.hero-microgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero-microgrid > div {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,249,243,0.045);
}
.hero-microgrid p { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.96rem; }
.micro-label {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(248,240,231,0.54);
}
.hero-visual {
  position: relative;
  min-width: 0;
  padding: 1.2rem 0 1.2rem 2rem;
}
.hero-frame,
.feature-image {
  margin: 0;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-main-image img,
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-main-image {
  min-height: 42rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-main-image img { min-height: 42rem; }
.hero-note {
  position: absolute;
  max-width: 17rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  backdrop-filter: blur(16px);
  background: rgba(255,248,240,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-soft);
}
.hero-note p { margin: 0.55rem 0 0; color: rgba(248,240,231,0.86); font-size: 0.95rem; }
.note-top { top: 3rem; left: 0; }
.note-bottom { right: 0; bottom: 3rem; }
.status, .pill, .leader-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.status {
  background: rgba(184,149,106,0.14);
  color: var(--gold);
  border: 1px solid rgba(184,149,106,0.2);
}
.pill {
  background: rgba(37,23,18,0.06);
  color: rgba(37,23,18,0.68);
}
.light-pill {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
}
.section-heading { max-width: 48rem; margin-bottom: 2rem; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.world-grid,
.craft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: center; }
.feature-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.realms-shell, .enter-shell { display: grid; gap: 1.5rem; }
.card-grid { display: grid; gap: 1.2rem; }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.realm-card,
.leader-card,
.enter-card,
.stack-card {
  min-width: 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}
.dark-card {
  background: linear-gradient(180deg, #24171b 0%, #140d10 100%);
  color: var(--text);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 30px 70px rgba(15, 9, 12, 0.38);
}
.card-top {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.realm-card h3, .leader-card h3, .enter-card h3, .stack-card h3 {
  margin: 0 0 0.65rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2rem;
}
.tagline {
  margin: 0 0 0.8rem;
  color: rgba(37,23,18,0.72);
}
.dark-card .tagline { color: rgba(248,240,231,0.78); }
.realm-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}
.craft-copy p { color: var(--muted); }
.quote-block {
  margin-top: 1.6rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,249,243,0.05);
}
.quote-block p { font-size: clamp(2rem, 4vw, 3.2rem); }
.craft-stack {
  display: grid;
  gap: 1rem;
}
.stack-card {
  background: rgba(255,249,243,0.06);
  border-color: rgba(255,255,255,0.08);
}
.stack-card p { margin: 0; color: var(--muted); }
.leadership-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.leader-card.featured {
  background: linear-gradient(180deg, rgba(200,164,157,0.16), rgba(184,149,106,0.18));
  border-color: rgba(184,149,106,0.22);
}
.leader-role {
  margin-bottom: 0.8rem;
  background: rgba(74,37,53,0.08);
  color: rgba(74,37,53,0.84);
}
.enter-card { text-align: center; }
.footer {
  background: #0d090b;
  color: rgba(248,240,231,0.84);
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1rem;
}
.footer-brand {
  margin: 0 0 0.7rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
}
.footer-title {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: rgba(248,240,231,0.5);
}
.footer-grid a, .footer-grid span { display: block; margin-bottom: 0.45rem; }
.footer-muted { color: rgba(248,240,231,0.58); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero-grid,
  .world-grid,
  .craft-grid,
  .three-up,
  .leadership-grid,
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { align-items: start; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-visual { grid-column: 1 / -1; padding-left: 0; }
  .hero-main-image, .hero-main-image img { min-height: 32rem; }
  .three-up { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  section { padding: 4.2rem 0; }
  .shell { width: min(var(--max), calc(100% - 1.75rem)); }
  .topbar-shell { min-height: 4rem; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: 4.2rem;
    left: 0.65rem;
    right: 0.65rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(15,11,13,0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .hero-grid,
  .world-grid,
  .craft-grid,
  .two-up,
  .leadership-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; font-size: clamp(3rem, 13vw, 4.4rem); }
  .hero-proof { max-width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-microgrid { grid-template-columns: 1fr; }
  .hero-visual { padding: 0; }
  .hero-main-image, .hero-main-image img {
    min-height: 24rem;
    height: 24rem;
  }
  .hero-note {
    position: static;
    max-width: none;
    margin-top: 0.9rem;
  }
  .quote-block p { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .feature-image img { aspect-ratio: 16 / 11; }
}

@media (max-width: 480px) {
  .brand { font-size: 1.8rem; }
  .hero-actions { gap: 0.75rem; }
  .realm-card,
  .leader-card,
  .enter-card,
  .stack-card { padding: 1.25rem; }
  .page-glow { opacity: 0.2; }
}