*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: #fff;
  background: #0a0a0a;
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* =========================================
   Background Slideshow
   ========================================= */

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.slideshow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.slideshow-img.is-active {
  opacity: 1;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.55) 40%,
      rgba(0, 0, 0, 0.15) 100%
    );
}

/* =========================================
   Content
   ========================================= */

main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100vh;
  height: 100dvh;
}

.content {
  padding: 0 8vw 5vh;
  max-width: 680px;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.75rem;
}

.tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: 1.25rem;
}

.current {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
}

.current a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.3s ease;
}

.current a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   Links
   ========================================= */

.links {
  margin-top: 1.75rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.3s ease;
}

.linkedin-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   Slide Navigation
   ========================================= */

.slide-nav {
  padding: 3vh 8vw 4vh;
}

.slide-dots {
  display: flex;
  gap: 10px;
}

.slide-dot {
  width: 32px;
  height: 3px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.slide-dot.is-active {
  background: rgba(255, 255, 255, 0.8);
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {
  .slideshow-img {
    height: 52vh;
    height: 52dvh;
    object-fit: cover;
    object-position: center top;
    inset: 0 0 auto 0;
  }

  .overlay {
    background:
      linear-gradient(
        to top,
        #0a0a0a 0%,
        #0a0a0a 55%,
        rgba(10, 10, 10, 0.9) 60%,
        rgba(10, 10, 10, 0.6) 64%,
        transparent 72%
      );
  }

  .content {
    padding: 0 7vw 3vh;
  }

  h1 {
    margin-bottom: 1.25rem;
  }

  .tagline {
    margin-bottom: 1rem;
  }

  .links {
    margin-top: 1.25rem;
  }

  .slide-nav {
    padding: 2.5vh 7vw 3.5vh;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 0 6vw 2.5vh;
  }

  .slide-nav {
    padding: 2vh 6vw 3vh;
  }

  .slide-dot {
    width: 24px;
  }
}
