/* ─────────────────────────────────
   HERO
───────────────────────────────── */
/* Splash Screen */
#splash {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 9999;

  transition: transform 0.8s ease; /* 👈 important */
}

/* when closing */
#splash.slide-up {
  transform: translateY(-100%);
}

.loading-words {
  position: relative;
  width: 100%;
  height: 100%;
}

.loading-words h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 👈 centers perfectly */

  display: none;
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 400;
}

.loading-words h2.active {
  display: block;
}

/* optional dot animation */
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  background: white;
  border-radius: 50%;
  animation: blink 1s infinite;
}



@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 3rem var(--page-gutter) 0rem; 
  padding-bottom: 0;
  padding-top: 0;
}

/* "Engineer & Builder" tag line */
.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s 0.3s ease forwards;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--fg-muted);
  
}

/* Big name */
.hero-name-scroll {
    overflow: hidden;
  width: 100%;
  padding: 0rem 0;     /* ✅ remove 12rem */
  margin-top: 1rem;    /* ✅ THIS pushes it to bottom */
}

.hero-name-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  /* no animation here — JS controls it */
}
/* Slow down or speed up by changing 10s ↑ */

.hero-name-text {
  font-family: var(--font-sans);
   font-size: clamp(300px, 20vw, 260px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--fg);
  flex-shrink: 0;
  padding: 0 2rem;
transform: scaleY(1.05);
}

.hero-name-sep {
  font-size: clamp(30px, 5vw, 60px);
  color: var(--accent);
  flex-shrink: 0;
  padding: 0 1rem;
}

.hero-name .line {
  display: block;
  overflow: hidden;
}

.hero-name .word {
  display: inline-block;
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-name .line:nth-child(2) .word {
  animation-delay: 0.12s;
}

/* Bottom row: description + scroll indicator */
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 6rem; /* small gap from name */
}

.hero-desc {
  max-width: 556px;
  font-family: var(--font-mono);
  font-size:18px;
  /* line-height: 1.9; */
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
}

/* Animated scroll line */
.hero-scroll {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
   margin-top: auto;
  gap: 1rem;
  margin-top: 0;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: var(--fg-muted);
  animation: scrollPulse 1.8s ease-in-out infinite;
  transform-origin: top;
}

/* Vertical "2025 / Portfolio" watermark */
.hero-watermark {
  position: absolute;
  right: var(--page-gutter);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeIn 1s 0.8s ease forwards;
}

.hero-line {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  vertical-align: middle;
  margin-right: 0.8rem;
}

.spin-arrow {
  font-size: 50px;
  color: var(--bg);
  font-weight: 800;
  line-height: 1;
}

.spin-badge {
  position: absolute;
  right: 30rem;
  top: 25%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  z-index: 10;
}
.spin-ring {
  width: 100%;
  height: 100%;
  animation: spin 12s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.spin-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
  cursor: pointer;    /* ← force pointer so it's clickable */
  z-index: 20;        /* ← above the ring */
}

.spin-center:hover {
  transform: translate(-50%, -50%) scale(1.15);
  background: #fff;
}
