:root {
  --bg: #d8d8d8;
  --bg-grid: rgba(0, 0, 0, 0.12);
  --grid-size: 84px;
  --text-primary: #151515;
  --text-muted: #3b3b3b;
  --text-soft: #2b2b2b;
  --accent: #090909;
  --accent-soft: rgba(0, 0, 0, 0.72);
  --card-bg: rgba(255, 255, 255, 0.86);
  --card-border: rgba(0, 0, 0, 0.14);
  --card-bg-dark: linear-gradient(160deg, rgba(28, 28, 30, 0.96), rgba(16, 16, 17, 0.9));
  --card-border-dark: rgba(255, 255, 255, 0.06);
  --card-shadow-dark: 0 34px 72px rgba(8, 8, 10, 0.46);
  --text-light: #f4f3f0;
  --text-soft-on-dark: rgba(227, 226, 222, 0.72);
  --divider-dark: rgba(230, 235, 245, 0.12);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --max-width: 1180px;
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, transparent calc(var(--grid-size) - 1px), var(--bg-grid) calc(var(--grid-size) - 1px)),
    linear-gradient(to bottom, transparent calc(var(--grid-size) - 1px), var(--bg-grid) calc(var(--grid-size) - 1px));
  background-size: var(--grid-size) var(--grid-size);
  background-position: top left;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.08"/%3E%3C/svg%3E');
  mix-blend-mode: multiply;
  opacity: 0.35;
  z-index: 0;
}

.osint-dashboard::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, transparent calc(var(--grid-size) - 1px), var(--bg-grid) calc(var(--grid-size) - 1px)),
    linear-gradient(to bottom, transparent calc(var(--grid-size) - 1px), var(--bg-grid) calc(var(--grid-size) - 1px));
  background-size: var(--grid-size) var(--grid-size);
  background-position: top left;
  z-index: 0;
}

.osint-dashboard::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.08"/%3E%3C/svg%3E');
  mix-blend-mode: multiply;
  opacity: 0.35;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

.container {
  width: min(calc(100% - var(--grid-size)), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: var(--grid-size);
  display: flex;
  align-items: center;
}

.nav {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__identity {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}

.nav__brand {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  font-size: inherit;
  color: var(--accent);
}

.nav__toggle {
  display: none;
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 0;
  line-height: 1;
  color: var(--text-muted);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 0.25s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--accent);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  transform: scaleX(1);
}

.contact-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px; /* symmetric top/bottom */
  line-height: 1; /* ensures baseline alignment with siblings */
  margin-top: 0; /* rely on baseline alignment instead of offsets */
  border-radius: var(--radius-sm);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: inherit;
  color: var(--text-primary);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(.16,1,.3,1),
    box-shadow 0.4s cubic-bezier(.16,1,.3,1),
    border-color 0.4s ease,
    background 0.4s ease;
}

.contact-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.02);
  transform: translateY(4px); /* lower the frame a bit without moving text */
  pointer-events: none;
  z-index: 0;
}

.nav__links a.contact-pill {
  padding-bottom: 0;
  color: var(--text-primary);
}

.nav__links a.contact-pill::after {
  display: none;
}

.contact-pill.is-hovered,
.contact-pill:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  border-color: rgba(0, 0, 0, 0.36);
  background: rgba(0, 0, 0, 0.06);
}

.contact-pill__label {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  white-space: nowrap;
  line-height: 1;
  top: 0; /* keep text position fixed */
}

.contact-pill.is-sweeping .contact-pill__label {
  color: rgba(248, 248, 248, 0.96);
}

.contact-pill__sweep {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: #000;
  transform: translateX(-120%) skewX(-10deg);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
  will-change: transform, opacity;
}

.contact-pill__sweep.is-active {
  animation: contactSweepPass 1.2s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes contactSweepPass {
  0% {
    transform: translateX(-125%) skewX(-10deg);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  45% {
    transform: translateX(-4%) skewX(-4deg);
    opacity: 1;
  }
  75% {
    transform: translateX(38%) skewX(-2deg);
    opacity: 0.96;
  }
  100% {
    transform: translateX(125%) skewX(-6deg);
    opacity: 0;
  }
}

.contact-pill[data-reduced="1"] {
  border-color: rgba(0, 0, 0, 0.72);
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
}

.contact-pill[data-reduced="1"] .contact-pill__label {
  color: #fff;
}

.contact-pill[data-reduced="1"] .contact-pill__sweep {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: calc(var(--grid-size) * 2) 0 calc(var(--grid-size) * 1.8);
}

.hero-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-waves--background {
  z-index: 0;
  opacity: 0.68;
  filter: contrast(200%) brightness(70%);
}

.hero-waves--primary {
  z-index: 1;
  opacity: 0.74;
  filter: contrast(240%) brightness(65%);
}

.grain {
  position: absolute;
  inset: -8%;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.08"/%3E%3C/svg%3E');
  background-size: 220px 220px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
  animation: grainShift 6s steps(6) infinite;
}

@keyframes grainShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-3%, 2%, 0);
  }
}

@keyframes heroWaveA {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: -360px;
  }
}

@keyframes heroWaveB {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 320px;
  }
}

.hero-inner {
  width: min(calc(var(--grid-size) * 8), 760px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  row-gap: calc(var(--grid-size) / 5);
  text-align: center;
  text-transform: uppercase;
  position: relative;
  z-index: 3;
}

.hero-tag {
  margin: 0;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--text-soft);
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  display: inline-block;
  padding: calc(var(--grid-size) / 8) calc(var(--grid-size) / 4) calc(var(--grid-size) / 6);
}

.hero .lead {
  margin: 0;
  max-width: calc(var(--grid-size) * 7);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .site-header {
    height: calc(var(--grid-size) * 0.9);
    padding: 0 24px;
  }

  .nav {
    width: min(calc(100% - 40px), var(--max-width));
  }

  .hero {
    padding: clamp(100px, 20vh, 150px) 0 clamp(80px, 16vh, 120px);
  }

  .hero-inner {
    width: min(calc(100% - 80px), 720px);
    row-gap: 28px;
  }

  .nav__identity {
    gap: 12px;
  }

  .origin-badge {
    gap: 4px;
  }

  .hero-origin {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    gap: 6px;
    margin-top: -4px;
  }

  .page-main {
    gap: 80px;
  }

  .subpage-hero {
    padding: clamp(100px, 20vh, 140px) 0 48px;
  }

  .subpage-hero__title {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }
}

.hero-title::before,
.hero-title::after {
  content: none; /* disable decorative overlays behind title */
}

.hero-title::before {}
.hero-title::after {}

.lead {
  margin: 22px 0 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-official-note {
  margin: 16px auto 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.page-main {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.subpage-hero {
  padding: clamp(120px, 22vh, 160px) 0 60px;
  text-align: center;
}

.subpage-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.subpage-hero__title {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.subpage-hero__lead {
  margin: 0 auto;
  max-width: 62ch;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #f4f4f4;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border-color: rgba(0, 0, 0, 0.7);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.origin-badge__letter--u,
.origin-badge__letter--s,
.origin-badge__letter--a {
  will-change: transform, opacity, color, text-shadow;
}

@keyframes usaLetterDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40% {
    transform: translate3d(0.35px, -0.4px, 0);
  }
  75% {
    transform: translate3d(-0.32px, 0.45px, 0);
  }
}

@keyframes usaRedWave {
  0%, 100% {
    color: #b51220;
  }
  50% {
    color: #df2533;
  }
}

@keyframes usaWhiteWave {
  0%, 100% {
    color: #f7f9ff;
    text-shadow: 0 0 4px rgba(30, 40, 50, 0.25);
  }
  45% {
    color: #eef2ff;
    text-shadow: 0 0 6px rgba(60, 80, 110, 0.25);
  }
  50% {
    color: #ffffff;
    text-shadow: 0 0 4px rgba(30, 40, 50, 0.2);
  }
}

@keyframes usaBlueWave {
  0%, 100% {
    color: #123672;
  }
  50% {
    color: #1b4b9e;
  }
}

@media (prefers-reduced-motion: reduce) {
  .origin-badge__letter--u,
  .origin-badge__letter--s,
  .origin-badge__letter--a {
    animation: none;
    text-shadow: none;
    transform: none !important;
  }

  .origin-badge__flag-image {
    transition: none;
    transform: scale(1) translateY(0);
  }
}

.section {
  padding: var(--grid-size) 0;
}


.section__header {
  max-width: 780px;
  margin: 0 auto 52px;
  text-transform: uppercase;
  text-align: center;
}

.section__eyebrow {
  margin: 0 0 18px;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  color: var(--text-soft);
}

.section__header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 3.25rem);
  letter-spacing: -0.01em;
}

.section__lead {
  margin: 18px auto 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: none;
}

.feature-grid,
.card-grid,
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

/* Center the last row in Services when it has two items
   On wide screens we use a fixed 4-column grid and shift the
   second-to-last card to start at column 2 so the last two
   cards sit centered (columns 2 and 3). */
@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid > .card:nth-last-child(2) {
    grid-column: 2;
  }
}

.feature,
.card,
.highlight {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature:hover,
.card:hover,
.highlight:hover,
.feature:focus-within,
.card:focus-within,
.highlight:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  border-color: rgba(0, 0, 0, 0.24);
}

.feature h3,
.card h3,
.highlight h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.feature p,
.card p,
.highlight p {
  margin: 0;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  text-transform: none;
}

.highlight__label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section--cta .cta {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: clamp(48px, 8vw, 72px);
  text-align: center;
  box-shadow: none;
}

.section--cta .cta h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section--cta .cta p {
  margin: 20px auto 32px;
  max-width: 60ch;
  color: var(--text-muted);
  text-transform: none;
}

.section--cta .cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Contact expand panel */
.contact-expand {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-expand__label {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--accent);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1),
    letter-spacing 0.5s cubic-bezier(.16,1,.3,1),
    opacity 0.4s ease;
}

.contact-expand__panel {
  width: min(720px, 100%);
  background: #0a0a0a;
  color: #f4f4f4;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top;
  max-height: 0;
  clip-path: inset(0 0 100% 0 round var(--radius-lg));
  transition:
    clip-path 0.8s cubic-bezier(.16,1,.3,1),
    max-height 0.8s cubic-bezier(.16,1,.3,1),
    transform 0.6s cubic-bezier(.16,1,.3,1),
    opacity 0.45s ease,
    box-shadow 0.6s ease;
}

.contact-expand__panel::before {
  content: '';
  position: absolute;
  inset: -2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 28%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 18px);
  opacity: 0;
  transform: translateY(-25%);
  pointer-events: none;
}

.contact-expand.is-expanded .contact-expand__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 1000px;
  clip-path: inset(0 0 0 0 round var(--radius-lg));
  box-shadow: 0 28px 80px rgba(0,0,0,0.55);
}

.contact-expand.is-expanded .contact-expand__panel::before {
  opacity: 1;
  animation: contactSweep 1.2s ease-out 0.18s both;
}

@keyframes contactSweep {
  from { transform: translateY(-55%); opacity: 0; }
  30% { opacity: 1; }
  to { transform: translateY(55%); opacity: 0; }
}

.contact-expand__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.contact-expand__grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: transform 0.5s cubic-bezier(.16,1,.3,1), opacity 0.5s ease;
}

.contact-expand__grid input,
.contact-expand__grid textarea {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f4;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.95rem;
}

.contact-expand.is-expanded .contact-expand__grid label { opacity: 1; transform: translateY(0); }
.contact-expand.is-expanded .contact-expand__grid label:nth-child(1) { transition-delay: 0.10s; }
.contact-expand.is-expanded .contact-expand__grid label:nth-child(2) { transition-delay: 0.16s; }
.contact-expand.is-expanded .contact-expand__grid label:nth-child(3) { transition-delay: 0.22s; }
.contact-expand.is-expanded .contact-expand__grid label:nth-child(4) { transition-delay: 0.28s; }

.contact-expand.is-expanded .contact-expand__label {
  transform: translateY(-2px) scale(1.02);
  letter-spacing: 0.26em;
  opacity: 0.92;
}

.contact-expand__grid input::placeholder,
.contact-expand__grid textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.contact-expand__grid input:focus,
.contact-expand__grid textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.32);
}

.contact-expand__full {
  grid-column: 1 / -1;
}

.contact-expand__actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 20px 20px;
}

.contact-expand__status {
  min-height: 18px;
  padding: 0 20px 26px 20px;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.3s ease;
}

.contact-expand__status.is-success {
  color: #8ed8ac;
}

.contact-expand__status.is-error {
  color: #ff8da1;
}

.btn.btn--compact {
  padding: 10px 18px;
}

@media (max-width: 700px) {
  .contact-expand__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-expand__panel,
  .contact-expand__label,
  .contact-expand__grid label,
  .contact-expand__panel::before {
    transition: none !important;
    animation: none !important;
  }
  .contact-expand__panel { opacity: 1; max-height: 1000px; clip-path: none; transform: none; }
  .contact-expand__grid label { opacity: 1; transform: none; }
}

.site-footer {
  padding: 48px 0 64px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--text-soft);
}

.system-line {
  display: block;
  padding: 18px 0;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
}

/* Dashboard styling */


.osint-dashboard {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}

.osint-dashboard__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.osint-dashboard__grain {
  position: absolute;
  inset: -10%;
  background-image: inherit;
  opacity: 0.25;
}

.osint-dashboard__wave {
  display: none;
}

.osint-dashboard__wave--a { top: 10%; }
.osint-dashboard__wave--b { top: 45%; }
.osint-dashboard__wave--c { top: 75%; }

.osint-dashboard__header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(242, 242, 242, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.osint-nav {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  text-transform: uppercase;
}

.osint-nav__clock {
  display: flex;
  justify-self: start;
  align-items: center;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  margin-left: -20px;
}

.osint-nav__home {
  justify-self: center;
  display: inline-block;
  background: transparent;
  border: 0;
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.osint-nav__home:hover,
.osint-nav__home:focus-visible {
  color: var(--accent);
  outline: none;
}

.osint-nav__links {
  position: fixed;
  top: 62vh;
  right: clamp(24px, 4vw, 64px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  z-index: 6;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(20, 20, 21, 0.96), rgba(14, 14, 15, 0.78));
  box-shadow: 0 24px 48px rgba(8, 10, 12, 0.38);
}

.osint-nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: rgba(244, 243, 240, 0.84);
  background: rgba(30, 30, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.osint-nav__links a::after {
  content: none;
}

.osint-nav__links a:hover,
.osint-nav__links a:focus-visible {
  color: #f4f3f0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.osint-nav__links a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.3);
  outline-offset: 3px;
}

@supports (backdrop-filter: blur(1px)) {
  .osint-nav__links a {
    background: rgba(10, 14, 20, 0.6);
    backdrop-filter: blur(12px);
  }
}

.osint-nav__sse {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.24em;
  font-size: 0.64rem;
  color: var(--text-soft);
  font-feature-settings: "tnum", "lnum";
  white-space: nowrap;
}

/* Chrono card pulls styling from KPI chips */
.chrono-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(135deg, rgba(28, 28, 30, 0.95), rgba(16, 16, 18, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(6, 8, 12, 0.35);
  color: #f5f7fb;
  font-family: 'Space Grotesk', 'Inter', monospace;
  font-weight: 500;
  letter-spacing: 0.16em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "lnum";
  position: relative;
  overflow: hidden;
}

.chrono-bar .label {
  color: rgba(214, 220, 228, 0.65);
  letter-spacing: 0.22em;
  font-size: 0.55rem;
}

.chrono-bar .date {
  color: rgba(236, 239, 244, 0.88);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.chrono-bar .time {
  font-weight: 700;
  color: rgba(236, 239, 244, 0.96);
  font-size: 0.82rem;
}

.chrono-bar::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1px;
}

.chrono-bar::after {
  content: '';
  position: absolute;
  left: 16px;
  bottom: 12px;
  height: 1px;
  width: var(--sec-pct, 0%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.25));
  border-radius: 1px;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(30, 30, 31, 0.9), rgba(16, 16, 17, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 46px rgba(8, 10, 12, 0.38);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}

.dashboard-chip--heading {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  letter-spacing: 0.24em;
  padding: 18px 32px;
  white-space: normal;
  text-align: center;
}

/* Clock placed next to brand title */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
}

.status-dot--green { background: #3a7b3a; }
.status-dot--amber { background: #b08120; }
.status-dot--red { background: #a43a3a; }

.osint-dashboard__main {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  padding: 64px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.control-deck {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--text-soft);
}



.dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dashboard-section__header {
  max-width: 860px;
  text-transform: uppercase;
}

.dashboard-section__eyebrow {
  letter-spacing: 0.26em;
  font-size: 0.68rem;
  color: var(--text-soft);
  margin: 0 0 16px;
}

.dashboard-section__header h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3rem);
}

.dashboard-section__lead {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.metrics__kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.metrics__kpi {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(30, 30, 32, 0.92), rgba(18, 18, 19, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 46px rgba(8, 10, 12, 0.38);
  color: rgba(240, 239, 236, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  overflow: hidden;
}

.metrics__kpi::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 45%);
  opacity: 0.55;
  pointer-events: none;
}

.metrics__kpi h3 {
  margin: 0 0 10px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: rgba(216, 216, 214, 0.64);
}

.metrics__kpi strong {
  display: block;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.08em;
  color: #f4f3f0;
}

.metric-series-card {
  position: relative;
  padding: 26px 28px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(30, 30, 31, 0.96), rgba(16, 16, 17, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 42px 92px rgba(8, 8, 10, 0.48);
  color: var(--text-light);
  overflow: hidden;
}

.metric-series-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.metric-series-card__header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.metric-series-card__heading h3 {
  margin: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #f6f8fb;
}

.metric-series-card__heading p {
  margin: 6px 0 0;
  max-width: 360px;
  color: rgba(214, 220, 228, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.metric-series-card__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin: 16px 0 0;
}

.metric-series-card__switches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.metric-series-card__insights {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  margin-left: auto;
}

.metric-series-card__insights div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 72px;
  align-items: flex-end;
}

.metric-series-card__insights dt {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(230, 237, 243, 0.52);
}

.metric-series-card__insights dd {
  margin: 0;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: #f6f8fb;
  letter-spacing: 0.08em;
  text-align: right;
}

.metric-series-card__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  color: rgba(214, 220, 228, 0.62);
}

.metric-series-card__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.metric-series-card__legend-item::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 0;
  border-bottom: 2px solid currentColor;
  border-radius: var(--radius-sm);
  opacity: 0.8;
}

.metric-series-card__legend-item--current::before {
  border-bottom-color: #e6ecf4;
}

.metric-series-card__legend-item--compare {
  color: rgba(210, 214, 222, 0.68);
}

.metric-series-card__legend-item--compare::before {
  border-bottom-style: dashed;
  border-bottom-color: rgba(210, 214, 222, 0.72);
}

.metric-series-card__bucket-switch {
  display: inline-flex;
  border: 1px solid var(--card-border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(30, 30, 31, 0.95);
  box-shadow: var(--card-shadow-dark);
  margin: 12px 0 0;
}

.bucket-switch__option {
  border: 0;
  background: transparent;
  padding: 12px 24px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  color: rgba(230, 230, 226, 0.72);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bucket-switch__option.is-active,
.bucket-switch__option:hover {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(244, 243, 240, 0.94);
  transform: translateY(-1px);
}

.bucket-switch__option:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.metric-series-card__chart-shell {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(10, 13, 17, 0.97), rgba(6, 8, 11, 0.92));
}

.metric-series-card__canvas {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 280px);
}

.metric-series-card__chart-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 35%);
  mix-blend-mode: lighten;
}

.core__tabs {
  display: inline-flex;
  border: 1px solid var(--card-border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(30, 30, 31, 0.95);
  box-shadow: var(--card-shadow-dark);
}

.core__tab {
  border: 0;
  background: transparent;
  padding: 12px 24px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  color: rgba(230, 230, 226, 0.72);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.core__tab.is-active,
.core__tab:hover {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(244, 243, 240, 0.94);
  transform: translateY(-1px);
}

.core__tables {
  display: grid;
  gap: 32px;
}

.core__panel {
  position: relative;
  background: linear-gradient(165deg, rgba(30, 30, 31, 0.96), rgba(16, 16, 17, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--card-shadow-dark);
  color: var(--text-light);
}

.core__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 22% -10%, rgba(255, 255, 255, 0.06), transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.core__panel > * {
  position: relative;
}

.core__panel--muted {
  opacity: 0.65;
}

.core__table-shell {
  border-radius: calc(var(--radius-sm) + 6px);
  background: linear-gradient(170deg, rgba(28, 28, 30, 0.96), rgba(16, 16, 17, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 26px 60px rgba(5, 7, 10, 0.35);
  overflow: hidden;
}

.core__filters {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.core__filters label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.core__filters select {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  background: transparent;
  text-transform: uppercase;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.data-table th[data-sort-field] {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.data-table th[data-sort-field]:hover {
  color: var(--accent);
}

.data-table th[data-sort-field].is-active {
  color: var(--accent);
}

.data-table th[data-sort-field].is-active::after {
  content: '▼';
  display: inline-block;
  margin-left: 8px;
  font-size: 0.6rem;
}

.data-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.05);
}

.data-table__empty td {
  text-align: center;
  color: var(--text-soft);
}

.data-table__group-header td {
  padding: 0;
  background: rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.data-table__group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
}

.data-table__group-toggle:hover,
.data-table__group-toggle:focus-visible {
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}

.data-table__group-toggle::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  transform: rotate(-90deg);
}

.data-table__group-toggle[aria-expanded='true']::after {
  transform: rotate(0deg);
}

.data-table__group-label {
  font-weight: 600;
}

.data-table__group-count {
  color: var(--text-soft);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.data-table__group-item.is-collapsed {
  display: none;
}

.core__panel .data-table th,
.core__panel .data-table td {
  color: rgba(238, 237, 233, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.core__panel .data-table th {
  color: rgba(244, 243, 240, 0.84);
}

.core__panel .data-table th[data-sort-field]:hover,
.core__panel .data-table th[data-sort-field].is-active {
  color: #f3f2ef;
}

.core__panel .data-table th[data-sort-field].is-active::after {
  color: inherit;
}

.core__panel .data-table tbody tr {
  transition: background 0.2s ease;
}

.core__panel .data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

.core__panel .data-table__empty td {
  color: var(--text-soft-on-dark);
}

.core__panel .data-table__group-header td {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--divider-dark);
}

.core__panel .data-table__group-toggle {
  color: rgba(226, 226, 222, 0.72);
}

.core__panel .data-table__group-count {
  color: rgba(210, 210, 206, 0.58);
}

.core__panel .data-table a {
  color: inherit;
}

/* Load-more row for flat tables */
.data-table__load-more td {
  text-align: center;
  padding: 16px;
}

.metrics-grid,
.momentum__grid,
.narratives__grid,
.telemetry__status {
  display: grid;
  gap: 24px;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metrics-card,
.momentum__panel,
.narrative-card {
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(30, 30, 31, 0.94), rgba(18, 18, 19, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 24px 48px rgba(8, 10, 12, 0.38);
  color: rgba(240, 239, 236, 0.9);
}

.narrative-card {
  color: var(--text-light);
}

.metrics-card h3,
.momentum__panel h3 {
  margin: 0 0 12px;
  color: #f3f2ef;
}

.metrics-card dl,
.momentum__panel p,
.momentum__panel ul,
.narrative-card p {
  margin: 0;
  color: rgba(228, 227, 222, 0.78);
  text-transform: none;
  letter-spacing: 0.01em;
}

.narrative-card h3 {
  color: #f5f3f0;
}

.narrative-card p {
  color: rgba(228, 227, 222, 0.78);
}

.narrative-card__meta {
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.narrative-card__arguments {
  margin: 16px 0;
  padding-left: 18px;
  list-style: disc;
  color: rgba(228, 227, 222, 0.86);
}

.narrative-card__frames,
.narrative-card__actors,
.narrative-card__origin {
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.metrics-card dl div,
.momentum__panel dl div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.narratives__cta {
  display: flex;
  justify-content: flex-end;
}

.narratives__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.narratives__dates {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.narratives__window-indicator {
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(135deg, rgba(30, 30, 31, 0.9), rgba(16, 16, 17, 0.7));
  color: var(--text-light);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.narratives__date-btn {
  border: 0;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(30, 30, 31, 0.94), rgba(16, 16, 17, 0.72));
  color: var(--text-light);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.narratives__date-btn.is-current {
  border-color: rgba(255, 255, 255, 0.16);
}

.narratives__date-btn.is-active {
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(135deg, rgba(32, 32, 34, 0.96), rgba(18, 18, 19, 0.78));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.narratives__date-btn:hover,
.narratives__date-btn:focus-visible {
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(34, 34, 36, 0.98), rgba(18, 18, 19, 0.78));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.narratives__date-btn.is-active:hover,
.narratives__date-btn.is-active:focus-visible {
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.24), transparent 60%),
    linear-gradient(135deg, rgba(36, 36, 38, 0.98), rgba(22, 22, 24, 0.82));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

button.cta {
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  color: #f4f4f4;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

button.cta:hover,
button.cta:focus-visible {
  background: var(--accent);
  color: #121316;
}

.telemetry__status {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.telemetry__chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.7);
}

.telemetry__chip--note {
  grid-column: span 2;
}

.osint-dashboard__footer {
  margin-top: auto;
  padding: 48px 0 64px;
  text-align: center;
  letter-spacing: 0.2em;
  font-size: 0.62rem;
  color: var(--text-soft);
  text-transform: uppercase;
}

/* Responsive */

@media (max-width: 960px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: 70px;
    right: 32px;
    flex-direction: column;
    gap: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 18px;
    padding: 18px;
    display: none;
  }

  .nav__links.is-open {
    display: flex;
  }

  .hero-inner {
    width: calc(100% - 64px);
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .section,
  .osint-dashboard__main {
    padding-left: 32px;
    padding-right: 32px;
  }

  .osint-nav {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 18px;
  }

  .osint-nav__home {
    justify-self: start;
    padding-left: 0;
  }

  .osint-nav__clock {
    margin-left: 0;
  }

  .osint-nav__links {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .osint-nav__links a {
    width: auto;
    flex: 1 1 calc(50% - 12px);
    min-width: 140px;
  }

  .dashboard-chip--heading {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section--cta .cta {
    padding: 40px 0 56px;
  }

  .contact-expand {
    width: 100%;
    align-items: stretch;
  }

  .contact-expand__panel {
    border-radius: 24px;
  }

  .hero-official-note {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .page-main {
    gap: 64px;
  }

  .subpage-hero {
    padding: 100px 0 40px;
  }

  .subpage-hero__eyebrow {
    letter-spacing: 0.2em;
    font-size: 0.68rem;
  }

  .subpage-hero__title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .section__header {
    margin-bottom: 40px;
  }

  .feature,
  .card,
  .highlight,
  .core__panel,
  .metrics-card,
  .momentum__panel,
  .narrative-card {
    padding: 24px;
  }

  .metrics__kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .metric-series-card {
    padding: 24px 20px;
  }

  .metric-series-card__insights {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .metric-series-card__insights div {
    min-width: 80px;
    flex: 1;
  }

  .metric-series-card__canvas {
    height: 220px;
  }

  .telemetry__chip--note {
    grid-column: auto;
}

.dashboard-chip--heading {
  font-size: 0.9rem;
  padding: 16px 20px;
  letter-spacing: 0.2em;
}
}

@media (max-width: 480px) {
  .site-header {
    height: 68px;
  }

  .nav {
    padding: 0 10px;
  }

  .nav__brand {
    letter-spacing: 0.18em;
  }

  .nav__toggle {
    padding: 6px;
  }

  .hero {
    padding: 110px 0 96px;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.7rem);
    letter-spacing: 0.06em;
    line-height: 1.12;
  }

  .hero-official-note {
    margin-top: 20px;
  }

  .section--cta .cta {
    padding: 36px 0 48px;
  }

  .contact-expand__panel {
    width: 100%;
  }

  .contact-expand__grid {
    padding: 16px;
    gap: 12px;
  }

  .contact-expand__actions {
    padding: 0 16px 16px;
  }

  .contact-expand__status {
    padding: 0 16px 20px;
    text-align: left;
  }

  .btn.btn--compact {
    width: 100%;
  }
}

.amplifiers__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.amplifiers__layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.amplifiers__list {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(30, 30, 31, 0.94), rgba(18, 18, 19, 0.74));
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 24px 48px rgba(8, 10, 12, 0.38);
  color: var(--text-light);
}

.amplifiers__tabs-placeholder,
.amplifiers__tree-placeholder {
  margin: 0;
  color: var(--text-soft-on-dark);
  font-size: 0.9rem;
}

.amplifiers__core {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(30, 30, 31, 0.92), rgba(18, 18, 19, 0.7));
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.amplifiers__core:hover {
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(32, 32, 34, 0.95), rgba(18, 18, 19, 0.74));
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.amplifiers__core.is-active {
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.24), transparent 58%),
    linear-gradient(135deg, rgba(34, 34, 36, 0.96), rgba(20, 20, 22, 0.78));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 54px rgba(8, 10, 12, 0.42);
  color: #f5f3f0;
}

.amplifiers__core-handle {
  font-weight: 600;
  font-size: 0.95rem;
}

.amplifiers__core-meta {
  font-size: 0.8rem;
  color: var(--text-soft-on-dark);
}

.amplifiers__core-summary,
.amplifiers__core-time {
  font-size: 0.78rem;
  color: var(--text-soft-on-dark);
}

.amplifiers__core.is-active .amplifiers__core-summary,
.amplifiers__core.is-active .amplifiers__core-time {
  color: rgba(244, 243, 240, 0.78);
}

.amplifiers__core.is-active .amplifiers__core-meta {
  color: rgba(242, 241, 238, 0.72);
}

.amplifiers__detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.amplifiers__core-trail {
  font-size: 0.78rem;
  color: var(--text-soft-on-dark);
  display: block;
}

.amplifiers__core-updated {
  font-size: 0.72rem;
  color: var(--text-soft-on-dark);
  display: block;
}

.amplifiers__timeline-shell {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(30, 30, 31, 0.94), rgba(18, 18, 19, 0.74));
  padding: 18px 20px 20px 28px;
  min-height: 220px;
  box-shadow: 0 24px 48px rgba(8, 10, 12, 0.38);
  color: var(--text-light);
}

.amplifiers__chain-meta {
  font-size: 0.8rem;
  color: var(--text-soft-on-dark);
  margin-bottom: 12px;
}

.amplifiers__timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  position: relative;
}

.amplifiers__timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 2px;
  background: rgba(240, 244, 252, 0.16);
}

.amplifiers__timeline-item {
  position: relative;
  margin-bottom: 16px;
  padding-left: 24px;
}

.amplifiers__timeline-item:last-child {
  margin-bottom: 0;
}

.amplifiers__timeline-item::before {
  content: '';
  position: absolute;
  top: 9px;
  left: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(214, 220, 228, 0.45);
}

.amplifiers__timeline-card {
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(30, 30, 31, 0.9), rgba(18, 18, 19, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 36px rgba(6, 8, 12, 0.32);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.amplifiers__timeline-badge {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 225, 220, 0.6);
}

.amplifiers__timeline-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}

.amplifiers__timeline-meta {
  font-size: 0.8rem;
  color: var(--text-soft-on-dark);
}

.amplifiers__timeline-summary {
  font-size: 0.82rem;
  color: var(--text-soft-on-dark);
  margin: 6px 0 0;
}

.amplifiers__timeline-item--origin .amplifiers__timeline-card,
.amplifiers__timeline-item--collector .amplifiers__timeline-card,
.amplifiers__timeline-item--final .amplifiers__timeline-card,
.amplifiers__timeline-item--duplicate .amplifiers__timeline-card {
  background:
    radial-gradient(circle at 22% -18%, rgba(255, 255, 255, 0.18), transparent 62%),
    linear-gradient(135deg, rgba(32, 32, 34, 0.96), rgba(18, 18, 19, 0.74));
}

@media (min-width: 960px) {
  .amplifiers__layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .amplifiers__list {
    flex: 0 0 280px;
    max-height: 420px;
    overflow-y: auto;
    position: sticky;
    top: 96px;
  }

  .amplifiers__detail {
    flex: 1;
  }
}
