:root {
  color-scheme: dark;
  --ink: #f5f4ef;
  --muted: #a6a5ad;
  --line: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.045);
  --violet: #9f8cff;
  --cyan: #76e4e8;
  --bg: #090a10;
  --max-width: 1180px;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: #090a10;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

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

.page-glow {
  position: fixed;
  z-index: -1;
  width: 44vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
}

.page-glow--one {
  top: -20vw;
  right: -15vw;
  background: var(--violet);
}

.page-glow--two {
  bottom: 8vh;
  left: -30vw;
  background: var(--cyan);
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.2em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 0.74rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 104px);
  align-content: center;
  overflow: hidden;
  padding: 100px 0 130px;
}

.hero-kicker,
.eyebrow,
.section-label,
.work-type {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--cyan);
}

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 930px;
  margin: 0;
  font-size: clamp(4rem, 9vw, 8.8rem);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero h1 span,
.contact-section h2 span {
  color: transparent;
  background: linear-gradient(100deg, var(--violet), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
  margin: 42px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 24px;
  gap: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
}

.button--primary {
  color: #0c0c12;
  background: var(--ink);
}

.button--quiet {
  border-color: transparent;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  right: -40px;
  width: min(35vw, 440px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.orbit-ring,
.orbit-core {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

.orbit-ring {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.orbit-ring--outer {
  animation: spin 28s linear infinite;
}

.orbit-ring--outer::before,
.orbit-ring--outer::after {
  position: absolute;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--violet);
  border-radius: 50%;
  box-shadow: 0 0 24px var(--violet);
}

.orbit-ring--outer::before {
  top: 8%;
  left: 22%;
}

.orbit-ring--outer::after {
  right: 7%;
  bottom: 30%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
}

.orbit-ring--inner {
  width: 58%;
  height: 58%;
  border-style: dashed;
  animation: spin-reverse 20s linear infinite;
}

.orbit-core {
  display: grid;
  width: 29%;
  height: 29%;
  place-items: center;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.4rem);
  background: radial-gradient(circle at 35% 30%, #3a3752, #11121b 68%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 70px rgba(159, 140, 255, 0.24);
}

.orbit-label {
  position: absolute;
  padding: 5px 10px;
  color: var(--muted);
  background: rgba(9, 10, 16, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
}

.orbit-label--one {
  top: 4%;
  right: 18%;
}

.orbit-label--two {
  top: 56%;
  left: -3%;
}

.orbit-label--three {
  right: 2%;
  bottom: 12%;
}

.scroll-cue {
  position: absolute;
  bottom: 42px;
  left: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  color: #777780;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue i {
  display: block;
  width: 64px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  display: block;
  width: 50%;
  height: 100%;
  content: "";
  background: var(--ink);
  animation: scan 2.4s ease-in-out infinite;
}

.section {
  padding: 150px 0;
  border-top: 1px solid var(--line);
}

.section--split {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 60px;
}

.section-content h2,
.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.body-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  margin-top: 70px;
  color: var(--muted);
}

.body-grid p {
  margin: 0;
}

.body-grid .lead {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.35;
}

.section-heading {
  display: flex;
  gap: 60px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 70px;
}

.section-heading > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.focus-card {
  position: relative;
  min-height: 450px;
  padding: 30px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 240ms ease, border-color 240ms ease;
}

.focus-card::before {
  position: absolute;
  top: -60%;
  left: -70%;
  width: 160%;
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(118, 228, 232, 0.12), transparent 68%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.focus-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.24);
}

.focus-card:hover::before {
  opacity: 1;
}

.focus-card--featured {
  background: linear-gradient(150deg, rgba(159, 140, 255, 0.12), rgba(255, 255, 255, 0.035));
}

.card-number {
  color: #73727b;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

.card-icon {
  margin: 70px 0 30px;
  color: var(--cyan);
  font-size: 2rem;
}

.focus-card h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 520;
}

.focus-card p {
  color: var(--muted);
}

.focus-card ul {
  display: grid;
  padding: 0;
  margin: 34px 0 0;
  gap: 7px;
  color: #c9c8ce;
  font-size: 0.78rem;
  list-style: none;
}

.focus-card li::before {
  margin-right: 10px;
  color: var(--violet);
  content: "—";
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: 60px 1.2fr 1fr 40px;
  gap: 40px;
  align-items: center;
  padding: 42px 12px;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background 180ms ease;
}

.work-item:hover {
  padding-inline: 24px;
  background: rgba(255, 255, 255, 0.025);
}

.work-index {
  color: var(--violet);
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
}

.work-type {
  margin: 0 0 8px;
}

.work-item h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 500;
}

.work-item > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.work-arrow {
  font-size: 1.3rem;
}

.intelligence-section {
  position: relative;
}

.intelligence-section::before {
  position: absolute;
  top: 110px;
  right: -22%;
  z-index: -1;
  width: 55%;
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(118, 228, 232, 0.09), transparent 68%);
  pointer-events: none;
}

.intelligence-heading h2 span {
  color: transparent;
  background: linear-gradient(100deg, var(--violet), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.intelligence-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 22px 0 0;
}

.research-overview {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 0.7fr;
  margin-bottom: 34px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.research-overview > div {
  display: grid;
  min-height: 98px;
  padding: 23px 26px;
  align-content: center;
  border-right: 1px solid var(--line);
}

.research-overview > div:last-child {
  border-right: 0;
}

.research-stat-label {
  color: #777780;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-overview strong {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 520;
}

.research-live {
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.research-live strong {
  margin: 0;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.research-controls {
  margin-bottom: 42px;
}

.research-search {
  display: flex;
  height: 64px;
  padding: 0 22px;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.research-search > span {
  color: var(--cyan);
  font-size: 1.35rem;
}

.research-search input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.research-search input::placeholder {
  color: #686872;
}

.research-filters {
  display: flex;
  padding: 18px 0 4px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.research-filter {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.72rem;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.research-filter:hover,
.research-filter.is-active {
  color: #0c0c12;
  background: var(--ink);
  border-color: var(--ink);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.research-card {
  display: flex;
  min-width: 0;
  min-height: 410px;
  padding: 30px;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(159, 140, 255, 0.055), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease;
}

.research-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.24);
}

.research-card-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: #777780;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.research-category {
  color: var(--cyan);
}

.research-card h3 {
  margin: 38px 0 18px;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.research-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.research-impact {
  padding: 18px 0;
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.research-impact > span {
  color: var(--violet);
  font-size: 0.57rem;
  letter-spacing: 0.16em;
}

.research-impact p {
  margin: 8px 0 0;
  color: #d0cfd4;
  font-size: 0.82rem;
}

.research-card-footer {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
}

.research-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.research-tags span {
  padding: 4px 8px;
  color: #8d8c95;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 999px;
  font-size: 0.58rem;
}

.research-source {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.72rem;
}

.research-message {
  grid-column: 1 / -1;
  min-height: 220px;
  margin: 0;
  padding: 60px 24px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.research-message--error {
  color: #f2a6b3;
}

.contact-section {
  position: relative;
  padding: 170px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.contact-section::before {
  position: absolute;
  inset: 12% 20%;
  z-index: -1;
  content: "";
  background: radial-gradient(circle, rgba(159, 140, 255, 0.16), transparent 70%);
  filter: blur(25px);
}

.contact-section h2 {
  margin: 18px 0 50px;
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.contact-link {
  display: inline-flex;
  gap: 60px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--muted);
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 42px 0;
  color: #777780;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

.brand--footer {
  color: var(--ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }
  50%,
  100% {
    transform: translateX(200%);
  }
}

@media (max-width: 900px) {
  .hero-orbit {
    right: -20%;
    opacity: 0.42;
  }

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

  .focus-card {
    min-height: auto;
  }

  .card-icon {
    margin-top: 46px;
  }

  .work-item {
    grid-template-columns: 40px 1fr 40px;
  }

  .work-item > p {
    display: none;
  }

  .research-overview {
    grid-template-columns: 1fr 1fr;
  }

  .research-overview > div:nth-child(2) {
    border-right: 0;
  }

  .research-overview > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  body {
    background-size: 40px 40px;
  }

  .site-header,
  .site-footer,
  main {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    height: 82px;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 12px;
    gap: 7px;
    place-content: center;
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 32px));
    padding: 22px;
    gap: 4px;
    flex-direction: column;
    color: var(--ink);
    background: rgba(16, 17, 25, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: calc(100svh - 82px);
    padding: 80px 0 110px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 18vw, 6rem);
  }

  .hero-copy {
    max-width: 90%;
    margin-top: 32px;
  }

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

  .button {
    justify-content: space-between;
  }

  .hero-orbit {
    top: 28%;
    right: -48%;
    width: 90vw;
    opacity: 0.26;
  }

  .section {
    padding: 100px 0;
  }

  .section--split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 48px;
  }

  .body-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 46px;
  }

  .work-item {
    gap: 16px;
    padding: 32px 4px;
  }

  .work-item:hover {
    padding-inline: 4px;
  }

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

  .research-overview {
    grid-template-columns: 1fr;
  }

  .research-overview > div,
  .research-overview > div:nth-child(2) {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .research-overview > div:last-child {
    border-bottom: 0;
  }

  .research-card {
    min-height: auto;
  }

  .research-card-footer {
    align-items: start;
    flex-direction: column;
  }

  .contact-section {
    padding: 120px 0;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > p:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
