:root {
  color-scheme: light;
  --ink: #14223b;
  --muted: #68748b;
  --paper: #f8faff;
  --mist: #edf3fb;
  --line: #d7dfed;
  --teal: #087f8c;
  --teal-dark: #075466;
  --red: #ec6b56;
  --gold: #ef9f4d;
  --green: #4a8b7d;
  --night: #061326;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(7, 21, 20, 0.14);
  --radius: 8px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

section[id] {
  scroll-margin-top: 76px;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(4, 16, 16, 0.76), rgba(4, 16, 16, 0.28));
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius);
  color: var(--night);
  background: var(--white);
  font-size: 0.86rem;
}

.nav-links {
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  display: flex;
  min-height: 76svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 112px clamp(18px, 5vw, 72px) 64px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 12, 27, 0.08), rgba(3, 12, 27, 0.02) 48%, rgba(3, 12, 27, 0.1)),
    linear-gradient(180deg, rgba(3, 12, 27, 0.02), rgba(3, 12, 27, 0.12)),
    url("./images/cityrise-hero-v3.png") center / cover no-repeat,
    var(--night);
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
  width: min(1280px, 100%);
  margin: 0 auto;
  justify-items: center;
}

.hero-content {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kicker,
.section-label,
.metric-tile span {
  margin: 0;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  width: 100%;
  max-width: 1280px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-title-line {
  display: block;
}

.venue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  padding: 8px 14px;
  color: var(--white);
  background: rgba(7, 21, 20, 0.62);
  box-shadow: 0 12px 32px rgba(7, 21, 20, 0.22);
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.subtitle {
  margin: 18px 0 0;
  font-size: clamp(1.55rem, 4vw, 3rem);
  font-weight: 780;
  line-height: 1.05;
  max-width: 760px;
}

.authors {
  width: 100%;
  max-width: 1280px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.35;
  white-space: nowrap;
}

.affiliations,
.corresponding-note {
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.72);
}

.affiliations {
  display: grid;
  gap: 6px;
  max-width: 1080px;
  font-size: 1.12rem;
}

.affiliation-row {
  display: block;
  width: 100%;
}

.corresponding-note {
  font-size: 1.05rem;
}

.hero-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 17px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  background: var(--teal);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button-dark {
  color: var(--white);
  background: var(--teal-dark);
}

.button-dark:hover {
  background: var(--teal);
}

.button-light {
  color: var(--teal-dark);
  border-color: var(--line);
  background: var(--white);
}

.button-light:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.intro-band {
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.more-work-float {
  position: fixed;
  top: 82px;
  right: clamp(14px, 3vw, 42px);
  z-index: 19;
  width: 172px;
  color: var(--ink);
  filter: drop-shadow(0 16px 28px rgba(3, 12, 27, 0.22));
  transition: width 180ms ease;
}

.more-work-float[open] {
  width: 390px;
}

.more-work-float summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--white);
  background: linear-gradient(115deg, rgba(8, 84, 102, 0.88), rgba(6, 19, 38, 0.95) 58%, rgba(68, 42, 75, 0.9));
  cursor: pointer;
  list-style: none;
  backdrop-filter: blur(14px);
}

.more-work-float summary::-webkit-details-marker {
  display: none;
}

.more-work-summary-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  color: #8de5e9;
  background: rgba(255, 255, 255, 0.08);
}

.more-work-summary-icon svg,
.more-work-project-icon svg,
.more-work-chevron,
.more-work-external {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.more-work-summary-icon svg {
  width: 18px;
  height: 18px;
}

.more-work-summary-text {
  min-width: 0;
  flex: 1;
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.2;
}

.more-work-open {
  display: none;
}

.more-work-open em {
  display: block;
  margin-top: 2px;
  color: #9be7e7;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
}

.more-work-float[open] .more-work-closed {
  display: none;
}

.more-work-float[open] .more-work-open {
  display: block;
}

.more-work-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform 160ms ease;
}

.more-work-float[open] .more-work-chevron {
  transform: rotate(180deg);
}

.more-work-float nav {
  display: grid;
  gap: 7px;
  overflow: hidden;
  margin-top: 7px;
  max-height: calc(100vh - 145px);
  overflow-y: auto;
  border: 1px solid rgba(198, 215, 226, 0.9);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(247, 251, 255, 0.96);
  backdrop-filter: blur(16px);
}

.more-work-float nav a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 104px;
  border: 1px solid rgba(26, 80, 98, 0.12);
  border-radius: 7px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(20, 34, 59, 0.045);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.more-work-float nav a:hover,
.more-work-float nav a:focus-visible {
  border-color: rgba(8, 127, 140, 0.42);
  box-shadow: 0 12px 26px rgba(20, 34, 59, 0.1);
  transform: translateY(-2px);
}

.more-work-project-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: var(--teal-dark);
  background: linear-gradient(145deg, #e5f8f8, #f4fbff);
}

.more-work-project-icon.icon-bench {
  color: #9b5c38;
  background: linear-gradient(145deg, #fff1e2, #fff9f2);
}

.more-work-project-icon.icon-urban {
  color: #625194;
  background: linear-gradient(145deg, #eee9ff, #faf8ff);
}

.more-work-project-icon.icon-gpt {
  color: #30715d;
  background: linear-gradient(145deg, #e5f5ec, #f5fcf8);
}

.more-work-project-icon svg {
  width: 24px;
  height: 24px;
}

.more-work-project-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.more-work-project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.more-work-project-top strong {
  font-size: 0.98rem;
}

.more-work-project-top > span {
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--teal-dark);
  background: var(--mist);
  font-size: 0.62rem;
  font-weight: 850;
  white-space: nowrap;
}

.more-work-project-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.more-work-external {
  width: 17px;
  height: 17px;
  color: #799098;
  transition: color 160ms ease, transform 160ms ease;
}

.more-work-float nav a:hover .more-work-external,
.more-work-float nav a:focus-visible .more-work-external {
  color: var(--teal);
  transform: translate(1px, -1px);
}

.intro-layout,
.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-layout {
  max-width: 1060px;
  padding: clamp(34px, 5vw, 54px) 0;
  text-align: center;
}

.intro-layout h2,
.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.intro-layout p:last-child,
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-layout p.abstract-copy {
  max-width: 1060px;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.56;
}

.section {
  padding: clamp(34px, 5vw, 58px) 0;
}

.section-heading {
  margin: 0 auto clamp(16px, 3vw, 28px);
  max-width: 840px;
  text-align: center;
}

.section-heading p {
  margin: 12px auto 0;
}

.benchmark-heading {
  max-width: 1060px;
}

.benchmark-heading p,
.methods-section .section-heading p,
.citation {
  max-width: 1060px;
  font-size: 1.16rem;
  line-height: 1.62;
}

.benchmark-heading p {
  color: var(--ink);
}

.methods-section .section-heading p {
  color: var(--ink);
}

.methods-section > .section-heading > p:not(.section-label) {
  color: var(--ink) !important;
}

.intro-layout > .section-label,
.section-heading > .section-label {
  color: var(--gold);
  font-size: 1.28rem;
  line-height: 1.2;
}

.methods-section .section-heading,
.citation-section .section-heading {
  max-width: 1060px;
}

.metric-grid,
.method-grid {
  display: grid;
  gap: 14px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-tile,
.method-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 45px rgba(16, 32, 34, 0.06);
}

.metric-tile {
  padding: 20px;
}

.metric-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.15;
}

.metric-tile p,
.method-card p,
.indicator-panel p,
.citation {
  margin: 10px 0 0;
  color: var(--muted);
}

.content-figure {
  width: min(900px, 100%);
  margin: clamp(16px, 3vw, 26px) auto 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.content-figure img {
  width: 100%;
  background: transparent;
  border-radius: var(--radius);
}

.content-figure figcaption {
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.paper-callout {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(18px, 3.5vw, 34px);
  align-items: center;
  margin-top: clamp(18px, 3vw, 30px);
}

.paper-callout-reverse .paper-figure {
  order: 2;
}

.methods-callout {
  grid-template-columns: minmax(250px, 0.62fr) minmax(520px, 1.38fr);
}

.paper-figure {
  width: 100%;
  margin: 0;
}

.paper-copy h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.paper-copy p {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.58;
}

.indicator-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  gap: clamp(12px, 2.4vw, 24px);
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(10px, 1.8vw, 14px);
  background: linear-gradient(135deg, #ffffff 0%, #f4f0e8 100%);
}

.indicator-panel .section-label {
  font-size: 0.92rem;
}

.indicator-panel h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  line-height: 1.12;
}

.indicator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
}

.indicator-list span {
  border: 1px solid #d1d9d4;
  border-radius: var(--radius);
  padding: 4px 7px;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
}

.indicator-list .indicator-row-break {
  flex-basis: 100%;
  width: 0;
  height: 0;
  border: 0;
  padding: 0;
}

.methods-section {
  width: 100%;
  max-width: none;
  border-block: 1px solid var(--line);
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: #f3f6fc;
}

.methods-section .section-heading,
.methods-section .method-grid {
  width: min(1180px, 100%);
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.method-card {
  min-height: 250px;
  padding: 26px;
}

.method-index {
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 900;
}

.method-card h3 {
  margin: 18px 0 0;
  font-size: 1.32rem;
  line-height: 1.15;
}

.method-mini-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.method-mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16, 32, 34, 0.05);
}

.method-mini-card h4 {
  margin: 6px 0 0;
  font-size: 0.94rem;
  line-height: 1.2;
}

.method-mini-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.38;
}

.poster-section {
  border-top: 1px solid var(--line);
}

.poster-preview,
.results-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.poster-preview {
  margin: 0;
}

.poster-preview img {
  width: 100%;
  background: var(--white);
}

.poster-preview figcaption {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding: 14px;
  background: var(--white);
}

.figures-section {
  border-top: 1px solid var(--line);
  background: var(--mist);
}

.results-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  background: var(--white);
}

.results-heading {
  max-width: 960px;
}


.results-tab {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--teal-dark);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
}

.results-tab[aria-selected="true"] {
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
}

.results-list {
  display: grid;
  gap: 0;
}

.result-module {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(18px, 3vw, 30px);
  background: var(--white);
}

.result-module + .result-module {
  border-top: 1px solid var(--line);
}

.result-module-copy {
  max-width: 1040px;
}

.result-module-copy h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.58rem);
  line-height: 1.2;
}

.result-module-copy p:last-child {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.56;
}

.result-figure-grid {
  display: grid;
  gap: clamp(16px, 3vw, 26px);
}

.result-figure-grid-multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-module-errors-finetuning .result-figure-grid-multiple {
  align-items: center;
}

.result-figure {
  margin: 0;
}

.result-figure-media {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.result-image-link {
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 16px);
  background: transparent;
}

.result-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 640px;
  object-fit: contain;
}

.result-figure-smallest .result-figure-media {
  max-width: 75%;
}

.result-figure-smaller .result-figure-media {
  max-width: 80%;
}

.result-figure-compact .result-figure-media {
  max-width: 56%;
}

.result-figure-compact img {
  max-height: 480px;
}

.result-figure figcaption {
  padding: 8px 4px 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.gallery-empty {
  border-top: 1px solid var(--line);
  padding: 16px;
  color: var(--muted);
}

.gallery-empty code {
  border-radius: 5px;
  padding: 2px 5px;
  background: var(--mist);
}

.citation-section {
  border-top: 1px solid var(--line);
  padding-bottom: clamp(38px, 5vw, 62px);
}

.citation {
  max-width: 1060px;
  margin-top: 18px;
}

.bibtex-panel {
  position: relative;
}

.citation-copy {
  position: absolute;
  top: 30px;
  right: 12px;
  z-index: 1;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.bibtex {
  max-width: 100%;
  margin: 18px 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 18px 18px;
  color: #dcefed;
  background: var(--night);
  font-size: 0.9rem;
  line-height: 1.45;
}

.bibtex code {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 106px;
  }

  .intro-layout,
  .indicator-panel,
  .paper-callout {
    grid-template-columns: 1fr;
  }

  .paper-callout-reverse .paper-figure {
    order: 0;
  }

  .methods-callout {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .method-grid,
  .result-figure-grid-multiple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 620px) {
  .hero-title {
    font-size: 1.55rem;
  }

  .metric-grid,
  .method-grid,
  .result-figure-grid-multiple {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .citation-copy {
    width: fit-content;
  }

  .authors {
    white-space: normal;
    font-size: 0.98rem;
  }

  .affiliations {
    font-size: 0.88rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .indicator-list .indicator-row-break {
    display: none;
  }

  .more-work-float {
    top: 76px;
    right: 12px;
    width: 160px;
  }

  .more-work-float[open] {
    width: min(372px, calc(100vw - 24px));
  }

  .result-figure-smallest .result-figure-media,
  .result-figure-smaller .result-figure-media,
  .result-figure-compact .result-figure-media {
    max-width: 100%;
  }
}

.methods-section .section-heading .methods-copy {
  color: var(--ink) !important;
}

.methods-section .section-heading > .section-label {
  color: var(--gold) !important;
}

.framework-figure {
  width: min(1060px, 100%);
}

.reward-callout {
  grid-template-columns: minmax(320px, 1.3fr) minmax(280px, 0.7fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  background: var(--white);
}

.reward-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reward-pills span {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid #b9cfde;
  border-radius: var(--radius);
  padding: 12px;
  color: var(--teal-dark);
  background: linear-gradient(135deg, #effbfc, #fff5ec);
  font-weight: 850;
  text-align: center;
}

@media (max-width: 900px) {
  .reward-callout { grid-template-columns: 1fr; }
}
