/* ============================================
   TORQEN — The Atlas of Possibilities
   Expedition Atlas × Exploration Archive
   ============================================ */

:root {
  --copper: #B45309;
  --terrain: #78350F;
  --sand: #FDE68A;
  --parchment: #FAF3E0;
  --ink: #3F3F46;
  --earth: #292524;
  --parchment-dark: #F0E6CC;
  --copper-light: #D97706;
  --copper-fade: rgba(180, 83, 9, 0.15);

  --font-headline: 'IM Fell English SC', serif;
  --font-subhead: 'Cinzel', serif;
  --font-body: 'Crimson Text', serif;
  --font-label: 'Libre Franklin', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--earth);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(180, 83, 9, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(120, 53, 15, 0.05) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B45309' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

a {
  color: var(--copper);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ============================================
   COMPASS HEADER
   ============================================ */

.compass-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--parchment);
  border-bottom: 2px solid var(--ink);
  padding: 1.5rem 1rem 1rem;
  box-shadow: 0 4px 20px rgba(41, 37, 36, 0.08);
}

.compass-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

/* CSS Compass Rose */
.compass-rose {
  position: relative;
  width: 72px;
  height: 72px;
  transition: transform 0.8s ease;
}

.compass-header:hover .compass-rose {
  transform: rotate(15deg);
}

.compass-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--copper);
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      var(--sand) 0deg 90deg,
      transparent 90deg 180deg,
      var(--copper-fade) 180deg 270deg,
      transparent 270deg 360deg
    );
}

.compass-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--ink);
  border-radius: 50%;
  opacity: 0.4;
}

.compass-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 50%;
  transform: translate(-50%, -100%);
  transform-origin: bottom center;
  background: linear-gradient(to top, var(--terrain), var(--copper));
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transition: transform 0.6s ease;
}

.compass-header:hover .compass-needle {
  transform: translate(-50%, -100%) rotate(-8deg);
}

.compass-needle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 45%;
  transform: translateX(-50%) translateY(100%);
  background: linear-gradient(to bottom, var(--ink), transparent);
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
}

.compass-n, .compass-s, .compass-e, .compass-w {
  position: absolute;
  font-family: var(--font-label);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--terrain);
  letter-spacing: 0.05em;
}

.compass-n { top: -2px; left: 50%; transform: translateX(-50%); }
.compass-s { bottom: -2px; left: 50%; transform: translateX(-50%); }
.compass-e { right: -2px; top: 50%; transform: translateY(-50%); }
.compass-w { left: -2px; top: 50%; transform: translateY(-50%); }

.brand-name {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--terrain);
  text-transform: uppercase;
}

.direction-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.direction-nav a {
  position: relative;
  color: var(--ink);
  padding: 0.25rem 0;
}

.direction-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.4s ease;
}

.direction-nav a:hover::after {
  width: 100%;
}

.direction-nav a:hover {
  color: var(--copper);
}

/* ============================================
   SECTION SHARED STYLES
   ============================================ */

.section-frame {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-plate {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--terrain);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 3rem;
}

/* ============================================
   SECTION 1: MAP SPREAD
   ============================================ */

.map-spread {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 3px double var(--ink);
}

.topo-layer {
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(
      circle at 30% 40%,
      transparent 0,
      transparent 40px,
      rgba(180, 83, 9, 0.03) 40px,
      rgba(180, 83, 9, 0.03) 41px
    ),
    repeating-radial-gradient(
      circle at 70% 60%,
      transparent 0,
      transparent 60px,
      rgba(120, 53, 15, 0.04) 60px,
      rgba(120, 53, 15, 0.04) 61px
    ),
    repeating-radial-gradient(
      circle at 50% 80%,
      transparent 0,
      transparent 80px,
      rgba(63, 63, 70, 0.02) 80px,
      rgba(63, 63, 70, 0.02) 81px
    );
  opacity: 0.9;
}

.topo-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(250, 243, 224, 0.3) 50%,
    rgba(250, 243, 224, 0.8) 100%
  );
}

.route-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.route-svg {
  width: 100%;
  height: 100%;
}

.route-path {
  stroke: var(--copper);
  stroke-width: 1.5;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawRoute 4s ease forwards;
}

.route-path-2 {
  animation-delay: 1s;
  stroke: var(--terrain);
  stroke-width: 1;
  opacity: 0.6;
}

@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}

.route-marker {
  fill: var(--copper);
  opacity: 0;
  animation: revealMarker 0.5s ease forwards;
}

.route-marker:nth-child(3) { animation-delay: 3s; }
.route-marker:nth-child(4) { animation-delay: 3.5s; }

@keyframes revealMarker {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.spread-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 3rem 2rem;
  text-align: center;
  animation: paperFade 1.2s ease forwards;
}

@keyframes paperFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.spread-label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--copper);
  margin-bottom: 2rem;
}

.spread-headline {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--terrain);
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.explorer-note {
  text-align: left;
  padding: 2rem 2.5rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-left: 3px solid var(--copper);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--earth);
  position: relative;
}

.explorer-note::before {
  content: '❧';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 1.5rem;
  color: var(--copper);
  opacity: 0.5;
}

.explorer-note cite {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-style: normal;
  font-family: var(--font-label);
  color: var(--ink);
  opacity: 0.7;
}

.mini-compass {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  opacity: 0.4;
}

.mini-compass-inner {
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--ink);
  border-radius: 50%;
}

.mini-compass-inner::after {
  content: 'N';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-label);
  font-size: 0.5rem;
  color: var(--terrain);
}

/* ============================================
   SECTION 2: DISCOVERED TERRITORIES
   ============================================ */

.territories {
  padding: 6rem 0;
  background: var(--parchment-dark);
  border-bottom: 1px solid rgba(63, 63, 70, 0.2);
}

.territory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.territory-card {
  position: relative;
  padding: 2rem 1.75rem 2.5rem;
  background: var(--parchment);
  border: 2px solid var(--ink);
  box-shadow:
    4px 4px 0 var(--copper-fade),
    inset 0 0 30px rgba(180, 83, 9, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.territory-card:hover {
  transform: translateY(-4px);
  box-shadow:
    6px 6px 0 rgba(180, 83, 9, 0.2),
    inset 0 0 30px rgba(180, 83, 9, 0.05);
}

.territory-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px dashed rgba(63, 63, 70, 0.2);
  pointer-events: none;
}

.card-coords {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(180, 83, 9, 0.2);
}

.card-name {
  font-family: var(--font-subhead);
  font-size: 1.25rem;
  color: var(--terrain);
  margin-bottom: 1rem;
}

.card-desc {
  font-size: 1rem;
  color: var(--earth);
  line-height: 1.6;
}

.card-marker {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  color: var(--copper);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.territory-card:hover .card-marker {
  opacity: 1;
}

/* ============================================
   SECTION 3: FIELD NOTES
   ============================================ */

.field-notes {
  padding: 6rem 0;
  background: var(--parchment);
}

.notes-journal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.note-page {
  background: #FFFDF7;
  padding: 2rem;
  border: 1px solid rgba(63, 63, 70, 0.3);
  box-shadow:
    2px 2px 8px rgba(41, 37, 36, 0.1),
    -1px -1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.4s ease;
  animation: paperFade 0.8s ease backwards;
}

.note-page-1 { --rotation: -1.5deg; animation-delay: 0.1s; }
.note-page-2 { --rotation: 1deg; animation-delay: 0.3s; }
.note-page-3 { --rotation: -0.5deg; animation-delay: 0.5s; }

.note-page:hover {
  transform: rotate(0deg) translateY(-6px);
  z-index: 2;
}

.note-page::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 16px;
  background: var(--sand);
  border: 1px solid rgba(180, 83, 9, 0.3);
  opacity: 0.7;
}

.note-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(63, 63, 70, 0.15);
}

.note-date {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--copper);
  letter-spacing: 0.05em;
}

.note-location {
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  color: var(--terrain);
}

.note-observation {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.sketch-placeholder {
  border: 1px dashed rgba(63, 63, 70, 0.3);
  padding: 1rem;
  background: rgba(250, 243, 224, 0.5);
  color: var(--ink);
  opacity: 0.7;
}

.sketch-svg {
  width: 100%;
  height: auto;
}

/* ============================================
   SECTION 4: WORLD MAP OF IDEAS
   ============================================ */

.world-map {
  padding: 6rem 0;
  background:
    linear-gradient(135deg, var(--parchment-dark) 0%, var(--parchment) 100%);
  border-top: 1px solid rgba(63, 63, 70, 0.15);
  border-bottom: 1px solid rgba(63, 63, 70, 0.15);
}

.idea-map-container {
  position: relative;
  aspect-ratio: 3 / 2;
  max-height: 500px;
  background:
    radial-gradient(ellipse at center, rgba(253, 230, 138, 0.15) 0%, transparent 70%),
    var(--parchment);
  border: 3px double var(--ink);
  overflow: hidden;
}

.idea-map-container::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(63, 63, 70, 0.25);
  pointer-events: none;
  z-index: 1;
}

.idea-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.idea-route {
  stroke: var(--copper);
  stroke-width: 1.5;
  stroke-dasharray: 8, 6;
  opacity: 0.5;
  animation: dashMove 20s linear infinite;
}

.idea-route-2, .idea-route-3, .idea-route-4, .idea-route-5 {
  stroke: var(--terrain);
  stroke-width: 1;
  opacity: 0.35;
}

@keyframes dashMove {
  to { stroke-dashoffset: -200; }
}

.idea-regions {
  position: absolute;
  inset: 0;
}

.idea-region {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.region-dot {
  width: 14px;
  height: 14px;
  background: var(--copper);
  border: 2px solid var(--sand);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.2);
  opacity: 0;
  animation: revealMarker 0.6s ease forwards;
}

.idea-region:nth-child(1) .region-dot { animation-delay: 0.2s; }
.idea-region:nth-child(2) .region-dot { animation-delay: 0.5s; }
.idea-region:nth-child(3) .region-dot { animation-delay: 0.8s; }
.idea-region:nth-child(4) .region-dot { animation-delay: 1.1s; }
.idea-region:nth-child(5) .region-dot { animation-delay: 1.4s; }
.idea-region:nth-child(6) .region-dot { animation-delay: 1.7s; }

.region-label {
  font-family: var(--font-subhead);
  font-size: 0.75rem;
  color: var(--terrain);
  background: rgba(250, 243, 224, 0.9);
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(180, 83, 9, 0.3);
  white-space: nowrap;
  opacity: 0;
  animation: paperFade 0.5s ease forwards;
}

.idea-region:nth-child(1) .region-label { animation-delay: 0.4s; }
.idea-region:nth-child(2) .region-label { animation-delay: 0.7s; }
.idea-region:nth-child(3) .region-label { animation-delay: 1s; }
.idea-region:nth-child(4) .region-label { animation-delay: 1.3s; }
.idea-region:nth-child(5) .region-label { animation-delay: 1.6s; }
.idea-region:nth-child(6) .region-label { animation-delay: 1.9s; }

.idea-region:hover .region-dot {
  transform: scale(1.3);
  transition: transform 0.3s ease;
}

/* ============================================
   SECTION 5: ARTIFACT COLLECTION
   ============================================ */

.artifacts {
  padding: 6rem 0;
  background: var(--parchment);
}

.artifact-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.artifact-frame {
  text-align: center;
  transition: transform 0.3s ease;
}

.artifact-frame:hover {
  transform: translateY(-6px);
}

.artifact-inner {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #FFFDF7;
  border: 4px solid var(--terrain);
  box-shadow:
    inset 0 0 20px rgba(120, 53, 15, 0.05),
    4px 4px 0 rgba(63, 63, 70, 0.15);
  color: var(--copper);
  margin-bottom: 1rem;
  position: relative;
}

.artifact-inner::before,
.artifact-inner::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--copper);
}

.artifact-inner::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.artifact-inner::after { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.artifact-inner svg {
  width: 60%;
  height: auto;
}

.artifact-frame figcaption {
  font-family: var(--font-subhead);
  font-size: 0.95rem;
  color: var(--terrain);
  margin-bottom: 0.25rem;
}

.artifact-id {
  font-family: var(--font-label);
  font-size: 0.6rem;
  color: var(--ink);
  opacity: 0.6;
  letter-spacing: 0.1em;
}

/* ============================================
   SECTION 6: EXPEDITION LOG
   ============================================ */

.expedition-log {
  padding: 6rem 0;
  background: var(--parchment-dark);
}

.timeline-route {
  position: relative;
  padding-left: 2rem;
}

.route-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--copper) 10%,
    var(--terrain) 50%,
    var(--copper) 90%,
    transparent 100%
  );
}

.route-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--sand);
  border: 2px solid var(--copper);
  border-radius: 50%;
}

.milestone {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 3rem;
  animation: paperFade 0.8s ease backwards;
}

.milestone:nth-child(2) { animation-delay: 0.15s; }
.milestone:nth-child(3) { animation-delay: 0.3s; }
.milestone:nth-child(4) { animation-delay: 0.45s; }
.milestone:nth-child(5) { animation-delay: 0.6s; }

.milestone::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  background: var(--copper);
  border: 3px solid var(--parchment-dark);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px var(--copper);
  z-index: 1;
}

.milestone-year {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.milestone-card {
  background: var(--parchment);
  padding: 1.75rem 2rem;
  border: 1px solid rgba(63, 63, 70, 0.25);
  border-left: 4px solid var(--terrain);
}

.milestone-dest {
  font-family: var(--font-subhead);
  font-size: 1.15rem;
  color: var(--terrain);
  margin-bottom: 1rem;
}

.milestone-finding,
.milestone-impact {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--earth);
}

.milestone-impact {
  margin-bottom: 0;
  font-style: italic;
  opacity: 0.85;
}

/* ============================================
   SECTION 7: MANIFESTO
   ============================================ */

.manifesto {
  padding: 6rem 1.5rem;
  background:
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 100%);
}

.manifesto-journal {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem 3.5rem;
  background: #FFFDF7;
  border: 1px solid rgba(63, 63, 70, 0.3);
  box-shadow:
    0 4px 20px rgba(41, 37, 36, 0.08),
    inset 0 0 60px rgba(180, 83, 9, 0.02);
  position: relative;
}

.manifesto-journal::before {
  content: '';
  position: absolute;
  left: 3rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(180, 83, 9, 0.15);
}

.manifesto-headline {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--terrain);
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

.manifesto-text p {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  text-indent: 2rem;
}

.manifesto-text p:first-child {
  text-indent: 0;
}

.manifesto-text p:first-child::first-letter {
  font-family: var(--font-headline);
  font-size: 3.5rem;
  float: left;
  line-height: 0.8;
  margin: 0.1rem 0.5rem 0 0;
  color: var(--copper);
}

.manifesto-sign {
  margin-top: 2.5rem;
  font-family: var(--font-body);
  font-style: italic;
  text-align: right;
  color: var(--ink);
  opacity: 0.8;
}

/* ============================================
   SECTION 8: NEXT EXPEDITION
   ============================================ */

.next-expedition {
  padding: 5rem 1.5rem;
}

.parchment-banner {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 3rem;
  text-align: center;
  background:
    linear-gradient(135deg, var(--sand) 0%, var(--parchment) 40%, var(--parchment-dark) 100%);
  border: 3px double var(--terrain);
  box-shadow:
    0 8px 30px rgba(120, 53, 15, 0.15),
    inset 0 0 40px rgba(255, 255, 255, 0.3);
  position: relative;
}

.parchment-banner::before,
.parchment-banner::after {
  content: '✦';
  position: absolute;
  font-size: 1rem;
  color: var(--copper);
  opacity: 0.5;
}

.parchment-banner::before { top: 1rem; left: 1.5rem; }
.parchment-banner::after { bottom: 1rem; right: 1.5rem; }

.next-headline {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--terrain);
  margin-bottom: 1.25rem;
}

.next-subtext {
  font-style: italic;
  color: var(--earth);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.map-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-marker {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 1rem 2rem;
  border: 2px solid var(--terrain);
  position: relative;
  transition: all 0.3s ease;
}

.btn-marker::before {
  content: '◆';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--copper);
}

.btn-primary {
  background: var(--terrain);
  color: var(--sand);
}

.btn-primary:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--parchment);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--terrain);
}

.btn-secondary:hover {
  background: var(--sand);
  transform: translateY(-2px);
}

/* ============================================
   CONTACT: TRAVEL DISPATCH
   ============================================ */

.contact {
  padding: 6rem 0;
  background: var(--parchment);
  border-top: 1px solid rgba(63, 63, 70, 0.2);
}

.dispatch-form {
  max-width: 560px;
  padding: 2.5rem;
  background: #FFFDF7;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--copper-fade);
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terrain);
  margin-bottom: 0.5rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--earth);
  background: var(--parchment);
  border: 1px solid rgba(63, 63, 70, 0.3);
  border-bottom: 2px solid var(--copper);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: #FFFDF7;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-dispatch {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  background: var(--copper);
  color: var(--parchment);
  border: 2px solid var(--terrain);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-dispatch:hover {
  background: var(--terrain);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(120, 53, 15, 0.2);
}

/* ============================================
   FOOTER: ATLAS LEGEND
   ============================================ */

.atlas-footer {
  background: var(--terrain);
  color: var(--sand);
  padding: 3rem 1.5rem 2rem;
  border-top: 4px double var(--copper);
}

.footer-legend {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.footer-nav a {
  color: var(--sand);
}

.footer-nav a:hover {
  color: var(--parchment);
}

.legend-sep {
  opacity: 0.5;
}

.footer-brand {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  color: var(--parchment);
}

.footer-coords {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.footer-note {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .compass-header {
    padding: 1rem 0.75rem 0.75rem;
  }

  .compass-rose {
    width: 56px;
    height: 56px;
  }

  .direction-nav {
    gap: 1rem;
    font-size: 0.65rem;
  }

  .map-spread {
    min-height: 90vh;
  }

  .spread-content {
    padding: 2rem 1.25rem;
  }

  .explorer-note {
    padding: 1.5rem;
  }

  .mini-compass {
    width: 36px;
    height: 36px;
    bottom: 1rem;
    right: 1rem;
  }

  .territories,
  .field-notes,
  .world-map,
  .artifacts,
  .expedition-log,
  .contact {
    padding: 4rem 0;
  }

  .manifesto-journal {
    padding: 2rem 1.5rem 2rem 2rem;
  }

  .manifesto-journal::before {
    left: 1.25rem;
  }

  .manifesto-text p {
    text-indent: 1rem;
    font-size: 1.05rem;
  }

  .parchment-banner {
    padding: 3rem 1.5rem;
  }

  .dispatch-form {
    padding: 1.5rem;
  }

  .timeline-route {
    padding-left: 1.5rem;
  }

  .milestone {
    padding-left: 2rem;
  }

  .milestone::before {
    left: -1.5rem;
  }
}

@media (max-width: 480px) {
  .direction-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    text-align: center;
  }

  .notes-journal {
    grid-template-columns: 1fr;
  }

  .note-page {
    transform: rotate(0deg) !important;
  }

  .artifact-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .map-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-marker {
    width: 100%;
    max-width: 280px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
