:root {
  --background: #f6f0e7;
  --background-alt: #fbf7f1;
  --foreground: #2f241c;
  --muted: #e6d8c8;
  --muted-foreground: #7a6756;
  --border: #c9b79f;
  --accent: #c6a55b;
  --accent-strong: #ae8b43;
  --accent-secondary: #8e2f3f;
  --accent-tertiary: #6d8a96;
  --accent-quaternary: #7c6aa6;
  --accent-foreground: #2a211a;
  --surface-warm: #efe4d6;
  --surface-warm-alt: #f3eadf;
  --surface-cool: #eef1f3;
  --surface-seal: #f3e0e3;
  --paper-shadow: 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 30px rgba(88, 62, 28, 0.08);
  --lift-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 36px rgba(73, 49, 23, 0.14);
  --brass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(111, 78, 20, 0.22),
    0 4px 12px rgba(163, 123, 45, 0.18);
  --wax-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), inset 0 -2px 5px rgba(78, 18, 28, 0.24),
    0 8px 16px rgba(90, 24, 36, 0.16);
  --edge-glow: 0 0 0 1px rgba(198, 165, 91, 0.18), 0 8px 24px rgba(198, 165, 91, 0.12);
  --radius: 6px;
  --radius-soft: 10px;
  --radius-arch: 40% 40% 0 0 / 20% 20% 0 0;
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Crimson Pro", serif;
  --font-display: "Cinzel", serif;
  --transition-fast: 150ms ease-out;
  --transition-base: 300ms ease-out;
  --transition-slow: 500ms ease-out;
  --transition-dramatic: 700ms ease-out;
  --page-width: min(1180px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(109, 138, 150, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(198, 165, 91, 0.18), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(124, 106, 166, 0.14), transparent 24%),
    radial-gradient(circle at 80% 76%, rgba(142, 47, 63, 0.12), transparent 22%),
    radial-gradient(ellipse at center, transparent 0%, transparent 64%, rgba(190, 160, 110, 0.08) 100%),
    var(--background);
  min-height: 100vh;
  position: relative;
}

[lang="zh-CN"] {
  font-family: "XiangcuiChaoxisong", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(73, 49, 23, 0.045) 0.7px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 0.32) 0.8px, transparent 0.8px);
  background-size: 18px 18px, 24px 24px;
  background-position: 0 0, 7px 9px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.site-backdrop::before,
.site-backdrop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.4;
  animation: drift 18s ease-in-out infinite alternate;
}

.site-backdrop::before {
  width: 28rem;
  height: 28rem;
  top: 10%;
  left: -6rem;
  background: rgba(198, 165, 91, 0.18);
}

.site-backdrop::after {
  width: 26rem;
  height: 26rem;
  right: -4rem;
  bottom: 14%;
  background: rgba(109, 138, 150, 0.18);
  animation-duration: 24s;
}

.site-header,
.page-section,
.site-footer,
.ornate-divider {
  position: relative;
  z-index: 1;
}

.site-header {
  width: var(--page-width);
  margin: 0 auto;
  padding: 1.25rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #b94b5e 0%, #8e2f3f 55%, #6f1e2c 100%);
  color: #f8efe4;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  box-shadow: var(--wax-shadow);
}

.brand-copy {
  min-width: 0;
}

.brand-overline,
.document-label,
.volume-label,
.micro-stamp {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 70%, var(--muted-foreground) 30%);
}

.brand-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  flex-wrap: nowrap;
  margin-top: 0.1rem;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 8px rgba(198, 165, 91, 0.08);
}

.brand-title :lang(en) {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 2rem);
}

.brand-title :lang(zh-CN) {
  font-size: clamp(1rem, 0.92rem + 0.38vw, 1.24rem);
}

.brand-title .label-divider {
  margin-inline: 0.18rem;
}

.label-divider {
  display: inline-block;
  margin-inline: 0.5rem;
  color: rgba(122, 103, 86, 0.72);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.site-nav a {
  position: relative;
  padding-bottom: 0.15rem;
  transition: color var(--transition-base);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.05rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  transform: scaleX(0.2);
  transform-origin: center;
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.page-section {
  width: var(--page-width);
  margin: 0 auto;
  padding: clamp(3.5rem, 6vw, 7rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 7rem);
}

.hero-copy h1,
.section-intro h2,
.artifact-card h3,
.corridor-card h3,
.directive-card h3,
.registry-inspector h3,
.folio-heading h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42), 0 1px 8px rgba(198, 165, 91, 0.08);
}

.hero-copy h1 {
  font-size: clamp(3.6rem, 7vw, 6.2rem);
  max-width: 12ch;
}

.hero-title {
  display: grid;
  gap: 0.82rem;
  max-width: none;
  margin-top: 0.2rem;
}

.hero-title-en {
  font-family: var(--font-heading);
  font-size: clamp(1.72rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  font-style: italic;
  color: color-mix(in srgb, var(--foreground) 90%, var(--accent) 10%);
  -webkit-text-stroke: 1px rgba(110, 80, 34, 0.16);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78),
    0 2px 0 rgba(255, 255, 255, 0.42),
    0 8px 20px rgba(198, 165, 91, 0.12),
    0 0 18px rgba(198, 165, 91, 0.06);
  animation: titleLuster 7s ease-in-out infinite;
}

.hero-title-line {
  display: block;
}

.hero-title-line + .hero-title-line {
  margin-top: -0.06em;
}

.hero-title-of {
  font-size: 0.7em;
  letter-spacing: -0.01em;
  margin-inline-end: 0.12em;
}

.hero-title-cn {
  font-size: clamp(1.75rem, 1.45rem + 1vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--foreground) 78%, var(--accent) 22%);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.68),
    0 5px 14px rgba(198, 165, 91, 0.1);
  animation: titleLuster 8.5s ease-in-out infinite;
}

.hero-lede,
.hero-subcopy,
.section-intro p,
.corridor-card p,
.artifact-copy,
.directive-card li,
.folio-summary,
.inspector-description,
.inspector-note p:last-child {
  margin: 0;
  font-size: clamp(1.05rem, 0.98rem + 0.28vw, 1.18rem);
  line-height: 1.72;
  color: color-mix(in srgb, var(--foreground) 86%, white 14%);
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 37rem;
}

.hero-subcopy {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--muted-foreground);
}

.dual-stack {
  display: grid;
  gap: 0.25rem;
}

.dual-stack :lang(zh-CN) {
  font-size: 0.7em;
  line-height: 1.2;
}

.drop-cap {
  float: left;
  margin: 0.15rem 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.5rem + 2vw, 4.8rem);
  line-height: 0.78;
  color: var(--accent);
  text-shadow: 2px 2px 6px rgba(120, 90, 25, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.55rem;
  border-radius: var(--radius);
  border: 1px solid rgba(198, 165, 91, 0.65);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
}

.button::after {
  content: "";
  position: absolute;
  top: -28%;
  bottom: -28%;
  left: -32%;
  width: 34%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: skewX(-22deg) translateX(-240%);
  opacity: 0;
  transition: transform 700ms ease-out, opacity var(--transition-base);
  pointer-events: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:hover::after,
.button:focus-visible::after {
  transform: skewX(-22deg) translateX(420%);
  opacity: 0.8;
}

.button:focus-visible,
.site-nav a:focus-visible,
.transit-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button-primary {
  color: var(--accent-foreground);
  background: linear-gradient(180deg, #d7bc7a 0%, #c6a55b 52%, #ae8b43 100%);
  box-shadow: var(--brass-shadow);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: var(--brass-shadow), var(--edge-glow);
}

.button-secondary {
  color: var(--foreground);
  background: color-mix(in srgb, var(--background-alt) 76%, transparent 24%);
  box-shadow: var(--paper-shadow);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: #f8f0e6;
  background: linear-gradient(180deg, #a44759 0%, #8e2f3f 100%);
  border-color: rgba(142, 47, 63, 0.7);
}

.button-ghost {
  border-color: transparent;
  padding-inline: 0;
  color: color-mix(in srgb, var(--accent) 70%, var(--foreground) 30%);
  background: transparent;
  box-shadow: none;
}

.button-ghost::after {
  display: none;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.header-action {
  flex-shrink: 0;
}

.hero-facts {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 2rem 0 0;
}

.hero-facts li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(201, 183, 159, 0.82);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
    color-mix(in srgb, var(--surface-warm-alt) 86%, white 14%);
  box-shadow: var(--paper-shadow);
}

.hero-facts strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.hero-stage {
  display: flex;
  justify-content: center;
}

.folio-card,
.corridor-card,
.registry-inspector,
.artifact-card,
.directive-card {
  position: relative;
  border: 1px solid rgba(201, 183, 159, 0.88);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--background-alt), color-mix(in srgb, var(--surface-warm) 74%, white 26%));
  box-shadow: var(--paper-shadow);
  overflow: hidden;
}

.ornamented::before,
.ornamented::after {
  content: "❦";
  position: absolute;
  color: rgba(198, 165, 91, 0.55);
  font-size: 1rem;
  line-height: 1;
}

.ornamented::before {
  top: 0.8rem;
  left: 0.9rem;
}

.ornamented::after {
  right: 0.9rem;
  bottom: 0.8rem;
}

.folio-card {
  width: min(100%, 31rem);
  padding: 1.15rem;
}

.folio-card::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(198, 165, 91, 0.22);
  pointer-events: none;
  border-radius: calc(var(--radius-soft) - 2px);
}

.folio-topline,
.folio-tags,
.corridor-body,
.directive-card {
  position: relative;
  z-index: 1;
}

.folio-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.micro-stamp {
  color: var(--muted-foreground);
}

.arch-panel {
  position: relative;
  min-height: 21rem;
  padding: 0;
  border-radius: var(--radius-arch);
  border: 1px solid rgba(198, 165, 91, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(239, 228, 214, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -10px 20px rgba(122, 103, 86, 0.08);
  overflow: hidden;
}

.arch-panel::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: var(--radius-arch);
  border: 1px solid rgba(201, 183, 159, 0.34);
  pointer-events: none;
  z-index: 2;
}

.arch-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top left, rgba(109, 138, 150, 0.24), transparent 34%),
    radial-gradient(circle at bottom right, rgba(198, 165, 91, 0.28), transparent 36%),
    linear-gradient(90deg, rgba(246, 240, 231, 0.08), rgba(246, 240, 231, 0));
  pointer-events: none;
  z-index: 1;
}

.arch-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.035);
  filter:
    sepia(0.26)
    saturate(0.82)
    contrast(0.92)
    brightness(1.02);
}

.wax-seal {
  position: absolute;
  right: 1.3rem;
  bottom: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f8efe4;
  background: radial-gradient(circle at 30% 30%, #b94b5e 0%, #8e2f3f 55%, #6f1e2c 100%);
  box-shadow: var(--wax-shadow);
  z-index: 3;
}

.folio-body {
  padding: 1.35rem 0 0.25rem;
}

.timetable-body {
  display: grid;
  gap: 0.9rem;
}

.timetable-head {
  display: block;
}

.timetable-head .document-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.timetable-head .label-divider {
  margin-inline: 0.3rem;
}

.timetable-window {
  position: relative;
  border: 1px solid rgba(198, 165, 91, 0.3);
  border-radius: 0 0 var(--radius-soft) var(--radius-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(243, 234, 223, 0.92)),
    linear-gradient(90deg, rgba(198, 165, 91, 0.06), rgba(109, 138, 150, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -8px 18px rgba(122, 103, 86, 0.08);
  overflow: hidden;
}

.timetable-window::before,
.timetable-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2.4rem;
  pointer-events: none;
  z-index: 3;
}

.timetable-window::before {
  top: 2.6rem;
  background: linear-gradient(180deg, rgba(243, 234, 223, 0.95), rgba(243, 234, 223, 0));
}

.timetable-window::after {
  bottom: 0;
  background: linear-gradient(180deg, rgba(243, 234, 223, 0), rgba(243, 234, 223, 0.98));
}

.timetable-columns,
.timetable-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, 0.85fr) minmax(0, 2.4fr) minmax(3rem, 0.7fr) minmax(4.5rem, 0.95fr);
  gap: 0.9rem;
  align-items: center;
}

.timetable-columns {
  position: relative;
  z-index: 2;
  padding: 0.85rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(198, 165, 91, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.18));
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted-foreground) 72%, var(--accent) 28%);
}

.timetable-viewport {
  position: relative;
  height: 18rem;
  overflow: hidden;
}

.timetable-track {
  display: grid;
  gap: 0;
  padding: 0.2rem 0 0.6rem;
  animation: timetableRoll 22s linear infinite;
  will-change: transform;
}

.timetable-set {
  display: grid;
}

.timetable-row {
  position: relative;
  min-height: 2.95rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(201, 183, 159, 0.4);
  color: var(--foreground);
}

.timetable-row::before {
  content: "";
  position: absolute;
  inset: 0.3rem 0.45rem;
  border-radius: 0.4rem;
  background:
    linear-gradient(90deg, rgba(198, 165, 91, 0.08), rgba(198, 165, 91, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.timetable-window:hover .timetable-track,
.timetable-window:focus-within .timetable-track {
  animation-play-state: paused;
}

.timetable-row:hover::before {
  opacity: 1;
}

.timetable-time,
.timetable-platform,
.timetable-status {
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.timetable-time {
  color: color-mix(in srgb, var(--foreground) 78%, var(--accent) 22%);
}

.timetable-service {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.timetable-service span {
  display: block;
  min-width: 0;
}

.timetable-service span[lang="en"] {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.timetable-service span[lang="zh-CN"] {
  color: var(--muted-foreground);
  font-size: 0.84rem;
}

.timetable-platform {
  color: color-mix(in srgb, var(--foreground) 70%, var(--accent-tertiary) 30%);
  text-align: center;
}

.timetable-status {
  justify-self: start;
  min-width: 0;
  padding: 0.35rem 0.7rem 0.32rem;
  border-radius: 999px;
  border: 1px solid rgba(198, 165, 91, 0.36);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: color-mix(in srgb, var(--foreground) 72%, var(--accent-secondary) 28%);
  white-space: nowrap;
}

.folio-heading h2 {
  font-size: clamp(2rem, 1.75rem + 1.1vw, 3rem);
  margin-top: 0.25rem;
}

.folio-summary {
  margin-top: 0.6rem;
  color: var(--muted-foreground);
}

.folio-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  margin: 1.35rem 0 0;
}

.folio-meta div,
.inspector-metadata div {
  padding-top: 0.65rem;
  border-top: 1px solid rgba(201, 183, 159, 0.54);
}

.folio-meta dt,
.inspector-metadata dt {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.folio-meta dd,
.inspector-metadata dd {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  color: var(--foreground);
}

.folio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.folio-tags span,
.artifact-chip,
.corridor-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(198, 165, 91, 0.38);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--foreground) 74%, var(--accent) 26%);
}

.ornate-divider {
  width: var(--page-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ornate-divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 183, 159, 0.72) 18%,
    rgba(198, 165, 91, 0.92) 50%,
    rgba(201, 183, 159, 0.72) 82%,
    transparent 100%
  );
}

.ornate-divider b {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--background-alt);
  color: var(--accent);
  font-weight: 400;
  box-shadow: var(--paper-shadow);
}

.section-intro {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-intro-wide {
  max-width: none;
  width: 100%;
}

.section-intro h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-top: 0.5rem;
}

.section-intro p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.corridor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.corridor-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.corridor-arch {
  position: relative;
  min-height: 14rem;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(198, 165, 91, 0.18);
  border-radius: var(--radius-arch);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    color-mix(in srgb, var(--surface-warm) 82%, white 18%);
}

.corridor-arch::before,
.corridor-arch::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.corridor-arch::before {
  width: 70%;
  height: 2px;
  left: 14%;
  top: 42%;
  background: linear-gradient(90deg, rgba(198, 165, 91, 0.18), rgba(198, 165, 91, 0.76), rgba(142, 47, 63, 0.24));
  transform: rotate(-12deg);
}

.corridor-arch::after {
  width: 6rem;
  height: 6rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(198, 165, 91, 0.16);
}

.corridor-planned {
  background:
    radial-gradient(circle at 20% 20%, rgba(109, 138, 150, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    color-mix(in srgb, var(--surface-cool) 66%, var(--surface-warm-alt) 34%);
}

.corridor-unknown {
  background:
    radial-gradient(circle at 75% 20%, rgba(142, 47, 63, 0.18), transparent 24%),
    radial-gradient(circle at 28% 62%, rgba(124, 106, 166, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    color-mix(in srgb, var(--surface-seal) 70%, var(--surface-warm-alt) 30%);
}

.corridor-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
}

.corridor-card h3,
.artifact-card h3 {
  font-size: clamp(2rem, 1.8rem + 0.8vw, 2.7rem);
}

.corridor-list,
.directive-list {
  padding-left: 1.2rem;
  margin: 0.2rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.02rem;
  line-height: 1.72;
}

.corridor-body .button {
  margin-top: auto;
  width: fit-content;
}

.foot-section {
  padding-top: 1rem;
}

.foot-panel {
  position: relative;
  padding: clamp(1.2rem, 1.8vw, 1.8rem);
  border: 1px solid rgba(201, 183, 159, 0.88);
  border-radius: var(--radius-soft);
  background:
    radial-gradient(circle at top right, rgba(109, 138, 150, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(198, 165, 91, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--background-alt), color-mix(in srgb, var(--surface-warm) 74%, white 26%));
  box-shadow: var(--paper-shadow);
}

.foot-postcard {
  display: flex;
  justify-content: center;
}

.foot-postcard-sheet {
  width: min(800px, 100%);
  padding: clamp(1rem, 1.6vw, 1.35rem);
  border: 1px solid rgba(201, 183, 159, 0.72);
  border-radius: calc(var(--radius-soft) - 1px);
  background:
    radial-gradient(circle at top right, rgba(109, 138, 150, 0.1), transparent 24%),
    radial-gradient(circle at bottom left, rgba(198, 165, 91, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    color-mix(in srgb, var(--surface-warm-alt) 84%, white 16%);
  box-shadow: var(--paper-shadow);
  display: grid;
  gap: 0.85rem;
}

.foot-postcard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.postcard-message,
.postcard-address {
  min-height: 11rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(201, 183, 159, 0.62);
  border-radius: calc(var(--radius-soft) - 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    rgba(251, 247, 241, 0.64);
}

.postcard-message {
  min-width: 0;
}

.postcard-address {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
}

.foot-quote {
  margin: 0.55rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(198, 165, 91, 0.2);
}

.foot-quote p {
  margin: 0;
}

.foot-quote p:first-child {
  font-family: "Imperial Script", cursive;
  font-size: clamp(1.8rem, 1.7rem + 0.9vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--foreground) 88%, var(--accent) 12%);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 18px rgba(198, 165, 91, 0.08);
}

.foot-quote p:last-child {
  margin-top: 0.45rem;
  color: var(--muted-foreground);
  font-size: 0.94rem;
  line-height: 1.58;
}

.postcard-address-lines {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.postcard-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 183, 159, 0.18), rgba(198, 165, 91, 0.8) 28%, rgba(201, 183, 159, 0.18));
}

.postcard-address-name {
  margin: 0.1rem 0 0;
  display: grid;
  gap: 0.3rem;
}

.postcard-address-name span:first-child {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--foreground) 78%, var(--accent) 22%);
}

.postcard-address-name span:last-child {
  font-size: 1.02rem;
  color: var(--muted-foreground);
}

.foot-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.registry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  gap: 1.4rem;
  align-items: start;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.transit-card {
  position: relative;
  display: grid;
  gap: 0.8rem;
  width: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(201, 183, 159, 0.84);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--background-alt), color-mix(in srgb, var(--surface-warm-alt) 80%, white 20%));
  box-shadow: var(--paper-shadow);
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.transit-card:hover,
.transit-card.is-active {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(198, 165, 91, 0.8);
  box-shadow: var(--lift-shadow), var(--edge-glow);
}

.transit-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.transit-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 500;
}

.transit-card .en-label {
  margin: 0.12rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.98rem;
}

.transit-seal {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-foreground);
  background: linear-gradient(180deg, #d7bc7a 0%, #c6a55b 52%, #ae8b43 100%);
  box-shadow: var(--brass-shadow);
}

.transit-card p {
  margin: 0;
  color: color-mix(in srgb, var(--foreground) 84%, white 16%);
  line-height: 1.62;
}

.transit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.transit-meta span {
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(201, 183, 159, 0.6);
  color: var(--muted-foreground);
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.registry-inspector {
  padding: 1.4rem;
  position: sticky;
  top: 1.5rem;
}

.inspector-kicker {
  margin-bottom: 0.35rem;
}

.registry-inspector h3 {
  font-size: clamp(2.2rem, 2rem + 1vw, 3rem);
}

.inspector-subtitle {
  margin: 0.3rem 0 0;
  font-size: 1rem;
  color: var(--muted-foreground);
}

.inspector-description {
  margin-top: 1rem;
}

.inspector-metadata {
  display: grid;
  gap: 0.9rem;
  margin: 1.3rem 0 0;
}

.inspector-note {
  margin-top: 1.4rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(198, 165, 91, 0.22);
  background:
    radial-gradient(circle at top right, rgba(109, 138, 150, 0.16), transparent 32%),
    color-mix(in srgb, var(--surface-warm-alt) 82%, white 18%);
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.artifact-card {
  padding: 1.3rem;
}

.artifact-sheet {
  margin: 1.2rem 0 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 183, 159, 0.66);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0)),
    color-mix(in srgb, var(--surface-warm) 70%, white 30%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.artifact-chip {
  margin-bottom: 0.5rem;
  margin-right: 0.35rem;
}

.artifact-row,
.pack-item,
.day-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(201, 183, 159, 0.45);
}

.artifact-row:first-of-type,
.pack-item:first-of-type,
.day-card:first-of-type {
  border-top: 0;
}

.day-card strong,
.artifact-row span:first-child,
.pack-item span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.artifact-sheet-plan .day-card,
.artifact-sheet-pack .pack-item {
  color: var(--muted-foreground);
}

.artifact-copy {
  color: var(--muted-foreground);
}

.intake-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

.directive-card {
  padding: 1.5rem;
}

.directive-list {
  margin-bottom: 1.4rem;
}

.site-footer {
  width: var(--page-width);
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted-foreground);
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: none;
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(1.25rem, -1rem, 0);
  }
}

@keyframes titleLuster {
  0%,
  100% {
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.78),
      0 2px 0 rgba(255, 255, 255, 0.42),
      0 8px 20px rgba(198, 165, 91, 0.08),
      0 0 14px rgba(198, 165, 91, 0.03);
  }
  50% {
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.86),
      0 2px 0 rgba(255, 255, 255, 0.5),
      0 10px 24px rgba(198, 165, 91, 0.15),
      0 0 24px rgba(198, 165, 91, 0.09);
  }
}

@keyframes timetableRoll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .brand-lockup {
    justify-content: center;
  }

  .hero,
  .registry-layout,
  .intake-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .registry-inspector {
    position: static;
  }

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

  .foot-postcard-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 780px) {
  .site-header {
    padding-top: 1rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-section {
    padding-block: 3.5rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .corridor-grid,
  .artifact-grid,
  .registry-grid,
  .folio-meta {
    grid-template-columns: 1fr;
  }

  .section-intro {
    margin-bottom: 1.2rem;
  }

  .section-intro h2 {
    font-size: clamp(1rem, 0.92rem + 0.4vw, 1.25rem);
    margin-top: 0.2rem;
    line-height: 1.18;
  }

  .section-intro p {
    margin-top: 0.46rem;
    font-size: 0.74rem;
    line-height: 1.5;
  }

  .section-intro .volume-label {
    font-size: 0.48rem;
    letter-spacing: 0.14em;
  }

  .corridor-grid {
    gap: 0.9rem;
  }

  .corridor-arch {
    min-height: 8.25rem;
    padding: 0.85rem;
  }

  .corridor-arch::after {
    width: 4.35rem;
    height: 4.35rem;
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .corridor-body {
    gap: 0.6rem;
    padding: 1rem 1rem 0.95rem;
  }

  .corridor-card h3,
  .artifact-card h3 {
    font-size: 1.55rem;
  }

  .corridor-body p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .corridor-list {
    margin-top: 0.1rem;
    padding-left: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .corridor-body .button {
    min-height: 2.65rem;
    padding: 0.62rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .hero-facts li,
  .artifact-row,
  .pack-item,
  .day-card {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .corridor-body .button {
    width: 100%;
  }

  .button-ghost {
    width: fit-content;
  }

  .arch-panel {
    min-height: 17rem;
  }

  .foot-postcard-sheet {
    padding: 1rem;
  }

  .postcard-message,
  .postcard-address {
    padding: 0.9rem;
  }

  .foot-quote p:first-child {
    font-size: clamp(1.7rem, 1.6rem + 0.8vw, 2.35rem);
  }

  .timetable-head {
    display: block;
  }

  .timetable-head .document-label {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .timetable-columns,
  .timetable-row {
    grid-template-columns: minmax(4rem, 0.9fr) minmax(0, 2fr) minmax(2.6rem, 0.6fr) minmax(4.1rem, 0.95fr);
    gap: 0.65rem;
  }

  .timetable-columns {
    padding-inline: 0.8rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .timetable-viewport {
    height: 16rem;
  }

  .timetable-row {
    min-height: 2.75rem;
    padding-inline: 0.8rem;
  }

  .timetable-time,
  .timetable-platform,
  .timetable-status {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .timetable-service span[lang="en"] {
    font-size: 0.84rem;
  }

  .timetable-status {
    padding-inline: 0.5rem;
  }
}

@media (max-width: 460px) {
  .corridor-grid {
    gap: 0.72rem;
  }

  .corridor-arch {
    min-height: 6.9rem;
    padding: 0.72rem;
  }

  .corridor-token {
    min-height: 1.7rem;
    padding: 0.28rem 0.56rem;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .corridor-arch::before {
    width: 74%;
    top: 44%;
  }

  .corridor-arch::after {
    width: 3.5rem;
    height: 3.5rem;
    right: 0.65rem;
    bottom: 0.65rem;
  }

  .corridor-body {
    gap: 0.48rem;
    padding: 0.82rem 0.82rem 0.84rem;
  }

  .corridor-card h3,
  .artifact-card h3 {
    font-size: 1.36rem;
  }

  .corridor-body p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .corridor-list {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .corridor-body .button {
    min-height: 2.45rem;
    padding: 0.56rem 0.88rem;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }
}

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

  .timetable-track {
    animation: none !important;
  }
}
