:root {
  color-scheme: dark;
  --night: #081311;
  --forest: #12312c;
  --moss: #285146;
  --canopy: #1a4037;
  --river: #0f2722;
  --parchment: #ead9b2;
  --canvas: #cfbb90;
  --paper: #f4ead1;
  --gold: #d2a14f;
  --ruby: #9e2f2b;
  --marquee-red: #8c2b1d;
  --teak: #5e4330;
  --rope: #b89156;
  --rust: #6e3321;
  --copper: #bb7c3f;
  --ember: #ffb25b;
  --mist: #d6d2c1;
  --ink: #14201d;
  --line: rgba(234, 217, 178, 0.18);
  --soft-line: rgba(234, 217, 178, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --display: "Palatino Linotype", "Book Antiqua", "URW Palladio L", serif;
  --poster: "Copperplate Gothic Bold", "Bookman Old Style", "Georgia", serif;
  --wayfinding: "Franklin Gothic Demi", "Arial Narrow", "Trebuchet MS", sans-serif;
  --body: "Trebuchet MS", "Gill Sans", sans-serif;
  --max-width: 1160px;
  --section-space: clamp(56px, 7vw, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--body);
  background:
    radial-gradient(circle at top, rgba(210, 161, 79, 0.1), transparent 34%),
    linear-gradient(rgba(8, 19, 17, 0.84), rgba(8, 19, 17, 0.94)),
    url("assets/hms-green-bg.jpg") center / cover fixed,
    var(--night);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, rgba(210, 161, 79, 0.12), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(158, 47, 43, 0.14), transparent 22%),
    radial-gradient(circle at 18% 84%, rgba(40, 81, 70, 0.18), transparent 28%),
    linear-gradient(transparent 97%, rgba(234, 217, 178, 0.04) 100%);
  background-size: auto, auto, auto, 100% 56px;
  opacity: 0.92;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 6% 10%, rgba(207, 187, 144, 0.08), transparent 24%),
    radial-gradient(circle at 94% 22%, rgba(140, 43, 29, 0.1), transparent 20%),
    linear-gradient(115deg, rgba(18, 49, 44, 0.08), transparent 34%, transparent 66%, rgba(210, 161, 79, 0.05)),
    radial-gradient(circle at 18% 18%, rgba(0, 0, 0, 0.18) 0 18%, transparent 19%),
    radial-gradient(circle at 84% 76%, rgba(0, 0, 0, 0.16) 0 16%, transparent 17%),
    radial-gradient(circle at 16% 42%, rgba(255, 178, 91, 0.06), transparent 16%),
    radial-gradient(circle at 87% 68%, rgba(255, 178, 91, 0.05), transparent 15%);
  mix-blend-mode: screen;
  opacity: 0.42;
}

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

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

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(8px);
}

.site-shell::before {
  width: 280px;
  height: 280px;
  top: 120px;
  right: -120px;
  background: radial-gradient(circle, rgba(210, 161, 79, 0.12), transparent 72%);
  opacity: 0.18;
}

.site-shell::after {
  width: 240px;
  height: 240px;
  left: -120px;
  top: 920px;
  background: radial-gradient(circle, rgba(40, 81, 70, 0.22), transparent 70%);
  opacity: 0.16;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(16px);
  background:
    linear-gradient(180deg, rgba(23, 56, 48, 0.9), rgba(9, 24, 21, 0.9)),
    repeating-linear-gradient(90deg, rgba(105, 71, 43, 0.16) 0 46px, rgba(54, 35, 23, 0.22) 46px 49px, rgba(96, 65, 40, 0.16) 49px 96px),
    rgba(8, 19, 17, 0.72);
  border-bottom: 1px solid rgba(210, 161, 79, 0.18);
  box-shadow:
    inset 0 -1px 0 rgba(234, 217, 178, 0.04),
    0 12px 26px rgba(0, 0, 0, 0.16);
}

.topbar__inner,
.hero,
.section,
.footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 4px 0;
}

.brand__seal {
  width: clamp(92px, 10vw, 132px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
  flex: 0 0 auto;
}

.brand__eyebrow,
.eyebrow,
.meta-line {
  margin: 0;
  font-family: var(--wayfinding);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  color: var(--gold);
}

.brand__name {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.95rem;
}

.nav a,
.foot-links a {
  color: rgba(244, 234, 209, 0.88);
  transition: color 180ms ease, transform 180ms ease;
}

.nav a {
  padding: 8px 0;
  font-family: var(--wayfinding);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible,
.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--paper);
  transform: translateY(-1px);
}

.nav .nav__shop {
  padding: 11px 18px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #b84331, var(--marquee-red)),
    url("assets/paper-texture.jpg") center / cover;
  border: 1px solid rgba(244, 234, 209, 0.22);
  color: #fff8e8;
  box-shadow:
    inset 0 1px 0 rgba(255, 242, 212, 0.22),
    0 14px 30px rgba(158, 47, 43, 0.28);
  background-blend-mode: normal, overlay;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--poster);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero {
  min-height: clamp(640px, 84vh, 790px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: 44px 0 60px;
}

.page-hero {
  min-height: auto;
  padding-top: 30px;
  padding-bottom: 40px;
}

.hero__copy,
.hero__panel,
.section-block {
  animation: rise 900ms ease both;
}

.hero__panel {
  animation-delay: 160ms;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  padding: 11px 18px 10px;
  border: 1px solid rgba(210, 161, 79, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(33, 75, 66, 0.86), rgba(14, 37, 32, 0.92)),
    url("assets/paper-texture.jpg") center / cover;
  box-shadow:
    inset 0 1px 0 rgba(244, 234, 209, 0.06),
    0 12px 26px rgba(0, 0, 0, 0.14);
  color: var(--mist);
  font-family: var(--wayfinding);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-blend-mode: normal, soft-light;
}

.hero__kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    14px -8px 0 -1px var(--gold),
    14px 8px 0 -1px var(--gold);
}

.hero__kicker::after,
.quest-card__tag::after,
.label::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(244, 234, 209, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.85rem, 7vw, 5.4rem);
  line-height: 0.94;
  text-transform: uppercase;
  color: #f7eccd;
  text-shadow:
    0 2px 0 rgba(15, 13, 10, 0.8),
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(210, 161, 79, 0.08);
}

.hero__lede,
.section__header p,
.quest-card__body p,
.panel p,
.cta-band p,
.footer p {
  color: rgba(244, 234, 209, 0.84);
  line-height: 1.78;
}

.hero__lede {
  max-width: 39rem;
  margin: 22px 0 0;
  font-size: 1.12rem;
}

.button-row,
.hero__actions,
.panel__footer,
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__actions {
  margin-top: 28px;
}

.button-row {
  margin-top: 20px;
}

.panel__footer {
  margin-top: 12px;
}

.foot-links {
  margin-top: 14px;
}

.button,
.button--ghost,
.button--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--wayfinding);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button {
  background:
    linear-gradient(180deg, #e3be68, #c89234),
    url("assets/paper-texture.jpg") center / cover;
  border-color: rgba(255, 242, 212, 0.22);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 224, 0.46),
    0 18px 36px rgba(210, 161, 79, 0.24);
  background-blend-mode: normal, overlay;
}

.button--ghost {
  background:
    linear-gradient(180deg, rgba(36, 77, 67, 0.86), rgba(12, 31, 27, 0.94)),
    linear-gradient(90deg, rgba(124, 79, 39, 0.16), transparent 20%, transparent 80%, rgba(124, 79, 39, 0.16)),
    url("assets/paper-texture.jpg") center / cover;
  border-color: rgba(210, 161, 79, 0.22);
  box-shadow: inset 0 1px 0 rgba(244, 234, 209, 0.05);
  color: var(--paper);
  background-blend-mode: normal, normal, multiply;
}

.button--link {
  min-height: 40px;
  padding: 0 14px;
  color: var(--gold);
  border-color: rgba(210, 161, 79, 0.18);
  background:
    linear-gradient(180deg, rgba(25, 56, 49, 0.82), rgba(12, 28, 25, 0.94)),
    url("assets/paper-texture.jpg") center / cover;
  box-shadow: inset 0 1px 0 rgba(244, 234, 209, 0.04);
  background-blend-mode: normal, multiply;
}

.button::after,
.button--ghost::after,
.button--link::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(244, 234, 209, 0.14);
  border-radius: inherit;
  pointer-events: none;
}

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

.hero__notes,
.grid-3,
.route-grid,
.checklist-grid,
.story-grid,
.field-grid,
.foot-grid {
  display: grid;
  gap: 18px;
}

.hero__notes {
  margin-top: 24px;
}

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

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

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

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

.hero__note,
.panel,
.cta-band,
.hero__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  box-shadow: var(--shadow);
}

.hero__note,
.panel {
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(22, 50, 44, 0.9), rgba(8, 20, 18, 0.86)),
    linear-gradient(120deg, rgba(207, 187, 144, 0.08), transparent 34%, transparent 64%, rgba(140, 43, 29, 0.08)),
    repeating-linear-gradient(0deg, rgba(244, 234, 209, 0.024) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(90deg, rgba(244, 234, 209, 0.022) 0 1px, transparent 1px 9px),
    url("assets/fabric-texture-optimized.jpg") center / cover;
  box-shadow:
    inset 0 1px 0 rgba(244, 234, 209, 0.04),
    var(--shadow);
  background-blend-mode: normal, screen, overlay, overlay, multiply;
}

.hero__note strong,
.panel strong {
  display: block;
  font-size: 1rem;
  color: var(--paper);
  font-family: var(--wayfinding);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__note span,
.meta-muted {
  display: block;
  margin-top: 6px;
  color: rgba(244, 234, 209, 0.74);
  line-height: 1.6;
  font-size: 0.92rem;
}

.panel::before,
.hero__panel::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 161, 79, 0.12), transparent 70%);
}

.panel::after,
.hero__panel::after,
.cta-band::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    radial-gradient(circle at top right, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    radial-gradient(circle at bottom left, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    radial-gradient(circle at bottom right, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(234, 217, 178, 0.026) 34px 35px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(234, 217, 178, 0.02) 34px 35px);
  opacity: 0.64;
  border-radius: 18px;
}

.hero__panel {
  padding: 24px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(26, 63, 55, 0.92), rgba(10, 24, 21, 0.94)),
    linear-gradient(135deg, rgba(207, 187, 144, 0.1), transparent 38%, transparent 70%, rgba(140, 43, 29, 0.1)),
    repeating-linear-gradient(0deg, rgba(244, 234, 209, 0.024) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(90deg, rgba(244, 234, 209, 0.02) 0 1px, transparent 1px 10px),
    url("assets/fabric-texture-optimized.jpg") center / cover;
  border: 1px solid rgba(210, 161, 79, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(244, 234, 209, 0.05),
    var(--shadow);
  isolation: isolate;
  background-blend-mode: normal, screen, overlay, overlay, multiply;
}

.hero__panel::before {
  inset: auto -12% -22% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 161, 79, 0.16), transparent 70%);
  filter: blur(6px);
  opacity: 0.78;
  z-index: -1;
}

.hero__panel > *,
.cta-band > * {
  position: relative;
  z-index: 1;
}

.hero__crest {
  position: absolute;
  top: -12px;
  right: -16px;
  width: min(52%, 280px);
  opacity: 0.16;
  transform: rotate(-6deg);
}

.quest-card,
.page-card {
  display: grid;
  gap: 16px;
}

.quest-card__tag,
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  position: relative;
  overflow: hidden;
  padding: 10px 14px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(31, 72, 63, 0.88), rgba(11, 30, 26, 0.95)),
    url("assets/paper-texture.jpg") center / cover;
  border: 1px solid rgba(210, 161, 79, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(244, 234, 209, 0.06),
    0 10px 18px rgba(0, 0, 0, 0.12);
  color: var(--mist);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--wayfinding);
  background-blend-mode: normal, soft-light;
}

.page-hero__image,
.card-image {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(234, 217, 178, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.quest-card__seal {
  width: min(100%, 310px);
  margin-inline: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.4));
}

.quest-card__body,
.panel__body {
  display: grid;
  gap: 12px;
}

.panel > .label + .panel__body,
.page-card > .label + .panel__body {
  margin-top: 14px;
}

.quest-card__body h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  text-transform: uppercase;
  line-height: 0.96;
  text-shadow:
    0 2px 0 rgba(15, 13, 10, 0.72),
    0 8px 16px rgba(0, 0, 0, 0.22);
}

.section__title {
  font-size: clamp(1.95rem, 3.8vw, 2.95rem);
  text-transform: uppercase;
  line-height: 0.96;
  color: #f2e1b7;
  text-shadow:
    0 2px 0 rgba(15, 13, 10, 0.72),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.quest-card__chips,
.chip-list,
.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quest-card__chips span,
.chip,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(234, 217, 178, 0.18);
  background:
    linear-gradient(180deg, rgba(27, 56, 49, 0.82), rgba(10, 22, 20, 0.9)),
    url("assets/paper-texture.jpg") center / cover;
  font-size: 0.84rem;
  color: rgba(244, 234, 209, 0.88);
  background-blend-mode: normal, multiply;
}

.section {
  padding: 0 0 var(--section-space);
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  position: relative;
  gap: 20px;
  margin-bottom: 24px;
}

.section__header::after {
  content: "";
  display: block;
  width: min(220px, 48%);
  height: 14px;
  margin-top: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 7px 7px, rgba(255, 239, 206, 0.46) 0 3px, transparent 3.5px),
    linear-gradient(90deg, rgba(166, 123, 67, 0.78), rgba(88, 58, 29, 0.18));
  background-size: 24px 14px, 100% 100%;
  box-shadow: 0 1px 0 rgba(244, 234, 209, 0.06);
}

.section__header p {
  max-width: 42rem;
  margin: 12px 0 0;
}

.panel__meta,
.field-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(244, 234, 209, 0.76);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.panel__meta span,
.field-card__meta span {
  padding: 7px 10px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(18, 49, 44, 0.86), rgba(9, 22, 20, 0.92)),
    url("assets/paper-texture.jpg") center / cover;
  border: 1px solid rgba(234, 217, 178, 0.12);
  background-blend-mode: normal, multiply;
}

.media-card {
  padding: 0;
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid rgba(210, 161, 79, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(244, 234, 209, 0.08),
    inset 0 0 0 10px rgba(72, 44, 22, 0.18);
  filter: saturate(1.04) contrast(1.05);
}

.media-card .panel__body {
  padding: 18px 20px 20px;
}

.field-card__difficulty {
  color: var(--gold);
}

.field-card__clue {
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(16, 37, 33, 0.78), rgba(8, 19, 17, 0.9)),
    url("assets/paper-texture.jpg") center / cover;
  border: 1px solid rgba(234, 217, 178, 0.1);
  background-blend-mode: normal, multiply;
}

.field-card__clue strong {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.field-card__clue p {
  margin: 8px 0 0;
}

.route-card strong {
  font-size: 1.12rem;
}

.route-card p {
  margin: 12px 0 0;
}

.route-card .tag {
  margin-top: 8px;
}

.library-park {
  scroll-margin-top: 88px;
}

.library-jump,
.library-legend,
.library-chip-row,
.library-source {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.library-legend {
  margin-top: 16px;
}

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

.library-card {
  display: grid;
  gap: 16px;
}

.library-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.library-card h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.04;
}

.difficulty-badge,
.source-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 178, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 49, 44, 0.82), rgba(9, 22, 20, 0.9)),
    url("assets/paper-texture.jpg") center / cover;
  font-family: var(--wayfinding);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 234, 209, 0.88);
  background-blend-mode: normal, multiply;
}

.difficulty-badge--easy {
  color: #dff3c2;
  border-color: rgba(186, 214, 122, 0.26);
}

.difficulty-badge--medium {
  color: #f1ddb0;
  border-color: rgba(210, 161, 79, 0.24);
}

.difficulty-badge--hard {
  color: #f4c4b9;
  border-color: rgba(158, 47, 43, 0.3);
}

.source-badge--legacy {
  color: #e9d3ac;
}

.source-badge--archive {
  color: #f0d47b;
}

.source-badge--article {
  color: #d6e7cf;
}

.source-badge--fallback {
  color: #e8c9b7;
}

.photo-slot {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 112px;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(210, 161, 79, 0.22);
  background:
    linear-gradient(180deg, rgba(15, 35, 31, 0.82), rgba(8, 19, 17, 0.92)),
    url("assets/paper-texture.jpg") center / cover;
  background-blend-mode: normal, multiply;
}

.photo-slot strong {
  font-family: var(--wayfinding);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.photo-slot span {
  color: rgba(244, 234, 209, 0.72);
  line-height: 1.6;
  font-size: 0.92rem;
}

.fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(8, 19, 17, 0.32);
  border: 1px solid rgba(234, 217, 178, 0.08);
}

.fact-list strong {
  font-family: var(--wayfinding);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.fact-list span {
  color: rgba(244, 234, 209, 0.84);
  line-height: 1.65;
}

.library-source {
  align-items: center;
  justify-content: space-between;
}

.source-note {
  margin: 0;
  color: rgba(244, 234, 209, 0.72);
  font-size: 0.84rem;
  line-height: 1.5;
}

.source-note--legacy {
  color: rgba(234, 217, 178, 0.82);
}

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

.location-card,
.library-entry {
  display: grid;
  gap: 16px;
}

.location-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.location-card__stats,
.location-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.location-card__areas {
  margin: 12px 0 0;
  color: rgba(244, 234, 209, 0.78);
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 178, 0.12);
  background:
    linear-gradient(180deg, rgba(25, 57, 49, 0.86), rgba(12, 29, 25, 0.86)),
    url("assets/paper-texture.jpg") center / cover;
  background-blend-mode: normal, overlay;
  color: rgba(244, 234, 209, 0.88);
  font-family: var(--wayfinding);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.location-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-section {
  padding-top: 0;
}

.library-entry {
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: stretch;
}

.library-entry__media {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(234, 217, 178, 0.1);
  background:
    linear-gradient(180deg, rgba(30, 68, 58, 0.86), rgba(10, 24, 20, 0.92)),
    url("assets/fabric-texture-optimized.jpg") center / cover;
  background-blend-mode: normal, overlay;
  box-shadow: inset 0 0 0 1px rgba(234, 217, 178, 0.03);
}

.library-entry__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.library-entry__media--placeholder {
  display: grid;
  place-items: center;
}

.entry-thumb__placeholder,
.entry-thumb__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  border-radius: 16px;
  border: 1px solid rgba(234, 217, 178, 0.12);
  background:
    linear-gradient(180deg, rgba(19, 43, 37, 0.88), rgba(9, 20, 17, 0.88)),
    url("assets/paper-texture.jpg") center / cover;
  background-blend-mode: normal, overlay;
}

.entry-thumb__placeholder {
  top: 14px;
  bottom: 14px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
}

.entry-thumb__placeholder strong,
.entry-thumb__caption {
  font-family: var(--wayfinding);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.entry-thumb__placeholder span {
  color: rgba(244, 234, 209, 0.76);
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.entry-thumb__caption {
  bottom: 14px;
  padding: 10px 12px 9px;
  color: rgba(244, 234, 209, 0.88);
  text-align: center;
}

.library-entry__title,
.library-entry__note {
  margin: 0;
}

.library-entry__title {
  color: rgba(244, 234, 209, 0.92);
  font-size: 0.98rem;
  line-height: 1.55;
}

.library-entry__note {
  margin-top: 12px;
  color: rgba(244, 234, 209, 0.72);
  line-height: 1.6;
}

.research-list {
  display: grid;
  gap: 12px;
}

.research-list p {
  margin: 0;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(28, 66, 57, 0.92), rgba(12, 29, 25, 0.92)),
    linear-gradient(135deg, rgba(40, 81, 70, 0.16), rgba(158, 47, 43, 0.12)),
    repeating-linear-gradient(0deg, rgba(244, 234, 209, 0.024) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(90deg, rgba(244, 234, 209, 0.02) 0 1px, transparent 1px 10px),
    url("assets/fabric-texture-optimized.jpg") center / cover;
  background-blend-mode: normal, normal, overlay, overlay, multiply;
}

.cta-band::before {
  inset: auto -14% -26% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 161, 79, 0.14), transparent 70%);
  opacity: 0.72;
  filter: blur(6px);
}

.hero__panel::after {
  background:
    radial-gradient(circle at top left, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    radial-gradient(circle at top right, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    radial-gradient(circle at bottom left, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    radial-gradient(circle at bottom right, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(234, 217, 178, 0.026) 34px 35px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(234, 217, 178, 0.02) 34px 35px);
}

.cta-band::after {
  background:
    radial-gradient(circle at top left, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    radial-gradient(circle at top right, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    radial-gradient(circle at bottom left, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    radial-gradient(circle at bottom right, rgba(210, 161, 79, 0.62) 0 2px, transparent 3px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(234, 217, 178, 0.026) 34px 35px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(234, 217, 178, 0.02) 34px 35px);
}

.cta-band h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(15, 13, 10, 0.72),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.cta-band p {
  margin: 14px 0 0;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: center;
}

.split-band .panel {
  min-height: 100%;
}

.footer {
  padding: 0 0 38px;
}

.foot-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  padding-top: 10px;
  border-top: 1px solid var(--soft-line);
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

.footer__mark {
  width: 132px;
  opacity: 0.48;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .split-band,
  .story-grid,
  .field-grid,
  .grid-3,
  .route-grid,
  .checklist-grid,
  .library-grid,
  .location-grid,
  .entry-grid,
  .cta-band,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
    padding-bottom: 46px;
  }

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

  .section__header {
    display: block;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav {
    gap: 10px 14px;
    font-size: 0.9rem;
    justify-content: flex-start;
  }

  .nav a {
    letter-spacing: 0.12em;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 16vw, 4.5rem);
  }

  .brand__seal {
    width: clamp(88px, 28vw, 116px);
  }

  .button,
  .button--ghost,
  .button--link {
    min-height: 44px;
    padding: 0 16px;
  }

  .hero__panel {
    padding: 20px;
  }

  .library-card__head,
  .library-source {
    display: grid;
  }

  .library-entry {
    grid-template-columns: 1fr;
  }

  .library-entry__media {
    min-height: 200px;
  }

  .section__header {
    min-height: 0;
  }

  .section {
    padding-bottom: 68px;
  }
}
