:root {
  --navy-950: #071a2f;
  --navy-900: #0b223d;
  --blue-700: #075a9c;
  --blue-500: #1887c7;
  --gold-500: #d7ae38;
  --teal-600: #0d8f83;
  --paper: #f5f3ed;
  --surface: #ffffff;
  --slate-700: #40556b;
  --slate-500: #687d91;
  --rule: #d8e0e7;
  --content: 73.75rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow: 0 1.25rem 3.5rem rgb(7 26 47 / 0.10);
}

* ,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--navy-950);
  background:
    linear-gradient(rgb(245 243 237 / 0.94), rgb(245 243 237 / 0.94)),
    repeating-linear-gradient(0deg, transparent 0 2.9rem, rgb(7 26 47 / 0.025) 2.9rem 3rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-700);
  text-decoration-color: rgb(7 90 156 / 0.45);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-950);
  text-decoration-color: currentcolor;
}

:focus-visible {
  outline: 0.18rem solid var(--surface);
  outline-offset: 0.18rem;
}

:is(a, [tabindex]):focus-visible {
  box-shadow: 0 0 0 0.38rem var(--navy-950);
}

[id] {
  scroll-margin-top: 6.5rem;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--navy-950);
  background: var(--gold-500);
  border-radius: 0.35rem;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 4.55rem;
  padding: 0.75rem max(1.5rem, calc((100% - var(--content)) / 2));
  color: var(--surface);
  background: rgb(7 26 47 / 0.94);
  border-bottom: 1px solid rgb(215 174 56 / 0.35);
  backdrop-filter: blur(0.8rem);
}

.site-mark {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-mark::before {
  display: inline-block;
  width: 0.68rem;
  height: 0.68rem;
  margin-right: 0.55rem;
  content: "";
  background: var(--gold-500);
  border-radius: 50%;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.1rem;
}

.site-header nav a {
  padding: 0.32rem 0;
  color: rgb(255 255 255 / 0.88);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--gold-500);
}

.hero,
.section,
.project-detail {
  width: min(calc(100% - 3rem), var(--content));
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(13rem, 0.55fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 9vw, 8rem) 0 0;
}

.hero-content {
  align-self: center;
  max-width: 49rem;
}

.eyebrow,
.section-kicker,
.project-number,
.project-dimension {
  margin: 0 0 0.65rem;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eyebrow {
  color: #7a5a00;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.55rem, 5.2vw, 5rem);
  letter-spacing: -0.035em;
}

h2 {
  max-width: 28ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.7rem;
}

.hero-summary {
  max-width: 43rem;
  margin-bottom: 1.25rem;
  color: var(--slate-700);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.participants {
  margin-bottom: 1.75rem;
  color: var(--slate-700);
}

.participants span {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--navy-950);
  font-weight: 800;
}

.hero-actions,
.card-links,
.project-links,
.site-footer p:nth-child(2) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.68rem 1rem;
  color: var(--surface);
  background: var(--blue-700);
  border: 1px solid var(--blue-700);
  border-radius: 0.35rem;
  box-shadow: 0 0.35rem 0.8rem rgb(7 90 156 / 0.17);
  font-size: 0.93rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  color: var(--navy-950);
  background: var(--gold-500);
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--blue-700);
  background: transparent;
  border-color: var(--blue-700);
  box-shadow: none;
}

.nsf-logo {
  align-self: center;
  justify-self: center;
  width: min(100%, 20rem);
  max-width: 20rem;
  margin: 0 auto;
  aspect-ratio: 362 / 356;
  object-fit: contain;
}

.summary-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(1rem, 4vw, 3rem) 0 0;
  background: var(--navy-900);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.summary-strip div {
  min-width: 0;
  padding: 1.15rem 1.35rem;
  border-left: 1px solid rgb(255 255 255 / 0.16);
}

.summary-strip div:first-child {
  border-left: 0;
}

.summary-strip dt {
  margin-bottom: 0.18rem;
  color: var(--gold-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-strip dd {
  margin: 0;
  color: var(--surface);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.award-overview {
  max-width: 57rem;
  margin-left: max(1.5rem, calc((100% - var(--content)) / 2));
}

.section > p:not(.section-kicker) {
  max-width: 45rem;
  color: var(--slate-700);
}

.award-overview > p:not(.section-kicker) {
  padding-left: 1.35rem;
  border-left: 0.22rem solid var(--gold-500);
}

.projects {
  padding-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 0.35rem solid var(--blue-500);
  border-radius: var(--radius-lg);
  box-shadow: 0 0.65rem 1.5rem rgb(7 26 47 / 0.05);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.densetopo-card {
  border-top-color: var(--teal-600);
}

.ptunet-card {
  border-top-color: var(--blue-500);
}

.interpolation-card {
  border-top-color: var(--gold-500);
}

.project-wordmark {
  width: 100%;
  height: 3.7rem;
  margin-bottom: 1.3rem;
  object-fit: contain;
  object-position: left center;
}

.project-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3.7rem;
  margin-bottom: 1.3rem;
  padding: 0.65rem 0.8rem;
  color: var(--navy-900);
  background: rgb(215 174 56 / 0.12);
  border-left: 0.25rem solid var(--gold-500);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
}

.project-identity span {
  max-width: 10rem;
}

.project-identity strong {
  flex: 0 0 auto;
  color: #7a5a00;
  letter-spacing: 0.04em;
}

.project-dimension {
  margin-bottom: 0.55rem;
}

.densetopo-card .project-dimension {
  color: #076d64;
}

.ptunet-card .project-dimension {
  color: var(--blue-700);
}

.interpolation-card .project-dimension,
.interpolation-detail .project-number {
  color: #7a5a00;
}

.ptunet-detail .project-number::after {
  display: inline-block;
  width: 2.4rem;
  height: 0.2rem;
  margin: 0 0 0.2rem 0.65rem;
  content: "";
  background: var(--gold-500);
}

.project-card > p:not(.project-dimension):not(.card-links) {
  max-width: 40rem;
  color: var(--slate-700);
}

.tag-list,
.capability-list,
.team-list {
  padding: 0;
  list-style: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1.25rem;
}

.tag-list li {
  padding: 0.32rem 0.56rem;
  color: var(--blue-700);
  background: rgb(24 135 199 / 0.09);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.densetopo-card .tag-list li {
  color: #076d64;
  background: rgb(13 143 131 / 0.1);
}

.interpolation-card .tag-list li {
  color: #755a09;
  background: rgb(215 174 56 / 0.15);
}

.card-links {
  margin: auto 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  font-weight: 750;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.project-detail-intro {
  min-width: 0;
}

.project-number {
  margin-bottom: 0.5rem;
  color: var(--blue-700);
}

.densetopo-detail .project-number {
  color: #076d64;
}

.project-question {
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.45;
}

.project-detail-intro > p:not(.project-number):not(.project-question):not(.evidence-note):not(.project-links) {
  color: var(--slate-700);
}

.method-flow {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.method-flow li {
  position: relative;
  min-height: 2.7rem;
  padding: 0.68rem 0.85rem 0.68rem 3.25rem;
  color: var(--navy-900);
  background: rgb(7 90 156 / 0.07);
  border: 1px solid rgb(7 90 156 / 0.16);
  border-radius: 0.5rem;
  font-size: 0.91rem;
  font-weight: 750;
  line-height: 1.35;
  counter-increment: method;
}

.method-flow li::before {
  position: absolute;
  top: 50%;
  left: 0.72rem;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  color: var(--surface);
  content: counter(method);
  background: var(--blue-700);
  border-radius: 50%;
  font-size: 0.78rem;
  transform: translateY(-50%);
}

.densetopo-detail .method-flow li {
  background: rgb(13 143 131 / 0.07);
  border-color: rgb(13 143 131 / 0.2);
}

.densetopo-detail .method-flow li::before {
  background: #076d64;
}

.interpolation-detail .method-flow li {
  background: rgb(215 174 56 / 0.08);
  border-color: rgb(215 174 56 / 0.32);
}

.interpolation-detail .method-flow li::before {
  background: #7a5a00;
}

.capability-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.capability-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--slate-700);
  font-size: 0.94rem;
}

.capability-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 0.52rem;
  height: 0.52rem;
  content: "";
  background: var(--blue-500);
  border-radius: 50%;
}

.densetopo-detail .capability-list li::before {
  background: var(--teal-600);
}

.interpolation-detail .capability-list li::before {
  background: var(--gold-500);
}

.evidence-note {
  display: inline-block;
  margin-bottom: 1.3rem;
  padding: 0.38rem 0.62rem;
  color: #755a09;
  background: rgb(215 174 56 / 0.15);
  border: 1px solid rgb(215 174 56 / 0.45);
  border-radius: 0.35rem;
  font-size: 0.81rem;
  font-weight: 800;
  line-height: 1.3;
}

.project-links {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.architecture-figure {
  align-self: center;
  min-width: 0;
  margin: 0;
  padding: clamp(0.8rem, 2vw, 1.35rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: 0 0.65rem 1.5rem rgb(7 26 47 / 0.05);
}

.architecture-figure img {
  width: 100%;
  aspect-ratio: 15 / 8;
  object-fit: contain;
}

.ptunet-detail .architecture-figure img {
  aspect-ratio: 112 / 50;
}

.ptunet-detail .architecture-figure {
  border-bottom: 0.3rem solid var(--gold-500);
}

.architecture-figure figcaption {
  margin-top: 0.8rem;
  color: #526a80;
  font-size: 0.86rem;
  line-height: 1.45;
}

.research-comparison {
  border-top: 1px solid var(--rule);
}

.comparison-table {
  margin: 2rem 0 1.25rem;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: 0 0.65rem 1.5rem rgb(7 26 47 / 0.04);
}

.comparison-table:focus-visible {
  outline-offset: 0.25rem;
}

table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

thead th {
  color: var(--surface);
  background: var(--navy-900);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

thead th:nth-child(2) {
  color: #dff6f2;
}

thead th:nth-child(3) {
  color: #dceeff;
}

thead th:nth-child(4) {
  color: #fff0c2;
}

tbody th {
  width: 24%;
  color: var(--navy-900);
  background: rgb(7 26 47 / 0.025);
  font-size: 0.9rem;
}

tbody td {
  color: var(--slate-700);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.publication-record {
  align-self: center;
  min-width: 0;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.35rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 0.35rem solid var(--gold-500);
  border-radius: var(--radius-md);
  box-shadow: 0 0.65rem 1.5rem rgb(7 26 47 / 0.05);
}

.publication-venue {
  margin-bottom: 0.65rem;
  color: #7a5a00;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.publication-title {
  max-width: 48rem;
  margin-bottom: 1rem;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
}

.publication-title cite {
  font-style: normal;
}

.publication-authors,
.publication-meta {
  max-width: 50rem;
  color: var(--slate-700);
}

.publication-authors strong {
  color: var(--navy-950);
}

.publication-meta {
  margin-bottom: 1.25rem;
}

.team {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 70rem;
  margin: 2rem 0 0;
}

.team-member {
  position: relative;
  min-height: 5.8rem;
  padding: 2.2rem 1rem 1rem;
  color: var(--navy-900);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.team-member::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.75rem;
  height: 0.22rem;
  content: "";
  background: var(--gold-500);
}

.site-footer {
  padding: 3.25rem max(1.5rem, calc((100% - var(--content)) / 2));
  color: rgb(255 255 255 / 0.82);
  background: var(--navy-950);
  border-top: 0.35rem solid var(--gold-500);
  font-size: 0.91rem;
}

.site-footer p {
  max-width: 70rem;
  margin-bottom: 1rem;
}

.site-footer p:first-child {
  color: var(--surface);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 700;
}

.site-footer p:last-child {
  margin-bottom: 0;
  color: rgb(255 255 255 / 0.67);
}

.site-footer a {
  color: #9cd4f5;
  font-weight: 750;
}

.site-footer a:hover {
  color: var(--gold-500);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(3.5rem, 10vw, 5.5rem);
  }

  .nsf-logo {
    grid-row: 1;
    justify-self: start;
    width: 10.5rem;
    margin: 0;
  }

  .hero-content {
    grid-row: 2;
  }

  .project-card-grid {
    grid-template-columns: 1fr;
  }

  .project-detail,
  .team-list {
    grid-template-columns: 1fr;
  }

  .project-detail {
    gap: 2rem;
  }

  .architecture-figure {
    max-width: 50rem;
  }

  .research-comparison {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .comparison-table {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .comparison-table table {
    display: block;
    min-width: 0;
  }

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

  .comparison-table tbody {
    display: grid;
    gap: 0.85rem;
  }

  .comparison-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    box-shadow: 0 0.4rem 1rem rgb(7 26 47 / 0.04);
  }

  .comparison-table tbody th {
    grid-column: 1 / -1;
    width: auto;
    padding: 0.7rem 1rem;
    color: var(--surface);
    background: var(--navy-900);
    border-bottom: 1px solid var(--navy-900);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
  }

  .comparison-table tbody td {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border-bottom: 0;
  }

  .comparison-table tbody td + td {
    border-left: 1px solid var(--rule);
  }

  .comparison-table tbody td::before {
    color: #076d64;
    content: "DenseTopo-UNet";
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .comparison-table tbody td:nth-of-type(2)::before {
    color: var(--blue-700);
    content: "PTU-Net";
  }

  .comparison-table tbody td:nth-of-type(3)::before {
    color: #755a09;
    content: "Quantization-Aware Interpolation";
  }
}

@media (max-width: 560px) {
  body {
    font-size: 0.96rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .site-header nav {
    justify-content: flex-start;
    width: 100%;
    gap: 0.2rem 0.9rem;
  }

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

  .hero,
  .section,
  .project-detail {
    width: min(calc(100% - 2rem), var(--content));
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.25rem);
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .summary-strip {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .summary-strip div {
    padding: 0.9rem 1rem;
    border-top: 1px solid rgb(255 255 255 / 0.16);
    border-left: 0;
  }

  .summary-strip div:first-child {
    border-top: 0;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-wordmark {
    height: 3rem;
  }

  .comparison-table tbody tr {
    grid-template-columns: 1fr;
  }

  .comparison-table tbody td + td {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .site-footer {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

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

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