@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-regular.ttf") format("truetype");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-semibold.ttf") format("truetype");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-extrabold.ttf") format("truetype");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #080711;
  --night-soft: #101020;
  --panel: #121121;
  --paper: #f1eef4;
  --silver: #dddce6;
  --muted: #aaa5b9;
  --violet: #a37bf2;
  --violet-soft: #d2c0f4;
  --pink: #d074bd;
  --line: rgba(204, 194, 228, 0.2);
  --max: 1360px;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--silver);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.32) 0.65px, transparent 0.65px);
  background-size: 4px 4px;
  z-index: 20;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

h1,
h2,
h3 {
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  line-height: 1.05;
}

h3 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
}

[data-lang="en"] {
  display: none !important;
}

body.lang-en [data-lang="es"] {
  display: none !important;
}

body.lang-en [data-lang="en"] {
  display: revert !important;
}

body.lang-en .manifesto-content[data-lang="en"] {
  display: grid !important;
}

body.lang-en .button[data-lang="en"] {
  display: inline-flex !important;
}

.skip-link {
  background: var(--paper);
  color: var(--night);
  left: 1rem;
  padding: 0.6rem 1rem;
  position: fixed;
  top: -5rem;
  transition: top 180ms ease;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(8, 7, 17, 0.76);
  border-bottom: 1px solid transparent;
  display: grid;
  gap: 2rem;
  grid-template-columns: clamp(182px, 18vw, 235px) 1fr auto;
  left: 0;
  padding: 1.35rem clamp(1.3rem, 4vw, 3.5rem);
  position: fixed;
  right: 0;
  top: 0;
  transition: border-color 220ms ease, background 220ms ease;
  z-index: 30;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(8, 7, 17, 0.94);
}

.brand img {
  display: block;
  height: auto;
  filter: invert(1);
  max-width: clamp(182px, 18vw, 235px);
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: clamp(1.1rem, 2.5vw, 2.5rem);
  justify-content: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
}

.language {
  border: 1px solid var(--line);
  display: flex;
  padding: 0.18rem;
}

.language button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: 500 0.75rem var(--sans);
  letter-spacing: 0.12em;
  padding: 0.42rem 0.62rem;
}

.language button.active {
  background: rgba(163, 123, 242, 0.22);
  color: var(--paper);
}

.menu-toggle {
  display: none;
}

.hero {
  align-items: center;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  padding-top: 5.6rem;
  position: relative;
}

.hero::before {
  background: linear-gradient(90deg, rgba(8, 7, 17, 0.92) 0%, rgba(8, 7, 17, 0.68) 43%, rgba(8, 7, 17, 0.08) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-copy {
  align-self: center;
  max-width: 720px;
  padding: clamp(3rem, 8vw, 7.5rem) clamp(1.5rem, 5vw, 4.5rem);
  position: relative;
  z-index: 1;
}

.hero-symbol {
  color: rgba(210, 192, 244, 0.62);
  font: 0.63rem var(--sans);
  letter-spacing: 0.55em;
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
}

.eyebrow {
  color: var(--violet-soft);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.05rem, 4.65vw, 5rem);
  line-height: 0.98;
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.hero-lead {
  color: #c9c4d4;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  letter-spacing: 0.015em;
  max-width: 470px;
}

.alchemy-symbols {
  color: rgba(210, 192, 244, 0.7);
  display: flex;
  gap: 1.1rem;
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
}

.alchemy-symbols span {
  align-items: center;
  border: 1px solid rgba(210, 192, 244, 0.24);
  border-radius: 50%;
  display: inline-flex;
  font-family: "Times New Roman", serif;
  font-size: 1.45rem;
  height: 3rem;
  justify-content: center;
  line-height: 1;
  text-shadow: 0 0 18px rgba(196, 153, 255, 0.34);
  width: 3rem;
}

.alchemy-symbols span:nth-child(2) {
  transform: translateY(0.45rem);
}

.alchemy-symbols span:nth-child(3) {
  transform: translateY(-0.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(2rem, 5vh, 3.2rem);
}

.button {
  align-items: center;
  border: 1px solid var(--violet-soft);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 500;
  justify-content: center;
  letter-spacing: 0.18em;
  min-height: 3.25rem;
  padding: 0.2rem 1.55rem;
  text-transform: uppercase;
  transition: background 190ms ease, color 190ms ease, border-color 190ms ease;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--violet-soft);
  border-color: var(--violet-soft);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: rgba(163, 123, 242, 0.15);
}

.button.disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.6;
}

.button.wide {
  width: 100%;
}

.page-network,
.network-base,
.network-light {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.page-network {
  bottom: 0;
  height: auto;
  pointer-events: none;
  position: fixed;
  right: 0;
  z-index: 0;
}

.page-network::after {
  background:
    radial-gradient(circle at 75% 18%, transparent 0%, rgba(8, 7, 17, 0.18) 34%, rgba(8, 7, 17, 0.67) 100%),
    linear-gradient(180deg, transparent 0%, rgba(8, 7, 17, 0.22) 44%, rgba(8, 7, 17, 0.45) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 2;
}

.network-base {
  display: block;
  filter: brightness(0.45) saturate(0.86);
  object-fit: cover;
  object-position: 66% center;
}

.network-light {
  mix-blend-mode: screen;
  opacity: 1;
  pointer-events: none;
  z-index: 3;
}

.media-caption {
  bottom: 2.25rem;
  color: var(--silver);
  font-size: 0.67rem;
  right: clamp(1.4rem, 4vw, 3.5rem);
  letter-spacing: 0.35em;
  position: absolute;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-cue {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  bottom: 2rem;
  display: flex;
  height: 2.8rem;
  justify-content: center;
  left: clamp(1.5rem, 5vw, 4.5rem);
  position: absolute;
  width: 2.8rem;
  z-index: 2;
}

.scroll-cue span {
  border-bottom: 1px solid var(--silver);
  border-right: 1px solid var(--silver);
  display: block;
  height: 0.6rem;
  transform: translateY(-0.15rem) rotate(45deg);
  width: 0.6rem;
}

.manifesto,
.laboratory,
.portals,
.correspondence {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(5.5rem, 10vw, 9rem) clamp(1.4rem, 6vw, 5rem);
}

.manifesto {
  backdrop-filter: blur(2px);
  background: rgba(8, 7, 17, 0.46);
  display: grid;
  gap: clamp(3rem, 6vw, 8rem);
  grid-template-columns: 0.75fr 0.82fr 1fr;
}

.manifesto-content {
  color: #bdb8c8;
  display: grid;
  gap: 1.5rem;
}

.manifesto-content[data-lang="en"] {
  margin-top: 2rem;
}

.manifesto-copy {
  align-self: center;
}

.alchemist-portrait {
  background: radial-gradient(circle at 30% 50%, rgba(196, 153, 255, 0.16), rgba(8, 7, 17, 0.92) 62%);
  margin: 0;
  min-height: clamp(420px, 46vw, 600px);
  overflow: hidden;
  position: relative;
}

.alchemist-portrait::after {
  background: linear-gradient(0deg, rgba(8, 7, 17, 0.74), transparent 42%);
  content: "";
  inset: 0;
  position: absolute;
}

.alchemist-portrait img {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  position: absolute;
  width: 100%;
}

.alchemist-portrait figcaption {
  bottom: 1.4rem;
  color: var(--paper);
  font-size: 0.63rem;
  left: 1.45rem;
  letter-spacing: 0.3em;
  position: absolute;
  text-transform: uppercase;
  z-index: 1;
}

.large {
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.43;
}

.laboratory {
  background: rgba(8, 7, 17, 0.64);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  max-width: none;
  padding-left: max(calc((100vw - var(--max)) / 2 + 5rem), 6vw);
  padding-right: max(calc((100vw - var(--max)) / 2 + 5rem), 6vw);
  position: relative;
}

.laboratory::before {
  background: radial-gradient(circle, rgba(163, 123, 242, 0.15), transparent 60%);
  content: "";
  height: 500px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 20%;
  width: 45%;
}

.lab-grid {
  display: grid;
  gap: clamp(2.5rem, 8vw, 8rem);
  grid-template-columns: 1.12fr 0.82fr;
  margin: 0 auto;
  max-width: var(--max);
  position: relative;
}

.lab-grid h2 {
  margin-bottom: 2rem;
}

.lab-grid .large {
  margin-bottom: 1.5rem;
  max-width: 650px;
}

.lab-grid > div:first-child > p:last-child {
  color: #bdb8c8;
  max-width: 620px;
}

.session-card {
  align-self: center;
  background: rgba(18, 17, 33, 0.66);
  border: 1px solid var(--line);
  padding: clamp(1.7rem, 4vw, 2.6rem);
}

.session-card dl {
  margin-bottom: 2.2rem;
}

.session-card dl div {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.95rem 0;
}

.session-card dt {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.session-card dd {
  color: var(--paper);
  font-size: 0.94rem;
  margin: 0;
  text-align: right;
}

.secondary-contact {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 1rem;
}

.secondary-contact {
  display: block;
  letter-spacing: 0.06em;
  text-align: center;
}

.secondary-contact:hover {
  color: var(--paper);
}

.section-title.compact {
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section-symbols {
  color: rgba(210, 192, 244, 0.62);
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.section-symbols span {
  border-bottom: 1px solid rgba(210, 192, 244, 0.32);
  font-family: "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1;
  padding: 0 0.45rem 0.45rem;
  text-shadow: 0 0 22px rgba(196, 153, 255, 0.3);
}

.section-symbols span:nth-child(2) {
  transform: translateY(0.35rem);
}

.portals,
.collection,
.published-archive,
.correspondence {
  background: rgba(8, 7, 17, 0.54);
}

.portal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.36fr 1fr 1fr;
}

.portal,
.portal-feature {
  background: rgba(11, 10, 21, 0.7);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.portal-feature {
  border-color: var(--line);
  color: #bdb8c8;
}

.portal-feature h3 {
  color: var(--paper);
}

.portal h3,
.portal-feature h3 {
  margin-bottom: 1.6rem;
  margin-top: auto;
}

.portal p:not(.portal-index),
.portal-feature p:not(.portal-index) {
  margin-bottom: 2.3rem;
}

.portal-index {
  align-items: center;
  color: var(--violet);
  display: flex;
  font-size: 0.65rem;
  gap: 0.75rem;
  letter-spacing: 0.3em;
}

.portal-index span {
  border: 1px solid rgba(196, 153, 255, 0.25);
  border-radius: 999px;
  display: inline-flex;
  font-family: "Times New Roman", serif;
  font-size: 1.2rem;
  height: 2.25rem;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  padding-top: 0.45rem;
  text-shadow: 0 0 18px rgba(196, 153, 255, 0.34);
  width: 2.25rem;
}

.label {
  border-top: 1px solid currentColor;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  padding-top: 1.2rem;
  text-transform: uppercase;
}

.portal-feature .label {
  color: var(--muted);
}

.portal-link {
  transition: color 180ms ease;
}

.portal-title-link {
  color: inherit;
  display: inline-block;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.portal-link:hover,
.portal-link:focus-visible {
  color: var(--paper);
}

.portal-title-link:hover,
.portal-title-link:focus-visible,
.portal-feature .portal-link:hover,
.portal-feature .portal-link:focus-visible {
  color: var(--paper);
  text-shadow: 0 0 24px rgba(196, 153, 255, 0.28);
}

.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.book-button {
  border-color: var(--violet-soft);
  color: var(--paper);
  min-height: 2.85rem;
  padding-left: 1.05rem;
  padding-right: 1.05rem;
}

.book-button:hover,
.book-button:focus-visible {
  background: rgba(163, 123, 242, 0.18);
  color: var(--paper);
}

.portal.dark {
  background: rgba(11, 10, 21, 0.7);
}

.collection,
.published-archive {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(5.5rem, 10vw, 9rem) clamp(1.4rem, 6vw, 5rem);
}

.collection {
  border-top: 1px solid var(--line);
}

.collection-head {
  display: grid;
  gap: 1.45rem;
  margin-bottom: clamp(3rem, 6vw, 4.8rem);
  max-width: 830px;
}

.collection-head .eyebrow {
  margin-bottom: 0;
}

.collection-head > p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  max-width: 640px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.library-item {
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 106px;
  padding: 1.2rem clamp(0.7rem, 2vw, 1.4rem) 1.2rem 0;
  position: relative;
  transition: color 180ms ease, padding-left 180ms ease;
}

.library-item:nth-child(3n + 2),
.library-item:nth-child(3n + 3) {
  border-left: 1px solid var(--line);
  padding-left: clamp(0.7rem, 2vw, 1.4rem);
}

.library-item span {
  font-size: 0.96rem;
  padding-right: 1.2rem;
}

.library-access {
  align-items: center;
  border: 1px solid var(--line);
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  justify-content: space-between;
  margin-top: clamp(3rem, 6vw, 4.8rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.library-access h3 {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin-bottom: 0.8rem;
}

.library-access h3 span {
  color: var(--violet);
  font-family: "Times New Roman", serif;
  font-size: 1.5rem;
  text-shadow: 0 0 18px rgba(196, 153, 255, 0.34);
}

.library-access div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.86rem;
  max-width: 570px;
}

.access-buttons {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.65rem;
  min-width: min(250px, 100%);
}

.price-option {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.68rem;
  justify-content: space-between;
  letter-spacing: 0.13em;
  padding: 0 0 0.65rem;
  text-transform: uppercase;
}

.price-option strong {
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-left: 1rem;
}

.setup-note {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.setup-note.error {
  color: #f1a7c6;
}

.member-entry {
  color: var(--violet-soft);
  margin-top: 0.6rem;
}

.member-entry:hover {
  color: var(--paper);
}

.library-item small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.monthly-book {
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(207, 171, 255, 0.16), transparent 34%),
    rgba(18, 13, 32, 0.62);
  border: 1px solid rgba(196, 153, 255, 0.22);
  box-shadow: inset 0 0 46px rgba(119, 62, 175, 0.12);
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  justify-content: space-between;
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.monthly-book h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  letter-spacing: -0.045em;
  margin-bottom: 0.8rem;
}

.monthly-book div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.86rem;
  max-width: 650px;
}

.monthly-book .button {
  flex: 0 0 auto;
}

.entheogen-note {
  align-items: center;
  background: rgba(163, 123, 242, 0.08);
  border: 1px solid var(--line);
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  justify-content: space-between;
  margin-top: clamp(3rem, 6vw, 4.8rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.entheogen-note h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.9rem;
}

.entheogen-note div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 650px;
}

.entheogen-note .button {
  flex: 0 0 auto;
}

.access-only {
  border: 1px solid var(--line);
  color: var(--violet-soft);
  flex: 0 0 auto;
  font-size: 0.67rem;
  letter-spacing: 0.17em;
  padding: 1rem 1.2rem;
  text-transform: uppercase;
}

.published-archive {
  border-top: 1px solid var(--line);
}

.article-grid {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.article-item {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  min-height: 195px;
  padding: clamp(1.4rem, 3vw, 2rem);
  padding-left: 0;
  transition: background 190ms ease;
}

.article-item:nth-child(3n + 2),
.article-item:nth-child(3n + 3) {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.4rem, 3vw, 2rem);
}

.article-item:hover,
.article-item:focus-visible {
  background: rgba(163, 123, 242, 0.07);
}

.article-item time {
  color: var(--violet-soft);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
}

.article-item h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.72rem);
  letter-spacing: -0.045em;
  margin-top: auto;
}

.free-resource {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: 0.95fr 1fr;
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.4rem, 6vw, 5rem);
}

.free-resource h2 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
  margin-bottom: 1.65rem;
}

.threshold-symbol {
  color: var(--violet);
  font-family: "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1;
  margin: 0.9rem 0 1.1rem;
  text-shadow: 0 0 26px rgba(196, 153, 255, 0.38);
}

.resource-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 460px;
}

.resource-panel {
  background: rgba(18, 13, 32, 0.74);
  border: 1px solid rgba(196, 153, 255, 0.2);
  box-shadow: inset 0 0 44px rgba(119, 62, 175, 0.12);
  padding: clamp(2rem, 5vw, 3.3rem);
}

.resource-intro {
  color: var(--paper);
  font-size: clamp(1.06rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  max-width: 540px;
}

.resource-list {
  color: var(--muted);
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
}

.resource-list li {
  border-bottom: 1px solid var(--line);
  padding: 0 0 0.75rem 1.15rem;
  position: relative;
}

.resource-list li::before {
  color: var(--violet-soft);
  content: "+";
  left: 0;
  position: absolute;
}

.resource-panel .button {
  display: inline-flex;
}

.future {
  background: rgba(8, 7, 17, 0.67);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.future-card {
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.4rem, 4vw, 3.5rem);
}

.future-card + .future-card {
  border-left: 1px solid var(--line);
}

.future-card h2 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  margin-bottom: 1.5rem;
}

.future-card > p:not(.eyebrow) {
  color: #bdb8c8;
  margin-bottom: 2.2rem;
  max-width: 490px;
}

.correspondence {
  align-items: start;
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: 0.95fr 1fr;
}

.correspondence h2 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  margin-bottom: 1.5rem;
}

.correspondence > div > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 460px;
}

.signup {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr 1fr;
}

.signup label {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.signup input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #5b5669;
  color: var(--paper);
  display: block;
  font: 1.02rem var(--sans);
  margin-top: 0.6rem;
  padding: 0.7rem 0;
  width: 100%;
}

.signup input:focus {
  border-color: var(--violet-soft);
  outline: 0;
}

.signup .button {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.consent,
.form-status {
  color: var(--muted);
  font-size: 0.76rem;
  grid-column: 1 / -1;
}

.form-status {
  color: var(--violet-soft);
}

.site-footer {
  background: rgba(8, 7, 17, 0.75);
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: 1.15fr 1.05fr 0.65fr auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.4rem, 6vw, 5rem) 2.5rem;
}

.footer-heading img {
  filter: invert(1);
  height: auto;
  margin-bottom: 2rem;
  width: min(310px, 100%);
}

.footer-heading p {
  color: var(--paper);
  font: 300 clamp(1.45rem, 3vw, 2rem) var(--sans);
  letter-spacing: -0.04em;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a,
.footer-social a {
  color: var(--paper);
}

.footer-social a {
  color: var(--muted);
  font-size: 0.83rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-social a:hover {
  color: var(--paper);
}

.footer-links small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-meta {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  gap: 1rem;
}

.footer-meta a:hover {
  color: var(--paper);
}

.legal-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  grid-column: 1 / -1;
  max-width: 820px;
  padding-top: 1.5rem;
}

.legal-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 2rem clamp(1.4rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}

.legal-header .brand img {
  filter: invert(1);
  width: min(270px, 52vw);
}

.legal-return {
  color: var(--muted);
}

.legal-return:hover {
  color: var(--paper);
}

.legal-content {
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.4rem, 6vw, 5rem);
}

.legal-title {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.5rem);
}

.legal-title h1 {
  font-size: clamp(2.8rem, 7vw, 4.7rem);
  line-height: 1.06;
}

.legal-date,
.legal-section p,
.legal-review,
.legal-footer {
  color: var(--muted);
}

.legal-pending {
  background: rgba(163, 123, 242, 0.08);
  border: 1px solid var(--line);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.2rem, 3vw, 1.7rem);
}

.legal-pending strong {
  color: var(--paper);
  font-weight: 500;
}

.legal-section {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  padding: 0 0 clamp(2rem, 4vw, 2.8rem);
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}

.legal-section h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

.legal-section p,
.legal-review {
  font-size: 0.94rem;
}

.legal-section a {
  color: var(--violet-soft);
}

.legal-review {
  border: 1px solid var(--line);
  padding: clamp(1.2rem, 3vw, 1.7rem);
}

.legal-footer {
  border-top: 1px solid var(--line);
  font-size: 0.77rem;
  margin: 0 auto;
  max-width: var(--max);
  padding: 2rem clamp(1.4rem, 6vw, 5rem) 3.5rem;
  position: relative;
  z-index: 1;
}

.member-content {
  margin: 0 auto;
  max-width: 1080px;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.4rem, 6vw, 5rem);
}

.member-intro {
  display: grid;
  gap: 1.3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 760px;
}

.member-intro h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
}

.member-intro > p:not(.eyebrow),
.member-login > p,
.member-status > p:not(.eyebrow),
.member-care {
  color: var(--muted);
}

.member-panel {
  background: rgba(11, 10, 21, 0.72);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 5vw, 3.4rem);
}

.member-login {
  display: grid;
  gap: 1.25rem;
  max-width: 600px;
}

.member-login h2,
.member-status h2,
.member-library-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.member-form {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.member-form label {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem 0;
}

.member-form label span {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.member-form input {
  background: transparent;
  border: 0;
  color: var(--paper);
  font: inherit;
  outline: none;
  padding: 0.2rem 0;
}

.member-status {
  display: grid;
  gap: 1rem;
}

.member-signout {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.member-library {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(2rem, 5vw, 3rem);
}

.member-library-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.member-books {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.member-book {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.2rem;
  justify-content: space-between;
  min-height: 112px;
  padding: 1.2rem 1.2rem 1.2rem 0;
}

.member-book:nth-child(2n) {
  border-left: 1px solid var(--line);
  padding-left: 1.2rem;
}

.member-book h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.member-book p,
.empty-library {
  color: var(--muted);
  font-size: 0.76rem;
}

.member-book .label {
  color: var(--violet-soft);
  white-space: nowrap;
}

.member-feedback {
  color: var(--violet-soft);
  font-size: 0.86rem;
  margin-top: 1.3rem;
}

.member-feedback.error {
  color: #f0b5cf;
}

.member-care {
  font-size: 0.82rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.member-care a {
  color: var(--violet-soft);
}

@media (max-width: 1040px) {
  .site-header {
    gap: 1.3rem;
    grid-template-columns: 200px 1fr auto;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.7rem;
  }

  .hero-copy {
    padding-top: 4rem;
  }

  .scroll-cue {
    display: none;
  }

  .manifesto,
  .lab-grid,
  .correspondence,
  .free-resource {
    grid-template-columns: 1fr;
  }

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

  .manifesto .section-title {
    grid-column: 1 / -1;
  }

  .alchemist-portrait {
    min-height: 500px;
  }

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

  .portal-feature {
    grid-column: 1 / -1;
  }

  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .library-grid,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .future-card + .future-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .library-item:nth-child(3n + 2),
  .library-item:nth-child(3n + 3),
  .article-item:nth-child(3n + 2),
  .article-item:nth-child(3n + 3) {
    border-left: 0;
    padding-left: 0;
  }

  .library-item:nth-child(2n),
  .article-item:nth-child(2n) {
    border-left: 1px solid var(--line);
    padding-left: clamp(0.9rem, 3vw, 1.5rem);
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    padding: 1.1rem 1.2rem;
  }

  .brand img {
    max-width: 160px;
  }

  .menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 7px;
    grid-column: 2;
    height: 42px;
    justify-content: center;
    width: 42px;
  }

  .menu-toggle span:not(.sr-only) {
    background: var(--paper);
    height: 1px;
    transition: transform 180ms ease;
    width: 22px;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    background: rgba(8, 7, 17, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 1.35rem;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 -1.2rem -1.1rem;
    padding: 1.5rem 1.2rem 1.8rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    font-size: 0.76rem;
  }

  .language {
    grid-column: 3;
    grid-row: 1;
  }

  .hero {
    padding-top: 4.8rem;
  }

  .hero-copy {
    padding: 3.2rem 1.3rem 4.8rem;
  }

  .hero-symbol {
    display: none;
  }

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

  .button {
    width: 100%;
  }

  .manifesto,
  .laboratory,
  .portals,
  .collection,
  .published-archive,
  .correspondence,
  .free-resource {
    padding: 4.5rem 1.3rem;
  }

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

  .alchemist-portrait {
    min-height: 360px;
  }

  .lab-grid h2 {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
  }

  .session-card dl div {
    display: block;
  }

  .session-card dd {
    margin-top: 0.35rem;
    text-align: left;
  }

  .portal-grid,
  .future,
  .library-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .portal,
  .portal-feature {
    min-height: 340px;
  }

  .future-card,
  .future-card + .future-card {
    border-left: 0;
    padding: 4.5rem 1.3rem;
  }

  .library-item,
  .library-item:nth-child(2n),
  .article-item,
  .article-item:nth-child(2n) {
    border-left: 0;
    padding-left: 0;
  }

  .entheogen-note,
  .monthly-book {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-access {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-form,
  .member-books {
    display: grid;
    grid-template-columns: 1fr;
  }

  .member-form label {
    min-height: 3.4rem;
  }

  .member-book:nth-child(2n) {
    border-left: 0;
    padding-left: 0;
  }

  .article-item {
    min-height: 150px;
  }

  .future-card + .future-card {
    border-top: 1px solid var(--line);
  }

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

  .site-footer {
    gap: 2.8rem;
    grid-template-columns: 1fr;
    padding: 3.5rem 1.3rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-light {
    display: none;
  }
}
