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

body {
  height: 100vh;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  background: #000;
}

/* ── SLIDESHOW ── */
.slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide.prev {
  opacity: 0;
  transform: translateX(-100%);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  will-change: transform;
}

@media (max-width: 768px) {
  main { padding: 28px; }
  h1 { font-size: 1.9rem; }
  .bio { font-size: .95rem; max-width: 100%; }
  .slide:first-child img { object-position: 80% 25%; }
  .slide[data-photo="photo7.jpg"] img { object-position: 0% 25%; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  h1, .bio, .linkedin, .dots { animation: none; opacity: 1; transform: none; }
}

/* ── OVERLAY ── */
main {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 48px;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, transparent 50%);
}

h1 {
  font-size: 2.6rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  animation: fadeUp 1s ease 0.3s both;
}

.bio {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 360px;
  line-height: 1.65;
  margin-bottom: 24px;
  animation: fadeUp 1s ease 0.5s both;
}

.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  background: #fff;
  color: #111;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  animation: fadeUp 1s ease 0.7s both;
}
.linkedin:hover { opacity: 0.85; }
.linkedin svg { width: 17px; height: 17px; color: #0a66c2; }

.dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  animation: fadeUp 1s ease 0.9s both;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.4s, transform 0.4s;
}
.dot.active {
  background: #fff;
  transform: scale(1.3);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
