/* ==========================================================================
   Teampicnictinkrs · GameStation
   Aesthetic: Dark glassmorphism · Card style: Data grid
   ========================================================================== */

:root {
  --black: #08080a;
  --ink: #111116;
  --panel: rgba(24, 24, 30, 0.62);
  --panel-strong: rgba(16, 16, 21, 0.94);
  --metal: #8d8f98;
  --metal-light: #c9cbd2;
  --text: #f3efe6;
  --muted: #bbbcc4;
  --crimson: #b3122b;
  --crimson-hover: #c4162f;
  --crimson-bright: #ff7a8a;
  --gold: #d9b25f;
  --gold-soft: #f0d48f;
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 40px;
  --s6: 64px;
  --radius: 20px;
  --radius-sm: 12px;
  --edge: linear-gradient(135deg, rgba(255, 90, 110, 0.9), rgba(217, 178, 95, 0.85) 45%, rgba(201, 203, 210, 0.3) 100%);
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--black);
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(179, 18, 43, 0.3), transparent 62%),
    radial-gradient(720px 520px at -12% 32%, rgba(217, 178, 95, 0.13), transparent 62%),
    linear-gradient(180deg, #0c0c10 0%, #08080a 100%);
  min-height: 100vh;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--s3);
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: #ffffff; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: var(--s3);
  top: var(--s2);
  z-index: 200;
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #0b0b0d;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); color: #0b0b0d; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--s4);
}

.section { padding-block: var(--s6); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: var(--s3);
  overflow-wrap: anywhere;
}

.lede { font-size: 1.15rem; color: var(--muted); max-width: 64ch; }

.section-head { margin-bottom: var(--s5); max-width: 760px; }
.section-intro { color: var(--muted); }

/* ---------- Glass surface ---------- */
.glass {
  position: relative;
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: var(--s2) var(--s4);
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--crimson);
  color: #ffffff;
  border-color: rgba(255, 122, 138, 0.5);
}
.btn-primary:hover {
  background: var(--gold);
  color: #0b0b0d;
  border-color: var(--gold-soft);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(201, 203, 210, 0.4);
}
.btn-ghost:hover {
  background: rgba(217, 178, 95, 0.18);
  color: #ffffff;
  border-color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(8, 8, 10, 0.88);
  color: var(--text);
  border-bottom: 1px solid rgba(201, 203, 210, 0.14);
}
.header-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s4);
  height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s3);
}
.header-inner > * { min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}
.brand:hover { color: #ffffff; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-size: 1.05rem; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; }

.primary-nav { justify-self: center; overflow-wrap: anywhere; }
.nav-menu {
  display: flex;
  gap: var(--s2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li { min-width: 0; }
.nav-link {
  display: block;
  padding: var(--s2) var(--s3);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  background: rgba(217, 178, 95, 0.16);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(201, 203, 210, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--gold); background: rgba(217, 178, 95, 0.12); }
.nav-toggle.is-open { border-color: var(--gold); background: rgba(217, 178, 95, 0.18); color: var(--gold-soft); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 40px;
  padding: var(--s2) var(--s3);
  border-radius: 999px;
  background: var(--crimson);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.header-cta:hover { background: var(--gold); color: #0b0b0d; }
.header-cta-icon { width: 18px; height: 18px; flex: none; }

/* ---------- Hero / morph ---------- */
.hero { padding-top: var(--s6); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--s5);
  align-items: start;
}
.hero-grid > * { min-width: 0; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.9rem); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin: var(--s4) 0 var(--s5);
}
.hero-actions > * { min-width: 0; }

.era-info { padding: var(--s4); }
.era-years {
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: var(--s2);
}
.era-title { font-size: 1.5rem; margin-bottom: var(--s3); }
.era-text { color: var(--muted); margin-bottom: var(--s4); }

.morph-stage {
  margin: 0;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.morph-svg { width: 100%; height: auto; display: block; }
.morph-label {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  fill: rgba(217, 178, 95, 0.14);
  letter-spacing: 0.04em;
}
.morph-body { stroke-width: 3; stroke-linejoin: round; }
.morph-ghost {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  opacity: 0;
}
.morph-ghost.is-fading { animation: ghostFade 1.3s ease-out forwards; }
.morph-screen { stroke: var(--gold); stroke-width: 1.5; }
.morph-dpad { fill: #1b1b21; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; }
.morph-stick { fill: #1b1b21; stroke: var(--metal-light); stroke-width: 2; }
.morph-face { fill: var(--crimson); stroke: var(--gold-soft); stroke-width: 1.5; }
.morph-stage.is-morphing .morph-body { filter: drop-shadow(0 0 10px rgba(217, 178, 95, 0.45)); }
.morph-caption { color: var(--muted); font-size: 0.9rem; }

@keyframes ghostFade {
  0% { opacity: 0.75; }
  100% { opacity: 0; }
}

.era-track {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s3);
  position: relative;
}
.era-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--metal));
  z-index: 0;
}
.era-item { min-width: 0; position: relative; z-index: 1; }
.era-button {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s3);
  border-radius: 14px;
  border: 1px solid rgba(201, 203, 210, 0.25);
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.era-button:hover { background: #1e1e25; color: var(--text); border-color: var(--gold); transform: translateY(-2px); }
.era-button-year { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--gold-soft); }
.era-button-label { font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.era-button.is-past { border-color: rgba(217, 178, 95, 0.6); }
.era-button.is-active { background: var(--crimson); color: #ffffff; border-color: var(--gold); }
.era-button.is-active:hover { background: var(--crimson-hover); color: #ffffff; }
.era-button.is-active .era-button-year,
.era-button.is-active .era-button-label { color: #ffffff; }

/* ---------- Tags ---------- */
.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.tag-list > * { min-width: 0; }
.tag {
  display: inline-block;
  padding: var(--s1) 12px;
  border-radius: 999px;
  background: rgba(217, 178, 95, 0.12);
  color: var(--gold-soft);
  border: 1px solid rgba(217, 178, 95, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Data grid cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--s4);
}
.card-grid > * { min-width: 0; }

.data-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s4);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.data-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.data-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(179, 18, 43, 0.25); }
.data-card:hover::before { opacity: 1; }

.stat-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 12px;
  padding: var(--s3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(201, 203, 210, 0.16);
  min-width: 0;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--gold-soft);
  overflow-wrap: anywhere;
}
.data-card-body { display: flex; flex-direction: column; gap: var(--s3); flex: 1; min-width: 0; }
.data-card-body > * { margin: 0; }
.data-card-title { margin: 0; }
.data-card-body p { color: var(--muted); }

.card-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) 0;
  font-weight: 700;
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 2px solid rgba(217, 178, 95, 0.4);
  overflow-wrap: anywhere;
}
.card-link:hover { color: #ffffff; border-bottom-color: var(--crimson-bright); }

.pick-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: var(--s2);
}

/* ---------- Sub-pages ---------- */
.page-hero { padding: var(--s6) 0 var(--s5); }
.breadcrumb-list {
  list-style: none;
  margin: 0 0 var(--s4);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb-list li { min-width: 0; overflow-wrap: anywhere; }
.breadcrumb-list li + li::before { content: "/"; margin-right: var(--s2); color: var(--metal); }

.banner-figure {
  margin: var(--s5) 0 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a1a20, #2a0a12);
  color: var(--text);
  border: 1px solid rgba(217, 178, 95, 0.35);
}
.banner-image {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(35%) contrast(1.05);
}

.content { padding-bottom: var(--s6); }
.content-section + .content-section { margin-top: var(--s6); }
.prose { max-width: 820px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 var(--s3); }
.prose li + li { margin-top: var(--s2); }
.check-list { padding-left: 22px; }

.panel { padding: var(--s4); }
.panel-title { margin-bottom: var(--s3); }

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}
.pros-cons > * { min-width: 0; }
.pro-list, .con-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
  color: var(--muted);
}
.pro-list + .con-list { margin-top: var(--s4); }
.pro-list li, .con-list li { position: relative; padding-left: 28px; }
.pro-list li::before, .con-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}
.pro-list li::before { content: "+"; color: var(--gold-soft); }
.con-list li::before { content: "−"; color: var(--crimson-bright); }

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  max-width: 100%;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table th,
.data-table td {
  padding: var(--s3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(201, 203, 210, 0.16);
  overflow-wrap: anywhere;
}
.data-table thead th {
  background: rgba(217, 178, 95, 0.1);
  color: var(--gold-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.data-table tbody th { color: var(--text); font-weight: 700; }
.data-table td { color: var(--muted); }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }

.continue-panel {
  padding: var(--s5) var(--s4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
}
.continue-panel h2, .continue-panel p { margin: 0; }
.continue-panel p { color: var(--muted); }

/* ---------- Legal ---------- */
.legal { padding: var(--s5) var(--s4); max-width: 900px; }
.legal-toc {
  padding: var(--s4);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(201, 203, 210, 0.16);
  margin-bottom: var(--s5);
}
.legal-toc-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-soft); }
.legal-section + .legal-section { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid rgba(201, 203, 210, 0.14); }
.legal-section h2 { font-size: 1.4rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: var(--s4); }
.field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.field-label { font-weight: 700; }
.field-input {
  width: 100%;
  padding: var(--s3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 203, 210, 0.4);
  background: rgba(8, 8, 10, 0.75);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease;
}
.field-input:hover { border-color: var(--metal-light); }
.field-input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
select.field-input option { background: #111116; color: #f3efe6; }
textarea.field-input { resize: vertical; min-height: 140px; }
.field-input.is-invalid { border-color: var(--crimson-bright); }
.field-error { margin: 0; color: var(--crimson-bright); font-size: 0.9rem; font-weight: 600; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--gold);
}
.check input.is-invalid { outline: 2px solid var(--crimson-bright); outline-offset: 2px; }

.form-status {
  margin: 0;
  padding: var(--s3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(201, 203, 210, 0.3);
}
.form-status.is-success { background: rgba(217, 178, 95, 0.14); color: var(--gold-soft); border-color: var(--gold); }
.form-status.is-error { background: rgba(179, 18, 43, 0.18); color: #ffd4da; border-color: var(--crimson-bright); }

.contact-address { font-style: normal; color: var(--muted); margin-bottom: var(--s4); }
.contact-address strong { color: var(--text); }
.contact-list { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s2); color: var(--muted); overflow-wrap: anywhere; }
.contact-label { display: inline-block; min-width: 0; font-weight: 700; color: var(--text); margin-right: var(--s2); }

.map-block { display: flex; flex-direction: column; gap: var(--s3); }
.map-canvas {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid rgba(217, 178, 95, 0.35);
  background-color: #141419;
  color: var(--text);
  background-image:
    linear-gradient(90deg, transparent 38%, rgba(201, 203, 210, 0.3) 38%, rgba(201, 203, 210, 0.3) 42%, transparent 42%),
    linear-gradient(0deg, transparent 56%, rgba(201, 203, 210, 0.3) 56%, rgba(201, 203, 210, 0.3) 60%, transparent 60%),
    linear-gradient(35deg, transparent 47%, rgba(217, 178, 95, 0.32) 47%, rgba(217, 178, 95, 0.32) 50%, transparent 50%),
    linear-gradient(160deg, transparent 72%, rgba(90, 120, 170, 0.35) 72%, rgba(90, 120, 170, 0.35) 78%, transparent 78%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px);
}
.map-road-label {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--metal-light);
  background: rgba(8, 8, 10, 0.75);
  padding: 2px 8px;
  border-radius: 6px;
}
.map-road-label-mill { left: 16px; top: 51%; }
.map-road-label-foundry { left: 44%; top: 16px; }
.map-pin {
  position: absolute;
  left: 40%;
  top: 58%;
  width: 40px;
  height: 52px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}
.map-meta p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--s6);
  padding-top: var(--s6);
  background: rgba(6, 6, 8, 0.92);
  color: var(--text);
  border-top: 1px solid rgba(217, 178, 95, 0.25);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.footer-inner > * { min-width: 0; }
.footer-blurb { color: var(--muted); margin-top: var(--s3); font-size: 0.95rem; }
.footer-heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-soft); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer-list a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.footer-link-button:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-address { font-style: normal; color: var(--muted); overflow-wrap: anywhere; }
.footer-base {
  margin-top: var(--s5);
  padding-block: var(--s4);
  border-top: 1px solid rgba(201, 203, 210, 0.12);
  font-size: 0.85rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.footer-base p { margin-bottom: var(--s2); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: var(--s3);
  right: var(--s3);
  bottom: var(--s3);
  z-index: 100;
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--s4);
  border-radius: var(--radius);
  background: var(--panel-strong);
  color: var(--text);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.cookie-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.cookie-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s4);
  align-items: center;
}
.cookie-inner > * { min-width: 0; }
.cookie-title { font-size: 1.15rem; margin-bottom: var(--s2); }
.cookie-copy p { color: var(--muted); font-size: 0.95rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cookie-actions > * { min-width: 0; }
.cookie-prefs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid rgba(201, 203, 210, 0.16);
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .era-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .era-track::before { display: none; }
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cookie-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .site-header {
    position: sticky;
    top: 0;
    background: rgba(8, 8, 10, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .header-inner {
    position: static;
    height: 52px;
    padding: 0 var(--s3);
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: var(--s2);
  }
  .brand-mark { width: 28px; height: 28px; }
  .primary-nav { order: 3; justify-self: end; position: static; }
  .header-cta { order: 2; min-height: 36px; padding: 6px 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    gap: var(--s2);
    margin: 0;
    padding: var(--s3);
    max-height: calc(100vh - 52px);
    overflow-y: auto;
    background-color: #0b0b0e;
    background-image:
      radial-gradient(420px 200px at 100% 0%, rgba(179, 18, 43, 0.28), transparent 70%),
      linear-gradient(180deg, rgba(20, 20, 26, 0.98), rgba(10, 10, 13, 0.98));
    color: var(--text);
    border-top: 1px solid rgba(201, 203, 210, 0.12);
    border-bottom: 1px solid rgba(217, 178, 95, 0.4);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
  }
  .nav-menu.is-open {
    display: flex;
    animation: navDrop 0.2s ease-out;
  }
  .nav-menu > li { width: 100%; }
  .nav-link {
    padding: 14px var(--s3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 203, 210, 0.14);
    font-size: 1rem;
  }
  .nav-link:hover,
  .nav-link[aria-current="page"] {
    background: rgba(217, 178, 95, 0.16);
    border-color: rgba(217, 178, 95, 0.5);
  }
  .pros-cons { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: var(--s5); }
  .content-section + .content-section { margin-top: var(--s5); }
  .banner-image { aspect-ratio: 16 / 9; }
}

@media (max-width: 599px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .era-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 399px) {
  .container { padding-inline: var(--s3); }
  .brand-name { font-size: 0.95rem; }
  .header-cta { padding: 6px 10px; }
  .header-cta-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .data-card, .panel, .era-info, .morph-stage, .legal { padding: var(--s3); }
  .data-card { gap: var(--s4); }
  .era-button { padding: 12px; }
  .hero-actions .btn { width: 100%; }
  .cookie-banner { left: var(--s2); right: var(--s2); bottom: var(--s2); padding: var(--s3); }
  .cookie-actions .btn { width: 100%; }
  h1 { font-size: 1.9rem; }
}

@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;
  }
}