:root {
  --paper: #f3efe6;
  --paper-deep: #e9e3d6;
  --paper-light: #faf7f1;
  --ink: #1c1e1a;
  --ink-2: #41443d;
  --muted: #7b776b;
  --gold: #a98548;
  --gold-bright: #c9a568;
  --line: rgba(28, 30, 26, 0.14);
  --line-strong: rgba(28, 30, 26, 0.28);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pad: clamp(20px, 5vw, 72px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(255, 255, 255, 0.72), transparent 62%),
    radial-gradient(900px 600px at -8% 42%, rgba(255, 252, 244, 0.5), transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  color: var(--paper-light);
  background: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  height: 78px;
  padding: 0 var(--pad);
  background: rgba(243, 239, 230, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  flex: none;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}

.brand:hover .brand-seal {
  color: var(--paper-light);
  background: var(--gold);
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.brand-type strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.brand-type small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.quick-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  margin-left: auto;
}

.quick-nav button {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.quick-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease);
}

.quick-nav button:hover {
  color: var(--gold);
}

.quick-nav button:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding-left: clamp(18px, 3vw, 36px);
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.header-meta span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
}

.header-meta i {
  display: block;
  width: 3px;
  height: 3px;
  margin: 0 3px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  min-height: min(580px, calc(100svh - 78px));
  padding: clamp(40px, 5vw, 64px) var(--pad) clamp(40px, 5vw, 60px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -180px;
  width: 640px;
  height: 640px;
  border: 1px solid rgba(169, 133, 72, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "院";
  position: absolute;
  right: clamp(-30px, 2vw, 60px);
  bottom: -0.24em;
  color: rgba(28, 30, 26, 0.035);
  font-family: var(--serif);
  font-size: clamp(300px, 40vw, 620px);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-copy > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.eyebrow-line {
  display: block;
  width: clamp(28px, 4vw, 52px);
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: 0.015em;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-lede {
  max-width: 510px;
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 2.05;
  letter-spacing: 0.02em;
}

.hero-stats {
  display: flex;
  gap: clamp(26px, 4vw, 54px);
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 470px;
}

.hero-stats > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-num {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.hero-emblem {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(420px, 34vw);
  color: var(--ink);
  aspect-ratio: 1;
}

.hero-emblem::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 68%);
}

.hero-emblem svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.seal-ring {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: sealSpin 64s linear infinite;
}

.seal-ring text {
  fill: var(--gold);
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 3.4px;
}

.seal-main {
  fill: var(--ink);
  font-family: var(--serif);
  font-size: 74px;
  font-weight: 600;
  letter-spacing: 6px;
  text-anchor: middle;
}

.seal-sub {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 3.6px;
  text-anchor: middle;
}

.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.scroll-cue span {
  display: block;
  width: 34px;
  height: 1px;
  background: var(--gold);
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sealSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cue {
  0%,
  100% {
    transform: scaleX(0.45);
    opacity: 0.5;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* ---------- Collection ---------- */

.collection {
  padding: clamp(48px, 5vw, 72px) var(--pad) clamp(70px, 9vw, 120px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 26%);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.section-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.section-head h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  text-align: right;
  letter-spacing: 0.02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 36px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(250, 247, 241, 0.42);
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s var(--ease),
    background 0.4s var(--ease),
    box-shadow 0.5s var(--ease);
}

.card:hover {
  z-index: 2;
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: var(--paper-light);
  box-shadow: 0 30px 60px -38px rgba(28, 30, 26, 0.42);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-deep);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.001);
  transition: transform 1.3s var(--ease), filter 0.6s var(--ease);
}

.card:hover .card-media img {
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.05);
}

.card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 16, 14, 0.24), transparent 32%),
    linear-gradient(0deg, rgba(14, 16, 14, 0.12), transparent 26%);
  pointer-events: none;
}

.card-index {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.96);
  background: rgba(18, 20, 17, 0.26);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: rgba(255, 255, 255, 0.94);
  background: rgba(18, 20, 17, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 5px 20px;
  padding: 22px clamp(20px, 2.2vw, 28px) 24px;
}

.card-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.card-name {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.25;
}

.card-pinyin {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.card-desc {
  grid-column: 1;
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.card-cta {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.card-cta svg {
  transition: transform 0.4s var(--ease);
}

.card:hover .card-cta svg {
  transform: translateX(5px);
}

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 34px var(--pad) 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-seal {
  width: 32px;
  height: 32px;
  font-size: 18px;
}

.footer-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.footer-brand strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.footer-brand small {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.footer-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ---------- Detail ---------- */

.detail {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(255, 255, 255, 0.75), transparent 60%),
    var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.detail.is-open {
  opacity: 1;
  visibility: visible;
}

.detail:focus {
  outline: none;
}

.detail-shell {
  min-height: 100%;
  transform: translateY(22px);
  transition: transform 0.65s var(--ease);
}

.detail.is-open .detail-shell {
  transform: none;
}

.detail-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 230, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.detail-back:hover {
  color: var(--gold);
}

.detail-back kbd {
  margin-left: 4px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.detail-bar-title {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.detail-count {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.detail-count b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.detail-inner {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 78px) var(--pad) clamp(58px, 8vw, 96px);
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: clamp(30px, 6vw, 88px);
  padding-bottom: clamp(34px, 4.5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.detail-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 9.5px;
  letter-spacing: 0.24em;
}

.detail-title {
  margin: 16px 0 14px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.6vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
}

.detail-pinyin {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.28em;
}

.detail-head-right {
  max-width: 560px;
  justify-self: end;
}

.detail-desc {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 2.05;
  letter-spacing: 0.015em;
}

.detail-meta {
  display: flex;
  gap: 26px;
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  margin-top: clamp(28px, 4vw, 46px);
}

.shot {
  margin: 0;
}

.shot-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--paper-deep);
  cursor: zoom-in;
}

.shot-btn img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1s var(--ease), filter 0.5s var(--ease);
}

.shot-btn:hover img {
  transform: scale(1.025);
  filter: brightness(0.96);
}

.shot-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(18, 20, 17, 0.46);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 9px;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.shot-btn:hover .shot-zoom,
.shot-btn:focus-visible .shot-zoom {
  opacity: 1;
  transform: none;
}

.shot figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 13px;
  color: var(--ink-2);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.shot-no {
  padding-right: 14px;
  border-right: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.detail.is-open .shot {
  animation: shotIn 0.65s var(--ease) both;
}

.detail.is-open .shot:nth-child(2) {
  animation-delay: 0.09s;
}

@keyframes shotIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.detail-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: clamp(46px, 6vw, 76px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.detail-verse {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: 0.08em;
}

.detail-nav {
  display: flex;
  gap: 8px;
}

.detail-nav-btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 148px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.detail-nav-btn.next {
  text-align: right;
}

.detail-nav-btn:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.4);
}

.detail-nav-btn .dir {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.detail-nav-btn strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 72px clamp(14px, 4vw, 52px) 32px;
  background: #10120f;
  color: #f4f0e8;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox:focus {
  outline: none;
}

.lb-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(20px, 4vw, 44px);
}

.lb-counter {
  color: rgba(244, 240, 232, 0.6);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.lb-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border: 1px solid rgba(244, 240, 232, 0.24);
  border-radius: 50%;
  color: #f4f0e8;
  background: transparent;
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lb-close:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.lb-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(244, 240, 232, 0.22);
  border-radius: 50%;
  color: #f4f0e8;
  background: transparent;
  font-size: 17px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lb-nav:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
}

.lb-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 172px);
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.lb-figure figcaption {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  color: rgba(244, 240, 232, 0.78);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.lb-figure figcaption span:first-child {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 13px;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  }

  .hero-emblem {
    width: min(340px, 31vw);
  }

  .detail-title {
    font-size: clamp(3.2rem, 6.4vw, 5rem);
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 68px;
  }

  .quick-nav {
    display: none;
  }

  .header-meta {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 62px;
  }

  .hero-emblem {
    display: none;
  }

  .hero::after {
    font-size: 420px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 12vw, 5.6rem);
  }

  .scroll-cue {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-note {
    text-align: left;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
  }

  .footer-quote {
    text-align: left;
  }

  .detail-head {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .detail-head-right {
    justify-self: start;
    max-width: none;
  }

  .detail-title {
    font-size: clamp(3rem, 11vw, 4.6rem);
  }

  .detail-gallery {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .header-meta {
    display: none;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 58px;
  }

  .hero h1 {
    margin: 20px 0 24px;
  }

  .hero-lede {
    font-size: 13.5px;
  }

  .hero-stats {
    gap: 24px;
    margin-top: 30px;
  }

  .stat-num {
    font-size: 24px;
  }

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

  .card-body {
    padding: 20px 20px 22px;
  }

  .card-desc {
    grid-column: 1 / -1;
  }

  .card-cta {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-top: 5px;
  }

  .detail-bar-title {
    display: none;
  }

  .detail-back kbd {
    display: none;
  }

  .detail-inner {
    padding-top: 36px;
  }

  .detail-title {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .detail-desc {
    font-size: 13.5px;
  }

  .detail-meta {
    flex-wrap: wrap;
    gap: 14px;
  }

  .detail-gallery {
    margin-top: 24px;
  }

  .shot-zoom {
    display: none;
  }

  .detail-bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .detail-nav {
    width: 100%;
  }

  .detail-nav-btn {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
  }

  .detail-nav-btn strong {
    font-size: 16px;
  }

  .detail-verse {
    font-size: 1rem;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 66px 14px 104px;
  }

  .lb-nav {
    position: fixed;
    bottom: 30px;
    z-index: 3;
  }

  .lb-prev {
    left: 22px;
  }

  .lb-next {
    right: 22px;
  }

  .lb-figure img {
    max-height: calc(100svh - 210px);
  }

  .lb-figure figcaption {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
