:root {
  --background: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #edf2fa;
  --border: #dce3ee;
  --text: #202124;
  --muted: #5f6368;
  --link: #1a73e8;
  --link-hover: #0b57d0;
  --max-width: 1120px;
  --shadow: 0 12px 40px rgba(32, 33, 36, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 2rem 0 1.25rem;
}

.site-header-home {
  padding-top: 1.5rem;
}

.site-title a {
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-title a:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--muted);
  padding: 0.62rem 0.92rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  text-decoration: none;
  border-color: #c7d2e5;
  background: #ffffff;
}

.site-nav a.is-current {
  color: var(--link-hover);
  font-weight: 700;
  border-color: #bfd3fb;
  background: #eaf2ff;
}

.main-column {
  padding-top: 1rem;
}

.home-intro {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 320px;
  gap: 2.5rem;
  align-items: center;
}

.intro-copy h1,
.page-intro h1,
.content-section h2,
.home-card h2,
.subsection h2,
.subsection h3 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.intro-copy h1,
.page-intro h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
}

.page-title-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.page-title-home {
  justify-content: flex-start;
}

.section-heading-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-heading-with-image {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.section-thumb {
  width: 3.15rem;
  height: 3.15rem;
  flex-shrink: 0;
  position: relative;
}

.section-thumb:not(.section-thumb-composite) img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(32, 33, 36, 0.12));
}

.section-thumb-composite {
  width: 4.1rem;
  height: 3.5rem;
}

.section-thumb-piece {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(32, 33, 36, 0.12));
}

.section-thumb-piece-primary {
  left: 0;
  top: 0.15rem;
  width: 2.55rem;
  height: 2.55rem;
  z-index: 2;
}

.section-thumb-piece-secondary {
  right: 0;
  bottom: 0;
  width: 2.2rem;
  height: 2.2rem;
  z-index: 1;
}

.title-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--link-hover);
}

.title-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--link-hover);
}

.section-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-icon-science,
.section-icon-texture,
.section-icon-biology,
.section-icon-physics {
  color: #137333;
  background: #eef8f0;
  border-color: #cde8d2;
}

.section-icon-systems,
.section-icon-code,
.section-icon-foundations {
  color: #185abc;
  background: #eef4ff;
  border-color: #c9dafc;
}

.project-heading-with-icon {
  align-items: flex-start;
}

.project-heading-with-icon .section-icon {
  margin-top: 0.1rem;
}

.intro-copy {
  text-align: left;
}

.intro-role,
.page-role {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-statement {
  margin: 0.9rem 0 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  list-style: none;
}

.hero-chips a {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-chips a:hover {
  text-decoration: none;
  border-color: #c7d2e5;
  background: #ffffff;
}

.portrait-column {
  justify-self: end;
  width: 100%;
}

.portrait-column img {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 3rem auto 0;
  max-width: var(--max-width);
}

.home-card,
.panel,
.subsection,
.side-note {
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.home-card h2 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.home-card p,
.publication-list p,
.section-note,
.page-intro p,
.subsection p,
.side-note p,
.group-list p,
.link-list p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.content-section,
.page-intro,
.page-layout,
.subsection-stack {
  margin-top: 3rem;
}

.home-record-strip {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.65rem;
}

.record-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(32, 33, 36, 0.05);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.record-link:hover {
  color: var(--text);
  text-decoration: none;
  border-color: #c7d2e5;
  background: #ffffff;
  transform: translateY(-1px);
}

.record-logo {
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.record-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.record-logo-technion {
  width: 1.3rem;
  height: 1.3rem;
}

.record-logo-scholar {
  width: 1.2rem;
  height: 1.2rem;
}

.record-label {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.home-card-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.home-card-link:hover {
  color: inherit;
  text-decoration: none;
  border-color: #c7d2e5;
  background: #ffffff;
}

.home-grid .home-card {
  padding: 1.1rem 1rem;
}

.home-grid .home-card p {
  font-size: 0.94rem;
  line-height: 1.55;
}

.home-card-cta {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--link-hover);
  font-size: 0.92rem;
  font-weight: 700;
}

.inline-topic-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(26, 115, 232, 0.35);
  text-underline-offset: 0.16em;
}

.inline-topic-link:hover {
  color: var(--link-hover);
}

.content-section h2,
.subsection h2,
.subsection h3 {
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
}

.page-layout {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.research-layout {
  max-width: var(--max-width);
}

.page-main {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.research-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.research-track {
  display: grid;
  gap: 0.95rem;
  grid-template-rows: auto auto 1fr;
  height: 100%;
}

.research-track p,
.research-track .summary-list {
  margin-top: 0;
}

.research-track-copy {
  display: grid;
  gap: 0.95rem;
  align-content: start;
  min-height: 23.5rem;
}

.research-track-science .research-track-copy {
  font-size: 0.96rem;
  line-height: 1.58;
}

#ai-for-systems .research-track-copy {
  font-size: 0.94rem;
  line-height: 1.54;
}

.research-track-copy .summary-list {
  margin-bottom: 0;
}

.research-projects {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.research-projects h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.research-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-project-links li {
  margin: 0;
}

.research-project-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.research-project-links a:hover {
  text-decoration: none;
  border-color: #c7d2e5;
  background: #ffffff;
}

.page-side {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1rem;
}

.project-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.4rem;
  align-items: start;
  margin-bottom: 1.1rem;
}

.project-copy > *:first-child {
  margin-top: 0;
}

.project-visual img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.projects-root {
  display: grid;
  gap: 1rem;
}

.projects-carousel-shell {
  display: grid;
  gap: 1rem;
  position: relative;
}

.projects-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.projects-carousel-buttons {
  display: inline-flex;
  justify-content: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.projects-carousel-button {
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.projects-carousel-button:hover:not(:disabled) {
  border-color: #c7d2e5;
  background: #ffffff;
}

.projects-carousel-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.projects-carousel-window {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  cursor: grab;
  isolation: isolate;
}

.projects-carousel-window::before,
.projects-carousel-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.45rem;
  z-index: 2;
  pointer-events: none;
}

.projects-carousel-window::before {
  left: 0;
  background: linear-gradient(90deg, var(--background) 0%, rgba(245, 247, 251, 0.92) 38%, rgba(245, 247, 251, 0) 100%);
}

.projects-carousel-window::after {
  right: 0;
  background: linear-gradient(270deg, var(--background) 0%, rgba(245, 247, 251, 0.92) 38%, rgba(245, 247, 251, 0) 100%);
}

.projects-carousel-window.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.projects-carousel-window::-webkit-scrollbar {
  display: none;
}

.projects-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  padding: 0 0.55rem 0.2rem;
  align-items: stretch;
}

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

.projects-loading {
  color: var(--muted);
}

.project-section {
  display: grid;
  gap: 1.15rem;
}

.project-card {
  display: grid;
  gap: 0.85rem;
}

.project-card-carousel {
  min-width: 0;
  padding: 1.2rem;
  scroll-snap-align: start;
  grid-template-rows: auto 8.2rem auto 1fr;
  align-content: start;
}

.project-card h2 {
  font-size: 1.45rem;
  line-height: 1.22;
}

.project-card .section-heading-with-icon span:last-child {
  display: inline-block;
}

.project-card p,
.project-card .summary-list {
  margin-top: 0;
}

.project-eyebrow {
  margin: 0;
  color: var(--link-hover);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-header {
  display: grid;
  gap: 0.8rem;
  grid-template-rows: minmax(5.2rem, auto) minmax(7.8rem, auto);
  align-content: start;
}

.project-card-visual {
  margin: 0;
  display: grid;
  place-items: center;
  height: 8.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfcff 0%, #eef3fb 100%);
}

.project-card-visual img {
  width: min(5.6rem, 100%);
  height: min(5.6rem, 100%);
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(32, 33, 36, 0.12));
}

.project-header h2 {
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.project-header p {
  margin: 0;
}

.project-paper-window {
  max-height: 42rem;
  overflow-y: auto;
  padding-right: 0.25rem;
  display: grid;
  gap: 0.85rem;
  scroll-behavior: smooth;
}

.project-paper-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-soft);
  overflow: hidden;
}

.project-paper-card[open] {
  background: var(--surface);
}

.project-paper-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
}

.project-paper-summary::-webkit-details-marker {
  display: none;
}

.project-paper-copy {
  display: block;
  min-width: 0;
}

.project-paper-title {
  display: block;
  font-size: 1.1rem;
  line-height: 1.32;
  font-weight: 800;
  color: var(--text);
}

.project-paper-text {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

.project-paper-toggle {
  align-self: center;
  justify-self: end;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--link-hover);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.project-paper-card[open] .project-paper-toggle::after {
  content: "Close";
}

.project-paper-card:not([open]) .project-paper-toggle::after {
  content: "Details";
}

.project-paper-body {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}

.project-paper-body p {
  margin: 0;
}

.project-paper-link a {
  font-weight: 700;
}

.paper-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-soft);
  overflow: hidden;
}

.paper-card[open] {
  background: var(--surface);
}

.paper-card summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
}

.paper-card summary::-webkit-details-marker {
  display: none;
}

.paper-thumb {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.paper-thumb img {
  width: 100%;
  aspect-ratio: 0.77 / 1;
  object-fit: contain;
  object-position: top center;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
}

.paper-thumb-caption {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.paper-thumb-static {
  cursor: default;
}

.paper-thumb-placeholder {
  width: 100%;
  aspect-ratio: 0.77 / 1;
  display: grid;
  place-items: center;
  padding: 0.8rem;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: #f3f6fb;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.paper-summary-copy {
  min-width: 0;
}

.paper-summary-copy h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.paper-summary-copy p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.paper-chipline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.paper-chipline .publication-year,
.paper-venue-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.paper-venue-chip {
  color: var(--muted);
  background: var(--surface);
}

.paper-summary-toggle {
  align-self: center;
  justify-self: end;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--link-hover);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.paper-card[open] .paper-summary-toggle::after {
  content: "Close";
}

.paper-card:not([open]) .paper-summary-toggle::after {
  content: "Details";
}

.paper-card-body {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}

.paper-card-body p {
  margin: 0;
}

.paper-card-body strong {
  color: var(--text);
}

.paper-card-link a {
  font-weight: 700;
}

.paper-lightbox {
  width: min(92vw, 960px);
  max-width: 960px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 90px rgba(32, 33, 36, 0.2);
}

.paper-lightbox::backdrop {
  background: rgba(32, 33, 36, 0.58);
}

.paper-lightbox-close {
  display: inline-flex;
  margin-left: auto;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.paper-lightbox-figure {
  margin: 1rem 0 0;
}

.paper-lightbox-figure img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #f4f6fa;
}

.paper-lightbox-figure figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.summary-list,
.link-list,
.group-list,
.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.summary-list li,
.group-list li,
.plain-list li,
.link-list li {
  margin: 0.4rem 0;
}

.publication-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.publication-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}

.publication-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.publication-year {
  color: var(--muted);
  font-weight: 700;
}

.publication-list a {
  color: var(--text);
  font-weight: 600;
}

.compact-list li {
  grid-template-columns: 64px minmax(0, 1fr);
}

.compact-list p {
  font-size: 0.98rem;
}

.section-note {
  margin-top: 0.9rem;
}

.category-heading {
  margin: 2rem 0 0.6rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.category-note {
  margin: 0 0 1rem;
  color: var(--muted);
}

.group-name {
  color: var(--text);
  font-weight: 600;
}

.small-note {
  color: var(--muted);
  font-size: 0.96rem;
}

.content-section {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.publication-accordion {
  display: grid;
  gap: 1rem;
}

.publication-group {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.publication-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  gap: 1rem;
}

.publication-group-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.publication-toggle {
  flex-shrink: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--link-hover);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.publication-window {
  max-height: 17rem;
  overflow-y: auto;
  padding: 0 1.2rem 1rem;
}

.publication-group.is-expanded .publication-window {
  max-height: none;
  overflow: visible;
}

.publication-window .publication-list {
  padding: 0;
}

.publication-window::after {
  display: block;
  height: 0.15rem;
  content: "";
}

.page-intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.publication-root,
.publication-card-stack {
  display: grid;
  gap: 1rem;
}

.publication-portal {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 1rem;
}

.publication-hero {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.publication-hero:hover {
  color: var(--text);
  text-decoration: none;
  border-color: #c7d2e5;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.publication-hero-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.publication-hero-badge,
.publication-hero-url {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.publication-hero-badge {
  color: var(--link-hover);
  background: #eaf2ff;
}

.publication-hero-url {
  color: var(--muted);
  background: var(--surface);
}

.publication-hero-body {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.publication-hero-brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.publication-hero-brand .record-logo {
  width: 2.75rem;
  height: 2.75rem;
}

.publication-hero-brand h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.08;
}

.publication-hero-brand p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.publication-hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid #bfd3fb;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--link-hover);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.publication-embed-note {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.publication-secondary-card {
  display: grid;
  gap: 0.4rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.publication-secondary-card:hover {
  color: var(--text);
  text-decoration: none;
  border-color: #c7d2e5;
  background: #ffffff;
}

.publication-secondary-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.publication-secondary-headline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.record-logo-dblp,
.record-logo-researchgate {
  width: 1.35rem;
  height: 1.35rem;
}

.publication-secondary-card p {
  margin: 0;
  color: var(--muted);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
}

.link-list li {
  margin: 0;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

@media (max-width: 1080px) {
  .home-record-strip {
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .home-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portrait-column {
    justify-self: start;
  }

  .publication-group-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .projects-carousel-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }

  .projects-carousel-controls {
    align-items: center;
    flex-direction: column;
  }

  .project-header {
    grid-template-rows: minmax(5.8rem, auto) minmax(8.8rem, auto);
  }

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

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

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

  .paper-summary-toggle {
    justify-self: start;
  }

  .project-paper-toggle {
    justify-self: start;
  }

  .paper-thumb img {
    max-width: 240px;
  }

  .research-columns {
    grid-template-columns: 1fr;
  }

  .research-track {
    grid-template-rows: auto auto auto;
  }

  .research-track-copy {
    min-height: 0;
  }

  .projects-simple-grid {
    grid-template-columns: 1fr;
  }

  .publication-hero-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .publication-secondary-grid {
    grid-template-columns: 1fr;
  }

  .page-title-with-icon {
    gap: 0.65rem;
  }

  .title-icon {
    width: 1.9rem;
    height: 1.9rem;
  }

  .section-icon {
    width: 1.85rem;
    height: 1.85rem;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    gap: 0.75rem;
    padding: 1.35rem 0 1rem;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 0.45rem;
  }

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

  .intro-role,
  .page-role {
    font-size: 0.98rem;
  }

  .intro-statement {
    font-size: 1.08rem;
    line-height: 1.22;
  }

  .section-thumb {
    width: 2.75rem;
    height: 2.75rem;
  }

  .section-thumb-composite {
    width: 3.65rem;
    height: 3rem;
  }

  .section-thumb-piece-primary {
    width: 2.25rem;
    height: 2.25rem;
  }

  .section-thumb-piece-secondary {
    width: 1.95rem;
    height: 1.95rem;
  }

  .home-record-strip {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .record-link {
    padding: 0.5rem 0.72rem;
  }

  .record-label {
    font-size: 0.88rem;
  }

  .projects-carousel-track {
    grid-auto-columns: 100%;
  }

  .projects-carousel-window::before,
  .projects-carousel-window::after {
    width: 1.7rem;
  }

  .project-header {
    grid-template-rows: auto auto;
  }

  .publication-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .paper-lightbox {
    width: min(calc(100% - 1rem), 960px);
    padding: 0.75rem;
  }

  .content-section,
  .page-intro,
  .page-layout,
  .subsection-stack {
    margin-top: 2rem;
  }
}
