:root {
  --paper: #f4f2ed;
  --ink: #0d0d0c;
  --line: #ddd9cf;
  --muted: #9a9690;
  --soft: #ebe8df;
  --warm: #b5a48e;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Cormorant Garamond", "Noto Serif SC", Georgia, "Times New Roman",
    "Songti SC", "STSong", serif;
  font-feature-settings: "kern", "liga", "calt";
}

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

a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.poster {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(28px, 4vw, 60px);
  overflow: hidden;
  isolation: isolate;
}

.frame {
  position: fixed;
  inset: clamp(12px, 1.1vw, 22px);
  z-index: -1;
  border: 1px solid var(--line);
  pointer-events: none;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(221, 217, 207, 0.68);
}

.poster-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  letter-spacing: 0.12em;
  line-height: 1.34;
}

.header-stack {
  display: grid;
  gap: 2px;
  font-size: clamp(17px, 1.3vw, 22px);
  font-weight: 500;
}

.header-stack a,
.header-stack span {
  display: block;
}

.header-stack span {
  color: var(--muted);
  font-size: clamp(13px, 0.95vw, 17px);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.header-logo {
  display: block;
  height: clamp(20px, 3.2vh, 32px);
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-top: 4px;
  margin-left: auto;
}

.align-right {
  justify-items: end;
  text-align: right;
}

.home-poster {
  grid-template-rows: auto 1fr auto;
}

.wordmark-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
}

.logo-lockup {
  position: relative;
  display: grid;
  place-items: center;
  width: min(68vw, 980px);
  min-width: 620px;
}

.wordmark-image {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.04);
  transform: translateX(-1%);
  user-select: none;
}

.seal-image {
  display: none;
}

.entry-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: min(38vw, 520px);
  margin: 0 auto clamp(18px, 3.2vh, 40px);
  gap: clamp(18px, 3vw, 56px);
  color: var(--ink);
  font-size: clamp(14px, 1.05vw, 18px);
  letter-spacing: 0.34em;
  text-align: center;
}

.entry-nav a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  min-width: 0;
  padding: 12px 0;
  white-space: nowrap;
}

.entry-nav a::after,
.header-stack a::after,
.return-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.header-stack a,
.return-link {
  position: relative;
}

.entry-nav a:hover::after,
.entry-nav a[aria-current="page"]::after,
.header-stack a:hover::after,
.header-stack a[aria-current="page"]::after,
.return-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-poster .header-stack a[aria-current="page"]::after {
  display: none;
}

.section-poster {
  grid-template-rows: auto 1fr auto;
}

.page-content {
  align-self: center;
  width: min(860px, 76vw);
  margin: clamp(48px, 8vh, 100px) auto;
}

.kicker {
  margin: 0 0 clamp(22px, 4vh, 48px);
  color: var(--muted);
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0.32em;
}

.page-content h1 {
  margin: 0 0 clamp(24px, 5vh, 54px);
  font-size: clamp(58px, 10vw, 148px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 0.88;
}

.statement {
  max-width: 760px;
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 48px);
  line-height: 1.12;
}

.body-copy {
  max-width: 560px;
  margin: 0 0 46px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
}

.return-link {
  display: inline-flex;
  padding: 12px 0;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0.28em;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 44px 0 36px;
}

.placeholder-grid span {
  display: grid;
  min-height: clamp(150px, 18vw, 230px);
  place-items: end start;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(13, 13, 12, 0.04), transparent 42%),
    var(--soft);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.photo-placeholders span {
  background:
    linear-gradient(145deg, rgba(181, 164, 142, 0.42), transparent 48%),
    linear-gradient(315deg, rgba(13, 13, 12, 0.13), transparent 52%),
    var(--soft);
}

.sub-nav {
  margin-bottom: 0;
}

/* ---- Profile split layout ---- */

.profile-poster {
  grid-template-rows: auto 1fr;
  height: 100svh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
}

.profile-poster .frame {
  z-index: 1;
  pointer-events: none;
}

.profile-poster .poster-header {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 3.4vw, 52px) clamp(32px, 4vw, 64px) 0;
}

/* Back link — 右下角返回按钮 */
.back-link {
  position: fixed;
  right: clamp(32px, 4vw, 64px);
  bottom: clamp(24px, 3vw, 44px);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--muted);
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.back-link span {
  font-size: 1.2em;
  line-height: 1;
  transition: transform 220ms ease;
}

.back-link:hover {
  color: var(--ink);
}

.back-link:hover span {
  transform: translateX(-4px);
}

.profile-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Left visual column — 照片作为画廊作品，纸色留白 */
.profile-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: clamp(32px, 4vw, 64px);
  background: var(--paper);
  overflow: hidden;
}

/*
 * 照片尺寸策略（一屏版）：
 * 照片高度跟随父容器实际可用高度，width/height 均为 auto，
 * 用 max-width: 100% / max-height: 100% 双向约束，
 * 确保任何屏幕下都不溢出容器且整页保持一屏。
 * object-fit: contain 保证原图比例不被拉伸。
 */
.profile-photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  box-shadow:
    0 1px 2px rgba(13, 13, 12, 0.04),
    0 10px 32px rgba(13, 13, 12, 0.08);
}

/* Right text column — 纸色，开阔的文字空间 */
.profile-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(20px, 3vh, 36px);
  height: 100%;
  min-height: 0;
  padding: clamp(32px, 4vw, 64px) clamp(40px, 5vw, 80px);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.profile-text-top {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.lang-switch {
  appearance: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: clamp(12px, 0.95vw, 14px);
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 180ms ease;
}

.lang-switch:hover {
  color: var(--ink);
}

.lang-switch span {
  color: var(--muted);
  transition: color 180ms ease;
}

.lang-switch[data-active="en"] [data-lang="en"],
.lang-switch[data-active="zh"] [data-lang="zh"] {
  color: var(--ink);
  font-weight: 500;
}

.profile-text-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
  max-width: 560px;
}

.profile-intro {
  flex-shrink: 0;
}

.profile-experience {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.profile-experience .lang-panel {
  height: 100%;
  min-height: 0;
}

.profile-experience .lang-panel[hidden] {
  display: none;
}

.profile-wordmark {
  display: block;
  width: auto;
  max-width: min(260px, 60%);
  height: auto;
  margin: 0 0 clamp(12px, 1.8vh, 20px);
}

.profile-subtitle {
  margin: 0 0 clamp(24px, 3.6vh, 40px);
  color: var(--muted);
  font-size: clamp(12px, 0.9vw, 15px);
  letter-spacing: 0.32em;
  line-height: 1.5;
  text-transform: uppercase;
  font-weight: 400;
}

.lang-panel {
  max-width: 520px;
}

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

.profile-body {
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.8;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.lang-panel[data-lang="zh"] .profile-body {
  font-size: clamp(13px, 1vw, 16px);
  line-height: 2;
  letter-spacing: 0.08em;
}

.profile-list {
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  color: var(--ink);
  font-size: clamp(12px, 0.92vw, 14px);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.profile-list li {
  display: grid;
  grid-template-columns: clamp(76px, 7.5vw, 96px) 1fr;
  gap: clamp(12px, 1.4vw, 18px);
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.profile-list li:first-child {
  border-top: 1px solid var(--muted);
}

.profile-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.profile-list-date {
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.profile-list-event {
  color: var(--ink);
}

/* Profile responsive */
@media (max-width: 1280px) {
  .profile-text {
    padding: clamp(28px, 3.4vw, 52px) clamp(32px, 4vw, 56px);
  }
}

@media (max-width: 1024px) {
  .profile-visual {
    padding: clamp(24px, 3vw, 44px);
  }

  .profile-text {
    padding: clamp(24px, 3vw, 44px) clamp(28px, 3.6vw, 48px);
  }

  .profile-wordmark {
    max-width: min(220px, 54%);
  }
}

@media (max-width: 900px) {
  .profile-split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 42vh) 1fr;
  }

  .profile-visual {
    padding: clamp(24px, 4vw, 36px);
    border-bottom: 1px solid var(--line);
  }

  .profile-text {
    padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 40px);
    border-left: none;
  }

  .profile-subtitle {
    font-size: 11px;
    letter-spacing: 0.36em;
    margin-bottom: clamp(22px, 3vh, 30px);
  }

  .profile-list {
    font-size: 12px;
    line-height: 1.75;
  }

  .profile-list li {
    padding: 12px 0;
  }

  .profile-text-body {
    max-width: 640px;
  }

  .profile-wordmark {
    max-width: min(240px, 50%);
  }
}

@media (max-width: 560px) {
  .profile-visual {
    padding: clamp(18px, 4vw, 28px);
  }

  .profile-subtitle {
    font-size: 10px;
    letter-spacing: 0.4em;
    margin-bottom: clamp(18px, 2.6vh, 24px);
  }

  .profile-list {
    font-size: 11px;
    line-height: 1.8;
  }

  .profile-list li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 0;
  }

  .profile-list-date {
    display: block;
    margin-bottom: 2px;
  }

  .back-link {
    bottom: clamp(16px, 3vw, 24px);
    right: clamp(20px, 4vw, 28px);
  }
}

/* ---- Calligraphy archive (sub-page framework) ---- */

.archive-poster {
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 48px) clamp(40px, 5vw, 72px);
}

.archive-poster .poster-header {
  padding-bottom: clamp(14px, 2vh, 24px);
}

.archive-poster .header-stack {
  font-size: clamp(13px, 1.05vw, 17px);
  gap: 1px;
}

.archive-poster .header-logo {
  height: clamp(40px, 6.5vh, 64px);
  max-width: 280px;
}

.archive-poster .page-content {
  align-self: stretch;
  width: 100%;
  max-width: min(1320px, 95vw);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 56px);
}

/* Gallery page — museum view: full-height, two independent columns */
.page-content.gallery-page {
  align-self: stretch;
  width: 100%;
  max-width: min(1320px, 95vw);
  margin: 0 auto;
  padding: 0 clamp(8px, 1.5vw, 24px);
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/*
 * Gallery top — brush wordmark + CALLIGRAPHY label, side by side, centered.
 * The wordmark is the JOEYLU handwritten brush image (same as home + profile).
 */
.gallery-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 32px);
  padding: 0 0 clamp(28px, 4.5vh, 48px);
}

.gallery-wordmark {
  display: block;
  width: auto;
  height: clamp(40px, 6vh, 60px);
  max-width: min(360px, 42vw);
  object-fit: contain;
}

.gallery-label {
  font-family: "Cormorant", "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  font-style: normal;
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 400;
  letter-spacing: 0.58em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/*
 * Gallery — two independent columns inside a fixed-height container.
 * Left: thumb list (scrolls on its own). Right: stage (scrolls to reveal info).
 * The page itself never scrolls — each column manages its own overflow.
 */
.gallery {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(24px, 3vw, 48px) minmax(178px, 206px) 1fr;
  gap: clamp(16px, 1.8vw, 28px);
  overflow: hidden;
  padding: 0 0 clamp(4px, 1vh, 12px);
}

.gallery-list {
  grid-column: 2;
}

.gallery-stage {
  grid-column: 3;
}

/* Left: thumb list — independently scrollable, page stays put */
.gallery-list {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 4px 4px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gallery-list::-webkit-scrollbar {
  width: 4px;
}

.gallery-list::-webkit-scrollbar-thumb {
  background: var(--line);
}

.gallery-list::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumb {
  position: relative;
  appearance: none;
  display: grid;
  grid-template-columns: 18px 74px 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  padding: 8px 6px 8px 8px;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  transition: border-color 200ms ease, background 200ms ease;
}

.gallery-thumb:hover {
  background: rgba(13, 13, 12, 0.03);
}

.gallery-thumb.is-active {
  border-left-color: var(--ink);
}

.gallery-thumb.is-active .thumb-title {
  color: var(--ink);
}

.thumb-no {
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 8px;
  font-size: 10px;
  letter-spacing: 0.22em;
}

/* Thumbnail image — no border, no frame, contain (no crop) */
.thumb-img-wrap {
  display: block;
  width: 74px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--paper);
}

.thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 320ms ease, opacity 200ms ease;
}

.gallery-thumb:hover .thumb-img {
  transform: scale(1.03);
}

.thumb-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  min-width: 0;
}

.thumb-title {
  font-family: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  font-size: clamp(12px, 0.9vw, 14px);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* Right: stage — scrolls vertically; image fills the first screen, info below.
   Stage uses block layout (not flex) so .stage-img-wrap can reliably take
   100% of the visible height, matching the left thumb column's height. */
.gallery-stage {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  min-height: 0;
  width: 100%;
  margin: 0 auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gallery-stage::-webkit-scrollbar {
  width: 4px;
}

.gallery-stage::-webkit-scrollbar-thumb {
  background: var(--line);
}

/* Stage image — fills the entire first screen (top & bottom aligned with the
   left thumb list). object-fit: contain keeps the work fully visible, no crop. */
.stage-img-wrap {
  height: 100%;
  min-height: 100%;
  width: 100%;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 220ms ease;
}

.stage-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 0 clamp(56px, 8vh, 104px);
}

.stage-title {
  margin: 0 auto;
  padding: clamp(48px, 7vh, 88px) 0 clamp(16px, 2vh, 24px);
  font-family: "Italiana", "Playfair Display", "Ma Shan Zheng", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.35;
  white-space: pre-line;
  color: var(--ink);
  text-align: center;
  width: 100%;
  max-width: 460px;
  align-self: center;
}

.stage-line {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: 0.14em;
}

.stage-size {
  margin: 0;
  color: var(--muted);
  font-size: clamp(11px, 0.8vw, 12.5px);
  letter-spacing: 0.1em;
  opacity: 0.85;
}

/* Editable fields */
.stage [contenteditable]:hover {
  outline: 1px dashed rgba(13, 13, 12, 0.2);
  outline-offset: 4px;
  cursor: text;
}

.stage [contenteditable]:focus {
  outline: none;
  background: rgba(13, 13, 12, 0.03);
  box-shadow: 0 0 0 4px rgba(13, 13, 12, 0.04);
}

.stage [contenteditable]:empty::before {
  content: attr(data-placeholder);
  color: rgba(13, 13, 12, 0.32);
  font-style: italic;
}

/* Stage navigation */
.stage-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  padding: 0 0 clamp(48px, 7vh, 88px);
}

.stage-prev,
.stage-next {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--muted);
  font: inherit;
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 180ms ease;
}

.stage-prev:hover,
.stage-next:hover {
  color: var(--ink);
}

.stage-counter {
  color: var(--muted);
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.2em;
}

/* Gallery responsive — small screens switch to scrollable single column */
@media (max-width: 900px) {
  .archive-poster {
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
    padding: clamp(28px, 4.2vh, 40px) clamp(30px, 6vw, 48px);
  }

  .archive-poster .poster-header {
    padding-bottom: clamp(12px, 2vh, 18px);
  }

  .archive-poster .header-logo {
    height: clamp(20px, 3.2vh, 30px);
    max-width: 120px;
  }

  .page-content.gallery-page {
    height: 100%;
    overflow: hidden;
    padding: 0 clamp(10px, 3.6vw, 22px);
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 12px;
    overflow: hidden;
    height: 100%;
  }

  .gallery-top {
    padding-bottom: clamp(10px, 1.6vh, 16px);
  }

  .gallery-list {
    grid-row: 2;
    grid-column: auto;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 8px 0 12px;
    scroll-snap-type: x mandatory;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-stage {
    grid-row: 1;
    grid-column: auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    min-height: 0;
    width: 100%;
    margin: 0 auto;
  }

  .gallery-thumb {
    flex: none;
    width: 56px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-left: 0;
    padding: 1px 1px 4px;
    scroll-snap-align: start;
  }

  .gallery-thumb.is-active {
    border-left: 0;
    box-shadow: inset 0 -2px 0 var(--ink);
  }

  .gallery-thumb .thumb-img-wrap {
    width: 100%;
  }

  .gallery-thumb .thumb-no {
    grid-row: auto;
    align-self: center;
    padding-top: 0;
    font-size: 7px;
    letter-spacing: 0.14em;
    opacity: 0.7;
  }

  .gallery-thumb .thumb-meta {
    align-items: center;
    text-align: center;
    width: 100%;
    min-width: 0;
    gap: 1px;
    height: auto;
  }

  .gallery-thumb .thumb-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-height: none;
    line-height: 1.2;
    font-size: 9px;
  }

  .gallery-thumb .thumb-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 7px;
    letter-spacing: 0.06em;
    opacity: 0.78;
  }

  .stage-img-wrap {
    flex: 1 1 52vh;
    min-height: 48vh;
    height: auto;
  }

  .stage-title {
    flex: none;
    padding: clamp(20px, 3vh, 30px) 0 clamp(14px, 2vh, 20px);
    font-size: clamp(16px, 1.5vh, 22px);
    line-height: 1.45;
  }

  .stage-info {
    flex: none;
    padding: clamp(14px, 2vh, 20px) 0 clamp(36px, 5vh, 52px);
    gap: 10px;
  }

  .stage-line {
    font-size: clamp(11px, 1vh, 13px);
    letter-spacing: 0.14em;
  }

  .stage-size {
    font-size: clamp(10px, 0.9vh, 12px);
    letter-spacing: 0.08em;
  }

  .stage-nav {
    flex: none;
    padding: 0 0 clamp(32px, 4.5vh, 48px);
  }

  .stage-prev,
  .stage-next {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .stage-counter {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

@media (max-width: 900px) {
  .poster {
    padding: 36px 30px;
  }

  .frame {
    inset: 14px;
  }

  .header-stack {
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .header-stack span {
    font-size: 10px;
  }

  .logo-lockup {
    width: 88vw;
    min-width: 0;
  }

  .entry-nav {
    width: 56vw;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .page-content {
    width: min(680px, 82vw);
  }

  .page-content h1 {
    font-size: clamp(42px, 10vw, 92px);
    letter-spacing: 0.06em;
    line-height: 0.94;
  }

  .placeholder-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .poster {
    min-height: 100svh;
    padding: 32px 26px;
  }

  .frame {
    inset: 11px;
  }

  .poster-header {
    gap: 16px;
  }

  .header-stack {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .header-stack span {
    font-size: 9px;
  }

  .logo-lockup {
    width: 88vw;
  }

  .wordmark-image {
    transform: translateX(-1%);
  }

  .entry-nav {
    width: 64vw;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .statement {
    font-size: clamp(23px, 8vw, 34px);
  }
}
