/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ===== Z1: Wavy Background Texture ===== */
.wavy-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.25;
  -webkit-mask: linear-gradient(0deg, rgba(0,0,0,0) 94%, rgb(0,0,0) 97%, rgba(0,0,0,0) 100%) add;
  mask: linear-gradient(0deg, rgba(0,0,0,0) 94%, rgb(0,0,0) 97%, rgba(0,0,0,0) 100%) add;
}

.wavy-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

/* ===== Z2: Text Marquees (behind the man) ===== */
.text-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.marquee-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.marquee {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  gap: 60px;
}

.marquee-top .marquee-track {
  animation: scroll-left 60s linear infinite;
  gap: 140px;
}

.marquee-bottom .marquee-track {
  animation: scroll-left-reverse 70s linear infinite;
}

/* Top marquee: very light grey, sans-serif */
.marquee-top span {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(80px, 11.4vw, 164px);
  font-weight: 400;
  line-height: 0.9em;
  color: rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Bottom marquee: solid black, serif */
.marquee-bottom span {
  font-family: 'Averia Serif Libre', serif;
  font-size: clamp(80px, 11.4vw, 164px);
  font-weight: 700;
  line-height: 0.8em;
  color: #000;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Dotted separator */
.dotted-line {
  width: 100%;
  height: 0;
  border-bottom: 2px dotted rgba(34, 34, 34, 0.25);
  margin: 8px 0;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 30px)); }
}

@keyframes scroll-left-reverse {
  0% { transform: translateX(calc(-50% - 30px)); }
  100% { transform: translateX(0); }
}

/* ===== Z3: Man's Photo (always visible, in front of text) ===== */
.photo-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform: translateY(90px) scale(0.90);
  user-select: none;
  pointer-events: none;
}

/* ===== Z4: WebGL Canvas (fluid simulation, transparent bg) ===== */
#stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: normal;
  background: transparent;
}


/* ===== Z5: Header ===== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px;
  pointer-events: none;
}

.logo {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 19px;
  line-height: 1.1em;
  color: #000;
  pointer-events: auto;
}

.logo-top {
  font-family: 'Averia Serif Libre', serif;
  font-size: 40px;
  letter-spacing: -0.05em;
}

.logo-bottom {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 48px;
  line-height: 1.1em;
}

.nav-buttons {
  display: flex;
  gap: 16px;
  pointer-events: auto;
}

.btn {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 15px;
  line-height: 1em;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-secondary {
  background-color: #fff;
  color: #000;
  box-shadow: inset 0 0 0 2px #d9d9d9;
}

.btn-primary {
  background-color: #000;
  color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #000;
}
