:root {
  --bg: #120f19;
  --bg-soft: #1b1724;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --text: #f6f0e8;
  --muted: #c8b9aa;
  --line: rgba(246, 240, 232, 0.17);
  --gold: #e7c780;
  --rose: #d9a7a7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(231, 199, 128, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(217, 167, 167, 0.14), transparent 26rem),
    linear-gradient(145deg, #0d0b12 0%, var(--bg) 52%, #19121d 100%);
  line-height: 1.6;
}

a { color: inherit; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--text);
  color: var(--bg);
  padding: .75rem 1rem;
  border-radius: 999px;
  z-index: 10;
}
.skip-link:focus { left: 1rem; }
.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}
.narrow { max-width: 780px; }
.section { padding: clamp(4rem, 7vw, 7rem) 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(18, 15, 25, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand, .footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.brand span, .hero h1 span { color: var(--gold); }
nav { display: flex; gap: clamp(.75rem, 2vw, 1.5rem); flex-wrap: wrap; justify-content: flex-end; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
}
nav a:hover { color: var(--text); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.eyebrow, .section-kicker, .card-label {
  margin: 0 0 .85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 700;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.5rem, 16vw, 12rem);
  line-height: .82;
  letter-spacing: -.08em;
  margin-bottom: 1.4rem;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 1.25rem;
}
h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.lede {
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.22;
  max-width: 850px;
  color: #fff9f0;
}
.invitation {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-actions, .link-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.button, .link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .72rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
}
.button.primary { background: var(--text); color: var(--bg); border-color: transparent; }
.button.secondary, .link-row a { color: var(--text); background: rgba(255,255,255,.04); }
.identity-card, .panel, .branch-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), rgba(255,255,255,.03));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.identity-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.2rem);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.orb {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  top: 2rem;
  right: 2rem;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.65), transparent 0 10%, rgba(231,199,128,.65) 11% 18%, transparent 19%),
    conic-gradient(from 140deg, rgba(231,199,128,.12), rgba(217,167,167,.38), rgba(255,255,255,.08), rgba(231,199,128,.28));
  filter: blur(.2px);
  opacity: .85;
}
.card-principle {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.08;
}
.doctrine { background: rgba(255,255,255,.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doctrine p, .tree p, .lineage p { color: var(--muted); font-size: 1.06rem; }
.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.branch-panel { padding: 1.2rem; display: grid; gap: .7rem; }
.branch {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.045);
  color: var(--muted);
}
.branch.root { color: var(--text); background: var(--panel-strong); border-color: rgba(231,199,128,.42); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.panel { padding: clamp(1.25rem, 3vw, 1.7rem); }
.panel.featured { grid-column: 1 / -1; }
.stacked-line {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: .35rem;
  color: var(--text);
}
.panel p { color: var(--muted); }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  background: rgba(0,0,0,.16);
}
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { color: var(--text); margin-bottom: .2rem; }
.footer-meta p { margin-bottom: .2rem; }

@media (max-width: 820px) {
  .nav-wrap { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .hero-grid, .split, .cards { grid-template-columns: 1fr; }
  .identity-card { min-height: 320px; }
  .orb { width: 14rem; height: 14rem; }
}
