:root {
  --lab-bg: #080b12;
  --lab-bg-deep: #05070b;
  --lab-text: #e7eaf2;
  --lab-muted: #98a0b2;
  --lab-faint: #737c91;
  --lab-accent: #8798ff;
  --lab-border: rgba(160, 171, 205, 0.16);
  --lab-shell: 1000px;
  --lab-reading: 1000px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-width: 0;
  overflow-x: hidden;
  background: var(--lab-bg);
  color: var(--lab-text);
  font-size: 16px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

.shell {
  width: min(var(--lab-shell), calc(100% - 48px));
  margin: 0 auto;
}

.reading-column {
  max-width: var(--lab-reading);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--lab-border);
  background: rgba(8, 11, 18, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  position: relative;
  width: min(var(--lab-shell), calc(100% - 48px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.brand {
  flex: 0 0 auto;
  color: #f2f4fa;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.3vw, 28px);
  color: var(--lab-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.site-header--home .site-nav {
  left: auto;
  right: 0;
  transform: none;
}

.site-nav a {
  padding: 8px 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--lab-border);
  background: var(--lab-bg-deep);
}

.hero__field {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 7, 11, 0.08), rgba(5, 7, 11, 0.28)),
    url("/assets/img/research-field.svg");
  background-position: center;
  background-size: cover;
  opacity: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.hero__copy {
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  color: #f4f6fb;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero__thesis {
  margin: 20px 0 0;
  color: #d8dce6;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.hero__identity {
  max-width: 680px;
  margin: 12px 0 0;
  color: #b9c0cf;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--lab-border);
  opacity: 1;
  visibility: visible;
  transition: none;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--lab-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 26px;
  color: #f0f2f7;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.prose-block {
  max-width: 820px;
}

.prose-block p {
  margin: 0 0 18px;
  color: #bbc1cf;
  font-size: 16px;
  line-height: 1.6;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.research-questions {
  border-top: 1px solid var(--lab-border);
}

.research-question {
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--lab-border);
}

.question-number {
  margin: 0 0 10px;
  color: var(--lab-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.research-question h3 {
  max-width: 820px;
  margin: 0 0 20px;
  color: #e2e6ee;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.research-question h4 {
  margin: 25px 0 9px;
  color: #cdd2dd;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.research-question > p:not(.question-number),
.research-question li {
  max-width: 830px;
  color: var(--lab-muted);
  font-size: 15px;
  line-height: 1.7;
}

.research-question > p:not(.question-number) {
  margin: 13px 0 0;
}

.research-question ul {
  max-width: 830px;
  margin: 14px 0 0;
  padding-left: 21px;
}

.research-question li {
  margin: 5px 0;
  padding-left: 5px;
}

.research-question .research-criterion {
  margin-top: 20px;
  color: #b8bfcd;
}

.research-criterion strong {
  color: #d6dae3;
  font-weight: 600;
}

.research-question .causal-sequence,
.research-question .semantic-bridge {
  margin: 18px 0;
  color: #cdd2dd;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.research-question .inline-enumeration {
  color: #aeb5c4;
}

.research-list {
  border-top: 1px solid var(--lab-border);
}

.research-item {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(0, 1.35fr);
  gap: 36px;
  padding: 24px 0;
  border-bottom: 1px solid var(--lab-border);
}

.research-item h3 {
  margin: 0;
  color: #dfe3ec;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.research-item p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 16px;
  line-height: 1.6;
}

.research-item .research-detail {
  margin-top: 9px;
  color: var(--lab-faint);
  font-size: 14px;
}

.research-closing {
  margin: 28px 0 0;
  color: #aeb5c4;
  font-size: 16px;
  line-height: 1.6;
}

.section--blog,
.section--notes {
  background: #070a10;
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading--compact {
  align-items: center;
}

.section-heading--compact .eyebrow {
  margin-bottom: 0;
}

.text-link,
.site-footer a {
  text-decoration-color: rgba(135, 152, 255, 0.58);
  text-underline-offset: 4px;
}

.text-link {
  margin-bottom: 3px;
  color: var(--lab-muted);
  font-size: 13px;
}

.text-link--inline {
  margin: 0;
  color: #c8ceda;
  font-size: inherit;
}

.notes-list {
  border-top: 1px solid var(--lab-border);
}

.notes-list--empty {
  border-bottom: 1px solid var(--lab-border);
}

.notes-empty {
  margin: 0;
  padding: 18px 0;
  color: var(--lab-faint);
  font-size: 14px;
  line-height: 1.6;
}

.note {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--lab-border);
  text-decoration: none;
}

.note time {
  color: var(--lab-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note__body {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.note strong {
  color: #dce0e9;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.note__body > span {
  color: var(--lab-muted);
  font-size: 14px;
  line-height: 1.6;
}

.note:hover strong,
.note:focus-visible strong {
  color: #fff;
}

.site-footer {
  padding: 38px 0;
  background: var(--lab-bg-deep);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: var(--lab-muted);
  font-size: 13px;
}

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.contact-line span {
  color: var(--lab-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-line a {
  color: #c8ceda;
}

.site-footer__meta {
  text-align: right;
}

.site-footer__meta p {
  margin: 0 0 3px;
}

.page-intro {
  padding: 88px 0 54px;
  border-bottom: 1px solid var(--lab-border);
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.58), rgba(5, 7, 11, 0.9)),
    url("/assets/img/research-field.svg") center / cover;
}

.page-intro h1 {
  max-width: 840px;
  margin: 0 0 14px;
  color: #f0f2f7;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.page-intro p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--lab-muted);
  font-size: 16px;
}

.page-intro--program {
  padding-bottom: 64px;
}

.external-reference {
  margin: 30px 0 0;
  color: var(--lab-faint);
  font-size: 14px;
  line-height: 1.6;
}

.blog-index {
  padding: 0 0 70px;
}

.blog-entry {
  padding: 52px 0;
  border-bottom: 1px solid var(--lab-border);
  scroll-margin-top: 90px;
}

.blog-entry time {
  display: block;
  margin-bottom: 10px;
  color: var(--lab-faint);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-entry h2 {
  margin: 0 0 13px;
  color: #e4e7ef;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.blog-entry p {
  max-width: 740px;
  margin: 12px 0 0;
  color: var(--lab-muted);
  font-size: 16px;
  line-height: 1.6;
}

.blog-entry .blog-entry__summary {
  color: #b9c0cf;
  font-weight: 600;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 120px;
  }

  .site-header__inner {
    min-height: 52px;
    padding: 0;
    align-items: center;
    flex-direction: row;
    gap: 0;
  }

  .brand {
    display: none;
  }

  .site-nav {
    width: auto;
    justify-content: center;
    gap: 3px 12px;
    overflow: visible;
    padding: 0;
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .hero,
  .hero__inner {
    min-height: 340px;
  }

  .hero__thesis {
    font-size: 21px;
  }

  .section {
    padding: 60px 0;
  }

  .research-item {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 20px 0;
  }

  .research-question {
    padding: 31px 0 35px;
  }

  .research-question h3 {
    font-size: 19px;
  }

  .note__body {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 22px;
  }

  .site-footer__meta {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .shell,
  .site-header__inner {
    width: min(100% - 32px, var(--lab-shell));
  }

  .note {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .contact-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

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

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