@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --void: #07060a;
  --ink: #0b0910;
  --panel: #100d15;
  --bone: #e9dec7;
  --bone-2: #c6b9a2;
  --dim: #8b7f70;
  --line: rgba(233, 222, 199, 0.13);
  --line-2: rgba(233, 222, 199, 0.26);
  --blood: #a3132a;
  --blood-2: #c31c33;
  --brass: #c8a45c;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Cinzel", Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --pad: clamp(18px, 4vw, 48px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--void); }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52rem 34rem at 50% -8%, rgba(163, 19, 42, 0.20), transparent 68%),
    radial-gradient(38rem 26rem at 92% 12%, rgba(200, 164, 92, 0.05), transparent 72%),
    radial-gradient(46rem 38rem at 4% 72%, rgba(163, 19, 42, 0.07), transparent 72%),
    radial-gradient(30rem 30rem at 80% 96%, rgba(200, 164, 92, 0.04), transparent 72%);
}

a { color: inherit; }

img { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bone);
  color: var(--void);
  padding: 0.6rem 1rem;
  z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------------------------- header */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blood), var(--blood-2));
  z-index: 60;
  transition: width 0.1s linear;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--pad);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 6, 10, 0.94), rgba(7, 6, 10, 0.55));
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  transition: border-color 0.3s;
}
.top.scrolled { border-bottom-color: var(--line); }

.brand {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-decoration: none;
  color: var(--bone);
  white-space: nowrap;
}
.brand span { color: var(--blood-2); }

.nav { display: flex; gap: clamp(0.8rem, 2.4vw, 1.9rem); }
.nav a {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--blood); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6rem var(--pad) 3rem;
}
.hero-sigil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.075;
  pointer-events: none;
}
.hero-sigil img {
  width: min(78vh, 84vw);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(163, 19, 42, 0.9));
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 900px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: clamp(0.6rem, 1.4vw, 0.7rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 0.4rem;
}
.word {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 15.5vw, 11.5rem);
  line-height: 0.92;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  margin: 0.1em 0 0;
  background: linear-gradient(178deg, #fbf3e2 8%, #e9dec7 42%, #a2917792 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 70px rgba(163, 19, 42, 0.55);
}
.word-sub {
  font-family: var(--display);
  font-size: clamp(0.62rem, 1.6vw, 0.8rem);
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  color: var(--brass);
  text-transform: uppercase;
  margin-top: 1.1rem;
}
.rule {
  width: 1px;
  height: clamp(34px, 7vh, 70px);
  margin: clamp(1.2rem, 3vh, 2.2rem) auto;
  background: linear-gradient(var(--brass), transparent);
}
.lede {
  max-width: 50ch;
  margin: 0 auto;
  font-size: clamp(1.02rem, 1.9vw, 1.3rem);
  font-style: italic;
  line-height: 1.62;
  color: var(--bone-2);
}
.lede .em { font-style: normal; color: #f4ead6; }

.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3.4rem);
  margin: clamp(1.8rem, 4vh, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.stats li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 5.5rem;
}
.stats b {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 500;
  color: var(--bone);
  line-height: 1;
}
.stats span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}
.scroll-cue {
  display: inline-block;
  margin-top: clamp(2rem, 5vh, 3.4rem);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 0.8rem auto 0;
  background: linear-gradient(var(--line-2), transparent);
}
.scroll-cue:hover { color: var(--bone); }

/* --------------------------------------------------------- quote band */

.band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(163, 19, 42, 0.12), rgba(7, 6, 10, 0));
  padding: clamp(3rem, 9vw, 6.5rem) var(--pad);
  position: relative;
  z-index: 1;
}
.band-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.band blockquote {
  margin: 0;
  font-style: italic;
  font-size: clamp(1.5rem, 3.8vw, 2.9rem);
  line-height: 1.28;
  color: var(--bone);
  text-wrap: balance;
}
.band blockquote::before {
  content: "❖";
  display: block;
  font-size: 0.7rem;
  color: var(--blood-2);
  margin-bottom: 1.6rem;
  font-style: normal;
}
.band cite {
  display: block;
  margin-top: 1.8rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --------------------------------------------------------------- catalog */

.catalog { padding: clamp(3rem, 8vw, 5.5rem) 0 0; position: relative; z-index: 1; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.3rem;
}
.sec-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}
.sec-head p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.filters {
  position: sticky;
  top: 52px;
  z-index: 30;
  background: rgba(7, 6, 10, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  margin-bottom: 0;
}
.filters-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.search {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 0.5rem 0.7rem;
  min-width: 0;
}
.search:focus-within { border-color: var(--line-2); }
.search svg { flex: none; opacity: 0.55; }
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.search input::placeholder { color: #6d6357; }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  padding: 0.45rem 0.62rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { color: var(--bone); border-color: var(--line-2); }
.chip[aria-pressed="true"] {
  color: var(--void);
  background: var(--bone);
  border-color: var(--bone);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 1.3rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 0.7rem 1rem;
  background: var(--void);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition: background 0.25s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 38%, rgba(163, 19, 42, 0.28), transparent 72%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover { background: #0c0a11; }
.card:hover::before { opacity: 1; }
.card-num {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: #6f6558;
}
.card-sigil {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.78;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.3s;
}
.card:hover .card-sigil,
.card:focus-visible .card-sigil {
  opacity: 1;
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 0 11px rgba(195, 28, 51, 0.65));
}
.card-name {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-align: center;
  line-height: 1.2;
}
.card:hover .card-name { color: #fff; }
.card-rank {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f6558;
  text-align: center;
}
.grid-empty {
  display: none;
  padding: 3.5rem 1rem;
  text-align: center;
  font-style: italic;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.grid-empty.on { display: block; }

/* ----------------------------------------------------------- demon page */

.dhero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: start;
  padding: clamp(4.6rem, 8vw, 5.6rem) 0 0;
}

.sigil-panel {
  position: sticky;
  top: 4.4rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(163, 19, 42, 0.13), rgba(7, 6, 10, 0) 58%),
    var(--panel);
  padding: clamp(1.1rem, 2.6vw, 1.9rem);
}
.sigil-frame {
  display: block;
  padding: clamp(0.8rem, 2vw, 1.4rem);
  border: 1px solid rgba(200, 164, 92, 0.22);
  color: var(--bone);
}
.sigil-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(163, 19, 42, 0.45));
}
.sigil-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.sigil-meta dt { color: #6f6558; }
.sigil-meta dd { margin: 0; color: var(--bone-2); letter-spacing: 0.08em; }

.dhead .num {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}
.dname {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.4vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0.08em;
  margin: 0.35em 0 0.18em;
  overflow-wrap: anywhere;
  background: linear-gradient(180deg, #fbf3e2, #cfc0a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.variants {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6f6558;
  margin: 0 0 0.8rem;
}
.epithet {
  font-style: italic;
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  line-height: 1.4;
  color: var(--bone-2);
  margin: 0;
  max-width: 30ch;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.2rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.32rem 0.55rem;
  color: var(--bone-2);
}
.tag-rank { border-color: rgba(195, 28, 51, 0.5); color: #edc6cd; }

.art { max-width: 68ch; padding-bottom: 1rem; }
.art h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin: clamp(2.2rem, 5vw, 3.2rem) 0 1rem;
}
.art h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.art p {
  margin: 0 0 1.05em;
  font-size: clamp(1.05rem, 1.6vw, 1.16rem);
  line-height: 1.72;
  color: #ddd2bc;
}
.art p:first-of-type { font-size: clamp(1.12rem, 1.9vw, 1.28rem); color: #e8ddc8; }
.art ul { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.art li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.55rem 0;
  line-height: 1.6;
  color: #d7ccb6;
}
.art li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--blood-2);
}
.en {
  margin: 0 0 1.4rem;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 2px solid var(--blood);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.62;
  color: #b4a894;
}
.en cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6f6558;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  margin: 0 0 1.4rem;
}
.facts div {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.facts dt {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6f6558;
  margin-bottom: 0.3rem;
}
.facts dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--bone-2);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: var(--void);
  text-decoration: none;
  transition: background 0.25s;
}
.pager a:hover { background: #0c0a11; }
.pager .k {
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6f6558;
}
.pager .v {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  letter-spacing: 0.08em;
}
.pager .next { text-align: right; align-items: flex-end; }

/* ------------------------------------------------------------- editorial */

.page-head {
  padding: clamp(6.5rem, 14vh, 9rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { margin-bottom: 0.9rem; letter-spacing: 0.26em; font-size: 0.58rem; }
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.05;
  margin: 0;
  max-width: 22ch;
}
.page-head p {
  max-width: 52ch;
  margin: 1.1rem 0 0;
  font-style: italic;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--bone-2);
}
.editorial { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.editorial .art { max-width: 66ch; }
.editorial h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: 0.1em;
  margin: clamp(2.2rem, 5vw, 3rem) 0 0.8rem;
  color: var(--bone);
}
.editorial h3:first-child { margin-top: 0; }
.editorial a { color: var(--bone); text-decoration-color: var(--blood); text-underline-offset: 0.2em; }
.editorial a:hover { color: #fff; }
.note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass);
  padding: 1rem 1.2rem;
  margin: 1.8rem 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--bone-2);
  background: rgba(200, 164, 92, 0.04);
}
.note b { color: var(--bone); }

.wide {
  width: min(1040px, calc(100vw - 2 * var(--pad)));
  overflow-x: auto;
  margin: 1.6rem 0 1rem;
}
.table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
}
.table caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6f6558;
  padding-bottom: 0.6rem;
}
.table th,
.table td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th { white-space: nowrap; }
.table th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6f6558;
}
.table td:first-child { font-family: var(--display); letter-spacing: 0.06em; white-space: nowrap; }
.table td:nth-child(2) { font-family: var(--mono); font-size: 0.8rem; }
.table td:nth-child(3) { white-space: nowrap; }

.sources { list-style: none; padding: 0; margin: 0; }
.sources li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.55;
  color: #d7ccb6;
}
.sources b { display: block; font-weight: 600; color: var(--bone); margin-bottom: 0.2rem; }
.sources a { color: var(--bone-2); text-decoration-color: var(--blood); }

/* ----------------------------------------------------------------- footer */

.foot {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  padding: clamp(1.6rem, 4vw, 2.6rem) var(--pad) clamp(2rem, 5vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.2rem 2.5rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6f6558;
  position: relative;
  z-index: 1;
}
.foot p { margin: 0; max-width: 46ch; line-height: 1.7; }
.foot a { text-decoration: none; color: var(--dim); }
.foot a:hover { color: var(--bone); }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* --------------------------------------------------------------- 404/end */

.end {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem var(--pad) 3rem;
}
.end .word { font-size: clamp(2.6rem, 12vw, 7rem); }
.end p { color: var(--bone-2); font-style: italic; max-width: 32ch; margin: 1.4rem auto 2rem; }
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line-2);
  padding: 0.75rem 1.3rem;
  color: var(--bone);
}
.btn:hover { border-color: var(--blood); color: #fff; }

/* ----------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise-1 { animation-delay: 0.04s; }
  .rise-2 { animation-delay: 0.1s; }
  .rise-3 { animation-delay: 0.16s; }
  .rise-4 { animation-delay: 0.22s; }
  .rise-5 { animation-delay: 0.28s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  .sigil-frame img { animation: unseal 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes unseal {
    from { opacity: 0; transform: scale(0.94); filter: blur(6px) drop-shadow(0 0 0 transparent); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .dhero { grid-template-columns: minmax(0, 1fr); }
  .sigil-panel { position: static; order: -1; max-width: 330px; margin-inline: auto; width: 100%; }
  .dhead { text-align: center; }
  .epithet { margin-inline: auto; }
  .tags { justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .filters { top: 49px; }
  .filters-inner { gap: 0.6rem; }
  .search { flex-basis: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); }
  .card { padding: 0.8rem 0.5rem 0.85rem; }
  .card-sigil { width: 60px; height: 60px; }
  .card-name { font-size: 0.88rem; }
  .nav a { font-size: 0.56rem; letter-spacing: 0.12em; }
  .brand { font-size: 0.7rem; letter-spacing: 0.24em; }
  .eyebrow { letter-spacing: 0.2em; }
  .hero-sigil { opacity: 0.05; }
  .stats {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 1.4rem 2.6rem;
    justify-content: center;
  }
  .word-sub { letter-spacing: 0.38em; text-indent: 0.38em; }
  .hero { padding-top: 4.6rem; }
  .pager { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { border-right: 0; }
  .facts div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .pager .next { text-align: left; align-items: flex-start; border-top: 1px solid var(--line); }
  .foot { justify-content: flex-start; }
}
