/* Bot Research - UK AI Research Lab */

:root {
  /* Refined neutral palette */
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-subtle: #f5f5f5;
  --bg-dark: #0a0a0a;
  --bg-dark-alt: #111111;

  --text: #111111;
  --text-secondary: #444444;
  --text-tertiary: #717171;
  --text-muted: #999999;
  --text-light: #ffffff;
  --text-light-secondary: rgba(255,255,255,0.7);
  --text-light-muted: rgba(255,255,255,0.5);

  --border: #e5e5e5;
  --border-subtle: #f0f0f0;
  --border-dark: rgba(255,255,255,0.1);

  --accent: #5B9A47;
  --accent-glow: rgba(91, 154, 71, 0.4);
  --accent-subtle: rgba(91, 154, 71, 0.08);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --max-width: 680px;
  --max-width-wide: 1100px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.5rem;
  margin-top: var(--space-9);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: 1.125rem;
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
}

p {
  margin-bottom: var(--space-5);
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}

a:hover {
  text-decoration-color: var(--text);
}

strong {
  font-weight: 600;
}

small {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

blockquote {
  margin: var(--space-7) 0;
  padding-left: var(--space-6);
  border-left: 2px solid var(--border);
  font-style: italic;
  color: var(--text-secondary);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav__link {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  margin: 4px 0;
}

/* Hero / Page headers */
.hero {
  padding: calc(64px + var(--space-10)) 0 var(--space-10);
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.hero__title {
  max-width: 600px;
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-tertiary);
  max-width: 520px;
  line-height: 1.6;
}

/* Sections */
.section {
  padding: var(--space-10) 0;
}

.section--border {
  border-top: 1px solid var(--border);
}

.section__label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* Article / Long-form content */
.article {
  padding: calc(64px + var(--space-9)) 0 var(--space-10);
}

.article__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.article__title {
  margin-bottom: var(--space-4);
}

.article__lede {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

.article__content {
  margin-top: var(--space-8);
}

.article__content p {
  margin-bottom: var(--space-5);
}

.article__content ul,
.article__content ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.article__content li {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

/* Grid layouts */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Cards - minimal style */
.card {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
}

.card:first-child {
  border-top: none;
  padding-top: 0;
}

.card__title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-3);
}

/* Research items / Publications */
.research-item {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.research-item:last-child {
  border-bottom: none;
}

.research-item__date {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.research-item__title {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.research-item__title a {
  color: var(--text);
  text-decoration: none;
}

.research-item__title a:hover {
  text-decoration: underline;
}

.research-item__excerpt {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* Team / People */
.person {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-5);
  align-items: start;
}

.person__image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.person__name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.person__role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.person__bio {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Links / Actions */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.link--arrow::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}

.link--arrow:hover::after {
  transform: translateX(3px);
}

/* Feature / Stat blocks */
.stat {
  text-align: left;
}

.stat__value {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0;
  margin-top: var(--space-10);
}

.footer__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.footer__brand {
  max-width: 280px;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: var(--space-4);
}

.footer__nav {
  display: flex;
  gap: var(--space-8);
}

.footer__column h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__copyright a {
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__social a:hover {
  color: var(--text);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

/* Contact */
.contact__email {
  font-size: 1.25rem;
  color: var(--text);
}

.contact__social {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.contact__social a {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-decoration: none;
}

.contact__social a:hover {
  color: var(--text);
}

/* Highlight box */
.highlight {
  background: var(--bg-alt);
  padding: var(--space-6);
  margin: var(--space-7) 0;
}

.highlight p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Legal pages */
.legal {
  padding: calc(64px + var(--space-9)) 0 var(--space-10);
}

.legal h1 {
  margin-bottom: var(--space-4);
}

.legal__updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.875rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===========================================
   UK AI LAB COMPONENTS
   =========================================== */

/* Logo with mark */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo__mark {
  font-size: 0.625rem;
  color: var(--accent);
}

/* Header status indicator */
.header__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero with badge */
.hero--lab {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Hero metrics */
.hero__metrics {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.metric__value {
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text);
  letter-spacing: -0.02em;
}

.metric__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Dark section */
.section--dark {
  background: var(--bg-dark);
  padding: var(--space-9) 0;
  margin: 0 calc(var(--space-6) * -1);
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

@media (min-width: 680px) {
  .section--dark {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Capabilities grid */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.capability {
  padding: var(--space-6);
  background: var(--bg-dark-alt);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
}

.capability__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-5);
  color: var(--accent);
}

.capability__icon svg {
  width: 100%;
  height: 100%;
}

.capability__title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: var(--space-3);
}

.capability__text {
  font-size: 0.875rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Enhanced cards */
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.card__tag {
  font-size: 0.6875rem;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  padding: var(--space-1) var(--space-3);
  background: var(--accent-subtle);
  border-radius: 4px;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.card__status {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Affiliations */
.affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.affiliation {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.affiliation__name {
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--text);
}

.affiliation__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Footer location */
.footer__location {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: var(--space-2);
  letter-spacing: 0.02em;
}

/* Infrastructure timeline */
.timeline {
  position: relative;
  padding-left: var(--space-6);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-7);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(var(--space-6) * -1);
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translateX(-4px);
}

.timeline__date {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.timeline__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.timeline__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===========================================
   GLOBE VISUALIZATION
   =========================================== */

.section--globe {
  padding: var(--space-10) 0;
  overflow: hidden;
}

.globe-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.globe-title {
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.globe-text {
  font-size: 1rem;
  color: var(--text-light-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.globe-stats {
  display: flex;
  gap: var(--space-8);
}

.globe-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.globe-stat__value {
  font-size: 1.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: -0.02em;
}

.globe-stat__label {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.globe-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.globe-container {
  position: relative;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
}

.globe-sphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.4) 0%, transparent 50%),
    linear-gradient(135deg, #0d1117 0%, #010409 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 0 80px rgba(16, 185, 129, 0.08),
    0 0 60px rgba(16, 185, 129, 0.15);
  overflow: hidden;
}

/* World map grid lines */
.globe-map {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}

.globe-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* Latitude lines */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 18%,
      rgba(16, 185, 129, 0.08) 18%,
      rgba(16, 185, 129, 0.08) 18.5%,
      transparent 18.5%
    ),
    /* Longitude lines - curved effect approximation */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 9%,
      rgba(16, 185, 129, 0.06) 9%,
      rgba(16, 185, 129, 0.06) 9.5%,
      transparent 9.5%
    );
  border-radius: 50%;
}

/* Simplified continent shapes using CSS gradients */
.globe-map::after {
  content: '';
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  opacity: 0.35;
  background:
    /* Europe/UK area */
    radial-gradient(ellipse 12% 8% at 52% 32%, rgba(16, 185, 129, 0.9) 0%, transparent 100%),
    radial-gradient(ellipse 3% 4% at 48% 30%, rgba(16, 185, 129, 1) 0%, transparent 100%),
    /* Scandinavia */
    radial-gradient(ellipse 4% 8% at 54% 25%, rgba(16, 185, 129, 0.7) 0%, transparent 100%),
    /* Africa */
    radial-gradient(ellipse 15% 22% at 52% 55%, rgba(16, 185, 129, 0.8) 0%, transparent 100%),
    /* Middle East */
    radial-gradient(ellipse 8% 6% at 60% 42%, rgba(16, 185, 129, 0.6) 0%, transparent 100%),
    /* India */
    radial-gradient(ellipse 6% 8% at 68% 48%, rgba(16, 185, 129, 0.6) 0%, transparent 100%),
    /* Russia/Asia */
    radial-gradient(ellipse 25% 10% at 70% 28%, rgba(16, 185, 129, 0.5) 0%, transparent 100%),
    /* Americas (partial, on edge) */
    radial-gradient(ellipse 8% 15% at 22% 40%, rgba(16, 185, 129, 0.4) 0%, transparent 100%),
    radial-gradient(ellipse 6% 20% at 18% 58%, rgba(16, 185, 129, 0.4) 0%, transparent 100%),
    /* Australia */
    radial-gradient(ellipse 8% 6% at 82% 68%, rgba(16, 185, 129, 0.5) 0%, transparent 100%),
    /* Southeast Asia */
    radial-gradient(ellipse 6% 8% at 78% 52%, rgba(16, 185, 129, 0.5) 0%, transparent 100%),
    /* Japan */
    radial-gradient(ellipse 2% 5% at 85% 38%, rgba(16, 185, 129, 0.6) 0%, transparent 100%),
    /* Greenland */
    radial-gradient(ellipse 6% 5% at 38% 18%, rgba(16, 185, 129, 0.5) 0%, transparent 100%),
    /* Iceland */
    radial-gradient(ellipse 2% 2% at 42% 24%, rgba(16, 185, 129, 0.7) 0%, transparent 100%);
}

.globe-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

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

/* Atmosphere effect */
.globe-sphere::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 50%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}

/* Subtle slow rotation for atmosphere effect */
@keyframes globe-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Connection lines between dots (optional enhancement) */
.activity-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  transform-origin: left center;
  animation: connection-fade 1s ease-out forwards;
  pointer-events: none;
}

@keyframes connection-fade {
  0% { opacity: 0.5; }
  100% { opacity: 0; }
}

.activity-dots {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: visible;
  z-index: 10;
}

.activity-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-glow);
  animation: dot-pulse 1.5s ease-out forwards;
  pointer-events: none;
}

.activity-dot--large {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent-glow);
}

/* Ripple effect for high-activity areas */
.activity-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: ripple-expand 2s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

@keyframes dot-pulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  15% {
    transform: scale(1.8);
    opacity: 1;
  }
  30% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.3);
    opacity: 0;
  }
}

.globe-feed {
  width: 100%;
  max-width: 320px;
  height: 100px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-light-muted);
}

.feed-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  animation: feed-slide 0.3s ease-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-item__dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.feed-item__location {
  color: var(--text-light-secondary);
}

.feed-item__type {
  color: var(--text-light-muted);
}

@keyframes feed-slide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .globe-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .globe-stats {
    justify-content: center;
  }

  .globe-container {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 680px) {
  .globe-container {
    width: 240px;
    height: 240px;
  }

  .globe-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
}

/* Infrastructure specs */
.specs {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.spec {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.spec:last-child {
  border-bottom: none;
}

.spec__label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.spec__value {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities {
    grid-template-columns: 1fr;
  }

  .footer__nav {
    gap: var(--space-6);
  }

  .hero__metrics {
    flex-wrap: wrap;
    gap: var(--space-5);
  }
}

@media (max-width: 680px) {
  html {
    font-size: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 var(--space-5);
  }

  .header__inner {
    padding: 0 var(--space-5);
  }

  .header__status {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-5);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .nav--open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: calc(64px + var(--space-8));
    padding-bottom: var(--space-8);
  }

  .hero__title br {
    display: none;
  }

  .hero__metrics {
    flex-direction: column;
    gap: var(--space-4);
  }

  .section {
    padding: var(--space-8) 0;
  }

  .section--dark {
    padding: var(--space-7) var(--space-5);
  }

  .capabilities {
    gap: var(--space-4);
  }

  .capability {
    padding: var(--space-5);
  }

  .card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .person {
    grid-template-columns: 1fr;
  }

  .person__image {
    width: 64px;
    height: 64px;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__nav {
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}
