@font-face {
  font-family: "Inter Research";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.researchDocument {
  overflow-x: hidden;
  overflow-y: auto;
}

.researchLibraryBody {
  min-height: 100%;
  overflow: visible;
  background: #020609;
  color: #f3f7f7;
  font-family: "D-DIN", Arial, Helvetica, sans-serif;
}

.researchPage {
  --research-content-left: calc(clamp(40px, 6vw, 96px) + clamp(56px, 5.2vw, 72px) + clamp(34px, 4vw, 64px));
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(circle at 78% 4%, rgba(82, 181, 205, 0.12), transparent 27rem),
    linear-gradient(180deg, #061016 0, #020609 34rem, #020609 100%);
}

.researchPage {
  opacity: 0;
  transition: opacity 220ms ease;
}

.research-critical-ready .researchPage {
  opacity: 1;
}

.featuredVisual img,
.researchThumbnail img,
.articleFigure img,
.researchInfinityCanvas {
  opacity: 0;
}

.featuredVisual img.researchMediaReady,
.researchThumbnail img.researchMediaReady,
.articleFigure img.researchMediaReady,
.research-animation-ready .researchInfinityCanvas {
  opacity: 1;
}

.featuredVisual img,
.researchThumbnail img,
.articleFigure img {
  transition: opacity 260ms ease, filter 500ms ease;
}

.researchInfinityCanvas {
  transition: opacity 320ms ease;
}

.articleGeometryCanvas {
  position: absolute;
  z-index: 0;
  top: 72px;
  right: -13vw;
  left: auto;
  width: min(92vw, 1050px);
  height: 880px;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, rgba(0, 0, 0, 0.76) 58%, transparent 82%);
  mask-image: radial-gradient(ellipse at center, #000 30%, rgba(0, 0, 0, 0.76) 58%, transparent 82%);
  transition: opacity 420ms ease;
}

.research-animation-ready .articleGeometryCanvas { opacity: 0.78; }

.researchIndexPage .researchPage {
  overflow: hidden;
}

.researchIndexBackdrop {
  position: absolute;
  z-index: 0;
  top: -190px;
  left: calc(-1 * var(--research-content-left));
  width: 100vw;
  height: calc(100% + 190px);
  overflow: hidden;
  pointer-events: none;
}

.researchInfinityCanvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.researchIndexBackdrop::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 14%, rgba(2, 6, 9, 0.08) 50%, rgba(2, 6, 9, 0.45) 100%),
    linear-gradient(90deg, rgba(2, 6, 9, 0.7) 0%, rgba(2, 6, 9, 0.22) 34%, transparent 64%),
    linear-gradient(180deg, rgba(2, 6, 9, 0.12) 0%, transparent 46%, rgba(2, 6, 9, 0.66) 84%, #020609 100%);
  content: "";
}

.researchPage .siteHeader,
.researchPage .topActions {
  position: absolute;
}

.researchArticlePage::before {
  position: fixed;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: 140px;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 9, 0.99) 0%,
    rgba(2, 6, 9, 0.9) 34%,
    rgba(17, 19, 21, 0.78) 68%,
    rgba(17, 19, 21, 0) 100%
  );
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  content: "";
  transition: visibility 0s linear 220ms, opacity 220ms ease;
}

.researchPage .readingSiteHeader,
.researchPage .readingTopActions {
  position: fixed !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: visibility 0s linear 220ms, opacity 220ms ease, transform 220ms ease;
}

.researchPage.articleReadingActive::before,
.researchPage.articleReadingActive .readingSiteHeader,
.researchPage.articleReadingActive .readingTopActions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.researchPage.articleReadingActive .readingSiteHeader,
.researchPage.articleReadingActive .readingTopActions {
  pointer-events: auto;
}

.researchPage .primaryNav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.researchShell {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 1180px;
  margin-right: clamp(40px, 6vw, 96px);
  margin-left: var(--research-content-left);
  padding: 190px 0 96px;
}

.researchEyebrow,
.articleKicker,
.researchMeta,
.articleMeta,
.articleBreadcrumbs {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.researchEyebrow,
.articleKicker {
  margin: 0 0 20px;
  color: rgba(160, 225, 239, 0.82);
}

.researchHero {
  position: relative;
  max-width: 880px;
  padding-bottom: 72px;
}

.researchHero > :not(.researchIndexBackdrop) {
  position: relative;
  z-index: 1;
}

.researchHero h1,
.articleHeader h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.researchLead,
.articleDeck {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(238, 244, 245, 0.72);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.featuredResearch {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  min-height: 480px;
  border-top: 1px solid rgba(171, 218, 227, 0.22);
  border-bottom: 1px solid rgba(171, 218, 227, 0.22);
  color: inherit;
  text-decoration: none;
}

.featuredVisual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.featuredVisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.94);
  transition: opacity 260ms ease, filter 500ms ease;
}

.featuredVisual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, #020609 100%), linear-gradient(0deg, rgba(2, 6, 9, 0.42), transparent 55%);
  content: "";
}

.featuredCopy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 64px);
}

.featuredCopy h2,
.researchItem h2 {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.featuredCopy p,
.researchItem p {
  color: rgba(238, 244, 245, 0.66);
  font-size: 1rem;
  line-height: 1.55;
}

.readResearch {
  margin-top: 26px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.researchAuthor {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: rgba(238, 244, 245, 0.72);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.researchAuthor img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.researchAuthor > :last-child::before {
  margin: 0 10px 0 1px;
  color: rgba(238, 244, 245, 0.32);
  content: "·";
}

.featuredResearch:hover img,
.featuredResearch:focus-visible img {
  filter: saturate(0.92) contrast(1.08) brightness(1.02);
}

.researchIndex {
  margin-top: 88px;
}

.researchIndexHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(171, 218, 227, 0.22);
}

.researchIndexHeader h2 {
  margin: 0;
  font-size: 1.7rem;
}

.researchList {
  display: grid;
}

.researchItem {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid rgba(171, 218, 227, 0.14);
  color: inherit;
  text-decoration: none;
}

.researchThumbnail {
  display: block;
  height: 112px;
  overflow: hidden;
  background: #071116;
}

.researchThumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.08) brightness(0.94);
}

.researchThumbnailThreat img { object-position: 74% center; filter: saturate(0.55) hue-rotate(24deg) contrast(1.2) brightness(0.58); }
.researchThumbnailArchitecture img { object-position: 28% center; filter: saturate(0.35) hue-rotate(165deg) contrast(1.18) brightness(0.7); }

.researchItemPlaceholder {
  cursor: default;
  color: rgba(238, 244, 245, 0.62);
}

.researchPlaceholderThumbnail {
  border: 1px solid rgba(238, 244, 245, 0.08);
  background:
    linear-gradient(135deg, rgba(238, 244, 245, 0.09), rgba(238, 244, 245, 0.025)),
    #111517;
}

.researchItemPlaceholder h2,
.researchItemPlaceholder p {
  color: rgba(238, 244, 245, 0.48);
}

.researchItem h2 {
  margin-top: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
}

.researchItem p { margin: 14px 0 0; }
.researchItemMuted { opacity: 0.48; cursor: default; }

.articleShell {
  position: relative;
  width: auto;
  max-width: 1120px;
  margin-right: clamp(40px, 6vw, 96px);
  margin-left: var(--research-content-left);
  padding: 170px 0 110px;
}

.articleShell > :not(.articleGeometryCanvas) { position: relative; z-index: 1; }

.articleBreadcrumbs { margin-bottom: 80px; color: rgba(238, 244, 245, 0.48); }
.articleBreadcrumbs a { color: inherit; text-decoration: none; }
.articleBreadcrumbs span { padding: 0 10px; }
.articleHeader { max-width: 980px; }
.articleHeader h1 { font-size: clamp(2.9rem, 6.3vw, 6rem); }
.articleMeta { display: flex; gap: 24px; margin-top: 36px; color: rgba(238, 244, 245, 0.52); }

.articleRule {
  height: 1px;
  margin: 72px 0;
  background: rgba(171, 218, 227, 0.2);
}

.articleLayout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(260px, 290px);
  column-gap: clamp(40px, 4vw, 64px);
  row-gap: 0;
  justify-content: start;
  margin: 0 -32px;
  padding: clamp(108px, 8vw, 120px) 32px clamp(56px, 7vw, 88px) 48px;
  background:
    linear-gradient(180deg, #020609 0, rgba(2, 6, 9, 0.56) 38px, transparent 112px),
    linear-gradient(0deg, #020609 0, rgba(2, 6, 9, 0.56) 38px, transparent 112px),
    #111315;
}

.articleContentColumn {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.articleToc {
  position: -webkit-sticky;
  position: sticky;
  z-index: 2;
  top: 32px;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  max-height: calc(100svh - 64px);
  overflow-y: auto;
  scrollbar-width: thin;
  transition: top 200ms ease, max-height 200ms ease;
}
.researchPage.articleReadingActive .articleToc { top: 124px; max-height: calc(100svh - 148px); }
.articleToc p { margin: 0 0 18px; color: rgba(237, 238, 240, 0.7); }
.articleToc a { position: relative; display: block; margin-top: 12px; padding-left: 14px; color: rgba(237, 238, 240, 0.58); font-family: "Inter Research", Arial, Helvetica, sans-serif; font-size: 0.875rem; line-height: 1.4; text-decoration: none; transition: color 160ms ease, transform 160ms ease; }
.articleToc a::before { position: absolute; top: 0.15em; bottom: 0.15em; left: 0; width: 2px; background: rgba(160, 225, 239, 0); content: ""; transition: background 160ms ease; }
.articleToc a:hover,
.articleToc a:focus-visible { color: rgba(237, 238, 240, 0.9); }
.articleToc a[aria-current="location"] {
  color: #c4f0f8;
  font-weight: 650;
  transform: translateX(4px);
}
.articleToc a[aria-current="location"]::before { background: rgba(196, 240, 248, 0.9); }

.articleBody {
  color: rgba(237, 238, 240, 0.82);
  font-family: "Inter Research", Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.011em;
  text-wrap: pretty;
}
.articleBody p { margin: 0 0 1.2em; }
.articleBody a,
.articleBody a:visited {
  color: rgba(176, 228, 239, 0.92);
  text-decoration-color: rgba(176, 228, 239, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.articleBody a:hover,
.articleBody a:focus-visible {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.82);
}
.articleBody a:focus-visible {
  outline: 1px solid rgba(176, 228, 239, 0.72);
  outline-offset: 3px;
}
.articleBody h2 {
  margin: 2.25em 0 0.7em;
  color: #edeef0;
  font-family: "Inter Research", Arial, Helvetica, sans-serif;
  font-size: clamp(1.55rem, 1.42rem + 0.55vw, 1.9rem);
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
  scroll-margin-top: 144px;
}
.articleBody h2:first-child { margin-top: 0; }
.articleBody code {
  padding: 0.12em 0.34em;
  border: 1px solid rgba(237, 238, 240, 0.13);
  border-radius: 4px;
  background: rgba(237, 238, 240, 0.09);
  color: #d9f1f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.articleFigure {
  margin: 32px 0 44px;
}
.articleFigure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(237, 238, 240, 0.12);
  background: #0b0c0e;
}
.articleFigure figcaption {
  margin-top: 10px;
  color: rgba(237, 238, 240, 0.56);
  font-family: "Inter Research", Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
}
.articleCallout { margin: 40px 0; padding: 24px 28px; border-left: 2px solid rgba(160, 225, 239, 0.72); background: rgba(160, 225, 239, 0.06); }
.articleCode { overflow-x: auto; margin: 32px 0; padding: 24px; border: 1px solid rgba(171, 218, 227, 0.16); background: #000; color: #cdeef4; font: 0.9rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }

.researchCopyright {
  display: flex;
  justify-content: flex-end;
  padding-top: 80px;
  margin: 0;
  color: rgba(238, 241, 241, 0.68);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.65rem, 0.7vw, 0.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

@media (max-width: 760px) {
  .researchPage .siteHeader { position: absolute; }
  .researchArticlePage::before { height: 110px; }
  .menu-open .readingTopActions { display: none; }
  .reading-menu-open .readingTopActions { display: flex; }
  .reading-menu-open .readingMenuToggle span:first-child { top: 15px; transform: rotate(45deg); }
  .reading-menu-open .readingMenuToggle span:last-child { top: 15px; transform: rotate(-45deg); }
  .researchIndexBackdrop { top: -138px; left: -24px; height: calc(100% + 138px); }
  .researchIndexBackdrop::after {
    background:
      radial-gradient(ellipse at 50% 44%, transparent 12%, rgba(2, 6, 9, 0.12) 50%, rgba(2, 6, 9, 0.5) 100%),
      linear-gradient(90deg, rgba(2, 6, 9, 0.66) 0%, rgba(2, 6, 9, 0.2) 42%, transparent 78%),
      linear-gradient(180deg, rgba(2, 6, 9, 0.14) 0%, transparent 40%, rgba(2, 6, 9, 0.72) 82%, #020609 100%);
  }
  .researchShell, .articleShell { width: auto; margin-right: 24px; margin-left: 24px; padding-top: 138px; }
  .articleGeometryCanvas { top: 86px; right: -54vw; left: auto; width: 150vw; height: 660px; opacity: 0; }
  .research-animation-ready .articleGeometryCanvas { opacity: 0.52; }
  .researchHero { padding-bottom: 50px; }
  .featuredResearch { grid-template-columns: 1fr; }
  .featuredVisual { min-height: 300px; }
  .featuredVisual::after { background: linear-gradient(0deg, #020609 0%, transparent 55%); }
  .featuredCopy { padding: 30px 0 42px; }
  .researchIndex { margin-top: 62px; }
  .researchItem { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; }
  .researchItem .researchMeta:last-child { text-align: left; }
  .researchCopyright { font-size: 0.65rem; letter-spacing: 0.12em; }
  .articleBreadcrumbs { margin-bottom: 52px; }
  .articleMeta { flex-direction: column; gap: 8px; }
  .articleRule { margin: 48px 0; }
  .articleBody h2 { scroll-margin-top: 112px; }
  .articleLayout { grid-template-columns: 1fr; margin-right: -24px; margin-left: -24px; padding-right: 24px; padding-left: 32px; }
  .articleToc { display: none; }
}
