:root {
  --bg: #0a0a0c;
  --bg2: #121216;
  --bg3: #18181d;
  --blood: #a41623;
  --blood-bright: #d7263d;
  --ash: #9a938c;
  --bone: #e8e2d8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { color: var(--blood-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,12,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(164,22,35,.3);
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2rem;
}
nav .brand {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1.1rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--bone);
}
nav .brand em { color: var(--blood-bright); font-style: normal; }
nav ul { display: flex; gap: 1.8rem; list-style: none; }
nav ul a {
  color: var(--ash); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .18em;
}
nav ul a:hover, nav ul a.active { color: var(--blood-bright); text-decoration: none; }
@media (max-width: 720px) {
  nav { flex-direction: column; gap: .7rem; padding: .9rem 1rem; }
  nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}

/* Hero */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; position: relative;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(164,22,35,.28), transparent 60%),
    linear-gradient(180deg, #0a0a0c 0%, #141014 100%);
  overflow: hidden; padding: 2rem;
}
.hero.small { min-height: 46vh; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.012) 3px 4px);
  pointer-events: none;
}
.sigil {
  width: 110px; height: 110px;
  border: 2px solid var(--blood);
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 3rem;
  box-shadow: 0 0 40px rgba(164,22,35,.35), inset 0 0 25px rgba(164,22,35,.25);
}
.sigil.small { width: 76px; height: 76px; margin-bottom: 2rem; }
.sigil span {
  transform: rotate(-45deg);
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 900;
  color: var(--blood-bright);
  text-shadow: 0 0 18px rgba(215,38,61,.6);
}
.sigil.small span { font-size: 2rem; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
}
.hero.small h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
.hero h1 em { color: var(--blood-bright); font-style: normal; }
.motto {
  margin-top: 1.2rem; color: var(--ash);
  font-size: 1.05rem; letter-spacing: .25em; text-transform: uppercase;
}
.scroll-hint {
  position: absolute; bottom: 2rem;
  color: var(--ash); font-size: .8rem; letter-spacing: .3em;
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% {opacity:.35} 50% {opacity:1} }

/* Layout */
.wrap { max-width: 880px; margin: 0 auto; padding: 5rem 1.5rem; }
.wrap.wide { max-width: 1080px; }
section { margin-bottom: 5rem; }
.kicker {
  color: var(--blood-bright);
  text-transform: uppercase; letter-spacing: .3em;
  font-size: .8rem; margin-bottom: .8rem;
}
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 1.4rem; }
h3 { margin-bottom: .6rem; }
p { margin-bottom: 1.2rem; color: #cfc8bd; }
.rule { width: 64px; height: 3px; background: var(--blood); margin: 2rem 0; }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.card {
  display: block;
  background: var(--bg2);
  border: 1px solid rgba(164,22,35,.25);
  border-top: 3px solid var(--blood);
  padding: 1.8rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  color: var(--bone); text-decoration: none !important;
}
.card:hover {
  transform: translateY(-5px);
  border-top-color: var(--blood-bright);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.card .c-kicker { color: var(--blood-bright); font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; }
.card h3 { font-size: 1.3rem; margin: .5rem 0 .4rem; }
.card p { font-size: .9rem; color: var(--ash); margin: 0; }

/* Members */
.members { display: grid; gap: 1.2rem; }
.member {
  background: var(--bg2);
  border-left: 3px solid var(--blood);
  padding: 1.6rem 1.8rem;
  transition: transform .25s, border-color .25s;
}
.member:hover { transform: translateX(6px); border-left-color: var(--blood-bright); }
.member h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.member .title { color: var(--blood-bright); font-size: .82rem; text-transform: uppercase; letter-spacing: .15em; }
.member p { margin: .7rem 0 0; font-size: .95rem; }
.member .more { display: inline-block; margin-top: .9rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; }

/* Timeline */
.timeline { border-left: 1px solid rgba(164,22,35,.4); padding-left: 2rem; }
.event { position: relative; margin-bottom: 2.2rem; }
.event::before {
  content: ""; position: absolute; left: -2.42rem; top: .5rem;
  width: 12px; height: 12px; background: var(--blood);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(215,38,61,.7);
}
.event .year { color: var(--blood-bright); font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; }

/* Person page */
.person-head { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 2.5rem; }
.portrait {
  flex: 0 0 180px; width: 180px; height: 180px;
  border: 2px solid var(--blood);
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(164,22,35,.3), inset 0 0 25px rgba(164,22,35,.2);
  margin: 1.2rem 0 0 1.2rem;
}
.portrait span {
  transform: rotate(-45deg);
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem; font-weight: 900; color: var(--blood-bright);
  text-shadow: 0 0 18px rgba(215,38,61,.6);
}
.person-head .info { flex: 1; min-width: 260px; }
.facts { margin: 1.2rem 0; border-collapse: collapse; width: 100%; }
.facts td { padding: .45rem .8rem .45rem 0; font-size: .92rem; vertical-align: top; }
.facts td:first-child { color: var(--ash); text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; white-space: nowrap; padding-top: .55rem; }
.facts tr { border-bottom: 1px solid rgba(164,22,35,.15); }

/* Family tree */
.tree { overflow-x: auto; padding: 1rem 0; }
.tree ul { display: flex; justify-content: center; list-style: none; padding-top: 2rem; position: relative; }
.tree li { display: flex; flex-direction: column; align-items: center; position: relative; padding: 2rem .8rem 0; }
.tree li::before, .tree li::after {
  content: ""; position: absolute; top: 0; right: 50%;
  border-top: 1px solid rgba(164,22,35,.5); width: 50%; height: 2rem;
}
.tree li::after { right: auto; left: 50%; border-left: 1px solid rgba(164,22,35,.5); }
.tree li:only-child::before, .tree li:only-child::after { display: none; }
.tree li:only-child { padding-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
.tree li:last-child::before { border-right: 1px solid rgba(164,22,35,.5); }
.tree ul ul::before {
  content: ""; position: absolute; top: 0; left: 50%;
  border-left: 1px solid rgba(164,22,35,.5); width: 0; height: 2rem;
}
.node {
  background: var(--bg2);
  border: 1px solid rgba(164,22,35,.4);
  border-top: 3px solid var(--blood);
  padding: .9rem 1.2rem;
  text-align: center;
  min-width: 150px;
  transition: transform .2s, box-shadow .2s;
}
.node:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.node .n-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: .98rem; }
.node .n-role { color: var(--ash); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-top: .25rem; }
.node.secret { border-style: dashed; border-top-color: var(--ash); }
.node.secret .n-name { color: var(--ash); }
.node a { color: inherit; }

/* Artifacts */
.artifacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.artifact {
  background: var(--bg3);
  border: 1px solid rgba(164,22,35,.25);
  padding: 1.6rem;
  position: relative;
}
.artifact::before {
  content: attr(data-num);
  position: absolute; top: .8rem; right: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: rgba(164,22,35,.35); font-weight: 900;
}
.artifact h4 { font-size: 1.1rem; margin-bottom: .4rem; }
.artifact .a-origin { color: var(--blood-bright); font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; }
.artifact p { font-size: .88rem; margin: .6rem 0 0; color: var(--ash); }

blockquote {
  border-left: 3px solid var(--blood);
  padding: 1rem 1.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-style: italic;
  color: var(--bone);
  background: linear-gradient(90deg, rgba(164,22,35,.12), transparent);
  margin: 2rem 0;
}
blockquote footer {
  font-family: 'Inter', sans-serif; font-style: normal;
  font-size: .8rem; color: var(--ash); margin-top: .6rem; letter-spacing: .1em;
}

footer.site {
  border-top: 1px solid rgba(164,22,35,.25);
  padding: 2.5rem 1.5rem;
  text-align: center; color: var(--ash);
  font-size: .82rem; letter-spacing: .12em;
}
footer.site b { color: var(--blood-bright); font-weight: 500; }
