@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Poppins:ital,wght@0,200;0,300;0,400;1,200;1,300&display=swap');

:root {
  --light: #ffffff;
  --dark: #000000;
  --red: #e63946;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html.loading,
html.loading body {
  overflow: hidden;
  height: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-logo img {
  width: auto;
  height: auto;
  max-height: 3rem;
  object-fit: contain;
  transition: filter 0.4s ease;
}

a,
p {
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.25;
  color: var(--dark);
}

/* Interactive gradient background */
#gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
}

/* ---------- Nav ---------- */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 100;
}

.nav-logo {
  justify-self: start;
}

.nav-items {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-items a {
  color: var(--dark);
  position: relative;
  padding-bottom: 2px;
  opacity: 0.6;
  white-space: nowrap;
  transition: color 0.4s ease, opacity 0.3s ease;
}

.nav-items a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.nav-items a:hover,
.nav-items a.active {
  opacity: 1;
}

.nav-items a:hover::after,
.nav-items a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Theme swap — applied by JS based on what's actually behind the nav */
nav.nav-on-dark .nav-items {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

nav.nav-on-dark .nav-items a {
  color: var(--light);
}

nav.nav-on-dark .nav-logo img {
  filter: invert(1);
}

@media (max-width: 1000px) {
  nav {
    padding: 1rem;
  }

  .nav-items {
    gap: 1rem;
    padding: 0.55rem 1.1rem;
    max-width: 60vw;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-items::-webkit-scrollbar {
    display: none;
  }

  .nav-items a {
    font-size: 0.65rem;
  }
}

@media (max-width: 640px) {
  nav {
    grid-template-columns: auto 1fr;
    justify-items: end;
    padding: 0.85rem;
  }

  .nav-logo {
    grid-column: 1;
  }

  .nav-logo img {
    max-height: 2.2rem;
  }

  .nav-items {
    grid-column: 2;
    justify-self: end;
    max-width: 72vw;
    gap: 0.7rem;
    padding: 0.5rem 0.9rem;
    overflow-x: auto;
  }

  .nav-items a {
    font-size: 0.6rem;
  }
}

@media (max-width: 400px) {
  .nav-items {
    max-width: 68vw;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
  }

  .nav-items a {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
  }
}

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100svh;
  background-color: var(--dark);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  will-change: clip-path;
  z-index: 0;
}

.hero-overlay .counter {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  color: var(--light);
}

.hero-overlay .counter h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  font-weight: 200;
}

.overlay-text-container {
  position: absolute;
  top: 2rem;
  left: 2rem;
  height: 2rem;
  overflow: hidden;
}

.overlay-text-container .overlay-text {
  display: flex;
  flex-direction: column;
  transform: translateY(2rem);
  will-change: transform;
}

.overlay-text-container .overlay-text p {
  color: var(--light);
  height: 2rem;
  display: flex;
  align-items: center;
}

/* Images fan out full-size, centered on screen — identical to the
   original loading reveal. JS docks this block to the left once the
   reveal finishes, instead of it being cramped from the start. */
.hero-images {
  position: absolute;
  top: 50%;
  left: 50vw;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10vw;
  will-change: gap, left;
  z-index: 1;
}

.hero-images .img {
  width: 10vw;
  aspect-ratio: 5/7;
  transform: translateY(50%) scale(0.5);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0;
  will-change: transform, clip-path, opacity, width, margin;
}

.hero-images .img.hero-img {
  position: relative;
}

.hero-images .img.hero-img::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 150%;
  transform: translate(-50%, -50%);
  border-radius: 30%;
  background: radial-gradient(
    circle,
    rgba(79, 79, 79, 0.55) 0%,
    rgba(79, 79, 79, 0.25) 55%,
    rgba(79, 79, 79, 0) 75%
  );
  z-index: -1;
  pointer-events: none;
}

.hero-images .img.hero-img .face-swap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-images .img.hero-img .face-swap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-images .img.hero-img .face-mockup {
  z-index: 2;
  will-change: transform;
}

.hero-images .img.hero-img .face-real {
  z-index: 1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 40vw;
  transform: translateY(-50%);
  z-index: -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 84vw;
}

.hero-text .full-name {
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  font-size: 3.2vw;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.hero-text .full-name .word {
  display: inline-block;
  transform: translateY(100%);
  will-change: transform;
}

.hero-text .profession {
  margin-top: 0.85rem;
  opacity: 0;
  transform: translateY(1rem);
  will-change: transform, opacity;
}

.hero-text .hero-bio {
  margin-top: 1.4rem;
  text-transform: none;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.65;
  color: var(--dark);
  opacity: 0;
  transform: translateY(1rem);
  will-change: transform, opacity;
}

@media (max-width: 900px) {
  .hero-images {
    top: 50%;              /* was 36% — now vertically centered */
    gap: 6vw;
  }

  .hero-images .img {
    width: 14vw;
  }

  .hero-text {
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);   /* was translateY(-50%) with left:8vw */
    max-width: 84vw;
    align-items: center;
    text-align: center;
  }

  .hero-text .full-name {
    font-size: 9vw;
  }
}

@media (max-width: 640px) {
  .hero-text .full-name {
    font-size: 11vw;
  }

  .hero-text .hero-bio {
    font-size: 0.75rem;
    max-width: 34rem;
  }
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 35%,
    rgba(255, 255, 255, 0) 70%
  );
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  will-change: transform;
}

@media (max-width: 900px) {
  .cursor-glow {
    display: none;
  }
}

@media (max-width: 1000px) {
  .hero-overlay .counter {
    right: 1rem;
    bottom: 1rem;
  }

  .hero-images {
    padding: 0 0.5rem;
    gap: 2.5vw;
  }

  .hero-images .img {
    width: 20vw;
    aspect-ratio: 5/7;
  }
}