/* cosplay.quest — Retro-Futuristic City of Characters */
/* Fonts: Barlow Condensed, Oswald, Roboto Condensed, Share Tech Mono */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700&family=Oswald:wght@400;500&family=Roboto+Condensed:wght@400;700&family=Share+Tech+Mono&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --graphite-deep:   #2A2420;
  --graphite-dark:   #1A1210;
  --graphite-mid:    #5A5248;
  --stone:           #8A8178;
  --marble-warm:     #C4BBB0;
  --marble-white:    #F2EDE6;
  --amber:           #B87E4A;
  --amber-light:     #D4A06A;
  --vein-shadow:     #1A1210;
  --section-dark:    #3A3028;

  /* Typography */
  --font-display:    'Barlow Condensed', sans-serif;
  --font-secondary:  'Oswald', sans-serif;
  --font-body:       'Roboto Condensed', sans-serif;
  --font-mono:       'Share Tech Mono', monospace;

  /* Marble vein angles — driven by JS per section */
  --vein-angle-1: 73deg;
  --vein-angle-2: 137deg;

  /* Transitions */
  --morph-duration: 1.2s;
  --headline-duration: 0.8s;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background: var(--graphite-deep);
  color: var(--marble-white);
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--graphite-deep);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

ul { list-style: none; }

/* ============================================================
   Vertical Progress Rail (Amber)
   ============================================================ */
#progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 100vh;
  background: var(--amber);
  z-index: 1000;
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 0.4s ease-out;
  box-shadow: 0 0 12px rgba(184,126,74,0.35), 0 0 40px rgba(184,126,74,0.12);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* ============================================================
   Scroll Container — F-Pattern Scroll Snap
   ============================================================ */
#scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
}

#scroll-container::-webkit-scrollbar { width: 0; display: none; }
#scroll-container { scrollbar-width: none; }

/* ============================================================
   Section Base
   ============================================================ */
.section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--graphite-deep);
}

.snap-section {
  scroll-snap-align: start;
}

/* ============================================================
   Marble Background — CSS-Only Texture
   ============================================================ */
.marble-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      var(--vein-angle-1),
      transparent,
      transparent 8px,
      rgba(26,18,16,0.06) 8px,
      rgba(26,18,16,0.06) 9px
    ),
    repeating-linear-gradient(
      var(--vein-angle-2),
      transparent,
      transparent 12px,
      rgba(26,18,16,0.04) 12px,
      rgba(26,18,16,0.04) 13px
    ),
    radial-gradient(ellipse 60% 40% at 30% 60%, rgba(196,187,176,0.10), transparent 70%),
    radial-gradient(ellipse 45% 60% at 75% 25%, rgba(184,126,74,0.06), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(58,48,40,0.4), var(--graphite-deep) 80%);
  background-color: var(--graphite-deep);
  transition: background-image var(--morph-duration) ease-in-out;
  pointer-events: none;
}

/* ============================================================
   Transit Grid Overlay
   ============================================================ */
.transit-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(184,126,74,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184,126,74,0.10) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* ============================================================
   Common Typography Elements
   ============================================================ */
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
}

.timestamp {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.amber { color: var(--amber) !important; }
.amber-text { color: var(--amber); }
.amber-dot { color: var(--amber); }

.morph-headline {
  opacity: 0;
  letter-spacing: -0.05em;
  transition: opacity var(--headline-duration) ease-out, letter-spacing var(--headline-duration) ease-out;
}

.morph-headline.in-view {
  opacity: 1;
}

/* ============================================================
   Section I: Arrival Hall
   ============================================================ */
#section-arrival .arrival-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6vh 8vw;
}

.arrival-inner {
  width: 100%;
  max-width: 1600px;
}

.arrival-pre {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(184,126,74,0.25);
  padding-bottom: 1.2rem;
  margin-bottom: 3.5vh;
}

.headline-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14vw;
  line-height: 0.85;
  color: var(--marble-white);
  letter-spacing: 0em;
  text-transform: uppercase;
  margin-bottom: 2.5vh;
}

.headline-main.morph-headline.in-view {
  letter-spacing: -0.02em;
}

.arrival-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2vh 0 2.5vh;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--marble-white);
  opacity: 0.6;
}

.divider-line:first-child {
  max-width: 6vw;
}

.divider-label {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--marble-white);
  text-transform: uppercase;
}

.arrival-tagline {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 32px);
  letter-spacing: 0.08em;
  color: var(--marble-warm);
  margin-bottom: 5vh;
  max-width: 60vw;
}

.arrival-meta {
  display: flex;
  align-items: center;
  gap: 2.5vw;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--stone);
}

.meta-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 36px);
  color: var(--marble-white);
  letter-spacing: 0.04em;
}

.meta-divider {
  width: 1px;
  height: 36px;
  background: var(--graphite-mid);
}

.scroll-hint {
  position: absolute;
  bottom: 4vh;
  left: 8vw;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 1px solid var(--amber);
  border-bottom: 1px solid var(--amber);
  transform: rotate(45deg);
  animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
  50%      { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ============================================================
   Section II: Departure Board
   ============================================================ */
#section-board .board-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6vh 6vw 4vh;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(184,126,74,0.30);
  padding-bottom: 1rem;
  margin-bottom: 2.5vh;
}

.board-status {
  color: var(--amber-light);
  position: relative;
  padding-left: 18px;
}

.board-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.departure-board {
  background: rgba(26,18,16,0.55);
  border: 1px solid rgba(184,126,74,0.20);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.board-columns {
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.4fr 1fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(184,126,74,0.08);
  border-bottom: 1px solid rgba(184,126,74,0.30);
}

.board-col-header {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
}

.board-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.board-row {
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.4fr 1fr;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(90,82,72,0.25);
  align-items: center;
}

.board-cell {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(14px, 1.4vw, 22px);
  letter-spacing: 0.08em;
  color: var(--marble-white);
  text-transform: uppercase;
  display: flex;
  perspective: 400px;
}

.flip-char {
  display: inline-block;
  width: 0.7em;
  text-align: center;
  transform-origin: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.flip-char.flipping {
  animation: flip-char 0.55s ease-in-out;
}

@keyframes flip-char {
  0%   { transform: rotateX(0deg); }
  49%  { transform: rotateX(-90deg); }
  51%  { transform: rotateX(-90deg); }
  100% { transform: rotateX(0deg); }
}

.cell-route { color: var(--marble-warm); }
.cell-status { color: var(--amber-light); }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 0.5rem;
  box-shadow: 0 0 6px var(--amber);
}

.board-footer {
  margin-top: 1.5vh;
}

.board-spine {
  display: grid;
  grid-template-columns: 1fr 1.5fr 2fr;
  gap: 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(184,126,74,0.25);
  align-items: center;
}

.spine-section {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.spine-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 24px);
  letter-spacing: 0.06em;
  color: var(--marble-white);
}

.amber-strip {
  background: var(--amber);
  color: var(--graphite-dark);
  padding: 0.9rem 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(184,126,74,0.30);
}

.amber-strip::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(26,18,16,0.4);
  pointer-events: none;
}

.strip-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 20px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   Section III: Underground Map
   ============================================================ */
#section-map .map-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 28vw) 1fr;
  gap: 0;
}

.map-spine {
  background: rgba(26,18,16,0.55);
  padding: 5vh 2vw 4vh 6vw;
  border-right: 1px solid rgba(184,126,74,0.20);
  display: flex;
  flex-direction: column;
  gap: 2vh;
  overflow-y: auto;
}

.spine-header {
  border-bottom: 1px solid rgba(184,126,74,0.30);
  padding-bottom: 1rem;
}

.section-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.9;
  color: var(--marble-white);
  text-transform: uppercase;
  letter-spacing: 0em;
  margin: 1vh 0 2vh;
}

.section-headline.morph-headline.in-view {
  letter-spacing: 0em;
}

.line-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1vh;
}

.line-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(90,82,72,0.25);
  transition: transform 0.3s ease-out, border-color 0.3s ease-out;
  cursor: pointer;
}

.line-item:hover {
  transform: translateX(8px);
  border-bottom-color: var(--amber);
}

.line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--graphite-mid);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--marble-white);
  flex-shrink: 0;
}

.line-badge.amber {
  background: var(--amber);
  color: var(--graphite-dark);
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(184,126,74,0.35);
}

.line-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.line-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--marble-white);
  text-transform: uppercase;
}

.line-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--stone);
}

.map-grid-panel {
  position: relative;
  padding: 5vh 4vw;
  overflow: hidden;
}

.city-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(184,126,74,0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184,126,74,0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  will-change: transform;
}

.city-grid-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
  height: 100%;
  width: 100%;
  border: 1px solid rgba(184,126,74,0.18);
}

.city-block {
  position: relative;
  border: 1px solid rgba(90,82,72,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.silhouette {
  width: 60%;
  height: 80%;
  background: var(--graphite-mid);
  opacity: 0.35;
  transition: opacity 0.4s ease-out, background 0.4s ease-out;
}

.silhouette:hover {
  opacity: 0.6;
  background: var(--amber);
}

/* Six clip-path silhouettes */
.sil-1 { clip-path: polygon(50% 0%, 60% 15%, 60% 35%, 70% 40%, 70% 70%, 55% 100%, 45% 100%, 30% 70%, 30% 40%, 40% 35%, 40% 15%); }
.sil-2 { clip-path: polygon(45% 0%, 55% 0%, 65% 18%, 65% 30%, 80% 40%, 80% 65%, 60% 70%, 60% 100%, 40% 100%, 40% 70%, 20% 65%, 20% 40%, 35% 30%, 35% 18%); }
.sil-3 { clip-path: polygon(50% 0%, 65% 12%, 65% 28%, 75% 32%, 70% 55%, 65% 80%, 60% 100%, 40% 100%, 35% 80%, 30% 55%, 25% 32%, 35% 28%, 35% 12%); }
.sil-4 { clip-path: polygon(50% 0%, 62% 10%, 70% 25%, 68% 50%, 75% 80%, 55% 100%, 45% 100%, 25% 80%, 32% 50%, 30% 25%, 38% 10%); }
.sil-5 { clip-path: polygon(40% 0%, 60% 0%, 70% 20%, 60% 40%, 65% 75%, 60% 100%, 40% 100%, 35% 75%, 40% 40%, 30% 20%); }
.sil-6 { clip-path: polygon(50% 0%, 70% 10%, 60% 30%, 80% 50%, 70% 75%, 60% 100%, 40% 100%, 30% 75%, 20% 50%, 40% 30%, 30% 10%); }

.grid-label-x {
  position: absolute;
  bottom: 1.5vh;
  left: 4vw;
  right: 4vw;
  display: flex;
  justify-content: space-around;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--stone);
}

.grid-label-y {
  position: absolute;
  top: 5vh;
  bottom: 4vh;
  left: 0.5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--stone);
}

/* ============================================================
   Section IV: Archive Corridor
   ============================================================ */
#section-archive .archive-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6vh 6vw 4vh;
}

.archive-header {
  border-bottom: 1px solid rgba(184,126,74,0.30);
  padding-bottom: 1rem;
  margin-bottom: 1.5vh;
}

#section-archive .section-headline {
  font-size: clamp(48px, 7vw, 110px);
  margin: 0 0 3vh;
}

.archive-strip {
  flex: 1;
  display: flex;
  gap: 1.5vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

.archive-strip::-webkit-scrollbar { display: none; }
.archive-strip { scrollbar-width: none; }

.archive-panel {
  flex: 0 0 calc(50vw - 5vw);
  min-width: 360px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  background: rgba(26,18,16,0.55);
  border: 1px solid rgba(184,126,74,0.18);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.panel-marble {
  position: relative;
  background-image:
    repeating-linear-gradient(
      var(--vein-angle-1),
      transparent,
      transparent 8px,
      rgba(26,18,16,0.10) 8px,
      rgba(26,18,16,0.10) 9px
    ),
    repeating-linear-gradient(
      var(--vein-angle-2),
      transparent,
      transparent 12px,
      rgba(26,18,16,0.06) 12px,
      rgba(26,18,16,0.06) 13px
    ),
    radial-gradient(ellipse 70% 50% at 40% 50%, rgba(196,187,176,0.18), transparent 75%),
    linear-gradient(135deg, var(--marble-warm), var(--graphite-mid));
  transition: background-image 1s ease-in-out;
}

.panel-text {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: space-between;
}

.panel-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.5vw, 56px);
  line-height: 0.88;
  color: var(--marble-white);
  text-transform: uppercase;
  letter-spacing: 0em;
}

.panel-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 36ch;
}

.panel-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.archive-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.5vh;
  padding-top: 1rem;
  border-top: 1px solid rgba(184,126,74,0.25);
}

.nav-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--graphite-mid);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--marble-white);
  transition: border-color 0.3s ease-out, color 0.3s ease-out, box-shadow 0.3s ease-out;
}

.nav-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 14px rgba(184,126,74,0.35);
}

.nav-dots {
  display: flex;
  gap: 0.8rem;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--graphite-mid);
  transition: background 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.nav-dot.active {
  background: var(--amber);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(184,126,74,0.45);
}

/* ============================================================
   Section V: Platform
   ============================================================ */
#section-platform .platform-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 8vw 8vh;
}

.transit-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.transit-line {
  stroke: var(--amber);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  filter: drop-shadow(0 0 6px rgba(184,126,74,0.4));
  opacity: 0.85;
}

.transit-line.drawn {
  animation: draw-line 2.4s ease-out forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.platform-lockup {
  max-width: 70vw;
  display: flex;
  flex-direction: column;
  gap: 2vh;
}

.platform-label {
  border-bottom: 1px solid rgba(184,126,74,0.40);
  padding-bottom: 0.8rem;
  margin-bottom: 0.5vh;
  width: fit-content;
}

.platform-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.85;
  color: var(--marble-white);
  text-transform: uppercase;
  letter-spacing: 0em;
}

.platform-sub {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: 0.06em;
  color: var(--marble-warm);
  max-width: 50ch;
  margin: 1.5vh 0;
}

.platform-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 1vh;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--marble-white);
  color: var(--marble-white);
  transition: background 0.3s ease-out, color 0.3s ease-out, box-shadow 0.3s ease-out, transform 0.3s ease-out;
}

.cta-primary {
  background: var(--amber);
  color: var(--graphite-dark);
  border-color: var(--amber);
  box-shadow: 0 0 18px rgba(184,126,74,0.30);
}

.cta-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 28px rgba(184,126,74,0.45);
}

.cta-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(184,126,74,0.25);
}

.cta-code {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0;
}

.platform-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3vh;
  padding-top: 1rem;
  border-top: 1px solid rgba(90,82,72,0.40);
  max-width: 60ch;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .headline-main { font-size: 18vw; }
  .arrival-meta { gap: 1.5vw; }
  .meta-value { font-size: 22px; }

  .board-columns,
  .board-row {
    grid-template-columns: 2fr 1.4fr 1fr 1fr;
    padding: 0.7rem 0.9rem;
  }

  .board-col-header,
  .board-cell {
    font-size: 13px;
  }

  .board-spine {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #section-map .map-content {
    grid-template-columns: 1fr;
  }

  .map-spine {
    padding: 4vh 6vw 2vh;
    border-right: none;
    border-bottom: 1px solid rgba(184,126,74,0.20);
  }

  .map-grid-panel {
    padding: 3vh 4vw;
    min-height: 50vh;
  }

  .archive-panel {
    flex: 0 0 80vw;
    grid-template-columns: 1fr;
  }

  .panel-marble { min-height: 140px; }

  .platform-headline { font-size: clamp(36px, 11vw, 80px); }
  .platform-lockup { max-width: 90vw; }
}
