/* ============================================================
   HERO — Cinematic Asymmetric
   ============================================================ */

/* Tall scroll container */
.hero-scroll {
  position: relative;
  height: 350vh;
}

/* Pinned viewport */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-height) 40px 40px;
  overflow: hidden;
  cursor: none;
}

/* ── Background ── */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: 30%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,218,255,0.07) 0%, transparent 55%);
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.12); }
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.hero__orb--1 {
  width: 350px;
  height: 350px;
  top: 8%;
  left: 3%;
  background: rgba(185, 218, 255, 0.035);
  animation: orb-drift 14s ease-in-out infinite;
}

.hero__orb--2 {
  width: 250px;
  height: 250px;
  bottom: 12%;
  right: 8%;
  background: rgba(185, 218, 255, 0.025);
  animation: orb-drift 18s ease-in-out infinite reverse;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.06); }
  66% { transform: translate(-20px, 20px) scale(0.94); }
}

.hero__grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.35;
  animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

/* Floating particles container */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; transform: scale(1); }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.5); }
}

/* ── Hero liquid canvas ── */
.hero__goo-svg {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.hero__smoke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  filter: url(#hero-goo);
}

/* ── Two-column grid ── */
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

/* ── LEFT COLUMN: Identity ── */
.hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.hero__image-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  border-radius: 50%;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAVSURBVDhPY2AYBaNgFIyCUTAKqAMABlQAAWabtOkAAAAASUVORK5CYII=) center/cover;
}

.hero__image-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,218,255,0.12) 0%, transparent 70%);
  animation: glow-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

.hero__image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__image--loaded {
  opacity: 1;
  transform: scale(1);
}

.hero__image-border {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(185, 218, 255, 0.15);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease 0.15s;
}

.hero__image--loaded ~ .hero__image-border {
  opacity: 1;
}

.hero__left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* ── Badge ── */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(185,218,255,0.12);
  padding: 7px 20px;
  border-radius: var(--radius-full);
  background: rgba(185,218,255,0.03);
  backdrop-filter: blur(8px);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.hero__badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

/* ── Subtitle ── */
.hero__subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 400;
  color: var(--color-text-2);
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

/* ── Actions ── */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.hero__magnetic {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: none;
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RIGHT COLUMN: Name ── */
.hero__right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero__name {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  line-height: 0.88;
}

.hero__name-row {
  position: relative;
  display: block;
  overflow: hidden;
}

.hero__name-outline,
.hero__name-fill,
.hero__name-sr {
  display: block;
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  white-space: nowrap;
}

/* Outline — always visible */
.hero__name-outline {
  -webkit-text-stroke: 1.5px var(--color-border-2);
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
}

/* Fill — revealed by scroll */
.hero__name-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--color-white) 20%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
  pointer-events: none;
}

/* Screen-reader only */
.hero__name-sr {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
}

/* Diagonal accent line */
.hero__accent-line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  margin-top: 28px;
  transform: rotate(-8deg);
  transform-origin: left center;
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.hero__tagline {
  margin-top: 18px;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

/* ── Decorative: vertical year text ── */
.hero__year {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--color-text-3);
  white-space: nowrap;
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

/* ── Decorative: section counter ── */
.hero__counter {
  position: absolute;
  bottom: 36px;
  left: 40px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-3);
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

.hero__counter-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
}

.hero__counter-sep {
  margin: 0 2px;
}

/* ── Decorative: scroll progress ring ── */
.hero__ring {
  position: absolute;
  bottom: 36px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
}

.hero__ring-svg {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}

.hero__ring-track {
  fill: none;
  stroke: rgba(185, 218, 255, 0.08);
  stroke-width: 2;
}

.hero__ring-fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 144.51;
  stroke-dashoffset: 144.51;
  will-change: stroke-dashoffset;
  transition: stroke-dashoffset 0.1s linear;
}

.hero__ring-label {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-text-3);
  text-transform: uppercase;
}

/* ── Scroll indicator ── */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-text-3) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--color-accent) 50%, transparent 100%);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% { top: -100%; }
  100% { top: 200%; }
}

/* ── Hero done state ── */
.hero--done .hero__left,
.hero--done .hero__right,
.hero--done .hero__scroll,
.hero--done .hero__year,
.hero--done .hero__counter,
.hero--done .hero__ring {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ============================================================
   HERO — Mobile Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero-scroll {
    height: 300vh;
  }

  .hero {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    cursor: auto;
    padding: calc(var(--nav-height) + 20px) 20px 40px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero__left {
    align-items: center;
    order: 2;
  }

  .hero__left-content {
    align-items: center;
  }

  .hero__right {
    align-items: center;
    order: 1;
  }

  .hero__image-wrap {
    width: 200px;
    height: 200px;
  }

  .hero__name-outline,
  .hero__name-fill,
  .hero__name-sr {
    font-size: clamp(3rem, 12vw, 5.5rem);
  }

  .hero__accent-line {
    margin: 20px auto 0;
    transform: rotate(0deg);
  }

  .hero__smoke {
    display: none;
  }

  .hero__year {
    display: none;
  }

  .hero__counter {
    display: none;
  }

  .hero__grain {
    display: none;
  }

  .hero__scroll {
    display: none;
  }

  .hero__ring {
    display: none;
  }

  .hero__subtitle {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }

  .hero__tagline {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    letter-spacing: 0.18em;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: calc(var(--nav-height) + 16px) 16px 32px;
  }

  .hero__image-wrap {
    width: 160px;
    height: 160px;
  }

  .hero__name-outline,
  .hero__name-fill,
  .hero__name-sr {
    font-size: clamp(2.5rem, 14vw, 4rem);
    line-height: 0.85;
  }

  .hero__name-outline {
    -webkit-text-stroke-width: 1px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
