:root {
  --accent-hue: 222;
  --accent-saturation: 85%;
  --accent-lightness: 56%;
  --project-break-small: 641px;
  --project-break-medium: 1008px;
}

html {
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--global-bg, #f6f8fb);
  color: var(--global-text, #1f2933);
  line-height: 1.7;
}

.wrapper {
  max-width: min(1280px, 92vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-header {
  background: linear-gradient(
    145deg,
    rgba(37, 99, 235, 0.12),
    rgba(14, 165, 233, 0.08)
  );
  padding: 2.5rem 0 2rem;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.hero__eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 99, 235, 0.9);
  font-weight: 600;
}

.hero__title {
  font-size: clamp(1.9rem, 2.2vw + 1.1rem, 3rem);
  font-weight: 700;
  margin: 0;
  color: #0f172a;
  max-width: min(90vw, 920px);
}

@media (max-width: 640px) {
  .hero__title {
    max-width: 100%;
  }
}

.hero__subtitle {
  max-width: min(90vw, 58ch);
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.15rem);
  color: rgba(15, 23, 42, 0.88);
  line-height: 1.6;
  margin-right: 0;
}

@media (max-width: 1024px) {
  .hero__subtitle {
    max-width: min(94vw, 60ch);
  }
}

@media (max-width: 720px) {
  .hero__subtitle {
    max-width: 100%;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.btn--primary {
  background: hsl(
    var(--accent-hue),
    var(--accent-saturation),
    var(--accent-lightness)
  );
  color: #fff;
  box-shadow: 0 18px 30px -18px rgba(37, 99, 235, 0.65);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px -16px rgba(37, 99, 235, 0.7);
}

.btn--ghost {
  border: 1.5px solid rgba(37, 99, 235, 0.35);
  color: rgba(15, 23, 42, 0.8);
  background: rgba(255, 255, 255, 0.8);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(37, 99, 235, 0.6);
  color: rgba(15, 23, 42, 0.95);
  transform: translateY(-2px);
}

.paper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.paper-link:hover,
.paper-link:focus-visible {
  background: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -26px rgba(37, 99, 235, 0.55);
  color: #0f172a;
  outline: none;
}

.landing-main {
  padding: 1.125rem 0 0.625rem;
}

.section-intro {
  text-align: center;
  max-width: 750px;
  margin: 0.375rem auto 0.625rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-subtitle {
  color: rgba(15, 23, 42, 0.85);
  margin: 0;
}

.project-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  width: 100%;
  max-width: calc(4 * 320px + 3 * 1.25rem);
  margin: 0 auto;
}

.project-card {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 45px -30px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 320px;
  margin: 0 auto;
  overflow: visible;
}

.project-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.project-card__link:hover,
.project-card__link:focus-visible {
  text-decoration: none;
}

.project-card__figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
}

.project-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(110%);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.project-card__content {
  padding: 1.5rem 1.5rem 5.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-card__title {
  font-size: 1.35rem;
  margin: 0;
  color: #0f172a;
}

.project-card__description {
  margin: 0;
  color: rgba(15, 23, 42, 0.88);
}

.project-card__badges {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  pointer-events: auto;
}

.project-card__badge {
  --badge-start: #1d4ed8;
  --badge-end: #1e3a8a;
  --badge-shadow: rgba(30, 64, 175, 0.35);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, var(--badge-start), var(--badge-end));
  box-shadow: 0 10px 18px -12px var(--badge-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  pointer-events: auto;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.3);
  cursor: pointer;
}

.project-card__badge:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.45);
}

.project-card__badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0) 65%
  );
  opacity: 0.85;
  z-index: 0;
}

/* create a subtle inner ring without leaving the card bounds */
.project-card__badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22);
  mix-blend-mode: soft-light;
  z-index: 0;
}

.project-card__badge-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: inherit;
}

.project-card__badge--winner {
  --badge-start: #fde68a;
  --badge-end: #f59e0b;
  --badge-shadow: rgba(245, 158, 11, 0.45);
  color: #2e1b00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.project-card__badge--publication {
  --badge-start: #a855f7;
  --badge-end: #7c3aed;
  --badge-shadow: rgba(124, 58, 237, 0.45);
}

.project-card__badge--product {
  --badge-start: #2dd4bf;
  --badge-end: #0f766e;
  --badge-shadow: rgba(15, 118, 110, 0.45);
}

.project-card__badge--product-prototype {
  --badge-start: #38bdf8;
  --badge-end: #2563eb;
  --badge-shadow: rgba(37, 99, 235, 0.4);
}

.project-card__badge--policy {
  --badge-start: #f97316;
  --badge-end: #c2410c;
  --badge-shadow: rgba(194, 65, 12, 0.45);
}

.project-card__badge--media {
  --badge-start: #fda4af;
  --badge-end: #db2777;
  --badge-shadow: rgba(219, 39, 119, 0.4);
}

.project-card__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.84);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 30px 55px -30px rgba(15, 23, 42, 0.5);
}

.project-card__link:hover .project-card__title,
.project-card__link:hover .project-card__description,
.project-card__link:focus-visible .project-card__title,
.project-card__link:focus-visible .project-card__description {
  text-decoration: none;
}

.project-card:hover .project-card__figure img,
.project-card:focus-within .project-card__figure img {
  transform: scale(1.05);
}

.landing-secondary {
  padding: 2rem 0 2.5rem;
}

.callout {
  background: radial-gradient(
    circle at top left,
    rgba(37, 99, 235, 0.14),
    rgba(14, 165, 233, 0.08)
  );
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 50px -35px rgba(15, 23, 42, 0.55);
  display: grid;
  gap: 1.25rem;
}

.callout__title {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin: 0;
}

.callout__description {
  margin: 0;
  color: rgba(15, 23, 42, 0.85);
}

.site-footer {
  padding: 1.5rem 0 3rem;
  text-align: center;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.95rem;
}

.site-footer__text {
  margin: 0;
}

/* Project detail pages */
.project-site-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.project-site-header__inner {
  display: flex;
  justify-content: center;
  padding: 0.65rem 0;
}

.project-site-header__brand {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(30, 41, 59, 0.85);
  text-decoration: none;
}

.project-site-header__brand:hover,
.project-site-header__brand:focus-visible {
  color: rgba(37, 99, 235, 0.9);
}

.project-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.project-site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2.25rem;
  background: rgba(15, 23, 42, 0.04);
}

.project-site-footer__inner {
  display: flex;
  justify-content: center;
}

.project-site-footer__text {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 41, 59, 0.65);
}

.project-site-footer__text strong {
  font-weight: 600;
  color: rgba(30, 41, 59, 0.78);
}

.project-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(
    150deg,
    rgba(37, 99, 235, 0.16),
    rgba(14, 165, 233, 0.08)
  );
}

.project-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3rem);
}
html.theme-dark .project-hero__title {
  color: #ffffff;
}

.project-hero__subtitle {
  margin: 0;
  max-width: 780px;
  color: rgba(15, 23, 42, 0.88);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: rgba(37, 99, 235, 0.9);
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: rgba(37, 99, 235, 1);
}

.project-body {
  padding: 3rem 0 4rem;
}

.project-body__grid {
  display: grid;
  gap: 2.5rem;
}

.project-body__sidebar,
.project-body__main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1008px) {
  .project-body__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
    gap: 3rem;
  }
  .project-body__sidebar {
    max-width: none;
    width: 100%;
    align-items: stretch;
    margin: 0;
  }
  .project-body__sidebar .project-section {
    width: 100%;
    margin: 0;
  }
  .project-body__sidebar .project-section--gallery .project-gallery {
    --project-gallery-columns: 1;
    grid-auto-flow: row;
    justify-items: stretch;
    max-width: none;
    margin: 0;
  }
  .project-gallery__item img {
    max-height: min(32vh, 340px);
  }
}

.project-section {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 18px 45px -32px rgba(15, 23, 42, 0.35);
}

.project-section h2 {
  margin-top: 0;
}

.project-section ul {
  padding-left: 1.2rem;
}

.project-gallery {
  --project-gallery-columns: 1;
  --project-gallery-target-columns: 1;
  display: grid;
  gap: 1.5rem;
  justify-content: center;
  grid-template-columns: repeat(var(--project-gallery-columns), minmax(0, 1fr));
}

.project-section--gallery[data-gallery-count="1"] .project-gallery {
  --project-gallery-target-columns: 1;
}

.project-section--gallery[data-gallery-count="2"] .project-gallery {
  --project-gallery-target-columns: 2;
}

.project-section--gallery[data-gallery-count="3"] .project-gallery {
  --project-gallery-target-columns: 3;
}

.project-section--gallery[data-gallery-count="4"] .project-gallery,
.project-section--gallery[data-gallery-count="5"] .project-gallery,
.project-section--gallery[data-gallery-count="6"] .project-gallery {
  --project-gallery-target-columns: 3;
}

.project-gallery__item {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 18px 32px -28px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.project-gallery__item a {
  display: block;
}

.project-gallery__item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  background: #fff;
  max-height: min(32vh, 320px);
  margin: 0 auto;
}

.project-gallery__item figcaption {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.92);
}

@media (min-width: 641px) and (max-width: 1007px) {
  .project-body__grid {
    max-width: min(960px, 100%);
    margin: 0 auto;
    justify-items: center;
  }

  .project-body__sidebar {
    align-items: center;
  }

  .project-body__sidebar .project-section {
    width: min(920px, 100%);
    margin: 0 auto;
  }

  .project-section--gallery .project-gallery {
    --project-gallery-columns: clamp(
      1,
      var(--project-gallery-target-columns, 1),
      3
    );
    max-width: min(900px, 100%);
    margin: 0 auto;
    justify-content: center;
  }

  .project-gallery__item img {
    max-height: min(24vh, 260px);
  }
}

.project-gallery__item--pdf {
  padding: 1rem 1rem 0.5rem;
}

.project-gallery__item--pdf object {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.project-gallery__item--pdf figcaption {
  padding-top: 0.75rem;
}

.project-footer {
  padding: 0 0 4rem;
  text-align: center;
}

@media (max-width: 640px) {
  .hero {
    text-align: center;
    align-items: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .project-body__grid {
    gap: 2rem;
  }

  .project-section--gallery .project-gallery {
    --project-gallery-columns: 1;
    grid-auto-flow: row;
  }

  .project-gallery__item img {
    max-height: 42vh;
  }

  .project-section {
    padding: 1.6rem;
  }

  .callout {
    padding: 1.75rem 1.5rem;
  }
}

.project-hero__meta {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(15, 23, 42, 0.9);
  font-size: 0.95rem;
}

.project-hero__meta p {
  margin: 0;
}

.project-hero__meta strong {
  font-weight: 600;
  color: #0f172a;
}

.project-section--at-a-glance ul {
  font-weight: 500;
}

.project-subsection {
  display: grid;
  gap: 0.75rem;
}

.project-subsection + .project-subsection {
  margin-top: 1.5rem;
}

.project-subsection h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.project-subsection ul {
  margin: 0;
  padding-left: 1.2rem;
}

.project-table-wrapper {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.project-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
  font-size: 0.95rem;
}

.project-table th,
.project-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.project-table th {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 600;
}

.project-table tr:nth-child(even) td {
  background: #f8fafc;
}

.project-card__meta {
  gap: 0.6rem;
}

.project-card__meta-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.project-card__meta-label,
.project-card__focus-heading {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.project-card__meta-label {
  color: #0f172a;
}

.project-card__meta-label::after {
  content: ":";
  margin-left: 0.35rem;
}

.project-card__meta-value {
  color: rgba(15, 23, 42, 0.94);
  line-height: 1.4;
  flex: 1 1 auto;
  min-width: 0;
}


.project-card__meta-item--focus {
  display: block;
}

.project-card__focus-table {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.project-card__focus-heading {
  color: #0f172a;
  text-align: center;
  width: 100%;
}

.project-card__focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.3rem;
  justify-content: center;
}

.project-card__focus-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.project-card__focus-tag[role="button"] {
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.project-card__focus-tag[role="button"]:hover,
.project-card__focus-tag[role="button"]:focus-visible {
  background: rgba(37, 99, 235, 0.25);
  color: #0f172a;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.project-search {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px -32px rgba(15, 23, 42, 0.25);
}

.project-search label {
  font-weight: 600;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.project-search input {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-search input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.project-search__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-search__suggestions[hidden] {
  display: none;
}

.project-search__suggestion {
  border: none;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.project-search__suggestion:hover,
.project-search__suggestion:focus-visible {
  background: rgba(37, 99, 235, 0.24);
  box-shadow: 0 12px 30px -24px rgba(37, 99, 235, 0.45);
  outline: none;
  transform: translateY(-1px);
}

.project-search__help {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.82);
}

.project-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0 -1.5rem 1.125rem;
  padding: 0.5rem 1.25rem;
  background: rgba(246, 248, 251, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px -34px rgba(15, 23, 42, 0.55);
}

.project-nav__inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.project-nav__inner::-webkit-scrollbar {
  display: none;
}

.project-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.project-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1d4ed8;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 10px 18px -16px rgba(15, 23, 42, 0.45);
  flex-shrink: 0;
}

.project-nav__link.is-active .project-nav__icon {
  color: #1e3a8a;
}

.project-nav__icon--external {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
}

.project-nav__icon-arrow {
  position: absolute;
  top: -0.2rem;
  right: -0.25rem;
  font-size: 0.55em;
}

@media (max-width: 800px) {
  .project-nav__icon-arrow {
    top: -0.25rem;
    right: -0.2rem;
  }
}

.project-nav__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.project-nav__link:hover,
.project-nav__link:focus-visible {
  background: rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -28px rgba(37, 99, 235, 0.55);
  outline: none;
}

.project-nav__link.is-active {
  background: hsl(
    var(--accent-hue),
    var(--accent-saturation),
    var(--accent-lightness)
  );
  color: #fff;
  box-shadow: 0 20px 40px -30px rgba(37, 99, 235, 0.6);
}

.project-nav__link.is-active .project-nav__label {
  color: inherit;
}

.project-nav__link.is-active .project-nav__icon {
  color: inherit;
}

@media (max-width: 1024px) {
  .project-nav__inner {
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  .project-nav {
    position: sticky;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 -1.5rem 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0;
    width: auto;
  }

  .project-nav__inner {
    flex-direction: row;
    gap: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .project-nav__link {
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border-radius: 50%;
  }

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

  .project-nav__link::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(-100% - 0.35rem);
    left: 50%;
    transform: translate(-50%, 0);
    background: #0f172a;
    color: #fff;
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.4);
  }

  .project-nav__link:focus-visible::after,
  .project-nav__link:hover::after {
    opacity: 1;
    transform: translate(-50%, 0.2rem);
  }

  .project-nav__link.is-active {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
    transform: none;
  }
}

.project-groups {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.project-group__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-group__title {
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  margin: 0;
}

.project-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.15rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: 0.6rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.project-group__toggle:hover,
.project-group__toggle:focus-visible {
  background-color: rgba(37, 99, 235, 0.1);
  color: #0f172a;
  outline: none;
}

.project-group__toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.project-group__title-text {
  flex: 1 1 auto;
  text-align: left;
}

.project-group__icon {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.project-group__description {
  margin: 0;
  margin-bottom: 0.6rem;
  color: rgba(15, 23, 42, 0.88);
}

.project-group--collapsed [data-project-grid] {
  display: none;
}

.section-intro,
.project-group {
  scroll-margin-top: 6.5rem;
}

.project-search__empty {
  margin-top: 1rem;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
}

.project-card.is-hidden,
.project-group.is-hidden {
  display: none !important;
}

.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 40px -32px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 45px -28px rgba(37, 99, 235, 0.45);
  border-color: rgba(37, 99, 235, 0.45);
}

.theme-toggle__icon {
  display: none;
  font-size: 1.1rem;
  line-height: 1;
}

.theme-toggle__label {
  letter-spacing: 0.02em;
  color: inherit;
}

.theme-toggle[data-theme="light"] [data-theme-icon="moon"],
.theme-toggle[data-theme="dark"] [data-theme-icon="sun"] {
  display: inline-flex;
}

@media (max-width: 640px) {
  .theme-toggle {
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }

  .theme-toggle__label {
    display: none;
  }
}

html.theme-dark {
  color-scheme: dark;
}

html.theme-dark body {
  background-color: #0b1120;
  color: #f8fafc;
}

html.theme-dark .landing-header {
  background: linear-gradient(
    150deg,
    rgba(30, 64, 175, 0.35),
    rgba(8, 47, 73, 0.65)
  );
}

html.theme-dark .hero__eyebrow {
  color: rgba(191, 219, 254, 0.85);
}

html.theme-dark .hero__title {
  color: #f8fafc;
}

html.theme-dark .hero__subtitle {
  color: rgba(248, 250, 252, 0.9);
}

html.theme-dark .section-title,
html.theme-dark .project-group__title,
html.theme-dark .project-group__title-text {
  color: #f8fafc;
}

html.theme-dark .section-intro,
html.theme-dark .project-group__description {
  color: rgba(248, 250, 252, 0.88);
}

html.theme-dark .project-group__toggle {
  color: #f8fafc;
}

html.theme-dark .project-group__toggle:hover,
html.theme-dark .project-group__toggle:focus-visible {
  background-color: rgba(59, 130, 246, 0.18);
  color: #f8fafc;
}

html.theme-dark .project-group__toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
}

html.theme-dark .section-subtitle {
  color: rgba(226, 232, 240, 0.75);
}

html.theme-dark .btn--ghost {
  border-color: rgba(148, 163, 184, 0.4);
  color: rgba(226, 232, 240, 0.9);
  background: rgba(30, 41, 59, 0.7);
}

html.theme-dark .btn--ghost:hover,
html.theme-dark .btn--ghost:focus-visible {
  border-color: rgba(148, 163, 184, 0.6);
  color: #f8fafc;
}

html.theme-dark .paper-link {
  background: rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
}

html.theme-dark .paper-link:hover,
html.theme-dark .paper-link:focus-visible {
  color: #f8fafc;
  background: rgba(96, 165, 250, 0.32);
}

html.theme-dark .project-grid {
  justify-content: center;
}

html.theme-dark .project-card {
  background: #16213b;
  box-shadow: 0 28px 55px -32px rgba(8, 47, 73, 0.75);
}

html.theme-dark .project-card:hover,
html.theme-dark .project-card:focus-within {
  box-shadow: 0 30px 55px -28px rgba(30, 64, 175, 0.55);
}

html.theme-dark .project-card__title {
  color: #f8fafc;
}

html.theme-dark .project-card__description,
html.theme-dark .project-card__meta,
html.theme-dark .project-group__description {
  color: rgba(248, 250, 252, 0.9);
}

html.theme-dark .project-card__meta-label {
  color: rgba(148, 163, 184, 0.9);
}

html.theme-dark .project-card__meta-value {
  color: #f8fafc;
}

html.theme-dark .project-card__focus-heading {
  color: rgba(203, 213, 225, 0.9);
}

html.theme-dark .project-card__focus-tag {
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

html.theme-dark .project-card__focus-tag[role="button"]:hover,
html.theme-dark .project-card__focus-tag[role="button"]:focus-visible {
  background: rgba(148, 163, 184, 0.32);
  color: #f8fafc;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
}

html.theme-dark .theme-toggle__label {
  color: #f8fafc;
}

html.theme-dark .project-search {
  background: #121a2f;
  box-shadow: 0 22px 55px -34px rgba(8, 47, 73, 0.7);
}

html.theme-dark .project-search label {
  color: rgba(226, 232, 240, 0.78);
}

html.theme-dark .project-search input {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
}

.project-search input::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

html.theme-dark .project-search input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

html.theme-dark .project-search__suggestion {
  background: rgba(59, 130, 246, 0.2);
  color: #dbeafe;
}

html.theme-dark .project-search__suggestion:hover,
html.theme-dark .project-search__suggestion:focus-visible {
  background: rgba(96, 165, 250, 0.3);
  box-shadow: 0 12px 30px -22px rgba(59, 130, 246, 0.55);
}

html.theme-dark .project-search__help {
  color: rgba(148, 163, 184, 0.85);
}

html.theme-dark .project-search__empty {
  color: #f8fafc;
}

html.theme-dark .project-hero__meta {
  color: #f8fafc;
}

html.theme-dark .project-hero__meta p {
  color: inherit;
}

html.theme-dark .project-hero__meta strong,
html.theme-dark .project-subsection h3 {
  color: #f8fafc;
}

html.theme-dark .project-nav {
  background: rgba(12, 19, 35, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 50px -32px rgba(8, 47, 73, 0.75);
}

html.theme-dark .project-nav__link {
  background: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
  font-weight: 400;
}

html.theme-dark .project-nav__icon {
  background: rgba(248, 250, 252, 0.95);
  color: #1d4ed8;
  box-shadow: 0 12px 22px -18px rgba(2, 6, 23, 0.65);
}

html.theme-dark .project-nav__link.is-active .project-nav__icon {
  color: #1e3a8a;
}

html.theme-dark .project-nav__label {
  font-weight: 400;
  color: #f8fafc;
}

html.theme-dark .project-nav__link:hover,
html.theme-dark .project-nav__link:focus-visible {
  background: rgba(148, 163, 184, 0.3);
  color: #ffffff;
  box-shadow: 0 20px 36px -28px rgba(148, 163, 184, 0.55);
}

html.theme-dark .project-nav__link::after {
  background: #1e293b;
  color: #f8fafc;
  box-shadow: 0 12px 24px -18px rgba(30, 64, 175, 0.55);
}

html.theme-dark .project-nav__link.is-active {
  color: #fff;
  font-weight: 600;
}

html.theme-dark .project-nav__link.is-active .project-nav__label {
  font-weight: 600;
}

html.theme-dark .landing-secondary {
  background: transparent;
}

html.theme-dark .callout {
  background: radial-gradient(
    circle at top left,
    rgba(59, 130, 246, 0.22),
    rgba(8, 47, 73, 0.75)
  );
  box-shadow: 0 20px 50px -30px rgba(8, 47, 73, 0.75);
}

html.theme-dark .callout__title {
  color: #f8fafc;
}

html.theme-dark .callout__description {
  color: rgba(203, 213, 225, 0.88);
}

html.theme-dark .site-footer {
  color: rgba(148, 163, 184, 0.8);
}

html.theme-dark .project-site-header {
  background: rgba(15, 23, 42, 0.86);
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

html.theme-dark .project-site-header__brand {
  color: rgba(226, 232, 240, 0.82);
}

html.theme-dark .project-site-header__brand:hover,
html.theme-dark .project-site-header__brand:focus-visible {
  color: rgba(191, 219, 254, 0.9);
}

html.theme-dark .project-hero {
  background: linear-gradient(
    165deg,
    rgba(37, 99, 235, 0.32),
    rgba(8, 47, 73, 0.82)
  );
}

html.theme-dark .project-hero__subtitle,
html.theme-dark .project-body,
html.theme-dark .project-section,
html.theme-dark .project-section h2 {
  color: inherit;
}

html.theme-dark .project-hero__subtitle {
  color: rgba(248, 250, 252, 0.92);
}

html.theme-dark .back-link {
  color: rgba(191, 219, 254, 0.85);
}

html.theme-dark .back-link:hover,
html.theme-dark .back-link:focus-visible {
  color: rgba(224, 242, 254, 0.95);
}

html.theme-dark .project-section {
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 24px 60px -32px rgba(2, 6, 23, 0.85);
  color: #f8fafc;
}

html.theme-dark .project-section h2 {
  color: #f8fafc;
}

html.theme-dark .project-section ul,
html.theme-dark .project-section p,
html.theme-dark .project-section li {
  color: rgba(248, 250, 252, 0.94);
}

html.theme-dark .project-gallery__item {
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 24px 55px -32px rgba(2, 6, 23, 0.8);
}

html.theme-dark .project-gallery__item img {
  background: rgba(15, 23, 42, 0.85);
}

html.theme-dark .project-gallery__item figcaption {
  color: rgba(226, 232, 240, 0.78);
}

html.theme-dark .project-site-footer {
  background: rgba(15, 23, 42, 0.6);
}

html.theme-dark .project-site-footer__text,
html.theme-dark .project-site-footer__text strong {
  color: rgba(203, 213, 225, 0.75);
}

html.theme-dark .project-footer .btn--ghost {
  background: rgba(30, 41, 59, 0.75);
}

html.theme-dark .project-table th,
html.theme-dark .project-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
}

html.theme-dark .project-table th {
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
}

html.theme-dark .project-table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.65);
}

html.theme-dark .theme-toggle {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
  color: #f8fafc;
  box-shadow: 0 18px 45px -30px rgba(15, 23, 42, 0.7);
}

html.theme-dark .theme-toggle:hover,
html.theme-dark .theme-toggle:focus-visible {
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow: 0 22px 55px -32px rgba(30, 64, 175, 0.6);
}

@media (min-width: 720px) {
  .project-hero__meta {
    flex-direction: row;
    gap: 1.5rem;
  }
}

