/* ==========================================================================
   WHERE YOUR IMAGINATION BECOMES CODE
   Final Luxury Creative Technologist Hero Interface
   ========================================================================== */

:root {
  --bg-dark: #050505;
  --badge-dark: #0A0C10;
  --text-ivory: #EFEBE2;
  --text-pure: #FFFFFF;
  --text-muted: rgba(235, 235, 240, 0.6);
  --accent-cyan: #00F0FF;
  
  --font-monolithic: 'Anton', 'Bebas Neue', 'Barlow Condensed', sans-serif;
  --font-clean: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, monospace;

  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html, body {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-ivory);
  font-family: var(--font-clean);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--text-ivory);
  color: var(--bg-dark);
}

/* Film Grain Texture */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Fullscreen Hero Stage */
.hero-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- LAYER 1: CINEMATIC BACKGROUND (z-index: 1) --- */
.hero-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) brightness(0.96);
  transform: scale(1.02);
  will-change: transform;
}

.hero-bg-ambient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(5, 5, 8, 0.02) 0%, rgba(5, 5, 8, 0.45) 100%);
  pointer-events: none;
}

/* --- 1. LUXURY TOP NAVIGATION (z-index: 50) --- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 50;
  padding: clamp(1.2rem, 3vh, 2.2rem) clamp(1.5rem, 4vw, 4rem);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-10px);
  will-change: transform, opacity;
}

.header-inner {
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left Brand: Jaw-Dropping Luxury Wordmark */
.brand-logo {
  font-family: var(--font-clean);
  font-size: clamp(0.8125rem, 1.15vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--text-pure);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  
  /* Luminous Silver / Pure White Gradient with High-End Sheen */
  background: linear-gradient(120deg, #FFFFFF 0%, #E8EAFA 30%, #FFFFFF 60%, #A8AAB8 80%, #FFFFFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.12));
  
  transition: letter-spacing 0.4s var(--ease-cinematic), background-position 0.6s var(--ease-cinematic), filter 0.3s;
  will-change: letter-spacing, background-position;
}

.brand-logo:hover {
  letter-spacing: 0.36em;
  background-position: right center;
  filter: drop-shadow(0 2px 20px rgba(255, 255, 255, 0.35));
}

/* Center Nav Links */
.nav-links-center {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.2vw, 3rem);
}

.nav-link {
  font-family: var(--font-clean);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease-cinematic);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-pure);
  transition: width 0.3s var(--ease-cinematic);
}

.nav-link:hover {
  color: var(--text-pure);
}

.nav-link:hover::after {
  width: 100%;
}

/* Right CTA Button */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-clean);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-pure);
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 12, 16, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-cinematic);
}

.cta-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-cinematic);
}

.cta-pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.cta-pill-btn:hover .cta-arrow {
  transform: translate(3px, -3px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
}

.menu-line {
  width: 22px;
  height: 1.5px;
  background-color: var(--text-pure);
  transition: all 0.3s var(--ease-cinematic);
}

/* --- 2. IDENTITY LABEL (Upper Left, z-index: 40) --- */
.identity-lockup {
  position: absolute;
  top: clamp(4.8rem, 10vh, 7.2rem);
  left: clamp(1.5rem, 4vw, 4rem);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  will-change: transform, opacity;
}

.identity-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
  display: inline-block;
}

.identity-role {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-ivory);
  text-transform: uppercase;
}

.identity-disciplines {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(235, 235, 240, 0.45);
  text-transform: uppercase;
  padding-left: 0.8rem;
}

/* --- LAYER 2: MONOLITHIC TYPOGRAPHY ARENA (z-index: 5 - Behind Avatar) --- */
.monolithic-typography-wrap {
  position: relative;
  z-index: 5;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  padding: 0;
  user-select: none;
  /* Desktop lowered position */
  transform: translateY(clamp(6.5rem, 14.5vh, 11.5rem));
  will-change: transform;
}

/* Top Text: WHERE YOUR (Centered Directly Above IMAGINATION) */
.tagline-top {
  position: absolute;
  top: clamp(-2rem, -3.2vw, -3.6rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-clean);
  font-size: clamp(0.85rem, 1.25vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-ivory);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
  z-index: 6;
}

/* Massive Dominant Word: IMAGINATION (Close, Tight, Sculptural) */
.monolithic-word {
  font-family: var(--font-monolithic);
  font-size: clamp(6.5rem, 16.5vw, 24rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: clamp(-0.01em, 0.005vw, 0.015em);
  color: var(--text-ivory);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  transform-style: preserve-3d;
}

/* Individual Physical 3D Letter Unit */
.letter-unit {
  display: inline-block;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  opacity: 0;
  color: var(--text-ivory);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* Dark Cutout Badge: BECOMES CODE. */
.badge-becomes-code {
  position: absolute;
  top: 50%;
  right: clamp(4%, 7.5vw, 12%);
  transform: translateY(-50%);
  background-color: var(--badge-dark);
  padding: clamp(0.35rem, 0.6vw, 0.65rem) clamp(0.65rem, 1.1vw, 1.25rem);
  border-radius: 2px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 6;
  opacity: 0;
  will-change: transform, opacity;
}

.badge-text {
  font-family: var(--font-clean);
  font-size: clamp(0.75rem, 1.05vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-ivory);
  white-space: nowrap;
  display: block;
}

/* --- LAYER 3: FOREGROUND AVATAR (z-index: 10 - In Front of Typography) --- */
.hero-avatar-stage {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.avatar-parallax-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  will-change: transform;
}

.hero-avatar-img {
  height: clamp(620px, 106vh, 1180px);
  width: auto;
  max-width: 66vw;
  object-fit: contain;
  object-position: bottom right;
  margin-right: clamp(0.5vw, 3vw, 5.5vw);
  margin-bottom: 0;
  filter: contrast(1.05) brightness(0.98);
  will-change: transform, opacity;
  transform: translateY(115vh);
  opacity: 0;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  background: rgba(5, 5, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-cinematic);
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.drawer-link {
  font-family: var(--font-clean);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-ivory);
  text-decoration: none;
  transition: color 0.3s;
}

.drawer-link:hover {
  color: var(--accent-cyan);
}

.drawer-cta {
  margin-top: 1.5rem;
  font-family: var(--font-clean);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-pure);
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
  .site-header {
    padding: 1.25rem 1.5rem;
  }

  .nav-links-center, .cta-pill-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .identity-lockup {
    top: 4.8rem;
    left: 1.5rem;
  }

  .identity-role {
    font-size: 0.625rem;
  }

  .identity-disciplines {
    font-size: 0.5rem;
  }

  .monolithic-typography-wrap {
    transform: translateY(clamp(1.5rem, 4vh, 3.2rem));
    padding: 0 0.5rem;
  }

  .monolithic-word {
    font-size: clamp(3.2rem, 15.8vw, 6rem);
    letter-spacing: -0.01em;
  }

  .tagline-top {
    top: clamp(-1.6rem, -5vw, -2.2rem);
    font-size: clamp(0.72rem, 3vw, 0.95rem);
    letter-spacing: 0.14em;
    margin-bottom: 0.6rem;
  }

  .badge-becomes-code {
    right: 3%;
    padding: 0.25rem 0.55rem;
  }

  .badge-text {
    font-size: clamp(0.6rem, 2.5vw, 0.85rem);
  }

  .hero-avatar-stage {
    justify-content: center;
  }

  .avatar-parallax-wrap {
    justify-content: center;
  }

  .hero-avatar-img {
    height: clamp(750px, 115vh, 1050px);
    max-width: 175vw;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: -4vh;
    object-fit: contain;
    object-position: bottom center;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .site-header, .identity-lockup, .letter-unit, .tagline-top, .headline-continuation, .hero-avatar-img {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}