:root {
  --bg: #070b0e;
  --ink: #e7f2f3;
  --dim: rgba(231, 242, 243, 0.62);
  --sand: #e0b56a;
  --sand-2: #f0d7a8;
  --ice: #9fe4ea;
  --heat: #ff7a4a;
  --line: rgba(231, 242, 243, 0.16);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --cn: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Syne", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --rail: 72px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.fine { cursor: none; }
::selection { background: var(--sand); color: #1a1006; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--sand);
  color: #1a1006;
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip:focus { top: 12px; }

#field, #strata, .grain-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#field { z-index: 0; }
#strata { z-index: 1; }
.grain-svg {
  z-index: 2;
  opacity: 0.22;
  mix-blend-mode: overlay;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 1px solid rgba(231, 242, 243, 0.85);
  border-radius: 50%;
  pointer-events: none;
 
  transform: translate(-100px, -100px);
}
.cursor i {
  position: absolute;
  inset: 6px;
  background: var(--sand);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.25s ease;
}
body.hot .cursor i { transform: scale(1); }
body.hot .cursor { border-color: transparent; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ice), var(--sand) 55%, var(--heat));
  z-index: 8;
  pointer-events: none;
}

.rail {
  position: fixed;
  z-index: 6;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-right: 1px solid var(--line);
  pointer-events: none;
}
.rail-depth, .rail-band {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}
.rail-depth { color: var(--sand-2); }
.rail-name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  color: var(--dim);
}

.site-header {
  position: fixed;
  z-index: 7;
  top: 0;
  left: var(--rail);
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 18px 28px;
}
.brand {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  letter-spacing: 0.22em;
  font-family: var(--mono);
  font-size: 12px;
}
 .brand img { width: 76px; height: 76px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav a[aria-current="page"], .nav a:hover { color: var(--sand-2); }
.lang-switch { display: flex; gap: 0.35rem; }
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 0.2rem 0.15rem;
  letter-spacing: 0.14em;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(231, 242, 243, 0.38);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { color: var(--ink); }
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.35rem 0.6rem;
  letter-spacing: 0.14em;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 12;
  background: #070b0e;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8vh 8vw 10vh calc(var(--rail) + 6vw);
  transition: transform 0.9s cubic-bezier(.77, 0, .18, 1);
}
.preloader.done { transform: translateY(-105%); }
.pre-kicker, .pre-label {
  font-family: var(--mono);
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--sand-2);
}
.pre-temp {
  margin: 0.2rem 0 0.6rem;
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.05em;
}

main { position: relative; z-index: 4; }

 .hero {
   position: relative;
   min-height: 100vh;
   padding: 20vh 5vw 0 calc(var(--rail) + 3.2vw);
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
 }
.kicker, .index-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}
.hero h1 {
   position: relative;
   z-index: 1;
   margin: 0.35rem 0 0;
  font-family: var(--cn);
  font-weight: 700;
  font-size: clamp(64px, 12.4vw, 196px);
   line-height: 1.02;
  letter-spacing: -0.045em;
}
html[lang="en"] .hero h1 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.055em;
}
 .ln-wrap { display: block; overflow: hidden; padding: 0.08em 0 0.12em; }
 .ln-wrap + .ln-wrap { margin-top: -0.2em; }
 .ln-wrap.indent { padding-left: 7vw; }
 .ln { display: block; }
 html.js .ln { transform: translateY(108%); }
.ready .ln {
  transform: none;
  transition: transform 1.15s cubic-bezier(.16, .84, .24, 1);
}
.ready .ln-wrap:nth-child(2) .ln { transition-delay: 0.08s; }
.ready .ln-wrap:nth-child(3) .ln { transition-delay: 0.16s; }
.ln.stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(231, 242, 243, 0.78);
}
.ln.sand { color: var(--sand); }
 .hero-side {
   position: absolute;
   z-index: 2;
   right: 4vw;
   top: 21vh;
   width: min(18ch, 30vw);
   font-family: var(--sans);
   font-weight: 750;
   font-size: clamp(22px, 2.4vw, 42px);
   line-height: 0.92;
   letter-spacing: -0.045em;
   text-transform: uppercase;
 }
 html[lang="en"] .hero-side {
   font-family: var(--cn);
   font-weight: 650;
   text-transform: none;
   letter-spacing: 0;
   line-height: 1.2;
   font-size: clamp(20px, 2vw, 32px);
 }
.hero-side small {
  display: block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--dim);
  line-height: 1.5;
}
 .lede {
   position: relative;
   z-index: 1;
   max-width: 34em;
   margin: 1.25rem 0 0;
   color: var(--dim);
   font-size: 1.05rem;
 }
 .hero-foot {
   position: relative;
   z-index: 1;
   display: flex;
   justify-content: space-between;
   align-items: flex-end;
   gap: 2rem;
   padding: 5vh 0 3.2vh;
 }
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--sand-2);
}
.scroll-hint i {
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--sand), transparent);
  transform-origin: top;
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0.2); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.2); }
}
.live {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.live b {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: -0.04em;
  color: var(--ice);
  line-height: 0.9;
}

.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 0.75rem 0;
  position: relative;
  z-index: 4;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.marquee span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand-2);
  padding-right: 0.4rem;
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }

.manifesto, .instrument, .method, .colophon, .themes {
  position: relative;
  z-index: 4;
}
.manifesto {
  padding: 18vh 8vw 12vh calc(var(--rail) + 6vw);
}
.manifesto-text {
  max-width: 11em;
  margin: 1rem 0 1.5rem;
  font-family: var(--cn);
  font-weight: 650;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.18;
}
html[lang="en"] .manifesto-text { font-family: var(--display); font-weight: 560; max-width: 14em; }
.manifesto-text span { display: block; }
.manifesto-text .em { color: var(--sand-2); font-style: italic; }
.deck { max-width: 40em; color: var(--dim); font-size: 1.05rem; }

 .reveal { transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.16, .84, .24, 1); }
 html.js .reveal { opacity: 0; transform: translateY(28px); }
 html.js .reveal.in { opacity: 1; transform: none; }

.themes { padding-left: var(--rail); }
.theme {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4vw;
  align-items: end;
  padding: 8vh 6vw 8vh 4vw;
  border-top: 1px solid var(--line);
}
.theme:nth-child(2) { grid-template-columns: 0.85fr 1.15fr; }
.theme:nth-child(2) .theme-mat { order: -1; }
.theme-no {
  font-family: var(--mono);
  color: var(--ice);
  letter-spacing: 0.18em;
  font-size: 12px;
}
.theme h2 {
  margin: 0.4rem 0 0.8rem;
  font-family: var(--cn);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
html[lang="en"] .theme h2 { font-family: var(--display); font-weight: 560; }
.theme p { max-width: 36em; color: var(--dim); }
.keywords { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.2rem; }
.keywords span {
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sand-2);
}
 .theme-mat {
   height: 58vh;
   position: relative;
   pointer-events: none;
   background: none;
 }
 .theme-mat canvas {
   width: 100%;
   height: 100%;
   display: block;
   pointer-events: none;
 }

.instrument {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4vw;
  align-items: center;
  padding: 12vh 7vw 12vh calc(var(--rail) + 4vw);
}
.dt {
  margin: 0.3rem 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(84px, 11vw, 168px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--ice);
}
.dt small { font-size: 0.28em; letter-spacing: 0; margin-left: 0.15em; }
.sand-control { display: block; margin-top: 1.4rem; }
.sand-control span {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-2);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: min(100%, 460px);
  height: 2px;
  background: linear-gradient(90deg, var(--ice), var(--sand) 60%, var(--heat));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 28px;
  border: 0;
  background: var(--ink);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 28px;
  border: 0;
  background: var(--ink);
  cursor: pointer;
}
.meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin: 0;
}
.meters div { border-top: 1px solid var(--line); padding-top: 0.55rem; }
.meters dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.meters dd {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.note { color: var(--dim); max-width: 36em; }

.method { padding: 8vh 8vw 14vh calc(var(--rail) + 4vw); }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 1.15rem calc(var(--i) * 6vw);
}
.steps span, .steps em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sand);
}
.steps b {
  font-family: var(--cn);
  font-weight: 650;
  font-size: clamp(28px, 4vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1;
}
html[lang="en"] .steps b { font-family: var(--display); font-weight: 560; }

.colophon { padding: 4vh 6vw 8vh var(--rail); overflow: hidden; }
.giant-outline {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 23vw;
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(224, 181, 106, 0.55);
  user-select: none;
}
.colo-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 4vw 2rem;
  color: var(--dim);
  font-size: 0.92rem;
}
.colo-grid nav { display: flex; gap: 1.2rem; }
.colo-grid a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-decoration: none; }
.legal { max-width: 46em; }

.doc-sheet {
  position: relative;
  z-index: 4;
  width: min(1080px, calc(100% - var(--rail) - 10vw));
  margin-left: calc(var(--rail) + 5vw);
  padding: 22vh 0 12vh;
}
.watermark {
  position: absolute;
  right: -4vw;
  top: 12vh;
  margin: 0;
  font-family: var(--cn);
  font-size: 28vw;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(231, 242, 243, 0.09);
  pointer-events: none;
  user-select: none;
}
.doc-sheet h1 {
  margin: 0.5rem 0 0;
  font-family: var(--cn);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 108px);
   line-height: 1.02;
  letter-spacing: -0.045em;
}
html[lang="en"] .doc-sheet h1 { font-family: var(--display); font-weight: 560; }
.doc-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4vw;
  margin-top: 4vh;
}
.prose p { color: rgba(231, 242, 243, 0.84); font-size: 1.08rem; }
.facts { border-top: 1px solid rgba(224, 181, 106, 0.5); padding-top: 0.8rem; }
.facts dt {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--sand);
}
.facts dt:first-child { margin-top: 0; }
 .facts dd { margin: 0.25rem 0 0; }
 .mail {
   display: inline-block;
   margin: 0.8rem 0 1.4rem;
   font-family: var(--display);
   font-style: italic;
   font-weight: 560;
   font-size: clamp(26px, 3.2vw, 44px);
   line-height: 1.05;
   letter-spacing: -0.04em;
   text-decoration: none;
   color: var(--sand-2);
   overflow-wrap: anywhere;
 }
 .facts { margin-top: 0.2rem; }
 .mail:hover { color: var(--ice); }
:focus-visible { outline: 1px solid var(--sand); outline-offset: 3px; }

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem 1.2rem;
    background: rgba(7, 11, 14, 0.94);
    border-bottom: 1px solid var(--line);
  }
  body.nav-open .nav { display: flex; }
   .hero { min-height: auto; padding-top: 16vh; }
   .hero-side { position: static; width: auto; max-width: 20em; margin: 1.2rem 0 0; }
   .hero h1 { font-size: clamp(56px, 18vw, 96px); }
  .theme, .theme:nth-child(2), .instrument, .doc-grid, .steps li {
    grid-template-columns: 1fr;
  }
  .theme:nth-child(2) .theme-mat { order: 0; }
  .steps li { padding-left: 0; }
  .doc-sheet { width: min(100% - 12vw, 1080px); margin-left: 6vw; }
  .colo-grid { flex-direction: column; }
  .giant-outline { font-size: 34vw; }
}

@media (prefers-reduced-motion: reduce) {
   .preloader { display: none; }
   html.js .ln, html.js .reveal { opacity: 1; transform: none; }
   .marquee-track, .scroll-hint i { animation: none; }
   .cursor { display: none; }
}
