:root {
  --home-text-gradient: linear-gradient(105deg, #357b77 0%, #2797a5 52%, #61abb4 100%);
  --home-primary-gradient: linear-gradient(120deg, #316f70, #188b98);
  --home-primary-gradient-hover: linear-gradient(120deg, #285f60, #147985);
  --home-primary-border: #276f70;
  --home-on-primary: #fff;
  --home-button-shadow: 0 0.85rem 2rem rgba(31, 83, 83, 0.14);
  --home-secondary-bg: color-mix(in srgb, var(--site-paper) 82%, transparent);
}

body {
  overflow-x: hidden;
}

#quarto-content {
  padding-top: 0;
}

main.content {
  grid-column: screen-start / screen-end;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.quarto-title-block {
  display: none;
}

.home-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 10.5rem);
  padding: clamp(3rem, 7vh, 5.5rem) clamp(2rem, 4.25vw, 4.75rem);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(51rem, 58vw);
}

.hero-copy h1 {
  margin: 0 0 clamp(1.25rem, 2.6vh, 2rem);
  color: var(--site-ink);
  font-size: clamp(3.35rem, 4.35vw, 4.75rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-statement {
  max-width: 27ch;
  margin: 0;
  color: var(--site-ink);
  font-family: var(--site-font-heading);
  font-size: clamp(2.15rem, 3.15vw, 3.55rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.gradient-text {
  color: var(--site-accent);
  background: var(--home-text-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-affiliation {
  margin: clamp(1.5rem, 3vh, 2.25rem) 0 0;
  color: var(--site-muted);
  font-family: var(--site-font-ui);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 450;
  letter-spacing: 0.015em;
}

.hero-affiliation span {
  margin-inline: 0.32em;
  color: color-mix(in srgb, var(--site-accent) 65%, var(--site-muted));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.65rem, 3.2vh, 2.35rem);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.45rem;
  min-height: 3.6rem;
  padding: 0.9rem 1.65rem;
  border: 1px solid var(--site-ink);
  border-radius: 0.42rem;
  font-family: var(--site-font-ui);
  font-size: 1.02rem;
  font-weight: 520;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--home-button-shadow);
}

.hero-button-primary {
  border-color: var(--home-primary-border);
  color: var(--home-on-primary);
  background: var(--home-primary-gradient);
}

.hero-button-primary:hover,
.hero-button-primary:focus-visible {
  color: var(--home-on-primary);
  background: var(--home-primary-gradient-hover);
}

.hero-button-secondary {
  color: var(--site-ink);
  background: var(--home-secondary-bg);
  backdrop-filter: blur(0.4rem);
}

.hero-button-secondary:hover,
.hero-button-secondary:focus-visible {
  color: var(--site-ink);
  background: var(--site-surface);
}

.hero-visual {
  position: absolute;
  z-index: 1;
  inset: -7% -8% -8% -5%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.12) 7%, #000 18%, #000 82%, rgba(0, 0, 0, 0.12) 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.12) 7%, #000 18%, #000 82%, rgba(0, 0, 0, 0.12) 93%, transparent 100%);
}

.trajectory-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  mix-blend-mode: multiply;
}

body.quarto-dark {
  --home-text-gradient: linear-gradient(105deg, #79c2b9 0%, #62c3cd 55%, #9ad5d8 100%);
  --home-secondary-bg: rgba(23, 28, 31, 0.74);
}

body.quarto-dark .trajectory-particles {
  opacity: 0.72;
  mix-blend-mode: screen;
}

body.quarto-dark .hero-button-secondary {
  border-color: var(--site-border);
}

@media (max-width: 900px) {
  .home-hero {
    align-items: flex-start;
    min-height: calc(100svh - 10.5rem);
    padding-top: clamp(3.5rem, 9vh, 5.75rem);
  }

  .hero-copy {
    width: min(42rem, 86vw);
  }

  .hero-visual {
    inset: 22% -6% -2% -6%;
    opacity: 0.8;
  }
}

@media (max-width: 560px) {
  .home-hero {
    min-height: calc(100svh - 10.5rem);
    padding: 3.25rem 1.35rem 2.5rem;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.85rem, 14vw, 4rem);
  }

  .hero-statement {
    max-width: 16ch;
    font-size: clamp(1.95rem, 9.5vw, 2.75rem);
  }

  .hero-affiliation {
    max-width: 23rem;
    line-height: 1.5;
  }

  .hero-actions {
    align-items: stretch;
    gap: 0.7rem;
  }

  .hero-button {
    flex: 1 1 10rem;
    gap: 0.8rem;
    min-height: 3.35rem;
    padding-inline: 1rem;
    font-size: 0.94rem;
  }

  .hero-visual {
    inset: 38% -4% -2% -4%;
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-button {
    transition: none;
  }
}
