:root {
  --doc-night: #07121f;
  --doc-deep: #0b2032;
  --doc-blue: #0667ff;
  --doc-link-blue: #0051b8;
  --doc-ice: #8ad5fc;
  --doc-mist: #e4eef5;
  --doc-white: #f5f7f9;
  --doc-ink: #132a3c;
  --doc-copy: #36546b;
  --doc-rule: #b8cad7;
  --doc-shell: min(1180px, calc(100% - 64px));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--doc-night);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body.doc-page {
  margin: 0;
  background: var(--doc-night);
  color: var(--doc-white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.doc-page a {
  color: inherit;
  text-decoration: none;
}

.doc-page button,
.doc-page input,
.doc-page select,
.doc-page textarea {
  font: inherit;
}

.doc-page button,
.doc-page a,
.doc-page input,
.doc-page select,
.doc-page textarea {
  -webkit-tap-highlight-color: transparent;
}

.doc-page a:focus-visible,
.doc-page button:focus-visible,
.doc-page input:focus-visible,
.doc-page select:focus-visible,
.doc-page textarea:focus-visible {
  outline: 2px solid var(--doc-blue);
  outline-offset: 5px;
}

.doc-shell {
  width: var(--doc-shell);
  margin-inline: auto;
}

.doc-skip {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 24px;
  padding: 13px 17px;
  background: var(--doc-blue);
  color: white;
  font-size: 12px;
}

.doc-skip:focus {
  top: 18px;
}

.doc-header {
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, #06101c 0%, var(--doc-night) 100%);
  border-bottom: 1px solid #9bbad01f;
}

.doc-header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.7px;
  white-space: nowrap;
}

.doc-brand-mark {
  position: relative;
  display: block;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 40deg, #2183ff 0deg, #0063ff 170deg, #062448 175deg, #063269 268deg, #147bff 295deg, #2183ff 360deg);
  box-shadow: 0 0 30px #1272ff30;
}

.doc-brand-mark::after {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--doc-night);
  content: "";
}

.doc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 29px);
  color: #c7d6e1;
  font-size: 12px;
}

.doc-nav a {
  position: relative;
  padding: 12px 0;
  white-space: nowrap;
}

.doc-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--doc-ice);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.doc-nav a:hover::after,
.doc-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.doc-header-cta,
.doc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--doc-blue);
  color: white;
  box-shadow: 0 9px 28px #0267ff2b;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.doc-header-cta {
  padding: 14px 20px;
}

.doc-header-cta span,
.doc-button span {
  font-size: 19px;
  line-height: 0.7;
  transition: transform 180ms ease;
}

.doc-header-cta:hover span,
.doc-button:hover span {
  transform: translateX(4px);
}

.doc-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 77% 25%, #1a5076 0, #0c2a44 27%, var(--doc-night) 69%);
}

.doc-hero::after {
  position: absolute;
  right: 12%;
  bottom: 15%;
  width: 170px;
  height: 170px;
  border: 1px solid #8ad5fc4d;
  border-radius: 50%;
  box-shadow: 0 0 0 24px #8ad5fc0d, 0 0 0 48px #8ad5fc08;
  content: "";
  pointer-events: none;
}

.doc-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 470px;
  padding-top: 125px;
  padding-bottom: 105px;
}

.doc-kicker {
  margin: 0 0 21px;
  color: #9fc2d8;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
}

.doc-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--doc-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(55px, 7vw, 102px);
  font-weight: 400;
  letter-spacing: -0.067em;
  line-height: 0.93;
}

.doc-hero h1::first-line {
  text-wrap: balance;
}

.doc-lede {
  max-width: 600px;
  margin: 30px 0 0;
  color: #d0dce5;
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.7;
}

.doc-section {
  padding: 105px 0;
}

.doc-section-light {
  background: var(--doc-mist);
  color: var(--doc-ink);
}

.doc-section-dark {
  background: var(--doc-deep);
  color: var(--doc-white);
}

.doc-section-ice {
  background: linear-gradient(135deg, #e4eef5 0%, #d1e2ee 100%);
  color: var(--doc-ink);
}

.doc-section-heading {
  max-width: 690px;
  margin-bottom: 48px;
}

.doc-section-heading .doc-kicker,
.doc-section-light .doc-kicker,
.doc-section-ice .doc-kicker {
  color: #45677f;
}

.doc-section h2,
.doc-card h2,
.work-card h2,
.process-card h2,
.research-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.3vw, 64px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.doc-section-heading h2 {
  max-width: 710px;
}

.doc-card-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.doc-card,
.work-card,
.process-card {
  min-height: 350px;
  padding: 30px;
  border: 1px solid #7897aa55;
  background: #f7fbfe99;
}

.doc-card-index {
  margin: 0 0 55px;
  color: var(--doc-link-blue);
  font-size: 11px;
  letter-spacing: 1.5px;
}

.doc-card p:not(.doc-card-index),
.work-card p:not(.doc-card-index):not(.doc-kicker),
.process-card p:not(.doc-card-index),
.doc-copy p,
.research-summary p,
.research-copy p,
.doc-section-tail {
  color: var(--doc-copy);
  font-size: 15px;
  line-height: 1.72;
}

.doc-card > p:nth-of-type(2),
.work-card > p:nth-of-type(3),
.process-card > p:nth-of-type(2) {
  margin: 20px 0 0;
}

.doc-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #7897aa55;
}

.doc-list li {
  padding: 11px 0;
  border-bottom: 1px solid #7897aa55;
  color: #34566e;
  font-size: 12px;
  line-height: 1.4;
}

.doc-list li::before {
  margin-right: 9px;
  color: var(--doc-link-blue);
  content: "+";
}

.doc-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(48px, 9vw, 145px);
  align-items: start;
}

.doc-split h2 {
  max-width: 560px;
}

.doc-copy {
  max-width: 570px;
}

.doc-copy p:first-child {
  margin-top: 0;
}

.doc-copy p:last-of-type {
  margin-bottom: 0;
}

.doc-section-dark .doc-copy p {
  color: #c2d1dc;
}

.doc-section-dark .doc-kicker {
  color: var(--doc-ice);
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 23px;
  color: var(--doc-link-blue);
  font-size: 12px;
  font-weight: 600;
}

.doc-section-dark .doc-link {
  color: var(--doc-ice);
}

.doc-link span {
  font-size: 18px;
  line-height: 0.7;
  transition: transform 180ms ease;
}

.doc-link:hover span {
  transform: translate(3px, -2px);
}

.doc-footer {
  background: #06101c;
  color: #cfdae2;
  border-top: 1px solid #9bbad01f;
}

.doc-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  padding: 62px 0 28px;
}

.doc-footer .doc-brand {
  font-size: 18px;
}

.doc-footer-note {
  max-width: 350px;
  margin: 18px 0 0;
  color: #9db2c1;
  font-size: 12px;
  line-height: 1.7;
}

.doc-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 14px 32px;
  align-content: start;
  justify-content: end;
  color: #bed0dd;
  font-size: 12px;
}

.doc-footer-nav a:hover,
.doc-footer-bottom a:hover {
  color: var(--doc-ice);
}

.doc-footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid #9bbad01f;
  color: #879daa;
  font-size: 10px;
  letter-spacing: 0.4px;
}

.doc-footer-bottom a {
  color: #a9c2d1;
}

/* Work and research */
.work-card {
  min-height: 330px;
}

.work-card-repository {
  background: #f3f9fcbb;
}

.work-card .doc-kicker {
  margin-bottom: 18px;
}

.work-card .doc-card-index,
.process-card .doc-card-index {
  margin-bottom: 28px;
}

.work-card .doc-note {
  margin-top: 11px;
  color: #45677f;
  font-size: 12px;
  line-height: 1.6;
}

.doc-section-tail {
  max-width: 630px;
  margin: 38px 0 0;
}

.research-summary {
  max-width: 800px;
  padding-bottom: 56px;
  border-bottom: 1px solid #7897aa66;
}

.research-summary .research-count {
  margin: 0;
  color: var(--doc-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.research-summary p:last-child {
  max-width: 660px;
  margin: 22px 0 0;
}

.research-list {
  display: grid;
  gap: 70px;
  margin-top: 72px;
}

.research-card {
  padding: 0 0 70px;
  border-bottom: 1px solid #7897aa66;
}

.research-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

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

.research-card-top .doc-card-index {
  margin: 0;
}

.research-card-top .doc-kicker {
  margin: 0;
  color: #45677f;
}

.research-card h2 {
  max-width: 780px;
  margin-top: 8px;
}

.research-identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 20px 0 0;
  color: var(--doc-link-blue);
  font-family: monospace;
  font-size: 12px;
}

.research-identifiers a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.research-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 35px 0 0;
  padding: 22px 0;
  border-top: 1px solid #7897aa55;
  border-bottom: 1px solid #7897aa55;
}

.research-meta dt {
  color: #45677f;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.research-meta dd {
  margin: 8px 0 0;
  color: var(--doc-ink);
  font-size: 13px;
  line-height: 1.45;
}

.research-meta code {
  color: var(--doc-link-blue);
  font-family: monospace;
}

.research-copy {
  max-width: 850px;
  margin-top: 31px;
}

.research-copy > p {
  margin-top: 0;
}

.research-copy strong {
  color: var(--doc-ink);
}

.research-case-study {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 44px;
  margin-top: 30px;
}

.research-case-study h3 {
  margin: 0 0 7px;
  color: #45677f;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.research-case-study p {
  margin: 0;
}

.research-sources {
  margin-top: 34px;
  padding-top: 21px;
  border-top: 1px solid #7897aa55;
}

.research-sources .doc-kicker {
  margin-bottom: 11px;
  color: #45677f;
}

.research-sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-sources .doc-link {
  margin-top: 0;
}

/* Process */
.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-card {
  min-height: 295px;
}

.process-card h2 {
  font-size: clamp(28px, 3vw, 43px);
}

/* Contact */
.doc-contact-grid {
  gap: clamp(48px, 8vw, 112px);
}

.doc-warning {
  margin-top: 38px;
  padding: 15px 17px;
  border-left: 2px solid var(--doc-blue);
  background: #d5e5ef;
  color: #385d75 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

.doc-form {
  padding: 33px;
  border: 1px solid #7897aa66;
  background: #f7fbfe;
}

.doc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px 16px;
}

.doc-field {
  min-width: 0;
}

.doc-field-full {
  grid-column: 1 / -1;
}

.doc-field label {
  display: block;
  margin-bottom: 8px;
  color: #3b5d73;
  font-size: 11px;
  font-weight: 600;
}

.doc-field label span {
  color: var(--doc-link-blue);
}

.doc-field input,
.doc-field select,
.doc-field textarea {
  width: 100%;
  border: 1px solid #9db7c8;
  border-radius: 2px;
  background: white;
  color: var(--doc-ink);
  font-size: 14px;
}

.doc-field input,
.doc-field select {
  min-height: 45px;
  padding: 11px 12px;
}

.doc-field textarea {
  min-height: 165px;
  padding: 12px;
  resize: vertical;
}

.doc-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.doc-button {
  margin-top: 25px;
  padding: 15px 22px;
  cursor: pointer;
}

.doc-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.doc-form-status {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: #31566e;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  :root {
    --doc-shell: min(100% - 48px, 760px);
  }

  .doc-header-inner {
    flex-wrap: wrap;
    padding: 17px 0;
  }

  .doc-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .doc-hero-inner {
    min-height: 410px;
    padding-top: 93px;
    padding-bottom: 84px;
  }

  .doc-card-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-card:last-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 620px) {
  :root {
    --doc-shell: calc(100% - 36px);
  }

  .doc-header-inner {
    gap: 15px;
  }

  .doc-header-cta {
    padding: 12px 15px;
    font-size: 11px;
  }

  .doc-header-cta span {
    display: none;
  }

  .doc-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .doc-nav::-webkit-scrollbar {
    display: none;
  }

  .doc-nav a {
    font-size: 11px;
  }

  .doc-hero::after {
    right: -65px;
    bottom: 10%;
    width: 145px;
    height: 145px;
  }

  .doc-hero-inner {
    min-height: 430px;
    padding-top: 82px;
    padding-bottom: 72px;
  }

  .doc-hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .doc-lede {
    margin-top: 24px;
    font-size: 14px;
  }

  .doc-section {
    padding: 73px 0;
  }

  .doc-section-heading {
    margin-bottom: 35px;
  }

  .doc-card-grid,
  .process-grid,
  .doc-split,
  .research-case-study,
  .doc-form-grid {
    grid-template-columns: 1fr;
  }

  .doc-card,
  .work-card,
  .process-card {
    min-height: 0;
    padding: 25px;
  }

  .doc-card-index,
  .work-card .doc-card-index,
  .process-card .doc-card-index {
    margin-bottom: 32px;
  }

  .process-card:last-child,
  .doc-field-full {
    grid-column: auto;
  }

  .doc-split {
    gap: 36px;
  }

  .doc-footer-grid {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .doc-footer-nav {
    justify-content: start;
  }

  .doc-footer-bottom {
    grid-column: auto;
    flex-direction: column;
    gap: 9px;
  }

  .research-list {
    gap: 52px;
    margin-top: 52px;
  }

  .research-card {
    padding-bottom: 52px;
  }

  .research-card-top {
    display: block;
  }

  .research-card-top .doc-kicker {
    margin-top: 15px;
  }

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

  .research-sources ul {
    display: grid;
    gap: 12px;
  }

  .doc-form {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .doc-header,
  .doc-footer,
  .doc-skip {
    display: none;
  }

  body.doc-page {
    background: white;
    color: black;
  }

  .doc-section,
  .doc-hero {
    padding: 40px 0;
    background: white;
    color: black;
  }
}

/* The same WebGL world as the homepage, with ordinary document scrolling. */
.doc-hero-spatial {
  isolation: isolate;
  background: var(--doc-night);
}

.doc-hero-spatial::after {
  display: none;
}

.doc-hero-spatial #world {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
}

.scene-ready .doc-hero-spatial #world {
  opacity: 1;
}

.doc-scene-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #05101bf2 0%, #05101bbf 35%, #05101b26 70%), linear-gradient(0deg, #07121f, transparent 25%);
}

.doc-hero-spatial .doc-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(760px, 90svh);
  padding-block: 95px 110px;
  pointer-events: none;
}

.doc-hero-spatial h1 {
  max-width: 55%;
  font-size: clamp(54px, 5.4vw, 82px);
  text-wrap: balance;
}

.doc-hero-spatial .doc-lede {
  max-width: min(490px, 48%);
  font-size: 16px;
}

.doc-scene-controls {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #d0dce5;
}

.doc-scene-caption {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.doc-scene-controls button {
  visibility: hidden;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #8ad5fc66;
  border-radius: 30px;
  background: #07121fe6;
  color: #e4eef5;
  cursor: pointer;
  font-size: 12px;
}

.scene-ready .doc-scene-controls button {
  visibility: visible;
}

.doc-hero-spatial #render-status:not(:empty) {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 12px 24px;
  background: #07121f;
  color: #d0dce5;
  font-size: 12px;
}

.doc-hero-spatial #reload-scene {
  margin-left: 12px;
  padding: 10px 16px;
  border: 1px solid #8ad5fc;
  border-radius: 24px;
  background: #07121f;
  color: white;
  cursor: pointer;
}

.no-webgl .doc-scene-controls,
.context-lost .doc-scene-controls {
  display: none;
}

@media (max-width: 700px) {
  .doc-hero-spatial #world {
    height: 370px;
  }

  .doc-scene-shade {
    height: 380px;
    background: linear-gradient(0deg, #07121f 0%, #07121f26 45%, transparent 80%);
  }

  .doc-hero-spatial .doc-hero-inner {
    min-height: 0;
    padding-top: 345px;
    padding-bottom: 110px;
  }

  .doc-hero-spatial h1,
  .doc-hero-spatial .doc-lede {
    max-width: 100%;
  }

  .doc-hero-spatial h1 {
    font-size: clamp(46px, 10vw, 66px);
  }

  .doc-hero-spatial .doc-lede {
    font-size: 15px;
  }

  .no-webgl .doc-hero-spatial .doc-hero-inner {
    padding-top: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doc-hero-spatial #world {
    transition: none;
  }
}

@media print {
  .doc-hero-spatial #world,
  .doc-scene-shade,
  .doc-scene-controls,
  .doc-hero-spatial #render-status {
    display: none;
  }

  .doc-hero-spatial .doc-hero-inner {
    min-height: 0;
    padding-block: 20px;
  }

  .doc-hero-spatial h1,
  .doc-hero-spatial .doc-lede {
    max-width: 100%;
  }
}
