:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.76);
  --panel: #fff;
  --panel-text: #050505;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

button {
  border: 0;
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font: inherit;
  padding: 0.6rem 1rem;
}

button:hover {
  background: #e8e8e8;
}

.site-frame {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.top-link,
.top-button,
.hero-title,
.hero-bottom {
  position: absolute;
  z-index: 20;
  max-width: calc(100% - 28px);
}

.top-link {
  top: 1rem;
  left: 1rem;
  font-size: clamp(0.875rem, 1.5vw, 1.25rem);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.top-link a {
  display: inline-flex;
  gap: 0.28rem;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
}

.top-link a:hover .brand-muted,
.top-link a:hover .brand-muted-light {
  color: #fff;
}

.brand-muted {
  color: #515152;
}

.brand-muted-light {
  color: #757576;
}

.top-button {
  top: 1rem;
  right: 1rem;
}

.hero-title {
  top: 3.5rem;
  left: 50%;
  width: min(900px, calc(100% - 2rem));
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4.8vw, 3.05rem);
  font-variant: small-caps;
  font-variant-caps: small-caps;
  text-transform: lowercase;
  font-weight: 600;
  line-height: 1.03;
  text-shadow: 0 5px 35px rgba(100, 150, 255, 0.55), 0 2px 8px rgba(0, 0, 0, 0.95);
}

.hero-bottom {
  bottom: 0;
  left: 50%;
  width: min(760px, calc(100% - 2rem));
  transform: translateX(-50%);
  padding-bottom: 2.5rem;
  text-align: center;
}

.quote {
  display: block;
  margin: 0 auto 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-line;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.globe-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #040510;
  cursor: grab;
}

.globe-scene:active {
  cursor: grabbing;
}

.globe-scene canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

#map {
  position: absolute;
  inset: 0;
}

.map-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: none;
  justify-content: center;
  padding-top: 0.75rem;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.map-loading.is-visible {
  display: flex;
}

.map-loading strong {
  display: block;
  font-size: 1.1rem;
}

.map-loading span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
}

.story-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.story-marker:hover {
  background: transparent;
}

.story-marker img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.story-marker span {
  position: absolute;
  top: 1.65rem;
  left: 0;
  width: 14rem;
  color: #fff;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  text-shadow: 1px 1px 0 #000, 0 2px 8px #000;
  -webkit-text-stroke: 1px #000;
}

.story-backdrop {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: none;
  padding: 0.5rem;
}

.story-backdrop.is-visible {
  display: block;
}

.story-panel {
  position: relative;
  z-index: 30;
  width: 100%;
  height: calc(100vh - 1rem);
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  color: var(--panel-text);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #9ca3af;
}

.tab {
  border-radius: 0;
  border-right: 1px solid #9ca3af;
  background: #fff;
  color: #000;
  font-weight: 600;
}

.tab:last-child {
  border-right: 0;
}

.tab.is-active {
  background: #e5e7eb;
}

.tab-content {
  display: none;
  height: calc(100% - 44px);
  overflow: auto;
}

.tab-content.is-active {
  display: block;
}

.video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.text-content {
  padding: clamp(2rem, 8vw, 4rem);
  color: #000;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.55;
  white-space: pre-line;
}

.text-content a {
  color: #004c9f;
  text-decoration: underline;
}

.close-story {
  position: absolute;
  top: 3.4rem;
  right: 1rem;
  z-index: 35;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.4rem;
  line-height: 1;
}

.info-page {
  min-height: 100vh;
  padding: clamp(2rem, 9vw, 8rem);
  color: #fff;
  text-align: left;
}

.info-page p {
  max-width: 980px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-line;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.center {
  text-align: center;
}

@media (max-width: 700px) {
  .top-link {
    right: 1rem;
    font-size: 0.85rem;
  }

  .top-button {
    top: auto;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
  }

  .hero-title {
    top: 4.5rem;
  }

  .hero-bottom {
    padding-bottom: 5rem;
  }

  .story-marker span {
    width: 10rem;
    font-size: 1rem;
  }
}
