:root {
  --ink: #121417;
  --muted: #5c6670;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #dfe4e6;
  --red: #c9342f;
  --teal: #087f8c;
  --shadow: 0 18px 45px rgba(18, 20, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
}

#abstract .about-copy p,
.project-abstract {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.site-nav {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px clamp(20px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.brand {
  font-weight: 800;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.88;
}

.nav-links a:hover {
  opacity: 1;
}

.text-link {
  color: var(--teal);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  padding: 136px clamp(20px, 5vw, 72px) 52px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 10, 13, 0.82) 0%, rgba(7, 10, 13, 0.5) 44%, rgba(7, 10, 13, 0.24) 100%),
    linear-gradient(180deg, rgba(7, 10, 13, 0.16), rgba(7, 10, 13, 0.68)),
    url("assets/computer-vision-hero.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(251, 250, 247, 0), var(--paper));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 28px;
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
  color: rgba(255, 255, 255, 0.88);
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding: 72px clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 38px;
  align-items: start;
}

.about-copy {
  font-size: 1.08rem;
  color: #303841;
}

.about-copy p {
  margin: 0 0 18px;
}

.about-copy .section-heading {
  margin-bottom: 28px;
}

.about-copy .section-heading p {
  margin: 0;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.topic {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #28323c;
  font-size: 0.92rem;
  font-weight: 750;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.detail-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list b {
  color: var(--red);
  font-size: 0.9rem;
}

.detail-list span {
  color: #303841;
}

.detail-list a {
  color: var(--teal);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.band {
  background: #f4f6f5;
  border-block: 1px solid #e0e5e3;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(18, 20, 23, 0.08);
}

.teaser {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 150px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.82) 0 3px, transparent 4px),
    radial-gradient(circle at 68% 38%, rgba(255, 255, 255, 0.7) 0 5px, transparent 6px),
    linear-gradient(135deg, #10333c 0%, #087f8c 42%, #21b6a8 72%, #8fcf62 100%);
}

.teaser::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(90deg, transparent 32%, rgba(255, 255, 255, 0.24) 32% 33%, transparent 33% 66%, rgba(255, 255, 255, 0.24) 66% 67%, transparent 67%),
    linear-gradient(0deg, transparent 32%, rgba(255, 255, 255, 0.24) 32% 33%, transparent 33% 66%, rgba(255, 255, 255, 0.24) 66% 67%, transparent 67%);
}

.teaser::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  aspect-ratio: 1;
  border: 6px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.12);
}

.teaser-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 20, 23, 0.62);
  font-weight: 800;
  font-size: 0.72rem;
}

.project-content {
  padding: 18px;
}

.project-content h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.project-meta {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 800;
  font-size: 0.78rem;
}

.project-abstract {
  margin: 0;
  color: #3b4650;
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.project-content:has(.project-toggle:checked) .project-abstract {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.project-toggle-label {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.project-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.project-toggle-less {
  display: none;
}

.project-toggle:checked ~ .project-toggle-more {
  display: none;
}

.project-toggle:checked ~ .project-toggle-less {
  display: inline;
}

.add-project-card {
  border: 2px dashed #9db9b3;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.add-project-card a {
  min-height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  text-decoration: none;
  text-align: center;
}

.add-project-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.add-project-card strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.12rem;
}

.add-project-card span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
  text-align-last: center;
}

.contribute {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid #d4ddd8;
  border-radius: 8px;
  background: #fff;
}

.contribute h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.contribute p {
  margin: 0;
  color: var(--muted);
}

.contribute p + p {
  margin-top: 12px;
}

footer {
  padding: 34px clamp(20px, 5vw, 72px);
  color: #d9dee2;
  background: #15191d;
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.footer-inner a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-nav {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    min-height: min(680px, 88vh);
  }

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

  .detail-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  section {
    padding-block: 54px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 112px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.5rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .project-content {
    padding: 20px;
  }
}
