:root {
  --home-accent: #5b5cf0;
  --home-accent-2: #0ea5a4;
  --home-ink-soft: color-mix(in srgb, var(--global-text-color) 68%, transparent);
  --home-surface: color-mix(in srgb, var(--global-bg-color) 94%, var(--home-accent) 6%);
  --home-border: color-mix(in srgb, var(--global-text-color) 13%, transparent);
  --home-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

html { scroll-behavior: smooth; }

.page__title { display: none; }
.page__inner-wrap { max-width: none; }
.page__content { font-size: 1rem; }
.page__content h2 { border-bottom: 0; }
.page__content a { text-decoration: none; }

.home-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.home-shell::before {
  content: "";
  position: absolute;
  inset: -4rem -8vw auto;
  height: 32rem;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--home-accent) 16%, transparent), transparent 34%),
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--home-accent-2) 14%, transparent), transparent 30%);
  filter: blur(10px);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 510px;
  padding: clamp(2rem, 5vw, 5rem) 0 3.5rem;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  padding: .48rem .78rem;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--global-bg-color) 80%, transparent);
  backdrop-filter: blur(12px);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-eyebrow::before {
  content: "";
  width: .48rem;
  height: .48rem;
  border-radius: 999px;
  background: var(--home-accent-2);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--home-accent-2) 14%, transparent);
}

.home-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.75rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}

.home-hero h1 span {
  background: linear-gradient(120deg, var(--home-accent), var(--home-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-lede {
  max-width: 760px;
  margin: 1.55rem 0 0;
  color: var(--home-ink-soft);
  font-size: clamp(1.03rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.home-lede strong { color: var(--global-text-color); }

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .68rem 1rem;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--home-accent) 45%, var(--home-border));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--home-accent) 12%, transparent);
}

.home-button--primary {
  color: #fff !important;
  border-color: transparent;
  background: linear-gradient(120deg, var(--home-accent), #7c3aed);
}

.home-profile-card {
  position: relative;
  justify-self: end;
  width: min(100%, 330px);
  padding: .8rem;
  border: 1px solid var(--home-border);
  border-radius: 28px;
  background: color-mix(in srgb, var(--global-bg-color) 88%, transparent);
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(18px);
  transform: rotate(1.5deg);
  transition: transform .3s ease;
}

.home-profile-card:hover { transform: rotate(0deg) translateY(-4px); }

.home-profile-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 21px;
}

.home-profile-meta {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  padding: .9rem .5rem .25rem;
  font-size: .78rem;
  color: var(--home-ink-soft);
}

.home-profile-meta strong {
  display: block;
  color: var(--global-text-color);
  font-size: .9rem;
}

.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.35rem;
}

.home-tag {
  padding: .4rem .68rem;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  color: var(--home-ink-soft);
  background: color-mix(in srgb, var(--global-bg-color) 86%, transparent);
  font-size: .8rem;
}

.home-section { padding: 3.4rem 0; }

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-kicker {
  margin: 0 0 .35rem;
  color: var(--home-accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -.035em;
}

.home-section-note {
  max-width: 540px;
  margin: .45rem 0 0;
  color: var(--home-ink-soft);
  line-height: 1.6;
}

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

.home-news-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: var(--home-surface);
}

.home-news-date {
  color: var(--home-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.home-news-item p { margin: 0; line-height: 1.55; }

.home-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-project {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 1.25rem;
  border: 1px solid var(--home-border);
  border-radius: 22px;
  background: var(--home-surface);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-project:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--home-accent) 38%, var(--home-border));
  box-shadow: var(--home-shadow);
}

.home-project-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 1.15rem;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  font-size: 2.9rem;
  font-weight: 900;
  letter-spacing: -.06em;
}

.home-project-visual::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 45% 55% 60% 40%;
  transform: rotate(25deg);
}

.home-project-visual--vpg { background: linear-gradient(135deg, #4338ca, #0f766e); }
.home-project-visual--vapi { background: linear-gradient(135deg, #7c3aed, #db2777); }
.home-project-visual--coca { background: linear-gradient(135deg, #0f766e, #2563eb); }

.home-project-badge {
  display: inline-block;
  margin-bottom: .45rem;
  color: var(--home-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-project h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.home-project p {
  margin: .65rem 0 .9rem;
  color: var(--home-ink-soft);
  font-size: .88rem;
  line-height: 1.55;
}

.home-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .82rem;
  font-weight: 800;
}

.home-project-links a::after { content: " ↗"; }

.home-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.15rem;
}

.home-filter {
  appearance: none;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  padding: .5rem .78rem;
  color: var(--global-text-color);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
}

.home-filter:hover,
.home-filter[aria-pressed="true"] {
  border-color: var(--home-accent);
  color: var(--home-accent);
  background: color-mix(in srgb, var(--home-accent) 8%, transparent);
}

.home-publications .list__item {
  padding-right: 0 !important;
  margin-bottom: .85rem;
  transition: opacity .2s ease, transform .2s ease;
}

.home-publications .list__item.is-filtered-out { display: none; }

.home-publications .archive__item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--global-bg-color) 95%, var(--home-accent) 5%);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-publications .archive__item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--home-accent) 35%, var(--home-border));
  box-shadow: 0 14px 35px rgba(15,23,42,.07);
}

.home-publications .archive__item:hover .archive__item-title { text-decoration: none; }
.home-publications .archive__item-publication { padding: 0; margin: 0; gap: 1.2rem; }
.home-publications .archive__item-teaser--side { width: 250px; flex-basis: 250px; }
.home-publications .archive__item-teaser--side img { border-radius: 12px; }
.home-publications .archive__item-title { margin-top: 0 !important; font-size: 1.05rem; line-height: 1.35; }
.home-publications .venue-badge { border-radius: 999px; padding: .25rem .5rem; background: color-mix(in srgb, var(--home-accent) 9%, transparent); color: var(--home-accent); font-size: .72rem; font-weight: 800; }
.home-publications .pub-links { font-size: .8rem; font-weight: 800; }
.home-publications .pub-authors { color: var(--home-ink-soft); font-size: .84rem; line-height: 1.5; }

.home-about-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--home-border);
  border-radius: 22px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--home-accent) 7%, var(--global-bg-color)), color-mix(in srgb, var(--home-accent-2) 6%, var(--global-bg-color)));
}

.home-about-card p { margin: .25rem 0; color: var(--home-ink-soft); line-height: 1.65; }
.home-about-card strong { color: var(--global-text-color); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .home-project, .home-button, .home-profile-card, .home-publications .archive__item { transition: none; }
}

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; min-height: 0; }
  .home-profile-card { justify-self: start; width: min(72vw, 300px); transform: none; }
  .home-project-grid { grid-template-columns: 1fr 1fr; }
  .home-project:last-child { grid-column: 1 / -1; }
  .home-news { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-shell { padding-top: 0; }
  .home-hero { padding-top: 2rem; }
  .home-hero h1 { font-size: clamp(2.65rem, 15vw, 4rem); }
  .home-project-grid { grid-template-columns: 1fr; }
  .home-project:last-child { grid-column: auto; }
  .home-section { padding: 2.6rem 0; }
  .home-section-heading { align-items: start; flex-direction: column; }
  .home-news-item { grid-template-columns: 70px 1fr; }
  .home-about-card { grid-template-columns: 1fr; }
  .home-publications .archive__item-publication { display: block; }
  .home-publications .archive__item-teaser--side { width: 100%; height: 170px; margin-bottom: .85rem; }
  .home-publications .archive__item-teaser--side img { width: 100%; height: 100%; object-fit: cover; }
}
