:root {
  --ink: #090908;
  --ink-soft: #12110f;
  --paper: #d8cfb9;
  --paper-light: #eee7d6;
  --paper-dark: #b8aa89;
  --bone: #e8dfcc;
  --blood: #8d2025;
  --blood-dark: #551216;
  --smoke: #9b968b;
  --line-dark: rgba(18, 17, 15, 0.24);
  --line-light: rgba(232, 223, 204, 0.22);
  --font-display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --font-body: "Libre Caslon Text", Georgia, serif;
  --font-meta: "DM Mono", Consolas, monospace;
  --content: min(1240px, calc(100vw - 96px));
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--blood) var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
blockquote,
dl,
dd {
  margin: 0;
}

::selection {
  background: var(--blood);
  color: var(--paper-light);
}

:focus-visible {
  outline: 2px solid var(--blood);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--font-meta);
  font-size: 0.75rem;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  width: 100%;
  height: 2px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blood);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 48px;
  border-bottom: 1px solid transparent;
  transition: background 280ms ease, border-color 280ms ease, height 280ms ease;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(9, 9, 8, 0.88);
  border-color: var(--line-light);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark > span:first-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.15rem;
  font-style: italic;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(232, 223, 204, 0.76);
  font-family: var(--font-meta);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--blood);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--bone);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
}

.eyebrow {
  color: var(--blood);
  font-family: var(--font-meta);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: max(740px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #080807;
  isolation: isolate;
}

.hero-media,
.hero-grain {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background: url("../assets/images/background2.jpg") 68% 34% / cover no-repeat;
  transform: scale(1.02);
  animation: heroArrival 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 5, 0.98) 0%, rgba(6, 6, 5, 0.87) 32%, rgba(6, 6, 5, 0.38) 63%, rgba(6, 6, 5, 0.54) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.38), transparent 35%, rgba(5, 5, 5, 0.82));
}

.hero-grain {
  z-index: -2;
  opacity: 0.17;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-content {
  width: var(--content);
  margin: 0 auto;
  padding-top: var(--header-height);
}

.hero-eyebrow {
  color: var(--paper-dark);
  margin-bottom: 30px;
}

.hero h1 {
  max-width: 820px;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: clamp(4.7rem, 8.1vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.84;
}

.hero h1 em {
  color: var(--paper-dark);
  font-weight: 400;
}

.hero-intro {
  max-width: 550px;
  margin-top: 38px;
  color: rgba(232, 223, 204, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 42px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 14px 20px;
  border: 1px solid transparent;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.button-primary {
  background: var(--blood);
  border-color: var(--blood);
  color: var(--paper-light);
}

.button-primary:hover {
  background: var(--paper-light);
  border-color: var(--paper-light);
  color: var(--ink);
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 9px 0;
  color: var(--bone);
  font-family: var(--font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 220ms ease;
}

.text-link:hover::after {
  transform: scaleX(0.3);
}

.hero-seal {
  position: absolute;
  right: clamp(42px, 7vw, 130px);
  bottom: clamp(72px, 10vh, 110px);
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(232, 223, 204, 0.38);
  border-radius: 50%;
  background: rgba(9, 9, 8, 0.35);
  cursor: pointer;
  transition: background 260ms ease, border-color 260ms ease, transform 260ms ease;
}

.hero-seal::before,
.hero-seal::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(232, 223, 204, 0.15);
  border-radius: 50%;
}

.hero-seal::after {
  inset: 23px;
  border-style: dashed;
}

.hero-seal img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: grayscale(1) sepia(0.35) contrast(1.2);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-seal span {
  position: absolute;
  bottom: -29px;
  width: max-content;
  color: rgba(232, 223, 204, 0.5);
  font-family: var(--font-meta);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-seal:hover {
  background: rgba(141, 32, 37, 0.18);
  border-color: var(--blood);
  transform: rotate(-4deg);
}

.hero-seal:hover img,
.hero-seal.is-summoning img {
  transform: scale(1.12) rotate(7deg);
}

.hero-index {
  position: absolute;
  bottom: 34px;
  left: 48px;
  color: rgba(232, 223, 204, 0.34);
  font-family: var(--font-meta);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-scroll-cue {
  display: none;
}

.crow-field {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.flying-crow {
  position: absolute;
  top: var(--start-y);
  left: -140px;
  width: var(--crow-size);
  opacity: 0;
  animation: crowCross var(--crow-duration) cubic-bezier(0.3, 0.1, 0.38, 0.95) var(--crow-delay) forwards;
}

.flying-crow img {
  width: 100%;
  animation: crowFlutter 550ms ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.7));
}

.paper-section {
  position: relative;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(80, 63, 35, 0.035) 1px, transparent 1px);
  background-size: auto, 4px 100%;
  color: var(--ink-soft);
}

.manifesto,
.ensemble {
  padding: 150px max(48px, calc((100vw - 1240px) / 2));
}

.chapter-mark {
  position: absolute;
  top: 90px;
  right: max(48px, calc((100vw - 1240px) / 2));
  color: rgba(18, 17, 15, 0.08);
  font-family: var(--font-display);
  font-size: clamp(9rem, 18vw, 18rem);
  line-height: 1;
  user-select: none;
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 930px;
}

.section-heading .eyebrow {
  margin-bottom: 25px;
}

.section-heading h2,
.crypt-intro h2,
.listen-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.manifesto-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.85fr) minmax(220px, 0.55fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
  margin-top: 94px;
  padding-top: 45px;
  border-top: 1px solid var(--line-dark);
}

.lead-copy {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.lead-copy em {
  color: var(--blood);
}

.body-copy {
  display: grid;
  gap: 22px;
  font-size: 0.98rem;
  line-height: 1.85;
}

.manifesto-facts {
  border-top: 1px solid var(--line-dark);
}

.manifesto-facts div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.manifesto-facts dt,
.ledger-role {
  font-family: var(--font-meta);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.manifesto-facts dd {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.ensemble {
  padding-top: 140px;
  padding-bottom: 160px;
}

.section-heading-inline {
  max-width: none;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 80px;
  align-items: end;
}

.section-heading-inline > p {
  max-width: 430px;
  padding-bottom: 8px;
  font-size: 0.98rem;
  line-height: 1.85;
}

.member-ledger {
  margin-top: 90px;
  border-top: 1px solid var(--line-dark);
}

.ledger-row {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(180px, 235px) 46px minmax(230px, 0.8fr) minmax(250px, 1fr) 24px;
  gap: 26px;
  align-items: center;
  padding: 28px 18px 28px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: color 260ms ease, padding 260ms ease;
  isolation: isolate;
}

.ledger-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink-soft);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ledger-row:hover {
  padding-right: 30px;
  padding-left: 18px;
  color: var(--paper-light);
}

.ledger-row:hover::before {
  transform: scaleY(1);
}

.ledger-number {
  color: var(--blood);
  font-family: var(--font-meta);
  font-size: 0.68rem;
}

.ledger-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: #11100f;
}

.ledger-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(233, 223, 201, 0.2);
}

.ledger-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.72) contrast(1.05);
  transition: filter 400ms ease, transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ledger-portrait-countess img {
  object-position: center 18%;
}

.ledger-portrait figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 5px 7px;
  background: rgba(7, 7, 8, 0.78);
  color: var(--paper-light);
  font-family: var(--font-meta);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ledger-row:hover .ledger-portrait img {
  filter: saturate(0.9) contrast(1.08);
  transform: scale(1.035);
}

.ledger-role {
  color: var(--blood);
  margin-bottom: 9px;
}

.ledger-row h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 3.65rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.ledger-description {
  max-width: 470px;
  line-height: 1.7;
}

.ledger-row > span {
  color: var(--blood);
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: right;
  transition: transform 300ms ease;
}

.ledger-row:hover > span {
  transform: rotate(90deg);
}

.crypt-section {
  position: relative;
  min-height: 1150px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
  align-items: center;
  overflow: hidden;
  padding: 160px max(48px, calc((100vw - 1240px) / 2));
  background: #070708;
  isolation: isolate;
}

.crypt-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/images/background.jpg") center 28% / cover no-repeat;
}

.crypt-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.91), rgba(7, 7, 8, 0.55) 44%, rgba(7, 7, 8, 0.69)),
    linear-gradient(180deg, #090908 0%, transparent 18%, transparent 76%, #090908 100%);
}

.crypt-intro {
  align-self: start;
  padding-top: 90px;
}

.crypt-intro .eyebrow {
  color: var(--paper-dark);
  margin-bottom: 24px;
}

.crypt-intro h2 {
  max-width: 720px;
  color: var(--bone);
}

.journal-clipping {
  position: relative;
  align-self: end;
  max-width: 560px;
  margin-left: auto;
  padding: clamp(32px, 4vw, 56px);
  color: #27221a;
  background-color: #c9b991;
  background-image:
    linear-gradient(rgba(69, 54, 32, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.36), transparent 35%);
  background-size: 100% 4px, auto;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
  transform: rotate(-1.2deg);
}

.journal-clipping::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(39, 34, 26, 0.34);
  pointer-events: none;
}

.journal-clipping header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  border-bottom: 3px double rgba(39, 34, 26, 0.72);
}

.journal-clipping header p:first-child {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
}

.journal-clipping header p:last-child,
.clipping-label {
  font-family: var(--font-meta);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clipping-label {
  margin-top: 29px;
  color: var(--blood-dark);
  font-weight: 500;
  letter-spacing: 0.16em;
}

.journal-clipping h3 {
  margin: 7px 0 25px;
  padding-bottom: 21px;
  border-bottom: 1px solid rgba(39, 34, 26, 0.38);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.journal-clipping > p:not(.clipping-label) {
  margin-top: 17px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.journal-clipping footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(39, 34, 26, 0.38);
  color: var(--blood-dark);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
}

.listen-section {
  min-height: 880px;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  background: var(--blood-dark);
}

.listen-art {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--ink);
}

.listen-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.2), rgba(8, 8, 7, 0.75)),
    linear-gradient(180deg, rgba(8, 8, 7, 0.35), transparent 50%, rgba(8, 8, 7, 0.72));
}

.listen-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: grayscale(1) contrast(1.18);
}

.listen-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(48px, 8vw, 145px);
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 223, 204, 0.07), transparent 32%),
    var(--blood-dark);
}

.listen-copy .eyebrow {
  margin-bottom: 23px;
  color: var(--paper-dark);
}

.listen-copy h2 {
  color: var(--paper-light);
  font-size: clamp(4.8rem, 8vw, 9rem);
}

.listen-copy h2 em {
  color: var(--paper-dark);
  font-weight: 400;
}

.listen-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin-top: 35px;
  color: rgba(232, 223, 204, 0.73);
  line-height: 1.8;
}

.listen-links {
  margin-top: 60px;
  border-top: 1px solid rgba(232, 223, 204, 0.3);
}

.listen-links a {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(232, 223, 204, 0.3);
  transition: padding 220ms ease, background 220ms ease;
}

.listen-links a:hover {
  padding-right: 15px;
  padding-left: 15px;
  background: rgba(232, 223, 204, 0.08);
}

.listen-links span:first-child {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.listen-links span:last-child {
  align-self: center;
  color: var(--paper-dark);
  font-family: var(--font-meta);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 45px;
  align-items: center;
  padding: 40px 48px;
  background: var(--ink);
  border-top: 1px solid var(--line-light);
  color: rgba(232, 223, 204, 0.52);
  font-family: var(--font-meta);
  font-size: 0.59rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 223, 204, 0.42);
  border-radius: 50%;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-mark:hover {
  color: var(--blood);
  border-color: var(--blood);
  transform: rotate(-10deg);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroArrival {
  from {
    opacity: 0;
    transform: scale(1.09);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes crowCross {
  0% {
    opacity: 0;
    transform: translate3d(0, 35px, 0) scale(0.55) rotate(-8deg);
  }
  12% {
    opacity: 0.95;
  }
  65% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(100vw + 260px), var(--travel-y), 0) scale(1.18) rotate(8deg);
  }
}

@keyframes crowFlutter {
  from {
    transform: translateY(-3px) rotate(-4deg) scaleY(0.94);
  }
  to {
    transform: translateY(4px) rotate(4deg) scaleY(1.04);
  }
}

@media (max-width: 1080px) {
  :root {
    --content: min(100% - 64px, 900px);
  }

  .site-header {
    padding: 0 32px;
  }

  .nav-toggle {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 10px 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: var(--font-meta);
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .nav-toggle i,
  .nav-toggle i::before {
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
    transition: transform 220ms ease;
  }

  .nav-toggle i {
    position: relative;
  }

  .nav-toggle i::before {
    content: "";
    position: absolute;
    top: -7px;
  }

  .nav-toggle[aria-expanded="true"] i {
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] i::before {
    top: 0;
    transform: rotate(90deg);
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 100px 12vw;
    background: rgba(9, 9, 8, 0.98);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav a {
    width: 100%;
    padding: 17px 0;
    border-bottom: 1px solid var(--line-light);
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    text-transform: none;
  }

  .primary-nav a::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 10vw, 7.8rem);
  }

  .hero-seal {
    right: 38px;
    width: 142px;
    height: 142px;
  }

  .hero-seal img {
    width: 92px;
    height: 92px;
  }

  .manifesto,
  .ensemble,
  .crypt-section {
    padding-right: 32px;
    padding-left: 32px;
  }

  .chapter-mark {
    right: 32px;
  }

  .manifesto-grid {
    grid-template-columns: 1fr 1fr;
  }

  .manifesto-facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .manifesto-facts div {
    border-right: 1px solid var(--line-dark);
  }

  .manifesto-facts div:last-child {
    border-right: 0;
  }

  .section-heading-inline {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .ledger-row {
    grid-template-columns: minmax(150px, 190px) 40px minmax(190px, 0.8fr) minmax(220px, 1fr) 20px;
    gap: 18px;
  }

  .crypt-section {
    grid-template-columns: 0.75fr 1fr;
    gap: 35px;
  }

  .listen-section {
    grid-template-columns: minmax(300px, 0.7fr) minmax(480px, 1.3fr);
  }

  .listen-copy {
    padding: 100px 50px;
  }
}

@media (max-width: 820px) {
  :root {
    --content: calc(100% - 40px);
    --header-height: 70px;
  }

  .site-header,
  .site-header.is-scrolled {
    height: calc(64px + env(safe-area-inset-top));
    padding: 0 20px;
    padding-top: env(safe-area-inset-top);
  }

  .wordmark > span:last-child {
    display: none;
  }

  .wordmark > span:first-child {
    width: 33px;
    height: 33px;
  }

  .hero {
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    align-items: stretch;
  }

  .hero-media {
    background-position: 72% center;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(6, 6, 5, 0.35), rgba(6, 6, 5, 0.4) 35%, rgba(6, 6, 5, 0.96) 77%, #060605 100%),
      linear-gradient(90deg, rgba(6, 6, 5, 0.55), rgba(6, 6, 5, 0.12));
  }

  .hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: max(180px, 23dvh) 0 max(70px, calc(54px + env(safe-area-inset-bottom)));
  }

  .hero-eyebrow {
    margin-bottom: 20px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.35rem, 15vw, 5rem);
    line-height: 0.88;
  }

  .hero-intro {
    max-width: min(92%, 390px);
    margin-top: clamp(20px, 3dvh, 28px);
    font-size: clamp(0.84rem, 3.7vw, 0.96rem);
    line-height: 1.62;
  }

  .hero-actions {
    display: none;
  }

  .button {
    width: 100%;
  }

  .text-link {
    width: max-content;
  }

  .hero-seal {
    top: auto;
    right: 20px;
    bottom: max(82px, calc(72px + env(safe-area-inset-bottom)));
    width: clamp(84px, 24vw, 104px);
    height: clamp(84px, 24vw, 104px);
  }

  .hero-seal::before {
    inset: 7px;
  }

  .hero-seal::after {
    inset: 16px;
  }

  .hero-seal img {
    width: 66%;
    height: 66%;
  }

  .hero-seal span,
  .hero-index {
    display: none;
  }

  .hero-scroll-cue {
    position: absolute;
    bottom: max(18px, calc(12px + env(safe-area-inset-bottom)));
    left: 50%;
    z-index: 8;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(232, 223, 204, 0.32);
    border-radius: 50%;
    transform: translateX(-50%);
  }

  .hero-scroll-cue span {
    width: 10px;
    height: 10px;
    border-right: 1px solid var(--bone);
    border-bottom: 1px solid var(--bone);
    transform: translateY(-2px) rotate(45deg);
    animation: scrollCue 1.7s ease-in-out infinite;
  }

  .manifesto,
  .ensemble,
  .crypt-section {
    padding: 95px 20px;
  }

  .chapter-mark {
    top: 50px;
    right: 18px;
    font-size: 9rem;
  }

  .section-heading h2,
  .crypt-intro h2,
  .listen-copy h2 {
    font-size: clamp(2.85rem, 13vw, 4.6rem);
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 55px;
    padding-top: 33px;
  }

  .lead-copy {
    font-size: 1.65rem;
  }

  .manifesto-facts {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .manifesto-facts div {
    border-right: 0;
  }

  .ensemble {
    padding-bottom: 110px;
  }

  .section-heading-inline {
    gap: 27px;
  }

  .member-ledger {
    margin-top: 55px;
  }

  .ledger-row {
    min-height: auto;
    grid-template-columns: 36px 1fr 22px;
    gap: 13px;
    padding: 24px 0;
  }

  .ledger-portrait {
    grid-column: 1 / -1;
    max-width: 520px;
  }

  .ledger-description {
    grid-column: 2 / 4;
    font-size: 0.9rem;
  }

  .ledger-row h3 {
    font-size: clamp(2.05rem, 10vw, 3.2rem);
  }

  .ledger-row:hover {
    padding-right: 12px;
    padding-left: 12px;
  }

  .crypt-section {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 70px;
    align-items: start;
  }

  .crypt-backdrop {
    background-position: 58% center;
  }

  .crypt-backdrop::after {
    background:
      linear-gradient(180deg, rgba(7, 7, 8, 0.93), rgba(7, 7, 8, 0.66) 35%, rgba(7, 7, 8, 0.82)),
      linear-gradient(90deg, rgba(7, 7, 8, 0.6), transparent);
  }

  .crypt-intro {
    padding-top: 0;
  }

  .journal-clipping {
    margin: 0;
    padding: 34px 28px;
    transform: rotate(-0.6deg);
  }

  .journal-clipping header {
    flex-direction: column;
    gap: 8px;
  }

  .journal-clipping h3 {
    font-size: 2rem;
  }

  .listen-section {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .listen-art {
    min-height: 55svh;
  }

  .listen-art::after {
    background: linear-gradient(180deg, rgba(8, 8, 7, 0.12), rgba(85, 18, 22, 0.9));
  }

  .listen-copy {
    padding: 80px 20px 95px;
  }

  .listen-copy h2 {
    font-size: clamp(4.3rem, 21vw, 7rem);
  }

  .listen-links {
    margin-top: 45px;
  }

  .listen-links a {
    flex-direction: column;
    gap: 3px;
  }

  .listen-links span:last-child {
    align-self: flex-start;
  }

  .site-footer {
    min-height: 220px;
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: start;
    padding: 45px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.relic-page {
  min-height: 100svh;
  background: var(--ink);
}

.relic-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid var(--line-light);
  background: rgba(9, 9, 8, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.relic-shell {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.relic-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.98) 0%, rgba(7, 7, 7, 0.91) 43%, rgba(7, 7, 7, 0.35) 75%, rgba(7, 7, 7, 0.62)),
    url("../assets/images/background.jpg") 68% center / cover no-repeat;
}

.relic-copy {
  width: var(--content);
  margin: 0 auto;
  padding: 150px 0 90px;
}

.relic-copy .eyebrow {
  margin-bottom: 28px;
  color: var(--paper-dark);
}

.relic-copy h1 {
  max-width: 920px;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 8vw, 8.7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.relic-copy h1 em {
  color: var(--paper-dark);
  font-weight: 400;
}

.relic-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin-top: 38px;
  color: rgba(232, 223, 204, 0.72);
  line-height: 1.8;
}

.relic-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 40px;
}

.relic-index {
  position: absolute;
  right: 48px;
  bottom: 34px;
  color: rgba(232, 223, 204, 0.34);
  font-family: var(--font-meta);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

@media (max-width: 820px) {
  .relic-header {
    height: 64px;
    padding: 0 20px;
  }

  .relic-header .text-link {
    font-size: 0.58rem;
  }

  .relic-background {
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.45), rgba(7, 7, 7, 0.8) 52%, rgba(7, 7, 7, 0.98)),
      url("../assets/images/background.jpg") 58% center / cover no-repeat;
  }

  .relic-copy {
    padding: 130px 0 70px;
  }

  .relic-copy h1 {
    font-size: clamp(3.7rem, 17vw, 5.8rem);
  }

  .relic-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .relic-index {
    display: none;
  }
}

@media (max-width: 820px) and (max-height: 680px) {
  .hero-content {
    padding-top: max(158px, 25dvh);
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .hero-intro {
    display: none;
  }

  .hero-seal {
    top: auto;
    bottom: max(66px, calc(56px + env(safe-area-inset-bottom)));
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 932px) and (max-height: 520px) and (orientation: landscape) {
  .site-header,
  .site-header.is-scrolled {
    height: calc(54px + env(safe-area-inset-top));
  }

  .hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(54px + env(safe-area-inset-top)) 0 calc(42px + env(safe-area-inset-bottom));
  }

  .hero {
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    align-items: stretch;
  }

  .hero-eyebrow,
  .hero-intro {
    display: none;
  }

  .hero-actions {
    display: none;
  }

  .hero h1 {
    max-width: 72%;
    font-size: clamp(2.7rem, 8.5vw, 4.4rem);
    line-height: 0.86;
  }

  .hero-seal {
    top: auto;
    right: 24px;
    bottom: 24px;
    width: 74px;
    height: 74px;
  }

  .hero-seal span,
  .hero-index {
    display: none;
  }

  .hero-scroll-cue {
    position: absolute;
    right: 118px;
    bottom: 30px;
    left: auto;
    z-index: 8;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(232, 223, 204, 0.32);
    border-radius: 50%;
    transform: none;
  }

  .hero-scroll-cue span {
    width: 9px;
    height: 9px;
    border-right: 1px solid var(--bone);
    border-bottom: 1px solid var(--bone);
    animation: scrollCue 1.7s ease-in-out infinite;
  }
}

@keyframes scrollCue {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(-4px) rotate(45deg);
  }
  50% {
    opacity: 1;
    transform: translateY(3px) rotate(45deg);
  }
}
