:root {
  --bg: #050506;
  --panel: #0b0c0d;
  --text: #f3f4ef;
  --sub: #929690;
  --hair: rgba(255, 255, 255, 0.105);
  --lime: #c7ff52;
  --violet: #9b8cff;
  --cyan: #76e6d5;
  --red: #ff705d;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans:
    Inter, "SF Pro Display", "Helvetica Neue", "PingFang SC", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}
.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(144, 125, 255, 0.07),
    transparent 68%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  width: 100%;
  height: 84px;
  padding: 0 3.2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.brand small {
  color: #6e716d;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  margin-left: 7px;
}
.sigil {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  border: 0;
  font-size: 0;
  background: url("/logo-mark.png") center/contain no-repeat;
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(155, 140, 255, 0.16));
  transition: transform 0.35s ease;
}
.brand:hover .brand-logo {
  transform: rotate(-3deg) scale(1.04);
}
.topbar nav {
  display: flex;
  gap: 38px;
}
.topbar nav a {
  color: #a9aca8;
  text-decoration: none;
  font-size: 12px;
}
.topbar nav a:hover {
  color: #fff;
}
.nav-action {
  height: 40px;
  padding: 0 7px 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  display: flex;
  gap: 15px;
  align-items: center;
  cursor: pointer;
}
.nav-action b {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #050506;
  transition: 0.3s;
}
.nav-action:hover b {
  transform: rotate(45deg);
}
.hero {
  height: max(760px, 100svh);
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 52%,
    transparent 0 28%,
    rgba(5, 5, 6, 0.16) 48%,
    #050506 78%
  );
  z-index: -1;
}
.hero:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: linear-gradient(transparent, #050506);
}
#auraCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}
.hero-grid {
  position: absolute;
  inset: 84px 3.2vw 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 25% 25%;
  mask-image: linear-gradient(#000, transparent 92%);
  z-index: -2;
}
.hero-meta {
  position: absolute;
  top: 116px;
  display: flex;
  gap: 24px;
  color: #797c77;
  font-size: 9px;
  letter-spacing: 0.16em;
}
.hero-meta.left {
  left: 3.2vw;
}
.hero-meta.right {
  right: 3.2vw;
}
.hero-center {
  text-align: center;
  width: min(1100px, 90vw);
  position: relative;
  z-index: 2;
}
.kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font-size: 10px;
  color: #a4a7a1;
  margin: 0 0 38px;
}
.kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 15px var(--lime);
}
.hero h1 {
  font: 400 clamp(64px, 8.5vw, 138px) / 0.86 var(--serif);
  letter-spacing: -0.075em;
  margin: 0;
}
.hero h1 span {
  display: block;
}
.spectral {
  background: linear-gradient(
    100deg,
    #f1f3ed 12%,
    #a6ffd9 37%,
    #a498ff 60%,
    #f5d5ff 80%,
    #f1f3ed
  );
  background-size: 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: spectral 9s ease-in-out infinite alternate;
}
@keyframes spectral {
  to {
    background-position: 100%;
  }
}
.hero-intro {
  font-size: 15px;
  color: #9b9e99;
  line-height: 1.9;
  margin: 38px auto 0;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  text-decoration: none;
  margin-top: 38px;
  font-size: 13px;
}
.hero-cta span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.3s;
}
.hero-cta:hover span {
  background: #fff;
  color: #000;
  transform: translateY(4px);
}
.hero-count {
  position: absolute;
  left: 3.2vw;
  bottom: 50px;
  display: flex;
  align-items: end;
  gap: 12px;
}
.hero-count strong {
  font-size: 34px;
  font-weight: 300;
}
.hero-count span,
.scroll-cue span {
  font-size: 8px;
  color: #6f726e;
  letter-spacing: 0.16em;
}
.scroll-cue {
  position: absolute;
  right: 3.2vw;
  bottom: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-cue i {
  width: 44px;
  height: 1px;
  background: #5d605c;
  position: relative;
  overflow: hidden;
}
.scroll-cue i:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1px;
  background: #fff;
  animation: scan 2s infinite;
}
@keyframes scan {
  from {
    left: -18px;
  }
  to {
    left: 44px;
  }
}
.signal-strip {
  border-block: 1px solid var(--hair);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 3.2vw;
  background: #080809;
}
.signal-strip div {
  min-height: 105px;
  border-right: 1px solid var(--hair);
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 28px;
}
.signal-strip div:first-child {
  border-left: 1px solid var(--hair);
}
.signal-strip span {
  font-size: 10px;
  color: #666;
}
.signal-strip p {
  font: 18px var(--serif);
  color: #c8cac5;
}
.library-section {
  padding: 160px 3.2vw 180px;
  background: #080809;
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 4vw;
  margin-bottom: 90px;
}
.section-index {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #6d706c;
  margin: 12px 0 0;
}
.section-intro h2,
.method-heading h2,
.about-main h2 {
  font: 400 clamp(50px, 6vw, 94px) / 0.98 var(--serif);
  letter-spacing: -0.05em;
  margin: 0;
}
.section-intro h2 em,
.about-main h2 em {
  font-style: normal;
  color: #777b75;
}
.section-intro > p:last-child {
  font-size: 13px;
  line-height: 1.9;
  color: #858984;
  margin: 13px 0 0;
}
.archive-shell {
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  overflow: hidden;
  box-shadow: 0 50px 120px #0007;
}
.archive-toolbar {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border-bottom: 1px solid var(--hair);
  min-height: 82px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 24px;
  border-right: 1px solid var(--hair);
}
.search-box svg {
  width: 18px;
  fill: none;
  stroke: #777;
  stroke-width: 1.5;
}
.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: 14px var(--sans);
  outline: none;
}
.search-box kbd {
  font: 9px var(--sans);
  color: #666;
  border: 1px solid var(--hair);
  border-radius: 5px;
  padding: 5px 7px;
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
}
.filter-row label {
  padding: 17px;
  border-right: 1px solid var(--hair);
}
.filter-row label span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #60635f;
}
.filter-row select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #b7bab5;
  font: 11px var(--sans);
  outline: none;
}
.filter-row select option {
  background: #111;
}
.filter-row button {
  border: 0;
  background: transparent;
  color: #666;
  padding: 0 18px;
  cursor: pointer;
}
.archive-meta {
  height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--hair);
}
.archive-meta p {
  font-size: 9px;
  letter-spacing: 0.17em;
  color: #727571;
}
.archive-meta p span {
  color: #fff;
}
.legend {
  display: flex;
  gap: 20px;
  font-size: 9px;
  color: #747773;
}
.legend span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.consider {
  background: var(--cyan);
}
.uncertain {
  background: #e2c164;
}
.avoid {
  background: var(--red);
}
.table-head,
.remedy-card {
  display: grid;
  grid-template-columns:
    minmax(360px, 2fr) minmax(140px, 0.8fr) minmax(130px, 0.7fr)
    100px 40px;
  gap: 24px;
  align-items: center;
}
.table-head {
  height: 45px;
  padding: 0 24px;
  border-bottom: 1px solid var(--hair);
  color: #555853;
  font-size: 8px;
  letter-spacing: 0.13em;
}
.remedy-card {
  width: 100%;
  min-height: 108px;
  padding: 18px 24px;
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: 0.25s;
}
.remedy-card:before {
  content: "";
  position: absolute;
  left: 0;
  inset-block: 0;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--violet));
  transform: scaleY(0);
  transition: 0.25s;
}
.remedy-card:hover {
  background: #ffffff08;
}
.remedy-card:hover:before {
  transform: scaleY(1);
}
.card-name {
  display: grid;
  grid-template-columns: 75px 1fr;
  align-items: center;
}
.card-id {
  font-size: 9px;
  color: #575a56;
}
.remedy-card h3 {
  font: 400 20px var(--serif);
  margin: 0;
}
.card-type,
.card-evidence {
  font-size: 11px;
  color: #888b86;
}
.card-evidence b {
  display: block;
  color: #c8cac5;
  font-weight: 400;
}
.risk-chip {
  justify-self: start;
  border: 1px solid var(--hair);
  border-radius: 99px;
  padding: 6px 9px;
  font-size: 9px;
  color: #a8aba6;
}
.row-arrow {
  font-size: 18px;
  color: #5d605c;
  transition: 0.25s;
}
.remedy-card:hover .row-arrow {
  color: #fff;
  transform: translate(3px, -3px);
}
.empty-state {
  text-align: center;
  padding: 80px;
}
.empty-state[hidden] {
  display: none;
}
.interlude {
  height: min(850px, 90vh);
  min-height: 650px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-block: 1px solid var(--hair);
}
.interlude:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(129, 102, 255, 0.12),
    transparent 38%
  );
}
.interlude-orb {
  position: absolute;
  width: min(55vw, 700px);
  aspect-ratio: 1;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: float 9s ease-in-out infinite;
}
.interlude-orb:before,
.interlude-orb:after,
.interlude-orb span {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid #ffffff14;
}
.interlude-orb:before {
  inset: 10%;
}
.interlude-orb:after {
  inset: 23%;
}
.interlude-orb span {
  inset: 37%;
  background: radial-gradient(
    circle at 35% 30%,
    #beffdad9,
    #7e64ff73 35%,
    #000d 70%
  );
  box-shadow: 0 0 100px #7c5fff59;
}
@keyframes float {
  50% {
    transform: translateY(-18px) scale(1.02);
  }
}
.interlude > * {
  position: relative;
}
.interlude blockquote {
  font: 400 clamp(48px, 6vw, 90px) / 1.05 var(--serif);
  letter-spacing: -0.05em;
  margin: 32px 0;
}
.interlude > p:last-child {
  font-size: 12px;
  color: #828580;
}
.method-section {
  padding: 170px 3.2vw;
  background: #e8e7e2;
  color: #111;
}
.method-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  margin-bottom: 100px;
}
.method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #0003;
}
.method-list li {
  display: grid;
  grid-template-columns: 1fr 3fr;
  padding: 34px 0;
  border-bottom: 1px solid #0003;
  transition: 0.3s;
}
.method-list li:hover {
  padding-left: 18px;
}
.method-list li > span {
  font-size: 10px;
  color: #777;
}
.method-list li div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
}
.method-list h3 {
  font: 400 clamp(25px, 2.4vw, 38px) var(--serif);
  margin: 0;
}
.method-list p {
  font-size: 12px;
  color: #62625e;
  max-width: 370px;
  line-height: 1.8;
  margin: 5px 0;
}
.about-section {
  padding: 150px 3.2vw 80px;
}
.about-main {
  display: grid;
  grid-template-columns: 3fr 1fr;
  margin: 85px 0 120px;
  align-items: end;
}
.boundary-mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hair);
  width: 230px;
  height: 78px;
  justify-self: end;
}
.boundary-mark span {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--hair);
  font: 26px var(--serif);
  color: #aaa;
}
.about-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4vw;
  border-top: 1px solid var(--hair);
  padding-top: 28px;
}
.about-footer p {
  font-size: 11px;
  color: #797c77;
  line-height: 1.8;
  margin: 0;
}
.about-footer p:first-child {
  grid-column: 2;
}
.about-footer p:last-child {
  color: #aaa;
}
footer {
  height: 100px;
  padding: 0 3.2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hair);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #666;
}
footer p:last-child {
  display: none;
}
dialog {
  width: min(850px, 94vw);
  max-height: 90vh;
  padding: 0;
  border: 1px solid #ffffff29;
  border-radius: 18px;
  background: #0d0e10;
  color: #eceee9;
  box-shadow: 0 40px 140px #000c;
}
dialog::backdrop {
  background: #010102c7;
  backdrop-filter: blur(18px);
}
.dialog-close {
  position: absolute;
  right: 22px;
  top: 20px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: #ffffff0d;
  color: #fff;
  font-size: 20px;
}
.dialog-inner {
  padding: 50px;
}
.dialog-inner .eyebrow {
  font-size: 9px;
  color: #686b67;
}
.dialog-inner h2 {
  font: 400 48px var(--serif);
  margin: 14px 60px 32px 0;
}
.dialog-status {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}
.dialog-status span {
  border: 1px solid var(--hair);
  border-radius: 99px;
  padding: 7px 11px;
  font-size: 9px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.detail-grid section {
  padding: 20px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.detail-grid .wide {
  grid-column: 1/-1;
}
.detail-grid h3 {
  font-size: 8px;
  color: #666;
  margin: 0 0 9px;
}
.detail-grid p {
  font-size: 13px;
  line-height: 1.75;
  color: #c5c8c2;
  margin: 0;
}
.source-link {
  display: inline-block;
  margin-top: 25px;
  color: #ddd;
}
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s,
    transform 0.9s;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 1000px) {
  .section-intro {
    grid-template-columns: 1fr 2fr;
  }
  .section-intro > p:last-child {
    grid-column: 2;
  }
  .archive-toolbar {
    grid-template-columns: 1fr;
  }
  .search-box {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }
  .filter-row {
    min-height: 70px;
  }
  .table-head {
    display: none;
  }
  .remedy-card {
    grid-template-columns: 2fr 1fr 1fr 70px 25px;
  }
  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 68px;
    padding: 0 18px;
  }
  .brand small,
  .topbar nav {
    display: none;
  }
  .nav-action {
    height: 35px;
  }
  .hero {
    height: 760px;
  }
  .hero-grid {
    inset: 68px 18px 0;
    background-size: 50% 20%;
  }
  .hero-meta {
    top: 92px;
  }
  .hero-meta.left {
    left: 18px;
  }
  .hero-meta.right {
    right: 18px;
  }
  .hero-meta span:nth-child(2) {
    display: none;
  }
  .hero-center {
    width: calc(100vw - 36px);
  }
  .hero h1 {
    font-size: 57px;
    line-height: 0.92;
    letter-spacing: -0.065em;
  }
  .kicker {
    font-size: 8px;
    margin-bottom: 28px;
  }
  .hero-intro {
    font-size: 13px;
    margin-top: 28px;
  }
  .hero-count {
    left: 18px;
    bottom: 28px;
  }
  .scroll-cue {
    right: 18px;
    bottom: 31px;
  }
  .scroll-cue span {
    display: none;
  }
  .signal-strip {
    padding: 0 18px;
  }
  .signal-strip div {
    padding: 0 12px;
    min-height: 82px;
    gap: 10px;
  }
  .signal-strip p {
    font-size: 14px;
  }
  .library-section {
    padding: 100px 18px;
  }
  .section-intro {
    display: block;
    margin-bottom: 55px;
  }
  .section-intro h2,
  .method-heading h2,
  .about-main h2 {
    font-size: 48px;
    margin-top: 25px;
  }
  .section-intro > p:last-child {
    margin-top: 25px;
  }
  .archive-shell {
    border-radius: 12px;
  }
  .filter-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-row label:nth-child(3),
  .filter-row button {
    border-top: 1px solid var(--hair);
  }
  .filter-row label {
    min-height: 60px;
  }
  .legend {
    display: none;
  }
  .remedy-card {
    display: grid;
    grid-template-columns: 1fr 70px 20px;
    gap: 12px;
    padding: 20px;
    min-height: 125px;
  }
  .card-name {
    grid-column: 1/-1;
    grid-template-columns: 62px 1fr;
  }
  .card-type {
    display: none;
  }
  .card-evidence {
    font-size: 10px;
  }
  .risk-chip {
    font-size: 8px;
  }
  .interlude {
    min-height: 600px;
  }
  .interlude-orb {
    width: 110vw;
  }
  .interlude blockquote {
    font-size: 45px;
  }
  .method-section {
    padding: 100px 18px;
  }
  .method-heading {
    display: block;
    margin-bottom: 55px;
  }
  .method-list li {
    grid-template-columns: 55px 1fr;
  }
  .method-list li div {
    display: block;
  }
  .method-list p {
    margin-top: 15px;
  }
  .about-section {
    padding: 100px 18px 60px;
  }
  .about-main {
    display: block;
    margin: 50px 0 80px;
  }
  .boundary-mark {
    margin-top: 50px;
    width: 100%;
  }
  .about-footer {
    grid-template-columns: 1fr;
  }
  .about-footer p:first-child {
    grid-column: auto;
  }
  footer {
    height: auto;
    min-height: 130px;
    padding: 28px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .dialog-inner {
    padding: 40px 20px;
  }
  .dialog-inner h2 {
    font-size: 37px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid .wide {
    grid-column: auto;
  }
  .cursor-glow {
    display: none;
  }
}
.content-first {
  padding-top: 130px;
}
.remedy-card {
  text-decoration: none;
}
.detail-page {
  background: #080809;
}
.detail-nav {
  position: fixed;
  background: rgba(5, 5, 6, 0.72);
}
.back-link {
  color: #aaa;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.back-link:hover {
  color: #fff;
}
.remedy-page {
  padding-top: 84px;
}
.remedy-hero {
  min-height: 650px;
  padding: 120px 8vw 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
}
.remedy-hero:before {
  content: "";
  position: absolute;
  width: 65vw;
  height: 65vw;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #85ffce22,
    #8973ff15 35%,
    transparent 68%
  );
  filter: blur(4px);
}
.remedy-breadcrumb,
.remedy-hero h1,
.remedy-hero > p,
.remedy-badges {
  position: relative;
}
.remedy-breadcrumb {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #727571;
  margin-bottom: 42px;
}
.remedy-hero h1 {
  font: 400 clamp(64px, 8vw, 128px) / 0.94 var(--serif);
  letter-spacing: -0.07em;
  margin: 0;
  max-width: 1180px;
}
.remedy-hero > p {
  font: 24px var(--serif);
  color: #8c908a;
  margin: 32px 0;
}
.remedy-badges {
  display: flex;
  gap: 9px;
}
.remedy-badges span {
  border: 1px solid var(--hair);
  border-radius: 99px;
  padding: 8px 12px;
  font-size: 10px;
  color: #b3b6b0;
}
.remedy-badges .dot {
  margin-right: 7px;
}
.remedy-content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 7vw;
  padding: 120px 8vw;
}
.remedy-content aside {
  border-top: 1px solid var(--hair);
  padding-top: 22px;
  align-self: start;
  position: sticky;
  top: 120px;
}
.remedy-content aside p {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #585b57;
  margin: 25px 0 7px;
}
.remedy-content aside p:first-child {
  margin-top: 0;
}
.remedy-content aside strong {
  font-size: 12px;
  font-weight: 400;
  color: #aaa;
}
.content-block {
  display: grid;
  grid-template-columns: 70px 1fr;
  padding: 0 0 70px;
  margin-bottom: 70px;
  border-bottom: 1px solid var(--hair);
}
.content-block > span {
  font-size: 9px;
  color: #595c58;
}
.content-block h2 {
  font: 400 18px var(--sans);
  margin: 0 0 28px;
  color: #8f938d;
}
.content-block p {
  font: 400 clamp(28px, 3.2vw, 50px) / 1.35 var(--serif);
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 900px;
}
.content-block small {
  display: inline-block;
  margin-top: 25px;
  color: #727571;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.warning p {
  color: #ffc0b6;
}
.care {
  padding: 45px 45px 55px;
  background: #121315;
  border: 1px solid var(--hair);
}
.care > span {
  color: var(--red);
}
.care p {
  font-size: clamp(24px, 2.6vw, 40px);
}
.source-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--hair);
  padding: 25px;
  color: #ddd;
  text-decoration: none;
  transition: 0.25s;
}
.source-card:hover {
  background: #fff;
  color: #080809;
}
.source-card span {
  font-size: 9px;
  letter-spacing: 0.14em;
}
.source-card strong {
  font-size: 12px;
  font-weight: 400;
}
.source-card.muted {
  color: #696c68;
}
.remedy-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.remedy-pagination a {
  min-height: 170px;
  padding: 35px 8vw;
  color: #ddd;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.remedy-pagination a:first-child {
  border-right: 1px solid var(--hair);
}
.remedy-pagination a:last-child {
  text-align: right;
}
.remedy-pagination span {
  font-size: 9px;
  color: #626560;
}
.remedy-pagination strong {
  font: 400 18px var(--serif);
}
@media (max-width: 700px) {
  .content-first {
    padding-top: 90px;
  }
  .remedy-page {
    padding-top: 68px;
  }
  .detail-nav .brand small {
    display: none;
  }
  .back-link {
    font-size: 10px;
  }
  .remedy-hero {
    min-height: 560px;
    padding: 90px 18px 55px;
  }
  .remedy-breadcrumb {
    margin-bottom: 30px;
  }
  .remedy-hero h1 {
    font-size: 55px;
    line-height: 0.98;
  }
  .remedy-hero > p {
    font-size: 18px;
    margin: 24px 0;
  }
  .remedy-badges {
    flex-wrap: wrap;
  }
  .remedy-content {
    display: block;
    padding: 70px 18px;
  }
  .remedy-content aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 75px;
  }
  .remedy-content aside p,
  .remedy-content aside strong {
    margin: 0 0 10px;
  }
  .content-block {
    grid-template-columns: 38px 1fr;
    padding-bottom: 45px;
    margin-bottom: 50px;
  }
  .content-block h2 {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .content-block p {
    font-size: 27px;
    line-height: 1.45;
  }
  .care {
    padding: 28px 20px 34px;
  }
  .care p {
    font-size: 25px;
  }
  .source-card {
    align-items: flex-start;
    gap: 20px;
  }
  .remedy-pagination {
    grid-template-columns: 1fr;
  }
  .remedy-pagination a {
    min-height: 130px;
    padding: 28px 18px;
  }
  .remedy-pagination a:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }
  .remedy-pagination a:last-child {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .spectral,
  .interlude-orb,
  .scroll-cue i:after {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Apothecary constellation — eastern materia medica x western archive */
:root {
  --cinnabar: #c84b38;
  --jade: #86a995;
  --rice: #eee8d8;
}
.brand-logo {
  width: 42px;
  height: 42px;
}
.sigil {
  background-image: url("/logo-mark-v2.png");
}
.hero {
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(134, 169, 149, 0.11),
      transparent 31%
    ),
    linear-gradient(180deg, #070807, #050506);
}
.hero-grid {
  opacity: 0.46;
  background-size: 12.5% 25%;
}
.hero-grid:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(238, 232, 216, 0.42) 0.7px,
    transparent 0.7px
  );
  background-size: 37px 37px;
  mask-image: radial-gradient(circle at center, #000, transparent 72%);
}
.orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  border: 1px solid rgba(238, 232, 216, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-11deg);
  pointer-events: none;
}
.orbit-one {
  width: min(78vw, 1120px);
  aspect-ratio: 2.25;
}
.orbit-two {
  width: min(56vw, 820px);
  aspect-ratio: 1.65;
  transform: translate(-50%, -50%) rotate(21deg);
}
.remedy-constellation {
  position: absolute;
  inset: 84px 0 0;
  z-index: 3;
  pointer-events: none;
}
.cosmic-remedy {
  --x: 10%;
  --y: 20%;
  --delay: 0s;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(132px, 12vw, 188px);
  min-height: 82px;
  padding: 13px 14px 12px;
  color: var(--rice);
  text-decoration: none;
  border: 1px solid rgba(238, 232, 216, 0.2);
  border-radius: 50% 48% 52% 46% / 42% 50% 48% 58%;
  background:
    radial-gradient(
      circle at 28% 18%,
      rgba(200, 75, 56, 0.18),
      transparent 45%
    ),
    rgba(9, 10, 9, 0.72);
  box-shadow:
    inset 0 0 32px rgba(238, 232, 216, 0.025),
    0 18px 45px #0008;
  backdrop-filter: blur(13px);
  pointer-events: auto;
  animation: remedyFloat 9s ease-in-out var(--delay) infinite alternate;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s;
}
.cosmic-remedy:hover {
  border-color: rgba(200, 75, 56, 0.75);
  background-color: rgba(24, 16, 13, 0.88);
  z-index: 5;
}
.cosmic-remedy:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  right: 12px;
  top: 12px;
  background: var(--cinnabar);
  box-shadow: 0 0 16px rgba(200, 75, 56, 0.75);
}
.cosmic-remedy small {
  display: block;
  font: 8px/1.2 var(--sans);
  letter-spacing: 0.15em;
  color: #8f938d;
}
.cosmic-remedy strong {
  display: block;
  margin-top: 9px;
  font: 400 14px/1.25 var(--serif);
}
.cosmic-remedy span {
  display: block;
  margin-top: 7px;
  font-size: 8px;
  color: #777b76;
}
@keyframes remedyFloat {
  0% {
    transform: translate3d(-7px, -8px, 0) rotate(-1deg);
  }
  55% {
    transform: translate3d(10px, 4px, 0) rotate(1.4deg);
  }
  100% {
    transform: translate3d(-2px, 14px, 0) rotate(-0.4deg);
  }
}
.hero-center {
  z-index: 4;
}
.hero-center:before {
  content: "";
  position: absolute;
  inset: -60px 8%;
  z-index: -1;
  background: radial-gradient(
    ellipse,
    rgba(5, 5, 6, 0.95) 0 34%,
    rgba(5, 5, 6, 0.58) 55%,
    transparent 74%
  );
}
.spectral {
  background-image: linear-gradient(
    100deg,
    var(--rice) 10%,
    #c7b798 35%,
    var(--jade) 59%,
    #d79a85 77%,
    var(--rice)
  );
}
.progress-banner {
  border-color: rgba(200, 75, 56, 0.36);
  background: rgba(8, 8, 7, 0.72);
}
.progress-banner i {
  background: linear-gradient(90deg, var(--cinnabar), var(--jade));
}
.progress-banner strong {
  color: #e5b49e;
}
.catalog-card {
  position: relative;
  min-height: 290px;
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  align-items: center;
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid rgba(57, 42, 30, 0.2);
  border-radius: 20px;
  color: #201b16;
  background:
    linear-gradient(90deg, rgba(120, 84, 52, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(120, 84, 52, 0.045) 1px, transparent 1px), #e9e1cf;
  background-size: 44px 44px;
  box-shadow: 0 40px 100px #0008;
}
.catalog-card:before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(84, 53, 30, 0.17);
  border-radius: 13px;
  pointer-events: none;
}
.catalog-seal {
  width: 94px;
  height: 112px;
  margin: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(151, 49, 33, 0.44);
  color: var(--cinnabar);
  position: relative;
}
.catalog-seal:before,
.catalog-seal:after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(151, 49, 33, 0.28);
}
.catalog-seal:after {
  inset: 13px;
}
.catalog-seal span {
  font: 52px/0.8 var(--serif);
  z-index: 1;
}
.catalog-seal small {
  position: absolute;
  bottom: 17px;
  font-size: 7px;
  letter-spacing: 0.22em;
}
.catalog-copy {
  padding: 48px 6vw;
  border-inline: 1px solid rgba(57, 42, 30, 0.15);
}
.catalog-kicker {
  margin: 0 0 22px;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: #7b6b5b;
}
.catalog-copy h3 {
  margin: 0;
  font: 400 clamp(35px, 4vw, 61px) / 1.02 var(--serif);
  letter-spacing: -0.04em;
}
.catalog-copy h3 em {
  font-style: normal;
  color: #9b4b39;
}
.catalog-range {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.catalog-range span,
.catalog-range small {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #7d6e61;
}
.catalog-range strong {
  font: 400 30px var(--serif);
}
.catalog-pattern {
  position: absolute;
  right: -110px;
  top: -130px;
  width: 310px;
  aspect-ratio: 1;
  border: 1px solid rgba(151, 49, 33, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(151, 49, 33, 0.04),
    0 0 0 58px rgba(151, 49, 33, 0.03);
}
.archive-shell {
  border-radius: 20px;
}
.page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 105px;
  padding: 20px;
  background: #0a0b0a;
}
.page-nav button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: transparent;
  color: #8b8f88;
  font: 10px var(--sans);
  cursor: pointer;
  transition: 0.25s;
}
.page-nav button:hover,
.page-nav button.active {
  color: #fff;
  border-color: var(--cinnabar);
  background: rgba(200, 75, 56, 0.13);
  transform: translateY(-2px);
}
.page-nav button.active:after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 3px auto 0;
  border-radius: 50%;
  background: var(--cinnabar);
}
.page-nav .page-arrow {
  border-radius: 12px;
  width: auto;
  padding: 0 18px;
}
@media (max-width: 1000px) {
  .cosmic-remedy:nth-child(n + 6) {
    display: none;
  }
  .cosmic-remedy {
    width: 145px;
  }
  .catalog-card {
    grid-template-columns: 140px 1fr 170px;
  }
  .catalog-copy {
    padding-inline: 4vw;
  }
}
@media (max-width: 700px) {
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  .hero {
    min-height: 780px;
    height: 100svh;
  }
  .remedy-constellation {
    inset: 76px 0 0;
    overflow: hidden;
  }
  .orbit-one {
    width: 130vw;
  }
  .orbit-two {
    width: 98vw;
  }
  .cosmic-remedy {
    width: 118px;
    min-height: 66px;
    padding: 10px 11px;
  }
  .cosmic-remedy strong {
    font-size: 11px;
    margin-top: 6px;
  }
  .cosmic-remedy span {
    display: none;
  }
  .cosmic-remedy:nth-child(n + 5) {
    display: none;
  }
  .cosmic-remedy:nth-child(1) {
    --x: -5% !important;
    --y: 18% !important;
  }
  .cosmic-remedy:nth-child(2) {
    --x: 72% !important;
    --y: 20% !important;
  }
  .cosmic-remedy:nth-child(3) {
    --x: -6% !important;
    --y: 68% !important;
  }
  .cosmic-remedy:nth-child(4) {
    --x: 72% !important;
    --y: 66% !important;
  }
  .hero-center:before {
    inset: -35px -8%;
  }
  .catalog-card {
    grid-template-columns: 84px 1fr;
    min-height: 220px;
  }
  .catalog-seal {
    width: 58px;
    height: 78px;
  }
  .catalog-seal span {
    font-size: 36px;
  }
  .catalog-seal small {
    bottom: 10px;
  }
  .catalog-copy {
    padding: 34px 24px;
    border-right: 0;
  }
  .catalog-copy h3 {
    font-size: 34px;
  }
  .catalog-kicker {
    line-height: 1.6;
  }
  .catalog-range {
    grid-column: 1/-1;
    flex-direction: row;
    justify-content: center;
    border-top: 1px solid rgba(57, 42, 30, 0.14);
    padding: 16px;
  }
  .catalog-range strong {
    font-size: 22px;
  }
  .catalog-pattern {
    display: none;
  }
  .page-nav {
    gap: 4px;
    min-height: 88px;
    flex-wrap: wrap;
  }
  .page-nav button {
    width: 38px;
    height: 38px;
  }
  .page-nav .page-arrow {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cosmic-remedy {
    animation: none;
  }
}
.topbar nav {
  gap: 42px;
}
.topbar nav a {
  color: #f3f4ef;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(199, 255, 82, 0.16);
}
.topbar nav a:hover {
  color: var(--lime);
}
.header-actions,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.language-switch {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  padding: 3px;
  background: #ffffff08;
}
.language-switch a {
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  color: #8c908a;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
}
.language-switch a.active,
.language-switch a:hover {
  background: #f3f4ef;
  color: #050506;
}
.nav-action {
  border-color: rgba(199, 255, 82, 0.4);
  background: rgba(199, 255, 82, 0.08);
  color: var(--lime);
}
.progress-banner {
  width: min(420px, 90vw);
  height: 72px;
  margin: 34px auto 0;
  border: 1px solid rgba(199, 255, 82, 0.3);
  border-radius: 14px;
  background: rgba(10, 12, 10, 0.48);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 18px;
  text-align: left;
  box-shadow: 0 0 50px rgba(199, 255, 82, 0.06);
}
.progress-banner > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.progress-banner small {
  font-size: 10px;
  color: #9da198;
}
.progress-banner strong {
  font-size: 30px;
  font-weight: 400;
  color: var(--lime);
}
.progress-banner i {
  height: 1px;
  background: linear-gradient(90deg, var(--lime), rgba(199, 255, 82, 0.08));
  margin: 0 18px;
}
.progress-banner p {
  font-size: 11px;
  color: #cdd0ca;
  white-space: nowrap;
}
.detail-actions .back-link {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .topbar {
    padding-inline: 14px;
  }
  .header-actions {
    gap: 7px;
  }
  .language-switch a {
    min-width: 25px;
    padding: 0 5px;
  }
  .nav-action {
    padding-left: 11px;
    gap: 7px;
  }
  .nav-action b {
    width: 25px;
    height: 25px;
  }
  .hero {
    height: 800px;
  }
  .progress-banner {
    width: 100%;
    height: 66px;
    margin-top: 30px;
  }
  .detail-actions {
    gap: 7px;
  }
  .detail-nav .language-switch {
    display: none;
  }
}
.archive-meta p {
  font-size: 13px;
  font-weight: 600;
  color: #aeb2ac;
}
.archive-meta p span {
  font-size: 18px;
}
.legend {
  font-size: 12px;
  color: #b7bbb4;
  gap: 25px;
}
.legend .dot {
  width: 7px;
  height: 7px;
}
.table-head {
  font-size: 11px;
  font-weight: 700;
  color: #a4a8a1;
  letter-spacing: 0.1em;
  height: 52px;
}
.filter-row label span {
  font-size: 10px;
  color: #979b94;
}
.filter-row select {
  font-size: 13px;
}
.search-box input {
  font-size: 15px;
}
@media (max-width: 700px) {
  .topbar .nav-action {
    display: none;
  }
  .topbar {
    padding-inline: 18px;
  }
  .header-actions {
    display: flex !important;
    position: absolute;
    right: 18px;
    gap: 0;
  }
  .topbar .language-switch {
    display: flex !important;
  }
  .archive-meta {
    height: auto;
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
    gap: 10px;
  }
  .legend {
    display: flex;
    gap: 14px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .archive-meta p {
    margin: 0;
  }
  .filter-row label span {
    font-size: 10px;
  }
  .filter-row select {
    font-size: 14px;
  }
}
