/* The homepage film stays fixed while the thesis scrolls above it. */
.thesis-page {
  min-height: 100vh;
  background: #071012;
}

.hero.thesis-film {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  background: #071012;
  pointer-events: none;
}

.hero.thesis-film::after {
  content: none;
}

.thesis-film .hero-video-veil {
  background: rgba(4, 13, 14, 0.52);
}

.thesis-film .hero-field {
  opacity: 0.7;
}

.thesis-main {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: clamp(9rem, 15vh, 12rem) max(1.4rem, env(safe-area-inset-right)) clamp(7rem, 12vh, 10rem) max(1.4rem, env(safe-area-inset-left));
}

.thesis-content {
  width: min(100%, 48rem);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid rgba(191, 246, 232, 0.19);
  border-radius: clamp(1rem, 2vw, 1.6rem);
  background: linear-gradient(145deg, rgba(37, 75, 70, 0.28), rgba(6, 20, 20, 0.45));
  box-shadow: inset 0 1px rgba(231, 255, 249, 0.1), 0 20px 55px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .thesis-content { background: rgba(7, 23, 23, 0.9); }
}

.thesis-content h1 {
  margin: 0 0 clamp(2.75rem, 6vw, 4.25rem);
  color: #f4f8f4;
  font-family: var(--display);
  font-size: clamp(3.35rem, 8.4vw, 6.6rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.thesis-introduction {
  width: min(100%, 42rem);
  margin: 0 auto;
  color: #edf5f0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.85;
}

.thesis-introduction p {
  margin: 0;
}

.thesis-introduction p + p {
  margin-top: 1.65rem;
}

.thesis-products {
  display: grid;
  gap: 0.85rem;
  margin: clamp(3.25rem, 7vw, 5rem) auto 0;
  color: #e5f0eb;
  font-size: clamp(0.94rem, 1.3vw, 1.04rem);
  line-height: 1.75;
}

.thesis-products p {
  margin: 0;
}

.thesis-products a {
  color: #c9fff4;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(201, 255, 244, 0.5);
  text-underline-offset: 0.22em;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

.thesis-products a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.thesis-signoff {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  color: #f4f8f4;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.thesis-signoff p {
  margin: 0;
}

.thesis-signoff p + p {
  margin-top: 0.25rem;
}

@media (max-width: 599px) {
  .thesis-main {
    padding-top: max(8.5rem, calc(env(safe-area-inset-top) + 7rem));
    padding-bottom: 6rem;
  }

  .thesis-content h1 {
    font-size: clamp(3.15rem, 12vw, 4.5rem);
  }

  .thesis-products {
    gap: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thesis-products a {
    transition: none;
  }
}
