/* Full-screen editorial presentation. No framework, external fonts or scroll interception. */
:root {
  --paper: #f2f0e9;
  --ink: #25382f;
  --muted: #626b61;
  --line: #ccd0c3;
  --accent: #b9412d;
  --ease: cubic-bezier(0.22, 0.8, 0.22, 1);
  --edge: clamp(18px, 3vw, 58px);
  font-family:
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.65s;
}
body[data-view="fde"] {
  --paper: #efeff2;
  --ink: #30374c;
  --muted: #616778;
  --line: #cbd0dc;
  --accent: #565da0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
}
a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
  opacity: 0.38;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  display: block;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: #d9dfba;
  color: #25382f;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  padding: 14px;
  color: white;
  background: var(--ink);
  z-index: 100;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.app-shell {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: grid;
  grid-template-rows: clamp(46px, 6.5dvh, 76px) minmax(0, 1fr) 30dvh;
  padding: 0 var(--edge) max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.07em;
}
.brand > svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.brand-divider {
  padding-inline: 13px;
  color: #8b9283;
}
.brand-en,
.edition {
  font-size: 9px;
  letter-spacing: 0.1em;
}
.masthead-right {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
}
.edition {
  margin-left: 26px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  outline: none;
}
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(24px, 3.7vw, 80px);
  padding: clamp(20px, 3.2dvh, 46px) clamp(6px, 1.7vw, 32px);
  overflow: hidden;
}
.scene-copy {
  min-width: 0;
  align-self: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--muted);
}
.line-mark {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
h1 {
  margin-top: clamp(16px, 2.7dvh, 34px);
  font-size: clamp(38px, 5.65vw, 102px);
  line-height: 1.13;
  font-weight: 500;
  letter-spacing: -0.065em;
}
h1 > span {
  display: block;
}
.accent {
  color: var(--accent);
}
.intro {
  font-size: clamp(14px, 1.12vw, 19px);
  line-height: 1.85;
  color: var(--muted);
  margin-top: clamp(16px, 2.7dvh, 34px);
}
.scene-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 36px);
  margin-top: clamp(18px, 3.2dvh, 40px);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 46px;
  padding: 12px 18px;
  font-size: 12px;
  border-radius: 3px;
  line-height: 1.4;
  transition:
    transform 0.3s var(--ease),
    background 0.3s;
}
.button-dark {
  color: #fafbf3;
  background: var(--ink);
}
.button-dark:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.text-link {
  min-height: 44px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.text-link:hover {
  color: var(--accent);
}
.text-link .icon {
  width: 17px;
  height: 17px;
}
.copy-foot {
  margin-top: clamp(20px, 4.5dvh, 52px);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.work-stage,
.knowledge-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 16px minmax(0, 1fr) auto 44px;
  gap: clamp(7px, 1.1dvh, 14px);
}
.work-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.work-art {
  min-height: 0;
  position: relative;
  isolation: isolate;
}
.art-disc {
  position: absolute;
  width: min(78%, 40dvh);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #e1e4d4;
  border: 1px solid #d4dbc9;
  z-index: -1;
  transition: background-color 0.7s;
}
.art-disc:after {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid #ccd2bf77;
  border-radius: 50%;
}
.work-stage[data-work="1"] .art-disc {
  background: #e3dfe9;
  border-color: #d2cddc;
}
.work-stage[data-work="2"] .art-disc {
  background: #dfe6dc;
  border-color: #c7d7c9;
}
.art-number {
  position: absolute;
  right: -5px;
  top: -10px;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px #a4ae9d66;
  font:
    400 clamp(110px, 15vw, 230px)/1 Georgia,
    serif;
  letter-spacing: -0.08em;
}
.object-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  outline-offset: -6px;
}
.object-art {
  width: 100%;
  height: 100%;
  max-width: 780px;
  overflow: visible;
  filter: drop-shadow(0 13px 9px #293e2d12);
  transition: transform 0.65s var(--ease);
}
.object-link:hover .object-art {
  transform: translateY(-5px) rotate(-2deg);
}
.object-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--muted);
  pointer-events: none;
}
.work-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}
.work-caption span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.work-caption h2 {
  font-size: clamp(17px, 1.6vw, 26px);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: -0.03em;
}
.round-link,
.close-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    background 0.25s,
    color 0.25s;
}
.round-link:hover,
.close-button:hover {
  background: var(--ink);
  color: var(--paper);
}
.work-picker,
.flow-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  gap: 12px;
}
.work-picker button,
.flow-picker button {
  position: relative;
  min-width: 0;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  text-align: left;
  color: var(--muted);
}
.work-picker button:before,
.flow-picker button:before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.work-picker button[aria-pressed="true"],
.flow-picker button[aria-pressed="true"] {
  color: var(--accent);
}
.work-picker button[aria-pressed="true"]:before,
.flow-picker button[aria-pressed="true"]:before {
  transform: scaleX(1);
}
.work-picker button span,
.flow-picker button span {
  font-size: 9px;
  opacity: 0.8;
}
/* The primary navigation occupies thirty percent of the viewport. */
.surface-tabs {
  position: relative;
  isolation: isolate;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  border-radius: 4px;
}
.tab-indicator {
  position: absolute;
  z-index: -1;
  inset: -1px auto -1px -1px;
  width: calc(50% + 1px);
  background: var(--ink);
  border-radius: 4px;
  transition:
    transform 0.7s var(--ease),
    background-color 0.7s;
  pointer-events: none;
}
body[data-view="fde"] .tab-indicator {
  transform: translateX(100%);
}
.surface-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: clamp(18px, 2.7dvh, 36px) clamp(20px, 3vw, 58px);
  text-align: left;
  color: var(--ink);
  transition: color 0.45s;
}
.surface-tab[aria-selected="true"] {
  color: #f2f0e4;
}
.surface-tab:focus-visible {
  outline-offset: -7px;
  outline-color: var(--accent);
}
.surface-tab[aria-selected="true"]:focus-visible {
  outline-color: #e1e9a8;
}
.tab-top,
.tab-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.tab-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.03em;
  font-size: 9px;
  opacity: 0.85;
}
.selected-dot {
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.surface-tab[aria-selected="true"] .selected-dot {
  background: #d8e78f;
  border-color: #d8e78f;
}
.tab-title {
  display: flex;
  gap: 2px;
  align-items: center;
  font-size: clamp(32px, 6.1vw, 116px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.08em;
  transition: transform 0.6s var(--ease);
}
.latin {
  font-family: Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.065em;
}
.tab-flower,
.tab-squares {
  margin-left: auto;
  width: clamp(30px, 5.8vw, 100px);
  height: clamp(30px, 5.8vw, 100px);
  flex-shrink: 0;
  transition: transform 0.8s var(--ease);
}
.surface-tab:hover .tab-title {
  transform: translateX(5px);
}
.surface-tab:hover .tab-flower {
  transform: rotate(60deg);
}
.surface-tab:hover .tab-squares {
  transform: rotate(-12deg);
}
.tab-bottom {
  font-size: 8px;
  opacity: 0.8;
}
/* Three tangible paper layers illustrate the knowledge workflow. */
.paper-art {
  min-height: 0;
  position: relative;
  isolation: isolate;
  perspective: 1000px;
}
.paper-orbit {
  position: absolute;
  height: 90%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #bfc3d2;
  border-radius: 50%;
  z-index: -1;
}
.paper-orbit:before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid #cfd2de88;
  border-radius: 50%;
}
.paper {
  position: absolute;
  left: 23%;
  top: 11%;
  width: 56%;
  height: 80%;
  border: 1px solid #c9cdd3;
  border-radius: 4px;
  padding: clamp(14px, 1.5vw, 30px);
  transform-origin: 50% 85%;
  box-shadow: 0 12px 20px -13px #2d344d55;
  transition: transform 0.8s var(--ease);
  overflow: hidden;
}
.paper-back {
  background: #bccbbb;
  transform: translate(-20%, -2%) rotate(-17deg);
}
.paper-middle {
  background: #cecade;
  transform: translate(18%, 0) rotate(14deg);
}
.paper-front {
  background: #faf9f3;
  display: flex;
  flex-direction: column;
  transform: rotate(-5deg);
}
.paper-art[data-step="1"] .paper-back {
  transform: translate(-27%, 0) rotate(-23deg);
}
.paper-art[data-step="1"] .paper-middle {
  transform: translate(26%, 0) rotate(22deg);
}
.paper-art[data-step="1"] .paper-front {
  transform: rotate(0);
}
.paper-art[data-step="2"] .paper-back {
  transform: translate(-9%, -4%) rotate(-6deg);
}
.paper-art[data-step="2"] .paper-middle {
  transform: translate(9%, -2%) rotate(6deg);
}
.paper-art[data-step="2"] .paper-front {
  transform: rotate(0) translateY(3%);
}
.paper-top {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  color: #60697c;
}
.paper-top > span:last-child {
  margin-left: auto;
  font-family: Georgia, serif;
  font-size: 22px;
}
.paper-title {
  margin-top: auto;
  margin-bottom: 14px;
  padding-top: 14px;
  font-size: clamp(16px, 1.8vw, 31px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.04em;
}
.paper-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: auto;
}
.paper-tags span {
  font-size: 8px;
  background: #edeef0;
  padding: 5px 6px;
  border-radius: 2px;
}
.paper-bottom {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #d7d9d6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 6px;
  letter-spacing: 0.07em;
  color: #686c74;
}
.paper-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8b9380;
}
.paper-grid {
  height: 90%;
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, #81957d77 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 30px, #81957d77 31px 32px);
}
.paper-lines {
  height: 90%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 20px,
    #9691ad77 21px 22px
  );
}
.flow-description {
  min-height: 42px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 6px;
}
/* On-demand content is paginated, never appended below the full-screen view. */
.overlay {
  color: var(--ink);
  background: var(--paper);
  width: min(1060px, calc(100vw - 64px));
  height: min(800px, calc(100dvh - 64px));
  max-height: none;
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: clamp(22px, 3vw, 44px);
  overflow: hidden;
  box-shadow: 0 24px 100px #14241d44;
}
.overlay[open] {
  display: grid;
}
.overlay::backdrop {
  background: #16231bc4;
  backdrop-filter: blur(9px);
}
.library {
  grid-template-rows: auto auto 24px minmax(0, 1fr) auto auto;
  gap: 17px;
}
.overlay-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.overlay-header h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  margin-top: 9px;
  letter-spacing: -0.04em;
}
.overlay-header .eyebrow {
  font-size: 9px;
}
.library-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px 135px;
  gap: 10px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #aeb5a7;
  border-radius: 3px;
  min-width: 0;
  background: #ffffff55;
}
.search-field input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: 14px;
  outline: none;
}
.search-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-field input::placeholder {
  color: #6b7169;
}
.select-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #aeb5a7;
  border-radius: 3px;
  font-size: 12px;
  padding: 0 8px;
  background: #ffffff55;
}
.library-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.library-status button {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 11px;
  padding: 8px;
}
.library-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  min-height: 0;
  gap: 0 28px;
}
.note-row {
  min-width: 0;
  min-height: 85px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.note-row:hover h3 {
  color: var(--accent);
}
.note-index {
  font-size: 9px;
  color: var(--muted);
  font-family: monospace;
}
.note-row h3 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.note-row p {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.note-row .icon {
  width: 17px;
  height: 17px;
}
.library-empty {
  grid-row: 4;
  align-self: center;
  text-align: center;
}
.library-empty h3 {
  font-size: 22px;
  font-weight: 500;
}
.library-empty p {
  margin: 13px 0 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 11px;
}
.pagination > div {
  display: flex;
  gap: 10px;
}
.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
}
.pagination button:not(:disabled):hover {
  background: var(--ink);
  color: var(--paper);
}
.previous {
  transform: rotate(180deg);
}
.library-info {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.library-info a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.field-notes {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 24px;
  max-width: 900px;
}
.field-page {
  align-self: center;
  padding: 12px 0;
  min-height: 0;
}
.field-page h3 {
  margin-top: 20px;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.04em;
  max-width: 20em;
}
.field-page > p:last-child {
  margin-top: 22px;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 2;
  color: var(--muted);
  max-width: 38em;
  white-space: pre-line;
}
.field-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.noscript-note {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: #fff2ca;
  color: #2b3026;
  text-align: center;
  font-size: 12px;
  z-index: 50;
}
.noscript-note a {
  text-decoration: underline;
}
@media (min-width: 2000px) {
  .eyebrow {
    font-size: 14px;
  }
  .intro {
    font-size: 22px;
  }
  .button,
  .text-link {
    font-size: 15px;
    min-height: 54px;
  }
  .copy-foot,
  .work-heading,
  .tab-top {
    font-size: 12px;
  }
  .work-picker button,
  .flow-picker button {
    font-size: 14px;
  }
  .work-stage,
  .knowledge-stage {
    grid-template-rows: 20px minmax(0, 1fr) auto 54px;
  }
}
@media (max-width: 1000px) {
  .brand-en,
  .brand-divider {
    display: none;
  }
  .scene {
    gap: 20px;
    padding-inline: 4px;
  }
  h1 {
    font-size: clamp(36px, 5.8vw, 56px);
  }
  .scene-actions {
    gap: 16px;
  }
  .button {
    padding-inline: 13px;
    gap: 12px;
  }
  .copy-foot {
    max-width: 20em;
    line-height: 1.8;
  }
  .work-picker,
  .flow-picker {
    gap: 8px;
  }
  .work-picker button,
  .flow-picker button {
    gap: 5px;
    font-size: 10px;
  }
  .tab-bottom > span:last-child {
    display: none;
  }
  .tab-title {
    font-size: clamp(34px, 6.2vw, 64px);
  }
  .paper {
    padding: 14px;
    width: 61%;
    left: 20%;
  }
  .paper-title {
    font-size: 19px;
  }
}
@media (max-width: 699px) and (min-height: 501px) {
  :root {
    --edge: 18px;
  }
  .app-shell {
    grid-template-rows: 45px minmax(0, 1fr) 28dvh;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .masthead {
    gap: 8px;
  }
  .brand {
    font-size: 11px;
    gap: 6px;
  }
  .brand > svg {
    width: 23px;
  }
  .masthead-right {
    font-size: 9px;
  }
  .edition {
    display: none;
  }
  .scene {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding: 18px 1px 12px;
  }
  .eyebrow {
    font-size: 9px;
    gap: 6px;
  }
  .line-mark {
    width: 15px;
  }
  h1 {
    font-size: clamp(27px, 8.2vw, 50px);
    line-height: 1.3;
    margin-top: 10px;
    letter-spacing: -0.06em;
  }
  h1 > span {
    display: inline;
  }
  .intro {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.65;
  }
  .desktop-break {
    display: none;
  }
  .scene-actions {
    margin-top: 13px;
    gap: 20px;
  }
  .button,
  .text-link {
    font-size: 11px;
    min-height: 42px;
  }
  .button {
    padding: 10px 13px;
    gap: 16px;
  }
  .copy-foot {
    display: none;
  }
  .work-stage,
  .knowledge-stage {
    grid-template-rows: minmax(0, 1fr) auto 40px;
    gap: 6px;
  }
  .work-heading {
    display: none;
  }
  .art-disc {
    width: min(65%, 25dvh);
  }
  .art-disc:after {
    inset: -10px;
  }
  .art-number {
    font-size: 108px;
    top: -4px;
    right: 12px;
  }
  .object-caption {
    font-size: 7px;
  }
  .work-caption {
    padding-top: 0;
  }
  .work-caption span {
    font-size: 8px;
  }
  .work-caption h2 {
    font-size: 17px;
    margin-top: 3px;
  }
  .round-link {
    width: 36px;
    height: 36px;
  }
  .work-picker,
  .flow-picker {
    gap: 10px;
  }
  .work-picker button,
  .flow-picker button {
    font-size: 10px;
    gap: 7px;
  }
  .surface-tab {
    padding: 17px 14px;
    gap: 6px;
  }
  .tab-top {
    font-size: 9px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .tab-state {
    font-size: 8px;
  }
  .tab-title {
    font-size: clamp(25px, 7.5vw, 48px);
    gap: 0;
  }
  .tab-flower,
  .tab-squares {
    display: none;
  }
  .tab-bottom {
    font-size: 6px;
    letter-spacing: 0.04em;
  }
  .paper {
    width: 55%;
    left: 23%;
    padding: 12px;
    height: 80%;
  }
  .paper-title {
    font-size: 17px;
    padding-top: 7px;
    margin-bottom: 10px;
  }
  .paper-top {
    font-size: 8px;
    gap: 7px;
  }
  .paper-top > span:last-child {
    font-size: 18px;
  }
  .paper-bottom {
    margin-top: 7px;
    padding-top: 6px;
  }
  .flow-description {
    font-size: 11px;
    min-height: 32px;
    padding-top: 0;
  }
  .overlay {
    width: calc(100vw - 20px);
    height: calc(100dvh - 24px);
    padding: 20px 16px;
  }
  .library {
    gap: 12px;
    grid-template-rows: auto auto 24px minmax(0, 1fr) auto auto;
  }
  .overlay-header h2 {
    font-size: 26px;
  }
  .library-tools {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .search-field input {
    font-size: 16px;
  }
  .search-field input::placeholder {
    font-size: 12px;
  }
  .select-field select {
    min-height: 40px;
  }
  .library-results {
    grid-template-columns: minmax(0, 1fr);
  }
  .note-row {
    grid-template-columns: 25px minmax(0, 1fr) 18px;
    gap: 8px;
    min-height: 86px;
    padding-block: 12px;
  }
  .note-row h3 {
    font-size: 13px;
  }
  .pagination button {
    padding: 8px 10px;
    gap: 5px;
  }
  .pagination {
    padding-top: 9px;
  }
  .library-info {
    font-size: 9px;
  }
  .field-notes {
    gap: 18px;
  }
  .field-page h3 {
    font-size: 24px;
    margin-top: 15px;
  }
  .field-page > p:last-child {
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.9;
  }
}
@media (max-width: 699px) and (min-height: 501px) and (max-height: 680px) {
  .scene {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  h1 {
    margin-top: 6px;
  }
  .intro {
    font-size: 11px;
    margin-top: 5px;
  }
  .scene-actions {
    margin-top: 7px;
  }
  .work-caption h2 {
    font-size: 15px;
  }
  .object-caption {
    display: none;
  }
  .paper {
    top: 8%;
    height: 85%;
    padding: 9px;
  }
  .paper-title {
    font-size: 13px;
    line-height: 1.5;
    padding-top: 4px;
    margin: auto 0 6px;
  }
  .paper-top .icon,
  .paper-bottom {
    display: none;
  }
  .paper-tags span {
    font-size: 6px;
    padding: 3px;
  }
  .surface-tab {
    padding: 14px 11px;
  }
}
@media (max-height: 500px) {
  :root {
    --edge: 18px;
  }
  .app-shell {
    grid-template-rows: 35px minmax(0, 1fr) 28dvh;
    padding-bottom: 9px;
  }
  .brand-en,
  .brand-divider,
  .edition {
    display: none;
  }
  .brand {
    font-size: 10px;
  }
  .brand > svg {
    height: 22px;
  }
  .masthead-right {
    font-size: 9px;
  }
  .scene {
    padding: 12px 4px;
    gap: 22px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .line-mark {
    width: 12px;
  }
  h1 {
    font-size: clamp(24px, 4.2vw, 50px);
    margin-top: 7px;
    line-height: 1.1;
  }
  .intro {
    font-size: 10px;
    line-height: 1.6;
    margin-top: 9px;
  }
  .desktop-break {
    display: none;
  }
  .scene-actions {
    margin-top: 10px;
    gap: 12px;
  }
  .button,
  .text-link {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 10px;
    gap: 6px;
  }
  .text-link {
    padding-inline: 0;
  }
  .button .icon,
  .text-link .icon {
    width: 15px;
    height: 15px;
  }
  .copy-foot,
  .work-heading,
  .object-caption {
    display: none;
  }
  .work-stage,
  .knowledge-stage {
    grid-template-rows: minmax(0, 1fr) auto 30px;
    gap: 4px;
  }
  .work-caption {
    padding-top: 0;
  }
  .work-caption > div > span {
    display: none;
  }
  .work-caption h2 {
    font-size: 13px;
    margin-top: 0;
  }
  .round-link {
    width: 28px;
    height: 28px;
  }
  .round-link .icon {
    width: 16px;
    height: 16px;
  }
  .work-picker button,
  .flow-picker button {
    font-size: 9px;
    padding-block: 5px;
    gap: 5px;
  }
  .art-disc {
    width: min(70%, 34dvh);
  }
  .art-number {
    font-size: 90px;
  }
  .tab-title {
    font-size: clamp(27px, 5vw, 58px);
  }
  .surface-tab {
    padding: 12px 20px;
    gap: 3px;
  }
  .tab-top,
  .tab-state {
    font-size: 8px;
  }
  .tab-bottom {
    display: none;
  }
  .tab-flower,
  .tab-squares {
    width: 35px;
    height: 35px;
  }
  .paper {
    height: 88%;
    top: 5%;
    padding: 8px 12px;
  }
  .paper-top {
    font-size: 6px;
    gap: 6px;
  }
  .paper-top > span:last-child {
    font-size: 12px;
  }
  .paper-top .icon,
  .paper-bottom {
    display: none;
  }
  .paper-title {
    font-size: 13px;
    padding-top: 3px;
    margin-bottom: 5px;
    line-height: 1.45;
  }
  .paper-tags span {
    padding: 3px;
    font-size: 6px;
  }
  .flow-description {
    min-height: 24px;
    font-size: 9px;
    padding: 0;
  }
  .overlay {
    width: calc(100vw - 32px);
    height: calc(100dvh - 20px);
    padding: 14px 20px;
  }
  .overlay-header .eyebrow {
    display: none;
  }
  .overlay-header h2 {
    font-size: 22px;
    margin: 0;
  }
  .close-button {
    width: 32px;
    height: 32px;
  }
  .library {
    gap: 7px;
    grid-template-rows: 32px 36px 20px minmax(0, 1fr) 40px auto;
  }
  .library-tools {
    grid-template-columns: minmax(0, 1fr) 125px 115px;
  }
  .select-field select,
  .search-field input {
    min-height: 34px;
    font-size: 11px;
  }
  .note-row {
    min-height: 62px;
    padding-block: 7px;
  }
  .note-row h3 {
    font-size: 11px;
  }
  .note-row p {
    font-size: 8px;
    margin-top: 3px;
  }
  .pagination {
    padding-top: 5px;
  }
  .pagination button {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 11px;
  }
  .library-info {
    font-size: 8px;
  }
  .field-notes {
    gap: 10px;
    grid-template-rows: 32px minmax(0, 1fr) 40px auto;
  }
  .field-page {
    padding: 4px 0;
  }
  .field-page h3 {
    font-size: 20px;
    margin-top: 8px;
  }
  .field-page > p:last-child {
    font-size: 12px;
    line-height: 1.7;
    margin-top: 10px;
  }
  .field-source {
    font-size: 8px;
  }
}
@media (max-height: 500px) and (max-width: 600px) {
  :root {
    --edge: 12px;
  }
  .scene {
    gap: 12px;
  }
  .scene-copy .eyebrow {
    letter-spacing: 0;
    font-size: 7px;
  }
  h1 {
    font-size: 24px;
  }
  .intro {
    font-size: 9px;
    margin-top: 6px;
  }
  .scene-actions {
    gap: 6px;
    margin-top: 7px;
  }
  .scene-actions .button {
    padding: 7px;
    font-size: 9px;
  }
  .scene-actions .button .icon {
    display: none;
  }
  .text-link {
    font-size: 9px;
    gap: 3px;
  }
  .work-picker button,
  .flow-picker button {
    font-size: 8px;
    gap: 2px;
  }
  .work-picker button span,
  .flow-picker button span {
    display: none;
  }
  .paper-title {
    font-size: 10px;
  }
  .paper-tags {
    gap: 2px;
  }
  .paper-tags span {
    padding: 2px;
    font-size: 5px;
  }
  .paper {
    padding: 7px;
  }
  .tab-title {
    font-size: 28px;
  }
  .surface-tab {
    padding-inline: 12px;
  }
  .tab-flower,
  .tab-squares {
    width: 25px;
    height: 25px;
  }
  .library-tools {
    grid-template-columns: minmax(0, 1fr) 90px 88px;
    gap: 5px;
  }
  .search-field {
    padding-inline: 6px;
    gap: 3px;
  }
  .search-field .icon {
    width: 15px;
    height: 15px;
  }
  .search-field input::placeholder {
    font-size: 9px;
  }
  .library-results {
    gap: 0 10px;
  }
  .note-row {
    grid-template-columns: 18px minmax(0, 1fr) 14px;
    gap: 5px;
  }
  .note-row .icon {
    width: 14px;
  }
  .field-page h3 {
    font-size: 17px;
  }
  .field-page > p:last-child {
    font-size: 10px;
    line-height: 1.7;
    margin-top: 7px;
  }
}
/* Keep decorative rings inside their visual slot, including short mobile screens. */
.work-art {
  container-type: size;
}
.art-disc {
  width: min(74cqw, 85cqh);
}
.overlay-header h2 {
  text-wrap: balance;
}
/* Size the paper composition by BOTH available dimensions, not viewport width alone. */
.paper-art {
  container-type: size;
}
.paper-composition {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100cqw, 140cqh);
  height: min(100cqh, 71.4cqw);
  transform: translate(-50%, -50%);
  container: paper / size;
}
.paper {
  width: 54%;
  left: 23%;
  height: 80%;
  top: 10%;
  padding: min(4cqw, 5cqh);
}
.paper-top {
  flex-shrink: 0;
  font-size: clamp(6px, 1.7cqw, 10px);
}
.paper-title {
  flex-shrink: 0;
  font-size: clamp(8px, min(4cqw, 7.2cqh), 30px);
  line-height: 1.55;
  padding-top: 2cqh;
  margin-top: auto;
  margin-bottom: 3cqh;
}
.paper-tags {
  flex-shrink: 0;
}
.paper-tags span {
  font-size: clamp(6px, 1.5cqw, 9px);
  padding: 1cqh 1cqw;
}
.paper-bottom {
  flex-shrink: 0;
  margin-top: 3cqh;
  padding-top: 2cqh;
  font-size: clamp(5px, 1.1cqw, 7px);
}
.paper-art[data-step="1"] .paper-back {
  transform: translate(-17%, 0) rotate(-16deg);
}
.paper-art[data-step="1"] .paper-middle {
  transform: translate(17%, 0) rotate(16deg);
}
@container paper (max-height: 230px) {
  .paper-bottom {
    display: none;
  }
  .paper-title {
    margin-top: auto;
  }
}
@container paper (max-height: 155px) {
  .paper-tags {
    display: none;
  }
  .paper-top .icon {
    display: none;
  }
  .paper-top > span:last-child {
    font-size: 12px;
  }
  .paper-title {
    margin-bottom: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
