﻿@font-face {
  font-family: "Archive Title CN";
  src: url("./assets/fonts/subsets/ArchiveTitleCN-subset.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Archive Weird CN";
  src: url("./assets/fonts/subsets/ArchiveWeirdCN-subset.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Archive Hand CN";
  src: url("./assets/fonts/subsets/ArchiveHandCN-subset.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Archive Roman";
  src: url("./assets/fonts/subsets/ArchiveRoman-subset.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #11100e;
  --bg-soft: #1a1713;
  --panel: rgba(36, 30, 24, 0.78);
  --paper: #e8ddc4;
  --paper-deep: #c9b98f;
  --text: #f5eddc;
  --muted: #b7aa91;
  --line: rgba(232, 221, 196, 0.18);
  --accent: #b73b2f;
  --accent-2: #836f42;
  --green: #47675b;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
}

body[data-theme="study"] {
  --bg: #171611;
  --bg-soft: #262114;
  --panel: rgba(49, 39, 24, 0.82);
  --paper: #f0e0ba;
  --paper-deep: #d1b36f;
  --text: #fff3d6;
  --muted: #c7b98e;
  --line: rgba(240, 224, 186, 0.2);
  --accent: #a44531;
  --accent-2: #9a7740;
  --green: #536548;
}

body[data-theme="terminal"] {
  --bg: #080d0c;
  --bg-soft: #101917;
  --panel: rgba(16, 27, 24, 0.84);
  --paper: #d9e2d2;
  --paper-deep: #8fb5a3;
  --text: #eff8ed;
  --muted: #a9c0b5;
  --line: rgba(174, 217, 194, 0.2);
  --accent: #c33f34;
  --accent-2: #5b8f7a;
  --green: #2a6858;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  scrollbar-width: none;
}

* {
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(17, 16, 14, 0.86), rgba(18, 14, 11, 0.8)),
    radial-gradient(circle at 18% 12%, rgba(183, 59, 47, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(131, 111, 66, 0.12), transparent 22rem),
    url("./assets/main-archive-bg.webp") center top / cover fixed,
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--text);
  font-family:
    "Noto Serif SC",
    "Songti SC",
    "Microsoft YaHei",
    "PingFang SC",
    serif;
  line-height: 1.7;
}

body.intro-open {
  overflow: hidden;
}

#top,
#notice,
#works,
#author,
#links,
#contact,
#gift-archive {
  scroll-margin-top: 112px;
}

body::before {
  display: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background-image: none;
  mix-blend-mode: overlay;
}

.ambient-documents {
  display: none;
}

.ambient-documents span {
  position: absolute;
  display: block;
  width: 460px;
  height: 320px;
  border: 0;
  background: none;
  filter: blur(0.2px);
  mix-blend-mode: screen;
  opacity: 0.2;
  transform: rotate(-12deg);
}

.ambient-documents span:nth-child(1) {
  top: 14%;
  left: -160px;
}

.ambient-documents span:nth-child(2) {
  right: -180px;
  bottom: 10%;
  width: 620px;
  height: 360px;
  background-image: none;
  opacity: 0.16;
  transform: rotate(13deg);
}

.ambient-documents span:nth-child(3) {
  right: 15%;
  top: 52%;
  width: 560px;
  height: 180px;
  background-image: none;
  opacity: 0.12;
  transform: rotate(-7deg);
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 84px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(64, 31, 25, 0.24), transparent 24rem),
    linear-gradient(180deg, rgba(8, 8, 7, 0.72), rgba(8, 8, 7, 0.9)),
    var(--bg);
  color: var(--paper);
}

.intro-gate[hidden] {
  display: none;
}

.intro-gate::before,
.intro-gate::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.intro-gate::before {
  background:
    url("./assets/hero-gate-bg.webp") center / cover fixed;
  opacity: 0.45;
}

.intro-gate::after {
  opacity: 1;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 16rem, rgba(0, 0, 0, 0.22) 34rem, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 32%, transparent 68%, rgba(0, 0, 0, 0.38)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.34));
  animation: intro-shadow-breathe 7200ms ease-in-out infinite alternate;
}

.intro-gate-vignette {
  position: absolute;
  inset: clamp(16px, 3vw, 36px);
  border: 1px solid rgba(232, 221, 196, 0.13);
  box-shadow:
    inset 0 0 0 1px rgba(183, 59, 47, 0.12),
    inset 0 0 120px rgba(0, 0, 0, 0.52);
  pointer-events: none;
  animation: intro-border-breathe 5200ms ease-in-out infinite;
}

.intro-gate-content {
  --intro-breath-duration: 4600ms;
  --intro-breath-delay: 1400ms;
  --archive-breath-delay: 2300ms;
  --intro-breath-ease: cubic-bezier(0.45, 0, 0.25, 1);

  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(920px, 100%);
  text-align: center;
  animation: intro-content-rise 900ms ease both;
}

.intro-kicker {
  margin: 0 0 18px;
  color: rgba(183, 59, 47, 0.92);
  font-family:
    "Archive Roman",
    "Microsoft YaHei",
    sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-gate h1 {
  max-width: 12em;
  margin: 0;
  color: var(--paper);
  font-family:
    "Archive Weird CN",
    "Archive Title CN",
    "Noto Serif SC",
    "Songti SC",
    serif;
  font-size: clamp(58px, 9vw, 108px);
  font-weight: 400;
  line-height: 1.16;
  text-shadow:
    0 20px 70px rgba(0, 0, 0, 0.78),
    0 0 28px rgba(232, 221, 196, 0.12),
    0 0 18px rgba(183, 59, 47, 0.08);
  animation: intro-title-haunt 4600ms ease-in-out infinite;
}

.intro-lede {
  max-width: 620px;
  margin: 22px 0 34px;
  color: rgba(232, 221, 196, 0.72);
  font-family:
    "Archive Hand CN",
    "Noto Serif SC",
    serif;
  font-size: clamp(16px, 2vw, 20px);
}

.intro-entry-row {
  display: grid;
  grid-template-columns: minmax(56px, 190px) auto minmax(56px, 190px);
  gap: clamp(14px, 3vw, 26px);
  align-items: center;
  width: min(680px, 100%);
}

.intro-bloodline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 59, 47, 0.2), rgba(183, 59, 47, 0.86));
  box-shadow: 0 0 16px rgba(183, 59, 47, 0.25);
  transform-origin: center;
  animation: intro-line-breathe var(--intro-breath-duration) var(--intro-breath-ease) var(--intro-breath-delay) infinite both;
}

.intro-bloodline:last-child {
  background: linear-gradient(90deg, rgba(183, 59, 47, 0.86), rgba(183, 59, 47, 0.2), transparent);
}

.intro-enter-button {
  min-height: 48px;
  padding: 9px 26px;
  border: 1px solid rgba(183, 59, 47, 0.82);
  background:
    linear-gradient(180deg, rgba(183, 59, 47, 0.92), rgba(134, 36, 28, 0.92)),
    var(--accent);
  color: #fff8ea;
  font-family:
    "Archive Title CN",
    "Noto Serif SC",
    serif;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(183, 59, 47, 0.16);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  animation: intro-button-breathe var(--intro-breath-duration) var(--intro-breath-ease) var(--intro-breath-delay) infinite;
}

.intro-enter-button:hover,
.intro-enter-button:focus-visible {
  border-color: rgba(232, 221, 196, 0.42);
  outline: none;
  transform: translateY(-2px);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.5),
    0 0 34px rgba(183, 59, 47, 0.28);
}

.intro-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.intro-side-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: 1px solid rgba(232, 221, 196, 0.18);
  background: rgba(0, 0, 0, 0.16);
  color: rgba(232, 221, 196, 0.76);
  font-family:
    "Archive Title CN",
    "Noto Serif SC",
    serif;
  font-size: 15px;
}

.intro-side-link:hover,
.intro-side-link:focus-visible {
  border-color: rgba(183, 59, 47, 0.64);
  color: var(--paper);
  outline: none;
}

.intro-gate.is-entering {
  pointer-events: none;
  animation: intro-gate-out 980ms ease both;
}

.intro-gate.is-entering .intro-gate-content {
  animation: intro-content-out 820ms ease both;
}

.intro-gate.is-entering .intro-bloodline {
  animation: intro-line-out 760ms ease both;
}

.intro-gate.is-entering .intro-enter-button {
  animation: intro-button-out 620ms ease both;
}

@keyframes intro-content-rise {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes intro-gate-out {
  0% {
    opacity: 1;
    filter: blur(0);
  }

  68% {
    opacity: 1;
    filter: blur(2px);
  }

  100% {
    opacity: 0;
    filter: blur(10px);
  }
}

@keyframes intro-content-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-18px);
  }
}

@keyframes intro-line-out {
  0% {
    opacity: 1;
    transform: scaleX(1);
  }

  45% {
    opacity: 1;
    transform: scaleX(1.18);
  }

  100% {
    opacity: 0;
    transform: scaleX(0.62);
  }
}

@keyframes intro-button-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes intro-shadow-breathe {
  0% {
    opacity: 0.22;
    transform: scale(1);
  }

  100% {
    opacity: 0.38;
    transform: scale(1.04);
  }
}

@keyframes intro-border-breathe {
  0%,
  100% {
    border-color: rgba(232, 221, 196, 0.12);
    box-shadow:
      inset 0 0 0 1px rgba(183, 59, 47, 0.1),
      inset 0 0 100px rgba(0, 0, 0, 0.46);
  }

  50% {
    border-color: rgba(183, 59, 47, 0.26);
    box-shadow:
      inset 0 0 0 1px rgba(183, 59, 47, 0.18),
      inset 0 0 140px rgba(0, 0, 0, 0.58);
  }
}

@keyframes intro-title-haunt {
  0%,
  100% {
    filter: blur(0);
    text-shadow:
      0 20px 70px rgba(0, 0, 0, 0.78),
      0 0 28px rgba(232, 221, 196, 0.12),
      0 0 18px rgba(183, 59, 47, 0.08);
    transform: translateY(0);
  }

  48% {
    filter: blur(0.25px);
    text-shadow:
      0 22px 76px rgba(0, 0, 0, 0.82),
      0 0 34px rgba(232, 221, 196, 0.16),
      0 0 28px rgba(183, 59, 47, 0.14);
    transform: translateY(-1px);
  }
}

@keyframes intro-line-breathe {
  0%,
  100% {
    opacity: 0.62;
    transform: scaleX(0.94);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes intro-button-breathe {
  0%,
  100% {
    box-shadow:
      0 18px 56px rgba(0, 0, 0, 0.42),
      0 0 20px rgba(183, 59, 47, 0.14);
  }

  50% {
    box-shadow:
      0 22px 64px rgba(0, 0, 0, 0.48),
      0 0 34px rgba(183, 59, 47, 0.26);
  }
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(26px);
  transition:
    opacity 760ms ease,
    filter 760ms ease,
    transform 760ms ease;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 13, 11, 0.82);
  backdrop-filter: blur(18px);
}

.auth-actions {
  display: inline-flex;
  justify-self: end;
  gap: 8px;
  align-items: center;
  min-width: max-content;
}

.auth-link,
.leave-archive-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  min-height: 0;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(232, 221, 196, 0.16);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(232, 221, 196, 0.72);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.auth-link-primary {
  border-color: rgba(183, 59, 47, 0.56);
  background: rgba(183, 59, 47, 0.18);
  color: var(--paper);
}

.auth-link:hover,
.auth-link:focus-visible,
.leave-archive-button:hover,
.leave-archive-button:focus-visible {
  border-color: rgba(183, 59, 47, 0.62);
  color: var(--paper);
  outline: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(183, 59, 47, 0.72);
  background:
    radial-gradient(circle at 50% 35%, rgba(242, 230, 205, 0.08), transparent 60%),
    rgba(183, 59, 47, 0.12);
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.link-row a:hover {
  color: var(--paper);
}

.theme-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.theme-button {
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.theme-button.is-active {
  background: var(--accent);
  color: #fff8ea;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  min-height: 720px;
  padding: 58px 0 46px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: var(--paper);
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--paper);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--paper);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-weight: 700;
}

.button.primary {
  border-color: rgba(183, 59, 47, 0.8);
  background: var(--accent);
  color: #fff8ea;
}

.button.ghost,
.link-row a {
  background: rgba(255, 255, 255, 0.04);
}

.archive-table {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(circle at 70% 16%, rgba(232, 221, 196, 0.12), transparent 10rem),
    rgba(20, 17, 14, 0.68);
  box-shadow: var(--shadow);
}

.archive-table::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  background: linear-gradient(120deg, rgba(95, 64, 36, 0.5), rgba(31, 24, 18, 0.9));
  content: "";
}

.archive-table::after {
  display: none;
}

.moon-window {
  position: absolute;
  top: 54px;
  right: 58px;
  width: 146px;
  height: 146px;
  border: 1px solid rgba(232, 221, 196, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(232, 221, 196, 0.18) 49% 51%, transparent 52%),
    linear-gradient(transparent 48%, rgba(232, 221, 196, 0.18) 49% 51%, transparent 52%),
    radial-gradient(circle, rgba(232, 221, 196, 0.26), rgba(232, 221, 196, 0.02) 62%);
  filter: blur(0.1px);
}

.paper-stack {
  position: absolute;
  right: 7%;
  bottom: 12%;
  left: 7%;
  height: 66%;
}

.paper {
  position: absolute;
  border: 1px solid rgba(61, 35, 24, 0.38);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.26), transparent 34%),
    var(--paper);
  color: #251b14;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.paper-main {
  right: 8%;
  bottom: 4%;
  width: min(380px, 84%);
  min-height: 250px;
  padding: 32px;
  transform: rotate(-4deg);
}

.paper-main strong {
  display: block;
  margin: 18px 0 18px;
  font-size: 34px;
  line-height: 1.15;
}

.paper-main small,
.paper-id {
  display: block;
  color: #6e5138;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 13px;
}

.paper-side {
  bottom: 0;
  left: 6%;
  width: 210px;
  min-height: 158px;
  padding: 22px;
  transform: rotate(6deg);
}

.paper-side span {
  display: block;
  color: var(--accent);
  font-weight: 700;
}

.paper-side i {
  display: block;
  margin-top: 14px;
  font-style: normal;
}

.red-seal {
  position: absolute;
  right: 28px;
  bottom: 26px;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 3px double rgba(183, 59, 47, 0.86);
  color: var(--accent);
  font-weight: 800;
  transform: rotate(10deg);
}

.talisman {
  position: absolute;
  top: 0;
  left: 21%;
  display: grid;
  gap: 6px;
  width: 58px;
  padding: 18px 8px;
  background: #c49f4b;
  color: #5a120e;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.24);
  transform: rotate(-8deg);
}

.notice-strip,
.author-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: stretch;
  margin: 0 0 76px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.author-panel::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(183, 59, 47, 0.22);
  pointer-events: none;
  content: "";
  z-index: 0;
}

.notice-strip::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(183, 59, 47, 0.22);
  pointer-events: none;
  content: "";
  z-index: 0;
}

.notice-strip::after,
.author-panel::after {
  display: none;
}

.notice-strip > *,
.author-panel > * {
  position: relative;
  z-index: 1;
}

.featured-case,
.world-section,
.link-hub {
  position: relative;
  margin-bottom: 76px;
}

.world-section::before {
  display: none;
}

.world-section > * {
  position: relative;
  z-index: 1;
}

.featured-case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
}

.featured-dossier,
.featured-reason,
.world-card,
.link-grid a,
.author-seal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.featured-dossier::before,
.featured-reason::before,
.world-card::before,
.link-grid a::before,
.author-seal-card::before,
.modal-block::before,
.work-card::before,
.note-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.featured-dossier::before,
.world-card::before,
.link-grid a::before,
.modal-block::before,
.work-card::before {
  display: none;
}

.featured-dossier::after,
.world-card::after,
.link-grid a::after,
.modal-block::after,
.work-card::after {
  display: none;
}

.featured-dossier > *,
.featured-reason > *,
.world-card > *,
.link-grid a > *,
.author-seal-card > *,
.modal-block > *,
.work-card > * {
  position: relative;
  z-index: 1;
}

.featured-reason::before,
.author-seal-card::before {
  display: none;
}

.featured-dossier::before {
  display: none;
}

.modal-block:nth-child(1)::after {
  display: none;
}

.note-card::after {
  display: none;
}

.featured-dossier {
  padding: clamp(24px, 4vw, 38px);
}

.featured-dossier p {
  color: var(--muted);
}

.featured-reason {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 220px;
  padding: 30px;
}

.featured-reason p {
  margin: 0;
  color: var(--paper);
  font-size: 20px;
}

.small-seal {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.section-break {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin: 0 0 42px;
  color: var(--accent);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.section-break span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  padding: 3px 12px;
  background: transparent;
  text-shadow:
    0 0 10px rgba(17, 16, 14, 0.94),
    0 2px 6px rgba(17, 16, 14, 0.82);
}

.section-break::before,
.section-break::after {
  content: "";
}

.section-break::before {
  position: absolute;
  left: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 59, 47, 0.44), rgba(232, 221, 196, 0.16), transparent);
  opacity: 0.9;
  transform: translateX(-50%);
}

.section-break::after {
  display: none;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.world-card {
  min-height: 260px;
  padding: 28px;
}

.world-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.author-seal-card {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.author-seal-card span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 3px double rgba(183, 59, 47, 0.72);
  color: var(--accent);
  font-weight: 800;
}

.author-seal-card strong {
  color: var(--paper);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
}

.author-seal-card small {
  color: var(--muted);
}

.author-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 16px;
}

.author-keywords span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--paper-deep);
  font-size: 12px;
}

.author-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
}

.author-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.author-stats span {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(232, 221, 196, 0.14);
  background: rgba(0, 0, 0, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.author-stats strong {
  color: var(--paper);
  font-size: 15px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.link-grid a {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  transition:
    border-color 220ms ease,
    transform 220ms ease,
    background 220ms ease;
}

.link-grid a:hover {
  border-color: rgba(183, 59, 47, 0.58);
  background: rgba(42, 32, 25, 0.82);
  transform: translateY(-4px);
}

.link-grid span {
  color: var(--paper);
  font-size: 20px;
  font-weight: 700;
}

.link-grid small {
  color: var(--muted);
}

.gift-archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gift-archive-grid article {
  position: relative;
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 210px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 12%, rgba(183, 59, 47, 0.12), transparent 10rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 36%),
    rgba(17, 13, 10, 0.68);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.gift-archive-grid article::before {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 54px;
  height: 54px;
  border: 2px double rgba(183, 59, 47, 0.42);
  content: "";
  transform: rotate(8deg);
}

.gift-archive-grid span {
  color: var(--paper);
  font-size: 24px;
  font-weight: 700;
}

.gift-archive-grid small {
  color: rgba(232, 221, 196, 0.68);
  font-size: 15px;
  line-height: 1.8;
}

.gift-archive {
  text-align: center;
}

.gift-heading {
  justify-items: center;
  margin-bottom: 10px;
}

.gift-heading h2 {
  font-size: clamp(44px, 6vw, 82px);
}

.gift-archive-panel {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 68px) clamp(18px, 5vw, 70px);
  overflow: visible;
  border: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184, 50, 43, 0.12), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%, rgba(255, 255, 255, 0.018)),
    rgba(8, 7, 6, 0.34);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.24);
}

.gift-archive-panel::before,
.gift-archive-panel::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  content: "";
}

.gift-archive-panel::before {
  top: 0;
  background: linear-gradient(90deg, transparent, rgba(242, 230, 205, 0.2), rgba(184, 50, 43, 0.42), rgba(242, 230, 205, 0.18), transparent);
}

.gift-archive-panel::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(184, 50, 43, 0.2), rgba(242, 230, 205, 0.14), rgba(184, 50, 43, 0.18), transparent);
}

.gift-archive-panel > * {
  position: relative;
  z-index: 1;
}

.gift-date-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-family:
    "Cinzel",
    "Noto Serif SC",
    serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.gift-date {
  color: rgba(242, 230, 205, 0.94);
  font-family:
    "Archive Roman",
    "Archive Title CN",
    serif;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}

.gift-age {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin: 22px 0 44px;
  color: rgba(242, 230, 205, 0.68);
  font-family:
    "Archive Roman",
    "Consolas",
    "Courier New",
    monospace;
  font-size: clamp(14px, 1.4vw, 18px);
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
  text-transform: uppercase;
}

.gift-age strong {
  display: inline-grid;
  min-width: 2.2em;
  min-height: 2em;
  place-items: center;
  margin: 0 2px;
  border: 1px solid rgba(184, 50, 43, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 46%),
    rgba(0, 0, 0, 0.28);
  color: #f4e8cf;
  font-family:
    "Archive Roman",
    "Consolas",
    "Courier New",
    monospace;
  font-size: 1.28em;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(184, 50, 43, 0.18),
    0 0 16px rgba(184, 50, 43, 0.08);
  text-shadow:
    0 0 10px rgba(184, 50, 43, 0.28),
    0 1px 0 rgba(0, 0, 0, 0.8);
}

.gift-statement {
  display: grid;
  gap: 0;
  width: 100%;
  text-align: left;
}

.gift-statement article {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 10px clamp(22px, 4vw, 44px);
  min-height: 0;
  padding: clamp(22px, 3vw, 30px) 0;
  border-top: 1px solid rgba(242, 230, 205, 0.12);
  background: transparent;
}

.gift-statement article:last-child {
  border-bottom: 1px solid rgba(242, 230, 205, 0.08);
}

.gift-statement .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.gift-statement h3 {
  grid-column: 1;
  grid-row: 2;
  margin: 0 0 14px;
  color: var(--paper);
  font-size: clamp(22px, 2.2vw, 28px);
}

.gift-statement p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  align-self: center;
  color: rgba(242, 230, 205, 0.76);
  font-size: 17px;
  line-height: 1.9;
}

.suggestion-entry {
  margin-top: 34px;
  min-height: 46px;
  padding: 10px 28px;
  border: 1px solid rgba(184, 50, 43, 0.52);
  background:
    linear-gradient(180deg, rgba(184, 50, 43, 0.22), rgba(184, 50, 43, 0.14)),
    rgba(12, 10, 8, 0.72);
  color: var(--paper);
  cursor: pointer;
  font-weight: 800;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.suggestion-entry:hover,
.suggestion-entry:focus-visible {
  border-color: rgba(242, 230, 205, 0.28);
  background:
    linear-gradient(180deg, rgba(184, 50, 43, 0.32), rgba(184, 50, 43, 0.16)),
    rgba(12, 10, 8, 0.76);
  outline: none;
  transform: translateY(-2px);
}

.notice-strip {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: clamp(26px, 4vw, 44px);
}

.note-card p,
.author-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.note-reader {
  display: grid;
  gap: 18px;
}

.note-heading.is-changing {
  animation: note-title-fade 720ms ease both;
}

.note-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.note-heading time {
  padding: 7px 11px;
  border: 1px solid rgba(183, 59, 47, 0.34);
  color: var(--paper-deep);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 13px;
}

.note-card {
  position: relative;
  min-height: 260px;
  max-height: 440px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(232, 221, 196, 0.16);
  background: rgba(0, 0, 0, 0.14);
}

.note-card::before {
  position: absolute;
  inset: 0;
  background: none;
  content: "";
  opacity: 0;
}

.note-card p {
  position: relative;
  z-index: 1;
}

.note-card.is-turning {
  animation: note-paper-turn 640ms ease both;
}

.note-card p {
  max-width: 74ch;
  font-size: 17px;
}

.note-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.note-card.is-turning-up {
  animation: note-paper-slide-up 680ms ease both;
}

.note-card.is-turning-down {
  animation: note-paper-slide-down 680ms ease both;
}

.note-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 112px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(232, 221, 196, 0.1), rgba(232, 221, 196, 0.035)),
    rgba(255, 255, 255, 0.035);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.note-nav[hidden] {
  display: block;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.note-nav::before,
.note-nav::after {
  display: none;
}

.note-nav-prev {
  text-align: left;
}

.note-nav-next {
  text-align: right;
}

.note-nav:hover,
.note-nav:focus-visible {
  border-color: rgba(183, 59, 47, 0.72);
  background: rgba(183, 59, 47, 0.18);
  outline: none;
}

.section {
  padding: 14px 0 82px;
}

.section-heading {
  margin-bottom: 28px;
}

.works-carousel {
  position: relative;
  min-height: 610px;
  padding: 28px 76px 50px;
  overflow: hidden;
}

.works-carousel::before,
.works-carousel::after {
  position: absolute;
  top: 10%;
  bottom: 16%;
  z-index: 2;
  width: 18%;
  pointer-events: none;
  content: "";
}

.works-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 8%, rgba(17, 16, 14, 0.68), transparent);
}

.works-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 8%, rgba(17, 16, 14, 0.68), transparent);
}

.work-stage {
  position: relative;
  min-height: 540px;
  perspective: 1200px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: inline-flex;
  width: auto;
  min-width: 86px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid rgba(232, 221, 196, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(9, 8, 6, 0.62);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.025),
    0 12px 34px rgba(0, 0, 0, 0.32);
  color: var(--paper);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.carousel-arrow::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(183, 59, 47, 0.2);
  content: "";
  pointer-events: none;
}

.carousel-arrow small {
  position: relative;
  z-index: 1;
  color: rgba(232, 221, 196, 0.78);
  font-family:
    "Archive Title CN",
    "Noto Serif SC",
    serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.carousel-arrow:hover {
  border-color: rgba(183, 59, 47, 0.56);
  background:
    linear-gradient(180deg, rgba(183, 59, 47, 0.22), rgba(232, 221, 196, 0.06)),
    rgba(19, 17, 14, 0.5);
}

.carousel-arrow-prev {
  left: 16px;
}

.carousel-arrow-next {
  right: 16px;
}

.work-card {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  grid-template-rows: 230px 1fr;
  width: min(430px, 58vw);
  min-height: 508px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  opacity: 0;
  outline: none;
  transform: translateX(-50%) scale(0.78) rotateY(0deg);
  transform-origin: center;
  transition:
    transform 420ms ease,
    opacity 420ms ease,
    filter 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease;
  will-change: transform, opacity;
}

.work-card.featured {
  grid-column: span 1;
}

.work-card.is-active .work-open-button {
  filter: none;
}

.work-card.is-active {
  z-index: 8;
  border-color: rgba(232, 221, 196, 0.34);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(183, 59, 47, 0.2);
  opacity: 1;
  filter: none;
  transform: translateX(-50%) scale(1) rotateY(0deg);
}

.work-card.is-prev {
  z-index: 3;
  opacity: 0.42;
  filter: blur(2.2px) saturate(0.72);
  transform: translateX(calc(-50% - min(350px, 34vw))) scale(0.84) rotateY(8deg);
}

.work-card.is-next {
  z-index: 3;
  opacity: 0.42;
  filter: blur(2.2px) saturate(0.72);
  transform: translateX(calc(-50% + min(350px, 34vw))) scale(0.84) rotateY(-8deg);
}

.work-card.is-hidden {
  pointer-events: none;
}

.work-card.is-active:hover,
.work-card.is-active:focus-visible {
  border-color: rgba(183, 59, 47, 0.58);
  transform: translateX(-50%) translateY(-4px) scale(1);
}

.work-card.is-prev,
.work-card.is-next {
  cursor: pointer;
}

.work-card.is-prev:hover,
.work-card.is-next:hover {
  animation: dossier-tremble 360ms ease both;
}

@keyframes dossier-tremble {
  0% {
    margin-left: 0;
  }

  24% {
    margin-left: -4px;
  }

  48% {
    margin-left: 4px;
  }

  72% {
    margin-left: -2px;
  }

  100% {
    margin-left: 0;
  }
}

@keyframes note-paper-turn {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes note-paper-slide-up {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(22px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes note-paper-slide-down {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-22px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes note-title-fade {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.work-cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #301a16, #12100e);
}

.work-cover img,
.work-poster-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-cover.muted {
  background: linear-gradient(135deg, #332a1e, #12100e);
}

.work-cover.green {
  background: linear-gradient(135deg, #18372f, #11100e);
}

.work-cover span,
.author-portrait span {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(232, 221, 196, 0.26);
  color: var(--paper);
  font-size: 44px;
}

.work-body {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.work-body p {
  color: var(--muted);
}

.file-number {
  margin-bottom: 12px;
  color: var(--accent);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag-row span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--paper-deep);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 12px;
}

.carousel-dots {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  z-index: 7;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.carousel-dots button {
  width: 38px;
  height: 4px;
  border: 0;
  background: rgba(232, 221, 196, 0.22);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(183, 59, 47, 0.5);
}

.work-open-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 9;
  align-self: flex-start;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid rgba(183, 59, 47, 0.42);
  background:
    linear-gradient(90deg, rgba(183, 59, 47, 0.16), rgba(232, 221, 196, 0.04)),
    rgba(255, 255, 255, 0.03);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.work-open-button:hover,
.work-open-button:focus-visible {
  border-color: rgba(183, 59, 47, 0.76);
  background: var(--accent);
  color: #fff8ea;
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

.work-detail-modal[hidden] {
  display: none;
}

.suggestion-modal[hidden] {
  display: none;
}

.owner-contact-page[hidden] {
  display: none;
}

.auth-modal[hidden] {
  display: none;
}

.work-detail-modal,
.suggestion-modal,
.owner-contact-page,
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 28px);
  animation: modal-shell-fade 980ms ease both;
}

.auth-modal {
  z-index: 70;
}

.work-detail-modal.is-closing {
  animation: modal-shell-out 520ms ease both;
}

.suggestion-modal.is-closing {
  animation: modal-shell-out 520ms ease both;
}

.owner-contact-page.is-closing {
  animation: modal-shell-out 520ms ease both;
}

.auth-modal.is-closing {
  animation: modal-shell-out 520ms ease both;
}

.work-detail-modal.is-closing .modal-backdrop {
  animation: modal-backdrop-out 520ms ease both;
}

.suggestion-modal.is-closing .modal-backdrop {
  animation: modal-backdrop-out 520ms ease both;
}

.owner-contact-page.is-closing .modal-backdrop {
  animation: modal-backdrop-out 520ms ease both;
}

.auth-modal.is-closing .modal-backdrop {
  animation: modal-backdrop-out 520ms ease both;
}

.work-detail-modal.is-closing .modal-panel {
  animation: dossier-sink 520ms ease both;
}

.suggestion-modal.is-closing .suggestion-panel {
  animation: dossier-sink 520ms ease both;
}

.owner-contact-page.is-closing .owner-contact-panel {
  animation: dossier-sink 520ms ease both;
}

.auth-modal.is-closing .auth-panel {
  animation: dossier-sink 520ms ease both;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(183, 59, 47, 0.18), transparent 24rem),
    rgba(5, 5, 4, 0.74);
  cursor: pointer;
  backdrop-filter: blur(12px);
  animation: modal-backdrop-bloom 980ms ease both;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  max-height: calc(100vh - clamp(28px, 4vw, 56px));
  overflow: auto;
  padding: clamp(24px, 3.8vw, 56px);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(28, 20, 16, 0.72), rgba(14, 12, 10, 0.62)),
    radial-gradient(circle at 100% 0, rgba(183, 59, 47, 0.12), transparent 18rem),
    url("./assets/modal-dossier-bg.webp") right center / cover,
    var(--panel);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
  animation: dossier-rise 980ms cubic-bezier(0.16, 1, 0.3, 1) both;
  scrollbar-width: none;
}

.suggestion-panel,
.owner-contact-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - clamp(28px, 4vw, 56px));
  overflow: auto;
  scrollbar-width: none;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(242, 230, 205, 0.14);
  background:
    radial-gradient(circle at 18% 0%, rgba(184, 50, 43, 0.16), transparent 17rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), transparent 38%),
    rgba(14, 11, 8, 0.94);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  animation: dossier-rise 980ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.owner-contact-panel {
  width: min(860px, 100%);
  background:
    radial-gradient(circle at 18% 0%, rgba(184, 50, 43, 0.12), transparent 17rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 38%),
    rgba(10, 8, 6, 0.985);
}

.suggestion-panel::-webkit-scrollbar,
.owner-contact-panel::-webkit-scrollbar {
  display: none;
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - clamp(28px, 4vw, 56px));
  overflow: auto;
  scrollbar-width: none;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(242, 230, 205, 0.14);
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 50, 43, 0.16), transparent 15rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), transparent 38%),
    rgba(14, 11, 8, 0.94);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  animation: dossier-rise 980ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-panel::-webkit-scrollbar {
  display: none;
}

.suggestion-panel header,
.owner-contact-panel header {
  max-width: 620px;
  margin-bottom: 26px;
}

.auth-panel header,
.suggestion-panel header,
.owner-contact-panel header {
  max-width: 620px;
  margin-bottom: 26px;
}

.auth-panel h2,
.suggestion-panel h2,
.owner-contact-panel h2 {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: clamp(38px, 5vw, 64px);
}

.auth-panel header p:last-child,
.suggestion-panel header p:last-child,
.owner-contact-panel header p:last-child {
  color: rgba(242, 230, 205, 0.72);
  font-size: 16px;
  line-height: 1.9;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
  border: 1px solid rgba(242, 230, 205, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: rgba(242, 230, 205, 0.68);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.auth-tabs button.is-active {
  background:
    linear-gradient(180deg, rgba(184, 50, 43, 0.88), rgba(122, 28, 24, 0.92)),
    var(--accent);
  color: #fff8ea;
}

.suggestion-form,
.owner-contact-form {
  display: grid;
  gap: 16px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label,
.suggestion-form label,
.owner-contact-form label {
  display: grid;
  gap: 8px;
}

.auth-form span,
.suggestion-form span,
.owner-contact-form span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.auth-form input,
.suggestion-form input,
.suggestion-form textarea,
.owner-contact-form input,
.owner-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(242, 230, 205, 0.14);
  background: rgba(0, 0, 0, 0.34);
  color: var(--paper);
  font: inherit;
}

.auth-form input,
.suggestion-form input,
.owner-contact-form input {
  min-height: 44px;
  padding: 10px 12px;
}

.suggestion-form textarea,
.owner-contact-form textarea {
  min-height: 190px;
  resize: vertical;
  padding: 14px 12px;
  line-height: 1.8;
}

.auth-form input:focus,
.suggestion-form input:focus,
.suggestion-form textarea:focus,
.owner-contact-form input:focus,
.owner-contact-form textarea:focus {
  border-color: rgba(184, 50, 43, 0.55);
  outline: none;
}

.auth-form button,
.suggestion-form button,
.owner-contact-form button {
  justify-self: start;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid rgba(184, 50, 43, 0.55);
  background: rgba(184, 50, 43, 0.2);
  color: var(--paper);
  cursor: pointer;
  font-weight: 800;
}

.auth-status,
.suggestion-status,
.owner-contact-status {
  min-height: 1.8em;
  margin: 0;
  color: rgba(242, 230, 205, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

.modal-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal-panel::-webkit-scrollbar-track {
  display: none;
}

.modal-panel::-webkit-scrollbar-thumb {
  display: none;
}

.modal-panel::-webkit-scrollbar-thumb:hover {
  display: none;
}

.modal-panel::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(183, 59, 47, 0.24);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 34%, rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 52% 35%, transparent, rgba(0, 0, 0, 0.16));
  pointer-events: none;
  content: "";
}

.modal-hero {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3vw, 42px);
  margin-bottom: 24px;
  animation: dossier-ink-in 720ms ease 200ms both;
}

.modal-hero h2 {
  font-size: clamp(48px, 5.6vw, 84px);
}

.work-poster-frame {
  display: grid;
  grid-template-rows: auto auto;
  align-self: start;
  justify-self: start;
  width: min(220px, 100%);
  max-width: 220px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 221, 196, 0.16);
  background:
    radial-gradient(circle at 50% 28%, rgba(183, 59, 47, 0.2), transparent 10rem),
    linear-gradient(160deg, rgba(232, 221, 196, 0.08), rgba(0, 0, 0, 0.22)),
    rgba(255, 255, 255, 0.035);
}

.work-poster-placeholder {
  display: grid;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  place-items: center;
  color: rgba(232, 221, 196, 0.9);
  font-size: clamp(74px, 9vw, 126px);
  font-weight: 800;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.work-poster-frame figcaption {
  padding: 12px 14px;
  border-top: 1px solid rgba(232, 221, 196, 0.14);
  color: var(--muted);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 12px;
}

.modal-hero-copy {
  display: grid;
  align-content: start;
}

.work-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 14px;
}

.work-meta-row span {
  padding: 5px 10px;
  border: 1px solid rgba(232, 221, 196, 0.16);
  color: var(--paper-deep);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 12px;
}

.modal-tag-row {
  flex-wrap: nowrap;
  max-width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.modal-tag-row::-webkit-scrollbar {
  display: none;
}

.modal-tag-row span {
  flex: 0 0 auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(183, 59, 47, 0.72);
  background: var(--accent);
  outline: none;
}

.modal-summary {
  max-width: 72ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  white-space: pre-line;
}

.modal-summary-inline {
  max-height: 116px;
  margin-bottom: 18px;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(232, 221, 196, 0.14);
  background: rgba(0, 0, 0, 0.14);
  scrollbar-width: none;
}

.modal-summary-inline::-webkit-scrollbar {
  display: none;
}

.modal-summary-inline .eyebrow {
  margin-bottom: 8px;
}

.modal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-weight: 700;
}

.modal-link-row a:first-child {
  border-color: rgba(183, 59, 47, 0.72);
  background: var(--accent);
  color: #fff8ea;
}

.modal-workspace {
  display: grid;
  gap: 18px;
}

.modal-tabs {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(232, 221, 196, 0.14);
  background: rgba(0, 0, 0, 0.16);
}

.modal-tab {
  min-height: 42px;
  padding: 8px 18px;
  border: 0;
  border-right: 1px solid rgba(232, 221, 196, 0.12);
  background: transparent;
  color: rgba(232, 221, 196, 0.68);
  font: inherit;
  cursor: pointer;
}

.modal-tab:last-child {
  border-right: 0;
}

.modal-tab.is-active {
  background: rgba(183, 59, 47, 0.78);
  color: #fff8ea;
}

.modal-tab-panel[hidden] {
  display: none;
}

.modal-block {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  animation: dossier-ink-in 760ms ease both;
}

.modal-block:nth-child(1) {
  animation-delay: 360ms;
}

.modal-block:nth-child(2) {
  animation-delay: 520ms;
}

.modal-block:nth-child(3) {
  animation-delay: 680ms;
}

.modal-block-heading {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-block-heading h3 {
  margin: 0;
}

.modal-block-heading > span {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid rgba(232, 221, 196, 0.14);
  color: var(--paper-deep);
  font-size: 12px;
}

.character-showcase {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(280px, 0.34fr) minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
}

.character-frame {
  display: grid;
  grid-template-rows: 1fr auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 221, 196, 0.14);
  background:
    radial-gradient(circle at 50% 28%, rgba(183, 59, 47, 0.18), transparent 9rem),
    linear-gradient(160deg, rgba(232, 221, 196, 0.08), rgba(0, 0, 0, 0.18)),
    rgba(255, 255, 255, 0.035);
  animation: character-frame-rise 760ms ease 520ms both;
}

.character-image-placeholder {
  display: grid;
  aspect-ratio: 3 / 4;
  width: 100%;
  place-items: center;
  color: rgba(232, 221, 196, 0.92);
  font-size: clamp(72px, 9vw, 116px);
  font-weight: 800;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  animation: character-image-breath 900ms ease both;
}

.character-frame figcaption {
  padding: 14px 16px;
  border-top: 1px solid rgba(232, 221, 196, 0.14);
  background: rgba(0, 0, 0, 0.12);
}

.quote-carousel {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  gap: 16px;
  min-height: 520px;
}

.character-copy {
  padding: 18px;
  border: 1px solid rgba(232, 221, 196, 0.12);
  background: rgba(0, 0, 0, 0.14);
}

.character-copy p:last-child,
.module-note {
  margin: 0;
  color: rgba(232, 221, 196, 0.72);
}

.modal-quotes {
  display: grid;
  align-items: stretch;
}

.modal-quote {
  display: grid;
  align-content: center;
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  border-left: 3px solid var(--accent);
  background: rgba(0, 0, 0, 0.12);
  animation: quote-page-turn 760ms ease both;
}

.modal-quote:nth-child(1) {
  animation-delay: 0ms;
}

.modal-quote:nth-child(2) {
  animation-delay: 0ms;
}

.gallery-controls {
  display: grid;
  align-items: center;
  animation: dossier-ink-in 620ms ease 760ms both;
}

.gallery-nav {
  align-self: center;
  min-width: 44px;
  min-height: 148px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(9, 8, 6, 0.5);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  writing-mode: vertical-rl;
  cursor: pointer;
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.025),
    0 16px 38px rgba(0, 0, 0, 0.26);
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  border-color: rgba(183, 59, 47, 0.72);
  background: rgba(183, 59, 47, 0.2);
  outline: none;
}

.quote-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.quote-dots button {
  width: 28px;
  min-height: 4px;
  padding: 0;
  border: 0;
  background: rgba(232, 221, 196, 0.22);
}

.quote-dots button.is-active {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(183, 59, 47, 0.45);
}

blockquote {
  margin: 0 0 24px;
  color: var(--paper);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.55;
}

figcaption {
  color: var(--muted);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 13px;
}

.modal-quote blockquote,
.modal-endorsement blockquote {
  margin-bottom: 12px;
  font-size: clamp(20px, 2vw, 28px);
}

.comment-block,
.modal-endorsement {
  max-width: none;
}

.modal-workspace > .modal-block:not(.modal-tab-panel):not(.comment-block) {
  padding: 22px 24px;
}

.modal-workspace > .modal-block:not(.modal-tab-panel):not(.comment-block) p:last-child,
.modal-workspace > .modal-block:not(.modal-tab-panel):not(.comment-block) blockquote {
  margin-bottom: 0;
  color: rgba(232, 221, 196, 0.72);
  font-size: 17px;
  line-height: 1.86;
}

.fan-upload-button,
.comment-draft button {
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid rgba(183, 59, 47, 0.72);
  background: rgba(183, 59, 47, 0.18);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.fan-art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.fan-art-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.fan-art-stage {
  display: grid;
  min-height: 390px;
}

.fan-art-card {
  display: none;
  grid-template-columns: minmax(280px, 0.62fr) minmax(240px, 0.38fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(232, 221, 196, 0.12);
  background: rgba(0, 0, 0, 0.14);
}

.fan-art-card.is-active {
  display: grid;
}

.fan-art-thumb {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid rgba(232, 221, 196, 0.12);
  background:
    radial-gradient(circle at 50% 36%, rgba(183, 59, 47, 0.2), transparent 6rem),
    rgba(255, 255, 255, 0.035);
  color: rgba(232, 221, 196, 0.76);
  font-family:
    "Archive Long CN",
    "Archive Title CN",
    serif;
  font-size: 42px;
}

.fan-art-card strong,
.fan-art-card span,
.fan-art-card small {
  display: block;
}

.fan-art-card strong {
  color: var(--paper);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.2;
}

.fan-art-card span {
  margin-top: 8px;
  color: var(--muted);
}

.fan-art-card small {
  width: fit-content;
  margin-top: 12px;
  padding: 2px 8px;
  border: 1px solid rgba(232, 221, 196, 0.12);
  color: var(--paper-deep);
}

.fan-art-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.fan-art-dots button {
  width: 34px;
  min-height: 4px;
  padding: 0;
  border: 0;
  background: rgba(232, 221, 196, 0.22);
  cursor: pointer;
}

.fan-art-dots button.is-active {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(183, 59, 47, 0.45);
}

.comment-list {
  display: grid;
  gap: 12px;
  max-height: 300px;
  margin-bottom: 16px;
  overflow: auto;
  padding-right: 8px;
  scrollbar-width: none;
}

.comment-list::-webkit-scrollbar {
  display: none;
}

.comment-item {
  padding: 14px 16px;
  border: 1px solid rgba(232, 221, 196, 0.12);
  background: rgba(0, 0, 0, 0.14);
}

.comment-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
}

.comment-item strong {
  color: var(--paper);
}

.comment-item p {
  margin: 6px 0 0;
  color: rgba(232, 221, 196, 0.72);
}

.comment-draft {
  display: grid;
  gap: 10px;
}

.comment-draft input,
.comment-draft textarea {
  width: 100%;
  border: 1px solid rgba(232, 221, 196, 0.12);
  background: rgba(0, 0, 0, 0.16);
  color: rgba(232, 221, 196, 0.72);
  font: inherit;
}

.comment-draft input {
  min-height: 40px;
  padding: 8px 12px;
}

.comment-draft textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.comment-draft button {
  justify-self: start;
}

@keyframes modal-shell-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-shell-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes modal-backdrop-bloom {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(12px);
  }
}

@keyframes modal-backdrop-out {
  from {
    opacity: 1;
    backdrop-filter: blur(12px);
  }

  to {
    opacity: 0;
    backdrop-filter: blur(0);
  }
}

@keyframes dossier-rise {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(28px) scale(0.97);
  }

  62% {
    opacity: 1;
    filter: blur(1px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes dossier-sink {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(24px) scale(0.98);
  }
}

@keyframes dossier-ink-in {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes dossier-line-reveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-10px);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

@keyframes quote-page-turn {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(18px) rotateY(-8deg);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) rotateY(0);
  }
}

@keyframes character-frame-rise {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes character-image-breath {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.92);
  }

  68% {
    opacity: 1;
    filter: blur(1px);
    transform: scale(1.03);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.site-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(112px, 10vw, 156px);
  margin-top: clamp(40px, 6vw, 86px);
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 72px);
  border-top: 1px solid rgba(216, 193, 145, 0.18);
  background:
    linear-gradient(90deg, rgba(6, 5, 4, 0.94), rgba(8, 7, 6, 0.62) 40%, rgba(6, 5, 4, 0.9)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.74)),
    url("./assets/main-archive-bg.webp") center 82% / cover no-repeat,
    rgba(8, 7, 6, 0.96);
  color: rgba(232, 221, 196, 0.72);
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.04);
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: clamp(28px, 5vw, 72px);
  left: clamp(28px, 5vw, 72px);
  height: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 193, 145, 0.22), transparent);
}

.site-footer::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 18% 50%, rgba(184, 50, 43, 0.1), transparent 18rem),
    radial-gradient(ellipse at 82% 44%, rgba(216, 193, 145, 0.08), transparent 16rem);
  opacity: 0.74;
}

.footer-copy,
.footer-records {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.footer-copy {
  justify-items: start;
}

.footer-copy > span {
  color: rgba(232, 221, 196, 0.82);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  letter-spacing: 0.04em;
}

.footer-records {
  grid-auto-flow: column;
  gap: 10px;
  align-items: center;
  justify-items: end;
  color: rgba(232, 221, 196, 0.76);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  letter-spacing: 0.04em;
}

.footer-records span + span::before {
  margin-right: 10px;
  color: rgba(216, 193, 145, 0.38);
  content: "/";
}

.gift-mark {
  color: rgba(183, 170, 145, 0.74);
  font-size: 11px;
  font-weight: 400;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .auth-actions {
    grid-column: 1 / -1;
  }

  .hero-section,
  .notice-strip,
  .author-panel,
  .featured-case-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 0;
  }

  .archive-table {
    min-height: 440px;
  }

  .author-stats {
    grid-template-columns: 1fr;
  }

  .world-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-archive-grid {
    grid-template-columns: 1fr;
  }

  .gift-statement {
    grid-template-columns: 1fr;
  }

  .modal-hero {
    grid-template-columns: 1fr;
  }

  .character-showcase {
    grid-template-columns: 1fr;
  }

  .character-showcase .gallery-nav {
    min-height: 42px;
    writing-mode: horizontal-tb;
  }

  .fan-art-carousel {
    grid-template-columns: 1fr;
  }

  .fan-art-carousel .gallery-nav {
    min-height: 42px;
    writing-mode: horizontal-tb;
  }

  .fan-art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fan-art-card {
    grid-template-columns: 1fr;
  }

  .fan-art-thumb {
    min-height: 260px;
  }

  .character-frame,
  .quote-carousel {
    min-height: 0;
  }

  .character-image-placeholder {
    min-height: 0;
  }

  .modal-block:first-child {
    grid-row: auto;
  }

  .works-carousel {
    min-height: 560px;
    padding: 24px 48px 48px;
  }

  .work-card {
    width: min(390px, 66vw);
  }

  .work-card.is-prev {
    transform: translateX(calc(-50% - min(250px, 40vw))) scale(0.82) rotateY(7deg);
  }

  .work-card.is-next {
    transform: translateX(calc(-50% + min(250px, 40vw))) scale(0.82) rotateY(-7deg);
  }

  .carousel-arrow {
    width: 56px;
    min-height: 112px;
  }

  .work-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  .intro-gate {
    padding: 24px 18px;
    background:
      radial-gradient(circle at 50% 42%, rgba(64, 31, 25, 0.2), transparent 18rem),
      linear-gradient(180deg, rgba(8, 8, 7, 0.76), rgba(8, 8, 7, 0.9)),
      var(--bg);
  }

  .intro-gate-vignette {
    inset: 14px;
  }

  .intro-gate h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .intro-lede {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .intro-entry-row {
    grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
    gap: 10px;
  }

  .intro-enter-button {
    min-height: 44px;
    padding: 8px 18px;
    font-size: 17px;
  }

  .site-header {
    position: static;
  }

  .auth-actions {
    width: 100%;
    justify-content: stretch;
  }

  .auth-link {
    flex: 1;
    justify-content: center;
  }

  html {
    scroll-padding-top: 20px;
  }

  #top,
  #notice,
  #works,
  #author,
  #links,
  #contact,
  #gift-archive {
    scroll-margin-top: 20px;
  }

  .note-heading {
    grid-template-columns: 1fr;
  }

  .world-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-grid a {
    min-height: 120px;
  }

  .note-card {
    max-height: none;
  }

  .note-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .gift-heading h2 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .gift-archive-panel {
    padding: 26px 20px;
  }

  .gift-age {
    gap: 5px;
    font-size: 12px;
  }

  .gift-age strong {
    min-width: 2em;
    min-height: 1.8em;
  }

  .gift-statement article {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
  }

  .gift-statement .eyebrow,
  .gift-statement h3,
  .gift-statement p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .suggestion-modal {
    padding: 18px;
  }

  .auth-modal {
    padding: 18px;
  }

  .auth-panel {
    padding: 24px 18px;
  }

  .suggestion-panel {
    padding: 24px 18px;
  }

  .works-carousel {
    min-height: 550px;
    padding: 20px 0 46px;
  }

  .works-carousel::before,
  .works-carousel::after {
    display: none;
  }

  .work-card {
    width: min(100%, 360px);
  }

  .work-card.is-prev {
    opacity: 0;
    transform: translateX(calc(-50% - 100%)) scale(0.84);
  }

  .work-card.is-next {
    opacity: 0;
    transform: translateX(calc(-50% + 100%)) scale(0.84);
  }

  .carousel-arrow {
    top: auto;
    bottom: 0;
    width: 48%;
    min-height: 42px;
    transform: none;
  }

  .carousel-arrow small {
    position: static;
    writing-mode: horizontal-tb;
  }

  .carousel-arrow-prev {
    left: 0;
  }

  .carousel-arrow-next {
    right: 0;
  }

  .carousel-dots {
    bottom: 54px;
  }

  .archive-table {
    min-height: 380px;
  }

  .dossier-visual {
    min-height: 430px;
    padding: 28px 18px;
  }

  .dossier-folder {
    width: min(330px, 100%);
    min-height: 300px;
  }

  .dossier-card {
    width: 76%;
    min-height: 190px;
    padding: 22px;
  }

  .dossier-card strong {
    font-size: clamp(27px, 9vw, 38px);
  }

  .dossier-folder-front {
    min-height: 154px;
    padding: 34px 24px 28px;
  }

  .dossier-folder-front b {
    font-size: clamp(24px, 8vw, 34px);
  }

  .dossier-seal {
    right: 22px;
    bottom: 28px;
    width: 58px;
    height: 58px;
    font-size: 17px;
  }

  .paper-main {
    right: 3%;
    width: 86%;
    padding: 24px;
  }

  .paper-main strong {
    font-size: 28px;
  }

  .paper-side,
  .talisman {
    display: none;
  }

  .notice-strip,
  .author-panel,
  .modal-block {
    padding: 22px;
  }

  .work-detail-modal {
    padding: 14px;
  }
}

/* Consolidated final polish: performance, rail, intro title, and hero handoff. */
html {
  scroll-snap-type: none !important;
}

body {
  --bg-handoff: 0;
  --hero-bg-opacity: 1;
  --main-bg-opacity: 0;
  background:
    radial-gradient(circle at 50% -8%, rgba(124, 75, 45, 0.12), transparent 34rem),
    radial-gradient(circle at 18% 18%, rgba(184, 50, 43, 0.06), transparent 30rem),
    linear-gradient(180deg, rgba(7, 6, 4, 0.78), rgba(7, 6, 4, 0.94) 50%, rgba(7, 6, 4, 0.86)),
    #070604;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.88) 0 34%, rgba(5, 4, 3, 0.42) 64%, rgba(5, 4, 3, 0.78)),
    linear-gradient(180deg, rgba(5, 4, 3, 0.08) 0, rgba(5, 4, 3, 0.26) 54%, rgba(5, 4, 3, 0.78) 100%),
    url("./assets/ai-modal-dossier-bg.webp") center / cover fixed no-repeat;
  opacity: var(--hero-bg-opacity);
  transform: scale(calc(1.01 + var(--bg-handoff) * 0.012));
  transition: opacity 180ms linear, transform 180ms linear;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 6, 4, 0.36), rgba(7, 6, 4, 0.54) 34%, rgba(7, 6, 4, 0.7)),
    url("./assets/main-archive-bg.webp") center top / cover fixed;
  opacity: var(--main-bg-opacity);
  transition: opacity 180ms linear;
}

main {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

main > * {
  position: relative;
  z-index: 1;
}

.hero-section,
.author-panel,
.world-section,
.featured-case,
.notice-strip,
.section,
.gift-archive {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.hero-section {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100vw;
  min-height: max(860px, 108svh);
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: clamp(108px, 13vh, 154px) max(34px, calc((100vw - 1360px) / 2 + 70px)) clamp(132px, 14vh, 180px) max(92px, calc((100vw - 1360px) / 2 + 70px));
  overflow: visible;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.hero-section::before {
  display: none;
}

.hero-section::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  transform: translateX(clamp(-18px, -1.4vw, -8px));
}

.hero-section h1 {
  max-width: none;
  font-family:
    "Archive Long CN",
    "Archive Title CN",
    "Noto Serif SC",
    serif;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
  font-size: clamp(92px, 11vw, 154px);
}

.hero-lede {
  max-width: 32em;
}

.hero-featured-case {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.48fr) minmax(320px, 0.52fr);
  gap: 0;
  align-items: stretch;
  width: min(980px, 100%);
  margin-top: clamp(34px, 5vh, 58px);
  border-top: 1px solid rgba(216, 193, 145, 0.18);
  border-bottom: 1px solid rgba(216, 193, 145, 0.14);
  background:
    linear-gradient(90deg, rgba(18, 14, 11, 0.76), rgba(8, 7, 6, 0.34)),
    rgba(9, 7, 5, 0.48);
  color: rgba(232, 221, 196, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.hero-featured-case::before {
  position: absolute;
  inset: 10px 0;
  pointer-events: none;
  content: "";
  border-top: 1px solid rgba(216, 193, 145, 0.08);
  border-bottom: 1px solid rgba(216, 193, 145, 0.08);
}

.almanac-date {
  display: grid;
  align-content: center;
  min-height: clamp(190px, 18vw, 250px);
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid rgba(216, 193, 145, 0.14);
}

.almanac-date span,
.almanac-source {
  color: rgba(232, 221, 196, 0.55);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.almanac-date strong {
  display: block;
  margin: 12px 0;
  color: rgba(183, 59, 47, 0.88);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(48px, 5.8vw, 78px);
  font-weight: 500;
  line-height: 1;
}

.almanac-date small {
  color: rgba(232, 221, 196, 0.68);
  font-family: "Archive Roman", "Noto Serif SC", serif;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.8;
}

.almanac-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
}

.almanac-meta div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 18px;
  border-right: 1px solid rgba(216, 193, 145, 0.1);
  border-bottom: 1px solid rgba(216, 193, 145, 0.1);
}

.almanac-meta div:nth-child(2n) {
  border-right: 0;
}

.almanac-meta div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.almanac-meta dt {
  color: rgba(216, 193, 145, 0.68);
  font-size: 13px;
}

.almanac-meta dd {
  margin: 0;
  color: rgba(242, 230, 205, 0.82);
  font-family: "Archive Roman", "Noto Serif SC", serif;
  line-height: 1.7;
}

.almanac-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(216, 193, 145, 0.12);
}

.almanac-actions div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  min-height: 92px;
  padding: clamp(18px, 2.5vw, 26px) clamp(22px, 3vw, 34px);
}

.almanac-actions div:first-child {
  border-right: 1px solid rgba(216, 193, 145, 0.12);
}

.almanac-actions span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(216, 193, 145, 0.32);
  color: rgba(216, 193, 145, 0.76);
  font-family: "Archive Roman", "Noto Serif SC", serif;
  font-size: 24px;
}

.almanac-actions div:last-child span {
  border-color: rgba(183, 59, 47, 0.42);
  color: rgba(183, 59, 47, 0.86);
}

.almanac-actions p {
  margin: 0;
  color: rgba(232, 221, 196, 0.72);
  line-height: 1.9;
}

.almanac-source {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(216, 193, 145, 0.1);
  text-align: right;
}

.archive-table.dossier-visual {
  display: none;
}

.hero-section ~ section h2,
.hero-section ~ section h3,
.hero-section ~ .section-break span,
.section-heading h2,
.gift-heading h2,
.note-heading h2,
.modal-block h3,
.featured-dossier h3,
.featured-reason h3,
.world-card h3,
.gift-statement h3 {
  font-family:
    "Archive Title CN",
    "Noto Serif SC",
    "Songti SC",
    serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-section ~ section h2,
.section-heading h2,
.note-heading h2 {
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 1.02;
}

.hero-section ~ section h3,
.modal-block h3,
.featured-reason h3,
.world-card h3,
.gift-statement h3 {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.16;
}

.eyebrow,
.section-heading .eyebrow,
.gift-statement .eyebrow {
  font-family:
    "Archive Roman",
    "Archive Title CN",
    "Noto Serif SC",
    serif;
}

.author-panel {
  margin-top: clamp(18px, 4vw, 54px);
}

@media (max-width: 980px) {
  .hero-section {
    min-height: max(780px, 108svh);
    padding: clamp(112px, 15vh, 158px) max(22px, calc((100vw - 980px) / 2 + 34px)) clamp(104px, 14vw, 136px);
  }

  .hero-copy {
    transform: none;
  }

  .hero-featured-case {
    grid-template-columns: 1fr;
    width: min(620px, 100%);
  }

  .almanac-date {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 193, 145, 0.14);
  }

  .almanac-actions {
    grid-template-columns: 1fr;
  }

  .almanac-actions div:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(216, 193, 145, 0.12);
  }
}

@media (max-width: 620px) {
  .almanac-meta {
    grid-template-columns: 1fr;
  }

  .almanac-meta div,
  .almanac-meta div:nth-child(2n),
  .almanac-meta div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(216, 193, 145, 0.1);
  }

  .almanac-actions div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    min-height: 168px;
    padding: 30px 24px;
  }

  .footer-records {
    grid-auto-flow: row;
    justify-items: start;
  }

  .footer-records span + span::before {
    display: none;
  }

  .hero-section {
    min-height: max(740px, 108svh);
    padding: 126px 24px 110px;
  }

  .hero-section h1 {
    max-width: 100%;
    font-size: clamp(72px, 20vw, 96px);
    white-space: nowrap;
  }

  .hero-section::before {
    display: none;
  }
}

.intro-title-stack {
  position: relative;
  display: grid;
  gap: clamp(2px, 0.8vw, 10px);
  justify-items: center;
  max-width: min(900px, 100%);
  overflow: visible;
  line-height: 1;
  isolation: isolate;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

.intro-title-stack::before {
  display: none !important;
}

.intro-title-stack span {
  position: relative;
  z-index: 2;
  display: block;
}

.intro-title-welcome {
  color: rgba(242, 230, 205, 0.82);
  font-family: "Archive Title CN", "Archive Hand CN", serif;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.12em;
  filter: none !important;
  transform: none !important;
  animation: intro-quiet-fade-in 620ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both !important;
}

.intro-title-name {
  color: var(--paper);
  font-family: "Archive Long CN", "Archive Weird CN", "Archive Brush CN", serif;
  font-size: clamp(92px, 12vw, 168px);
  font-weight: 400;
  filter: none !important;
  transform: none !important;
  text-shadow: 0 24px 82px rgba(0, 0, 0, 0.82), 0 0 28px rgba(242, 230, 205, 0.12);
  animation: intro-quiet-fade-in 760ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both !important;
}

.intro-title-archive {
  position: relative;
  display: inline-block !important;
  color: #941611;
  font-family: "Archive Brush CN", "Archive Weird CN", "Archive Title CN", serif;
  font-size: clamp(70px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: 0.08em;
  -webkit-text-stroke: 0.6px rgba(42, 4, 3, 0.72);
  backface-visibility: hidden;
  transform-origin: center;
  text-shadow:
    0 2px 0 rgba(43, 4, 3, 0.9),
    0 18px 28px rgba(0, 0, 0, 0.82),
    0 34px 72px rgba(0, 0, 0, 0.72),
    0 0 18px rgba(152, 23, 18, 0.22);
  animation: archive-breathing var(--intro-breath-duration) var(--intro-breath-ease) 0ms infinite !important;
  will-change: transform, filter, text-shadow;
}

.intro-title-archive::before {
  position: absolute;
  right: 5%;
  bottom: -0.08em;
  left: 5%;
  z-index: -1;
  display: block !important;
  height: 0.26em;
  border-radius: 50%;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.2) 42%, rgba(0, 0, 0, 0.08) 62%, transparent 78%);
  opacity: 0.72;
  transform: translateY(0.16em) scaleX(0.86);
  animation: archive-float-shadow var(--intro-breath-duration) var(--intro-breath-ease) 0ms infinite;
}

.intro-title-archive::after {
  display: none !important;
}

@keyframes intro-quiet-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes archive-breathing {
  0%, 100% {
    color: #86120e;
    filter: brightness(0.92) saturate(0.96);
    text-shadow:
      0 2px 0 rgba(43, 4, 3, 0.92),
      0 18px 28px rgba(0, 0, 0, 0.82),
      0 34px 72px rgba(0, 0, 0, 0.72),
      0 0 14px rgba(152, 23, 18, 0.16);
    transform: translateY(0) scale(0.992);
  }
  50% {
    color: #9a1712;
    filter: brightness(1.08) saturate(1.12);
    text-shadow:
      0 2px 0 rgba(43, 4, 3, 0.9),
      0 15px 25px rgba(0, 0, 0, 0.78),
      0 28px 66px rgba(0, 0, 0, 0.66),
      0 0 24px rgba(172, 31, 24, 0.3);
    transform: translateY(-5px) scale(1.012);
  }
}

@keyframes archive-smear-in {
  0% { opacity: 0; transform: skewX(-8deg) scaleX(0.72); }
  100% { opacity: 0.58; transform: skewX(-8deg) scaleX(0.9); }
}

@keyframes archive-smear-breathe {
  0%, 100% { opacity: 0.46; transform: skewX(-8deg) scaleX(0.9) translateX(-1px); }
  50% { opacity: 0.76; transform: skewX(-6deg) scaleX(1.02) translateX(2px); }
}

@keyframes archive-float-shadow {
  0%, 100% {
    opacity: 0.66;
    transform: translateY(0.17em) scaleX(0.82);
  }
  50% {
    opacity: 0.46;
    transform: translateY(0.24em) scaleX(0.96);
  }
}

.section-rail {
  position: fixed;
  top: 50%;
  right: auto !important;
  left: clamp(10px, 1.3vw, 22px) !important;
  z-index: 28;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.rail-link,
.rail-link:hover,
.rail-link:focus-visible,
.rail-link.is-active {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.rail-link {
  position: relative;
  display: inline-flex;
  width: 64px;
  min-height: 62px;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  padding: 0;
  overflow: visible;
  color: rgba(242, 230, 205, 0.78);
  transform: translateX(0) translateY(0);
  transition: width 260ms cubic-bezier(0.16, 1, 0.3, 1), transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-link::before {
  display: none !important;
}

.rail-link img {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.9;
  transform: translateY(0) scale(1) translateZ(0);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.76)) drop-shadow(0 0 8px rgba(184, 50, 43, 0.14));
  transition: opacity 220ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), filter 240ms ease;
  will-change: transform, opacity;
}

.rail-label {
  position: relative;
  z-index: 1;
  order: 2;
  display: inline-grid;
  align-items: end;
  max-width: 0;
  min-height: 34px;
  margin-left: 0;
  padding: 0 6px 8px;
  overflow: visible;
  color: rgba(242, 230, 205, 0.92);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.72);
  transform: translateX(-6px);
  transition: max-width 260ms cubic-bezier(0.16, 1, 0.3, 1), margin 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-label::after {
  position: absolute;
  right: 2px;
  bottom: -2px;
  left: 0;
  height: 12px;
  pointer-events: none;
  content: "";
  background: url("./assets/nav-icons/rail-ink-stroke.png") center / 100% 100% no-repeat;
  opacity: 0;
  transform: translateY(3px) scaleX(0.74);
  transform-origin: left center;
  transition: opacity 200ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-link:hover,
.rail-link:focus-visible {
  width: 106px;
  outline: none;
  transform: translateX(2px);
}

.rail-link:hover img,
.rail-link:focus-visible img,
.rail-link.is-active img {
  opacity: 1;
  transform: translateY(-3px) scale(1.06) translateZ(0);
  filter: drop-shadow(0 17px 22px rgba(0, 0, 0, 0.82)) drop-shadow(0 0 13px rgba(184, 50, 43, 0.24));
}

.rail-link:hover .rail-label,
.rail-link:focus-visible .rail-label {
  max-width: 4.2em;
  margin-left: 2px;
  opacity: 1;
  transform: translateX(0);
}

.rail-link:hover .rail-label::after,
.rail-link:focus-visible .rail-label::after,
.rail-link.is-active .rail-label::after {
  opacity: 0.78;
  transform: translateY(0) scaleX(1);
}

.rail-link.is-active {
  width: 70px;
  transform: translateX(2px);
}

.rail-link.is-active:hover,
.rail-link.is-active:focus-visible {
  width: 110px;
}

.rail-link.is-active .rail-label {
  color: var(--paper);
}

@media (max-width: 1180px) {
  .section-rail {
    left: 6px !important;
  }
}

@media (max-width: 980px) {
  .section-rail {
    display: none;
  }
}

@media (max-width: 620px) {
  .intro-title-stack { gap: 4px; }
  .intro-title-welcome { font-size: 28px; letter-spacing: 0.08em; }
  .intro-title-name { font-size: clamp(84px, 25vw, 116px); }
  .intro-title-archive { font-size: clamp(58px, 18vw, 84px); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-title-welcome,
  .intro-title-name,
  .intro-title-archive,
  .intro-title-archive::after,
  .flip-card.is-ticking .flip-card-current {
    animation: none !important;
  }
}

/* Button, typography, and archive-form polish. */
.site-header {
  grid-template-columns: auto minmax(220px, 1fr) auto minmax(220px, 1fr);
  padding-right: clamp(28px, 4vw, 72px);
  padding-left: clamp(28px, 4vw, 72px);
}

.brand {
  justify-self: start;
  gap: 16px;
}

.brand > span:last-child {
  font-family:
    "Archive Long CN",
    "Archive Wild CN",
    "Archive Title CN",
    serif;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 52px;
  height: 52px;
  font-family: "Archive Inscription CN", "Archive Title CN", serif;
  font-size: 28px;
}

.site-nav {
  justify-self: center;
  gap: clamp(22px, 3vw, 46px);
}

.site-nav a {
  position: relative;
  padding: 12px 0 14px;
  color: rgba(242, 230, 205, 0.68);
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 2px;
  width: 0;
  height: 12px;
  pointer-events: none;
  content: "";
  background: url("./assets/ornaments/cinnabar-brush-stroke-small.png") center / 100% 100% no-repeat;
  opacity: 0;
  transform: translateX(50%) translateY(5px);
  transition:
    width 320ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
  outline: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 82px;
  opacity: 0.78;
  transform: translateX(50%) translateY(0);
}

.auth-actions {
  justify-self: end;
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-link,
.button,
.note-nav,
.suggestion-entry,
.work-open-button,
.auth-form button,
.suggestion-form button,
.fan-upload-button,
.comment-draft button,
.modal-tab,
.gallery-nav,
.intro-enter-button {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none;
}

.auth-link,
.button,
.suggestion-entry,
.auth-form button,
.suggestion-form button,
.fan-upload-button,
.comment-draft button {
  min-height: 46px;
  padding: 9px 24px 14px;
  color: rgba(242, 230, 205, 0.88);
  font-family:
    "Archive Title CN",
    "Noto Serif SC",
    serif;
  font-weight: 700;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.72);
  transition:
    color 220ms ease,
    opacity 220ms ease,
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 260ms ease;
}

.auth-link::before,
.button::before,
.suggestion-entry::before,
.auth-form button::before,
.suggestion-form button::before,
.fan-upload-button::before,
.comment-draft button::before,
.intro-enter-button::before {
  position: absolute;
  right: 8%;
  bottom: 0;
  left: 8%;
  z-index: -1;
  height: 16px;
  pointer-events: none;
  content: "";
  background: url("./assets/ornaments/cinnabar-brush-stroke-small.png") center / 100% 100% no-repeat;
  opacity: 0.42;
  transform: translateY(2px) scaleX(0.72);
  transform-origin: center;
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 260ms ease;
}

.button.primary::before,
.intro-enter-button::before,
.auth-form button::before,
.suggestion-form button::before {
  opacity: 0.68;
}

.auth-link:hover,
.auth-link:focus-visible,
.button:hover,
.button:focus-visible,
.suggestion-entry:hover,
.suggestion-entry:focus-visible,
.auth-form button:hover,
.auth-form button:focus-visible,
.suggestion-form button:hover,
.suggestion-form button:focus-visible,
.fan-upload-button:hover,
.fan-upload-button:focus-visible,
.comment-draft button:hover,
.comment-draft button:focus-visible,
.intro-enter-button:hover,
.intro-enter-button:focus-visible {
  color: #fff4dc;
  outline: none;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.44));
  transform: translateY(-2px);
}

.auth-link:hover::before,
.auth-link:focus-visible::before,
.button:hover::before,
.button:focus-visible::before,
.suggestion-entry:hover::before,
.suggestion-entry:focus-visible::before,
.auth-form button:hover::before,
.auth-form button:focus-visible::before,
.suggestion-form button:hover::before,
.suggestion-form button:focus-visible::before,
.fan-upload-button:hover::before,
.fan-upload-button:focus-visible::before,
.comment-draft button:hover::before,
.comment-draft button:focus-visible::before,
.intro-enter-button:hover::before,
.intro-enter-button:focus-visible::before {
  opacity: 0.9;
  filter: saturate(1.16) contrast(1.08);
  transform: translateY(1px) scaleX(1);
}

.auth-entry {
  min-width: 112px;
  padding-right: 8px;
  padding-left: 8px;
}

.auth-link::before,
.suggestion-entry::before,
.auth-form button::before,
.suggestion-form button::before,
.fan-upload-button::before,
.comment-draft button::before {
  display: none;
}

.auth-link {
  min-height: 36px;
  padding: 7px 0;
  color: rgba(242, 230, 205, 0.86);
  letter-spacing: 0.12em;
}

.auth-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 193, 145, 0.52), transparent);
  opacity: 0.54;
  transform: scaleX(0.74);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-link:hover::after,
.auth-link:focus-visible::after {
  opacity: 0.92;
  transform: scaleX(1);
}

.suggestion-entry,
.auth-form button,
.suggestion-form button,
.fan-upload-button,
.comment-draft button {
  min-height: 42px;
  padding: 9px 22px;
  background:
    linear-gradient(180deg, rgba(184, 50, 43, 0.24), rgba(67, 16, 13, 0.36)) !important;
  color: rgba(255, 244, 220, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(184, 50, 43, 0.34),
    inset 0 1px 0 rgba(242, 230, 205, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

.suggestion-entry:hover,
.suggestion-entry:focus-visible,
.auth-form button:hover,
.auth-form button:focus-visible,
.suggestion-form button:hover,
.suggestion-form button:focus-visible,
.fan-upload-button:hover,
.fan-upload-button:focus-visible,
.comment-draft button:hover,
.comment-draft button:focus-visible {
  background:
    linear-gradient(180deg, rgba(184, 50, 43, 0.36), rgba(88, 20, 16, 0.5)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(184, 50, 43, 0.52),
    inset 0 1px 0 rgba(242, 230, 205, 0.1),
    0 20px 42px rgba(0, 0, 0, 0.34);
}

.hero-section {
  min-height: max(680px, calc(100svh - 78px));
  padding-top: clamp(86px, 11vh, 132px);
  padding-bottom: clamp(72px, 9vh, 112px);
}

.intro-title-archive::after {
  display: none !important;
  content: none !important;
}

@keyframes archive-inkline-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(4px) scaleX(0.88);
    filter: saturate(0.9) contrast(0.96);
  }
  100% {
    opacity: 0.86;
    transform: translateX(-50%) translateY(0) scaleX(1);
    filter: saturate(1) contrast(1);
  }
}

@keyframes archive-inkline-breathe {
  0%, 100% {
    opacity: 0.78;
    transform: translateX(-50%) translateY(0) scaleX(0.985);
    filter: saturate(0.95) contrast(1);
  }
  50% {
    opacity: 0.92;
    transform: translateX(-50%) translateY(0) scaleX(1.015);
    filter: saturate(1.08) contrast(1.08);
  }
}

@media (max-width: 620px) {
  .intro-title-archive::after {
    display: none !important;
  }
}

.world-section {
  padding: clamp(26px, 4vw, 58px) 0 clamp(20px, 3vw, 42px);
}

.world-section .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 54px);
}

.world-section .section-heading .eyebrow {
  margin: 0 0 10px;
  align-self: end;
}

.world-section .section-heading h2 {
  max-width: 8em;
  margin: 0;
  font-size: clamp(58px, 7.2vw, 104px);
  line-height: 0.98;
}

.world-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  padding: clamp(22px, 3.5vw, 46px);
  border-top: 1px solid rgba(216, 193, 145, 0.18);
  border-bottom: 1px solid rgba(216, 193, 145, 0.14);
  background:
    radial-gradient(ellipse at 10% 18%, rgba(184, 50, 43, 0.12), transparent 18rem),
    radial-gradient(ellipse at 86% 62%, rgba(216, 193, 145, 0.08), transparent 20rem),
    linear-gradient(90deg, rgba(35, 26, 20, 0.5), rgba(11, 9, 7, 0.08) 42%, rgba(35, 26, 20, 0.22));
  counter-reset: world-rule;
}

.world-grid::before {
  position: absolute;
  top: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
  left: calc(clamp(22px, 3.5vw, 46px) + min(31vw, 360px));
  width: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(184, 50, 43, 0.52) 22%, rgba(216, 193, 145, 0.12) 74%, transparent);
}

.world-grid::after {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(18px, 3vw, 42px);
  width: clamp(160px, 18vw, 280px);
  height: clamp(110px, 12vw, 190px);
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 54% 58%, rgba(184, 50, 43, 0.14), transparent 68%),
    radial-gradient(ellipse at 34% 32%, rgba(216, 193, 145, 0.05), transparent 64%);
  filter: blur(8px);
  opacity: 0.8;
}

.world-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: clamp(22px, 3vw, 36px);
  border: 0;
  background: transparent;
  box-shadow: none;
  counter-increment: world-rule;
}

.world-card:nth-child(1) {
  grid-row: 1 / span 2;
  align-content: space-between;
  padding-left: 0;
  padding-right: clamp(28px, 4vw, 58px);
}

.world-card:nth-child(n + 2) {
  grid-column: 2;
  grid-template-columns: minmax(74px, 0.18fr) minmax(0, 1fr);
  gap: 10px clamp(18px, 2.8vw, 36px);
  padding-right: clamp(82px, 9vw, 150px);
  padding-left: clamp(32px, 5vw, 72px);
}

.world-card:nth-child(2) {
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
}

.world-card::before {
  display: block;
  position: static;
  grid-row: 1 / span 3;
  width: auto;
  height: auto;
  color: rgba(184, 50, 43, 0.7);
  font-family: "Archive Roman", serif;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1;
  pointer-events: none;
  content: "0" counter(world-rule);
}

.world-card:nth-child(1)::before {
  margin-bottom: clamp(34px, 8vw, 96px);
  font-size: clamp(54px, 8vw, 118px);
  color: rgba(184, 50, 43, 0.34);
  content: "札";
}

.world-card::after {
  display: none;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 50, 43, 0.46), rgba(242, 230, 205, 0.16), transparent);
  opacity: 0.88;
}

.world-card .eyebrow {
  margin: 0;
}

.world-card h3 {
  max-width: none;
  margin: 0;
  color: #f0e3c7;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.14;
  text-wrap: balance;
}

.world-card:nth-child(1) h3 {
  max-width: 6em;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.05;
}

.world-card p:last-child {
  max-width: min(100%, 34em);
  min-width: 0;
  color: rgba(232, 221, 196, 0.72);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.92;
  overflow-wrap: anywhere;
  word-break: normal;
}

.world-card:nth-child(1) p:last-child {
  max-width: min(100%, 27em);
}

.world-card:nth-child(n + 2) p:last-child,
.world-card:nth-child(n + 2) h3,
.world-card:nth-child(n + 2) .eyebrow {
  grid-column: 2;
}

@media (max-width: 900px) {
  .world-section .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .world-grid {
    grid-template-columns: 1fr;
    padding: clamp(18px, 6vw, 30px);
  }

  .world-grid::before {
    left: clamp(18px, 6vw, 30px);
  }

  .world-grid::after {
    opacity: 0.34;
  }

  .world-card:nth-child(1),
  .world-card:nth-child(n + 2) {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: minmax(52px, 0.18fr) minmax(0, 1fr);
    padding: clamp(20px, 6vw, 30px) 0 clamp(20px, 6vw, 30px) clamp(22px, 7vw, 44px);
  }

  .world-card:nth-child(1) {
    border-bottom: 1px solid rgba(216, 193, 145, 0.12);
  }

  .world-card:nth-child(1)::before {
    margin-bottom: 0;
    font-size: clamp(32px, 9vw, 54px);
    content: "01";
  }

  .world-card:nth-child(1) p:last-child,
  .world-card:nth-child(1) h3,
  .world-card:nth-child(1) .eyebrow {
    grid-column: 2;
  }

  .world-card:nth-child(1) h3 {
    max-width: none;
    font-size: clamp(30px, 8vw, 46px);
  }
}

.gift-heading h2 {
  font-family:
    "Archive Brush CN",
    "Archive Long CN",
    "Archive Title CN",
    serif;
  font-size: clamp(56px, 6.8vw, 96px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #f4ead4;
  text-shadow:
    0 16px 42px rgba(0, 0, 0, 0.76),
    0 0 18px rgba(216, 193, 145, 0.1);
}

#gift-title {
  font-family:
    "Archive Brush CN",
    "Archive Long CN",
    "Archive Title CN",
    serif;
}

.gift-heading h2::after {
  display: block;
  width: clamp(180px, 28vw, 360px);
  height: 24px;
  margin: 8px auto 0;
  content: "";
  background: url("./assets/ornaments/cinnabar-brush-stroke-small.png") center / 100% 100% no-repeat;
  opacity: 0.42;
}

.gift-archive-panel {
  position: relative;
  overflow: hidden;
  max-width: 1120px;
  padding: clamp(42px, 5vw, 74px) clamp(22px, 5vw, 78px) clamp(48px, 5vw, 74px);
  border: 1px solid rgba(216, 193, 145, 0.16);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(242, 230, 205, 0.1), transparent 26rem),
    radial-gradient(ellipse at 88% 16%, rgba(184, 50, 43, 0.14), transparent 25rem),
    radial-gradient(ellipse at 12% 100%, rgba(216, 193, 145, 0.07), transparent 30rem),
    linear-gradient(180deg, rgba(20, 18, 15, 0.78), rgba(8, 7, 6, 0.82) 48%, rgba(5, 4, 4, 0.9)),
    rgba(8, 7, 6, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(242, 230, 205, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(184, 50, 43, 0.07),
    0 40px 110px rgba(0, 0, 0, 0.34);
}

.gift-archive-panel::before {
  position: absolute;
  inset: 14px;
  display: block;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(242, 230, 205, 0.07);
  box-shadow:
    inset 0 0 0 1px rgba(184, 50, 43, 0.05),
    0 0 34px rgba(0, 0, 0, 0.14);
}

.gift-archive-panel::after {
  position: absolute;
  right: 8%;
  bottom: 16%;
  display: block;
  width: 36%;
  height: 42%;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at center, rgba(184, 50, 43, 0.1), transparent 68%);
  filter: blur(28px);
  opacity: 0.52;
}

.gift-archive-panel > * {
  position: relative;
  z-index: 1;
}

.gift-date-label {
  margin: 0 0 8px;
  color: rgba(216, 193, 145, 0.82);
  font-family: "Archive Inscription CN", "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(15px, 1.25vw, 18px);
  letter-spacing: 0.2em;
}

.gift-date {
  display: inline-block;
  font-family:
    "Archive Roman",
    "Archive Inscription CN",
    "Times New Roman",
    serif;
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 520;
  letter-spacing: 0.15em;
  color: #f7ead0;
  text-shadow:
    0 16px 38px rgba(0, 0, 0, 0.62),
    0 0 20px rgba(216, 193, 145, 0.08);
  font-variant-numeric: tabular-nums;
}

.gift-age-label {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  color: rgba(216, 193, 145, 0.76);
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.gift-age {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(100%, 980px);
  margin: 36px auto 60px;
  font-family:
    "Archive Roman",
    "Archive Inscription CN",
    serif;
  text-align: center;
  isolation: isolate;
}

.flip-countdown {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: clamp(8px, 1.1vw, 14px);
  align-items: flex-start;
  justify-content: center;
  max-width: 100%;
  padding: clamp(22px, 2.8vw, 34px) clamp(18px, 3vw, 40px) clamp(20px, 2.4vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(242, 230, 205, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(118deg, rgba(242, 230, 205, 0.12), transparent 18%, transparent 74%, rgba(242, 230, 205, 0.055)),
    radial-gradient(ellipse at 50% -12%, rgba(242, 230, 205, 0.16), transparent 56%),
    radial-gradient(ellipse at 50% 108%, rgba(184, 50, 43, 0.18), transparent 66%),
    rgba(14, 15, 14, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(242, 230, 205, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.62),
    inset 0 0 54px rgba(0, 0, 0, 0.28),
    0 26px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px) saturate(124%);
}

.flip-countdown::before,
.flip-countdown::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.flip-countdown::before {
  inset: 9px;
  border: 1px solid rgba(242, 230, 205, 0.06);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(184, 50, 43, 0.04),
    inset 0 18px 34px rgba(242, 230, 205, 0.035);
}

.flip-countdown::after {
  top: 0;
  right: -18%;
  left: -18%;
  height: 50%;
  background:
    linear-gradient(180deg, rgba(242, 230, 205, 0.12), transparent 68%),
    linear-gradient(105deg, transparent 28%, rgba(242, 230, 205, 0.13) 44%, transparent 58%);
  opacity: 0.52;
}

.flip-unit {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  justify-items: center;
  min-width: 0;
  padding: clamp(10px, 1.2vw, 14px) clamp(6px, 0.9vw, 10px) 11px;
  overflow: hidden;
  border: 1px solid rgba(242, 230, 205, 0.13);
  border-radius: 10px;
  background:
    linear-gradient(146deg, rgba(242, 230, 205, 0.11), rgba(242, 230, 205, 0.035) 38%, rgba(0, 0, 0, 0.16)),
    rgba(18, 18, 16, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(242, 230, 205, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.58),
    0 14px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(126%);
}

.flip-unit::before {
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(242, 230, 205, 0.45), transparent);
  opacity: 0.62;
}

.flip-digits {
  position: relative;
  display: flex;
  gap: 2px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.flip-digits::before,
.flip-digits::after {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
  content: "";
}

.flip-digits::before {
  display: none;
}

.flip-digits::after {
  display: none;
}

.flip-card {
  position: relative;
  display: grid;
  width: clamp(29px, 2.7vw, 42px);
  height: clamp(52px, 5vw, 74px);
  overflow: hidden;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateZ(0);
}

.flip-card + .flip-card {
  border-left: 1px solid rgba(242, 230, 205, 0.12);
}

.flip-card::before,
.flip-card::after {
  position: absolute;
  right: 0;
  left: 0;
  pointer-events: none;
  content: "";
}

.flip-card::before {
  display: none;
}

.flip-card::after {
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 78%, rgba(184, 50, 43, 0.1), transparent 56%);
  opacity: 0.7;
}

.flip-card-face,
.flip-card-leaf {
  position: relative;
  display: grid;
  place-items: center;
  color: #f8ecd4;
  font-family:
    "Archive Inscription CN",
    "Archive Roman",
    "Consolas",
    "Courier New",
    monospace;
  font-size: clamp(28px, 3vw, 41px);
  font-weight: 500;
  line-height: 1;
  text-shadow:
    0 0 16px rgba(242, 230, 205, 0.16),
    0 0 24px rgba(184, 50, 43, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.78);
  font-variant-numeric: tabular-nums;
}

.flip-card-face {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.flip-card-next {
  display: none;
}

.flip-card-leaf {
  display: none;
}

.flip-card.is-ticking .flip-card-current {
  animation: digit-soft-change 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.flip-label {
  color: rgba(216, 193, 145, 0.82);
  font-family: "Archive Inscription CN", "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(14px, 1.05vw, 16px);
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
}

.gift-age-hours {
  margin: 0;
  max-width: 24em;
  color: rgba(232, 221, 196, 0.58);
  font-family:
    "Archive Hand CN",
    "Noto Serif SC",
    serif;
  font-size: clamp(14px, 1.18vw, 16px);
  letter-spacing: 0.08em;
  line-height: 1.8;
}

@keyframes digit-soft-change {
  0% {
    opacity: 0.58;
    filter: blur(1px) brightness(1.18);
  }

  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
  }
}

.modal-link-row a,
.carousel-arrow,
.modal-close,
.gallery-nav,
.note-nav,
.work-open-button,
.modal-tab {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.modal-link-row a,
.carousel-arrow,
.gallery-nav,
.note-nav,
.work-open-button,
.modal-tab {
  position: relative;
  isolation: isolate;
  color: rgba(242, 230, 205, 0.84);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.72);
  transition:
    color 220ms ease,
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 260ms ease;
}

.modal-link-row a::after,
.carousel-arrow::after,
.gallery-nav::after,
.note-nav::after,
.work-open-button::after,
.modal-tab::after {
  position: absolute;
  right: 10%;
  bottom: 2px;
  left: 10%;
  z-index: -1;
  height: 14px;
  pointer-events: none;
  content: "";
  background: url("./assets/ornaments/cinnabar-brush-stroke-small.png") center / 100% 100% no-repeat;
  opacity: 0.34;
  transform: translateY(4px) scaleX(0.64);
  transition:
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 260ms ease;
}

.modal-link-row a:hover,
.modal-link-row a:focus-visible,
.carousel-arrow:hover,
.carousel-arrow:focus-visible,
.gallery-nav:hover,
.gallery-nav:focus-visible,
.note-nav:hover,
.note-nav:focus-visible,
.work-open-button:hover,
.work-open-button:focus-visible,
.modal-tab:hover,
.modal-tab:focus-visible,
.modal-tab.is-active {
  color: #fff2d6;
  outline: none;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.42));
  transform: translateY(-2px);
}

.modal-link-row a:hover::after,
.modal-link-row a:focus-visible::after,
.carousel-arrow:hover::after,
.carousel-arrow:focus-visible::after,
.gallery-nav:hover::after,
.gallery-nav:focus-visible::after,
.note-nav:hover::after,
.note-nav:focus-visible::after,
.work-open-button:hover::after,
.work-open-button:focus-visible::after,
.modal-tab:hover::after,
.modal-tab:focus-visible::after,
.modal-tab.is-active::after {
  opacity: 0.82;
  filter: saturate(1.12) contrast(1.08);
  transform: translateY(1px) scaleX(1);
}

.carousel-arrow {
  min-width: 94px;
  min-height: 92px;
  padding: 0;
  place-content: center;
}

.carousel-arrow::before {
  display: none !important;
}

.carousel-arrow small {
  color: inherit;
}

.work-body {
  padding-bottom: 74px;
}

.work-open-button {
  position: absolute !important;
  right: 22px !important;
  bottom: 22px !important;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 0 6px 18px;
  color: rgba(242, 230, 205, 0.9);
  font-family:
    "Archive Title CN",
    "Noto Serif SC",
    serif;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.work-open-button::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(184, 50, 43, 0.78);
  content: "";
  transform: translateY(-50%) rotate(45deg);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-open-button::after {
  right: auto !important;
  bottom: 4px !important;
  left: 18px !important;
  width: calc(100% - 18px);
  height: 1px !important;
  background: linear-gradient(90deg, rgba(184, 50, 43, 0.72), rgba(216, 193, 145, 0.28), transparent) !important;
  opacity: 0.62 !important;
  transform: scaleX(0.78) !important;
  transform-origin: left;
}

.work-open-button:hover::before,
.work-open-button:focus-visible::before {
  background: rgba(184, 50, 43, 0.52);
  box-shadow: 0 0 18px rgba(184, 50, 43, 0.22);
  transform: translateY(-50%) rotate(45deg) scale(1.12);
}

.work-open-button:hover::after,
.work-open-button:focus-visible::after {
  opacity: 0.95 !important;
  transform: scaleX(1) !important;
}

.modal-link-row a {
  min-height: 42px;
  padding: 8px 12px 14px;
}

.modal-close {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: rgba(242, 230, 205, 0.76);
  font-size: 28px;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #fff2d6;
  outline: none;
  transform: rotate(4deg) scale(1.04);
}

.gallery-nav {
  padding-right: 8px;
  padding-left: 8px;
}

/* Button language split: reserve cinnabar brushwork for ceremonial entry actions only. */
.button.ghost::before,
.modal-link-row a::after,
.carousel-arrow::after,
.gallery-nav::after,
.note-nav::after,
.modal-tab::after,
.auth-tabs button::after {
  display: none !important;
}

.button.primary::before,
.intro-enter-button::before {
  display: block;
}

.button.ghost {
  padding-inline: 6px;
  color: rgba(216, 193, 145, 0.86);
}

.button.ghost::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 193, 145, 0.7), rgba(184, 50, 43, 0.38), transparent);
  opacity: 0.54;
  transform: scaleX(0.64);
  transform-origin: center;
  transition:
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button.ghost:hover::after,
.button.ghost:focus-visible::after {
  opacity: 0.92;
  transform: scaleX(1);
}

.carousel-arrow {
  min-width: 76px;
  min-height: 84px;
  padding: 8px 0;
  color: rgba(232, 221, 196, 0.8);
  font-family: "Archive Inscription CN", "Archive Title CN", serif;
}

.carousel-arrow::before {
  position: absolute;
  inset: auto 50% 12px auto;
  display: block !important;
  width: 24px;
  height: 9px;
  border: 0 !important;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 50% 50%, rgba(184, 50, 43, 0.82), rgba(184, 50, 43, 0.34) 48%, transparent 74%);
  filter: blur(0.2px);
  opacity: 0.54;
  transform: translateX(50%) scaleX(0.72);
  transition:
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 260ms ease;
}

.carousel-arrow:hover::before,
.carousel-arrow:focus-visible::before {
  opacity: 0.86;
  filter: blur(0);
  transform: translateX(50%) scaleX(1);
}

.carousel-arrow small {
  font-size: 13px;
  letter-spacing: 0.16em;
}

.note-nav {
  min-width: 104px;
  min-height: 36px;
  padding: 7px 18px 8px;
  background:
    linear-gradient(90deg, rgba(216, 193, 145, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(232, 221, 196, 0.08), rgba(17, 16, 14, 0.18)) !important;
  color: rgba(232, 221, 196, 0.82);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  letter-spacing: 0.1em;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%, 8px 50%);
}

.note-nav-prev {
  clip-path: polygon(13px 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 13px 100%, 0 50%);
}

.note-nav:hover,
.note-nav:focus-visible {
  background:
    linear-gradient(90deg, rgba(184, 50, 43, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(232, 221, 196, 0.1), rgba(17, 16, 14, 0.22)) !important;
  color: #fff2d6;
}

.modal-tabs {
  gap: 12px;
  border: 0;
  background: transparent;
}

.modal-tab {
  min-height: 38px;
  padding: 7px 0;
  color: rgba(232, 221, 196, 0.62);
  letter-spacing: 0.08em;
}

.modal-tab::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block !important;
  height: 1px;
  border: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 193, 145, 0.32), transparent);
  opacity: 0.36;
  transform: scaleX(0.76);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-tab.is-active {
  color: #fff2d6;
}

.modal-tab.is-active::before,
.modal-tab:hover::before,
.modal-tab:focus-visible::before {
  background: linear-gradient(90deg, transparent, rgba(184, 50, 43, 0.86), rgba(216, 193, 145, 0.46), transparent);
  opacity: 0.9;
  transform: scaleX(1);
}

.modal-link-row a {
  min-height: 40px;
  padding: 8px 18px;
  background:
    linear-gradient(180deg, rgba(216, 193, 145, 0.12), rgba(17, 16, 14, 0.16)) !important;
  color: rgba(242, 230, 205, 0.86);
  letter-spacing: 0.08em;
}

.modal-link-row a:first-child {
  background:
    linear-gradient(180deg, rgba(184, 50, 43, 0.5), rgba(82, 18, 15, 0.58)) !important;
  color: #fff4dc;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 220, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.24) !important;
}

.gallery-nav {
  min-width: 42px;
  background:
    linear-gradient(180deg, rgba(216, 193, 145, 0.1), rgba(17, 16, 14, 0.2)) !important;
  color: rgba(232, 221, 196, 0.78);
  letter-spacing: 0.1em;
  box-shadow:
    inset 0 18px 26px rgba(255, 244, 220, 0.02),
    inset 0 -18px 26px rgba(0, 0, 0, 0.14),
    0 18px 36px rgba(0, 0, 0, 0.22) !important;
}

.gallery-nav::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  display: block !important;
  width: 1px;
  border: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(184, 50, 43, 0.44), rgba(216, 193, 145, 0.2), transparent);
  opacity: 0.42;
  transform: translateX(-50%);
  transition: opacity 220ms ease;
}

.gallery-nav:hover::before,
.gallery-nav:focus-visible::before {
  opacity: 0.78;
}

.auth-tabs button {
  position: relative;
  padding-bottom: 10px;
  color: rgba(232, 221, 196, 0.62);
}

.auth-tabs button::before {
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 193, 145, 0.44), transparent);
  opacity: 0.42;
  transform: scaleX(0.72);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-tabs button.is-active::before,
.auth-tabs button:hover::before,
.auth-tabs button:focus-visible::before {
  opacity: 0.9;
  transform: scaleX(1);
}

/* Works carousel controls: side slips, not generic red buttons. */
.works-carousel {
  overflow: visible;
  padding-inline: clamp(96px, 8vw, 130px);
}

.works-carousel .carousel-arrow {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  z-index: 7;
  display: grid;
  width: clamp(44px, 4vw, 58px) !important;
  min-width: 0;
  min-height: clamp(112px, 13vw, 156px) !important;
  padding: 0;
  place-items: center;
  color: rgba(232, 221, 196, 0.78);
  transform: translateY(-50%) !important;
  transition:
    color 240ms ease,
    filter 280ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.works-carousel .carousel-arrow-prev {
  right: auto !important;
  left: clamp(-78px, -5vw, -52px) !important;
}

.works-carousel .carousel-arrow-next {
  right: clamp(-78px, -5vw, -52px) !important;
  left: auto !important;
}

.works-carousel .carousel-arrow small {
  display: grid;
  min-height: 4.6em;
  place-items: center;
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.18;
  text-align: center;
  text-orientation: upright;
  writing-mode: vertical-rl;
}

.works-carousel .carousel-arrow::before {
  position: absolute;
  inset: -10px 2px;
  display: block !important;
  width: auto;
  height: auto;
  border: 0 !important;
  content: "";
  background:
    radial-gradient(ellipse at 50% 50%, rgba(184, 50, 43, 0.12), transparent 66%),
    linear-gradient(180deg, transparent, rgba(216, 193, 145, 0.08) 32%, rgba(184, 50, 43, 0.12) 50%, rgba(216, 193, 145, 0.06) 68%, transparent);
  opacity: 0.52;
  filter: blur(0.8px);
  transform: scaleY(0.92);
  transition:
    opacity 240ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 260ms ease;
}

.works-carousel .carousel-arrow::after {
  position: absolute;
  top: 50%;
  right: 50%;
  bottom: auto;
  left: auto;
  display: block !important;
  width: 1px;
  height: clamp(58px, 6vw, 86px);
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, transparent, rgba(184, 50, 43, 0.72) 24%, rgba(216, 193, 145, 0.32) 50%, rgba(184, 50, 43, 0.62) 76%, transparent);
  opacity: 0.66;
  box-shadow:
    -5px 0 18px rgba(184, 50, 43, 0.16),
    5px 0 18px rgba(184, 50, 43, 0.12);
  transform: translate(50%, -50%) scaleY(0.82);
  transition:
    opacity 240ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.works-carousel .carousel-arrow:hover,
.works-carousel .carousel-arrow:focus-visible {
  color: #fff2d6;
  outline: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.48));
}

.works-carousel .carousel-arrow-prev:hover,
.works-carousel .carousel-arrow-prev:focus-visible {
  transform: translateY(-50%) translateX(-4px) !important;
}

.works-carousel .carousel-arrow-next:hover,
.works-carousel .carousel-arrow-next:focus-visible {
  transform: translateY(-50%) translateX(4px) !important;
}

.works-carousel .carousel-arrow:hover::before,
.works-carousel .carousel-arrow:focus-visible::before {
  opacity: 0.86;
  filter: blur(0);
  transform: scaleY(1);
}

.works-carousel .carousel-arrow:hover::after,
.works-carousel .carousel-arrow:focus-visible::after {
  opacity: 0.95;
  transform: translate(50%, -50%) scaleY(1);
}

@media (max-width: 620px) {
  .works-carousel {
    padding-inline: clamp(34px, 10vw, 44px);
  }

  .works-carousel .carousel-arrow {
    width: 34px !important;
    min-height: 112px !important;
  }

  .works-carousel .carousel-arrow small {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .works-carousel .carousel-arrow-prev {
    left: -6px !important;
  }

  .works-carousel .carousel-arrow-next {
    right: -6px !important;
  }

  .carousel-dots {
    bottom: 18px;
  }
}

.outside-archive-section {
  position: relative;
  width: min(1320px, calc(100vw - 36px));
  margin: 0 calc(50% - min(660px, calc(50vw - 18px))) 92px;
  padding: clamp(34px, 5vw, 78px) 0 clamp(28px, 4vw, 62px);
  isolation: isolate;
}

.outside-archive-section::before {
  position: absolute;
  inset: 8% 6% 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 22% 24%, rgba(122, 34, 25, 0.18), transparent 30rem),
    radial-gradient(ellipse at 76% 64%, rgba(216, 193, 145, 0.08), transparent 28rem);
  opacity: 0.9;
}

.outside-archive-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(18px, 5vw, 72px);
  align-items: end;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto clamp(28px, 4vw, 52px);
}

.outside-archive-heading .eyebrow {
  align-self: end;
  margin: 0 0 12px;
}

.outside-archive-heading h2 {
  grid-row: 2;
  margin: 0;
  color: #f2e5c8;
  font-family: "Archive Brush CN", "Archive Long CN", "Archive Title CN", serif;
  font-size: clamp(72px, 9vw, 138px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.08em;
  text-shadow: 0 28px 70px rgba(0, 0, 0, 0.7);
}

.outside-archive-heading > p:last-child {
  grid-row: 2;
  max-width: 42em;
  margin: 0;
  color: rgba(232, 221, 196, 0.72);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 2;
}

.outside-gallery {
  position: relative;
  display: block;
  width: min(1160px, calc(100% - 28px));
  min-height: clamp(480px, 46vw, 680px);
  margin: 0 auto;
  padding: clamp(68px, 7vw, 108px) 0 clamp(26px, 4vw, 50px);
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(216, 193, 145, 0.07), transparent 26rem),
    radial-gradient(ellipse at 44% 60%, rgba(111, 27, 20, 0.14), transparent 34rem),
    radial-gradient(ellipse at 50% 52%, rgba(10, 8, 6, 0.54), rgba(10, 8, 6, 0.32) 46%, rgba(10, 8, 6, 0.08) 70%, transparent 100%);
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.16);
  -webkit-mask-image:
    radial-gradient(ellipse at 50% 52%, #000 0%, #000 52%, rgba(0, 0, 0, 0.68) 70%, rgba(0, 0, 0, 0.18) 86%, transparent 100%);
  mask-image:
    radial-gradient(ellipse at 50% 52%, #000 0%, #000 52%, rgba(0, 0, 0, 0.68) 70%, rgba(0, 0, 0, 0.18) 86%, transparent 100%);
}

.outside-gallery::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(5, 4, 3, 0.22) 13%, transparent 30%, transparent 70%, rgba(5, 4, 3, 0.22) 87%, transparent),
    linear-gradient(180deg, transparent, rgba(5, 4, 3, 0.18) 18%, transparent 34%, transparent 66%, rgba(5, 4, 3, 0.2) 84%, transparent);
  opacity: 0.72;
}

.outside-gallery::after {
  position: absolute;
  inset: 5% clamp(18px, 5vw, 76px) 3%;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 50% 0%, rgba(216, 193, 145, 0.035), transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(111, 27, 20, 0.1), transparent 44%);
  opacity: 0.82;
}

.outside-gallery-stage {
  position: relative;
  z-index: 2;
  display: flex;
  width: max-content;
  gap: clamp(42px, 6vw, 86px);
  align-items: center;
  min-height: clamp(330px, 34vw, 520px);
  padding: 0;
  perspective: 1400px;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.outside-gallery.is-ready .outside-gallery-stage {
  opacity: 1;
}

.outside-frame {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  flex: 0 0 clamp(190px, 19vw, 292px);
  width: clamp(190px, 19vw, 292px);
  aspect-ratio: 3 / 4;
  min-height: 0;
  margin: 0;
  justify-self: center;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 193, 145, calc(0.11 + var(--focus, 0) * 0.22));
  background:
    radial-gradient(ellipse at 50% 35%, rgba(242, 230, 205, calc(0.07 + var(--focus, 0) * 0.1)), transparent 42%),
    radial-gradient(ellipse at 52% 66%, rgba(126, 32, 24, calc(0.2 + var(--focus, 0) * 0.18)), transparent 60%),
    linear-gradient(180deg, rgba(17, 13, 10, calc(0.52 + var(--focus, 0) * 0.36)), rgba(5, 4, 3, calc(0.82 + var(--focus, 0) * 0.14)));
  box-shadow:
    inset 0 0 0 1px rgba(242, 230, 205, calc(0.03 + var(--focus, 0) * 0.05)),
    inset 0 -28px 64px rgba(0, 0, 0, calc(0.18 + var(--focus, 0) * 0.18)),
    0 calc(20px + var(--focus, 0) * 18px) calc(46px + var(--focus, 0) * 38px) rgba(0, 0, 0, calc(0.3 + var(--focus, 0) * 0.2));
  opacity: calc(0.62 + var(--focus, 0) * 0.38);
  transform:
    translateY(calc(30px - var(--focus, 0) * 38px))
    rotateY(calc((1 - var(--focus, 0)) * 3.5deg))
    scale(calc(0.78 + var(--focus, 0) * 0.3));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 680ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.outside-frame::before {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(216, 193, 145, 0.1);
  opacity: calc(0.26 + var(--focus, 0) * 0.58);
}

.outside-frame::after {
  position: absolute;
  inset: 12%;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 52% 36%, rgba(230, 209, 165, 0.09), transparent 50%),
    radial-gradient(ellipse at 50% 66%, rgba(126, 31, 23, 0.22), transparent 64%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
  opacity: calc(0.3 + var(--focus, 0) * 0.46);
}

.outside-frame span,
.outside-frame figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.outside-frame.is-focus {
  z-index: 5;
}

.outside-frame:not(.is-focus)::before {
  opacity: calc(0.16 + var(--focus, 0) * 0.18);
}

.outside-frame:not(.is-focus)::after {
  inset: calc(18% + (1 - var(--focus, 0)) * 10%);
  opacity: calc(0.3 + var(--focus, 0) * 0.24);
}

.outside-frame.is-side {
  opacity: calc(0.64 + var(--focus, 0) * 0.3);
}

.outside-frame[data-tone="street"] {
  background:
    radial-gradient(ellipse at 48% 50%, rgba(71, 103, 91, calc(0.16 + var(--focus, 0) * 0.08)), transparent 54%),
    linear-gradient(180deg, rgba(10, 9, 7, calc(0.48 + var(--focus, 0) * 0.34)), rgba(5, 4, 3, calc(0.78 + var(--focus, 0) * 0.16)));
}

.outside-frame[data-tone="paper"] {
  background:
    radial-gradient(ellipse at 48% 50%, rgba(151, 118, 71, calc(0.16 + var(--focus, 0) * 0.08)), transparent 54%),
    linear-gradient(180deg, rgba(12, 9, 6, calc(0.5 + var(--focus, 0) * 0.32)), rgba(5, 4, 3, calc(0.78 + var(--focus, 0) * 0.16)));
}

.outside-frame[data-tone="temple"] {
  background:
    radial-gradient(ellipse at 48% 50%, rgba(87, 41, 32, calc(0.18 + var(--focus, 0) * 0.1)), transparent 54%),
    linear-gradient(180deg, rgba(10, 7, 6, calc(0.5 + var(--focus, 0) * 0.32)), rgba(5, 4, 3, calc(0.78 + var(--focus, 0) * 0.16)));
}

.outside-frame[data-tone="letter"] {
  background:
    radial-gradient(ellipse at 48% 50%, rgba(216, 193, 145, calc(0.1 + var(--focus, 0) * 0.07)), transparent 54%),
    linear-gradient(180deg, rgba(12, 9, 6, calc(0.5 + var(--focus, 0) * 0.32)), rgba(5, 4, 3, calc(0.78 + var(--focus, 0) * 0.16)));
}

.outside-frame[data-tone="ink"] {
  background:
    radial-gradient(ellipse at 48% 50%, rgba(86, 28, 22, calc(0.18 + var(--focus, 0) * 0.09)), transparent 54%),
    linear-gradient(180deg, rgba(9, 8, 7, calc(0.5 + var(--focus, 0) * 0.32)), rgba(5, 4, 3, calc(0.78 + var(--focus, 0) * 0.16)));
}

.outside-gallery-note {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 36px);
  margin: clamp(18px, 3vw, 32px) auto 0;
  color: rgba(232, 221, 196, 0.54);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.outside-manuscripts {
  display: grid;
  gap: 0;
  width: min(1080px, calc(100% - 36px));
  margin: clamp(28px, 5vw, 62px) auto 0;
  border-top: 1px solid rgba(216, 193, 145, 0.16);
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
}

.outside-manuscripts article {
  display: grid;
  grid-template-columns: minmax(70px, 0.16fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  min-height: 132px;
  padding: clamp(18px, 3vw, 34px) clamp(4px, 1vw, 12px);
  border-bottom: 1px solid rgba(216, 193, 145, 0.1);
}

.outside-manuscripts article:nth-child(2) {
  transform: translateX(clamp(0px, 3vw, 42px));
}

.outside-manuscripts article:last-child {
  border-bottom: 0;
  transform: translateX(clamp(0px, 6vw, 84px));
}

.outside-manuscripts span {
  color: rgba(183, 59, 47, 0.76);
  font-family: "Archive Roman", serif;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
}

.outside-manuscripts h3 {
  margin: 0 0 6px;
  color: #f0e3c7;
  font-size: clamp(24px, 2.4vw, 34px);
}

.outside-manuscripts p {
  max-width: 58em;
  margin: 0;
  color: rgba(232, 221, 196, 0.68);
  line-height: 1.9;
}

.outside-read-button {
  position: relative;
  display: grid;
  width: max-content;
  max-width: calc(100% - 36px);
  min-width: 214px;
  min-height: 54px;
  margin: clamp(30px, 4vw, 52px) auto 0;
  place-items: center;
  padding: 0 46px 1px;
  border: 1px solid rgba(216, 193, 145, 0.16);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(216, 193, 145, 0), rgba(216, 193, 145, 0.075) 48%, rgba(216, 193, 145, 0)),
    linear-gradient(180deg, rgba(18, 13, 10, 0.72), rgba(7, 5, 4, 0.9));
  color: rgba(242, 226, 189, 0.92);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(17px, 1.35vw, 19px);
  letter-spacing: 0.24em;
  box-shadow:
    inset 0 1px 0 rgba(242, 230, 205, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 18px 46px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition:
    border-color 520ms cubic-bezier(0.16, 1, 0.3, 1),
    color 360ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.outside-read-button::before,
.outside-read-button::after {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  content: "";
  background: rgba(183, 59, 47, 0.62);
  opacity: 0.58;
  transform: translateY(-50%);
  transition:
    background 420ms ease,
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.outside-read-button::before {
  left: 18px;
}

.outside-read-button::after {
  right: 18px;
}

.outside-read-button:hover,
.outside-read-button:focus-visible {
  border-color: rgba(216, 193, 145, 0.32);
  color: rgba(255, 241, 204, 0.96);
  outline: none;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(242, 230, 205, 0.17),
    inset 0 -1px 0 rgba(0, 0, 0, 0.58),
    0 22px 54px rgba(0, 0, 0, 0.3);
}

.outside-read-button:hover::before,
.outside-read-button:focus-visible::before {
  background: rgba(216, 193, 145, 0.54);
  opacity: 0.8;
  transform: translate(-4px, -50%);
}

.outside-read-button:hover::after,
.outside-read-button:focus-visible::after {
  background: rgba(216, 193, 145, 0.54);
  opacity: 0.8;
  transform: translate(4px, -50%);
}

.outside-transition[hidden],
.outside-archive-page[hidden],
.outside-detail-grid[hidden],
.outside-detail-panel[hidden],
.outside-item-detail[hidden],
.outside-art-detail[hidden],
.outside-manuscript-detail[hidden] {
  display: none !important;
}

.outside-transition {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 56%, rgba(111, 24, 18, 0.12), transparent 44rem),
    rgba(4, 3, 2, 0.36);
  opacity: 0;
  animation: outside-sink-overlay 2300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.outside-transition::before {
  position: absolute;
  inset: -5%;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.16), rgba(5, 4, 3, 0.62)),
    radial-gradient(ellipse at 50% 50%, transparent 38%, rgba(4, 3, 2, 0.74) 78%),
    url("./assets/outside-transition-manuscript.webp") center / cover no-repeat;
  opacity: 0;
  transform: scale(1.035);
  animation: outside-transition-image 2300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

.outside-transition-envelope {
  display: none;
}

.outside-transition p {
  position: absolute;
  bottom: clamp(70px, 10vh, 130px);
  z-index: 1;
  margin: 0;
  color: rgba(232, 221, 196, 0.7);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: 0.24em;
  animation: outside-transition-copy 2300ms ease forwards;
}

body.outside-transitioning .site-header,
body.outside-transitioning .section-rail,
body.outside-transitioning main,
body.outside-transitioning .site-footer {
  pointer-events: none;
  animation: outside-main-sink 2600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.outside-archive-open .site-header,
body.outside-archive-open .section-rail,
body.outside-archive-open main,
body.outside-archive-open .site-footer {
  display: none;
}

body.outside-archive-open::before,
body.outside-archive-open::after {
  display: none;
}

body.outside-archive-open {
  min-height: 100vh;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.68), rgba(9, 7, 5, 0.94)),
    radial-gradient(ellipse at 50% -10%, rgba(126, 32, 24, 0.16), transparent 34rem),
    url("./assets/outside-page-collage.webp") center / cover fixed,
    #060504;
}

.outside-archive-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 72px) clamp(18px, 5vw, 76px) clamp(42px, 6vw, 88px);
  animation: outside-page-arrive 1050ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.outside-page-hero {
  display: grid;
  grid-template-columns: minmax(120px, 0.2fr) minmax(0, 0.8fr);
  gap: clamp(22px, 6vw, 96px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto clamp(28px, 5vw, 64px);
  padding-bottom: clamp(20px, 4vw, 42px);
  border-bottom: 1px solid rgba(216, 193, 145, 0.14);
  transition:
    margin-bottom 520ms cubic-bezier(0.16, 1, 0.3, 1),
    padding-bottom 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.outside-archive-page.is-volume-open .outside-page-hero {
  margin-bottom: clamp(18px, 3.4vw, 42px);
  padding-bottom: clamp(18px, 3vw, 32px);
}

.outside-hero-copy {
  transition:
    opacity 240ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 360ms ease;
}

.outside-hero-copy.is-switching {
  opacity: 0.08;
  filter: blur(2px);
  transform: translateY(10px);
}

.outside-back-button {
  min-width: 118px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(216, 193, 145, 0.18);
  background: rgba(7, 5, 4, 0.48);
  color: rgba(232, 221, 196, 0.76);
  font: inherit;
  cursor: pointer;
  transition:
    color 240ms ease,
    border-color 240ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.outside-back-button:hover,
.outside-back-button:focus-visible {
  color: #f6e8c9;
  border-color: rgba(216, 193, 145, 0.42);
  outline: none;
  transform: translateX(-4px);
}

.outside-page-hero h2 {
  margin: 0 0 18px;
  color: #f4e6c7;
  font-family: "Archive Brush CN", "Archive Long CN", serif;
  font-size: clamp(68px, 10vw, 152px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.08em;
  transition:
    font-size 520ms cubic-bezier(0.16, 1, 0.3, 1),
    letter-spacing 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.outside-archive-page.is-volume-open .outside-page-hero h2 {
  max-width: 11em;
  font-size: clamp(50px, 6vw, 86px);
  letter-spacing: 0.04em;
}

.outside-page-hero p:last-child {
  max-width: 58em;
  margin: 0;
  color: rgba(232, 221, 196, 0.68);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 2;
}

.outside-page-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.18fr) minmax(0, 0.82fr);
  gap: clamp(22px, 5vw, 72px);
  max-width: 1280px;
  margin: 0 auto;
}

.outside-work-filter {
  position: sticky;
  top: 28px;
  display: grid;
  align-self: start;
  gap: 12px;
  max-width: none;
  margin: 0;
  padding-top: 6px;
}

.outside-work-filter span {
  color: rgba(183, 59, 47, 0.78);
  font-family: "Archive Roman", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.outside-work-filter button,
.outside-cabinet-door button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: rgba(232, 221, 196, 0.68);
  font: inherit;
  cursor: pointer;
}

.outside-work-filter button {
  justify-self: start;
  min-height: 34px;
  padding: 0;
  box-shadow: inset 0 -1px 0 rgba(216, 193, 145, 0.18);
}

.outside-work-filter button.is-active {
  color: #f6e7c5;
  box-shadow: inset 0 -2px 0 rgba(183, 59, 47, 0.74);
}

.outside-cabinet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  max-width: none;
  margin: 0 0 clamp(30px, 5vw, 68px);
}

.outside-cabinet-door {
  position: relative;
  min-height: clamp(260px, 26vw, 390px);
  padding: clamp(26px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(216, 193, 145, 0.16);
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.2), rgba(5, 4, 3, 0.64)),
    url("./assets/outside-manuscript-drawer.svg") center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(242, 230, 205, 0.12),
    0 32px 80px rgba(0, 0, 0, 0.28);
}

.outside-cabinet-door::before {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(216, 193, 145, 0.09);
}

.outside-cabinet-door h3 {
  max-width: 6em;
  margin: 0 0 clamp(22px, 5vw, 70px);
  color: #f2e4c5;
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(44px, 5.8vw, 82px);
  line-height: 1.06;
}

.outside-cabinet-door p:not(.eyebrow) {
  max-width: 34em;
  color: rgba(232, 221, 196, 0.68);
  line-height: 1.9;
}

.outside-cabinet-door button {
  position: absolute;
  right: clamp(24px, 4vw, 54px);
  bottom: clamp(24px, 4vw, 54px);
  color: #f0dfb8;
  box-shadow: inset 0 -1px 0 rgba(216, 193, 145, 0.5);
}

.outside-cabinet-door button:hover,
.outside-cabinet-door button:focus-visible {
  color: #fff0c6;
  outline: none;
}

.outside-detail-grid {
  max-width: none;
  margin: 0;
}

.outside-detail-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 4vw, 58px);
  align-items: stretch;
  padding: clamp(18px, 3vw, 34px);
  border-top: 1px solid rgba(216, 193, 145, 0.14);
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
  animation: outside-panel-fade 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.outside-detail-media {
  display: grid;
  aspect-ratio: 3 / 4;
  min-height: 0;
  width: min(100%, 360px);
  place-items: center;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.24), rgba(5, 4, 3, 0.74)),
    url("./assets/outside-gallery-atmosphere.svg") center / cover no-repeat;
  color: rgba(242, 230, 205, 0.72);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: 0.08em;
}

.outside-text-preview {
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.18), rgba(5, 4, 3, 0.74)),
    url("./assets/outside-archive-envelope.svg") center / cover no-repeat;
}

.outside-detail-copy {
  align-self: center;
}

.outside-detail-copy h3 {
  margin-bottom: 16px;
  color: #f2e4c5;
  font-size: clamp(34px, 4vw, 58px);
}

.outside-detail-copy p:not(.eyebrow) {
  max-width: 42em;
  color: rgba(232, 221, 196, 0.7);
  line-height: 1.95;
}

.outside-comment-preview {
  margin-top: 28px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(216, 193, 145, 0.14);
}

.outside-comment-preview strong {
  color: rgba(242, 230, 205, 0.9);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 500;
}

@keyframes outside-main-sink {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0.28;
    filter: blur(10px);
    transform: translateY(76px) scale(0.985);
  }
}

@keyframes outside-sink-overlay {
  0% {
    opacity: 0;
  }

  38% {
    opacity: 0.58;
  }

  100% {
    opacity: 0.9;
  }
}

@keyframes outside-transition-image {
  0% {
    opacity: 0;
    transform: scale(1.035);
  }

  28% {
    opacity: 0.78;
  }

  82% {
    opacity: 0.82;
  }

  100% {
    opacity: 0;
    transform: scale(1.015);
  }
}

@keyframes outside-envelope-open {
  0% {
    opacity: 0;
    transform: translateY(54px) scale(0.9);
  }

  22% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-34px) scale(1.12);
  }
}

@keyframes outside-transition-copy {
  0%,
  12% {
    opacity: 0;
    transform: translateY(18px);
  }

  28%,
  78% {
    opacity: 0.82;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes outside-page-arrive {
  from {
    opacity: 0;
    transform: translateY(-26px) scale(0.985);
  }

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

@keyframes outside-panel-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@media (max-width: 900px) {
  .outside-archive-heading,
  .outside-page-hero,
  .outside-detail-panel,
  .outside-page-layout {
    grid-template-columns: 1fr;
  }

  .outside-archive-heading h2,
  .outside-archive-heading > p:last-child {
    grid-row: auto;
  }

  .outside-gallery {
    margin-right: -18px;
    margin-left: -18px;
  }

  .outside-gallery-stage {
    display: flex;
  }

  .outside-work-filter {
    position: relative;
    top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .outside-cabinet {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .outside-archive-section {
    width: calc(100vw - 24px);
    margin-right: 12px;
    margin-left: 12px;
  }

  .outside-gallery {
    padding-right: 22px;
    padding-left: 22px;
  }

  .outside-gallery-stage {
    padding: 0 32vw;
  }

  .outside-frame.is-side {
    display: grid;
  }

  .outside-frame.is-focus {
    width: clamp(210px, 22vw, 330px);
  }

  .outside-manuscripts article,
  .outside-manuscripts article:nth-child(2),
  .outside-manuscripts article:last-child {
    grid-template-columns: 1fr;
    transform: none;
  }

  .outside-read-button {
    width: min(100%, 260px);
  }

  .outside-page-hero h2 {
    font-size: clamp(58px, 20vw, 92px);
  }

  .outside-detail-media {
    width: min(100%, 260px);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .outside-gallery::before,
  .outside-transition-envelope,
  .outside-transition p,
  .outside-archive-page,
  .outside-detail-panel {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

html,
body {
  overflow-x: hidden;
}

.outside-page-layout {
  position: relative;
  display: block;
  isolation: isolate;
}

.outside-volume-shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  max-width: 1240px;
  margin: 0 auto clamp(34px, 5vw, 70px);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    max-height 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.outside-volume-shelf::before {
  position: absolute;
  inset: -8% -5%;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    url("./assets/outside-archive-envelope.svg") 4% 50% / 30% auto no-repeat,
    url("./assets/outside-gallery-atmosphere.svg") 52% 42% / 32% auto no-repeat,
    url("./assets/outside-manuscript-drawer.svg") 96% 54% / 28% auto no-repeat;
  opacity: 0.09;
  filter: grayscale(0.9) contrast(0.9);
}

.outside-volume-shelf.is-collapsed {
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}

.outside-volume-cover {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  aspect-ratio: 0.62;
  align-content: stretch;
  min-height: 0;
  padding: clamp(10px, 1.2vw, 14px);
  overflow: hidden;
  border: 1px solid rgba(216, 193, 145, 0.16);
  background: rgba(6, 5, 4, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(242, 230, 205, 0.1),
    0 28px 80px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition:
    border-color 260ms ease,
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.outside-volume-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 1px solid rgba(242, 230, 205, 0.12);
  opacity: 0.9;
  filter: saturate(0.92) contrast(1.03) brightness(0.82);
  transform: scale(1);
  transition:
    opacity 420ms ease,
    filter 420ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.outside-volume-cover::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(216, 193, 145, 0.12);
  background:
    linear-gradient(180deg, rgba(2, 2, 2, 0.08) 0%, transparent 42%, rgba(3, 2, 2, 0.48) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.32));
}

.outside-volume-cover::after {
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(242, 230, 205, 0.12);
}

.outside-volume-cover span {
  position: absolute;
  z-index: 3;
  top: clamp(16px, 2vw, 24px);
  left: clamp(16px, 2vw, 24px);
  padding: 5px 8px;
  border: 1px solid rgba(242, 230, 205, 0.14);
  background: rgba(4, 3, 3, 0.58);
  color: rgba(242, 230, 205, 0.78);
  font-family: "Archive Roman", serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.outside-volume-cover h3 {
  position: relative;
  z-index: 3;
  max-width: none;
  margin: 14px 2px 8px;
  color: #f4e8ca;
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(20px, 1.85vw, 28px);
  line-height: 1.18;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.78);
}

.outside-volume-cover p {
  position: relative;
  z-index: 3;
  margin: 0 2px 12px;
  color: rgba(232, 221, 196, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.outside-volume-cover button {
  position: relative;
  z-index: 3;
  justify-self: start;
  min-height: 38px;
  margin: 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f0dfb8;
  font: inherit;
  box-shadow: inset 0 -1px 0 rgba(216, 193, 145, 0.48);
  cursor: pointer;
}

.outside-volume-cover:hover,
.outside-volume-cover:focus-within,
.outside-volume-cover.is-active {
  border-color: rgba(216, 193, 145, 0.36);
  transform: translateY(-8px);
  box-shadow:
    inset 0 1px 0 rgba(242, 230, 205, 0.16),
    0 38px 90px rgba(0, 0, 0, 0.42);
}

.outside-volume-cover:hover img,
.outside-volume-cover:focus-within img,
.outside-volume-cover.is-active img {
  opacity: 1;
  filter: saturate(1.02) contrast(1.06) brightness(0.92);
  transform: scale(1.025);
}

.outside-work-area {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
}

.outside-work-area.is-active {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  animation: outside-panel-fade 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.outside-work-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.6vw, 34px);
  align-items: center;
  justify-content: space-between;
  padding: 0 0 clamp(18px, 3vw, 28px);
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
}

.outside-volume-back {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(232, 221, 196, 0.68);
  font: inherit;
  box-shadow: inset 0 -1px 0 rgba(216, 193, 145, 0.24);
  cursor: pointer;
}

.outside-section-switch {
  display: flex;
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 0;
  border-top: 1px solid rgba(216, 193, 145, 0.16);
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
}

.outside-section-switch button {
  min-width: clamp(132px, 14vw, 186px);
  min-height: 58px;
  padding: 0 clamp(20px, 3vw, 34px);
  border: 0;
  border-right: 1px solid rgba(216, 193, 145, 0.1);
  background: transparent;
  color: rgba(232, 221, 196, 0.58);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(19px, 1.8vw, 25px);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    background 320ms ease,
    color 320ms ease;
}

.outside-section-switch button:last-child {
  border-right: 0;
}

.outside-section-switch button.is-active,
.outside-section-switch button:hover,
.outside-section-switch button:focus-visible {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(216, 193, 145, 0.1), transparent 70%),
    rgba(126, 32, 24, 0.1);
  color: #f4e6c3;
  outline: none;
}

.outside-detail-panel {
  display: block;
  padding: 0;
  border: 0;
}

.outside-panel-heading {
  max-width: 760px;
  margin-bottom: clamp(22px, 4vw, 46px);
}

.outside-panel-heading h3 {
  margin: 0 0 12px;
  color: #f2e4c5;
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.05;
}

.outside-panel-heading p:not(.eyebrow) {
  margin: 0;
  color: rgba(232, 221, 196, 0.68);
  line-height: 1.9;
}

.outside-image-layout {
  display: block;
}

.outside-image-panel {
  position: relative;
  isolation: isolate;
}

.outside-image-panel::before {
  position: absolute;
  inset: clamp(72px, 11vw, 150px) -3% auto auto;
  z-index: -1;
  width: min(560px, 46vw);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.24), rgba(5, 4, 3, 0.82)),
    url("./assets/outside-fanart-night-watch.webp") center / cover no-repeat;
  opacity: 0.12;
  filter: grayscale(0.85) contrast(0.9);
  transform: rotate(-2deg);
}

.outside-image-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.25vw, 16px);
}

.outside-image-card,
.outside-text-card {
  position: relative;
  border: 1px solid rgba(216, 193, 145, 0.12);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(126, 32, 24, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(18, 13, 10, 0.72), rgba(6, 5, 4, 0.88));
  color: rgba(232, 221, 196, 0.72);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 320ms ease,
    color 320ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.outside-image-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  aspect-ratio: 4 / 3;
  align-content: stretch;
  min-height: 0;
  padding: clamp(14px, 1.8vw, 22px);
  background:
    linear-gradient(180deg, rgba(70, 68, 63, 0.18), rgba(7, 7, 7, 0.9)),
    radial-gradient(ellipse at 50% 38%, rgba(232, 221, 196, 0.08), transparent 56%),
    linear-gradient(135deg, rgba(31, 31, 30, 0.96), rgba(10, 10, 10, 0.98));
}

.outside-image-card[data-image="threshold"] {
  background:
    linear-gradient(180deg, rgba(70, 68, 63, 0.18), rgba(7, 7, 7, 0.9)),
    radial-gradient(ellipse at 50% 38%, rgba(232, 221, 196, 0.08), transparent 56%),
    linear-gradient(135deg, rgba(31, 31, 30, 0.96), rgba(10, 10, 10, 0.98));
}

.outside-image-card[data-image="manuscript"] {
  background:
    linear-gradient(180deg, rgba(70, 68, 63, 0.18), rgba(7, 7, 7, 0.9)),
    radial-gradient(ellipse at 50% 38%, rgba(232, 221, 196, 0.08), transparent 56%),
    linear-gradient(135deg, rgba(31, 31, 30, 0.96), rgba(10, 10, 10, 0.98));
}

.outside-image-card::after {
  position: absolute;
  top: 38%;
  left: 50%;
  pointer-events: none;
  content: "+";
  color: rgba(232, 221, 196, 0.28);
  font-family: "Archive Roman", "Noto Serif SC", serif;
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 300;
  line-height: 1;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 30px rgba(216, 193, 145, 0.1);
}

.outside-image-card span,
.outside-text-card span {
  color: rgba(183, 59, 47, 0.78);
  font-family: "Archive Roman", serif;
}

.outside-image-card span {
  position: relative;
  z-index: 1;
  top: auto;
  left: auto;
  font-size: 15px;
}

.outside-image-card strong {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-top: clamp(34px, 4vw, 58px);
}

.outside-image-card strong,
.outside-text-card strong {
  color: #f1dfb7;
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(18px, 1.45vw, 25px);
  font-weight: 500;
  line-height: 1.18;
}

.outside-image-card small,
.outside-text-card small {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  color: rgba(232, 221, 196, 0.56);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.outside-image-card.is-active,
.outside-image-card:hover,
.outside-image-card:focus-visible,
.outside-text-card.is-active,
.outside-text-card:hover,
.outside-text-card:focus-visible {
  border-color: rgba(216, 193, 145, 0.32);
  color: #f4e6c3;
  outline: none;
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(242, 230, 205, 0.12),
    0 26px 68px rgba(0, 0, 0, 0.34);
}

.outside-featured-image {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 0.44fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
  border-top: 1px solid rgba(216, 193, 145, 0.14);
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
}

.outside-featured-art {
  display: grid;
  aspect-ratio: 3 / 4;
  width: min(100%, 430px);
  place-items: center;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.02), rgba(5, 4, 3, 0.42)),
    url("./assets/outside-fanart-night-watch.webp") center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(216, 193, 145, 0.18),
    inset 0 0 0 12px rgba(0, 0, 0, 0.18),
    0 34px 90px rgba(0, 0, 0, 0.38);
}

.outside-featured-art[data-image="threshold"] {
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.02), rgba(5, 4, 3, 0.42)),
    url("./assets/outside-fanart-threshold.webp") center / cover no-repeat;
}

.outside-featured-art[data-image="manuscript"] {
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.06), rgba(5, 4, 3, 0.5)),
    url("./assets/outside-transition-manuscript.webp") center / cover no-repeat;
}

.outside-featured-art span {
  color: rgba(242, 230, 205, 0.68);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0.12em;
}

.outside-featured-copy h4,
.outside-detail-copy h4,
.outside-comments h4,
.outside-full-text h4 {
  margin: 0 0 14px;
  color: #f2e4c5;
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 500;
}

.outside-featured-copy p:not(.eyebrow),
.outside-detail-copy p:not(.eyebrow),
.outside-full-text p:not(.eyebrow),
.outside-comments p {
  color: rgba(232, 221, 196, 0.7);
  line-height: 1.95;
}

.outside-text-layout {
  display: block;
}

.outside-text-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.25vw, 16px);
}

.outside-text-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
  min-height: clamp(156px, 15vw, 190px);
  padding: clamp(14px, 1.8vw, 22px);
}

.outside-text-card span {
  font-size: 16px;
  line-height: 1;
}

.outside-text-card em {
  color: rgba(232, 221, 196, 0.48);
  font-size: 13px;
  font-style: normal;
}

.outside-pager {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(72px, auto) minmax(88px, auto);
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(18px, 2.4vw, 30px);
}

.outside-pager button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(216, 193, 145, 0.18);
  background:
    linear-gradient(180deg, rgba(242, 230, 205, 0.055), rgba(5, 4, 3, 0.26)),
    rgba(9, 8, 7, 0.72);
  color: rgba(232, 221, 196, 0.72);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition:
    border-color 240ms ease,
    color 240ms ease,
    transform 240ms ease;
}

.outside-pager button:hover,
.outside-pager button:focus-visible {
  border-color: rgba(216, 193, 145, 0.34);
  color: #f4e6c3;
  outline: none;
  transform: translateY(-2px);
}

.outside-pager span {
  color: rgba(241, 223, 183, 0.86);
  font-family: "Archive Roman", "Noto Serif SC", serif;
  font-size: 18px;
  text-align: center;
}

.outside-full-text {
  min-height: 320px;
  padding: clamp(24px, 4vw, 48px);
  border-top: 1px solid rgba(216, 193, 145, 0.14);
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
  background:
    linear-gradient(180deg, rgba(19, 13, 9, 0.68), rgba(5, 4, 3, 0.5)),
    url("./assets/outside-page-collage.webp") 82% center / auto 100% no-repeat;
}

.outside-item-detail {
  position: relative;
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  isolation: isolate;
  animation: outside-panel-fade 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.outside-item-detail::before {
  position: absolute;
  inset: clamp(52px, 8vw, 112px) auto auto -4%;
  z-index: -1;
  width: min(620px, 48vw);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.72), rgba(5, 4, 3, 0.18)),
    url("./assets/outside-fanart-threshold.webp") center / cover no-repeat;
  opacity: 0.1;
  filter: grayscale(0.9) contrast(0.92);
  transform: rotate(1.5deg);
}

.outside-work-area.is-item-open .outside-section-switch {
  opacity: 0.48;
}

.outside-item-detail-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 clamp(16px, 2.6vw, 28px);
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
}

.outside-item-detail-bar button {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(232, 221, 196, 0.72);
  font: inherit;
  box-shadow: inset 0 -1px 0 rgba(216, 193, 145, 0.28);
  cursor: pointer;
}

.outside-item-detail-bar button:hover,
.outside-item-detail-bar button:focus-visible {
  color: #f4e6c3;
  outline: none;
}

.outside-item-detail-bar span {
  color: rgba(183, 59, 47, 0.72);
  font-family: "Archive Roman", serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.outside-art-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 0.42fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.outside-detail-art {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 4;
  width: min(100%, 540px);
  justify-self: center;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(70, 68, 63, 0.18), rgba(7, 7, 7, 0.88)),
    radial-gradient(ellipse at 50% 38%, rgba(232, 221, 196, 0.08), transparent 56%),
    linear-gradient(135deg, rgba(31, 31, 30, 0.96), rgba(10, 10, 10, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(216, 193, 145, 0.18),
    inset 0 0 0 12px rgba(0, 0, 0, 0.18),
    0 34px 90px rgba(0, 0, 0, 0.38);
}

.outside-detail-art[data-image="threshold"] {
  background:
    linear-gradient(180deg, rgba(70, 68, 63, 0.18), rgba(7, 7, 7, 0.88)),
    radial-gradient(ellipse at 50% 38%, rgba(232, 221, 196, 0.08), transparent 56%),
    linear-gradient(135deg, rgba(31, 31, 30, 0.96), rgba(10, 10, 10, 0.98));
}

.outside-detail-art[data-image="manuscript"] {
  background:
    linear-gradient(180deg, rgba(70, 68, 63, 0.18), rgba(7, 7, 7, 0.88)),
    radial-gradient(ellipse at 50% 38%, rgba(232, 221, 196, 0.08), transparent 56%),
    linear-gradient(135deg, rgba(31, 31, 30, 0.96), rgba(10, 10, 10, 0.98));
}

.outside-detail-art::after {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  content: "+";
  color: rgba(232, 221, 196, 0.34);
  font-family: "Archive Roman", "Noto Serif SC", serif;
  font-size: clamp(68px, 8vw, 124px);
  font-weight: 300;
  line-height: 1;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 38px rgba(216, 193, 145, 0.1);
}

.outside-detail-art span {
  display: none;
  color: rgba(242, 230, 205, 0.68);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0.12em;
}

.outside-detail-copy {
  padding: clamp(18px, 3vw, 32px) 0;
}

.outside-manuscript-detail {
  display: block;
}

.outside-comments {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 30px);
  margin-top: clamp(30px, 5vw, 64px);
  padding: clamp(22px, 4vw, 42px) 0 0;
  border-top: 1px solid rgba(216, 193, 145, 0.14);
}

.outside-comments > div:first-child {
  max-width: 720px;
}

.outside-comment-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid rgba(216, 193, 145, 0.1);
}

.outside-comment-form input,
.outside-comment-form textarea {
  width: 100%;
  border: 1px solid rgba(216, 193, 145, 0.14);
  background: rgba(8, 6, 4, 0.56);
  color: rgba(232, 221, 196, 0.72);
  font: inherit;
}

.outside-comment-form input {
  min-height: 42px;
  padding: 0 14px;
}

.outside-comment-form textarea {
  min-height: 72px;
  padding: 12px 14px;
  resize: none;
}

.outside-comment-form button {
  align-self: stretch;
  justify-self: stretch;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(183, 59, 47, 0.34);
  background: rgba(126, 32, 24, 0.22);
  color: #f2e4c5;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 260ms ease,
    background 260ms ease,
    color 260ms ease;
}

.outside-comment-form button:hover,
.outside-comment-form button:focus-visible {
  border-color: rgba(216, 193, 145, 0.36);
  background: rgba(126, 32, 24, 0.32);
  color: #fff0c6;
  outline: none;
}

.outside-comment-list {
  display: grid;
  gap: 12px;
  max-height: clamp(230px, 28vw, 360px);
  overflow-y: auto;
  padding: 2px 8px 2px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.outside-comment-list::-webkit-scrollbar {
  display: none;
}

.outside-comment-list article {
  padding: 14px 16px;
  border: 1px solid rgba(216, 193, 145, 0.12);
  background:
    linear-gradient(135deg, rgba(216, 193, 145, 0.05), transparent 46%),
    rgba(5, 4, 3, 0.2);
}

.outside-comment-list strong {
  display: block;
  margin-bottom: 6px;
  color: rgba(242, 230, 205, 0.88);
}

.outside-comment-list p {
  margin: 0;
  color: rgba(232, 221, 196, 0.7);
}

/* Outside archive final pass: reduce card feeling on the secondary page. */
.outside-cabinet {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(216, 193, 145, 0.16);
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
}

.outside-cabinet-door {
  display: grid;
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 0.52fr) minmax(120px, 0.18fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: center;
  min-height: clamp(150px, 16vw, 230px);
  padding: clamp(24px, 4vw, 42px) 0;
  border: 0;
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
  background:
    radial-gradient(ellipse at 78% 50%, rgba(126, 32, 24, 0.16), transparent 28rem),
    linear-gradient(90deg, rgba(20, 14, 10, 0.32), rgba(5, 4, 3, 0.02));
  box-shadow: none;
}

.outside-cabinet-door:last-child {
  border-bottom: 0;
}

.outside-cabinet-door::before {
  position: static;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  color: rgba(183, 59, 47, 0.55);
  font-family: "Archive Roman", serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  content: "01";
}

.outside-cabinet-door:nth-child(2)::before {
  content: "02";
}

.outside-cabinet-door .eyebrow {
  grid-column: 2;
  margin-bottom: 8px;
}

.outside-cabinet-door h3 {
  grid-column: 2;
  max-width: none;
  margin: 0 0 10px;
  font-size: clamp(42px, 5.4vw, 72px);
}

.outside-cabinet-door p:not(.eyebrow) {
  grid-column: 2;
  max-width: 42em;
  margin: 0;
}

.outside-cabinet-door button {
  position: static;
  grid-column: 3;
  justify-self: end;
  align-self: center;
  min-width: 96px;
  color: #f0dfb8;
  box-shadow: inset 0 -1px 0 rgba(216, 193, 145, 0.5);
}

@media (max-width: 900px) {
  .outside-volume-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outside-volume-cover {
    width: min(100%, 360px);
    justify-self: center;
  }

  .outside-cabinet-door {
    grid-template-columns: minmax(54px, 0.16fr) minmax(0, 1fr);
  }

  .outside-cabinet-door .eyebrow,
  .outside-cabinet-door h3,
  .outside-cabinet-door p:not(.eyebrow),
  .outside-cabinet-door button {
    grid-column: 2;
  }

  .outside-cabinet-door button {
    justify-self: start;
  }

  .outside-section-switch {
    width: 100%;
  }

  .outside-section-switch button {
    flex: 1 1 0;
    min-width: 0;
  }

  .outside-image-layout,
  .outside-featured-image,
  .outside-art-detail,
  .outside-text-layout,
  .outside-comments {
    grid-template-columns: 1fr;
  }

  .outside-featured-art {
    width: min(100%, 330px);
    justify-self: center;
  }

  .outside-detail-art {
    width: min(100%, 420px);
  }

  .outside-image-wall,
  .outside-text-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .outside-comment-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .outside-volume-shelf {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .outside-image-wall,
  .outside-text-list {
    grid-template-columns: 1fr;
  }

  .outside-image-card {
    aspect-ratio: 5 / 3;
  }

  .outside-text-card,
  .outside-image-card {
    min-height: 150px;
  }

  .outside-pager {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .outside-pager button {
    padding: 0 12px;
  }

  .outside-comments {
    gap: 18px;
  }
}

/* Decardified archive pass: long-form ledgers instead of floating cards. */
.author-panel,
.notice-strip,
.works-carousel,
.gift-archive-panel {
  --archive-line: rgba(216, 193, 145, 0.16);
  --archive-line-soft: rgba(216, 193, 145, 0.08);
  --archive-red-soft: rgba(184, 50, 43, 0.18);
}

.author-panel,
.notice-strip {
  width: min(1180px, calc(100vw - 48px));
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--archive-line);
  border-bottom: 1px solid var(--archive-line-soft);
  background:
    linear-gradient(90deg, rgba(216, 193, 145, 0.055), transparent 28%, transparent 72%, rgba(184, 50, 43, 0.045)),
    transparent;
  box-shadow: none;
}

.author-panel::before,
.notice-strip::before {
  inset: 0;
  border: 0;
  background:
    linear-gradient(90deg, rgba(184, 50, 43, 0.44), transparent 15%, transparent 85%, rgba(216, 193, 145, 0.22)) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(216, 193, 145, 0.16), transparent 42%, rgba(184, 50, 43, 0.18), transparent) 0 100% / 100% 1px no-repeat;
  opacity: 0.72;
}

.author-panel {
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: 0;
  margin-top: clamp(28px, 5vw, 70px);
  margin-bottom: clamp(72px, 8vw, 112px);
}

.panel-corner-title {
  position: absolute !important;
  top: clamp(20px, 2.6vw, 34px);
  left: clamp(22px, 3vw, 42px);
  z-index: 3 !important;
  margin: 0 !important;
  color: rgba(242, 230, 205, 0.9) !important;
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(18px, 1.65vw, 26px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
}

.panel-corner-title::after {
  display: block;
  width: 54px;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(184, 50, 43, 0.72), transparent);
  content: "";
}

.author-seal-card {
  justify-items: start;
  align-content: center;
  min-height: clamp(310px, 31vw, 430px);
  padding: clamp(74px, 7vw, 104px) clamp(24px, 4vw, 52px) clamp(30px, 5vw, 66px);
  border: 0;
  border-right: 1px solid var(--archive-line-soft);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.author-seal-card span {
  width: 72px;
  height: 72px;
  margin-bottom: clamp(28px, 4vw, 48px);
  border-color: rgba(184, 50, 43, 0.64);
  color: rgba(216, 193, 145, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.author-seal-card strong {
  max-width: 4em;
  color: #f4e7cb;
  font-family: "Archive Brush CN", "Archive Long CN", "Archive Title CN", serif;
  font-size: clamp(54px, 7vw, 94px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 0.98;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.62);
}

.author-seal-card small {
  margin-top: 18px;
  color: rgba(232, 221, 196, 0.62);
  font-family: "Archive Roman", "Noto Serif SC", serif;
  letter-spacing: 0.12em;
}

.author-copy {
  align-content: center;
  padding: clamp(30px, 5vw, 66px) clamp(24px, 5vw, 72px);
}

.author-copy > p:not(.eyebrow) {
  max-width: 52em;
  color: rgba(232, 221, 196, 0.76);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.9;
}

.author-copy > p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 12px;
}

.author-keywords {
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(24px, 3vw, 38px);
}

.author-keywords span {
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid rgba(184, 50, 43, 0.34);
  color: rgba(216, 193, 145, 0.82);
  font-family: "Archive Roman", "Noto Serif SC", serif;
  letter-spacing: 0.08em;
}

.author-stats {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--archive-line-soft);
}

.author-stats span {
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 34px);
  align-items: baseline;
  min-height: 0;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--archive-line-soft);
  background: transparent;
  color: rgba(232, 221, 196, 0.68);
  font-size: 14px;
}

.author-stats strong {
  color: rgba(242, 230, 205, 0.88);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 400;
}

.notice-strip {
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 0.68fr);
  gap: 0;
  align-items: stretch;
  margin-bottom: clamp(72px, 8vw, 110px);
}

.note-heading {
  grid-template-columns: 1fr;
  align-content: center;
  padding: clamp(28px, 4vw, 54px) clamp(24px, 4vw, 48px);
  border-right: 1px solid var(--archive-line-soft);
  border-bottom: 0;
}

.note-heading time {
  width: max-content;
  margin-top: clamp(20px, 3vw, 36px);
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid rgba(184, 50, 43, 0.36);
  color: rgba(216, 193, 145, 0.78);
  font-family: "Archive Roman", "Noto Serif SC", serif;
  letter-spacing: 0.12em;
}

.note-reader {
  gap: 0;
  padding: clamp(28px, 4vw, 54px) clamp(24px, 5vw, 72px);
}

.note-card {
  min-height: 150px;
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.note-card::before {
  top: 2px;
  left: -26px;
  display: block;
  width: 1px;
  height: calc(100% - 4px);
  background: linear-gradient(180deg, rgba(184, 50, 43, 0.68), rgba(216, 193, 145, 0.16), transparent);
  opacity: 0.7;
}

.note-card p {
  max-width: 58em;
  color: rgba(232, 221, 196, 0.78);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 2.05;
}

.note-controls {
  justify-content: flex-start;
  margin-top: clamp(24px, 3vw, 40px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: end;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto clamp(30px, 4vw, 52px);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(216, 193, 145, 0.11);
}

.section-heading .eyebrow {
  margin: 0 0 8px;
}

.section-heading h2 {
  margin: 0;
}

.works-carousel {
  width: min(1180px, calc(100vw - 48px));
  min-height: clamp(430px, 42vw, 540px);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) clamp(84px, 8vw, 118px) clamp(52px, 5vw, 68px);
  border-top: 1px solid rgba(216, 193, 145, 0.11);
  border-bottom: 1px solid rgba(216, 193, 145, 0.08);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(216, 193, 145, 0.04), transparent 36rem),
    linear-gradient(90deg, transparent, rgba(184, 50, 43, 0.035) 50%, transparent);
}

.work-stage {
  min-height: clamp(340px, 34vw, 430px);
}

.work-card {
  grid-template-rows: none;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  width: min(860px, 70vw);
  min-height: clamp(330px, 31vw, 410px);
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(216, 193, 145, 0.16);
  border-bottom: 1px solid rgba(216, 193, 145, 0.12);
  background:
    linear-gradient(90deg, rgba(216, 193, 145, 0.06), transparent 42%, rgba(184, 50, 43, 0.035)),
    rgba(8, 7, 6, 0.22);
  box-shadow: none;
}

.work-card.is-active {
  border-color: rgba(216, 193, 145, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(242, 230, 205, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.22);
}

.work-card.is-active:hover,
.work-card.is-active:focus-visible {
  border-color: rgba(216, 193, 145, 0.32);
  transform: translateX(-50%) translateY(-3px) scale(1);
}

.work-cover {
  min-height: 100%;
  border-right: 1px solid rgba(216, 193, 145, 0.1);
  border-bottom: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(184, 50, 43, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(18, 15, 12, 0.78), rgba(5, 4, 3, 0.7));
}

.work-cover img {
  aspect-ratio: 3 / 4;
  filter: saturate(0.9) contrast(1.02) brightness(0.86);
}

.work-card.is-active .work-cover img {
  filter: saturate(1.02) contrast(1.04) brightness(0.94);
}

.work-cover.muted,
.work-cover.green {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(216, 193, 145, 0.09), transparent 58%),
    linear-gradient(180deg, rgba(18, 15, 12, 0.78), rgba(5, 4, 3, 0.7));
}

.work-cover span {
  width: auto;
  height: auto;
  border: 0;
  color: rgba(216, 193, 145, 0.7);
  font-family: "Archive Brush CN", "Archive Long CN", serif;
  font-size: clamp(76px, 8vw, 122px);
  font-weight: 400;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.66);
}

.work-body {
  min-height: 100%;
  padding: clamp(30px, 4vw, 50px) clamp(28px, 4.5vw, 62px) clamp(66px, 6vw, 84px);
}

.file-number {
  color: rgba(216, 193, 145, 0.66);
  font-family: "Archive Roman", "Noto Serif SC", serif;
  letter-spacing: 0.14em;
}

.work-body h3 {
  font-size: clamp(36px, 4vw, 58px);
}

.work-body p:not(.file-number) {
  max-width: 40em;
  color: rgba(232, 221, 196, 0.72);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.9;
}

.tag-row {
  gap: clamp(12px, 1.8vw, 22px);
}

.tag-row span {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgba(216, 193, 145, 0.16);
  color: rgba(216, 193, 145, 0.74);
  letter-spacing: 0.08em;
}

.gift-archive-panel {
  max-width: min(1180px, calc(100vw - 48px));
  padding: clamp(34px, 5vw, 66px) 0 clamp(40px, 5vw, 72px);
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(216, 193, 145, 0.14);
  border-bottom: 1px solid rgba(216, 193, 145, 0.1);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(216, 193, 145, 0.05), transparent 32%, transparent 68%, rgba(184, 50, 43, 0.045)),
    transparent;
  box-shadow: none;
}

.gift-archive-panel::before {
  inset: 0;
  border: 0;
  background:
    linear-gradient(90deg, rgba(184, 50, 43, 0.44), transparent 18%, transparent 82%, rgba(216, 193, 145, 0.2)) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(216, 193, 145, 0.16), transparent) 0 100% / 100% 1px no-repeat;
  box-shadow: none;
}

.gift-archive-panel::after {
  display: none;
}

.flip-countdown {
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  width: min(100%, 1040px);
  padding: clamp(14px, 2vw, 24px) 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(216, 193, 145, 0.12);
  border-bottom: 1px solid rgba(216, 193, 145, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.flip-countdown::before,
.flip-countdown::after {
  display: none;
}

.flip-unit {
  border: 0;
  border-right: 1px solid rgba(216, 193, 145, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.flip-unit:last-child {
  border-right: 0;
}

.gift-statement {
  width: min(100%, 1040px);
}

.suggestion-entry {
  margin-top: clamp(28px, 4vw, 46px);
  min-height: 42px;
  padding: 8px 8px 12px;
  border: 0 !important;
  border-bottom: 1px solid rgba(184, 50, 43, 0.58) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(242, 230, 205, 0.86);
  letter-spacing: 0.16em;
}

.suggestion-entry:hover,
.suggestion-entry:focus-visible {
  border-bottom-color: rgba(216, 193, 145, 0.44) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff2d6;
}

@media (max-width: 980px) {
  .author-panel,
  .notice-strip {
    grid-template-columns: 1fr;
    width: min(680px, calc(100vw - 36px));
  }

  .author-seal-card,
  .note-heading {
    border-right: 0;
    border-bottom: 1px solid var(--archive-line-soft);
  }

  .author-seal-card {
    min-height: 260px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    width: min(680px, calc(100vw - 36px));
  }

  .works-carousel {
    width: min(780px, calc(100vw - 36px));
    padding-inline: clamp(46px, 8vw, 76px);
  }

  .work-card {
    width: min(640px, 74vw);
    grid-template-columns: minmax(150px, 0.34fr) minmax(0, 0.66fr);
  }

  .gift-archive-panel {
    max-width: min(760px, calc(100vw - 36px));
  }

  .flip-countdown {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
  }

  .flip-unit:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .author-panel,
  .notice-strip,
  .section-heading,
  .works-carousel,
  .gift-archive-panel {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .author-copy,
  .note-reader {
    padding-inline: 20px;
  }

  .author-stats span {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .note-card::before {
    left: 0;
  }

  .note-card p {
    padding-left: 16px;
  }

  .works-carousel {
    min-height: 590px;
    padding-inline: 38px;
  }

  .work-stage {
    min-height: 500px;
  }

  .work-card {
    grid-template-columns: 1fr;
    grid-template-rows: 142px minmax(0, 1fr);
    width: min(390px, calc(100vw - 84px));
    min-height: 500px;
  }

  .work-cover {
    min-height: 0;
    height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 193, 145, 0.1);
  }

  .work-cover img {
    height: 100%;
    object-position: center;
  }

  .work-cover span {
    font-size: clamp(54px, 16vw, 76px);
  }

  .work-body {
    padding: 24px 22px 70px;
  }

  .flip-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flip-unit,
  .flip-unit:nth-child(3n) {
    border-right: 1px solid rgba(216, 193, 145, 0.08);
  }

  .flip-unit:nth-child(2n) {
    border-right: 0;
  }

  .gift-statement article {
    grid-template-columns: 1fr;
  }

  .gift-statement .eyebrow,
  .gift-statement h3,
  .gift-statement p:last-child {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Targeted polish after review comments: complete content, stable frames, cleaner footer. */
.hero-featured-case {
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
  width: min(1040px, 100%);
}

.almanac-date {
  min-height: clamp(210px, 16vw, 250px);
  padding: clamp(24px, 2.8vw, 34px);
}

.almanac-date strong {
  font-size: clamp(46px, 5.1vw, 70px);
  white-space: nowrap;
}

.almanac-date small,
.almanac-meta dd,
.almanac-actions p {
  overflow-wrap: anywhere;
}

.almanac-actions div {
  min-height: 110px;
}

.author-seal-card {
  justify-items: center;
  text-align: center;
}

.author-avatar-frame {
  position: relative;
  display: grid;
  width: clamp(156px, 18vw, 236px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 193, 145, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(242, 230, 205, 0.08), transparent 44%),
    radial-gradient(circle at 50% 58%, rgba(184, 50, 43, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(20, 18, 15, 0.86), rgba(4, 4, 3, 0.92));
  box-shadow:
    inset 0 0 0 12px rgba(0, 0, 0, 0.16),
    inset 0 0 0 13px rgba(216, 193, 145, 0.06),
    0 28px 62px rgba(0, 0, 0, 0.36);
}

.author-avatar-frame::before,
.author-avatar-frame::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border-radius: 50%;
}

.author-avatar-frame::before {
  inset: 18px;
  border: 1px solid rgba(216, 193, 145, 0.13);
}

.author-avatar-frame::after {
  inset: 34%;
  border: 1px solid rgba(184, 50, 43, 0.46);
  opacity: 0.72;
}

.author-avatar-frame span {
  display: grid;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  color: rgba(216, 193, 145, 0.68);
  font-family: "Archive Title CN", "Noto Serif SC", serif;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0.18em;
}

.author-seal-card small {
  margin-top: clamp(20px, 3vw, 34px);
}

.author-copy {
  padding-bottom: clamp(104px, 9vw, 138px);
}

.author-name-seal {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(26px, 4vw, 54px);
  display: grid;
  width: clamp(118px, 12vw, 166px);
  min-height: 0;
  place-items: center;
  border: 0;
  color: rgba(242, 230, 205, 0.78);
  text-align: center;
  transform: rotate(-2deg);
}

.author-name-seal img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 10px rgba(184, 50, 43, 0.12));
  mix-blend-mode: normal;
}

.notice-strip {
  min-height: clamp(560px, 48vw, 680px);
}

.note-heading {
  align-content: start;
}

.note-reader {
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: clamp(500px, 42vw, 620px);
}

.note-card {
  height: clamp(380px, 34vw, 500px);
  overflow: auto;
  scrollbar-width: none;
}

.note-card::-webkit-scrollbar {
  display: none;
}

.note-card p {
  max-width: 64em;
  font-size: clamp(17px, 1.28vw, 20px);
}

.note-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(118px, max-content));
  gap: 14px;
  justify-content: end;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 193, 145, 0.1);
}

.note-nav {
  min-width: 128px;
  min-height: 40px;
  clip-path: none;
  border-bottom: 1px solid rgba(184, 50, 43, 0.48) !important;
  background: transparent !important;
  letter-spacing: 0.12em;
}

.note-nav[hidden] {
  display: none !important;
}

.note-nav:hover,
.note-nav:focus-visible {
  background: transparent !important;
  color: #fff2d6;
  transform: translateY(-1px);
}

#works .section-heading,
.gift-archive .section-heading {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

#works .section-heading h2,
.gift-heading h2,
#gift-title {
  font-family: "Archive Title CN", "Noto Serif SC", "Songti SC", serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  transform: none;
}

.gift-heading h2::after {
  width: clamp(150px, 20vw, 260px);
  height: 16px;
  opacity: 0.32;
}

.works-carousel {
  min-height: clamp(380px, 36vw, 470px);
}

.work-stage {
  min-height: clamp(290px, 28vw, 360px);
}

.work-card {
  grid-template-columns: minmax(150px, 0.38fr) minmax(0, 0.62fr);
  width: min(560px, 48vw);
  min-height: clamp(280px, 26vw, 340px);
}

.work-card.is-prev {
  transform: translateX(calc(-50% - min(270px, 27vw))) scale(0.82) rotateY(7deg);
}

.work-card.is-next {
  transform: translateX(calc(-50% + min(270px, 27vw))) scale(0.82) rotateY(-7deg);
}

.work-cover span {
  font-size: clamp(62px, 6.2vw, 98px);
}

.work-body {
  justify-content: center;
  padding: clamp(24px, 3.2vw, 38px) clamp(24px, 3.4vw, 42px) clamp(66px, 5vw, 78px);
}

.work-body h3 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3vw, 43px);
}

.tag-row {
  margin-top: 8px;
}

.modal-panel::before {
  display: none;
}

.modal-block {
  border: 0;
  border-top: 1px solid rgba(216, 193, 145, 0.12);
  background: transparent;
}

.modal-character-block {
  border-top-color: rgba(216, 193, 145, 0.16);
}

.modal-block::before,
.modal-block::after,
.modal-block:nth-child(1)::after {
  display: none !important;
}

.character-frame,
.character-copy,
.modal-quote {
  border-color: rgba(216, 193, 145, 0.12);
  background:
    linear-gradient(180deg, rgba(242, 230, 205, 0.035), rgba(0, 0, 0, 0.12)),
    rgba(7, 6, 5, 0.18);
}

.modal-quote {
  border-left-color: rgba(216, 193, 145, 0.24);
}

.outside-archive-heading {
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  align-items: center;
}

.outside-archive-heading .eyebrow {
  grid-column: 1 / -1;
}

.outside-archive-heading h2,
.outside-archive-heading > p:last-child {
  grid-row: auto;
}

.outside-archive-heading h2 {
  align-self: center;
  letter-spacing: 0.04em;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(260px, 0.44fr) minmax(220px, 0.28fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  min-height: clamp(150px, 14vw, 210px);
}

.footer-quote,
.footer-links {
  position: relative;
  z-index: 1;
}

.footer-quote {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.footer-quote span {
  color: rgba(242, 230, 205, 0.86);
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0.12em;
}

.footer-quote small {
  max-width: 28em;
  color: rgba(232, 221, 196, 0.58);
  line-height: 1.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  color: rgba(216, 193, 145, 0.72);
}

.footer-links a {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(216, 193, 145, 0.18);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-bottom-color: rgba(184, 50, 43, 0.62);
  color: #fff2d6;
  outline: none;
}

@media (max-width: 980px) {
  .hero-featured-case {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
  }

  .notice-strip {
    min-height: 0;
  }

  .note-reader {
    min-height: 520px;
  }

  .work-card {
    width: min(500px, 64vw);
  }

  .outside-archive-heading {
    grid-template-columns: 1fr;
    width: min(720px, calc(100% - 36px));
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-copy,
  .footer-links {
    justify-items: center;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .hero-featured-case {
    grid-template-columns: 1fr;
  }

  .almanac-date strong {
    font-size: clamp(42px, 14vw, 58px);
  }

  .almanac-meta div {
    grid-template-columns: minmax(54px, 0.26fr) minmax(0, 0.74fr);
  }

  .almanac-meta dd {
    writing-mode: horizontal-tb;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .author-name-seal {
    position: relative;
    right: auto;
    bottom: auto;
    justify-self: start;
    margin-top: 28px;
  }

  .author-copy {
    padding-bottom: 30px;
  }

  .note-reader {
    min-height: 540px;
  }

  .note-controls {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .note-nav {
    width: 100%;
  }

  .work-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: 150px minmax(0, 1fr) !important;
    width: min(300px, calc(100vw - 92px));
    min-height: 430px;
  }

  .work-body {
    min-width: 0;
    justify-content: start;
    padding: 22px 20px 66px;
  }

  .work-body h3 {
    font-size: clamp(25px, 7.6vw, 32px);
    line-height: 1.18;
  }

  .file-number {
    font-size: 11px;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
  }

  .tag-row {
    gap: 8px 12px;
  }

  .work-stage {
    min-height: 440px;
  }

  .footer-links {
    gap: 10px 14px;
  }
}






