@font-face {
  font-family: Outfit;
  src: url("/ivanc-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Noto;
  src: url("/ivanc-text.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Outfit, Noto, "Microsoft YaHei", sans-serif;
  color: #202320;
  background: #e9e7e1;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #677a36;
  outline-offset: 6px;
}
a {
  color: inherit;
  text-decoration: none;
}
.opening {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 66% 39%, #f6f4ec 0%, #eceae4 43%, #dddcd6 100%);
}
.paper {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.065;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888888' filter='url(%23n)' opacity='.7' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
header {
  position: absolute;
  top: 40px;
  left: 4.3%;
  right: 4.3%;
  display: flex;
  align-items: center;
  gap: 26px;
  z-index: 3;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 26px;
  letter-spacing: 0.02em;
  font-weight: 550;
}
.brand svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}
.edition {
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: #696b61;
  border-left: 1px solid #bebfb3;
  padding-left: 23px;
}
.edition span {
  display: block;
}
.sequence {
  margin-left: auto;
  display: flex;
  position: relative;
  gap: 25px;
  align-items: center;
  margin-top: -16px;
}
.sequence:before {
  content: "";
  height: 1px;
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  background: #a1a879;
}
.sequence i {
  position: relative;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background: #a1a879;
}
.sequence i:first-of-type {
  outline: 1px solid #919965;
  outline-offset: 4px;
  background: #758146;
}
.sequence span {
  position: absolute;
  right: -2px;
  top: 21px;
  white-space: nowrap;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #6f7163;
}
#stage {
  position: absolute;
  inset: -30% -38% -40% 24%;
  cursor: default;
  touch-action: pan-y pinch-zoom;
}
#stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.title-space {
  position: absolute;
  left: 6.3%;
  top: 39%;
  width: 58%;
  pointer-events: none;
  z-index: 2;
}
.title-space h1 {
  margin: 0;
  color: #111411;
  line-height: 1.03;
}
.title-en {
  display: block;
  font-size: clamp(60px, 7.8vw, 158px);
  font-weight: 760;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.registration {
  margin-top: 33px;
  width: 64%;
  height: 2px;
  background: linear-gradient(90deg, #373d33 90%, transparent);
  opacity: 0.85;
}
.unit-study {
  position: absolute;
  left: 6%;
  bottom: 13%;
  display: flex;
  align-items: center;
  gap: 17px;
  pointer-events: none;
  z-index: 2;
}
.unit-drawing {
  width: 126px;
  opacity: 0.8;
}
.unit-drawing svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.plate {
  fill: #f1f0e9;
  stroke: #868c77;
  stroke-width: 0.8;
}
.ghost {
  fill: none;
  stroke: #939784;
  stroke-width: 0.7;
  opacity: 0.3;
}
.hair {
  fill: none;
  stroke: #828875;
  stroke-width: 1;
  opacity: 0.5;
}
.accent {
  fill: #aab879;
}
.leader {
  fill: none;
  stroke: #858b78;
  stroke-width: 0.6;
}
.unit-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.micro {
  font-size: 7px;
  letter-spacing: 0.19em;
  color: #7e8273;
}
.unit-name {
  font-family: Noto, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
}
.unit-en {
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #686e5e;
}
.object-index {
  position: absolute;
  right: 4.5%;
  bottom: 17%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #777b6f;
  pointer-events: none;
}
.object-index > span:first-child {
  font-size: 7px;
}
.index-line {
  width: 46px;
  height: 1px;
  background: #9c9f90;
}
footer {
  position: absolute;
  bottom: 31px;
  left: 4.3%;
  right: 4.3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}
.footnote {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #686f5b;
}
.cross {
  font-size: 24px;
  font-weight: 200;
}
.controls {
  display: flex;
  align-items: center;
  gap: 18px;
}
.controls button {
  background: none;
  border: 0;
  padding: 11px 3px;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.06em;
  display: flex;
  gap: 9px;
  align-items: center;
}
.controls button:hover {
  color: #6c7f3b;
}
.control-mark,
.pause-mark {
  font-size: 15px;
  font-weight: 300;
}
.divider {
  height: 12px;
  width: 1px;
  background: #b7bbae;
}
.controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.fallback {
  position: absolute;
  top: 50%;
  left: 48%;
  font-size: 13px;
  max-width: 35%;
  color: #626b53;
}
@media (min-width: 1700px) {
  .unit-drawing {
    width: 150px;
  }
}
@media (max-height: 750px) and (min-width: 701px) {
  header {
    top: 26px;
  }
  footer {
    bottom: 18px;
  }
  .unit-study {
    bottom: 13%;
  }
  .object-index {
    bottom: 14%;
  }
}
@media (max-width: 700px) {
  .opening {
    min-height: 760px;
  }
  header {
    top: 25px;
    left: 7%;
    right: 7%;
  }
  .brand {
    font-size: 22px;
  }
  .edition {
    display: none;
  }
  .sequence {
    gap: 20px;
  }
  .title-space {
    top: 24%;
    left: 7%;
    width: 86%;
  }
  .title-en {
    font-size: clamp(40px, 11vw, 74px);
    letter-spacing: -0.045em;
  }
  .registration {
    margin-top: 24px;
    width: 64%;
    height: 1px;
  }
  #stage {
    inset: -2% -127% -16% 10%;
    opacity: 0.72;
  }
  .unit-study {
    bottom: 13%;
    left: 7%;
    gap: 10px;
  }
  .unit-drawing {
    width: 90px;
  }
  .unit-name {
    font-size: 11px;
  }
  .unit-en {
    font-size: 6px;
  }
  .object-index {
    display: none;
  }
  footer {
    left: 7%;
    right: 7%;
    bottom: 23px;
  }
  .footnote {
    font-size: 6px;
    gap: 7px;
  }
  .controls {
    gap: 11px;
  }
  .controls button {
    font-size: 9px;
  }
  .fallback {
    left: 15%;
    max-width: 70%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.title-en {
  word-spacing: 0.28em;
}
.identity-caption {
  margin: 15px 0 0;
  font-size: clamp(9px, 0.77vw, 13px);
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.6;
  color: #343a31;
  white-space: nowrap;
}
.identity-caption span {
  padding: 0 0.45em;
}
.closing-line {
  position: absolute;
  bottom: 5.5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.closing-line p {
  margin: 0;
}
.closing-line p[lang="zh-CN"] {
  font-family: Noto, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 450;
  letter-spacing: 0.14em;
  color: #252b23;
}
.closing-line p[lang="en"] {
  margin-top: 9px;
  font-size: 8px;
  font-weight: 450;
  letter-spacing: 0.24em;
  color: #7c8174;
}
@media (max-width: 700px) {
  .title-en {
    word-spacing: 0.24em;
  }
  .identity-caption {
    font-size: 7.5px;
    letter-spacing: 0.07em;
    margin-top: 12px;
  }
  .identity-caption span {
    padding: 0 0.15em;
  }
  .closing-line {
    bottom: 7%;
    left: 7%;
    transform: none;
    text-align: left;
  }
  .closing-line p[lang="zh-CN"] {
    font-size: 13px;
    letter-spacing: 0.08em;
  }
  .closing-line p[lang="en"] {
    font-size: 6.5px;
    letter-spacing: 0.13em;
    margin-top: 7px;
  }
}
.identity-caption {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.identity-caption span {
  padding: 0;
}
.caption-zh {
  font-family: Noto, "Microsoft YaHei", sans-serif;
  letter-spacing: 0.12em;
}
.caption-en {
  font-size: 0.86em;
  letter-spacing: 0.16em;
  color: #626958;
}
@media (max-width: 700px) {
  .identity-caption {
    gap: 10px;
    flex-wrap: wrap;
    row-gap: 5px;
  }
  .caption-zh {
    font-size: 9px;
  }
  .caption-en {
    font-size: 7px;
    letter-spacing: 0.09em;
  }
  .closing-line p[lang="zh-CN"] {
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  .closing-line p[lang="en"] {
    font-size: 6.2px;
    letter-spacing: 0.1em;
  }
}
.identity-caption {
  width: 64%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0;
  font-size: clamp(9px, 0.88vw, 15px);
  font-weight: 550;
  letter-spacing: 0.23em;
}
.identity-caption span {
  padding: 0;
}
.identity-caption span:last-child {
  margin-right: -0.23em;
}
.registration {
  background: #373d33;
}
@media (max-width: 700px) {
  .identity-caption {
    font-size: 6.6px;
    letter-spacing: 0.08em;
    margin-top: 12px;
    gap: 0;
    flex-wrap: nowrap;
  }
  .identity-caption span:last-child {
    margin-right: -0.08em;
  }
}
.identity-caption svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.identity-caption text {
  font-family: Outfit, sans-serif;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: 0;
  fill: #343a31;
}
.registration,
.identity-caption {
  width: clamp(265px, 23.6vw, 420px);
}
.identity-caption {
  margin-top: 12px;
}
.identity-caption text {
  font-size: 12px;
}
@media (max-width: 700px) {
  .registration,
  .identity-caption {
    width: 215px;
  }
  .identity-caption {
    margin-top: 9px;
  }
}
html {
  scroll-behavior: auto;
}
body {
  background: #101415;
}
.scroll-track {
  height: 667svh;
  pointer-events: none;
}
.opening {
  overflow: visible;
  overflow: clip;
  touch-action: pan-y pinch-zoom;
  position: fixed;
  inset: 0;
  height: 100svh;
  min-height: 0;
}
#stage {
  inset: 0 !important;
  opacity: 1 !important;
}
.night {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 65% 48%, #1a2021, #0b1011 76%);
  opacity: var(--night, 0);
}
header {
  color: var(--brand-color, #202320);
}
.title-space,
.closing-line {
  opacity: var(--intro, 1);
}
.paper {
  opacity: calc(0.065 * var(--intro, 1));
}
.chapter-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 14, 15, 0.75), transparent 43%);
  opacity: var(--night, 0);
  z-index: 1;
}
.chapter {
  position: absolute;
  left: 6.3%;
  top: 31%;
  z-index: 2;
  color: #e4e6dd;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}
.chapter-kicker {
  font-size: 9px;
  font-weight: 450;
  letter-spacing: 0.22em;
  color: #9ba68f;
  margin: 0 0 27px;
}
.chapter h2 {
  font-family: Noto, "Microsoft YaHei", sans-serif;
  font-size: clamp(30px, 3.2vw, 61px);
  font-weight: 550;
  line-height: 1.45;
  letter-spacing: 0.045em;
  margin: 0;
}
.chapter-copy {
  font-family: Noto, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.07em;
  color: #a3aaa3;
  margin: 23px 0 0;
}
.scene-note {
  position: absolute;
  left: 6.3%;
  bottom: 6%;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #879187;
  font-size: 8px;
  letter-spacing: 0.16em;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.note-rule {
  width: 24px;
  height: 1px;
  background: #7b866e;
}
@media (max-width: 700px) {
  .chapter {
    left: 7%;
    top: 16%;
    right: 7%;
  }
  .chapter-kicker {
    font-size: 8px;
    margin-bottom: 15px;
  }
  .chapter h2 {
    font-size: 30px;
    line-height: 1.35;
  }
  .chapter h2 br {
    display: none;
  }
  .chapter-copy {
    font-size: 10px;
    line-height: 1.8;
    margin-top: 15px;
  }
  .chapter-shade {
    background: linear-gradient(180deg, rgba(9, 14, 15, 0.5), transparent 50%);
  }
  .scene-note {
    left: 7%;
    bottom: 4%;
    font-size: 7px;
  }
  .scroll-track {
    height: 667svh;
  }
}

.barrier-label {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-15%, -88%);
  white-space: nowrap;
  text-shadow:
    0 2px 1px #302819,
    0 0 14px #30281999;
}
.barrier-label strong {
  display: block;
  font-family: Bahnschrift, "Arial Narrow", Outfit, sans-serif;
  font-stretch: condensed;
  font-weight: 750;
  font-size: clamp(25px, 2.8vw, 49px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #f1e9ce;
  transform: scaleX(0.85);
  transform-origin: left bottom;
}
.barrier-label span {
  display: block;
  margin-top: 12px;
  font-family: Noto, sans-serif;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: #f2bc41;
}
.barrier-label span:after {
  content: " ▸▸";
  letter-spacing: -0.15em;
}
@media (max-width: 700px) {
  .barrier-label {
    transform: translate(-42%, -30%);
  }
  .barrier-label strong {
    font-size: 22px;
  }
  .barrier-label span {
    font-size: 9px;
    margin-top: 7px;
  }
}
@media (max-width: 700px) {
  .barrier-label {
    left: 7% !important;
    top: 76% !important;
    transform: none;
  }
}
/* People chapter: a chorus of concerns across the upper screen. */
.chapter[data-chapter="3"] {
  top: auto;
  bottom: 31%;
  left: 9%;
}
.human-concerns {
  position: absolute;
  left: 0;
  right: 0;
  top: 105px;
  height: 166px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.human-concerns span {
  position: absolute;
  left: 0;
  display: block;
  white-space: nowrap;
  font-family: Noto, "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: 0.025em;
  color: #e6e6df;
  text-shadow:
    0 1px 3px #000,
    0 0 8px #070d0e;
  will-change: transform;
}
.human-concerns span:nth-child(3n) {
  color: #b7beb7;
  font-weight: 450;
}
.human-concerns span:nth-child(7n) {
  color: #d6ada0;
}
@media (max-width: 700px) {
  .chapter[data-chapter="3"] {
    left: 7%;
    bottom: 7%;
    top: auto;
  }
  .human-concerns {
    top: 90px;
    height: 120px;
  }
  .human-concerns span {
    font-size: 15px;
    letter-spacing: 0;
  }
}
.scroll-track {
  height: 1100svh;
}
.chapter.solution {
  left: 6.3%;
  top: auto;
  bottom: 12%;
}
.chapter.solution h2 {
  font-size: clamp(28px, 2.7vw, 51px);
}
.work-chat {
  position: absolute;
  z-index: 2;
  width: 350px;
  transform: translate(-50%, 0);
  background: #172120;
  border: 1px solid #8d9f91;
  border-radius: 12px;
  color: #e3e8df;
  box-shadow: 0 20px 80px #0005;
  opacity: 0;
  visibility: hidden;
  padding: 18px;
  font-family: Noto, sans-serif;
  pointer-events: none;
}
.chat-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid #53615880;
  padding-bottom: 13px;
}
.chat-heading i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #bed4ae;
  border-radius: 50%;
  margin-right: 7px;
}
.chat-heading small {
  font-size: 8px;
  color: #98a699;
  letter-spacing: 0.08em;
}
.work-chat p {
  font-size: 11px;
  line-height: 1.8;
  margin: 7px 0 0;
}
.chat-user {
  background: #35423b;
  border-radius: 8px 8px 2px 8px;
  margin: 16px 0 15px 35px;
  padding: 10px 13px;
}
.work-chat small {
  font-size: 9px;
  color: #acbba9;
}
.chat-answer {
  padding: 0 8px;
}
.chat-answer > small {
  color: #c8d8ba;
}
.chat-sources {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  font-size: 8px;
  color: #aab7a7;
}
.chat-sources span {
  border-bottom: 1px solid #60715e;
  padding-bottom: 3px;
}
.chat-review {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  background: #65785422;
  padding: 10px;
  margin: 15px 0;
  color: #c4d5b3;
}
.chat-composer {
  border: 1px solid #5b6a5f;
  border-radius: 5px;
  padding: 10px;
  color: #8d9c8e;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-composer span {
  font-size: 16px;
  color: #d2deca;
}
@media (max-width: 700px) {
  .chapter.solution {
    left: 7%;
    right: 7%;
    top: 12%;
    bottom: auto;
  }
  .chapter.solution h2 {
    font-size: 26px;
  }
  .chapter.solution .chapter-copy {
    font-size: 10px;
  }
  .work-chat {
    width: min(320px, 86vw);
    padding: 14px;
  }
  .work-chat p {
    font-size: 10px;
  }
  .chat-user {
    margin-top: 12px;
    padding: 8px 10px;
  }
  .chat-heading {
    padding-bottom: 10px;
  }
  .chat-review {
    margin: 12px 0;
  }
}

.scroll-track {
  height: 1160svh;
}
.computer-screen-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.computer-screen-layer .work-chat {
  position: absolute;
  left: 0;
  top: 0;
  width: 600px;
  height: 360px;
  max-width: none;
  padding: 18px 22px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  visibility: visible;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  backface-visibility: hidden;
  pointer-events: none;
}
.computer-screen-layer .chat-heading {
  font-size: 15px;
  padding-bottom: 10px;
  flex-shrink: 0;
}
.computer-screen-layer .chat-heading small {
  font-size: 10px;
}
.computer-screen-layer .chat-user {
  margin: 10px 0 10px 140px;
  padding: 9px 12px;
}
.computer-screen-layer .work-chat p {
  font-size: 14px;
  line-height: 1.55;
  margin-top: 4px;
}
.computer-screen-layer .work-chat small {
  font-size: 11px;
}
.computer-screen-layer .chat-sources {
  font-size: 10px;
  margin-top: 7px;
}
.computer-screen-layer .chat-review {
  font-size: 11px;
  padding: 8px 10px;
  margin: 10px 0;
}
.computer-screen-layer .chat-composer {
  font-size: 11px;
  padding: 8px 10px;
  margin-top: auto;
}
.chapter[data-chapter="6"] {
  bottom: 12%;
  z-index: 3;
}
@media (max-width: 700px) {
  .chapter[data-chapter="6"] {
    top: 12%;
    bottom: auto;
  }
  .chapter[data-chapter="6"] h2 {
    font-size: 24px;
  }
  .computer-screen-layer .work-chat {
    width: 600px;
    padding: 18px 22px;
  }
}

.scroll-track {
  height: 1280svh;
}
@media (max-width: 700px) {
  .chapter.solution h2 br {
    display: block;
  }
}
.chapter.solution {
  color: var(--brand-color, #e4e6dd);
}
.chapter.solution .chapter-copy,
.chapter.solution .chapter-kicker {
  color: var(--solution-muted, #a3aaa3);
}
.chapter[data-chapter="4"] {
  top: 26%;
  bottom: auto;
}
.custom-steps {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 0;
  font-family: Noto, sans-serif;
}
.custom-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0 12px 12px;
  border-left: 1px solid #7b8b7938;
  opacity: 0.35;
  font-size: 12px;
  transition: opacity 0.2s;
}
.custom-steps li > span {
  font-family: Outfit, sans-serif;
  font-size: 11px;
  padding-top: 2px;
}
.custom-steps small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  color: var(--solution-muted);
  letter-spacing: 0.06em;
}
.custom-steps li[data-state="active"] {
  opacity: 1;
  border-left: 2px solid #79916e;
  background: linear-gradient(90deg, #7d967217, transparent);
}
.custom-steps li[data-state="complete"] {
  opacity: 0.65;
}
.paper {
  opacity: calc(0.065 * var(--intro, 1) + 0.045 * var(--atelier, 0));
}
@media (max-width: 700px) {
  .chapter[data-chapter="4"] {
    top: 12%;
    bottom: auto;
  }
  .chapter[data-chapter="4"] h2 {
    font-size: 24px;
  }
  .custom-steps {
    margin-top: 14px;
    grid-template-columns: 1fr 1fr;
    gap: 2px 10px;
  }
  .custom-steps li {
    font-size: 10px;
    padding: 6px 0 6px 8px;
    gap: 7px;
  }
  .custom-steps small {
    font-size: 7px;
    letter-spacing: 0;
    margin-top: 3px;
  }
}

.scroll-track {
  height: 1420svh;
}
.chapter[data-chapter="5"] {
  top: 23%;
  bottom: auto;
  max-width: 320px;
}
.chapter[data-chapter="5"] h2 {
  font-size: clamp(28px, 2.5vw, 43px);
}
@media (max-width: 700px) {
  .chapter[data-chapter="5"] {
    top: 12%;
    max-width: 86%;
  }
  .chapter[data-chapter="5"] h2 {
    font-size: 24px;
  }
}

.chapter[data-chapter="6"] {
  top: 22%;
  bottom: auto;
  max-width: 340px;
}
@media (max-width: 700px) {
  .chapter[data-chapter="6"] {
    top: 12%;
    max-width: 86%;
  }
}
/* Archive chapters: a quiet mechanical language, warm paper and measured ink. */
.scroll-track {
  height: 1260svh;
}
.chapter[data-chapter="4"] {
  top: 26%;
  max-width: 350px;
}
.chapter[data-chapter="4"] h2 {
  font-size: clamp(28px, 2.65vw, 42px);
}
.chapter[data-chapter="5"] {
  top: auto;
  bottom: 8%;
  max-width: 310px;
}
.chapter[data-chapter="5"] h2 {
  font-size: clamp(28px, 2.4vw, 38px);
}
.chapter[data-chapter="6"] {
  top: 36%;
  bottom: auto;
  max-width: 330px;
}
.archive-hint {
  font-size: 10px;
  color: #6a7566;
  margin-top: 40px;
  letter-spacing: 0.08em;
}
.archive-hint span {
  margin-left: 22px;
}
@media (max-width: 700px) {
  .chapter[data-chapter="4"] {
    top: 12%;
    max-width: 86%;
  }
  .chapter[data-chapter="4"] h2 {
    font-size: 24px;
  }
  .chapter[data-chapter="6"] {
    top: 12%;
    max-width: 86%;
  }
  .chapter[data-chapter="6"] h2 {
    font-size: 26px;
  }
  .archive-hint {
    margin-top: 14px;
    font-size: 9px;
  }
}

/* Original layout informed by RhineLabUI's typographic detail sheet and fine rules. */
.chapter[data-chapter="5"] {
  display: block;
  left: 6.3%;
  top: 34%;
  bottom: auto;
  width: 37%;
  max-width: 530px;
  padding: 0;
  background: none;
  border: 0;
  isolation: isolate;
}
.chapter[data-chapter="5"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -110px -105px -110px -150px;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 43% 50%,
    #efeee8fa 0%,
    #efeee8ef 32%,
    #efeee8a8 52%,
    #efeee840 65%,
    transparent 78%
  );
  filter: blur(12px);
}
.chapter[data-chapter="5"] h2 {
  font-size: clamp(26px, 2.7vw, 43px);
  line-height: 1.55;
  letter-spacing: 0.015em;
}
.chapter[data-chapter="5"] .chapter-kicker {
  margin-bottom: 28px;
  color: #6c7468;
}
.chapter[data-chapter="5"] .chapter-copy {
  display: block;
  font-size: 13px;
  line-height: 2.1;
  color: #586255;
  letter-spacing: 0.025em;
  margin-top: 28px;
}
.archive-chat {
  --ink: #232922;
  --muted: #74796f;
  position: absolute;
  z-index: 4;
  right: 5.5%;
  top: 13%;
  bottom: 6%;
  width: clamp(410px, 36vw, 570px);
  max-height: 820px;
  padding: 24px 30px 20px;
  color: var(--ink);
  font-family: Noto, "Microsoft YaHei", sans-serif;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  isolation: isolate;
  background: linear-gradient(115deg, #f0efe8f5, #f0efe8ed 60%, #eaeae1dd);
  border: 0;
  box-shadow: none;
}
.archive-chat::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35px -28px -35px -45px;
  background: #efeee8bb;
  filter: blur(24px);
  pointer-events: none;
}
.archive-chat::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) left top/18px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left top/1px 18px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom/18px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom/1px 18px no-repeat;
  opacity: 0.4;
}
.archive-panel-top {
  display: flex;
  justify-content: space-between;
  font-family: Outfit, Noto, sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-bottom: 17px;
  border-bottom: 1px solid #72786d55;
  flex-shrink: 0;
}
.archive-console-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 25px;
  gap: 20px;
}
.archive-console-title {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin: 0;
}
.archive-console-heading > span {
  font:
    10px/1.6 Outfit,
    sans-serif;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.archive-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 20px;
  gap: 12px;
}
.archive-selection small {
  font:
    11px Outfit,
    sans-serif;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.archive-selection h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 7px 0 0;
  letter-spacing: 0.07em;
}
.connection-state {
  font-size: 10px;
  color: #536d50;
  white-space: nowrap;
}
.connection-state i,
.archive-message.assistant i,
.archive-evidence i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #6d8963;
  margin-right: 7px;
  vertical-align: middle;
}
.archive-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-bottom: 1px solid #9b9c8e66;
  padding: 0;
  flex-shrink: 0;
}
.archive-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 0;
  background: none;
  padding: 11px 0 14px;
  min-height: 44px;
  text-align: left;
  font:
    11px Noto,
    sans-serif;
  color: #7b7f74;
  cursor: pointer;
  transition: color 0.18s;
}
.archive-tabs button span {
  font:
    10px Outfit,
    sans-serif;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.archive-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #253329;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.archive-tabs button[aria-pressed="true"] {
  color: #26362b;
}
.archive-tabs button[aria-pressed="true"]::after {
  transform: scaleX(1);
}
.archive-tabs button:hover {
  color: #273e2c;
}
.archive-tabs button:focus-visible {
  outline: 1px solid #637a59;
  outline-offset: 3px;
}
.archive-dialogue {
  flex: 1;
  min-height: 80px;
  overflow: auto;
  overscroll-behavior: auto;
  padding: 23px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: #a0a294 transparent;
}
.archive-message {
  font-size: 14px;
  line-height: 1.95;
}
.archive-message small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font:
    10px Outfit,
    Noto,
    sans-serif;
  letter-spacing: 0.1em;
}
.archive-message small b {
  font-weight: 400;
  letter-spacing: 0.05em;
}
.archive-message p {
  margin: 12px 0 0;
  max-width: none;
  letter-spacing: 0.02em;
}
.archive-message.human {
  margin: 0;
  padding: 0 0 23px;
  border-bottom: 1px solid #afb0a33f;
  background: none;
}
.archive-message.assistant {
  padding: 23px 0 0;
}
.archive-message.assistant p {
  font-size: 15px;
  line-height: 2;
}
.archive-evidence {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 5px;
  padding: 10px 0;
  border-top: 1px solid #9fa68f66;
  color: #59734f;
  font-size: 10px;
  letter-spacing: 0.025em;
}
.archive-demo-note {
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #85897d;
  padding: 15px 0 10px;
  flex-shrink: 0;
}
.archive-composer {
  display: flex;
  gap: 10px;
  border: 0;
  border-top: 1px solid #747d6b;
  border-bottom: 1px solid #b5baac;
  padding: 8px 0;
  background: none;
  flex-shrink: 0;
}
.archive-composer input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #26372b;
  font:
    13px Noto,
    sans-serif;
  padding: 8px 0;
}
.archive-composer input::placeholder {
  color: #81887a;
}
.archive-composer:focus-within {
  border-color: #32462e;
  box-shadow: 0 1px #32462e;
}
.archive-composer button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  background: #2e3c30;
  color: #f1f0e7;
  font-size: 23px;
  cursor: pointer;
  transition: background 0.18s;
}
.archive-composer button:hover {
  background: #4b6147;
}
@media (max-width: 1050px) and (min-width: 701px) {
  .archive-chat {
    right: 4%;
    width: 43%;
    padding: 20px;
  }
  .chapter[data-chapter="5"] {
    left: 5%;
    width: 39%;
  }
  .chapter[data-chapter="5"] h2 {
    font-size: 26px;
  }
  .chapter[data-chapter="5"] .chapter-copy {
    font-size: 11px;
  }
  .archive-message {
    font-size: 12px;
  }
  .archive-message.assistant p {
    font-size: 13px;
  }
}
@media (max-width: 700px) {
  .chapter[data-chapter="5"] {
    left: 7%;
    right: 7%;
    top: 11%;
    bottom: auto;
    width: auto;
    max-width: none;
    padding: 0;
  }
  .chapter[data-chapter="5"]::before {
    inset: -60px -70px -50px;
    background: radial-gradient(ellipse, #efeee8f5 0%, #efeee8dd 40%, #efeee800 75%);
  }
  .chapter[data-chapter="5"] h2 {
    font-size: 23px;
    line-height: 1.4;
  }
  .chapter[data-chapter="5"] h2 br {
    display: none;
  }
  .chapter[data-chapter="5"] .chapter-kicker {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .chapter[data-chapter="5"] .chapter-copy {
    font-size: 11px;
    line-height: 1.8;
    margin-top: 12px;
  }
  .chapter[data-chapter="5"] .chapter-copy br {
    display: none;
  }
  .archive-chat {
    left: 6%;
    right: 6%;
    top: auto;
    bottom: 3%;
    width: auto;
    height: 61%;
    max-height: none;
    padding: 16px 18px 13px;
  }
  .archive-panel-top {
    font-size: 8px;
    padding-bottom: 10px;
  }
  .archive-console-heading {
    margin: 14px 0;
  }
  .archive-console-title {
    font-size: 25px;
  }
  .archive-console-heading > span {
    font-size: 8px;
  }
  .archive-selection {
    padding-bottom: 8px;
  }
  .archive-selection h3 {
    font-size: 14px;
    margin-top: 4px;
  }
  .archive-selection small {
    font-size: 9px;
  }
  .connection-state {
    font-size: 9px;
  }
  .archive-tabs {
    gap: 10px;
  }
  .archive-tabs button {
    min-height: 38px;
    font-size: 10px;
    padding: 7px 0 10px;
  }
  .archive-tabs button span {
    font-size: 8px;
  }
  .archive-dialogue {
    padding-top: 16px;
  }
  .archive-message {
    font-size: 12px;
    line-height: 1.8;
  }
  .archive-message small {
    font-size: 8px;
  }
  .archive-message p {
    margin-top: 9px;
  }
  .archive-message.human {
    padding-bottom: 16px;
  }
  .archive-message.assistant {
    padding-top: 16px;
  }
  .archive-message.assistant p {
    font-size: 12px;
    line-height: 1.9;
  }
  .archive-evidence {
    font-size: 9px;
    margin-top: 16px;
  }
  .archive-demo-note {
    font-size: 8px;
    padding: 8px 0;
  }
  .archive-composer {
    padding: 5px 0;
  }
  .archive-composer input {
    font-size: 12px;
  }
  .archive-composer button {
    width: 38px;
    height: 38px;
  }
}
@media (max-height: 700px) {
  .archive-console-heading {
    margin: 12px 0;
  }
  .archive-console-title {
    font-size: 26px;
  }
  .archive-selection {
    padding-bottom: 9px;
  }
  .archive-dialogue {
    padding-top: 14px;
  }
  .archive-message.human {
    padding-bottom: 14px;
  }
  .archive-message.assistant {
    padding-top: 14px;
  }
  .archive-chat {
    padding-top: 15px;
    padding-bottom: 12px;
  }
  .archive-panel-top {
    padding-bottom: 10px;
  }
  .archive-demo-note {
    padding-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .archive-tabs button::after {
    transition: none;
  }
}

/* Interface specimen: public capabilities, tactile inspection, no implementation recipe. */
.chapter[data-chapter="4"] {
  top: 20%;
  max-width: 390px;
}
.chapter[data-chapter="4"] h2 {
  font-size: clamp(28px, 2.5vw, 40px);
}
.adapter-details {
  position: absolute;
  z-index: 4;
  left: 6.3%;
  top: 46%;
  width: 31%;
  max-width: 390px;
  opacity: 0;
  visibility: hidden;
  color: #30382e;
  font-family: Noto, sans-serif;
}
.adapter-id {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #4c5746;
  padding-top: 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.adapter-id > span:first-child {
  font:
    25px Outfit,
    sans-serif;
  letter-spacing: 0.05em;
}
.adapter-id i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #758b67;
  margin-right: 7px;
}
.adapter-metadata {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 22px 0;
}
.adapter-metadata dt {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #828679;
}
.adapter-metadata dd {
  margin: 6px 0 0;
  font-size: 12px;
}
.adapter-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid #a7ac9b80;
}
.adapter-tabs button {
  position: relative;
  min-height: 38px;
  padding: 0 0 9px;
  border: 0;
  background: none;
  font:
    11px Noto,
    sans-serif;
  color: #929486;
  cursor: pointer;
}
.adapter-tabs button span {
  font:
    9px Outfit,
    sans-serif;
  margin-right: 10px;
}
.adapter-tabs button[aria-pressed="true"] {
  color: #313e2d;
}
.adapter-tabs button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  bottom: -1px;
  background: #4b5c42;
}
.adapter-summary {
  font-size: 12px;
  line-height: 2;
  min-height: 75px;
  color: #636b5d;
  margin: 17px 0 20px;
  letter-spacing: 0.025em;
}
.adapter-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}
.adapter-actions button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 12px 0;
  font:
    11px Noto,
    sans-serif;
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid #9ca58e;
  background: none;
}
.adapter-actions button:first-child {
  flex: 1;
  padding: 13px 14px;
  background: #35422f;
  color: #f1f0e8;
}
.adapter-actions button:hover {
  color: #80936f;
}
.adapter-actions button span {
  font-size: 17px;
}
.adapter-view {
  position: absolute;
  z-index: 3;
  left: 44%;
  right: 6%;
  top: 22%;
  bottom: 12%;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  opacity: 0;
  visibility: hidden;
  color: #808776;
  font:
    9px Outfit,
    Noto,
    sans-serif;
  letter-spacing: 0.12em;
  border-top: 1px solid #b8bda866;
  border-bottom: 1px solid #b8bda866;
}
.adapter-view.dragging {
  cursor: grabbing;
}
.adapter-view::before,
.adapter-view::after {
  content: "+";
  font:
    17px Outfit,
    sans-serif;
  position: absolute;
  top: -11px;
  color: #8b947d;
}
.adapter-view::before {
  left: -6px;
}
.adapter-view::after {
  right: -6px;
}
.adapter-view-top,
.adapter-view-bottom {
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: 12px;
  right: 12px;
  pointer-events: none;
}
.adapter-view-top {
  top: 15px;
}
.adapter-view-bottom {
  bottom: 15px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.adapter-view-bottom span:last-child {
  font:
    16px Outfit,
    sans-serif;
}
.adapter-scan {
  position: absolute;
  top: 20%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #85987566, transparent);
  animation: specimen-scan 6s ease-in-out infinite;
  pointer-events: none;
}
.adapter-view[aria-hidden="true"] .adapter-scan {
  animation-play-state: paused;
}
@keyframes specimen-scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }
  20%,
  70% {
    opacity: 0.7;
  }
  85% {
    transform: translateY(220px);
    opacity: 0;
  }
}
@media (max-width: 1050px) and (min-width: 701px) {
  .adapter-details {
    width: 35%;
  }
  .chapter[data-chapter="4"] {
    top: 17%;
  }
  .chapter[data-chapter="4"] h2 {
    font-size: 28px;
  }
  .adapter-details {
    top: 44%;
  }
  .adapter-metadata {
    gap: 12px;
  }
  .adapter-summary {
    font-size: 11px;
    margin-bottom: 14px;
  }
  .adapter-actions {
    gap: 10px;
  }
  .adapter-actions button {
    gap: 8px;
  }
}
@media (max-width: 700px) {
  .chapter[data-chapter="4"] {
    top: 11%;
    left: 7%;
    max-width: 86%;
  }
  .chapter[data-chapter="4"] h2 {
    font-size: 24px;
  }
  .chapter[data-chapter="4"] h2 br {
    display: none;
  }
  .chapter[data-chapter="4"] .chapter-copy {
    margin-top: 10px;
    font-size: 11px;
  }
  .adapter-view {
    left: 8%;
    right: 8%;
    top: 28%;
    bottom: 37%;
  }
  .adapter-view-top {
    font-size: 7px;
    top: 10px;
  }
  .adapter-view-bottom {
    font-size: 8px;
    bottom: 10px;
  }
  .adapter-details {
    left: 7%;
    right: 7%;
    top: auto;
    bottom: 4%;
    width: auto;
    max-width: none;
  }
  .adapter-id {
    padding-top: 10px;
  }
  .adapter-id > span:first-child {
    font-size: 20px;
  }
  .adapter-id > span:last-child {
    font-size: 9px;
  }
  .adapter-metadata {
    margin: 12px 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .adapter-metadata dt {
    font-size: 8px;
  }
  .adapter-metadata dd {
    font-size: 10px;
  }
  .adapter-tabs button {
    min-height: 30px;
    font-size: 10px;
  }
  .adapter-summary {
    min-height: 44px;
    font-size: 10px;
    line-height: 1.8;
    margin: 10px 0;
  }
  .adapter-actions button {
    font-size: 10px;
    padding: 8px 0;
  }
  .adapter-actions button:first-child {
    padding: 10px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .adapter-scan {
    animation: none;
    display: none;
  }
}

.adapter-actions {
  gap: 14px;
}
.adapter-actions button {
  gap: 8px;
  white-space: nowrap;
}

header .entry-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding: 0 0 0 15px;
  color: var(--brand-color, #202320);
  font:
    11px Noto,
    sans-serif;
  text-decoration: none;
  border: 1px solid #89927b55;
  background: #efeee442;
  transition:
    background 0.25s,
    border-color 0.25s;
}
header .entry-meta {
  font:
    8px Outfit,
    sans-serif;
  letter-spacing: 0.12em;
  opacity: 0.6;
  padding-right: 14px;
  border-right: 1px solid #89927b55;
}
header .entry-arrow {
  display: grid;
  place-items: center;
  width: 43px;
  align-self: stretch;
  border-left: 1px solid #89927b55;
  font:
    22px Outfit,
    sans-serif;
  transition:
    background 0.25s,
    color 0.25s;
}
header .entry-link:hover {
  border-color: #68765b;
  background: #eeeee4b0;
}
header .entry-link:hover .entry-arrow {
  background: #303b2f;
  color: #f5f4eb;
}
header .entry-link:focus-visible {
  outline: 2px solid #7e8b65;
  outline-offset: 5px;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(100deg, #e9e8df, #f4f3ec);
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.52s cubic-bezier(0.76, 0, 0.24, 1);
}
.access-leaving body::after {
  clip-path: inset(0);
}
@media (max-width: 700px) {
  header .entry-link {
    gap: 12px;
    padding-left: 12px;
    font-size: 10px;
  }
  header .entry-meta {
    display: none;
  }
  header .entry-arrow {
    width: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body::after {
    transition: none;
  }
}

/* On phones the presentation layer must never become the touch scroll target. */
@media (pointer: coarse) {
  #stage,
  .adapter-view {
    pointer-events: none;
  }
}
