:root {
  --bg: #020202;
  --panel: #050505;
  --line: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.5);
  --blue: #ffffff;
  --blue-glow: rgba(10, 43, 255, 0.26);
  --secondary: #ffffff;
  --secondary-glow: rgba(0, 242, 255, 0.25);
  --success: #00c853;
  --nav-h: 48px;
  --border-diegetic: 1px solid rgba(255, 255, 255, 0.12);
  --bg-diegetic: #050505;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  padding-top: var(--nav-h);
  font-size: 18px;
  overflow-x: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.10);
  border-radius: 3px;
}

/* ── Star Canvas ── */
#starField {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Fixed Nav ── */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: var(--bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  z-index: 200;
}

.nav-logo img {
  height: 26px;
  display: block;
  opacity: 0.85;
  transition: opacity .3s;
}

.nav-logo:hover img {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  padding: 15px 0;
  border-bottom: 2px solid transparent;
  transition: color .3s, border-color .3s;
  user-select: none;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  border-bottom-color: var(--blue);
}

/* ── Sections ── */
.section-full {
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
  scroll-margin-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(.23, 1, .32, 1), transform 1s cubic-bezier(.23, 1, .32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .15s;
}

.reveal-delay-2 {
  transition-delay: .3s;
}

/* ── HOMEPAGE (SPLIT VIEW) ── */
#homepage {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 75% 50%, rgba(10, 44, 255, 0.03) 0%, transparent 60%);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 10;
  text-align: left;
  max-width: 36vw;
  padding: 0;
  margin-left: 6vw;
  margin-top: 15vh;
  will-change: transform, opacity;
  pointer-events: none;
}

.hero-inner>* {
  pointer-events: auto;
}

/* Orbit animation around logo */
.hero-orbit-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 0 56px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.hero-logo {
  width: 158px;
  position: relative;
  z-index: 2;
  opacity: .9;
  filter: drop-shadow(0 0 30px rgba(10, 44, 255, 0.15));
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transform-style: preserve-3d;
}

.hero-orbit-1 {
  width: 160px;
  height: 160px;
  animation: orbit1 18s linear infinite;
}

.hero-orbit-1::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
  top: -2px;
  left: 50%;
  margin-left: -2px;
  box-shadow: 0 0 10px var(--blue-glow), 0 0 3px rgba(255, 255, 255, 0.6);
}

.hero-orbit-2 {
  width: 200px;
  height: 200px;
  border-color: rgba(255, 255, 255, 0.04);
  animation: orbit2 26s linear infinite;
}

.hero-orbit-2::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  top: -1.5px;
  left: 50%;
  margin-left: -1.5px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

@keyframes orbit1 {
  from {
    transform: rotateX(72deg) rotateZ(0deg);
  }

  to {
    transform: rotateX(72deg) rotateZ(360deg);
  }
}

@keyframes orbit2 {
  from {
    transform: rotateX(68deg) rotateY(25deg) rotateZ(0deg);
  }

  to {
    transform: rotateX(68deg) rotateY(25deg) rotateZ(-360deg);
  }
}

/* Hero text */
.hero-text {
  font-weight: 100;
  font-size: 24px;
  line-height: 1.7;
  letter-spacing: .4px;
  margin-left: 1vw;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.42) 30%,
      rgb(255, 255, 255) 50%,
      rgba(255, 255, 255, 0.42) 70%, rgba(255, 255, 255, 0.42) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 10s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 300% center;
  }

  50% {
    background-position: -100% center;
  }
}

/* ── NETWORK (Merged into Homepage) ── */
.network-container {
  position: absolute;
  top: 3vh;
  right: -5vw;
  width: 85vw;
  height: 130vh;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.network-heading {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 50;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  pointer-events: none;
}

#globeViz {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#globeViz:active {
  cursor: grabbing;
}

/* HUD Elements for the Globe */
.globe-hud {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
  text-align: center;
}

.globe-hud-label {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--secondary);
  text-transform: uppercase;
  opacity: 0.8;
}

/* ── DIEGETIC POPUP ── */
.city-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px) contrast(1.1);
  -webkit-backdrop-filter: blur(12px) contrast(1.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.city-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.city-popup {
  background: var(--bg-diegetic);
  border: var(--border-diegetic);
  width: 90%;
  max-width: 580px;
  position: relative;
  overflow: hidden;
  transform: scale(0.9) translateY(40px);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .5s;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
}


.city-popup::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.city-popup::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

.city-popup-overlay.active .city-popup {
  transform: scale(1) translateY(0);
}



/* ── NETWORK POPUP ── */
.map-city-hit {
  cursor: pointer;
}

.map-city-hit:hover .map-pin-dot {
  fill: var(--blue);
}

.city-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.city-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.city-popup {
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  width: 90%;
  max-width: 1152px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px) scale(0.96);
  transition: transform .35s cubic-bezier(.23, 1, .32, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(10, 44, 255, 0.04);
}

.city-popup-overlay.active .city-popup {
  transform: translateY(0) scale(1);
}

.city-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: var(--border-diegetic);
}

.city-popup-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--secondary);
}

.city-popup-feed {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  border-bottom: var(--border-diegetic);
}

.city-popup-feed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  transition: opacity 0.5s;
}

.city-popup-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  z-index: 5;
}

.city-popup-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 4;
}

.city-popup-info {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.02));
}

.city-popup-clock {
  font-family: 'Roboto', sans-serif;
  font-size: 42px;
  font-weight: 100;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -1px;
}

.city-popup-tz {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.city-popup-close {
  position: absolute;
  top: -1px;
  right: 20px;
  padding: 10px 15px;
  background: var(--bg-diegetic);
  border: var(--border-diegetic);
  border-top: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 2px;
  transition: all .2s;
}

.city-popup-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 800px) {
  .city-popup {
    max-width: 95%;
  }

  .city-popup-clock {
    font-size: 32px;
  }

  .network-container {
    max-width: 100%;
  }
}

/* ── CONTACT ── */
#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.contact-parallax-wrap {
  will-change: transform, opacity;
}

.contact-inner {
  text-align: center;
}

.contact-heading {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-email {
  color: var(--text);
  text-decoration: none;
  font-size: 26px;
  font-weight: 100;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 4px;
  transition: border-color .3s, color .3s;
}

.contact-email:hover {
  border-bottom-color: var(--text);
}

/* ── Content Sections (shared) ── */
.content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 140px;
  background: transparent;
}

.content-section:nth-child(odd) {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 8%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.3) 92%, transparent 100%);
}

.content-heading {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 56px;
  text-align: center;
}

.content-body {
  max-width: 860px;
  width: 100%;
}

.content-subtitle {
  font-size: 24px;
  font-weight: 100;
  line-height: 1.6;
  color: var(--text);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Crisis ── */
.crisis-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.crisis-block {
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.crisis-block-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}

.crisis-block p {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Proposition ── */
.prop-body {
  max-width: 960px;
  width: 100%;
}

.prop-sub-heading {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.prop-sub-heading:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.hw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  /* Increased gap for more 'air' */
}

.hw-item {
  padding: 0;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center content horizontally */
  text-align: center;
}

.models-persistence-wrap {
  position: relative;
  width: 100%;
}

.models-sticky-overlay {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  /* Ensure it doesn't create extra scroll space */
  margin-bottom: -100vh;
}

.why-bg-container {
  position: absolute;
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.why-bg-container.left {
  left: 4vw;
}

.why-bg-container.right {
  right: 4vw;
}

.why-bg-container.top {
  top: 10%;
}

.why-bg-container.bottom {
  bottom: 10%;
}

.hw-icon-container {
  width: 100%;
  height: 220px;
  margin-bottom: 24px;
  position: relative;
}

.hw-icon-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.hw-name {
  font-size: 18px;
  font-weight: 100;
  letter-spacing: 4px;
  color: var(--text);
  margin-bottom: 14px;
}

.hw-item p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.platform-features {
  margin-top: 20px;
}

.platform-feature {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.platform-feature:last-child {
  border-bottom: none;
}

.platform-feature-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
  min-width: 160px;
}

.platform-feature p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

.formula {
  text-align: center;
  padding: 24px 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.formula span {
  font-size: 32px;
  font-weight: 100;
  letter-spacing: 6px;
  color: var(--text);
  font-style: italic;
}

.formula p {
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 1px;
}

/* ── Software Layout ── */
.software-layout {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
}

.software-info {
  flex: 1;
}

.software-visual {
  flex: 1.2;
  position: relative;
}

.os-window {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.os-header {
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
}

.os-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
}

.os-dots-container {
  display: flex;
  gap: 7px;
  align-items: center;
  cursor: pointer;
  padding: 4px;
}

.os-dots-container:hover .os-dot {
  background: rgba(255, 255, 255, 0.3);
}

.os-dots-container:hover .os-dot-close {
  background: rgba(255, 255, 255, 0.8);
}

.os-dot-close {
  position: relative;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-dot-close::before,
.os-dot-close::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.os-dots-container:hover .os-dot-close::before {
  width: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0;
  transform: rotate(45deg);
}

.os-dots-container:hover .os-dot-close::after {
  width: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0;
  transform: rotate(-45deg);
}

.os-video {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
}

/* ── OS Modal Navigation ── */
.os-modal-content {
  display: flex;
  flex: 1;
  height: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
}

.os-sidebar {
  width: 180px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.os-sidebar-item {
  padding: 12px 24px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.os-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.os-sidebar-item.active {
  background: rgba(10, 44, 255, 0.12);
  color: var(--secondary);
}

.os-sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary);
}

.os-folder-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.5;
}

.os-sidebar-item.active .os-folder-icon {
  opacity: 1;
}

.os-main-view {
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: linear-gradient(135deg, rgba(8, 14, 32, 0) 0%, rgba(10, 44, 255, 0.03) 100%);
}

.tab-content {
  display: none;
  height: 100%;
  animation: tabFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tabFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.active {
  display: block;
}

/* Live Feed Adjustment */
#tab-livestream.active {
  display: flex;
  flex-direction: column;
}

.os-feed-container {
  position: relative;
  flex: 1;
  min-height: 250px;
  background: #000;
  overflow: hidden;
}

.os-feed-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.os-feed-info {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
}

/* Calendar Styling */
.calendar-view {
  padding: 32px;
}

.calendar-month {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  margin-bottom: 24px;
  color: var(--text);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-day-label {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  font-size: 9px;
  text-align: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cal-day {
  background: #000;
  min-height: 80px;
  padding: 6px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  transition: background 0.2s;
}

.cal-day.empty {
  background: rgba(0, 0, 0, 0.2);
}

.cal-day.other-month {
  background: rgba(0, 0, 0, 0.4);
  opacity: 0.3;
  cursor: default;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.cal-nav-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
  padding: 4px 12px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s;
}

.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary);
}

.calendar-month {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--text);
  text-transform: uppercase;
  margin: 0;
  border: none;
  padding: 0;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 32px;
}

.artist-item-mock {
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.artist-item-mock:hover {
  color: var(--secondary);
}

.cal-day.event {
  color: var(--secondary);
  cursor: pointer;
  background: rgba(10, 44, 255, 0.05);
}

.cal-day.event:hover {
  background: rgba(0, 242, 255, 0.15);
  color: #fff;
}

.cal-dot {
  width: 4px;
  height: 4px;
  background: var(--secondary);
  border-radius: 50%;
  margin-top: 4px;
  box-shadow: 0 0 8px var(--secondary);
}

.cal-event-badge {
  font-size: 8px;
  color: var(--secondary);
  background: rgba(10, 44, 255, 0.15);
  padding: 2px 4px;
  border-radius: 2px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.cal-event-name {
  font-size: 10px;
  color: #fff;
  text-align: center;
  margin-top: 4px;
  line-height: 1.2;
  width: 100%;
}

/* Curations Styling */
.curations-view {
  padding: 32px;
}

.curation-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.curation-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s;
}

.curation-card:hover {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.04);
}

.curation-meta {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.curation-art-title {
  font-size: 20px;
  font-weight: 100;
  color: var(--text);
  margin-bottom: 4px;
}

.curation-artist-name {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.curation-detail-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.curation-detail-title {
  font-size: 28px;
  font-weight: 100;
  color: var(--text);
  margin: 8px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.curation-detail-status {
  font-size: 10px;
  color: var(--secondary);
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.curation-detail-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}

.curation-cover img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.curation-info h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
  margin-top: 0;
}

.curation-info p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}

.artist-list-simple {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artist-list-simple li {
  font-size: 14px;
  color: var(--text);
}

.artist-link {
  color: var(--secondary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.artist-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.artist-role-simple {
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
  font-style: italic;
}

/* Header additions */
.os-header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Removed .os-close-btn */

/* ── Partnerships ── */
.partner-intro {
  font-size: 20px;
  font-weight: 100;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  margin-bottom: 56px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.who-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 24px;
}

.partner-item {
  padding: 0;
  border: none;
  text-align: center;
}

.partner-item:hover {
  border-left-color: transparent;
}

.partner-item:last-child {
  border-bottom: none;
}

.partner-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.partner-item p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.partner-footer {
  margin-top: 56px;
  text-align: center;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Roadmap ── */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.timeline-year {
  font-size: 20px;
  font-weight: 100;
  letter-spacing: 4px;
  color: var(--text);
  margin-bottom: 28px;
  margin-top: 48px;
  position: relative;
}

.timeline-year:first-child {
  margin-top: 0;
}

.timeline-year::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--blue-glow);
}

.timeline-phase {
  padding: 12px 0 20px;
  position: relative;
}

.timeline-phase::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.timeline-phase-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.timeline-phase p {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

/* ── About ── */
.about-body {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.about-body p {
  font-size: 22px;
  font-weight: 100;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  #homepage {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 60px;
    background: radial-gradient(circle at 50% 60%, rgba(10, 44, 255, 0.04) 0%, transparent 70%);
  }

  .hero-inner {
    max-width: 90%;
    margin: 4vh auto 0;
    text-align: center;
    z-index: 20;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-orbit-wrap {
    margin: 0 auto 24px;
  }

  .network-container {
    position: relative;
    width: 100vw;
    height: 40vh;
    /* Reduced height to pull content up */
    margin: -10vh auto 0;
    /* Added negative margin to push it UP */
    right: 0;
    left: 0;
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-text {
    font-size: 18px;
    line-height: 1.5;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  #mainNav {
    padding: 0 16px;
  }

  .crisis-blocks {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hw-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 440px;
    margin: 0 auto;
  }

  .software-layout {
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }

  .software-visual {
    width: 100%;
    max-width: 100%;
  }

  .content-section {
    padding: 80px 40px;
  }

  .content-subtitle {
    font-size: 20px;
  }

  .platform-feature {
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }

  .platform-feature-label {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 10px;
  }

  .nav-link {
    font-size: 8px;
    letter-spacing: 0.5px;
  }

  .hero-inner {
    padding: 0 16px;
    margin: 2vh auto 0;
  }

  .hero-orbit-wrap {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
  }

  .hero-orbit-1 {
    width: 100px;
    height: 100px;
  }

  .hero-orbit-2 {
    width: 120px;
    height: 120px;
  }

  .hero-logo {
    width: 80px;
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.6;
  }

  .content-section {
    padding: 64px 24px;
  }

  .content-heading {
    font-size: 18px;
    margin-bottom: 32px;
    letter-spacing: 4px;
  }

  .why-bg-container {
    display: none;
  }

  .content-subtitle {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 32px;
  }

  .hw-name {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .hw-item p,
  .crisis-block p,
  .partner-item p,
  .timeline-phase p {
    font-size: 15px;
    line-height: 1.6;
  }

  .partner-label,
  .crisis-block-label,
  .timeline-phase-label {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .hw-icon-container {
    height: 280px;
    margin-bottom: 24px;
  }

  .partner-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline-year {
    font-size: 18px;
    margin-top: 32px;
  }

  .about-body p {
    font-size: 16px;
    line-height: 1.6;
  }

  /* OS Modal Mobile Adjustments */
  .city-popup {
    width: 95% !important;
    height: 85vh !important;
    aspect-ratio: auto !important;
    max-width: none !important;
  }

  .os-modal-content {
    flex-direction: column;
    height: calc(85vh - 36px);
  }

  .os-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-shrink: 0;
  }

  .os-sidebar-item {
    padding: 16px 12px;
    font-size: 10px;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    flex-direction: column;
    gap: 6px;
  }

  .os-folder-icon {
    width: 16px;
    height: 16px;
    margin-right: 0 !important;
  }

  .os-sidebar-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
  }

  .os-sidebar-item.active::before {
    display: none;
  }

  .os-feed-container {
    min-height: 200px;
  }

  .city-popup-clock {
    font-size: 28px;
  }

  .calendar-view,
  .curations-view,
  .artist-grid {
    padding: 20px;
  }

  .curation-detail-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .artist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}