@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/crimson-pro-latin.woff2") format("woff2");
}

:root {
  --ink: #101827;
  --ink-soft: #43516a;
  --paper: #ffffff;
  --paper-blue: #f4f7fc;
  --line: #d7e0ee;
  --blue: #2367d1;
  --blue-soft: #e9f1ff;
  --violet: #7044cf;
  --violet-soft: #f1ebff;
  --teal: #007f75;
  --teal-soft: #e3f6f2;
  --amber: #b56d00;
  --amber-soft: #fff3d7;
  --green: #087c4b;
  --green-soft: #e6f6ed;
  --shadow-sm: 0 10px 30px rgba(17, 31, 56, 0.08);
  --shadow-lg: 0 28px 70px rgba(17, 31, 56, 0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  background: var(--paper);
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #174d9e;
}

a:focus-visible,
button:focus-visible,
object:focus-visible {
  outline: 3px solid #f0ad2c;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease-out;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(215, 224, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1.25rem;
  padding-inline: 1.5rem;
}

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-brand:hover {
  color: var(--blue);
}

.brand-mark {
  display: inline-flex;
  width: 2rem;
  height: 1.4rem;
  flex-direction: column;
  justify-content: space-between;
}

.brand-mark i {
  display: block;
  height: 0.26rem;
  border-radius: 999px;
}

.brand-mark i:nth-child(1) {
  width: 100%;
  background: #7193ff;
}

.brand-mark i:nth-child(2) {
  width: 72%;
  background: #8a65e5;
}

.brand-mark i:nth-child(3) {
  width: 48%;
  background: #d79a17;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  position: relative;
  color: #3e4d66;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.publication-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(35, 103, 209, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 16%, rgba(112, 68, 207, 0.11), transparent 25rem),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 92%);
}

.publication-hero .hero-body {
  padding: clamp(5rem, 10vw, 8.5rem) 1.5rem clamp(3.75rem, 7vw, 6rem);
}

.project-kicker,
.section-label,
.resource-eyebrow {
  color: var(--blue);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.publication-title {
  margin: 0.4rem 0 0.75rem !important;
  color: var(--ink);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(4.6rem, 13vw, 9rem) !important;
  font-weight: 700 !important;
  line-height: 0.87 !important;
  letter-spacing: -0.065em;
}

.publication-subtitle {
  max-width: 56rem;
  margin: 0 auto;
  color: #33415b;
  font-size: clamp(1.35rem, 2.7vw, 2.05rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.publication-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.25rem;
  gap: 0.45rem 0.75rem;
  color: #263652;
  font-size: 1.13rem;
  font-weight: 700;
}

.author-separator {
  color: #8b98ac;
}

.publication-affiliation {
  display: flex;
  flex-direction: column;
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.project-button {
  height: 2.85rem;
  padding-inline: 1.25rem;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(16, 24, 39, 0.12);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-button:hover,
.project-button:focus-visible {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(35, 103, 209, 0.2);
}

.project-button svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.48rem;
  fill: currentColor;
}

.teaser-section {
  padding-top: 0;
}

.research-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.research-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.research-figure figcaption {
  padding: 1rem 1.5rem 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.96rem;
  text-align: center;
}

.section {
  padding: clamp(4.75rem, 8vw, 7.5rem) 1.5rem;
  scroll-margin-top: 5rem;
}

.section-soft {
  border-block: 1px solid #e5ebf4;
  background: var(--paper-blue);
}

.section-grid {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2rem;
}

.section-title {
  margin: 0.2rem 0 1.25rem !important;
  color: var(--ink);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(2.45rem, 5vw, 4rem) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em;
}

.abstract-copy {
  max-width: 52rem;
  color: #33415b;
  font-size: 1.18rem;
  line-height: 1.78;
}

.abstract-copy p:not(:last-child) {
  margin-bottom: 1.2rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 2.75rem;
}

.section-heading p {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.memory-layer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.memory-layer {
  position: relative;
  display: flex;
  min-height: 16.5rem;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-top: 5px solid currentColor;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.memory-layer h3 {
  margin: 1.1rem 0 0.55rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.memory-layer p {
  margin: 0;
  color: #40506a;
  line-height: 1.5;
}

.layer-code {
  display: inline-flex;
  width: 3rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.layer-status {
  margin-top: auto;
  padding-top: 1rem;
  color: currentColor;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.layer-l1 {
  color: var(--blue);
  background: linear-gradient(180deg, #fff 45%, var(--blue-soft));
}

.layer-l1 .layer-code {
  background: var(--blue);
}

.layer-l2 {
  color: var(--violet);
  background: linear-gradient(180deg, #fff 45%, var(--violet-soft));
}

.layer-l2 .layer-code {
  background: var(--violet);
}

.layer-l3 {
  color: var(--amber);
  background: linear-gradient(180deg, #fff 45%, var(--amber-soft));
}

.layer-l3 .layer-code {
  background: var(--amber);
}

.layer-sidecar {
  color: var(--green);
  background: linear-gradient(180deg, #fff 45%, var(--green-soft));
}

.layer-sidecar .layer-code {
  background: var(--green);
}

.overview-figure {
  margin-top: 2rem;
}

.section-dark {
  color: #eff5ff;
  background:
    radial-gradient(circle at 0 0, rgba(50, 107, 209, 0.28), transparent 35rem),
    radial-gradient(circle at 100% 100%, rgba(0, 127, 117, 0.18), transparent 32rem),
    #111827;
}

.section-heading-dark .section-label {
  color: #8fb5ff;
}

.section-heading-dark .section-title,
.section-heading-dark p {
  color: #f3f7ff;
}

.section-heading-dark p {
  color: #bbc7dc;
}

.observatory-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid rgba(177, 198, 232, 0.3);
  border-radius: var(--radius-md);
  color: #f7faff;
  background: #1a2434;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  border-color: #8fb5ff;
  color: #fff;
  background: #202d42;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(177, 198, 232, 0.28);
}

.gallery-copy {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.3rem 1.3rem;
}

.gallery-copy strong {
  font-size: 1.18rem;
}

.gallery-copy span {
  margin-top: 0.2rem;
  color: #b9c5d8;
  font-size: 0.95rem;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.evaluation-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.evaluation-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.evaluation-tag,
.evaluation-sample {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.evaluation-tag {
  padding: 0.35rem 0.7rem;
  color: #174d9e;
  background: var(--blue-soft);
  text-transform: uppercase;
}

.evaluation-tag-teal {
  color: #005f58;
  background: var(--teal-soft);
}

.evaluation-sample {
  color: #52617a;
}

.evaluation-card h3 {
  margin: 1rem 0 0.45rem;
  color: var(--ink);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
}

.evaluation-context {
  min-height: 5rem;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}

.result-table {
  margin-bottom: 1rem !important;
  background: transparent;
  font-size: 0.94rem;
}

.result-table th,
.result-table td {
  padding: 0.75rem 0.55rem !important;
  border-color: #dfe6f0 !important;
  vertical-align: middle;
}

.result-table thead th {
  color: #53617a;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-table tbody th {
  color: var(--ink);
}

.result-table td {
  color: #33415b;
  font-variant-numeric: tabular-nums;
}

.unit {
  font-weight: 400;
  text-transform: none;
}

.highlight-row {
  background: var(--violet-soft);
}

.highlight-row th,
.highlight-row td {
  color: #4e2c9e !important;
  font-weight: 700;
}

.highlight-row-teal {
  background: var(--teal-soft);
}

.highlight-row-teal th,
.highlight-row-teal td {
  color: #005f58 !important;
}

.result-note {
  margin: 0;
  padding-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.boundary-note {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid #e9c885;
  border-radius: var(--radius-sm);
  color: #5c4518;
  background: #fff8e8;
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  gap: 1.25rem;
}

.poster-panel,
.limitations-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.poster-panel {
  overflow: hidden;
}

.resource-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.resource-card-heading h3,
.limitations-panel h3 {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
}

.resource-card-heading a {
  flex: 0 0 auto;
  font-weight: 700;
}

.poster-embed {
  display: block;
  width: 100%;
  height: 38rem;
  border: 0;
  background: #edf2f8;
}

.limitations-panel {
  padding: 1.5rem;
}

.limitations-panel h3 {
  margin-bottom: 0.9rem;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.8rem;
}

.limitations-panel ul {
  margin: 0 0 1.5rem 1.15rem;
  color: #3e4d66;
}

.limitations-panel li:not(:last-child) {
  margin-bottom: 0.65rem;
}

.resource-downloads {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.resource-link:hover {
  color: var(--blue);
}

.site-footer {
  padding: 2.5rem 1.5rem;
  color: #aebbd0;
  background: #0d1420;
  font-size: 0.9rem;
}

.site-footer p:not(:last-child) {
  margin-bottom: 0.45rem;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: #a9c6ff;
}

.scroll-to-top {
  position: fixed;
  z-index: 90;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 28px rgba(16, 24, 39, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, background 180ms ease;
}

.scroll-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: var(--blue);
}

.scroll-to-top svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

@media screen and (max-width: 1023px) {
  .memory-layer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .limitations-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.75fr);
    gap: 0 2rem;
  }

  .limitations-panel h3 {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: 7.5rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding-block: 0.7rem;
  }

  .site-brand {
    align-self: center;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.25rem 0.2rem 0.4rem;
    gap: 1.1rem;
    scrollbar-width: thin;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 0.9rem;
  }

  .publication-hero .hero-body {
    padding-top: 4.25rem;
  }

  .publication-title {
    font-size: clamp(4.2rem, 21vw, 6.2rem) !important;
  }

  .author-separator {
    display: none;
  }

  .publication-authors {
    flex-direction: column;
    gap: 0.15rem;
  }

  .section-grid,
  .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .section-heading {
    align-items: start;
    margin-bottom: 2rem;
  }

  .memory-layer-grid,
  .evaluation-grid,
  .observatory-gallery,
  .limitations-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-card-wide {
    grid-column: auto;
  }

  .memory-layer {
    min-height: 14rem;
  }

  .evaluation-context {
    min-height: 0;
  }

  .poster-embed {
    height: 29rem;
  }

  .limitations-panel h3 {
    grid-column: auto;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .header-inner,
  .section,
  .publication-hero .hero-body {
    padding-inline: 1rem;
  }

  .site-nav {
    overflow-x: visible;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .publication-links {
    align-items: stretch;
    flex-direction: column;
  }

  .project-button {
    width: 100%;
  }

  .research-figure {
    border-radius: var(--radius-md);
  }

  .research-figure figcaption {
    padding-inline: 1rem;
    text-align: left;
  }

  .resource-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .poster-embed {
    display: none;
  }

  .scroll-to-top {
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

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

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