:root {
  --bg: #0e0c09;
  --bg2: #161410;
  --h: #f0e8d8;
  --p: #d8cdb8;
  --acc: #9a8e7a;
  --gold: rgba(200, 180, 140, 0.5);
  --sep: rgba(240, 232, 216, 0.07);
  --sep2: rgba(240, 232, 216, 0.04);

  --pad: clamp(24px, 5vw, 64px);
  --pad-v: clamp(28px, 5vh, 56px);
  --nav-h: 52px;
  --foot-h: 40px;
  --marg-w: clamp(44px, 7vw, 88px);

  --dur: 0.9s;
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
  --font-scale: 1;
}


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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  color: var(--h);
  -webkit-font-smoothing: antialiased;
  touch-action: none;
  cursor: none;
}

a,
button {
  cursor: none;
}


#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 8000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--pad);
  animation: filmJitter .2s steps(2) infinite;
}

#loader.out {
  animation: loaderOut 1.2s cubic-bezier(0.85, 0, 0.15, 1) forwards;
  pointer-events: none;
}

@keyframes filmJitter {
  0% {
    margin-top: 0;
    margin-left: 0;
  }

  50% {
    margin-top: -0.3px;
    margin-left: 0.3px;
  }

  100% {
    margin-top: 0.3px;
    margin-left: -0.3px;
  }
}

@keyframes loaderOut {
  0% {
    transform: translateY(0);
  }

  15% {
    transform: translateY(4px);
  }

  100% {
    transform: translateY(-100%);
  }
}

.ld-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--sep);
  padding-right: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(24px, 4vh, 40px);
}

.ld-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-left: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(24px, 4vh, 40px);
}

.ld-logo-img {
  height: clamp(32px, 6vh, 48px);
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 24px;
  opacity: .8;
}

.ld-rule {
  width: 100%;
  height: 1px;
  background: var(--sep);
  margin-bottom: 16px;
}

.ld-bar-wrap {
  width: 100%;
  height: 1px;
  background: var(--sep2);
  overflow: hidden;
  margin-bottom: 12px;
}

.ld-fill {
  height: 100%;
  background: var(--acc);
  width: 0;
  animation: lb 1.6s cubic-bezier(.4, 0, .2, 1) .2s forwards;
}

@keyframes lb {
  to {
    width: 100%;
  }
}

.ld-sub {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: calc(11px * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  text-transform: uppercase;
  opacity: .4;
}

.ld-index {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: calc(12px * var(--font-scale));
  color: var(--p);
  line-height: 2.2;
  text-transform: uppercase;
}

.ld-index span {
  display: block;
  letter-spacing: .3em;
  animation: indexFade 1.4s ease forwards;
  opacity: 0;
}

.ld-index span:nth-child(1) {
  animation-delay: .30s;
}

.ld-index span:nth-child(2) {
  animation-delay: .45s;
}

.ld-index span:nth-child(3) {
  animation-delay: .60s;
}

.ld-index span:nth-child(4) {
  animation-delay: .75s;
}

.ld-index span:nth-child(5) {
  animation-delay: .90s;
}

.ld-index span:nth-child(6) {
  animation-delay: 1.05s;
}

.ld-index span:nth-child(7) {
  animation-delay: 1.20s;
}

.ld-index span:nth-child(8) {
  animation-delay: 1.35s;
}

.ld-index span:nth-child(9) {
  animation-delay: 1.50s;
}

.ld-index span:nth-child(10) {
  animation-delay: 1.65s;
}

@keyframes indexFade {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: translateY(2px);
  }

  to {
    opacity: .35;
    filter: blur(0);
    transform: translateY(0);
  }
}


#curtain {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

#curtain.show {
  opacity: 1;
  pointer-events: all;
}

#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  background: var(--acc);
  z-index: 700;
  width: 10%;
  transition: width var(--dur) var(--ease);
  opacity: .6;
}


#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  border-bottom: 1px solid var(--sep);
  background: var(--bg);
}

.nav-left {
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  gap: clamp(16px, 3vw, 32px);
}

.nav-sep {
  background: var(--sep);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--pad);
}

.nv-logo {
  display: flex;
  align-items: center;
  opacity: .9;
  transition: opacity .3s;
  text-decoration: none;
}

.nv-logo img {
  height: 18px;
  width: auto;
  display: block;
}

.nv-logo:hover {
  opacity: 1;
}

.nav-clock {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: calc(10px * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  opacity: .5;
  text-transform: uppercase;
  white-space: nowrap;
  border-left: 1px solid var(--sep);
  padding-left: 16px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  height: 18px;
}

.lang-box {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.lang-cur {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(11px * var(--font-scale));
  letter-spacing: .2em;
  color: var(--p);
  text-transform: uppercase;
  opacity: .6;
  transition: opacity .3s, color .3s;
}

.lang-box:hover .lang-cur {
  opacity: 1;
  color: var(--h);
}

.lang-list {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 100px;
  background: rgba(22, 20, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--sep);
  border-top: none;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  transform: translateY(10px);
}

.lang-box:hover .lang-list {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.lang-opt {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(11px * var(--font-scale));
  letter-spacing: .25em;
  color: var(--p);
  text-decoration: none;
  padding: 16px 20px;
  text-align: center;
  display: block;
  opacity: .4;
  border-bottom: 1px solid var(--sep2);
  transition: all .3s var(--ease);
  cursor: none;
}

.lang-opt:last-child {
  border-bottom: none;
}

.lang-opt:hover,
.lang-opt.on {
  opacity: 1;
  color: var(--h);
  background: rgba(240, 232, 216, 0.05);
  letter-spacing: .3em;
}


#pagenav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 600;
  height: var(--foot-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--sep);
  background: var(--bg);
  padding: 0 var(--pad);
}

.ft-left {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.ft-icon-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--acc);
  opacity: .5;
  transition: opacity .3s;
}

.ft-icon-btn:hover {
  opacity: 1;
}

.ft-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ft-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(11px * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  opacity: .5;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  transition: opacity .3s;
}

.ft-link:hover {
  opacity: 1;
}

.pn-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 6px;
  background: var(--sep);
  border: none;
  padding: 0;
  transition: all .3s ease;
}

.dot.a {
  background: var(--acc);
  width: 16px;
}

.ft-sig {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(10px * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  opacity: .5;
  text-transform: uppercase;
}

.ft-sig a {
  color: inherit;
}


.sig-img {
  height: 24px;
  width: auto;
  opacity: .8;
}

.ft-sig a:hover {
  cursor: none;
  opacity: 0.7;
  transition: all .3s ease;
}


#stage {
  position: fixed;
  top: var(--nav-h);
  bottom: var(--foot-h);
  left: 0;
  right: 0;
  overflow: hidden;
}

#track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  will-change: transform;
  transition: transform var(--dur) var(--ease);
}


.slide {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--bg2);
}


.book-grid {
  grid-template-columns: var(--marg-w) 1fr 1px 1fr var(--marg-w);
}


.book-grid-split {
  grid-template-columns: var(--marg-w) 1fr 1px 1fr var(--marg-w);
}

.book-grid-full {
  grid-template-columns: var(--marg-w) 1fr var(--marg-w);
}


.margin {
  border-right: 1px solid var(--sep);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vh, 32px) clamp(8px, 1vw, 14px);
  overflow: hidden;
}

.margin.right {
  border-right: none;
  border-left: 1px solid var(--sep);
}

.m-vert {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(10px, 1vw, 11px) * var(--font-scale));
  letter-spacing: .3em;
  color: var(--acc);
  opacity: .4;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.m-vert.blue {
  color: var(--acc);
  opacity: .7;
}

.m-vert.white {
  color: var(--p);
  opacity: .5;
}

.m-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(36px, 5vw, 56px) * var(--font-scale));
  color: var(--sep2);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .05em;
}

.div-line {
  background: var(--sep);
}


.page {
  padding: var(--pad-v) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.page.top {
  justify-content: flex-start;
}


.ch-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(10px, 1vw, 12px) * var(--font-scale));
  letter-spacing: .35em;
  color: var(--acc);
  text-transform: uppercase;
  display: block;
  margin-bottom: clamp(8px, 1.5vh, 14px);
  text-indent: .4em;
}

.ch-title {
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  font-size: calc(clamp(24px, 3.5vw, 46px) * var(--font-scale));
  color: var(--h);
  line-height: 1.1;
  letter-spacing: -.02em;
  display: block;
  margin-bottom: clamp(4px, 1vh, 8px);
}

.ch-title em {
  font-style: italic;
  color: var(--gold);
}

.ch-subtitle {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(11px, 1.4vw, 13px) * var(--font-scale));
  letter-spacing: .35em;
  color: var(--acc);
  opacity: .8;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

.ch-rule {
  width: clamp(28px, 4vw, 44px);
  height: 1px;
  background: var(--acc);
  display: block;
  margin: clamp(12px, 2vh, 20px) 0;
  opacity: .7;
}

.ch-body {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: calc(clamp(13px, 1.4vw, 16px) * var(--font-scale));
  color: var(--p);
  line-height: 1.85;
  max-width: 52ch;
}

.ch-mono {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: calc(clamp(11px, 1.1vw, 13px) * var(--font-scale));
  color: var(--acc);
  letter-spacing: .12em;
  line-height: 1.8;
  text-transform: uppercase;
}


.copy-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 8px);
  color: var(--h);
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(8.5px, 1.8vw, 14px) * var(--font-scale));
  letter-spacing: .04em;
  opacity: 0.8;
  cursor: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.copy-link:hover {
  opacity: 1;
  color: var(--acc);
}

.copy-link img {
  width: clamp(10px, 1.5vw, 14px);
  height: clamp(10px, 1.5vw, 14px);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
  flex-shrink: 0;

}

.copy-link:hover img {
  opacity: 1;
}

.copy-link.copied {
  color: var(--h);
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.book-quote {
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  font-style: italic;
  font-size: calc(clamp(17px, 2.6vw, 32px) * var(--font-scale));
  color: var(--h);
  line-height: 1.4;
  border-left: 1px solid var(--acc);
  padding-left: clamp(16px, 2.5vw, 28px);
  display: block;
  margin: clamp(16px, 2.5vh, 24px) 0;
}


.pg-prev,
.pg-next {
  position: absolute;
  bottom: clamp(14px, 2.5vh, 22px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(10px, .9vw, 12px) * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  opacity: .55;
  text-transform: uppercase;
  border: none;
  background: none;
  transition: color .3s, opacity .3s;
}

.pg-prev {
  left: clamp(14px, 2.5vw, 22px);
}

.pg-next {
  right: clamp(14px, 2.5vw, 22px);
}

.pg-prev:hover,
.pg-next:hover {
  color: var(--h);
  opacity: 1;
}

.pg-prev .arr {
  transition: transform .3s;
}

.pg-next .arr {
  transition: transform .3s;
}

.pg-prev:hover .arr {
  transform: translateX(-4px);
}

.pg-next:hover .arr {
  transform: translateX(4px);
}


.def-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: clamp(14px, 2vh, 20px);
}

.def {
  padding: clamp(10px, 1.6vh, 14px) 0;
  border-top: 1px solid var(--sep);
  display: grid;
  grid-template-columns: clamp(100px, 20vw, 180px) 1fr;
  gap: clamp(12px, 2vw, 24px);
}

.def:last-child {
  border-bottom: 1px solid var(--sep);
}

.def-term {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(11px, 1.1vw, 12px) * var(--font-scale));
  letter-spacing: .2em;
  color: var(--h);
  text-transform: uppercase;
}

.def-desc {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: calc(clamp(12px, 1.3vw, 14px) * var(--font-scale));
  color: var(--p);
  line-height: 1.7;
}


.stat-row {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  margin-top: clamp(14px, 2vh, 20px);
}

.stat-n {
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  font-size: calc(clamp(28px, 4.5vw, 48px) * var(--font-scale));
  color: var(--h);
  display: block;
  line-height: 1;
}

.stat-l {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(10px, .9vw, 11px) * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  opacity: .5;
  display: block;
  text-transform: uppercase;
  margin-top: 4px;
}


.card-grid {
  display: grid;
  gap: 1px;
  margin-top: clamp(14px, 2vh, 20px);
}

.cg-2 {
  grid-template-columns: 1fr 1fr;
}

.cg-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.card {
  padding: clamp(14px, 1.8vw, 20px) clamp(12px, 1.5vw, 18px);
  border: 1px solid var(--sep);
  position: relative;
  overflow: hidden;
  transition: border-color .4s, background .4s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--acc);
  opacity: 0;
  transition: opacity .4s;
}

.card:hover {
  border-color: var(--acc);
  background: var(--sep2);
  transition: all 2s ease;
  transform: scale(1.05);
}

.card:hover::before {
  opacity: .7;
}

.card-n {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(10px, .9vw, 11px) * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.card-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(13px, 1.3vw, 15px) * var(--font-scale));
  letter-spacing: .1em;
  color: var(--h);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.card-desc {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: calc(clamp(12px, 1.2vw, 13px) * var(--font-scale));
  color: var(--p);
  line-height: 1.65;
}


.tbl {
  width: 100%;
  margin-top: clamp(14px, 2vh, 20px);
  border-collapse: collapse;
}

.tbl tr {
  border-top: 1px solid var(--sep);
}

.tbl tr:last-child {
  border-bottom: 1px solid var(--sep);
}

.tbl tr:hover td {
  background: var(--sep2);
}

.tbl td {
  padding: clamp(10px, 1.4vh, 14px) clamp(8px, 1.2vw, 14px);
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: calc(clamp(12px, 1.3vw, 14px) * var(--font-scale));
  color: var(--p);
  vertical-align: middle;
}

.tbl td:first-child {
  font-weight: 400;
  font-size: calc(clamp(10px, 1vw, 11px) * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  width: clamp(28px, 4vw, 44px);
  white-space: nowrap;
}

.tbl td.tag {
  font-weight: 400;
  font-size: calc(10px * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  opacity: .5;
  text-align: right;
  white-space: nowrap;
  text-transform: uppercase;
}


.tbl-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(9px, .85vw, 10px) * var(--font-scale));
  letter-spacing: .25em;
  color: var(--acc);
  opacity: .45;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;

}

.duality-tbl {
  width: 100%;
  border-collapse: collapse;
}

.duality-tbl thead tr {
  border-bottom: 1px solid var(--sep);
}

.duality-tbl th {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(9px, .8vw, 10px) * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  text-transform: uppercase;
  text-align: left;
  padding: 8px 0 10px;
  opacity: .45;
}

.duality-tbl th:last-child {
  text-align: right;
}

.duality-tbl tbody tr {
  border-top: 1px solid var(--sep2);
  transition: background .25s;
}

.duality-tbl tbody tr:hover {
  background: var(--sep2);
}

.duality-tbl td {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: calc(clamp(12px, 1.2vw, 14px) * var(--font-scale));
  color: var(--p);
  padding: clamp(8px, 1.1vh, 11px) 0;
  vertical-align: middle;
}

.duality-tbl td.col-muted {
  color: var(--acc);
  opacity: .4;
  text-align: right;
}


.contact-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: clamp(20px, 3vh, 28px);
  padding-left: clamp(14px, 2vw, 20px);
  border-left: 1px solid var(--acc);
}

.contact-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(clamp(10px, .9vw, 12px) * var(--font-scale));
  letter-spacing: .25em;
  color: var(--acc);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  opacity: .7;
}

.contact-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: calc(clamp(13px, 1.3vw, 15px) * var(--font-scale));
  color: var(--h);
  text-decoration: none;
  letter-spacing: .04em;
  opacity: .85;
  transition: color .3s, opacity .3s;
}

.contact-link:hover {
  color: var(--acc);
  opacity: 1;
}


#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 9, 0.92);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

#modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: clamp(300px, 90vw, 500px);
  background: var(--bg2);
  border: 1px solid var(--acc);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  max-height: calc(100vh - clamp(40px, 8vh, 80px));
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--sep);
  padding-bottom: 16px;
  flex-shrink: 0;
}

.md-title {
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  color: var(--h);
  font-size: calc(18px * var(--font-scale));
  letter-spacing: .05em;
}

.md-close {
  background: none;
  border: none;
  color: var(--acc);
  font-size: 24px;
  line-height: 1;
  opacity: .5;
  transition: opacity .3s;
}

.md-close:hover {
  opacity: 1;
}

.md-body {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: calc(13px * var(--font-scale));
  color: var(--p);
  line-height: 1.65;
  overflow-y: auto;
  padding-right: 12px;
}


.md-body::-webkit-scrollbar {
  width: 4px;
}

.md-body::-webkit-scrollbar-track {
  background: var(--bg);
}

.md-body::-webkit-scrollbar-thumb {
  background: var(--acc);
  opacity: 0.5;
}

.md-sm {
  font-size: calc(11px * var(--font-scale));
  color: var(--acc);
  letter-spacing: .1em;
}

.md-list {
  list-style: none;
  margin-top: 16px;
  border-left: 1px solid var(--sep);
  padding-left: 16px;
}

.md-list li {
  margin-bottom: 8px;
  position: relative;
}

.md-list li::before {
  content: '—';
  position: absolute;
  left: -16px;
  color: var(--acc);
  opacity: .5;
}


#acc-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 12, 9, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

#acc-panel.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box.glass {
  width: clamp(300px, 90vw, 540px);
  background: var(--bg2);
  border: 1px solid var(--sep);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--sep);
  padding-bottom: 16px;
}

.ey {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(12px * var(--font-scale));
  letter-spacing: .25em;
  color: var(--h);
  text-transform: uppercase;
}

.modal-x {
  background: none;
  border: none;
  color: var(--acc);
  font-size: 24px;
  line-height: 1;
  opacity: .5;
  transition: opacity .3s;
}

.modal-x:hover {
  opacity: 1;
}

.acc-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.acc-row-h {
  display: flex;
  justify-content: space-between;
  padding: 0 12px 12px;
}

.nfs-lbl {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(10px * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  text-transform: uppercase;
  opacity: .7;
}

.acc-btn.nfs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sep2);
  border: 1px solid var(--sep);
  padding: 16px 20px;
  text-align: left;
  transition: background .3s, border-color .3s;
  width: 100%;
}

.acc-btn.nfs-row:hover {
  background: var(--sep);
  border-color: var(--acc);
}

.acc-btn.nfs-row .nfs-lbl {
  color: var(--h);
  font-size: calc(12px * var(--font-scale));
  letter-spacing: .15em;
  opacity: 1;
}

.nfs-val {
  font-family: 'Oswald', sans-serif;
  font-size: calc(11px * var(--font-scale));
  letter-spacing: .1em;
  color: var(--p);
  text-transform: uppercase;
}

.nfs-val.st {
  color: var(--acc);
}

.acc-foot {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.acc-reset-btn {
  background: none;
  border: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: calc(11px * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  text-transform: uppercase;
  opacity: .5;
  transition: opacity .3s;
  padding: 8px;
}

.acc-reset-btn:hover {
  opacity: 1;
}


body.monochrome {
  filter: grayscale(1);
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  transition-duration: 0ms !important;
  animation-duration: 0ms !important;
  scroll-behavior: auto !important;
}

body.high-contrast {
  --bg: #000 !important;
  --bg2: #000 !important;
  --h: #fff !important;
  --p: #fff !important;
  --acc: #fff !important;
  --sep: #fff !important;
  --gold: #fff !important;
}

body.high-contrast .div-line,
body.high-contrast .ch-rule {
  background: #fff !important;
}

body.readable-font,
body.readable-font * {
  font-family: system-ui, -apple-system, sans-serif !important;
}

body.readable-font .ch-title,
body.readable-font .book-quote,
body.readable-font .stat-n,
body.readable-font .md-title {
  font-family: 'Georgia', serif !important;
}


#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--h);
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

#cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--p);
  opacity: .5;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, border-color .3s, transform .3s, background .3s;
}

#cursor-follower.hover-active {
  width: 16px;
  height: 16px;
  border-color: var(--acc);
  border-width: 2px;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(154, 142, 122, 0.1);
}

@media (hover: none) and (pointer: coarse) {

  html,
  body,
  a,
  button {
    cursor: auto;
  }

  #cursor,
  #cursor-follower {
    display: none;
  }
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rv {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .9s cubic-bezier(.2, 0, .2, 1), transform .9s cubic-bezier(.2, 0, .2, 1);
}

.rv.on {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 1100px) {
  :root {
    --pad: clamp(16px, 4vw, 40px);
    --pad-v: clamp(24px, 4vh, 40px);
    --marg-w: clamp(36px, 6vw, 64px);
  }

  .ch-title {
    font-size: calc(clamp(20px, 3vw, 36px) * var(--font-scale));
  }

  .book-quote {
    font-size: calc(clamp(15px, 2.4vw, 24px) * var(--font-scale));
  }

  .cg-2,
  .cg-3 {
    grid-template-columns: 1fr;
  }

  .def {
    grid-template-columns: clamp(90px, 16vw, 150px) 1fr;
  }
}


.m-links-rail {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.5vh, 14px);
  align-items: center;
  justify-content: center;
  height: 100%;
}

.m-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: calc(10px * var(--font-scale));
  letter-spacing: .2em;
  color: var(--acc);
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 4px 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  cursor: none;
  opacity: .35;
  transition: all .4s var(--ease);
}

.m-link.on {
  opacity: 1;
  color: var(--h);
  font-weight: 500;
  transform: rotate(180deg) scale(1.15);
}

.m-link:hover {
  opacity: .7;
  color: var(--h);
}


@media (max-width: 768px) {
  :root {
    --pad: 12px;
    --pad-v: 16px;
    --nav-h: 40px;
    --foot-h: 36px;
    --marg-w: 24px;
  }


  .ch-title {
    font-size: calc(clamp(15px, 4vw, 22px) * var(--font-scale));
    margin-bottom: 2px;
  }

  .ch-subtitle {
    font-size: calc(clamp(8px, 1.2vw, 10px) * var(--font-scale));
  }

  .ch-body {
    font-size: calc(clamp(9px, 1.4vw, 11px) * var(--font-scale));
    line-height: 1.5;
  }

  .ch-mono {
    font-size: 8px;
    line-height: 1.4;
  }

  .book-quote {
    font-size: calc(clamp(12px, 2vw, 16px) * var(--font-scale));
    margin: 10px 0;
    padding-left: 12px;
  }

  .ch-rule {
    margin: 8px 0;
    width: 20px;
  }


  .nv-logo img {
    height: 12px;
  }

  .nav-left {
    gap: 12px;
  }

  .lang-cur {
    font-size: 8px;
  }


  .ft-left {
    gap: 12px;
  }

  .ft-link {
    font-size: 8px;
  }

  .ft-icon-btn svg {
    width: 14px;
    height: 14px;
  }

  .sig-img {
    height: 16px;
    opacity: 0.8;
  }

  .ft-sig {
    font-size: 8px;
    gap: 8px;
    opacity: 0.85;
  }

  .pn-dots .dot {
    width: 3px;
  }

  .pn-dots .dot.a {
    width: 10px;
  }


  .pg-prev,
  .pg-next {
    font-size: 8px;
    bottom: 8px;
  }

  .pg-prev {
    left: 8px;
  }

  .pg-next {
    right: 8px;
  }


  .m-vert {
    font-size: 7px;
  }

  .m-num {
    font-size: 20px;
  }

  .m-link {
    font-size: 8px;
    padding: 2px 0;
  }

  .m-links-rail {
    gap: 4px;
  }


  .stat-row {
    gap: 16px;
    margin-top: 10px;
  }

  .stat-n {
    font-size: calc(clamp(16px, 4vw, 24px) * var(--font-scale));
  }

  .def {
    grid-template-columns: 60px 1fr;
    gap: 8px;
    padding: 6px 0;
  }

  .def-term {
    font-size: 8px;
  }

  .def-desc {
    font-size: 9px;
    line-height: 1.4;
  }

  .tbl {
    margin-top: 10px;
  }

  .tbl td {
    padding: 4px;
    font-size: 8px;
  }

  .tbl td:first-child {
    width: 20px;
    font-size: 8px;
  }

  .tbl td.tag {
    font-size: 7px;
  }

  .duality-tbl td {
    font-size: 9px;
    padding: 4px 0;
  }

  .duality-tbl th {
    font-size: 7px;
    padding: 4px 0 6px;
  }

  .tbl-label {
    font-size: 8px;
    margin-bottom: 6px;
  }


  .card-grid {
    margin-top: 10px;
  }

  .card {
    padding: 8px 6px;
  }

  .card-n {
    font-size: 7px;
    margin-bottom: 4px;
  }

  .card-name {
    font-size: 9px;
    margin-bottom: 4px;
  }

  .card-desc {
    font-size: 8px;
    line-height: 1.4;
  }


  .contact-block {
    margin-top: 12px;
    padding-left: 10px;
  }

  .contact-link {
    font-size: 10px;
  }

  .contact-label {
    font-size: 8px;
    margin-bottom: 4px;
  }


  .modal-box.glass {
    width: 95vw;
    padding: 16px;
  }

  .modal-head {
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .ey {
    font-size: 10px;
  }

  .modal-x {
    font-size: 18px;
  }

  .nfs-lbl {
    font-size: 8px;
  }

  .nfs-val {
    font-size: 9px;
  }

  .acc-row-h {
    padding: 0 8px 8px;
  }

  .acc-btn.nfs-row {
    padding: 10px 12px;
  }

  .acc-foot {
    margin-top: 16px;
  }

  .acc-reset-btn {
    font-size: 9px;
  }


  .ld-index {
    font-size: 9px;
    line-height: 2;
  }

  .ld-logo-img {
    height: auto;
    width: 100%;
    margin-bottom: 12px;
  }

  .ld-sub {
    font-size: 8px;
  }

  .nav-clock {
    font-size: 7px;
    padding-left: 10px;
    letter-spacing: .15em;
  }
}


@media (max-width: 480px) {
  :root {
    --pad: 6px;
    --pad-v: 10px;
    --marg-w: 16px;
  }
}


::-webkit-scrollbar {
  width: 4px;
  height: 4px;
  border-radius: 0;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--sep);
  border-radius: 0;
  transition: background .3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--acc);
}


* {
  scrollbar-width: thin;
  scrollbar-color: var(--sep) var(--bg);
}


#custom-tooltip {
  position: fixed;
  background: rgba(14, 12, 9, 0.4);
  color: var(--h);
  font-family: 'Abhaya Libre', serif;
  font-size: calc(clamp(13px, 1.2vw, 16px) * var(--font-scale));
  font-style: italic;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: none;
  padding: 4px 10px;
  border-radius: 0;
  border: 1px solid rgba(240, 232, 216, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s cubic-bezier(0.2, 0, 0, 1), background 0.3s ease, color 0.3s ease;
  z-index: 10000;
  white-space: nowrap;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  top: 0;
  left: 0;
  transform: translate(0, 5px) scale(0.98);
  transform-origin: top left;
}

#custom-tooltip.show {
  opacity: 1;
}


.blink-shutter {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
}

.blink-shutter.active {
  animation: slowBlink 1.4s var(--ease) forwards;
}

.glitch-kick {
  animation: mechanicalGlitch 0.2s ease-out forwards;
}

@keyframes slowBlink {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 0.15;
  }

  100% {
    opacity: 0;
  }
}

@keyframes mechanicalGlitch {
  0% {
    transform: translate(0);
    filter: brightness(1) contrast(1);
  }

  15% {
    transform: translate(-1px, 1px);
    filter: brightness(1.4) contrast(1.2);
  }

  30% {
    transform: translate(1px, -1px);
    filter: brightness(1.1) contrast(1.1);
  }

  45% {
    transform: translate(-0.5px, 0.5px);
    filter: brightness(1.05);
  }

  100% {
    transform: translate(0);
    filter: brightness(1) contrast(1);
  }
}