:root {
  --color-deep-blue: #0A1F44;
  --color-deep-blue-2: #1E3A5F;
  --color-gold: #D4AF37;
  --color-gold-light: #F5D061;
  --color-red: #E63946;
  --color-ivory: #F5F0E8;
  --color-stone: #8C9A9D;
  --color-moss: #4A6B5D;
  --color-terracotta: #C67F5A;
  --color-cyan: #00B4D8;
  --font-serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  --font-sans: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-width: 240px;
  --header-bar-height: 60px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-panel: 0 1px 2px rgba(10, 31, 68, 0.05), 0 8px 24px rgba(10, 31, 68, 0.06);
  --shadow-drawer: 4px 0 24px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-ivory);
  background-color: var(--color-deep-blue);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.8em;
  color: var(--color-deep-blue);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-deep-blue-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-gold);
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-terracotta);
  background: rgba(198, 127, 90, 0.08);
  color: var(--color-deep-blue-2);
  font-family: var(--font-serif);
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(10, 31, 68, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}

::selection {
  background: var(--color-gold);
  color: var(--color-deep-blue);
}

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

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

@media (min-width: 901px) {
  body {
    padding-left: var(--header-width);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  background-color: var(--color-deep-blue);
  background-image: repeating-linear-gradient(135deg, rgba(212, 175, 55, 0.045) 0, rgba(212, 175, 55, 0.045) 1px, transparent 1px, transparent 14px);
  border-right: 1px solid rgba(212, 175, 55, 0.22);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 0.7rem 1.4rem;
  background: var(--color-gold);
  color: var(--color-deep-blue);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transform: translateY(calc(-100% - 20px));
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 60%, rgba(245, 208, 97, 0.2) 100%);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
  z-index: 2000;
  pointer-events: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 2px solid var(--color-gold);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.02));
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
  position: relative;
}

.brand-seal::before,
.brand-seal::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border: 0 solid var(--color-gold);
}

.brand-seal::before {
  top: -2px;
  left: -2px;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 2px;
}

.brand-seal::after {
  bottom: -2px;
  right: -2px;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
}

.brand-text__cn {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--color-ivory);
}

.brand-text__sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 2px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle__line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-gold);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header__panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.75rem 1rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.site-nav {
  margin-bottom: 1.25rem;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.site-nav__list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.35), rgba(245, 240, 232, 0.08), rgba(212, 175, 55, 0.35));
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.75rem;
  color: rgba(245, 240, 232, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav__link::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.45);
  background-color: var(--color-deep-blue);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav__link:hover {
  color: var(--color-ivory);
  background: rgba(245, 240, 232, 0.05);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-gold);
  border-left-color: var(--color-gold);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.14), transparent 70%);
}

.site-nav__link[aria-current="page"]::before {
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.75);
}

.site-nav__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0.85;
}

.site-nav__link[aria-current="page"] .site-nav__icon {
  opacity: 1;
}

.site-nav__label {
  letter-spacing: 0.02em;
}

.site-header__motto {
  margin: auto 0.25rem 0.75rem;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: rgba(245, 240, 232, 0.45);
  border-top: 1px dashed rgba(212, 175, 55, 0.25);
  border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
}

.site-header__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 3px;
  background: rgba(245, 240, 232, 0.04);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--color-cyan);
  animation: status-pulse 2s infinite;
}

.status-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.status-label {
  font-size: 0.9rem;
  color: var(--color-ivory);
}

.status-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.55);
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(0, 180, 216, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0);
  }
}

@media (max-width: 900px) {
  .site-header {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
  }

  .site-header__bar {
    width: 100%;
    height: var(--header-bar-height);
    padding: 0 1rem;
    border-bottom: none;
    justify-content: space-between;
  }

  .brand-seal {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 22px;
  }

  .brand-text__cn {
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header[data-open] .nav-toggle__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header[data-open] .nav-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .site-header[data-open] .nav-toggle__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header__panel {
    position: fixed;
    top: var(--header-bar-height);
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    flex: none;
    padding: 1.25rem 0.75rem 1.25rem 1.25rem;
    background-color: var(--color-deep-blue);
    background-image: repeating-linear-gradient(135deg, rgba(212, 175, 55, 0.045) 0, rgba(212, 175, 55, 0.045) 1px, transparent 1px, transparent 14px);
    border-right: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: var(--shadow-drawer);
    transform: translateX(-102%);
    transition: transform 0.3s var(--ease-out);
  }

  .site-header[data-open] .site-header__panel {
    transform: translateX(0);
  }

  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 990;
    background: rgba(5, 15, 35, 0.48);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .site-main {
    padding-top: var(--header-bar-height);
    min-height: calc(100vh - var(--header-bar-height));
  }
}

.site-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 120px);
  background-color: var(--color-ivory);
  color: var(--color-deep-blue);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.cover {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  background-color: var(--color-deep-blue);
  background-image: repeating-linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0, rgba(212, 175, 55, 0.03) 1px, transparent 1px, transparent 14px);
  color: var(--color-ivory);
  overflow: hidden;
}

.cover::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background:
    radial-gradient(circle at 72% 26%, rgba(212, 175, 55, 0.16) 0%, transparent 52%),
    radial-gradient(circle at 88% 78%, rgba(230, 57, 70, 0.1) 0%, transparent 44%);
  clip-path: polygon(22% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.cover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 30%, rgba(212, 175, 55, 0.15) 88%, transparent 100%);
}

.cover h1,
.cover h2,
.cover h3 {
  color: var(--color-ivory);
}

.cover__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.cover__kicker::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.cover__title {
  margin: 0.85rem 0 1rem;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.18;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  color: var(--color-ivory);
  max-width: 16em;
}

.cover__abstract {
  max-width: 46em;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.78);
  margin: 0;
}

.cover__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.6);
}

.cover .breadcrumb {
  color: rgba(245, 240, 232, 0.55);
  margin-top: 1.5rem;
}

.cover .breadcrumb a {
  color: rgba(245, 240, 232, 0.85);
}

.cover .breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-deep-blue-2);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  color: var(--color-stone);
}

.breadcrumb a {
  color: var(--color-deep-blue-2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.panel {
  position: relative;
  padding: clamp(2rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem);
  background: var(--color-ivory);
  border: 1px solid var(--color-stone);
  box-shadow: var(--shadow-panel);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.panel::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
  border-top-right-radius: 2px;
}

.panel::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--color-gold);
  border-left: 2px solid var(--color-gold);
  border-bottom-left-radius: 2px;
}

.panel__label {
  position: absolute;
  top: -1px;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem 0.3rem 0.75rem;
  background: var(--color-gold);
  color: var(--color-deep-blue);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 6px rgba(10, 31, 68, 0.15);
}

.panel__no {
  font-family: var(--font-mono);
  font-size: 0.78em;
  opacity: 0.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.5em;
  border: 1px solid var(--color-stone);
  border-radius: 2px;
  background: transparent;
  color: var(--color-deep-blue-2);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border-color: rgba(10, 31, 68, 0.1);
  color: var(--color-deep-blue);
}

.btn--gold:hover {
  color: var(--color-deep-blue);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25), 0 4px 14px rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn--ghost:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
}

.btn--red {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #ffffff;
}

.btn--red:hover {
  background: #d32f3c;
  border-color: #d32f3c;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
}

.card {
  position: relative;
  padding: 1.5rem;
  background: var(--color-ivory);
  border: 1px solid var(--color-stone);
  box-shadow: 0 1px 2px rgba(10, 31, 68, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-glow);
}

.tag {
  display: inline-block;
  padding: 0.2em 0.8em;
  border: 1px solid var(--color-stone);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--color-deep-blue-2);
}

.tag--gold {
  color: #7a5d12;
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, 0.1);
}

.tag--red {
  color: #a82430;
  border-color: var(--color-red);
  background: rgba(230, 57, 70, 0.08);
}

.tag--moss {
  color: #35574a;
  border-color: var(--color-moss);
  background: rgba(74, 107, 93, 0.08);
}

.tag--terracotta {
  color: #91512f;
  border-color: var(--color-terracotta);
  background: rgba(198, 127, 90, 0.1);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}

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

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

@media (max-width: 980px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

.section-title {
  position: relative;
  margin: 0 0 1rem;
  padding-left: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--color-deep-blue);
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  bottom: 0.3em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-red) 100%);
}

.divider {
  height: 1px;
  border: 0;
  margin: clamp(2rem, 4vw, 3rem) 0;
  background: linear-gradient(90deg, var(--color-stone) 0%, rgba(140, 154, 157, 0.2) 80%, transparent 100%);
}

.list-check {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.list-check li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.6rem;
}

.list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.55em;
  height: 0.55em;
  transform: rotate(45deg);
  background: var(--color-gold);
  opacity: 0.75;
}

.term {
  border: 1px solid var(--color-stone);
  border-left: 3px solid var(--color-gold);
  padding: 1rem 1.25rem;
  background: rgba(245, 240, 232, 0.6);
}

.term__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-deep-blue);
  margin: 0 0 0.25rem;
}

.term__body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-deep-blue-2);
}

.disclosure {
  border: 1px solid var(--color-stone);
  background: rgba(245, 240, 232, 0.55);
  box-shadow: 0 1px 2px rgba(10, 31, 68, 0.04);
}

.disclosure summary {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-deep-blue);
  transition: color 0.2s ease;
}

.disclosure summary::-webkit-details-marker {
  display: none;
}

.disclosure summary::before {
  content: '+';
  display: inline-block;
  width: 1.2em;
  flex: 0 0 1.2em;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.1em;
  line-height: 1.1;
  color: var(--color-gold);
  text-align: center;
  transition: transform 0.25s var(--ease-out);
}

.disclosure[open] summary::before {
  transform: rotate(45deg);
}

.disclosure__body {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-deep-blue-2);
  font-size: 0.95rem;
}

.disclosure__body > :first-child {
  margin-top: 0;
}

.figure {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-deep-blue-2);
  background-image:
    radial-gradient(circle at 68% 32%, rgba(212, 175, 55, 0.16) 0%, transparent 48%),
    repeating-linear-gradient(135deg, rgba(245, 240, 232, 0.06) 0, rgba(245, 240, 232, 0.06) 1px, transparent 1px, transparent 12px);
}

.figure--wide {
  aspect-ratio: 16 / 9;
}

.figure--tall {
  aspect-ratio: 3 / 4;
}

.figure--square {
  aspect-ratio: 1 / 1;
}

.figure--panorama {
  aspect-ratio: 21 / 9;
}

.figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-stone);
}

.site-footer {
  position: relative;
  background-color: var(--color-deep-blue);
  color: rgba(245, 240, 232, 0.75);
  border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

.site-footer__grid {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 2.2fr;
  gap: 2.5rem;
  padding: 3.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-footer__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-ivory);
  letter-spacing: 0.05em;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.04em;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__links a {
  width: max-content;
  color: rgba(245, 240, 232, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--color-gold);
  border-bottom-color: rgba(212, 175, 55, 0.4);
}

.site-footer__contact {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.9;
}

.site-footer__contact p {
  margin: 0 0 0.15rem;
}

.site-footer__contact::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: 0.6rem;
}

.site-footer__bottom {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.5);
}

.site-footer__bottom p {
  margin: 0;
}

@media (max-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 2.25rem 1.25rem;
  }

  .site-footer__tagline {
    display: none;
  }

  .site-footer__contact {
    font-size: 0.85rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 1rem 1.25rem;
  }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal],
  .js [data-reveal][data-revealed] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn--gold:hover {
    transform: none;
  }
}
