.home-page {
  background: #000;
}

.three-hero {
  width: 100%;
  height: 100vh;
  min-height: 560px;
  background: #000;
  overflow: hidden;
  position: relative;
}

#three-container {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  position: relative;
}

#three-container canvas {
  display: block;
}

#three-error {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  display: none;
  max-width: min(420px, calc(100% - 40px));
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 0, 0, 0.35);
  color: white;
  font-size: 14px;
}

.hero-title {
  position: absolute;
  z-index: 2;
  max-width: min(620px, 90%);
  color: var(--yellow);
  font-size: clamp(3.2rem, 9vw, 9.8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  pointer-events: none;
  text-shadow: 0 0 28px rgba(0, 0, 0, 0.72);
}

.hero-title--top {
  top: 5%;
  left: 5%;
}

.hero-title--bottom {
  right: 5%;
  bottom: clamp(160px, 18vh, 230px);
  text-align: right;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 6vh, 64px);
  z-index: 3;
  display: grid;
  width: clamp(92px, 12vw, 142px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 180ms ease;
}

.hero-scroll::before {
  position: absolute;
  inset: -48%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.96) 0 28%, rgba(0, 0, 0, 0.74) 46%, rgba(0, 0, 0, 0.32) 66%, rgba(0, 0, 0, 0) 88%);
  filter: blur(30px);
  content: "";
}

.hero-scroll::after {
  position: absolute;
  inset: -2%;
  z-index: -1;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  filter: blur(16px);
  content: "";
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  transform: translateX(-50%) scale(1.12);
}

.hero-scroll:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 8px;
}

.hero-scroll img {
  display: block;
  width: 62%;
  height: auto;
  pointer-events: none;
  transform: translateY(2%);
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: stretch;
}

.about-preview {
  display: grid;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.about-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.72));
  content: "";
}

.about-preview img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.about-preview__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: clamp(22px, 4vw, 34px);
}

.about-preview h1,
.projects-overview h2 {
  margin: 0;
  letter-spacing: 0;
}

.about-preview h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.9;
}

.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 26px;
  padding: 0 18px;
  border: 1px solid rgba(255, 238, 50, 0.72);
  border-radius: 6px;
  color: var(--yellow);
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.text-button:hover,
.text-button:focus-visible {
  border-color: var(--hover);
  color: var(--hover);
  transform: translateY(-2px);
}

.projects-overview {
  padding-left: clamp(28px, 5vw, 68px);
  border-left: 3px solid #ffee32;
}

.projects-overview h2 {
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.9;
}

.project-links {
  display: grid;
  gap: 12px;
  margin-top: clamp(36px, 6vw, 72px);
}

.project-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 44px);
  min-height: 84px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.8rem);
  line-height: 1.05;
  overflow: hidden;
  transition: color 160ms ease, padding-left 160ms ease;
}

.project-links a > span:not(.project-thumb) {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.project-thumb {
  width: clamp(116px, 22vw, 248px);
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
}

.project-thumb::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.78) 18%, rgba(0, 0, 0, 0) 58%);
  content: "";
  pointer-events: none;
}

.project-thumb img {
  display: block;
  width: clamp(96px, 18vw, 188px);
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 220ms ease;
}

.project-links a:hover,
.project-links a:focus-visible {
  color: var(--hover);
  padding-left: 14px;
}

.project-links a:hover img,
.project-links a:focus-visible img {
  transform: scale(1.07);
}

@media (max-width: 760px) {
  .three-hero {
    min-height: 520px;
  }

  .hero-scroll {
    bottom: 36px;
    width: 92px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 17vw, 5.6rem);
  }

  .hero-title--bottom {
    bottom: 148px;
  }

  .overview-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-preview,
  .about-preview img {
    min-height: 420px;
  }

  .projects-overview {
    padding-top: 32px;
    padding-left: 0;
    border-top: 3px solid #ffee32;
    border-left: 0;
  }

  .project-links a {
    min-height: 72px;
  }

  .project-thumb {
    width: clamp(92px, 30vw, 124px);
  }
}
